public class TexturesCategory extends Object implements Comparable<TexturesCategory>
Constructor and Description |
---|
TexturesCategory(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(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 . |
String |
getName()
Returns the name of this category.
|
CatalogTexture |
getTexture(int index)
Returns the texture at a given
index . |
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(String name)
name
- the name of the category.public String getName()
public List<CatalogTexture> getTextures()
public int getTexturesCount()
public CatalogTexture getTexture(int index)
index
.public int getIndexOfTexture(CatalogTexture texture)
texture
.public boolean equals(Object obj)
public int compareTo(TexturesCategory category)
compareTo
in interface Comparable<TexturesCategory>
© Copyrights 2006-2016 Emmanuel PUYBARET / eTeks
Distributed under GNU General Public License