Class IdentifierRelation

    • Constructor Detail

      • IdentifierRelation

        public IdentifierRelation()
        Construct an IdentifierRelation with an empty list of relations.
    • Method Detail

      • add

        public boolean add​(Identifier identifier)
        Add a Identifier to this IdentifierRelation set.
        Specified by:
        add in interface java.util.Collection<Identifier>
        Specified by:
        add in interface java.util.Set<Identifier>
        Parameters:
        identifier - the identifier to add
        Returns:
        true if successful;false otherwise.
        See Also:
        Collection.add(java.lang.Object)
      • addAll

        public boolean addAll​(java.util.Collection<? extends Identifier> collection)
        Add a Collection of Identifiers to this IdentifierRelation set.
        Specified by:
        addAll in interface java.util.Collection<Identifier>
        Specified by:
        addAll in interface java.util.Set<Identifier>
        Parameters:
        collection - the collection of identifiers to add
        Returns:
        true if successful;false otherwise.
        See Also:
        Collection.addAll(java.util.Collection)
      • ceiling

        public Identifier ceiling​(Identifier identifier)
        Parameters:
        identifier - to identifier to match
        Returns:
        Identifier
        See Also:
        TreeSet.ceiling(java.lang.Object)
      • clear

        public void clear()
        Clear the IdentifierRelation Set.
        Specified by:
        clear in interface java.util.Collection<Identifier>
        Specified by:
        clear in interface java.util.Set<Identifier>
        See Also:
        Collection.clear()
      • clone

        public java.lang.Object clone()
        Overrides:
        clone in class java.lang.Object
        Returns:
        Object
        See Also:
        TreeSet.clone()
      • comparator

        public java.util.Comparator<? super Identifier> comparator()
        Specified by:
        comparator in interface java.util.SortedSet<Identifier>
        Returns:
        Comparator of Identifier
        See Also:
        TreeSet.comparator()
      • contains

        public boolean contains​(java.lang.Object object)
        Check if an the Object is in the IdentifierRelation set.
        Specified by:
        contains in interface java.util.Collection<Identifier>
        Specified by:
        contains in interface java.util.Set<Identifier>
        Parameters:
        object - to object to check
        Returns:
        true if the the Set contains the object; false otherwise.
        See Also:
        Collection.contains(java.lang.Object)
      • containsAll

        public boolean containsAll​(java.util.Collection<?> c)
        Check if an the Collection is in the IdentifierRelation set.
        Specified by:
        containsAll in interface java.util.Collection<Identifier>
        Specified by:
        containsAll in interface java.util.Set<Identifier>
        Returns:
        true if the the Set contains the Collection; false otherwise.
      • descendingIterator

        public java.util.Iterator<Identifier> descendingIterator()
        Returns:
        Iterator of Identifier
        See Also:
        TreeSet.descendingIterator()
      • descendingSet

        public java.util.NavigableSet<Identifier> descendingSet()
        Returns:
        NavigableSet of Identifier
        See Also:
        TreeSet.descendingSet()
      • equals

        public boolean equals​(java.lang.Object o)
        Specified by:
        equals in interface java.util.Collection<Identifier>
        Specified by:
        equals in interface java.util.Set<Identifier>
        Overrides:
        equals in class UntypedData
      • first

        public Identifier first()
        Specified by:
        first in interface java.util.SortedSet<Identifier>
        Returns:
        first Identifier
        See Also:
        TreeSet.first()
      • floor

        public Identifier floor​(Identifier identifier)
        Parameters:
        identifier - the identifier to match
        Returns:
        Identifier
        See Also:
        TreeSet.floor(java.lang.Object)
      • getRelations

        public java.util.Collection<Identifier> getRelations()
        Getter for the field _relations.
        Returns:
        the _relations
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface java.util.Collection<Identifier>
        Specified by:
        hashCode in interface java.util.Set<Identifier>
        Overrides:
        hashCode in class UntypedData
      • headSet

        public java.util.SortedSet<Identifier> headSet​(Identifier toElement)
        Specified by:
        headSet in interface java.util.SortedSet<Identifier>
        Parameters:
        toElement - the identifier to match
        Returns:
        SortedSet of Identifier
        See Also:
        TreeSet.headSet(java.lang.Object)
      • headSet

        public java.util.NavigableSet<Identifier> headSet​(Identifier toElement,
                                                          boolean inclusive)
        Parameters:
        toElement - the identifier to match
        inclusive - if inclusive or not
        Returns:
        NavigableSet of Identifier
        See Also:
        TreeSet.headSet(java.lang.Object, boolean)
      • higher

        public Identifier higher​(Identifier identifier)
        Parameters:
        identifier - the identifier to match
        Returns:
        Identifier
        See Also:
        TreeSet.higher(java.lang.Object)
      • isEmpty

        public boolean isEmpty()
        Check if the Collection of IdentifierRelation is empty.
        Specified by:
        isEmpty in interface java.util.Collection<Identifier>
        Specified by:
        isEmpty in interface java.util.Set<Identifier>
        Returns:
        true if Collection is empty; false otherwise.
        See Also:
        Collection.isEmpty()
      • iterator

        public java.util.Iterator<Identifier> iterator()
        Iterator for the Collection of IdentifierRelation.
        Specified by:
        iterator in interface java.util.Collection<Identifier>
        Specified by:
        iterator in interface java.lang.Iterable<Identifier>
        Specified by:
        iterator in interface java.util.Set<Identifier>
        Returns:
        the Iterator
        See Also:
        Collection.iterator()
      • lower

        public Identifier lower​(Identifier identifier)
        Parameters:
        identifier - the identifier to match
        Returns:
        Identifier
        See Also:
        TreeSet.lower(java.lang.Object)
      • remove

        public boolean remove​(java.lang.Object o)
        Remove the Object from the IdentifierRelation set.
        Specified by:
        remove in interface java.util.Collection<Identifier>
        Specified by:
        remove in interface java.util.Set<Identifier>
        Returns:
        true if successful; false otherwise.
      • removeAll

        public boolean removeAll​(java.util.Collection<?> c)
        Remove the Collection from the IdentifierRelation set.
        Specified by:
        removeAll in interface java.util.Collection<Identifier>
        Specified by:
        removeAll in interface java.util.Set<Identifier>
        Returns:
        true if successful; false otherwise.
      • retainAll

        public boolean retainAll​(java.util.Collection<?> c)
        Retains only the object in the Collection in the IdentifierRelation set. Removes all other Objects from the IdentifierRelation set.
        Specified by:
        retainAll in interface java.util.Collection<Identifier>
        Specified by:
        retainAll in interface java.util.Set<Identifier>
        Returns:
        true if successful; false otherwise.
      • setRelations

        public void setRelations​(java.util.TreeSet<Identifier> relations)
        Setter for the field _relations.
        Parameters:
        relations - the _relations to set
      • size

        public int size()
        Get the size of the IdentifierRelation Collection.
        Specified by:
        size in interface java.util.Collection<Identifier>
        Specified by:
        size in interface java.util.Set<Identifier>
        Returns:
        size the size of the relation collection
        See Also:
        Set.size()
      • subSet

        public java.util.NavigableSet<Identifier> subSet​(Identifier fromElement,
                                                         boolean fromInclusive,
                                                         Identifier toElement,
                                                         boolean toInclusive)
        Parameters:
        fromElement - the 'from' identifier to match
        fromInclusive - if inclusive or not
        toElement - the 'to' identifier to match
        toInclusive - if inclusive or not
        Returns:
        NavigableSet of Identifier
        See Also:
        TreeSet.subSet(java.lang.Object, boolean, java.lang.Object, boolean)
      • subSet

        public java.util.SortedSet<Identifier> subSet​(Identifier fromElement,
                                                      Identifier toElement)
        Specified by:
        subSet in interface java.util.SortedSet<Identifier>
        Parameters:
        fromElement - the 'from' identifier to match
        toElement - the 'to' identifier to match
        Returns:
        SortedSet of Identifier
        See Also:
        TreeSet.subSet(java.lang.Object, java.lang.Object)
      • tailSet

        public java.util.SortedSet<Identifier> tailSet​(Identifier fromElement)
        Specified by:
        tailSet in interface java.util.SortedSet<Identifier>
        Parameters:
        fromElement - the 'from' identifier to match
        Returns:
        SortedSet of Identifier
        See Also:
        TreeSet.tailSet(java.lang.Object)
      • tailSet

        public java.util.NavigableSet<Identifier> tailSet​(Identifier fromElement,
                                                          boolean inclusive)
        Parameters:
        fromElement - the 'from' identifier to match
        inclusive - if inclusive or not
        Returns:
        NavigableSet of Identifier
        See Also:
        TreeSet.tailSet(java.lang.Object, boolean)
      • toArray

        public java.lang.Object[] toArray()
        Convert the Collection to an array of Objects.
        Specified by:
        toArray in interface java.util.Collection<Identifier>
        Specified by:
        toArray in interface java.util.Set<Identifier>
        Returns:
        Object[]
        See Also:
        Set.toArray()
      • toArray

        public <T> T[] toArray​(T[] a)
        Convert the Collection to an array of T objects.
        Specified by:
        toArray in interface java.util.Collection<Identifier>
        Specified by:
        toArray in interface java.util.Set<Identifier>
        Type Parameters:
        T - a T object.
        Parameters:
        a - an array of T objects.
        Returns:
        T[]