SwayDB icon indicating copy to clipboard operation
SwayDB copied to clipboard

Implement `getOrNull`

Open simerplaha opened this issue 4 years ago • 0 comments

map.get(key) returns an Optional<Value>.

Another getOrNull API annotated with @Nullable is required for cases where we do not want to create Optional instances in Java or Option in Scala.

map.getOrNull(key) should return @Nullable Value.

simerplaha avatar Jan 01 '22 09:01 simerplaha