/** * Is default HTML escaping active? Falls back to {@code false} in case of no explicit default given. */ public boolean isDefaultHtmlEscape() { return (this.defaultHtmlEscape != null && this.defaultHtmlEscape.booleanValue()); }
/** * Is default HTML escaping active? Falls back to {@code false} in case of * no explicit default given. */ public boolean isDefaultHtmlEscape() { return (this.defaultHtmlEscape != null && this.defaultHtmlEscape.booleanValue()); }
/** * Is HTML escaping using the response encoding by default? * If enabled, only XML markup significant characters will be escaped with UTF-* encodings. * <p>Falls back to {@code true} in case of no explicit default given, as of Spring 4.2. * @since 4.1.2 */ public boolean isResponseEncodedHtmlEscape() { return (this.responseEncodedHtmlEscape == null || this.responseEncodedHtmlEscape.booleanValue()); }
@Override public Object decode(Object jv) { if (jv instanceof Boolean) { return ((Boolean) jv).booleanValue(); } return false; } };
@Override public Object decode(Object jv) { if (jv instanceof Boolean) { return ((Boolean) jv).booleanValue(); } return false; } };
public static boolean unboxed(Boolean v) { return v == null ? false : v.booleanValue(); }
public static boolean unboxed(Boolean v) { return v == null ? false : v.booleanValue(); }
/** * Sets the value from any Boolean instance. * * @param value the value to set, not null * @throws NullPointerException if the object is null */ @Override public void setValue(final Boolean value) { this.value = value.booleanValue(); }
/** * Constructs a new MutableBoolean with the specified value. * * @param value the initial value to store, not null * @throws NullPointerException if the object is null */ public MutableBoolean(final Boolean value) { super(); this.value = value.booleanValue(); }
protected boolean _useTimestampExplicitOnly(SerializerProvider provider) { if (_useTimestamp != null) { return _useTimestamp.booleanValue(); } return false; }
/** * get boolean value. * * @param index index. * @param def default value. * @return value or default value. */ public boolean getBoolean(int index, boolean def) { Object tmp = mArray.get(index); return tmp != null && tmp instanceof Boolean ? ((Boolean) tmp).booleanValue() : def; }
/** * get boolean value. * * @param index index. * @param def default value. * @return value or default value. */ public boolean getBoolean(int index, boolean def) { Object tmp = mArray.get(index); return tmp != null && tmp instanceof Boolean ? ((Boolean) tmp).booleanValue() : def; }
@Override public void setProperties(Properties properties) { super.setProperties(properties); this.addGWTInterface = Boolean.valueOf(properties.getProperty("addGWTInterface")).booleanValue(); this.suppressJavaInterface = Boolean.valueOf(properties.getProperty("suppressJavaInterface")).booleanValue(); }
/** * Return the HTML escaping setting for this tag, * or the default setting if not overridden. * @see #isDefaultHtmlEscape() */ protected boolean isHtmlEscape() { if (this.htmlEscape != null) { return this.htmlEscape.booleanValue(); } else { return isDefaultHtmlEscape(); } }
@Override public boolean getBoolean(int columnIndex) throws SQLException { Object obj = getObject(columnIndex); if (obj == null) { return false; } return ((Boolean) obj).booleanValue(); }
public boolean getBooleanProperty(String name) throws JMSException { Object value = this.properties.get(name); return (value instanceof Boolean) ? ((Boolean) value).booleanValue() : false; }
/** * Overridden to default to {@code true} in case of no explicit default given. */ @Override protected boolean isDefaultHtmlEscape() { Boolean defaultHtmlEscape = getRequestContext().getDefaultHtmlEscape(); return (defaultHtmlEscape == null || defaultHtmlEscape.booleanValue()); }
public void postVisit(SQLObject x) { if (x instanceof SQLStatement) { SQLStatement stmt = (SQLStatement) x; boolean printSemi = printStatementAfterSemi == null ? stmt.isAfterSemi() : printStatementAfterSemi.booleanValue(); if (printSemi) { print(';'); } } }
public void write(JSONSerializer serializer, Object object, Object fieldName, Type fieldType, int features) throws IOException { SerializeWriter out = serializer.out; Boolean value = (Boolean) object; if (value == null) { out.writeNull(SerializerFeature.WriteNullBooleanAsFalse); return; } if (value.booleanValue()) { out.write("true"); } else { out.write("false"); } }
public void testGetDefaultValue() { assertEquals(false, Defaults.defaultValue(boolean.class).booleanValue()); assertEquals('\0', Defaults.defaultValue(char.class).charValue()); assertEquals(0, Defaults.defaultValue(byte.class).byteValue()); assertEquals(0, Defaults.defaultValue(short.class).shortValue()); assertEquals(0, Defaults.defaultValue(int.class).intValue()); assertEquals(0, Defaults.defaultValue(long.class).longValue()); assertEquals(0.0f, Defaults.defaultValue(float.class).floatValue()); assertEquals(0.0d, Defaults.defaultValue(double.class).doubleValue()); assertNull(Defaults.defaultValue(void.class)); assertNull(Defaults.defaultValue(String.class)); } }