Enum GuavaLibrary

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private GuavaLibrary​(java.lang.String humanReadableFormat)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Optional<java.lang.Class<?>> arrayUtils​(javax.lang.model.type.TypeMirror elementType)
      Returns a type with an asList method suitable for an array of elementType elements, if one exists.
      boolean isAvailable()  
      private static java.lang.Class<?> primitiveUtils​(javax.lang.model.type.TypeMirror elementType)  
      java.lang.String toString()  
      static GuavaLibrary valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static GuavaLibrary[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • GuavaLibrary

        private GuavaLibrary​(java.lang.String humanReadableFormat)
    • Method Detail

      • values

        public static GuavaLibrary[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (GuavaLibrary c : GuavaLibrary.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static GuavaLibrary valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • isAvailable

        public boolean isAvailable()
      • primitiveUtils

        private static java.lang.Class<?> primitiveUtils​(javax.lang.model.type.TypeMirror elementType)
      • arrayUtils

        public java.util.Optional<java.lang.Class<?>> arrayUtils​(javax.lang.model.type.TypeMirror elementType)
        Returns a type with an asList method suitable for an array of elementType elements, if one exists.

        For non-primitive element types, this is just Arrays. For primitive element types, it will be one of the Guava utility classes like Ints, if Guava is available.

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Enum<GuavaLibrary>