Class ImmutableProto.Environment

java.lang.Object
org.immutables.value.processor.meta.Proto.Environment
org.immutables.value.processor.meta.ImmutableProto.Environment
Enclosing class:
ImmutableProto

@Immutable public static final class ImmutableProto.Environment extends Proto.Environment
Immutable implementation of Proto.Environment.

Use the builder to create immutable instances: ImmutableProto.Environment.builder(). Use the static factory method to create immutable instances: ImmutableProto.Environment.of().

  • Field Details

    • processing

      private final ProcessingEnvironment processing
    • round

      private final Round round
    • defaultStyles

      private final transient StyleInfo defaultStyles
    • lazyInitBitmap

      private transient volatile long lazyInitBitmap
    • TYPE_MORE_OBJECTS_LAZY_INIT_BIT

      private static final long TYPE_MORE_OBJECTS_LAZY_INIT_BIT
      See Also:
    • typeMoreObjects

      private transient String typeMoreObjects
    • HAS_OK_JSON_LIB_LAZY_INIT_BIT

      private static final long HAS_OK_JSON_LIB_LAZY_INIT_BIT
      See Also:
    • hasOkJsonLib

      private transient boolean hasOkJsonLib
    • HAS_GSON_LIB_LAZY_INIT_BIT

      private static final long HAS_GSON_LIB_LAZY_INIT_BIT
      See Also:
    • hasGsonLib

      private transient boolean hasGsonLib
    • HAS_DATATYPES_MODULE_LAZY_INIT_BIT

      private static final long HAS_DATATYPES_MODULE_LAZY_INIT_BIT
      See Also:
    • hasDatatypesModule

      private transient boolean hasDatatypesModule
    • HAS_JACKSON_LIB_LAZY_INIT_BIT

      private static final long HAS_JACKSON_LIB_LAZY_INIT_BIT
      See Also:
    • hasJacksonLib

      private transient boolean hasJacksonLib
    • HAS_CRITERIA_MODULE_LAZY_INIT_BIT

      private static final long HAS_CRITERIA_MODULE_LAZY_INIT_BIT
      See Also:
    • hasCriteriaModule

      private transient boolean hasCriteriaModule
    • HAS_MONGO_MODULE_LAZY_INIT_BIT

      private static final long HAS_MONGO_MODULE_LAZY_INIT_BIT
      See Also:
    • hasMongoModule

      private transient boolean hasMongoModule
    • HAS_SERIAL_MODULE_LAZY_INIT_BIT

      private static final long HAS_SERIAL_MODULE_LAZY_INIT_BIT
      See Also:
    • hasSerialModule

      private transient boolean hasSerialModule
    • HAS_TREES_MODULE_LAZY_INIT_BIT

      private static final long HAS_TREES_MODULE_LAZY_INIT_BIT
      See Also:
    • hasTreesModule

      private transient boolean hasTreesModule
    • HAS_AST_MODULE_LAZY_INIT_BIT

      private static final long HAS_AST_MODULE_LAZY_INIT_BIT
      See Also:
    • hasAstModule

      private transient boolean hasAstModule
    • HAS_ORDINAL_MODULE_LAZY_INIT_BIT

      private static final long HAS_ORDINAL_MODULE_LAZY_INIT_BIT
      See Also:
    • hasOrdinalModule

      private transient boolean hasOrdinalModule
    • HAS_BUILDER_MODULE_LAZY_INIT_BIT

      private static final long HAS_BUILDER_MODULE_LAZY_INIT_BIT
      See Also:
    • hasBuilderModule

      private transient boolean hasBuilderModule
    • HAS_FUNC_MODULE_LAZY_INIT_BIT

      private static final long HAS_FUNC_MODULE_LAZY_INIT_BIT
      See Also:
    • hasFuncModule

      private transient boolean hasFuncModule
    • HAS_ENCODE_MODULE_LAZY_INIT_BIT

      private static final long HAS_ENCODE_MODULE_LAZY_INIT_BIT
      See Also:
    • hasEncodeModule

      private transient boolean hasEncodeModule
    • HAS_ANNOTATE_MODULE_LAZY_INIT_BIT

      private static final long HAS_ANNOTATE_MODULE_LAZY_INIT_BIT
      See Also:
    • hasAnnotateModule

      private transient boolean hasAnnotateModule
    • HAS_JAVA9_COLLECTIONS_LAZY_INIT_BIT

      private static final long HAS_JAVA9_COLLECTIONS_LAZY_INIT_BIT
      See Also:
    • hasJava9Collections

      private transient boolean hasJava9Collections
    • DEFAULT_TYPE_ADAPTERS_LAZY_INIT_BIT

      private static final long DEFAULT_TYPE_ADAPTERS_LAZY_INIT_BIT
      See Also:
    • defaultTypeAdapters

      private transient TypeAdaptersMirror defaultTypeAdapters
    • CHECKED_EXCEPTION_PROBE_LAZY_INIT_BIT

      private static final long CHECKED_EXCEPTION_PROBE_LAZY_INIT_BIT
      See Also:
    • checkedExceptionProbe

      private transient CheckedExceptionProbe checkedExceptionProbe
  • Constructor Details

  • Method Details

    • processing

      ProcessingEnvironment processing()
      Specified by:
      processing in class Proto.Environment
      Returns:
      The value of the processing attribute
    • round

      Round round()
      Specified by:
      round in class Proto.Environment
      Returns:
      The value of the round attribute
    • defaultStyles

      StyleInfo defaultStyles()
      Overrides:
      defaultStyles in class Proto.Environment
      Returns:
      The computed-at-construction value of the defaultStyles attribute
    • withProcessing

      public final ImmutableProto.Environment withProcessing(ProcessingEnvironment value)
      Copy the current immutable object by setting a value for the processing attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for processing
      Returns:
      A modified copy of the this object
    • withRound

      public final ImmutableProto.Environment withRound(Round value)
      Copy the current immutable object by setting a value for the round attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for round
      Returns:
      A modified copy of the this object
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of Environment that have equal attribute values.
      Overrides:
      equals in class Object
      Returns:
      true if this is equal to another instance
    • equalTo

      private boolean equalTo(int synthetic, ImmutableProto.Environment another)
    • hashCode

      public int hashCode()
      Computes a hash code from attributes: processing, round, defaultStyles.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

      public String toString()
      Prints the immutable value Environment with attribute values.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the value
    • typeMoreObjects

      String typeMoreObjects()
      Try to find Guava's object util classes if they're available. First lookup for base.MoreObjects then base.Objects. Return null if not found.

      Returns a lazily initialized value of the typeMoreObjects attribute. Initialized once and only once and stored for subsequent access with proper synchronization. In case of any exception or error thrown by the lazy value initializer, the result will not be memoised (i.e. remembered) and on next call computation will be attempted again.

      Overrides:
      typeMoreObjects in class Proto.Environment
      Returns:
      A lazily initialized value of the typeMoreObjects attribute
    • hasOkJsonLib

      public boolean hasOkJsonLib()

      Returns a lazily initialized value of the hasOkJsonLib attribute. Initialized once and only once and stored for subsequent access with proper synchronization. In case of any exception or error thrown by the lazy value initializer, the result will not be memoised (i.e. remembered) and on next call computation will be attempted again.

      Overrides:
      hasOkJsonLib in class Proto.Environment
      Returns:
      A lazily initialized value of the hasOkJsonLib attribute
    • hasGsonLib

      public boolean hasGsonLib()

      Returns a lazily initialized value of the hasGsonLib attribute. Initialized once and only once and stored for subsequent access with proper synchronization. In case of any exception or error thrown by the lazy value initializer, the result will not be memoised (i.e. remembered) and on next call computation will be attempted again.

      Overrides:
      hasGsonLib in class Proto.Environment
      Returns:
      A lazily initialized value of the hasGsonLib attribute
    • hasDatatypesModule

      public boolean hasDatatypesModule()

      Returns a lazily initialized value of the hasDatatypesModule attribute. Initialized once and only once and stored for subsequent access with proper synchronization. In case of any exception or error thrown by the lazy value initializer, the result will not be memoised (i.e. remembered) and on next call computation will be attempted again.

      Overrides:
      hasDatatypesModule in class Proto.Environment
      Returns:
      A lazily initialized value of the hasDatatypesModule attribute
    • hasJacksonLib

      public boolean hasJacksonLib()

      Returns a lazily initialized value of the hasJacksonLib attribute. Initialized once and only once and stored for subsequent access with proper synchronization. In case of any exception or error thrown by the lazy value initializer, the result will not be memoised (i.e. remembered) and on next call computation will be attempted again.

      Overrides:
      hasJacksonLib in class Proto.Environment
      Returns:
      A lazily initialized value of the hasJacksonLib attribute
    • hasCriteriaModule

      public boolean hasCriteriaModule()

      Returns a lazily initialized value of the hasCriteriaModule attribute. Initialized once and only once and stored for subsequent access with proper synchronization. In case of any exception or error thrown by the lazy value initializer, the result will not be memoised (i.e. remembered) and on next call computation will be attempted again.

      Overrides:
      hasCriteriaModule in class Proto.Environment
      Returns:
      A lazily initialized value of the hasCriteriaModule attribute
    • hasMongoModule

      public boolean hasMongoModule()

      Returns a lazily initialized value of the hasMongoModule attribute. Initialized once and only once and stored for subsequent access with proper synchronization. In case of any exception or error thrown by the lazy value initializer, the result will not be memoised (i.e. remembered) and on next call computation will be attempted again.

      Overrides:
      hasMongoModule in class Proto.Environment
      Returns:
      A lazily initialized value of the hasMongoModule attribute
    • hasSerialModule

      public boolean hasSerialModule()

      Returns a lazily initialized value of the hasSerialModule attribute. Initialized once and only once and stored for subsequent access with proper synchronization. In case of any exception or error thrown by the lazy value initializer, the result will not be memoised (i.e. remembered) and on next call computation will be attempted again.

      Overrides:
      hasSerialModule in class Proto.Environment
      Returns:
      A lazily initialized value of the hasSerialModule attribute
    • hasTreesModule

      public boolean hasTreesModule()

      Returns a lazily initialized value of the hasTreesModule attribute. Initialized once and only once and stored for subsequent access with proper synchronization. In case of any exception or error thrown by the lazy value initializer, the result will not be memoised (i.e. remembered) and on next call computation will be attempted again.

      Overrides:
      hasTreesModule in class Proto.Environment
      Returns:
      A lazily initialized value of the hasTreesModule attribute
    • hasAstModule

      public boolean hasAstModule()

      Returns a lazily initialized value of the hasAstModule attribute. Initialized once and only once and stored for subsequent access with proper synchronization. In case of any exception or error thrown by the lazy value initializer, the result will not be memoised (i.e. remembered) and on next call computation will be attempted again.

      Overrides:
      hasAstModule in class Proto.Environment
      Returns:
      A lazily initialized value of the hasAstModule attribute
    • hasOrdinalModule

      public boolean hasOrdinalModule()

      Returns a lazily initialized value of the hasOrdinalModule attribute. Initialized once and only once and stored for subsequent access with proper synchronization. In case of any exception or error thrown by the lazy value initializer, the result will not be memoised (i.e. remembered) and on next call computation will be attempted again.

      Overrides:
      hasOrdinalModule in class Proto.Environment
      Returns:
      A lazily initialized value of the hasOrdinalModule attribute
    • hasBuilderModule

      public boolean hasBuilderModule()

      Returns a lazily initialized value of the hasBuilderModule attribute. Initialized once and only once and stored for subsequent access with proper synchronization. In case of any exception or error thrown by the lazy value initializer, the result will not be memoised (i.e. remembered) and on next call computation will be attempted again.

      Overrides:
      hasBuilderModule in class Proto.Environment
      Returns:
      A lazily initialized value of the hasBuilderModule attribute
    • hasFuncModule

      public boolean hasFuncModule()

      Returns a lazily initialized value of the hasFuncModule attribute. Initialized once and only once and stored for subsequent access with proper synchronization. In case of any exception or error thrown by the lazy value initializer, the result will not be memoised (i.e. remembered) and on next call computation will be attempted again.

      Overrides:
      hasFuncModule in class Proto.Environment
      Returns:
      A lazily initialized value of the hasFuncModule attribute
    • hasEncodeModule

      public boolean hasEncodeModule()

      Returns a lazily initialized value of the hasEncodeModule attribute. Initialized once and only once and stored for subsequent access with proper synchronization. In case of any exception or error thrown by the lazy value initializer, the result will not be memoised (i.e. remembered) and on next call computation will be attempted again.

      Overrides:
      hasEncodeModule in class Proto.Environment
      Returns:
      A lazily initialized value of the hasEncodeModule attribute
    • hasAnnotateModule

      public boolean hasAnnotateModule()

      Returns a lazily initialized value of the hasAnnotateModule attribute. Initialized once and only once and stored for subsequent access with proper synchronization. In case of any exception or error thrown by the lazy value initializer, the result will not be memoised (i.e. remembered) and on next call computation will be attempted again.

      Overrides:
      hasAnnotateModule in class Proto.Environment
      Returns:
      A lazily initialized value of the hasAnnotateModule attribute
    • hasJava9Collections

      public boolean hasJava9Collections()

      Returns a lazily initialized value of the hasJava9Collections attribute. Initialized once and only once and stored for subsequent access with proper synchronization. In case of any exception or error thrown by the lazy value initializer, the result will not be memoised (i.e. remembered) and on next call computation will be attempted again.

      Overrides:
      hasJava9Collections in class Proto.Environment
      Returns:
      A lazily initialized value of the hasJava9Collections attribute
    • defaultTypeAdapters

      TypeAdaptersMirror defaultTypeAdapters()
      Default type adapters should only be called if Gson.TypeAdapters annotation is definitely in classpath. Currently, it is called by for mongo repository module, which have gson module as a transitive dependency.

      Returns a lazily initialized value of the defaultTypeAdapters attribute. Initialized once and only once and stored for subsequent access with proper synchronization. In case of any exception or error thrown by the lazy value initializer, the result will not be memoised (i.e. remembered) and on next call computation will be attempted again.

      Overrides:
      defaultTypeAdapters in class Proto.Environment
      Returns:
      A lazily initialized value of the defaultTypeAdapters attribute
    • checkedExceptionProbe

      CheckedExceptionProbe checkedExceptionProbe()

      Returns a lazily initialized value of the checkedExceptionProbe attribute. Initialized once and only once and stored for subsequent access with proper synchronization. In case of any exception or error thrown by the lazy value initializer, the result will not be memoised (i.e. remembered) and on next call computation will be attempted again.

      Overrides:
      checkedExceptionProbe in class Proto.Environment
      Returns:
      A lazily initialized value of the checkedExceptionProbe attribute
    • of

      public static ImmutableProto.Environment of(ProcessingEnvironment processing, Round round)
      Construct a new immutable Environment instance.
      Parameters:
      processing - The value for the processing attribute
      round - The value for the round attribute
      Returns:
      An immutable Environment instance
    • copyOf

      public static ImmutableProto.Environment copyOf(Proto.Environment instance)
      Creates an immutable copy of a Proto.Environment value. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.
      Parameters:
      instance - The instance to copy
      Returns:
      A copied immutable Environment instance
    • builder

      public static ImmutableProto.Environment.Builder builder()
      Creates a builder for Environment.
       ImmutableProto.Environment.builder()
          .processing(javax.annotation.processing.ProcessingEnvironment) // required processing
          .round(org.immutables.value.processor.meta.Round) // required round
          .build();
       
      Returns:
      A new Environment builder