@Test public void testToHeaderspace_notExcept() { FwFromFragmentOffset from = new FwFromFragmentOffset(new SubRange(1, 2), false); assertEquals( from.toHeaderspace(), HeaderSpace.builder().setFragmentOffsets(ImmutableSet.of(new SubRange(1, 2))).build()); }
@VisibleForTesting HeaderSpace toHeaderspace() { return _except ? HeaderSpace.builder().setNotFragmentOffsets(ImmutableSet.of(_offsetRange)).build() : HeaderSpace.builder().setFragmentOffsets(ImmutableSet.of(_offsetRange)).build(); }
FwFromFragmentOffset implements FwFrom { @VisibleForTesting HeaderSpace toHeaderspace() { return _except ? HeaderSpace.builder().setNotFragmentOffsets(ImmutableSet.of(_offsetRange)).build() : HeaderSpace.builder().setFragmentOffsets(ImmutableSet.of(_offsetRange)).build(); } }
FwFromFragmentOffset implements FwFrom { @VisibleForTesting HeaderSpace toHeaderspace() { return _except ? HeaderSpace.builder().setNotFragmentOffsets(ImmutableSet.of(_offsetRange)).build() : HeaderSpace.builder().setFragmentOffsets(ImmutableSet.of(_offsetRange)).build(); } FwFromFragmentOffset(SubRange offsetRange, boolean except); }
FwFromFragmentOffset implements FwFrom { @VisibleForTesting HeaderSpace toHeaderspace() { return _except ? HeaderSpace.builder().setNotFragmentOffsets(ImmutableSet.of(_offsetRange)).build() : HeaderSpace.builder().setFragmentOffsets(ImmutableSet.of(_offsetRange)).build(); } FwFromFragmentOffset(SubRange offsetRange, boolean except); @Override Field getField(); @Override AclLineMatchExpr toAclLineMatchExpr(JuniperConfiguration jc, Configuration c, Warnings w); }
FwFromFragmentOffset implements FwFrom { @VisibleForTesting HeaderSpace toHeaderspace() { return _except ? HeaderSpace.builder().setNotFragmentOffsets(ImmutableSet.of(_offsetRange)).build() : HeaderSpace.builder().setFragmentOffsets(ImmutableSet.of(_offsetRange)).build(); } FwFromFragmentOffset(SubRange offsetRange, boolean except); @Override Field getField(); @Override AclLineMatchExpr toAclLineMatchExpr(JuniperConfiguration jc, Configuration c, Warnings w);  }