public static Boolean boxed(boolean v) { return Boolean.valueOf(v); }
private static String convertLegacyValue(String key, String value) { if (value != null && value.length() > 0) { if ("dubbo.service.max.retry.providers".equals(key)) { return String.valueOf(Integer.parseInt(value) - 1); } else if ("dubbo.service.allow.no.provider".equals(key)) { return String.valueOf(!Boolean.parseBoolean(value)); } } return value; }
/** * 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()); }
@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(); }
private Object toObject (String key, String value) { if (key.endsWith("b")) return new Boolean(Boolean.parseBoolean(value)); if (key.endsWith("i")) return new Integer(Integer.parseInt(value)); if (key.endsWith("l")) return new Long(Long.parseLong(value)); if (key.endsWith("f")) return new Float(Float.parseFloat(value)); return value; }
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + (Boolean.valueOf(parenthesized).hashCode()); result = prime * result + distionOption; result = prime * result + ((from == null) ? 0 : from.hashCode()); result = prime * result + ((groupBy == null) ? 0 : groupBy.hashCode()); result = prime * result + ((into == null) ? 0 : into.hashCode()); result = prime * result + ((selectList == null) ? 0 : selectList.hashCode()); result = prime * result + ((where == null) ? 0 : where.hashCode()); return result; }
public void setGeneric(Boolean generic) { if (generic != null) { this.generic = generic.toString(); } }
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; SQLDataTypeImpl dataType = (SQLDataTypeImpl) o; if (name != null ? !name.equals(dataType.name) : dataType.name != null) return false; if (arguments != null ? !arguments.equals(dataType.arguments) : dataType.arguments != null) return false; return withTimeZone != null ? withTimeZone.equals(dataType.withTimeZone) : dataType.withTimeZone == null; }
@Generates private Boolean generateBooleanObject() { return new Boolean(generateBoolean()); }
public void setGeneric(Boolean generic) { if (generic != null) { this.generic = generic.toString(); } }
@Override public boolean process(HttpServletRequest request, HttpServletResponse response, FilterChain chain) throws IOException, ServletException { if (Boolean.TRUE.equals(request.getAttribute(BasicHeaderApiTokenAuthenticator.class.getName()))) { chain.doFilter(request, response); return true; } return false; } }
private Object toObject (String key, String value) { if (key.endsWith("b")) return new Boolean(Boolean.parseBoolean(value)); if (key.endsWith("i")) return new Integer(Integer.parseInt(value)); if (key.endsWith("l")) return new Long(Long.parseLong(value)); if (key.endsWith("f")) return new Float(Float.parseFloat(value)); return value; }
public static Boolean boxed(boolean v) { return Boolean.valueOf(v); }
private static String convertLegacyValue(String key, String value) { if (value != null && value.length() > 0) { if ("dubbo.service.max.retry.providers".equals(key)) { return String.valueOf(Integer.parseInt(value) - 1); } else if ("dubbo.service.allow.no.provider".equals(key)) { return String.valueOf(!Boolean.parseBoolean(value)); } } return value; }
/** * 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()); }
/** * Programmatically set a local flag to "true", overriding an * entry in the {@code spring.properties} file (if any). * @param key the property key */ public static void setFlag(String key) { localProperties.put(key, Boolean.TRUE.toString()); }
protected ScriptEngine getEngine() { if (Boolean.FALSE.equals(this.sharedEngine)) { Assert.state(this.engineName != null, "No engine name specified"); return createEngineFromName(this.engineName); } else { Assert.state(this.engine != null, "No shared engine available"); return this.engine; } }
public Object getObject () { return Boolean.valueOf(value); } };
void load(Properties properties) { if (properties.containsKey(PURGE_ENABLED_KEY)) { purgeEnable = Boolean.parseBoolean(properties.getProperty(PURGE_ENABLED_KEY)); } else { purgeEnable = true; } if (purgeEnable && properties.containsKey(PURGE_PERIOD_SECONDS_KEY)) { try { purgePeriod = Integer.parseInt(properties.getProperty(PURGE_PERIOD_SECONDS_KEY)); } catch (NumberFormatException ex) { purgePeriod = 1; } } else { purgePeriod = 1; } } }