public static final class SourceLevelQuery.Result extends Object
Modifier and Type | Method and Description |
---|---|
void |
addChangeListener(ChangeListener listener)
Add a listener to changes of source level.
|
SourceLevelQuery.Profile |
getProfile()
Returns the required profile.
|
String |
getSourceLevel()
Get the source level.
|
void |
removeChangeListener(ChangeListener listener)
Remove a listener to changes of source level.
|
boolean |
supportsChanges()
Returns true if the result support updates and client may
listen on it.
|
@CheckForNull public String getSourceLevel()
@NonNull public SourceLevelQuery.Profile getProfile()
SourceLevelQuery.Profile.DEFAULT
.
public void addChangeListener(@NonNull ChangeListener listener)
SourceLevelQuery.Result.supportsChanges()
is false, the listener will never be notified
although SourceLevelQuery.Result.getSourceLevel()
may change from call to call.listener
- a listener to addpublic void removeChangeListener(@NonNull ChangeListener listener)
listener
- a listener to addpublic boolean supportsChanges()
SourceLevelQueryImplementation
do not support
listening.