Example usage for org.jdom2 Element hashCode

List of usage examples for org.jdom2 Element hashCode

Introduction

In this page you can find the example usage for org.jdom2 Element hashCode.

Prototype

@Override
public final int hashCode() 

Source Link

Document

This returns the hash code for this Content item.

Usage

From source file:neon.editor.resources.RMap.java

License:Open Source License

public int createUID(Element e) {
    int hash = e.hashCode();
    while (uids.contains(hash)) {
        hash++;/*from   w  w w  .j a  v a2 s  . c  o  m*/
    }
    uids.add(hash);
    return hash;
}