Tabnine Logo
JsonObject.valueOf
Code IndexAdd Tabnine to your IDE (free)

How to use
valueOf
method
in
org.hjson.JsonObject

Best Java code snippets using org.hjson.JsonObject.valueOf (Showing top 20 results out of 315)

origin: org.hjson/hjson

/**
 * Sets the value of the member with the specified name to the JSON representation of the
 * specified <code>long</code> value. If this object does not contain a member with this name, a
 * new member is added at the end of the object. If this object contains multiple members with
 * this name, only the last one is changed.
 * <p>
 * This method should <strong>only be used to modify existing objects</strong>. To fill a new
 * object with members, the method <code>add(name, value)</code> should be preferred which is much
 * faster (as it does not need to search for existing members).
 * </p>
 *
 * @param name
 *          the name of the member to replace
 * @param value
 *          the value to set to the member
 * @return the object itself, to enable method chaining
 */
public JsonObject set(String name, long value) {
 set(name, valueOf(value));
 return this;
}
origin: org.hjson/hjson

/**
 * Sets the value of the member with the specified name to the JSON representation of the
 * specified <code>boolean</code> value. If this object does not contain a member with this name,
 * a new member is added at the end of the object. If this object contains multiple members with
 * this name, only the last one is changed.
 * <p>
 * This method should <strong>only be used to modify existing objects</strong>. To fill a new
 * object with members, the method <code>add(name, value)</code> should be preferred which is much
 * faster (as it does not need to search for existing members).
 * </p>
 *
 * @param name
 *          the name of the member to add
 * @param value
 *          the value of the member to add
 * @return the object itself, to enable method chaining
 */
public JsonObject set(String name, boolean value) {
 set(name, valueOf(value));
 return this;
}
origin: org.hjson/hjson

/**
 * Appends a new member to the end of this object, with the specified name and the JSON
 * representation of the specified <code>long</code> value.
 * <p>
 * This method <strong>does not prevent duplicate names</strong>. Calling this method with a name
 * that already exists in the object will append another member with the same name. In order to
 * replace existing members, use the method <code>set(name, value)</code> instead. However,
 * <strong> <em>add</em> is much faster than <em>set</em></strong> (because it does not need to
 * search for existing members). Therefore <em>add</em> should be preferred when constructing new
 * objects.
 * </p>
 *
 * @param name
 *          the name of the member to add
 * @param value
 *          the value of the member to add
 * @return the object itself, to enable method chaining
 */
public JsonObject add(String name, long value) {
 add(name, valueOf(value));
 return this;
}
origin: org.hjson/hjson

/**
 * Sets the value of the member with the specified name to the JSON representation of the
 * specified <code>float</code> value. If this object does not contain a member with this name, a
 * new member is added at the end of the object. If this object contains multiple members with
 * this name, only the last one is changed.
 * <p>
 * This method should <strong>only be used to modify existing objects</strong>. To fill a new
 * object with members, the method <code>add(name, value)</code> should be preferred which is much
 * faster (as it does not need to search for existing members).
 * </p>
 *
 * @param name
 *          the name of the member to add
 * @param value
 *          the value of the member to add
 * @return the object itself, to enable method chaining
 */
public JsonObject set(String name, float value) {
 set(name, valueOf(value));
 return this;
}
origin: org.hjson/hjson

/**
 * Sets the value of the member with the specified name to the JSON representation of the
 * specified <code>double</code> value. If this object does not contain a member with this name, a
 * new member is added at the end of the object. If this object contains multiple members with
 * this name, only the last one is changed.
 * <p>
 * This method should <strong>only be used to modify existing objects</strong>. To fill a new
 * object with members, the method <code>add(name, value)</code> should be preferred which is much
 * faster (as it does not need to search for existing members).
 * </p>
 *
 * @param name
 *          the name of the member to add
 * @param value
 *          the value of the member to add
 * @return the object itself, to enable method chaining
 */
public JsonObject set(String name, double value) {
 set(name, valueOf(value));
 return this;
}
origin: org.hjson/hjson

