mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-07-02 13:35:33 +02:00
34 lines
733 B
Java
34 lines
733 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<CfhTopic>());
|
||
|
}
|
||
|
|
||
|
public void addTopic(CfhTopic topic)
|
||
|
{
|
||
|
this.topics.put(topic.id, topic);
|
||
|
}
|
||
|
|
||
|
public TIntObjectMap<CfhTopic> getTopics()
|
||
|
{
|
||
|
return this.topics;
|
||
|
}
|
||
|
|
||
|
public String getName()
|
||
|
{
|
||
|
return this.name;
|
||
|
}
|
||
|
}
|