MCPcopy Index your code
hub / github.com/libgdx/libgdx / first

Method first

gdx/src/com/badlogic/gdx/utils/CharArray.java:368–371  ·  view source on GitHub ↗

Returns the first item.

()

Source from the content-addressed store, hash-verified

366
367 /** Returns the first item. */
368 public char first () {
369 if (size == 0) throw new IllegalStateException("Array is empty.");
370 return items[0];
371 }
372
373 /** Returns true if the array has one or more items. */
374 public boolean notEmpty () {

Callers 1

stackTestMethod · 0.95

Calls

no outgoing calls

Tested by 1

stackTestMethod · 0.76