public class TexturesCategory extends java.lang.Object implements java.lang.Comparable<TexturesCategory>
Constructor and Description |
---|
TexturesCategory(java.lang.String name)
Create a category.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(TexturesCategory category)
Compares the names of this category and the one in parameter.
|
boolean |
equals(java.lang.Object obj)
Returns true if this category and the one in parameter have the same name.
|
int |
getIndexOfTexture(CatalogTexture texture)
Returns the index of the given
texture . |
java.lang.String |
getName()
Returns the name of this category.
|
CatalogTexture |
getTexture(int index)
Returns the texture at a given
index . |
java.util.List<CatalogTexture> |
getTextures()
Returns the textures list of this category sorted by name.
|
int |
getTexturesCount()
Returns the count of textures in this category.
|
int |
hashCode() |
public TexturesCategory(java.lang.String name)
name
- the name of the category.public java.lang.String getName()
public java.util.List<CatalogTexture> getTextures()
public int getTexturesCount()
public CatalogTexture getTexture(int index)
index
.public int getIndexOfTexture(CatalogTexture texture)
texture
.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public int compareTo(TexturesCategory category)
compareTo
in interface java.lang.Comparable<TexturesCategory>
© Copyright 2024 Space Mushrooms
Distributed under GNU General Public License