List of usage examples for java.lang Long MAX_VALUE
long MAX_VALUE
To view the source code for java.lang Long MAX_VALUE.
Click Source Link
From source file:SimpleLongIdGenerator.java
/** * Creates a new cycled id generator with specified initial value. *///from ww w . j a va 2s. c o m public SimpleLongIdGenerator(long initialValue) { this(initialValue, Long.MAX_VALUE, true); }
From source file:Main.java
public Main(String localPath, String remoteURL) { FileOutputStream fos;/*from w ww .ja v a 2s.c o m*/ ReadableByteChannel rbc; URL url; try { url = new URL(remoteURL); rbc = new CallbackByteChannel(Channels.newChannel(url.openStream()), contentLength(url), this); fos = new FileOutputStream(localPath); fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE); } catch (Exception e) { e.printStackTrace(); } }
From source file:edu.infsci2560.models.Product.java
public Product() { this.id = Long.MAX_VALUE; this.productName = null; }
From source file:edu.infsci2560.models.Sales.java
public Sales() { this.id = Long.MAX_VALUE; this.name = null; this.time = null; }
From source file:edu.infsci2560.models.Community.java
public Community() { this.id = Long.MAX_VALUE; this.communityName = null; }
From source file:edu.infsci2560.models.Department.java
public Department() { this.id = Long.MAX_VALUE; this.departmentName = null; }
From source file:edu.infsci2560.models.Food.java
public Food() { this.id = Long.MAX_VALUE; this.title = null; this.cookingStyle = CookingStyle.Others; }
From source file:edu.infsci2560.models.DocumentCategory.java
public DocumentCategory() { this.id = Long.MAX_VALUE; this.categoryName = null; }
From source file:UUIDGenerator.java
/** * MD5 a random string with localhost/date etc will return 128 bits construct a string of 18 * characters from those bits.//w w w . java 2 s .c om * * @return string */ public static String getUUID() { if (baseUUID == null) { baseUUID = getInitialUUID(); baseUUID = "urn:uuid:" + baseUUID; } if (++incrementingValue >= Long.MAX_VALUE) { incrementingValue = 0; } if (useNano) { return baseUUID + (System.nanoTime() + incrementingValue) + Integer.toString(myRand.nextInt()); } else { return baseUUID + (System.currentTimeMillis() + incrementingValue + Integer.toString(myRand.nextInt())); } }
From source file:edu.infsci2560.models.Transaction.java
public Transaction() { this.id = Long.MAX_VALUE; this.time = null; this.carId = null; this.price = null; }