Package io.dialob.security.uaa.spi.model
Class ImmutableUaaGroupList
- java.lang.Object
-
- io.dialob.security.uaa.spi.model.ImmutableUaaGroupList
-
- All Implemented Interfaces:
UaaGroupList,UaaList<UaaGroup>
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable public final class ImmutableUaaGroupList extends Object implements UaaGroupList
Immutable implementation ofUaaGroupList.Use the builder to create immutable instances:
ImmutableUaaGroupList.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableUaaGroupList.BuilderBuilds instances of typeImmutableUaaGroupList.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableUaaGroupList.Builderbuilder()Creates a builder forImmutableUaaGroupList.static ImmutableUaaGroupListcopyOf(UaaGroupList instance)Creates an immutable copy of aUaaGroupListvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableUaaGroupListthat have equal attribute values.IntegergetItemsPerPage()List<UaaGroup>getResources()List<String>getSchemas()IntegergetStartIndex()IntegergetTotalResults()inthashCode()Computes a hash code from attributes:resources,startIndex,itemsPerPage,totalResults,schemas.StringtoString()Prints the immutable valueUaaGroupListwith attribute values.ImmutableUaaGroupListwithItemsPerPage(Integer value)Copy the current immutable object by setting a value for theitemsPerPageattribute.ImmutableUaaGroupListwithResources(UaaGroup... elements)Copy the current immutable object with elements that replace the content ofresources.ImmutableUaaGroupListwithResources(Iterable<? extends UaaGroup> elements)Copy the current immutable object with elements that replace the content ofresources.ImmutableUaaGroupListwithSchemas(Iterable<String> elements)Copy the current immutable object with elements that replace the content ofschemas.ImmutableUaaGroupListwithSchemas(String... elements)Copy the current immutable object with elements that replace the content ofschemas.ImmutableUaaGroupListwithStartIndex(Integer value)Copy the current immutable object by setting a value for thestartIndexattribute.ImmutableUaaGroupListwithTotalResults(Integer value)Copy the current immutable object by setting a value for thetotalResultsattribute.
-
-
-
Method Detail
-
getResources
public List<UaaGroup> getResources()
- Specified by:
getResourcesin interfaceUaaList<UaaGroup>- Returns:
- The value of the
resourcesattribute
-
getStartIndex
public Integer getStartIndex()
- Specified by:
getStartIndexin interfaceUaaList<UaaGroup>- Returns:
- The value of the
startIndexattribute
-
getItemsPerPage
public Integer getItemsPerPage()
- Specified by:
getItemsPerPagein interfaceUaaList<UaaGroup>- Returns:
- The value of the
itemsPerPageattribute
-
getTotalResults
public Integer getTotalResults()
- Specified by:
getTotalResultsin interfaceUaaList<UaaGroup>- Returns:
- The value of the
totalResultsattribute
-
getSchemas
public List<String> getSchemas()
- Specified by:
getSchemasin interfaceUaaList<UaaGroup>- Returns:
- The value of the
schemasattribute
-
withResources
public final ImmutableUaaGroupList withResources(UaaGroup... elements)
Copy the current immutable object with elements that replace the content ofresources.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withResources
public final ImmutableUaaGroupList withResources(Iterable<? extends UaaGroup> elements)
Copy the current immutable object with elements that replace the content ofresources. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of resources elements to set- Returns:
- A modified copy of
thisobject
-
withStartIndex
public final ImmutableUaaGroupList withStartIndex(Integer value)
Copy the current immutable object by setting a value for thestartIndexattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for startIndex- Returns:
- A modified copy of the
thisobject
-
withItemsPerPage
public final ImmutableUaaGroupList withItemsPerPage(Integer value)
Copy the current immutable object by setting a value for theitemsPerPageattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for itemsPerPage- Returns:
- A modified copy of the
thisobject
-
withTotalResults
public final ImmutableUaaGroupList withTotalResults(Integer value)
Copy the current immutable object by setting a value for thetotalResultsattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for totalResults- Returns:
- A modified copy of the
thisobject
-
withSchemas
public final ImmutableUaaGroupList withSchemas(String... elements)
Copy the current immutable object with elements that replace the content ofschemas.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withSchemas
public final ImmutableUaaGroupList withSchemas(Iterable<String> elements)
Copy the current immutable object with elements that replace the content ofschemas. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of schemas elements to set- Returns:
- A modified copy of
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableUaaGroupListthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:resources,startIndex,itemsPerPage,totalResults,schemas.
-
toString
public String toString()
Prints the immutable valueUaaGroupListwith attribute values.
-
copyOf
public static ImmutableUaaGroupList copyOf(UaaGroupList instance)
Creates an immutable copy of aUaaGroupListvalue. 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 UaaGroupList instance
-
builder
public static ImmutableUaaGroupList.Builder builder()
Creates a builder forImmutableUaaGroupList.ImmutableUaaGroupList.builder() .addResources|addAllResources(io.dialob.security.uaa.spi.model.UaaGroup) //resourceselements .startIndex(Integer) // requiredstartIndex.itemsPerPage(Integer) // requireditemsPerPage.totalResults(Integer) // requiredtotalResults.addSchemas|addAllSchemas(String) //schemaselements .build();- Returns:
- A new ImmutableUaaGroupList builder
-
-