Class ServerAnwahlListe
- java.lang.Object
-
- de.desy.mst.libs.framework.mstapp.mode.ServerAnwahlListe
-
public final class ServerAnwahlListe extends java.lang.Object
Tells which ServerAnwahl'en are allowed. Value equality == Object equality They can not be changed. Naming convention of constants: Betrieb,Betrachten,Expert Capital letter: mode is allowed mode "_": mode is not allowed Im Detail:- ServerAnwahlListe.DS DefaultSimulationsserver
- ServerAnwahlListe._S _Simulationsserver
- ServerAnwahlListe.D_ Default_
- ServerAnwahlListe.EMPTY_LISTE ___ 2
- Author:
- schuette
-
-
Field Summary
Fields Modifier and Type Field Description static ServerAnwahlListe
_S
static ServerAnwahlListe
D_
static ServerAnwahlListe
DS
static ServerAnwahlListe
EMPTY_LISTE
java.lang.String
name
static ServerAnwahlListe[]
VALUES
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ServerAnwahlListe
and(ServerAnwahlListe list1, ServerAnwahlListe list2)
Ergibt eine ServerAnwahlListe die nur ServerAnwahln aus beiden Listen enthaeltboolean[]
getAnwahlArray()
ServerAnwahl
getDefaultServerAnwahl()
static boolean
isGefuellterAnwahlArray(boolean[] anwahlArray)
static boolean
isGefuellterModeArray(boolean[] anwahlArray)
boolean
isInList(int index)
boolean
isInList(ServerAnwahl serverAnwahl)
static ServerAnwahlListe
not(ServerAnwahlListe list)
Ergibt die logisch invertierte ServerAnwahlListejava.lang.String
toString()
-
-
-
Field Detail
-
DS
public static final ServerAnwahlListe DS
-
_S
public static final ServerAnwahlListe _S
-
D_
public static final ServerAnwahlListe D_
-
EMPTY_LISTE
public static final ServerAnwahlListe EMPTY_LISTE
-
VALUES
public static final ServerAnwahlListe[] VALUES
-
name
public final java.lang.String name
-
-
Method Detail
-
isGefuellterAnwahlArray
public static boolean isGefuellterAnwahlArray(boolean[] anwahlArray)
-
and
public static ServerAnwahlListe and(ServerAnwahlListe list1, ServerAnwahlListe list2)
Ergibt eine ServerAnwahlListe die nur ServerAnwahln aus beiden Listen enthaelt
-
not
public static ServerAnwahlListe not(ServerAnwahlListe list)
Ergibt die logisch invertierte ServerAnwahlListe
-
isInList
public boolean isInList(int index)
-
isInList
public boolean isInList(ServerAnwahl serverAnwahl)
-
getAnwahlArray
public boolean[] getAnwahlArray()
- Returns:
- Returns a clone of the anwahlArray. Always a valid non null array. must be a clone, so user can not change values in an unchecked fashion
-
getDefaultServerAnwahl
public ServerAnwahl getDefaultServerAnwahl()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
isGefuellterModeArray
public static boolean isGefuellterModeArray(boolean[] anwahlArray)
-
-