protected abstract static class BoundSet.VarBounds<T>
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<T> |
equalBounds |
protected java.util.List<T> |
lowerBounds |
boolean |
thrown |
protected java.util.List<T> |
upperBounds |
| Modifier | Constructor and Description |
|---|---|
|
VarBounds(BoundSet root) |
protected |
VarBounds(BoundSet root,
BoundSet.VarBounds<T> other) |
| Modifier and Type | Method and Description |
|---|---|
protected net.covers1624.quack.collection.FastStream<T> |
activeBounds(java.util.List<T> list) |
protected void |
add(java.util.List<T> bounds,
T bound,
@Nullable java.util.function.BiConsumer<T,T> func) |
void |
addEqual(ReferenceType t) |
protected void |
addEqualBound(T b) |
void |
addLower(ReferenceType t) |
protected void |
addLowerBound(T b) |
void |
addUpper(ReferenceType t) |
protected void |
addUpperBound(T b) |
protected void |
boundAdded(T b) |
protected void |
compatibleSupertypes(T t1,
T t2) |
protected boolean |
dependsOn(T t,
BoundSet.InferenceVar v) |
protected void |
equal(T t1,
T t2) |
net.covers1624.quack.collection.FastStream<ReferenceType> |
equalTypes(TypeSubstitutions.TypeSubstApplier subst) |
java.lang.Iterable<BoundSet.InferenceVar> |
getDeps() |
protected ReferenceType |
getResolvedType(T t,
TypeSubstitutions.TypeSubstApplier subst) |
protected BoundSet |
getRoot() |
protected abstract ReferenceType |
getType(T t) |
protected <T1,T2> void |
incorporate(T1 b1,
T2 b2,
java.util.function.BiConsumer<T1,T2> action) |
protected <T1,T2> void |
incorporateList(T1 bound,
java.util.List<T2> bounds,
java.util.function.BiConsumer<T1,T2> func) |
protected <T1,T2> void |
incorporateList(T1 bound,
java.util.List<T2> bounds,
int count,
java.util.function.BiConsumer<T1,T2> func) |
protected boolean |
isEncompassedBy(T b,
java.util.List<T> existingBounds) |
protected boolean |
isEncompassedBy(T b1,
T b2) |
net.covers1624.quack.collection.FastStream<ReferenceType> |
lowerTypes(TypeSubstitutions.TypeSubstApplier subst) |
protected abstract T |
makeBound(ReferenceType t) |
void |
reverseUppers() |
protected BoundSet.VarBounds<T> |
setRoot(BoundSet root) |
protected void |
subtype(T t1,
T t2) |
net.covers1624.quack.collection.FastStream<ReferenceType> |
upperTypes(TypeSubstitutions.TypeSubstApplier subst) |
protected final java.util.List<T> equalBounds
protected final java.util.List<T> lowerBounds
protected final java.util.List<T> upperBounds
public boolean thrown
public VarBounds(BoundSet root)
protected VarBounds(BoundSet root, BoundSet.VarBounds<T> other)
protected BoundSet.VarBounds<T> setRoot(BoundSet root)
protected BoundSet getRoot()
protected abstract T makeBound(ReferenceType t)
protected abstract ReferenceType getType(T t)
protected ReferenceType getResolvedType(T t, TypeSubstitutions.TypeSubstApplier subst)
protected boolean dependsOn(T t, BoundSet.InferenceVar v)
protected void boundAdded(T b)
protected <T1,T2> void incorporate(T1 b1,
T2 b2,
java.util.function.BiConsumer<T1,T2> action)
public final void addEqual(ReferenceType t)
public final void addUpper(ReferenceType t)
public final void addLower(ReferenceType t)
protected void addEqualBound(T b)
protected void addUpperBound(T b)
protected void addLowerBound(T b)
protected void add(java.util.List<T> bounds, T bound, @Nullable @Nullable java.util.function.BiConsumer<T,T> func)
protected <T1,T2> void incorporateList(T1 bound,
java.util.List<T2> bounds,
java.util.function.BiConsumer<T1,T2> func)
protected <T1,T2> void incorporateList(T1 bound,
java.util.List<T2> bounds,
int count,
java.util.function.BiConsumer<T1,T2> func)
public java.lang.Iterable<BoundSet.InferenceVar> getDeps()
protected net.covers1624.quack.collection.FastStream<T> activeBounds(java.util.List<T> list)
public net.covers1624.quack.collection.FastStream<ReferenceType> equalTypes(TypeSubstitutions.TypeSubstApplier subst)
public net.covers1624.quack.collection.FastStream<ReferenceType> upperTypes(TypeSubstitutions.TypeSubstApplier subst)
public net.covers1624.quack.collection.FastStream<ReferenceType> lowerTypes(TypeSubstitutions.TypeSubstApplier subst)
public void reverseUppers()