You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by si...@apache.org on 2011/05/22 20:34:10 UTC
svn commit: r1126155 -
/incubator/ognl/trunk/src/main/java/org/apache/commons/ognl/IntHashMap.java
Author: simonetripodi
Date: Sun May 22 18:34:10 2011
New Revision: 1126155
URL: http://svn.apache.org/viewvc?rev=1126155&view=rev
Log:
added trivial javadoc comments
Modified:
incubator/ognl/trunk/src/main/java/org/apache/commons/ognl/IntHashMap.java
Modified: incubator/ognl/trunk/src/main/java/org/apache/commons/ognl/IntHashMap.java
URL: http://svn.apache.org/viewvc/incubator/ognl/trunk/src/main/java/org/apache/commons/ognl/IntHashMap.java?rev=1126155&r1=1126154&r2=1126155&view=diff
==============================================================================
--- incubator/ognl/trunk/src/main/java/org/apache/commons/ognl/IntHashMap.java (original)
+++ incubator/ognl/trunk/src/main/java/org/apache/commons/ognl/IntHashMap.java Sun May 22 18:34:10 2011
@@ -323,16 +323,25 @@ public class IntHashMap
* =================================================================== Map interface
* ===================================================================
*/
+ /**
+ * {@inheritDoc}
+ */
public int size()
{
return count;
}
+ /**
+ * {@inheritDoc}
+ */
public boolean isEmpty()
{
return count == 0;
}
+ /**
+ * {@inheritDoc}
+ */
public Object get( Object key )
{
if ( !( key instanceof Number ) )
@@ -342,6 +351,9 @@ public class IntHashMap
return get( ( (Number) key ).intValue() );
}
+ /**
+ * {@inheritDoc}
+ */
public Object put( Object key, Object value )
{
if ( !( key instanceof Number ) )
@@ -351,6 +363,9 @@ public class IntHashMap
return put( ( (Number) key ).intValue(), value );
}
+ /**
+ * {@inheritDoc}
+ */
public void putAll( Map otherMap )
{
for ( Iterator it = otherMap.keySet().iterator(); it.hasNext(); )
@@ -361,6 +376,9 @@ public class IntHashMap
}
}
+ /**
+ * {@inheritDoc}
+ */
public Object remove( Object key )
{
if ( !( key instanceof Number ) )
@@ -370,6 +388,9 @@ public class IntHashMap
return remove( ( (Number) key ).intValue() );
}
+ /**
+ * {@inheritDoc}
+ */
public void clear()
{
Entry tab[] = table;
@@ -381,6 +402,9 @@ public class IntHashMap
count = 0;
}
+ /**
+ * {@inheritDoc}
+ */
public boolean containsKey( Object key )
{
if ( !( key instanceof Number ) )
@@ -390,6 +414,9 @@ public class IntHashMap
return containsKey( ( (Number) key ).intValue() );
}
+ /**
+ * {@inheritDoc}
+ */
public boolean containsValue( Object value )
{
Entry tab[] = table;
@@ -411,6 +438,9 @@ public class IntHashMap
return false;
}
+ /**
+ * {@inheritDoc}
+ */
public Set keySet()
{
Set result = new HashSet();
@@ -422,6 +452,9 @@ public class IntHashMap
return result;
}
+ /**
+ * {@inheritDoc}
+ */
public Collection values()
{
List result = new ArrayList();
@@ -433,6 +466,9 @@ public class IntHashMap
return result;
}
+ /**
+ * {@inheritDoc}
+ */
public Set entrySet()
{
throw new UnsupportedOperationException( "entrySet" );