Class PropertyChainAxiom
java.lang.Object
org.geneontology.obographs.core.model.axiom.AbstractPropertyChainAxiom
org.geneontology.obographs.core.model.axiom.PropertyChainAxiom
- All Implemented Interfaces:
Comparable<AbstractPropertyChainAxiom>,Axiom
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class PropertyChainAxiom
extends AbstractPropertyChainAxiom
P <- P1 ... Pn
- Author:
- cjm
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic PropertyChainAxiomcopyOf(AbstractPropertyChainAxiom instance) Creates an immutable copy of aAbstractPropertyChainAxiomvalue.booleanThis instance is equal to all instances ofPropertyChainAxiomthat have equal attribute values.getMeta()inthashCode()Computes a hash code from attributes:meta,predicateId,chainPredicateIds.toString()Prints the immutable valuePropertyChainAxiomwith attribute values.final PropertyChainAxiomwithChainPredicateIds(Iterable<String> elements) Copy the current immutable object with elements that replace the content ofchainPredicateIds.final PropertyChainAxiomwithChainPredicateIds(String... elements) Copy the current immutable object with elements that replace the content ofchainPredicateIds.final PropertyChainAxiomCopy the current immutable object by setting a value for themetaattribute.final PropertyChainAxiomwithPredicateId(String value) Copy the current immutable object by setting a value for thepredicateIdattribute.Methods inherited from class org.geneontology.obographs.core.model.axiom.AbstractPropertyChainAxiom
compareTo
-
Method Details
-
getMeta
- Returns:
- the meta
-
getPredicateId
- Specified by:
getPredicateIdin classAbstractPropertyChainAxiom- Returns:
- the predicateId
-
getChainPredicateIds
- Specified by:
getChainPredicateIdsin classAbstractPropertyChainAxiom- Returns:
- the chainPredicateIds
-
withMeta
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
-
withPredicateId
Copy the current immutable object by setting a value for thepredicateIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for predicateId- Returns:
- A modified copy of the
thisobject
-
withChainPredicateIds
Copy the current immutable object with elements that replace the content ofchainPredicateIds.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withChainPredicateIds
Copy the current immutable object with elements that replace the content ofchainPredicateIds. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of chainPredicateIds elements to set- Returns:
- A modified copy of
thisobject
-
equals
This instance is equal to all instances ofPropertyChainAxiomthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:meta,predicateId,chainPredicateIds. -
toString
Prints the immutable valuePropertyChainAxiomwith attribute values. -
copyOf
Creates an immutable copy of aAbstractPropertyChainAxiomvalue. 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 PropertyChainAxiom instance
-