Package com.cedarsoft.unit

Examples of com.cedarsoft.unit.Symbol


   * @param unitType the unit type
   * @return the symbol
   */
  @Nonnull
  public static String getSymbol( @Nonnull Class<? extends Annotation> unitType ) {
    Symbol symbol = unitType.getAnnotation( Symbol.class );
    if ( symbol == null ) {
      throw new IllegalArgumentException( "Missing annotation " + Symbol.class.getName() + " for " + unitType );
    }

    return symbol.value();
  }
View Full Code Here

TOP

Related Classes of com.cedarsoft.unit.Symbol

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.