@Test public final void testFromBooleanValue() throws FastOdsException { final BooleanValue bv1 = new BooleanValue(true); final BooleanValue bv2 = BooleanValue.from(bv1); Assert.assertEquals(bv1, bv2); }
public static BooleanValue from(final Object o) throws FastOdsException { if (o instanceof Boolean) { return new BooleanValue((Boolean) o); } else if (o instanceof BooleanValue) { return (BooleanValue) o; } else { throw new FastOdsException("Can't cast " + o + " to Boolean"); } }
BooleanValue implements CellValue { public static BooleanValue from(final Object o) throws FastOdsException { if (o instanceof Boolean) { return new BooleanValue((Boolean) o); } else if (o instanceof BooleanValue) { return (BooleanValue) o; } else { throw new FastOdsException("Can't cast " + o + " to Boolean"); } } }
BooleanValue implements CellValue { public static BooleanValue from(final Object o) throws FastOdsException { if (o instanceof Boolean) { return new BooleanValue((Boolean) o); } else if (o instanceof BooleanValue) { return (BooleanValue) o; } else { throw new FastOdsException("Can't cast " + o + " to Boolean"); } } BooleanValue(final Boolean value); }
BooleanValue implements CellValue { public static BooleanValue from(final Object o) throws FastOdsException { if (o instanceof Boolean) { return new BooleanValue((Boolean) o); } else if (o instanceof BooleanValue) { return (BooleanValue) o; } else { throw new FastOdsException("Can't cast " + o + " to Boolean"); } } BooleanValue(final Boolean value); static BooleanValue from(final Object o); @Override void setToCell(final TableCell tableCell); @Override boolean equals(final Object o); @Override final int hashCode(); }
BooleanValue implements CellValue { public static BooleanValue from(final Object o) throws FastOdsException { if (o instanceof Boolean) { return new BooleanValue((Boolean) o); } else if (o instanceof BooleanValue) { return (BooleanValue) o; } else { throw new FastOdsException("Can't cast " + o + " to Boolean"); } } BooleanValue(final Boolean value); static BooleanValue from(final Object o); @Override void setToCell(final TableCell tableCell); @Override boolean equals(final Object o); @Override final int hashCode();  }