public final class BoundedLong extends AbstractBounded<Long>
Module: work-api
To use this in your app, include the following dependency in your POM:
<dependency> <groupId>org.cytoscape</groupId> <artifactId>work-api</artifactId> </dependency>
Constructor and Description |
---|
BoundedLong(Long lower,
Long initValue,
Long upper,
boolean lowerStrict,
boolean upperStrict)
Creates a new Bounded Long object.
|
Modifier and Type | Method and Description |
---|---|
Long |
clamp(Long value)
Clamp the value to be within the range.
|
void |
setValue(String s)
Set a new value to the BoundedLong object.
|
addListener, getLowerBound, getUpperBound, getValue, isLowerBoundStrict, isUpperBoundStrict, removeListener, setBounds, setLowerBoundStrict, setUpperBoundStrict, setValue
public BoundedLong(Long lower, Long initValue, Long upper, boolean lowerStrict, boolean upperStrict)
lower
- The lower bound value.initValue
- Initial of default value for the Long.upper
- The upper bound value.lowerStrict
- True means that the value cannot be equal to the lower bound.upperStrict
- True means that the value cannot be equal to the upper bound.public void setValue(String s)
setValue
in class AbstractBounded<Long>
s
- String converted into Long.public Long clamp(Long value)
clamp
in class AbstractBounded<Long>
Copyright 2011-2015 Cytoscape Consortium. All rights reserved.