Class ImmutableProto.DeclaringPackage
- Enclosing class:
ImmutableProto
Proto.DeclaringPackage.
Use the builder to create immutable instances:
ImmutableProto.DeclaringPackage.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeDeclaringPackage.private final class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final longprivate static final longprivate com.google.common.base.Optional<FIncludeMirror> private List<TypeElement> private static final longprivate com.google.common.base.Optional<DataMirror> private com.google.common.base.Optional<String[]> private static final longprivate final PackageElementprivate final Proto.Environmentprivate com.google.common.base.Optional<IncludeMirror> private static final longprivate static final longprivate List<TypeElement> private final Proto.Interningprivate static final longprivate static final longprivate static final longprivate static final longprivate static final longprivate booleanprivate booleanprivate booleanprivate booleanprivate booleanprivate static final longprivate Proto.JacksonModeprivate longprivate static final longprivate List<Proto.MetaAnnotated> private final Stringprivate static final longprivate com.google.common.base.Optional<Proto.DeclaringPackage> private static final longprivate com.google.common.base.Optional<OkTypeAdaptersMirror> private static final longprivate com.google.common.base.Optional<Long> private final Stringprivate static final byteprivate static final byteprivate static final byteprivate com.google.common.base.Optional<StyleInfo> private static final longprivate static final longprivate com.google.common.base.Optional<TypeAdaptersMirror> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateDeclaringPackage(Proto.Environment environment, Proto.Interning interner, PackageElement element) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forDeclaringPackage.protected com.google.common.base.Optional<FIncludeMirror> (package private) List<TypeElement> copyOf(Proto.DeclaringPackage instance) Creates an immutable copy of aProto.DeclaringPackagevalue.com.google.common.base.Optional<DataMirror> com.google.common.base.Optional<String[]> element()Element suitable for reporting as a source of declaration which might causing problems.(package private) Proto.EnvironmentbooleanThis instance is equal to all instances ofDeclaringPackagethat have equal attribute values.private booleanequalTo(int synthetic, ImmutableProto.DeclaringPackage another) inthashCode()Computes a hash code from attributes:name.protected com.google.common.base.Optional<IncludeMirror> include()(package private) List<TypeElement> (package private) Proto.Interninginterner()used to intern packaged created internallybooleanbooleanbooleanbooleanboolean(package private) List<Proto.MetaAnnotated> name()Name is the only equivalence attribute.(package private) com.google.common.base.Optional<Proto.DeclaringPackage> com.google.common.base.Optional<OkTypeAdaptersMirror> com.google.common.base.Optional<Long> com.google.common.base.Optional<StyleInfo> style()toString()Prints the immutable valueDeclaringPackagewith attribute values.com.google.common.base.Optional<TypeAdaptersMirror> withElement(PackageElement value) Copy the current immutable object by setting a value for theelementattribute.withEnvironment(Proto.Environment value) Copy the current immutable object by setting a value for theenvironmentattribute.withInterner(Proto.Interning value) Copy the current immutable object by setting a value for theinternerattribute.Methods inherited from class org.immutables.value.processor.meta.Proto.DeclaringPackage
collectEncodings, packageOfMethods inherited from class org.immutables.value.processor.meta.Proto.AbstractDeclaring
asPrefix, asType, getAnnotationInjectionsMethods inherited from class org.immutables.value.processor.meta.Proto.Diagnosable
processing, report
-
Field Details
-
environment
-
interner
-
element
-
simpleName
-
name
-
STAGE_INITIALIZING
private static final byte STAGE_INITIALIZING- See Also:
-
STAGE_UNINITIALIZED
private static final byte STAGE_UNINITIALIZED- See Also:
-
STAGE_INITIALIZED
private static final byte STAGE_INITIALIZED- See Also:
-
initShim
-
lazyInitBitmap
private transient volatile long lazyInitBitmap -
INCLUDE_LAZY_INIT_BIT
private static final long INCLUDE_LAZY_INIT_BIT- See Also:
-
include
-
BUILDER_INCLUDE_LAZY_INIT_BIT
private static final long BUILDER_INCLUDE_LAZY_INIT_BIT- See Also:
-
builderInclude
-
TYPE_ADAPTERS_LAZY_INIT_BIT
private static final long TYPE_ADAPTERS_LAZY_INIT_BIT- See Also:
-
typeAdapters
-
OK_TYPE_ADAPTERS_LAZY_INIT_BIT
private static final long OK_TYPE_ADAPTERS_LAZY_INIT_BIT- See Also:
-
okTypeAdapters
-
INCLUDED_TYPES_LAZY_INIT_BIT
private static final long INCLUDED_TYPES_LAZY_INIT_BIT- See Also:
-
includedTypes
-
BUILDER_INCLUDED_TYPES_LAZY_INIT_BIT
private static final long BUILDER_INCLUDED_TYPES_LAZY_INIT_BIT- See Also:
-
builderIncludedTypes
-
META_ANNOTATED_LAZY_INIT_BIT
private static final long META_ANNOTATED_LAZY_INIT_BIT- See Also:
-
metaAnnotated
-
JACKSON_SERIALIZE_MODE_LAZY_INIT_BIT
private static final long JACKSON_SERIALIZE_MODE_LAZY_INIT_BIT- See Also:
-
jacksonSerializeMode
-
IS_JACKSON_DESERIALIZED_ANNOTATED_LAZY_INIT_BIT
private static final long IS_JACKSON_DESERIALIZED_ANNOTATED_LAZY_INIT_BIT- See Also:
-
isJacksonDeserializedAnnotated
private transient boolean isJacksonDeserializedAnnotated -
NAMED_PARENT_PACKAGE_LAZY_INIT_BIT
private static final long NAMED_PARENT_PACKAGE_LAZY_INIT_BIT- See Also:
-
namedParentPackage
-
IS_JACKSON_SERIALIZED_LAZY_INIT_BIT
private static final long IS_JACKSON_SERIALIZED_LAZY_INIT_BIT- See Also:
-
isJacksonSerialized
private transient boolean isJacksonSerialized -
IS_JACKSON_DESERIALIZED_LAZY_INIT_BIT
private static final long IS_JACKSON_DESERIALIZED_LAZY_INIT_BIT- See Also:
-
isJacksonDeserialized
private transient boolean isJacksonDeserialized -
IS_JACKSON_JSON_TYPE_INFO_LAZY_INIT_BIT
private static final long IS_JACKSON_JSON_TYPE_INFO_LAZY_INIT_BIT- See Also:
-
isJacksonJsonTypeInfo
private transient boolean isJacksonJsonTypeInfo -
IS_SERIAL_STRUCTURAL_LAZY_INIT_BIT
private static final long IS_SERIAL_STRUCTURAL_LAZY_INIT_BIT- See Also:
-
isSerialStructural
private transient boolean isSerialStructural -
SERIAL_VERSION_LAZY_INIT_BIT
private static final long SERIAL_VERSION_LAZY_INIT_BIT- See Also:
-
serialVersion
-
STYLE_LAZY_INIT_BIT
private static final long STYLE_LAZY_INIT_BIT- See Also:
-
style
-
DEPLURALIZE_LAZY_INIT_BIT
private static final long DEPLURALIZE_LAZY_INIT_BIT- See Also:
-
depluralize
-
DATATYPE_ENABLED_LAZY_INIT_BIT
private static final long DATATYPE_ENABLED_LAZY_INIT_BIT- See Also:
-
datatypeEnabled
-
-
Constructor Details
-
DeclaringPackage
private DeclaringPackage(Proto.Environment environment, Proto.Interning interner, PackageElement element)
-
-
Method Details
-
environment
Proto.Environment environment()- Specified by:
environmentin classProto.Diagnosable- Returns:
- The value of the
environmentattribute
-
interner
Proto.Interning interner()used to intern packaged created internally- Specified by:
internerin classProto.AbstractDeclaring
-
element
Description copied from class:Proto.DiagnosableElement suitable for reporting as a source of declaration which might causing problems.- Specified by:
elementin classProto.DeclaringPackage- Returns:
- The value of the
elementattribute
-
simpleName
- Overrides:
simpleNamein classProto.DeclaringPackage- Returns:
- The computed-at-construction value of the
simpleNameattribute
-
name
Name is the only equivalence attribute. Basically packages are interned by name.- Overrides:
namein classProto.DeclaringPackage- Returns:
- package name
-
withEnvironment
Copy the current immutable object by setting a value for theenvironmentattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for environment- Returns:
- A modified copy of the
thisobject
-
withInterner
Copy the current immutable object by setting a value for theinternerattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for interner- Returns:
- A modified copy of the
thisobject
-
withElement
Copy the current immutable object by setting a value for theelementattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for element- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofDeclaringPackagethat have equal attribute values. -
equalTo
-
hashCode
public int hashCode()Computes a hash code from attributes:name. -
toString
Prints the immutable valueDeclaringPackagewith attribute values. -
include
Returns a lazily initialized value of the
includeattribute. 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:
includein classProto.AbstractDeclaring- Returns:
- A lazily initialized value of the
includeattribute
-
builderInclude
Returns a lazily initialized value of the
builderIncludeattribute. 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:
builderIncludein classProto.AbstractDeclaring- Returns:
- A lazily initialized value of the
builderIncludeattribute
-
typeAdapters
Returns a lazily initialized value of the
typeAdaptersattribute. 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:
typeAdaptersin classProto.AbstractDeclaring- Returns:
- A lazily initialized value of the
typeAdaptersattribute
-
okTypeAdapters
Returns a lazily initialized value of the
okTypeAdaptersattribute. 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:
okTypeAdaptersin classProto.AbstractDeclaring- Returns:
- A lazily initialized value of the
okTypeAdaptersattribute
-
includedTypes
List<TypeElement> includedTypes()Returns a lazily initialized value of the
includedTypesattribute. 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:
includedTypesin classProto.AbstractDeclaring- Returns:
- A lazily initialized value of the
includedTypesattribute
-
builderIncludedTypes
List<TypeElement> builderIncludedTypes()Returns a lazily initialized value of the
builderIncludedTypesattribute. 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:
builderIncludedTypesin classProto.AbstractDeclaring- Returns:
- A lazily initialized value of the
builderIncludedTypesattribute
-
metaAnnotated
List<Proto.MetaAnnotated> metaAnnotated()Returns a lazily initialized value of the
metaAnnotatedattribute. 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:
metaAnnotatedin classProto.AbstractDeclaring- Returns:
- A lazily initialized value of the
metaAnnotatedattribute
-
jacksonSerializeMode
Returns a lazily initialized value of the
jacksonSerializeModeattribute. 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:
jacksonSerializeModein classProto.AbstractDeclaring- Returns:
- A lazily initialized value of the
jacksonSerializeModeattribute
-
isJacksonDeserializedAnnotated
public boolean isJacksonDeserializedAnnotated()Returns a lazily initialized value of the
isJacksonDeserializedAnnotatedattribute. 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:
isJacksonDeserializedAnnotatedin classProto.AbstractDeclaring- Returns:
- A lazily initialized value of the
isJacksonDeserializedAnnotatedattribute
-
namedParentPackage
com.google.common.base.Optional<Proto.DeclaringPackage> namedParentPackage()Returns a lazily initialized value of the
namedParentPackageattribute. 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:
namedParentPackagein classProto.DeclaringPackage- Returns:
- A lazily initialized value of the
namedParentPackageattribute
-
isJacksonSerialized
public boolean isJacksonSerialized()Returns a lazily initialized value of the
isJacksonSerializedattribute. 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:
isJacksonSerializedin classProto.DeclaringPackage- Returns:
- A lazily initialized value of the
isJacksonSerializedattribute
-
isJacksonDeserialized
public boolean isJacksonDeserialized()Returns a lazily initialized value of the
isJacksonDeserializedattribute. 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:
isJacksonDeserializedin classProto.DeclaringPackage- Returns:
- A lazily initialized value of the
isJacksonDeserializedattribute
-
isJacksonJsonTypeInfo
public boolean isJacksonJsonTypeInfo()Returns a lazily initialized value of the
isJacksonJsonTypeInfoattribute. 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:
isJacksonJsonTypeInfoin classProto.DeclaringPackage- Returns:
- A lazily initialized value of the
isJacksonJsonTypeInfoattribute
-
isSerialStructural
public boolean isSerialStructural()Returns a lazily initialized value of the
isSerialStructuralattribute. 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:
isSerialStructuralin classProto.DeclaringPackage- Returns:
- A lazily initialized value of the
isSerialStructuralattribute
-
serialVersion
Returns a lazily initialized value of the
serialVersionattribute. 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:
serialVersionin classProto.DeclaringPackage- Returns:
- A lazily initialized value of the
serialVersionattribute
-
style
Returns a lazily initialized value of the
styleattribute. 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:
stylein classProto.DeclaringPackage- Returns:
- A lazily initialized value of the
styleattribute
-
depluralize
Returns a lazily initialized value of the
depluralizeattribute. 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:
depluralizein classProto.DeclaringPackage- Returns:
- A lazily initialized value of the
depluralizeattribute
-
datatypeEnabled
Returns a lazily initialized value of the
datatypeEnabledattribute. 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:
datatypeEnabledin classProto.DeclaringPackage- Returns:
- A lazily initialized value of the
datatypeEnabledattribute
-
copyOf
Creates an immutable copy of aProto.DeclaringPackagevalue. 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 DeclaringPackage instance
-
builder
Creates a builder forDeclaringPackage.ImmutableProto.DeclaringPackage.builder() .environment(org.immutables.value.processor.meta.Proto.Environment) // requiredenvironment.interner(org.immutables.value.processor.meta.Proto.Interning) // requiredinterner.element(javax.lang.model.element.PackageElement) // requiredelement.build();- Returns:
- A new DeclaringPackage builder
-