/**
 * Appends a new member to the end of this object, with the specified name and the JSON
 * representation of the specified <code>int</code> value.
 * <p>
 * This method <strong>does not prevent duplicate names</strong>. Calling this method with a name
 * that already exists in the object will append another member with the same name. In order to
 * replace existing members, use the method <code>set(name, value)</code> instead. However,
 * <strong> <em>add</em> is much faster than <em>set</em></strong> (because it does not need to
 * search for existing members). Therefore <em>add</em> should be preferred when constructing new
 * objects.
 * </p>
 *
 * @param name
 *          the name of the member to add
 * @param value
 *          the value of the member to add
 * @return the object itself, to enable method chaining
 */
public JsonObject add(String name, int value) {
 add(name, valueOf(value));
 return this;
}
origin: org.hjson/hjson

/**
 * Appends a new member to the end of this object, with the specified name and the JSON
 * representation of the specified string.
 * <p>
 * This method <strong>does not prevent duplicate names</strong>. Calling this method with a name
 * that already exists in the object will append another member with the same name. In order to
 * replace existing members, use the method <code>set(name, value)</code> instead. However,
 * <strong> <em>add</em> is much faster than <em>set</em></strong> (because it does not need to
 * search for existing members). Therefore <em>add</em> should be preferred when constructing new
 * objects.
 * </p>
 *
 * @param name
 *          the name of the member to add
 * @param value
 *          the value of the member to add
 * @return the object itself, to enable method chaining
 */
public JsonObject add(String name, String value) {
 add(name, valueOf(value));
 return this;
}
origin: org.hjson/hjson

/**
 * Appends a new member to the end of this object, with the specified name and the JSON
 * representation of the specified <code>float</code> value.
 * <p>
 * This method <strong>does not prevent duplicate names</strong>. Calling this method with a name
 * that already exists in the object will append another member with the same name. In order to
 * replace existing members, use the method <code>set(name, value)</code> instead. However,
 * <strong> <em>add</em> is much faster than <em>set</em></strong> (because it does not need to
 * search for existing members). Therefore <em>add</em> should be preferred when constructing new
 * objects.
 * </p>
 *
 * @param name
 *          the name of the member to add
 * @param value
 *          the value of the member to add
 * @return the object itself, to enable method chaining
 */
public JsonObject add(String name, float value) {
 add(name, valueOf(value));
 return this;
}
origin: org.hjson/hjson

/**
 * Sets the value of the member with the specified name to the JSON representation of the
 * specified <code>int</code> value. If this object does not contain a member with this name, a
 * new member is added at the end of the object. If this object contains multiple members with
 * this name, only the last one is changed.
 * <p>
 * This method should <strong>only be used to modify existing objects</strong>. To fill a new
 * object with members, the method <code>add(name, value)</code> should be preferred which is much
 * faster (as it does not need to search for existing members).
 * </p>
 *
 * @param name
 *          the name of the member to replace
 * @param value
 *          the value to set to the member
 * @return the object itself, to enable method chaining
 */
public JsonObject set(String name, int value) {
 set(name, valueOf(value));
 return this;
}
origin: org.hjson/hjson

/**
 * Sets the value of the member with the specified name to the JSON representation of the
 * specified string. If this object does not contain a member with this name, a new member is
 * added at the end of the object. If this object contains multiple members with this name, only
 * the last one is changed.
 * <p>
 * This method should <strong>only be used to modify existing objects</strong>. To fill a new
 * object with members, the method <code>add(name, value)</code> should be preferred which is much
 * faster (as it does not need to search for existing members).
 * </p>
 *
 * @param name
 *          the name of the member to add
 * @param value
 *          the value of the member to add
 * @return the object itself, to enable method chaining
 */
public JsonObject set(String name, String value) {
 set(name, valueOf(value));
 return this;
}
origin: hjson/hjson-java

