List of usage examples for java.lang Integer MAX_VALUE
int MAX_VALUE
To view the source code for java.lang Integer MAX_VALUE.
Click Source Link
From source file:io.servicecomb.swagger.generator.pojo.PojoSwaggerGeneratorContext.java
@Override public int getOrder() { return Integer.MAX_VALUE; }
From source file:com.microsoft.office365.meetingmgr.HttpHelper.java
public <TResult> List<TResult> getItems(String uri, int count, Class<TResult> clazz) { PagedResult<TResult> res = doGetItems(uri, count, Integer.MAX_VALUE, clazz); return res.list; }
From source file:com.p5solutions.core.utils.NumberUtils.java
public static boolean isInteger(String value) { if (isNatural(value)) { Long v = NumberUtils.valueOf(value.toString(), Long.class); if (v >= Integer.MIN_VALUE && v <= Integer.MAX_VALUE) { return true; }/*from w w w . ja va 2 s . c o m*/ } return false; }
From source file:it.crs4.seal.recab.HashSetVariantTable.java
public boolean isVariantLocation(String chr, long pos) { if (pos > Integer.MAX_VALUE) throw new RuntimeException("pos bigger than expected! File a bug!!"); Set<Integer> s = data.get(chr); if (s != null) return s.contains((int) pos); return false; }
From source file:edu.cornell.mannlib.vitro.webapp.utils.MakeTidy.java
public String process(String value) { Tidy tidy = new Tidy(); // obtain a new Tidy instance // set desired config options using tidy setters: see http://jtidy.sourceforge.net/apidocs/index.html tidy.setAsciiChars(true); // convert quotes and dashes to nearest ASCII character tidy.setDropEmptyParas(true); // discard empty p elements tidy.setDropFontTags(true); // discard presentation tags tidy.setDropProprietaryAttributes(true); // discard proprietary attributes tidy.setForceOutput(true); // output document even if errors were found tidy.setLogicalEmphasis(true); // replace i by em and b by strong tidy.setMakeBare(true); // remove Microsoft cruft tidy.setMakeClean(true); // remove presentational clutter tidy.setPrintBodyOnly(true); // output BODY content only tidy.setShowWarnings(true); // show warnings tidy.setTidyMark(true); // add meta element indicating tidied doc tidy.setTrimEmptyElements(true); // trim empty elements tidy.setWord2000(true); // draconian cleaning for Word 2000 tidy.setXHTML(true); // output extensible HTML tidy.setErrout(outFile);/*from w w w. j a v a 2s.co m*/ tidy.setShowErrors(Integer.MAX_VALUE); outFile.println("\nInput:\n" + value + "\n"); StringWriter sw = new StringWriter(); /* Node rootNode = */tidy.parse(new StringReader(value), sw); String outputStr = sw.toString(); log.debug("\nTidied Output:\n" + outputStr + "\n"); return outputStr; }
From source file:com.nts.alphamale.data.EventLog.java
public EventLog(Matcher m) { cpuTimestamp = Double.valueOf(m.group(1)); curTimeStamp = System.currentTimeMillis(); deviceName = m.group(2);/*from w ww . j a va2 s .com*/ evSynOrAbs = m.group(3); absLabel = m.group(4); try { absValue = !m.group(5).equals("ffffffff") ? Integer.valueOf(m.group(5), 16) : Integer.MAX_VALUE; } catch (NumberFormatException e) { if (m.group(5).equalsIgnoreCase("down")) { absValue = Integer.MIN_VALUE; } if (m.group(5).equalsIgnoreCase("up")) { absValue = Integer.MAX_VALUE; } } }
From source file:com.app.jdy.adapter.ImagePagerAdapter.java
@Override public int getCount() { // Infinite loop return isInfiniteLoop ? Integer.MAX_VALUE : imageIdList.size(); }
From source file:ru.trett.cis.rest.EmployeeAPI.java
@RequestMapping(value = "/search", method = RequestMethod.GET) public List<Employee> search(@RequestParam("name") String name) { TableSearchResultsDTO<Employee> tableSearchResultsDTO = inventoryService.searchTable(Employee.class, new String[] { "firstName", "lastName" }, name, 0, Integer.MAX_VALUE); return tableSearchResultsDTO.getData(); }
From source file:edu.berkeley.compbio.sequtils.sequencereader.RandomSectionList.java
public SequenceFragmentMetadata nextShuffled()//throws IOException, NotEnoughSequenceException { return new SequenceFragmentMetadata(null, randomName(), null, MersenneTwisterFast.randomInt(Integer.MAX_VALUE)); }
From source file:geogebra.common.kernel.statistics.AlgoInversePoisson.java
@Override public final void compute() { if (input[0].isDefined() && input[1].isDefined()) { double param = a.getDouble(); double val = b.getDouble(); try {/* w w w . j a va 2 s.c o m*/ PoissonDistribution dist = getPoissonDistribution(param); double result = dist.inverseCumulativeProbability(val); // eg InversePascal[1,1,1] returns 2147483647 if (result >= Integer.MAX_VALUE) num.setUndefined(); else num.setValue(result + 1); } catch (Exception e) { num.setUndefined(); } } else num.setUndefined(); }