public static boolean hasEncoding(List<Encoding> encodings,Encoding encoding){
  return encodings.contains(encoding);
}

public static boolean hasEncoding ( List < Encoding > encodings , Encoding encoding ) { return encodings . contains ( encoding ) ; }
below method will be used to check whether particular encoding is present in the dimension or not
