Package com.cedarsoft.unit.si

Examples of com.cedarsoft.unit.si.SiDerivedUnit


    return unitType.getAnnotation( SiDerivedUnit.class ) != null;
  }

  @Nonnull
  public static List<? extends Class<? extends Annotation>> getDerivedFrom( @Nonnull Class<? extends Annotation> unitType ) {
    SiDerivedUnit derived = unitType.getAnnotation( SiDerivedUnit.class );
    if ( derived == null ) {
      throw new IllegalArgumentException( "Not derived. " + unitType );
    }

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


    return unitType.getAnnotation( SiDerivedUnit.class ) != null;
  }

  @Nonnull
  public static List<? extends Class<? extends Annotation>> getDerivedFrom( @Nonnull Class<? extends Annotation> unitType ) {
    SiDerivedUnit derived = unitType.getAnnotation( SiDerivedUnit.class );
    if ( derived == null ) {
      throw new IllegalArgumentException( "Not derived. " + unitType );
    }

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

    return unitType.getAnnotation( SiDerivedUnit.class ) != null;
  }

  @NotNull
  public static List<? extends Class<? extends Annotation>> getDerivedFrom( @NotNull Class<? extends Annotation> unitType ) {
    SiDerivedUnit derived = unitType.getAnnotation( SiDerivedUnit.class );
    if ( derived == null ) {
      throw new IllegalArgumentException( "Not derived. " + unitType );
    }

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

TOP

Related Classes of com.cedarsoft.unit.si.SiDerivedUnit

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.