net.sf.jagg.msd
Class DateDiscriminator.DateChainedExtractor<E>
java.lang.Object
net.sf.jagg.msd.AbstractExtractor<E,T>
net.sf.jagg.msd.ChainedExtractor<E,java.lang.Long,T>
net.sf.jagg.msd.DateDiscriminator.DateChainedExtractor<E>
- Type Parameters:
E
- The type of element.
- All Implemented Interfaces:
- Extractor<E,java.lang.Long>
- Enclosing class:
- DateDiscriminator<T extends java.util.Date>
protected class DateDiscriminator.DateChainedExtractor<E>
- extends ChainedExtractor<E,java.lang.Long,T>
A DateChainedExtractor
extracts the milliseconds value of
the Date
.
Method Summary |
java.lang.Long |
getLabel(E element)
The label is the milliseconds value of the Date . |
boolean |
isComplete(E element)
The discrimination is complete when the chained Extractor
is complete. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DateDiscriminator.DateChainedExtractor
public DateDiscriminator.DateChainedExtractor(Extractor<E,T> extractor)
- Create an
EnumChainedExtractor
that uses the given
Extractor
to retrieve the array.
- Parameters:
extractor
- An Extractor
whose label is a
long
.
getLabel
public java.lang.Long getLabel(E element)
- The label is the milliseconds value of the
Date
.
- Specified by:
getLabel
in interface Extractor<E,java.lang.Long>
- Specified by:
getLabel
in class ChainedExtractor<E,java.lang.Long,T extends java.util.Date>
- Parameters:
element
- The element.
- Returns:
- The milliseconds value of the
Date
.
isComplete
public boolean isComplete(E element)
- The discrimination is complete when the chained
Extractor
is complete.
- Specified by:
isComplete
in interface Extractor<E,java.lang.Long>
- Specified by:
isComplete
in class AbstractExtractor<E,T extends java.util.Date>
- Parameters:
element
- The element.
- Returns:
true
if complete, false
otherwise.
Copyright © 2010-2013 jAgg Team. All Rights Reserved.