1 package io.github.reggert.reb4j; 2 3 4 /** 5 * Abstract class providing the canonical implementation of {@link Alternative}. 6 */ 7 public abstract class AbstractAlternative extends AbstractExpression 8 implements Alternative 9 { 10 private static final long serialVersionUID = 1L; 11 12 @Override 13 public final Alternation or(final Alternation right) 14 {return new Alternation(this, right);} 15 16 @Override 17 public final Alternation or(final Alternative right) 18 {return new Alternation(this, right);} 19 20 }