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

io.ebeaninternal.server.json.PathStack Maven / Gradle / Ivy

There is a newer version: 15.8.0
Show newest version
package io.ebeaninternal.server.json;

import io.ebeaninternal.server.util.ArrayStack;

public final class PathStack extends ArrayStack {

  public String peekFullPath(String key) {
    String prefix = peekWithNull();
    if (prefix != null) {
      return prefix + "." + key;
    } else {
      return key;
    }
  }

  public void pushPathKey(String key) {
    String prefix = peekWithNull();
    if (prefix != null) {
      key = prefix + "." + key;
    }
    push(key);
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy