Java Hashtable Create newHashTable(int initialCapacity, float loadFactor)

Here you can find the source of newHashTable(int initialCapacity, float loadFactor)

Description

new Hash Table

License

Open Source License

Declaration

public static <T, E> Hashtable<T, E> newHashTable(int initialCapacity, float loadFactor) 

Method Source Code


//package com.java2s;
import java.util.*;

public class Main {
    public static <T, E> Hashtable<T, E> newHashTable() {
        return new Hashtable<>();
    }//from   w w  w. j ava 2s .  co m

    public static <T, E> Hashtable<T, E> newHashTable(int initialCapacity) {
        return new Hashtable<>(initialCapacity);
    }

    public static <T, E> Hashtable<T, E> newHashTable(int initialCapacity, float loadFactor) {
        return new Hashtable<>(initialCapacity, loadFactor);
    }

    public static <T, E> Hashtable<T, E> newHashTable(Map<? extends T, ? extends E> map) {
        return new Hashtable<>(map);
    }
}

Related

  1. createHashtable(int size)
  2. getArray(Hashtable hash)
  3. getGUIDS(Hashtable table)
  4. getKeyByEntry(Hashtable t, Object value)
  5. newHashtable(int initialCapacity)