/** * @param source the collection to lazily copy * @param <T> axiom type * @return a lazy defensive copy for source; the source collection will not be copied until a * method that modifies the collection gets called, e.g., add(), addAll() */ public static <T> Set<T> getCopyOnRequestSet(Collection<T> source) { return getCopyOnRequestSetFromMutableCollection(source); }
/** * @param source the collection to lazily copy * @param <T> axiom type * @return a lazy defensive copy for source; the source collection will not be copied until a * method that modifies the collection gets called, e.g., add(), addAll() */ public static <T> Set<T> getCopyOnRequestSet(Collection<T> source) { return getCopyOnRequestSetFromMutableCollection(source); }
/** * @param source the collection to lazily copy * @param <T> axiom type * @return a lazy defensive copy for source; the source collection will not be copied until a * method that modifies the collection gets called, e.g., add(), addAll() */ public static <T> Set<T> getCopyOnRequestSet(Collection<T> source) { return getCopyOnRequestSetFromMutableCollection(source); }
/** * * @param source * the collection to lazily copy * @return a lazy defensive copy for source; the source collection will not * be copied until a method that modifies the collection gets * called, e.g., add(), addAll() */ public static <T> Set<T> getCopyOnRequestSet(Collection<T> source) { return getCopyOnRequestSetFromMutableCollection(source); }
public Set<Node<E>> getNodes() { return CollectionFactory.getCopyOnRequestSetFromMutableCollection(nodes); }
public OWLAnnotationImpl(OWLAnnotationProperty property, OWLAnnotationValue value, Set<? extends OWLAnnotation> annotations) { super(); this.property = property; this.value = value; this.annotations = CollectionFactory.getCopyOnRequestSetFromMutableCollection(new TreeSet<OWLAnnotation>(annotations)); }
/** * @param source the source collection, expected to be mutable; the backing list is created * immediately * @param <T> axiom type * @return copy on request that builds a list immediately */ public static <T> Set<T> copyMutable(@Nullable Collection<T> source) { return getCopyOnRequestSetFromMutableCollection(source); }
/** * @param source the source collection, expected to be mutable; the backing list is created * immediately * @param <T> axiom type * @return copy on request that builds a list immediately */ public static <T> Set<T> copyMutable(@Nullable Collection<T> source) { return getCopyOnRequestSetFromMutableCollection(source); }
/** * @param source the source collection, expected to be mutable; the backing list is created * immediately * @param <T> axiom type * @return copy on request that builds a list immediately */ public static <T> Set<T> copyMutable(@Nullable Collection<T> source) { return getCopyOnRequestSetFromMutableCollection(source); }
/** * @param source * the collection to lazily copy * @return a lazy defensive copy for source; the source collection will not * be copied until a method that modifies the collection gets * called, e.g., add(), addAll() * @param <T> * axiom type */ @Nonnull public static <T> Set<T> getCopyOnRequestSet(Collection<T> source) { return getCopyOnRequestSetFromMutableCollection(source); }