rcf.core.util.reference
Class ReferenceTypeFilter<T>

java.lang.Object
  extended by rcf.core.util.filter.AbstractFilter<Reference<T>>
      extended by rcf.core.util.reference.ReferenceTypeFilter<T>
All Implemented Interfaces:
rcf.core.util.filter.Filter<Reference<T>>, rcf.core.util.filter.FilterRange<Reference<T>>, ImmutableSingletonInterface<T>, rcf.core.util.Range<Reference<T>>

@Revision(value="$Revision: 1.7 $",
          date="$Date: 2006/11/28 02:31:15 $",
          tag="$Name:  $")
public class ReferenceTypeFilter<T>
extends rcf.core.util.filter.AbstractFilter<Reference<T>>
implements rcf.core.util.filter.FilterRange<Reference<T>>, ImmutableSingletonInterface<T>

TODO: Javadoc

TODO: Unit tests, Code review, Javadoc review, Seal/Finalize TODO: equals, hashCode, toString

Version:
$Revision: 1.7 $
Author:
Greg Gibeling

Nested Class Summary
 
Nested classes/interfaces inherited from interface rcf.core.util.filter.Filter
rcf.core.util.filter.Filter.Type
 
Field Summary
protected  rcf.core.util.accessor.Accessor<? super T> accessor
          TODO: Javadoc
protected  Reference.Type max
          TODO: Javadoc
protected  Reference.Type min
          TODO: Javadoc
protected  T o
          TODO: Javadoc
 
Fields inherited from class rcf.core.util.filter.AbstractFilter
filterInverse
 
Constructor Summary
ReferenceTypeFilter(rcf.core.util.accessor.Accessor<? super T> _accessor, T _o, Reference.Type _min, Reference.Type _max)
          TODO: Javadoc
 
Method Summary
 rcf.core.util.accessor.Comparator<Reference<T>> comparator()
           
 boolean filter(Reference<T> _o)
           
 rcf.core.util.filter.Filter.Type filterType()
           
 T get()
          TODO: Javadoc Get the content element of this singleton.
 Reference<T> max()
          TODO: Javadoc
 Reference<T> min()
          TODO: Javadoc
 
Methods inherited from class rcf.core.util.filter.AbstractFilter
filterAll, filterAny, filterInverse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface rcf.core.util.filter.Filter
equals, filterAll, filterAny, filterInverse
 

Field Detail

accessor

protected final rcf.core.util.accessor.Accessor<? super T> accessor
TODO: Javadoc


max

protected final Reference.Type max
TODO: Javadoc


min

protected final Reference.Type min
TODO: Javadoc


o

protected final T o
TODO: Javadoc

Constructor Detail

ReferenceTypeFilter

public ReferenceTypeFilter(rcf.core.util.accessor.Accessor<? super T> _accessor,
                           T _o,
                           Reference.Type _min,
                           Reference.Type _max)
TODO: Javadoc

Parameters:
_accessor -
o -
_min -
_max -
Method Detail

comparator

public rcf.core.util.accessor.Comparator<Reference<T>> comparator()
Specified by:
comparator in interface rcf.core.util.filter.FilterRange<Reference<T>>

filter

public boolean filter(Reference<T> _o)
Specified by:
filter in interface rcf.core.util.filter.Filter<Reference<T>>

filterType

public rcf.core.util.filter.Filter.Type filterType()
Specified by:
filterType in interface rcf.core.util.filter.Filter<Reference<T>>

get

public T get()
Description copied from interface: ImmutableSingletonInterface
TODO: Javadoc Get the content element of this singleton.

Specified by:
get in interface ImmutableSingletonInterface<T>
Returns:
The content element of this singleton.

max

public Reference<T> max()
TODO: Javadoc

Specified by:
max in interface rcf.core.util.Range<Reference<T>>
Returns:

min

public Reference<T> min()
TODO: Javadoc

Specified by:
min in interface rcf.core.util.Range<Reference<T>>
Returns: