io.setl.json.patch.key.ArrayKey Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of canonical-json Show documentation
Show all versions of canonical-json Show documentation
An implementation of the Canonical JSON format with support for javax.json and Jackson
The newest version!
package io.setl.json.patch.key;
/**
* An array index which makes part of a pointer for a patch.
*/
public class ArrayKey extends Key {
private final int index;
/**
* New instance.
*
* @param parent the parent key
* @param index the index in an array
*/
public ArrayKey(Key parent, int index) {
super(parent);
this.index = index;
}
@Override
protected String getEscapedKey() {
return Integer.toString(index);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy