Java ListIterator Usage intern(ListIterator in)

Here you can find the source of intern(ListIterator in)

Description

intern

License

Open Source License

Declaration

public static void intern(ListIterator<String> in) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.List;
import java.util.ListIterator;

public class Main {
    public static void intern(List<String> in) {
        intern(in.listIterator());/*ww  w.ja  v  a 2 s. c  o  m*/
    }

    public static void intern(ListIterator<String> in) {
        while (in.hasNext()) {
            in.set(in.next().intern());
        }
    }
}

Related

  1. goToFirst(ListIterator iterator)
  2. gotoIndex(ListIterator iterator, int index)
  3. incrementalComponentWiseAverageArbitraryDepth(Object average, int n, Object newItems)
  4. indexOf(List list, E object)
  5. insertBefore(List list, E... elements)
  6. internStringsInList(List list)
  7. isEqual(java.util.List list1, java.util.List list2)
  8. iteratorBinarySearchGet(ListIterator i, int index)
  9. lastIndexOf(List list, T element)