X
Xagyg
In Ruby, a method that modifies the instance using it is suffixed with
a '!'.
E.g. someString.reverse() returns a String with a reversed result,
however, someString.reverse! reverses the result of someString.
Does anyone have/use/know of a method-naming convention in Java to
distinguish between methods that modify the instance and methods that
don't?
Feel free to suggest one if you like.
a '!'.
E.g. someString.reverse() returns a String with a reversed result,
however, someString.reverse! reverses the result of someString.
Does anyone have/use/know of a method-naming convention in Java to
distinguish between methods that modify the instance and methods that
don't?
Feel free to suggest one if you like.