/** * Returns the matrix cell value at coordinate <tt>index</tt>. * * <p>Provided with invalid parameters this method may return invalid objects without throwing any exception. * <b>You should only use this method when you are absolutely sure that the coordinate is within bounds.</b> * Precondition (unchecked): <tt>index<0 || index>=size()</tt>. * * @param index the index of the cell. * @return the value of the specified cell. */ public Object getQuick(int index) { //if (debug) if (index<0 || index>=size) checkIndex(index); //return elements.get(index(index)); //manually inlined: return elements.get(offset + offsets[zero + index*stride]); } /**
/** * Returns the matrix cell value at coordinate <tt>index</tt>. * * <p>Provided with invalid parameters this method may return invalid objects without throwing any exception. * <b>You should only use this method when you are absolutely sure that the coordinate is within bounds.</b> * Precondition (unchecked): <tt>index<0 || index>=size()</tt>. * * @param index the index of the cell. * @return the value of the specified cell. */ public Object getQuick(int index) { //if (debug) if (index<0 || index>=size) checkIndex(index); //return this.elements.get(index(index)); // manually inlined: return elements.get(zero + index*stride); } /**
/** * Returns the matrix cell value at coordinate <tt>index</tt>. * * <p>Provided with invalid parameters this method may return invalid objects without throwing any exception. * <b>You should only use this method when you are absolutely sure that the coordinate is within bounds.</b> * Precondition (unchecked): <tt>index<0 || index>=size()</tt>. * * @param index the index of the cell. * @return the value of the specified cell. */ public Object getQuick(int index) { //if (debug) if (index<0 || index>=size) checkIndex(index); //return elements.get(index(index)); //manually inlined: return elements.get(offset + offsets[zero + index*stride]); } /**
/** * Returns the matrix cell value at coordinate <tt>[row,column]</tt>. * * <p>Provided with invalid parameters this method may return invalid objects without throwing any exception. * <b>You should only use this method when you are absolutely sure that the coordinate is within bounds.</b> * Precondition (unchecked): <tt>0 <= column < columns() && 0 <= row < rows()</tt>. * * @param row the index of the row-coordinate. * @param column the index of the column-coordinate. * @return the value at the specified coordinate. */ public Object getQuick(int row, int column) { //if (debug) if (column<0 || column>=columns || row<0 || row>=rows) throw new IndexOutOfBoundsException("row:"+row+", column:"+column); //return this.elements.get(index(row,column)); //manually inlined: return this.elements.get(rowZero + row*rowStride + columnZero + column*columnStride); } /**
/** * Returns the matrix cell value at coordinate <tt>[slice,row,column]</tt>. * * <p>Provided with invalid parameters this method may return invalid objects without throwing any exception. * <b>You should only use this method when you are absolutely sure that the coordinate is within bounds.</b> * Precondition (unchecked): <tt>slice<0 || slice>=slices() || row<0 || row>=rows() || column<0 || column>=column()</tt>. * * @param slice the index of the slice-coordinate. * @param row the index of the row-coordinate. * @param column the index of the column-coordinate. * @return the value at the specified coordinate. */ public Object getQuick(int slice, int row, int column) { //if (debug) if (slice<0 || slice>=slices || row<0 || row>=rows || column<0 || column>=columns) throw new IndexOutOfBoundsException("slice:"+slice+", row:"+row+", column:"+column); //return elements.get(index(slice,row,column)); //manually inlined: return elements.get(offset + sliceOffsets[sliceZero + slice*sliceStride] + rowOffsets[rowZero + row*rowStride] + columnOffsets[columnZero + column*columnStride]); } /**
/** * Returns the matrix cell value at coordinate <tt>index</tt>. * * <p>Provided with invalid parameters this method may return invalid objects without throwing any exception. * <b>You should only use this method when you are absolutely sure that the coordinate is within bounds.</b> * Precondition (unchecked): <tt>index<0 || index>=size()</tt>. * * @param index the index of the cell. * @return the value of the specified cell. */ public Object getQuick(int index) { //if (debug) if (index<0 || index>=size) checkIndex(index); //return this.elements.get(index(index)); // manually inlined: return elements.get(zero + index*stride); } /**
/** * Returns the matrix cell value at coordinate <tt>[row,column]</tt>. * * <p>Provided with invalid parameters this method may return invalid objects without throwing any exception. * <b>You should only use this method when you are absolutely sure that the coordinate is within bounds.</b> * Precondition (unchecked): <tt>0 <= column < columns() && 0 <= row < rows()</tt>. * * @param row the index of the row-coordinate. * @param column the index of the column-coordinate. * @return the value at the specified coordinate. */ public Object getQuick(int row, int column) { //if (debug) if (column<0 || column>=columns || row<0 || row>=rows) throw new IndexOutOfBoundsException("row:"+row+", column:"+column); //return this.elements.get(index(row,column)); //manually inlined: return this.elements.get(rowZero + row*rowStride + columnZero + column*columnStride); } /**
/** * Returns the matrix cell value at coordinate <tt>[row,column]</tt>. * * <p>Provided with invalid parameters this method may return invalid objects without throwing any exception. * <b>You should only use this method when you are absolutely sure that the coordinate is within bounds.</b> * Precondition (unchecked): <tt>0 <= column < columns() && 0 <= row < rows()</tt>. * * @param row the index of the row-coordinate. * @param column the index of the column-coordinate. * @return the value at the specified coordinate. */ public Object getQuick(int row, int column) { //if (debug) if (column<0 || column>=columns || row<0 || row>=rows) throw new IndexOutOfBoundsException("row:"+row+", column:"+column); //return elements.get(index(row,column)); //manually inlined: return elements.get(offset + rowOffsets[rowZero + row*rowStride] + columnOffsets[columnZero + column*columnStride]); } /**
public boolean apply(int key) { list.add(get(key)); return true; } }
public boolean apply(int key) { list.add(get(key)); return true; } }
public boolean apply(int key, Object value) { return other.containsKey(key) && other.get(key) == value; } }) && other.forEachPair(new IntObjectProcedure() {
public boolean apply(int key, Object value) { return containsKey(key) && get(key) == value; } });
public boolean apply(int key, Object value) { return other.containsKey(key) && other.get(key) == value; } }
public boolean apply(int key) { return procedure.apply(key,get(key)); } }
public boolean apply(int key) { list.add(get(key)); return true; } });
public boolean apply(int key) { return procedure.apply(key,get(key)); } }
public boolean apply(int key) { return procedure.apply(key, get(key)); } });
public boolean apply(int key, Object value) { return containsKey(key) && get(key) == value; } }
public boolean apply(int key, Object value) { return other.containsKey(key) && other.get(key) == value; } }
public boolean apply(int key, Object value) { return containsKey(key) && get(key) == value; } }