Class UniqueUsage


  • public class UniqueUsage
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      UniqueUsage()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isUsed​(java.lang.Object object)  
      <T> T useOnceOrThrow​(T object)  
      <T> T useOnceOrThrow​(T object, java.lang.String message)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • UniqueUsage

        public UniqueUsage()
    • Method Detail

      • isUsed

        public boolean isUsed​(java.lang.Object object)
      • useOnceOrThrow

        public <T> T useOnceOrThrow​(T object,
                                    java.lang.String message)
      • useOnceOrThrow

        public <T> T useOnceOrThrow​(T object)