public class EncodingConfig extends Object
This class configures a encoding for a code to generate. The code may be separated into equal groups with a separation character.
| Modifier and Type | Class and Description |
|---|---|
static class |
EncodingConfig.Builder |
| Constructor and Description |
|---|
EncodingConfig(String type,
Integer sepCount,
Character sepChar)
Create a new
EncodingConfig with the given parameters. |
| Modifier and Type | Method and Description |
|---|---|
static EncodingConfig.Builder |
builder() |
boolean |
equals(Object obj) |
Character |
getSepChar() |
Integer |
getSepCount() |
String |
getType() |
int |
hashCode() |
String |
toString() |
public EncodingConfig(String type, Integer sepCount, Character sepChar)
Create a new EncodingConfig with the given parameters.
type - the type of the encoding.sepCount - the number of characters after which a separation should occur. May be null.sepChar - the separation character. May be null.public String getType()
public Integer getSepCount()
public Character getSepChar()
public static EncodingConfig.Builder builder()
Copyright © 2020 sw4j.org. All rights reserved.