Record Class RegexPattern.Metadata
java.lang.Object
java.lang.Record
com.google.common.labs.regex.RegexPattern.Metadata
- Record Components:
minSize- the minimum match size of this pattern in UTF-16 code units (chars). Particularly, optional patterns like.?,.*,c*,foo{,2}will return 0.maxSize- the maximum match size of this pattern in UTF-16 code units (chars), orInteger.MAX_VALUEif it can match infinitely long strings (e.g..*,\d+,foo{1,}etc).
- Enclosing interface:
RegexPattern
Common metadata shared by all regex patterns.
- Since:
- 10.9
-
Constructor Summary
ConstructorsConstructorDescriptionMetadata(int minSize, int maxSize) Creates an instance of aMetadatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intmaxSize()Returns the value of themaxSizerecord component.intminSize()Returns the value of theminSizerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
minSize
-
maxSize
-