Silk DI 0.6


se.jbee.inject
Class Precision

Object
  extended by se.jbee.inject.Precision

public final class Precision
extends Object

A util to find out if one object is PreciserThan an other one.

Author:
Jan Bernitt (jan@jbee.se)

Field Summary
static Comparator<Resourced<?>> RESOURCE_COMPARATOR
           
 
Constructor Summary
Precision()
           
 
Method Summary
static
<T extends PreciserThan<? super T>>
Comparator<T>
comparator()
           
static
<T extends PreciserThan<? super T>>
int
comparePrecision(T one, T other)
           
static
<T extends PreciserThan<? super T>,T2 extends PreciserThan<? super T2>>
boolean
morePreciseThan2(T one, T other, T2 sndOne, T2 sndOther)
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE_COMPARATOR

public static final Comparator<Resourced<?>> RESOURCE_COMPARATOR
Constructor Detail

Precision

public Precision()
Method Detail

comparator

public static <T extends PreciserThan<? super T>> Comparator<T> comparator()

comparePrecision

public static <T extends PreciserThan<? super T>> int comparePrecision(T one,
                                                                       T other)

morePreciseThan2

public static <T extends PreciserThan<? super T>,T2 extends PreciserThan<? super T2>> boolean morePreciseThan2(T one,
                                                                                                               T other,
                                                                                                               T2 sndOne,
                                                                                                               T2 sndOther)

Silk DI 0.6