Method max(long a, long b)
Return type: long
Member of: java.lang.Math
[api documentation ] [ main menu]

Examples of how the element is used (one line per example):
[add your own example]

1 this.runner.sleep(Math.max(0L, l - System.currentTimeMillis()));
2 idBaseValue = Math.max(1L, idBaseValue); // 0 and 1 are reserved for root nodes
3 sleepDuration = Math.max(sleepDuration, 1000);
4 changeStamp = Math.max(computeFeaturesChangeStamp(), computePluginsChangeStamp());
5 return log10(Math.max(min, max));
6 Thread.sleep(Math.max(0, currentTime - System.currentTimeMillis()));
7 latest_time = Math.max(latest_time, TaskUtils.getRefillTime(task));
8 delay = Math.max(delay, minDelay);
9 height = Math.max(height, d.height);
10 lastChange = Math.max(lastChange, dbmap.getLastTypeChange());
11 m_nextId = Math.max(m_nextId, archives[i].getId() + 1);
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.