app/src/main/java/com/kunzisoft/keepass/utils/MemUtil.java
public static <V extends Parcelable> void writeStringParcelableMap(
            Parcel parcel, int flags, Map<String, V> map) {
        parcel.writeInt(map.size());
        for(Map.Entry<String, V> e : map.entrySet()){
            parcel.writeString(e.getKey());
            parcel.writeParcelable(e.getValue(), flags);
        }
    }
// For writing map with string key to a Parcel
For writing map with string key to a Parcel
For writing map with string key to a Parcel
public static <V extends Parcelable> void writeStringParcelableMap(
            Parcel parcel, int flags, Map<String, V> map) {
        parcel.writeInt(map.size());
        for(Map.Entry<String, V> e : map.entrySet()){
            parcel.writeString(e.getKey());
            parcel.writeParcelable(e.getValue(), flags);
        }
    }
public static < V extends Parcelable > void writeStringParcelableMap ( Parcel parcel , int flags , Map < String , V > map ) { parcel . writeInt ( map . size ( ) ) ; for ( Map . Entry < String , V > e : map . entrySet ( ) ) { parcel . writeString ( e . getKey ( ) ) ; parcel . writeParcelable ( e . getValue ( ) , flags ) ; } }
For writing map with string key to a Parcel
For writing map with string key to a Parcel