public class Interval extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Interval.Units |
| Constructor and Description |
|---|
Interval(int length,
Interval.Units units) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
getLength() |
Interval.Units |
getUnits() |
int |
hashCode() |
static Interval |
parse(String s)
Parses the string into an interval.
|
String |
toString() |
public static final Interval NONE
public Interval(int length,
Interval.Units units)
public static Interval parse(String s)
s - The string to parseIntervalIllegalArgumentException - if the string does not parsepublic int getLength()
public Interval.Units getUnits()
Copyright © 2014–2017 Red Hat, Inc.. All rights reserved.