Class UniqueAnnotations


  • public class UniqueAnnotations
    extends java.lang.Object
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      (package private) static interface  UniqueAnnotations.Internal  
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.util.concurrent.atomic.AtomicInteger nextUniqueValue  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private UniqueAnnotations()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.annotation.Annotation create()
      Returns an annotation instance that is not equal to any other annotation instances, for use in creating distinct Keys.
      (package private) static java.lang.annotation.Annotation create​(int value)  
      • Methods inherited from class java.lang.Object

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

      • nextUniqueValue

        private static final java.util.concurrent.atomic.AtomicInteger nextUniqueValue
    • Constructor Detail

      • UniqueAnnotations

        private UniqueAnnotations()
    • Method Detail

      • create

        public static java.lang.annotation.Annotation create()
        Returns an annotation instance that is not equal to any other annotation instances, for use in creating distinct Keys.
      • create

        static java.lang.annotation.Annotation create​(int value)