@Test(groups = "fast") public void testConvertToBoolean() throws Exception { Assert.assertEquals(value0.getBoolean().booleanValue(), false); Assert.assertEquals(value1.getBoolean().booleanValue(), true); Assert.assertEquals(valueBigPositive.getBoolean().booleanValue(), true); Assert.assertEquals(valueBigNegative.getBoolean().booleanValue(), true); }
@Override public Boolean getBoolean() { return !value.equals(0L); }
LongDataItem implements DataItem { @Override public Boolean getBoolean() { return !value.equals(0L); } }
LongDataItem implements DataItem { @Override public Boolean getBoolean() { return !value.equals(0L); } LongDataItem();  LongDataItem(final long value); }
LongDataItem implements DataItem { @Override public Boolean getBoolean() { return !value.equals(0L); } LongDataItem();  LongDataItem(final long value); @Override Boolean getBoolean(); @Override Byte getByte(); @Override Integer getInteger(); @Override Short getShort(); @Override Long getLong(); @Override String getString(); @Override Double getDouble(); @Override Comparable getComparable(); @Override int compareTo(final Object o); @Override boolean equals(final Object o); @Override int hashCode(); @Override void write(final DataOutput out); @Override void readFields(final DataInput in); @Override String toString(); @Override byte getThriftType(); }
LongDataItem implements DataItem { @Override public Boolean getBoolean() { return !value.equals(0L); } LongDataItem();  LongDataItem(final long value); @Override Boolean getBoolean(); @Override Byte getByte(); @Override Integer getInteger(); @Override Short getShort(); @Override Long getLong(); @Override String getString(); @Override Double getDouble(); @Override Comparable getComparable(); @Override int compareTo(final Object o); @Override boolean equals(final Object o); @Override int hashCode(); @Override void write(final DataOutput out); @Override void readFields(final DataInput in); @Override String toString(); @Override byte getThriftType();  }