Uses of Interface
dev.wyck.util.Either
Packages that use Either
-
Uses of Either in dev.wyck.tags
Methods in dev.wyck.tags that return EitherModifier and TypeMethodDescriptionTagSet.value()The contents of this tag set: either an explicit set of elements, or a reference to a named tag.Methods in dev.wyck.tags with parameters of type EitherModifier and TypeMethodDescriptionCreates a block tag set from anEitherof explicit materials or a named tag.TagSet.of(@Nullable ResourceKey resourceKey, RegistryId registry, Either<Set<T>, TagKey> value) Creates a tag set from anEitherof explicit tags or a named tag. -
Uses of Either in dev.wyck.util
Classes in dev.wyck.util that implement EitherModifier and TypeClassDescriptionstatic final recordEither.Left<L,R> The left value.static final recordEither.Right<L,R> The right value.Methods in dev.wyck.util that return EitherModifier and TypeMethodDescriptionEither.consumeLeft(Consumer<? super L> consumer) Consumes the left value if present, returning this either.Either.consumeRight(Consumer<? super R> consumer) Consumes the right value if present, returning this either.static <L,R> Either <L, R> Either.left(L value) Creates a left value.Either.leftOrElse(L newValue) Left or else.Either.leftOverride(L value) Returns a left value holdingvalue, discarding any right value this either currently holds.static <L,R> Either <L, R> Either.right(R value) Creates a right value.Either.rightOrElse(R newValue) Right or else.Either.rightOverride(R value) Returns a right value holdingvalue, discarding any left value this either currently holds.