@Override
        public boolean equals(Object other){
            return ((DummyKey)other).id == id;
        }
Dummy key is indexed by a generated ID
jme3-examples/src/main/java/jme3test/asset/TestAssetCache.java