Class ImmutableNullabilityAnnotationInfo
- java.lang.Object
-
- org.immutables.value.processor.meta.NullabilityAnnotationInfo
-
- org.immutables.value.processor.meta.ImmutableNullabilityAnnotationInfo
-
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable final class ImmutableNullabilityAnnotationInfo extends NullabilityAnnotationInfoImmutable implementation ofNullabilityAnnotationInfo.Use the static factory method to create immutable instances:
ImmutableNullabilityAnnotationInfo.of().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private classImmutableNullabilityAnnotationInfo.InitShimprivate static classImmutableNullabilityAnnotationInfo.InternerHolderprivate static classImmutableNullabilityAnnotationInfo.InternProxy
-
Field Summary
Fields Modifier and Type Field Description private static longAS_LOCAL_PREFIX_LAZY_INIT_BITprivate static longAS_PREFIX_LAZY_INIT_BITprivate java.lang.StringasLocalPrefixprivate java.lang.StringasPrefixprivate javax.lang.model.element.TypeElementelementprivate ImmutableNullabilityAnnotationInfo.InitShiminitShimprivate longlazyInitBitmapprivate java.lang.StringqualifiedNameprivate java.lang.StringsimpleNameprivate static byteSTAGE_INITIALIZEDprivate static byteSTAGE_INITIALIZINGprivate static byteSTAGE_UNINITIALIZED
-
Constructor Summary
Constructors Modifier Constructor Description privateImmutableNullabilityAnnotationInfo(javax.lang.model.element.TypeElement element)privateImmutableNullabilityAnnotationInfo(ImmutableNullabilityAnnotationInfo original, javax.lang.model.element.TypeElement element)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) java.lang.StringasLocalPrefix()(package private) java.lang.StringasPrefix()static ImmutableNullabilityAnnotationInfocopyOf(NullabilityAnnotationInfo instance)Creates an immutable copy of aNullabilityAnnotationInfovalue.(package private) javax.lang.model.element.TypeElementelement()booleanequals(java.lang.Object another)This instance is equal to all instances ofImmutableNullabilityAnnotationInfothat have equal attribute values.private booleanequalTo(int synthetic, ImmutableNullabilityAnnotationInfo another)inthashCode()Computes a hash code from attributes:qualifiedName,simpleName.static ImmutableNullabilityAnnotationInfoof(javax.lang.model.element.TypeElement element)Construct a new immutableNullabilityAnnotationInfoinstance.(package private) java.lang.StringqualifiedName()(package private) java.lang.StringsimpleName()java.lang.StringtoString()Prints the immutable valueNullabilityAnnotationInfowith attribute values.private static ImmutableNullabilityAnnotationInfovalidate(ImmutableNullabilityAnnotationInfo instance)ImmutableNullabilityAnnotationInfowithElement(javax.lang.model.element.TypeElement value)Copy the current immutable object by setting a value for theelementattribute.-
Methods inherited from class org.immutables.value.processor.meta.NullabilityAnnotationInfo
asPrefixOriginal, forTypeUse, forTypeUse, isSynthetic
-
-
-
-
Field Detail
-
element
private final javax.lang.model.element.TypeElement element
-
qualifiedName
private final transient java.lang.String qualifiedName
-
simpleName
private final transient java.lang.String simpleName
-
STAGE_INITIALIZING
private static final byte STAGE_INITIALIZING
- See Also:
- Constant Field Values
-
STAGE_UNINITIALIZED
private static final byte STAGE_UNINITIALIZED
- See Also:
- Constant Field Values
-
STAGE_INITIALIZED
private static final byte STAGE_INITIALIZED
- See Also:
- Constant Field Values
-
initShim
private transient volatile ImmutableNullabilityAnnotationInfo.InitShim initShim
-
lazyInitBitmap
private transient volatile long lazyInitBitmap
-
AS_PREFIX_LAZY_INIT_BIT
private static final long AS_PREFIX_LAZY_INIT_BIT
- See Also:
- Constant Field Values
-
asPrefix
private transient java.lang.String asPrefix
-
AS_LOCAL_PREFIX_LAZY_INIT_BIT
private static final long AS_LOCAL_PREFIX_LAZY_INIT_BIT
- See Also:
- Constant Field Values
-
asLocalPrefix
private transient java.lang.String asLocalPrefix
-
-
Constructor Detail
-
ImmutableNullabilityAnnotationInfo
private ImmutableNullabilityAnnotationInfo(javax.lang.model.element.TypeElement element)
-
ImmutableNullabilityAnnotationInfo
private ImmutableNullabilityAnnotationInfo(ImmutableNullabilityAnnotationInfo original, javax.lang.model.element.TypeElement element)
-
-
Method Detail
-
element
javax.lang.model.element.TypeElement element()
- Specified by:
elementin classNullabilityAnnotationInfo- Returns:
- The value of the
elementattribute
-
qualifiedName
java.lang.String qualifiedName()
- Overrides:
qualifiedNamein classNullabilityAnnotationInfo- Returns:
- The computed-at-construction value of the
qualifiedNameattribute
-
simpleName
java.lang.String simpleName()
- Overrides:
simpleNamein classNullabilityAnnotationInfo- Returns:
- The computed-at-construction value of the
simpleNameattribute
-
withElement
public final ImmutableNullabilityAnnotationInfo withElement(javax.lang.model.element.TypeElement value)
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
public boolean equals(@Nullable java.lang.Object another)This instance is equal to all instances ofImmutableNullabilityAnnotationInfothat have equal attribute values. As instances of theImmutableNullabilityAnnotationInfoclass are interned, theequalsmethod is implemented as an efficient reference equality check.- Overrides:
equalsin classjava.lang.Object- Returns:
trueifthisis equal toanotherinstance
-
equalTo
private boolean equalTo(int synthetic, ImmutableNullabilityAnnotationInfo another)
-
hashCode
public int hashCode()
Computes a hash code from attributes:qualifiedName,simpleName.- Overrides:
hashCodein classjava.lang.Object- Returns:
- hashCode value
-
toString
public java.lang.String toString()
Prints the immutable valueNullabilityAnnotationInfowith attribute values.- Overrides:
toStringin classjava.lang.Object- Returns:
- A string representation of the value
-
asPrefix
java.lang.String asPrefix()
Returns a lazily initialized value of the
asPrefixattribute. 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:
asPrefixin classNullabilityAnnotationInfo- Returns:
- A lazily initialized value of the
asPrefixattribute
-
asLocalPrefix
java.lang.String asLocalPrefix()
Returns a lazily initialized value of the
asLocalPrefixattribute. 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:
asLocalPrefixin classNullabilityAnnotationInfo- Returns:
- A lazily initialized value of the
asLocalPrefixattribute
-
of
public static ImmutableNullabilityAnnotationInfo of(javax.lang.model.element.TypeElement element)
Construct a new immutableNullabilityAnnotationInfoinstance.- Parameters:
element- The value for theelementattribute- Returns:
- An immutable NullabilityAnnotationInfo instance
-
validate
private static ImmutableNullabilityAnnotationInfo validate(ImmutableNullabilityAnnotationInfo instance)
-
copyOf
public static ImmutableNullabilityAnnotationInfo copyOf(NullabilityAnnotationInfo instance)
Creates an immutable copy of aNullabilityAnnotationInfovalue. 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 NullabilityAnnotationInfo instance
-
-