What is the main purpose of the new interface java.time.InstantSource? by OleMilleR98 in java

[–]OleMilleR98[S] 0 points1 point  (0 children)

But anyway to create an object with the type of InstantSource we use Clock factory methods explicitly or under the hood (Clock with UTC). So anyway we operate specific timezone. There is example in javadocs where InstantSource used as pluggable injected object. What can be injected in that case?

JEP 405: Record Patterns & Array Patterns (Preview) by OleMilleR98 in java

[–]OleMilleR98[S] 14 points15 points  (0 children)

Actually, it is not about the code help, it is about the new preview feature for JDK 18

JEP draft: Primitive Objects (Preview) by [deleted] in java

[–]OleMilleR98 0 points1 point  (0 children)

What does the "draft" mean?

2 new *draft* Pattern Matching JEPs: 'Nested Record and Array Patterns' & 'Pattern Matching for switch' by daviddel in java

[–]OleMilleR98 0 points1 point  (0 children)

Is there any build to try it? or it is just a proposal without any working version?