/**
 * Sets the value of the member with the specified name to the JSON representation of the
 * specified <code>double</code> value. If this object does not contain a member with this name, a
 * new member is added at the end of the object. If this object contains multiple members with
 * this name, only the last one is changed.
 * <p>
 * This method should <strong>only be used to modify existing objects</strong>. To fill a new
 * object with members, the method <code>add(name, value)</code> should be preferred which is much
 * faster (as it does not need to search for existing members).
 * </p>
 *
 * @param name
 *          the name of the member to add
 * @param value
 *          the value of the member to add
 * @return the object itself, to enable method chaining
 */
public JsonObject set(String name, double value) {
 set(name, valueOf(value));
 return this;
}
origin: hjson/hjson-java

/**
 * Sets the value of the member with the specified name to the JSON representation of the
 * specified <code>boolean</code> value. If this object does not contain a member with this name,
 * a new member is added at the end of the object. If this object contains multiple members with
 * this name, only the last one is changed.
 * <p>
 * This method should <strong>only be used to modify existing objects</strong>. To fill a new
 * object with members, the method <code>add(name, value)</code> should be preferred which is much
 * faster (as it does not need to search for existing members).
 * </p>
 *
 * @param name
 *          the name of the member to add
 * @param value
 *          the value of the member to add
 * @return the object itself, to enable method chaining
 */
public JsonObject set(String name, boolean value) {
 set(name, valueOf(value));
 return this;
}
origin: hjson/hjson-java

/**
 * Sets the value of the member with the specified name to the JSON representation of the
 * specified string. If this object does not contain a member with this name, a new member is
 * added at the end of the object. If this object contains multiple members with this name, only
 * the last one is changed.
 * <p>
 * This method should <strong>only be used to modify existing objects</strong>. To fill a new
 * object with members, the method <code>add(name, value)</code> should be preferred which is much
 * faster (as it does not need to search for existing members).
 * </p>
 *
 * @param name
 *          the name of the member to add
 * @param value
 *          the value of the member to add
 * @return the object itself, to enable method chaining
 */
public JsonObject set(String name, String value) {
 set(name, valueOf(value));
 return this;
}
origin: org.hjson/hjson

/**
 * Appends a new member to the end of this object, with the specified name and the JSON
 * representation of the specified <code>double</code> value.
 * <p>
 * This method <strong>does not prevent duplicate names</strong>. Calling this method with a name
 * that already exists in the object will append another member with the same name. In order to
 * replace existing members, use the method <code>set(name, value)</code> instead. However,
 * <strong> <em>add</em> is much faster than <em>set</em></strong> (because it does not need to
 * search for existing members). Therefore <em>add</em> should be preferred when constructing new
 * objects.
 * </p>
 *
 * @param name
 *          the name of the member to add
 * @param value
 *          the value of the member to add
 * @return the object itself, to enable method chaining
 */
public JsonObject add(String name, double value) {
 add(name, valueOf(value));
 return this;
}
origin: org.hjson/hjson

/**
 * Appends a new member to the end of this object, with the specified name and the JSON
 * representation of the specified <code>boolean</code> value.
 * <p>
 * This method <strong>does not prevent duplicate names</strong>. Calling this method with a name
 * that already exists in the object will append another member with the same name. In order to
 * replace existing members, use the method <code>set(name, value)</code> instead. However,
 * <strong> <em>add</em> is much faster than <em>set</em></strong> (because it does not need to
 * search for existing members). Therefore <em>add</em> should be preferred when constructing new
 * objects.
 * </p>
 *
 * @param name
 *          the name of the member to add
 * @param value
 *          the value of the member to add
 * @return the object itself, to enable method chaining
 */
public JsonObject add(String name, boolean value) {
 add(name, valueOf(value));
 return this;
}
origin: hjson/hjson-java

/**
 * Sets the value of the member with the specified name to the JSON representation of the
 * specified <code>int</code> value. If this object does not contain a member with this name, a
 * new member is added at the end of the object. If this object contains multiple members with
 * this name, only the last one is changed.
 * <p>
 * This method should <strong>only be used to modify existing objects</strong>. To fill a new
 * object with members, the method <code>add(name, value)</code> should be preferred which is much
 * faster (as it does not need to search for existing members).
 * </p>
 *
 * @param name
 *          the name of the member to replace
 * @param value
 *          the value to set to the member
 * @return the object itself, to enable method chaining
 */
