Arcturus-Community/src/main/java/com/eu/habbo/habbohotel/modtool/CfhCategory.java
2019-05-26 21:15:26 +03:00

29 lines
709 B
Java

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;
this.topics = TCollections.synchronizedMap(new TIntObjectHashMap<>());
}
public void addTopic(CfhTopic topic) {
this.topics.put(topic.id, topic);
}
public TIntObjectMap<CfhTopic> getTopics() {
return this.topics;
}
public String getName() {
return this.name;
}
}