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