So, I am working on an Android application. I came across a class Color. I see that one of his methods is colorToHSV. Just from the name, I think it will return a floating point array (HSV). However, it returns void! It takes an array as a parameter! I assume that it will change the passed array. But why should this be done? Just return the array! I also see this pattern readBooleanArrayin Parcel.
Why does he announce such a method? Is this some kind of pattern?
source
share