Tabnine Logo
MetadataList.sizes
Code IndexAdd Tabnine to your IDE (free)

How to use
sizes
method
in
loci.formats.MetadataList

Best Java code snippets using loci.formats.MetadataList.sizes (Showing top 2 results out of 315)

origin: openmicroscopy/bioformats

@Test(dataProvider = "itemlist")
public void testCountsSized(int[][] data, int[] expected) {
 MetadataList<Elem> list = new MetadataList<>(expected);
 assertArrayEquals(expected, list.sizes());
 for (int i = 0; i < data.length; i++) {
  for (int j = 0; j < data[i].length; j++) {
   Elem e = new Elem();
   e.value = data[i][j];
   list.set(i, j, e);
  }
 }
 checkContainerSize(list, expected);
 checkContainer(list, data);
}
origin: openmicroscopy/bioformats

private void checkContainerSize(MetadataList<Elem> list, int[] size) {
 assertEquals(size.length, list.size());
 assertArrayEquals(size, list.sizes());
 for (int i = 0; i < size.length; i++) {
  assertEquals(size[i], list.size(i));
 }
}
loci.formatsMetadataListsizes

Javadoc

Get the sizes of all primary array elements.

Popular methods of MetadataList

  • add
    Add a new primary element containing the specified values.
  • get
    Get the array element for the specified indexes.
  • size
    Get the size of the specified primary array element (number of secondary array elements).
  • <init>
    Construct a list containing a specified number of primary and secondary elements. This may be used t
  • clear
    Clear the specified primary array element.
  • set
    Set the array element for the specified indexes.

Popular in Java

  • Running tasks concurrently on multiple threads
  • getSystemService (Context)
  • compareTo (BigDecimal)
  • notifyDataSetChanged (ArrayAdapter)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • JLabel (javax.swing)
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now