Class SubstringFormatEntry
- java.lang.Object
- 
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
- 
- com.oracle.bmc.datasafe.model.FormatEntry
- 
- com.oracle.bmc.datasafe.model.SubstringFormatEntry
 
 
 
- 
 @Generated(value="OracleSDKGenerator", comments="API Version: 20181201") public final class SubstringFormatEntry extends FormatEntryThe Substring masking format extracts a portion of the original column value and uses it to replace the original value.It internally uses the Oracle SUBSTR function. It takes the start position and length as input, extracts substring from the original value using SUBSTR, and uses the substring to replace the original value. To learn more, check Substring in the Data Safe documentation. 
 Note: Objects should always be created or deserialized using theSubstringFormatEntry.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 theSubstringFormatEntry.Builder, which maintain a set of all explicitly set fields calledSubstringFormatEntry.Builder.__explicitlySet__. ThehashCode()andequals(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).
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classSubstringFormatEntry.Builder
 - 
Constructor SummaryConstructors Constructor Description SubstringFormatEntry(String description, Integer startPosition, Integer length)Deprecated.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SubstringFormatEntry.Builderbuilder()Create a new builder.booleanequals(Object o)IntegergetLength()The number of characters that should be there in the substring.IntegergetStartPosition()The starting position in the original string from where the substring should be extracted.inthashCode()SubstringFormatEntry.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.- 
Methods inherited from class com.oracle.bmc.datasafe.model.FormatEntrygetDescription
 
- 
 
- 
- 
- 
Constructor Detail- 
SubstringFormatEntry@Deprecated public SubstringFormatEntry(String description, Integer startPosition, Integer length) Deprecated.
 
- 
 - 
Method Detail- 
builderpublic static SubstringFormatEntry.Builder builder() Create a new builder.
 - 
toBuilderpublic SubstringFormatEntry.Builder toBuilder() 
 - 
getStartPositionpublic Integer getStartPosition() The starting position in the original string from where the substring should be extracted.It can be either a positive or a negative integer. If It’s negative, the counting starts from the end of the string. - Returns:
- the value
 
 - 
getLengthpublic Integer getLength() The number of characters that should be there in the substring.It should be an integer and greater than zero. - Returns:
- the value
 
 - 
toStringpublic String toString() - Overrides:
- toStringin class- FormatEntry
 
 - 
toStringpublic String toString(boolean includeByteArrayContents) Return a string representation of the object.- Overrides:
- toStringin class- FormatEntry
- Parameters:
- includeByteArrayContents- true to include the full contents of byte arrays
- Returns:
- string representation
 
 - 
equalspublic boolean equals(Object o) - Overrides:
- equalsin class- FormatEntry
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- FormatEntry
 
 
- 
 
-