Class ListImg<T>

    • Field Detail

      • pixels

        private final java.util.List<T> pixels
      • type

        private final T type
    • Constructor Detail

      • ListImg

        public ListImg​(long[] dim,
                       T type)
      • ListImg

        public ListImg​(T type,
                       java.util.Collection<T> collection,
                       long... dim)
      • ListImg

        public ListImg​(java.util.Collection<T> collection,
                       long... dim)
      • ListImg

        private ListImg​(java.util.List<T> pixels,
                        boolean dummy,
                        long... dim)
    • Method Detail

      • getType

        public T getType()
        Description copied from interface: Typed
        Get an instance of T.

        It should not be assumed that the returned T instance is an independent copy. In particular, repeated calls to getType() may return the same instance.

        Returns:
        an instance of T
      • copyWithType

        private static <A extends Type<A>> ListImg<A> copyWithType​(ListImg<A> img)
      • copy

        public ListImg<T> copy()
        Returns:
        - A copy of the current Img instance, all pixels are duplicated
      • wrap

        public static <T> ListImg<T> wrap​(java.util.List<T> pixels,
                                          long... dim)