.var | Object o = new Object(); |
.varl | var o = new Object();需要安装lombok插件 |
.nn/.notnull | if (new Object() != null) {} |
.field | 可声明成类属性 |
.null | if (new Object() == null) { } |
.lambda | () -> new Object() |
.cast | (() new Object()) |
.arg/.par | (new Object()) |
.castvar | = () new Object(); |
.inst/.instanceof | new Object() instanceof ? (() new Object()) : null; |
.opt | Optional.of(new Object()) |
.reqnonnull | Objects.requireNonNull(new Object()) |
.return | return new Object(); |
.serr | System.err.println(new Object()); |
.souf | System.out.printf("", new Object()); |
.sout | System.out.println(new Object()); |
.soutv | System.out.println("new Object() = " + new Object()); |
.try | try { new Object() } catch (Exception e) { e.printStackTrace(); } |
.synchronized | synchronized (new Object()) {} |
| |