Record Class FoliosBook.CategoryView
java.lang.Object
java.lang.Record
net.ixdarklord.folios.api.client.FoliosBook.CategoryView
- Enclosing class:
FoliosBook
How the front of the book lists its categories:
"categories" in book.json.
"categories": {
"view": "grid", // "list" (default): a row each; "grid": a tile each, its icon over its name
"overflow": "scroll" // "pages" (default): more pages when they don't fit; "scroll": one page that scrolls
}
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCategoryView(boolean grid, boolean scroll) Creates an instance of aCategoryViewrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleangrid()Returns the value of thegridrecord component.final inthashCode()Returns a hash code value for this object.booleanscroll()Returns the value of thescrollrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
DEFAULT
-
-
Constructor Details
-
CategoryView
public CategoryView(boolean grid, boolean scroll) Creates an instance of aCategoryViewrecord class.- Parameters:
grid- the value for thegridrecord componentscroll- the value for thescrollrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
grid
public boolean grid()Returns the value of thegridrecord component.- Returns:
- the value of the
gridrecord component
-
scroll
public boolean scroll()Returns the value of thescrollrecord component.- Returns:
- the value of the
scrollrecord component
-