public class Period extends Object implements Serializable
PeriodType
, i.e. time
,
iterations
or percents
.
Period is an immutable type.PeriodType
,
Serialized FormConstructor and Description |
---|
Period(PeriodType periodType,
long period)
Creates a new period of the given type and length.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
long |
getPeriod()
Gets period duration.
|
PeriodType |
getPeriodType()
Gets period type.
|
int |
hashCode() |
String |
toString() |
public Period(PeriodType periodType, long period)
periodType
- Type of the period.period
- Length of the period.public PeriodType getPeriodType()
public long getPeriod()
Copyright © 2010–2017 PerfCake Community. All rights reserved.