ByteFieldComparatorImpl extends AbstractFieldComparator<ENTITY> implements ByteFieldComparator<ENTITY, D> { @Override public ByteFieldComparatorImpl<ENTITY, D> reversed() { return new ByteFieldComparatorImpl<>(field, !reversed); } ByteFieldComparatorImpl(HasByteValue<ENTITY, D> field);   ByteFieldComparatorImpl(HasByteValue<ENTITY, D> field, boolean reversed); @Override HasByteValue<ENTITY, D> getField(); @Override NullOrder getNullOrder(); @Override boolean isReversed(); @Override ByteFieldComparatorImpl<ENTITY, D> reversed(); @Override int compare(ENTITY first, ENTITY second); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }
@Test void testReversed() { final FieldComparator<ByteValue> expResult = new ByteFieldComparatorImpl<>(ByteValue.BYTE, true); final FieldComparator<ByteValue> result = instance.reversed(); assertEquals(expResult, result); assertTrue(result.isReversed()); }