|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.util.Maps.HighPerformanceIntMap
public static final class Maps.HighPerformanceIntMap
Implementation of a resettable high performance map for values of simple type int
.
A high performance map is a facade to another map which will allow to reset
all bound values to a default value in constant time.
Constructor Summary | |
---|---|
Maps.HighPerformanceIntMap(DataMap backingMap,
int defaultValue)
|
|
Maps.HighPerformanceIntMap(DataProvider backingProvider,
DataAcceptor backingAcceptor,
int defaultValue)
|
Method Summary | |
---|---|
java.lang.Object |
get(java.lang.Object dataHolder)
Returns the value bound to the given node. |
boolean |
getBool(java.lang.Object dataHolder)
Returns the boolean value bound to the given node. |
double |
getDouble(java.lang.Object dataHolder)
Returns the double value bound to the given node. |
int |
getInt(java.lang.Object dataHolder)
Returns the integer value bound to the given node. |
void |
resetAll(int defaultValue)
Resets all values to the given default value in constant time. |
void |
set(java.lang.Object dataHolder,
java.lang.Object value)
Associates the given value to the given node. |
void |
setBool(java.lang.Object dataHolder,
boolean value)
Associates the given boolean value to the given node. |
void |
setDouble(java.lang.Object dataHolder,
double value)
Associates the given double value to the given node. |
void |
setInt(java.lang.Object dataHolder,
int value)
Associates the given integer value to the given node. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Maps.HighPerformanceIntMap(DataMap backingMap, int defaultValue)
public Maps.HighPerformanceIntMap(DataProvider backingProvider, DataAcceptor backingAcceptor, int defaultValue)
Method Detail |
---|
public void resetAll(int defaultValue)
defaultValue
- the new default valuepublic java.lang.Object get(java.lang.Object dataHolder)
NodeMap
get
in interface DataProvider
get
in interface EdgeMap
get
in interface NodeMap
public void set(java.lang.Object dataHolder, java.lang.Object value)
NodeMap
set
in interface DataAcceptor
set
in interface EdgeMap
set
in interface NodeMap
public boolean getBool(java.lang.Object dataHolder)
NodeMap
getBool
in interface DataProvider
getBool
in interface EdgeMap
getBool
in interface NodeMap
public double getDouble(java.lang.Object dataHolder)
NodeMap
getDouble
in interface DataProvider
getDouble
in interface EdgeMap
getDouble
in interface NodeMap
public int getInt(java.lang.Object dataHolder)
NodeMap
getInt
in interface DataProvider
getInt
in interface EdgeMap
getInt
in interface NodeMap
public void setBool(java.lang.Object dataHolder, boolean value)
NodeMap
setBool
in interface DataAcceptor
setBool
in interface EdgeMap
setBool
in interface NodeMap
public void setDouble(java.lang.Object dataHolder, double value)
NodeMap
setDouble
in interface DataAcceptor
setDouble
in interface EdgeMap
setDouble
in interface NodeMap
public void setInt(java.lang.Object dataHolder, int value)
NodeMap
setInt
in interface DataAcceptor
setInt
in interface EdgeMap
setInt
in interface NodeMap
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |