DimKey { public Dimension getDimensionX() { return getDimension(xDimIndex); } DimKey(Dimension... dims); int findXDimensionIndex(); int findYDimensionIndex(); static int findStartIndexOfBandVariables(List<Dimension> dimensions); int getRank(); Dimension getDimensionX(); Dimension getDimensionY(); Dimension getDimension(int index); boolean isTypicalRasterDim(); boolean fitsTo(final Variable varX, final Variable varY); @Override boolean equals(Object o); @Override int hashCode();  }
@Test public void testGetDimensionX() throws Exception { final Dimension yDim = new Dimension("y", 256); final Dimension xDim = new Dimension("x", 512); assertSame(xDim, new DimKey(yDim, xDim).getDimensionX()); }