Package co.aikar.util
Class Table<R,C,V>
- java.lang.Object
-
- co.aikar.util.Table<R,C,V>
-
- All Implemented Interfaces:
Iterable<Table.Entry<R,C,V>>
public class Table<R,C,V> extends Object implements Iterable<Table.Entry<R,C,V>>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceTable.Entry<R,C,V>static interfaceTable.TableConsumer<R,C,V>static interfaceTable.TableFunction<R,C,V,RETURN>static interfaceTable.TablePredicate<R,C,V>
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Vcompute(R row, C col, Table.TableFunction<R,C,V,V> function)VcomputeIfAbsent(R row, C col, BiFunction<R,C,V> function)VcomputeIfPresent(R row, C col, Table.TableFunction<R,C,V,V> function)booleancontainsKey(R row, C col)voidforEach(Table.TableConsumer<R,C,V> consumer)voidforEach(Table.TablePredicate<R,C,V> predicate)Vget(R row, C col)VgetOrDefault(R row, C col, V def)Iterator<Table.Entry<R,C,V>>iterator()Vmerge(R row, C col, V val, Table.TableFunction<R,C,V,V> function)Vput(R row, C col, V val)Vremove(R row, C col)voidremoveIf(Table.TablePredicate<R,C,V> predicate)Vreplace(R row, C col, V val)@org.jetbrains.annotations.Nullable booleanreplace(R row, C col, V old, V val)voidreplaceAll(Table.TableFunction<R,C,V,V> function)Map<C,V>row(R row)Stream<Table.Entry<R,C,V>>stream()Stream<Table.Entry<R,C,V>>stream(boolean parallel)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
getOrDefault
public V getOrDefault(R row, C col, V def)
-
containsKey
public boolean containsKey(R row, C col)
-
forEach
public void forEach(Table.TableConsumer<R,C,V> consumer)
-
forEach
public void forEach(Table.TablePredicate<R,C,V> predicate)
-
removeIf
public void removeIf(Table.TablePredicate<R,C,V> predicate)
-
replaceAll
public void replaceAll(Table.TableFunction<R,C,V,V> function)
-
replace
@Nullable public @org.jetbrains.annotations.Nullable boolean replace(R row, C col, V old, V val)
-
computeIfAbsent
public V computeIfAbsent(R row, C col, BiFunction<R,C,V> function)
-
computeIfPresent
public V computeIfPresent(R row, C col, Table.TableFunction<R,C,V,V> function)
-
-