public interface PrimitiveIterable
| Modifier and Type | Method and Description |
|---|---|
void |
appendString(Appendable appendable)
Prints a string representation of this collection onto the given
Appendable. |
void |
appendString(Appendable appendable,
String separator)
Prints a string representation of this collection onto the given
Appendable. |
void |
appendString(Appendable appendable,
String start,
String separator,
String end)
Prints a string representation of this collection onto the given
Appendable. |
boolean |
isEmpty()
Returns true if this iterable has zero items.
|
String |
makeString()
Returns a string representation of this collection by delegating to
makeString(String) and defaulting
the separator parameter to the characters ", " (comma and space). |
String |
makeString(String separator)
Returns a string representation of this collection by delegating to
makeString(String, String, String)
and defaulting the start and end parameters to "" (the empty String). |
String |
makeString(String start,
String separator,
String end)
Returns a string representation of this collection.
|
boolean |
notEmpty()
The English equivalent of !this.isEmpty()
|
int |
size()
Returns the number of items in this iterable.
|
String |
toString()
Returns a string representation of this PrimitiveIterable.
|
int size()
boolean isEmpty()
boolean notEmpty()
String toString()
String makeString()
makeString(String) and defaulting
the separator parameter to the characters ", " (comma and space).String makeString(String separator)
makeString(String, String, String)
and defaulting the start and end parameters to "" (the empty String).String makeString(String start, String separator, String end)
void appendString(Appendable appendable)
Appendable. Prints the string returned
by makeString().void appendString(Appendable appendable, String separator)
Appendable. Prints the string returned
by makeString(String).void appendString(Appendable appendable, String start, String separator, String end)
Appendable. Prints the string returned
by makeString(String, String, String).Copyright © 2004–2017. All rights reserved.