Package io.dialob.security.uaa.spi.model
Class ImmutableUaaMeta
- java.lang.Object
-
- io.dialob.security.uaa.spi.model.ImmutableUaaMeta
-
- All Implemented Interfaces:
UaaMeta
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable public final class ImmutableUaaMeta extends Object implements UaaMeta
Immutable implementation ofUaaMeta.Use the builder to create immutable instances:
ImmutableUaaMeta.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableUaaMeta.BuilderBuilds instances of typeImmutableUaaMeta.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableUaaMeta.Builderbuilder()Creates a builder forImmutableUaaMeta.static ImmutableUaaMetacopyOf(UaaMeta instance)Creates an immutable copy of aUaaMetavalue.booleanequals(Object another)This instance is equal to all instances ofImmutableUaaMetathat have equal attribute values.OffsetDateTimegetCreated()OffsetDateTimegetLastModified()IntegergetVersion()inthashCode()Computes a hash code from attributes:version,created,lastModified.StringtoString()Prints the immutable valueUaaMetawith attribute values.ImmutableUaaMetawithCreated(OffsetDateTime value)Copy the current immutable object by setting a value for thecreatedattribute.ImmutableUaaMetawithLastModified(OffsetDateTime value)Copy the current immutable object by setting a value for thelastModifiedattribute.ImmutableUaaMetawithVersion(Integer value)Copy the current immutable object by setting a value for theversionattribute.
-
-
-
Method Detail
-
getVersion
public Integer getVersion()
- Specified by:
getVersionin interfaceUaaMeta- Returns:
- The value of the
versionattribute
-
getCreated
public OffsetDateTime getCreated()
- Specified by:
getCreatedin interfaceUaaMeta- Returns:
- The value of the
createdattribute
-
getLastModified
public OffsetDateTime getLastModified()
- Specified by:
getLastModifiedin interfaceUaaMeta- Returns:
- The value of the
lastModifiedattribute
-
withVersion
public final ImmutableUaaMeta withVersion(Integer value)
Copy the current immutable object by setting a value for theversionattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for version (can benull)- Returns:
- A modified copy of the
thisobject
-
withCreated
public final ImmutableUaaMeta withCreated(OffsetDateTime value)
Copy the current immutable object by setting a value for thecreatedattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for created (can benull)- Returns:
- A modified copy of the
thisobject
-
withLastModified
public final ImmutableUaaMeta withLastModified(OffsetDateTime value)
Copy the current immutable object by setting a value for thelastModifiedattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for lastModified (can benull)- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableUaaMetathat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:version,created,lastModified.
-
toString
public String toString()
Prints the immutable valueUaaMetawith attribute values.
-
copyOf
public static ImmutableUaaMeta copyOf(UaaMeta instance)
Creates an immutable copy of aUaaMetavalue. 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 UaaMeta instance
-
builder
public static ImmutableUaaMeta.Builder builder()
Creates a builder forImmutableUaaMeta.ImmutableUaaMeta.builder() .version(Integer | null) // nullableversion.created(java.time.OffsetDateTime | null) // nullablecreated.lastModified(java.time.OffsetDateTime | null) // nullablelastModified.build();- Returns:
- A new ImmutableUaaMeta builder
-
-