APISonar


java.util.ArrayList.ArrayList

> java > util > ArrayList > ArrayList
java APIs util APIs ArrayList APIs ArrayList APIs

Example 1
public ArrayList<String> toStringArrayList(ReadableArray array) {
        ArrayList<String> arrayList = new ArrayList<>();
        for (int i = 0; i < array.size(); i++) {
            arrayList.add(array.getString(i));
        }
        return arrayList;
    }
Example 2
ArrayList deepcopyArrayList(ArrayList from) {
        final int N = from.size();
        ArrayList out = new ArrayList(N);
        for (int i=0; i<N; i++) {
            out.add(deepcopyValue(from.get(i)));
        }
        return out;
    }
Example 3
public static void m1() throws Throwable {
            @SuppressWarnings("unchecked") final ArrayList[] v3 = { new ArrayList() {} };
            @SuppressWarnings("unchecked")       ArrayList[] v4 = { new ArrayList() {} };
    }
Example 4
public void setUp() {
    datastoreVM0 = getVM(0);
    datastoreVM1 = getVM(1);
    datastoreVM2 = getVM(2);
    accessorVM3 = getVM(3);

    regionName = "PR1";

    listOfKeysInVM1 = new ArrayList<>();
    listOfKeysInVM2 = new ArrayList<>();
    listOfKeysInVM3 = new ArrayList<>();
    listOfKeysInVM4 = new ArrayList<>();
  }
Example 5
static public ArrayList createArrayList (Object[] a)
	{
		ArrayList al = new ArrayList (a.length);
		for (int i = 0; i < a.length; i++)
			al.add (a[i]);
		return al;
	}
Example 6
private ArrayList<String> readDerivedColumnNames() {
        if (readIf(OPEN_PAREN)) {
            ArrayList<String> derivedColumnNames = new ArrayList<>();
            do {
                derivedColumnNames.add(readAliasIdentifier());
            } while (readIfMore());
            return derivedColumnNames;
        }
        return null;
    }
Example 7
public void testRemoveAll() {
        queue.add("item3");
        queue.add("item4");
        queue.add("item5");

        List<String> arrayList = new ArrayList<String>();
        arrayList.add("item3");
        arrayList.add("item4");
        arrayList.add("item5");
        assertTrue(queue.removeAll(arrayList));
        assertEquals(queue.size(), 0);
    }
Example 8
public void baz() {
    if (new ArrayList<>().size() > 10) {

    }
  }
Example 9
private ArrayList<URL> getDependencyLibs() {
    ArrayList<URL> list = new ArrayList<URL>();
    collectLibs(list, this);
    return list;
  }
Example 10
public RowStepCollector()
	{
		rowsRead = new ArrayList();
		rowsWritten = new ArrayList();
        rowsError = new ArrayList();
	}
Example 11
public PredictionServiceResult()
	{
		predictions = new ArrayList<>();
	}
Example 12
public ArrayList<String> getGraphicDeviceNames() {
        ArrayList<String> graphicsDeviceNames = new ArrayList<String>();
        
        for (int i=0; i < graphicsDevices.length; i++) {
            graphicsDeviceNames.add(graphicsDevices[i].getIDstring());
		}
		return graphicsDeviceNames;
	}
Example 13
void m() {
        @SuppressWarnings("unchecked")
            class Inner {
                void m() {
                    List l = new ArrayList<String>();
                    l.add("abc");
                }
            }
    }
Example 14
private Object anonymousInnerArrayList() {
        return new ArrayList<Object>() {
        };
    }
Example 15
public ArrayList<String> getParentsFolders() {
    ArrayList<String> result = new ArrayList<String>();

    File f = new File(getPath());
    while (f != null && f.canRead()) {
      result.add(f.getPath());
      f = f.getParentFile();
    }
    return result;
  }
Example 16
public List getMatches() {
        ArrayList matchList = new ArrayList(startMap.values());
        groupMatches(matchList);
        return matchList;
    }
Example 17
public List getRealms()
	{
		if (currentRealms == null)
		{
			return new ArrayList();
		}
		return currentRealms;
	}
Example 18
public List<T> getPlugins() {
    synchronized (myPluginsLock) {
      return new ArrayList<>(mySortedPlugins);
    }
  }
Example 19
private ArrayList getConnectList() {
        ArrayList l = new ArrayList(uris);

        // Randomly, reorder the list by random swapping
        Random r = new Random();
        r.setSeed(System.currentTimeMillis());
        for (int i = 0; i < l.size(); i++) {
            int p = r.nextInt(l.size());
            Object t = l.get(p);
            l.set(p, l.get(i));
            l.set(i, t);
        }
        return l;
    }
Example 20
public void timeFillArrayList(int reps) {
    for (int r = 0; r < reps; r++) {
      arrayList = new ArrayList<>();
      for (int index = 0; index < size; index++) {
        arrayList.add(names[index]);
      }
    }
  }
Example 21
private ArrayList<String> getPeople(String key, int index) {
        ArrayList<String> people = new ArrayList<>();
        for (int i = 0; i < index; i++) {
            people.add(i + key);
        }
        return people;
    }
Example 22
private void ensureDisappearingItems() {
    if (mDisappearingItems == null) {
      mDisappearingItems = new ArrayList<>();
    }
  }
Example 23
protected void ensureExecutionsInitialized() {
        if (executions == null) {
            executions = new ArrayList<>();
        }
    }
Example 24
private void initializeVariables() {
		// initialise several variables
		numSelectedFeatVects = 0;
		numSentencesInCover = 0;
		maxSentLengthInCover = 0;
		minSentLengthInCover = 20;
		phoneCoverageInTime = new ArrayList();
		diphoneCoverageInTime = new ArrayList();
		overallCoverageInTime = new ArrayList();
		phonesInCover = new HashSet<String>();
		simpleDiphonesInCover = new HashSet<String>();
		numSimpleFeatVectsInCover = 0;
	}
Example 25
public robotsParser(final BufferedReader reader) {
        if (reader == null) {
            allowList = new ArrayList<String>(0);
            denyList = new ArrayList<String>(0);
            sitemap = "";
            crawlDelayMillis = 0;
        } else {
            parse(reader);
        }
    }