Package io.dialob.security.uaa.spi.model
Class ImmutableUaaUserList
- java.lang.Object
-
- io.dialob.security.uaa.spi.model.ImmutableUaaUserList
-
- All Implemented Interfaces:
UaaList<UaaUser>,UaaUserList
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable public final class ImmutableUaaUserList extends Object implements UaaUserList
Immutable implementation ofUaaUserList.Use the builder to create immutable instances:
ImmutableUaaUserList.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableUaaUserList.BuilderBuilds instances of typeImmutableUaaUserList.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableUaaUserList.Builderbuilder()Creates a builder forImmutableUaaUserList.static ImmutableUaaUserListcopyOf(UaaUserList instance)Creates an immutable copy of aUaaUserListvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableUaaUserListthat have equal attribute values.IntegergetItemsPerPage()List<UaaUser>getResources()List<String>getSchemas()IntegergetStartIndex()IntegergetTotalResults()inthashCode()Computes a hash code from attributes:resources,startIndex,itemsPerPage,totalResults,schemas.StringtoString()Prints the immutable valueUaaUserListwith attribute values.ImmutableUaaUserListwithItemsPerPage(Integer value)Copy the current immutable object by setting a value for theitemsPerPageattribute.ImmutableUaaUserListwithResources(UaaUser... elements)Copy the current immutable object with elements that replace the content ofresources.ImmutableUaaUserListwithResources(Iterable<? extends UaaUser> elements)Copy the current immutable object with elements that replace the content ofresources.ImmutableUaaUserListwithSchemas(Iterable<String> elements)Copy the current immutable object with elements that replace the content ofschemas.ImmutableUaaUserListwithSchemas(String... elements)Copy the current immutable object with elements that replace the content ofschemas.ImmutableUaaUserListwithStartIndex(Integer value)Copy the current immutable object by setting a value for thestartIndexattribute.ImmutableUaaUserListwithTotalResults(Integer value)Copy the current immutable object by setting a value for thetotalResultsattribute.
-
-
-
Method Detail
-
getResources
public List<UaaUser> getResources()
- Specified by:
getResourcesin interfaceUaaList<UaaUser>- Returns:
- The value of the
resourcesattribute
-
getStartIndex
public Integer getStartIndex()
- Specified by:
getStartIndexin interfaceUaaList<UaaUser>- Returns:
- The value of the
startIndexattribute
-
getItemsPerPage
public Integer getItemsPerPage()
- Specified by:
getItemsPerPagein interfaceUaaList<UaaUser>- Returns:
- The value of the
itemsPerPageattribute
-
getTotalResults
public Integer getTotalResults()
- Specified by:
getTotalResultsin interfaceUaaList<UaaUser>- Returns:
- The value of the
totalResultsattribute
-
getSchemas
public List<String> getSchemas()
- Specified by:
getSchemasin interfaceUaaList<UaaUser>- Returns:
- The value of the
schemasattribute
-
withResources
public final ImmutableUaaUserList withResources(UaaUser... 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 ImmutableUaaUserList withResources(Iterable<? extends UaaUser> 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 ImmutableUaaUserList 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 ImmutableUaaUserList 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 ImmutableUaaUserList 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 ImmutableUaaUserList 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 ImmutableUaaUserList 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 ofImmutableUaaUserListthat 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 valueUaaUserListwith attribute values.
-
copyOf
public static ImmutableUaaUserList copyOf(UaaUserList instance)
Creates an immutable copy of aUaaUserListvalue. 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 UaaUserList instance
-
builder
public static ImmutableUaaUserList.Builder builder()
Creates a builder forImmutableUaaUserList.ImmutableUaaUserList.builder() .addResources|addAllResources(io.dialob.security.uaa.spi.model.UaaUser) //resourceselements .startIndex(Integer) // requiredstartIndex.itemsPerPage(Integer) // requireditemsPerPage.totalResults(Integer) // requiredtotalResults.addSchemas|addAllSchemas(String) //schemaselements .build();- Returns:
- A new ImmutableUaaUserList builder
-
-