2 ms·
Well, it's not exactly a primitive (long) and instead it is an Object (Long), but I understand what you mean :)
by sushsjsuauahab 5y ago
Well, it's not exactly a primitive (long) and instead it is an Object (Long), but I understand what you mean :)
- shawnz 5y agoOptionalLong is an object which optionally contains a value type (lowercase L) long. Optional<Long> is an object Optional which optionally contains an object Long.
- sushsjsuauahab 5y agoOh nice! I should have checked the docs or Intellij to see that it returns the primitive type ;)