net.sf.jagg.msd
Class CalendarDiscriminator.CalendarChainedExtractor<E>

java.lang.Object
  extended by net.sf.jagg.msd.AbstractExtractor<E,T>
      extended by net.sf.jagg.msd.ChainedExtractor<E,java.lang.Long,T>
          extended by net.sf.jagg.msd.CalendarDiscriminator.CalendarChainedExtractor<E>
Type Parameters:
E - The type of element.
All Implemented Interfaces:
Extractor<E,java.lang.Long>
Enclosing class:
CalendarDiscriminator<T extends java.util.Calendar>

protected class CalendarDiscriminator.CalendarChainedExtractor<E>
extends ChainedExtractor<E,java.lang.Long,T>

A CalendarChainedExtractor extracts the milliseconds value of the Calendar.


Field Summary
 
Fields inherited from class net.sf.jagg.msd.AbstractExtractor
amIAllComplete, myExtractor, myIndex
 
Constructor Summary
CalendarDiscriminator.CalendarChainedExtractor(Extractor<E,T> extractor)
          Create an CalendarChainedExtractor that uses the given Extractor to retrieve the array.
 
Method Summary
 java.lang.Long getLabel(E element)
          The label is the milliseconds value of the Calendar.
 boolean isComplete(E element)
          The discrimination is complete when the chained Extractor is complete.
 
Methods inherited from class net.sf.jagg.msd.AbstractExtractor
isAllComplete, setAllComplete, setIndex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.jagg.msd.Extractor
isAllComplete, setAllComplete
 

Constructor Detail

CalendarDiscriminator.CalendarChainedExtractor

public CalendarDiscriminator.CalendarChainedExtractor(Extractor<E,T> extractor)
Create an CalendarChainedExtractor that uses the given Extractor to retrieve the array.

Parameters:
extractor - An Extractor whose label is a long.
Method Detail

getLabel

public java.lang.Long getLabel(E element)
The label is the milliseconds value of the Calendar.

Specified by:
getLabel in interface Extractor<E,java.lang.Long>
Specified by:
getLabel in class ChainedExtractor<E,java.lang.Long,T extends java.util.Calendar>
Parameters:
element - The element.
Returns:
The milliseconds value of the Calendar.

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.Calendar>
Parameters:
element - The element.
Returns:
true if complete, false otherwise.


Copyright © 2010-2013 jAgg Team. All Rights Reserved.