public class org.apache.commons.text.RandomStringGenerator$Builder extends java.lang.Object implements org.apache.commons.text.Builder
{
public static final int DEFAULT_MAXIMUM_CODE_POINT;
public static final int DEFAULT_LENGTH;
public static final int DEFAULT_MINIMUM_CODE_POINT;
private int minimumCodePoint;
private int maximumCodePoint;
private java.util.Set inclusivePredicates;
private org.apache.commons.text.TextRandomProvider random;
private java.util.List characterList;
public void <init>()
{
org.apache.commons.text.RandomStringGenerator$Builder v;
v := @this: org.apache.commons.text.RandomStringGenerator$Builder;
specialinvoke v.<java.lang.Object: void <init>()>();
v.<org.apache.commons.text.RandomStringGenerator$Builder: int minimumCodePoint> = 0;
v.<org.apache.commons.text.RandomStringGenerator$Builder: int maximumCodePoint> = 1114111;
return;
}
public org.apache.commons.text.RandomStringGenerator build()
{
org.apache.commons.text.RandomStringGenerator$Builder v;
java.util.List v;
int v, v;
org.apache.commons.text.TextRandomProvider v;
java.util.Set v;
org.apache.commons.text.RandomStringGenerator v;
v := @this: org.apache.commons.text.RandomStringGenerator$Builder;
v = new org.apache.commons.text.RandomStringGenerator;
v = v.<org.apache.commons.text.RandomStringGenerator$Builder: int minimumCodePoint>;
v = v.<org.apache.commons.text.RandomStringGenerator$Builder: int maximumCodePoint>;
v = v.<org.apache.commons.text.RandomStringGenerator$Builder: java.util.Set inclusivePredicates>;
v = v.<org.apache.commons.text.RandomStringGenerator$Builder: org.apache.commons.text.TextRandomProvider random>;
v = v.<org.apache.commons.text.RandomStringGenerator$Builder: java.util.List characterList>;
specialinvoke v.<org.apache.commons.text.RandomStringGenerator: void <init>(int,int,java.util.Set,org.apache.commons.text.TextRandomProvider,java.util.List)>(v, v, v, v, v);
return v;
}
public transient org.apache.commons.text.RandomStringGenerator$Builder filteredBy(org.apache.commons.text.CharacterPredicate[])
{
java.util.HashSet v;
org.apache.commons.text.RandomStringGenerator$Builder v;
java.util.Set v, v, v;
org.apache.commons.text.CharacterPredicate[] v;
boolean v;
v := @this: org.apache.commons.text.RandomStringGenerator$Builder;
v := @parameter: org.apache.commons.text.CharacterPredicate[];
v = staticinvoke <org.apache.commons.lang.ArrayUtils: boolean isEmpty(java.lang.Object[])>(v);
if v == 0 goto label;
v.<org.apache.commons.text.RandomStringGenerator$Builder: java.util.Set inclusivePredicates> = null;
return v;
label:
v = v.<org.apache.commons.text.RandomStringGenerator$Builder: java.util.Set inclusivePredicates>;
if v != null goto label;
v = new java.util.HashSet;
specialinvoke v.<java.util.HashSet: void <init>()>();
v.<org.apache.commons.text.RandomStringGenerator$Builder: java.util.Set inclusivePredicates> = v;
goto label;
label:
v = v.<org.apache.commons.text.RandomStringGenerator$Builder: java.util.Set inclusivePredicates>;
interfaceinvoke v.<java.util.Set: void clear()>();
label:
v = v.<org.apache.commons.text.RandomStringGenerator$Builder: java.util.Set inclusivePredicates>;
staticinvoke <java.util.Collections: boolean addAll(java.util.Collection,java.lang.Object[])>(v, v);
return v;
}
public transient org.apache.commons.text.RandomStringGenerator$Builder selectFrom(char[])
{
org.apache.commons.text.RandomStringGenerator$Builder v;
char v;
java.util.ArrayList v;
java.util.List v;
java.lang.Character v;
int v, v;
char[] v;
v := @this: org.apache.commons.text.RandomStringGenerator$Builder;
v := @parameter: char[];
v = new java.util.ArrayList;
specialinvoke v.<java.util.ArrayList: void <init>()>();
v.<org.apache.commons.text.RandomStringGenerator$Builder: java.util.List characterList> = v;
if v == null goto label;
v = lengthof v;
v = 0;
label:
if v >= v goto label;
v = v[v];
v = v.<org.apache.commons.text.RandomStringGenerator$Builder: java.util.List characterList>;
v = staticinvoke <java.lang.Character: java.lang.Character valueOf(char)>(v);
interfaceinvoke v.<java.util.List: boolean add(java.lang.Object)>(v);
v = v + 1;
goto label;
label:
return v;
}
public org.apache.commons.text.RandomStringGenerator$Builder usingRandom(org.apache.commons.text.TextRandomProvider)
{
org.apache.commons.text.TextRandomProvider v;
org.apache.commons.text.RandomStringGenerator$Builder v;
v := @this: org.apache.commons.text.RandomStringGenerator$Builder;
v := @parameter: org.apache.commons.text.TextRandomProvider;
v.<org.apache.commons.text.RandomStringGenerator$Builder: org.apache.commons.text.TextRandomProvider random> = v;
return v;
}
public transient org.apache.commons.text.RandomStringGenerator$Builder withinRange(char[][])
{
org.apache.commons.text.RandomStringGenerator$Builder v;
java.lang.Object[] v, v;
char[][] v;
java.lang.Integer v, v;
java.util.ArrayList v;
java.lang.Character v;
int v, v, v, v;
boolean v, v;
char v, v;
java.util.List v;
char[] v;
v := @this: org.apache.commons.text.RandomStringGenerator$Builder;
v := @parameter: char[][];
v = new java.util.ArrayList;
specialinvoke v.<java.util.ArrayList: void <init>()>();
v.<org.apache.commons.text.RandomStringGenerator$Builder: java.util.List characterList> = v;
if v == null goto label;
v = lengthof v;
v = 0;
label:
if v >= v goto label;
v = v[v];
v = lengthof v;
if v != 2 goto label;
v = 1;
goto label;
label:
v = 0;
label:
v = newarray (java.lang.Object)[0];
staticinvoke <org.apache.commons.lang.Validate: void isTrue(boolean,java.lang.String,java.lang.Object[])>(v, "Each pair must contain minimum and maximum code point", v);
v = v[0];
v = v[1];
if v > v goto label;
v = 1;
goto label;
label:
v = 0;
label:
v = newarray (java.lang.Object)[2];
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(v);
v[0] = v;
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(v);
v[1] = v;
staticinvoke <org.apache.commons.lang.Validate: void isTrue(boolean,java.lang.String,java.lang.Object[])>(v, "Minimum code point %d is larger than maximum code point %d", v);
v = v;
label:
if v > v goto label;
v = v.<org.apache.commons.text.RandomStringGenerator$Builder: java.util.List characterList>;
v = staticinvoke <java.lang.Character: java.lang.Character valueOf(char)>(v);
interfaceinvoke v.<java.util.List: boolean add(java.lang.Object)>(v);
v = v + 1;
goto label;
label:
v = v + 1;
goto label;
label:
return v;
}
public org.apache.commons.text.RandomStringGenerator$Builder withinRange(int, int)
{
org.apache.commons.text.RandomStringGenerator$Builder v;
java.lang.Object[] v;
java.lang.Integer v, v;
int v, v;
boolean v, v, v;
v := @this: org.apache.commons.text.RandomStringGenerator$Builder;
v := @parameter: int;
v := @parameter: int;
if v > v goto label;
v = 1;
goto label;
label:
v = 0;
label:
v = newarray (java.lang.Object)[2];
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(v);
v[0] = v;
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(v);
v[1] = v;
staticinvoke <org.apache.commons.lang.Validate: void isTrue(boolean,java.lang.String,java.lang.Object[])>(v, "Minimum code point %d is larger than maximum code point %d", v);
if v < 0 goto label;
v = 1;
goto label;
label:
v = 0;
label:
staticinvoke <org.apache.commons.lang.Validate: void isTrue(boolean,java.lang.String,long)>(v, "Minimum code point %d is negative", v);
if v > 1114111 goto label;
v = 1;
goto label;
label:
v = 0;
label:
staticinvoke <org.apache.commons.lang.Validate: void isTrue(boolean,java.lang.String,long)>(v, "Value %d is larger than Character.MAX_CODE_POINT.", v);
v.<org.apache.commons.text.RandomStringGenerator$Builder: int minimumCodePoint> = v;
v.<org.apache.commons.text.RandomStringGenerator$Builder: int maximumCodePoint> = v;
return v;
}
}