public static class JsonPointer.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
JsonPointer.Builder |
append(int arrayIndex)
Adds an integer to the reference token list.
|
JsonPointer.Builder |
append(String token)
Adds an arbitrary token to the list of reference tokens.
|
JsonPointer |
build()
Creates a
JsonPointer instance using the tokens previously set using the
append(String) method calls. |
public JsonPointer build()
JsonPointer
instance using the tokens previously set using the
append(String)
method calls.public JsonPointer.Builder append(String token)
"a~b"
then you should simply pass the "a~b"
string as-is, there is no need to
escape it as "a~0b"
.token
- the new token to be appended to the listthis
NullPointerException
- if token
is nullpublic JsonPointer.Builder append(int arrayIndex)
arrayIndex
- the array index to be added to the token listthis
Copyright © 2018 Terra Software Informatics LLC.. All rights reserved.