aboutsummaryrefslogtreecommitdiff
path: root/usage_examples/experimental/ValueExample_post.jpage
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2013-02-18 22:42:39 +0100
committerReinier Zwitserloot <reinier@zwitserloot.com>2013-02-18 22:42:39 +0100
commit06537da4e0d1c420c6669f6ce1490ea56adc4d7d (patch)
tree261b27a692e598d434aae2f5efc3faa6998dcd4c /usage_examples/experimental/ValueExample_post.jpage
parented61012f95cefae8d03260f506ffe34bc19bd90c (diff)
downloadlombok-06537da4e0d1c420c6669f6ce1490ea56adc4d7d.tar.gz
lombok-06537da4e0d1c420c6669f6ce1490ea56adc4d7d.tar.bz2
lombok-06537da4e0d1c420c6669f6ce1490ea56adc4d7d.zip
Changed @Value to no longer imply @Wither. Usually you want only
a few or no withers at all, and adding them is a lot simpler than removing them. This is a breaking change, but then that's why @Value was in experimental in the first place.
Diffstat (limited to 'usage_examples/experimental/ValueExample_post.jpage')
-rw-r--r--usage_examples/experimental/ValueExample_post.jpage20
1 files changed, 0 insertions, 20 deletions
diff --git a/usage_examples/experimental/ValueExample_post.jpage b/usage_examples/experimental/ValueExample_post.jpage
index 47de72a5..ac9b64d1 100644
--- a/usage_examples/experimental/ValueExample_post.jpage
+++ b/usage_examples/experimental/ValueExample_post.jpage
@@ -30,18 +30,6 @@ public final class ValueExample {
return this.tags;
}
- public ValueExample withName(String name) {
- return this.name == name ? this : new ValueExample(name, age, score, tags);
- }
-
- public ValueExample withScore(double score) {
- return this.score == score ? this : new ValueExample(name, age, score, tags);
- }
-
- public ValueExample withTags(String[] tags) {
- return this.tags == tags ? this : new ValueExample(name, age, score, tags);
- }
-
@java.lang.Override
public boolean equals(Object o) {
if (o == this) return true;
@@ -99,14 +87,6 @@ public final class ValueExample {
return this.value;
}
- public Exercise<T> withName(String name) {
- return this.name == name ? this : new Exercise<T>(name, value);
- }
-
- public Exercise<T> withValue(T value) {
- return this.value == value ? this : new Exercise<T>(name, value);
- }
-
@java.lang.Override
public boolean equals(Object o) {
if (o == this) return true;