Class CollectionFieldValue<T extends FieldValue>

java.lang.Object
com.yahoo.vespa.objects.Selectable
com.yahoo.vespa.objects.Identifiable
All Implemented Interfaces:
Cloneable, Comparable<FieldValue>
Direct Known Subclasses:
Array, WeightedSet

public abstract class CollectionFieldValue<T extends FieldValue> extends CompositeFieldValue
Superclass of multivalue field values
Author:
HÃ¥kon Humberset
  • Method Details

    • getDataType

      public CollectionDataType getDataType()
      Overrides:
      getDataType in class CompositeFieldValue
    • createFieldValue

      protected FieldValue createFieldValue(Object o)
      Utility function to wrap primitives.
      See Also:
      • Array.ListWrapper
    • verifyElementCompatibility

      public void verifyElementCompatibility(T o)
    • fieldValueIterator

      public abstract Iterator<T> fieldValueIterator()
    • add

      public abstract boolean add(T value)
    • contains

      public abstract boolean contains(Object o)
    • isEmpty

      public abstract boolean isEmpty()
    • isEmpty

      protected boolean isEmpty(Collection collection)
    • iterator

      public abstract Iterator<T> iterator()
    • removeValue

      public abstract boolean removeValue(FieldValue o)
    • removeValue

      protected boolean removeValue(FieldValue o, Collection collection)
    • size

      public abstract int size()