java.lang.Object
speiger.src.collections.doubles.utils.DoubleSets

public class DoubleSets extends Object
A Helper class for sets
  • Konstruktordetails

    • DoubleSets

      public DoubleSets()
  • Methodendetails

    • empty

      public static DoubleSet empty()
      EmptySet getter
      Gibt zurück:
      a EmptySet
    • synchronize

      public static DoubleSet synchronize(DoubleSet s)
      Creates a Synchronized set while preserving the ITrimmable interface
      Parameter:
      s - the set that should be synchronized
      Gibt zurück:
      a set that is synchronized
      Note:
      if the set is already synchronized then it will just self return it
    • synchronize

      public static DoubleSet synchronize(DoubleSet s, Object mutex)
      Creates a Synchronized set while preserving the ITrimmable interface
      Parameter:
      s - the set that should be synchronized
      mutex - controller for access
      Gibt zurück:
      a set that is synchronized
      Note:
      if the set is already synchronized then it will just self return it
    • synchronize

      public static DoubleSortedSet synchronize(DoubleSortedSet s)
      Creates a Synchronized SortedSet while preserving the ITrimmable interface
      Parameter:
      s - the set that should be synchronized
      Gibt zurück:
      a SortedSet that is synchronized
      Note:
      if the set is already synchronized then it will just self return it
    • synchronize

      public static DoubleSortedSet synchronize(DoubleSortedSet s, Object mutex)
      Creates a Synchronized SortedSet while preserving the ITrimmable interface
      Parameter:
      s - the set that should be synchronized
      mutex - controller for access
      Gibt zurück:
      a SortedSet that is synchronized
      Note:
      if the set is already synchronized then it will just self return it
    • synchronize

      public static DoubleOrderedSet synchronize(DoubleOrderedSet s)
      Creates a Synchronized OrderedSet while preserving the ITrimmable interface
      Parameter:
      s - the set that should be synchronized
      Gibt zurück:
      a OrderedSet that is synchronized
      Note:
      if the set is already synchronized then it will just self return it
    • synchronize

      public static DoubleOrderedSet synchronize(DoubleOrderedSet s, Object mutex)
      Creates a Synchronized OrderedSet while preserving the ITrimmable interface
      Parameter:
      s - the set that should be synchronized
      mutex - controller for access
      Gibt zurück:
      a OrderedSet that is synchronized
      Note:
      if the set is already synchronized then it will just self return it
    • synchronize

      public static DoubleNavigableSet synchronize(DoubleNavigableSet s)
      Creates a Synchronized NavigableSet while preserving the ITrimmable interface
      Parameter:
      s - the set that should be synchronized
      Gibt zurück:
      a NavigableSet that is synchronized
      Note:
      if the set is already synchronized then it will just self return it
    • synchronize

      public static DoubleNavigableSet synchronize(DoubleNavigableSet s, Object mutex)
      Creates a Synchronized NavigableSet while preserving the ITrimmable interface
      Parameter:
      s - the set that should be synchronized
      mutex - controller for access
      Gibt zurück:
      a NavigableSet that is synchronized
      Note:
      if the set is already synchronized then it will just self return it
    • unmodifiable

      public static DoubleSet unmodifiable(DoubleSet s)
      Creates Unmodifyable Set wrapper
      Parameter:
      s - set that should be made unmodifiable
      Gibt zurück:
      a UnmodifyableSet, if the set is already unmodifiable then it returns itself
    • unmodifiable

      public static DoubleSortedSet unmodifiable(DoubleSortedSet s)
      Creates Unmodifyable SortedSet wrapper
      Parameter:
      s - sortedSet that should be made unmodifiable
      Gibt zurück:
      a UnmodifyableSortedSet, if the set is already unmodifiable then it returns itself
    • unmodifiable

      public static DoubleOrderedSet unmodifiable(DoubleOrderedSet s)
      Creates Unmodifyable OrderedSet wrapper
      Parameter:
      s - OrderedSet that should be made unmodifiable
      Gibt zurück:
      a UnmodifyableOrderedSet, if the set is already unmodifiable then it returns itself
    • unmodifiable

      public static DoubleNavigableSet unmodifiable(DoubleNavigableSet s)
      Creates Unmodifyable NavigableSet wrapper
      Parameter:
      s - navigableSet that should be made unmodifiable
      Gibt zurück:
      a UnmodifyableNavigableSet, if the set is already unmodifiable then it returns itself
    • singleton

      public static DoubleSet singleton(double element)
      Creates a Singleton set of a given element
      Parameter:
      element - the element that should be converted into a singleton set
      Gibt zurück:
      a singletonset of the given element