java.text.SimpleDateFormat.isLenient()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(1.9k)|赞(0)|评价(0)|浏览(138)

本文整理了Java中java.text.SimpleDateFormat.isLenient()方法的一些代码示例,展示了SimpleDateFormat.isLenient()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。SimpleDateFormat.isLenient()方法的具体详情如下:
包路径:java.text.SimpleDateFormat
类名称:SimpleDateFormat
方法名:isLenient

SimpleDateFormat.isLenient介绍

暂无

代码示例

代码示例来源:origin: org.leapframework/leap-lang

@Override
public synchronized boolean isLenient() {
  return format.isLenient();
}

代码示例来源:origin: org.refcodes/refcodes-date

/**
 * {@inheritDoc}
 * 
 * @deprecated as it is not considered to be thread safe.
 */
@Deprecated
@Override
public boolean isLenient() {
  return super.isLenient();
}

代码示例来源:origin: novoda/notils

public boolean isLenient() {
  return localSimpleDateFormat.get().isLenient();
}

代码示例来源:origin: com.novoda/notils

public boolean isLenient() {
  return localSimpleDateFormat.get().isLenient();
}

代码示例来源:origin: org.tentackle/tentackle-swing

/**
 * Returns the lenient flag for the date format
 * @return true if lenient
 */
public boolean isLenient() {
 lenient = getDateFormat().isLenient();
 return lenient;
}

代码示例来源:origin: org.tentackle/tentackle-swing

/**
 * Sets the "lenient" flag for the date format.
 *
 * @param lenient true if lenient
 * @see SimpleDateFormat
 */
public void setLenient(boolean lenient) {
 getDateFormat().setLenient(lenient);
 this.lenient = dateFormat.isLenient();
}

代码示例来源:origin: org.fudaa.framework.ctulu/ctulu-gis

private Date parse(final String _s, final Collection _formatters) throws ParseException {
 ParseException firstParseException = null;
 for (final Iterator i = _formatters.iterator(); i.hasNext();) {
  final SimpleDateFormat formatter = (SimpleDateFormat) i.next();
  if (verbose_) {
   System.out.println(_s + " -- " + formatter.toPattern() + (formatter.isLenient() ? "lenient" : ""));
  }
  try {
   return parse(_s, formatter);
  } catch (final ParseException e) {
   if (firstParseException == null) {
    firstParseException = e;
   }
  }
 }
 throw firstParseException;
}

代码示例来源:origin: org.apidesign.bck2brwsr/emul

if (!isLenient()) {
if (!isLenient()) {

代码示例来源:origin: jtulach/bck2brwsr

if (!isLenient()) {
if (!isLenient()) {

相关文章

SimpleDateFormat类方法