@Singleton public class DimensionDictionary extends Object
Constructor and Description |
---|
DimensionDictionary()
Constructor.
|
DimensionDictionary(Set<Dimension> dimensions)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(Dimension dimension)
Adds the specified element to the dictionary if it is not already present.
|
boolean |
addAll(Collection<? extends Dimension> dimensions)
Adds all of the dimensions in the specified collection to the dictionary.
|
boolean |
equals(Object obj) |
Set<Dimension> |
findAll()
Get all dimensions available in dimension dictionary.
|
Dimension |
findByApiName(String dimensionName)
Find a Dimension given a dimension api name.
|
int |
hashCode() |
String |
toString() |
public Dimension findByApiName(String dimensionName)
dimensionName
- API name to searchpublic Set<Dimension> findAll()
public boolean add(Dimension dimension)
dimension
- element to add to dictionarySet.add(Object)
public boolean addAll(Collection<? extends Dimension> dimensions)
dimensions
- collection of dimensions to addSet.addAll(Collection)
Copyright © 2016–2018 Yahoo! Inc.. All rights reserved.