congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Boolean.parseBoolean
Code IndexAdd Tabnine to your IDE (free)

How to use
parseBoolean
method
in
java.lang.Boolean

Best Java code snippets using java.lang.Boolean.parseBoolean (Showing top 20 results out of 55,620)

origin: apache/incubator-dubbo

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;
}
origin: apache/incubator-dubbo

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;
}
origin: ReactiveX/RxJava

  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;
    }
  }
}
origin: spring-projects/spring-framework

private static void useClassProxyingIfNecessary(BeanDefinitionRegistry registry, @Nullable Element sourceElement) {
  if (sourceElement != null) {
    boolean proxyTargetClass = Boolean.parseBoolean(sourceElement.getAttribute(PROXY_TARGET_CLASS_ATTRIBUTE));
    if (proxyTargetClass) {
      AopConfigUtils.forceAutoProxyCreatorToUseClassProxying(registry);
    }
    boolean exposeProxy = Boolean.parseBoolean(sourceElement.getAttribute(EXPOSE_PROXY_ATTRIBUTE));
    if (exposeProxy) {
      AopConfigUtils.forceAutoProxyCreatorToExposeProxy(registry);
    }
  }
}
origin: spring-projects/spring-framework

/**
 * Retrieve the flag for the given property key.
 * @param key the property key
 * @return {@code true} if the property is set to "true",
 * {@code} false otherwise
 */
public static boolean getFlag(String key) {
  return Boolean.parseBoolean(getProperty(key));
}
origin: spring-projects/spring-framework

/**
 * Return the value of the {@code Access-Control-Allow-Credentials} response header.
 */
public boolean getAccessControlAllowCredentials() {
  return Boolean.parseBoolean(getFirst(ACCESS_CONTROL_ALLOW_CREDENTIALS));
}
origin: spring-projects/spring-framework

private boolean isMultiple() throws JspException {
  Object multiple = getMultiple();
  if (multiple != null) {
    String stringValue = multiple.toString();
    return ("multiple".equalsIgnoreCase(stringValue) || Boolean.parseBoolean(stringValue));
  }
  return forceMultiple();
}
origin: spring-projects/spring-framework

/**
 * Apply the XPath expression and assert the resulting content as a Boolean.
 * @throws Exception if content parsing or expression evaluation fails
 */
public void assertBoolean(byte[] content, @Nullable String encoding, boolean expectedValue) throws Exception {
  String actual = evaluateXpath(content, encoding, String.class);
  AssertionErrors.assertEquals("XPath " + this.expression, expectedValue, Boolean.parseBoolean(actual));
}
origin: apache/incubator-dubbo

public boolean getBooleanParameter(String key, boolean defaultValue) {
  String value = getParameter(key);
  if (StringUtils.isEmpty(value)) {
    return defaultValue;
  }
  return Boolean.parseBoolean(value);
}
origin: apache/incubator-dubbo

public boolean getMethodBooleanParameter(String method, String key, boolean defaultValue) {
  String value = getMethodParameter(method, key);
  if (StringUtils.isEmpty(value)) {
    return defaultValue;
  }
  return Boolean.parseBoolean(value);
}
origin: apache/incubator-dubbo

public boolean getMethodParameter(String method, String key, boolean defaultValue) {
  String value = getMethodParameter(method, key);
  if (StringUtils.isEmpty(value)) {
    return defaultValue;
  }
  return Boolean.parseBoolean(value);
}
origin: apache/incubator-dubbo

public boolean getMethodParameter(String method, String key, boolean defaultValue) {
  String value = getMethodParameter(method, key);
  if (StringUtils.isEmpty(value)) {
    return defaultValue;
  }
  return Boolean.parseBoolean(value);
}
origin: apache/incubator-dubbo

public boolean getBooleanParameter(String key) {
  String value = getParameter(key);
  if (StringUtils.isEmpty(value)) {
    return false;
  }
  return Boolean.parseBoolean(value);
}
origin: apache/incubator-dubbo

public boolean getMethodBooleanParameter(String method, String key) {
  String value = getMethodParameter(method, key);
  if (StringUtils.isEmpty(value)) {
    return false;
  }
  return Boolean.parseBoolean(value);
}
origin: apache/incubator-dubbo

public boolean getParameter(String key, boolean defaultValue) {
  String value = getParameter(key);
  if (StringUtils.isEmpty(value)) {
    return defaultValue;
  }
  return Boolean.parseBoolean(value);
}
origin: apache/incubator-dubbo

public boolean getMethodBooleanParameter(String method, String key, boolean defaultValue) {
  String value = getMethodParameter(method, key);
  if (StringUtils.isEmpty(value)) {
    return defaultValue;
  }
  return Boolean.parseBoolean(value);
}
origin: apache/incubator-dubbo

public boolean getBooleanParameter(String key, boolean defaultValue) {
  String value = getParameter(key);
  if (StringUtils.isEmpty(value)) {
    return defaultValue;
  }
  return Boolean.parseBoolean(value);
}
origin: apache/incubator-dubbo

public boolean getParameter(String key, boolean defaultValue) {
  String value = getParameter(key);
  if (StringUtils.isEmpty(value)) {
    return defaultValue;
  }
  return Boolean.parseBoolean(value);
}
origin: apache/incubator-dubbo

public boolean getMethodBooleanParameter(String method, String key) {
  String value = getMethodParameter(method, key);
  if (StringUtils.isEmpty(value)) {
    return false;
  }
  return Boolean.parseBoolean(value);
}
origin: apache/incubator-dubbo

public boolean getBooleanParameter(String key) {
  String value = getParameter(key);
  if (StringUtils.isEmpty(value)) {
    return false;
  }
  return Boolean.parseBoolean(value);
}
java.langBooleanparseBoolean

Javadoc

Parses the specified string as a boolean.

Popular methods of Boolean

  • valueOf
    Returns a Boolean instance representing the specified boolean value. If the specified boolean value
  • booleanValue
    Returns the value of this Boolean object as a boolean primitive.
  • toString
    Returns a String object representing the specified boolean. If the specified boolean is true, then t
  • equals
    Returns true if and only if the argument is not null and is a Boolean object that represents the sam
  • <init>
    Allocates a Boolean object representing the value argument.Note: It is rarely appropriate to use thi
  • getBoolean
    Returns true if and only if the system property named by the argument exists and is equal to the str
  • hashCode
  • compareTo
  • compare
    Compares two boolean values. The value returned is identical to what would be returned by: Boolean.
  • logicalXor
  • logicalAnd
  • logicalOr
  • logicalAnd,
  • logicalOr,
  • toBoolean

Popular in Java

  • Reading from database using SQL prepared statement
  • setContentView (Activity)
  • setScale (BigDecimal)
  • getContentResolver (Context)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • Menu (java.awt)
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now