T - public class ComposedKey<T> extends Object implements Iterable<T>
ComposedKey is an utilitary class to compose several pieces of data
in a single one and use this composition as a key, for instance in a
Map. Such a key need to be considered as equal to another if both
provide the equivalent objects (a.equals(b), not necessarily a == b) in the
same order. To keep the comparison consistent over time, a
ComposedKey is made as an immutable object, so it is not possible to
change the data it contains.| Constructor and Description |
|---|
ComposedKey(List<T> keys) |
ComposedKey(T... keys) |
Copyright © 2014–2015. All rights reserved.