public enum BoundTypeArgumentSource extends java.lang.Enum<BoundTypeArgumentSource>
Enum Constant and Description |
---|
CONSTRAINT
public <T extends CharSequence> void method() {
this.method();
}
|
EXPECTATION
public <T extends CharSequence> T method() {
String s = method();
}
|
EXPLICIT
public <T> void method(List<?
|
INFERRED
public <T> void method(List<T> list) {
List<String> someList = ..
|
INFERRED_CONSTRAINT
CharIterable<E extends CharSequence> extends Iterable<E> {}
public <T> void method(CharIterable<T>) {
this.method();
}
|
INFERRED_LATER
public <T> List<T> createList(T... elements) {}
val list = createList() // list<unbound/T>
list.add('string') // bind T to String
|
RESOLVED
Used to indicate that a type argument was resolved
|
Modifier and Type | Method and Description |
---|---|
static BoundTypeArgumentSource |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BoundTypeArgumentSource[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BoundTypeArgumentSource EXPLICIT
public <T> void method(List<? extends T> list) { List<String> someList = .. this.<CharSequence>method(someList); }
public static final BoundTypeArgumentSource CONSTRAINT
public <T extends CharSequence> void method() { this.method(); }
public static final BoundTypeArgumentSource INFERRED_CONSTRAINT
CharIterable<E extends CharSequence> extends Iterable<E> {} public <T> void method(CharIterable<T>) { this.method(); }
public static final BoundTypeArgumentSource INFERRED_LATER
public <T> List<T> createList(T... elements) {} val list = createList() // list<unbound/T> list.add('string') // bind T to String
public static final BoundTypeArgumentSource EXPECTATION
public <T extends CharSequence> T method() { String s = method(); }
public static final BoundTypeArgumentSource INFERRED
public <T> void method(List<T> list) { List<String> someList = .. this.method(someList); }
public static final BoundTypeArgumentSource RESOLVED
Used to indicate that a type argument was resolved
public static BoundTypeArgumentSource[] values()
for (BoundTypeArgumentSource c : BoundTypeArgumentSource.values()) System.out.println(c);
public static BoundTypeArgumentSource valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is null