Code example for ImmutableMap

Methods: get

0
   * Get abbreviated string of TimeUnit. 
   * 
   * @return TimeUnit abbreviation. 
   */ 
  public String getTimeUnitAbbrev() {
    return TIME_UNIT_TO_ABBREV.get(timeUnit);
  } 
 
  /** 
   * Get string representation of value 
   * 
   * @return String value and abbreviated time unit 
   */ 
  public String valueAndUnit() {
    return "" + value() + " " + getTimeUnitAbbrev(); 
  } 
} 
Contextual code suggestions in your IDE  Get Codota for Java