public ListOrderedSet<Object> getOrderedKeys() { return this.orderedKeys; }
@SuppressWarnings("unchecked") private ListOrderedSet<T> getList(){ return (ListOrderedSet<T>) getDefaultModelObject(); }
/** * Returns a set that maintains the order of elements that are added * backed by the given set. * <p> * If an element is added twice, the order is determined by the first add. * The order is observed through the iterator or toArray. * * @param <E> the element type * @param set the set to order, must not be null * @return an ordered set backed by the given set * @throws NullPointerException if the set is null */ public static <E> Set<E> orderedSet(final Set<E> set) { return ListOrderedSet.listOrderedSet(set); }