public java.util.Set <Object> uniqueSet() { java.util.Set <Object> set = getBag().uniqueSet(); return(TransformedSet.decorate(set, transformer)); }
/** * Returns a transformed set backed by the given set. * <p> * Each object is passed through the transformer as it is added to the * Set. It is important not to use the original set after invoking this * method, as it is a backdoor for adding untransformed objects. * * @param set the set to transform, must not be null * @param transformer the transformer for the set, must not be null * @return a transformed set backed by the given set * @throws IllegalArgumentException if the Set or Transformer is null */ public static java.util.Set <Object> transformedSet(java.util.Set <Object> set, Transformer transformer) { return(TransformedSet.decorate(set, transformer)); }