All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.setl.json.patch.key.ArrayKey Maven / Gradle / Ivy

Go to download

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