Olá pessoal!!
Estou analisando um codigo de um simulador de rede (j-Sim) e me deparei com o seguinte codigo:
static final int FLAG_DEBUG_LEVEL_START = 16;
/** Bit mask of the enabled flag. */
public static final int FLAG_ENABLED = 1 << 0;
/** Bit mask of the enabled flag. */
public static final int FLAG_ERROR_ENABLED = 1 << 1;
public static final int FLAG_GARBAGE_ENABLED = 1 << 2;
public static final int FLAG_GARBAGE_DISPLAY_ENABLED = 1 << 3;
public static final int FLAG_DEBUG_ENABLED = 1 << 4;
public static final int FLAG_TRACE_ENABLED = 1 << 5;
public static final int FLAG_EVENT_ENABLED = 1 << 6;
public static final int FLAG_COMPONENT_NOTIFICATION = 1 << 7;
public static final int FLAG_PORT_NOTIFICATION = 1 << 8;
public static final int FLAG_DIRECT_OUTPUT_ENABLED = 1 << 9;
public static final int FLAG_STARTED = 1 << 10;
public static final int FLAG_STOPPED = 1 << 11;
//public static final int FLAG_EXPOSED = 1 << 12;
//public static final int FLAG_HAS_EXPOSED_CHILD = 1 << 13;
static final int FLAG_OMIT_DUPLICATE = 1 << 14;
Nunca vi “<<” ou “>>”…
Alguém poderia me dizer pra que serve?? Ou me indicar algum lugar pra que eu poça estudar o assunto?
Grato!
Roni Lenhardt
