This Map method seemed smart.
This commit is contained in:
parent
bbf974f348
commit
1d59e348ed
@ -79,4 +79,20 @@ public class MassiveMap<K, V> extends LinkedHashMap<K, V>
|
||||
return ret;
|
||||
}
|
||||
|
||||
// -------------------------------------------- //
|
||||
// METHODS
|
||||
// -------------------------------------------- //
|
||||
|
||||
public V set(K key, V value)
|
||||
{
|
||||
if (value == null)
|
||||
{
|
||||
return this.remove(key);
|
||||
}
|
||||
else
|
||||
{
|
||||
return this.put(key, value);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user