kreverse.krlib
Enum RemoteEndpoint

java.lang.Object
  extended by java.lang.Enum<RemoteEndpoint>
      extended by kreverse.krlib.RemoteEndpoint
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<RemoteEndpoint>

public enum RemoteEndpoint
extends java.lang.Enum<RemoteEndpoint>

Repräsentiert Host und Port der Knuddels-Chatsysteme.

Since:
1.0
Author:
Flav

Enum Constant Summary
AT
           
CH
           
COM
           
DE
           
MFC
           
TEST
           
 
Method Summary
 java.lang.String getHost()
          Gibt den Host des Chatsystems als String zurück.
 int getPort()
          Gibt den Port des Chatsystems als Integer zurück.
static RemoteEndpoint valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static RemoteEndpoint[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

DE

public static final RemoteEndpoint DE

AT

public static final RemoteEndpoint AT

CH

public static final RemoteEndpoint CH

COM

public static final RemoteEndpoint COM

TEST

public static final RemoteEndpoint TEST

MFC

public static final RemoteEndpoint MFC
Method Detail

values

public static RemoteEndpoint[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (RemoteEndpoint c : RemoteEndpoint.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static RemoteEndpoint valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getHost

public java.lang.String getHost()
Gibt den Host des Chatsystems als String zurück.

Returns:
der Host des Chatsystems als String.
Since:
1.0

getPort

public int getPort()
Gibt den Port des Chatsystems als Integer zurück.

Returns:
der Port des Chatsystems als Integer.
Since:
1.0