public class ScoredGetter<T,P> extends Object
Modifier and Type | Field and Description |
---|---|
static ScoredGetter |
NULL |
Constructor and Description |
---|
ScoredGetter(int score,
Getter<? super T,? extends P> getter) |
Modifier and Type | Method and Description |
---|---|
ScoredGetter<T,P> |
best(ScoredGetter<T,P> getter) |
Getter<? super T,? extends P> |
getGetter() |
boolean |
isBetterThan(ScoredGetter<T,P> scoredGetter) |
static <T,P> ScoredGetter<T,P> |
nullGetter() |
static <T,P> ScoredGetter<T,P> |
of(Getter<T,P> getter,
int score) |
static <T,P> ScoredGetter<T,P> |
ofField(Field field,
Getter<T,P> fieldGetter) |
static <T,P> ScoredGetter<T,P> |
ofMethod(Method method,
Getter<T,P> methodGetter) |
String |
toString() |
public static final ScoredGetter NULL
public static <T,P> ScoredGetter<T,P> nullGetter()
public boolean isBetterThan(ScoredGetter<T,P> scoredGetter)
public ScoredGetter<T,P> best(ScoredGetter<T,P> getter)
public static <T,P> ScoredGetter<T,P> of(Getter<T,P> getter, int score)
public static <T,P> ScoredGetter<T,P> ofMethod(Method method, Getter<T,P> methodGetter)
public static <T,P> ScoredGetter<T,P> ofField(Field field, Getter<T,P> fieldGetter)
Copyright © 2017. All rights reserved.