Range#

public final class Range#

Helper utility for creating ranges.

Method Summary

appendBytes(byte end)

Append a range to the builder.

appendBytes(byte start, byte end)

Append a range to the builder.

appendBytes(byte start, byte end, byte step)

Append a range to the builder.

appendDoubles(double end)

Append a range to the builder.

appendDoubles(double start, double end)

Append a range to the builder.

appendDoubles(double start, double end, double step)

Append a range to the builder.

appendFloats(float end)

Append a range to the builder.

appendFloats(float start, float end)

Append a range to the builder.

appendFloats(float start, float end, float step)

Append a range to the builder.

appendInts(int end)

Append a range to the builder.

appendInts(int start, int end)

Append a range to the builder.

appendInts(int start, int end, int step)

Append a range to the builder.

appendLongs(long end)

Append a range to the builder.

appendLongs(long start, long end)

Append a range to the builder.

appendLongs(long start, long end, long step)

Append a range to the builder.

appendShorts(short end)

Append a range to the builder.

appendShorts(short start, short end)

Append a range to the builder.

appendShorts(short start, short end, short step)

Append a range to the builder.

Static Methods

public static final Consumer<Builder> appendBytes(byte end)#

Append a range to the builder.

0 inclusive to end exclusive.

Parameters:

end – last entry exclusive.

Returns:

the consumer.

public static final Consumer<Builder> appendBytes(
byte start,
byte end
)#

Append a range to the builder.

start inclusive to end exclusive.

Parameters:
  • start – first entry.

  • end – last entry exclusive.

Returns:

the consumer.

public static final Consumer<Builder> appendBytes(
byte start,
byte end,
byte step
)#

Append a range to the builder.

start inclusive to end exclusive.

Parameters:
  • start – first entry.

  • end – last entry exclusive.

  • step – how must to step by.

Returns:

the builder for chaining.

public static final Consumer<Builder> appendShorts(short end)#

Append a range to the builder.

0 inclusive to end exclusive.

Parameters:

end – last entry exclusive.

Returns:

the consumer.

public static final Consumer<Builder> appendShorts(
short start,
short end
)#

Append a range to the builder.

start inclusive to end exclusive.

Parameters:
  • start – first entry.

  • end – last entry exclusive.

Returns:

the consumer.

public static final Consumer<Builder> appendShorts(
short start,
short end,
short step
)#

Append a range to the builder.

start inclusive to end exclusive.

Parameters:
  • start – first entry.

  • end – last entry exclusive.

  • step – how must to step by.

Returns:

the builder for chaining.

public static final Consumer<Builder> appendInts(int end)#

Append a range to the builder.

0 inclusive to end exclusive.

Parameters:

end – last entry exclusive.

Returns:

the consumer.

public static final Consumer<Builder> appendInts(int start, int end)#

Append a range to the builder.

start inclusive to end exclusive.

Parameters:
  • start – first entry.

  • end – last entry exclusive.

Returns:

the consumer.

public static final Consumer<Builder> appendInts(
int start,
int end,
int step
)#

Append a range to the builder.

start inclusive to end exclusive.

Parameters:
  • start – first entry.

  • end – last entry exclusive.

  • step – how must to step by.

Returns:

the builder for chaining.

public static final Consumer<Builder> appendLongs(
long start,
long end,
long step
)#

Append a range to the builder.

start inclusive to end exclusive.

Parameters:
  • start – first entry.

  • end – last entry exclusive.

  • step – how must to step by.

Returns:

the builder for chaining.

public static final Consumer<Builder> appendLongs(long end)#

Append a range to the builder.

0 inclusive to end exclusive.

Parameters:

end – last entry exclusive.

Returns:

the consumer.

public static final Consumer<Builder> appendLongs(
long start,
long end
)#

Append a range to the builder.

start inclusive to end exclusive.

Parameters:
  • start – first entry.

  • end – last entry exclusive.

Returns:

the consumer.

public static final Consumer<Builder> appendFloats(
float start,
float end,
float step
)#

Append a range to the builder.

start inclusive to end exclusive.

Parameters:
  • start – first entry.

  • end – last entry exclusive.

  • step – how must to step by.

Returns:

the builder for chaining.

public static final Consumer<Builder> appendFloats(float end)#

Append a range to the builder.

0 inclusive to end exclusive.

Parameters:

end – last entry exclusive.

Returns:

the consumer.

public static final Consumer<Builder> appendFloats(
float start,
float end
)#

Append a range to the builder.

start inclusive to end exclusive.

Parameters:
  • start – first entry.

  • end – last entry exclusive.

Returns:

the consumer.

public static final Consumer<Builder> appendDoubles(
double start,
double end,
double step
)#

Append a range to the builder.

start inclusive to end exclusive.

Parameters:
  • start – first entry.

  • end – last entry exclusive.

  • step – how must to step by.

Returns:

the builder for chaining.

public static final Consumer<Builder> appendDoubles(double end)#

Append a range to the builder.

0 inclusive to end exclusive.

Parameters:

end – last entry exclusive.

Returns:

the consumer.

public static final Consumer<Builder> appendDoubles(
double start,
double end
)#

Append a range to the builder.

start inclusive to end exclusive.

Parameters:
  • start – first entry.

  • end – last entry exclusive.

Returns:

the consumer.