|
Search this API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecty.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 DataProviderget in interface EdgeMapget in interface NodeMap
public void set(java.lang.Object dataHolder,
java.lang.Object value)
NodeMap
set in interface DataAcceptorset in interface EdgeMapset in interface NodeMappublic boolean getBool(java.lang.Object dataHolder)
NodeMap
getBool in interface DataProvidergetBool in interface EdgeMapgetBool in interface NodeMappublic double getDouble(java.lang.Object dataHolder)
NodeMap
getDouble in interface DataProvidergetDouble in interface EdgeMapgetDouble in interface NodeMappublic int getInt(java.lang.Object dataHolder)
NodeMap
getInt in interface DataProvidergetInt in interface EdgeMapgetInt in interface NodeMap
public void setBool(java.lang.Object dataHolder,
boolean value)
NodeMap
setBool in interface DataAcceptorsetBool in interface EdgeMapsetBool in interface NodeMap
public void setDouble(java.lang.Object dataHolder,
double value)
NodeMap
setDouble in interface DataAcceptorsetDouble in interface EdgeMapsetDouble in interface NodeMap
public void setInt(java.lang.Object dataHolder,
int value)
NodeMap
setInt in interface DataAcceptorsetInt in interface EdgeMapsetInt in interface NodeMap
|
© Copyright 2000-2025, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||