Package com.cedarsoft.unit

Examples of com.cedarsoft.unit.Name


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

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

TOP

Related Classes of com.cedarsoft.unit.Name

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.