Class EquivalentNodesSet.Builder
java.lang.Object
org.geneontology.obographs.core.model.axiom.EquivalentNodesSet.Builder
- Enclosing class:
- EquivalentNodesSet
Builds instances of type
EquivalentNodesSet.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllNodeIds(Iterable<String> elements) Adds elements tonodeIdsset.Adds one element tonodeIdsset.addNodeIds(String... elements) Adds elements tonodeIdsset.build()Builds a newEquivalentNodesSet.from(AbstractEquivalentNodesSet instance) Fill a builder with attribute values from the providedorg.geneontology.obographs.core.model.axiom.AbstractEquivalentNodesSetinstance.Fill a builder with attribute values from the providedorg.geneontology.obographs.core.model.axiom.Axiominstance.Initializes the value for themetaattribute.Sets or replaces all elements fornodeIdsset.representativeNodeId(String representativeNodeId) Initializes the value for therepresentativeNodeIdattribute.
-
Constructor Details
-
Builder
public Builder()Creates a builder forEquivalentNodesSetinstances.new EquivalentNodesSet.Builder() .meta(org.geneontology.obographs.core.model.Meta | null) // nullablemeta.representativeNodeId(String) // optionalrepresentativeNodeId.addNodeId|addAllNodeIds(String) //nodeIdselements .build();
-
-
Method Details
-
from
Fill a builder with attribute values from the providedorg.geneontology.obographs.core.model.axiom.AbstractEquivalentNodesSetinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedorg.geneontology.obographs.core.model.axiom.Axiominstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
meta
Initializes the value for themetaattribute.- Parameters:
meta- The value for meta (can benull)- Returns:
thisbuilder for use in a chained invocation
-
representativeNodeId
Initializes the value for therepresentativeNodeIdattribute.If not set, this attribute will have a default value as returned by the initializer of
representativeNodeId.- Parameters:
representativeNodeId- The value for representativeNodeId- Returns:
thisbuilder for use in a chained invocation
-
addNodeId
Adds one element tonodeIdsset.- Parameters:
element- A nodeIds element- Returns:
thisbuilder for use in a chained invocation
-
addNodeIds
Adds elements tonodeIdsset.- Parameters:
elements- An array of nodeIds elements- Returns:
thisbuilder for use in a chained invocation
-
nodeIds
Sets or replaces all elements fornodeIdsset.- Parameters:
elements- An iterable of nodeIds elements- Returns:
thisbuilder for use in a chained invocation
-
addAllNodeIds
Adds elements tonodeIdsset.- Parameters:
elements- An iterable of nodeIds elements- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newEquivalentNodesSet.- Returns:
- An immutable instance of EquivalentNodesSet
- Throws:
IllegalStateException- if any required attributes are missing
-