Class SimplePage<T>

java.lang.Object
com.broadleafcommerce.cartoperation.domain.SimplePage<T>
All Implemented Interfaces:
Serializable

public class SimplePage<T> extends Object implements Serializable
A simple page DTO into which a Page can be deserialized and that can be easily re-serialized without concern for implementation details.
Author:
Nathan Moore (nathandmoore)
See Also:
  • Constructor Details

    • SimplePage

      public SimplePage()
  • Method Details

    • addAttribute

      public void addAttribute(String name, Object value)
      Takes in any additional attributes passed in the request not matching any defined properties.
      Parameters:
      name - Name of the additional attribute
      value - Value of the additional attribute
    • getAttribute

      public Map<String,Object> getAttribute()
      Return any additional attributes passed in the request not matching any defined properties.
      Returns:
      any additional attributes passed in the request not matching any defined properties.
    • getContent

      public List<T> getContent()
    • getAttributes

      public Map<String,Object> getAttributes()
      Map holding any additional attributes passed in the request not matching any defined properties.
    • setContent

      public void setContent(List<T> content)
    • setAttributes

      public void setAttributes(Map<String,Object> attributes)
      Map holding any additional attributes passed in the request not matching any defined properties.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object