Code example for Bitmap.Config

Methods: hashCode

0
        public Config config;
        public int length;
 
        @Override 
        public int hashCode() { 
            int x = config.hashCode() ^ length;
            return vertical ? x : -x;
        } 
 
        @Override 
        public boolean equals(Object object) {
            if (!(object instanceof BorderKey)) return false;
            BorderKey o = (BorderKey) object;
            return vertical == o.vertical
                    && config == o.config && length == o.length;
        } 
 
        @Override 
        public BorderKey clone() { 
            try { 
                return (BorderKey) super.clone();