From 06537da4e0d1c420c6669f6ce1490ea56adc4d7d Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Mon, 18 Feb 2013 22:42:39 +0100 Subject: 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. --- usage_examples/experimental/ValueExample_post.jpage | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'usage_examples/experimental/ValueExample_post.jpage') 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 withName(String name) { - return this.name == name ? this : new Exercise(name, value); - } - - public Exercise withValue(T value) { - return this.value == value ? this : new Exercise(name, value); - } - @java.lang.Override public boolean equals(Object o) { if (o == this) return true; -- cgit