|
Sweet Home 3D 4.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.eteks.sweethome3d.model.FurnitureCategory
public class FurnitureCategory
Category of furniture.
Constructor Summary | |
---|---|
FurnitureCategory(String name)
Create a category. |
Method Summary | |
---|---|
int |
compareTo(FurnitureCategory 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. |
List<CatalogPieceOfFurniture> |
getFurniture()
Returns the furniture list of this category sorted by name. |
int |
getFurnitureCount()
Returns the count of furniture in this category. |
int |
getIndexOfPieceOfFurniture(CatalogPieceOfFurniture piece)
Returns the index of the given piece of furniture. |
String |
getName()
Returns the name of this category. |
CatalogPieceOfFurniture |
getPieceOfFurniture(int index)
Returns the piece of furniture at a given index . |
int |
hashCode()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FurnitureCategory(String name)
name
- the name of the category.Method Detail |
---|
public String getName()
public List<CatalogPieceOfFurniture> getFurniture()
public int getFurnitureCount()
public CatalogPieceOfFurniture getPieceOfFurniture(int index)
index
.
public int getIndexOfPieceOfFurniture(CatalogPieceOfFurniture piece)
piece
of furniture.
public boolean equals(Object obj)
true
if this category and the one in parameter have the same name.
equals
in class Object
public int hashCode()
hashCode
in class Object
public int compareTo(FurnitureCategory category)
compareTo
in interface Comparable<FurnitureCategory>
|
Sweet Home 3D 4.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
![]() |
© Copyrights 2006-2013 eTeks - All rights reserved
Distributed under GNU General Public License |