Lines Matching defs:position
65 * held, the type and validity of the lock, and the position and size of the
111 * certain position, often 2<sup>30</sup> or 2<sup>31</sup>. In general, great
123 private final long position;
133 * @param position
134 * The position within the file at which the locked region starts;
139 * {@code position} + {@code size} must be non-negative
149 long position, long size, boolean shared)
152 if (position < 0)
153 throw new IllegalArgumentException("Negative position");
156 if (position + size < 0)
157 throw new IllegalArgumentException("Negative position + size");
159 this.position = position;
170 * @param position
171 * The position within the file at which the locked region starts;
176 * {@code position} + {@code size} must be non-negative
188 long position, long size, boolean shared)
191 if (position < 0)
192 throw new IllegalArgumentException("Negative position");
195 if (position + size < 0)
196 throw new IllegalArgumentException("Negative position + size");
198 this.position = position;
228 * Returns the position within the file of the first byte of the locked
235 * @return The position
237 public final long position() {
238 return position;
267 * @param position
268 * The starting position 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)
327 + "[" + position