This Map method seemed smart.
This commit is contained in:
parent
bbf974f348
commit
1d59e348ed
@ -78,5 +78,21 @@ 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