@Test public void reverse() { assertThat(empty.reverse(),equalTo(empty)); assertThat(str.reverse().toString(),equalTo("dlrow olleh")); }
public LazyString reverse() { return fromLazySeq(string.reverse()); }
LazyString implements ImmutableList<Character>,Higher<lazyString,Character>, Serializable { public LazyString reverse() { return fromLazySeq(string.reverse()); } }
LazyString implements ImmutableList<Character>,Higher<lazyString,Character>, Serializable { public LazyString reverse() { return fromLazySeq(string.reverse()); }  }
LazyString implements ImmutableList<Character>,Higher<lazyString,Character>, Serializable { public LazyString reverse() { return fromLazySeq(string.reverse()); }  static LazyString fromLazySeq(LazySeq<Character> string); static LazyString fromIterable(Iterable<Character> string); static LazyString of(CharSequence seq); @Override LazySeq<R> unitIterable(Iterable<R> it); static LazyString empty(); LazyString op(Function<? super LazySeq<Character>, ? extends LazySeq<Character>> custom); LazyString substring(int start); LazyString substring(int start, int end); LazyString toUpperCase(); LazyString toLowerCase(); LazySeq<LazyString> words(); LazySeq<LazyString> lines(); LazyString mapChar(Function<Character,Character> fn); LazyString flatMapChar(Function<Character,LazyString> fn); @Override LazyString filter(Predicate<? super Character> predicate); @Override ImmutableList<R> map(Function<? super Character, ? extends R> fn); @Override ImmutableList<R> flatMap(Function<? super Character, ? extends ImmutableList<? extends R>> fn); @Override ImmutableList<R> concatMap(Function<? super Character, ? extends Iterable<? extends R>> fn); @Override ImmutableList<R> mergeMap(Function<? super Character, ? extends Publisher<? extends R>> fn); @Override ImmutableList<R> mergeMap(int maxConcurecy, Function<? super Character, ? extends Publisher<? extends R>> fn); @Override R fold(Function<? super Some<Character>, ? extends R> fn1, Function<? super None<Character>, ? extends R> fn2); @Override LazyString onEmpty(Character value); @Override LazyString onEmptyGet(Supplier<? extends Character> supplier); @Override ImmutableList<Character> onEmptySwitch(Supplier<? extends ImmutableList<Character>> supplier); ReactiveSeq<Character> stream(); LazyString take(final long n); @Override ImmutableList<R> unitStream(Stream<R> stream); @Override LazyString emptyUnit(); @Override LazyString replaceFirst(Character currentElement, Character newElement); @Override LazyString removeFirst(Predicate<? super Character> pred); @Override LazyString subList(int start, int end); @Override LazyString filterNot(Predicate<? super Character> predicate); @Override LazyString notNull(); @Override LazyString peek(Consumer<? super Character> c); @Override LazyString tailOrElse(ImmutableList<Character> tail); @Override LazyString removeStream(Stream<? extends Character> stream); @Override LazyString removeAt(long pos); @Override LazyString removeAll(Character... values); @Override LazyString retainAll(Iterable<? extends Character> it); @Override LazyString retainStream(Stream<? extends Character> stream); @Override LazyString retainAll(Character... values); @Override LazyString distinct(); @Override LazyString sorted(); @Override LazyString sorted(Comparator<? super Character> c); @Override LazyString takeWhile(Predicate<? super Character> p); @Override LazyString dropWhile(Predicate<? super Character> p); @Override LazyString takeUntil(Predicate<? super Character> p); @Override LazyString dropUntil(Predicate<? super Character> p); @Override LazyString dropRight(int num); @Override LazyString takeRight(int num); @Override LazyString shuffle(); @Override LazyString shuffle(Random random); @Override LazyString slice(long from, long to); @Override LazyString sorted(Function<? super Character, ? extends U> function); @Override LazyString prependStream(Stream<? extends Character> stream); @Override LazyString appendAll(Character... values); @Override LazyString prependAll(Character... values); @Override LazyString insertAt(int pos, Character... values); @Override LazyString deleteBetween(int start, int end); @Override LazyString insertStreamAt(int pos, Stream<Character> stream); @Override LazyString plusAll(Iterable<? extends Character> list); @Override LazyString plus(Character value); @Override LazyString removeValue(Character value); @Override LazyString removeAll(Iterable<? extends Character> value); @Override LazyString updateAt(int pos, Character value); @Override LazyString insertAt(int pos, Iterable<? extends Character> values); @Override LazyString insertAt(int i, Character value); LazyString drop(final long num); LazyString reverse(); Option<Character> get(int pos); @Override Character getOrElse(int pos, Character alt); @Override Character getOrElseGet(int pos, Supplier<? extends Character> alt); LazyString prepend(Character value); @Override LazyString append(Character value); @Override LazyString prependAll(Iterable<? extends Character> value); @Override LazyString appendAll(Iterable<? extends Character> value); LazyString prependAll(LazyString value); LazyString append(String s); int size(); @Override boolean isEmpty(); int length(); String toString(); @Override int hashCode(); @Override boolean equals(Object obj); }
LazyString implements ImmutableList<Character>,Higher<lazyString,Character>, Serializable { public LazyString reverse() { return fromLazySeq(string.reverse()); }  static LazyString fromLazySeq(LazySeq<Character> string); static LazyString fromIterable(Iterable<Character> string); static LazyString of(CharSequence seq); @Override LazySeq<R> unitIterable(Iterable<R> it); static LazyString empty(); LazyString op(Function<? super LazySeq<Character>, ? extends LazySeq<Character>> custom); LazyString substring(int start); LazyString substring(int start, int end); LazyString toUpperCase(); LazyString toLowerCase(); LazySeq<LazyString> words(); LazySeq<LazyString> lines(); LazyString mapChar(Function<Character,Character> fn); LazyString flatMapChar(Function<Character,LazyString> fn); @Override LazyString filter(Predicate<? super Character> predicate); @Override ImmutableList<R> map(Function<? super Character, ? extends R> fn); @Override ImmutableList<R> flatMap(Function<? super Character, ? extends ImmutableList<? extends R>> fn); @Override ImmutableList<R> concatMap(Function<? super Character, ? extends Iterable<? extends R>> fn); @Override ImmutableList<R> mergeMap(Function<? super Character, ? extends Publisher<? extends R>> fn); @Override ImmutableList<R> mergeMap(int maxConcurecy, Function<? super Character, ? extends Publisher<? extends R>> fn); @Override R fold(Function<? super Some<Character>, ? extends R> fn1, Function<? super None<Character>, ? extends R> fn2); @Override LazyString onEmpty(Character value); @Override LazyString onEmptyGet(Supplier<? extends Character> supplier); @Override ImmutableList<Character> onEmptySwitch(Supplier<? extends ImmutableList<Character>> supplier); ReactiveSeq<Character> stream(); LazyString take(final long n); @Override ImmutableList<R> unitStream(Stream<R> stream); @Override LazyString emptyUnit(); @Override LazyString replaceFirst(Character currentElement, Character newElement); @Override LazyString removeFirst(Predicate<? super Character> pred); @Override LazyString subList(int start, int end); @Override LazyString filterNot(Predicate<? super Character> predicate); @Override LazyString notNull(); @Override LazyString peek(Consumer<? super Character> c); @Override LazyString tailOrElse(ImmutableList<Character> tail); @Override LazyString removeStream(Stream<? extends Character> stream); @Override LazyString removeAt(long pos); @Override LazyString removeAll(Character... values); @Override LazyString retainAll(Iterable<? extends Character> it); @Override LazyString retainStream(Stream<? extends Character> stream); @Override LazyString retainAll(Character... values); @Override LazyString distinct(); @Override LazyString sorted(); @Override LazyString sorted(Comparator<? super Character> c); @Override LazyString takeWhile(Predicate<? super Character> p); @Override LazyString dropWhile(Predicate<? super Character> p); @Override LazyString takeUntil(Predicate<? super Character> p); @Override LazyString dropUntil(Predicate<? super Character> p); @Override LazyString dropRight(int num); @Override LazyString takeRight(int num); @Override LazyString shuffle(); @Override LazyString shuffle(Random random); @Override LazyString slice(long from, long to); @Override LazyString sorted(Function<? super Character, ? extends U> function); @Override LazyString prependStream(Stream<? extends Character> stream); @Override LazyString appendAll(Character... values); @Override LazyString prependAll(Character... values); @Override LazyString insertAt(int pos, Character... values); @Override LazyString deleteBetween(int start, int end); @Override LazyString insertStreamAt(int pos, Stream<Character> stream); @Override LazyString plusAll(Iterable<? extends Character> list); @Override LazyString plus(Character value); @Override LazyString removeValue(Character value); @Override LazyString removeAll(Iterable<? extends Character> value); @Override LazyString updateAt(int pos, Character value); @Override LazyString insertAt(int pos, Iterable<? extends Character> values); @Override LazyString insertAt(int i, Character value); LazyString drop(final long num); LazyString reverse(); Option<Character> get(int pos); @Override Character getOrElse(int pos, Character alt); @Override Character getOrElseGet(int pos, Supplier<? extends Character> alt); LazyString prepend(Character value); @Override LazyString append(Character value); @Override LazyString prependAll(Iterable<? extends Character> value); @Override LazyString appendAll(Iterable<? extends Character> value); LazyString prependAll(LazyString value); LazyString append(String s); int size(); @Override boolean isEmpty(); int length(); String toString(); @Override int hashCode(); @Override boolean equals(Object obj);  }