コード例 #1
0
 public boolean containsKey(SNodeId key) {
   if (key instanceof Regular) {
     return myRegularMap.containsKey(((Regular) key).getId());
   } else if (key instanceof Foreign) {
     return myForeignMap.containsKey(((Foreign) key).getId());
   } else {
     return myOtherMap.containsKey(key);
   }
 }
コード例 #2
0
 public boolean isMutable(@NotNull T item) {
   return modifiedToOriginal.containsKey(item) || !originalItems.contains(item);
 }