Class GenericPageableResponseBase<T>
- java.lang.Object
-
- com.anaptecs.jeaf.junit.rest.generics.AbstractResponse<T>
-
- com.anaptecs.jeaf.junit.rest.generics.GenericPageableResponseBase<T>
-
- All Implemented Interfaces:
com.anaptecs.jeaf.core.api.ServiceObject,java.io.Serializable
- Direct Known Subclasses:
GenericPageableResponse
@Valid public abstract class GenericPageableResponseBase<T> extends AbstractResponse<T>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGenericPageableResponseBase.BuilderBase<T>Class implements builder to create a new instance of class GenericPageableResponse.-
Nested classes/interfaces inherited from class com.anaptecs.jeaf.junit.rest.generics.AbstractResponse
AbstractResponse.Builder<T>
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedGenericPageableResponseBase()Default constructor is only intended to be used for deserialization by tools like Jackson for JSON.protectedGenericPageableResponseBase(GenericPageableResponseBase.BuilderBase<T> pBuilder)Initialize object using the passed builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddToValues(java.util.Collection<T> pValues)Method adds all passed objects tovalues.voidaddToValues(T pValues)Method adds the passed object tovalues.voidclearValues()Method removes all objects fromvalues.java.util.List<T>getValues()Method returns associationvalues.voidremoveFromValues(T pValues)Method removes the passed object fromvalues.java.lang.StringtoString()Method creates a new String with the values of all attributes of this class.java.lang.StringBuildertoStringBuilder(java.lang.String pIndent)Method returns a StringBuilder that can be used to create a String representation of this object.-
Methods inherited from class com.anaptecs.jeaf.junit.rest.generics.AbstractResponse
addToErrors, addToErrors, addToWarnings, addToWarnings, clearErrors, clearWarnings, getErrors, getWarnings, removeFromErrors, removeFromWarnings
-
-
-
-
Constructor Detail
-
GenericPageableResponseBase
protected GenericPageableResponseBase()
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.
-
GenericPageableResponseBase
protected GenericPageableResponseBase(GenericPageableResponseBase.BuilderBase<T> pBuilder)
Initialize object using the passed builder.- Parameters:
pBuilder- Builder that should be used to initialize this object. The parameter must not be null.
-
-
Method Detail
-
getValues
public java.util.List<T> getValues()
Method returns associationvalues.- Returns:
ListValue to whichvaluesis set. The method never returns null and the returned collection is modifiable.
-
addToValues
public void addToValues(T pValues)
Method adds the passed object tovalues.- Parameters:
pValues- Object that should be added tovalues. The parameter must not be null.
-
addToValues
public void addToValues(java.util.Collection<T> pValues)
Method adds all passed objects tovalues.- Parameters:
pValues- Collection with all objects that should be added tovalues. The parameter must not be null.
-
removeFromValues
public void removeFromValues(T pValues)
Method removes the passed object fromvalues.- Parameters:
pValues- Object that should be removed fromvalues. The parameter must not be null.
-
clearValues
public void clearValues()
Method removes all objects fromvalues.
-
toStringBuilder
public java.lang.StringBuilder toStringBuilder(java.lang.String pIndent)
Method returns a StringBuilder that can be used to create a String representation of this object. The returned StringBuilder also takes care about attributes of super classes.- Overrides:
toStringBuilderin classAbstractResponse<T>- Returns:
StringBuilderStringBuilder representing this object. The method never returns null.
-
toString
public java.lang.String toString()
Method creates a new String with the values of all attributes of this class. All references to other objects will be ignored.- Overrides:
toStringin classAbstractResponse<T>- Returns:
StringString representation of this object. The method never returns null.
-
-