Map.getOrDefault(Object,Supplier) override (original) (raw)
Michael Nascimento misterm at gmail.com
Thu Apr 18 14:32:10 PDT 2013
- Previous message: Collecion as collector
- Next message: Map.getOrDefault(Object,Supplier) override
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi guys,
Sometimes constructing the default object is too costly and relying on the ternary operation is the escape hatch again. A Map.getOrDefault(Object,Supplier) would solve this.
Has this been considered before?
Regards, Michael
- Previous message: Collecion as collector
- Next message: Map.getOrDefault(Object,Supplier) override
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]