public class ProgressLogger
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ProgressLogger.BarType |
| Constructor and Description |
|---|
ProgressLogger(int size,
int complete,
int total,
ProgressLogger.BarType barType)
進捗度バー表示
|
ProgressLogger(int size,
int total,
ProgressLogger.BarType barType)
進捗度バー表示
|
| Modifier and Type | Method and Description |
|---|---|
ProgressLogger.BarType |
getBarType() |
int |
getComplete() |
java.lang.String |
getProgressBar() |
java.lang.String |
getProgressBar(int complete) |
int |
getSize() |
int |
getTotal() |
void |
printProgress() |
void |
printProgress(int complete)
更新するたびに呼び出せば進捗が表示される
|
void |
setBarType(ProgressLogger.BarType barType) |
void |
setComplete(int complete) |
void |
setEndStr(java.util.function.Function<ProgressLogger,java.lang.String> endStr) |
void |
setLogger(java.util.function.Consumer<java.lang.String> logger) |
void |
setSize(int size) |
void |
setStartStr(java.util.function.Function<ProgressLogger,java.lang.String> startStr) |
void |
setTotal(int total) |
public ProgressLogger(int size,
int total,
ProgressLogger.BarType barType)
size - 進捗度バーの大きさtotal - 合計数barType - バータイプpublic ProgressLogger(int size,
int complete,
int total,
ProgressLogger.BarType barType)
size - 進捗度バーの大きさcomplete - 書記達成率total - 合計数barType - バータイプpublic ProgressLogger.BarType getBarType()
public void setBarType(ProgressLogger.BarType barType)
public int getComplete()
public int getSize()
public int getTotal()
public void setLogger(java.util.function.Consumer<java.lang.String> logger)
public void setComplete(int complete)
public void setSize(int size)
public void setTotal(int total)
public java.lang.String getProgressBar(int complete)
public java.lang.String getProgressBar()
public void printProgress(int complete)
complete - 達成率public void setEndStr(java.util.function.Function<ProgressLogger,java.lang.String> endStr)
public void setStartStr(java.util.function.Function<ProgressLogger,java.lang.String> startStr)
public void printProgress()