com.google.common.net.HostAndPort.class Maven / Gradle / Ivy
???? 2 ?
? ? ? ?
?
? ?
? ? ?
? ?
? ?
? ? ?
?
? ? ?
* ?
?
* ?
* ?
* ?
* ?
? ? ? ?
? ? ? ? ?
? ?
?
?
? ?
* ? ?
* ? ?
* ? ? ? ?
? ? ?
? ? ?
? ?
? ?
? ?
?
?
? ?? ? NO_PORT I
ConstantValue???? host Ljava/lang/String; port hasBracketlessColons Z serialVersionUID J (Ljava/lang/String;IZ)V Code LineNumberTable LocalVariableTable this #Lcom/google/common/net/HostAndPort; getHostText ()Ljava/lang/String; hasPort ()Z
StackMapTable getPort ()I getPortOrDefault (I)I defaultPort fromParts 8(Ljava/lang/String;I)Lcom/google/common/net/HostAndPort;
parsedHost ?
fromString 7(Ljava/lang/String;)Lcom/google/common/net/HostAndPort; hostAndPort [Ljava/lang/String; colonPos e !Ljava/lang/NumberFormatException; hostPortString
portString ? ? getHostAndPortFromBracketedHost '(Ljava/lang/String;)[Ljava/lang/String; i
colonIndex closeBracketIndex withDefaultPort &(I)Lcom/google/common/net/HostAndPort; requireBracketsForIPv6 %()Lcom/google/common/net/HostAndPort; equals (Ljava/lang/Object;)Z that other Ljava/lang/Object; "RuntimeVisibleParameterAnnotations Ljavax/annotation/Nullable; hashCode toString builder Ljava/lang/StringBuilder; ? isValidPort (I)Z
SourceFile HostAndPort.java RuntimeInvisibleAnnotations $Lcom/google/common/annotations/Beta; 'Ljavax/annotation/concurrent/Immutable; -Lcom/google/common/annotations/GwtCompatible; F ? = > ? : @ A O P ? ? ? { | Port out of range: %s java/lang/Object ? ? ? ? ? [ \ Host has a port: %s !com/google/common/net/HostAndPort F G ? ? [ ? ? f g ? U ? ? ? ? ? ? ? ? ? + Unparseable port number: %s ? ? java/lang/NumberFormatException "java/lang/IllegalArgumentException java/lang/StringBuilder Unparseable port number: ? ? w N F ? Port number out of range: %s ? ? 8Bracketed host-port string must start with a bracket: %s ? U Invalid bracketed host/port: %s ? S java/lang/String +Only a colon may follow a close bracket: %s ? ? ? Port must be numeric: %s ? ? %Possible bracketless IPv6 literal: %s ? ? ? ? ? ? v ? F ? ? ? ? ? java/io/Serializable ()V $com/google/common/base/Preconditions
checkState (Z)V java/lang/Integer valueOf (I)Ljava/lang/Integer;
checkArgument )(ZLjava/lang/String;[Ljava/lang/Object;)V checkNotNull &(Ljava/lang/Object;)Ljava/lang/Object;
startsWith (Ljava/lang/String;)Z indexOf (II)I substring (II)Ljava/lang/String; (I)Ljava/lang/String; com/google/common/base/Strings
isNullOrEmpty parseInt (Ljava/lang/String;)I append -(Ljava/lang/String;)Ljava/lang/StringBuilder; (Ljava/lang/String;)V charAt (I)C lastIndexOf length java/lang/Character isDigit (C)Z com/google/common/base/Objects equal '(Ljava/lang/Object;Ljava/lang/Object;)Z java/lang/Boolean (Z)Ljava/lang/Boolean; ([Ljava/lang/Object;)I (I)V (C)Ljava/lang/StringBuilder; (I)Ljava/lang/StringBuilder; 1 8 9 : ; <