Class Either<A,B>

java.lang.Object
org.openqa.selenium.internal.Either<A,B>
All Implemented Interfaces:
Iterable<B>

public class Either<A,B> extends Object implements Iterable<B>
  • Method Details

    • left

      public static <A, B> Either<A,B> left(A a)
    • right

      public static <A, B> Either<A,B> right(B b)
    • isLeft

      public boolean isLeft()
    • isRight

      public boolean isRight()
    • left

      public A left()
    • right

      public B right()
    • map

      public <R> R map(Function<? super B,? extends R> mapper)
    • mapLeft

      public <R> R mapLeft(Function<? super A,? extends R> mapper)
    • iterator

      public Iterator<B> iterator()
      Specified by:
      iterator in interface Iterable<A>
    • stream

      public Stream<B> stream()
    • toString

      public String toString()
      Overrides:
      toString in class Object