Java Linkedhashset Class

Source: Internet
Author: User

This class extends the hashset, but adds its own members.

Linkedhashset keeps a list of links to the entries in that group, in the order in which they are inserted. This makes the insertion sequence an iterative collection.

That is, when a linkedhashset loop is used by an iterator, the element is returned in the order in which they were inserted.

The hash code, used as the data in which the key is associated, is stored in the index. The key is converted to its hash code automatically.

The Linkedhashset class supports four constructors. The first form constructs a default hash collection:

Linkedhashset() 

The following constructor initializes the hash using the C element set.

Linkedhashset(Collection c)   

The following constructor initializes the ability to set the hash to capacity.

The capacity is automatically grown as an element is added to the hash.

Linkedhashset(int capacity)   

[B, A, D, E, C, F]        


Java Linkedhashset Class

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.