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;
|
|
|
|
|
2019-05-26 20:14:53 +02:00
|
|
|
public class CfhCategory {
|
2018-07-06 15:30:00 +02:00
|
|
|
private final int id;
|
|
|
|
private final String name;
|
|
|
|
private final TIntObjectMap<CfhTopic> topics;
|
|
|
|
|
2019-05-26 20:14:53 +02:00
|
|
|
public CfhCategory(int id, String name) {
|
2018-07-06 15:30:00 +02:00
|
|
|
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
|
|
|
}
|
|
|
|
|
2019-05-26 20:14:53 +02:00
|
|
|
public void addTopic(CfhTopic topic) {
|
2018-07-06 15:30:00 +02:00
|
|
|
this.topics.put(topic.id, topic);
|
|
|
|
}
|
|
|
|
|
2019-05-26 20:14:53 +02:00
|
|
|
public TIntObjectMap<CfhTopic> getTopics() {
|
2018-07-06 15:30:00 +02:00
|
|
|
return this.topics;
|
|
|
|
}
|
|
|
|
|
2019-05-26 20:14:53 +02:00
|
|
|
public String getName() {
|
2018-07-06 15:30:00 +02:00
|
|
|
return this.name;
|
|
|
|
}
|
|
|
|
}
|