Class SubSet

All Implemented Interfaces:
Serializable, Cloneable, Iterable, Collection, SequencedCollection, SequencedSet, Set

public class SubSet extends LinkedHashSet
Utility class that extends LinkedHashSet and has two more parameters, from and to
See Also:
  • Constructor Details

    • SubSet

      public SubSet()
      Creates a new instance of SubSet
    • SubSet

      public SubSet(Collection<?> set)
      Creates a new instance of SubSet
      Parameters:
      set - The set to add
  • Method Details

    • setFrom

      public void setFrom(long from)
      Sets the parameter from
      Parameters:
      from - The parameter from
    • setTo

      public void setTo(long to)
      Sets the parameter to
      Parameters:
      to - The parameter to
    • getFrom

      public long getFrom()
      Returns the parameter from
      Returns:
      The parameter from
    • getTo

      public long getTo()
      Returns the parameter to
      Returns:
      The parameter to
    • add

      public void add(String[] set)
      Adds the specified element to this set if it is not already present.
      Parameters:
      set - set to be added to this set
    • add

      public void add(String[] set, int from, int to)
      Adds the specified element to this set if it is not already present.
      Parameters:
      set - set to be added to this set
      from - The parameter from
      to - The parameter to
    • getLong

      public Long getLong(int i)
      Returns the long of the specified position in the set
      Parameters:
      i - The desired position
      Returns:
      The long of the specified position in the set