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

How to use
booleanValue
method
in
java.lang.Boolean

Best Java code snippets using java.lang.Boolean.booleanValue (Showing top 20 results out of 44,046)

origin: spring-projects/spring-framework

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

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

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

  @Override
  public Object decode(Object jv) {
    if (jv instanceof Boolean) {
      return ((Boolean) jv).booleanValue();
    }
    return false;
  }
};
origin: apache/incubator-dubbo

  @Override
  public Object decode(Object jv) {
    if (jv instanceof Boolean) {
      return ((Boolean) jv).booleanValue();
    }
    return false;
  }
};
origin: apache/incubator-dubbo

public static boolean unboxed(Boolean v) {
  return v == null ? false : v.booleanValue();
}
origin: apache/incubator-dubbo

public static boolean unboxed(Boolean v) {
  return v == null ? false : v.booleanValue();
}
origin: org.apache.commons/commons-lang3

/**
 * 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();
}
origin: org.apache.commons/commons-lang3

/**
 * 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();
}
origin: prestodb/presto

protected boolean _useTimestampExplicitOnly(SerializerProvider provider) {
  if (_useTimestamp != null) {
    return _useTimestamp.booleanValue();
  }
  return false;
}
origin: apache/incubator-dubbo

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

/**
 * 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;
}
origin: shuzheng/zheng

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

/**
 * 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();
  }
}
origin: alibaba/druid

@Override
public boolean getBoolean(int columnIndex) throws SQLException {
  Object obj = getObject(columnIndex);
  if (obj == null) {
    return false;
  }
  return ((Boolean) obj).booleanValue();
}
origin: spring-projects/spring-framework

public boolean getBooleanProperty(String name) throws JMSException {
  Object value = this.properties.get(name);
  return (value instanceof Boolean) ? ((Boolean) value).booleanValue() : false;
}
origin: spring-projects/spring-framework

/**
 * 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());
}
origin: alibaba/druid

public void postVisit(SQLObject x) {
  if (x instanceof SQLStatement) {
    SQLStatement stmt = (SQLStatement) x;
    boolean printSemi = printStatementAfterSemi == null
        ? stmt.isAfterSemi()
        : printStatementAfterSemi.booleanValue();
    if (printSemi) {
      print(';');
    }
  }
}
origin: alibaba/fastjson

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");
  }
}
origin: google/guava

 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));
 }
}
java.langBooleanbooleanValue

Javadoc

Gets the primitive value of this boolean, either true or false.

Popular methods of Boolean

  • valueOf
    Returns a Boolean instance representing the specified boolean value. If the specified boolean value
  • parseBoolean
    Parses the string argument as a boolean. The booleanreturned represents the value true if the string
  • 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

  • Updating database using SQL prepared statement
  • getSupportFragmentManager (FragmentActivity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getContentResolver (Context)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Top PhpStorm 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