本文整理汇总了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;
}