Package openllet.core.utils
Class IdentityHashSet<T>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractSet<T>
-
- openllet.core.utils.IdentityHashSet<T>
-
- Type Parameters:
T- kind of elements
- All Implemented Interfaces:
java.lang.Cloneable,java.lang.Iterable<T>,java.util.Collection<T>,java.util.Set<T>
public class IdentityHashSet<T> extends java.util.AbstractSet<T> implements java.util.Set<T>, java.lang.CloneableCopyright: Copyright (c) 2008
Company: Clark & Parsia, LLC.
- Author:
- Evren Sirin
-
-
Constructor Summary
Constructors Constructor Description IdentityHashSet()IdentityHashSet(int size)IdentityHashSet(java.util.Collection<? extends T> c)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(T element)voidclear()java.lang.Objectclone()booleancontains(java.lang.Object o)booleanisEmpty()java.util.Iterator<T>iterator()booleanremove(java.lang.Object element)intsize()
-
-
-
Constructor Detail
-
IdentityHashSet
public IdentityHashSet()
-
IdentityHashSet
public IdentityHashSet(java.util.Collection<? extends T> c)
-
IdentityHashSet
public IdentityHashSet(int size)
-
-
Method Detail
-
add
public boolean add(T element)
-
clear
public void clear()
-
clone
public java.lang.Object clone()
-
contains
public boolean contains(java.lang.Object o)
-
isEmpty
public boolean isEmpty()
-
iterator
public java.util.Iterator<T> iterator()
-
remove
public boolean remove(java.lang.Object element)
-
-