private static boolean isSegment(final String value){
  return value.equals("cs") || value.equals("ds") || value.equals("es")|| value.equals("fs")|| value.equals("gs")|| value.equals("ss");
}

private static boolean isSegment ( final String value ) { return value . equals ( "cs" ) || value . equals ( "ds" ) || value . equals ( "es" ) || value . equals ( "fs" ) || value . equals ( "gs" ) || value . equals ( "ss" ) ; }
checks whether a string identifies an x86 segment .
