public static class JSONPointer.Builder
extends java.lang.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(java.lang.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(java.lang.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
java.lang.NullPointerException
- if token
is nullpublic JSONPointer.Builder append(int arrayIndex)
arrayIndex
- the array index to be added to the token listthis
Copyright © 2007 Hyfinity Ltd. All Rights Reserved.