Removed some shorthand methods
This commit is contained in:
parent
3f72438b58
commit
b52cc50c45
3 changed files with 9 additions and 12 deletions
|
|
@ -1,15 +1,14 @@
|
|||
package love.distributedrebirth.bassboonyd;
|
||||
|
||||
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
|
||||
@BãßBȍőnAnnotationInfoʸᴰ(required = {BãßBȍőnClassInfoʸᴰ.class, BãßBȍőnAuthorInfoʸᴰ.class})
|
||||
public interface DefaultEnumBaseʸᴰ<T> extends DefaultAuthorInfoʸᴰ,DefaultClassInfoʸᴰ,DefaultPackageInfoʸᴰ {
|
||||
|
||||
int ordinal();
|
||||
|
||||
String name();
|
||||
|
||||
// Bȍőn prefix is for set instance enum object called BãßBȍőnEnumSetʸᴰ
|
||||
// Bãß prefix is for single instance enum objects called BãßBȍőnEnumInstanceʸᴰ
|
||||
// Bȍőn prefix is for set instance enum object (called DefaultEnumSetʸᴰ)
|
||||
// Bãß prefix is for single instance enum objects (called DefaultEnumInstanceʸᴰ)
|
||||
|
||||
default String BȍőnNaam() {
|
||||
return name();
|
||||
|
|
|
|||
|
|
@ -3,7 +3,10 @@ package love.distributedrebirth.bassboonyd;
|
|||
import java.util.Arrays;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.function.Consumer;
|
||||
import java.util.function.Function;
|
||||
import java.util.stream.Collectors;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
|
||||
|
|
@ -21,12 +24,8 @@ public interface DefaultEnumSetʸᴰ<T> extends DefaultEnumBaseʸᴰ<T> {
|
|||
return Arrays.asList(BãßInstances());
|
||||
}
|
||||
|
||||
default Iterator<T> BãßInstancesIterator() {
|
||||
return BãßInstancesList().iterator();
|
||||
}
|
||||
|
||||
default Stream<T> BãßInstancesStream() {
|
||||
return BãßInstancesList().stream();
|
||||
default <K> Map<K,T> BãßInstancesToMap(Function<T,K> keyMapper) {
|
||||
return BãßInstancesList().stream().collect(Collectors.toMap(keyMapper, v -> v));
|
||||
}
|
||||
|
||||
default T BȍőnVolgende() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue