Exemple #1
0
 @Override
 public T determineHead() {
   return !one.isEmpty() ? one.head() : two.head();
 }
Exemple #2
0
 @Override
 public Stream<T> determineTail() {
   return !one.isEmpty() ? new Concat<T>(one.tail(), two) : two.tail();
 }
Exemple #3
0
 @Override
 public boolean determineIsEmpty() {
   return one.isEmpty() && two.isEmpty();
 }