Esempio n. 1
0
 /**
  * Returns an unmodifiable set of all the attribute names.
  *
  * @return A set of all the attribute names
  */
 public Set<String> getAttributeNames() {
   return Collections.unmodifiableSet(nameToIndex.keySet());
 }
Esempio n. 2
0
 /**
  * Returns a view of the items currently being counted. The returned view is read-only; any
  * attempts to modify this view will throw an {@link UnsupportedOperationException}.
  */
 public Set<T> items() {
   return Collections.unmodifiableSet(counts.keySet());
 }