mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-15 11:53:49 +07:00
21 lines
606 B
Java
21 lines
606 B
Java
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
|
import lombok.Value;
|
|
import lombok.experimental.Wither;
|
|
|
|
@Wither
|
|
@Value
|
|
public record FindUsageWitherRecord(
|
|
int foo,
|
|
String b<caret>ar
|
|
) {
|
|
|
|
public static void main(String[] args) {
|
|
FindUsageWitherRecord findUsageWitherRecord = new FindUsageWitherRecord(1, "bar");
|
|
findUsageWitherRecord
|
|
.withBar("myBar")
|
|
.withFoo(1981);
|
|
System.out.println("Bar is: " + findUsageWitherRecord.bar());
|
|
System.out.println("Foo is: " + findUsageWitherRecord.foo());
|
|
}
|
|
}
|