@Override
    public int length() {
        return palette.length;
    }
Constructs a new instance.

@param palette palette to copy and store.
src/main/java/org/apache/commons/imaging/palette/SimplePalette.java