Class GenericPageableResponse<T>
- java.lang.Object
-
- com.anaptecs.jeaf.junit.rest.generics.AbstractResponse<T>
-
- com.anaptecs.jeaf.junit.rest.generics.GenericPageableResponseBase<T>
-
- com.anaptecs.jeaf.junit.rest.generics.GenericPageableResponse<T>
-
- All Implemented Interfaces:
com.anaptecs.jeaf.core.api.ServiceObject,java.io.Serializable
@Valid public class GenericPageableResponse<T> extends GenericPageableResponseBase<T>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGenericPageableResponse.Builder<T>Class implements builder to create a new instance of class GenericPageableResponse.-
Nested classes/interfaces inherited from class com.anaptecs.jeaf.junit.rest.generics.GenericPageableResponseBase
GenericPageableResponseBase.BuilderBase<T>
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedGenericPageableResponse()Default constructor is only intended to be used for deserialization by tools like Jackson for JSON.protectedGenericPageableResponse(GenericPageableResponseBase.BuilderBase<T> pBuilder)Initialize object.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> GenericPageableResponse.Builder<T>builder()Method returns a new builder.static <T> GenericPageableResponse.Builder<T>builder(GenericPageableResponse<T> pObject)Method creates a new builder and initialize it with the data from the passed object.-
Methods inherited from class com.anaptecs.jeaf.junit.rest.generics.GenericPageableResponseBase
addToValues, addToValues, clearValues, getValues, removeFromValues, toString, toStringBuilder
-
Methods inherited from class com.anaptecs.jeaf.junit.rest.generics.AbstractResponse
addToErrors, addToErrors, addToWarnings, addToWarnings, clearErrors, clearWarnings, getErrors, getWarnings, removeFromErrors, removeFromWarnings
-
-
-
-
Constructor Detail
-
GenericPageableResponse
protected GenericPageableResponse()
Default constructor is only intended to be used for deserialization by tools like Jackson for JSON. For "normal" object creation builder should be used instead.
-
GenericPageableResponse
protected GenericPageableResponse(GenericPageableResponseBase.BuilderBase<T> pBuilder)
Initialize object. Nothing special to do.
-
-
Method Detail
-
builder
public static <T> GenericPageableResponse.Builder<T> builder()
Method returns a new builder.- Returns:
GenericPageableResponse.BuilderNew builder that can be used to create new GenericPageableResponse objects.
-
builder
public static <T> GenericPageableResponse.Builder<T> builder(GenericPageableResponse<T> pObject)
Method creates a new builder and initialize it with the data from the passed object.- Parameters:
pObject- Object that should be used to initialize the builder. The parameter may be null.- Returns:
GenericPageableResponse.BuilderNew builder that can be used to create new GenericPageableResponse objects. The method never returns null.
-
-