1 package org.simantics.scl.runtime.either;
3 public class Left implements Either {
4 public final Object value;
6 public Left(Object value) {
11 public String toString() {
12 return "Left " + value;
16 public boolean equals(Object obj) {
19 if(obj == null || obj.getClass() != getClass())
21 Left other = (Left)obj;
22 return value == null ? other.value == null : value.equals(other.value);
26 public int hashCode() {
27 return 31 * (value == null ? 0 : value.hashCode()) + 13532;