Class InstanceOfIterator

All Implemented Interfaces:
com.esotericsoftware.kryo.KryoSerializable, Serializable, RuntimeIteratorInterface

public class InstanceOfIterator extends AtMostOneItemLocalRuntimeIterator
See Also:
  • Constructor Details

  • Method Details

    • materializeFirstItemOrNull

      public Item materializeFirstItemOrNull(DynamicContext dynamicContext)
      Specified by:
      materializeFirstItemOrNull in class AtMostOneItemLocalRuntimeIterator
    • doesItemTypeMatchItem

      public static boolean doesItemTypeMatchItem(ItemType itemType, Item itemToMatch)
      Item type tests. This supersedes the method isTypeOf() formerly located in the Item interface, as part of the efforts to cleanly separate item storage from item manipulation (which is the domain of responsibility of runtime iterators).
      Parameters:
      itemType - the item type to match against the item.
      itemToMatch - the item to match against the type.
      Returns:
      true if itemToMatch matches itemType.