T
- Class of the bound object.public class BoundPeriod<T> extends Period
Period
bound to a specific object. The binding means that the
BoundPeriod is valid only on the given object and an action should be taken only for this object.Constructor and Description |
---|
BoundPeriod(Period p,
T binding)
Creates a new BoundPeriod based on an existing Period.
|
BoundPeriod(PeriodType periodType,
long period,
T binding)
Creates a new BoundPeriod.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
T |
getBinding()
Gets the object bound to this period.
|
int |
hashCode() |
String |
toString() |
getPeriod, getPeriodType
public BoundPeriod(PeriodType periodType, long period, T binding)
periodType
- Period unit type.period
- Period length.binding
- Object bound to this period.public T getBinding()
Copyright © 2010–2017 PerfCake Community. All rights reserved.