app/src/main/java/com/kunzisoft/keepass/utils/MemUtil.java
public static <V extends Parcelable> HashMap<String,V> readStringParcelableMap(
            Parcel parcel, Class<V> vClass) {
        int size = parcel.readInt();
        HashMap<String, V> map = new HashMap<>(size);
        for(int i = 0; i < size; i++){
            map.put(parcel.readString(),
                    vClass.cast(parcel.readParcelable(vClass.getClassLoader())));
        }
        return map;
    }
// For reading map with string key from a Parcel
For reading map with string key from a Parcel
For reading map with string key from a Parcel
public static <V extends Parcelable> HashMap<String,V> readStringParcelableMap(
            Parcel parcel, Class<V> vClass) {
        int size = parcel.readInt();
        HashMap<String, V> map = new HashMap<>(size);
        for(int i = 0; i < size; i++){
            map.put(parcel.readString(),
                    vClass.cast(parcel.readParcelable(vClass.getClassLoader())));
        }
        return map;
    }
public static < V extends Parcelable > HashMap < String , V > readStringParcelableMap ( Parcel parcel , Class < V > vClass ) { int size = parcel . readInt ( ) ; HashMap < String , V > map = new HashMap < > ( size ) ; for ( int i = 0 ; i < size ; i ++ ) { map . put ( parcel . readString ( ) , vClass . cast ( parcel . readParcelable ( vClass . getClassLoader ( ) ) ) ) ; } return map ; }
For reading map with string key from a Parcel
For reading map with string key from a Parcel