T
- the type parameterpublic abstract class StringQuery<T> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
StringQuery.SimpleStringQuery
The type Simple string query.
|
Modifier and Type | Field and Description |
---|---|
protected Semaphore |
done
The Done.
|
protected Closeable |
handler_get
The Handler get.
|
protected Closeable |
handler_post
The Handler post.
|
protected String |
id
The Id.
|
protected static org.slf4j.Logger |
logger
The constant logger.
|
protected T |
value
The Value.
|
Constructor and Description |
---|
StringQuery(MarkdownNotebookOutput log)
Instantiates a new String query.
|
Modifier and Type | Method and Description |
---|---|
protected void |
finalize() |
protected abstract T |
fromString(String text)
From string t.
|
T |
get()
Get t.
|
T |
get(long t,
TimeUnit u)
Get t.
|
protected abstract String |
getString(T value)
Gets string.
|
protected String |
getWrite()
Gets write.
|
StringQuery<T> |
print(T initial)
Print string query.
|
protected static final org.slf4j.Logger logger
protected final String id
protected final Closeable handler_get
protected final Semaphore done
protected final Closeable handler_post
protected T value
public StringQuery(MarkdownNotebookOutput log)
log
- the logprotected String getWrite() throws com.fasterxml.jackson.core.JsonProcessingException
com.fasterxml.jackson.core.JsonProcessingException
- the json processing exceptionprotected abstract T fromString(String text) throws IOException
text
- the textIOException
- the io exceptionprotected abstract String getString(T value) throws com.fasterxml.jackson.core.JsonProcessingException
value
- the valuecom.fasterxml.jackson.core.JsonProcessingException
- the json processing exceptionpublic StringQuery<T> print(@Nonnull T initial)
initial
- the initialpublic T get()
Copyright © 2019 SimiaCryptus Software. All rights reserved.