blob: b1554db3de21130b47e5437c2086552669917a6c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
package com.github.javaparser.symbolsolver.resolution.typeinference.bounds;
import com.github.javaparser.symbolsolver.resolution.typeinference.Bound;
import com.github.javaparser.symbolsolver.resolution.typeinference.InferenceVariable;
import com.github.javaparser.symbolsolver.resolution.typeinference.InferenceVariableSubstitution;
import java.util.Collection;
import java.util.Collections;
import java.util.Set;
/**
* No valid choice of inference variables exists.
*
* @author Federico Tomassetti
*/
public class FalseBound extends Bound {
private static FalseBound INSTANCE = new FalseBound();
private FalseBound() {
}
public static FalseBound getInstance() {
return INSTANCE;
}
@Override
public String toString() {
return "FalseBound{}";
}
@Override
public boolean isSatisfied(InferenceVariableSubstitution inferenceVariableSubstitution) {
return false;
}
@Override
public Set<InferenceVariable> usedInferenceVariables() {
return Collections.emptySet();
}
}
|