Package com.cedarsoft.unit

Examples of com.cedarsoft.unit.Definition


    return new ArrayList<Class<? extends Annotation>>( Arrays.asList( derived.value() ) );
  }

  @Nonnull
  public static List<? extends String> getDefinitions( @Nonnull Class<? extends Annotation> unitType ) {
    Definition definition = unitType.getAnnotation( Definition.class );
    if ( definition == null ) {
      throw new IllegalArgumentException( "No definition found for " + unitType );
    }

    return new ArrayList<String>( Arrays.asList( definition.value() ) );
  }
View Full Code Here

TOP

Related Classes of com.cedarsoft.unit.Definition

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.