Class CollectionFieldValue<T extends FieldValue>

  • All Implemented Interfaces:
    java.lang.Cloneable, java.lang.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 Detail

      • createFieldValue

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

        public void verifyElementCompatibility​(T o)
      • fieldValueIterator

        public abstract java.util.Iterator<T> fieldValueIterator()
      • add

        public abstract boolean add​(T value)
      • contains

        public abstract boolean contains​(java.lang.Object o)
      • isEmpty

        public abstract boolean isEmpty()
      • isEmpty

        protected boolean isEmpty​(java.util.Collection collection)
      • iterator

        public abstract java.util.Iterator<T> iterator()
      • removeValue

        public abstract boolean removeValue​(FieldValue o)
      • removeValue

        protected boolean removeValue​(FieldValue o,
                                      java.util.Collection collection)
      • size

        public abstract int size()