T
- The generic type of this DiscreteRange.public class DiscreteRange<T> extends Object implements Range<T>
VisualProperty
s.Module: viewmodel-api
To use this in your app, include the following dependency in your POM:
<dependency> <groupId>org.cytoscape</groupId> <artifactId>viewmodel-api</artifactId> </dependency>
Constructor and Description |
---|
DiscreteRange(Class<T> type,
Set<T> values)
Constructor for this DiscreteRange.
|
Modifier and Type | Method and Description |
---|---|
void |
addRangeValue(T newValue)
Add a value to this DiscreteRange.
|
Class<T> |
getType()
Type of object used in this range.
|
boolean |
inRange(T value)
Return true if the given value is in the range defined in this class.
|
boolean |
isDiscrete()
If this range is a set of discrete values, return true.
|
Set<T> |
values()
Returns a Set of all the values for this DiscreteRange.
|
public Class<T> getType()
Range
public boolean isDiscrete()
Range
isDiscrete
in interface Range<T>
public Set<T> values()
public void addRangeValue(T newValue)
newValue
- the value to add to the range.Copyright 2011-2015 Cytoscape Consortium. All rights reserved.