public JsonObject set(String name, int value) {
 set(name, valueOf(value));
 return this;
}
origin: hjson/hjson-java

/**
 * Sets the value of the member with the specified name to the JSON representation of the
 * specified <code>long</code> value. If this object does not contain a member with this name, a
 * new member is added at the end of the object. If this object contains multiple members with
 * this name, only the last one is changed.
 * <p>
 * This method should <strong>only be used to modify existing objects</strong>. To fill a new
 * object with members, the method <code>add(name, value)</code> should be preferred which is much
 * faster (as it does not need to search for existing members).
 * </p>
 *
 * @param name
 *          the name of the member to replace
 * @param value
 *          the value to set to the member
 * @return the object itself, to enable method chaining
 */
public JsonObject set(String name, long value) {
 set(name, valueOf(value));
 return this;
}
origin: hjson/hjson-java

/**
 * Appends a new member to the end of this object, with the specified name and the JSON
 * representation of the specified <code>boolean</code> value.
 * <p>
 * This method <strong>does not prevent duplicate names</strong>. Calling this method with a name
 * that already exists in the object will append another member with the same name. In order to
 * replace existing members, use the method <code>set(name, value)</code> instead. However,
 * <strong> <em>add</em> is much faster than <em>set</em></strong> (because it does not need to
 * search for existing members). Therefore <em>add</em> should be preferred when constructing new
 * objects.
 * </p>
 *
 * @param name
 *          the name of the member to add
 * @param value
 *          the value of the member to add
 * @return the object itself, to enable method chaining
 */
public JsonObject add(String name, boolean value) {
 add(name, valueOf(value));
 return this;
}
origin: hjson/hjson-java

/**
 * Sets the value of the member with the specified name to the JSON representation of the
 * specified <code>float</code> value. If this object does not contain a member with this name, a
 * new member is added at the end of the object. If this object contains multiple members with
 * this name, only the last one is changed.
 * <p>
 * This method should <strong>only be used to modify existing objects</strong>. To fill a new
 * object with members, the method <code>add(name, value)</code> should be preferred which is much
 * faster (as it does not need to search for existing members).
 * </p>
 *
 * @param name
 *          the name of the member to add
 * @param value
 *          the value of the member to add
 * @return the object itself, to enable method chaining
 */
public JsonObject set(String name, float value) {
 set(name, valueOf(value));
 return this;
}
origin: hjson/hjson-java

/**
 * Appends a new member to the end of this object, with the specified name and the JSON
 * representation of the specified string.
 * <p>
 * This method <strong>does not prevent duplicate names</strong>. Calling this method with a name
 * that already exists in the object will append another member with the same name. In order to
 * replace existing members, use the method <code>set(name, value)</code> instead. However,
 * <strong> <em>add</em> is much faster than <em>set</em></strong> (because it does not need to
 * search for existing members). Therefore <em>add</em> should be preferred when constructing new
 * objects.
 * </p>
 *
 * @param name
 *          the name of the member to add
 * @param value
 *          the value of the member to add
 * @return the object itself, to enable method chaining
 */
public JsonObject add(String name, String value) {
 add(name, valueOf(value));
 return this;
}
org.hjsonJsonObjectvalueOf

Popular methods of JsonObject

  • <init>
  • add
    Appends a new member to the end of this object, with the specified name and the JSON representation
  • get
    Returns the value of the member with the specified name in this object. If this object contains mult
  • toString
  • indexOf
  • names
    Returns a list of the names in this object in document order. The returned list is backed by this ob
  • set
    Sets the value of the member with the specified name to the JSON representation of the specified boo
  • size
    Returns the number of members (name/value pairs) in this object.
  • updateHashIndex

Popular in Java

  • Parsing JSON documents to java classes using gson
  • putExtra (Intent)
  • requestLocationUpdates (LocationManager)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now