public CoordinateAxis copyNoCache ( ) { CoordinateAxis axis = new CoordinateAxis ( ncd , getParentGroup ( ) , getShortName ( ) , getDataType ( ) , getDimensionsString ( ) , getUnitsString ( ) , getDescription ( ) ) ; // other state axis . axisType = this . axisType ; axis . boundaryRef = this . boundaryRef ; axis . isContiguous = this . isContiguous ; axis . positive = this . positive ; axis . cache = new Variable . Cache ( ) ; // decouple cache return axis ; }
Make a copy with an independent cache .