package com.bbn.kbp.events2014;


import com.bbn.bue.common.TextGroupPublicImmutable;
import com.bbn.bue.common.symbols.Symbol;

import org.immutables.func.Functional;
import org.immutables.value.Value;

import java.util.SortedSet;


@TextGroupPublicImmutable
@Value.Immutable
@Functional
public abstract class _QueryResponse2016 {

  public abstract Symbol queryID();

  public abstract Symbol docID();

  public abstract Symbol systemID();

  @Value.NaturalOrder
  public abstract SortedSet<CharOffsetSpan> predicateJustifications();

}

@@ -226,16 +226,80 @@
 edSet;%0A%0A
+import static com.google.common.base.Preconditions.checkState;%0A%0A
 %0A@TextGr
@@ -594,10 +594,151 @@
 ons();%0A%0A
+  @Value.Check%0A  protected void check() %7B%0A    checkState(predicateJustifications().size() %3E 0, %22Must provide PredicateJustifications!%22);%0A  %7D%0A
 %7D%0A

verify preconditions once a QueryResponse2016 has been built