From 278bfc319cc905bdf150af814bb3461896b68444 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sun, 25 Oct 2015 13:35:25 -0400 Subject: Add version 1.3.1 site. --- .../sangria/core/PotentialAnnotation.html | 485 +++++++++++++++++++++ 1 file changed, 485 insertions(+) create mode 100644 1.3.1/apidocs/com/tavianator/sangria/core/PotentialAnnotation.html (limited to '1.3.1/apidocs/com/tavianator/sangria/core/PotentialAnnotation.html') diff --git a/1.3.1/apidocs/com/tavianator/sangria/core/PotentialAnnotation.html b/1.3.1/apidocs/com/tavianator/sangria/core/PotentialAnnotation.html new file mode 100644 index 0000000..8dd133c --- /dev/null +++ b/1.3.1/apidocs/com/tavianator/sangria/core/PotentialAnnotation.html @@ -0,0 +1,485 @@ + + + + + + +PotentialAnnotation (Sangria 1.3.1 API) + + + + + + + + +
+ + + + + + + +
+ + + +
+
com.tavianator.sangria.core
+

Class PotentialAnnotation

+
+
+ +
+
    +
  • +
    +
    +
    public abstract class PotentialAnnotation
    +extends Object
    +
    A record of stored annotations, perfect for builders with annotatedWith() methods.
    +
    +
    Since:
    +
    1.1
    +
    Version:
    +
    1.2
    +
    Author:
    +
    Tavian Barnes (tavianator@tavianator.com)
    +
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + + + + + +
        +
      • +

        from

        +
        public static PotentialAnnotation from(Key<?> key)
        +
        Extract the annotation from a Key.
        +
        +
        Parameters:
        +
        key - The Key whose annotation to use, if any.
        +
        Returns:
        +
        A PotentialAnnotation with the annotation from key.
        +
        Since:
        +
        1.2
        +
        +
      • +
      + + + + + + + + + + + +
        +
      • +

        hasAnnotation

        +
        public abstract boolean hasAnnotation()
        +
        +
        Returns:
        +
        Whether an annotation is present.
        +
        +
      • +
      + + + +
        +
      • +

        getKey

        +
        public <T> Key<T> getKey(Class<T> type)
        +
        Create a Key with the given type and the stored annotation.
        +
        +
        Type Parameters:
        +
        T - The type of the key to create.
        +
        Parameters:
        +
        type - The type of the key to create.
        +
        Returns:
        +
        A Key.
        +
        +
      • +
      + + + +
        +
      • +

        getKey

        +
        public abstract <T> Key<T> getKey(TypeLiteral<T> type)
        +
        Create a Key with the given type and the stored annotation.
        +
        +
        Type Parameters:
        +
        T - The type of the key to create.
        +
        Parameters:
        +
        type - The type of the key to create.
        +
        Returns:
        +
        A Key.
        +
        +
      • +
      + + + +
        +
      • +

        accept

        +
        public abstract <T> T accept(PotentialAnnotation.Visitor<T> visitor)
        + +
        +
        Type Parameters:
        +
        T - The type for the visitor to return.
        +
        Parameters:
        +
        visitor - The visitor to accept.
        +
        Returns:
        +
        The value produced by the visitor.
        +
        +
      • +
      + + + +
        +
      • +

        equals

        +
        public abstract boolean equals(Object o)
        +
        +
        Overrides:
        +
        equals in class Object
        +
        +
      • +
      + + + +
        +
      • +

        hashCode

        +
        public abstract int hashCode()
        +
        +
        Overrides:
        +
        hashCode in class Object
        +
        +
      • +
      + + + + +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + +

Copyright © 2014–2015. All rights reserved.

+ + -- cgit v1.2.3