Home | History | Annotate | Download | only in runner

Lines Matching defs:kind

10  * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
24 import com.google.caliper.runner.StreamService.StreamItem.Kind;
83 private static final StreamItem TIMEOUT_ITEM = new StreamItem(Kind.TIMEOUT, null);
86 static final StreamItem EOF_ITEM = new StreamItem(Kind.EOF, null);
292 enum Kind {
302 private final Kind kind;
305 this(Kind.DATA, checkNotNull(line));
308 private StreamItem(Kind state, @Nullable LogMessage logMessage) {
310 this.kind = state;
313 /** Returns the content. This is only valid if {@link #kind()} return {@link Kind#DATA}. */
315 checkState(kind == Kind.DATA, "Only data lines have content: %s", this);
319 Kind kind() {
320 return kind;
325 if (kind == Kind.DATA) {
328 helper.addValue(kind);