@Test public void fromPrimitiveKind() throws Exception { for (DATypeKind typeKind : DATypeKind.values()) { if (typeKind.isPrimitive()) { DAName daName = DANameFactory.fromPrimitiveKind(typeKind); assertThat(daName.getName()).isEqualTo(typeKind.name().toLowerCase(Locale.US)); } } }
@Nonnull public static DAName fromPrimitiveKind(@Nonnull DATypeKind kind) { checkArgument(kind.isPrimitive()); return from(kind.name().toLowerCase(Locale.US)); }
DANameFactory { @Nonnull public static DAName fromPrimitiveKind(@Nonnull DATypeKind kind) { checkArgument(kind.isPrimitive()); return from(kind.name().toLowerCase(Locale.US)); } }
DANameFactory { @Nonnull public static DAName fromPrimitiveKind(@Nonnull DATypeKind kind) { checkArgument(kind.isPrimitive()); return from(kind.name().toLowerCase(Locale.US)); } private  DANameFactory(); }
DANameFactory { @Nonnull public static DAName fromPrimitiveKind(@Nonnull DATypeKind kind) { checkArgument(kind.isPrimitive()); return from(kind.name().toLowerCase(Locale.US)); } private  DANameFactory(); @Nonnull static DANameImpl from(@Nonnull String string); @Nonnull static DAName fromPrimitiveKind(@Nonnull DATypeKind kind); @Nonnull static DAName simpleFromQualified(@Nonnull DAName daName); @Nonnull static DAName simpleFromQualified(@Nonnull String qualifiedName); @Nullable static DAName packageNameFromQualified(@Nullable DAName qualifiedName); @Nonnull static DAName wildcard(); @Nonnull static DAName voidDAName(); }
DANameFactory { @Nonnull public static DAName fromPrimitiveKind(@Nonnull DATypeKind kind) { checkArgument(kind.isPrimitive()); return from(kind.name().toLowerCase(Locale.US)); } private  DANameFactory(); @Nonnull static DANameImpl from(@Nonnull String string); @Nonnull static DAName fromPrimitiveKind(@Nonnull DATypeKind kind); @Nonnull static DAName simpleFromQualified(@Nonnull DAName daName); @Nonnull static DAName simpleFromQualified(@Nonnull String qualifiedName); @Nullable static DAName packageNameFromQualified(@Nullable DAName qualifiedName); @Nonnull static DAName wildcard(); @Nonnull static DAName voidDAName();  }