/** * Returns the index of the last occurrence of the given element as an {@code Option}, * starting the search at the specified index. * * @param ch a character (Unicode code point). * @param fromIndex the index to start the search from. * @return {@code Some(index)} or {@code None} if not found. */ public Option<Integer> lastIndexOfOption(int ch, int fromIndex) { return io.vavr.collection.Collections.indexOption(lastIndexOf(ch, fromIndex)); }
/** * Returns the index of the last occurrence of the given element as an {@code Option}. * * @param ch a character (Unicode code point). * @return {@code Some(index)} or {@code None} if not found. */ Option<Integer> lastIndexOfOption(int ch) { return io.vavr.collection.Collections.indexOption(lastIndexOf(ch)); }
/** * Returns the index of the last occurrence of the given element as an {@code Option}. * * @param str the substring to search for. * @return {@code Some(index)} or {@code None} if not found. */ public Option<Integer> lastIndexOfOption(CharSeq str) { return io.vavr.collection.Collections.indexOption(lastIndexOf(str)); }
/** * Returns the index of the last occurrence of the given element as an {@code Option}, * starting the search at the specified index. * * @param str the substring to search for. * @param fromIndex the index to start the search from. * @return {@code Some(index)} or {@code None} if not found. */ public Option<Integer> lastIndexOfOption(CharSeq str, int fromIndex) { return io.vavr.collection.Collections.indexOption(lastIndexOf(str, fromIndex)); }
/** * Returns the index of the last occurrence of the given element as an {@code Option}, * starting the search at the specified index. * * @param str the substring to search for. * @param fromIndex the index to start the search from. * @return {@code Some(index)} or {@code None} if not found. */ public Option<Integer> lastIndexOfOption(CharSeq str, int fromIndex) { return io.vavr.collection.Collections.indexOption(lastIndexOf(str, fromIndex)); }
/** * Returns the index of the last occurrence of the given element as an {@code Option}, * starting the search at the specified index. * * @param ch a character (Unicode code point). * @param fromIndex the index to start the search from. * @return {@code Some(index)} or {@code None} if not found. */ public Option<Integer> lastIndexOfOption(int ch, int fromIndex) { return io.vavr.collection.Collections.indexOption(lastIndexOf(ch, fromIndex)); }
/** * Returns the index of the last occurrence of the given element as an {@code Option}. * * @param ch a character (Unicode code point). * @return {@code Some(index)} or {@code None} if not found. */ Option<Integer> lastIndexOfOption(int ch) { return io.vavr.collection.Collections.indexOption(lastIndexOf(ch)); }
/** * Returns the index of the last occurrence of the given element as an {@code Option}. * * @param str the substring to search for. * @return {@code Some(index)} or {@code None} if not found. */ public Option<Integer> lastIndexOfOption(CharSeq str) { return io.vavr.collection.Collections.indexOption(lastIndexOf(str)); }