selva.oss.lang.Commons Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lib Show documentation
Show all versions of lib Show documentation
Collection of libraries that make backend DX an oasis.
The newest version!
package selva.oss.lang;
import java.util.*;
import java.util.stream.Stream;
public class Commons {
public static class Nothing {
public static Optional of(boolean bool) {
return bool ? Optional.of(new Nothing()) : Optional.empty();
}
}
public interface Equable {
public boolean isEqual(T value);
}
public interface Hashable {
public Stream