From 9716b1ac09eb92c4ed001be4350d54b41b953239 Mon Sep 17 00:00:00 2001 From: bculkin2442 Date: Sat, 25 Mar 2017 19:14:18 -0400 Subject: Add static constructors --- BJC-Utils2/src/main/java/bjc/utils/data/Either.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'BJC-Utils2/src/main/java/bjc/utils/data/Either.java') diff --git a/BJC-Utils2/src/main/java/bjc/utils/data/Either.java b/BJC-Utils2/src/main/java/bjc/utils/data/Either.java index 334beef..3ccc859 100644 --- a/BJC-Utils2/src/main/java/bjc/utils/data/Either.java +++ b/BJC-Utils2/src/main/java/bjc/utils/data/Either.java @@ -25,7 +25,7 @@ public class Either implements IPair { * The value to put on the left * @return An either with the left side occupied */ - public static Either fromLeft(LeftType left) { + public static Either left(LeftType left) { return new Either<>(left, null); } @@ -40,7 +40,7 @@ public class Either implements IPair { * The value to put on the right * @return An either with the right side occupied */ - public static Either fromRight(RightType right) { + public static Either right(RightType right) { return new Either<>(null, right); } -- cgit v1.2.3