Class AbstractLongIterable

    • Constructor Detail

      • AbstractLongIterable

        public AbstractLongIterable()
    • Method Detail

      • toString

        public java.lang.String toString()
        Description copied from interface: PrimitiveIterable
        Returns a string with the elements of this iterable separated by commas with spaces and enclosed in square brackets.
         Assert.assertEquals("[]", IntLists.mutable.empty().toString());
         Assert.assertEquals("[1]", IntLists.mutable.with(1).toString());
         Assert.assertEquals("[1, 2, 3]", IntLists.mutable.with(1, 2, 3).toString());
         
        Specified by:
        toString in interface PrimitiveIterable
        Overrides:
        toString in class java.lang.Object
        Returns:
        a string representation of this PrimitiveIterable
        See Also:
        AbstractCollection.toString()
      • minIfEmpty

        public long minIfEmpty​(long defaultValue)
        Specified by:
        minIfEmpty in interface LongIterable
      • maxIfEmpty

        public long maxIfEmpty​(long defaultValue)
        Specified by:
        maxIfEmpty in interface LongIterable