Class AbstractModel.ValueSet<V extends Value>

  • All Implemented Interfaces:
    java.lang.Iterable<V>, java.util.Collection<V>, java.util.Set<V>
    Enclosing class:
    AbstractModel

    private abstract class AbstractModel.ValueSet<V extends Value>
    extends java.util.AbstractSet<V>
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private ValueSet()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      abstract boolean add​(V term)  
      boolean addAll​(java.util.Collection<? extends V> c)  
      void clear()  
      private void closeIterator​(java.util.Collection<?> c, java.util.Iterator<?> e)  
      protected void closeIterator​(java.util.Iterator<?> iter)  
      boolean containsAll​(java.util.Collection<?> c)  
      boolean isEmpty()  
      java.util.Iterator<V> iterator()  
      boolean removeAll​(java.util.Collection<?> c)  
      protected abstract void removeIteration​(java.util.Iterator<Statement> iter, V term)  
      boolean retainAll​(java.util.Collection<?> c)  
      int size()  
      protected abstract V term​(Statement st)  
      java.lang.Object[] toArray()  
      <T> T[] toArray​(T[] a)  
      • Methods inherited from class java.util.AbstractSet

        equals, hashCode
      • Methods inherited from class java.util.AbstractCollection

        contains, remove, toString
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Collection

        parallelStream, removeIf, stream, toArray
      • Methods inherited from interface java.lang.Iterable

        forEach
      • Methods inherited from interface java.util.Set

        contains, remove, spliterator
    • Constructor Detail

      • ValueSet

        private ValueSet()
    • Method Detail

      • iterator

        public java.util.Iterator<V> iterator()
        Specified by:
        iterator in interface java.util.Collection<V extends Value>
        Specified by:
        iterator in interface java.lang.Iterable<V extends Value>
        Specified by:
        iterator in interface java.util.Set<V extends Value>
        Specified by:
        iterator in class java.util.AbstractCollection<V extends Value>
      • clear

        public void clear()
        Specified by:
        clear in interface java.util.Collection<V extends Value>
        Specified by:
        clear in interface java.util.Set<V extends Value>
        Overrides:
        clear in class java.util.AbstractCollection<V extends Value>
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface java.util.Collection<V extends Value>
        Specified by:
        isEmpty in interface java.util.Set<V extends Value>
        Overrides:
        isEmpty in class java.util.AbstractCollection<V extends Value>
      • size

        public int size()
        Specified by:
        size in interface java.util.Collection<V extends Value>
        Specified by:
        size in interface java.util.Set<V extends Value>
        Specified by:
        size in class java.util.AbstractCollection<V extends Value>
      • removeAll

        public boolean removeAll​(java.util.Collection<?> c)
        Specified by:
        removeAll in interface java.util.Collection<V extends Value>
        Specified by:
        removeAll in interface java.util.Set<V extends Value>
        Overrides:
        removeAll in class java.util.AbstractSet<V extends Value>
      • toArray

        public java.lang.Object[] toArray()
        Specified by:
        toArray in interface java.util.Collection<V extends Value>
        Specified by:
        toArray in interface java.util.Set<V extends Value>
        Overrides:
        toArray in class java.util.AbstractCollection<V extends Value>
      • toArray

        public <T> T[] toArray​(T[] a)
        Specified by:
        toArray in interface java.util.Collection<V extends Value>
        Specified by:
        toArray in interface java.util.Set<V extends Value>
        Overrides:
        toArray in class java.util.AbstractCollection<V extends Value>
      • containsAll

        public boolean containsAll​(java.util.Collection<?> c)
        Specified by:
        containsAll in interface java.util.Collection<V extends Value>
        Specified by:
        containsAll in interface java.util.Set<V extends Value>
        Overrides:
        containsAll in class java.util.AbstractCollection<V extends Value>
      • addAll

        public boolean addAll​(java.util.Collection<? extends V> c)
        Specified by:
        addAll in interface java.util.Collection<V extends Value>
        Specified by:
        addAll in interface java.util.Set<V extends Value>
        Overrides:
        addAll in class java.util.AbstractCollection<V extends Value>
      • retainAll

        public boolean retainAll​(java.util.Collection<?> c)
        Specified by:
        retainAll in interface java.util.Collection<V extends Value>
        Specified by:
        retainAll in interface java.util.Set<V extends Value>
        Overrides:
        retainAll in class java.util.AbstractCollection<V extends Value>
      • add

        public abstract boolean add​(V term)
        Specified by:
        add in interface java.util.Collection<V extends Value>
        Specified by:
        add in interface java.util.Set<V extends Value>
        Overrides:
        add in class java.util.AbstractCollection<V extends Value>
      • term

        protected abstract V term​(Statement st)
      • removeIteration

        protected abstract void removeIteration​(java.util.Iterator<Statement> iter,
                                                V term)
      • closeIterator

        protected void closeIterator​(java.util.Iterator<?> iter)
      • closeIterator

        private void closeIterator​(java.util.Collection<?> c,
                                   java.util.Iterator<?> e)