![JAR search and dependency download from the Maven repository](/logo.png)
com.google.common.base.Strings.class Maven / Gradle / Ivy
???? 4
! ?
? ?
? ?
? ?
? ?
? ?
?
?
?
? ?
? ? ? ?
? ?
?
?
?
? ? ?
? ? ?
? ? ? ?
9 ? ? ? ? ?
? ?
? ?
? ? ?
9 ? ?
?
?
? ? ? ?
! ? ?
! ?
? ?
? ?
? ? ?
? ? ? ? ?
? ? ? ? ? ? ()V Code LineNumberTable LocalVariableTable this Lcom/google/common/base/Strings; nullToEmpty &(Ljava/lang/String;)Ljava/lang/String; string Ljava/lang/String; MethodParameters "RuntimeVisibleParameterAnnotations Ljavax/annotation/CheckForNull; emptyToNull RuntimeVisibleAnnotations
isNullOrEmpty (Ljava/lang/String;)Z padStart ((Ljava/lang/String;IC)Ljava/lang/String; i I minLength padChar C sb Ljava/lang/StringBuilder;
StackMapTable padEnd repeat '(Ljava/lang/String;I)Ljava/lang/String; count len longSize J size array [C n _ RuntimeInvisibleAnnotations ,Lcom/google/errorprone/annotations/InlineMe; replacement string.repeat(count) >Lcom/google/errorprone/annotations/InlineMeValidationDisabled; value Java 11+ API only commonPrefix D(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String; a Ljava/lang/CharSequence; b maxPrefixLength p commonSuffix maxSuffixLength s validSurrogatePairAt (Ljava/lang/CharSequence;I)Z index 1Lcom/google/common/annotations/VisibleForTesting;
lenientFormat 9(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String; placeholderStart template args [Ljava/lang/Object; builder
templateStart RuntimeVisibleTypeAnnotations 5Lorg/checkerframework/checker/nullness/qual/Nullable; lenientToString &(Ljava/lang/Object;)Ljava/lang/String; objectToString e Ljava/lang/Exception; o Ljava/lang/Object;
SourceFile Strings.java 8Lcom/google/common/base/ElementTypesAreNonnullByDefault; -Lcom/google/common/annotations/GwtCompatible; : ; ? A B H B ? K ? ? ? ? ? java/lang/StringBuilder : ? ? ? ? ? ? ? invalid count: %s ? ? (java/lang/ArrayIndexOutOfBoundsException Required array size too large: ? ? : ? ? ? ? ? ? java/lang/String : ? ? ? ? ? ? ? s t ? ? ? ? ? ? ? ? ? java/lang/Object (Object[])null ? ? %s ? ? ? ? ? ? [ , null java/lang/Exception ? ? ? ? ? ? ? ? ? ? com.google.common.base.Strings ? ? ? ? #Exception during lenientFormat for < threw > com/google/common/base/Strings com/google/common/base/Platform stringIsNullOrEmpty $com/google/common/base/Preconditions checkNotNull &(Ljava/lang/Object;)Ljava/lang/Object; length ()I (I)V append (C)Ljava/lang/StringBuilder; -(Ljava/lang/String;)Ljava/lang/StringBuilder; toString ()Ljava/lang/String;
checkArgument (ZLjava/lang/String;I)V (J)Ljava/lang/StringBuilder; (Ljava/lang/String;)V getChars (II[CI)V java/lang/System arraycopy *(Ljava/lang/Object;ILjava/lang/Object;II)V ([C)V java/lang/CharSequence java/lang/Math min (II)I charAt (I)C subSequence (II)Ljava/lang/CharSequence; java/lang/Character isHighSurrogate (C)Z isLowSurrogate valueOf indexOf (Ljava/lang/String;I)I 5(Ljava/lang/CharSequence;II)Ljava/lang/StringBuilder; -(Ljava/lang/Object;)Ljava/lang/StringBuilder; getClass ()Ljava/lang/Class; java/lang/Class getName identityHashCode (Ljava/lang/Object;)I java/lang/Integer toHexString (I)Ljava/lang/String; java/util/logging/Logger getLogger .(Ljava/lang/String;)Ljava/util/logging/Logger; java/util/logging/Level WARNING Ljava/util/logging/Level; log C(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V 1 9 ! : ; <