public Permutator(List<String> list) { this.list = (List<String>) JsonLdUtils.clone(list); Collections.sort(this.list); this.done = false; this.left = new LinkedHashMap<>(); for (final String i : this.list) { this.left.put(i, true); } }
public Permutator(List<String> list) { this.list = (List<String>) JsonLdUtils.clone(list); Collections.sort(this.list); this.done = false; this.left = new LinkedHashMap<String, Boolean>(); for (final String i : this.list) { this.left.put(i, true); } }
public Permutator(List<String> list) { this.list = (List<String>) JsonLdUtils.clone(list); Collections.sort(this.list); this.done = false; this.left = new LinkedHashMap<String, Boolean>(); for (final String i : this.list) { this.left.put(i, true); } }
/** * Copies this UniqueNamer. * * @return a copy of this UniqueNamer. */ @Override public UniqueNamer clone() { final UniqueNamer copy = new UniqueNamer(this.prefix); copy.counter = this.counter; copy.existing = (Map<String, String>) JsonLdUtils.clone(this.existing); return copy; }
/** * Copies this UniqueNamer. * * @return a copy of this UniqueNamer. */ @Override public UniqueNamer clone() { final UniqueNamer copy = new UniqueNamer(this.prefix); copy.counter = this.counter; copy.existing = (Map<String, String>) JsonLdUtils.clone(this.existing); return copy; }
/** * Copies this UniqueNamer. * * @return a copy of this UniqueNamer. */ @Override public UniqueNamer clone() { final UniqueNamer copy = new UniqueNamer(this.prefix); copy.counter = this.counter; copy.existing = (Map<String, String>) JsonLdUtils.clone(this.existing); return copy; }
private class EmbedNode { public Object parent = null; public String property = null; public EmbedNode(Object parent, String property) { this.parent = parent; this.property = property; } }
private class EmbedNode { public Object parent = null; public String property = null; public EmbedNode(Object parent, String property) { this.parent = parent; this.property = property; } }
final List<String> rval = (List<String>) JsonLdUtils.clone(this.list);
final List<String> rval = (List<String>) JsonLdUtils.clone(this.list);
final List<String> rval = (List<String>) JsonLdUtils.clone(this.list);
/** * Initializes this object by cloning the input object using * {@link JsonLdUtils#clone(Object)}, and by parsing the context using * {@link Context#parse(Object)}. * * @param input * The initial object, which is to be cloned and used in * operations. * @param context * The context object, which is to be parsed and used in * operations. * @throws JsonLdError * If there was an error cloning the object, or in parsing the * context. */ private void initialize(Object input, Object context) throws JsonLdError { if (input instanceof List || input instanceof Map) { this.value = JsonLdUtils.clone(input); } // TODO: string/IO input this.context = new Context(opts); if (context != null) { this.context = this.context.parse(context); } }
/** * Initializes this object by cloning the input object using * {@link JsonLdUtils#clone(Object)}, and by parsing the context using * {@link Context#parse(Object)}. * * @param input * The initial object, which is to be cloned and used in * operations. * @param context * The context object, which is to be parsed and used in * operations. * @throws JsonLdError * If there was an error cloning the object, or in parsing the * context. */ private void initialize(Object input, Object context) throws JsonLdError { if (input instanceof List || input instanceof Map) { this.value = JsonLdUtils.clone(input); } // TODO: string/IO input this.context = new Context(opts); if (context != null) { this.context = this.context.parse(context); } }
/** * Initializes this object by cloning the input object using * {@link JsonLdUtils#clone(Object)}, and by parsing the context using * {@link Context#parse(Object)}. * * @param input * The initial object, which is to be cloned and used in * operations. * @param context * The context object, which is to be parsed and used in * operations. * @throws JsonLdError * If there was an error cloning the object, or in parsing the * context. */ private void initialize(Object input, Object context) throws JsonLdError { if (input instanceof List || input instanceof Map) { this.value = JsonLdUtils.clone(input); } // TODO: string/IO input this.context = new Context(opts); if (context != null) { this.context = this.context.parse(context); } }
frame = JsonLdUtils.clone(frame);
frame = JsonLdUtils.clone(frame);
frame = JsonLdUtils.clone(frame);