Package com.yahoo.labs.samoa.instances
Class Range
- java.lang.Object
-
- com.yahoo.labs.samoa.instances.Range
-
- All Implemented Interfaces:
Serializable
public class Range extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getEnd()
int
getStart()
protected int
rangeSingle(String singleSelection)
Translates a single string selection into it's internal 0-based equivalent.void
setRange(String range)
Sets the range from a string representation.void
setUpper(int attributeNumber)
-
-
-
Constructor Detail
-
Range
public Range(String range)
-
-
Method Detail
-
setRange
public void setRange(String range)
Sets the range from a string representation.- Parameters:
range
- the start and end string
-
rangeSingle
protected int rangeSingle(String singleSelection)
Translates a single string selection into it's internal 0-based equivalent.- Parameters:
singleSelection
- the string representing the selection (eg: 1 first last)- Returns:
- the number corresponding to the selected value
-
setUpper
public void setUpper(int attributeNumber)
-
getStart
public int getStart()
-
getEnd
public int getEnd()
-
-