public final class LegendMetadata extends Object implements Collection
LegendMetadata is composed of 0 or more LegendAggregates. A LegendAggregate is an aggregation of unique style and geometry type. Basically, a LegendMetadata is represented by the results of executing the following pseudo SQL:
SELECT COUNT(*), styleColumn, Obj.geometryType, descriptionColumn from XX GROUP BY styleColumn, Obj.geometryType, descriptionColumnA
LegendAggregate is one row of the result set.| Constructor and Description |
|---|
LegendMetadata(Collection aggregates)
Creates a
LegendMetadata from the specified Collection<LegendAggregate>. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(LegendAggregate legendAggregate) |
boolean |
addAll(Collection c) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection c) |
boolean |
equals(Object o) |
LegendAggregate |
getPredominant()
Returns the LegendAggregate with the largest count.
|
int |
hashCode() |
boolean |
isEmpty() |
Iterator |
iterator() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection c) |
boolean |
retainAll(Collection c) |
int |
size() |
Object[] |
toArray() |
Object[] |
toArray(Object[] a) |
getClass, notify, notifyAll, toString, wait, wait, waitparallelStream, removeIf, spliterator, streampublic LegendMetadata(Collection aggregates)
LegendMetadata from the specified Collection<LegendAggregate>.aggregates - The LegendAggregates to create the LegendMetadata from.public LegendAggregate getPredominant()
LegendAggregate.getCount()public int size()
size in interface Collectionpublic boolean isEmpty()
isEmpty in interface Collectionpublic boolean contains(Object o)
contains in interface Collectionpublic Iterator iterator()
iterator in interface Iterableiterator in interface Collectionpublic Object[] toArray()
toArray in interface Collectionpublic Object[] toArray(Object[] a)
toArray in interface Collectionpublic boolean add(LegendAggregate legendAggregate)
add in interface Collectionpublic boolean remove(Object o)
remove in interface Collectionpublic boolean containsAll(Collection c)
containsAll in interface Collectionpublic boolean addAll(Collection c)
addAll in interface Collectionpublic boolean removeAll(Collection c)
removeAll in interface Collectionpublic boolean retainAll(Collection c)
retainAll in interface Collectionpublic void clear()
clear in interface Collectionpublic boolean equals(Object o)
equals in interface Collectionequals in class Objectpublic int hashCode()
hashCode in interface CollectionhashCode in class Object© 2007, 2022 Precisely. All rights reserved.