Lines Matching refs:size
65 * held, the type and validity of the lock, and the position and size of the
109 * whole multiple of the underlying hardware's page size. Some network
124 private final long size;
137 * @param size
138 * The size of the locked region; must be non-negative, and the sum
139 * {@code position} + {@code size} must be non-negative
149 long position, long size, boolean shared)
154 if (size < 0)
155 throw new IllegalArgumentException("Negative size");
156 if (position + size < 0)
157 throw new IllegalArgumentException("Negative position + size");
160 this.size = size;
174 * @param size
175 * The size of the locked region; must be non-negative, and the sum
176 * {@code position} + {@code size} must be non-negative
188 long position, long size, boolean shared)
193 if (size < 0)
194 throw new IllegalArgumentException("Negative size");
195 if (position + size < 0)
196 throw new IllegalArgumentException("Negative position + size");
199 this.size = size;
233 * the file's current size. </p>
242 * Returns the size of the locked region in bytes.
246 * the file's current size. </p>
248 * @return The size of the locked region
250 public final long size() {
251 return size;
269 * @param size
270 * The size of the lock range
275 public final boolean overlaps(long position, long size) {
276 if (position + size <= this.position)
278 if (this.position + this.size <= position)
328 + ":" + size