Class MatchableBinding.Matching<D extends MatchableBinding>
- java.lang.Object
-
- org.glassfish.jersey.inject.weld.internal.inject.MatchableBinding.Matching<D>
-
- Type Parameters:
D- Concrete injection binding implementation type.
- All Implemented Interfaces:
Comparable<MatchableBinding.Matching>
- Enclosing class:
- MatchableBinding<T,D extends MatchableBinding>
public static class MatchableBinding.Matching<D extends MatchableBinding> extends Object implements Comparable<MatchableBinding.Matching>
Matching object that represents the level of a match between two bindings. Contains a reference to a MatchableBinding whose instance was used to create the Matching object.
-
-
Field Summary
Fields Modifier and Type Field Description protected MatchableBinding.MatchLevelmatchLevel
-
Constructor Summary
Constructors Modifier Constructor Description protectedMatching(D binding, MatchableBinding.MatchLevel matchLevel)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MatchableBinding.Matchingbetter(MatchableBinding.Matching other)intcompareTo(MatchableBinding.Matching other)DgetBinding()booleanisBest()booleanmatches()static <D extends MatchableBinding>
MatchableBinding.Matching<D>noneMatching()
-
-
-
Field Detail
-
matchLevel
protected MatchableBinding.MatchLevel matchLevel
-
-
Constructor Detail
-
Matching
protected Matching(D binding, MatchableBinding.MatchLevel matchLevel)
-
-
Method Detail
-
noneMatching
public static <D extends MatchableBinding> MatchableBinding.Matching<D> noneMatching()
-
compareTo
public int compareTo(MatchableBinding.Matching other)
- Specified by:
compareToin interfaceComparable<D extends MatchableBinding>
-
better
public MatchableBinding.Matching better(MatchableBinding.Matching other)
-
isBest
public boolean isBest()
-
matches
public boolean matches()
-
getBinding
public D getBinding()
-
-