public static Object constraint(SLayout... flags){
  EnumSet<SLayout> obj=EnumSet.noneOf(SLayout.class);
  for (  SLayout flag : flags) {
    obj.add(flag);
  }
  return obj;
}

public static Object constraint ( SLayout ... flags ) { EnumSet < SLayout > obj = EnumSet . noneOf ( SLayout . class ) ; for ( SLayout flag : flags ) { obj . add ( flag ) ; } return obj ; }
create a constraints object .
