Class QueueCollectionHandler

java.lang.Object
io.beanmapper.core.collections.AbstractCollectionHandler<Queue>
io.beanmapper.core.collections.QueueCollectionHandler
All Implemented Interfaces:
CollectionHandler<Queue>

public class QueueCollectionHandler extends AbstractCollectionHandler<Queue>
  • Constructor Details

    • QueueCollectionHandler

      public QueueCollectionHandler()
  • Method Details

    • clear

      protected void clear(Queue target)
      Description copied from class: AbstractCollectionHandler
      Calls the clear method on the target collection
      Specified by:
      clear in class AbstractCollectionHandler<Queue>
      Parameters:
      target - the collection to call clear() on
    • create

      protected Queue create()
      Description copied from class: AbstractCollectionHandler
      Creates a new instance of the collection class
      Specified by:
      create in class AbstractCollectionHandler<Queue>
      Returns:
      new instance of the collection class
    • copy

      public Queue copy(BeanMapper beanMapper, Class collectionElementClass, Queue source, Queue target)
      Description copied from interface: CollectionHandler
      Takes all the content from source and offers it to target. Every item is handled by BeanMapper before it is stored in target.
      Parameters:
      beanMapper - the beanmapper to use for mapping the individual items
      collectionElementClass - the class of an item within the target collection
      source - the source collection of items
      target - the target collection where the mapped source items will end up
      Returns:
      the target collection
    • size

      public int size(Queue targetCollection)