@Override public Set<OWLClassExpression> getOperands() { return CollectionFactory .getCopyOnRequestSetFromImmutableCollection(operands); }
@Override public Set<OWLLiteral> getValues() { return CollectionFactory .getCopyOnRequestSetFromImmutableCollection(values); }
@Override public Set<SWRLAtom> getBody() { return CollectionFactory .getCopyOnRequestSetFromImmutableCollection(body); }
@Override public Set<SWRLAtom> getHead() { return CollectionFactory .getCopyOnRequestSetFromImmutableCollection(head); }
@Override public Set<OWLDataRange> getOperands() { return CollectionFactory .getCopyOnRequestSetFromImmutableCollection(operands); }
@Override public Set<OWLClassExpression> getClassExpressions() { return CollectionFactory .getCopyOnRequestSetFromImmutableCollection(classExpressions); }
@Override public Set<OWLClassExpression> getClassExpressions() { return CollectionFactory.getCopyOnRequestSetFromImmutableCollection(classExpressions); }
@Override public Set<OWLObjectProperty> getObjectPropertiesInSignature() { return CollectionFactory.getCopyOnRequestSetFromImmutableCollection(Collections .<OWLObjectProperty> emptySet()); }
/** * @param source the source collection, expected to be immutable * @param <T> axiom type * @return copy on request that does not build a list immediately */ public static <T> Set<T> copy(@Nullable Collection<T> source) { return getCopyOnRequestSetFromImmutableCollection(source); }
@Override public Set<OWLClass> getClassesInSignature() { return CollectionFactory.getCopyOnRequestSetFromImmutableCollection(Collections .<OWLClass> emptySet()); }
@Override public Set<OWLDatatype> getDatatypesInSignature() { return CollectionFactory.getCopyOnRequestSetFromImmutableCollection(Collections .singleton((OWLDatatype) this)); }
@Override public Set<OWLAnonymousIndividual> getAnonymousIndividuals() { return CollectionFactory.getCopyOnRequestSetFromImmutableCollection(Collections .<OWLAnonymousIndividual> emptySet()); }
/** * @param source the source collection, expected to be immutable * @param <T> axiom type * @return copy on request that does not build a list immediately */ public static <T> Set<T> copy(@Nullable Collection<T> source) { return getCopyOnRequestSetFromImmutableCollection(source); }
@Override public Set<OWLDatatype> getDatatypesInSignature() { return CollectionFactory.getCopyOnRequestSetFromImmutableCollection(Collections.singleton((OWLDatatype) this)); }
@Override public Set<OWLAnnotation> getAnnotations() { if (annotations.isEmpty()) { return Collections.emptySet(); } return CollectionFactory.getCopyOnRequestSetFromImmutableCollection(annotations); }
@Override public Set<OWLAnnotation> getAnnotations() { if (annotations.isEmpty()) { return emptySet(); } return getCopyOnRequestSetFromImmutableCollection(annotations); }
@Override public Set<OWLAnonymousIndividual> getAnonymousIndividuals() { return CollectionFactory.getCopyOnRequestSetFromImmutableCollection(CollectionFactory .<OWLAnonymousIndividual> emptySet()); }
@Override public Set<OWLObjectProperty> getObjectPropertiesInSignature() { return CollectionFactory.getCopyOnRequestSetFromImmutableCollection(CollectionFactory .<OWLObjectProperty> emptySet()); }
@Override public Set<OWLAnnotationProperty> getAnnotationPropertiesInSignature() { return CollectionFactory.getCopyOnRequestSetFromImmutableCollection(CollectionFactory .<OWLAnnotationProperty> emptySet()); }
@Override public Set<OWLClassExpression> getNestedClassExpressions() { return CollectionFactory.getCopyOnRequestSetFromImmutableCollection(CollectionFactory .<OWLClassExpression> emptySet()); }