Class EquivalentNodesSet
- java.lang.Object
-
- org.geneontology.obographs.core.model.axiom.AbstractEquivalentNodesSet
-
- org.geneontology.obographs.core.model.axiom.EquivalentNodesSet
-
- All Implemented Interfaces:
Comparable<AbstractEquivalentNodesSet>,Axiom
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class EquivalentNodesSet extends AbstractEquivalentNodesSet
A set of nodes that all stand in a mutual equivalence or identity relationship to one another Corresponds to Node in the OWLAPI- Author:
- cjm
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEquivalentNodesSet.BuilderBuilds instances of typeEquivalentNodesSet.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EquivalentNodesSetcopyOf(AbstractEquivalentNodesSet instance)Creates an immutable copy of aAbstractEquivalentNodesSetvalue.booleanequals(Object another)This instance is equal to all instances ofEquivalentNodesSetthat have equal attribute values.MetagetMeta()com.google.common.collect.ImmutableSet<String>getNodeIds()StringgetRepresentativeNodeId()inthashCode()Computes a hash code from attributes:meta,representativeNodeId,nodeIds.StringtoString()Prints the immutable valueEquivalentNodesSetwith attribute values.EquivalentNodesSetwithMeta(Meta value)Copy the current immutable object by setting a value for themetaattribute.EquivalentNodesSetwithNodeIds(Iterable<String> elements)Copy the current immutable object with elements that replace the content ofnodeIds.EquivalentNodesSetwithNodeIds(String... elements)Copy the current immutable object with elements that replace the content ofnodeIds.EquivalentNodesSetwithRepresentativeNodeId(String value)Copy the current immutable object by setting a value for therepresentativeNodeIdattribute.-
Methods inherited from class org.geneontology.obographs.core.model.axiom.AbstractEquivalentNodesSet
compareTo
-
-
-
-
Method Detail
-
getMeta
@Nullable public Meta getMeta()
- Returns:
- the meta
-
getRepresentativeNodeId
public String getRepresentativeNodeId()
- Overrides:
getRepresentativeNodeIdin classAbstractEquivalentNodesSet- Returns:
- the representativeNodeId
-
getNodeIds
public com.google.common.collect.ImmutableSet<String> getNodeIds()
- Specified by:
getNodeIdsin classAbstractEquivalentNodesSet- Returns:
- the nodeIds
-
withMeta
public final EquivalentNodesSet withMeta(@Nullable Meta value)
Copy the current immutable object by setting a value for themetaattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for meta (can benull)- Returns:
- A modified copy of the
thisobject
-
withRepresentativeNodeId
public final EquivalentNodesSet withRepresentativeNodeId(String value)
Copy the current immutable object by setting a value for therepresentativeNodeIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for representativeNodeId- Returns:
- A modified copy of the
thisobject
-
withNodeIds
public final EquivalentNodesSet withNodeIds(String... elements)
Copy the current immutable object with elements that replace the content ofnodeIds.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withNodeIds
public final EquivalentNodesSet withNodeIds(Iterable<String> elements)
Copy the current immutable object with elements that replace the content ofnodeIds. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of nodeIds elements to set- Returns:
- A modified copy of
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofEquivalentNodesSetthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:meta,representativeNodeId,nodeIds.
-
toString
public String toString()
Prints the immutable valueEquivalentNodesSetwith attribute values.
-
copyOf
public static EquivalentNodesSet copyOf(AbstractEquivalentNodesSet instance)
Creates an immutable copy of aAbstractEquivalentNodesSetvalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable EquivalentNodesSet instance
-
-