Arcturus-Community/src/main/java/com/eu/habbo/habbohotel/modtool/CfhCategory.java

34 lines
725 B
Java
Raw Normal View History

2018-07-06 15:30:00 +02:00
package com.eu.habbo.habbohotel.modtool;
import gnu.trove.TCollections;
import gnu.trove.map.TIntObjectMap;
import gnu.trove.map.hash.TIntObjectHashMap;
public class CfhCategory
{
private final int id;
private final String name;
private final TIntObjectMap<CfhTopic> topics;
public CfhCategory(int id, String name)
{
this.id = id;
this.name = name;
2018-09-28 21:25:00 +02:00
this.topics = TCollections.synchronizedMap(new TIntObjectHashMap<>());
2018-07-06 15:30:00 +02:00
}
public void addTopic(CfhTopic topic)
{
this.topics.put(topic.id, topic);
}
public TIntObjectMap<CfhTopic> getTopics()
{
return this.topics;
}
public String getName()
{
return this.name;
}
}