* <br/>
* PARSE_ALLOW_NUMERIC - indicates tolerance of numeric data when String data may be assumed. eg: YEAR_NAME_FIELD
*
- * @internal ICU 5.2 technology preview
+ * @internal ICU technology preview
*/
public enum BooleanAttribute {
- /** indicates whitespace tolerance. Also included is trailing dot tolerance. */
+ /**
+ * indicates whitespace tolerance. Also included is trailing dot tolerance.
+ * @internal ICU technology preview
+ */
PARSE_ALLOW_WHITESPACE,
- /** indicates tolerance of numeric data when String data may be assumed. eg: YEAR_NAME_FIELD */
+ /**
+ * indicates tolerance of numeric data when String data may be assumed. eg: YEAR_NAME_FIELD
+ * @internal ICU technology preview
+ */
PARSE_ALLOW_NUMERIC
};
* boolean attributes.
*
* @see BooleanAttribute
- * @internal ICU 5.2 technology preview
+ * @internal ICU technology preview
*/
public DateFormat setBooleanAttribute(BooleanAttribute key, boolean value)
{
* if attribute is missing false is returned.
*
* @see BooleanAttribute
- * @internal ICU 5.2 technology preview
+ * @internal ICU technology preview
*/
public boolean getBooleanAttribute(BooleanAttribute key)
{
- if(booleanAttributes.contains(key))
- return true;
- else
- return false;
+ return booleanAttributes.contains(key);
}