1 package io.github.reggert.reb4j;
2
3
4
5
6
7
8 public abstract class AbstractSequenceableAlternative
9 extends AbstractAlternative
10 implements Sequenceable
11 {
12 private static final long serialVersionUID = 1L;
13
14 @Override
15 @Deprecated
16 public final Sequence then(final Sequenceable right)
17 {return andThen(right);}
18
19 @Override
20 @Deprecated
21 public final Sequence then(final Sequence right)
22 {return andThen(right);}
23
24 @Override
25 public final Sequence andThen(final Sequenceable right)
26 {return new Sequence(this, right);}
27
28 @Override
29 public final Sequence andThen(final Sequence right)
30 {return new Sequence(this, right);}
31 }