Completions (Java SE 15 & JDK 15) (original) (raw)
public class Completions extends Object
Utility class for assembling Completion objects.
Since:
1.6
Method Summary
Modifier and Type | Method | Description |
---|---|---|
static Completion | of(String value) | Returns a completion of the value and an empty message |
static Completion | of(String value,String message) | Returns a completion of the value and message. |
Methods declared in class java.lang.Object
[clone](../../../../java.base/java/lang/Object.html#clone%28%29), [equals](../../../../java.base/java/lang/Object.html#equals%28java.lang.Object%29), [finalize](../../../../java.base/java/lang/Object.html#finalize%28%29), [getClass](../../../../java.base/java/lang/Object.html#getClass%28%29), [hashCode](../../../../java.base/java/lang/Object.html#hashCode%28%29), [notify](../../../../java.base/java/lang/Object.html#notify%28%29), [notifyAll](../../../../java.base/java/lang/Object.html#notifyAll%28%29), [toString](../../../../java.base/java/lang/Object.html#toString%28%29), [wait](../../../../java.base/java/lang/Object.html#wait%28%29), [wait](../../../../java.base/java/lang/Object.html#wait%28long%29), [wait](../../../../java.base/java/lang/Object.html#wait%28long,int%29)
Method Details
of
Returns a completion of the value and message.
Parameters:
value
- the text of the completion
message
- a message about the completion
Returns:
a completion of the provided value and messageof
Returns a completion of the value and an empty message
Parameters:
value
- the text of the completion
Returns:
a completion of the value and an empty message