forked from projectlombok/lombok
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
robin
committed
Apr 17, 2010
1 parent
5f276b6
commit ee60a6c
Showing
7 changed files
with
128 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
class SetterFluent { | ||
int nonfluent; | ||
int fluent; | ||
int nonfluent_accessLevel; | ||
int fluent_accessLevel; | ||
|
||
public void setNonfluent(final int nonfluent) { | ||
this.nonfluent = nonfluent; | ||
} | ||
public SetterFluent fluent(final int fluent) { | ||
this.fluent = fluent; | ||
return this; | ||
} | ||
private void setNonfluent_accessLevel(final int nonfluent_accessLevel) { | ||
this.nonfluent_accessLevel = nonfluent_accessLevel; | ||
} | ||
private SetterFluent fluent_accessLevel(final int fluent_accessLevel) { | ||
this.fluent_accessLevel = fluent_accessLevel; | ||
return this; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import lombok.Setter; | ||
class SetterFluent { | ||
@Setter(fluent=false) int nonfluent; | ||
@Setter(fluent=true) int fluent; | ||
@Setter(fluent=false, lombok.AccessLevel.PRIVATE) int nonfluent_accessLevel; | ||
@Setter(fluent=true, lombok.AccessLevel.PRIVATE) int fluent_accessLevel; | ||
} |
Forgot to change the example in the comment - the fluent setter name is just foo().