Class Branch

  • All Implemented Interfaces:

    
    public final class Branch<B extends Object, C extends Object>
    
                        

    Return type to indicate that the action can return one of two types. Facilitates branching

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final B left
      private final C right
    • Constructor Summary

      Constructors 
      Constructor Description
      Branch(B left, C right)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final B getLeft()
      final C getRight()
      final Object get()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait