Android LazilyParsedNumber - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Android LazilyParsedNumber class.

This code example shows how to use the following methods:
   * @return get this element as a Number. 
   * @throws NumberFormatException if the value contained is not a valid Number. 
   */ 
  @Override 
  public Number getAsNumber() {
    return value instanceof String ? new LazilyParsedNumber((String) value) : (Number) value;
  } 
 
  /** 
   * Check whether this primitive contains a String value. 
   * 
   * @return true if this primitive contains a String value, false otherwise. 
   */ 
  public boolean isString() { 
    return value instanceof String;
  } 
 
  /** 
   * convenience method to get this element as a String. 
   * 
3
CodeRank
Experience pair programming with AI  Get Codota for Java
See Code Examples for Android LazilyParsedNumber Methods: