Atavism Version 2018.1AGIS API

atavism.server.util
Class Table<A,B,C>

java.lang.Object
  extended by atavism.server.util.Table<A,B,C>

public class Table<A,B,C>
extends java.lang.Object

Basically a thread safe Map of Map

Author:
cedeno

Constructor Summary
Table()
           
 
Method Summary
 C get(A a, B b)
           
 java.util.Collection<A> getKeys()
           
 java.util.Map<B,C> getSubMap(A a)
          returns a copy of the submap
 C getWithAddSubMap(A a, B b)
          creates the submap entry if it doesnt exist already and returns it
 boolean isEmpty()
           
 void put(A a, B b, C c)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Table

public Table()
Method Detail

isEmpty

public boolean isEmpty()

getKeys

public java.util.Collection<A> getKeys()

put

public void put(A a,
                B b,
                C c)

get

public C get(A a,
             B b)

getWithAddSubMap

public C getWithAddSubMap(A a,
                          B b)
creates the submap entry if it doesnt exist already and returns it


getSubMap

public java.util.Map<B,C> getSubMap(A a)
returns a copy of the submap



Copyright © 2018 Dragonsan Studios Sp. z o.o.