Class XrefPropertyValue
java.lang.Object
org.geneontology.obographs.core.model.meta.AbstractXrefPropertyValue
org.geneontology.obographs.core.model.meta.XrefPropertyValue
- All Implemented Interfaces:
Comparable<PropertyValue>,PropertyValue
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class XrefPropertyValue
extends AbstractXrefPropertyValue
Immutable implementation of
AbstractXrefPropertyValue.
Use the builder to create immutable instances:
new XrefPropertyValue.Builder().
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.geneontology.obographs.core.model.meta.PropertyValue
COMPARATOR -
Method Summary
Modifier and TypeMethodDescriptionstatic XrefPropertyValuecopyOf(AbstractXrefPropertyValue instance) Creates an immutable copy of aAbstractXrefPropertyValuevalue.booleanThis instance is equal to all instances ofXrefPropertyValuethat have equal attribute values.getLbl()getMeta()getPred()Predicates correspond to OWL properties.getVal()The value of the property-valuegetXrefs()An array denoting objects that support the property value assertioninthashCode()Computes a hash code from attributes:pred,val,xrefs,meta,lbl.toString()Prints the immutable valueXrefPropertyValuewith attribute values.final XrefPropertyValueCopy the current immutable object by setting a value for thelblattribute.final XrefPropertyValueCopy the current immutable object by setting a value for themetaattribute.final XrefPropertyValueCopy the current immutable object by setting a value for thepredattribute.final XrefPropertyValueCopy the current immutable object by setting a value for thevalattribute.final XrefPropertyValueCopy the current immutable object with elements that replace the content ofxrefs.final XrefPropertyValueCopy the current immutable object with elements that replace the content ofxrefs.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.geneontology.obographs.core.model.meta.PropertyValue
compareTo
-
Method Details
-
getPred
Predicates correspond to OWL properties. Like all preds in this datamodel, a pred is represented as a String which denotes a CURIE- Returns:
- the pred
-
getVal
The value of the property-value- Returns:
- the val
-
getXrefs
An array denoting objects that support the property value assertion- Returns:
- the xrefs
-
getMeta
- Returns:
- The value of the
metaattribute
-
getLbl
- Overrides:
getLblin classAbstractXrefPropertyValue- Returns:
- the lbl
-
withPred
Copy the current immutable object by setting a value for thepredattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for pred- Returns:
- A modified copy of the
thisobject
-
withVal
Copy the current immutable object by setting a value for thevalattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for val- Returns:
- A modified copy of the
thisobject
-
withXrefs
Copy the current immutable object with elements that replace the content ofxrefs.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withXrefs
Copy the current immutable object with elements that replace the content ofxrefs. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of xrefs elements to set- Returns:
- A modified copy of
thisobject
-
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
-
withLbl
Copy the current immutable object by setting a value for thelblattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for lbl- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofXrefPropertyValuethat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:pred,val,xrefs,meta,lbl. -
toString
Prints the immutable valueXrefPropertyValuewith attribute values. -
copyOf
Creates an immutable copy of aAbstractXrefPropertyValuevalue. 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 XrefPropertyValue instance
-