| Modifier and Type | Method and Description |
|---|---|
| public default void | appendString(Appendable appendable)
Prints a string representation of this collection onto the given |
| public default void | appendString(Appendable appendable, String separator)
Prints a string representation of this collection onto the given |
| public void | appendString(Appendable appendable, String start, String separator, String end)
Prints a string representation of this collection onto the given |
| public default boolean | |
| public default String | Returns: a string representation of this collection.Returns a string representation of this collection by delegating to |
| public default String | Returns: a string representation of this collection.Returns a string representation of this collection by delegating to |
| public default String | Returns: a string representation of this collection.Returns a string representation of this collection with the elements separated by the specified separator and enclosed between the start and end strings. |
| public default boolean | |
| public int | |
| public String | Returns: a string representation of this PrimitiveIterableReturns a string with the elements of this iterable separated by commas with spaces and enclosed in square brackets. |
| appendString | back to summary |
|---|---|
| public default void appendString(Appendable appendable) Prints a string representation of this collection onto the given
| |
| appendString | back to summary |
|---|---|
| public default void appendString(Appendable appendable, String separator) Prints a string representation of this collection onto the given
| |
| appendString | back to summary |
|---|---|
| public void appendString(Appendable appendable, String start, String separator, String end) Prints a string representation of this collection onto the given
| |
| isEmpty | back to summary |
|---|---|
| public default boolean isEmpty() Returns true if this iterable has zero items.
| |
| makeString | back to summary |
|---|---|
| public default String makeString() Returns a string representation of this collection by delegating to
| |
| makeString | back to summary |
|---|---|
| public default String makeString(String separator) Returns a string representation of this collection by delegating to
| |
| makeString | back to summary |
|---|---|
| public default String makeString(String start, String separator, String end) Returns a string representation of this collection with the elements separated by the specified separator and enclosed between the start and end strings.
| |
| notEmpty | back to summary |
|---|---|
| public default boolean notEmpty() The English equivalent of !this.isEmpty()
| |
| size | back to summary |
|---|---|
| public int size() Returns the number of items in this iterable.
| |
| toString | back to summary |
|---|---|
| public String toString() 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());
| |