aboutsummaryrefslogtreecommitdiffstats
path: root/libraries/spongycastle/core/src/main/j2me/java/util/HashSet.java
diff options
context:
space:
mode:
authorDominik Schürmann <dominik@dominikschuermann.de>2014-04-16 21:49:29 +0200
committerDominik Schürmann <dominik@dominikschuermann.de>2014-04-16 21:49:29 +0200
commitf7c243564f87d60df322ea9f62c1591920f8d32b (patch)
tree39d8554ccb83722843ced80297ec3e09aece00dd /libraries/spongycastle/core/src/main/j2me/java/util/HashSet.java
parentb0c65729a98dfbd61063491a5facff2f782f56af (diff)
downloadopen-keychain-f7c243564f87d60df322ea9f62c1591920f8d32b.tar.gz
open-keychain-f7c243564f87d60df322ea9f62c1591920f8d32b.tar.bz2
open-keychain-f7c243564f87d60df322ea9f62c1591920f8d32b.zip
Use git submodules for libs, fix compilation, remove library sourcecode
Diffstat (limited to 'libraries/spongycastle/core/src/main/j2me/java/util/HashSet.java')
-rw-r--r--libraries/spongycastle/core/src/main/j2me/java/util/HashSet.java71
1 files changed, 0 insertions, 71 deletions
diff --git a/libraries/spongycastle/core/src/main/j2me/java/util/HashSet.java b/libraries/spongycastle/core/src/main/j2me/java/util/HashSet.java
deleted file mode 100644
index e37cb7c8d..000000000
--- a/libraries/spongycastle/core/src/main/j2me/java/util/HashSet.java
+++ /dev/null
@@ -1,71 +0,0 @@
-package java.util;
-
-public class HashSet
- extends AbstractSet
-{
- private HashMap m_HashMap = null;
-
- public HashSet()
- {
- m_HashMap = new HashMap();
- }
-
- public HashSet(Collection c)
- {
- m_HashMap = new HashMap(Math.max(11, c.size() * 2));
- addAll(c);
- }
-
- public HashSet(int initialCapacity)
- {
- m_HashMap = new HashMap(initialCapacity);
-
- }
-
- public Iterator iterator()
- {
- return (m_HashMap.keySet()).iterator();
- }
-
- public int size()
- {
- return m_HashMap.size();
- }
-
- public boolean contains(Object o)
- {
- return m_HashMap.containsKey(o);
- }
-
- public boolean add(Object o)
- {
- if (!m_HashMap.containsValue(o))
- {
- m_HashMap.put((Object)o, (Object)o);
-
- return true;
-
- }
-
- return false;
- }
-
- public boolean remove(Object o)
- {
- return (m_HashMap.remove(o) != null);
- }
-
- public void clear()
- {
- m_HashMap.clear();
- }
-
-
- public Object clone()
- {
- HashSet hs = new HashSet();
- hs.m_HashMap = (HashMap)m_HashMap.clone();
- return hs;
- }
-
-}