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 @CheckReturnValue public final class PropertyChainAxiom extends AbstractPropertyChainAxiom
P <- P1 ... Pn- Author:
- cjm
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPropertyChainAxiom.BuilderBuilds instances of typePropertyChainAxiom.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PropertyChainAxiomcopyOf(AbstractPropertyChainAxiom instance)Creates an immutable copy of aAbstractPropertyChainAxiomvalue.booleanequals(Object another)This instance is equal to all instances ofPropertyChainAxiomthat have equal attribute values.com.google.common.collect.ImmutableList<String>getChainPredicateIds()MetagetMeta()StringgetPredicateId()inthashCode()Computes a hash code from attributes:meta,predicateId,chainPredicateIds.StringtoString()Prints the immutable valuePropertyChainAxiomwith attribute values.PropertyChainAxiomwithChainPredicateIds(Iterable<String> elements)Copy the current immutable object with elements that replace the content ofchainPredicateIds.PropertyChainAxiomwithChainPredicateIds(String... elements)Copy the current immutable object with elements that replace the content ofchainPredicateIds.PropertyChainAxiomwithMeta(Meta value)Copy the current immutable object by setting a value for themetaattribute.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 Detail
-
getMeta
@Nullable public Meta getMeta()
- Returns:
- the meta
-
getPredicateId
public String getPredicateId()
- Specified by:
getPredicateIdin classAbstractPropertyChainAxiom- Returns:
- the predicateId
-
getChainPredicateIds
public com.google.common.collect.ImmutableList<String> getChainPredicateIds()
- Specified by:
getChainPredicateIdsin classAbstractPropertyChainAxiom- Returns:
- the chainPredicateIds
-
withMeta
public final PropertyChainAxiom 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
-
withPredicateId
public final PropertyChainAxiom withPredicateId(String value)
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
public final PropertyChainAxiom withChainPredicateIds(String... elements)
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
public final PropertyChainAxiom withChainPredicateIds(Iterable<String> elements)
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
public boolean equals(@Nullable Object another)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
public String toString()
Prints the immutable valuePropertyChainAxiomwith attribute values.
-
copyOf
public static PropertyChainAxiom copyOf(AbstractPropertyChainAxiom instance)
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
-
-