Available Methods
- add ( )
- isEmpty ( )
- size ( )
- addAll ( )
- addFirst ( )
- removeFirst ( )
- addLast ( )
- listIterator ( )
- removeLast ( )
- get ( )
- toArray ( )
- pop ( )
- remove ( )
- clear ( )
- iterator ( )
- getLast ( )
- push ( )
- getFirst ( )
- contains ( )
- poll ( )
- descendingIterator ( )
- peek ( )
- offer ( )
- indexOf ( )
- pollFirst ( )
- pollLast ( )
- peekLast ( )
- removeAll ( )
- set ( )
- toString ( )
- forEach ( )
- lastIndexOf ( )
- clone ( )
- peekFirst ( )
- subList ( )
- sort ( )
Related Classes
- java.util.Arrays
- java.io.File
- java.util.Collections
- java.io.InputStream
- android.content.Context
- java.util.Date
- java.util.Iterator
- java.util.concurrent.TimeUnit
- android.util.Log
- java.util.regex.Pattern
- java.net.URL
- java.io.InputStreamReader
- java.io.BufferedReader
- java.io.FileInputStream
- java.util.Random
- java.util.Locale
- java.lang.reflect.Method
- java.util.regex.Matcher
- java.util.Comparator
- java.io.FileNotFoundException
- java.lang.reflect.Field
- java.util.Properties
- java.util.UUID
- java.util.stream.Collectors
- java.util.LinkedHashMap
Java Code Examples for java.util.LinkedList#lastIndexOf()
The following examples show how to use
java.util.LinkedList#lastIndexOf() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ListTests.java From spotbugs with GNU Lesser General Public License v2.1 | 4 votes |
public void test4NoBugs(LinkedList<? super CharSequence> list) { list.lastIndexOf(new StringBuffer("Key")); }
Example 2
Source File: ListTests.java From spotbugs with GNU Lesser General Public License v2.1 | 4 votes |
public void test4Bugs(LinkedList<? super CharSequence> list) { list.lastIndexOf(Integer.valueOf(3)); }
Example 3
Source File: HtmlTreeBuilder.java From jsoup-learning with MIT License | 4 votes |
private void replaceInQueue(LinkedList<Element> queue, Element out, Element in) { int i = queue.lastIndexOf(out); Validate.isTrue(i != -1); queue.remove(i); queue.add(i, in); }