4 ms·
A good example might be static constructors that indicate the semantics of the parameters, such as of(array), copyOf(array), ofSorted(array) Where perhaps the
by _benedict 4y ago
A good example might be static constructors that indicate the semantics of the parameters, such as of(array), copyOf(array), ofSorted(array)
Where perhaps the first wraps, the second copies and the third may wrap and avoid sorting the input. This would all of course depend on some conventions on meaning within the codebase.