org.apache.wicket.util.time.Time.after()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(3.9k)|赞(0)|评价(0)|浏览(108)

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

Time.after介绍

暂无

代码示例

代码示例来源:origin: org.apache.wicket/wicket-core

protected Time findLastModified(List<IResourceStream> resources)
{
  Time ret = null;
  for (IResourceStream curStream : resources)
  {
    Time curLastModified = curStream.lastModifiedTime();
    if (ret == null || curLastModified.after(ret))
      ret = curLastModified;
  }
  return ret;
}

代码示例来源:origin: apache/wicket

protected Time findLastModified(List<IResourceStream> resources)
{
  Time ret = null;
  for (IResourceStream curStream : resources)
  {
    Time curLastModified = curStream.lastModifiedTime();
    if (ret == null || curLastModified.after(ret))
      ret = curLastModified;
  }
  return ret;
}

代码示例来源:origin: org.ops4j.pax.wicket/pax-wicket-service

public void run(final Logger log)
  {
    final Iterator<Entry> itor = modifiableToEntry.values().iterator();
    while (itor.hasNext())
    {
      final Entry entry = itor.next();
      // If the modifiable has been modified after the last known
      // modification time
      final Time modifiableLastModified = entry.modifiable.lastModifiedTime();
      if ((modifiableLastModified != null) &&
        modifiableLastModified.after(entry.lastModifiedTime))
      {
        // Notify all listeners that the modifiable was modified
        entry.listeners.notifyListeners();
        // Update timestamp
        entry.lastModifiedTime = modifiableLastModified;
      }
    }
  }
});

代码示例来源:origin: org.apache.wicket/wicket-util

/**
 * Determines if this <code>TimeFrame</code> contains a given point in time.
 * 
 * @param time
 *            the <code>Time</code> to check
 * @return <code>true</code> if this <code>TimeFrame</code> contains the given time
 */
public boolean contains(final Time time)
{
  return (start.equals(time) || start.before(time)) && end.after(time);
}

代码示例来源:origin: org.apache.wicket/com.springsource.org.apache.wicket

public void run(final Logger log)
  {
    // Iterate over a copy of the list of entries to avoid
    // concurrent
    // modification problems without the associated liveness issues
    // of holding a lock while potentially polling file times!
    for (final Iterator iterator = new ArrayList(modifiableToEntry.values()).iterator(); iterator
      .hasNext();)
    {
      // Get next entry
      final Entry entry = (Entry)iterator.next();
      // If the modifiable has been modified after the last known
      // modification time
      final Time modifiableLastModified = entry.modifiable.lastModifiedTime();
      if (modifiableLastModified.after(entry.lastModifiedTime))
      {
        // Notify all listeners that the modifiable was modified
        entry.listeners.notifyListeners();
        // Update timestamp
        entry.lastModifiedTime = modifiableLastModified;
      }
    }
  }
});

代码示例来源:origin: org.ops4j.pax.wicket/pax-wicket-service

/**
 * Determines if this <code>TimeFrame</code> contains a given point in time.
 * 
 * @param time
 *            the <code>Time</code> to check
 * @return <code>true</code> if this <code>TimeFrame</code> contains the given time
 */
public boolean contains(final Time time)
{
  return (start.equals(time) || start.before(time)) && end.after(time);
}

代码示例来源:origin: org.apache.wicket/com.springsource.org.apache.wicket

/**
 * Determines if this <code>TimeFrame</code> contains a given point in time.
 * 
 * @param time
 *            the <code>Time</code> to check
 * @return <code>true</code> if this <code>TimeFrame</code> contains the given time
 */
public boolean contains(final Time time)
{
  return (start.equals(time) || start.before(time)) && end.after(time);
}

代码示例来源:origin: org.apache.wicket/wicket-util

/**
 * Checks which IModifiables were modified and notifies their listeners
 */
protected void checkModified()
{
  for (Entry entry : modifiableToEntry.values())
  {
    // If the modifiable has been modified after the last known
    // modification time
    final Time modifiableLastModified = entry.modifiable.lastModifiedTime();
    if ((modifiableLastModified != null) &&
        modifiableLastModified.after(entry.lastModifiedTime))
    {
      // Notify all listeners that the modifiable was modified
      entry.listeners.notifyListeners(entry.modifiable);
      // Update timestamp
      entry.lastModifiedTime = modifiableLastModified;
    }
  }
}

相关文章