Package org.cytoscape.equations
Class IdentDescriptor
- java.lang.Object
-
- org.cytoscape.equations.IdentDescriptor
-
public final class IdentDescriptor extends Object
Used to hold a current value for an equation's variable reference.Module:
equations-apiTo use this in your app, include the following dependency in your POM:
<dependency> <groupId>org.cytoscape</groupId> <artifactId>equations-api</artifactId> </dependency>
Cytoscape Backwards Compatibility (Final Class): This class is final and therefore can't be extended by users. This means that we may add methods for minor version updates. Methods will only be removed for major version updates.
-
-
Constructor Summary
Constructors Constructor Description IdentDescriptor(Object o)Initializes a newIdentDescriptorand provides minimal type translation (fromIntegertoLong).
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClassgetType()Returns the, possibly adjusted, type of the descriptor as one of the types internally supported by equations.ObjectgetValue()Returns the value of the descriptor.
-
-
-
Constructor Detail
-
IdentDescriptor
public IdentDescriptor(Object o)
Initializes a newIdentDescriptorand provides minimal type translation (fromIntegertoLong).- Parameters:
o- an object that represents a value for a variable reference- Throws:
NullPointerException- if "o" is nullIllegalArgumentException- if "o" is not aLong,Integer,Double,Booleannor aString
-
-
Method Detail
-
getType
public Class getType()
Returns the, possibly adjusted, type of the descriptor as one of the types internally supported by equations.- Returns:
- the (translated) type of the descriptor
-
getValue
public Object getValue()
Returns the value of the descriptor.- Returns:
- the (translated) value of the descriptor
-
-