Package io.dialob.security.uaa.spi.model
Class ImmutableUaaUser.Group
- java.lang.Object
-
- io.dialob.security.uaa.spi.model.ImmutableUaaUser.Group
-
- All Implemented Interfaces:
UaaUser.Group
- Enclosing class:
- ImmutableUaaUser
@Immutable public static final class ImmutableUaaUser.Group extends Object implements UaaUser.Group
Immutable implementation ofUaaUser.Group.Use the builder to create immutable instances:
ImmutableUaaUser.Group.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableUaaUser.Group.BuilderBuilds instances of typeGroup.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableUaaUser.Group.Builderbuilder()Creates a builder forGroup.static ImmutableUaaUser.GroupcopyOf(UaaUser.Group instance)Creates an immutable copy of aUaaUser.Groupvalue.booleanequals(Object another)This instance is equal to all instances ofGroupthat have equal attribute values.StringgetDisplay()StringgetType()StringgetValue()inthashCode()Computes a hash code from attributes:value,display,type.StringtoString()Prints the immutable valueGroupwith attribute values.ImmutableUaaUser.GroupwithDisplay(String value)Copy the current immutable object by setting a value for thedisplayattribute.ImmutableUaaUser.GroupwithType(String value)Copy the current immutable object by setting a value for thetypeattribute.ImmutableUaaUser.GroupwithValue(String value)Copy the current immutable object by setting a value for thevalueattribute.
-
-
-
Method Detail
-
getValue
public String getValue()
- Specified by:
getValuein interfaceUaaUser.Group- Returns:
- The value of the
valueattribute
-
getDisplay
public String getDisplay()
- Specified by:
getDisplayin interfaceUaaUser.Group- Returns:
- The value of the
displayattribute
-
getType
public String getType()
- Specified by:
getTypein interfaceUaaUser.Group- Returns:
- The value of the
typeattribute
-
withValue
public final ImmutableUaaUser.Group withValue(String value)
Copy the current immutable object by setting a value for thevalueattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for value (can benull)- Returns:
- A modified copy of the
thisobject
-
withDisplay
public final ImmutableUaaUser.Group withDisplay(String value)
Copy the current immutable object by setting a value for thedisplayattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for display (can benull)- Returns:
- A modified copy of the
thisobject
-
withType
public final ImmutableUaaUser.Group withType(String value)
Copy the current immutable object by setting a value for thetypeattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for type (can benull)- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofGroupthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:value,display,type.
-
toString
public String toString()
Prints the immutable valueGroupwith attribute values.
-
copyOf
public static ImmutableUaaUser.Group copyOf(UaaUser.Group instance)
Creates an immutable copy of aUaaUser.Groupvalue. 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 Group instance
-
builder
public static ImmutableUaaUser.Group.Builder builder()
Creates a builder forGroup.ImmutableUaaUser.Group.builder() .value(String | null) // nullablevalue.display(String | null) // nullabledisplay.type(String | null) // nullabletype.build();- Returns:
- A new Group builder
-
-