Package 

Class PTRHashSet

  • All Implemented Interfaces:

    
    public final class PTRHashSet<E extends Object>
    
                        

    Thread safe set class.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private Set<E> map
      private final Object lock
    • Constructor Summary

      Constructors 
      Constructor Description
      PTRHashSet()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Set<E> getMap()
      final Unit setMap(Set<E> map)
      final Object getLock()
      final Unit add(E e)
      final Unit remove(E e)
      final Unit clear()
      final Unit forEach(Function1<E, Unit> operator) For each pair in the map , operator is going to be invoked
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait