@Test(expected = FastOdsException.class) public final void testFromBooleanObject() throws FastOdsException { BooleanValue.from(new Object()); }
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();  }