MCPcopy Create free account
hub / github.com/ReadyTalk/avian / replaceWith

Method replaceWith

classpath/avian/PersistentSet.java:559–566  ·  view source on GitHub ↗
(T value)

Source from the content-addressed store, hash-verified

557 }
558
559 public PersistentSet<T> replaceWith(T value) {
560 if (fresh) throw new IllegalStateException();
561 if (root.comparator.compare(node.value, value) != 0)
562 throw new IllegalArgumentException();
563
564 node.value = value;
565 return root;
566 }
567 }
568
569 public class Iterator <T> implements java.util.Iterator <T> {

Callers 6

addMethod · 0.45
addAndReplaceMethod · 0.45
removeCellMethod · 0.45
removeMethod · 0.45
putMethod · 0.45
removeMethod · 0.45

Calls 1

compareMethod · 0.65

Tested by

no test coverage detected