@Test public void testMakeShape() { Dimension dim1 = new Dimension("dim1", 5); Dimension dim2 = new Dimension("dim2", 6); Dimension dim3 = new Dimension("dim3", 7); assertThat(Dimensions.makeShape(ImmutableList.of(dim1, dim2, dim3))).isEqualTo(new int[] {5, 6, 7}); }
public static int[] makeShape(Iterable<Dimension> dimensions) { return makeSectionFromDimensions(dimensions).build().getShape(); }
Dimensions { public static int[] makeShape(Iterable<Dimension> dimensions) { return makeSectionFromDimensions(dimensions).build().getShape(); } }
Dimensions { public static int[] makeShape(Iterable<Dimension> dimensions) { return makeSectionFromDimensions(dimensions).build().getShape(); } private  Dimensions(); }
Dimensions { public static int[] makeShape(Iterable<Dimension> dimensions) { return makeSectionFromDimensions(dimensions).build().getShape(); } private  Dimensions(); static ucar.ma2.Section.Builder makeSectionFromDimensions(Iterable<Dimension> dimensions); static long getSize(Iterable<Dimension> dimensions); static int[] makeShapeAll(Variable v); static int[] makeShape(Iterable<Dimension> dimensions); static String makeDimensionsString(List<Dimension> dimensions); static ImmutableList<Dimension> makeDimensionsList(FindDimensionByName finder, String dimString); static ImmutableList<Dimension> makeDimensionsAnon(int[] shape); static ImmutableList<Dimension> makeDimensionsAll(Variable v); }
Dimensions { public static int[] makeShape(Iterable<Dimension> dimensions) { return makeSectionFromDimensions(dimensions).build().getShape(); } private  Dimensions(); static ucar.ma2.Section.Builder makeSectionFromDimensions(Iterable<Dimension> dimensions); static long getSize(Iterable<Dimension> dimensions); static int[] makeShapeAll(Variable v); static int[] makeShape(Iterable<Dimension> dimensions); static String makeDimensionsString(List<Dimension> dimensions); static ImmutableList<Dimension> makeDimensionsList(FindDimensionByName finder, String dimString); static ImmutableList<Dimension> makeDimensionsAnon(int[] shape); static ImmutableList<Dimension> makeDimensionsAll(Variable v);  }