public Style merge(Style s) throws NullPointerException { if (s == null) { throw new NullPointerException(); } if (s == reset) { return reset; } else { Style.Composite that = (Composite)s; Boolean bold = Utils.notNull(that.getBold(), getBold()); Boolean underline = Utils.notNull(that.getUnderline(), getUnderline()); Boolean blink = Utils.notNull(that.getBlink(), getBlink()); Color foreground = Utils.notNull(that.getForeground(), getForeground()); Color background = Utils.notNull(that.getBackground(), getBackground()); return style(bold, underline, blink, foreground, background); } }
public Style merge(Style s) throws NullPointerException { if (s == null) { throw new NullPointerException(); } if (s == reset) { return reset; } else { Style.Composite that = (Composite)s; Boolean bold = Utils.notNull(that.getBold(), getBold()); Boolean underline = Utils.notNull(that.getUnderline(), getUnderline()); Boolean blink = Utils.notNull(that.getBlink(), getBlink()); Color foreground = Utils.notNull(that.getForeground(), getForeground()); Color background = Utils.notNull(that.getBackground(), getBackground()); return style(bold, underline, blink, foreground, background); } }
public Style merge(Style s) throws NullPointerException { if (s == null) { throw new NullPointerException(); } if (s == reset) { return reset; } else { Style.Composite that = (Composite)s; Boolean bold = Utils.notNull(that.getBold(), getBold()); Boolean underline = Utils.notNull(that.getUnderline(), getUnderline()); Boolean blink = Utils.notNull(that.getBlink(), getBlink()); Color foreground = Utils.notNull(that.getForeground(), getForeground()); Color background = Utils.notNull(that.getBackground(), getBackground()); return style(bold, underline, blink, foreground, background); } }
public Style merge(Style s) throws NullPointerException { if (s == null) { throw new NullPointerException(); } if (s == reset) { return reset; } else { Style.Composite that = (Composite)s; Boolean bold = Utils.notNull(that.getBold(), getBold()); Boolean underline = Utils.notNull(that.getUnderline(), getUnderline()); Boolean blink = Utils.notNull(that.getBlink(), getBlink()); Color foreground = Utils.notNull(that.getForeground(), getForeground()); Color background = Utils.notNull(that.getBackground(), getBackground()); return style(bold, underline, blink, foreground, background); } }