public class DimensionalMap<KEY,VALUE> extends Object
Dimensional maps are immutable and created through a DimensionalMap.Builder
Modifier and Type | Class and Description |
---|---|
static class |
DimensionalMap.Builder<KEY,VALUE> |
Modifier and Type | Field and Description |
---|---|
private Map<KEY,DimensionalValue<VALUE>> |
values |
Modifier | Constructor and Description |
---|---|
private |
DimensionalMap(Map<KEY,DimensionalValue<VALUE>> values) |
Modifier and Type | Method and Description |
---|---|
Set<Map.Entry<KEY,DimensionalValue<VALUE>>> |
entrySet()
Returns the set of dimensional entries across all contexts.
|
VALUE |
get(KEY key,
Map<String,String> context)
Returns the value for this key matching a context, or null if none
|
boolean |
isEmpty()
Returns true if this is empty for all contexts.
|
private final Map<KEY,DimensionalValue<VALUE>> values
private DimensionalMap(Map<KEY,DimensionalValue<VALUE>> values)
public VALUE get(KEY key, Map<String,String> context)
public Set<Map.Entry<KEY,DimensionalValue<VALUE>>> entrySet()
public boolean isEmpty()
Copyright © 2018. All rights reserved.