Skip to content

Commit

Permalink
Add "contains" method on ZipEntryMap
Browse files Browse the repository at this point in the history
  • Loading branch information
REAndroid committed Apr 6, 2024
1 parent 0b4fa7a commit 71f1cf0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/com/reandroid/archive/ZipEntryMap.java
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,11 @@ public InputSource getInputSource(String name){
return mSourceMap.get(name);
}
}
public boolean contains(String name){
synchronized (mLock){
return mSourceMap.containsKey(name);
}
}
public void refresh(){
InputSource[] inputSourceList = toArray(true);
set(inputSourceList);
Expand Down

0 comments on commit 71f1cf0

Please sign in to comment.