Skip to content

Commit

Permalink
NameMap supports isEmpty
Browse files Browse the repository at this point in the history
  • Loading branch information
junwen12221 committed Jun 8, 2022
1 parent 803bda6 commit 0ff12b7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions common/src/main/java/io/mycat/util/NameMap.java
Original file line number Diff line number Diff line change
Expand Up @@ -167,4 +167,8 @@ public Collection<V> values() {
HashMap<String, V> tableMap = new HashMap(this.map);
return tableMap.values();
}

public boolean isEmpty(){
return map.isEmpty();
}
}

0 comments on commit 0ff12b7

Please sign in to comment.