E
- the edge typeT
- the value typepublic class DefaultEdgeFunction<E,T> extends Object implements Function<E,T>, Serializable
Modifier and Type | Field and Description |
---|---|
protected T |
defaultValue |
protected Map<E,T> |
map |
Constructor and Description |
---|
DefaultEdgeFunction(T defaultValue)
Create a new function
|
DefaultEdgeFunction(T defaultValue,
Map<E,T> map)
Create a new function
|
Modifier and Type | Method and Description |
---|---|
T |
apply(E e)
Get the function value for an edge.
|
T |
get(E e)
Get the function value for an edge.
|
void |
set(E e,
T value)
Set the function value for an edge.
|
public DefaultEdgeFunction(T defaultValue)
defaultValue
- the default valueCopyright © 2019. All rights reserved.