com.github.atdixon.vroom.TS Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vroom Show documentation
Show all versions of vroom Show documentation
Work immutably, robustly and in a knowledge-oriented way with Entity maps in Java.
The newest version!
package com.github.atdixon.vroom;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.Set;
/** Type factories. */
public final class TS {
private TS() {}
public static TypeSupplier> Optional(Class type) {
return () -> new ParameterizedTypeImpl(null, Optional.class, type);
}
public static TypeSupplier> List(Class type) {
return () -> new ParameterizedTypeImpl(null, List.class, type);
}
public static TypeSupplier> Set(Class type) {
return () -> new ParameterizedTypeImpl(null, Set.class, type);
}
public static TypeSupplier