本文整理匯總了Java中be.kuleuven.cs.som.annotate.Immutable類的典型用法代碼示例。如果您正苦於以下問題:Java Immutable類的具體用法?Java Immutable怎麽用?Java Immutable使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
Immutable類屬於be.kuleuven.cs.som.annotate包,在下文中一共展示了Immutable類的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: getValues
import be.kuleuven.cs.som.annotate.Immutable; //導入依賴的package包/類
@Basic @Immutable
public double[][] getValues() {
/*double[] v = new double[getRows() * getColumns()];
for(int i = 0; i < getRows(); i++) {
System.arraycopy(getElements()[i], 0, v, getColumns() * i, getColumns());
}*/
return this.elements;
}
示例2: getValue
import be.kuleuven.cs.som.annotate.Immutable; //導入依賴的package包/類
/**
* The value of this node.
* @return the value of this node.
*/
@Basic @Immutable
public E getValue() {
return this.value;
}
示例3: getParent
import be.kuleuven.cs.som.annotate.Immutable; //導入依賴的package包/類
/**
*
* @return the parent of this node.
*/
@Immutable @Basic
public DoublyLinkedListNode getParent() {
return this.parent;
}
示例4: getRows
import be.kuleuven.cs.som.annotate.Immutable; //導入依賴的package包/類
@Override
@Basic @Immutable
public int getRows() {
return rows;
}
示例5: getColumns
import be.kuleuven.cs.som.annotate.Immutable; //導入依賴的package包/類
@Override
@Basic @Immutable
public int getColumns() {
return columns;
}
示例6: getElements
import be.kuleuven.cs.som.annotate.Immutable; //導入依賴的package包/類
@Override
@Basic @Immutable
public double[][] getElements() {
return elements.clone();
}
示例7: getX
import be.kuleuven.cs.som.annotate.Immutable; //導入依賴的package包/類
/**
* @return the X coordinate of this point.
*/
@Basic @Immutable
public double getX() {
return this.x;
}
示例8: getY
import be.kuleuven.cs.som.annotate.Immutable; //導入依賴的package包/類
/**
* @return the Y coordinate of this point.
*/
@Basic @Immutable
public double getY() {
return this.y;
}
示例9: getZ
import be.kuleuven.cs.som.annotate.Immutable; //導入依賴的package包/類
/**
* @return the Y coordinate of this point.
*/
@Basic @Immutable
public double getZ() {
return this.z;
}