MCPcopy Index your code
hub / github.com/clojure/clojure / Empty

Class Empty

src/jvm/clojure/lang/TransformerIterator.java:119–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119private static class Empty implements Buffer {
120 public Buffer add(Object o) {
121 return new Single(o);
122 }
123
124 public Object remove() {
125 throw new IllegalStateException("Removing object from empty buffer");
126 }
127
128 public boolean isEmpty() {
129 return true;
130 }
131
132 public String toString() {
133 return "Empty";
134 }
135}
136
137private static class Single implements Buffer {
138 private volatile Object val;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected