Java 类java.lang.String 实例源码

项目:nightclazz-graphql    文件:SearchQuery.java   
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;
}
项目:SeWebDriver_Homework    文件:CountriesSortingTest.java   
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!");
    }
}
项目:GitHub    文件:NonPrivateFieldsAndAccessorsFieldDetectionPolicyModel$$JsonObjectMapper.java   
@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;
}
项目:GitHub    文件:LowerCaseNamingPolicyModel$$JsonObjectMapper.java   
@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;
}
项目:Microsphere    文件:Imgcodecs.java   
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;
}
项目:android-imaging-utils    文件:Net.java   
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;
}
项目:WeatherStream    文件:Sys_Table.java   
@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");
    }
  }
}
项目:Android-Code-Demos    文件:Imgcodecs.java   
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;
}
项目:FTC2016    文件:Imgcodecs.java   
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;
}
项目:spring-jdbc-orm    文件:FreightDaoParams.java   
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();
}
项目:NotifyTools    文件:Imgcodecs.java   
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;
}
项目:Pogamut3    文件:ClassCrawler.java   
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.");
}
项目:java-tools    文件:CoreTypes.java   
public static byte[] parseBase64Binary(String s) throws Exception
{
    return Base64.decode(s.replaceAll("\\s", ""));
}
项目:java-tools    文件:CoreTypes.java   
public static DateTime parseGMonth(String s)
{
    return castToDateTime(s);
}
项目:nightclazz-graphql    文件:SearchQuery.java   
public @Nullable String city() {
  return this.city;
}
项目:NotifyTools    文件:FeatureDetector.java   
public  void write(String fileName)
{

    write_0(nativeObj, fileName);

    return;
}
项目:nightclazz-graphql    文件:SearchQuery.java   
public @Nonnull String __typename() {
  return this.__typename;
}
项目:Reer    文件:MyMain.java   
public static void main(String... args){
    new MyMain().someMethod();
}
项目:nightclazz-graphql    文件:SearchQuery.java   
public @Nullable String provider() {
  return this.provider;
}
项目:spring-jdbc-orm    文件:Freight.java   
public String getCountryShortEn(){
    return countryShortEn;
}
项目:XamarinForms-Encryption    文件:MonoPackageManager.java   
public static String getApiPackageName ()
{
    return MonoPackageManager_Resources.ApiPackageName;
}
项目:WeatherStream    文件:Weather_Table.java   
@Override
public final String getUpdateStatementQuery() {
  return "UPDATE `WeatherDescription` SET `wId`=?,`id`=?,`icon`=?,`description`=?,`main`=? WHERE `wId`=?";
}
项目:Pogamut3    文件:ClassCrawler.java   
@Override
public String getDescription() {
    return "Competence is an inner tree of posh decision tree.";
}
项目:Summer    文件:ProtocolDataClass.java   
public static String getClassNameForPackage(String simpleName) {
    return packageName + "." + simpleName;
}
项目:powsybl-core    文件:Version.java   
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;
}
项目:java-tools    文件:CoreTypes.java   
public static DateTime parseGYear(String s)
{
    return castToDateTime(s);
}
项目:WeatherStream    文件:Coord_Table.java   
@Override
public final String getUpdateStatementQuery() {
  return "UPDATE `CoordWeather` SET `id`=?,`lon`=?,`lat`=? WHERE `id`=?";
}
项目:nightclazz-graphql    文件:SearchQuery.java   
public @Nullable String generation() {
  return this.generation;
}
项目:react-native-cafe-bazaar    文件:Inventory.java   
/** Returns a list of all owned product IDs. */
public List<String> getAllOwnedSkus() {
    return new ArrayList<String>(mPurchaseMap.keySet());
}
项目:PIQEDia    文件:CreateRawToMzxml.java   
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);

}
项目:GitHub    文件:Phone.java   
public Phone(String number, ByteString unknownFields) {
  super(ADAPTER, unknownFields);
  this.number = number;
}
项目:nightclazz-graphql    文件:SearchQuery.java   
public @Nonnull String __typename() {
  return this.__typename;
}
项目:nightclazz-graphql    文件:AntennaFields.java   
public @Nullable String city() {
  return this.city;
}
项目:spring-jdbc-orm    文件:Freight.java   
public String getPkId(){
    return pkId;
}
项目:PIQEDia    文件:ignore_CreateBatFiles.java   
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) {

        }

    }
项目:react-native-scan-doc    文件:Imgproc.java   
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;
}
项目:Android-Crop-Receipt    文件:Highgui.java   
/**
* <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;
   }
项目:MOAAP    文件:CascadeClassifier.java   
public  boolean load(String filename)
{

    boolean retVal = load_0(nativeObj, filename);

    return retVal;
}
项目:TinyPlanetMaker    文件:CvStatModel.java   
/**
* <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;
   }
项目:MOAAP    文件:FeatureDetector.java   
public  void read(String fileName)
{

    read_0(nativeObj, fileName);

    return;
}