public NearestAntennaFromBouygues1(@Nonnull String __typename, @Nullable Coordinates5 coordinates, @Nullable String generation, @Nullable String provider, @Nullable String lastUpdate, @Nullable String status, @Nullable Integer dist, @Nullable String insee, @Nullable String city, @Nullable String addressLabel, @Nonnull Fragments fragments) { if (__typename == null) { throw new NullPointerException("__typename can't be null"); } this.__typename = __typename; this.coordinates = coordinates; this.generation = generation; this.provider = provider; this.lastUpdate = lastUpdate; this.status = status; this.dist = dist; this.insee = insee; this.city = city; this.addressLabel = addressLabel; if (fragments == null) { throw new NullPointerException("fragments can't be null"); } this.fragments = fragments; }
public void SortingTest(String[] ms1, int m) { String[] ms2 = new String[m]; boolean err = false; for (int i = 0; i < m; i++) { ms2[i] = ms1[i]; //copy input data } Arrays.sort(ms2); //sort data separately to compare with initial array for (int j = 0; j < m; j++) { if (ms2[j].equalsIgnoreCase(ms1[j]) == false) { // if sorted array is not equal to initial array then the sorting error exists System.out.println("ERROR! Sorting is incorrect! Wrong initial element: " + ms1[j]); err = true; } } if (err == false) { System.out.println("ELEMENTS SORTING IS CORRECT!"); } }
@Override public NonPrivateFieldsAndAccessorsFieldDetectionPolicyModel parse(JsonParser jsonParser) throws IOException { NonPrivateFieldsAndAccessorsFieldDetectionPolicyModel instance = new NonPrivateFieldsAndAccessorsFieldDetectionPolicyModel(); if (jsonParser.getCurrentToken() == null) { jsonParser.nextToken(); } if (jsonParser.getCurrentToken() != JsonToken.START_OBJECT) { jsonParser.skipChildren(); return null; } while (jsonParser.nextToken() != JsonToken.END_OBJECT) { String fieldName = jsonParser.getCurrentName(); jsonParser.nextToken(); parseField(instance, fieldName, jsonParser); jsonParser.skipChildren(); } return instance; }
@Override public LowerCaseNamingPolicyModel parse(JsonParser jsonParser) throws IOException { LowerCaseNamingPolicyModel instance = new LowerCaseNamingPolicyModel(); if (jsonParser.getCurrentToken() == null) { jsonParser.nextToken(); } if (jsonParser.getCurrentToken() != JsonToken.START_OBJECT) { jsonParser.skipChildren(); return null; } while (jsonParser.nextToken() != JsonToken.END_OBJECT) { String fieldName = jsonParser.getCurrentName(); jsonParser.nextToken(); parseField(instance, fieldName, jsonParser); jsonParser.skipChildren(); } return instance; }
public static boolean imencode(String ext, Mat img, MatOfByte buf) { Mat buf_mat = buf; boolean retVal = imencode_1(ext, img.nativeObj, buf_mat.nativeObj); return retVal; }
public void forward(List<Mat> outputBlobs, String outputName) { Mat outputBlobs_mat = Converters.vector_Mat_to_Mat(outputBlobs); forward_2(nativeObj, outputBlobs_mat.nativeObj, outputName); return; }
@Override public final Property getProperty(String columnName) { columnName = QueryBuilder.quoteIfNeeded(columnName); switch ((columnName)) { case "`sysId`": { return sysId; } case "`message`": { return message; } case "`id`": { return id; } case "`sunset`": { return sunset; } case "`sunrise`": { return sunrise; } case "`type`": { return type; } case "`country`": { return country; } case "`pod`": { return pod; } default: { throw new IllegalArgumentException("Invalid column name passed. Ensure you are calling the correct table's column"); } } }
public static boolean imreadmulti(String filename, List<Mat> mats, int flags) { Mat mats_mat = Converters.vector_Mat_to_Mat(mats); boolean retVal = imreadmulti_0(filename, mats_mat.nativeObj, flags); return retVal; }
public static String getSelects(String prefix, Field...ignoreFields){ StringBuilder sb = new StringBuilder(); if (null != ignoreFields){ Arrays.sort(ignoreFields); } for ( Field field : Field.values()) { if (null != ignoreFields && Arrays.binarySearch(ignoreFields, field) >= 0){ continue; } sb.append(String.format(" %s.`%s` %s, ", prefix, field.getColumn(), field.name())); } sb.deleteCharAt(sb.length() - 2); return sb.toString(); }
public static boolean imreadmulti(String filename, List<Mat> mats) { Mat mats_mat = new Mat(); boolean retVal = imreadmulti_1(filename, mats_mat.nativeObj); Converters.Mat_to_vector_Mat(mats_mat, mats); mats_mat.release(); return retVal; }
private String getParamName(VariableElement methodParam) { Param paramAnnotation = methodParam.getAnnotation(Param.class); if (paramAnnotation != null) { return paramAnnotation.value(); } throw new IllegalArgumentException("Parameter " + methodParam.getSimpleName() + " doesn't have " + Param.class.getSimpleName() + " annotation with name."); }
public static byte[] parseBase64Binary(String s) throws Exception { return Base64.decode(s.replaceAll("\\s", "")); }
public static DateTime parseGMonth(String s) { return castToDateTime(s); }
public @Nullable String city() { return this.city; }
public void write(String fileName) { write_0(nativeObj, fileName); return; }
public @Nonnull String __typename() { return this.__typename; }
public static void main(String... args){ new MyMain().someMethod(); }
public @Nullable String provider() { return this.provider; }
public String getCountryShortEn(){ return countryShortEn; }
public static String getApiPackageName () { return MonoPackageManager_Resources.ApiPackageName; }
@Override public final String getUpdateStatementQuery() { return "UPDATE `WeatherDescription` SET `wId`=?,`id`=?,`icon`=?,`description`=?,`main`=? WHERE `wId`=?"; }
@Override public String getDescription() { return "Competence is an inner tree of posh decision tree."; }
public static String getClassNameForPackage(String simpleName) { return packageName + "." + simpleName; }
public Version(String projectVersion, String gitVersion, String gitBranch, long buildTimestamp) { this.projectVersion = Objects.requireNonNull(projectVersion); this.gitVersion = Objects.requireNonNull(gitVersion); this.gitBranch = Objects.requireNonNull(gitBranch); this.buildTimestamp = buildTimestamp; }
public static DateTime parseGYear(String s) { return castToDateTime(s); }
@Override public final String getUpdateStatementQuery() { return "UPDATE `CoordWeather` SET `id`=?,`lon`=?,`lat`=? WHERE `id`=?"; }
public @Nullable String generation() { return this.generation; }
/** Returns a list of all owned product IDs. */ public List<String> getAllOwnedSkus() { return new ArrayList<String>(mPurchaseMap.keySet()); }
public static void main( String [] args ) { //outputDir = args[0] //fastaFile = args[1] //ppm = args[2] //enzyme = args[3] //modsFileLocation = args[4] //MsgfplusJarDir = args[5] File outputDir = new File(args[0]); File[] files = outputDir.listFiles(); String mParallelPath = args[1]+"\\mParallel\\MParallel.exe"; String MSConvertExePath = args[2]; int numOfFiles = 0; for( File file : files ) { if( !file.isDirectory() && ( file.getAbsolutePath().endsWith(".raw") ) ) { WiffMzmlBatFile.append("\"").append(MSConvertExePath).append("\"").append(" "); WiffMzmlBatFile.append(file).append(" "); WiffMzmlBatFile.append("--mzXML").append(" "); WiffMzmlBatFile.append("--filter \"peakPicking vendor msLevel=1-\"").append(" "); WiffMzmlBatFile.append("--32").append(" "); WiffMzmlBatFile.append("--outfile").append(" "); WiffMzmlBatFile.append(file.getAbsolutePath().replace(".raw", ".mzXML")); WiffMzmlBatFile.append(" : "); numOfFiles++; } } if(numOfFiles != 0) { WiffMzmlBatFileMain.append(mParallelPath).append(" "); WiffMzmlBatFileMain.append("--count=" + 16 + " "); WiffMzmlBatFileMain.append("--logfile=mparallel.log "); WiffMzmlBatFileMain.append("--priority=4 "); WiffMzmlBatFileMain.append("--shell "); WiffMzmlBatFileMain.append(WiffMzmlBatFile); WiffMzmlBatFileMain.delete(WiffMzmlBatFileMain.length()-3, WiffMzmlBatFileMain.length()); WiffMzmlBatFileMain.append("\r\n"); } writeToFile(outputDir); }
public Phone(String number, ByteString unknownFields) { super(ADAPTER, unknownFields); this.number = number; }
public String getPkId(){ return pkId; }
public static void main(String[] args) { String inputParametersString = Paths.get(".").toAbsolutePath().normalize().toString(); inputParametersString += "\\input.parameters"; Path inputParametersPath = Paths.get(inputParametersString); readFile(inputParametersPath, inputParametersStrBuf); String[] inputParametersArray = inputParametersStrBuf.toString().split("\r\n"); runDiaUmpireBool = Boolean.parseBoolean(runDiaUmpireBoolStr); runMSGFSearchBool = Boolean.parseBoolean(runMSGFSearchBoolStr); runXTandemBool = Boolean.parseBoolean(runXTandemBoolStr); runCometSearchBool = Boolean.parseBoolean(runCometSearchBoolStr); runProphetBool = Boolean.parseBoolean(runProphetBoolStr); runSkylineBool = Boolean.parseBoolean(runSkylineBoolStr); if(runDiaUmpireBool) { } if(runMSGFSearchBool) { } if(runXTandemBool) { } if(runCometSearchBool) { } if(runProphetBool) { } if(runSkylineBool) { } }
public static void putText(Mat img, String text, Point org, int fontFace, double fontScale, Scalar color, int thickness, int lineType, boolean bottomLeftOrigin) { putText_0(img.nativeObj, text, org.x, org.y, fontFace, fontScale, color.val[0], color.val[1], color.val[2], color.val[3], thickness, lineType, bottomLeftOrigin); return; }
/** * <p>Loads an image from a file.</p> * * <p>The function <code>imread</code> loads an image from the specified file and * returns it. If the image cannot be read (because of missing file, improper * permissions, unsupported or invalid format), the function returns an empty * matrix (<code>Mat.data==NULL</code>). Currently, the following file formats * are supported:</p> * <ul> * <li> Windows bitmaps - <code>*.bmp, *.dib</code> (always supported) * <li> JPEG files - <code>*.jpeg, *.jpg, *.jpe</code> (see the *Notes* * section) * <li> JPEG 2000 files - <code>*.jp2</code> (see the *Notes* section) * <li> Portable Network Graphics - <code>*.png</code> (see the *Notes* * section) * <li> Portable image format - <code>*.pbm, *.pgm, *.ppm</code> (always * supported) * <li> Sun rasters - <code>*.sr, *.ras</code> (always supported) * <li> TIFF files - <code>*.tiff, *.tif</code> (see the *Notes* section) * </ul> * * <p>Note:</p> * <ul> * <li> The function determines the type of an image by the content, not by * the file extension. * <li> On Microsoft Windows* OS and MacOSX*, the codecs shipped with an * OpenCV image (libjpeg, libpng, libtiff, and libjasper) are used by default. * So, OpenCV can always read JPEGs, PNGs, and TIFFs. On MacOSX, there is also * an option to use native MacOSX image readers. But beware that currently these * native image loaders give images with different pixel values because of the * color management embedded into MacOSX. * <li> On Linux*, BSD flavors and other Unix-like open-source operating * systems, OpenCV looks for codecs supplied with an OS image. Install the * relevant packages (do not forget the development files, for example, * "libjpeg-dev", in Debian* and Ubuntu*) to get the codec support or turn on * the <code>OPENCV_BUILD_3RDPARTY_LIBS</code> flag in CMake. * </ul> * * <p>Note: In the case of color images, the decoded images will have the channels * stored in <code>B G R</code> order.</p> * * @param filename Name of file to be loaded. * @param flags Flags specifying the color type of a loaded image: * <ul> * <li> CV_LOAD_IMAGE_ANYDEPTH - If set, return 16-bit/32-bit image when the * input has the corresponding depth, otherwise convert it to 8-bit. * <li> CV_LOAD_IMAGE_COLOR - If set, always convert image to the color one * <li> CV_LOAD_IMAGE_GRAYSCALE - If set, always convert image to the * grayscale one * <li> >0 Return a 3-channel color image. * </ul> * <p>Note: In the current implementation the alpha channel, if any, is stripped * from the output image. Use negative value if you need the alpha channel.</p> * <ul> * <li> =0 Return a grayscale image. * <li> <0 Return the loaded image as is (with alpha channel). * </ul> * * @see <a href="http://docs.opencv.org/modules/highgui/doc/reading_and_writing_images_and_video.html#imread">org.opencv.highgui.Highgui.imread</a> */ public static Mat imread(String filename, int flags) { Mat retVal = new Mat(imread_0(filename, flags)); return retVal; }
public boolean load(String filename) { boolean retVal = load_0(nativeObj, filename); return retVal; }
/** * <p>Saves the model to a file.</p> * * <p>The method <code>save</code> saves the complete model state to the specified * XML or YAML file with the specified name or default name (which depends on a * particular class). *Data persistence* functionality from <code>CxCore</code> * is used.</p> * * @param filename a filename * @param name a name * * @see <a href="http://docs.opencv.org/modules/ml/doc/statistical_models.html#cvstatmodel-save">org.opencv.ml.CvStatModel.save</a> */ public void save(String filename, String name) { save_0(nativeObj, filename, name); return; }
public void read(String fileName) { read_0(nativeObj, fileName); return; }