@Generated(value="OracleSDKGenerator", comments="API Version: 20181201") public final class PatternFormatEntry extends FormatEntry
The Pattern masking format randomly selects values according to pattern to replace the original
values. Rules Max Generated Data Length 30 characters Use ‘%c’ for a random lowercase letter Use
‘%C’ for a random uppercase letter Use ‘%u[]’ for a random character out of all characters
enclosed in [] Use ‘%%’ for a ‘%’ Use ‘%d’ for a random digit Use ’%nd’,‘%nc’, ‘%nC’, or ‘%nu[]’
n random letters or digits or characters enclosed in [], n can be 0-9 only Any other character
will be included as it is Examples %3d-%5C will generate 416-JQPCS %3d-%5c will generate
392-dehco %u[$^#] will generate $ %%%3d will generate %704
Note: Objects should always be created or deserialized using the PatternFormatEntry.Builder
. This model
distinguishes fields that are null
because they are unset from fields that are explicitly
set to null
. This is done in the setter methods of the PatternFormatEntry.Builder
, which maintain a
set of all explicitly set fields called PatternFormatEntry.Builder.__explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take the explicitly set
fields into account. The constructor, on the other hand, does not take the explicitly set fields
into account (since the constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
PatternFormatEntry.Builder |
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
PatternFormatEntry(String description,
String pattern)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static PatternFormatEntry.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
String |
getPattern()
The pattern that should be used to mask data.
|
int |
hashCode() |
PatternFormatEntry.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
getDescription
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated public PatternFormatEntry(String description, String pattern)
public static PatternFormatEntry.Builder builder()
Create a new builder.
public PatternFormatEntry.Builder toBuilder()
public String getPattern()
The pattern that should be used to mask data.
public String toString()
toString
in class FormatEntry
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
toString
in class FormatEntry
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class FormatEntry
public int hashCode()
hashCode
in class FormatEntry
Copyright © 2016–2024. All rights reserved.