query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
/ setHours takes in a number of hours and changes the value in this class.
public void setHours(double hours) { // if hours is negative, hours is 0 if (hours < 0) { this.hours = 0; } else { this.hours = hours; } // calls calculateSalary to update the salary once hours is changed calculateSalary(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setHours(int hours) {\n this.hours = hours;\n }", "public void setHours(double hours) {\r\n this.hours = hours;\r\n }", "public void setHours(int hours) {\n\t\tthis.hours = hours;\n\t}", "public final native double setHours(int hours) /*-{\n this.setHours(hours);\n return this.getTime();\n }-*/;", "public void setHours(String hours) {\n this.hours = parseHours(hours);\n }", "@Override\r\n public boolean setHours(int hours) {\r\n if(hours<0||hours>23)\r\n {\r\n return false;\r\n }\r\n calendar.set(Calendar.HOUR_OF_DAY, hours);\r\n return true;\r\n }", "public void setHours(int[] hours) {\n if (hours == null)\n hours = new int[] {};\n this.hours = hours;\n }", "public final native double setHours(int hours, int mins) /*-{\n this.setHours(hours, mins);\n return this.getTime();\n }-*/;", "public void update(int hours){\n this.setNbrHours(hours);\n }", "public final native double setHours(int hours, int mins, int secs) /*-{\n this.setHours(hours, mins, secs);\n return this.getTime();\n }-*/;", "public JobLog setHours(String hours) {\n this.hours = hours;\n return this;\n }", "public void setHour(int nHour) { m_nTimeHour = nHour; }", "public void setHour(int hour)\n {\n this.hour = hour;\n }", "public Time4 setHour( int hour ) \r\n { \r\n this.hour = ( hour >= 0 && hour < 24 ? hour : 0 ); \r\n\r\n return this; // enables chaining\r\n }", "public void setHour(int hour) \n { \n if (hour < 0 || hour >= 24)\n throw new IllegalArgumentException(\"hour must be 0-23\");\n\n this.hour = hour;\n }", "public void setHour(int hour){\n if(hour < 0 || hour > 23) {System.out.println(\"wrong input!\"); return;}\n this.hour = hour;\n }", "public void setHours(int x, double h) {\r\n hours[x] = h;\r\n }", "public void setHours(double hoursWorked){\n if ((hoursWorked >= 0.0) && (hoursWorked <= 168.0))\n hours = hoursWorked;\n else\n throw new IllegalArgumentException(\"Hours worked must be >= 0 and <= 168\");\n }", "void updateTaskHours(int id, float hours);", "public final native double setHours(int hours, int mins, int secs, int ms) /*-{\n this.setHours(hours, mins, secs, ms);\n return this.getTime();\n }-*/;", "public void setSleepHour(int hours) {\n\t\tif (hours >= 0)\n\t\t\tsleepHours = hours;\n\t\telse\n\t\t\tsleepHours = -1;\n\t}", "public void setHour(Integer hour) {\n this.hour = hour;\n }", "public void setAditionalNightHours(int hours){\r\n\t this.addings = (double)(40*hours);\r\n }", "public void setOccupiedHours(int hours){\n \t\tif(hours > 0 && hours*60 > 0)\n \t\t\tsetOccupiedMinutes(hours*60);\n \t}", "public void setHour(int newHour) {\n hour = newHour; // sets the appointment's hour to the input in military time\n }", "public void setHour(int hour) {\n\t\tthis.hour = hour;\n\t}", "public void setHour(int hour) throws BlablakidException {\n\t\tif(checkTime(hour,this.minutes)==false) {\n\t\t\tthrow new BlablakidException(\"The hour introduced is wrong : \"+hour);\n\t\t}\n\t\telse {\n\t\tthis.hour = hour;\n\t\t}\n\t}", "public final native double setUTCHours(int hours) /*-{\n this.setUTCHours(hours);\n return this.getTime();\n }-*/;", "public void setHoursWorked ( int hours) {\n\t\tthis.hoursWrkd = hours;\n\t}", "public void setHours(int noOfHours2) {\n\t\t\tthis.noOfHours=noOfHours2;\r\n\t\t\t\r\n\t\t}", "public boolean setHours(int value) {\r\n if (!FormatUtils.uint8RangeCheck(value)) {\r\n return false;\r\n }\r\n mHours = FormatUtils.intToUint8(value);\r\n updateGattCharacteristic();\r\n return true;\r\n }", "public void setHour(int hour) throws InvalidDateException {\r\n\t\tif (hour < 24 & hour >= 0) {\r\n\t\t\tthis.hour = hour;\r\n\t\t} else {\r\n\t\t\tthrow new InvalidDateException(\"Please enter a realistic hour for the date (between 0 and 23) !\");\r\n\t\t}\r\n\t}", "public void setHour(Pair<Double, Double> value) {\r\n\t\thour = value;\r\n\t}", "public WorkHours() {\n //default if not yet initialised\n this._startingHour=0.00;\n this._endingHour=0.00;\n }", "public int setNumHours(int num_hours) {\n\t\tif (isValidHours(num_hours)) {\n\t\t\tthis.num_hours = num_hours;\n\t\t\tsuper.resetPaid();\n\t\t}\n\t\treturn this.num_hours;\n\t}", "public void setCreditHours(int creditHours) {\n this.creditHours = creditHours;\n }", "public void setHoursWorked(double hoursWorked){\r\n\t\t// populate the owned hoursWorked from the given \r\n\t\t// function parameter\r\n\t\t\r\n\t\tthis.hoursWorked = hoursWorked;\r\n\t}", "public static void setHour(String HourString) {\n\t\thour = HourString;\n\t}", "public static final Function<Date,Date> setHour(final int value) {\r\n return new Set(Calendar.HOUR, value);\r\n }", "public void setTime(int hour, int minute, int second){\r\n this.hour = hour ; /*when it was hour,minutes,second it was a new variable for this function bt as we used this.It gained access to the global ones. */\r\n this.minute = minute; \r\n this.second = second;\r\n }", "public final native double setUTCHours(int hours, int mins) /*-{\n this.setUTCHours(hours, mins);\n return this.getTime();\n }-*/;", "public Time4( int hour ) \r\n { \r\n this.setTime( hour, 0, 0 ); \r\n }", "public void setTime(String newHour) { // setTime sets the appointment's hour in standard time\n \n // this divides the newHour string into the hour part and the 'am'/'pm' part\n int timeHour = Integer.parseInt(newHour.substring(0, newHour.length()-2)); // the number of the hour\n String timeAmPm = newHour.substring(newHour.length()-2); // whether it is 'am' or 'pm'\n\n // 4 possible cases exist and are handled in this order:\n // 1. after midnight/before noon\n // 2. midnight (12am)\n // 3. noon (12pm)\n // 4. afternoon\n if(timeAmPm.equalsIgnoreCase(\"am\") && timeHour != 12) {\n this.hour = timeHour;\n }\n else if(timeAmPm.equalsIgnoreCase(\"am\")) {\n this.hour = 0;\n }\n else if(timeHour == 12){\n this.hour = timeHour;\n }\n else {\n this.hour = timeHour + 12;\n }\n }", "public Time(int hours, int minutes) {\n this.hours = hours;\n this.minutes = minutes;\n }", "public void setWorkingHour (int newWorkingHour) {\n this.workingHour = newWorkingHour;\n }", "public static void setExpiresHours(@NotNull HttpServletResponse response, int hours) {\n Date expiresDate = DateUtils.addHours(new Date(), hours);\n setExpires(response, expiresDate);\n }", "public Builder setStartHour(int value) {\n \n startHour_ = value;\n onChanged();\n return this;\n }", "public void workedOnTODO(int hours){\n\t\ttimeAllocated -=hours;\n\t}", "private void setTime(int hour, int minute){\n Calendar calendar = Calendar.getInstance();\n calendar.set(Calendar.HOUR_OF_DAY, hour);\n calendar.set(Calendar.MINUTE, minute);\n\n persistLong(calendar.getTimeInMillis());\n\n notifyChanged();\n notifyDependencyChange(shouldDisableDependents());\n }", "public void setHour(int hour) {\n/* 51 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void setMinHours(int minHours) throws IllegalHoursException {\r\n if (minHours < 0 || Double.isNaN(minHours)){\r\n throw new IllegalHoursException();\r\n }\r\n this.minHours = minHours;\r\n }", "public void setWorkHours(String workHours) {\r\n\t\tthis.workHours = workHours;\r\n\t}", "public void setEstimatedHours(java.lang.Object estimatedHours) {\n this.estimatedHours = estimatedHours;\n }", "public void addBack(int hours){\n\t\ttimeAllocated+=hours;\n\t}", "public void sethourNeed(Integer h){hourNeed=h;}", "public void setEHour(int ehour)\r\n\t{\r\n\t\tthis.ehour = ehour;\r\n\t}", "public void increaseHour() {\n\t\tthis.total++;\n\t}", "public Builder setFinishHour(int value) {\n \n finishHour_ = value;\n onChanged();\n return this;\n }", "public void letTimePass(int numHours) throws IllegalArgumentException{\r\n if(numHours < 0){\r\n throw new IllegalArgumentException(\"The number of hours to decrease is non-negative\");\r\n }\r\n else{\r\n for(Auction auctions: values()){\r\n auctions.decrementTimeRemaining(numHours); \r\n }\r\n }\r\n }", "public Builder setHour(final int hour) {\n this.hour = hour;\n return this;\n }", "public final native double setUTCHours(int hours, int mins, int secs) /*-{\n this.setUTCHours(hours, mins, secs);\n return this.getTime();\n }-*/;", "@Test\n public void setNumberOfHoursTest() {\n e1.setNumberOfHours(200);\n int expected = 200;\n\n assertEquals(\"The expected new number of hours does not match the actual: \"\n , expected, e1.getNumberOfHours());\n }", "public double getHours() {\r\n return hours;\r\n }", "public double getHours() {\r\n return hours;\r\n }", "public boolean setHour(double newHour) {\n\t\tthis.hour = newHour;\n\t\tthis.jd = swe_julday(this.year, this.month, this.day, this.hour, this.calType);\n\t\treturn true;\n\t}", "public void setOne(int day, int hour, Integer newValue) {\r\n weekData[day][hour] = newValue;\r\n }", "public int getHours() {\n return this.hours;\n }", "public void add(int hours, int minutes) {\n\t\tthis.hours += hours;\n\t\tthis.minutes += minutes;\n\n\t\t// convert each 60 minutes into one hour\n\t\tthis.hours += this.minutes / 60;\n\t\tthis.minutes = this.minutes % 60;\n\t}", "public void updateChangedTime(int hour, int minute);", "public double getHours(){\n return hours;\n }", "public void recordHoursWorked(double hrsWorked){\r\n if(hrsWorked<1 || hrsWorked<16)\r\n hoursWorked+=hrsWorked;\r\n else\r\n throw new IllegalArgumentException(\"Hours must be between 1-16 hours\");\r\n }", "public void setHour(int r1) throws java.lang.IllegalArgumentException {\n /*\n // Can't load method instructions: Load method exception: null in method: gov.nist.javax.sip.header.SIPDate.setHour(int):void, dex: in method: gov.nist.javax.sip.header.SIPDate.setHour(int):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: gov.nist.javax.sip.header.SIPDate.setHour(int):void\");\n }", "public TimeSpan(int hours, int minutes) {\n\t\tthis.hours = 0;\n\t\tthis.minutes = 0;\n\t\tadd(hours, minutes);\n\t}", "public int getHour() { return this.hour; }", "public void addHoursToVolunteer(int volunteerID, String guildName, int hours) throws DALException {\n Date date = new Date();\n facadeDAO.addHoursToVolunteer(volunteerID, guildName, date, hours);\n }", "public void setTime(int hour, int minute, int second)\r\n\t{\r\n\t\tHours.setValue(hour);\r\n\t\tMinutes.setValue(minute);\r\n\t\tSeconds.setValue(second);\r\n\t\t\r\n\t\tupdateTime();\r\n\t}", "private static void updateTime(int hours, int mins) {\n String timeSet;\n if (hours > 12) {\n hours -= 12;\n timeSet = \"PM\";\n } else if (hours == 0) {\n hours += 12;\n timeSet = \"AM\";\n } else if (hours == 12)\n timeSet = \"PM\";\n else\n timeSet = \"AM\";\n\n String minutes;\n if (mins < 10)\n minutes = \"0\" + mins;\n else\n minutes = String.valueOf(mins);\n\n // Append the time to a stringBuilder\n String theTime = String.valueOf(hours) + ':' + minutes + \" \" + timeSet;\n\n // Set the timePickButton as the converted time\n timePickButton.setText(theTime);\n\n }", "public Builder byHour(Collection<Integer> hours) {\n\t\t\tthis.byHour.addAll(hours);\n\t\t\treturn this;\n\t\t}", "public DateHour(int year, int month, int day, int hour)\n\t{\n\t\tm_year = year;\n\t\tm_month = month;\n\t\tm_day = day;\n\t\tm_hour = hour;\n\t}", "public void setCreditHours(String creditHours) {\n\t\tthis.creditHours = creditHours;\n\t}", "public final native int getHours() /*-{\n return this.getHours();\n }-*/;", "public Builder setKeepPropertiesHistoryInHours(io.dstore.values.IntegerValue value) {\n if (keepPropertiesHistoryInHoursBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n keepPropertiesHistoryInHours_ = value;\n onChanged();\n } else {\n keepPropertiesHistoryInHoursBuilder_.setMessage(value);\n }\n\n return this;\n }", "public String getHours();", "public Builder byHour(Integer... hours) {\n\t\t\treturn byHour(Arrays.asList(hours));\n\t\t}", "public void advanceHour(long hour) {\n clock = Clock.offset(clock, Duration.ofHours(hour));\n }", "public InactivityTimeout hours(int n) {\n millis += 60 * 60 * n * 1000;\n return this;\n }", "public Time( int hour, int minute ) {\n this( hour * MINS_PER_HR + minute );\n }", "private void loadHours(){\n int hours = 0;\n int minutes = 0;\n for(int i=0; i<24;i++){\n for(int j=0; j<4;j++){\n this.hoursOfTheDay.add(String.format(\"%02d\",hours)+\":\"+ String.format(\"%02d\",minutes));\n minutes+=15;\n }\n hours++;\n minutes = 0;\n }\n }", "public MyTime(int hours, int minutes, int seconds){\n\t\tsetHours(hours);\n\t\tsetMinute(minutes);\n\t\tsetSeconds(seconds);\n\t}", "public void setNameRateHours(String first, String last,\r\n\tdouble rate, double hours)\r\n\t{\r\n\tsetName(first, last);\r\n\tpayRate = rate;\r\n\thoursWorked = hours;\r\n\t}", "public void addHours (int moreHours)\r\n{\r\nhoursWorked += moreHours;\r\n//IMPLEMENT THIS\r\n}", "public final native double setUTCHours(int hours, int mins, int secs, int ms) /*-{\n this.setUTCHours(hours, mins, secs, ms);\n return this.getTime();\n }-*/;", "void setTime(final int time);", "public void setHourlyRate(double hr)\n\t{\n\t\thourlyRate = hr;\n\t}", "public void setPriceperhour(int priceperhour) {\n this.priceperhour = priceperhour;\n }", "public static Date setDateHours(Date date, int hours, TimeZone timeZone, Locale locale) {\r\n\t\tCalendar cal = getCalendar(null, locale);\r\n\t\tcal.setTime(date);\r\n\t\tif (timeZone != null)\r\n\t\t\tcal.setTimeZone(timeZone);\r\n\t\tcal.set(Calendar.HOUR_OF_DAY, hours);\r\n\t\treturn cal.getTime();\r\n\t}", "protected Time(int hours, int minutes, int seconds) {\n\t\tthis();\n\t\tthis.hours = hours;\n\t\tthis.minutes = minutes;\n\t\tthis.seconds = seconds;\n\t}", "private void hours(){\n \n companyDriver.startHourStage();\n this.close();\n }", "public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n\n time = 3600 * hour + 60 * minute;\n\n\n }", "public HourlyWorker() {\n\t\tthis.num_hours = 1;\n\t\tthis.hourly_rate = 0.01;\n\t}" ]
[ "0.86080426", "0.8550554", "0.84580237", "0.8189267", "0.812148", "0.79304314", "0.77897227", "0.7690417", "0.7604701", "0.7582564", "0.7467344", "0.73999894", "0.7361184", "0.73319507", "0.7325685", "0.7284696", "0.72845745", "0.7281428", "0.7255354", "0.7220082", "0.7213823", "0.71705574", "0.70925933", "0.70830005", "0.70389676", "0.7028893", "0.69477487", "0.69451016", "0.6939869", "0.69117993", "0.6877862", "0.6728051", "0.6721563", "0.6688092", "0.66556084", "0.6630445", "0.65500754", "0.65450317", "0.6521186", "0.64782166", "0.6475033", "0.6411185", "0.6408659", "0.63842857", "0.63607955", "0.63475186", "0.6344035", "0.63388807", "0.6295202", "0.6295089", "0.6260859", "0.6256819", "0.6232828", "0.6224221", "0.6215445", "0.6203803", "0.6193924", "0.61884296", "0.6182264", "0.61330193", "0.6105196", "0.60913014", "0.6079215", "0.6079215", "0.60575837", "0.6051113", "0.6045274", "0.60269934", "0.6010536", "0.5961372", "0.5957229", "0.59540683", "0.5942491", "0.593127", "0.5930246", "0.5890824", "0.5884551", "0.5870696", "0.5853526", "0.58378273", "0.5837361", "0.5814323", "0.58087784", "0.5781981", "0.5772829", "0.57619005", "0.5758019", "0.57297313", "0.57289726", "0.5727213", "0.572541", "0.5723941", "0.57168645", "0.5692835", "0.5685592", "0.567632", "0.5637861", "0.5624922", "0.56116563", "0.55956846" ]
0.80615896
5
/ setHourlyRate takes in an hourlyRate and changes the value in this class.
public void setHourlyRate (double hourlyRate) { // if hourlyRate is negative, hourlyRate is 0 if (hourlyRate < 0) { this.hourlyRate = 0; } else { this.hourlyRate = hourlyRate; } // calls calculateSalary to update the salary once hourlyRate is changed calculateSalary(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setHourlyRate(double hr)\n\t{\n\t\thourlyRate = hr;\n\t}", "public void setHourlyRate(double rate) {\n\t\tthis.hourlyRate = rate;\n\t}", "public final void setHourlyRate(double hourlyRate) {\n if(hourlyRate < 0 || hourlyRate > 500) {\n throw new IllegalArgumentException();\n }\n this.hourlyRate = hourlyRate;\n }", "public void setHourly_rate(String hourly_rate) {\r\n TextView rate = (TextView) mView.findViewById(R.id.current_bid_price);\r\n rate.setText(\"$\"+hourly_rate +\"per/hr\");\r\n\r\n }", "public void setHourlyRate(double newPayRate){\r\n if(newPayRate>=MINIMUMWAGE)\r\n hourlyRate = newPayRate;\r\n else\r\n throw new IllegalArgumentException(\"The hourly rate must be greater than or equal to\"+MINIMUMWAGE);\r\n }", "public void setHourlyRecurrence(com.exacttarget.wsdl.partnerapi.HourlyRecurrence hourlyRecurrence)\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.exacttarget.wsdl.partnerapi.HourlyRecurrence target = null;\n target = (com.exacttarget.wsdl.partnerapi.HourlyRecurrence)get_store().find_element_user(HOURLYRECURRENCE$0, 0);\n if (target == null)\n {\n target = (com.exacttarget.wsdl.partnerapi.HourlyRecurrence)get_store().add_element_user(HOURLYRECURRENCE$0);\n }\n target.set(hourlyRecurrence);\n }\n }", "public double getHourlyRate() {\r\n return hourlyRate;\r\n }", "public double getHourlyRate() {\r\n return hourlyRate;\r\n }", "public double getHourlyRate()\n\t{\n\t\treturn hourlyRate;\n\t}", "public double getHourlyRate() {\n return hourlyRate;\n }", "public double getHourlyRate () {\n\t\treturn this.hourlyRate;\n\t}", "public void setHour(int hour)\n {\n this.hour = hour;\n }", "public void setHours(double hours) {\r\n // if hours is negative, hours is 0\r\n if (hours < 0) {\r\n this.hours = 0;\r\n }\r\n else {\r\n this.hours = hours;\r\n }\r\n // calls calculateSalary to update the salary once hours is changed\r\n calculateSalary();\r\n }", "public void setWage(double hourlyWage){\n if (hourlyWage >= 0)\n wage = hourlyWage;\n else\n throw new IllegalArgumentException(\"Hourly wage must be >= 0\");\n }", "public HourlyWorker() {\n\t\tthis.num_hours = 1;\n\t\tthis.hourly_rate = 0.01;\n\t}", "public void setNameRateHours(String first, String last,\r\n\tdouble rate, double hours)\r\n\t{\r\n\tsetName(first, last);\r\n\tpayRate = rate;\r\n\thoursWorked = hours;\r\n\t}", "public void setHour(int hour) {\n\t\tthis.hour = hour;\n\t}", "public void setHours(double hours) {\r\n this.hours = hours;\r\n }", "public void addToHeartrate(\tString hr )\r\n\t{\n\t\theartRates.add(validateInteger( hr, \"heartrate\" ) );\r\n\t}", "@Override\n\tpublic Money hourlyCostRate() {\n\t\treturn costRate().hourly();\n\t}", "public void setHour(Integer hour) {\n this.hour = hour;\n }", "public void setHour(int hour) \n { \n if (hour < 0 || hour >= 24)\n throw new IllegalArgumentException(\"hour must be 0-23\");\n\n this.hour = hour;\n }", "public void setHour(int hour) throws BlablakidException {\n\t\tif(checkTime(hour,this.minutes)==false) {\n\t\t\tthrow new BlablakidException(\"The hour introduced is wrong : \"+hour);\n\t\t}\n\t\telse {\n\t\tthis.hour = hour;\n\t\t}\n\t}", "public void setHour(int hour){\n if(hour < 0 || hour > 23) {System.out.println(\"wrong input!\"); return;}\n this.hour = hour;\n }", "public HourlyWorker(String name, int age, int year_hired, int num_hours, double hourly_rate) {\n\t\tsuper(name, age, year_hired);\n\t\tthis.num_hours = 1;\n\t\tthis.hourly_rate = 0.01;\n\t\tif (isValidHours(num_hours) && isValidRate(hourly_rate)) {\n\t\t\tthis.num_hours = num_hours;\n\t\t\tthis.hourly_rate = hourly_rate;\n\t\t}\n\t}", "public void setHour(Pair<Double, Double> value) {\r\n\t\thour = value;\r\n\t}", "public HourlyWorker (String fName, String lName, String empID, double hours, double hourlyRate) {\r\n super (fName, lName, empID);\r\n setHours(hours);\r\n setHourlyRate(hourlyRate);\r\n calculateSalary();\r\n }", "public void setPerHour(double perHour) {\r\n if (perHour < 0 || Double.isNaN(perHour)){\r\n throw new IllegalArgumentException();\r\n }\r\n this.perHour = perHour;\r\n }", "public void setPriceperhour(int priceperhour) {\n this.priceperhour = priceperhour;\n }", "@Override\n public void heartRate(int valueHr, int timestamp) {\n }", "public void setInterest(double rate)\n {\n interestRate = rate;\n }", "public static void modifyInterestRate(double interestRate){\n annualInterestRate = interestRate;\n }", "public void setRate();", "public void setHour(int nHour) { m_nTimeHour = nHour; }", "public void setHrNum(Double hrNum) {\n\t\tthis.hrNum = hrNum;\n\t\tvalidateParameter();\n\t\t//return this;\n\t}", "public void setExchRate(double exchRate) {\n _exchRate = exchRate;\n }", "public void setHours(int x, double h) {\r\n hours[x] = h;\r\n }", "public void setRate(Integer rate) {\r\n this.rate = rate;\r\n }", "public abstract void setRate();", "private void setTime(int hour, int minute){\n Calendar calendar = Calendar.getInstance();\n calendar.set(Calendar.HOUR_OF_DAY, hour);\n calendar.set(Calendar.MINUTE, minute);\n\n persistLong(calendar.getTimeInMillis());\n\n notifyChanged();\n notifyDependencyChange(shouldDisableDependents());\n }", "public static void setHour(String HourString) {\n\t\thour = HourString;\n\t}", "public void setHour(int newHour) {\n hour = newHour; // sets the appointment's hour to the input in military time\n }", "public void setFeePerCreditHour(double feePerCreditHour) {\n this.feePerCreditHour = feePerCreditHour;\n }", "public void setHours(int hours) {\n this.hours = hours;\n }", "public void setRate(int rate) { this.rate = rate; }", "public void setClockRate(double clockRate) {\r\n CompUtils.checkLessThanEqZero(clockRate);\r\n this.clockRate = clockRate;\r\n }", "public void setDefaultOvertimeRate(Rate rate)\r\n {\r\n m_defaultOvertimeRate = rate;\r\n }", "public void setTurnRate (float rate)\n {\n if (rate > 0) {\n _turnRate = rate;\n } else {\n clearTurnRate();\n }\n }", "public void setHours(int hours) {\n\t\tthis.hours = hours;\n\t}", "public void setHours(int[] hours) {\n if (hours == null)\n hours = new int[] {};\n this.hours = hours;\n }", "public void setRate(double annualRate) {\nmonthlyInterestRate = annualRate / 100.0 / MONTHS;\n}", "public void setInterestRate(double interestRate) {\n this.interestRate = interestRate;\n }", "public void setOvertimeHourlyWage(int overtimeHourlyWage) {\n this.overtimeHourlyWage = overtimeHourlyWage;\n }", "public Time4 setHour( int hour ) \r\n { \r\n this.hour = ( hour >= 0 && hour < 24 ? hour : 0 ); \r\n\r\n return this; // enables chaining\r\n }", "public void setHours(double hoursWorked){\n if ((hoursWorked >= 0.0) && (hoursWorked <= 168.0))\n hours = hoursWorked;\n else\n throw new IllegalArgumentException(\"Hours worked must be >= 0 and <= 168\");\n }", "public void setTime(int hour, int minute, int second){\r\n this.hour = hour ; /*when it was hour,minutes,second it was a new variable for this function bt as we used this.It gained access to the global ones. */\r\n this.minute = minute; \r\n this.second = second;\r\n }", "public void setStarvationRate ( int ticks ) {\n\t\texecute ( handle -> handle.setStarvationRate ( ticks ) );\n\t}", "public void updateChangedTime(int hour, int minute);", "public void setHour(int hour) throws InvalidDateException {\r\n\t\tif (hour < 24 & hour >= 0) {\r\n\t\t\tthis.hour = hour;\r\n\t\t} else {\r\n\t\t\tthrow new InvalidDateException(\"Please enter a realistic hour for the date (between 0 and 23) !\");\r\n\t\t}\r\n\t}", "public void setCreditHours(int creditHours) {\n this.creditHours = creditHours;\n }", "public final native double setHours(int hours) /*-{\n this.setHours(hours);\n return this.getTime();\n }-*/;", "public void setRate(double newRate) {\n this.rate = newRate;\n }", "public void setAditionalNightHours(int hours){\r\n\t this.addings = (double)(40*hours);\r\n }", "private static void hourlyEmployeeEarningReport(final HourlyEmployee hourlyEmployee) {\r\n\t\tSystem.out.format(\"%s\\t\\t\\t%s\\n\", \"Name\", \"Weekly Pay Amount\");\r\n\t\tSystem.out.println(\"====================================================================\");\r\n\t\tfinal StringBuilder employeeName = new StringBuilder();\r\n\t\temployeeName.append(hourlyEmployee.getFirstName()).append(\" \").append(hourlyEmployee.getLastName());\r\n\r\n\t\tdouble weeklyPayAmount = 40 * hourlyEmployee.getHourlyRate();\r\n\r\n\t\t// Rate will be doubled if it’s beyond 40 hours/week.\r\n\t\tif (hourlyEmployee.getWeeklyWorkedHours() > 40) {\r\n\t\t\tdouble overtime = hourlyEmployee.getWeeklyWorkedHours() - 40;\r\n\t\t\tdouble overtimePay = overtime * (hourlyEmployee.getHourlyRate() * 2);\r\n\t\t\tweeklyPayAmount += overtimePay;\r\n\t\t}\r\n\r\n\t\tfinal NumberFormat formatter = NumberFormat.getCurrencyInstance();\r\n\t\tSystem.out.format(\"%s\\t\\t\\t%s\", employeeName.toString(), formatter.format(weeklyPayAmount));\r\n\t}", "public Employee(String firstName, String secondName, double hourlyRate){\n\t\tthis.firstName = firstName;\n\t\tthis.secondName = secondName;\n\t\tthis.hourlyRate = hourlyRate;\n\t\t\n\t}", "ExchangeRate saveOrUpdate(ExchangeRate rate);", "public void setHours(String hours) {\n this.hours = parseHours(hours);\n }", "public void setRegularHourlyWage(int regularHourlyWage) {\n this.regularHourlyWage = regularHourlyWage;\n }", "public void setMaxHour(Integer maxHour) {\r\n this.maxHour = maxHour;\r\n }", "public void setHoursWorked(double hoursWorked){\r\n\t\t// populate the owned hoursWorked from the given \r\n\t\t// function parameter\r\n\t\t\r\n\t\tthis.hoursWorked = hoursWorked;\r\n\t}", "private void setHighScoreTime(String hst) {\n setStringStat(hst, highScoreTime);\n }", "public void setTime(int hour, int minute, int second)\r\n\t{\r\n\t\tHours.setValue(hour);\r\n\t\tMinutes.setValue(minute);\r\n\t\tSeconds.setValue(second);\r\n\t\t\r\n\t\tupdateTime();\r\n\t}", "private void setHighScore(int hs) {\n setStat(hs, highScore);\n }", "@Deprecated\n/* */ public void setCurrentHour(@RecentlyNonNull Integer currentHour) {\n/* 89 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void setHour(int hour) {\n/* 51 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void setInterestRate(double newInterestRate)\n {\n if (!(newInterestRate >= 0.0))\n {\n System.err.println(\"Interest rate must be positive.\");\n }\n else\n {\n this.interestRate = newInterestRate;\n }\n }", "public void setExchangeRate(ExchangeRateVO exchangeRateVO)\n throws RemoteException, ExchangeRateException;", "public void setRate(float rate) {\n\t\tthis.rate = rate;\n\t}", "public void setHightPrice(final float newHightPrice)\r\n{\r\n\tthis.hightPrice = newHightPrice;\r\n}", "public HourlyWorker () {\r\n super ();\r\n hours = -1;\r\n hourlyRate = -1;\r\n salary = -1;\r\n }", "public final native double setHours(int hours, int mins) /*-{\n this.setHours(hours, mins);\n return this.getTime();\n }-*/;", "private void setHeartRateMonitor()\n {\n\n Calendar cal = Calendar.getInstance();\n Date now = new Date();\n cal.setTime(now);\n\n long alarm_time = cal.getTimeInMillis();\n\n// if(cal.before(Calendar.getInstance()))\n// alarm_time += 60*1000;\n\n AlarmManager alarmManager = (AlarmManager) getSystemService(Context.ALARM_SERVICE);\n\n Intent intent = new Intent(this, HeartRateMonitor.class);\n\n PendingIntent pendingIntent = PendingIntent.getBroadcast(this, HEART_RATE_MONITOR_REQUEST_CODE, intent,PendingIntent.FLAG_UPDATE_CURRENT);\n\n alarmManager.setRepeating(AlarmManager.RTC_WAKEUP, alarm_time,90000, pendingIntent);\n\n Log.i(\"hrmonitor\",\"hrmonitor alarm set\");\n }", "public void increaseHour() {\n\t\tthis.total++;\n\t}", "public static void newHighscore(int h){\n highscore = h;\n SharedPreferences prefs = cont.getSharedPreferences(\"PAFF_SETTINGS\", Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = prefs.edit();\n editor.putInt(\"highscore\",highscore);\n editor.commit();\n }", "public void setAbsorbtionRatePerMinute(double r) {\n this.absorbtionRatePerMinute = r;\n }", "public Hourly (String eName, String eAddress, String ePhone,\r\nString socSecNumber, double rate)\r\n{\r\nsuper(eName, eAddress, ePhone, socSecNumber, rate);\r\n//IMPLEMENT THIS\r\n}", "public static void setBeatsPerMinute(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, java.lang.Integer value) {\r\n\t\tBase.set(model, instanceResource, BEATSPERMINUTE, value);\r\n\t}", "public boolean setHour(double newHour) {\n\t\tthis.hour = newHour;\n\t\tthis.jd = swe_julday(this.year, this.month, this.day, this.hour, this.calType);\n\t\treturn true;\n\t}", "public void setBitRate(Integer bitRate) {\n this.bitRate = bitRate;\n }", "public void setAnnualInterestRate(double annualInterestRate) {\n this.annualInterestRate = annualInterestRate;\n }", "public void setAnnualInterestRate(double annualInterestRate) {\n this.annualInterestRate = annualInterestRate;\n }", "public void update(int hours){\n this.setNbrHours(hours);\n }", "public static void updatePayRate(Statement stmt, String empID, double payRate) throws SQLException{\r\n //create an update statement to update the payrate\r\n //for the specified employee ID\r\n String sqlStatement = \"UPDATE Employee \" +\r\n \"SET HOURLYPAYRATE = \" + Double.toString(payRate) +\r\n \"WHERE EmpID = '\" + empID + \"'\";\r\n\r\n //Send the UPDATE statement to the DBMS\r\n int rows = stmt.executeUpdate(sqlStatement);\r\n\r\n //display the results\r\n System.out.println(rows + \" row(s) updated.\");\r\n }", "public void sethourNeed(Integer h){hourNeed=h;}", "public static void setBeatsPerMinute( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(model, instanceResource, BEATSPERMINUTE, value);\r\n\t}", "public void advanceHour(long hour) {\n clock = Clock.offset(clock, Duration.ofHours(hour));\n }", "public int getEmpRatePerHour()\t{\n\t\treturn EMP_RATE_PER_HOUR;\n\t}", "public void changeHighest()\n {\n hourCounts[18] = 100;\n }", "public Builder setHour(final int hour) {\n this.hour = hour;\n return this;\n }", "public void setFrameRate(Integer frameRate) {\n this.frameRate = frameRate;\n }" ]
[ "0.8471583", "0.8265672", "0.8163461", "0.723607", "0.707587", "0.69363993", "0.63214326", "0.63214326", "0.62387866", "0.623752", "0.6133119", "0.5921855", "0.58927065", "0.58912003", "0.58807904", "0.5879025", "0.58480257", "0.5813552", "0.579544", "0.5781496", "0.5775624", "0.5768917", "0.5725725", "0.5695482", "0.5694045", "0.5646579", "0.5597131", "0.5582034", "0.55787593", "0.55183196", "0.5485301", "0.54748803", "0.54618835", "0.54600424", "0.54594785", "0.545343", "0.5448518", "0.5410883", "0.5405918", "0.5400365", "0.53956574", "0.53853303", "0.53827906", "0.5377803", "0.53610194", "0.5350966", "0.53338605", "0.53204566", "0.53158516", "0.5292762", "0.52788085", "0.5257728", "0.5249997", "0.5249038", "0.5232263", "0.5229202", "0.5169082", "0.5162615", "0.5145041", "0.51328003", "0.5125705", "0.50663525", "0.50621766", "0.506196", "0.5052518", "0.5051892", "0.5050618", "0.5041077", "0.50324", "0.50257045", "0.5022337", "0.5000384", "0.49950886", "0.49911973", "0.4974793", "0.49630633", "0.4950354", "0.49423915", "0.490383", "0.49025995", "0.4898896", "0.48980486", "0.4885902", "0.48827034", "0.48757732", "0.48730144", "0.48721215", "0.4859779", "0.48587713", "0.48498964", "0.48498964", "0.48339474", "0.48324814", "0.48286498", "0.4826258", "0.4812469", "0.48111928", "0.48049387", "0.47960868", "0.47945225" ]
0.85256827
0
calculates the salary if hours or hourlyRate is negative (default constructor sets numerical values as 1) salary is set to 1
public void calculateSalary() { if (hours < 0 || hourlyRate < 0) { salary = -1; } else if (hours > 40) { salary = 40 * hourlyRate; } else { salary = hours * hourlyRate; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public double calculateSalary(){\n return this.horas_trabajadas*EmployeeByHours.VALOR_HORA;\n }", "@Override\r\n\tpublic void calculateSalary() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t salary = hoursWorked * hourlyWages;\r\n\t\t this.setSalary(salary);\r\n\t}", "@Override\n\tpublic int calculateSalary() {\n\t\treturn this.getPaymentPerHour() * this.workingHours;\n\t}", "public double earnings() {\r\n double earnings;\r\n double overtime;\r\n double overtimeRate = hourlyRate * 1.5;\r\n\r\n // if hours, hourlyRate, or salary is negative (default numerical values are -1) earnings is -1\r\n if (hours < 0 || hourlyRate < 0 || salary < 0) {\r\n earnings = -1;\r\n }\r\n else if (hours > 40) {\r\n overtime = (hours - 40) * overtimeRate;\r\n earnings = overtime + salary;\r\n }\r\n else {\r\n earnings = salary;\r\n }\r\n\r\n return earnings;\r\n }", "public void salary() {\n System.out.print(\"Wage: \");\n double wage = in.nextDouble();\n System.out.print(\"Hours: \");\n double hours = in.nextDouble();\n final double REG_HOURS = 40;\n final double OVERTIME_MULTIPLIER = 0.5;\n\n double salary = wage * hours;\n if (hours > REG_HOURS) {\n salary += (hours - REG_HOURS) * wage * OVERTIME_MULTIPLIER;\n }\n\n System.out.printf(\"\\nYou'll make $%,.2f this week.\\n\\n\", salary);\n }", "@Override\r\n public int calculateSalary()\r\n {\r\n return weeklySalary*4;\r\n }", "@Override\n\tpublic float CalculateSalary() {\n\t\treturn salary;\n\t}", "public HourlyWorker (String fName, String lName, String empID, double hours, double hourlyRate) {\r\n super (fName, lName, empID);\r\n setHours(hours);\r\n setHourlyRate(hourlyRate);\r\n calculateSalary();\r\n }", "public void setHourlyRate (double hourlyRate) {\r\n // if hourlyRate is negative, hourlyRate is 0\r\n if (hourlyRate < 0) {\r\n this.hourlyRate = 0;\r\n }\r\n else {\r\n this.hourlyRate = hourlyRate;\r\n }\r\n // calls calculateSalary to update the salary once hourlyRate is changed\r\n calculateSalary();\r\n }", "public void setSalary(double salary){\r\n this.salary = salary;\r\n }", "private double calculate(boolean salary, double employeeShift, double hrsIn, double payRate){\n\n if (salary){// --------- Salaried employee\n return payRate * hrsIn;\n }\n\n if (employeeShift == 2){\n payRate = payRate * 0.05 + payRate;// ------------ adjust payRate for 2nd shift --------\n\n }\n\n if (employeeShift == 3){\n payRate = payRate * 0.10 + payRate;// ------------ adjust payRate for 3rd shift --------\n\n }\n\n if (hrsIn <= 40) {//----------- check for overtime\n return hrsIn * payRate;//--------No O.T.\n }\n else{// ----------- Calculate O.T. rate\n double otHrs = hrsIn - 40;\n double otRate = payRate * 1.5;\n return (payRate * 40) + (otHrs * otRate);\n }\n }", "public abstract double salary();", "public HourlyWorker () {\r\n super ();\r\n hours = -1;\r\n hourlyRate = -1;\r\n salary = -1;\r\n }", "public void calculateSalary() ;", "@Override\n\tprotected double getSalary() {\n\t\treturn 0;\n\t}", "public void setSalary(double salary) {\r\n this.salary = salary;\r\n }", "public void setSalary(double salary) {\n this.salary = salary;\n }", "public void setSalary(double salary) {\n this.salary = salary;\n }", "public double salaryPay() {\n\t\treturn overtimePay() + getSalary();\n\t}", "@Test\n public void setHourlySalaryTest() {\n e1.setHourlySalary(5.0);\n double expected = 5.0;\n\n assertEquals(\"The expected new hourly salary does not match the actual: \"\n , expected, e1.getHourlySalary(), 0.001);\n }", "public void getSalary() {\n this.payDay(this.monthlyIncome);\n }", "public float calculate_salary() {\r\n\t\tfloat calculate = 1000 + this.calculate_benefits();\r\n\t\treturn calculate;\r\n\t}", "public void setSalary(double salary) {\r\n\t\tthis.salary = salary;\r\n\t}", "@Override\n\tpublic void computeSalary(int empid) {\n\t\t\n\t}", "public double calculateSalary(double hoursWorked) {\n\t\tif(hoursWorked<=getNormalWorkweek()){\n\t\t\treturn ((getHourlyRate()*(hoursWorked))+(calculateOvertime(hoursWorked)));\n\t\t}else{\n\t\t\treturn ((getHourlyRate()*(getNormalWorkweek()))+(calculateOvertime(hoursWorked)));\n\t\t}\n\t}", "public final void setSalary(float salary){\n if(salary>=0){\n this.salary=salary;\n }\n else{\n JOptionPane.showMessageDialog(null,\"Incorrect amount of salary \");\n }\n }", "@Test\n public void getHourlySalaryTest() {\n double expected = 16.0;\n\n assertEquals(\"The expected value of the hourly salary does not match the actual: \"\n , expected, e1.getHourlySalary(), .01);\n }", "@Override\n\tpublic double averageSalary() {\n\t\treturn 0;\n\t}", "public double getSalary() {\r\n return salary;\r\n }", "public Employee(String firstName, String secondName, double hourlyRate){\n\t\tthis.firstName = firstName;\n\t\tthis.secondName = secondName;\n\t\tthis.hourlyRate = hourlyRate;\n\t\t\n\t}", "public double getBiweeklySalary(){\r\n return this.employeeSalary / 26;\r\n }", "@Override\r\n public double getSalary() {\r\n return salary;\r\n }", "public void increaseSalary(double hIncrease,double hThreshold,double wIncrease,double wThreshold){\n ObjectListNode p=payroll.getFirstNode();\n Employee e;\n System.out.print(\"\\nIncreased Salaries:\\n\");\n pw.print(\"\\nIncreased Salaries:\\n\");\n while(p!=null){\n e=(Employee)p.getInfo();\n if(e.getRate()=='H'&&e.getSalary()<hThreshold){\n e.setSalary(e.getSalary()+hIncrease);\n System.out.printf(\"%s %s %.2f\\n\",e.getLastName(),e.getFirstName(),e.getSalary());\n pw.printf(\"\\n%s %s %.2f\\n\",e.getLastName(),e.getFirstName(),e.getSalary());\n }\n else if(e.getRate()=='W'&&e.getSalary()<wThreshold){\n e.setSalary(e.getSalary()+wIncrease);\n System.out.printf(\"%s %s %.2f\\n\",e.getLastName(),e.getFirstName(),e.getSalary());\n pw.printf(\"\\n%s %s %.2f\\n\",e.getLastName(),e.getFirstName(),e.getSalary());\n }\n p=p.getNext();\n }\n }", "public void setHours(double hours) {\r\n // if hours is negative, hours is 0\r\n if (hours < 0) {\r\n this.hours = 0;\r\n }\r\n else {\r\n this.hours = hours;\r\n }\r\n // calls calculateSalary to update the salary once hours is changed\r\n calculateSalary();\r\n }", "@Override\n public double getAnnualSalary() {\n return super.getAnnualSalary() + 10000;\n }", "public Employee(String firstName, String lastName, int salary, int bonus) {\n this.firstName = firstName;\n this.lastName = lastName;\n this.salary = salary;\n this.bonus = bonus;\n this.taxableSalary=this.salary+this.bonus-this.taxAllowance;\n }", "float getMonthlySalary();", "public double getSalary() {\n return salary;\n }", "public double getSalary() {\n return salary;\n }", "public double getSalary() {\n return salary;\n }", "public void setHourlyRate(double hr)\n\t{\n\t\thourlyRate = hr;\n\t}", "public double getSalary(){\r\n return salary;\r\n }", "@Override\n public double annualSalary(){\n double bonus = 0.00;\n\n if(currentStockPrice > 50){\n bonus = 30000;\n }\n\n return (super.annualSalary() + bonus);\n }", "int getSalary();", "public int annualSalary(){\r\n int aSalary = monthlySalary * MONTHS;\r\n return aSalary;\r\n }", "public void salary(int sal)\n {\n IT it = new IT();\n it.salary(sal);\n System.out.println(\"ECE Faculty: \"+(sal+4500));\n }", "public void setSalary(double sal) { //salary variable to assign a value\n\t\tsalary = sal;\n\t}", "public void salary(int sal)\n {\n CSE cse = new CSE();\n cse.salary(sal);\n System.out.println(\"IT Faculty: \"+(sal+5000));\n }", "private void increment() {\r\n salary = (int) (salary + salary * 0.2);\r\n }", "public float getAnnualSalary()\n {\n return annualSalary;\n }", "public double getSalary() {\n\t\treturn salary;\n\t}", "public double getSalary() {\r\n\t\treturn this.salary;\r\n\t}", "public void work(int hours) {\n\t\twhile(age++ < RETIREMENT_AGE) {//Method calculates total salary earned\n\n\t\tfor(int i = 1; i<=hours; i++)\n\t\t\tearned += hourlyIncome;\n\t\t\n\t\tfor(int j = 1; j<=OVERTIME; j++)\n\t\t\tearned += hourlyIncome;\n\t\t}\n\t}", "public double showSalary() {\n return super.showSalary() * 1.2;\n }", "@Override\n public double earnings() {\n if (getHours() < 40)\n return getWage() * getHours();\n else\n return 40 * getWage() + ( getHours() - 40 ) * getWage() * 1.5;\n }", "public Employee(String name, double salary){\r\n\t\tthis.employeeName = name;\r\n\t\tthis.salary = salary;\r\n\t}", "public TBasicSalary() {\n\t\tthis(\"t_basic_salary\", null);\n\t}", "public void initSalarys() {\n\t\tList ls = departmentServiceImpl.findAll(Employees.class);\n\t\temployeesList = ls;\n\t\temployeesList = employeesList.stream().filter(fdet -> \"0\".equalsIgnoreCase(fdet.getActive()))\n\t\t\t\t.collect(Collectors.toList());\n\t\ttotalSalary = new BigDecimal(0);\n\t\ttotalSalaryAfter = new BigDecimal(0);\n\n\t\tif (conId != null) {\n\t\t\temployeesList = new ArrayList<Employees>();\n\t\t\tcon = new Contracts();\n\t\t\tcon = (Contracts) departmentServiceImpl.findEntityById(Contracts.class, conId);\n\t\t\tList<ContractsEmployees> empIds = departmentServiceImpl.loadEmpByContractId(conId);\n\t\t\tfor (ContractsEmployees id : empIds) {\n\t\t\t\tEmployees emp = (Employees) departmentServiceImpl.findEntityById(Employees.class, id.getEmpId());\n\t\t\t\temployeesList.add(emp);\n\t\t\t\temployeesList = employeesList.stream().filter(fdet -> \"0\".equalsIgnoreCase(fdet.getActive()))\n\t\t\t\t\t\t.collect(Collectors.toList());\n\t\t\t}\n\n\t\t}\n\n\t\tif (enterpriseAdd != null && enterpriseAdd.size() > 0) {\n\t\t\tList<Employees> empAllList = new ArrayList<>();\n\t\t\tfor (String entId : enterpriseAdd) {\n\t\t\t\t// enterpriseId = Integer.parseInt(entId);\n\t\t\t\tList<Employees> empList = employeesList.stream()\n\t\t\t\t\t\t.filter(fdet -> fdet.getEnterpriseId().equals(Integer.parseInt(entId)))\n\t\t\t\t\t\t.collect(Collectors.toList());\n\t\t\t\tif (empList != null && empList.size() > 0) {\n\t\t\t\t\tempAllList.addAll(empList);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\temployeesList = empAllList;\n\t\t}\n\n//\t\tif (employeesList != null && employeesList.size() > 0) {\n//\t\t\tlistTotalSum = employeesList.stream().filter(fdet -> fdet.getSalary() != 0.0d)\n//\t\t\t\t\t.mapToDouble(fdet -> fdet.getSalary()).sum();\n//\t\t\ttotalSalary = new BigDecimal(listTotalSum).setScale(3, RoundingMode.HALF_UP);\n\t\t// totalSalaryAfter = totalSalary;\n//\t\t\tSystem.out.println(\"\" + totalSalary);\n//\n//\t\t}\n\t\tif (con != null) {\n\t\t\tloadSalaries();\n\t\t}\n\n//\t\tls = departmentServiceImpl.findAll(Enterprise.class);\n//\t\tenterpriseList = ls;\n\t}", "public int getSalary () {\n return salary;\n }", "public Fulltime(Profile employeeProfile, float annualSalary)\n {\n super(employeeProfile);\n\n if ( annualSalary < 0 )\n {\n throw new RuntimeException(\"Fulltime annual salary can not be negative\");\n }\n\n this.annualSalary = annualSalary;\n }", "public double getSalary() {\n\t\treturn super.getSalary() + (super.getSalary() * .20);\n\t}", "public int getSalary()\n\n\t{\n\t\treturn salary;\n\t}", "public HourlyWorker() {\n\t\tthis.num_hours = 1;\n\t\tthis.hourly_rate = 0.01;\n\t}", "public void salary(int sal)\n {\n System.out.println(\"Base Salary: \"+ sal);\n }", "public double getEarnings() {\n//\t\tif (hoursWorked > 40) {\n//\t\t\treturn (40 * hoursWorked) + \n//\t\t\t\t\t((hoursWorked - 40) * wagePerHour * 1.5);\n//\t\t} else {\n//\t\t\treturn hoursWorked * wagePerHour;\n//\t\t}\n\t\t\t\t// condition \n\t\treturn hoursWorked > 40 ? \n\t\t\t\t// condition true \n\t\t\t(40 * wagePerHour) + ((hoursWorked - 40) * wagePerHour * 1.5) \n\t\t\t\t// condition false\n\t\t\t: hoursWorked * wagePerHour;\t\n\t}", "public int getSalary() {\n return salary;\n }", "public void salary(int sal)\n {\n Faculty fac = new Faculty();\n fac.salary(sal);\n System.out.println(\"CSE Faculty: \"+(sal+3000));\n }", "public static void calculateDailyEmpWage()\n {\n\t\tint salary = 0;\n\t\tif(isPresent()){\n\t\t\tint empRatePerHr = 20;\n int PartTimeHrs = 4;\n salary = PartTimeHrs * empRatePerHr;\n\t\t\tSystem.out.println(\"Daily Part time Wage:\" +salary);\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"Daily Wage:\" +salary);\n\t\t}\n }", "@Override\n\tpublic double computeMonthlyPremium(double salary) {\n\t\treturn salary*0.08;\n\t}", "public HourlyWorker(String name, int age, int year_hired, int num_hours, double hourly_rate) {\n\t\tsuper(name, age, year_hired);\n\t\tthis.num_hours = 1;\n\t\tthis.hourly_rate = 0.01;\n\t\tif (isValidHours(num_hours) && isValidRate(hourly_rate)) {\n\t\t\tthis.num_hours = num_hours;\n\t\t\tthis.hourly_rate = hourly_rate;\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\r\n\t\tSystem.out.println(\"Enter basic salary of an employee\");\r\n\t\tint Basic_salary=sc.nextInt();\r\n\t\tif(Basic_salary<=10000) {\r\n\t\t\tdouble HRA=Basic_salary*0.2;\r\n\t\t\tdouble DA=Basic_salary*0.8;\r\n\t\t\tdouble Gross_salary=(Basic_salary+HRA+DA);\r\n\t\t\tSystem.out.println(\"HRA= \"+HRA);\r\n\t\t\tSystem.out.println(\"DA= \"+DA);\r\n\t\t\tSystem.out.println(\"Gross Salary= \"+Gross_salary);\r\n\t\t\t}\r\n\t\telse if(Basic_salary<=20000) {\r\n\t\t\tdouble HRA=Basic_salary*0.25;\r\n\t\t\tdouble DA=Basic_salary*0.9;\r\n\t\t\tdouble Gross_salary=(Basic_salary+HRA+DA);\r\n\t\t\tSystem.out.println(\"HRA= \"+HRA);\r\n\t\t\tSystem.out.println(\"DA= \"+DA);\r\n\t\t\tSystem.out.println(\"Gross Salary= \"+Gross_salary);\r\n\t\t\t}\r\n\t\telse if(Basic_salary>20000) {\r\n\t\t\tdouble HRA=Basic_salary*0.4;\r\n\t\t\tdouble DA=Basic_salary*0.95;\r\n\t\t\tdouble Gross_salary=(Basic_salary+HRA+DA);\r\n\t\t\tSystem.out.println(\"HRA= \"+HRA);\r\n\t\t\tSystem.out.println(\"DA= \"+DA);\r\n\t\t\tSystem.out.println(\"Gross Salary= \"+Gross_salary);\r\n\t\t\t}\r\n\t\tsc.close();\r\n\t}", "public Employee(String firstName, String lastName, double monthlySalary) {\n\t\tthis.firstName = firstName;\n\t\tthis.lastName = lastName;\n\t\tif(monthlySalary > 0) {\n\t\t\tthis.monthlySalary = monthlySalary;\n\t\t} else {\n\t\t\tthis.monthlySalary = 0.0;\n\t\t}\n\t}", "@Test\n public void negativeIncrement() {\n manager.raiseSalary(-2.0);\n }", "public double calculateWeeklyPay(){\r\n double weeklyPay = salary / 52.0;\r\n return weeklyPay;\r\n }", "public void setSalary (int newSalary) {\n if (joined == false) {\n this.salary = newSalary;\n }else{\n System.out.println(\"It is not possible to change the salary.\");\n }\n }", "private double calculeSalaires() {\n return salaireHoraire * heures;\n }", "public Executive(int salary, String name, String department, int yearlyBonus){\n super(salary,name,department); \n this.yearlyBonus = yearlyBonus;\n }", "@Override\r\n\tpublic double annualSalary() {\r\n\t\tdouble baseSalary;\r\n\t\tdouble annualSalary;\r\n\t\tdouble annualCommissionMax = Math.min((annualSales * .02), 20000.0);\r\n\t\tbaseSalary = (getSalaryMonth() * 12);\r\n\t\tannualSalary = baseSalary + annualCommissionMax;\r\n\t\r\n\t\treturn annualSalary;\r\n\t}", "public HourlyEmployee( String first, String last, String ssn, double hourlyWage, double hoursWorked )\n\t{\n\t\tsuper( first, last, ssn);\n\t\tsetWage( hourlyWage );\n\t\tsetHours( hoursWorked ); \n\t}", "public static void empWageForMonth()\n {\n int WagePerHrs = 20;\n double totalSalary = 0;\n int IsFullTime = 1;\n int IsPartTime = 2;\n int empHr = 0;\n int numWorkingDays = 20;\n double salary = 0;\n for (int day=1; day<=numWorkingDays; day++)\n { \n final int ranValue = new Random().nextInt(1000)%2;\n switch (ranValue){\n case 1:\n empHr = 8;\n //System.out.println(\"Full Time hrs:\" +empHrs);\n break;\n\n case 2:\n empHr = 4;\n //System.out.println(\"Part Time hrs:\" +empHrs);\n break;\n default:\n empHr = 0;\n\n }\t\t \n salary = (empHr * WagePerHrs);\n System.out.println(\"Daily Emp Wages is :\" +salary);\n totalSalary = (totalSalary + salary);\n System.out.println(\"Monthly emp salary:\" +totalSalary);\n\t\t}\n}", "public Employee(String name, int salary)\n\n\t{\n\t\tthis.name = name;\n\t\tthis.salary = salary;\n\t}", "@Override \n public double getPaymentAmount() \n { \n return getWeeklySalary(); \n }", "public abstract void raiseSalary();", "public int getEmpRatePerHour()\t{\n\t\treturn EMP_RATE_PER_HOUR;\n\t}", "public Employee(String n, double s)\n {\n name = n;\n salary = s;\n }", "@Override\n public double earnings() {\n return salary + commission + quantity;\n }", "public void calculateEmpWage(int empHrs){\n \tint totalWorkingDays = 1;\n\tint totalWorkingHours = 0;\n\t/*\n\t*varable empAttendance tells if emp is present '0' or absent '1' on that day of the month\n\t*/\n\tint empAttendance;\n\t/*\n\t*variable monthlyWage stores the monthly wage of the employee\n\t*/\n int monthlyWage = 0;\n\t/*\n\t*variable daysPresent keeps count of the no of days present for a month\n\t*/\n\t int daysPresent = 0;\n\t /*\n\t *variable hoursWorked keeps count of the no of hours worked in a month\n\t */\n\t int hoursWorked = 0;\n\n\t while(true){\n\t Random rand = new Random();\n empAttendance = rand.nextInt(2);\n if(empAttendance == 0){\n daysPresent += 1;\n System.out.println(\"Day \"+totalWorkingDays+\": Present\");\n monthlyWage += CompanyEmpWage.getempRate() * empHrs;\n hoursWorked += empHrs;\n }\n else{\n System.out.println(\"Day \"+totalWorkingDays+\": Absent\");\n monthlyWage += 0;\n hoursWorked += 0;\n }\n if(totalWorkingDays == CompanyEmpWage.getnumOfDays() || !(totalWorkingHours < CompanyEmpWage.getmaxHrs())){\n if(totalWorkingDays == CompanyEmpWage.getnumOfDays()){\n System.out.println(CompanyEmpWage.getnumOfDays()+\" days are over!\");\n break;\n }\n else{\n System.out.println(CompanyEmpWage.getmaxHrs()+\" hours reached!\");\n break;\n }\n }\n\ttotalWorkingDays++;\n \ttotalWorkingHours += empHrs;\n }\n System.out.println(\"Company: \"+CompanyEmpWage.getcompName()+\"\\nNo of days worked out of \"+CompanyEmpWage.getnumOfDays()+\" days: \"+daysPresent+\"\\nNo of hours worked out of \"+CompanyEmpWage.getmaxHrs()+\" hours: \"+hoursWorked+\"\\nSalary for the month: \"+monthlyWage);\n }", "@Override\n public double calculatePay(double nmHrs) {\n //52 weeks in a year and 40 hours per week\n double hrRate = getSalary() / (40*52);\n //calculate their weekly pay\n double paycheck = 40 * hrRate;\n //determine if they worked overtime and calculate it\n if (nmHrs > 40) {\n double OT = nmHrs - 40;\n double OTMoney = OT * (hrRate*1.5);\n return OTMoney + paycheck;\n }\n //else return their normal weekly paycheck\n else {\n return paycheck;\n }\n\n }", "public double calculatePayment (int hours);", "public Fulltime(String employeeName, String deptCode, Date hireDate,\n\t\t\tdouble salary) {\n\t\tsuper(employeeName, deptCode, hireDate);\n\t\tthis.annualSalary = salary;\n\t}", "public boolean isSalary() {\n return salary;\n }", "public Salaries() {\n\t\tallSalaries= new ArrayList<double[]>();\n\t}", "public void companyPayRoll(){\n calcTotalSal();\n updateBalance();\n resetHoursWorked();\n topBudget();\n }", "static double tax( double salary ){\n\n return salary*10/100;\n\n }", "public void setSalary(int salary) {\n this.salary = salary; // assigning a local variable value to a global variable\r\n }", "public double raiseSalary(double salaryAdj) {\n this.salary += salaryAdj;\n return this.salary;\n }", "public double raiseSalary(double salaryAdj) {\n this.salary += salaryAdj;\n return this.salary;\n }", "public double calculatePay() \r\n\t{\r\n\t\treturn (payRate*hoursWorked);\r\n\t}", "public void determineWeeklyPay(){\r\n weeklyPay = commission*sales;\r\n }", "@Override\n public int annualSalary() {\n int commission;\n if (getAnnualSales() * getCommissionAmount() > getMaximumCommission()) { //Checks if the commission would be over the max\n commission = (int) getMaximumCommission();\n } else {\n commission = (int) (getAnnualSales() * getCommissionAmount());\n }\n return (this.getSalary() * getMonthInYear()) + commission;\n }" ]
[ "0.7480295", "0.7362118", "0.7081426", "0.6925239", "0.6914758", "0.6712601", "0.66968864", "0.6671633", "0.6662578", "0.6651097", "0.6645616", "0.66426075", "0.66364944", "0.66351223", "0.6619089", "0.65690374", "0.6564011", "0.6564011", "0.6479813", "0.6378806", "0.63644034", "0.63497865", "0.6338618", "0.6303309", "0.62717164", "0.6259374", "0.6217426", "0.6189926", "0.6172282", "0.61659986", "0.61423075", "0.61397785", "0.61332357", "0.6126996", "0.6125475", "0.612207", "0.6120332", "0.61072564", "0.61072564", "0.61072564", "0.6104636", "0.6097935", "0.6091051", "0.60813576", "0.60668993", "0.6066527", "0.6057254", "0.60210544", "0.60133475", "0.5986501", "0.59496695", "0.5947807", "0.5927359", "0.59075", "0.5880866", "0.587032", "0.5858572", "0.58490354", "0.5838254", "0.58295864", "0.58231646", "0.582207", "0.58202684", "0.58157605", "0.5795084", "0.5792512", "0.57897717", "0.57879966", "0.57820225", "0.5763925", "0.57485974", "0.5710553", "0.5705053", "0.570231", "0.5696162", "0.5691632", "0.5686341", "0.5686154", "0.56833345", "0.56524277", "0.56457835", "0.5641728", "0.5640466", "0.5638032", "0.5635207", "0.5627603", "0.5622535", "0.56093127", "0.5606482", "0.56024", "0.5594541", "0.5582146", "0.55702937", "0.55692977", "0.5566149", "0.556185", "0.556185", "0.5547769", "0.55326474", "0.553262" ]
0.85979265
0
/ getHours returns hours.
public double getHours() { return hours; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getHours();", "private int getHours() {\n //-----------------------------------------------------------\n //Preconditions: none.\n //Postconditions: returns the value for the data field hours.\n //-----------------------------------------------------------\n\n return this.hours;\n\n }", "public int getHours() {\n return this.hours;\n }", "public int getHours() {\r\n return FormatUtils.uint8ToInt(mHours);\r\n }", "public int getHours(){\n return (int) totalSeconds/3600;\n }", "public double getHours(){\n return hours;\n }", "public final native int getHours() /*-{\n return this.getHours();\n }-*/;", "public int[] getHours() {\n return hours;\n }", "public int[] getHours() {\n int[] hoursArray = {this.hours, this.overtimeHours};\n return hoursArray;\n }", "Integer getHour();", "public int getIntervalHours();", "public int getHour()\n {\n return hour;\n }", "public int getHour() \n { \n return hour; \n }", "public java.lang.Object getEstimatedHours() {\n return estimatedHours;\n }", "public int getHour(){\n return hour;\n }", "public double totalHours(){\n return (this._startingHour - this._endingHour);\n }", "private String getHours() {\n StringBuilder hoursSB = new StringBuilder();\n\n if (hours > 0) {\n hoursSB.append(hours);\n } else {\n hoursSB.append(\"0\");\n }\n\n return hoursSB.toString();\n }", "public int getHour() { return this.hour; }", "public Integer getHour() {\n return hour;\n }", "public int getHourFraction()\n {\n return (int)Math.floor(hours);\n }", "Integer getStartHour();", "public int getOccupiedHours(){\n \t\treturn getOccupiedMinutes()/60;\n \t}", "public Integer getHour() {\n\t\treturn hour;\n\t}", "public String displayHours() {\n String hrs=day+\" Hours: \" +getStartHours()+ \" to \"+get_endingHour();\n return hrs;\n }", "public int getHour() {\n\t\treturn hour;\n\t}", "public int getHour() {\n\t\treturn hour;\n\t}", "@Override\r\n\tpublic int getHH() {\n\t\treturn HH;\r\n\t}", "public long getElapsedHours() {\n\t\tlong elapsed;\n\t\tif (running) {\n\t\t\telapsed = (System.nanoTime() - startTime);\n\t\t} else {\n\t\t\telapsed = (stopTime - startTime);\n\t\t}\n\t\treturn elapsed / nsPerHh;\n\t}", "public double getHour() {\n\t\treturn this.hour;\n\t}", "public int getHour() {\n\t\treturn this.hour;\n\t}", "public int getHour() {\n return dateTime.getHour();\n }", "public int getMinHours() {\r\n return minHours;\r\n }", "public String getCurrentHours() {\n\t\t\t\t// DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\");\n\t\t\t\t// need to change after the date format is decided\n\t\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"HH\");\n\t\t\t\tDate date = new Date();\n\t\t\t\treturn dateFormat.format(date);\n\t\t\t}", "public int getHour() {\n\t\tthis.hour = this.total % 12;\n\t\treturn this.hour;\n\t}", "Integer getEndHour();", "public String getWorkHours() {\r\n\t\treturn workHours;\r\n\t}", "private static int getHours(String time) {\n\t\treturn (Character.getNumericValue(time.charAt(0)) * 10) + Character.getNumericValue(time.charAt(1));\n\t}", "public int getStartHour() {\n return startHour; // stub\n }", "public static double hoursSpent()\r\n {\r\n double howlong = 24.0;\r\n return howlong;\r\n }", "public int getUpHours() {\n return (int)((_uptime % 86400000) / 3600000);\n }", "public double getHoursPerWeek()\r\n {\r\n return hoursPerWeek;\r\n }", "public static double hoursSpent()\n\t{\n\t\treturn 7.0;\n\t}", "public int getHour() {\n return hour; // returns the appointment's hour in military time\n }", "public double getHoursWorked()\r\n\t{\r\n\treturn hoursWorked;\r\n\t}", "java.lang.String getBusinesshours();", "public int getHoursOfCurrentTime() {\n SimpleDateFormat formatter = new SimpleDateFormat(\"HH\", Locale.getDefault());\n Date curTime = new Date(System.currentTimeMillis());\n return Integer.parseInt(formatter.format(curTime));\n }", "public String getAttractionHours() {\n return mAttractionHours;\n }", "public int getStartHour() {\n\treturn start.getHour();\n }", "public final flipsParser.hour_return hour() throws RecognitionException {\n flipsParser.hour_return retval = new flipsParser.hour_return();\n retval.start = input.LT(1);\n\n CommonTree root_0 = null;\n\n Token char_literal374=null;\n Token string_literal375=null;\n Token string_literal376=null;\n Token string_literal377=null;\n Token string_literal378=null;\n\n CommonTree char_literal374_tree=null;\n CommonTree string_literal375_tree=null;\n CommonTree string_literal376_tree=null;\n CommonTree string_literal377_tree=null;\n CommonTree string_literal378_tree=null;\n RewriteRuleTokenStream stream_250=new RewriteRuleTokenStream(adaptor,\"token 250\");\n RewriteRuleTokenStream stream_251=new RewriteRuleTokenStream(adaptor,\"token 251\");\n RewriteRuleTokenStream stream_252=new RewriteRuleTokenStream(adaptor,\"token 252\");\n RewriteRuleTokenStream stream_249=new RewriteRuleTokenStream(adaptor,\"token 249\");\n RewriteRuleTokenStream stream_253=new RewriteRuleTokenStream(adaptor,\"token 253\");\n\n try {\n // flips.g:559:2: ( ( 'h' | 'hr' | 'hrs' | 'hour' | 'hours' ) -> HOUR )\n // flips.g:559:4: ( 'h' | 'hr' | 'hrs' | 'hour' | 'hours' )\n {\n // flips.g:559:4: ( 'h' | 'hr' | 'hrs' | 'hour' | 'hours' )\n int alt143=5;\n switch ( input.LA(1) ) {\n case 249:\n {\n alt143=1;\n }\n break;\n case 250:\n {\n alt143=2;\n }\n break;\n case 251:\n {\n alt143=3;\n }\n break;\n case 252:\n {\n alt143=4;\n }\n break;\n case 253:\n {\n alt143=5;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 143, 0, input);\n\n throw nvae;\n }\n\n switch (alt143) {\n case 1 :\n // flips.g:559:5: 'h'\n {\n char_literal374=(Token)match(input,249,FOLLOW_249_in_hour3249); \n stream_249.add(char_literal374);\n\n\n }\n break;\n case 2 :\n // flips.g:559:9: 'hr'\n {\n string_literal375=(Token)match(input,250,FOLLOW_250_in_hour3251); \n stream_250.add(string_literal375);\n\n\n }\n break;\n case 3 :\n // flips.g:559:14: 'hrs'\n {\n string_literal376=(Token)match(input,251,FOLLOW_251_in_hour3253); \n stream_251.add(string_literal376);\n\n\n }\n break;\n case 4 :\n // flips.g:559:20: 'hour'\n {\n string_literal377=(Token)match(input,252,FOLLOW_252_in_hour3255); \n stream_252.add(string_literal377);\n\n\n }\n break;\n case 5 :\n // flips.g:559:27: 'hours'\n {\n string_literal378=(Token)match(input,253,FOLLOW_253_in_hour3257); \n stream_253.add(string_literal378);\n\n\n }\n break;\n\n }\n\n\n\n // AST REWRITE\n // elements: \n // token labels: \n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 560:2: -> HOUR\n {\n adaptor.addChild(root_0, (CommonTree)adaptor.create(HOUR, \"HOUR\"));\n\n }\n\n retval.tree = root_0;\n }\n\n retval.stop = input.LT(-1);\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n \tretval.tree = (CommonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n\n }\n finally {\n }\n return retval;\n }", "public double getPreferredConsecutiveHours();", "public final native double setHours(int hours) /*-{\n this.setHours(hours);\n return this.getTime();\n }-*/;", "public String getWorkinghours() {\n int seconds = workinghours % 60;\n int minutes = (workinghours / 60) % 60;\n int hours = (workinghours / 60) / 60;\n String secs;\n String mins;\n String hourse;\n\n if (seconds < 10) {\n secs = \":0\" + seconds;\n } else {\n secs = \":\" + seconds;\n }\n if (minutes < 10) {\n mins = \":0\" + minutes;\n } else {\n mins = \":\" + minutes;\n }\n if (hours < 10) {\n hourse = \"0\" + hours;\n } else {\n hourse = \"\" + hours;\n }\n return hourse + mins + secs;\n }", "public SpinnerNumberModel getHoursModel() {\n\treturn this.hoursModel;\n }", "public long getElapsedTimeHour() {\n return running ? ((((System.currentTimeMillis() - startTime) / 1000) / 60 ) / 60) : 0;\n }", "public String getOperatingHours() {\n return mOperatingHours;\n }", "@Override\n public String getSavingsHours() {\n\n final String savingsHrs = getElement(getDriver(), By.className(SAVINGS_HOURS), TINY_TIMEOUT)\n .getText();\n setLogString(\"Savings Hours:\" + savingsHrs, true, CustomLogLevel.HIGH);\n return savingsHrs.substring(savingsHrs.indexOf(\"(\") + 1, savingsHrs.indexOf(\"h\"));\n }", "private int getHour() {\n\t\tString time = getPersistedString(this.defaultValue);\n\t\tif (time == null || !time.matches(VALIDATION_EXPRESSION)) {\n\t\t\treturn -1;\n\t\t}\n\n\t\treturn Integer.valueOf(time.split(\":|/\")[0]);\n\t}", "public String getRestaurantHours() {\n return mRestaurantHours;\n }", "static long getHoursPart(Duration d) {\n long u = (d.getSeconds() / 60 / 60) % 24;\n\n return u;\n }", "@Override\n\tpublic HourRegistration getHours(Long person_id, LocalDate date) {\n\t\treturn null;\n \t}", "public float getHourHeight() {\n return config.hourHeight;\n }", "public int getEndHour() {\n\treturn end.getHour();// s\n }", "private void loadHours(){\n int hours = 0;\n int minutes = 0;\n for(int i=0; i<24;i++){\n for(int j=0; j<4;j++){\n this.hoursOfTheDay.add(String.format(\"%02d\",hours)+\":\"+ String.format(\"%02d\",minutes));\n minutes+=15;\n }\n hours++;\n minutes = 0;\n }\n }", "public void setHours(int hours) {\n this.hours = hours;\n }", "@java.lang.Override\n public int getStartHour() {\n return startHour_;\n }", "public io.dstore.values.IntegerValue getKeepPropertiesHistoryInHours() {\n if (keepPropertiesHistoryInHoursBuilder_ == null) {\n return keepPropertiesHistoryInHours_ == null ? io.dstore.values.IntegerValue.getDefaultInstance() : keepPropertiesHistoryInHours_;\n } else {\n return keepPropertiesHistoryInHoursBuilder_.getMessage();\n }\n }", "public int getDelegatedHours(){\n\t\tint total = 0;\n\t\tfor(DelegatedWork work: this.delegatedWork){\n\t\t\ttotal += work.getHalfHoursWorked();\n\t\t}\n\t\treturn total;\n\t}", "public final native double setUTCHours(int hours) /*-{\n this.setUTCHours(hours);\n return this.getTime();\n }-*/;", "@java.lang.Override\n public int getStartHour() {\n return startHour_;\n }", "static int getHour(byte[] bytes) {\n if (HOUR_POS < bytes.length * 8) {\n return readBits(bytes, HOUR_POS, HOUR_BITS);\n }\n return 0;\n }", "public final native double setHours(int hours, int mins) /*-{\n this.setHours(hours, mins);\n return this.getTime();\n }-*/;", "public void setHours(double hours) {\r\n this.hours = hours;\r\n }", "@DISPID(53)\r\n\t// = 0x35. The runtime will prefer the VTID if present\r\n\t@VTID(51)\r\n\tint actualCPUTime_Hours();", "public int getTotalHours() {\r\n int totalHours = 0;\r\n // For each day of the week\r\n for (int d = 0; d < 5; d++) {\r\n int sectionStart = 0;\r\n // Find first hour that != 0\r\n for (int h = 0; h < 13; h++) {\r\n if (weekData[d][h] != 0) {\r\n sectionStart = h;\r\n break;\r\n }\r\n }\r\n // Iterate in reverse to find the last hour that != 0\r\n for (int h = 12; h >= 0; h--) {\r\n if (weekData[d][h] != 0) {\r\n // Add the difference to the total\r\n totalHours += h-sectionStart+1;\r\n break;\r\n }\r\n }\r\n }\r\n return totalHours;\r\n }", "@Override\n public double getCost(int hours) {\n\n if (hours < 2) {\n\n return 30;\n } else if (hours < 4) {\n\n return 70;\n } else if (hours < 24) {\n\n return 100;\n } else {\n\n int days = hours / 24;\n return days * 100;\n }\n }", "public BigDecimal getCheckAfterHours() {\n return checkAfterHours;\n }", "public int hourOfDay() {\r\n\t\treturn mC.get(Calendar.HOUR_OF_DAY);\r\n\t}", "public double getPerHour() {\r\n return perHour;\r\n }", "@Override\n public double getDriverHours(final @NonNull Driver driver) {\n double hoursWorked = calculateTime(driver.getShiftStartTime());\n double maxHoursWorked = driver.getTruck().getDriverShiftSize();\n return Math.min(maxHoursWorked, hoursWorked);\n }", "public int getHour() {\n /*\n // Can't load method instructions: Load method exception: null in method: gov.nist.javax.sip.header.SIPDate.getHour():int, dex: in method: gov.nist.javax.sip.header.SIPDate.getHour():int, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: gov.nist.javax.sip.header.SIPDate.getHour():int\");\n }", "public TreeSet<ApplianceTimedEvent> getUsageHours() {\n\n return usageHours;\n }", "public static long convertToHours(long time) {\n return time / 3600000;\n }", "public int getHoursWorked() {\n\t\treturn this.hoursWrkd;\n\t}", "public int getFinishHour() {\n return finishHour;\n }", "@DISPID(68)\r\n\t// = 0x44. The runtime will prefer the VTID if present\r\n\t@VTID(66)\r\n\tint averageCPUTime_Hours();", "@DISPID(58)\r\n\t// = 0x3a. The runtime will prefer the VTID if present\r\n\t@VTID(56)\r\n\tint actualRunTime_Hours();", "public final native int getUTCHours() /*-{\n return this.getUTCHours();\n }-*/;", "public void setHours(int hours) {\n\t\tthis.hours = hours;\n\t}", "@Override\n public Long getRunningTimeInHours() {\n return null;\n }", "public Integer getCaptureDelayHours() {\n return captureDelayHours;\n }", "public final native double setHours(int hours, int mins, int secs) /*-{\n this.setHours(hours, mins, secs);\n return this.getTime();\n }-*/;", "public io.dstore.values.IntegerValue getKeepPropertiesHistoryInHours() {\n return keepPropertiesHistoryInHours_ == null ? io.dstore.values.IntegerValue.getDefaultInstance() : keepPropertiesHistoryInHours_;\n }", "public List<Integer> getByHour() {\n\t\treturn byHour;\n\t}", "public WorkHours() {\n //default if not yet initialised\n this._startingHour=0.00;\n this._endingHour=0.00;\n }", "public int getHoursPerMonth(){\n\t\treturn this.hoursPerMonth;\n\t}", "public int getLogHour(int index)\n {\n return m_Log.get(index).getHour();\n }", "public String getHoursOfOperationId() {\n return this.hoursOfOperationId;\n }", "@Test\n public void getNumberOfHoursTest() {\n int expected = 152;\n\n assertEquals(\"The expected value of hours worked does not match the actual: \"\n , expected, e1.getNumberOfHours());\n\n }", "float hour() {\n switch (this) {\n case NORTH_4M:\n case NORTH_16M:\n case SOUTH_4M:\n case SOUTH_16M:\n return 0f;\n case WILTSHIRE_4M:\n case WILTSHIRE_16M:\n /*\n * At 10h33m, Orion is about to set in the west and the\n * Pointers of the Big Dipper are near the meridian.\n */\n return 10.55f;\n }\n throw new IllegalStateException();\n }" ]
[ "0.86111104", "0.8386721", "0.8383781", "0.81674373", "0.80672187", "0.80297196", "0.7982228", "0.78927356", "0.7829337", "0.7638996", "0.7582536", "0.741729", "0.73702365", "0.73017037", "0.7286979", "0.7284753", "0.7275602", "0.72627336", "0.7201203", "0.7156308", "0.7115497", "0.7072688", "0.7061115", "0.7047492", "0.7018694", "0.7018694", "0.70173204", "0.6984803", "0.69837916", "0.6977567", "0.6965396", "0.68377274", "0.68362373", "0.68255186", "0.68253976", "0.6813946", "0.6810078", "0.6808596", "0.6789371", "0.67540675", "0.67528963", "0.66925836", "0.66906416", "0.6676723", "0.6672008", "0.6616415", "0.6594844", "0.6591585", "0.65819216", "0.6580975", "0.6555016", "0.64943665", "0.6491039", "0.6487101", "0.64759076", "0.6473298", "0.64432484", "0.64019865", "0.6375157", "0.63703084", "0.636963", "0.6337157", "0.6330765", "0.63208735", "0.62993157", "0.6285959", "0.62731576", "0.6255801", "0.6248944", "0.62437207", "0.6217479", "0.6209907", "0.6190314", "0.61851525", "0.6169139", "0.6167297", "0.616128", "0.615731", "0.61548924", "0.6153346", "0.6136832", "0.61215997", "0.61165994", "0.61158264", "0.6085435", "0.6084603", "0.60837173", "0.60797954", "0.60712725", "0.6056093", "0.6052919", "0.60505795", "0.6038769", "0.60094535", "0.5993144", "0.59918964", "0.598735", "0.5985171", "0.59647167" ]
0.84417
2
/ getHourlyRate returns hourlyRate.
public double getHourlyRate() { return hourlyRate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getHourlyRate () {\n\t\treturn this.hourlyRate;\n\t}", "public double getHourlyRate()\n\t{\n\t\treturn hourlyRate;\n\t}", "public double getHourlyRate() {\n return hourlyRate;\n }", "@Override\n\tpublic Money hourlyCostRate() {\n\t\treturn costRate().hourly();\n\t}", "public void setHourlyRate(double hr)\n\t{\n\t\thourlyRate = hr;\n\t}", "public void setHourlyRate(double rate) {\n\t\tthis.hourlyRate = rate;\n\t}", "public int getEmpRatePerHour()\t{\n\t\treturn EMP_RATE_PER_HOUR;\n\t}", "double getRate();", "public void setHourlyRate (double hourlyRate) {\r\n // if hourlyRate is negative, hourlyRate is 0\r\n if (hourlyRate < 0) {\r\n this.hourlyRate = 0;\r\n }\r\n else {\r\n this.hourlyRate = hourlyRate;\r\n }\r\n // calls calculateSalary to update the salary once hourlyRate is changed\r\n calculateSalary();\r\n }", "protected double getPay() {\n\t\tint extraHrs = 0;\n\t\tif (this.hoursWrkd > 40) {\n\t\t\textraHrs = this.hoursWrkd - 40;\n\t\t\treturn (hourlyRate * 40) + (extraHrs * (hourlyRate * 1.5));\n\t\t} else {\n\t\t\treturn hoursWrkd * hourlyRate;\n\t\t}\t\t\n\t}", "double calculateRate(Temperature temperature, double Hrxn);", "public double getRate() {\r\n\t\treturn (getRate(0)+getRate(1))/2.0;\r\n\t}", "public Rate rate() {\n _initialize();\n return rate;\n }", "public void setHourly_rate(String hourly_rate) {\r\n TextView rate = (TextView) mView.findViewById(R.id.current_bid_price);\r\n rate.setText(\"$\"+hourly_rate +\"per/hr\");\r\n\r\n }", "int weeklyPay(int hoursWorked, int hourlyRate) {\n if (hoursWorked < 0 || hourlyRate < 0) {\n return 0;\n }\n\n if (hoursWorked > 40) {\n //return (hoursWorked * hourlyRate) + ((hoursWorked - 40) * (hourlyRate * 2)); //logic error - incorrect answer\n //return (40 * hourlyRate) + ((hoursWorked - 40) * (hourlyRate * 2)); //works\n return (hoursWorked * hourlyRate) + ((hoursWorked - 40) * hourlyRate); //also works\n }\n else {\n return hoursWorked * hourlyRate;\n }\n }", "public BigDecimal getExchangeRate() {\n return exchangeRate;\n }", "public double getRate() {\n\t\treturn rate;\n\t}", "public static double getInterestRate() {\n return DEFAULT_INTEREST_RATE ;\n }", "public Integer getRate() {\r\n return rate;\r\n }", "public double getRate() {\n return rate;\n }", "public double getRate() {\n return rate;\n }", "public double getHourlyWage()\r\n {\r\n return hourlyWage;\r\n }", "public int getRate() {\n return rate_;\n }", "public int getTradeRate(ResourceType resourceType) {\n\t\treturn playerPieces.getTradeRate(resourceType);\n\t}", "public float getRate() {\n\t\treturn rate;\n\t}", "public int getRate() {\n return rate_;\n }", "public int getRate() {\r\n return Integer.parseInt(RATES[Rate]);\r\n }", "private double getDynamicRate(String resourceName) {\n logger.trace(\"BEGIN double getDynamicRate(String resourceName)\");\n double rate;\n RateEngineResponse response;\n RuleEngineClient client = new RuleEngineClient();\n\n response = client.getRate(resourceName);\n rate = response.getRate();\n //System.out.println(\"Got the response from rule engine. Rate: \" + response.getRate());\n logger.trace(\"END double getDynamicRate(String resourceName)\");\n return rate;\n }", "public final void setHourlyRate(double hourlyRate) {\n if(hourlyRate < 0 || hourlyRate > 500) {\n throw new IllegalArgumentException();\n }\n this.hourlyRate = hourlyRate;\n }", "public double getRate( ) {\nreturn monthlyInterestRate * 100.0 * MONTHS;\n}", "public com.exacttarget.wsdl.partnerapi.HourlyRecurrence getHourlyRecurrence()\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.exacttarget.wsdl.partnerapi.HourlyRecurrence target = null;\n target = (com.exacttarget.wsdl.partnerapi.HourlyRecurrence)get_store().find_element_user(HOURLYRECURRENCE$0, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "@Override\n\tpublic double getRate() {\n\t\treturn 7;\n\t}", "public BigDecimal getEXCH_RATE() {\r\n return EXCH_RATE;\r\n }", "public double getPayment() {\n\t\treturn getNumHours() * getHourlyRates();\n\t}", "public int getRatePerSqFeet() {\n if (hasWifi == true)\n return ratePerSqFeet + 2;\n else\n return ratePerSqFeet;\n }", "public double getPayRate()\r\n\t{\r\n\treturn payRate;\r\n\t}", "@Override\n public double calculatePay(double numHours) {\n double hourlyRate = this.getSalary() / (40 * 52);\n return hourlyRate * 40 + hourlyRate * 1.5 * (numHours - 40);\n }", "public double earnings() {\r\n double earnings;\r\n double overtime;\r\n double overtimeRate = hourlyRate * 1.5;\r\n\r\n // if hours, hourlyRate, or salary is negative (default numerical values are -1) earnings is -1\r\n if (hours < 0 || hourlyRate < 0 || salary < 0) {\r\n earnings = -1;\r\n }\r\n else if (hours > 40) {\r\n overtime = (hours - 40) * overtimeRate;\r\n earnings = overtime + salary;\r\n }\r\n else {\r\n earnings = salary;\r\n }\r\n\r\n return earnings;\r\n }", "public int calculatePayDollarsPerHour() {\n int dollarsPerHour = BASE_RATE_DOLLARS_PER_HOUR;\n\n if (getHeight() >= TALL_INCHES && getWeight() < THIN_POUNDS)\n dollarsPerHour += TALL_THIN_BONUS_DOLLARS_PER_HOUR;\n if (isCanTravel())\n dollarsPerHour += TRAVEL_BONUS_DOLLARS_PER_HOUR;\n if (isSmokes())\n dollarsPerHour -= SMOKER_DEDUCTION_DOLLARS_PER_HOUR;\n\n return dollarsPerHour;\n }", "public static double getInterestRate(){\n\t\t return interest_rate;\r\n\t }", "public double getPerHour() {\r\n return perHour;\r\n }", "public double getInterestRate() {\n return interestRate;\n }", "public int getStarvationRate ( ) {\n\t\treturn extract ( handle -> handle.getStarvationRate ( ) );\n\t}", "public static double calculateGross(double hours, double rate)\t// static \"double\"(return type) ~\n\t{\n\t\tdouble gross;\n\t\tgross = hours * rate;\n\t\tSystem.out.println(hours + \" hours at $\" + rate + \" per hour is $\" + gross);\n\t\treturn gross;\t// The value that is returned.\n\t}", "public double getAnnualInterestRate() {\n return annualInterestRate;\n }", "public double getAnnualInterestRate() {\n return annualInterestRate;\n }", "@Override\n public int getRatePerSqFeet() {\n if (hasWifi == true)\n return ratePerSqFeet + 2;\n else\n return ratePerSqFeet;\n }", "public double tradeRate()\n\t{\n\t\treturn _dblTradeRate;\n\t}", "public double getExchRate() {\n return _exchRate;\n }", "double getTransRate();", "public double getInterestRate(){\n return annualInterestRate;\n }", "int getSmpRate();", "public float getRate() {\n\treturn durationStretch * nominalRate;\n }", "@Override\n public double calculatePayDay()\n {\n double perWeekEarned = hourlyRate * hoursPerWeek;\n return (double)Math.round(perWeekEarned * 100) / 100;\n }", "public static int measureHeartRate() {\n\t\treturn HeartRateSensor.getRate(currentRate);\n\t}", "public double getMonthlyInterestRate(){\n return annualInterestRate / 12;\n }", "public void setHourlyRate(double newPayRate){\r\n if(newPayRate>=MINIMUMWAGE)\r\n hourlyRate = newPayRate;\r\n else\r\n throw new IllegalArgumentException(\"The hourly rate must be greater than or equal to\"+MINIMUMWAGE);\r\n }", "public double getMonthlyInterestRate() {\n return (annualInterestRate / 100) / 12 ;\n }", "public double getAnnualInterestRate() {\n\t\treturn annualInterestRate;\n\t}", "public float getCost(Date hour) {\r\n Iterator<Date> it = schedule.iterator();\r\n int i = 0;\r\n while (it.hasNext()) {\r\n if (it.next().after(hour)) {\r\n return cost.get(i);\r\n }\r\n i++;\r\n }\r\n return defaultCost;\r\n }", "public float getRate(){\r\n return rate;\r\n }", "double getMonthlyInterestRate(){\r\n\t\treturn annualInterestRate/12;\r\n\t}", "public double getMonthlyInterestRate(){\n\t\tdouble monthlyInterestRate = (annualInterestRate/100) / 12;\n\t\treturn monthlyInterestRate;\n\t}", "int getHeartRate();", "public double getPriceperhour() {\n return priceperhour;\n }", "public static double cal(final int ratePerHrs, final int totalHrs){\n\tfinal double cal= ratePerHrs*totalHrs;\n\treturn cal;\n}", "public static final long getTicksPerHour() {\n return p().TICKS_PER_RLHOUR;\n }", "public Rate get(\n String baseCurrency,\n String currency\n ) throws RateQueryException {\n try {\n HttpResponse response = this.bitPayClient.get(\"rates/\" + baseCurrency + \"/\" + currency);\n final String content = this.bitPayClient.responseToJsonString(response);\n return JsonMapperFactory.create().readValue(content, Rate.class);\n } catch (JsonProcessingException e) {\n throw new RateQueryException(null,\n \"failed to deserialize BitPay server response (Rates) : \" + e.getMessage());\n } catch (Exception e) {\n throw new RateQueryException(null,\n \"failed to deserialize BitPay server response (Rates) : \" + e.getMessage());\n }\n }", "public double getInterestRate(){\n return interestRate;\n }", "public int getHeartRateScore() {\r\n heartRateModelList = SqlHelper.instance().getOneDayHeartRateInfo(MyApplication.account, TimeUtil.getCurrentDate());\r\n int score = 0;\r\n int count = 0;\r\n int todayHeartValueSum = 0;\r\n for (HeartRateModel heartRateModel : heartRateModelList) {\r\n if (heartRateModel.isRunning == true) {\r\n continue;\r\n }\r\n if (heartRateModel.currentRate >= 50 && heartRateModel.currentRate < 100) {\r\n todayHeartValueSum += 100;\r\n } else if ((heartRateModel.currentRate >= 100 && heartRateModel.currentRate < 120)) {\r\n todayHeartValueSum += 60;\r\n } else if ((heartRateModel.currentRate >= 40 && heartRateModel.currentRate < 50) || (heartRateModel.currentRate >= 120 && heartRateModel.currentRate < 140)) {\r\n todayHeartValueSum += 40;\r\n } else if (heartRateModel.currentRate >= 140 || heartRateModel.currentRate < 40) {\r\n todayHeartValueSum += 20;\r\n }\r\n count++;\r\n }\r\n if (count != 0) {\r\n score = todayHeartValueSum / count;\r\n }\r\n return score;\r\n }", "private static double getWinRate() {\n\t\treturn winRate ;\n\t}", "public HourlyWorker() {\n\t\tthis.num_hours = 1;\n\t\tthis.hourly_rate = 0.01;\n\t}", "double requestCurrentRate(String fromCurrency,\n String toCurrency);", "public static double calculateWage(final int ratePerHrs, final int totalHr)\n {\n return ratePerHrs * totalHr;\n }", "public double getInterestRate()\n {\n return this.interestRate;\n }", "protected abstract Double getRate(T object);", "int getMortgageRate();", "public double getMonthlyInterestRate() {\n return ((annualInterestRate / 100)/12);\n }", "public int getOvertimeHourlyWage() {\n return overtimeHourlyWage;\n }", "public double calculatePay() \r\n\t{\r\n\t\treturn (payRate*hoursWorked);\r\n\t}", "public int getRegularHourlyWage() {\n return regularHourlyWage;\n }", "public String getAccountInterestRate(){\n if (currentAccount instanceof SavingAccount){\n Float myFloat;\n myFloat = ((SavingAccount)currentAccount).getInterestRate();\n return myFloat.toString();\n }\n else if (currentAccount instanceof NetSavingAccount){\n Float myFloat;\n myFloat = ((NetSavingAccount)currentAccount).getInterestRate();\n return myFloat.toString();\n }\n else if (currentAccount instanceof ChequeAccount){\n Float myFloat;\n myFloat = ((ChequeAccount)currentAccount).getInterestRate();\n return myFloat.toString();\n }\n else if (currentAccount instanceof FixedAccount){\n Float myFloat;\n myFloat = ((FixedAccount)currentAccount).getInterestRate();\n return myFloat.toString();\n }\n else{\n System.out.println(\"Get Account interestRate not found\");\n return \"error\";\n }\n }", "public double getPreferredConsecutiveHours();", "public float getByteRate() {\n return byteMonitor.getRate();\n }", "public static double getValue(Exchange exchange, String name) {\n\n double rate = -1.0;\n\n switch (name) {\n case \"AUD\":\n rate = exchange.getRates().getAUD();\n break;\n case \"BGN\":\n rate = exchange.getRates().getBGN();\n break;\n case \"BRL\":\n rate = exchange.getRates().getBRL();\n break;\n case \"CAD\":\n rate = exchange.getRates().getCAD();\n break;\n case \"CHF\":\n rate = exchange.getRates().getCHF();\n break;\n case \"CNY\":\n rate = exchange.getRates().getCNY();\n break;\n case \"CZK\":\n rate = exchange.getRates().getCZK();\n break;\n case \"DKK\":\n rate = exchange.getRates().getDKK();\n break;\n case \"GBP\":\n rate = exchange.getRates().getGBP();\n break;\n case \"HKD\":\n rate = exchange.getRates().getHKD();\n break;\n case \"HRK\":\n rate = exchange.getRates().getHRK();\n break;\n case \"HUF\":\n rate = exchange.getRates().getHUF();\n break;\n case \"IDR\":\n rate = exchange.getRates().getIDR();\n break;\n case \"ILS\":\n rate = exchange.getRates().getILS();\n break;\n case \"INR\":\n rate = exchange.getRates().getINR();\n break;\n case \"JPY\":\n rate = exchange.getRates().getJPY();\n break;\n case \"KRW\":\n rate = exchange.getRates().getKRW();\n break;\n case \"MXN\":\n rate = exchange.getRates().getMXN();\n break;\n case \"MYR\":\n rate = exchange.getRates().getMYR();\n break;\n case \"NOK\":\n rate = exchange.getRates().getNOK();\n break;\n case \"NZD\":\n rate = exchange.getRates().getNZD();\n break;\n case \"PHP\":\n rate = exchange.getRates().getPHP();\n break;\n case \"PLN\":\n rate = exchange.getRates().getPLN();\n break;\n case \"RON\":\n rate = exchange.getRates().getRON();\n break;\n case \"RUB\":\n rate = exchange.getRates().getRUB();\n break;\n case \"SEK\":\n rate = exchange.getRates().getSEK();\n break;\n case \"SGD\":\n rate = exchange.getRates().getSGD();\n break;\n case \"THB\":\n rate = exchange.getRates().getTHB();\n break;\n case \"TRY\":\n rate = exchange.getRates().getTRY();\n break;\n case \"ZAR\":\n rate = exchange.getRates().getZAR();\n break;\n case \"EUR\":\n rate = exchange.getRates().getEUR();\n break;\n case \"USD\":\n rate = exchange.getRates().getUSD();\n break;\n default:\n break;\n }\n\n return rate;\n }", "public int getChargeRate();", "public double calculateRate() {\n\t\tdouble rate = 0;\n\t\tfor (int i = 0; i < upgrades.size(); i++) {\n\t\t\trate += upgrades.get(i).getProduction();\n\t\t}\n\t\tbrain.setRate(rate);\n\t\treturn rate;\n\t}", "public Double getReturnRate() {\r\n return returnRate;\r\n }", "public List<BigDecimal> getHourlyAverage() {\r\n\t\tif (hourlyAverage == null)\r\n\t\t\thourlyAverage = new ArrayList<BigDecimal>();\r\n\t\tint minuteInterval = loadForecast.getMinuteInterval();\r\n\r\n\t\tif (minuteInterval == 0 || intervals == null || intervals.size() == 0)\r\n\t\t\treturn hourlyAverage;\r\n\t\t/*\r\n\t\t * \r\n\t\t */\r\n\t\tBigDecimal total = new BigDecimal(\"0\");\r\n\t\tBigDecimal average = new BigDecimal(\"0\");\r\n\t\tInteger intervalsPerHour = 60 / minuteInterval;\r\n\t\tfor (int i = 0; i < intervals.size(); i++) {\r\n\t\t\tLoadForecastInterval interval = intervals.get(i);\r\n\t\t\ttotal = total.add(interval.getValue());\r\n\t\t\tif (i == 0 || i % intervalsPerHour == 0) {\r\n\t\t\t\taverage = total.divide(new BigDecimal(intervalsPerHour));\r\n\t\t\t\thourlyAverage.add(average);\r\n\t\t\t\ttotal = new BigDecimal(\"0\");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn hourlyAverage;\r\n\t}", "public int getHeartRate() {\n if (extraCase_ == 5) {\n return (Integer) extra_;\n }\n return 0;\n }", "public float getRate(JsonObject ratesInfo, String currency){\n return ratesInfo.getAsJsonObject(\"rates\").get(currency).getAsFloat();\n }", "public double getReturnRate() {\n return returnRate;\n }", "public static double getRate(){\r\n Scanner s = new Scanner(System.in);\r\n double rate;\r\n do{\r\n System.out.print(\"Enter the current prime interest rate: \");\r\n rate = parseDouble(s.next());\r\n rate = rate * 0.01;\r\n }while(rate == -1);\r\n System.out.println(\"---------------------------------------------\");\r\n return rate;\r\n }", "public double pay(){\n\t\treturn payRate;\n\t}", "public java.math.BigDecimal getIndicativeExchangeRate() {\r\n return indicativeExchangeRate;\r\n }", "Integer getHour();", "public void calculateSalary() {\n if (hours < 0 || hourlyRate < 0) {\r\n salary = -1;\r\n }\r\n else if (hours > 40) {\r\n salary = 40 * hourlyRate;\r\n }\r\n else {\r\n salary = hours * hourlyRate;\r\n }\r\n }", "@ApiModelProperty(value = \"Rates that will be applied during the duration of the car rental requested. These rates are generally not inclusive of tax and are used by the car rental company to compute the total cost at the end of the rental period.\")\n public List<Rate> getRates() {\n return rates;\n }", "private Double calculateRate(TSDBData tsdbData) {\n logger.trace(\"BEGIN Double calculateRate(TSDBData tsdbData)\");\n int rateIndex;\n int rateDataPoints;\n Double rate = 0.0;\n ArrayList dataPointsArray;\n\n rateIndex = tsdbData.getColumns().indexOf(\"rate\");\n rateDataPoints = tsdbData.getPoints().size();\n for (int i = 0; i < tsdbData.getPoints().size(); i++) {\n dataPointsArray = tsdbData.getPoints().get(i);\n rate = rate + Double.parseDouble(dataPointsArray.get(rateIndex) + \"\");\n }\n logger.trace(\"DATA Double calculateRate(TSDBData tsdbData): rate=\" + rate);\n rate = rate / tsdbData.getPoints().size();\n logger.trace(\"END Double calculateRate(TSDBData tsdbData)\");\n return rate;\n }" ]
[ "0.82548916", "0.82528675", "0.8100059", "0.75447536", "0.6790621", "0.67593056", "0.65976244", "0.6474137", "0.6423562", "0.6327625", "0.61703694", "0.608585", "0.5998591", "0.58754086", "0.5837485", "0.5775748", "0.576289", "0.5742493", "0.57370424", "0.5736807", "0.5736807", "0.5736671", "0.5728436", "0.5695009", "0.5666256", "0.56495064", "0.56446135", "0.5635465", "0.56291556", "0.5624", "0.5611183", "0.5589412", "0.5583539", "0.55826414", "0.5581649", "0.5576797", "0.55745363", "0.55169016", "0.5502075", "0.5479605", "0.5444435", "0.54430336", "0.5435003", "0.54197663", "0.54156446", "0.54156446", "0.5410238", "0.5391753", "0.5373821", "0.53662264", "0.5362153", "0.53357065", "0.5332165", "0.5332081", "0.53221554", "0.5314572", "0.5305892", "0.52989054", "0.5294522", "0.52882016", "0.5281777", "0.5242284", "0.52353364", "0.5203789", "0.51988685", "0.51988393", "0.51945275", "0.5193275", "0.5185654", "0.5185599", "0.5180844", "0.51692617", "0.51673406", "0.5166885", "0.5166119", "0.5157223", "0.5153398", "0.5153373", "0.51495", "0.5148481", "0.5136896", "0.51273996", "0.51068443", "0.5097492", "0.50914675", "0.5085882", "0.50794154", "0.50768924", "0.5074756", "0.5073055", "0.50711006", "0.50675756", "0.5058556", "0.505358", "0.50525945", "0.50439775", "0.503931", "0.50377715", "0.503264" ]
0.8122259
3
/ getSalary returns salary.
@Override public double getSalary() { return salary; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getSalary();", "public double getSalary() {\r\n return salary;\r\n }", "public double getSalary() {\n\t\treturn salary;\n\t}", "public double getSalary() {\n return salary;\n }", "public double getSalary() {\n return salary;\n }", "public double getSalary() {\n return salary;\n }", "public String getSalary() {\n return salary;\n }", "public String getSalary() {\n return salary;\n }", "public int getSalary()\n\n\t{\n\t\treturn salary;\n\t}", "public double getSalary() {\r\n\t\treturn this.salary;\r\n\t}", "public int getSalary() {\n return salary;\n }", "public int getSalary () {\n return salary;\n }", "public void getSalary() {\n this.payDay(this.monthlyIncome);\n }", "public double getSalary(){\r\n return salary;\r\n }", "@Override\n\tpublic float CalculateSalary() {\n\t\treturn salary;\n\t}", "public String getSalary() {\n return salaryField.getText();\n }", "public double getSalary() {\n\t\treturn super.getSalary() + (super.getSalary() * .20);\n\t}", "public float getAnnualSalary()\n {\n return annualSalary;\n }", "public void calculateSalary() ;", "float getMonthlySalary();", "public abstract double salary();", "public String getSalary() {\r\n\t\t//the base salary starts at $40,000\r\n\t\tint baseSalary = 40000;\r\n\t\t//The slary increases each year by $5,000 based on the number of years doctor practices\r\n\t\tint salary = baseSalary + (years * 5000);\r\n\t\t//This turns the int into a string with a $ sign in the front\r\n\t\tString salaryString = \"$\" + Integer.toString(salary);\r\n\t\t//The salary is returned\r\n\t\treturn salaryString;\r\n\t}", "public double getBiweeklySalary(){\r\n return this.employeeSalary / 26;\r\n }", "public float getMonthlySalary() {\n return monthlySalary_;\n }", "public double getMonthlySalary() {\n\t\treturn monthlySalary;\n\t}", "public double showSalary() {\n return super.showSalary() * 1.2;\n }", "public double salaryPay() {\n\t\treturn overtimePay() + getSalary();\n\t}", "@Override\n public double getAnnualSalary() {\n return super.getAnnualSalary() + 10000;\n }", "public float getMonthlySalary() {\n return monthlySalary_;\n }", "public void setSalary(double salary) {\n this.salary = salary;\n }", "public void setSalary(double salary) {\n this.salary = salary;\n }", "public int annualSalary(){\r\n int aSalary = monthlySalary * MONTHS;\r\n return aSalary;\r\n }", "public void setSalary(double salary) {\r\n this.salary = salary;\r\n }", "public String getExpectedSalary() {\n\t\treturn expectedSalary;\n\t}", "public final Integer getAvgSalary() {\n return avgSalary;\n }", "public void setSalary(double salary) {\r\n\t\tthis.salary = salary;\r\n\t}", "public void setSalary(double salary){\r\n this.salary = salary;\r\n }", "public void calculateSalary() {\n if (hours < 0 || hourlyRate < 0) {\r\n salary = -1;\r\n }\r\n else if (hours > 40) {\r\n salary = 40 * hourlyRate;\r\n }\r\n else {\r\n salary = hours * hourlyRate;\r\n }\r\n }", "public boolean isSalary() {\n return salary;\n }", "public String getSalaryDay() {\n return salaryDay;\n }", "@Override\r\n public int calculateSalary()\r\n {\r\n return weeklySalary*4;\r\n }", "public double yearlySalary() {\n\t\treturn monthlySalary * 12;\n\t}", "@Override\n\tprotected double getSalary() {\n\t\treturn 0;\n\t}", "@Override\r\n\tpublic Employee getEmployeeBySalary(Long salary) {\n\t\treturn employeeDao.getEmployeeBySalary(salary);\r\n\t}", "@Override\n\tpublic double getSalud() {\n\t\treturn this.salud;\n\t}", "@Override\n public double calculateSalary(){\n return this.horas_trabajadas*EmployeeByHours.VALOR_HORA;\n }", "public String getSalaryRange() {\r\n return salaryRange;\r\n }", "@Override \n public double getPaymentAmount() \n { \n return getWeeklySalary(); \n }", "@Override\n\tpublic void computeSalary(int empid) {\n\t\t\n\t}", "public ch.ivyteam.ivy.rule.engine.api.IRuleBase getSalaryRuleBase()\n {\n return salaryRuleBase;\n }", "public double getAverageMonthlySalary() {\n return averageMonthlySalary;\n }", "@Override\n\tpublic int calculateSalary() {\n\t\treturn this.getPaymentPerHour() * this.workingHours;\n\t}", "public float calculate_salary() {\r\n\t\tfloat calculate = 1000 + this.calculate_benefits();\r\n\t\treturn calculate;\r\n\t}", "public String getSalaryCurrency() {\n \treturn salaryCurrency;\n }", "@Override\r\n\tpublic void calculateSalary() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t salary = hoursWorked * hourlyWages;\r\n\t\t this.setSalary(salary);\r\n\t}", "@JsonGetter(\"salary\")\n public int getSalary ( ) { \n return this.salary;\n }", "@Override\r\n\tpublic double annualSalary() {\r\n\t\tdouble baseSalary;\r\n\t\tdouble annualSalary;\r\n\t\tdouble annualCommissionMax = Math.min((annualSales * .02), 20000.0);\r\n\t\tbaseSalary = (getSalaryMonth() * 12);\r\n\t\tannualSalary = baseSalary + annualCommissionMax;\r\n\t\r\n\t\treturn annualSalary;\r\n\t}", "public void salary(int sal)\n {\n System.out.println(\"Base Salary: \"+ sal);\n }", "@Override\n\tpublic double averageSalary() {\n\t\treturn 0;\n\t}", "@Override\n public double annualSalary(){\n double bonus = 0.00;\n\n if(currentStockPrice > 50){\n bonus = 30000;\n }\n\n return (super.annualSalary() + bonus);\n }", "public double earnings() {\n\t\treturn weeklySalary; \n\t}", "public Integer getWishMaxSalary() {\n return wishMaxSalary;\n }", "@GetMapping(\"/department/{deptId}/totalSalary\")\n\tpublic Long getSalaryTotalByDepartment(@PathVariable(\"deptId\") int deptId) {\n\t\treturn staffService.getSalaryTotalByDepartment(deptId);\n\t}", "@Override\n public int annualSalary() {\n int commission;\n if (getAnnualSales() * getCommissionAmount() > getMaximumCommission()) { //Checks if the commission would be over the max\n commission = (int) getMaximumCommission();\n } else {\n commission = (int) (getAnnualSales() * getCommissionAmount());\n }\n return (this.getSalary() * getMonthInYear()) + commission;\n }", "public double getSaldo() {\r\n return saldo;\r\n }", "public double getSaldo() {\r\n return saldo;\r\n }", "public abstract void raiseSalary();", "public double getSaldo() {\n return saldo;\n }", "public double getSaldo() {\n return saldo;\n }", "public void setSalary (int newSalary) {\n if (joined == false) {\n this.salary = newSalary;\n }else{\n System.out.println(\"It is not possible to change the salary.\");\n }\n }", "public int employeeSalary(String employeeName) {\n\n int actualSalaryOfEmployee = 0;\n\n try {\n Connection conn = ConnectToSqlDB.connectToSqlDatabase();\n String query = \"SELECT * FROM employees;\";\n\n ConnectToSqlDB.statement = conn.createStatement();\n\n ConnectToSqlDB.resultSet = ConnectToSqlDB.statement.executeQuery(query);\n\n while (ConnectToSqlDB.resultSet.next()) {\n int idField = ConnectToSqlDB.resultSet.getInt(\"employee_id\");\n String nameField = ConnectToSqlDB.resultSet.getString(\"employee_name\");\n String salaryField = ConnectToSqlDB.resultSet.getString(\"employee_salary\");\n String departmentField = ConnectToSqlDB.resultSet.getString(\"department\");\n\n if (nameField.equals(employeeName)) {\n actualSalaryOfEmployee = Integer.valueOf(salaryField);\n }\n }\n\n } catch (SQLException e) {\n e.printStackTrace();\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n System.out.print(\"The salary earned by this employee is: \");\n return actualSalaryOfEmployee;\n\n }", "public int giveRaise() throws EmployeeSalaryException {\n try {\n if (this.yearsWorked % 3 == 0) {\n this.salary = (this.salary + 3000);\n this.yearsWorked++;\n if (this.salary > maxEmployeeSalary) {\n this.salary = maxEmployeeSalary;\n throw new EmployeeSalaryException();\n }\n } else {\n this.yearsWorked++;\n }\n } catch (EmployeeSalaryException ex) {\n ex.printStackTrace();\n System.out.println(\"Sorry maximum salary can only be: \" + maxEmployeeSalary);\n }\n return this.salary;\n }", "@Digits(integer=5,fraction=2)\n\t@Override\n\tpublic BigDecimal getSal() {\n\t\treturn super.getSal();\n\t}", "public Integer getWishMinSalary() {\n return wishMinSalary;\n }", "public double raiseSalary(double salaryAdj) {\n this.salary += salaryAdj;\n return this.salary;\n }", "public double raiseSalary(double salaryAdj) {\n this.salary += salaryAdj;\n return this.salary;\n }", "public void salary(int sal)\n {\n CSE cse = new CSE();\n cse.salary(sal);\n System.out.println(\"IT Faculty: \"+(sal+5000));\n }", "public double getAmountEarned(){\r\n return getSalary() + getBonus() + getCommission() * getNumSales();\r\n }", "public void setSalary(double sal) { //salary variable to assign a value\n\t\tsalary = sal;\n\t}", "public void salary() {\n System.out.print(\"Wage: \");\n double wage = in.nextDouble();\n System.out.print(\"Hours: \");\n double hours = in.nextDouble();\n final double REG_HOURS = 40;\n final double OVERTIME_MULTIPLIER = 0.5;\n\n double salary = wage * hours;\n if (hours > REG_HOURS) {\n salary += (hours - REG_HOURS) * wage * OVERTIME_MULTIPLIER;\n }\n\n System.out.printf(\"\\nYou'll make $%,.2f this week.\\n\\n\", salary);\n }", "public void setSalary(String salary) {\n this.salary = salary == null ? null : salary.trim();\n }", "public void setSalary(String salary) {\n this.salary = salary == null ? null : salary.trim();\n }", "public double calculateSalary(double hoursWorked) {\n\t\tif(hoursWorked<=getNormalWorkweek()){\n\t\t\treturn ((getHourlyRate()*(hoursWorked))+(calculateOvertime(hoursWorked)));\n\t\t}else{\n\t\t\treturn ((getHourlyRate()*(getNormalWorkweek()))+(calculateOvertime(hoursWorked)));\n\t\t}\n\t}", "public void setSalary(int salary) {\n salaryField.setText(\"\" + salary);\n }", "public double calculateSalary(int month)\n\t{\n\t\tdouble calculatedSalary = this.annualSalary / 14.0d;\n\t\t\n\t\tswitch(month)\n\t\t{\n\t\t\tcase 3:\n\t\t\tcase 6:\n\t\t\tcase 9:\n\t\t\tcase 12:\n\t\t\t\t//what a lucky boy (or girl) this professor is\n\t\t\t\tcalculatedSalary *= 1.5;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t//I have no idea whether java accepts switch case without the default,\n\t\t\t\t//so better be safe and just put it here.\n\t\t\t\tbreak;\n\t\t}\n\t\t\n\t\treturn calculatedSalary;\n\t}", "@Test\n public void getHourlySalaryTest() {\n double expected = 16.0;\n\n assertEquals(\"The expected value of the hourly salary does not match the actual: \"\n , expected, e1.getHourlySalary(), .01);\n }", "private double calculeSalaires() {\n return salaireHoraire * heures;\n }", "public static int getRndSalary() {\n return ThreadLocalRandom.current().nextInt(10, 100000 + 1);\n }", "public void salary(int sal)\n {\n IT it = new IT();\n it.salary(sal);\n System.out.println(\"ECE Faculty: \"+(sal+4500));\n }", "public String getSalaryScope() {\n return salaryScope;\n }", "public void setSalaryDay(String salaryDay) {\n this.salaryDay = salaryDay;\n }", "public double earnings() {\r\n double earnings;\r\n double overtime;\r\n double overtimeRate = hourlyRate * 1.5;\r\n\r\n // if hours, hourlyRate, or salary is negative (default numerical values are -1) earnings is -1\r\n if (hours < 0 || hourlyRate < 0 || salary < 0) {\r\n earnings = -1;\r\n }\r\n else if (hours > 40) {\r\n overtime = (hours - 40) * overtimeRate;\r\n earnings = overtime + salary;\r\n }\r\n else {\r\n earnings = salary;\r\n }\r\n\r\n return earnings;\r\n }", "@Override\n public double earnings() {\n return salary + commission + quantity;\n }", "public ch.ivyteam.ivy.rule.engine.api.IRuleBase getBasicSalaryRuleBase()\n {\n return basicSalaryRuleBase;\n }", "public void updateEmployeeSalaryInDBThenInList(String name, double salary) throws CustomPayrollException {\n\t\tint result = normalisedDBServiceObj.updateEmployeeData(name, salary);\n\t\tif (result == 0) {\n\t\t\treturn;\n\t\t}\n\t\tContact contact = this.getEmployeePayrollData(name);\n\t\tif (contact != null)\n\t\t\tcontact.salary = salary;\n\t}", "public double getGrossWage(){\r\n\t return (salary + addings);\r\n }", "public BigDecimal getSaldo() {\r\n return saldo;\r\n }", "public void readEmployeeData(){\r\n Scanner input = new Scanner(System.in);\r\n System.out.print(\"Enter the yearly salary of employee: \");\r\n salary = input.nextDouble();\r\n }", "@Test\r\n public void testCalculate_salary() {\r\n assertEquals(2, s.calculate_salary(1, 1));\r\n }", "static double tax( double salary ){\n\n return salary*10/100;\n\n }" ]
[ "0.85024947", "0.8284071", "0.8237957", "0.8224502", "0.8224502", "0.8224502", "0.81981385", "0.81981385", "0.81902957", "0.816307", "0.8150094", "0.80971324", "0.8043527", "0.7963066", "0.79046065", "0.78362274", "0.7688823", "0.75420004", "0.74802935", "0.74485093", "0.74327326", "0.723274", "0.7216815", "0.7189751", "0.7154853", "0.7112537", "0.7110767", "0.71077543", "0.7106138", "0.7060677", "0.7060677", "0.70396245", "0.7038678", "0.7035914", "0.7000211", "0.6990413", "0.6977661", "0.6976301", "0.69229853", "0.68798673", "0.6854145", "0.6808898", "0.6776421", "0.6774839", "0.6761586", "0.6744718", "0.66704077", "0.66587484", "0.6645282", "0.66097647", "0.6536804", "0.6481421", "0.6454816", "0.64365834", "0.63935554", "0.6350364", "0.63255495", "0.62955767", "0.62909466", "0.62894934", "0.62834424", "0.6249939", "0.62466", "0.62452894", "0.62258065", "0.62258065", "0.6221389", "0.6212049", "0.6212049", "0.61838865", "0.618257", "0.6160171", "0.61592615", "0.6061644", "0.60564876", "0.60564876", "0.603973", "0.60126036", "0.60125315", "0.59760404", "0.59610426", "0.59610426", "0.5953437", "0.5948798", "0.5938366", "0.59357125", "0.5928831", "0.5928683", "0.59253305", "0.592237", "0.5894222", "0.58854485", "0.5879513", "0.58793986", "0.5879303", "0.5875839", "0.5854794", "0.582699", "0.58125347", "0.58038014" ]
0.8135028
11
/ earnings returns a sum of the total pay for every hour, plus any overtime pay.
public double earnings() { double earnings; double overtime; double overtimeRate = hourlyRate * 1.5; // if hours, hourlyRate, or salary is negative (default numerical values are -1) earnings is -1 if (hours < 0 || hourlyRate < 0 || salary < 0) { earnings = -1; } else if (hours > 40) { overtime = (hours - 40) * overtimeRate; earnings = overtime + salary; } else { earnings = salary; } return earnings; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public double earnings() {\n if (getHours() < 40)\n return getWage() * getHours();\n else\n return 40 * getWage() + ( getHours() - 40 ) * getWage() * 1.5;\n }", "public double getEarnings() {\n//\t\tif (hoursWorked > 40) {\n//\t\t\treturn (40 * hoursWorked) + \n//\t\t\t\t\t((hoursWorked - 40) * wagePerHour * 1.5);\n//\t\t} else {\n//\t\t\treturn hoursWorked * wagePerHour;\n//\t\t}\n\t\t\t\t// condition \n\t\treturn hoursWorked > 40 ? \n\t\t\t\t// condition true \n\t\t\t(40 * wagePerHour) + ((hoursWorked - 40) * wagePerHour * 1.5) \n\t\t\t\t// condition false\n\t\t\t: hoursWorked * wagePerHour;\t\n\t}", "private double calculateTotalFeesEarned(ArrayList<Pair<Fees, Time>> timeslots) {\n double sumOfFees = 0.00;\n for (DayOfWeek day : DayOfWeek.values()) {\n sumOfFees += calculateFeesEarnedEachDayOfWeek(timeslots, day);\n }\n return sumOfFees;\n }", "public void calculateEarnings(){\n if (wages.size() > expenses.size()){\n //check size difference\n int sizeUp = wages.size() - expenses.size();\n for(int i = 0; i < sizeUp; i++){\n //add zero(s) to expenses to match up(this assumes no expenses for the week(s))\n expenses.add(BigDecimal.ZERO);\n }\n }\n\n if(expenses.size() > wages.size()){\n //check size difference\n int sizeUp = expenses.size() - wages.size();\n for(int i = 0; i < sizeUp; i++){\n //add zero(s) to expenses to match up(this assumes no income for the week(s))\n wages.add(BigDecimal.ZERO);\n }\n }\n for(int i=0; i < wages.size(); i++){\n BigDecimal profits;\n profits = wages.get(i).subtract(expenses.get(i));\n BigDecimal roundUp = profits.setScale(2, RoundingMode.HALF_UP);\n earningsList.add(roundUp);\n }\n }", "public double calcTotalEarnings() {\n double total = 0;\n for (int i = 0; i < numRegions; i++) {\n total += regionList[i].calcEarnings();\n }\n return total;\n }", "public BigDecimal getTotalEarnings() {\n totalEarnings = new BigDecimal(0);\n for(BigDecimal earnings: earningsList){\n totalEarnings = totalEarnings.add(earnings);\n }\n return totalEarnings.setScale(2, RoundingMode.HALF_UP);\n }", "public double calculatePayment (int hours);", "public void work(int hours) {\n\t\twhile(age++ < RETIREMENT_AGE) {//Method calculates total salary earned\n\n\t\tfor(int i = 1; i<=hours; i++)\n\t\t\tearned += hourlyIncome;\n\t\t\n\t\tfor(int j = 1; j<=OVERTIME; j++)\n\t\t\tearned += hourlyIncome;\n\t\t}\n\t}", "public int calculatePayDollarsPerHour() {\n int dollarsPerHour = BASE_RATE_DOLLARS_PER_HOUR;\n\n if (getHeight() >= TALL_INCHES && getWeight() < THIN_POUNDS)\n dollarsPerHour += TALL_THIN_BONUS_DOLLARS_PER_HOUR;\n if (isCanTravel())\n dollarsPerHour += TRAVEL_BONUS_DOLLARS_PER_HOUR;\n if (isSmokes())\n dollarsPerHour -= SMOKER_DEDUCTION_DOLLARS_PER_HOUR;\n\n return dollarsPerHour;\n }", "public double getTimeEntryTodayHoursSum()\n throws RedmineException\n {\n return getTimeEntryHoursSum(today());\n }", "public double totalEarnings() {\n\t\treturn dayEarnings;\n\t}", "private float[] calculateAllGrossPay()\n {\n int numberEmployees = employees.size();\n float[] allGrossPay = new float[numberEmployees];\n int position = 0;\n Iterator<Employee> emp = employees.iterator();\n while(emp.hasNext())\n {\n myEmployee = emp.next();\n allGrossPay[position] = myEmployee.getHours() * myEmployee.getRate();\n position++;\n }\n return allGrossPay;\n }", "@Override\n public double earnings() {\n return salary + commission + quantity;\n }", "public int getTotalEarnings() {\r\n\t\tint total = 0;\r\n\t\tfor (int i = 0; i < this.receiptissued.size(); i++) {\r\n\t\t\ttotal = total + this.receiptissued.get(i).getPrice();\r\n\t\t}\r\n\t\treturn total;\r\n\r\n\t}", "@Override\n public double calculatePayDay()\n {\n double perWeekEarned = hourlyRate * hoursPerWeek;\n return (double)Math.round(perWeekEarned * 100) / 100;\n }", "@Override\n public double earnings() {\n return getCommissionRate() * getGrossSales();\n }", "public double getTotalEarnings() {\n return this.totalEarnings;\n }", "private static void hourlyEmployeeEarningReport(final HourlyEmployee hourlyEmployee) {\r\n\t\tSystem.out.format(\"%s\\t\\t\\t%s\\n\", \"Name\", \"Weekly Pay Amount\");\r\n\t\tSystem.out.println(\"====================================================================\");\r\n\t\tfinal StringBuilder employeeName = new StringBuilder();\r\n\t\temployeeName.append(hourlyEmployee.getFirstName()).append(\" \").append(hourlyEmployee.getLastName());\r\n\r\n\t\tdouble weeklyPayAmount = 40 * hourlyEmployee.getHourlyRate();\r\n\r\n\t\t// Rate will be doubled if it’s beyond 40 hours/week.\r\n\t\tif (hourlyEmployee.getWeeklyWorkedHours() > 40) {\r\n\t\t\tdouble overtime = hourlyEmployee.getWeeklyWorkedHours() - 40;\r\n\t\t\tdouble overtimePay = overtime * (hourlyEmployee.getHourlyRate() * 2);\r\n\t\t\tweeklyPayAmount += overtimePay;\r\n\t\t}\r\n\r\n\t\tfinal NumberFormat formatter = NumberFormat.getCurrencyInstance();\r\n\t\tSystem.out.format(\"%s\\t\\t\\t%s\", employeeName.toString(), formatter.format(weeklyPayAmount));\r\n\t}", "public static double calculateTotals(double[] money) {\n int element = 0; //The element to add\n double total = 0; //The total sales/commissions\n \n while (element < money.length) { //Add each element\n total += money[element];\n element++;\n }\n \n //Return total\n return total;\n }", "public double earnings()\r\n {\r\n /* write code to return the earnings for a PieceWorker */\r\n return getWage() * getPieces();\r\n }", "@Override\n public double calculatePay(double numHours) {\n double hourlyRate = this.getSalary() / (40 * 52);\n return hourlyRate * 40 + hourlyRate * 1.5 * (numHours - 40);\n }", "public double earnings() {\n\t\treturn getCommissionRate()+getGrossSales();\r\n\t}", "@Override\n public double calculatePay(double nmHrs) {\n //52 weeks in a year and 40 hours per week\n double hrRate = getSalary() / (40*52);\n //calculate their weekly pay\n double paycheck = 40 * hrRate;\n //determine if they worked overtime and calculate it\n if (nmHrs > 40) {\n double OT = nmHrs - 40;\n double OTMoney = OT * (hrRate*1.5);\n return OTMoney + paycheck;\n }\n //else return their normal weekly paycheck\n else {\n return paycheck;\n }\n\n }", "private void calculateEarnings()\n {\n // get user input\n int items = Integer.parseInt( itemsSoldJTextField.getText() );\n double price = Double.parseDouble( priceJTextField.getText() );\n Integer integerObject = \n ( Integer ) commissionJSpinner.getValue();\n int commissionRate = integerObject.intValue();\n \n // calculate total sales and earnings\n double sales = items * price;\n double earnings = ( sales * commissionRate ) / 100;\n \n // display the results\n DecimalFormat dollars = new DecimalFormat( \"$0.00\" );\n grossSalesJTextField.setText( dollars.format( sales ) );\n earningsJTextField.setText( dollars.format( earnings ) );\n\n }", "public double getTotalHoursWorkedOnTimesheet() {\n\t\tdouble overallTotal = 0;\n\t\tfor (TimesheetRow ts : timesheetRowList) {\n\t\t\toverallTotal += ts.getTotalHours();\n\t\t}\n\t\treturn overallTotal;\n\t}", "@Override\n\tpublic int calculateSalary() {\n\t\treturn this.getPaymentPerHour() * this.workingHours;\n\t}", "public void calculateSalary() {\n if (hours < 0 || hourlyRate < 0) {\r\n salary = -1;\r\n }\r\n else if (hours > 40) {\r\n salary = 40 * hourlyRate;\r\n }\r\n else {\r\n salary = hours * hourlyRate;\r\n }\r\n }", "private double calculateFeesEarnedEachDayOfWeek(ArrayList<Pair<Fees, Time>> timeslots, DayOfWeek day) {\n return daysOfWeek[day.ordinal()] * timeslots.stream()\n .filter(p -> convertDayOfWeek(p.getValue().getDay()).equals(day))\n .mapToDouble(p -> p.getValue().getTuitionHours() * p.getKey().getFeesValue())\n .sum();\n }", "public static double hoursSpent()\n\t{\n\t\treturn 7.0;\n\t}", "double getTotalProfit();", "public int sumEquipmentPrice(){\n int sum = 0;\n for (Equipment e: equipment){\n sum += e.getPrice();\n }\n return sum;\n }", "private double calculatePer5years(double currentRate, Map<String, String> earningsPerShare) {\n double next = parseToDoubleOrZero(earningsPerShare.get(fundamentalData.getNextYear()).replace(\",\", \".\"));\n double current = parseToDoubleOrZero(earningsPerShare.get(fundamentalData.getCurrentYear()).replace(\",\", \".\"));\n // If the data is not up to date at onvista...\n String lastYearEps = earningsPerShare.get(fundamentalData.getLastYear());\n if (lastYearEps == null) {\n lastYearEps = earningsPerShare.get(fundamentalData.getLastYear() + \"e\");\n }\n double last = parseToDoubleOrZero(lastYearEps.replace(\",\", \".\"));\n double twoAgo = parseToDoubleOrZero(earningsPerShare.get(fundamentalData.getTwoYearsAgo()).replace(\",\", \".\"));\n double threeAgo = parseToDoubleOrZero(earningsPerShare.get(fundamentalData.getThreeYearsAgo()).replace(\",\", \".\"));\n\n double fiveYearsEarnings;\n if (next == 0 && current != 0 && last != 0 && twoAgo != 0 && threeAgo != 0) {\n fiveYearsEarnings = (current + last + twoAgo + threeAgo) / 4;\n } else {\n fiveYearsEarnings = (next + current + last + twoAgo + threeAgo) / 5;\n }\n\n return currentRate / fiveYearsEarnings;\n }", "public double salaryPay() {\n\t\treturn overtimePay() + getSalary();\n\t}", "public Double getRawGross(int month, int day, int year, int storeCode, int...hour ) {\r\n//\t\tString query = \"SELECT SUM(IF(o.RETURN=0,i.SELL_PRICE*i.QUANTITY,p.AMT)) FROM invoice_item i, invoice o, payment_item p WHERE MONTH (o.TRANS_DT) = '\"+month+\"' && YEAR(o.TRANS_DT) = '\"+year+\"' && DAY(o.TRANS_DT) = '\"+day+\"' AND i.OR_NO = o.OR_NO AND p.OR_NO = o.OR_NO AND p.STORE_CODE = o.STORE_CODE AND o.STORE_CODE = '\"+storeCode+\"'\";\r\n\t\tString query = \"SELECT SUM(i.SELL_PRICE*i.QUANTITY) FROM invoice_item i, invoice o WHERE MONTH (o.TRANS_DT) = '\"+month+\"' && YEAR(o.TRANS_DT) = '\"+year+\"' && DAY(o.TRANS_DT) = '\"+day+\"' AND i.OR_NO = o.OR_NO AND i.STORE_CODE = o.STORE_CODE AND o.STORE_CODE = '\"+storeCode+\"'\"\r\n\t\t + \" AND NOT EXISTS (SELECT 1 FROM INVOICE_SET s WHERE s.OR_NO = o.OR_NO) \";\r\n\t\t\r\n\t\tif (hour.length > 0) {\r\n\t\t\tquery += \" AND HOUR(o.TRANS_DT) = \" + hour[0];\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"RAW GROSS QUERY = \" + query);\r\n\t\t\r\n\t\tResultSet rs = Main.getDBManager().executeQuery(query);\r\n//\t\tResultSet rs = Main.getDBManager().executeQuery(\"SELECT sum(p.AMT) from payment_item p WHERE MONTH (p.TRANS_DT) = '\"+month+\"' && YEAR(p.TRANS_DT) = '\"+year+\"' && DAY(p.TRANS_DT) = '\"+day+\"' AND p.STORE_CODE = '\"+storeCode+\"'\");\r\n\t\tDouble dailySale = 0.0d;\r\n\t\ttry {\r\n\t\t\twhile(rs.next()){\r\n//\t\t\t\tdouble amount = rs.getDouble(1);\r\n//\t\t\t\tdailySale = amount/getVatRate();\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tdailySale = rs.getDouble(1);\r\n\t\t\t\tlogger.debug(\"Raw Gross BEFORE SUBTRACTION: \"+dailySale);\r\n\t\t\t\t\r\n\t\t\t\tdailySale = dailySale - getDeductibles(month, day, year, storeCode) + getCompletedTransactions(month, day, year, storeCode);\r\n\t\t\t\tlogger.debug(\"Raw Gross AFTER SUBTRACTION: \"+dailySale);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tLoggerUtility.getInstance().logStackTrace(e);\r\n\t\t}\r\n//\t\tdailySale = dailySale - getDeductibles(month, day, year, storeCode) + getCompletedTransactions(month, day, year, storeCode);\r\n\t\tlogger.debug(\"Raw Gross: \"+dailySale);\r\n\t\treturn dailySale;\r\n\t}", "private int calcTotalTime() {\n\t\tint time = 0;\n\t\tfor (Taxi taxi : taxis) {\n\t\t\ttime += taxi.calcTotalTime();\n\t\t}\n\t\treturn time;\n\t}", "public static int totalCreditHours(){\n int total = 0; //stores total credit hours\n for (int credit: courseCredithourList){\n total += credit;\n }\n return total;\n }", "public void salary() {\n System.out.print(\"Wage: \");\n double wage = in.nextDouble();\n System.out.print(\"Hours: \");\n double hours = in.nextDouble();\n final double REG_HOURS = 40;\n final double OVERTIME_MULTIPLIER = 0.5;\n\n double salary = wage * hours;\n if (hours > REG_HOURS) {\n salary += (hours - REG_HOURS) * wage * OVERTIME_MULTIPLIER;\n }\n\n System.out.printf(\"\\nYou'll make $%,.2f this week.\\n\\n\", salary);\n }", "Double getTotalSpent();", "public void averageTicketPayable() {\n\t\tnodes.stream().filter(sc->sc instanceof Payable).mapToDouble(sc->((Payable) sc).getEntryFee()).average().stream().forEach(System.out::println);\n\t}", "public Integer calculateSum() {\n logger.debug(\"Calculating and returning the sum of expenses.\");\n return listOfTargets.stream().map(T::getAmount).reduce(0, Integer::sum);\n }", "public static BigDecimal calcTotalMoney()\n {\n SharedPreferences defaultSP;\n defaultSP = PreferenceManager.getDefaultSharedPreferences(MainActivity.mActivity);\n manualTime = Integer.valueOf(defaultSP.getString(\"moneyMode\", \"4\"));\n boolean plus = PolyApplication.plus;\n PolyApplication app = ((PolyApplication) MainActivity.mActivity.getApplication());\n\n if(!plus)\n {\n\n if (manualTime == 4 && app.user.getMeals() > 0)\n {\n today.setToNow();\n int minutes = (today.hour * 60) + today.minute;\n if (minutes >= 420 && minutes <= 599)\n {\n money = mealWorth[0];\n } else if (minutes >= 600 && minutes <= 1019)\n {\n money = mealWorth[1];\n } else if (minutes >= 1020 && minutes <= 1214)\n {\n money = mealWorth[2];\n } else\n {\n money = mealWorth[3];\n }\n return money.subtract(moneySpent).setScale(2);\n } else if(app.user.getMeals() > 0)\n {\n return mealWorth[manualTime].subtract(moneySpent).setScale(2);\n }\n else\n {\n return new BigDecimal(0.00).subtract(moneySpent).setScale(2);\n }\n }\n else\n {\n return ((PolyApplication) MainActivity.mActivity.getApplication()).user.getPlusDollars().subtract(moneySpent);\n }\n }", "private double calculateTotal(){\r\n double total = 0;\r\n\r\n for(Restaurant restaurant: restaurantMap.getRestaurantMap().values()){\r\n total += restaurant.getRevenue();\r\n }\r\n\r\n return total;\r\n }", "public double earnings() {\n\t\treturn weeklySalary; \n\t}", "private void calculatePrice() {\r\n int price = 0;\r\n int day = show.getDateTime().getDayOfMonth();\r\n int month = show.getDateTime().getMonthValue();\r\n \r\n for (int i = 0; i < seats.size(); i++) {\r\n String option = seats.get(i);\r\n \r\n if (Arrays.stream(sectionNames).parallel().anyMatch(option::contains)) {\r\n String section = option.replaceAll(\"\\\\d\",\"\");\r\n int number = Integer.parseInt(option.replaceAll(\"\\\\D+\",\"\"));\r\n \r\n if (section.equals(\"m\")) {\r\n if (number <= 100) {\r\n price += mainFloorPrice;\r\n } else {\r\n price += mainFloorPremium;\r\n }\r\n } else if (section.equals(\"sb\")) {\r\n if (number <= 25) {\r\n price += southBalconyPrice;\r\n } else {\r\n price += southBalconyPremium;\r\n }\r\n } else if (section.equals(\"wb\")) {\r\n price += westBalconyPrice;\r\n } else if (section.equals(\"eb\")) {\r\n price += eastBalconyPrice;\r\n }\r\n }\r\n }\r\n \r\n if (seats.size() >= 5 && seats.size() <= 10 && !(month == 12 && (day == 26 || day == 27))) {\r\n price -= (2 * seats.size());\r\n }\r\n \r\n if (seats.size() >= 11 && seats.size() <= 20 && !(month == 12 && (day == 26 || day == 27))) {\r\n price -= (5 * seats.size());\r\n }\r\n \r\n if (month == 12 && (day == 26 || day == 27)) {\r\n price = seats.size() * 20;\r\n }\r\n \r\n totalPrice = price;\r\n }", "@Override\n public double getCost(int hours) {\n\n if (hours < 2) {\n\n return 30;\n } else if (hours < 4) {\n\n return 70;\n } else if (hours < 24) {\n\n return 100;\n } else {\n\n int days = hours / 24;\n return days * 100;\n }\n }", "@Override\n public USMoney calculatePrice() {\n USMoney sumPrice = new USMoney();\n for (int i = 0; i < curArrayIndex; i++) {\n sumPrice = sumPrice.add(items[i].getPrice());\n if (items[i].isFragile()) {\n sumPrice.addTo(10, 0);\n }\n }\n sumPrice.addTo(100, 0);\n return sumPrice;\n }", "public void caltotalprice(){\n \tthis.mTotalPrice = 0;\n \tif (this.isCoachSeat) {\n \t\tfor (Flight f: this.mLegs) {\n \t\t\tthis.mTotalPrice += f.coachprice();\n \t\t}\n \t}else {\n \t\tfor (Flight f: this.mLegs) {\n \t\t\tthis.mTotalPrice += f.firstclassprice();\n \t\t}\n \t}\n }", "public double calculatePay() \r\n\t{\r\n\t\treturn (payRate*hoursWorked);\r\n\t}", "public static void addHours (int [] [] ary1)\n {\n\n //Top of table formatting\n\n System.out.println(\"\\nEmployee# Weekly Hours\");\n System.out.println(\"____________________________\");\n\n //Nested for loop steps through the array and sums all the values in each row. It then prints the sums in table format.\n\n int x, y;\n int count1;\n int sum;\n\n for (x = 0; x <= 2; x++)\n {\n\n count1 = 0;\n sum = 0;\n\n System.out.print(\" \");\n\n for (y = 0; y <= 6; y++)\n {\n\n count1++;\n\n if (count1 <= 6)\n sum = sum + ary1[x][y];\n\n }\n\n System.out.printf(\"%-15d\",(x + 1));\n System.out.printf(\"%-15d\\n\",sum);\n\n }\n\n }", "public double calculateSalary(double hoursWorked) {\n\t\tif(hoursWorked<=getNormalWorkweek()){\n\t\t\treturn ((getHourlyRate()*(hoursWorked))+(calculateOvertime(hoursWorked)));\n\t\t}else{\n\t\t\treturn ((getHourlyRate()*(getNormalWorkweek()))+(calculateOvertime(hoursWorked)));\n\t\t}\n\t}", "private void processSalaryForEmployee(Epf epf, Esi esi, List<PayOut> payOuts,\r\n\t\t\tReportPayOut reportPayOut, PayrollControl payrollControl, List<LoanIssue> loanIssues, List<OneTimeDeduction> oneTimeDeductionList ) {\r\n\t\t\r\n\t\tPayRollProcessUtil util = new PayRollProcessUtil();\r\n\t\tBigDecimal netSalary = new BigDecimal(0);\r\n\t\tPayRollProcessHDDTO payRollProcessHDDTO = new PayRollProcessHDDTO();\r\n\t\t\r\n\t\tpayRollProcessHDDTO.setPayMonth(payrollControl.getProcessMonth());\r\n\t\tpayRollProcessHDDTO.setEpf(epf);\r\n\t\tpayRollProcessHDDTO.setEsi(esi);\t\r\n\t\tpayRollProcessHDDTO.setReportPayOut(reportPayOut);\r\n\t\tsetProfessionalTax(reportPayOut, payRollProcessHDDTO);\r\n\t\tList<PayRollProcessDTO> earningPayStructures = new ArrayList<PayRollProcessDTO>();\r\n\t\t\r\n\t\tDateUtils dateUtils = new DateUtils();\r\n\t\tDate currentDate = dateUtils.getCurrentDate();\r\n\t\t\r\n\t\t/*List<PayStructure> payStructures = attendanceRepository\r\n\t\t\t\t.fetchPayStructureByEmployee( reportPayOut.getId().getEmployeeId(), currentDate );*/\r\n\t\t\r\n\t\tlogger.info( \" reportPayOut.getId().getEmployeeId() \"+ reportPayOut.getId().getEmployeeId() );\r\n\t\t\r\n\t\tPayStructureHd payStructureHd = payStructureService.findPayStructure( reportPayOut.getId().getEmployeeId() );\r\n\t\t\r\n\t\tfor ( PayStructure payStructure : payStructureHd.getPayStructures() ) {\r\n\t\t\tif ( payStructure.getPayHead().getEarningDeduction() == null ) {\r\n\t\t\t\tPayHead payHead = payHeadService.findPayHeadById( payStructure.getPayHead().getPayHeadId() );\r\n\t\t\t\tpayStructure.setPayHead(payHead); \r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t processEarning( payOuts, reportPayOut, util, payRollProcessHDDTO, earningPayStructures, payStructureHd.getPayStructures() , payrollControl );\r\n\t\t \r\n\t\t \r\n\t\t \r\n\t\t if (earningPayStructures != null && earningPayStructures.size() > 0) {\r\n\t\t\tpayRollProcessHDDTO.setTotalGrossSalary( reportPayOut.getGrossSalary() );\r\n\t\t\tpayOuts.addAll(calcualteDeduction( payRollProcessHDDTO, reportPayOut, payrollControl, payStructureHd ,loanIssues, oneTimeDeductionList ));\r\n\t\t}\r\n\t\t \r\n\t\t\r\n\t\t \r\n\t\t if ( reportPayOut.getGrossSalary() != null ) {\r\n\t\t\t netSalary = reportPayOut.getTotalEarning().subtract( reportPayOut.getTotalDeduction() );\r\n\t\t }\r\n\t\t\r\n\t\t reportPayOut.setNetPayableAmount( netSalary );\r\n\t}", "double getTodaysIncomeAmount() {\n Long time = new Date().getTime();\n Date date = new Date(time - time % (DAY_DURATION));\n return getIncomeAmount(date.getTime(), date.getTime() + DAY_DURATION);\n }", "double getYesterdaysExpenditureAmount() {\n Long time = new Date().getTime();\n Date date = new Date(time - time % (DAY_DURATION));\n return getExpenditureAmount(date.getTime() - DAY_DURATION, date.getTime());\n }", "protected double getPay() {\n\t\tint extraHrs = 0;\n\t\tif (this.hoursWrkd > 40) {\n\t\t\textraHrs = this.hoursWrkd - 40;\n\t\t\treturn (hourlyRate * 40) + (extraHrs * (hourlyRate * 1.5));\n\t\t} else {\n\t\t\treturn hoursWrkd * hourlyRate;\n\t\t}\t\t\n\t}", "public void companyPayRoll(){\n calcTotalSal();\n updateBalance();\n resetHoursWorked();\n topBudget();\n }", "public double getTimeEntryHoursSum(SpentOn spentOn)\n throws RedmineException\n {\n double hoursSum = HOURS_UPDATE;\n\n synchronized(timeEntryHoursSumDateMap)\n {\n if (timeEntryHoursSumDateMap.containsKey(spentOn))\n {\n hoursSum = timeEntryHoursSumDateMap.get(spentOn);\n//Dprintf.dprintf(\"found for %s %f\",spentOn,hoursSum);\n }\n else\n {\n updateThread.updateTimeEntryHoursSum(spentOn);\n }\n }\n\n return hoursSum;\n// return getTimeEntryHoursSum(ID_ANY,ID_ANY,ownUserId,spentOn);\n }", "public int calculateSumOfHouse() {\n int sum = 0;\n for (int i = 0; i < pointsHistory.size(); i++) {\n sum += pointsHistory.get(i);\n }\n return sum;\n }", "public double totalHours(){\n return (this._startingHour - this._endingHour);\n }", "public void payEconomical() {\n if (this.balance >= 2.50) {\n this.balance -= 2.50;\n }\n }", "@Override\n public double getTotalPrice(int BTWpercentage) {\n double price = 0.0;\n double percentage = BTWpercentage / 100;\n\n for (PurchaseOrderLine orderline : orderLines) {\n price += orderline.getLineTotal();\n }\n price += price * BTWpercentage;\n\n return price;\n }", "double calculateOvertime(double hoursWorked){\n\t\tif(hoursWorked<getNormalWorkweek()){\n\t\t\treturn(0.0);\n\t\t}else{\n\t\t\treturn((getHourlyRate()*2)*(hoursWorked-getNormalWorkweek()));\n\t\t}\n\t}", "public double calculateWeeklyPay(){\r\n double weeklyPay = salary / 52.0;\r\n return weeklyPay;\r\n }", "BigDecimal calculateDailyIncome(List<Instruction> instructions);", "private double getExpenditureAmount(long startTimestamp, long endTimestamp) {\n Points p = getTransactions(startTimestamp, endTimestamp);\n if (p.x == -1 && p.y == -1)\n return 0;\n double total = 0;\n for (int i = p.x; i <= p.y; i++) {\n if (transactionList.get(i).transactionType == 0)\n total += transactionList.get(i).transactionAmount;\n }\n return total;\n }", "private Map<String,String> parseEarningsPerShare(ArrayList<String> earningYears) {\n // Gewinn pro Aktie (Tabelle Gewinn Jahresangaben)\n\n Pattern gewinnProAktiePattern = Pattern.compile(\"<tr>\\\\s*<td[^/]*Gewinn pro Aktie in EUR((?!</tr>).)*</tr>\");\n matcher = gewinnProAktiePattern.matcher(html);\n ArrayList<String> gewinnProAktieArray = new ArrayList<>();\n\n while (matcher.find()) {\n log.info(\"Matches gefunden!\");\n\n log.info(matcher.group(0));\n String gewinnProAktieOut = matcher.group(0);\n gewinnProAktiePattern = Pattern.compile(\"(\\\\s*<td class=\\\"ZAHL\\\">(((?!</).)*)</td>\\\\s*)\");\n matcher = gewinnProAktiePattern.matcher(gewinnProAktieOut);\n while (matcher.find()) {\n log.debug(matcher.group(2));\n gewinnProAktieArray.add(matcher.group(2).trim());\n }\n }\n\n log.info(gewinnProAktieArray.toString());\n\n if (earningYears.size() != gewinnProAktieArray.size()) {\n throw new RuntimeException(\"gewinnJahresArray und gewinnProAktieArray sind nicht gleich gross\");\n }\n\n Map<String, String> gewinnMap = new HashMap<>();\n for (int i = 0; i < earningYears.size(); i++) {\n gewinnMap.put(earningYears.get(i), gewinnProAktieArray.get(i));\n }\n\n log.info(gewinnMap.toString());\n\n return gewinnMap;\n }", "public void advanceTime(){\n\t\tminute++;\r\n\t\twhile (minute > 59) {\r\n\t\t\tminute -= 60;\r\n\t\t\thour++;\r\n\t\t}\r\n\t\twhile (hour > 23) {\r\n\t\t\thour -= 24;\r\n\t\t\tday++;\r\n\t\t}\r\n\t\twhile (day > 6) {\r\n\t\t\tday -= 7;\r\n\t\t\tweek++;\r\n\t\t\ttotalMoney += abonnementen * 40;\r\n\t\t}\r\n\t\twhile(week > 51) {\r\n\t\t\tweek -= 52;\r\n\t\t}\r\n\t\t//System.out.println(\"advanceTime: \"+\"week: \"+ week + \" day: \"+ day +\" hour: \" + hour +\" minute: \"+ minute+ \" Money earned = \" + Math.round(totalMoney));\r\n\t}", "double getTodaysExpenditureAmount() {\n Long time = new Date().getTime();\n Date date = new Date(time - time % (DAY_DURATION));\n return getExpenditureAmount(date.getTime(), date.getTime() + (DAY_DURATION));\n }", "public int getTotalPrice() {\n int total = 0;\n for (Scholar s : this.scholars) {\n Calendar start = (Calendar) s.getStartDate().clone();\n while (start.before(s.getEndDate())) {\n if (start.after(this.startDate) && start.before(this.estimatedEnd)) { //Only lists scholar within the the time frame the project is active\n total += s.getSalary();\n }\n start.add(Calendar.MONTH, 1);\n }\n }\n return total;\n }", "public double monthlyEarning()\n\t{\n\t\treturn hourlyRate * STAFF_MONTHLY_HOURS_WORKED;\n\t}", "public void sumValues(){\n\t\tint index = 0;\n\t\tDouble timeIncrement = 2.0;\n\t\tDouble timeValue = time.get(index);\n\t\tDouble packetValue;\n\t\twhile (index < time.size()){\n\t\t\tDouble packetTotal = 0.0;\n\t\t\twhile (timeValue < timeIncrement && index < packets.size()){\n\t\t\t\ttimeValue = time.get(index);\n\t\t\t\tpacketValue = packets.get(index);\n\t\t\t\tpacketTotal= packetTotal + packetValue;\n\t\t\t\tindex = index + 1;\n\t\t\t}\n\t\t\tArrayList<Double> xy = new ArrayList<Double>();\n\t\t\txy.add(timeIncrement);\n\t\t\txy.add(packetTotal);\n\t\t\ttotalIncrements.add(xy);\n\t\t\t// to get max and min need separate arrays\n\t\t\ttimeIncrements.add(timeIncrement);\n\t\t\tbyteIncrements.add(packetTotal);\n\t\t\ttimeIncrement = timeIncrement + 2.0;\t\n\t\t}\n\t\treturn;\n\n\t}", "int main()\n{\n int week[7], t = 0, sum = 0;\n for(int i = 0; i < 7; i++) {\n cin >> week[i];\n t += week[i];\n }\n t = t - week[0] - week[6];\n for (int i = 1; i < 6; i++) {\n if (week[i] <= 8)\n sum += week[i] * 100;\n else\n sum += week[i] * 100 + (week[i] - 8) * 15;\n }\n sum += week[0] * 150;\n sum += week[6] * 125;\n if(t > 40)\n sum += (t - 40) * 25;\n \n cout << sum;\n}", "@External\n\tpublic boolean accumulate_daily_payouts(Address game, BigInteger payout) {\n\t\tAddress roulette = this.roulette_score.get();\n\t\tif (!Context.getCaller().equals(roulette) ) {\n\t\t\tContext.revert(\"Only roulette score can invoke this method.\");\n\t\t}\n\t\tBigInteger now = BigInteger.valueOf(Context.getBlockTimestamp());\t\t\n\t\tBigInteger day = BigInteger.ZERO;\n\t\tday = day.add(now.divide(U_SECONDS_DAY));\n\t\t\n\t\tif (this.apply_watch_dog_method.get()!= null && \n\t\t\t\tthis.apply_watch_dog_method.get() ) {\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\tif ( payout.compareTo(this.maximum_payouts.get(game)) == 1 ) {\n\t\t\t\t\tContext.revert(\"Preventing Overpayment. Requested payout: \" +payout.toString() +\n\t\t\t\t\t\t\t\". MaxPayout for this game: \"+this.maximum_payouts.get(game) +\n\t\t\t\t\t\t\t\". \"+ TAG);\n\t\t\t\t}\n\n\t\t\t\tBigInteger payOutDay = this.payouts.at(day).get(game);\n\t\t\t\tif (payOutDay == null) {\n\t\t\t\t\tpayOutDay = BigInteger.ZERO;\n\t\t\t\t}\n\n\t\t\t\tpayOutDay = payOutDay.add(payout);\n\t\t\t\tBigInteger wagerDay = this.wagers.at(day).get(game);\n\t\t\t\tBigInteger incurred = payOutDay.subtract(wagerDay);\n\t\t\t\tif(incurred.compareTo(this.maximum_loss.get()) >= 1) {\n\t\t\t\t\tContext.revert(\"Limit loss. MaxLoss: \" +this.maximum_loss.get()+\". Loss Incurred if payout: \"+\n\t\t\t\t\t\t\tincurred.intValue()+ \" \" +TAG);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}catch (Exception e) {\n\t\t\t\tthis.status_data.set(game, \"gameSuspended\");\n\t\t\t\tthis.GameSuspended(game, e.getMessage());\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t\n\t\t}\n\n\t\tBigInteger newPayOut = this.payouts.at(day).get(game);\n\t\tthis.payouts.at(day).set(game, payout.add(newPayOut));\n\n\t\tif ( this.new_div_changing_time.get() != null && \n\t\t\t\tthis.new_div_changing_time.get().compareTo(BigInteger.ZERO) != 0 &&\n\t\t\t\t day.compareTo(this.new_div_changing_time.get()) >= 1) {\n\t\t\tBigInteger accumulate = this.todays_games_excess.get(game);\n\t\t\tthis.todays_games_excess.set(game, accumulate.subtract(payout));\n\t\t}\n\t\treturn false;\n\t}", "@Override\r\n\tpublic Map<String, BigDecimal> getHoursToPayDayMap(String principalId,\r\n\t\t\tDateTime payEndDate, List<String> payCalendarLabels,\r\n\t\t\tList<TimeBlock> lstTimeBlocks, List<LeaveBlock> leaveBlocks, Long workArea,\r\n\t\t\tCalendarEntry payCalendarEntry, Calendar payCalendar,\r\n\t\t\tDateTimeZone dateTimeZone, List<Interval> dayIntervals) {\r\n\t\tMap<String, BigDecimal> hoursToPayLabelMap = new LinkedHashMap<String, BigDecimal>();\r\n\t\tList<BigDecimal> dayTotals = new ArrayList<BigDecimal>();\r\n\r\n TkTimeBlockAggregate tkTimeBlockAggregate = buildAndMergeAggregates(lstTimeBlocks, leaveBlocks, payCalendarEntry, payCalendar, dayIntervals);\r\n\r\n\t\tList<FlsaWeek> flsaWeeks = tkTimeBlockAggregate\r\n\t\t\t\t.getFlsaWeeks(dateTimeZone);\r\n\t\tfor (FlsaWeek week : flsaWeeks) {\r\n\t\t\tfor (FlsaDay day : week.getFlsaDays()) {\r\n\t\t\t\tBigDecimal total = new BigDecimal(0.00);\r\n\t\t\t\tfor (TimeBlock tb : day.getAppliedTimeBlocks()) {\r\n for (TimeHourDetail thd : tb.getTimeHourDetails()) {\r\n if (workArea != null) {\r\n if (tb.getWorkArea().compareTo(workArea) == 0) {\r\n total = total.add(thd.getHours(),\r\n HrConstants.MATH_CONTEXT);\r\n } else {\r\n total = total.add(new BigDecimal(\"0\"),\r\n HrConstants.MATH_CONTEXT);\r\n }\r\n } else {\r\n total = total.add(thd.getHours(),\r\n HrConstants.MATH_CONTEXT);\r\n }\r\n\t\t\t\t }\r\n\t\t\t\t}\r\n\t\t\t\tdayTotals.add(total);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tint dayCount = 0;\r\n\t\tBigDecimal weekTotal = new BigDecimal(0.00);\r\n\t\tBigDecimal periodTotal = new BigDecimal(0.00);\r\n\t\tfor (String payCalendarLabel : payCalendarLabels) {\r\n\t\t\tif (StringUtils.contains(payCalendarLabel, \"Week\")) {\r\n\t\t\t\thoursToPayLabelMap.put(payCalendarLabel, weekTotal);\r\n\t\t\t\tweekTotal = new BigDecimal(0.00);\r\n\t\t\t} else if (StringUtils.contains(payCalendarLabel, \"Period Total\")) {\r\n\t\t\t\thoursToPayLabelMap.put(payCalendarLabel, periodTotal);\r\n\t\t\t} else {\r\n\t\t\t\tif(dayCount < dayTotals.size()) {\r\n\t\t\t\t\thoursToPayLabelMap.put(payCalendarLabel,\r\n\t\t\t\t\t\t\tdayTotals.get(dayCount));\r\n\t\t\t\t\tweekTotal = weekTotal.add(dayTotals.get(dayCount),\r\n\t\t\t\t\t\t\tHrConstants.MATH_CONTEXT);\r\n\t\t\t\t\tperiodTotal = periodTotal.add(dayTotals.get(dayCount));\r\n\t\t\t\t\tdayCount++;\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\treturn hoursToPayLabelMap;\r\n\t}", "private void summarizeTimeslot ()\n {\n if (null == brokers) {\n // first time through\n brokers = new ArrayList<>();\n stats = new HashMap<>();\n\n data.print(\"Broker Name,\");\n data.print(\"Power Type,\");\n data.print(\"Customers,\");\n data.print(\"Usage (kWh),\");\n data.println(\"Income Gained\");\n\n // set up the maps of brokers, and stats by power type\n for (Broker broker : brokerRepo.findRetailBrokers())\n {\n brokers.add(broker);\n stats.put(broker, new HashMap<>());\n for (PowerType type : powerTypes)\n {\n StatsTracked theseStats = new StatsTracked();\n HashMap<PowerType, StatsTracked> map = stats.get(broker);\n map.put(type, theseStats);\n stats.put(broker, map);\n }\n }\n\n // store customer statistics\n\n }\n\n if (ttx.size() > 0) {\n // there are some signups and withdraws here\n for (TariffTransaction tx : ttx) {\n Broker broker = tx.getBroker();\n PowerType type = tx.getTariffSpec().getPowerType();\n HashMap<PowerType, StatsTracked> brokerMap = stats.get(broker);\n StatsTracked theseStats = brokerMap.get(type);\n if (tx.getTxType() == TariffTransaction.Type.CONSUME ||\n tx.getTxType() == TariffTransaction.Type.PRODUCE) {\n theseStats.updateUsage(tx.getKWh());\n theseStats.updateProfit(tx.getCharge());\n }\n else if (tx.getTxType() == TariffTransaction.Type.SIGNUP)\n theseStats.updateCustomers(tx.getCustomerCount());\n\n // reupdate the tracking...\n brokerMap.put(type, theseStats);\n stats.put(broker, brokerMap);\n }\n }\n ttx.clear();\n }", "@Override\n public double calculateSalary(){\n return this.horas_trabajadas*EmployeeByHours.VALOR_HORA;\n }", "@Override\n\tpublic List<ProfitResult> profitStatistic(Request staticRequest) {\n\t\tList<ProfitResult> result = new ArrayList<>();\n\t\tMap<String, int[]> buySellMap = new TreeMap<String, int[]>();\n\t\tIterator<Map.Entry<String, Map<LocalDate, List <Transaction>>>> iterator = this.result.entrySet().iterator();\n\t\twhile (iterator.hasNext()) {\n\t\t\tMap.Entry<String, Map<LocalDate, List <Transaction>>> entry = iterator.next();\n\t\t\tIterator<Map.Entry<LocalDate, List <Transaction>>> iterator2 = entry.getValue().entrySet().iterator();\n\t\t\twhile (iterator2.hasNext()) {\n\t\t\t\tMap.Entry<LocalDate, List <Transaction>> entry2 = iterator2.next();\n\t\t\t\tfor (Transaction Tra : entry2.getValue()) {\n\t\t\t\t\tint buySellAmount [] = new int [] {0,0};\n\t\t\t\t\tif( Tra.getMode().equals(TransactionMode.BUY)) {\n\t\t\t\t\t\tif (buySellMap.containsKey(Tra.getCurrencyCode())) {\n\t\t\t\t\t\t\tbuySellAmount[1] = buySellMap.get(Tra.getCurrencyCode())[1];\n\t\t\t\t\t\t\tbuySellAmount[0] = buySellMap.get(Tra.getCurrencyCode())[0] + (int)(Tra.getAmount()*this.currencyMap.get(entry2.getKey()).get(Tra.getCurrencyCode())*1.005d);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tbuySellAmount[0] = (int)(Tra.getAmount()*this.currencyMap.get(entry2.getKey()).get(Tra.getCurrencyCode())*1.005d);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif( Tra.getMode().equals(TransactionMode.SELL)) {\n\t\t\t\t\t\tif (buySellMap.containsKey(Tra.getCurrencyCode())) {\n\t\t\t\t\t\t\tbuySellAmount[0] = buySellMap.get(Tra.getCurrencyCode())[0];\n\t\t\t\t\t\t\tbuySellAmount[1] = buySellMap.get(Tra.getCurrencyCode())[1] + (int)(Tra.getAmount()*this.currencyMap.get(entry2.getKey()).get(Tra.getCurrencyCode())*0.995d);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tbuySellAmount[1] = (int)(Tra.getAmount()*this.currencyMap.get(entry2.getKey()).get(Tra.getCurrencyCode())*0.995d);\n\n\t\t\t\t\t\t}\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tbuySellMap.put(Tra.getCurrencyCode(), buySellAmount);\n\n\t\t\t\t\t}\n\t\t\t\tIterator<Map.Entry<String, int []>> iterator3 = buySellMap.entrySet().iterator();\n\t\t\t\twhile (iterator3.hasNext()) {\n\t\t\t\t\tMap.Entry<String, int []> entry3 = iterator3.next();\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tresult.add(new ProfitResult(entry3.getValue()[0], entry3.getValue()[1], entry2.getKey(), entry.getKey(), entry3.getKey()));\n\t\t\t\t}\n\t\t\t\tbuySellMap.clear();\n\t\t\t}\n\t\t}\n\t\treturn result;\n\n\t}", "public void addInterestEarned(Equity holding) {\n \n double time = 0;\n double intrst = 0;\n double price = holding.getSimulationPrice();\n double newPrice = price;\n int steps = amount;\n \n switch(interval) {\n \n case DAY:\n time = amount / 365.0;\n break;\n case MONTH:\n time = amount / 12.0;\n break;\n case YEAR:\n time = amount;\n break;\n }\n \n switch(simType) {\n \n case NONE:\n holding.addPriceChange(newPrice);\n return;\n \n case BEAR:\n intrst = price * percentage * time;\n steps = amount;\n \n while(steps != 0) { \n \n newPrice -= ((1.0/amount) * intrst);\n steps--;\n }\n \n holding.addPriceChange(newPrice);\n break;\n \n case BULL:\n intrst = price * percentage * time;\n steps = amount;\n \n while(steps != 0) {\n \n newPrice += ((1.0/amount) * intrst);\n steps--;\n }\n \n holding.addPriceChange(newPrice);\n break;\n }\n }", "public double calcTotalCaloriesBurned() {\n double sum = 0.0;\n for (ExerciseModel exercise : exercises) {\n sum += exercise.getCalories();\n }\n\n return sum;\n }", "private static void recalculateSummary(Sheet sheet, Payment payment) {\r\n BigDecimal income =(BigDecimal) sheet.getCellAt(\"B1\").getValue();\r\n BigDecimal expense = (BigDecimal) sheet.getCellAt(\"B2\").getValue();\r\n BigDecimal sum = (BigDecimal) sheet.getCellAt(\"B3\").getValue();\r\n \r\n if (payment.getType() == PaymentType.INCOME){\r\n sum = sum.add(payment.getAmount());\r\n income = income.add(payment.getAmount());\r\n } else if (payment.getType() == PaymentType.EXPENSE){\r\n sum = sum.subtract(payment.getAmount());\r\n expense = expense.add(payment.getAmount());\r\n }\r\n \r\n sheet.getCellAt(\"B1\").setValue(income);\r\n sheet.getCellAt(\"B2\").setValue(expense);\r\n sheet.getCellAt(\"B3\").setValue(sum);\r\n }", "public float getCost(Date hour) {\r\n Iterator<Date> it = schedule.iterator();\r\n int i = 0;\r\n while (it.hasNext()) {\r\n if (it.next().after(hour)) {\r\n return cost.get(i);\r\n }\r\n i++;\r\n }\r\n return defaultCost;\r\n }", "@Override\r\n\tpublic void calculateSalary() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t salary = hoursWorked * hourlyWages;\r\n\t\t this.setSalary(salary);\r\n\t}", "@Override\n public long totalBalances() {\n long total = 0;\n for(Account account : accounts.values()){\n total += account.balance();\n }\n return total;\n }", "public void printAllRegionsEarnings() {\n for (int i = 0; i < numRegions; i++) {\n System.out.println(\"The earning of \" + regionList[i].getRegionName() + \" is $\" + regionList[i].calcEarnings());\n } //hey we need to change the double with the good proper formatting\n }", "private double getIncomeAmount(long startTimestamp, long endTimestamp) {\n Points p = getTransactions(startTimestamp, endTimestamp);\n if (p.x == -1 && p.y == -1)\n return 0;\n double total = 0;\n for (int i = p.x; i <= p.y; i++) {\n if (transactionList.get(i).transactionType == 1)\n total += transactionList.get(i).transactionAmount;\n }\n return total;\n }", "private double calculateTotal(){\r\n double total = 0;\r\n for(int i = 0; i < orderList.size(); i++){\r\n total += orderList.getOrder(i).calculatePrice();\r\n }\r\n return total;\r\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(Payroll.OVERTIME_RATE);\n\t\tSystem.out.println(Payroll.REGULAR_WEEK);\n\t\tSystem.out.println(Payroll.LEVEL_ONE_PAY);\n\t\tSystem.out.println(Payroll.LEVEL_TWO_PAY);\n\t\tSystem.out.println(Payroll.LEVEL_THREE_PAY);\n\t\tSystem.out.println(Payroll.PayLevel.ONE);\n\t\tSystem.out.println(Payroll.PayLevel.TWO);\n\t\tSystem.out.println(Payroll.PayLevel.THREE);\n\t\tSystem.out.println();\n\t\t\n\t\tSystem.out.println(Payroll.calculatePay(1, Payroll.PayLevel.ONE));\n\t\tSystem.out.println(Payroll.calculatePay(10, Payroll.PayLevel.TWO));\n\t\tSystem.out.println(Payroll.calculatePay(20, Payroll.PayLevel.THREE));\n\t\tSystem.out.println(Payroll.calculatePay(70, Payroll.PayLevel.TWO));\n\t\t\n\t\ttry {\n\t\t\t System.out.println(Payroll.calculatePay(100, Payroll.PayLevel.TWO));\n\t\t\t} catch (IllegalArgumentException ex) {\n\t\t\t System.out.println(\"failure\");\n\t\t\t}\n\t\t\n\t\tPayroll.REGULAR_WEEK = 20;\n\t\tSystem.out.println(Payroll.calculatePay(25, Payroll.PayLevel.TWO));\n\t\t\n\t\tPayroll.OVERTIME_RATE = 2;\n\t\tPayroll.REGULAR_WEEK = 40;\n\t\tSystem.out.println(Payroll.calculatePay(35, Payroll.PayLevel.TWO));\n\t\t\n\t\tPayroll.OVERTIME_RATE = 1.75;\n\t\tPayroll.REGULAR_WEEK = 40;\n\t\tPayroll.LEVEL_ONE_PAY = 12;\n\t\tSystem.out.println(Payroll.calculatePay(35, Payroll.PayLevel.ONE));\n\t\t\n\t\tPayroll.OVERTIME_RATE = 1.75;\n\t\tPayroll.REGULAR_WEEK = 25;\n\t\tPayroll.LEVEL_TWO_PAY = 30;\n\t\tSystem.out.println(Payroll.calculatePay(35, Payroll.PayLevel.TWO));\n\t\t\n\t\tPayroll.OVERTIME_RATE = 1.75;\n\t\tPayroll.REGULAR_WEEK = 40;\n\t\tPayroll.LEVEL_THREE_PAY = 50;\n\t\tSystem.out.println(Payroll.calculatePay(10, Payroll.PayLevel.THREE));\n\t}", "public static void sueldoTotal(int hora, int sueldo){\n int resultado = 0;\r\n if(hora<=40){\r\n resultado = hora*sueldo;\r\n }\r\n if(hora>40 || hora<48){\r\n resultado = (40*sueldo)+(hora-40)*(sueldo*2);\r\n }\r\n if (hora>=48){\r\n resultado =(40*sueldo)+8*(sueldo*2)+(hora-48)*(sueldo*3);\r\n }\r\n System.out.println(\"El sueldo es de \"+ resultado);//Se muestra el sueldo total\r\n \r\n \r\n \r\n }", "public List<BigDecimal> getHourlyAverage() {\r\n\t\tif (hourlyAverage == null)\r\n\t\t\thourlyAverage = new ArrayList<BigDecimal>();\r\n\t\tint minuteInterval = loadForecast.getMinuteInterval();\r\n\r\n\t\tif (minuteInterval == 0 || intervals == null || intervals.size() == 0)\r\n\t\t\treturn hourlyAverage;\r\n\t\t/*\r\n\t\t * \r\n\t\t */\r\n\t\tBigDecimal total = new BigDecimal(\"0\");\r\n\t\tBigDecimal average = new BigDecimal(\"0\");\r\n\t\tInteger intervalsPerHour = 60 / minuteInterval;\r\n\t\tfor (int i = 0; i < intervals.size(); i++) {\r\n\t\t\tLoadForecastInterval interval = intervals.get(i);\r\n\t\t\ttotal = total.add(interval.getValue());\r\n\t\t\tif (i == 0 || i % intervalsPerHour == 0) {\r\n\t\t\t\taverage = total.divide(new BigDecimal(intervalsPerHour));\r\n\t\t\t\thourlyAverage.add(average);\r\n\t\t\t\ttotal = new BigDecimal(\"0\");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn hourlyAverage;\r\n\t}", "private double calculate(boolean salary, double employeeShift, double hrsIn, double payRate){\n\n if (salary){// --------- Salaried employee\n return payRate * hrsIn;\n }\n\n if (employeeShift == 2){\n payRate = payRate * 0.05 + payRate;// ------------ adjust payRate for 2nd shift --------\n\n }\n\n if (employeeShift == 3){\n payRate = payRate * 0.10 + payRate;// ------------ adjust payRate for 3rd shift --------\n\n }\n\n if (hrsIn <= 40) {//----------- check for overtime\n return hrsIn * payRate;//--------No O.T.\n }\n else{// ----------- Calculate O.T. rate\n double otHrs = hrsIn - 40;\n double otRate = payRate * 1.5;\n return (payRate * 40) + (otHrs * otRate);\n }\n }", "public double pay()\r\n{\r\ndouble pay = hoursWorked * payRate;\r\nhoursWorked = 0;\r\nreturn pay;\r\n//IMPLEMENT THIS\r\n}", "public float sumTimer(int idx){\n float sum = 0;\n for (int f = 0; f < idx; f++){\n sum+=curTime[f];\n }\n System.out.println(\"SUM \" + sum);\n return sum;\n }", "public void payAllEmployeers() {\n\t\t\n\t\tSystem.out.println(\"PAYING ALL THE EMPLOYEES:\\n\");\n\t\t\n\t\tfor(AbsStaffMember staffMember: repository.getAllMembers())\n\t\t{\n\t\t\tstaffMember.pay();\n\t\t\tSystem.out.println(\"\\t- \" + staffMember.getName() + \" has been paid a total of \" + staffMember.getTotalPaid());\n\t\t}\n\t\t\n\t\tSystem.out.println(\"\\n\");\n\t}", "public static double getHoursSpentTotal(Artifact artifact) throws OseeCoreException {\n if (artifact.isOfType(AtsArtifactTypes.Action)) {\n double hours = 0;\n for (TeamWorkFlowArtifact team : ActionManager.getTeams(artifact)) {\n if (!team.isCancelled()) {\n hours += getHoursSpentTotal(team);\n }\n }\n return hours;\n }\n if (artifact.isOfType(AtsArtifactTypes.AbstractWorkflowArtifact)) {\n AbstractWorkflowArtifact awa = (AbstractWorkflowArtifact) artifact;\n return getHoursSpentTotal(artifact, awa.getStateMgr().getCurrentState());\n }\n return 0;\n }", "private static double totalPrice(double price_interest, double dwnpymnt) {\n \treturn price_interest + dwnpymnt;\n }", "BigDecimal calculateDailyOutcome(List<Instruction> instructions);", "private double calculateTotalPrice(Order order) {\n int nights = (int)(order.getVaucher().getDateTo().getTime() - order.getVaucher().getDateFrom().getTime())/(24 * 60 * 60 * 1000);\n double totalPrice = (nights * order.getVaucher().getHotel().getPricePerDay() + order.getVaucher().getTour().getPrice()) * (100 - order.getUser().getDiscount())/100;\n return totalPrice;\n }", "@Override\n public double calculatePay ()\n {\n double commissionPay = this.sales * this.rate / 100;\n return commissionPay;\n }", "@Override\r\n\tpublic int getPayCheque() {\n\t\treturn profit+annuelSalary;\r\n\t\t\r\n\t}", "public Double getNetSales(int month, int day, int year, int storeCode, int...hour ) {\n\t\tString query = \"SELECT sum(p.AMT) from payment_item p \" +\r\n\t\t\t\" WHERE MONTH(p.TRANS_DT) = '\"+month+\"' && \" +\r\n\t\t\t\"YEAR(p.TRANS_DT) = '\"+year+\"' && \" +\r\n\t\t\t\"DAY(p.TRANS_DT) = '\"+day+\"' \" +\r\n\t\t\t\"AND p.STORE_CODE = '\"+storeCode+\"'\";\r\n\t\t\r\n\t\tif (hour.length > 0) {\r\n\t\t\tquery += \" AND HOUR(p.TRANS_DT) = \" + hour[0];\r\n\t\t}\r\n\t\tSystem.out.println(\"TOTALDISCOUNT QUERY = \" + query);\r\n\t\tResultSet rs = Main.getDBManager().executeQuery(query);\r\n\t\tDouble amount = 0.0d;\r\n\t\tDouble discountedAmount;\r\n\t\ttry {\r\n\t\t\twhile(rs.next()){\r\n//\t\t\t\tdiscountedAmount = InvoiceItemService.getInstance().getDiscountedAmount(rs.getLong(\"OR_NO\"),rs.getString(\"PROD_CODE\"));\r\n//\t\t\t\tdiscountedAmount = Double.parseDouble(String.format(\"%.2f\",discountedAmount));\r\n//\t\t\t\tamount += discountedAmount * rs.getDouble(\"QUANTITY\");\r\n\t\t\t\tamount = rs.getDouble(1);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tLoggerUtility.getInstance().logStackTrace(e);\r\n\t\t}\r\n\t\tlogger.debug(\"TOTAL DISCOUNT: \"+ amount);\r\n\t\treturn amount;\r\n\t}", "BigDecimal getAverageSellPrice();" ]
[ "0.6842553", "0.6526291", "0.63828045", "0.6339227", "0.6314439", "0.6260594", "0.6225932", "0.60392314", "0.6023182", "0.59118944", "0.58557755", "0.5850557", "0.58188957", "0.58141977", "0.5775587", "0.5753333", "0.5683264", "0.5659692", "0.56583166", "0.561138", "0.55761796", "0.5559141", "0.553612", "0.5509239", "0.55067265", "0.5447198", "0.5447175", "0.5422762", "0.5374728", "0.535287", "0.5325706", "0.5325575", "0.5311624", "0.5298578", "0.52864635", "0.5275694", "0.5268974", "0.5259543", "0.52455866", "0.52319056", "0.52318674", "0.5218227", "0.52091926", "0.5198221", "0.5197594", "0.5192428", "0.5179532", "0.5173325", "0.5165177", "0.5145186", "0.51275283", "0.5124966", "0.5108845", "0.5096843", "0.5096773", "0.50909346", "0.5032377", "0.5030349", "0.5029384", "0.50230294", "0.50202495", "0.5014003", "0.49953097", "0.49928245", "0.49897635", "0.4980901", "0.49789843", "0.4975569", "0.49698085", "0.49674463", "0.49659267", "0.49628392", "0.49612972", "0.49445525", "0.49416023", "0.4937436", "0.49280986", "0.4917143", "0.4915261", "0.49034363", "0.49019626", "0.489968", "0.4899164", "0.48813692", "0.4871085", "0.4858915", "0.48552623", "0.48523352", "0.4847649", "0.48425987", "0.4837567", "0.4832575", "0.48304704", "0.482969", "0.4827432", "0.4825241", "0.48209554", "0.48144168", "0.48126268", "0.48115668" ]
0.73115736
0
/ toString returns a string of all the variable values associated with an HourlyWorker
@Override public String toString () { return "HourlyWorker: " + hours + ", " + hourlyRate + ", " + salary + ", " + super.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String toString()\r\n {\r\n /* write code to return a string representation of a PieceWorker */\r\n return String.format( \"%s %s; %s: $%,.2f; %s: %.0f\", \r\n \"piece worker: \", super.toString(), \r\n \"wage per piece\", getWage(), \r\n \"pieces produced\", getPieces() );\r\n }", "public String toString()\n\t{\n\t\treturn \"\" + storedVar1 + storedVar2;\n\t}", "public String toString() {\n String s = \"\";\n for (int i = 0; i < size; i++) {\n s += taskarr[i].gettitle() + \", \" + taskarr[i].getassignedTo()\n + \", \" + taskarr[i].gettimetocomplete()\n + \", \" + taskarr[i].getImportant() + \", \" + taskarr[i].getUrgent()\n + \", \" + taskarr[i].getStatus() + \"\\n\";\n }\n return s;\n }", "public String toString() {\r\n return this.variable;\r\n }", "@Override\n public String toString() {\n return String.format(\"ServerID=%d, UsedCPU=%d, LeftoverCPU=%f, UsedMemory=%d, \" +\n \"LeftoverMemory=%f\",\n pm.getID(),\n used_cpu, getLeftoverCPUPercentile(),\n used_mem, getLeftoverMemoryPercentile());\n }", "public String toString()\r\n/* 367: */ {\r\n/* 368:620 */ return \r\n/* 369: */ \r\n/* 370: */ \r\n/* 371: */ \r\n/* 372: */ \r\n/* 373: */ \r\n/* 374:626 */ 165 + \"Monitor \" + this.name + \" Current Speed Read: \" + (this.lastReadThroughput >> 10) + \" KB/s, \" + \"Asked Write: \" + (this.lastWriteThroughput >> 10) + \" KB/s, \" + \"Real Write: \" + (this.realWriteThroughput >> 10) + \" KB/s, \" + \"Current Read: \" + (this.currentReadBytes.get() >> 10) + \" KB, \" + \"Current asked Write: \" + (this.currentWrittenBytes.get() >> 10) + \" KB, \" + \"Current real Write: \" + (this.realWrittenBytes.get() >> 10) + \" KB\";\r\n/* 375: */ }", "public String toString () {\n return nameOfVar;\n }", "@Override\n\tpublic String toString()\n\t{\n\t\tStringBuffer buffer = new StringBuffer();\n\t\tbuffer.append(\"Init: \" + initialState.toString() + \"\\n\");\n\t\tbuffer.append(\"Goal: \" + explicitGoal.toString() + \"\\n\");\n\t\tbuffer.append(\"Vars: \");\n\t\tfor (int var = 0; var < variableNames.size(); var++)\n\t\t{\n\t\t\tbuffer.append(var + \":\" + domainSizes.get(var) + \" \");\n\t\t}\n\t\tbuffer.append(\"\\n\");\n\t\tbuffer.append(\"Num ops: \" + getOperators().size() + \"\\n\");\n\t\treturn buffer.toString();\n\t}", "public String toString(){\n\t\treturn \"predefinedPeriod:\" + getPredefinedPeriod().getType().getName() + \n\t\t\t\t\"productiveTime:\" + getProductiveTime() + \"qtySchedToProduce:\" + \n\t\t\t\t getQtySchedToProduce() + \"qtyProduced:\" + getQtyProduced() \n\t\t\t\t + \"qtyDefective:\" + getQtyDefective(); \n \t\t\n\t}", "public String toString() {\n \tString ret;\n \tint sumWait = 0;\n \tfor(Teller t : employees)\n \t{\n \t\tsumWait += t.getSumWaitTime();\n \t}\n \t\n \tret = \"Total elapsed time: \" + clock;\n \tret = ret + \"\\nTotal customers helped: \"+ numCust;\n \tret = ret + \"\\nAvg. wait time: \"+String.format(\"%.3f\",(float)sumWait/numCust);\n \tfor(Teller t : employees)\n \t{\n \t\tret = ret + \"\\nTeller \"+t.getID()+\": % time idle: \"+String.format(\"%.3f\",(float)(100*t.getIdleTime())/clock)+\" Number of customers helped: \"+t.getNumHelped();\n \t}\n \treturn ret;\n }", "public String toString() {\n\n\t\tStringBuilder buffer = new StringBuilder();\n\n\t\tbuffer.append(\"id=[\").append(id).append(\"] \");\n\t\tbuffer.append(\"dayNum=[\").append(dayNum).append(\"] \");\n\t\tbuffer.append(\"process=[\").append(process).append(\"] \");\n\t\tbuffer.append(\"createTime=[\").append(createTime).append(\"] \");\n\n\t\treturn buffer.toString();\n\t}", "@Override\n public String toString() {\n final Map<String, Object> augmentedToStringFields = Reflect.getStringInstanceVarEntries(this);\n augmentToStringFields(augmentedToStringFields);\n return Reflect.joinStringMap(augmentedToStringFields, this);\n }", "public String toString() {\r\n\t\treturn \"The \" + makeAndModel + \" is made in \" + country + \", has a 0-60 time of \"\r\n\t\t\t\t+ zeroTo60 + \" seconds, and costs $\" + totalCost + \".\";\r\n\t\t}", "@Override\n public String toString()\n {\n return String.format(\"%s Heat setting:%d Automatic Shutoff:%d\", super.toString(), heat_setting, auto_shutoff);\n }", "public String toString() {\n return \"appName=\" + _appName\n + \", readTimeout=\" + _readTimeout + \", poolSize=\" + _poolSize\n + \", numberOfOperations=\" + numOfOps + \", shutdown=\" + _shutdown;\n }", "private String jobs() {\r\n\t\tint[] j=tile.getJobs();\r\n\t\tString out = \"Jobs Are: \";\r\n\t\tfor(int i=0; i<j.length;i++) {\r\n\t\t\tout=out.concat(i+\": \"+(j[i])+\" || \");\r\n\t\t}\r\n\t\treturn out;\r\n\t}", "public String toString() {\n String str = \"\";\n for (int i = 0; i < size; i++) {\n str += tasks[i].toString() + \"\\n\";\n }\n return str;\n }", "public String toString()\n\t{\n\t\tString scriptsOutput = \"{\";\n\t\tfor (int i=0 ; i<scripts.length ; i++)\n\t\t{\n\t\t\tscriptsOutput += scripts[i];\n\t\t\tif (i<scripts.length-1)\n\t\t\t\tscriptsOutput += \",\";\n\t\t}\n\t\tscriptsOutput += \"}\";\n\t\treturn this.agentName + \" v\" + version + \", Reporting metrics to Servers: \" + reportMetricsToServers + \", Scripts: \" + scriptsOutput;\n\t}", "public String toString() {\n\n\t\tString output = \"\";\n\n\t\tfor (Task i : tasks) {\n\t\t\toutput += i.toString() + \"\\n \\n\";\n\t\t}\n\n\t\treturn output;\n\t}", "public String toString() {\n\t\treturn time + \" - \" + name;\n\t}", "public String toString() {\n\t\treturn String.format(\"%s = %d\",name,value);\n\t}", "public String toString()\n {\n return getValue(12);\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getMinHealthyPercentage() != null)\n sb.append(\"MinHealthyPercentage: \").append(getMinHealthyPercentage()).append(\",\");\n if (getInstanceWarmup() != null)\n sb.append(\"InstanceWarmup: \").append(getInstanceWarmup());\n sb.append(\"}\");\n return sb.toString();\n }", "@Override\n public String toString() {\n String toStr = String.format(\"ChiefExecutiveOfHA | %s, leadership %d, medicine %d, experience %d\", isReady() ? \"READY\" : \"DONE\",leadership, medicine, experience);\n return toStr;\n }", "public String toString(){\n\t\treturn \"<== at \" + time + \": \" + name + \", \" + type + \", \" + data + \"==>\"; \n\t}", "public String toString() {\r\n final StringBuffer stringBuffer = new StringBuffer();\r\n stringBuffer.append( \"amount of wall rubbles = \" );\r\n stringBuffer.append( amountOfWallRubbles );\r\n stringBuffer.append( \"%, \" );\r\n stringBuffer.append( \"amount of blood = \" );\r\n stringBuffer.append( amountOfBlood );\r\n stringBuffer.append( \"%, \" );\r\n if ( isKillLimit ) {\r\n stringBuffer.append( \"kill limit = \" );\r\n stringBuffer.append( killLimit );\r\n stringBuffer.append( \", \" );\r\n }\r\n if ( isTimeLimit ) {\r\n stringBuffer.append( \"time limit = \" );\r\n stringBuffer.append( timeLimit );\r\n stringBuffer.append( \" minute\" );\r\n if ( timeLimit > 1 )\r\n stringBuffer.append( 's' );\r\n stringBuffer.append( \", \" );\r\n }\r\n stringBuffer.append( \"period time = \" );\r\n stringBuffer.append( periodTime );\r\n stringBuffer.append( \" ms\" );\r\n return stringBuffer.toString();\r\n }", "public String toString()\r\n{\r\nreturn super.toString() + \"\\n\" + \"Hours Worked\" + hoursWorked;\r\n//IMPLEMENT THIS\r\n}", "public String toString() {\n\t\treturn String.format(\"%d / %d : %d\", systolic, diastolic, heartRate);\n\t}", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getExecutionInfo() != null) sb.append(\"ExecutionInfo: \" + getExecutionInfo() + \",\");\n if (getExecutionConfiguration() != null) sb.append(\"ExecutionConfiguration: \" + getExecutionConfiguration() + \",\");\n if (getOpenCounts() != null) sb.append(\"OpenCounts: \" + getOpenCounts() + \",\");\n if (getLatestActivityTaskTimestamp() != null) sb.append(\"LatestActivityTaskTimestamp: \" + getLatestActivityTaskTimestamp() + \",\");\n if (getLatestExecutionContext() != null) sb.append(\"LatestExecutionContext: \" + getLatestExecutionContext() );\n sb.append(\"}\");\n return sb.toString();\n }", "public String toString(){return \"(X\" + variable + \" (\"+ zero + \")\" + \" (\" + one +\"))\";}", "public String toString(){\n\t\treturn getClass() + \" has tracking number \" + trackingNumber + \", weighs \" + weight + \" lb(s), and shipping cost of \" + shippingCost;\n\t}", "public void tostring(){\n\t\tfor(int i=0;i<taskList.size();i++){\n\t\t\tSystem.out.println(taskList.get(i).getPrint()); \n\t\t}\n\t}", "public String toString(){\n\n\t\tString msg =\"\";\n\t\tmsg += super.toString()+\"\\n\";\n\t\tmsg +=\"El tipo de servicio es: \"+typeOfService+\"\\n\";\n\t\tmsg +=\"La cantidad de kiloWatts registrada es: \"+kiloWatts+\"\\n\";\n\t\tmsg +=\"Cantidad de arboles que deben plantar: \"+calculatedConsuption()+\"\\n\";\n\n\t return msg;\n\t}", "public String toString() {\n\t\treturn hours + \"h\" + minutes + \"m\";\n\t}", "public abstract String getWorkerString();", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getEngineExecutionTimeInMillis() != null)\n sb.append(\"EngineExecutionTimeInMillis: \").append(getEngineExecutionTimeInMillis()).append(\",\");\n if (getDataScannedInBytes() != null)\n sb.append(\"DataScannedInBytes: \").append(getDataScannedInBytes());\n sb.append(\"}\");\n return sb.toString();\n }", "public String toString()\n {\n String output = new String();\n output = \"The time is \" + hour + \":\" + min + \":\" + sec + \"\\n\";\n return output;\n }", "public String toString() {\n\t\tString str = \"(\";\n\t\tif (this.title != null)\n\t\t\tstr += this.title;\n\t\telse if (this.varName != null)\n\t\t\tstr += this.varName;\n\t\tif (this.minVal != null)\n\t\t\tstr += \",\" + this.minVal;\n\t\tif (this.curVal != null)\n\t\t\tstr += \",\" + this.curVal;\n\t\tif (this.maxVal != null)\n\t\t\tstr += \",\" + this.maxVal;\n\t\tstr += \")\";\n\t\treturn str;\n\t}", "@Override \r\npublic String toString() { \r\n\treturn String.format(\"Action programmer: %s%n%s: $%,.2f; %s: %,.2f\",\r\n\t\t\tsuper.toString(), \"hourly wage\", getWage(), \r\n\t\t\t\"pieces worked\", getPieces()); }", "public String toString(){\n\n\t\tString str = \"(numStrings=\"+ getNumStrings() +\n\t\t\t\t\t\",\\nLength=\"+ getGuitarLength() +\n\t\t\t\t\t\",\\nmanufacturer=\"+ getGuitarManufacturer() +\n\t\t\t\t\t\",\\ncolor=\"+ getGuitarColorString() + \")\";\n\t\treturn str;\n\t}", "@Override\n public String toString() {\n\treturn Slot.DAYS[day] + start.toString() + \"-\" + end.toString() + \":\" + venue;\n }", "public String toString()\n {\n //return (x + \",\" + y + \",\" + z + \",\" + a + \",\" + b + \",\" + c + \",\" + clusterId);\n return (date + \",\" + siteId + \",\" +\n denormTemp() + \",\" + denormDO() + \",\" +\n denormPercSat() + \",\" + denormPH() + \",\" +\n denormCond() + \",\" + denormEcoli() + \",\" + clusterId);\n }", "public String toString() {\n String s = \"\";\n try {\n s += get_nodeid()+\"\\t\";\n //s += \" [nodeid=0x\"+Long.toHexString(get_nodeid())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += get_counter()+\"\\t\";\n //s += \" [counter=0x\"+Long.toHexString(get_counter())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += \"\"+get_p_sendts()+\"\\t\";\n //s += \" [p_sendts=0x\"+Long.toHexString(get_p_sendts())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += \"\"+get_receivets()+\"\\t\";\n //s += \" [receivets=0x\"+Long.toHexString(get_receivets())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += \"\"+Float.toString(get_virtual_clk())+\"\\t\";\n //s += \" [virtual_clk=\"+Float.toString(get_virtual_clk())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += \"\"+Float.toString(get_skew_cmp())+\"\\t\";\n //s += \" [skew_cmp=\"+Float.toString(get_skew_cmp())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += \"\"+Float.toString(get_offset_cmp())+\"\";\n //s += \" [offset_cmp=\"+Float.toString(get_offset_cmp())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n return s;\n }", "public final String toString ()\r\n {\r\n return _name + \" = \" + _value;\r\n }", "public String toString(){\n\t\treturn getValue();\n\t}", "public String toString() {\n return getJobtitle() + \" by \" + getUsername() + \"\\n\" +\n getLocation() + \" - PhP\" + getSalary() + \" - \" + getJobfield();\n }", "public String toString() {\n return this.one+\":\"+this.two+\":\"+this.three;\n }", "public String toString() { return stringify(this, true); }", "public String toString(){\n return \"Employee First Name: \" + firstName \t\n + \", Surname: \" + secondName\n + \", Hourly Rate \" + hourlyRate;\n }", "public String toString() {\n\t\tString contents = \"\";\n\t\tif (scenario != null) {\n\t\t\tif (controller.getWorld().getHasScenarios()) {\n\t\t\t\tcontents += \"Scenario: \" + scenario + \"\\n\";\n\t\t\t}\n\t\t\tcontents += \"Number of runs: \" + numOfRuns + \"\\n\";\n\t\t\tcontents += \"Trial duration: \" + trialDuration + \"\\n\";\n\t\t\tcontents += \"Number of trials: \" + numOfTrials + \"\\n\";\n\t\t}\n\t\treturn contents;\n\t}", "public String toString() {\n\t\treturn new String(dateToString() + \" \"\n\t\t\t\t+ timeToString());\n }", "public String toString(){\n return \"MAVLINK_MSG_ID_BATTERY_batterySTATUS - sysid:\"+sysid+\" compid:\"+compid+\" time_total:\"+time_total+\" time_remaining:\"+time_remaining+\" battery_remaining:\"+battery_remaining+\" charge_state:\"+charge_state+\"\";\n }", "public String toString() {\n String info = values[value] + \" of \" + suits[suit];\n return info;\n }", "@Override\n\tpublic String toString() {\n\t\t\n\t\treturn name + time;\n\t}", "@Override\r\n\t\tpublic String toString() {\n\t\t\treturn \" \" + wt + \"- \" + val;\r\n\t\t}", "public String toString(){\n\n\tString msg =\"\";\n\n\tmsg += super.toString()+\"\\n\";\n\tmsg +=\"El tipo de servicio es: \"+typeOfService+\"\\n\";\n\tmsg +=\"La cantidad de kiloWatts registrada es: \"+kiloWatts+\"\\n\";\n\tmsg +=\"Cantidad de arboles que deben plantar: \"+calculatedConsuption()+\"\\n\";\n\tmsg += \"---------------------------------------------------------\";\n\n\n return msg;\n}", "public String toString(){\n return \"SA\" + \" | #\" + Configuration.MAX_ITERATIONS + \" | \" + \"initial_temp: \" + this.initialTemperature + \" | \" + \"cooling_rate \" + this.coolingRate;\n }", "public String toString() {\n\t\tStringBuilder stringBuilder = new StringBuilder();\n\n\t\ttry {\n\t\t\tAlignment[] alignment = new Alignment[] { Alignment.LEFT, Alignment.RIGHT };\n\t\t\tTable table = new Table();\n\t\t\ttable.addHeadings(table.new Headings(new String[] { \"WORKLOAD\", workloadConfiguration.getID() + \"\" },\n\t\t\t\t\tnew int[] { 24, 20 }, alignment, true, false));\n\t\t\ttable.addRow(table.new Row(\n\t\t\t\t\tnew String[] { \"Start Time\", Utilities.formatTime(workloadConfiguration.getStartTime()) },\n\t\t\t\t\talignment));\n\t\t\ttable.addRow(table.new Row(\n\t\t\t\t\tnew String[] { \"Duration\", Utilities.formatTime(workloadConfiguration.getDuration()) }, alignment));\n\t\t\ttable.addRow(table.new Row(\n\t\t\t\t\tnew String[] { \"Producer threads\", workloadConfiguration.getNumProducerThreads() + \"\" },\n\t\t\t\t\talignment));\n\t\t\ttable.addRow(table.new Row(new String[] { \"Maintenance period\",\n\t\t\t\t\tUtilities.formatTime(workloadConfiguration.getMaintenancePeriod()) }, alignment));\n\t\t\ttable.addRow(table.new Row(\n\t\t\t\t\tnew String[] { \"Pay period\", Utilities.formatTime(workloadConfiguration.getPaymentPeriod()) },\n\t\t\t\t\talignment));\n\t\t\ttable.addLine();\n\t\t\ttable.appendToStringBuilder(stringBuilder);\n\t\t} catch (RowException | CellException e) {\n\t\t\tEvent.FATAL_ERROR.issue(e);\n\t\t}\n\n\t\tappendSetsToStringBuilder(stringBuilder);\n\n\t\treturn stringBuilder.toString();\n\t}", "public String toString()\n\t{\n\t\treturn date.toString()+\" \"+time.toString();\n\t}", "public String toStringEval() throws BwException {\n\t\tString str = \"(\";\n\t\tif (this.title != null)\n\t\t\tstr += this.title;\n\t\telse if (this.varName != null)\n\t\t\tstr += this.varName;\n\t\tif (this.minVal != null)\n\t\t\tstr += \",\" + this.minVal.toStringEval();\n\t\tif (this.curVal != null)\n\t\t\tstr += \",\" + this.curVal.toStringEval();\n\t\tif (this.maxVal != null)\n\t\t\tstr += \",\" + this.maxVal.toStringEval();\n\t\tstr += \")\";\n\t\treturn str;\n\t}", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "public String toString()\n\t{\n\t\treturn threadName;\n\t}", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getPercentTraffic() != null)\n sb.append(\"PercentTraffic: \").append(getPercentTraffic()).append(\",\");\n if (getStageVariableOverrides() != null)\n sb.append(\"StageVariableOverrides: \").append(getStageVariableOverrides()).append(\",\");\n if (getUseStageCache() != null)\n sb.append(\"UseStageCache: \").append(getUseStageCache());\n sb.append(\"}\");\n return sb.toString();\n }", "public String toString()\r\n\t{\r\n\t\treturn \" \" + this.value;\r\n\t}", "public String toString() {\n\t\treturn \"Air Condition Instance: \" \n\t\t\t\t+ \"SerialNumber=\" + serialNumber + \", \" \n\t\t\t\t+ \"\\npowerState= \" + powerState + \", \"\n\t\t\t\t+ \"\\nfirstTimeOn= \" + firstTimeOn + \", \" \n\t\t\t\t+ \"\\nlastTimeOn= \" + lastTimeOn + \", \" \n\t\t\t\t+ \"\\nmode= \"+ mode + \", \" \n\t\t\t\t+ \"\\ntemperature= \" + temperature + \", \"\n\t\t\t\t+ \"\\nspeed= \" + speed;\n\t}", "public String toString() {\n return hour+\" \"+minute;\r\n }", "public String toString() {\n return \"MAVLINK_MSG_ID_ONBOARD_COMPUTER_STATUS - sysid:\" + sysid + \" compid:\" + compid + \" time_usec:\" + time_usec + \" uptime:\" + uptime + \" ram_usage:\" + ram_usage + \" ram_total:\" + ram_total + \" storage_type:\" + storage_type + \" storage_usage:\" + storage_usage + \" storage_total:\" + storage_total + \" link_type:\" + link_type + \" link_tx_rate:\" + link_tx_rate + \" link_rx_rate:\" + link_rx_rate + \" link_tx_max:\" + link_tx_max + \" link_rx_max:\" + link_rx_max + \" fan_speed:\" + fan_speed + \" type:\" + type + \" cpu_cores:\" + cpu_cores + \" cpu_combined:\" + cpu_combined + \" gpu_cores:\" + gpu_cores + \" gpu_combined:\" + gpu_combined + \" temperature_board:\" + temperature_board + \" temperature_core:\" + temperature_core + \"\";\n }", "public String toString ()\n\t{\n\t\tString s = \"\";\n for (Production production : productions.values()) s += production + \"\\n\";\n\t\treturn s;\n\t}", "public String toString(){\n String spaces = \" \";\n return \" \" + serverId + spaces +\n efficiency + spaces +\n cntCustomer + spaces +\n String.format(\"%.2f\", idleTime);\n }", "public String getString(){\n\t\treturn \t_name + String.format(\"\\nWeight: %s\", _weight) + String.format( \"\\nNumber of wheels: %s\", _numberOfWheels ) + \n\t\t\t\tString.format( \"\\nMax of speed: %s\", _maxOfSpeed ) + String.format( \"\\nMax acceleration: %s\", _maxAcceleration ) + \n\t\t\t\tString.format( \"\\nHeight: %s\", _height ) + String.format( \"\\nLength: %s\", _length ) + String.format( \"\\nWidth: %s\", _width );\n\t}", "public String toString () {\n StringBuffer stringBuffer = new StringBuffer();\n stringBuffer.append(\"[RelevantObjectsCommand in context \");\n stringBuffer.append(relevantStateVariables.toString());\n stringBuffer.append(\" with respect to \");\n stringBuffer.append(relevancyRelationship.cyclify());\n stringBuffer.append(\" output state variable: \");\n stringBuffer.append(relevantObjects.toString());\n stringBuffer.append(\"]\");\n return stringBuffer.toString();\n }", "@Override\n\tpublic String toString() {\n\t\treturn ip + \" \"+ times;\n\t}", "@Override\r\n\tpublic String toString() {\n\t\treturn value + \"\";\r\n\t}" ]
[ "0.6828306", "0.6570062", "0.6478664", "0.63834375", "0.63390195", "0.6333048", "0.6257045", "0.62567675", "0.6251235", "0.6212303", "0.620701", "0.6181665", "0.61793387", "0.6140903", "0.6126561", "0.6118161", "0.6111878", "0.6108444", "0.61029494", "0.6099939", "0.6097104", "0.6091393", "0.60905075", "0.6089516", "0.60697657", "0.6062766", "0.60557973", "0.6045021", "0.6040239", "0.6035069", "0.60323614", "0.60310006", "0.60291713", "0.6019818", "0.599882", "0.59897536", "0.5986749", "0.5986287", "0.59487844", "0.5934652", "0.5928845", "0.59284586", "0.592781", "0.59245473", "0.59146893", "0.59042776", "0.5902218", "0.58865196", "0.587627", "0.5868218", "0.5866326", "0.5857974", "0.5857846", "0.5848316", "0.5846568", "0.5845382", "0.5840167", "0.58382314", "0.58373123", "0.5837223", "0.58364487", "0.58364487", "0.58364487", "0.58364487", "0.58364487", "0.58364487", "0.58364487", "0.58364487", "0.58364487", "0.58364487", "0.58364487", "0.58364487", "0.58364487", "0.58364487", "0.58364487", "0.58364487", "0.58364487", "0.58364487", "0.58364487", "0.58364487", "0.58364487", "0.58364487", "0.58364487", "0.58364487", "0.58364487", "0.58364487", "0.58364487", "0.58364487", "0.58328575", "0.58275473", "0.5823727", "0.58223665", "0.58186036", "0.58181936", "0.58120453", "0.5802854", "0.5795033", "0.5793418", "0.57908696", "0.5788172" ]
0.70656693
0
creating 2 hourly workers each with different constructor
public static void main(String[] args) { HourlyWorker worker1 = new HourlyWorker("Adam", "G", "P0489951", 30, 15.00); HourlyWorker worker2 = new HourlyWorker(); // testing all getters on worker1 System.out.println("first name: " + worker1.getFirstName()); System.out.println("last name: " + worker1.getLastName()); System.out.println("employee ID: " + worker1.getID()); System.out.println("hours: " + worker1.getHours()); System.out.println("hourly rate: " + worker1.getHourlyRate()); System.out.println("salary: " + worker1.getSalary()); System.out.println("earnings: " + worker1.earnings()); System.out.println(worker1.toString()); System.out.println(); // testing all setters on worker2 System.out.println(worker2.toString()); worker2.setFirstName("Erica"); worker2.setLastName("Erikson"); worker2.setID("P0626585"); worker2.setHours(55); worker2.setHourlyRate(13.15); worker2.calculateSalary(); System.out.println("earnings: " + worker2.earnings()); System.out.println(worker2.toString()); System.out.println(); // testing incorrect input worker1.setHours(-2443); worker1.setHourlyRate(-2323); worker1.calculateSalary(); System.out.println(worker1.toString()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public HourlyWorker() {\n\t\tthis.num_hours = 1;\n\t\tthis.hourly_rate = 0.01;\n\t}", "public void createWorker(Worker worker){\n }", "public HourlyWorker () {\r\n super ();\r\n hours = -1;\r\n hourlyRate = -1;\r\n salary = -1;\r\n }", "public Worker(){\n\n }", "public Scheduler()\n {\n this.id = \"\"+ hashCode();\n register();\n }", "public WorkerMonitor() {\n }", "@Override\r\n public void generateTasks() {\r\n int tasks = Integer.parseInt(this.getProperty(\"numTask\", \"1000\"));\r\n setNumOfTasks(tasks);\r\n //TODO:fixed port here !!!! need to change!!!\r\n serverPort = Integer.parseInt(this.getProperty(\"reqServerPort\", \"5560\")); \r\n PROC_MAX = Integer.parseInt(this.getProperty(\"reqServerMaxConcurrentClients\",\"10\"));\r\n location = this.getProperty(\"location\", \"rutgers\");\r\n energyplusPropertyFile = this.getProperty(\"energyplusTemplate\", \"energyplus.property\");\r\n \r\n winnerTakeAll = Boolean.parseBoolean(this.getProperty(\"winnerTakeAll\",\"true\"));\r\n jobDistributionMap = new HashMap<Integer,Integer>();\r\n copyJobDistributionMap = new HashMap<Integer,Integer>();\r\n //System.out.println(\"energyplusPropertyFile:\"+energyplusPropertyFile);\r\n \r\n initInfoSystem();\r\n initDistributionSystem();\r\n startFedServer();\r\n }", "public AutomaticJob() {\r\n \r\n }", "public void createHourly(String name, String math, String say, String iq, double hours, double wage) {\n workers.add(new HourlyWorker(name, math, say, iq, hours, wage));\n }", "public Schedule(int numProcessors) {\n scheduledTasks = new HashMap<>();\n processors = new ArrayList<>();\n length = 0;\n\n for (int i = 1; i <= numProcessors; i++) {\n processors.add(new Processor(\"\" + i));\n }\n }", "public static void main(String args[])\n {\n\t ScheduledExecutorService executorService= Executors.newScheduledThreadPool(2);\n\t Runnable task1=new RunnableChild(\"task1\");\n\t Runnable task2=new RunnableChild(\"task2\");\n\t Runnable task3=new RunnableChild(\"task3\");\n\t executorService.submit(task1);\n\t executorService.submit(task2);\n\t executorService.submit(task3);\n\t executorService.schedule(task1,20, TimeUnit.SECONDS);\n\t System.out.println(\"*******shutting down called\");\n\t executorService.shutdown();\n }", "void allocateWorker(Work work);", "worker(long workOn) {\n this.workOn = workOn;\n }", "public void scheduleJobs();", "public void createTasks(Integer _optID, String _tupleTag, String _taskType, String _info1, String _info2, String _destIP, String _port, String _location, long timestamp, Object _appSpecific){ \r\n //System.out.print(\"Create tasks\");\r\n boolean flag = false;\r\n String defaultIP = \"-1\";\r\n String defaultPort = \"-1\";\r\n \r\n //use wildcard to let one worker randomly choose the job to run\r\n //System.out.println(\"---What is optID: \" +_optID);\r\n if(_destIP.equals(\"RANDOM\")){\r\n int tempTaskID = getUpdatedTaskID();\r\n \r\n insertIntoParaList(tempTaskID, _optID, _tupleTag, _taskType,defaultIP,_info1,_info2,defaultPort,_location, timestamp,_appSpecific);\r\n flag = true;\r\n addEntryToResultList(_optID,flag);\r\n //------THE TASK IS INSERTED HERE\r\n insertTask(tempTaskID);\r\n }\r\n //send tuples to all\r\n else if(_destIP.equals(\"ALL\")){\r\n //Iterate through all sites that subscribe to certain types of task \r\n //System.out.println(\"infoSys.getSiteList(): \"+infoSys.getSiteList());\r\n Iterator it = infoSys.getSiteList().entrySet().iterator();\r\n while (it.hasNext()) {\r\n Map.Entry entry = (Map.Entry) it.next();\r\n _destIP = ((String) entry.getKey());\r\n ConcurrentHashMap<String, String> subscribeType = (ConcurrentHashMap<String, String>) entry.getValue();\r\n \r\n //option 2, if there is multiple subscribers of a certain taskType in one site\r\n Iterator subIt = subscribeType.entrySet().iterator();\r\n while (subIt.hasNext()) {\r\n Map.Entry subEntry = (Map.Entry) subIt.next();\r\n String[] typeAndAssociate = subEntry.getValue().toString().split(\",\");\r\n if (typeAndAssociate[0].equals(_tupleTag) && typeAndAssociate[1].equals(_taskType)) {\r\n _port = subEntry.getKey().toString();\r\n\r\n int tempTaskID = getUpdatedTaskID();\r\n insertIntoParaList(tempTaskID, _optID, _tupleTag, _taskType,_destIP, _info1,_info2,_port,_location, timestamp,_appSpecific);\r\n //System.out.println(\"Master out: \"+\"--\"+_tupleTag+\"--\"+_taskType+\"--\"+_optID+\"--\"+_destIP+\"--\"+_budget+\"--\"+_deadline+\"--\"+_port);\r\n flag = true;\r\n addEntryToResultList(_optID,flag);\r\n //------THE TASK IS INSERTED HERE\r\n insertTask(tempTaskID);\r\n \r\n }\r\n }\r\n }\r\n }\r\n //if user choose one specific worker, only send the message to it\r\n else{ \r\n //System.out.println(infoSys.getSiteList());\r\n //Check if this subscriber exists\r\n if (infoSys.hasAssociateSubscriber(_destIP, _port)) {\r\n int tempTaskID = getUpdatedTaskID();\r\n //System.out.println(\"Master out: \"+\"--\"+_tupleTag+\"--\"+_taskType+\"--\"+_optID+\"--\"+_destIP+\"--\"+_budget+\"--\"+_deadline+\"--\"+_port);\r\n insertIntoParaList(tempTaskID, _optID, _tupleTag, _taskType,_destIP,_info1,_info2,_port,_location, timestamp,_appSpecific);\r\n flag = true;\r\n addEntryToResultList(_optID,flag);\r\n insertTask(tempTaskID);\r\n } else {\r\n System.out.println(\"Incorrect destIP or destPort for creating task!\");\r\n }\r\n } \r\n //create entry in resultList\r\n addEntryToResultList(_optID,flag);\r\n }", "void allocateDeamonWorker(Work work);", "private ClientBootstrap createPeerBootStrap() {\n\n if (workerThreads == 0) {\n execFactory = new NioClientSocketChannelFactory(\n Executors.newCachedThreadPool(groupedThreads(\"onos/pcc\", \"boss-%d\")),\n Executors.newCachedThreadPool(groupedThreads(\"onos/pcc\", \"worker-%d\")));\n return new ClientBootstrap(execFactory);\n } else {\n execFactory = new NioClientSocketChannelFactory(\n Executors.newCachedThreadPool(groupedThreads(\"onos/pcc\", \"boss-%d\")),\n Executors.newCachedThreadPool(groupedThreads(\"onos/pcc\", \"worker-%d\")),\n workerThreads);\n return new ClientBootstrap(execFactory);\n }\n }", "public ProductionWorker(String name, String number, String date) \r\n\t{\r\n\t\tsuper(name, number, date);\r\n\t\ttitle = \"Production Worker\";\r\n\t}", "public DataCaseWorker() {\n super();\n }", "public static void main(String[] args){\n System.out.println(\"-------------\");\n BarWorker2 barWorker21 = new BarWorker2(\"barWorker21\");\n BarWorker2 barWorker22 = new BarWorker2(\"barWorker22\");\n for(int i=0;i<10;i++){\n barWorker22.run();\n barWorker21.run();\n }\n\n\n }", "public CreateWorkers(FileProcessor f, TreeManager t, Results r1, int nt, String[] dltwords){\r\n\t\t//Output debug message\r\n\t\tr1.writeToScreen(\"CreateWorkers created\\n\", MyLogger.DebugLevel.CONSTRUCTOR);\r\n\t\t\r\n\t\t//Set values\r\n\t\tfp = f;\t\r\n\t\ttm = t;\r\n\t\tr = r1;\r\n\t\tpts = new PopulateThread[nt];\r\n\t\tdlts = new DeleteThread[nt];\r\n\t\tfor(int i = 0; i < nt; i++){\r\n\t\t\tpts[i] = new PopulateThread(fp, r, tm);\r\n\t\t\tdlts[i] = new DeleteThread(r, tm, dltwords[i]);\r\n\t\t}\r\n\t}", "public void initAlgorithm() {\n executor.scheduleAtFixedRate(scheduledThoughtsProducer::periodicalThoughtsCheck, 1, 5,TimeUnit.MINUTES);\n// executor.scheduleAtFixedRate(scheduledThoughtsProducer::periodicalThoughtsCheck, 2, 10,TimeUnit.SECONDS);\n\n // every day perform random thought dice roll\n // also roll for random time: 10am - 9pm\n Cron4j.scheduler.schedule(Cron4j.EVERY_DAY_AT_10_AM, () -> {\n int produceThoughtDice = (int) (Math.random() * 3); // 66% yes, 33% no\n if (produceThoughtDice < 2) {\n int timeShift = (int) (Math.random() * 12); // 0-11\n executor.schedule(scheduledThoughtsProducer::periodicalThoughtProduceSuitable, timeShift, TimeUnit.HOURS);\n } else {\n System.out.println(\"Thought not produced today because of the dice: \" + produceThoughtDice);\n }\n });\n// Cron4j.scheduler.schedule(Cron4j.EVERY_MINUTE, () -> {\n// executor.schedule(scheduledThoughtsProducer::periodicalThoughtProduceSuitable, 0, TimeUnit.SECONDS);\n// });\n\n // every week perform a statistical overview\n // should be not very long and with a lot of variations\n Cron4j.scheduler.schedule(Cron4j.EVERY_WEEK_SUNDAY_18_PM, () -> {\n// Cron4j.scheduler.schedule(Cron4j.EVERY_MINUTE, () -> {\n executor.schedule(scheduledThoughtsProducer::periodicalWeeklyThoughts, 0, TimeUnit.SECONDS);\n });\n\n // start the scheduler\n Cron4j.scheduler.start();\n }", "protected abstract void createTasks();", "CreateWorkerResult createWorker(CreateWorkerRequest createWorkerRequest);", "public void createDeckWorker() {\n\t\tboolean stop = false;\n\t\twhile (this.deckWorker.size() < 5 && stop == false) {\n\t\t\tCard cardWorker = pickOnThePioche(this.worker);\n\t\t\tif (cardWorker.getName().equals(\"Stop\")) {\n\t\t\t\tthis.deckWorker.add(cardWorker);\n\t\t\t\tstop = true;\n\t\t\t} else {\n\t\t\t\tthis.deckWorker.add(cardWorker);\n\t\t\t\tthis.worker.remove(cardWorker);\n\t\t\t}\n\t\t}\n\t}", "public HourlyWorker (String fName, String lName, String empID, double hours, double hourlyRate) {\r\n super (fName, lName, empID);\r\n setHours(hours);\r\n setHourlyRate(hourlyRate);\r\n calculateSalary();\r\n }", "public Server(){\n this.tasks = new LinkedBlockingQueue<Task>();\n this.waitingPeriod = new AtomicInteger();\n }", "protected void addWorker(IWorkerConfiguration workerCfg) {\n if (!workerCfg.activate())\n return;\n \n log.debug(\"Adding new worker to the pool\");\n \n try {\n Class taskClass = Class.forName(workerCfg.getWorkerTask());\n\n int numWorker = (workerCfg.getConcurrentExecutions() == 0 ? 1 : workerCfg.getConcurrentExecutions());\n for(int i = 0; i < numWorker; i++) {\n RunningWorkerInstance rWorker = new RunningWorkerInstance();\n rWorker.workerName = workerCfg.getName();\n rWorker.task = (IWorkerTask) taskClass.newInstance();\n rWorker.task.setName(workerCfg.getName() + \":\" + i);\n rWorker.task.setParameters(workerCfg.getTaskParameters());\n\n Interval interval = workerCfg.getInterval();\n if (interval != null) \n rWorker.runningWorker = pool.scheduleWithFixedDelay(rWorker.task, 0, interval.getLength(), interval.getUnit());\n else\n rWorker.runningWorker = pool.submit(rWorker.task);\n\n workers.add(rWorker);\n \n log.debug(\"Added new worker instance [\" + workerCfg.getName() + \"] to the pool\");\n }\n } catch (ClassNotFoundException cnfe) {\n log.error(\"Unable to add worker \" + workerCfg.getName() + \" because task class [\" + workerCfg.getWorkerTask() + \"] could not be found\");\n } catch (InstantiationException ie) { \n log.error(\"Unable to add worker \" + workerCfg.getName() + \" because task class [\" + workerCfg.getWorkerTask() + \"] could not be created\");\n } catch (IllegalAccessException iae) {\n log.error(\"Unable to add worker \" + workerCfg.getName() + \" because task class [\" + workerCfg.getWorkerTask() + \"] could not be created\");\n } catch (ClassCastException cce) {\n log.error(\"Unable to add worker \" + workerCfg.getName() + \" because task class [\" + workerCfg.getWorkerTask() + \"] is not a WorkerTask object\");\n } catch (TaskConfigurationException tce) {\n log.error(\"Unable to add worker \" + workerCfg.getName() + \" because task could not be configured correctly [\" + tce.getMessage() + \"]\");\n }\n }", "public HourlyWorker(String name, int age, int year_hired, int num_hours, double hourly_rate) {\n\t\tsuper(name, age, year_hired);\n\t\tthis.num_hours = 1;\n\t\tthis.hourly_rate = 0.01;\n\t\tif (isValidHours(num_hours) && isValidRate(hourly_rate)) {\n\t\t\tthis.num_hours = num_hours;\n\t\t\tthis.hourly_rate = hourly_rate;\n\t\t}\n\t}", "public schedulerJob() {\n }", "Schedule createSchedule();", "public Workload getNewInstanceOfThisWorkload() {\n\t\t\n\t\tWorkload workload = new Workload(numOfSlotsNeededToSendPacket);\n Random rand = new Random(randomSeed);\n\t\t\n List<Vertex> vertices = topology.getVerticesWithOneNeighbor();\n Vertex gateway = topology.getGateway();\n \tfor(Vertex vertex : vertices) {\n \t\tif(vertex != gateway) {\n \t\t\tif(flowClasses.length == 1) {\n \t\t\tif(randomFlowPhase) {\n \t\t\t\tworkload.newPeriodicFlow(vertex, gateway, rand.nextInt(flowClasses[0]), flowClasses[0], flowClasses[0]);\n \t\t\t} else {\n \t\t\t\tworkload.newPeriodicFlow(vertex, gateway, 0, flowClasses[0], flowClasses[0]);\n \t\t\t}\n \t\t} else {\n \t\t\tint pickedFlowClass = rand.nextInt(flowClasses.length);\n \t\t\tif(randomFlowPhase) {\n \t\t\t\tworkload.newPeriodicFlow(vertex, gateway, rand.nextInt(flowClasses[pickedFlowClass]), flowClasses[pickedFlowClass], flowClasses[pickedFlowClass]);\n \t\t\t} else {\n \t\t\t\tworkload.newPeriodicFlow(vertex, gateway, 0, flowClasses[pickedFlowClass], flowClasses[pickedFlowClass]);\n \t\t\t}\n \t\t}\n \t\t}\n \t}\n \tworkload.assignPriorities();\n \t\n \treturn workload;\n\t}", "public void startPopulateWorkers(){\r\n\t\tArrayList<Thread> threads = new ArrayList<Thread>();\r\n\t\t\r\n\t\t//Create threads\r\n\t\tfor(int i = 0; i < pts.length; i++){\r\n\t\t\tthreads.add(new Thread(pts[i]));\r\n\t\t\tthreads.get(i).start();\r\n\t\t}\r\n\t\t\r\n\t\t//Wait for threads to finish\r\n\t\tfor(int i = 0; i < pts.length; i++){\r\n\t\t\ttry {\r\n\t\t\t\tthreads.get(i).join();\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\tthrow new RuntimeException(e.getMessage());\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n\t\tpublic void run() {\n\t\t\tArrayBlockingQueue<ByteBuffer> cachedBuffers = null;\n\t\t\tScheduledFuture<?> futureP = null;\n\t\t\tScheduledFuture<?> futureA = null;\n\t\t\tScheduledFuture<?> futureB = null;\n\t\t\ttry {\n\t\t\t\tScheduledThreadPoolExecutor executor = new ScheduledThreadPoolExecutor(1, new ThreadFactory() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic Thread newThread(@Nonnull Runnable r) {\n\t\t\t\t\t\tThread t = new Thread(THREAD_GROUP, r);\n\t\t\t\t\t\tt.setDaemon(true);\n\t\t\t\t\t\treturn t;\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\tByteBuffer b = ByteBuffer.wrap(genId);\n\t\t\t\tb.putInt(workerId);\n\t\t\t\tb.putLong(Long.reverse(System.nanoTime()) ^ System.currentTimeMillis());\n\t\t\t\tb.putInt(ThreadLocalFixedSeedRandom.current().nextInt());\n\t\t\t\tb.flip();\n\t\t\t\tb.get(genId);\n\n\t\t\t\t// tasks should be removed if the future is canceled\n\t\t\t\texecutor.setRemoveOnCancelPolicy(true);\n\n\t\t\t\t// make sure shutdown removes all pending tasks\n\t\t\t\texecutor.setContinueExistingPeriodicTasksAfterShutdownPolicy(false);\n\t\t\t\texecutor.setExecuteExistingDelayedTasksAfterShutdownPolicy(false);\n\n\t\t\t\tcachedBuffers = new ArrayBlockingQueue<>(CACHED_BUFFERS);\n\t\t\t\tfor (int i = 0; i < CACHED_BUFFERS; i++) {\n\t\t\t\t\tByteBuffer buff = ByteBuffer.allocate(BUFFER_SIZE);\n\t\t\t\t\tif (rustMode) {\n\t\t\t\t\t\tbuff.order(ByteOrder.LITTLE_ENDIAN);\n\t\t\t\t\t}\n\t\t\t\t\tcachedBuffers.add(buff);\n\t\t\t\t}\n\n\t\t\t\tint personSize = personsGenerator.itemSize();\n\t\t\t\tint auctionSize = auctionsGenerator.itemSize();\n\t\t\t\tint bidSize = bidGenerator.itemSize();\n\n\t\t\t\tlong ratio = targetPartitionSize / TOTAL_EVENT_RATIO;\n\t\t\t\tlong personsToGenerate = (PERSON_EVENT_RATIO * ratio) / personSize;\n\t\t\t\tlong auctionsToGenerate = (AUCTION_EVENT_RATIO * ratio) / auctionSize;\n\t\t\t\tlong bidsToGenerate = (BID_EVENT_RATIO * ratio) / auctionSize;\n\t\t\t\tlong recordsToGenerate = personsToGenerate + auctionsToGenerate + bidsToGenerate;\n\n\t\t\t\tint itemsPerBufferPerson = (BUFFER_SIZE - METADATA_SIZE) / personSize;\n\t\t\t\tint itemsPerBufferAuction = (BUFFER_SIZE - METADATA_SIZE) / auctionSize;\n\t\t\t\tint itemsPerBufferBid = (BUFFER_SIZE - METADATA_SIZE) / bidSize;\n\n\t\t\t\tAtomicLong sharedCounterPerson = new AtomicLong();\n\t\t\t\tAtomicLong sharedCounterAuction = new AtomicLong();\n\t\t\t\tAtomicLong sharedCounterBid = new AtomicLong();\n\n\t\t\t\tstarter.countDown();\n\t\t\t\tfairStarter.await();\n\n\t\t\t\tThroughtputLogger personLogger = new ThroughtputLogger(sharedCounterPerson, csvDirectory, name, topicNamePerson + \"-\" + workerId, 5, personSize);\n\t\t\t\tfutureP = executor.scheduleAtFixedRate(personLogger, 5, 5, TimeUnit.SECONDS);\n\n\t\t\t\tThroughtputLogger auctionLogger = new ThroughtputLogger(sharedCounterAuction, csvDirectory, name, topicNameAuction + \"-\" + workerId,5, auctionSize);\n\t\t\t\tfutureA = executor.scheduleAtFixedRate(auctionLogger, 6, 5, TimeUnit.SECONDS);\n\n\t\t\t\tThroughtputLogger bidsLogger = new ThroughtputLogger(sharedCounterBid, csvDirectory, name, topicNameBid + \"-\" + workerId,5, bidSize);\n\t\t\t\tfutureB = executor.scheduleAtFixedRate(bidsLogger, 6, 5, TimeUnit.SECONDS);\n\n\t\t\t\tdouble startMs = System.currentTimeMillis();\n\t\t\t\tlong sentBytes = 0;\n\t\t\t\tThreadLocalFixedSeedRandom randomness = ThreadLocalFixedSeedRandom.current();\n\n\n\t\t\t\tlong desiredThroughputBytesPerSecondMax = desiredThroughputBytesPerSecond;\n\t\t\t\tlong desiredThroughputBytesPerSecondMin = varyingWorkload ? 1024 * 1024 : desiredThroughputBytesPerSecond; // 1 MB/s\n\t\t\t\tlong throughputDelta = varyingWorkload ? 512 * 1024 : 0;\n\t\t\t\tlong currentThroughput = desiredThroughputBytesPerSecondMin;\n\t\t\t\tlong throughputChangeTimestamp = 0;\n\n\t\t\t\tRateLimiter throughputThrottler = RateLimiter.create(currentThroughput, 5, TimeUnit.SECONDS);\n\t\t\t\tLOG.debug(\"Create throughputThrottler for {} -> << {} MB/sec : {} MB/sec >>\",\n\t\t\t\t\t\tworkerId, desiredThroughputBytesPerSecondMin / ONE_MEGABYTE, desiredThroughputBytesPerSecondMax / ONE_MEGABYTE);\n\t\t\t\tint chkP = personsGenerator.genChecksum();\n\t\t\t\tint chkA = auctionsGenerator.genChecksum();\n\t\t\t\tint chkB = bidGenerator.genChecksum();\n\t\t\t\tlong pendingPerson = (recordsToGenerate / TOTAL_EVENT_RATIO) * PERSON_EVENT_RATIO;\n\t\t\t\tlong pendingAuctions = (recordsToGenerate / TOTAL_EVENT_RATIO) * AUCTION_EVENT_RATIO;\n\t\t\t\tlong pendingBids = (recordsToGenerate / TOTAL_EVENT_RATIO) * BID_EVENT_RATIO;\n\t\t\t\tlong sentBytesDelta = 0;\n\t\t\t\tByteBuffer bufP = cachedBuffers.take();\n\t\t\t\tByteBuffer bufA = cachedBuffers.take();\n\t\t\t\tByteBuffer bufB = cachedBuffers.take();\n\t\t\t\tbufA.putInt(chkA);\n\t\t\t\tbufP.putInt(chkP);\n\t\t\t\tbufB.putInt(chkB);\n\t\t\t\tint itemsInThisBufferA = (int) Math.min(itemsPerBufferAuction, pendingAuctions);\n\t\t\t\tint itemsInThisBufferP = (int) Math.min(itemsPerBufferPerson, pendingPerson);\n\t\t\t\tint itemsInThisBufferB = (int) Math.min(itemsPerBufferBid, pendingBids);\n\t\t\t\tlong backlogPerson = pendingPerson - itemsInThisBufferP;\n\t\t\t\tlong backlogAuction = pendingAuctions - itemsInThisBufferA;\n\t\t\t\tlong backlogBid = pendingBids - itemsInThisBufferA;\n\t\t\t\tbufP.putInt(itemsInThisBufferP);\n\t\t\t\tbufP.putLong(backlogPerson);\n\t\t\t\tbufA.putInt(itemsInThisBufferA);\n\t\t\t\tbufA.putLong(backlogAuction);\n\t\t\t\tbufB.putInt(itemsInThisBufferB);\n\t\t\t\tbufB.putLong(backlogBid);\n\n\t\t\t\tlong sentPersons = 0;\n\t\t\t\tlong sentAuctions = 0;\n\t\t\t\tlong sentBids = 0;\n\t\t\t\tlong eventId = 0;\n\n\t\t\t\tfor (; eventId < recordsToGenerate; eventId++) {\n\n\t\t\t\t\tfinal long timestamp = System.currentTimeMillis();\n\n\t\t\t\t\tlong rem = eventId % TOTAL_EVENT_RATIO;\n\t\t\t\t\tif (rem < PERSON_EVENT_RATIO) {\n\t\t\t\t\t\tpersonsGenerator.writeItem(eventId, timestamp, randomness, bufP);\n\t\t\t\t\t\tpendingPerson--;\n\t\t\t\t\t\tif (bufP.remaining() < personSize) {\n\t\t\t\t\t\t\tbufP.position(bufP.position() + bufP.remaining());\n\t\t\t\t\t\t\tProducerRecord<byte[], ByteBuffer> kafkaRecord = new ProducerRecord<>(topicNamePerson, targetPartition, genId, bufP);\n\t\t\t\t\t\t\tkafkaProducerPersons.send(kafkaRecord, new InternalCallback(cachedBuffers, bufP, sharedCounterPerson, itemsInThisBufferP));\n\t\t\t\t\t\t\tsentPersons += itemsInThisBufferP;\n\t\t\t\t\t\t\tbufP = cachedBuffers.take();\n\t\t\t\t\t\t\tbufP.putInt(chkP);\n\t\t\t\t\t\t\titemsInThisBufferP = (int) Math.min(itemsPerBufferPerson, pendingPerson);\n\t\t\t\t\t\t\tbacklogPerson = pendingPerson - itemsInThisBufferP;\n\t\t\t\t\t\t\tbufP.putInt(itemsInThisBufferP);\n\t\t\t\t\t\t\tbufP.putLong(backlogPerson);\n\t\t\t\t\t\t\tsentBytes += BUFFER_SIZE;\n\t\t\t\t\t\t\tsentBytesDelta += BUFFER_SIZE;\n\t\t\t\t\t\t\tthroughputThrottler.acquire(BUFFER_SIZE);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (rem < (PERSON_EVENT_RATIO + AUCTION_EVENT_RATIO)) {\n\t\t\t\t\t\tauctionsGenerator.writeItem(eventId, timestamp, randomness, bufA);\n\t\t\t\t\t\tpendingAuctions--;\n\t\t\t\t\t\tif (bufA.remaining() < auctionSize) {\n\t\t\t\t\t\t\tbufA.position(bufA.position() + bufA.remaining());\n\t\t\t\t\t\t\tProducerRecord<byte[], ByteBuffer> kafkaRecord = new ProducerRecord<>(topicNameAuction, targetPartition, genId, bufA);\n\t\t\t\t\t\t\tkafkaProducerAuctions.send(kafkaRecord, new InternalCallback(cachedBuffers, bufA, sharedCounterAuction, itemsInThisBufferA));\n\t\t\t\t\t\t\tsentAuctions += itemsInThisBufferA;\n\t\t\t\t\t\t\tbufA = cachedBuffers.take();\n\t\t\t\t\t\t\tbufA.putInt(chkA);\n\t\t\t\t\t\t\titemsInThisBufferA = (int) Math.min(itemsPerBufferAuction, pendingAuctions);\n\t\t\t\t\t\t\tbacklogAuction = pendingAuctions - itemsInThisBufferA;\n\t\t\t\t\t\t\tbufA.putInt(itemsInThisBufferA);\n\t\t\t\t\t\t\tbufA.putLong(backlogAuction);\n\t\t\t\t\t\t\tsentBytes += BUFFER_SIZE;\n\t\t\t\t\t\t\tsentBytesDelta += BUFFER_SIZE;\n\t\t\t\t\t\t\tthroughputThrottler.acquire(BUFFER_SIZE);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tbidGenerator.writeItem(eventId, timestamp, randomness, bufB);\n\t\t\t\t\t\tpendingBids--;\n\t\t\t\t\t\tif (bufB.remaining() < bidSize) {\n\t\t\t\t\t\t\tbufB.position(bufB.position() + bufB.remaining());\n\t\t\t\t\t\t\tProducerRecord<byte[], ByteBuffer> kafkaRecord = new ProducerRecord<>(topicNameBid, targetPartition, genId, bufB);\n\t\t\t\t\t\t\tkafkaProducerBids.send(kafkaRecord, new InternalCallback(cachedBuffers, bufB, sharedCounterBid, itemsInThisBufferB));\n\t\t\t\t\t\t\tsentBids += itemsInThisBufferB;\n\t\t\t\t\t\t\tbufB = cachedBuffers.take();\n\t\t\t\t\t\t\tbufB.putInt(chkB);\n\t\t\t\t\t\t\titemsInThisBufferB = (int) Math.min(itemsPerBufferBid, pendingBids);\n\t\t\t\t\t\t\tbacklogBid = pendingBids - itemsInThisBufferB;\n\t\t\t\t\t\t\tbufB.putInt(itemsInThisBufferB);\n\t\t\t\t\t\t\tbufB.putLong(backlogBid);\n\t\t\t\t\t\t\tsentBytes += BUFFER_SIZE;\n\t\t\t\t\t\t\tsentBytesDelta += BUFFER_SIZE;\n\t\t\t\t\t\t\tthroughputThrottler.acquire(BUFFER_SIZE);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n//\n\n\t\t\t\t\tif (sentBytesDelta > LOGGING_THRESHOLD) {\n\t\t\t\t\t\tLOG.info(\"{} has just sent {} MB to kafka in {} sec - rate limiter {} bytes/sec\",\n\t\t\t\t\t\t\t\tname,\n\t\t\t\t\t\t\t\tsentBytes / ONE_MEGABYTE,\n\t\t\t\t\t\t\t\t(timestamp - startMs) / 1_000,\n\t\t\t\t\t\t\t\tthroughputThrottler.getRate());\n\t\t\t\t\t\tsentBytesDelta = 0;\n\t\t\t\t\t}\n\n\t\t\t\t\tif ((timestamp - throughputChangeTimestamp) > 10_000) {\n\t\t\t\t\t\tcurrentThroughput += throughputDelta;\n\t\t\t\t\t\tif (currentThroughput > desiredThroughputBytesPerSecondMax) {\n\t\t\t\t\t\t\tthroughputDelta = -throughputDelta;\n\t\t\t\t\t\t} else if (currentThroughput < desiredThroughputBytesPerSecondMin) {\n\t\t\t\t\t\t\tcurrentThroughput = desiredThroughputBytesPerSecondMin;\n\t\t\t\t\t\t\tthroughputDelta = -throughputDelta;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tthroughputThrottler.setRate(currentThroughput);\n\t\t\t\t\t\tthroughputChangeTimestamp = timestamp;\n\t\t\t\t\t\tLOG.debug(\"Throttler changed to {}\", currentThroughput);\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\twhile (!sharedCounterPerson.compareAndSet(sentPersons, 0)) {\n\t\t\t\t\tThread.sleep(100);\n\t\t\t\t}\n\t\t\t\twhile (!sharedCounterAuction.compareAndSet(sentAuctions, 0)) {\n\t\t\t\t\tThread.sleep(100);\n\t\t\t\t}\n\t\t\t\twhile (!sharedCounterAuction.compareAndSet(sentBids, 0)) {\n\t\t\t\t\tThread.sleep(100);\n\t\t\t\t}\n\t\t\t\tdouble end = System.currentTimeMillis();\n\t\t\t\tdouble diff = end - startMs;\n\t\t\t\tLOG.info(\"{} is finished after {} msec and {} GBs and {} items with an overall throughput of {}\",\n\t\t\t\t\t\tname,\n\t\t\t\t\t\tdiff,\n\t\t\t\t\t\tsentBytes / ONE_GIGABYTE,\n\t\t\t\t\t\trecordsToGenerate,\n\t\t\t\t\t\t(sentBytes * 1_000.0) / (diff * ONE_GIGABYTE));\n\t\t\t} catch (Throwable error) {\n\t\t\t\tLOG.error(\"Error: {}\", error);\n\t\t\t} finally {\n\t\t\t\tif (cachedBuffers != null) {\n\t\t\t\t\tcachedBuffers.clear();\n\t\t\t\t}\n\t\t\t\tkafkaProducerAuctions.close();\n\t\t\t\tkafkaProducerPersons.close();\n\t\t\t\tkafkaProducerBids.close();\n\t\t\t\tcontroller.countDown();\n\t\t\t\tif (futureA != null) {\n\t\t\t\t\tfutureA.cancel(false);\n\t\t\t\t}\n\t\t\t\tif (futureP != null) {\n\t\t\t\t\tfutureP.cancel(false);\n\t\t\t\t}\n\t\t\t\tif (futureB != null) {\n\t\t\t\t\tfutureB.cancel(false);\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public PriorityScheduler() {\n }", "public Schedule heuristicScheduling() \n\t{ \n\t\t// this creates an array, originally empty, of all the tasks scheduled in the heuristic manner\n\t\tScheduledTask[] heuristic = new ScheduledTask[tasks.length];\n\t\n\t\t// this creates an array that holds the duration of tasks on every processor\n\t\tint[] processorDuration = new int[m];\n\t\t\n\t\t// this creates a clone of the tasks array so that it can be messed with\n\t\tint[] junkTasks = tasks.clone();\n\t\t\n\t\t// this is the index of how many tasks have already been scheduled\n\t\tint index = 0;\n\t\t\n\t\twhile (index < tasks.length)\n\t\t{\n\t\t\t// this is the index of the processor with the smallest duration\n\t\t\tint smallestIndex = 0;\n\t\t\t\n\t\t\t// this finds the processor with the smallest duration\n\t\t\tfor (int i = 0; i < m; i++)\n\t\t\t{\n\t\t\t\tif (processorDuration[i] < processorDuration[smallestIndex])\n\t\t\t\t\tsmallestIndex = i;\n\t\t\t}\n\t\t\t\n\t\t\t// this is the id of the task with the largest duration\n\t\t\tint largestIndex = 0;\n\n\t\t\t// this finds the task with the largest duration\n\t\t\tfor (int i = 0; i < junkTasks.length; i++)\n\t\t\t{\n\t\t\t\tif (junkTasks[i] > junkTasks[largestIndex])\n\t\t\t\t\tlargestIndex = i;\n\t\t\t}\n\t\t\t\n\t\t\t// this schedules the task with the largest duration at the processor with the smallest duration\n\t\t\t// and assigns it to heuristic array at the index\n\t\t\theuristic[index] = new ScheduledTask(largestIndex, smallestIndex);\n\t\t\t\n\t\t\t// this increments the duration of the processor to which the task just got assigned\n\t\t\tprocessorDuration[smallestIndex] += tasks[largestIndex];\n\t\t\t\n\t\t\t// this sets the duration of the task that was just scheduled to zero\n\t\t\tjunkTasks[largestIndex] = 0;\n\t\t\t\n\t\t\t// this increments the index since another task just got assigned\n\t\t\tindex++;\n\t\t}\n\t\t\n\t\treturn new Schedule(tasks, m, heuristic);\n\t}", "protected void runEachHour() {\n \n }", "void forkWorker(Map<String,Object> workerConfig);", "public static Schedule initializeSchedule(String[] args) {\n\n if (args.length == 5) { // Level 3\n RandomGenerator r = new RandomGenerator(Integer.parseInt(args[0]), \n Double.parseDouble(args[3]), Double.parseDouble(args[4]), 0);\n return new Schedule(r, args[1], args[2], \"1\", \"0\", \"0\", \"0\");\n } else if (args.length == 6) { // Level 4\n RandomGenerator r = new RandomGenerator(Integer.parseInt(args[0]), \n Double.parseDouble(args[4]), Double.parseDouble(args[5]), 0);\n return new Schedule(r, args[1], args[3], args[2], \"0\", \"0\", \"0\");\n } else if (args.length == 8) { // Level 5\n RandomGenerator r = new RandomGenerator(Integer.parseInt(args[0]), \n Double.parseDouble(args[4]), Double.parseDouble(args[5]), \n Double.parseDouble(args[6]));\n return new Schedule(r, args[1], args[3], args[2], args[7], \"0\", \"0\");\n } else if (args.length == 9) { // Level 6\n RandomGenerator r = new RandomGenerator(Integer.parseInt(args[0]), \n Double.parseDouble(args[5]), Double.parseDouble(args[6]), \n Double.parseDouble(args[7]));\n return new Schedule(r, args[1], args[4], args[3], args[8], args[2], \"0\");\n } else if (args.length == 10) { // Level 7\n RandomGenerator r = new RandomGenerator(Integer.parseInt(args[0]), \n Double.parseDouble(args[5]), Double.parseDouble(args[6]), \n Double.parseDouble(args[7]));\n return new Schedule(r, args[1], args[4], args[3], args[8], args[2], args[9]);\n } else {\n throw new IllegalArgumentException(\"Invalid Input\");\n }\n }", "public static void main(String[] args) {\n\t\t\r\n\t\ttimer = new Timer();\r\n//\t\ttimer.schedule(new WorkTask(), 5000, 3000);\r\n\t\ttimer.schedule(new WorkTask(), 1000);\r\n\t}", "private static void multiThreading(){\n\t\tSystem.out.println(\"\\nCreating new two separate instances of Singleton using Multi threading\");\n\t\tExecutorService service = Executors.newFixedThreadPool(2);\n\t\tservice.submit(TestSingleton::useSingleton);\n\t\tservice.submit(TestSingleton::useSingleton);\n\t\tservice.shutdown();\n\t}", "public Worker(int x, int y, int size) {\n super(x, y, size);\n// this.x = x;\n// this.y = y;\n// this.size = size;\n }", "protected abstract void scheduler_init();", "public PriorityScheduler() {\n\t}", "public void scheduleMarathon()\n\t{\n\n\t\t//Create new threads\n\t\tThread h = new Thread(new ThreadRunner(HARE,H_REST,H_SPEED)); \n\t\tThread t = new Thread(new ThreadRunner(TORTOISE,T_REST,T_SPEED)); \n\n\t\tArrayList<Thread> runnerList = new ArrayList<Thread>();\n\t\trunnerList.add(h);\n\t\trunnerList.add(t);\n\n\t\tSystem.out.println(\"Get set...Go! \");\n\t\t//Start threads\n\t\tfor (Thread i: runnerList){\n\t\t\ti.start();\n\t\t}\n\n\t\twaitMarathonFinish(runnerList);\n\t}", "public AbstractJob(){\n \n }", "public void init() {\r\n\r\n\t\t// dater collectors\r\n\t\t//trucksArrived = new TimeSeries(this, \"arrived\", new TimeInstant(0), new TimeInstant(1500), true, false);\r\n\t\t//trucksServiced = new TimeSeries(this, \"finished\", new TimeInstant(0), new TimeInstant(1500), true, false);\r\n\t\ttrucksArrived = new TimeSeries(this, \"arrived\", new TimeInstant(0), new TimeInstant(1500), true, false);\r\n\t\ttrucksServiced = new TimeSeries(this, \"finished\", new TimeInstant(0), new TimeInstant(1500), true, false);\r\n\t\twaitTimeHistogram = new Histogram(this, \"Truck Wait Times\", 0, 16, 10, true, false);\r\n\r\n\t\t// distributions DEFAULT\r\n\t\t// serviceTime = new ContDistUniform(this, \"ServiceTimeStream\", 3.0, 7.0, true, false);\r\n\t\t// truckArrivalTime = new ContDistExponential(this, \"TruckArrivalTimeStream\", 3.0, true, false);\r\n\r\n\t\t// distributions PROBLEM DESCRIPTION\r\n\t\t// serviceTime = new ContDistUniform(this, \"ServiceTimeStream\", 3.5,6.5, true, false);\r\n\t\t// truckArrivalTime = new ContDistExponential(this, \"TruckArrivalTimeStream\", 2.0, true, false);\r\n\t\tserviceTime = new ContDistExponential(this, \"ServiceTimeStream\", 4.0, true, false);\r\n\t\ttruckArrivalTime = new ContDistExponential(this, \"TruckArrivalTimeStream\", 2.0, true, false);\r\n\r\n\t\t// queues\r\n\t\ttruckQueue = new ProcessQueue<Truck>(this, \"Truck Queue\", true, false);\r\n\t\tidleVCQueue = new ProcessQueue<VC>(this, \"idle VC Queue\", true, false);\r\n\t}", "@Override\n protected void schedule() throws Exception {\n try {\n List<Slave> slaves = getSlaves();\n for (Slave slave : slaves) {\n int tc = tasksNode.getNumAssignedTasks(slave.getId());\n if (tc < 10) {\n for (int i = tc; i < 10; i++) {\n int k = counter.incrementAndGet();\n final String j = \"task-\" + k;\n Task t = new Task() {\n @Override\n public String getId() {\n return j;\n }\n\n @Override\n public byte[] getData() throws Exception {\n return new byte[0];\n }\n };\n\n tasksNode.addTask(t, slave.getId());\n if (k >= TOTAL_RECORDS){\n System.out.println(\"Stopping server [\" + getServerId() + \"]\");\n break;\n }\n }\n }\n }\n } catch (Exception e) {\n\n }\n tasksNode.watch(monitor);\n synchronized (monitor) {\n monitor.wait(PAUSE_BETWEEN_TASK_SCHEDULE);\n }\n }", "protected Scheduler(Program p, Machine... machines) {\n program = p;\n this.schedule = getNewSchedule(PSymGlobal.getSymmetryTracker());\n this.machines = new ArrayList<>();\n this.currentMachines = new TreeSet<>();\n this.machineCounters = new HashMap<>();\n\n for (Machine machine : machines) {\n this.machines.add(machine);\n this.currentMachines.add(machine);\n if (this.machineCounters.containsKey(machine.getClass())) {\n this.machineCounters.put(\n machine.getClass(), IntegerVS.add(this.machineCounters.get(machine.getClass()), 1));\n } else {\n this.machineCounters.put(machine.getClass(), new PrimitiveVS<>(1));\n }\n TraceLogger.onCreateMachine(Guard.constTrue(), machine);\n machine.setScheduler(this);\n schedule.makeMachine(machine, Guard.constTrue());\n }\n }", "abstract public void computeSchedule();", "@Override\r\n\tpublic void processWorkload() {\n this.spawnUser(periods.get(0).getPeriodStartTimePoint());\t\r\n\t}", "public static void main(String[] args) {\n FirstComeFirstServed FCFS = new FirstComeFirstServed();\n\n ShortestJobFirst SJF = new ShortestJobFirst();\n ShortestRemainingTime SRT = new ShortestRemainingTime();\n RoundRobin RR = new RoundRobin();\n NonpreemptiveHighestPriorityFirst NP_HPF = new NonpreemptiveHighestPriorityFirst();\n PreemptiveHighestPriorityFirst P_HPF = new PreemptiveHighestPriorityFirst();\n NonpreemptiveHighestPriorityFirstAging NP_HPF_AG = new NonpreemptiveHighestPriorityFirstAging();\n PreemptiveHighestPriorityFirstAging P_HPF_AG = new PreemptiveHighestPriorityFirstAging();\n\n\n PriorityQueue<Process>[] priorityQueues = new PriorityQueue[COUNT_ALGORITHM + 1];\n int [] SEEDS = new int[]{1234, 117777,33317,17111, 19191};\n\n for (int j = 0; j < ROUND; j++) {\n System.out.format(\"\\n### Start Running Round %d ###\\n\", j);\n // write your code here\n priorityQueues[0] = ProcessGenerator.generateJobs (SEEDS[j], 20);\n\n // make a copy for each algorithm\n for (int i = 1; i < COUNT_ALGORITHM + 1; i++) {\n priorityQueues[i] = new PriorityQueue<Process>(priorityQueues[0]);\n }\n\n // print the process list in ascending order\n while (!priorityQueues[COUNT_ALGORITHM].isEmpty()) {\n System.out.println(priorityQueues[COUNT_ALGORITHM].poll());\n }\n\n\n // Add different scheduling algorithms here\n System.out.println(\"\\nFisrt come first servered\");\n FCFS.schedule(priorityQueues[0]);\n\n System.out.println(\"\\nShortest Job First\");\n SJF.schedule(priorityQueues[1]);\n\n System.out.println(\"\\nShortest remaining time\");\n SRT.schedule(priorityQueues[2]);\n System.out.println(\"\\nRoundRobin\");\n RR.schedule(priorityQueues[4]);\n\n System.out.println(\"\\nNonpreemptive Highest Priority First\");\n NP_HPF.schedule(priorityQueues[5]);\n\n System.out.println(\"\\nNonpreemptive Highest Priority First (Aging)\");\n NP_HPF_AG.schedule(priorityQueues[6]);\n\n System.out.println(\"\\nPreemptive Highest Priority First\");\n P_HPF.schedule(priorityQueues[7]);\n\n System.out.println(\"\\nPreemptive Highest Priority First (Aging)\");\n P_HPF_AG.schedule(priorityQueues[8]);\n\n\n }\n\n\n System.out.println(\"\\n\");\n System.out.format(\"==================== 5 Round Average Statistics ====================\\n\");\n System.out.format(\"%10s %20s %20s %20s\\n\", \"Algorithm\", \"Turnaround\", \"Waiting\", \"Response\");\n System.out.format(\"%10s %20.3f %20.3f %20.3f\\n\", \"FCFS\",\n FCFS.getStats().getAvgTurnaroundTime(),\n FCFS.getStats().getAvgWaitingTime(),\n FCFS.getStats().getAvgResponseTime());\n\n\n System.out.format(\"%10s %20.3f %20.3f %20.3f\\n\", \"SJF\",\n SJF.getStats().getAvgTurnaroundTime(),\n SJF.getStats().getAvgWaitingTime(),\n SJF.getStats().getAvgResponseTime());\n\n System.out.format(\"%10s %20.3f %20.3f %20.3f\\n\", \"SRT\",\n SRT.getStats().getAvgTurnaroundTime(),\n SRT.getStats().getAvgWaitingTime(),\n SRT.getStats().getAvgResponseTime());\n\n System.out.format(\"%10s %20.3f %20.3f %20.3f\\n\", \"RR\",\n RR.getStats().getAvgTurnaroundTime(),\n RR.getStats().getAvgWaitingTime(),\n RR.getStats().getAvgResponseTime());\n\n System.out.format(\"%10s %20.3f %20.3f %20.3f\\n\", \"SJF\",\n SJF.getStats().getAvgTurnaroundTime(),\n SJF.getStats().getAvgWaitingTime(),\n SJF.getStats().getAvgResponseTime());\n\n\n System.out.format(\"%10s %20.3f %20.3f %20.3f\\n\", \"NP_HPF\",\n NP_HPF.getStats().getAvgTurnaroundTime(),\n NP_HPF.getStats().getAvgWaitingTime(),\n NP_HPF.getStats().getAvgResponseTime());\n\n System.out.format(\"%10s %20.3f %20.3f %20.3f\\n\", \"P_HPF\",\n P_HPF.getStats().getAvgTurnaroundTime(),\n P_HPF.getStats().getAvgWaitingTime(),\n P_HPF.getStats().getAvgResponseTime());\n\n System.out.format(\"%10s %20.3f %20.3f %20.3f\\n\", \"NP_HPF_AG\",\n NP_HPF_AG.getStats().getAvgTurnaroundTime(),\n NP_HPF_AG.getStats().getAvgWaitingTime(),\n NP_HPF_AG.getStats().getAvgResponseTime());\n\n System.out.format(\"%10s %20.3f %20.3f %20.3f\\n\", \"P_HPF_AG\",\n P_HPF_AG.getStats().getAvgTurnaroundTime(),\n P_HPF_AG.getStats().getAvgWaitingTime(),\n P_HPF_AG.getStats().getAvgResponseTime());\n\n }", "@Override\n public void construct() {\n Metric metric =\n new CPU_Utilization(1) {\n @Override\n public MetricFlowUnit gather(Queryable queryable) {\n return MetricFlowUnit.generic();\n }\n };\n Symptom earthSymptom =\n new Symptom(1) {\n @Override\n public SymptomFlowUnit operate() {\n return SymptomFlowUnit.generic();\n }\n\n @Override\n public String name() {\n return EARTH_KEY;\n }\n };\n Symptom moonSymptom =\n new Symptom(1) {\n @Override\n public SymptomFlowUnit operate() {\n return SymptomFlowUnit.generic();\n }\n\n public String name() {\n return MOON_KEY;\n }\n };\n\n Metric skyLabCpu =\n new CPU_Utilization(1) {\n @Override\n public MetricFlowUnit gather(Queryable queryable) {\n return MetricFlowUnit.generic();\n }\n };\n Symptom skyLabsSymptom =\n new Symptom(1) {\n @Override\n public SymptomFlowUnit operate() {\n return SymptomFlowUnit.generic();\n }\n\n public String name() {\n return SKY_LABS_KEY;\n }\n };\n\n addLeaf(metric);\n addLeaf(skyLabCpu);\n earthSymptom.addAllUpstreams(Collections.singletonList(metric));\n moonSymptom.addAllUpstreams(Collections.singletonList(earthSymptom));\n skyLabsSymptom.addAllUpstreams(\n new ArrayList<Node<?>>() {\n {\n add(earthSymptom);\n add(moonSymptom);\n add(skyLabCpu);\n }\n });\n\n metric.addTag(LOCUS_KEY, EARTH_KEY);\n earthSymptom.addTag(LOCUS_KEY, EARTH_KEY);\n moonSymptom.addTag(LOCUS_KEY, MOON_KEY);\n skyLabCpu.addTag(LOCUS_KEY, SKY_LABS_KEY);\n skyLabsSymptom.addTag(LOCUS_KEY, SKY_LABS_KEY);\n }", "public Scheduler()\r\n {\r\n town = new Graph<String>();\r\n }", "public static void main(String[] args) {\n\t\tString[]array=new String[2];\n\t\tfor (int i = 0; i < Runtime.getRuntime().availableProcessors(); i++) {\n\t\t\tHiloHijo h=new HiloHijo(i,array);\n\t\t\tThread t=new Thread(h);\n\t\t\t//t.run(); si lo hacemos asi se hace secuencial 01,2,3\n\t\t\t//en paralelo\n\t\t\tt.start();//para empezar el hilo el so se encarga de saber como empezarlo\n\t\t\t\n\t\t\tSystem.out.println(\"Hilos vivos (aprox) :\"+Thread.activeCount());\n\t\t\tSystem.out.println(\"hilo \"+i+\" vivo? \"+t.isAlive()+\" estado: \"+t.getState());\n\t\t\t//Inicializamos otro hilo\n\t\t\tHijoTipo2 h2=new HijoTipo2(i);\n\t\t\th2.start();\n\t\t\t\n\t\t\t/*\n\t\t\t * String[]arr=new String[3];\n\t\t\n\t\tHiloHijo h=new HiloHijo(1,arr);\n\t\tfor (int i = 0; i < Runtime.getRuntime().availableProcessors(); i++) {\n\t\t\tnew Thread(h).start();\n\t\t\t\n\t\t\t */\n\t\t\t\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tThread.sleep(1000);\n\t\t\tSystem.out.println(\"Hilos vivos al final (aprox) :\"+Thread.activeCount());\n\t\t\t\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t};\n\t}", "public WorkerPool(String name) {\n this.name = name;\n\n log = LogFactory.getLog(WorkerPool.class.getName() + \":\" + name);\n }", "public static void main(String[] args) throws InterruptedException {\n\t\tResourcesExploiter resource = new ResourcesExploiter(0);\n\t\tThreadedWorkerWithoutSync worker1= new ThreadedWorkerWithoutSync(resource);\n\t\tThreadedWorkerWithoutSync worker2= new ThreadedWorkerWithoutSync(resource);\n\t\tThreadedWorkerWithoutSync worker3= new ThreadedWorkerWithoutSync(resource);\n\t\t\n\t\tworker1.start();\n\t\tworker2.start();\n\t\tworker3.start();\n\t\tworker1.join();\n\t\tworker2.join();\n\t\tworker3.join();\n\t\t\n\t\tSystem.out.println(resource.getRsc());\n\t}", "@Test\n public void testScaleUpEphemeral() throws Exception {\n Atomix atomix1 = startAtomix(1, Arrays.asList(2), Profile.dataGrid()).get(30, TimeUnit.SECONDS);\n Atomix atomix2 = startAtomix(2, Arrays.asList(1), Profile.dataGrid()).get(30, TimeUnit.SECONDS);\n Atomix atomix3 = startAtomix(3, Arrays.asList(1), Profile.dataGrid()).get(30, TimeUnit.SECONDS);\n }", "public static void main(String[] args){\n\n Executors.newSingleThreadExecutor().execute(new Runnable() {\n public void run() {\n System.out.println(\"Starting\");\n new ScheduleExecutor();\n }\n });\n\n new Server(5821, 10).launch();\n\n }", "private List<MyRecursiveAction> createSubTasks(){\n List<MyRecursiveAction> subTasks = new ArrayList<>();\n\n MyRecursiveAction subTask1 = new MyRecursiveAction(this.workLoad / 2);\n MyRecursiveAction subTask2 = new MyRecursiveAction(this.workLoad / 2);\n subTasks.add(subTask1);\n subTasks.add(subTask2);\n\n return subTasks;\n }", "public abstract ScheduledExecutorService getWorkExecutor();", "public static void main(String[] args) {\n\t\tWorker w1=new DailyWorker(\"SUs\",40);\r\n\t\tWorker w2=new DailyWorker(\"Giri\",50);\r\n\t\tWorker w3=new SalariedWorker(\"Chap\",20);\r\n\t\tWorker w4=new SalariedWorker(\"kip\",30);\r\n\t\tSystem.out.println(w1.Pay(4));\r\n\t\tSystem.out.println(w2.Pay(5));\r\n\t\tSystem.out.println(w3.Pay(20));\r\n\t\tSystem.out.println(w4.Pay(42));\r\n\t}", "@Test\n public void testGetNodesExecutionTime() throws Exception {\n HeterogeneousComputingEnv envTest = nestedDependency();\n\n ScheduleChromosome chromosomeTest = new ScheduleChromosome(envTest);\n\n // Guarantee that task 0 and 2 are in the same core and 1 in the other\n chromosomeTest.toSeq().get(0).mutate(ScheduleAllele.of(envTest, 0, 0));\n chromosomeTest.toSeq().get(1).mutate(ScheduleAllele.of(envTest, 1, 1));\n chromosomeTest.toSeq().get(2).mutate(ScheduleAllele.of(envTest, 2, 0));\n\n // Create the factory\n StatsFactory statsFact = new StatsFactory(envTest, fitnessCalc);\n Stats stat = statsFact.ofChromosome(chromosomeTest);\n\n assertEquals(5, stat.getNodesExecutionTime()[0], EPSILON);\n assertEquals(3, stat.getNodesExecutionTime()[1], EPSILON);\n\n // Test case 2 - last 2 tasks in parallel\n envTest = oneRootTwoDepenendantTasks();\n\n chromosomeTest = new ScheduleChromosome(envTest);\n\n // Guarantee that task 0 and 2 are in the same core and 1 in the other\n chromosomeTest.toSeq().get(0).mutate(ScheduleAllele.of(envTest, 0, 0));\n chromosomeTest.toSeq().get(1).mutate(ScheduleAllele.of(envTest, 1, 1));\n chromosomeTest.toSeq().get(2).mutate(ScheduleAllele.of(envTest, 2, 0));\n\n // Create the factory\n statsFact = new StatsFactory(envTest, fitnessCalc);\n stat = statsFact.ofChromosome(chromosomeTest);\n\n assertEquals(2, stat.getNodesExecutionTime()[0], EPSILON);\n assertEquals(3, stat.getNodesExecutionTime()[1], EPSILON);\n\n // Test case 4 - independent tasks\n envTest = independentTasks();\n\n chromosomeTest = new ScheduleChromosome(envTest);\n\n // Guarantee that task 0 and 2 are in the same core and 1 in the other\n chromosomeTest.toSeq().get(0).mutate(ScheduleAllele.of(envTest, 0, 0));\n chromosomeTest.toSeq().get(1).mutate(ScheduleAllele.of(envTest, 1, 1));\n chromosomeTest.toSeq().get(2).mutate(ScheduleAllele.of(envTest, 2, 0));\n\n // Create the factory\n statsFact = new StatsFactory(envTest, fitnessCalc);\n stat = statsFact.ofChromosome(chromosomeTest);\n\n assertEquals(2, stat.getNodesExecutionTime()[0], EPSILON);\n assertEquals(1, stat.getNodesExecutionTime()[1], EPSILON);\n\n }", "public static void main(String[] args) {\n\t\t\n\t\tRunnable r1 = () -> {\n\t\t\tSystem.out.println(\"I am running in \" + Thread.currentThread().getName());\n\t\t\t//singleton.getInstance();\n\t\t\tnostatic ns = new nostatic();\n\t\t\t\n\t\t\t\n\t\t\tns.incrementNum();\n\t\t};\n\t\t\n\t\tThread[] tarray = new Thread[100];\n\t\t\n\t\tfor( int i =0 ;i < 10 ; i++)\n\t\t{\n\t\t\ttarray[i] = new Thread(r1); \n\t\t\ttarray[i].start();\t\n\t\t}\n\t\t\t\t\n\t\t//System.out.println(\" end\" + t1.getName() + \" 2nd thread name \" + t2.getName());\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tResource r = new Resource();\n\t\t/**\n\t\t * A list to store the philosophers\n\t\t */\n\t\tList<Philosopher> philosopherList = new ArrayList<Philosopher>();\n\t\tfor(int i=1;i<=TOTAL_MOUNT;i++){\n\t\t\tPhilosopher philosopher = new Philosopher(\"Philosopher \"+i, i, false);\n\t\t\tphilosopherList.add(philosopher);\n\t\t}\n\t\t\n\t\t/**\n\t\t * A list to store threads with philosopher and resource\n\t\t */\n\t\tList<Thread> threadList = new ArrayList<Thread>();\n\t\tfor(int i=1;i<=TOTAL_MOUNT;i++){\n\t\t\tThread thread = new Thread(new Eat(philosopherList.get(i-1), r));\n\t\t\tthreadList.add(thread);\n\t\t}\n\t\t\n\t\t/**\n\t\t * start thread method.\n\t\t */\n\t\tfor(int i=1;i<=TOTAL_MOUNT;i++){\n\t\t\tthreadList.get(i-1).start();\n\t\t}\n\t\t\n//\t\tPhilosopher p1 = new Philosopher(\"Philosopher 1\", 1, false);\n//\t\tPhilosopher p2 = new Philosopher(\"Philosopher 2\", 2, false);\n//\t\tPhilosopher p3 = new Philosopher(\"Philosopher 3\", 3, false);\n//\t\tPhilosopher p4 = new Philosopher(\"Philosopher 4\", 4, false);\n//\t\tPhilosopher p5 = new Philosopher(\"Philosopher 5\", 5, false);\n//\t\tThread t1 = new Thread(new Eat(p1, r));\n//\t\tThread t2 = new Thread(new Eat(p2, r));\n//\t\tThread t3 = new Thread(new Eat(p3, r));\n//\t\tThread t4 = new Thread(new Eat(p4, r));\n//\t\tThread t5 = new Thread(new Eat(p5, r));\n//\t\tt1.start();\n//\t\tt2.start();\n//\t\tt3.start();\n//\t\tt4.start();\n//\t\tt5.start();\n\t}", "public EnergySchedulingFactoryImpl() {\n\t\tsuper();\n\t}", "public void startThread() \n { \n ExecutorService taskList = \n Executors.newFixedThreadPool(2); \n for (int i = 0; i < 5; i++) \n { \n // Makes tasks available for execution. \n // At the appropriate time, calls run \n // method of runnable interface \n taskList.execute(new Counter(this, i + 1, \n \"task \" + (i + 1))); \n } \n \n // Shuts the thread that's watching to see if \n // you have added new tasks. \n taskList.shutdown(); \n }", "public interface SchedulerProvider {\n\n Scheduler ui();\n\n Scheduler computation();\n\n Scheduler io();\n\n}", "@Test\n\tvoid testCost() {\n\t\tint nbCores = 16;\n\t\tlong duration = 2000;\n\t\tDate requestDate = new Date(\"01/01/2000\");\n\t\tJob j1 = new Job(nbCores,requestDate,duration,mediumQ);//16 cores less than 1h\n\t\tJob j2 = new Job(nbCores*2,requestDate,duration,mediumQ);//32 cores less than 1h\n\t\tJob j3 = new Job(nbCores*2+1,requestDate,duration,mediumQ);//33 cores less than 1h\n\t\tJob j4 = new Job(nbCores,requestDate,duration*2,mediumQ);//16 cores more than 1h\n\t\tJob j5 = new Job(nbCores*2+1,requestDate,duration*2,mediumQ);//33 cores more than 1h\n\t\tassertEquals(j1.getCost(),0.05f);\n\t\tassertEquals(j2.getCost(),0.05f);\n\t\tassertEquals(j3.getCost(),0.1f);\n\t\tassertEquals(j4.getCost(),0.1f);\n\t\tassertEquals(j5.getCost(),0.2f);\n\t}", "@Test\n public void testCreateAllocationScraperWorkerJob() throws Exception {\n LocalDate currentDate = LocalDate.parse(\"2018-05-25\");\n LocalDate endDate = LocalDate.parse( \"2018-10-06\" );\n while ( currentDate.isBefore( endDate ) ) {\n CloudbedsAllocationScraperWorkerJob workerJob = new CloudbedsAllocationScraperWorkerJob();\n workerJob.setStatus( JobStatus.submitted );\n workerJob.setAllocationScraperJobId( 440052 ); // dbpurge job (no recs)\n workerJob.setStartDate( currentDate );\n workerJob.setEndDate( currentDate.plusDays( 7 ) );\n dao.insertJob( workerJob );\n currentDate = currentDate.plusDays( 7 ); // calendar page shows 2 weeks at a time\n }\n }", "public static List<Future<Result>> createEnergyJobs(List<List<Rotamer>> rotamerSpace, Peptide startingPeptide, Set<RotamerPair> incompatiblePairs,\n ConcurrentHashMap<Rotamer,Double> tempMap1, ConcurrentHashMap<RotamerPair,Double> tempMap2,\n AtomicDouble backboneEnergy)\n {\n //System.out.println(new Date());\n //System.out.print(\"Preparing to create energy jobs...\");\n\n // create all glycine peptide\n Peptide templatePeptide = startingPeptide;\n ProtoAminoAcid glycine = ProtoAminoAcidDatabase.getTemplate(\"standard_glycine\");\n for (Residue residue : templatePeptide.sequence)\n {\n if ( residue.isHairpin )\n continue;\n templatePeptide = SidechainMutator.mutateSidechain(templatePeptide, residue, glycine);\n }\n\n // create jobs\n //System.out.print(\"single rotamer jobs...\");\n List<Future<Result>> futures = new ArrayList<>(); \n \n // create rotamer jobs\n // we minimize the amount of work by going across each row of rotamers\n // that is, we take the first rotamer at each position and make a peptide\n // then we go down the list, skipping positions where there aren't enough rotamers\n // incompatibles should not be an issue because those interactions will be ignored\n int maxIndex = 0;\n for (List<Rotamer> list : rotamerSpace)\n {\n if ( list.size() - 1 > maxIndex )\n maxIndex = list.size() -1;\n }\n\n for (int i=0; i <= maxIndex; i++)\n {\n List<Rotamer> theseRotamers = new LinkedList<>();\n for (List<Rotamer> list : rotamerSpace) \n {\n if ( i < list.size() )\n theseRotamers.add( list.get(i) );\n }\n ImmutableList<Rotamer> theseRotamers2 = ImmutableList.copyOf(theseRotamers);\n RotamerEnergyJob job = new RotamerEnergyJob(templatePeptide, theseRotamers2, theseRotamers2, tempMap1, backboneEnergy);\n Future<Result> f = GeneralThreadService.submit(job);\n futures.add(f);\n }\n\n // create rotamer pair jobs\n // we save time by just computing the interactions between the rotamers without the backbone present\n //System.out.println(new Date());\n //System.out.println(\"rotamer pair jobs...\");\n AStarEnergyCalculator.PairIterator iterator = new AStarEnergyCalculator.PairIterator(rotamerSpace, 1000);\n int count = 0;\n while (iterator.hasNext())\n {\n count++;\n LinkedListMultimap<Rotamer,Rotamer> thisBatch = iterator.next();\n RotamerPairEnergyJob job = new RotamerPairEnergyJob(templatePeptide, incompatiblePairs, thisBatch, tempMap2);\n Future<Result> f = GeneralThreadService.submit(job);\n futures.add(f);\n //System.out.printf(\"%d jobs created \\r\", count);\n }\n //System.out.println(\"\\nAll jobs created.\");\n return futures;\n }", "public BankHall(int serverNum, int ticketWindow) {\n serverThreadPool = Executors.newFixedThreadPool(serverNum);\n ticketWindowThreadPool = Executors.newFixedThreadPool(ticketWindow);\n }", "public WorkHours() {\n //default if not yet initialised\n this._startingHour=0.00;\n this._endingHour=0.00;\n }", "TimerSchedule createTimerSchedule();", "public grayTWorkerSweepRec() {\n }", "public static void main(String [] args) {\n\t\tExecutorService executor= Executors.newFixedThreadPool(2);\n\t\t\n\t\t//add the tasks that the threadpook executor should run\n\t\tfor(int i=0;i<5;i++) {\n\t\t\texecutor.submit(new Processor(i));\n\t\t}\n\t\t\n\t\t//shutdown after all have started\n\t\texecutor.shutdown();\n\t\t\n\t\tSystem.out.println(\"all submitted\");\n\t\t\n\t\t//wait 1 day till al the threads are finished \n\t\ttry {\n\t\t\texecutor.awaitTermination(1, TimeUnit.DAYS);\n\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tSystem.out.println(\"all completed\");\n\t\t\n\t}", "public static void main(String args[]) throws InterruptedException {\n int genClassCount = Integer.parseInt(System.getenv(\"DYN_CLASS_COUNT\"));\n\n // memory to consume by each instantiated object\n int memToConsumeMb = Integer.parseInt(System.getenv(\"MEM_USAGE_PER_OBJECT_MB\"));\n\n\n System.out.println(\"Generating and instantiating \" + genClassCount + \" classes.\");\n System.out.println(\"Each instantiated class will consume \" + memToConsumeMb + \" MB of memory.\");\n System.out.println(\"Available CPUs:\" + Runtime.getRuntime().availableProcessors());\n\n List<MemoryConsumer> memoryConsumers = new ArrayList<>();\n\n ClassPool pool = ClassPool.getDefault();\n pool.insertClassPath(new ClassClassPath(DynamicClassGen.class));\n\n try {\n\n for (int i = 0; i < genClassCount; i++) {\n // generate a new class from DynClassBase\n String className = DynClassBase.class.getCanonicalName();\n CtClass cc = pool.get(className);\n cc.setName(className + i);\n\n Class genClass = cc.toClass();\n Class<?> []ctorPrms = null;\n\n Constructor ctor = genClass.getConstructor(ctorPrms);\n\n MemoryConsumer memConsumer = (MemoryConsumer)ctor.newInstance(null);\n memoryConsumers.add(memConsumer);\n\n System.out.println(\"Instantiated class \" + memConsumer.getClass().getSimpleName());\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n // gradually increase memory consumption\n for (MemoryConsumer consumer: memoryConsumers) {\n int memToConsumeInBytes = memToConsumeMb * 1024 * 1024;\n consumer.consumeSomeMemory(memToConsumeInBytes);\n\n System.out.println(consumer.getClass().getSimpleName() + \" instance consuming \" + memToConsumeMb + \"MB\");\n }\n\n while(true){\n Thread.sleep(1000);\n }\n }", "public ThreadPool()\r\n {\r\n // 20 seconds of inactivity and a worker gives up\r\n suicideTime = 20000;\r\n // half a second for the oldest job in the queue before\r\n // spawning a worker to handle it\r\n spawnTime = 500;\r\n jobs = null;\r\n activeThreads = 0;\r\n askedToStop = false;\r\n }", "public Schedule(List<Integer> SprinklerIDs,int timeOfDay, int minute, int duration, List<Integer> daysOfWeek) {\n\t\tsuper();\n\t\tTimeOfDay = timeOfDay;\n\t\tMinute = minute;\n\t\tDuration = duration;\n\t\tDaysOfWeek = daysOfWeek;\n\t\tSprinklerIDs = SprinklerIDs;\n\t\tType=ScheduleType.TIMED;\n\t}", "private void init() {\n healthCheckTimer.newTimeout(\n new TimerTask() {\n @Override\n public void run(Timeout timeout) throws Exception {\n if (!isStop) {\n List<BrpcChannel> newHealthyInstances = new ArrayList<BrpcChannel>();\n Iterator<BrpcChannel> iter = unhealthyInstances.iterator();\n while (iter.hasNext()) {\n BrpcChannel instance = iter.next();\n boolean isHealthy = isInstanceHealthy(instance.getIp(), instance.getPort());\n if (isHealthy) {\n newHealthyInstances.add(instance);\n }\n }\n\n List<BrpcChannel> newUnhealthyInstances = new ArrayList<BrpcChannel>();\n iter = healthyInstances.iterator();\n while (iter.hasNext()) {\n BrpcChannel instance = iter.next();\n boolean isHealthy = isInstanceHealthy(instance.getIp(), instance.getPort());\n if (!isHealthy) {\n newUnhealthyInstances.add(instance);\n }\n }\n\n healthyInstances.addAll(newHealthyInstances);\n unhealthyInstances.removeAll(newHealthyInstances);\n\n healthyInstances.removeAll(newUnhealthyInstances);\n unhealthyInstances.addAll(newUnhealthyInstances);\n notifyInvalidInstance(newUnhealthyInstances);\n\n healthCheckTimer.newTimeout(this,\n rpcClient.getRpcClientOptions().getHealthyCheckIntervalMillis(),\n TimeUnit.MILLISECONDS);\n }\n\n }\n },\n rpcClient.getRpcClientOptions().getHealthyCheckIntervalMillis(),\n TimeUnit.MILLISECONDS);\n }", "public static ScheduledExecutorService createNewScheduler() {\n return Executors.newScheduledThreadPool(Runtime.getRuntime().availableProcessors() * 2);\n }", "public interface SchedulerProvider {\r\n\r\n Scheduler computation();\r\n\r\n Scheduler io();\r\n\r\n Scheduler ui();\r\n}", "public ForkJoinPoolMgr() {\n }", "public void generateSchedule(){\n\t\t\n\t}", "@Override\n public Builder workers(int numWorkers) {\n super.workers(numWorkers);\n return this;\n }", "private LoadBalancer(int port, String workers) throws UnknownHostException,\n\t\t\tIOException {\n\t\tthis.port = port;\n\t\tthis.nextWorker = 0;\n\t\tthis.workQueue = new ConcurrentLinkedQueue<ClientRequest>();\n\t\tthis.clients = new ConcurrentHashMap<Integer, ClientManager>();\n\t\tthis.pidsToWorkers = new ConcurrentHashMap<Integer, WorkerInfo>();\n\t\tINSTANCE = this;\n\n\t\tString[] workerList = workers.split(\"\\n\");\n\t\tthis.workers = new WorkerInfo[workerList.length];\n\t\tfor (int i = 0; i < workerList.length; i++) {\n\t\t\tString[] worker = workerList[i].split(\":\");\n\t\t\tif (worker.length < 2) {\n\t\t\t\tthis.workers[i] = new WorkerInfo(worker[0], 8001);\n\t\t\t} else {\n\t\t\t\tint workerPort = Integer.parseInt(worker[1]);\n\t\t\t\tthis.workers[i] = new WorkerInfo(worker[0], workerPort);\n\t\t\t}\n\t\t}\n\t}", "public interface ISimpleWorkExecManager extends IAsyncWorkExecManager<IAsyncWorker, IAsyncWorker>\n{\n\n\tpublic static final ISimpleWorkExecManager INSTANCE = new SimpleWorkExecManagerImpl();\n}", "Job(int id, int time) {\n this.id = id;\n this.time = time;\n }", "public Job() {\n\t\t\t\n\t\t}", "private void scheduleJob() {\n\n }", "public Scheduler(ArrayList<Processus> listOfProcess) {\n this.listOfProcess = listOfProcess;\n }", "public void feedWorkers(double time) { \n \n // check for idle workers\n // in this server type we iterate over the active jobs' worker pools\n Vector<FJJob> completed_jobs = new Vector<FJJob>();\n for (FJJob job : activeJobs) {\n // and within each worker pool, iterate over the workers\n boolean all_idle = true;\n for (int w : job2workers.get(job)) {\n if (workers[0][w].current_task == null) {\n // if the worker is idle, pull the next task (or null) from its queue\n serviceTask(workers[0][w], workers[0][w].queue.poll(), time);\n }\n \n // check if a task is being serviced now\n if (workers[0][w].current_task != null) {\n all_idle = false;\n }\n }\n \n // if all the workers are idle it means we have completed the current\n // job. Put these workers back into circulation.\n if (all_idle) {\n for (int w : job2workers.get(job)) {\n worker2job[w] = null;\n //System.out.println(\"freeing worker \"+w);\n remaining_workers++;\n }\n completed_jobs.add(job);\n }\n }\n\n for (FJJob job : completed_jobs) {\n activeJobs.remove(job);\n job2workers.remove(job);\n }\n \n if (remaining_workers > 0) {\n \tif (this.patient_job != null) {\n \t\tServiceJob(this.patient_job, time);\n \t} else {\n \t\tServiceJob(this.job_queue.poll(), time);\n \t}\n }\n }", "public static void main(String[] args){\n\t\tint increment=1;\n\t\tfor(int m=0;m<=5000;m+=increment){\n\t\t\tif(m==10)\n\t\t\t\tincrement=5;\n\t\t\tif(m==100)\n\t\t\t\tincrement=100;\n\t\t\tif(m==500)\n\t\t\t\tincrement=500;\n\n\t\t\tfor(int l=0;l<30;++l){\n\t\t\t\tdouble[][][] AFFINITY3=new double[Task.TYPES_OF_TASK_NUMBER][Task.TYPES_OF_TASK_NUMBER][Task.TYPES_OF_TASK_NUMBER];\n\t\t\t\tRandom r=new Random(l);\n\t\t\t\tdouble affinity;\n\t\t\t\tfor(int i=0;i<Task.TYPES_OF_TASK_NUMBER;++i){\n\t\t\t\t\tfor(int j=0;j<Task.TYPES_OF_TASK_NUMBER;++j){\n\t\t\t\t\t\tfor(int k=0;k<Task.TYPES_OF_TASK_NUMBER;++k){\n\t\t\t\t\t\t\tdo{\n\t\t\t\t\t\t\t\taffinity=r.nextDouble();\n\t\t\t\t\t\t\t}while(affinity==0);\n\t\t\t\t\t\t\tAFFINITY3[i][j][k]=AFFINITY3[i][k][j]=AFFINITY3[k][i][j]=AFFINITY3[j][i][k]=AFFINITY3[k][j][i]=AFFINITY3[j][k][i]=affinity;\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tList<Node> infrastructure=new ArrayList<>();\n\t\t\t\tfor(int i=0; i<TEST_NUMBER_OF_NODES;++i)\n\t\t\t\t\tinfrastructure.add(new Node(TEST_NUMBER_OF_CORES, TEST_RAM_SIZE));\n\t\t\t\tList<Task> tasks=new ArrayList<>();\n\t\t\t\tTaskType[] types=TaskType.values();\n\t\t\t\tfor(int i=0;i<TEST_NUMBER_OF_PROCESS;++i){\n\t\t\t\t\tTaskType type=types[r.nextInt(Task.TYPES_OF_TASK_NUMBER)];\n\t\t\t\t\tint instanceNumber=r.nextInt(101)+10;//from 10 to 100 instances\n\t\t\t\t\tint coresPerInstance=r.nextInt(12)+1;//from 1 to 12\n\t\t\t\t\tint ramPerinstance=r.nextInt(12*1024+101)+100;//from 100MB to 12GB\n\t\t\t\t\tdouble baseTime=r.nextInt(10001)+1000;//from 100 cycles to 1000\n\t\t\t\t\ttasks.add(new Task(type,instanceNumber,coresPerInstance,ramPerinstance,baseTime));\n\t\t\t\t}\n\t\t\t\tList<Integer> arrivalOrder=new ArrayList<>();\n\t\t\t\tint tasksSoFar=0;\n\t\t\t\tdo{\n\t\t\t\t\ttasksSoFar+=r.nextInt(11);\n\t\t\t\t\tarrivalOrder.add((tasksSoFar<tasks.size())?tasksSoFar:tasks.size());\n\t\t\t\t}while(tasksSoFar<tasks.size());\n\t\t\t\tfinal Scheduler scheduler=new AffinityAwareFifoScheduler(tasks, arrivalOrder, infrastructure,AFFINITY3,AffinityType.NORMAL,m);\n\t\t\t\tThread t=new Thread(new Runnable() {\t\t\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tscheduler.runScheduler();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tt.start();\n\t\t\t\ttry {\n\t\t\t\t\tt.join();\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"Finished running.\");\n\t\t\t}\n\t\t}\n\t}", "public WorkTimeEvent() {\r\n super();\r\n }", "public Configuration() {\r\n\t\t\tmaxEffectiveWorker = (Runtime.getRuntime().availableProcessors()*3/2) + 2;\r\n\t\t\tmaxPhysicalWorker = Math.max(32, (maxEffectiveWorker * 2) + 2);\r\n\t\t}", "public interface SchedulerProvider {\n Scheduler background();\n Scheduler ui();\n}", "public static void main(String[] args) {\n Config config = ResourceAllocator.loadConfig(new HashMap<>());\n System.out.println(\"read config values: \" + config.size());\n System.out.println(config);\n\n // build JobConfig\n HashMap<String, Object> configurations = new HashMap<>();\n configurations.put(SchedulerContext.THREADS_PER_WORKER, 8);\n\n JobConfig jobConfig = new JobConfig();\n jobConfig.putAll(configurations);\n\n // build the job\n Twister2Job twister2Job = Twister2Job.loadTwister2Job(config, jobConfig);\n\n // now submit the job\n Twister2Submitter.submitJob(twister2Job, config);\n\n // now terminate the job\n terminateJob(config);\n// jobWriteTest(twister2Job);\n// jobReadTest();\n }", "ComputerProxy(Computer computer) {\n this.computer = computer;\n //this.map = new ConcurrentHashMap<UUID, Task>();\n }", "private static Task[] createTaskList() {\n\t\t\n\t Task evalTask = new EvaluationTask();\n\t Task tamperTask = new TamperTask();\n\t Task newDocTask = new NewDocumentTask();\n\t Task reportTask = new AssignmentReportTask();\n\n\t Task[] taskList = {evalTask, tamperTask, newDocTask, reportTask};\n\n\t return taskList;\n\t}", "Run createRun();" ]
[ "0.69365233", "0.65187484", "0.6364863", "0.5975172", "0.5973579", "0.58210176", "0.5820372", "0.5769778", "0.57489395", "0.56965137", "0.5693068", "0.56927097", "0.56713146", "0.5633121", "0.56315935", "0.5618838", "0.56143445", "0.5613934", "0.56026304", "0.5580347", "0.55751866", "0.5565532", "0.5535133", "0.5531237", "0.55218154", "0.5501185", "0.54968077", "0.54689413", "0.54688346", "0.5458411", "0.5455159", "0.54493195", "0.5420239", "0.54085594", "0.5404053", "0.54031026", "0.53786963", "0.53664905", "0.5365409", "0.53617615", "0.5359916", "0.5337517", "0.533627", "0.53359944", "0.53333884", "0.5324768", "0.53243417", "0.5321044", "0.5319141", "0.5317478", "0.530582", "0.53032374", "0.52913606", "0.5288846", "0.52864003", "0.5261241", "0.5258879", "0.52587414", "0.52582896", "0.5257031", "0.5254136", "0.52519196", "0.52487856", "0.52446264", "0.52393526", "0.52285564", "0.5227907", "0.5223773", "0.5223112", "0.52218866", "0.5221569", "0.5220926", "0.5220139", "0.52140224", "0.52107805", "0.5208889", "0.5207292", "0.5206673", "0.5205074", "0.5204412", "0.5204253", "0.52039343", "0.52015483", "0.52008766", "0.5200486", "0.51928335", "0.5190538", "0.51850325", "0.5178098", "0.5174387", "0.5169928", "0.5168614", "0.5167473", "0.5166293", "0.5165799", "0.5165174", "0.5160133", "0.51571304", "0.5154569", "0.51542896" ]
0.5300017
52
This method will be called once per scheduler run
@Override public void periodic() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void periodic() {\n // This method will be called once per scheduler run\n }", "@Override\r\n\tpublic void doInitialSchedules() {\n\t}", "@Override\n public void autonomousPeriodic() {\n \n Scheduler.getInstance().run();\n \n }", "protected abstract void scheduler_init();", "private void beginSchedule(){\n\t\tDivaApp.getInstance().submitScheduledTask(new RandomUpdater(this), RandomUpdater.DELAY, RandomUpdater.PERIOD);\n\t}", "@Override\n public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "@Override\n public void autonomousPeriodic()\n {\n Scheduler.getInstance().run();\n }", "@Override\n public void run() {\n schedule();\n }", "@Override\n public void reportScheduler() {\n }", "private void scheduleJob() {\n\n }", "@Override\n protected Scheduler scheduler() {\n return scheduler;\n }", "@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\t\n\t}", "@Override\n public void autonomousPeriodic() {\n\t// updateDiagnostics();9\n\tScheduler.getInstance().run();\n }", "public void autonomousPeriodic() {\r\n Scheduler.getInstance().run();\r\n }", "public static void flushScheduler() {\n while (!RuntimeEnvironment.getMasterScheduler().advanceToLastPostedRunnable()) ;\n }", "@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}", "@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}", "@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}", "@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}", "public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "@Override\n public void autonomousPeriodic() {\n\n }", "@Override\n public void autonomousPeriodic() {\n \n }", "public void init(){\n\t\t//this.lock = new ReentrantLock();\n\t\t//jobscheduler.setLock(this.lock);\n\t\tthis.poller.inspect();\n\t\tschedule(this.poller.refresh());\t\t\t\t\n\t}", "@Override\n public void autonomousPeriodic() {\n }", "@Override\n public void autonomousPeriodic() {\n }", "@Override\n public void autonomousPeriodic() {\n }", "public void autonomousPeriodic() \n {\n Scheduler.getInstance().run();\n }", "protected void runEachDay() {\n \n }", "@Override\n public void autonomousPeriodic() {\n }", "public void autonomousPeriodic() {\r\n\t\tScheduler.getInstance().run();\r\n\t}", "@Override\n public void teleopPeriodic()\n {\n Scheduler.getInstance().run();\n }", "@Override\n public void autonomousPeriodic() \n {\n Scheduler.getInstance().run();\n log();\n }", "public void setScheduler(Scheduler scheduler)\r\n/* 25: */ {\r\n/* 26: 65 */ this.scheduler = scheduler;\r\n/* 27: */ }", "@Override\n public void teleopPeriodic() {\n\tupdateDiagnostics();\n\tScheduler.getInstance().run();\n }", "@Override\n public void teleopPeriodic() {\n Scheduler.getInstance().run();\n \n }", "public void autonomousPeriodic()\n\t{\n\t\tScheduler.getInstance().run();\n\t}", "@Override\n protected Scheduler scheduler() {\n return Scheduler.newFixedRateSchedule(0, 1, TimeUnit.SECONDS);\n }", "@Override\n public void autonomousPeriodic() {\n \tbeginPeriodic();\n Scheduler.getInstance().run();\n endPeriodic();\n }", "public void generateSchedule(){\n\t\t\n\t}", "@Override\n\tpublic void teleopPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}", "@Override\n\tpublic void teleopPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}", "@Override\n\tpublic void teleopPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}", "public void teleopPeriodic() {\r\n\t\tScheduler.getInstance().run();\r\n\t}", "@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\n\t\tlog();\n\t}", "@Override\n public void run() {\n createScheduleFile();\n createWinnerScheduleFile();\n }", "@Override\n public void run() {\n\n\n\n System.out.println(\"run scheduled jobs.\");\n\n\n checkBlackOutPeriod();\n\n\n\n checkOfficeActionPeriod1();\n\n checkAcceptedFilings();\n\n checkNOAPeriod();\n checkFilingExtensions();\n\n\n\n }", "protected abstract String scheduler_next();", "@Override\n public void periodic() {\n\n }", "@Override\n public void periodic() {\n\n }", "@Override\n protected Scheduler scheduler() {\n return Scheduler.newFixedRateSchedule(0, 1, TimeUnit.DAYS);\n }", "private void schedule() {\n service.scheduleDelayed(task, schedulingInterval);\n isScheduled = true;\n }", "@Override\n public void periodic() {\n UpdateDashboard();\n }", "protected void runEachHour() {\n \n }", "@Override\n public void autonomousPeriodic()\n {\n commonPeriodic();\n }", "protected void runEachMinute() {\n \n }", "@Override\n\tpublic void teleopPeriodic() {\n\t\tOI.refreshAll();\n\t\tScheduler.getInstance().run();\n\t\tlog();\n\t}", "@Override\n public void syncState() {\n scheduledCounter.check();\n }", "public void teleopPeriodic() {\n Scheduler.getInstance().run();\n }", "public void teleopPeriodic() {\n Scheduler.getInstance().run();\n }", "public void teleopPeriodic() {\n Scheduler.getInstance().run();\n }", "public void teleopPeriodic() {\n Scheduler.getInstance().run();\n }", "protected void beforeJobExecution() {\n\t}" ]
[ "0.79959375", "0.71370137", "0.7053971", "0.6965585", "0.69561255", "0.6893155", "0.68800586", "0.6876765", "0.67826825", "0.67659134", "0.6764156", "0.67577356", "0.6701485", "0.6687244", "0.6663779", "0.6658108", "0.6658108", "0.6658108", "0.6658108", "0.6644757", "0.6644757", "0.6644757", "0.6644757", "0.6644757", "0.6644757", "0.66429067", "0.6637915", "0.66273797", "0.66178864", "0.66178864", "0.66178864", "0.6614001", "0.65720326", "0.65580493", "0.6552124", "0.655197", "0.6537553", "0.6512464", "0.6478613", "0.645125", "0.6445831", "0.643673", "0.64337045", "0.64049494", "0.6391861", "0.6391861", "0.6391861", "0.6374168", "0.6369688", "0.6369592", "0.63500774", "0.63436323", "0.63429624", "0.63429624", "0.6324376", "0.63060725", "0.6303406", "0.6298463", "0.62968045", "0.6295609", "0.6295192", "0.6289829", "0.6271111", "0.6271111", "0.6271111", "0.6271111", "0.62665445" ]
0.62594575
92
TODO Autogenerated method stub
@Override public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) { imgView.setAlpha(progress); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void onStartTrackingTouch(SeekBar seekBar) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void onStopTrackingTouch(SeekBar seekBar) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0.6080555", "0.6076938", "0.6041293", "0.6024541", "0.6019185", "0.5998426", "0.5967487", "0.5967487", "0.5964935", "0.59489644", "0.59404725", "0.5922823", "0.5908894", "0.5903041", "0.5893847", "0.5885641", "0.5883141", "0.586924", "0.5856793", "0.58503157", "0.58464456", "0.5823378", "0.5809384", "0.58089525", "0.58065355", "0.58065355", "0.5800514", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57896614", "0.5789486", "0.5786597", "0.5783299", "0.5783299", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5760369", "0.5758614", "0.5758614", "0.574912", "0.574912", "0.574912", "0.57482654", "0.5732775", "0.5732775", "0.5732775", "0.57207066", "0.57149917", "0.5714821", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57115865", "0.57045746", "0.5699", "0.5696016", "0.5687285", "0.5677473", "0.5673346", "0.56716853", "0.56688815", "0.5661065", "0.5657898", "0.5654782", "0.5654782", "0.5654782", "0.5654563", "0.56536144", "0.5652585", "0.5649566" ]
0.0
-1
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.main, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_actions, menu);\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.action_bar_menu, menu);\r\n\t\tmMenu = menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.act_bar_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_actions, menu);\r\n\t\treturn true;\r\n //return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.action_bar_all, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\n\t\tMenuInflater muu= getMenuInflater();\n\t\tmuu.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.adventure_archive, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archive_menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n \tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n \t\tinflater.inflate(R.menu.main, menu);\n \t\tsuper.onCreateOptionsMenu(menu, inflater);\n \t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.action_menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater bow=getMenuInflater();\n\t\tbow.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.action_menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\t\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\t\t\n\t\t/* Inflate the menu; this adds items to the action bar if it is present */\n\t\tgetMenuInflater().inflate(R.menu.act_main, menu);\t\t\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflate = getMenuInflater();\n inflate.inflate(R.menu.menu, ApplicationData.amvMenu.getMenu());\n return true;\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\t\treturn true; \n\t\t\t\t\t\n\t\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.main, menu);\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) \n {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_bar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_item, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t \n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n this.getMenuInflater().inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\t//menu.clear();\n\t\tinflater.inflate(R.menu.soon_to_be, menu);\n\t\t//getActivity().getActionBar().show();\n\t\t//getActivity().getActionBar().setBackgroundDrawable(\n\t\t\t\t//new ColorDrawable(Color.rgb(223, 160, 23)));\n\t\t//return true;\n\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.main, menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu( Menu menu, MenuInflater inflater )\n\t{\n\t\tsuper.onCreateOptionsMenu( menu, inflater );\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n \t// We must call through to the base implementation.\r\n \tsuper.onCreateOptionsMenu(menu);\r\n \t\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_menu, menu);\r\n\r\n return true;\r\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.inter_main, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.action, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu (Menu menu){\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.custom_action_bar, menu);\n\t\treturn true;\n\t}", "public void initMenubar() {\n\t\tremoveAll();\n\n\t\t// \"File\"\n\t\tfileMenu = new FileMenuD(app);\n\t\tadd(fileMenu);\n\n\t\t// \"Edit\"\n\t\teditMenu = new EditMenuD(app);\n\t\tadd(editMenu);\n\n\t\t// \"View\"\n\t\t// #3711 viewMenu = app.isApplet()? new ViewMenu(app, layout) : new\n\t\t// ViewMenuApplicationD(app, layout);\n\t\tviewMenu = new ViewMenuApplicationD(app, layout);\n\t\tadd(viewMenu);\n\n\t\t// \"Perspectives\"\n\t\t// if(!app.isApplet()) {\n\t\t// perspectivesMenu = new PerspectivesMenu(app, layout);\n\t\t// add(perspectivesMenu);\n\t\t// }\n\n\t\t// \"Options\"\n\t\toptionsMenu = new OptionsMenuD(app);\n\t\tadd(optionsMenu);\n\n\t\t// \"Tools\"\n\t\ttoolsMenu = new ToolsMenuD(app);\n\t\tadd(toolsMenu);\n\n\t\t// \"Window\"\n\t\twindowMenu = new WindowMenuD(app);\n\n\t\tadd(windowMenu);\n\n\t\t// \"Help\"\n\t\thelpMenu = new HelpMenuD(app);\n\t\tadd(helpMenu);\n\n\t\t// support for right-to-left languages\n\t\tapp.setComponentOrientation(this);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp=getMenuInflater();\n\t\tblowUp.inflate(R.menu.welcome_menu, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.item, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.resource, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu,menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.home_action_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.template, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Log.d(\"onCreateOptionsMenu\", \"create menu\");\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.socket_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);//Menu Resource, Menu\n\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actionbar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(toolbar_res, menu);\n updateMenuItemsVisibility(menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t// \n\t\tMenuInflater mi = getMenuInflater();\n\t\tmi.inflate(R.menu.thumb_actv_menu, menu);\n\t\t\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.swag_list_activity_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\n\t\treturn true;\n\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.jarvi, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n menuInflater.inflate(R.menu.main, menu);\n\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add__listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actmain, menu);\r\n return true;\r\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.buat_menu, menu);\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.layout.menu, menu);\n\t\treturn true;\n\t}", "@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n\n\t\n\t\n\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\n\treturn super.onCreateOptionsMenu(menu);\n}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ichat, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater)\n\t{\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\tinflater.inflate(R.menu.expenses_menu, menu);\n\t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.action_bar, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp = getMenuInflater();\n\t\tblowUp.inflate(R.menu.status, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ui_main, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }" ]
[ "0.7249559", "0.7204226", "0.71981144", "0.7180145", "0.7110589", "0.70431244", "0.7041351", "0.70150685", "0.70118093", "0.69832", "0.6947845", "0.69419056", "0.6937257", "0.6920975", "0.6920975", "0.68938893", "0.68867826", "0.6878929", "0.6877472", "0.68656766", "0.68656766", "0.68656766", "0.68656766", "0.68553543", "0.6850232", "0.6822862", "0.68201447", "0.68163574", "0.68163574", "0.6816304", "0.6809227", "0.6803687", "0.6801118", "0.67946446", "0.67919034", "0.67913854", "0.6786644", "0.67618436", "0.6760987", "0.67516655", "0.67475504", "0.67475504", "0.6744612", "0.67433023", "0.6729379", "0.67267543", "0.67261547", "0.67261547", "0.6724336", "0.6714574", "0.67084044", "0.670811", "0.67026806", "0.6701955", "0.670018", "0.6697785", "0.66899645", "0.6687168", "0.6687168", "0.66860044", "0.66835976", "0.6682339", "0.668104", "0.6671387", "0.66706777", "0.6665407", "0.6659777", "0.6659777", "0.6659777", "0.6659032", "0.6658105", "0.6658105", "0.6658105", "0.66553104", "0.6654278", "0.6654054", "0.66521645", "0.6650613", "0.66495895", "0.6649238", "0.66490036", "0.6648245", "0.66481483", "0.6646514", "0.6646321", "0.6645122", "0.66418123", "0.6638334", "0.6636035", "0.6635416", "0.6635416", "0.6635416", "0.6635411", "0.66325295", "0.6631742", "0.66299105", "0.6629049", "0.6627932", "0.66237384", "0.662195", "0.662195" ]
0.0
-1
TODO Autogenerated method stub
@Override public void run() { imgView.setImageBitmap(pngBM); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
/ 1.setImageState theimageviewmethodsetimagestateintstatebooleanmergedo So it looks like if you set merge to false in setImageState(state, merge) then next time the view system calls onCreateDrawableState() it will return just the state you supplied in setImageState(state, merge). If however you set merge to true in setImageState(state, merge) then next time the view system calls onCreateDrawableState() it will return the existing state merged with the state you supplied in setImageState(state, merge). In other words, Yes the merge parameter determines whether the state you supply should be combined with or replace the current states of the ImageView next time the view system calls onCreateDrawableState(). I still believe some explanation of the parameters should be added to the documentation. I've not come across any other public methods without any documentation so far. imgView.setImageState(state, merge) 2. set ImageLevel / imgView.setImageResource(R.drawable.weathericon); imgView.setImageLevel(a); a = (a == 1 ? 0 : 1); 3.setImageMatrix android:scaleType="matrix"
void setImageProperty() { imgView.setImageResource(R.drawable.weathericon); Matrix matrix = new Matrix(); rotate += 30; if (rotate == 360) { rotate = 0; } float centerX = imgView.getWidth() / 2; float centerY = imgView.getHeight() / 2; matrix.setRotate(rotate, centerX, centerY); //matrix.setTranslate(10, 20); imgView.setImageMatrix(matrix); //ScaleType type = ScaleType. //imgView.setScaleType(scaleType); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void\nsetImageOverride(SoState state,\n boolean override)\n//\n////////////////////////////////////////////////////////////////////////\n{\n SoTextureOverrideElement elt;\n elt = (SoTextureOverrideElement )getElement(state, classStackIndexMap.get(SoTextureOverrideElement.class));\n if (override)\n elt.flags |= Flags.TEXTURE_IMAGE.getValue();\n else\n elt.flags &= ~Flags.TEXTURE_IMAGE.getValue();\n}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n\n// imgBtn = (ImageButton) findViewById(R.id.imgBtn);\n// final TransitionDrawable drawable = (TransitionDrawable) imgBtn.getDrawable();\n//\n// imgBtn.setOnClickListener(new View.OnClickListener() {\n// @Override\n// public void onClick(View v) {\n// drawable.startTransition(1000);\n// }\n// });\n\n// imageView = (ImageView) findViewById(R.id.image);\n// clipDrawable = (ClipDrawable) imageView.getDrawable();\n//// clipDrawable.setLevel(1000);\n// Thread thread = new Thread(new Runnable() {\n// @Override\n// public void run() {\n// isRun = true;\n// try {\n// while (isRun) {\n// Thread.sleep(1000);\n// handler.sendEmptyMessage(0);\n// }\n// } catch (InterruptedException e) {\n// e.printStackTrace();\n// }\n// }\n// });\n// thread.start();\n\n// imageView = (ImageView) findViewById(R.id.my_scale_drawable_image);\n// ScaleDrawable scaleDrawable = (ScaleDrawable) imageView.getDrawable();\n// scaleDrawable.setLevel(1);\n }", "public void setImg(){\n if(PicSingleton.getInstance().getPicToShape() != null){\n\n mResultImg.setImageDrawable(PicSingleton.getInstance().getPicShaped());\n }\n }", "private void updateBaseMatrix(Drawable d) {\n ImageView imageView = getImageView();\n if (null == imageView || null == d) {\n return;\n }\n\n final float viewWidth = getImageViewWidth(imageView);\n final float viewHeight = getImageViewHeight(imageView);\n final int drawableWidth = d.getIntrinsicWidth();\n final int drawableHeight = d.getIntrinsicHeight();\n\n mBaseMatrix.reset();\n\n final float widthScale = viewWidth / drawableWidth;\n final float heightScale = viewHeight / drawableHeight;\n\n if (mScaleType == ScaleType.CENTER) {\n mBaseMatrix.postTranslate((viewWidth - drawableWidth) / 2F,\n (viewHeight - drawableHeight) / 2F);\n\n } else if (mScaleType == ScaleType.CENTER_CROP) {\n float scale = Math.max(widthScale, heightScale);\n mBaseMatrix.postScale(scale, scale);\n mBaseMatrix.postTranslate((viewWidth - drawableWidth * scale) / 2F,\n (viewHeight - drawableHeight * scale) / 2F);\n\n } else if (mScaleType == ScaleType.CENTER_INSIDE) {\n float scale = Math.min(1.0f, Math.min(widthScale, heightScale));\n mBaseMatrix.postScale(scale, scale);\n mBaseMatrix.postTranslate((viewWidth - drawableWidth * scale) / 2F,\n (viewHeight - drawableHeight * scale) / 2F);\n\n } else {\n RectF mTempSrc = new RectF(0, 0, drawableWidth, drawableHeight);\n RectF mTempDst = new RectF(0, 0, viewWidth, viewHeight);\n\n switch (mScaleType) {\n case FIT_CENTER:\n mBaseMatrix\n .setRectToRect(mTempSrc, mTempDst, ScaleToFit.CENTER);\n break;\n\n case FIT_START:\n mBaseMatrix.setRectToRect(mTempSrc, mTempDst, ScaleToFit.START);\n break;\n\n case FIT_END:\n mBaseMatrix.setRectToRect(mTempSrc, mTempDst, ScaleToFit.END);\n break;\n\n case FIT_XY:\n mBaseMatrix.setRectToRect(mTempSrc, mTempDst, ScaleToFit.FILL);\n break;\n\n default:\n break;\n }\n }\n\n resetMatrix();\n }", "@Override\r\n public void onChange(SwitchButton sb, boolean state) {\n Log.d(\"switchButton\", state ? \"锟斤拷\":\"锟斤拷\");\r\n mImgView.setImageBitmap(null);\r\n //defreckle\r\n if(qubanSBtn.isSwitchOn())\r\n mImgView.setImageBitmap(mFaceEditor.BFDefreckleAuto());//));\r\n else\r\n mImgView.setImageBitmap(mFaceEditor.getBaseImage());\r\n }", "@Override\n\tpublic void loadStateImages() {\n\t\tif (imageFilename[0][0] != null)\n\t\t\tthis.addStateImage(imageFilename[0][0], 0, 0);\n\t\tif (imageFilename[0][1] != null)\n\t\t\tthis.addStateImage(imageFilename[0][1], 1, 0);\n\t\tif (imageFilename[1][0] != null)\n\t\t\tthis.addStateImage(imageFilename[1][0], 0, 1);\n\t\tif (imageFilename[1][1] != null)\n\t\t\tthis.addStateImage(imageFilename[1][1], 1, 1);\n\t}", "public void setState(boolean isOn, boolean isClicked) {\n\n // YOUR CODE HERE\n \n BufferedImage img0 = ImageIO.read(new File(\"./Icons/Light-0.png\"));\n icon0 = new ImageIcon(img0);\n \n \n \n\n BufferedImage img1 = ImageIO.read(new File(\"./Icons/Light-1.png\"));\n icon1=new ImageIcon(img1);\n \n \n \n\n BufferedImage img2 = ImageIO.read(new File(\"./Icons/Light-2.png\"));\n icon2=new ImageIcon(img2);\n \n \n\n BufferedImage img3 = ImageIO.read(new File(\"./Icons/Light-3.png\"));\n icon3=new ImageIcon(img3);\n \n \n \n\n\n if(isOn == true){\n lbl.setIcon(icon0);\n state = 1; \n }else{ \n lbl.setIcon(icon1);\n state = 0;\n }\n if(isClicked == true){\n //0 means light off\n //1 means light on\n //2 means light on for solution\n //3 means light on for optimal solution\n if(state == 0 ){\n lbl.setIcon(icon0);\n state = 1;\n }\n if(state == 1){\n lbl.setIcon(icon1);\n state = 0; \n }\n if(state == 2 ){\n lbl.setIcon(icon2);\n state = 1;\n }\n if(state == 3){\n lbl.setIcon(icon3);\n state = 1;\n }\n }\n\n }", "protected abstract int getStateDrawable(int state);", "@Override\n public void setLoadingDrawable(ImageView imageView, Drawable drawable) {\n }", "private void setPic() {\n int targetW = mainImageView.getWidth();\n int targetH = mainImageView.getHeight();\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n// bmOptions.inPurgeable = true;\n\n Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n mainImageView.setImageBitmap(bitmap);\n\n// bmOptions.inBitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n// mainImageView.setImageBitmap(bmOptions.inBitmap);\n }", "void lSetImage(Image img);", "@Override\n public void getDrawable(Drawable drawable) {\n imageView.setImageDrawable(drawable);\n }", "private void updateHumidityImage(float humidity) {\n \t\t\n \t\t// determine which drawable to use\n \t\tif(humidity < 25) {\n \t\t\tif(humidity25Drawable == null) {\n \t\t\t\thumidity25Drawable = getResources().getDrawable(R.drawable.humidity_25);\n \t\t\t}\n \t\t\thumidityImgView.setImageDrawable(humidity25Drawable);\n \t\t} else if(humidity < 50) {\n \t\t\tif(humidity50Drawable == null) {\n \t\t\t\thumidity50Drawable = getResources().getDrawable(R.drawable.humidity_50);\n \t\t\t}\n \t\t\thumidityImgView.setImageDrawable(humidity50Drawable);\n \t\t} else if(humidity < 75) {\n \t\t\tif(humidity75Drawable == null) {\n \t\t\t\thumidity75Drawable = getResources().getDrawable(R.drawable.humidity_75);\n \t\t\t}\n \t\t\thumidityImgView.setImageDrawable(humidity75Drawable);\n \t\t} else {\n \t\t\tif(humidity100Drawable == null) {\n \t\t\t\thumidity100Drawable = getResources().getDrawable(R.drawable.humidity_100);\n \t\t\t}\n \t\t\thumidityImgView.setImageDrawable(humidity100Drawable);\n \t\t}\n \t}", "@Override\n protected boolean onStateChange(int[] state) {\n if (patternDrawable == null) {\n return super.onStateChange(state);\n }\n\n boolean patternState = patternDrawable.setState(state);\n boolean superState;\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n superState = super.onStateChange(state);\n } else {\n applyTint();\n super.onStateChange(state);\n superState = isStateful();\n }\n\n return patternState | superState;\n }", "private void setImage(Bitmap image) {\n }", "private void updateBay(int indx, boolean newState)\n {\t\n \tImageView iv;\n \tif (indx == 0)\n \t\tiv = (ImageView) findViewById(R.id.imageView1);\n \t\telse if (indx == 1)\n \t\t\tiv = (ImageView) findViewById(R.id.imageView2);\n \t\t\telse if (indx ==2)\n \t\t\t\tiv = (ImageView) findViewById(R.id.imageView1);\n \t\t\telse iv = (ImageView) findViewById(R.id.imageView1);\n \t\n \t//ImageButton btn = (ImageButton) findViewById(R.id.bay0000);\n \t//ImageView iv = (ImageView) findViewById(R.id.imageView1);\n \t\n \tif( states[indx] == false && newState == true)\n \t{\n \t//btn.setImageResource(R.drawable.occupied);\n \tiv.setImageResource(R.drawable.occupied);\n \tiv.animate();\n \tstates[indx] = true;\n \t}\n \telse if( states[indx] == true && newState == false)\n \t{\n \t//btn.setImageResource(R.drawable.avail);\n \tiv.setImageResource(R.drawable.avail);\n \tiv.animate();\n \t//iv.\n \tiv.refreshDrawableState();\n \tstates[indx] = false;\n \t}\n \t\n }", "private void setPic() {\n int targetW =20;// mImageView.getWidth();\n int targetH =20;// mImageView.getHeight();\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;//设置仅加载位图边界信息(相当于位图的信息,但没有加载位图)\n\n //返回为NULL,即不会返回bitmap,但可以返回bitmap的横像素和纵像素还有图片类型\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n\n Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n mImageView.setImageBitmap(bitmap);\n }", "public void onFinalImageSet(java.lang.String r3, @javax.annotation.Nullable com.facebook.imagepipeline.image.ImageInfo r4, @javax.annotation.Nullable android.graphics.drawable.Animatable r5) {\r\n /*\r\n r2 = this;\r\n r3 = 0;\r\n r4 = com.airbnb.android.react.maps.AirMapMarker.this;\t Catch:{ all -> 0x007e }\r\n r4 = r4.dataSource;\t Catch:{ all -> 0x007e }\r\n r4 = r4.getResult();\t Catch:{ all -> 0x007e }\r\n r4 = (com.facebook.common.references.CloseableReference) r4;\t Catch:{ all -> 0x007e }\r\n r3 = 1;\r\n if (r4 == 0) goto L_0x003b;\r\n L_0x0010:\r\n r5 = r4.get();\t Catch:{ all -> 0x0039 }\r\n r5 = (com.facebook.imagepipeline.image.CloseableImage) r5;\t Catch:{ all -> 0x0039 }\r\n if (r5 == 0) goto L_0x003b;\r\n L_0x0018:\r\n r0 = r5 instanceof com.facebook.imagepipeline.image.CloseableStaticBitmap;\t Catch:{ all -> 0x0039 }\r\n if (r0 == 0) goto L_0x003b;\r\n L_0x001c:\r\n r5 = (com.facebook.imagepipeline.image.CloseableStaticBitmap) r5;\t Catch:{ all -> 0x0039 }\r\n r5 = r5.getUnderlyingBitmap();\t Catch:{ all -> 0x0039 }\r\n if (r5 == 0) goto L_0x003b;\r\n L_0x0024:\r\n r0 = android.graphics.Bitmap.Config.ARGB_8888;\t Catch:{ all -> 0x0039 }\r\n r5 = r5.copy(r0, r3);\t Catch:{ all -> 0x0039 }\r\n r0 = com.airbnb.android.react.maps.AirMapMarker.this;\t Catch:{ all -> 0x0039 }\r\n r0.iconBitmap = r5;\t Catch:{ all -> 0x0039 }\r\n r0 = com.airbnb.android.react.maps.AirMapMarker.this;\t Catch:{ all -> 0x0039 }\r\n r5 = com.google.android.gms.maps.model.BitmapDescriptorFactory.fromBitmap(r5);\t Catch:{ all -> 0x0039 }\r\n r0.iconBitmapDescriptor = r5;\t Catch:{ all -> 0x0039 }\r\n goto L_0x003b;\r\n L_0x0039:\r\n r3 = move-exception;\r\n goto L_0x0082;\r\n L_0x003b:\r\n r5 = com.airbnb.android.react.maps.AirMapMarker.this;\r\n r5 = r5.dataSource;\r\n r5.close();\r\n if (r4 == 0) goto L_0x0049;\r\n L_0x0046:\r\n com.facebook.common.references.CloseableReference.closeSafely(r4);\r\n L_0x0049:\r\n r4 = com.airbnb.android.react.maps.AirMapMarker.this;\r\n r4 = r4.markerManager;\r\n if (r4 == 0) goto L_0x0078;\r\n L_0x0051:\r\n r4 = com.airbnb.android.react.maps.AirMapMarker.this;\r\n r4 = r4.imageUri;\r\n if (r4 == 0) goto L_0x0078;\r\n L_0x0059:\r\n r4 = com.airbnb.android.react.maps.AirMapMarker.this;\r\n r4 = r4.markerManager;\r\n r5 = com.airbnb.android.react.maps.AirMapMarker.this;\r\n r5 = r5.imageUri;\r\n r4 = r4.getSharedIcon(r5);\r\n r5 = com.airbnb.android.react.maps.AirMapMarker.this;\r\n r5 = r5.iconBitmapDescriptor;\r\n r0 = com.airbnb.android.react.maps.AirMapMarker.this;\r\n r0 = r0.iconBitmap;\r\n r4.updateIcon(r5, r0);\r\n L_0x0078:\r\n r4 = com.airbnb.android.react.maps.AirMapMarker.this;\r\n r4.update(r3);\r\n return;\r\n L_0x007e:\r\n r4 = move-exception;\r\n r1 = r4;\r\n r4 = r3;\r\n r3 = r1;\r\n L_0x0082:\r\n r5 = com.airbnb.android.react.maps.AirMapMarker.this;\r\n r5 = r5.dataSource;\r\n r5.close();\r\n if (r4 == 0) goto L_0x0090;\r\n L_0x008d:\r\n com.facebook.common.references.CloseableReference.closeSafely(r4);\r\n L_0x0090:\r\n throw r3;\r\n */\r\n throw new UnsupportedOperationException(\"Method not decompiled: com.airbnb.android.react.maps.AirMapMarker.1.onFinalImageSet(java.lang.String, com.facebook.imagepipeline.image.ImageInfo, android.graphics.drawable.Animatable):void\");\r\n }", "public void setIconState(int index) {\n\r\n switch (index) {\r\n case 0:\r\n im_service.setImageResource(R.drawable.shouye2);\r\n tv_service.setTextColor(getResources().getColor(R.color.green));\r\n break;\r\n case 1:\r\n im_chart.setImageResource(R.drawable.faxian2);\r\n tv_chart.setTextColor(getResources().getColor(R.color.green));\r\n break;\r\n\r\n case 2:\r\n im_share.setImageResource(R.drawable.fenxiang2);\r\n tv_share.setTextColor(getResources().getColor(R.color.green));\r\n break;\r\n case 3:\r\n im_me.setImageResource(R.drawable.wo2);\r\n tv_me.setTextColor(getResources().getColor(R.color.green));\r\n break;\r\n }\r\n }", "@Override\n\t\t\t\tpublic void onObtainDrawable(Drawable drawable, ImageView imageView) {\n\t\t\t\t}", "public void setImage(Drawable image){\n\t\tmImage = image;\n\t}", "public void normalizeImages(){\n\n biegeAlien.setImageResource(R.drawable.alienbeige);\n greenAlien.setImageResource(R.drawable.aliengreen);\n pinkAlien.setImageResource(R.drawable.alienpink);\n blueAlien.setImageResource(R.drawable.alienblue);\n yellowAlien.setImageResource(R.drawable.alienyellow);\n yellowAlien.setBackgroundColor(view.getSolidColor());\n blueAlien.setBackgroundColor(view.getSolidColor());\n greenAlien.setBackgroundColor(view.getSolidColor());\n pinkAlien.setBackgroundColor(view.getSolidColor());\n biegeAlien.setBackgroundColor(view.getSolidColor());\n }", "private void setImageBitmap(ImageView imageView, Bitmap bitmap,\n boolean isTran) {\n if (isTran) {\n final TransitionDrawable td = new TransitionDrawable(\n new Drawable[] {\n new ColorDrawable(android.R.color.transparent),\n new BitmapDrawable(mContext.getResources(), bitmap) });\n td.setCrossFadeEnabled(true);\n imageView.setImageDrawable(td);\n td.startTransition(300);\n } else {\n imageView.setImageBitmap(bitmap);\n }\n }", "public static ImageIcon importState() {\n if(isImChose) {\n if(isImPress)\n return imPre;\n if(isImHover)\n return imChoHov;\n return imCho;\n }\n if(isImPress)\n return imPre;\n if(isImHover)\n return imHov;\n return imDef; \n }", "private void changeImage(int pos){\n switch(pos){\n case 0:\n view.setImageDrawable(getResources().getDrawable(R.drawable.card_blue));\n cancelButton.setBackground(getResources().getDrawable(R.drawable.memory_boarder_blue));\n saveButton.setBackground(getResources().getDrawable(R.drawable.memory_boarder_blue));\n spinner.setBackground(getResources().getDrawable(R.drawable.memory_boarder_blue));\n saveTheme = R.drawable.card_blue;\n color = R.color.blue;\n boarder = R.drawable.memory_boarder_blue;\n style = R.style.BlueTheme;\n break;\n case 1:\n view.setImageDrawable(getResources().getDrawable(R.drawable.card_brown));\n cancelButton.setBackground(getResources().getDrawable(R.drawable.memory_boarder_brown));\n saveButton.setBackground(getResources().getDrawable(R.drawable.memory_boarder_brown));\n spinner.setBackground(getResources().getDrawable(R.drawable.memory_boarder_brown));\n saveTheme = R.drawable.card_brown;\n color = R.color.brown;\n boarder = R.drawable.memory_boarder_brown;\n style = R.style.BrownTheme;\n break;\n case 2:\n view.setImageDrawable(getResources().getDrawable(R.drawable.card_dark_blue));\n cancelButton.setBackground(getResources().getDrawable(R.drawable.memory_boarder_darkblue));\n saveButton.setBackground(getResources().getDrawable(R.drawable.memory_boarder_darkblue));\n spinner.setBackground(getResources().getDrawable(R.drawable.memory_boarder_darkblue));\n saveTheme = R.drawable.card_dark_blue;\n color = R.color.dark_blue;\n boarder = R.drawable.memory_boarder_darkblue;\n style = R.style.DarkBlueTheme;\n break;\n case 3:\n view.setImageDrawable(getResources().getDrawable(R.drawable.card_green));\n cancelButton.setBackground(getResources().getDrawable(R.drawable.memory_boarder_green));\n saveButton.setBackground(getResources().getDrawable(R.drawable.memory_boarder_green));\n spinner.setBackground(getResources().getDrawable(R.drawable.memory_boarder_green));\n saveTheme = R.drawable.card_green;\n color = R.color.green;\n boarder = R.drawable.memory_boarder_green;\n style = R.style.GreenTheme;\n break;\n case 4:\n view.setImageDrawable(getResources().getDrawable(R.drawable.card_grey));\n cancelButton.setBackground(getResources().getDrawable(R.drawable.memory_boarder_grey));\n saveButton.setBackground(getResources().getDrawable(R.drawable.memory_boarder_grey));\n spinner.setBackground(getResources().getDrawable(R.drawable.memory_boarder_grey));\n saveTheme = R.drawable.card_grey;\n color = R.color.grey;\n boarder = R.drawable.memory_boarder_grey;\n style = R.style.GreyTheme;\n break;\n case 5:\n view.setImageDrawable(getResources().getDrawable(R.drawable.card_lime));\n cancelButton.setBackground(getResources().getDrawable(R.drawable.memory_boarder_lime));\n saveButton.setBackground(getResources().getDrawable(R.drawable.memory_boarder_lime));\n spinner.setBackground(getResources().getDrawable(R.drawable.memory_boarder_lime));\n saveTheme = R.drawable.card_lime;\n color = R.color.lime;\n boarder = R.drawable.memory_boarder_lime;\n style = R.style.LimeTheme;\n break;\n case 6:\n view.setImageDrawable(getResources().getDrawable(R.drawable.card_orange));\n cancelButton.setBackground(getResources().getDrawable(R.drawable.memory_boarder_orange));\n saveButton.setBackground(getResources().getDrawable(R.drawable.memory_boarder_orange));\n spinner.setBackground(getResources().getDrawable(R.drawable.memory_boarder_orange));\n saveTheme = R.drawable.card_orange;\n color = R.color.orange;\n boarder = R.drawable.memory_boarder_orange;\n style = R.style.OrangeTheme;\n break;\n case 7:\n view.setImageDrawable(getResources().getDrawable(R.drawable.card_pink));\n cancelButton.setBackground(getResources().getDrawable(R.drawable.memory_boarder_pink));\n saveButton.setBackground(getResources().getDrawable(R.drawable.memory_boarder_pink));\n spinner.setBackground(getResources().getDrawable(R.drawable.memory_boarder_pink));\n saveTheme = R.drawable.card_pink;\n color = R.color.pink;\n boarder = R.drawable.memory_boarder_pink;\n style = R.style.PinkTheme;\n break;\n case 8:\n view.setImageDrawable(getResources().getDrawable(R.drawable.card_purple));\n cancelButton.setBackground(getResources().getDrawable(R.drawable.memory_boarder_purple));\n saveButton.setBackground(getResources().getDrawable(R.drawable.memory_boarder_purple));\n spinner.setBackground(getResources().getDrawable(R.drawable.memory_boarder_purple));\n saveTheme = R.drawable.card_purple;\n color = R.color.purple;\n boarder = R.drawable.memory_boarder_purple;\n style = R.style.PurpleTheme;\n break;\n case 9:\n view.setImageDrawable(getResources().getDrawable(R.drawable.card_purple_spotted));\n cancelButton.setBackground(getResources().getDrawable(R.drawable.memory_boarder_purplespotted));\n saveButton.setBackground(getResources().getDrawable(R.drawable.memory_boarder_purplespotted));\n spinner.setBackground(getResources().getDrawable(R.drawable.memory_boarder_purplespotted));\n saveTheme = R.drawable.card_purple_spotted;\n color = R.color.purple_spotted;\n boarder = R.drawable.memory_boarder_purplespotted;\n style = R.style.PurpleSpottedTheme;\n break;\n case 10:\n view.setImageDrawable(getResources().getDrawable(R.drawable.card_rainbow));\n cancelButton.setBackground(getResources().getDrawable(R.drawable.memory_boarder_rainbow));\n saveButton.setBackground(getResources().getDrawable(R.drawable.memory_boarder_rainbow));\n spinner.setBackground(getResources().getDrawable(R.drawable.memory_boarder_rainbow));\n saveTheme = R.drawable.card_rainbow;\n color = R.color.rainbow;\n boarder = R.drawable.memory_boarder_rainbow;\n style = R.style.RainbowTheme;\n break;\n case 11:\n view.setImageDrawable(getResources().getDrawable(R.drawable.card_red_pink));\n cancelButton.setBackground(getResources().getDrawable(R.drawable.memory_boarder_redpink));\n saveButton.setBackground(getResources().getDrawable(R.drawable.memory_boarder_redpink));\n spinner.setBackground(getResources().getDrawable(R.drawable.memory_boarder_redpink));\n saveTheme = R.drawable.card_red_pink;\n color = R.color.red_pink;\n boarder = R.drawable.memory_boarder_redpink;\n style = R.style.RedPinkTheme;\n break;\n case 12:\n view.setImageDrawable(getResources().getDrawable(R.drawable.card_teal));\n cancelButton.setBackground(getResources().getDrawable(R.drawable.memory_boarder_teal));\n saveButton.setBackground(getResources().getDrawable(R.drawable.memory_boarder_teal));\n spinner.setBackground(getResources().getDrawable(R.drawable.memory_boarder_teal));\n saveTheme = R.drawable.card_teal;\n color = R.color.teal;\n boarder = R.drawable.memory_boarder_teal;\n style = R.style.TealTheme;\n break;\n case 13:\n view.setImageDrawable(getResources().getDrawable(R.drawable.card_white_green));\n cancelButton.setBackground(getResources().getDrawable(R.drawable.memory_boarder_whitegreen));\n saveButton.setBackground(getResources().getDrawable(R.drawable.memory_boarder_whitegreen));\n spinner.setBackground(getResources().getDrawable(R.drawable.memory_boarder_whitegreen));\n saveTheme = R.drawable.card_white_green;\n color = R.color.white_green;\n boarder = R.drawable.memory_boarder_whitegreen;\n style = R.style.WhiteGreenTheme;\n break;\n }\n }", "public void updateImage() {\n \t\tAnimation anim = this.animationCollection.at(\n \t\t\t\tfak.getCurrentAnimationTextualId());\n \n \t\t// if animation is set to something bad, then set it to back to initial\n \t\tif(anim==null)\n \t\t{\n \t\t\tfak.setCurrentAnimationTextualId(ConstantsForAPI.INITIAL);\n \t\t\tanim = this.animationCollection.at(\n \t\t\t\t\tfak.getCurrentAnimationTextualId());\n \t\t}\n \n \t\tif(anim==null)\n \t\t{\n \t\t\tanim = this.animationCollection.at(0);\n \t\t\tfak.setCurrentAnimationTextualId(anim.getTextualId());\n \t\t}\n \n \t\tif (anim != null) {\n \t\t\tif (fak.getCurrentFrame()\n \t\t\t\t\t>= anim.getLength()) {\n \t\t\t\tfak.setCurrentFrame(\n \t\t\t\t\t\tanim.getLength() - 1);\n \t\t\t}\n \n \t\t\tcom.github.a2g.core.objectmodel.Image current = anim.getImageAndPosCollection().at(\n \t\t\t\t\tfak.getCurrentFrame());\n \n \t\t\t// yes current can equal null in some weird cases where I place breakpoints...\n \t\t\tif (current != null\n \t\t\t\t\t&& !current.equals(this)) {\n \t\t\t\tif (this.currentImage != null) {\n \t\t\t\t\tthis.currentImage.setVisible(\n \t\t\t\t\t\t\tfalse, new Point(this.left,this.top));\n \t\t\t\t}\n \t\t\t\tthis.currentImage = current;\n \t\t\t}\n \t\t}\n \t\t// 2, but do this always\n \t\tif (this.currentImage != null) {\n \t\t\tthis.currentImage.setVisible(\n \t\t\t\t\tthis.visible, new Point(this.left,\n \t\t\t\t\t\t\tthis.top));\n \t\t}\n \n \t}", "public taskimage(ImageView t134){\n t34=t134;\n\n\n }", "private void setPic() {\n int targetW = mImageView.getWidth();\n int targetH = mImageView.getHeight();\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW / targetW, photoH / targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n\n// Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n mImageView.setImageBitmap(bitmap);\n }", "@Override\r\n\tpublic void setImageBitmap(Bitmap source) {\n//\r\n//\t\tMatrix matrix = new Matrix();\r\n//\t\tmatrix.postScale(ratio, ratio);\r\n//\t\tsource = Bitmap.createBitmap(source, 0, 0, width, height, matrix, true);\r\n//\r\n//\t\twidth = source.getWidth();\r\n//\t\theight = source.getHeight();\r\n//\r\n//\t\tx = (width - ConfigSize.SIZE_THUMB) / 2;\r\n//\t\ty = (height - ConfigSize.SIZE_THUMB) / 2;\r\n//\r\n//\t\tsource = Bitmap.createBitmap(source, x, y, ConfigSize.SIZE_THUMB,\r\n//\t\t\t\tConfigSize.SIZE_THUMB);\r\n\r\n\t\tsuper.setImageBitmap(source);\r\n\t}", "private void showStateIcon(final ImageView imageView, TableRow row1, TableRow row2,\n StateListDrawable stateListDrawable, int state, String desc, Set<Drawable> stateIcons) {\n\n stateListDrawable.setState(new int[]{state});\n Drawable stateD = stateListDrawable.getCurrent();\n if (!stateIcons.contains(stateD)) {\n stateIcons.add(stateD);\n ImageButton stateImageView = new ImageButton(imageView.getContext());\n Drawable[] drawables = new Drawable[]{stateD, getResources().getDrawable(R.drawable.button_border_sel)};\n\n LayerDrawable layerDrawable = new LayerDrawable(drawables);\n stateImageView.setImageDrawable(layerDrawable);\n //\tstateImageView.setBackgroundResource(R.drawable.button_border_sel);\n stateImageView.setPadding(10, 10, 10, 10);\n stateImageView.setMinimumHeight(8);\n stateImageView.setMinimumWidth(8);\n stateImageView.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n imageView.setImageDrawable(((ImageView) v).getDrawable());\n }\n });\n\n TextView stateTextView = new TextView(imageView.getContext());\n stateTextView.setText(desc);\n stateTextView.setTextSize(12);\n stateTextView.setGravity(Gravity.CENTER);\n\n row1.addView(stateTextView);\n row2.addView(stateImageView);\n }\n }", "@Override\n public void onLoadingComplete(String imageUri, View view, Bitmap loadedImage) {\n imageViewUIL.setImageBitmap(loadedImage);\n imageViewUIL.setAnimation(anim);\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n Intent intent = getIntent();\n if (intent == null || intent.getExtras() == null) {\n// HcAppState.getInstance().removeActivity(this);\n finish();\n return;\n }\n mIconUri = intent.getStringExtra(\"uri\");\n if (TextUtils.isEmpty(mIconUri)) {\n// HcAppState.getInstance().removeActivity(this);\n finish();\n return;\n }\n mWidth = (int) (360 * Util.getScreenDensity());\n mHeight = (int) (640 * Util.getScreenDensity());\n\n mWidth = intent.getIntExtra(\"width\", mWidth);\n mHeight = intent.getIntExtra(\"height\", mHeight);\n\n setContentView(R.layout.activity_big_image);\n mPhotoView = (PhotoView) findViewById(R.id.image_photo);\n mOptions = new DisplayImageOptions.Builder()\n .imageScaleType(ImageScaleType.EXACTLY)\n .cacheInMemory(false).cacheOnDisk(false)\n .considerExifParams(true)\n .bitmapConfig(Bitmap.Config.ARGB_8888).build();\n ImageLoader.getInstance().loadImage(mIconUri, new ImageSize(mWidth, mHeight), mOptions, new ImageLoadingListener() {\n\n @Override\n public void onLoadingStarted(String imageUri, View view) {\n // TODO Auto-generated method stub\n Log.d(TAG, \"#onLoadingStarted imageUri = \"+imageUri);\n\n }\n\n @Override\n public void onLoadingFailed(String imageUri, View view,\n FailReason failReason) {\n // TODO Auto-generated method stub\n Log.d(TAG, \"#onLoadingFailed imageUri = \" + imageUri + \" failReason = \" + failReason);\n// HcAppState.getInstance().removeActivity(BigImageActivity.this);\n finish();\n overridePendingTransition(0, 0);\n }\n\n @Override\n public void onLoadingComplete(String imageUri, View view, Bitmap loadedImage) {\n // TODO Auto-generated method stub\n Log.d(TAG, \"#onLoadingComplete imageUri = \"+imageUri + \" loadedImage = \"+loadedImage + \" width = \"+loadedImage.getWidth() + \" height = \"+loadedImage.getHeight());\n if (mPhotoView != null)\n mPhotoView.setImageBitmap(loadedImage);\n }\n\n @Override\n public void onLoadingCancelled(String imageUri, View view) {\n // TODO Auto-generated method stub\n Log.d(TAG, \"#onLoadingCancelled imageUri = \"+imageUri);\n// HcAppState.getInstance().removeActivity(BigImageActivity.this);\n finish();\n overridePendingTransition(0, 0);\n }\n });\n\n mPhotoView.setOnPhotoTapListener(new PhotoViewAttacher.OnPhotoTapListener() {\n\n @Override\n public void onPhotoTap(View view, float x, float y) {\n // TODO Auto-generated method stub\n// HcAppState.getInstance().removeActivity(BigImageActivity.this);\n finish();\n overridePendingTransition(0, 0);\n }\n });\n }", "public void initComp(){\n\n\n mResultImg = (ImageView) findViewById(R.id.result_imageView);\n\n mResultImg.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n if (mNormalImg){\n mResultImg.setImageDrawable(PicSingleton.getInstance().getPicShaped());\n mNormalImg = false;\n }\n else {\n mResultImg.setImageBitmap(PicSingleton.getInstance().getPicToShape());\n mNormalImg = true;\n }\n }\n });\n\n mResultImg.setOnLongClickListener(new View.OnLongClickListener() {\n @Override\n public boolean onLongClick(View v) {\n\n showSaveDialog();\n return true;\n }\n });\n\n }", "void mo36483b(int i, ImageView imageView, Uri uri);", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\t\n\t\tsetContentView(R.layout.activity_base_image);\n\t\timgUrl=(ImageView) findViewById(R.id.imgUrl);\n\t\timgSource=(ImageView) findViewById(R.id.imgSource);\n\t\timgFile=(ImageView) findViewById(R.id.imgFile);\n\t\t\n\t\t\n\t\tGlide.with(this).load(\"https://pic4.zhimg.com/cb37d5884ee9b99de381447fc7362b73_b.jpg\").placeholder(R.drawable.cycle_icon_stub).error(R.drawable.cycle_icon_error).into(imgUrl);\n\t\t\n\t\t\n\t\tGlide.with(this).load(\"https://pic4.zhimg.com/cb37d5884ee9b99de381447fc7362b73b.jpg\").placeholder(R.drawable.cycle_icon_stub).error(R.drawable.cycle_icon_error).into(imgSource);\n\t\t\n\t\t\n\t}", "@Override\n\tpublic boolean imageUpdate(Image arg0, int arg1, int arg2, int arg3, int arg4, int arg5) {\n\t\treturn false;\n\t}", "public void m2261I() {\n try {\n if (this.f2513n != null) {\n this.f2513n.setImageDrawable(C5150d.m3784a(mo61159b().getResources(), \"iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA39pVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMDY3IDc5LjE1Nzc0NywgMjAxNS8wMy8zMC0yMzo0MDo0MiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDozODRkZTAxYi00OWRkLWM4NDYtYThkNC0wZWRiMDMwYTZlODAiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6QkE0Q0U2MUY2QzA0MTFFNUE3MkJGQjQ1MTkzOEYxQUUiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6QkE0Q0U2MUU2QzA0MTFFNUE3MkJGQjQ1MTkzOEYxQUUiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjlkZjAyMGU0LTNlYmUtZTY0ZC04YjRiLWM5ZWY4MTU4ZjFhYyIgc3RSZWY6ZG9jdW1lbnRJRD0iYWRvYmU6ZG9jaWQ6cGhvdG9zaG9wOmU1MzEzNDdlLTZjMDEtMTFlNS1hZGZlLThmMTBjZWYxMGRiZSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PngNsEEAAANeSURBVHjatFfNS1tBEH+pUZOQ0B4i3sTSxHMRFNQoFBEP7dHgvyDiKWgguQra9F+oxqNiwOTQ+oFI1ZM3jSf1YK5FL41ooaKZzu+x+4gv2bx9Rgd+JNn5zO7s7IzH0CQiCvLHZ8YnxkfGe8ZbwS4zSowTxi/GT4/Hc2u8BLHjCOM745b06VboRJpx7GN8ZfyDxUqlQgcHB5RMJmloaIg6Ozupra3NBL5jDTzIQFYQdDOw5db5B8YxLDw+PtLKygr19PQQWDqIRqOUzWZNXUHH2rvBgr2M39C6uLig/v5+bcd2QLdUKskgYLNX57yvIL2zs0OhUOjZziU6Ojro8PBQBnGl3Alm+BknkMI54mybdS4BW3t7ezKIInzVCwDJYm4Zon4p5xLYzfPzcxlEpl7S3SNpmjlznZwQiXn/5CjEnTUzt5GBsbExamlpUfLBg0wjG8vLy3IXlqTzEAoH7m4kElEqTk1Nmfd7bW2tbhBYAw8ykFXZgQ9RJ1CsQghgEr/29/eVStPT09XFhdbX18nr9Vr81tZWyuVyFh+yMzMzSnvwJWjyDS+MYic2NzeV17O7u9vg2m79jsfjBv9bg7PbxOrqqjExMWHxIdvV1aW0V+VrFDtwhFCGh4cbnl0mk6kp+BsbGybsBNlGtkZGRqToEQK4xjfUc6csXlhYcHyFFhcXHe3Al6BrQz427e3tWldpfn5e6Rw83cIkHyvXAUAZb4SdsKZbPe0BaB+Bz+cjTiDlDmxtbZkybo9AKwn9fj9tb2875gBkINvIFnzJJMQ1PMV9GBgYUF6bQCBgFAoFY3x8/Ml6KpUy0un0kzXIQBY6KqrydapViPL5fM0/Rfcj+fhuJw5CqxBpleJYLEY3NzeW8dnZ2RoZrEmCLHQcSvGdWYrFe7CEFTwUqqjR85XLZUokEkoZ8CADWe3HqKoTcnyOdW5KI5m+vj56eHiQz3G0bkNyeXn5ag3J2dmZ/PffVC1Z8bVast3d3eqWLKDVlAaDwaadh8Nhvaa0XluOHg7n9lzn0MWRarfltp0oysEErRqGDTeDCbK9ajApuh7TxGiWERlrjWZzc3M0ODhYM5phDTzbaHb/rNHMFkhUNK13LobTv6K2RJ3se1yO519s4/k7wf5jG89/6I7n/wUYAGo3YtcprD4sAAAAAElFTkSuQmCC\"));\n this.f2513n.setScaleType(ScaleType.FIT_CENTER);\n }\n } catch (Exception e) {\n C5017f.m3256a(mo61159b(), C5015d.EXCEPTION, \"MraidMode.showDefaultCloseButton\", e.getMessage(), \"\");\n }\n }", "@Override\n\t\t\t\t\t\t\t\t\tpublic void imageLoaded(Drawable imageDrawable, String imageUrl) {\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tImageView imgViewByTag = (ImageView) (listView.findViewWithTag(imageUrl + index));\n\t\t\t\t\t\t\t\t\t\tif(imgViewByTag != null){\n\t\t\t\t\t\t\t\t\t\t\timgViewByTag.setImageDrawable(imageDrawable);\n\t\t\t\t\t\t\t\t\t\t\tlist.get(index).put(\"drawable\", imageDrawable);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\t\tif (holder1.imageView != null && imageDrawable != null) {\n//\t\t\t\t\t\t\t\t\t\t\tif(holder1.imageView.getTag() != null && holder1.imageView.getTag().equals(urlString))\n//\t\t\t\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\t\t\t list.get(index).put(\"drawable\", imageDrawable);\n//\t\t\t\t\t\t\t\t\t\t\t holder1.imageView.setImageDrawable(imageDrawable);\n//\t\t\t\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\t\t\t// Log.e(\"在回调里面设置好图片\", \"liushuai\");\n//\t\t\t\t\t\t\t\t\t\t} else {\n//\n//\t\t\t\t\t\t\t\t\t\t\t\tholder1.imageView.setImageResource(R.drawable.sync);\n//\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}", "void mo36482a(ImageView imageView, Uri uri);", "public void setImageView(ImageView imageView){\r\n _imageView = imageView;\r\n }", "public void setImageView(ImageView imageView){\r\n _imageView = imageView;\r\n }", "public void mo60894a() {\n int i;\n this.f61656f = new SmartAvatarImageView(getContext());\n if (C6399b.m19946v()) {\n ((C13438a) this.f61656f.getHierarchy()).mo32891a((int) R.color.a5q, C13423b.f35599g);\n }\n addView(this.f61656f, getAvatarLayoutParams());\n LayoutParams a = m76775a(getVerifyIconSize());\n this.f61651a = new ImageView(getContext());\n int i2 = R.drawable.amq;\n try {\n this.f61651a.setImageDrawable(getResources().getDrawable(R.drawable.amq));\n } catch (NotFoundException unused) {\n }\n this.f61651a.setVisibility(8);\n LayoutParams a2 = m76775a(getVerifyIconSize());\n this.f61652b = new ImageView(getContext());\n try {\n this.f61652b.setImageDrawable(getResources().getDrawable(R.drawable.amq));\n } catch (NotFoundException unused2) {\n }\n this.f61652b.setVisibility(8);\n this.f61653c = new ImageView(getContext());\n try {\n ImageView imageView = this.f61653c;\n Resources resources = getResources();\n if (C6399b.m19944t()) {\n i = R.drawable.amp;\n } else {\n i = R.drawable.amq;\n }\n imageView.setImageDrawable(resources.getDrawable(i));\n } catch (NotFoundException unused3) {\n }\n this.f61653c.setVisibility(8);\n this.f61654d = new ImageView(getContext());\n try {\n this.f61654d.setImageDrawable(getResources().getDrawable(R.drawable.amm));\n } catch (NotFoundException unused4) {\n }\n this.f61654d.setVisibility(8);\n this.f61655e = new ImageView(getContext());\n try {\n ImageView imageView2 = this.f61655e;\n Resources resources2 = getResources();\n if (C6399b.m19944t()) {\n i2 = R.drawable.amp;\n }\n imageView2.setImageDrawable(resources2.getDrawable(i2));\n } catch (NotFoundException unused5) {\n }\n this.f61655e.setVisibility(8);\n addView(this.f61651a, a);\n addView(this.f61652b, a2);\n addView(this.f61653c, a2);\n addView(this.f61654d, a2);\n addView(this.f61655e, a2);\n }", "@Override\n public void onClick(View v) {\n\n\n float x = ivImage.getScaleX();\n float y = ivImage.getScaleY();\n\n ivImage.setScaleX((float) (x - 1));\n ivImage.setScaleY((float) (y - 1));\n }", "public void imageTapped( View view) {\n ImageView myTapped = (ImageView) view ;\n // my game State\n int [] myGameState = {2,2,2,2,2,2,2,2,2};\n\n // Log.i(\"tagis\",\"image number is\" + myTapped.getTag().toString());\n int tappedimageTag = Integer.parseInt( myTapped.getTag().toString());\n if (myGameState[tappedimageTag] == 2){\n\n myGameState[tappedimageTag] = myActivePlayer;\n if (myActivePlayer == 0){\n myTapped.setImageResource(R.drawable.cross);\n myTapped.animate().rotation(360).setDuration(1000);\n myActivePlayer = 1;\n }else{\n myTapped.setImageResource(R.drawable.circle);\n myActivePlayer = 0;\n }\n }\n public void playagain(View view){\n\n// Log.i(\"msg\", \"play again tapped\");\n// change Game state back to 2\n for ( int i =0; i < myGameState.length; i++){\n myGameState[i] = 2;\n\n }\n\n// make Active player to 0\n myActivePlayer = 0;\n\n\n// change all images to ic_launcher\n LinearLayout linearLayout = (LinearLayout) findViewById(R.id.linearLayout);\n\n }\n }", "void mo36480a(int i, int i2, ImageView imageView, Uri uri);", "@Override\n\t\tpublic void layout(int l, int t, int r, int b) {\n\t\t\tsuper.layout(l, t, r, b);\n\t\t\tLog.e(\"FYF\", getId() + \" ImageView layout\");\n\t\t}", "@Override\n\tpublic boolean imageUpdate(Image img, int infoflags, int x, int y, int width, int height) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean imageUpdate(Image img, int infoflags, int x, int y, int width, int height) {\n\t\treturn false;\n\t}", "@Override\r\n public void initializeUserImage() {\n userImageView = (ImageView)findViewById(R.id.user_profile_edit_imageView);\r\n userImageView.setOnClickListener(new View.OnClickListener() {\r\n @Override\r\n public void onClick(View v) {\r\n setImageSelection(\"USER\");\r\n }\r\n });\r\n if(userImageNewBitmap != null)\r\n {\r\n userImageView.setImageBitmap(userImageNewBitmap);\r\n return;\r\n }\r\n try\r\n {\r\n ImageCache.getInstance().setSessionUserImage(ImageCache.MSIZE, userImageView);\r\n }\r\n catch (Exception e)\r\n {\r\n Log.e(LOG_TAG,\"initializeUserImage failed\",e);\r\n Toast.makeText(WRProfileEditActivity.this, \"Unable to retrieve your image\", Toast.LENGTH_SHORT).show();\r\n }\r\n }", "@SuppressWarnings(\"deprecation\")\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void onLoadingComplete(String imageUri,\r\n\t\t\t\t\t\t\t\tView view, Bitmap loadedImage) {\n\t\t\t\t\t\t\tLog.e(\"loadImage\", \"onLoadingComplete \");\r\n\r\n\t\t\t\t\t\t\t// TODO UPDATE CODE HERE SHIHAB\r\n\t\t\t\t\t\t\t// relative_restaurent_info\r\n\t\t\t\t\t\t\t// .setBackground(new BitmapDrawable(\r\n\t\t\t\t\t\t\t// loadedImage));\r\n\t\t\t\t\t\t}", "@Override\n public void onClick(View v) {\n\n float x = ivImage.getScaleX();\n float y = ivImage.getScaleY();\n\n ivImage.setScaleX((float) (x + 1));\n ivImage.setScaleY((float) (y + 1));\n }", "public S<T> image(String name){\n\t\tname = name.trim();\n\t\tBoolean b = false;\n\t\t\n\t\tint theid = activity.getResources().getIdentifier(\n\t\t\t\tname, \"drawable\", activity.getApplicationContext().getPackageName());\n\t\t\n\t\ttry {\n\t\t\tif(t instanceof ImageView)\n\t\t\t{\n\t\t\t\tjava.net.URL url = new URL(name);\n\n\t }\n\t\t\t\n\t\t} catch (MalformedURLException e) {\n\t\t\tb = true;\n\t\t}\n\t\t\n\t\tif(b){\n\t\t\t\n\n\t\t\t\n\t\t\tif(t instanceof ImageView){\n\t\t\t\t((ImageView)t).setImageResource(theid);\n\t\t\t}\n\t\t\tif(t instanceof ImageButton){\n\t\t\t\t((ImageButton)t).setImageResource(theid);\n\t\t\t}\n\t\t\tif(t instanceof LinkedList){\n\t\t\t\tLinkedList<View> auxl = (LinkedList<View>)t;\n\t\t\t\tfor (View v : auxl) {\n\t\t\t\t\tt= (T) v;\n\t\t\t\t\timage(name);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tt= (T) auxl;\n\t\t\t}\n\t\t}else{\n\t \n\t // Imageview to show\n\t int loader = R.drawable.ic_launcher;\n\t // ImageLoader class instance\n\t ImageLoader imgLoader = new ImageLoader(activity.getApplicationContext(),loader);\n\t // whenever you want to load an image from url\n\t // call DisplayImage function\n\t // url - image url to load\n\t // loader - loader image, will be displayed before getting image\n\t // image - ImageView \n\t imgLoader.DisplayImage(name, loader, (ImageView)t);\n\t\t}\n\t\treturn this;\n\t}", "@Override\n protected void onRestoreInstanceState(Bundle savedInstanceState) {\n Bitmap image = savedInstanceState.getParcelable(\"BitmapImage\");\n this.photo = image;\n imageView.setImageBitmap(photo);\n super.onRestoreInstanceState(savedInstanceState);\n }", "public void changeState() {\n if (!isDead) {\n Bitmap temp = getBitmap();\n setBitmap(stateBitmap);\n stateBitmap = temp;\n }\n }", "void setImage(Bitmap bitmap);", "private void restorePreviousState() {\n\n\t\tif (StoreAnalysisStateApplication.question1Answered) {\n\t\t\tfirstImageVievQuestion\n\t\t\t\t\t.setImageResource(R.drawable.swipegestureenabled);\n\t\t}\n\n\t\tif (StoreAnalysisStateApplication.question2Answered) {\n\t\t\tsecondImageVievQuestion\n\t\t\t\t\t.setImageResource(R.drawable.swipegestureenabled);\n\t\t}\n\n\t\tif (StoreAnalysisStateApplication.question3Answered) {\n\t\t\tthirdImageVievQuestion\n\t\t\t\t\t.setImageResource(R.drawable.swipegestureenabled);\n\t\t}\n\n\t\tif (StoreAnalysisStateApplication.stageCleared) {\n\t\t\tfirstImageVievDescription\n\t\t\t\t\t.setImageResource(R.drawable.swipegestureenabled);\n\t\t}\n\n\t\tif (StoreDesignStateApplication.stageCleared) {\n\t\t\tsecondImageVievDescription\n\t\t\t\t\t.setImageResource(R.drawable.voicereadingenabled);\n\t\t}\n\n\t\tif (StoreImplementationStateApplication.stageCleared) {\n\t\t\tthirdImageVievDescription\n\t\t\t\t\t.setImageResource(R.drawable.microphonenabled);\n\t\t}\n\n\t}", "private void change_im_val(int boo, ImageView im_obj){\r\n if(boo == 200){ //IMAGEN SI EL VEHICULO ES CORRECTO\r\n im_obj.setImage(new Image(getClass().getResourceAsStream(\"/Images/img57a.png\")));\r\n }else{ //IMAGEN PARA LA BUSQUEDA DE UN VEHICULO\r\n im_obj.setImage(new Image(getClass().getResourceAsStream(\"/Images/img61a.png\")));\r\n }\r\n }", "@Override\n\tpublic void init() {\n\t\tthis.image = Helper.getImageFromAssets(AssetConstants.IMG_ROAD_NORMAL);\n\t}", "@Override\n public void configViews() {\n\n ImageView view = findViewById(R.id.iv);\n GlideUrl cookie = new GlideUrl(\"http://images.dmzj.com/tuijian/320_170/170623yinglingtj2.jpg\", new LazyHeaders.Builder()\n .addHeader(\"Referer\", Constant.IMG_BASE_URL)\n .addHeader(\"Accept-Encoding\",\"gzip\").build());\n// Glide.with(this).load(cookie)\n// .placeholder(R.mipmap.ic_launcher)\n// .error(R.drawable.a)\n// .transform(new GlideRoundTransform(this,6))\n// .into(view);\n\n// MultiTransformation multi = new MultiTransformation(\n// new RoundedCornersTransformation(20, 0));\n float density = getResources().getDisplayMetrics().density;\n Log.e(\"density\",\"density\"+density);\n RoundedCornersTransformation roundedCornersTransformation =\n new RoundedCornersTransformation((int) (density*20), 0);\n// Glide.with(this).loadOptions.bitmapTransform(roundedCornersTransformation))\n// .into(view);(cookie)\n// .apply(Request\n//\n DeviceUtils.printDisplayInfo(this);\n\n Glide.with(this).load(cookie)\n .apply((RequestOptions.bitmapTransform(roundedCornersTransformation)))\n .into(image01);\n Glide.with(this).load(cookie)\n .into(image02);\n }", "private void updateImageView(int currentQuestionAnswered) {\n\n\t\t// in order to restore state set this variable true, indicating that\n\t\t// question answered correctly, so next time\n\t\t// user comes in again, he doesn't have to answer the question again\n\t\tif (currentQuestionAnswered == 1) {\n\t\t\tfirstImageVievQuestion\n\t\t\t\t\t.setImageResource(R.drawable.swipegestureenabled);\n\t\t\tStoreAnalysisStateApplication.question1Answered = true;\n\t\t\tSharedPreferences prefs1 = PreferenceManager\n\t\t\t\t\t.getDefaultSharedPreferences(getApplicationContext());\n\t\t\tEditor editor1 = prefs1.edit();\n\t\t\teditor1.putBoolean(getString(R.string.analysis_quiz_1_answered),\n\t\t\t\t\ttrue);\n\t\t\teditor1.commit();\n\t\t} else if (currentQuestionAnswered == 2) {\n\t\t\tsecondImageVievQuestion\n\t\t\t\t\t.setImageResource(R.drawable.swipegestureenabled);\n\t\t\tStoreAnalysisStateApplication.question2Answered = true;\n\t\t\tSharedPreferences prefs1 = PreferenceManager\n\t\t\t\t\t.getDefaultSharedPreferences(getApplicationContext());\n\t\t\tEditor editor1 = prefs1.edit();\n\t\t\teditor1.putBoolean(getString(R.string.analysis_quiz_2_answered),\n\t\t\t\t\ttrue);\n\t\t\teditor1.commit();\n\t\t} else if (currentQuestionAnswered == 3) {\n\t\t\tthirdImageVievQuestion\n\t\t\t\t\t.setImageResource(R.drawable.swipegestureenabled);\n\t\t\tStoreAnalysisStateApplication.question3Answered = true;\n\t\t\tSharedPreferences prefs1 = PreferenceManager\n\t\t\t\t\t.getDefaultSharedPreferences(getApplicationContext());\n\t\t\tEditor editor1 = prefs1.edit();\n\t\t\teditor1.putBoolean(getString(R.string.analysis_quiz_3_answered),\n\t\t\t\t\ttrue);\n\t\t\teditor1.commit();\n\t\t}\n\n\t\tif (StoreAnalysisStateApplication.question1Answered\n\t\t\t\t&& StoreAnalysisStateApplication.question2Answered\n\t\t\t\t&& StoreAnalysisStateApplication.question3Answered) {\n\t\t\tfirstImageVievDescription\n\t\t\t\t\t.setImageResource(R.drawable.swipegestureenabled);\n\t\t\tStoreAnalysisStateApplication.stageCleared = true;\n\t\t\tSharedPreferences prefs = PreferenceManager\n\t\t\t\t\t.getDefaultSharedPreferences(getApplicationContext());\n\t\t\tEditor editor = prefs.edit();\n\t\t\teditor.putBoolean(getString(R.string.analysis_quiz_cleared), true);\n\t\t\teditor.commit();\n\t\t}\n\n\t}", "private void createImageView() {\n /**\n * We use @{@link AdjustableImageView} so that we can have behaviour like setAdjustViewBounds(true)\n * for Android below API 18\n */\n viewsToBeInflated.add(new AdjustableImageView(getActivityContext()));\n }", "@Override\n\tprotected void onCreate(Bundle arg0) {\n\t\tsuper.onCreate(arg0);\n\t\tsetContentView(R.layout.hd_hse_common_module_imageshoweractivity_layout);\n\t\timg = (ImageView) findViewById(R.id.hd_hse_common_module_imageshoweractivity_layout_img);\n\t\tString path = getIntent().getStringExtra(HEADIMG);\n\t\tboolean fromHttp = getIntent().getBooleanExtra(FROM_HTTP, false);\n\t\tif (fromHttp) {\n\t\t\tdialog = new ProgressDialog(ImageShowerActivity.this);\n\t\t\tdialog.setMessage(\"正在加载文件...\");\n\t\t\tdialog.show();\n\t\t\tImageLoader loader = new ImageLoader();\n\t\t\t//loader.setBg(path, img, ImageShowerActivity.this);\n\t\t\tloader.setBitmap(path, new ImageCallback() {\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void onImageLoaded(Bitmap bmp) {\n\t\t\t\t\t//img.setLayoutParams(getLayoutParams(bmp));\n\t\t\t\t\timg.setImageBitmap(bmp);\n\t\t\t\t\tdialog.cancel();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void onError() {\n\t\t\t\t\tdialog.cancel();\n\t\t\t\t\tToastUtils.toast(ImageShowerActivity.this, \"图片加载失败\");\n\t\t\t\t}\n\t\t\t});\n\t\t\t\n\n\t\t} else {\n\t\t\tBitmap bmp = BitmapFactory.decodeFile(path);\n\t\t\t//img.setLayoutParams(getLayoutParams(bmp));\n\t\t\timg.setImageBitmap(bmp);\n\t\t}\n\t}", "@Override\n public void imageLoad(ImageView imageView, Bitmap bitmap) {\n imageView.setImageBitmap(bitmap);\n //item.picture = bitmap;\n }", "public void setImageView() {\n \timage = new Image(\"/Model/boss3.png\", true);\n \tboss = new ImageView(image); \n }", "private void setPic() {\n int targetW = imageView.getWidth();\n int targetH = imageView.getHeight();\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n\n Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n imageView.setImageBitmap(bitmap);\n imageView.invalidate();\n }", "@Override\r\n\t\t\t\tprotected void updateView(AbsListView view, View convertView, int position) {\n\t\t\t\t\tImageView img = (ImageView) convertView.findViewById(mImageViewId);\r\n\t\t\t\t\tif(img != null) {\r\n\t\t\t\t\t\tString url = (String) img.getTag();\r\n\t\t\t\t\t\tint type = retrieveType(url);\r\n\t\t\t\t\t\tswitch(type) {\r\n\t\t\t\t\t\tcase TYPE_URL:\r\n\t\t\t\t\t\t\tsetRemoteImage(img, url, position);\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase TYPE_RESOURCES:\r\n\t\t\t\t\t\t\tsetResourceImage(img, Integer.valueOf(retrieveKey(url)), getRequestMinWidth(), 0);\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase TYPE_STORAGE:\r\n\t\t\t\t\t\t\tsetStorageImage(img, retrieveKey(url), getRequestMinWidth(), 0);\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase TYPE_ASSETS:\r\n\t\t\t\t\t\t\tsetAssetsImage(img, retrieveKey(url), getRequestMinWidth(), 0);\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}", "public void onRestoreInstanceState(Bundle savedInstanceState) {\n super.onRestoreInstanceState(savedInstanceState);\n\n // Restore state members from saved instance\n String stringURI = savedInstanceState.getString(\"URI\");\n iURI = Uri.parse(stringURI);\n iEXIFPath = savedInstanceState.getString(\"EXIF_PATH\");\n iFilename = savedInstanceState.getString(\"FILENAME\");\n iWidth = savedInstanceState.getString(\"WIDTH\");\n iHeight = savedInstanceState.getString(\"HEIGHT\");\n iSize = savedInstanceState.getLong(\"SIZE\");\n iLat = savedInstanceState.getString(\"LAT\");\n iLon = savedInstanceState.getString(\"LON\");\n iLatRef = savedInstanceState.getString(\"LAT_REF\");\n iLonRef = savedInstanceState.getString(\"LON_REF\");\n iLatFloat = savedInstanceState.getFloat(\"LAT_FLOAT\");\n iLonFloat = savedInstanceState.getFloat(\"LON_FLOAT\");\n selectedAnImage = savedInstanceState.getBoolean(\"SELECTED_AN_IMAGE\");\n\n try {\n iEXIF = new ExifInterface(iEXIFPath);\n } catch (Exception e) {\n\n }\n\n TableRow imageRow = (TableRow) findViewById(R.id.image_row);\n imageRow.setBackgroundColor(getResources().getColor(R.color.colorBlack));\n imageRow.setVisibility(View.VISIBLE);\n\n FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.select_photo_fab);\n ImageButton loadImageButton = (ImageButton) findViewById(R.id.load_image_button);\n AppBarLayout appbar = (AppBarLayout) findViewById(R.id.appbar);\n TableLayout table = (TableLayout) findViewById(R.id.layout_table);\n TextView loadImageText = (TextView) findViewById(R.id.load_image_text);\n\n if (selectedAnImage == false) {\n table.setVisibility(View.INVISIBLE);\n fab.setVisibility(View.INVISIBLE);\n loadImageButton.setVisibility(View.VISIBLE);\n appbar.setVisibility(View.INVISIBLE);\n loadImageText.setVisibility(View.VISIBLE);\n } else {\n table.setVisibility(View.VISIBLE);\n fab.setVisibility(View.VISIBLE);\n loadImageButton.setVisibility(View.GONE);\n appbar.setVisibility(View.VISIBLE);\n loadImageText.setVisibility(View.GONE);\n }\n\n drawImage();\n populateFields(null, populateMode.REPOPULATE);\n addMapMarker();\n displayCoordsInDegrees();\n }", "private void changeGraphic(ToggleButton toggleButton, Image diceImage){\n\t toggleButton.setGraphic(new ImageView(diceImage));\n\t}", "public Image getState () {\n\t\treturn images[state];\n\t}", "public void drawImage() {\n ImageView imageView = (ImageView) findViewById(R.id.photo);\n imageView.setVisibility(View.VISIBLE);\n Glide.with(MainActivity.this).load(iURI).fitCenter().into(imageView);\n }", "@Override\n\t\t\tpublic void onItemSelected(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t\timgView.setImageResource(imageIds[position]);\n\t\t\t}", "private void changeAdaptive(int i) {\n if (i == 1) {\n this.mPreviewImageView.setImageResource(C0008R$drawable.op_custom_shape_preview_round);\n } else if (i == 2) {\n this.mPreviewImageView.setImageResource(C0008R$drawable.op_custom_shape_preview_square);\n } else if (i == 3) {\n this.mPreviewImageView.setImageResource(C0008R$drawable.op_custom_shape_preview_teardrop);\n } else if (i == 4) {\n this.mPreviewImageView.setImageResource(C0008R$drawable.op_custom_shape_preview_rectangle);\n }\n }", "public void setImageView(ImageView imageView) {\r\n _imageView = imageView;\r\n }", "void mo36481a(int i, ImageView imageView, Uri uri);", "private int setImageBylevel(int level) {\n\t\tint signal = m_wifiAdmin.calculateSignalLevel(level, 5);\n\t\tif (0 == signal) {\n\t\t\treturn com.android.internal.R.drawable.p10601_wifiantenna0;\n\t\t} else if (1 == signal) {\n\t\t\treturn com.android.internal.R.drawable.p10601_wifiantenna1;\n\t\t} else if (2 == signal) {\n\t\t\treturn com.android.internal.R.drawable.p10601_wifiantenna2;\n\t\t} else if (3 == signal) {\n\t\t\treturn com.android.internal.R.drawable.p10601_wifiantenna3;\n\t\t} else {\n\t\t\treturn com.android.internal.R.drawable.p10601_wifiantenna4;\n\t\t}\n\t}", "public void changeImage(){\n if(getImage()==storeItemImg) setImage(selected);\n else setImage(storeItemImg);\n }", "public void changeImage() {\r\n this.image = ColourDoor.image2;\r\n }", "public void setState(String state, String actor, String action)\r\n/* 30: */ {\r\n/* 31: 32 */ setActor(actor);\r\n/* 32: 33 */ setAction(action);\r\n/* 33: 34 */ if ((state != null) && (state.equals(\"want\"))) {\r\n/* 34: 35 */ setImage(new ImageIcon(PictureAnchor.class.getResource(\"thumbUp.jpg\")));\r\n/* 35: 37 */ } else if ((state != null) && (state.equals(\"notWant\"))) {\r\n/* 36: 38 */ setImage(new ImageIcon(PictureAnchor.class.getResource(\"thumbDown.jpg\")));\r\n/* 37: */ }\r\n/* 38: */ }", "private void setPic() {\n int targetW = imageIV.getWidth();\n int targetH = imageIV.getHeight();\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n\n Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n imageIV.setImageBitmap(bitmap);\n }", "private void updateTemperatureImage(float temperature) {\n \t\t\n \t\t//determine which drawable to use\n \t\tif(temperature < maxColdTemp) {\n \t\t\tif(coldTempDrawable == null) {\n \t\t\t\tcoldTempDrawable = getResources().getDrawable(R.drawable.temperature_cold);\n \t\t\t}\n \t\t\ttemperatureImgView.setImageDrawable(coldTempDrawable);\n \t\t} else if(temperature > minHotTemp) {\n \t\t\tif(hotTempDrawable == null) {\n \t\t\t\thotTempDrawable = getResources().getDrawable(R.drawable.temperature_hot);\n \t\t\t}\n \t\t\ttemperatureImgView.setImageDrawable(hotTempDrawable);\n \t\t} else {\n \t\t\tif(warmTempDrawable == null) {\n \t\t\t\twarmTempDrawable = getResources().getDrawable(R.drawable.temperature_warm);\n \t\t\t}\n \t\t\ttemperatureImgView.setImageDrawable(warmTempDrawable);\n \t\t}\n \t}", "public void setImage(Image newImage)\n {\n if (newImage == null)\n {\n setFill(null);\n }\n else\n {\n setFill(new ImageFill(newImage));\n }\n }", "@Override\n protected void onImageLaidOut() {\n super.onImageLaidOut();\n final Drawable drawable = getDrawable();\n if (drawable == null) {\n return;\n }\n\n float drawableWidth = drawable.getIntrinsicWidth();\n float drawableHeight = drawable.getIntrinsicHeight();\n\n if (mTargetAspectRatio == SOURCE_IMAGE_ASPECT_RATIO) {\n mTargetAspectRatio = drawableWidth / drawableHeight;\n }\n\n int height = (int) (mThisWidth / mTargetAspectRatio);\n if (height > mThisHeight) {\n int width = (int) (mThisHeight * mTargetAspectRatio);\n int halfDiff = (mThisWidth - width) / 2;\n mCropRect.set(halfDiff, 0, width + halfDiff, mThisHeight);\n } else {\n int halfDiff = (mThisHeight - height) / 2;\n mCropRect.set(0, halfDiff, mThisWidth, height + halfDiff);\n }\n\n calculateImageScaleBounds(drawableWidth, drawableHeight);\n setupInitialImagePosition(drawableWidth, drawableHeight);\n\n if (mCropBoundsChangeListener != null) {\n mCropBoundsChangeListener.onCropAspectRatioChanged(mTargetAspectRatio);\n }\n if (mTransformImageListener != null) {\n// mTransformImageListener.onScale(getCurrentScale());\n// mTransformImageListener.onRotate(getCurrentAngle());\n mTransformImageListener.onBrightness(getCurrentBrightness());\n// mTransformImageListener.onContrast(getCurrentContrast());\n }\n }", "public void picLoader() {\n if (num==0){\n image.setImageResource(R.drawable.mario);\n }\n if(num==1){\n image.setImageResource(R.drawable.luigi);\n }\n if(num==2){\n image.setImageResource(R.drawable.peach);\n }\n if(num==3){\n image.setImageResource(R.drawable.rosalina);\n }\n }", "protected ImageView getImageView(){\n\t\treturn iv1;\n\t}", "public void setImage(Image itemImg) \n {\n img = itemImg;\n }", "private void setCategoryImage(ImageView imageView, String url, TextView tV_category, String categoryName, int color) {\n // set image\n /* if (url!=null && !url.isEmpty())\n Picasso.with(mActivity)\n .load(url)\n .placeholder(R.drawable.default_circle_img)\n .error(R.drawable.default_circle_img)\n .into(imageView);*/\n\n if (url != null && !url.isEmpty())\n Glide.with(mActivity)\n .load(url)\n //.placeholder(R.drawable.default_circle_img)\n .error(R.drawable.default_circle_img)\n .into(imageView);\n\n // set category name\n if (categoryName != null) {\n // make first character of character is uppercase\n categoryName = categoryName.substring(0, 1).toUpperCase() + categoryName.substring(1).toLowerCase();\n tV_category.setText(categoryName);\n tV_category.setTextColor(color);\n }\n }", "private void m16075b() {\n this.f13513b = (ImageView) getInflater().inflate(C0633g.abc_list_menu_item_icon, this, false);\n addView(this.f13513b, 0);\n }", "private void determineState() {\n if ( .66 <= ( ( float ) currentHealth / maxHealth ) ) {\n if ( currentState != HealthState.HIGH ) {\n currentState = HealthState.HIGH;\n for ( Image i : healthMeter ) {\n i.setDrawable( new TextureRegionDrawable( healthBars.findRegion( \"highHealth\" ) ) );\n }\n }\n } else if ( .33 <= ( ( float ) currentHealth / maxHealth ) ) {\n if ( currentState != HealthState.MEDIUM ) {\n currentState = HealthState.MEDIUM;\n for ( Image i : healthMeter ) {\n i.setDrawable( new TextureRegionDrawable( healthBars.findRegion( \"mediumHealth\" ) ) );\n }\n }\n } else if ( .0 <= ( ( float ) currentHealth / maxHealth ) ) {\n if ( currentState != HealthState.LOW ) {\n currentState = HealthState.LOW;\n for ( Image i : healthMeter ) {\n i.setDrawable( new TextureRegionDrawable( healthBars.findRegion( \"lowHealth\" ) ) );\n }\n }\n }\n }", "@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.activity_main);\n\n\t\tenableMirror = (CheckBox) findViewById(R.id.enablemirror);\n\t\tmyImageView = (ImageView) findViewById(R.id.imageview);\n\n\t\tenableMirror\n\t\t\t\t.setOnCheckedChangeListener(new CheckBox.OnCheckedChangeListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onCheckedChanged(CompoundButton buttonView,\n\t\t\t\t\t\t\tboolean isChecked) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tdrawMatrix();\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\tbitmap = BitmapFactory.decodeFile(imageInSD);\n\t\tbmpWidth = bitmap.getWidth();\n\t\tbmpHeight = bitmap.getHeight();\n\n\t\tinitMirrorMatrix();\n\n\t\tdrawMatrix();\n\t}", "@Override\r\n\tprotected void updateImage(final IScope scope) {\n\t}", "@Override\n public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n MyCheckBox myCheckBox = (MyCheckBox) buttonView;\n NLog.e(TAG, \"onCheckedChanged:%s\", localPosition);\n if (imgSum >= imageNum && isChecked) {\n buttonView.setChecked(false);\n Toast.makeText(mContext, \"最多设置\" + imageNum + \"张图片\", Toast.LENGTH_SHORT).show();\n return;\n }\n mImageInfos.get(localPosition).select = isChecked;\n imgSum += isChecked ? 1 : -1;\n NLog.e(TAG, \"imgSum:%d\", imgSum);\n\n }", "public void changePicture() {\n ImageView imgView = (ImageView)findViewById(R.id.poll_object_btn_image);\n Resources res = getContext().getResources();\n if(type == \"generic\") {\n //add the new picture for the generic type\n Bitmap bitmap = BitmapFactory.decodeResource(res,R.drawable.generic_view);\n imgView.setImageBitmap(bitmap);\n }\n else if(type == \"location\") {\n //add the new picture for the location type\n Bitmap bitmap = BitmapFactory.decodeResource(res,R.drawable.generic_view);\n imgView.setImageBitmap(bitmap);\n }\n else if(type == \"picture\"){\n //add the new picture for the picture type\n Bitmap bitmap = BitmapFactory.decodeResource(res,R.drawable.generic_view);\n imgView.setImageBitmap(bitmap);\n }\n }", "ImageViewTouchBase getMainImage();", "@Override\n\t\t\t\t\tpublic void imageLoaded(Drawable imageDrawable,\n\t\t\t\t\t\t\tString imageUrl) {\n\t\t\t\t\t\tBabyImage.setImageDrawable(imageDrawable);\n\t\t\t\t\t}", "public void loadBitmap(Activity mainActivity, long id, String imageKey,\r\n ImageView imageView) {\r\n\r\n\r\n final Bitmap bitmap = getBitmapFromCache(imageKey);\r\n mImageViews.put(imageView, imageKey);\r\n\r\n if (bitmap != null) {\r\n imageView.setImageBitmap(bitmap);\r\n } else {\r\n imageView.setImageResource(R.drawable.img_def);\r\n\r\n// String tag = mImageViews.get(imageView);\r\n// if (tag != null && tag.equals(imageKey)) {\r\n// mExecutorService.\r\n// }\r\n if (!mCurrentTasks.contains(imageKey)) {\r\n if (mExecutorService != null && !mExecutorService.isShutdown()) {\r\n mExecutorService.submit(new LoadingImage(id, imageKey, new WeakReference<>(mainActivity), new WeakReference<>(imageView)));\r\n mCurrentTasks.add(imageKey);\r\n }\r\n } else {\r\n Log.e(\"samuel\", \"任务已经存在>>>imageKey:\" + imageKey);\r\n }\r\n }\r\n }", "private void resultImgInit() {\n resultImgAndLoadingLayout.setX(cornerPositions.getLeftTop().x);\n resultImgAndLoadingLayout.setY(cornerPositions.getLeftTop().y);\n int wight = cornerPositions.getRightBottom().x - cornerPositions.getLeftTop().x + cornerImgSize;\n int height = cornerPositions.getRightBottom().y - cornerPositions.getLeftTop().y + cornerImgSize;\n resultImgAndLoadingLayout.setLayoutParams(new LayoutParams(wight, height));\n }", "@SuppressWarnings(\"unchecked\")\n\t\t@Override\n\t\tprotected void onProgressUpdate(Object... values) {\n\t\t\tsuper.onProgressUpdate(values);\n\n\t\t\tfloat halfWidth = imswitcher.getWidth() / 2.0f;\n\t\t\tfloat halfHeight = imswitcher.getHeight() / 2.0f;\n\t\t\tint duration = 500;\n\t\t\tint depthz = 0;// viewFlipper.getWidth()/2;\n\n\t\t\tRotate3D rdin = new Rotate3D(75, 0, 0, halfWidth, halfHeight);\n\t\t\trdin.setDuration(duration);\n\t\t\trdin.setFillAfter(true);\n\t\t\timswitcher.setInAnimation(rdin);\n\t\t\tRotate3D rdout = new Rotate3D(-15, -90, 0, halfWidth, halfHeight);\n\n\t\t\trdout.setDuration(duration);\n\t\t\trdout.setFillAfter(true);\n\t\t\timswitcher.setOutAnimation(rdout);\n\n\t\t\ti = (i + 1);\n\t\t\tint p = i % 4;\n\n\t\t\tif (p >= 0) {\n\t\t\t\tsetpic(p);\n\t\t\t\timswitcher.setImageResource(imageIds[p]);\n\t\t\t} else {\n\n\t\t\t\tint k = 4 + p;\n\t\t\t\tsetpic(k);\n\t\t\t\timswitcher.setImageResource(imageIds[k]);\n\t\t\t}\n\n\t\t}", "private void enhanceImage(){\n }", "@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.map);\n\t\topts.inScaled = false;\n\t\topts.inSampleSize = SAMPLING_SIZE;\n\t\tmapImageView = (MapImageView) findViewById(R.id.image);\n\t\tzoomInButton = (ImageButton) findViewById(R.id.zoomIn);\n\t\tzoomOutButton = (ImageButton) findViewById(R.id.zoomOut);\n\t\t\n\t\tsourceRect = new RectF();\n\t\tdestinationRect = new RectF();\n\t\tmatrix = new Matrix();\n\n\t\tif (savedInstanceState != null) {\n\t\t\tcurrent_centerX = savedInstanceState.getInt(\"centerX\");\n\t\t\tcurrent_centerY = savedInstanceState.getInt(\"centerY\");\n\t\t\tcurrent_scale = savedInstanceState.getFloat(\"scale\");\n\t\t\tmap_drawable = savedInstanceState.getInt(\"drawable\");\n\t\t\tmapSizeX = savedInstanceState.getInt(\"sizeX\");\n\t\t\tmapSizeY = savedInstanceState.getInt(\"sizeY\");\n\t\t}\n\n\t\ttimer = new Timer();\n\t\tanimation = new MapAnimation(handle, current_centerX, current_centerY, current_scale);\n\n\t\tmapImageView.setHandle(handle);\n\t\tmapImageView.setCallBack(sizeCallback);\n\n\t\tanimation.stopProcess();\n\t\tanimation.setCallBack(animationCallBack);\n\t\ttimer.scheduleAtFixedRate(animation, 200, 30);\n\n\t\tmapImageView.setOnTouchListener(mapTouchListener);\n\t\tzoomInButton.setOnClickListener(zoomInListener);\n\t\tzoomOutButton.setOnClickListener(zoomOutListener);\n\n\t\tbitmap = BitmapFactory.decodeResource(getResources(), map_drawable, opts);\n\t\tmapSizeX = bitmap.getWidth();\n\t\tmapSizeY = bitmap.getHeight();\n\n\t\tmapImageView.setImageBitmap(bitmap);\n\t\tmapImageView.getDrawable().setFilterBitmap(true);\n\t\tmapImageView.setImageMatrix(matrix);\n\t\t\n\t\tstages = StageDAO.findAll(this);\n\n\t\tshowInitialInfoDialog();\n\t}", "@Override\n public void onLoadingComplete(String imageUri, View view, Bitmap loadedImage) {\n }" ]
[ "0.59392947", "0.58631927", "0.5845603", "0.5822124", "0.5810686", "0.57346797", "0.57266647", "0.5693435", "0.566709", "0.56613505", "0.5636219", "0.5634312", "0.562431", "0.56211686", "0.5608457", "0.5601166", "0.55956286", "0.5595613", "0.5594377", "0.55939394", "0.5590263", "0.5584272", "0.5555427", "0.5554078", "0.5528128", "0.55104756", "0.5497055", "0.54965675", "0.5491633", "0.5484208", "0.54779166", "0.547642", "0.54433155", "0.543624", "0.54283965", "0.541796", "0.54132706", "0.5411407", "0.5409974", "0.5409336", "0.5409336", "0.54040504", "0.53928983", "0.5384349", "0.53778696", "0.53766567", "0.5375566", "0.5375566", "0.53734535", "0.53682977", "0.53665817", "0.53649837", "0.53646976", "0.5362903", "0.5358812", "0.53563595", "0.5345908", "0.5341384", "0.5332775", "0.5328958", "0.5327938", "0.5316503", "0.531358", "0.53105456", "0.5308051", "0.52932715", "0.52864987", "0.5284556", "0.5276814", "0.5274384", "0.5270328", "0.52688146", "0.5266577", "0.52656835", "0.5265647", "0.52651197", "0.52548593", "0.5253674", "0.52519417", "0.5251154", "0.5249669", "0.52470875", "0.5242712", "0.5238008", "0.52361304", "0.52306896", "0.52193034", "0.521782", "0.5216276", "0.5212573", "0.5211814", "0.52097356", "0.520062", "0.5199706", "0.5197292", "0.51970226", "0.5194525", "0.51907426", "0.51883864", "0.51864326" ]
0.67958426
0
TODO Autogenerated method stub
public static void main(String[] args) { Scanner sc=new Scanner(System.in); int n; String bowlName; String batName; long runs; System.out.println("Menu\n1.Player details of the delivery\n2.Run details of the delivery"); n=sc.nextInt(); sc.nextLine(); Delivery d=new Delivery(); switch(n) { case 1: System.out.println("Enter the bowler name"); bowlName=sc.nextLine(); System.out.println("Enter the batsman name"); batName=sc.nextLine(); d.displayDeliveryDetails(bowlName, batName); break; case 2: System.out.println("Enter the number of runs"); runs=sc.nextLong(); d.displayDeliveryDetails(runs); break; } sc.close(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0.6080555", "0.6076938", "0.6041293", "0.6024541", "0.6019185", "0.5998426", "0.5967487", "0.5967487", "0.5964935", "0.59489644", "0.59404725", "0.5922823", "0.5908894", "0.5903041", "0.5893847", "0.5885641", "0.5883141", "0.586924", "0.5856793", "0.58503157", "0.58464456", "0.5823378", "0.5809384", "0.58089525", "0.58065355", "0.58065355", "0.5800514", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57896614", "0.5789486", "0.5786597", "0.5783299", "0.5783299", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5760369", "0.5758614", "0.5758614", "0.574912", "0.574912", "0.574912", "0.57482654", "0.5732775", "0.5732775", "0.5732775", "0.57207066", "0.57149917", "0.5714821", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57115865", "0.57045746", "0.5699", "0.5696016", "0.5687285", "0.5677473", "0.5673346", "0.56716853", "0.56688815", "0.5661065", "0.5657898", "0.5654782", "0.5654782", "0.5654782", "0.5654563", "0.56536144", "0.5652585", "0.5649566" ]
0.0
-1
Constructor a partir de la entidad
public MarcaDTO(MarcaEntity marcaEntity) { if (marcaEntity != null) { this.id = marcaEntity.getId(); this.nombreMarca = marcaEntity.getNombreMarca(); this.logo = marcaEntity.getLogo(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public EstadosSql() {\r\n }", "public PedidoRecord() {\n super(Pedido.PEDIDO);\n }", "public Candidatura (){\n \n }", "public Alojamiento() {\r\n\t}", "public ChoixEntreprise() {\n\n }", "public CCuenta()\n {\n }", "public PersistenciaCMT() {\n\n }", "public Caso_de_uso () {\n }", "public LocalResidenciaColaborador() {\n //ORM\n }", "public CuentaDeposito() {\n super();\n }", "public ClientDetailsEntity() {\n\t\t\n\t}", "public ExpertiseEntity() {\n }", "public Vehiculo() {\r\n }", "public TblActividadUbicacion() {\r\n }", "public Empleado() { }", "public AntrianPasien() {\r\n\r\n }", "public Consulte()\n {\n }", "public Pasien() {\r\n }", "public ExcursionEntity() {\n\t}", "public EntityID() {\n }", "public Unidadmedida() {\r\n\t}", "public Producto() {\r\n }", "public Estado() {\r\n }", "public CampoModelo(String valor, String etiqueta, Integer longitud)\n/* 10: */ {\n/* 11:17 */ this.valor = valor;\n/* 12:18 */ this.etiqueta = etiqueta;\n/* 13:19 */ this.longitud = longitud;\n/* 14: */ }", "public QuestEntity() {\r\n\r\n }", "public AccountTypeEntity() { }", "public ConsultaMedica() {\n super();\n }", "protected Asignatura()\r\n\t{}", "public RepositorioTransacaoHBM() {\n\n\t}", "public Ciudad()\n {\n\n }", "public BOEmpresa() {\r\n\t\tdaoEmpresa = new DAOEmpresaJPA();\r\n\t}", "public Producto() {\r\n\t\tsuper();\r\n\t\tID = getIDnuevoProducto();\r\n\t\tnombre = \"\";\r\n\t\tvendedor = \"\";\r\n\t\tprecio = 0;\r\n\t\tcantidad = 0;\r\n\t\tenVenta = false;\r\n\t\tdescripcion = \"\";\r\n\t\tcategorias = new Categoria();\r\n\t\tcaracteristicas = null;//TODO CORREGIR\r\n\t}", "public Datos(){\n }", "public Persona(){\n \n }", "public Persona(){\n \n }", "public PersonaFisica() {}", "public TcUnidadEdoDTO() {\n }", "public EnvioPersonaPK() {\r\n }", "public ControladorCatalogoEstado() {\r\n }", "public RepoSQL() { // constructor implicit\r\n\t\t super();\r\n\t }", "public Estado() {\n }", "public Transportista() {\n }", "public AlarmEntity(){}", "public DesastreData() { //\r\n\t}", "public paciente()\n {\n con = new bdconexion(); //instancia la clase bdconexion\n }", "public Producto (){\n\n }", "public Cliente(){\r\n this.nome = \"\";\r\n this.email = \"\";\r\n this.endereco = \"\";\r\n this.id = -1;\r\n }", "public FicheConnaissance() {\r\n }", "private BaseDatos() {\n }", "public MorteSubita() {\n }", "public Propiedad() {\n bdPropiedad = new DaoPropiedad();\n bdComentario = new DaoComentario();\n }", "public ViviendaDTO(ViviendaEntity entity, String condicion)\r\n {\r\n if (entity!=null){\r\n this.idVivienda=entity.getIdVivienda();\r\n this.ciudad=entity.getCiudad();\r\n this.descripcion=entity.getDescripcion();\r\n this.direccion=entity.getDireccion();\r\n this.capacidad=entity.getCapacidad();\r\n this.valorDiario=entity.getValorDiario();\r\n this.imagen=entity.getImagen();\r\n }\r\n }", "public FacturaDTO(FacturaEntity entity) \n {\n if(entity != null)\n {\n this.costo = entity.getCosto();\n this.id = entity.getId();\n }\n \n }", "public Kullanici() {}", "public Persona() {\n \t\n }", "public MPaciente() {\r\n\t}", "public Espacio (int id, int capacidad, int ocupacion, TipoEspacio tipo, Localizacion localizacion){\n this.id = id;\n this.capacidad = capacidad;\n this.ocupacion = ocupacion;\n this.TIPO = tipo;\n this.localizacion = localizacion;\n }", "public Aritmetica(){ }", "public Employe () {\n this ( NOM_BIDON, null );\n }", "public Clade() {}", "public Doc_estado() {\n }", "public Account(){\r\n this.id = 0;\r\n this.saldo = 0.0;\r\n }", "public CriaBanco (Context context){\n\n super (context, NOME_BD, null, VERSAO);\n }", "public Funcionalidad() {\n Cajero cajero1 = new Cajero(\"Pepe\", 2);\n empleados.put(cajero1.getID(), cajero1);\n Reponedor reponedor1 = new Reponedor(\"Juan\", 3);\n empleados.put(reponedor1.getID(), reponedor1);\n Producto producto1 = new Producto(\"Platano\", 10, 8);\n productos.add(producto1);\n Perecedero perecedero1 = new Perecedero(LocalDateTime.now(), \"Yogurt\", 10, 8);\n }", "public Trabajador() {\n\t\tsuper();\n\t}", "public Persona() {\n\t}", "public Asiento() {\n\t\tthis(\"asiento\", null);\n\t}", "public empresaDAO(){\r\n \r\n }", "public OnibusDAO() {}", "public Estado() {\r\n //Constructor vacio\r\n }", "public ProductosPuntoVentaDaoImpl() {\r\n }", "public ViviendaDTO(ViviendaEntity entity){\r\n if (entity!=null){\r\n this.idVivienda=entity.getIdVivienda();\r\n this.anfitrion=new AnfitrionBasicDTO(entity.getAnfitrion());\r\n this.ciudad=entity.getCiudad();\r\n this.descripcion=entity.getDescripcion();\r\n this.direccion=entity.getDireccion();\r\n this.capacidad=entity.getCapacidad();\r\n this.valorDiario=entity.getValorDiario();\r\n this.imagen=entity.getImagen();\r\n this.numeroHabitaciones=entity.getHabitaciones().size();\r\n }\r\n }", "public TebakNusantara()\n {\n }", "public LecturaPorEvento() \r\n {\r\n }", "public prueba()\r\n {\r\n }", "public Venda() {\n }", "public Empleado(String nombre, String departamento, String posicion, int salario)\n {\n // initialise instance variables\n this.nombre=nombre;\n this.departamento=departamento;\n this.posicion=posicion;\n this.salario=salario;\n \n }", "public TdRuspHijo() { }", "public ListSemental() {\n }", "public Firma() {\n }", "public Achterbahn() {\n }", "public Estudiante() {\r\n\t\tsuper();\r\n\t\t// TODO Auto-generated constructor stub\r\n\t}", "public AgenteEstAleatorio() {\r\n }", "public ProductoCreable newInstance(int codigo, String nombre){\r\n \r\n }", "public DatabaseTable() { }", "public Empresa()\n\t{\n\t\tclientes = new HashMap<String, Cliente>();\n\t\tplanes = new ArrayList<Plan>();\n\t\t\n\t}", "public Enderecos() {\n \n }", "public Tecnico(){\r\n\t\tthis.matricula = 0;\r\n\t\tthis.nome = \"NULL\";\r\n\t\tthis.email = \"NULL\";\r\n\t\tthis.telefone = \"TELEFONE\";\r\n\t\tlistaDeServicos = new ArrayList<Servico>();\r\n\t}", "public PacienteDAO(){ \n }", "public AbstractEntity() {\r\n\t}", "public NamedEntity() {}", "public Estudiante(String nom) // Constructor 1: Se le asigna un valor al atributo nombre cuando se cree el objeto.\r\n {\r\n this.nombre = nom;\r\n }", "public TutorIndustrial() {}", "public CompanyData() {\r\n }", "public Documento() {\n\n\t}", "public Persona(int idPersona, String nombre, String apellido, String email, String telefono){\n this.idPersona = idPersona;\n this.nombre = nombre;\n this.apellido = apellido;\n this.email = email;\n this.telefono = telefono;\n \n }", "public MapEntity() {\n\t}", "public DatasetParameterPK() {\n }", "public AfiliadoVista() {\r\n }", "Constructor() {\r\n\t\t \r\n\t }", "public Persona() {\n }" ]
[ "0.71016794", "0.6990449", "0.69553494", "0.69251156", "0.691999", "0.68431276", "0.68247664", "0.6789043", "0.67498827", "0.67261076", "0.67237383", "0.6693738", "0.66518193", "0.66495913", "0.66473615", "0.66408676", "0.663299", "0.6631387", "0.6625279", "0.66055304", "0.6598298", "0.6582159", "0.6577493", "0.65625715", "0.6536056", "0.65337604", "0.65271044", "0.6518629", "0.65060204", "0.65045196", "0.65014243", "0.6497258", "0.6491831", "0.6488499", "0.6488499", "0.64861965", "0.6482523", "0.6479711", "0.64780384", "0.6476268", "0.6475543", "0.6470937", "0.6457721", "0.64360267", "0.6435794", "0.6434992", "0.6429867", "0.6427194", "0.6420933", "0.6419112", "0.64190537", "0.64178646", "0.6416177", "0.6399601", "0.63980323", "0.6397508", "0.6394417", "0.63922745", "0.6388305", "0.6384591", "0.6381123", "0.63755685", "0.6368107", "0.6367379", "0.63634634", "0.6363214", "0.6361004", "0.63559574", "0.6353335", "0.63416266", "0.63402563", "0.6338887", "0.6337906", "0.63335484", "0.6333048", "0.6322381", "0.63214433", "0.631673", "0.63104576", "0.6300721", "0.6293898", "0.6292745", "0.6290754", "0.62869954", "0.6286697", "0.628435", "0.6280923", "0.6279173", "0.62749696", "0.6273767", "0.62726086", "0.6270007", "0.6269028", "0.6268743", "0.62663466", "0.6265935", "0.62637126", "0.6261627", "0.6259946", "0.62582225", "0.6255612" ]
0.0
-1
Execute the global state (if any)
@Override public void update() { if (globalState != null) globalState.update(owner); // Execute the current state (if any) if (currentState != null && newStateEntered) currentState.update(owner); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void runState() {\n\t\tp.displaySheet();\n\t\tcurState.run();\n\t}", "ProgramState execute(ProgramState state) ;", "public ExecuteState() {\r\n PrevPC = 0;\r\n ChangedLoc = -1;\r\n OldInst = new CodeBlueInstruction();\r\n }", "public void execute() {\n if(cb) {\n Main.cb.step(Main.cpu.get8BitImm());\n }\n }", "public void runStateMachine() {\n switch(m_currentState) {\n case PoweringUpState:\n if (this.doPowerUpStuff()) {\n this.setRobotState(RobotState.InitializingDataState);\n }\n break;\n case InitializingDataState:\n\n if (this.initializeData()) {\n // Load some commands for our robot.\n // We could definitely load these from a different file.\n System.out.println(\"-------- Populating Command Queue --------\");\n m_robotQueue.addCommand(new MoveToLocationXY(1.0, 2.0, 2.0));\n m_robotQueue.addCommand(new MoveToLocationXY(-1.0, -2.0, 1.0));\n m_robotQueue.addCommand(new RotateDegrees(180.0, 22.5));\n\n System.out.println(\"\\n-------- Entering Main Robot State --------\");\n this.setRobotState(RobotState.IdleWaitingForCommandState);\n }\n break;\n case IdleWaitingForCommandState:\n if (m_robotQueue.isCommandPending()) {\n\n m_currentCommand = m_robotQueue.getNextCommand();\n\n // m_currentCommand is a generic Object. Let's see what it actually is...\n String commandName = m_currentCommand.getClass().toString();\n System.out.println(\"* Got new command. Processing: \" + commandName);\n\n // Change robot state depending on the type of command we found.\n switch (commandName) {\n // NOTE: This \"class xyz\" text compare is kind of weird,\n // We could probably find a better way.\n case \"class commands.MoveToLocationXY\":\n this.setRobotState(RobotState.MovingToLocationState);\n break;\n case \"class commands.RotateDegrees\":\n this.setRobotState(RobotState.RotatingState);\n break;\n default:\n System.out.println(\"Unrecognized command \" + commandName);\n }\n System.out.println();\n\n } else if (m_currentCommand != null) {\n m_currentCommand = null; // Doing nothing. Clear current command.\n }\n break;\n case MovingToLocationState:\n MoveToLocationXY moveCmd = (MoveToLocationXY) m_currentCommand;\n try {\n if (moveCmd.runUntilComplete()) {\n // Done moving, process next item in command queue\n this.setRobotState(RobotState.IdleWaitingForCommandState);\n }\n } catch (InterruptedException e) { // for Thread.sleep - demo only\n e.printStackTrace();\n }\n break;\n case RotatingState:\n RotateDegrees rotateCmd = (RotateDegrees) m_currentCommand; // Cast to correct type.\n try {\n if (rotateCmd.runUntilComplete()) {\n // Done moving, process next item in command queue\n this.setRobotState(RobotState.IdleWaitingForCommandState);\n }\n } catch (InterruptedException e) { // for Thread.sleep - demo only\n e.printStackTrace();\n }\n break;\n case SearchingForTargetsState:\n // TODO - implement SearchTarget demo behavior\n break;\n }\n }", "public void intialRun() {\n }", "@Override\n public void stateAction(SmartBartender smartBartenderContext) {\n LOGGER.info(\"Ready for use! Waiting for user input\");\n if (this.nextState == null) {\n this.nextState = new CleaningState();\n } else {\n this.nextState = new ShutdownState();\n }\n this.nextState(smartBartenderContext);\n\n }", "public static void main(String[] args) {\n mystate();\n mystate();\n myCountry();\n mystate();\n\t}", "public void update(){\r\n\r\n // update curState based on inputs\r\n // Perform state-transition actions \r\n switch(curState) {\r\n${nextstatecases}\r\n default:\r\n reset();\r\n break;\r\n }", "public void refreshState(){\n\t\tswitch(state){\n\t\tcase LOGINID:\n\t\t\tloginMenu();\n\t\t\tbreak;\n\t\tcase LOGINPIN:\n\t\t\tloginPin();\n\t\t\tbreak;\n\t\tcase TRANSACTION:\n\t\t\ttransactionMenu();\n\t\t\tbreak;\n\t\tcase DEPOSIT:\n\t\t\tdepositMenu();\n\t\t\tbreak;\n\t\tcase DEPOSITNOTIFICATION:\n\t\t\tdepositMenu();\n\t\t\tbreak;\n\t\tcase WITHDRAW:\n\t\t\twithdrawalMenu();\n\t\t\tbreak;\n\t\tcase BALANCE:\n\t\t\tbalanceMenu();\n\t\t\tbreak;\n\t\tcase WITHDRAWALNOTIFICATION:\n\t\t\tbalanceMenu();\n\t\t\tbreak;\n\t\t}\n\t}", "@Override\n protected void execute() {\n if(state == Value.kOff) {\n System.out.println(\"Toggling Drivetrain Gearing\");\n if (gear == RobotMap.SLOW) {\n dt.setGearbox(RobotMap.FAST);\n System.out.println(\"Gearing: HIGH SPEED\");\n } else {\n dt.setGearbox(RobotMap.SLOW);\n System.out.println(\"Gearing: SLOW SPEED\");\n }\n }\n else{\n if(state != gear)\n dt.setGearbox(state);\n if(state == RobotMap.FAST)\n System.out.println(\"Gearing: HIGH SPEED\");\n else\n System.out.println(\"Gearing: SLOW SPEED\");\n }\n\n sInFastGear.set(state == RobotMap.FAST);\n }", "public final void run() {\n\t\ttry (Restore restore = ComponentBoundary.push(loggerName(), this)) {\t\t\n\t\t\tif (!stateHandler.waitToWhen(new IsExecutable(), new Runnable() {\n\t\t\t\tpublic void run() {\n\t\t\t\t\tstop = false;\n\t\t\t\t\t// it's possible to reset children and then execute again so this\n\t\t\t\t\t// is just in case there was no reset.\n\t\t\t\t\tstopChildStateReflector();\n\t\t\t\t\t\n\t\t\t\t\tgetStateChanger().setState(ParentState.EXECUTING);\n\t\t\t\t}\t\t\t\t\t\n\t\t\t})) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tlogger().info(\"Executing.\");\n\n\t\t\ttry {\n\t\t\t\tif (!stop) {\n\t\t\t\t\tconfigure();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (!stop) {\n\t\t\t\t\texecute();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// we ignore state while executing but now we need to update.\n\t\t\t\t// dependent on our child states.\n\t\t\t\tstartChildStateReflector();\n\t\t\t}\n\t\t\tcatch (final Throwable e) {\n\t\t\t\tlogger().error(\"Job Exception.\", e);\n\t\t\t\t\n\t\t\t\tstateHandler.waitToWhen(new IsAnyState(), new Runnable() {\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tgetStateChanger().setStateException(e);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\t\n\t\t\tlogger().info(\"Execution finished.\");\n\t\t}\n\t}", "protected void execute() {\n\t\tRobotMap.leftMaster.set(ControlMode.PercentOutput, vision.blockCheck() * turnMultiplier(\"left\"));\n\t\tRobotMap.rightMaster.set(ControlMode.PercentOutput, vision.blockCheck() * turnMultiplier(\"right\"));\n\t}", "public void run() {\r\n // Execute the program\r\n int index = 0;\r\n\r\n while (index < operations.size()) {\r\n Operation o = operations.get(index);\r\n index = o.execute(index, stack, symbolTable);\r\n }\r\n }", "public void tick()\n\t{\n\t\tglobal++;\n\t\tSystem.out.println(\"Global: \" + global);\n\t\tif(devMode == false)\n\t\t{\n\t\t\tplaceKeys();\n\t\t\tsetSpot();\n\t\t}\n\t}", "@Override\n\t\tpublic void run() {\n\t\t\tEditor e=sh.edit();\n\t\t\te.putInt(\"mainflag\",0);\n\t\t\te.commit();\n\t\t}", "@Override\n public void runOpMode() {\n commands.init(hardwareMap);\n\n // Wait for the game to start (driver presses PLAY)\n waitForStart();\n\n // run until the end of the match (driver presses STOP)\n while (opModeIsActive()) {\n sleep(30000);\n }\n }", "public State execute(int command, State state);", "public void run()\n {\n getMenuChoice();\n }", "void execute()\n\t{\n\t\tVM.top++;\n\t\tVM.opStack[VM.top] = arg();\n\t\tVM.pc++;\n\t}", "@Override\n public void runOpMode() {\n servo0 = hardwareMap.servo.get(\"servo0\");\n servo1 = hardwareMap.servo.get(\"servo1\");\n digital0 = hardwareMap.digitalChannel.get(\"digital0\");\n motor0 = hardwareMap.dcMotor.get(\"motor0\");\n motor1 = hardwareMap.dcMotor.get(\"motor1\");\n motor0B = hardwareMap.dcMotor.get(\"motor0B\");\n motor2 = hardwareMap.dcMotor.get(\"motor2\");\n blinkin = hardwareMap.get(RevBlinkinLedDriver.class, \"blinkin\");\n motor3 = hardwareMap.dcMotor.get(\"motor3\");\n park_assist = hardwareMap.dcMotor.get(\"motor3B\");\n\n if (digital0.getState()) {\n int_done = true;\n } else {\n int_done = false;\n }\n motor_stuff();\n waitForStart();\n if (opModeIsActive()) {\n while (opModeIsActive()) {\n lancher_position();\n slow_mode();\n drive_robot();\n foundation_grabber(1);\n launcher_drive();\n data_out();\n Pickingupblockled();\n lettingoutblockled();\n Forwardled();\n backwardled();\n Turnleftled();\n Turnrightled();\n Stationaryled();\n }\n }\n }", "public void execute() {\n setExecuted(true);\n }", "@Override\n protected void perform(String[] params) {\n //Only state switcher command\n }", "protected void aktualisieren() {\r\n\r\n\t}", "protected void execute() {\n \tTmSsAutonomous.getInstance().showAlgInfo();\n \tshowPreferenceSettings(); //P.println(\"[Preferences info TBD]\");\n }", "public void run(){\n int selection = -1;\n super.myConsole.listOptions(menuOptions);\n selection = super.myConsole.getInputOption(menuOptions);\n branchMenu(selection);\n }", "@Override\r\n public void run() {\n opsi_menu();\r\n\r\n }", "public static void launch() {\r\n\t\tint choice = EXIT;\r\n\t\tdo {\r\n\t\t\tchoice = displayMenu();\r\n\t\t\texecuteMenuItem(choice);\r\n\t\t} while (choice != EXIT);\r\n\t}", "protected abstract Value execute(final State state, final HashMap<ParameterDef, Value> args) throws SetlException;", "public void getState();", "public void execute(Stateful stateful) {\r\n // TODO Auto-generated method stub\r\n action.execute(stateful, param);\r\n }", "void execute() throws Exception {\n\n\t\tif (getSystemState(db) != SYSTEM_STATE_CREATED_COULD_BE_EXACTLY_ONE) {\n\t\t\tInteger ss = getSystemState(db);\n\t\t\tshutDown();\n\t\t\tthrow new Exception(\"System in wrong state for this task: \" + ss);\n\t\t}\n\n\t\tloadExecutionEngine(db);\n\t\tperformUpdate();\n\t\tshutDown();\n\t}", "@Override\n\tpublic void initializeState(){\n\t\tSystem.out.println(\"Entered instructionState\");\n\t}", "protected abstract void actionExecuted(SUT system, State state, Action action);", "public void execute() {\r\n\t\r\n\t}", "public static void main(String[] args) {\r\n\t\t//初始状态为A\r\n\t\tContextState contextState=new ContextState(new SpecificStateA());\r\n\t\t//不断更新状态(在A,B,C之间不断切换)\r\n\t\tfor(int i=0;i<10;i++){\r\n\t\t\tcontextState.reauest();\r\n\t\t}\r\n\t}", "@Override\n\t\tprotected void doCurrentState() {\n\t\t\tswitch(currentState) {\n\t\t\t\n\t\t\t// follow operator commands, but respect limit switches\n\t\t\tcase manual:\n\t\t\t\tcd.gearLeftOpen.set(rd.gearManualLeftOpen && !rd.leftOpenSwitch, rd.gearManualLeftClose && !rd.leftCloseSwitch );\n\t\t\t\tcd.gearRightOpen.set(rd.gearManualRightOpen && !rd.rightOpenSwitch, rd.gearManualRightClose && !rd.rightCloseSwitch);\n\t\t\t\tbreak;\n\t\t\t\n\t\t\t// close each motor until fully closed, if one motor is closed stop that motor\n\t\t\tcase autoClose:\n\t\t\t\tcd.gearLeftOpen.set(false, !rd.leftCloseSwitch );\n\t\t\t\tcd.gearRightOpen.set(false, !rd.rightCloseSwitch);\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t// open each motor until fully open, if one motor is open stop that motor\t\n\t\t\tcase autoOpen:\n\t\t\t\tcd.gearLeftOpen.set(!rd.leftOpenSwitch, false);\n\t\t\t\tcd.gearRightOpen.set(!rd.rightOpenSwitch, false);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "public void run(){ \n \t//sets up the GUI and performs operations based on ActionListeners\n \tpackageGUI();\n \toperate();\n }", "@Override\n\tpublic void enterMain() {\n\t\tIsland island = game.getCurrentLocation();\n\t\tif (game.checkAccessibleIsland(island)) \n\t\t{\n\t\t\tboolean state = false;\n\t\t\twhile (state == false) {\n\t\t\t\tArrayList<Island> islands = game.getAvailableIslands();\n\t\t\t\tSystem.out.println(\"Your current money: \" + game.getMoney()+ \" coins.\");\n\t\t\t\tSystem.out.println(\"You have : \" + game.getRemainingDays() + \" days left.\");\n\t\t\t\tIsland currentLoc = game.getCurrentLocation();\n\t\t\t\tString islandName = currentLoc.getIslandName();\n\t\t\t\tSystem.out.println(\"Your current location is: \" + islandName + \" Island.\" + \"\\n\");\n\t\t\t\tSystem.out.println(\"What do you want to do? \");\n\t\t\t\tSystem.out.println(\"(1) See ship's specification\");\n\t\t\t\tSystem.out.println(\"(2) Go to other Island\");\n\t\t\t\tSystem.out.println(\"(3) Go to store in your current location\");\n\t\t\t\tSystem.out.println(\"(4) End game\");\n\t\t\t\ttry {\n\t\t\t\t\tint selectedAction = scanner.nextInt();\n\t\t\t\t\tif (selectedAction <= 4 && selectedAction > 0) {\n\t\t\t\t\t\tstate = true;\n\t\t\t\t\t\tif (selectedAction == 1) {\n\t\t\t\t\t\t\tgame.seeShipSpec();\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (selectedAction == 2) {\n\t\t\t\t\t\t\tprintAvailableIslands(islands);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (selectedAction == 3) {\n\t\t\t\t\t\t\tgame.goToStore();\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tgame.gameOver(\"You ended the game\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.println(\"Please choose from actions above\");\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tSystem.out.println(INPUT_REQUIREMENTS);\n\t\t\t\t\tscanner.nextLine();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tboolean state = false;\n\t\t\twhile (state == false)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Your current money: \" + game.getMoney()+ \" coins.\");\n\t\t\t\tSystem.out.println(\"You have : \" + game.getRemainingDays() + \" days left.\");\n\t\t\t\tIsland currentLoc = game.getCurrentLocation();\n\t\t\t\tString islandName = currentLoc.getIslandName();\n\t\t\t\tSystem.out.println(\"Your current location is: \" + islandName + \" Island.\" + \"\\n\");\n\t\t\t\tSystem.out.println(\"What do you want to do? \");\n\t\t\t\tSystem.out.println(\"(1) See ship's specification\");\n\t\t\t\tSystem.out.println(\"(2) Go to store in your current location\");\n\t\t\t\tSystem.out.println(\"(3) End Game\");\n\t\t\t\ttry {\n\t\t\t\t\tint selectedAction = scanner.nextInt();\n\t\t\t\t\tif (selectedAction <= 3 && selectedAction > 0) {\n\t\t\t\t\t\tstate = true;\n\t\t\t\t\t\tif (selectedAction == 1) {\n\t\t\t\t\t\t\tgame.seeShipSpec();\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (selectedAction == 2) {\n\t\t\t\t\t\t\tgame.goToStore();\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tgame.gameOver(\"You ended the game\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.println(\"Please choose from actions above\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tSystem.out.println(INPUT_REQUIREMENTS);\n\t\t\t\t\tscanner.nextLine();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void executeState(Controller controller) {\n // controller.getGame().setEndTurn(false);\n\n controller.setUndoCheckFlag(false);\n controller.setGoOn(true);\n controller.getGame().setTargetSelected(null);\n controller.getGame().setTargetInUse(null);\n\n\n controller.getGame().setCurrentPlayer(controller.getNextPlayer(controller.getGame().getCurrentPlayer()));\n controller.saveAll();\n controller.setCanSkip(false);\n Player currentPlayer= controller.getGame().getCurrentPlayer();\n currentPlayer.setHasBeenMoved(false);\n currentPlayer.setHasBuilt(false);\n currentPlayer.setDefeat(false);\n currentPlayer.setInQue(false);\n\n\n Square square [][]=controller.getGame().getField().getSquares();\n\n for(int x=0; x<5;x++)\n for(int y=0; y<5; y++)\n square[x][y].setStart_level(square[x][y].getLevel());\n\n\n for(Worker w: currentPlayer.getWorkers()){\n w.setSquareNotAvailable(null);\n w.setMandatorySquare(null);\n w.resetHystoricPos();\n w.setCanBeMoved(true);\n w.setCanBuild(true);\n }\n\n currentPlayer.getGod().setCantDo(new ArrayList<>());\n\n\n\n }", "public abstract void RunOnGameOpen();", "@Override\n public void execute(IEnvironment env)\n {\n \n }", "public void tick() {\n\t\t//If Statement to make sure this section of the code only runs once using the runOnce variable\n\t\tif(runOnce==1) {\n\t\t\t//Set the game state for street fighter to menu\n\t\t\tGame.gameState=STATE.MENU;\n\t\t\t//Instantiante Game class object\n\t\t\tgame = new Game();\n\t\t\trunOnce=2;\n\t\t} \n\t\t\n\t\t//If Statement to make sure this section of the code only runs once using the runOnce variable\n\t\tif(runOnce==2) {\n\t\t\t//Call the game class tick method\n\t\t\tgame.tick();\n\t\t}\n\t\t\n\t\t\n\t\t//Checks if the user quit the game\n\t\tif(KeyInput.quit==true) {\n\t\t\t//Call the resetVariables method to reset all the important variables \n\t\t\tgame.resetVariables();\n\t\t\trunOnce=1;\n\t\t\t\n\t\t\t//Set the game state to the arcade menu state\n\t\t\tState.setState(handler.getGame().startingState);\n\t\t}\n\t}", "protected void execute() { \t\n// \tboolean toggle=true;\n// \tboolean grab = false;\n// \tif(toggle&&button.get()) {//execute once per button push\n// \t\ttoggle=false;//prevents code from being called again until button is released and pressed again\n// \t\tif(grab){\n// \t\t\tgrab=false;\n// \t\t\tclaw.open();\n// \t\t}else {\n// \t\t\tgrab=true;\n// \t\t\tclaw.close();\n// \t\t}\n// \t}else if(!button.get()) {\n// \t\ttoggle=true;//button has been released\n// \t}\n \tclaw.open();\n }", "public void startup() {\n neutral();\n }", "public void go() {\n try {\n go(pc);\n dp.refresh(pc, stackRegister, compareRegister);\n } catch (Exception e) {\n con.cPrintln(\"Error : \" + e.toString());\n } catch (Error e) {\n con.cPrintln(\"Error : \" + e.getMessage());\n }\n }", "public void execute() {\n\t\tlaunch();\n\t}", "@Override\n public void execute() {\n State state = getState();\n\n if(!state.getCurrentDisplay().equals(\"0\")){\n if(state.getCurrentDisplay().contains(\"-\"))\n state.setCurrentDisplay(state.getCurrentDisplay().replace(\"-\", \"\"));\n else\n state.setCurrentDisplay(\"-\" + state.getCurrentDisplay());\n }\n }", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\tGameGrafic game = null;\r\n\t\t\t\tGameState state = new GameState();\r\n\t\t\t\t// if (opt == 2) {\r\n\t\t\t\t// game = SaveGameOptions.load();\r\n\t\t\t\t// } else {\r\n\t\t\t\tgame = new GameGrafic(state);\r\n\t\t\t\t// }\r\n\r\n\t\t\t\tif (game != null) {\r\n\t\t\t\t\tgame.start();\r\n\t\t\t\t}\r\n\r\n\t\t\t}", "abstract public void updateState();", "void applyToComputationState();", "public void run() \n\t\t{\n\t\t\tboolean exitMenu = false;\n\t\t\tdo \n\t\t\t{\t\t\t\t\t\n\t\t\t\tmenu.display();\n\t\t\t\tint choice = menu.getUserSelection();\n\t\t\t\t// the above method call will return 0 if the user did not\n\t\t\t\t// entered a valid selection in the opportunities given...\n\t\t\t\t// Otherwise, it is valid...\n\t\t\t\tif (choice == 0)\n\t\t\t\t{\n\t\t\t\t\t// here the user can be informed that fail to enter a\n\t\t\t\t\t// valid input after all the opportunities given....\n\t\t\t\t\t// for the moment, just exit....\n\t\t\t\t\texitMenu = true;\n\t\t\t\t}\n\t\t\t\telse if (choice == 1) \n\t\t\t\t{\n\t\t\t\t\t// here goes your code to initiate action associated to\n\t\t\t\t\t// menu option 1....\n\t\t\t\t\tProjectUtils.operationsOnNumbers();\n\t\t\t\t}\n\t\t\t\telse if (choice == 2)\n\t\t\t\t{\n\t\t\t\t\tProjectUtils.operationsOnStrings();\n\t\t\t\t}\n\t\t\t\telse if (choice == 3) \n\t\t\t\t{\n\t\t\t\t\tProjectUtils.showStatistics();\n\t\t\t\t}\n\t\t\t\telse if (choice == 4)\n\t\t\t\t{\n\t\t\t\t\texitMenu = true; \n\t\t\t\t\tProjectUtils.println(\"Exiting now... \\nGoodbye!\");\n\t\t\t\t}\n\t\t\t} while (!exitMenu);\n\t\t}", "public void execute() {\n OBPropertiesProvider.setFriendlyWarnings(true);\n\n // Initialize DAL only in case it is needed: modules have refrence data to be loaded\n CPStandAlone pool = new CPStandAlone(propertiesFile);\n ApplyModuleData[] ds = null;\n try {\n if (!forceRefData) {\n ds = ApplyModuleData.selectClientReferenceModules(pool);\n } else {\n ds = ApplyModuleData.selectAllClientReferenceModules(pool);\n }\n } catch (Exception e) {\n log4j.error(\"Error checking modules with reference data\", e);\n }\n if (ds != null && ds.length > 0) {\n // Initialize DAL and execute\n super.execute();\n } else {\n try {\n if (!forceRefData) {\n ds = ApplyModuleData.selectTranslationModules(pool);\n } else {\n ds = ApplyModuleData.selectAllTranslationModules(pool);\n }\n } catch (Exception e) {\n log4j.error(\"Error checking modules with translation data\", e);\n }\n if (ds != null && ds.length > 0) {\n // Execute without DAL\n doExecute();\n }\n // do not execute if not reference data nor translations present\n }\n }", "public void dispatchHandler(int hash) {\n\n // TODO: This does NOT execute in a state, but executes immediately.\n // fact is that once u switch state, the condition AICondition_STate does not work then.\n // so maybe you need to pass \"previous state\" integer and use this afterwards.\n //setState(hash, 0.1f);\n }", "public void execute(State state) {\n List possiblyRelevantObjectsList;\n //TODO machine learning - for now, no possibilities are relevant\n List relevantObjectsList = new ArrayList();\n state.setStateValue(relevantObjects, relevantObjectsList);\n }", "private void init() {\n StateManager.setState(new MenuState());\n }", "public void run() {\n if (this.gui.getPauseState()) {\n this.gui.goHome();\n }\n }", "public void switchToGlobalContext(){\n currentConstants = null;\n currentVariables = null;\n\n temporaryConstants = null;\n temporaryVariables = null;\n }", "protected void execute() {\n\t\t\n\t}", "@Override\n\tpublic void run() {\n\t\tinitMode();\n\t\t\n\t\tdisplayStartMsg();\n\t\t\n\t\tdisplayMsgBeforeRun();\n\t\tint resultGame = runMode();\n\t\t\n\t\tdisplayEndMsg(resultGame);\n\t}", "public abstract void startup();", "public void initialState() {\n\t\t//empty\n\t}", "void handle(S state, C command);", "public void menu() {\n\t\tstate.menu();\n\t}", "void activate();", "void activate();", "@Override\n protected void execute() {\n\n SwingUtils.invokeLaterEDT(new Runnable() {\n /**\n * Show the application frame using EDT\n */\n @Override\n public void run() {\n logger.debug(\"OImaging.execute() handler called.\");\n\n // reset IRModelManager to fire an IRMODEL changed event to all registered listeners:\n IRModelManager.getInstance().start();\n\n // headless mode:\n final JFrame appFrame = App.getExistingFrame();\n if (appFrame != null) {\n appFrame.setVisible(true);\n }\n }\n });\n }", "@Override\n\tprotected void execute() {\n\t\tRobot.collector.setMawOpen(Robot.oi.getCollectorOpen());\n\t\tRobot.collector.setIntakeSpeed(Robot.oi.getCollectorSpeed());\n\t\tRobot.collector.setWristStageOneRetracted(Robot.oi.getWristStageOneRetracted());\n\t\tRobot.collector.setWristStageTwoRetracted(Robot.oi.getWristStageTwoRetracted());\n\t}", "public void execute() {\n\t\t\n\t}", "public void Activate() {\n state.Activate();\n }", "protected void execute() {\n buttonOpenValue = Robot.m_oi_pilot.joystick.getRawButton(1);\n buttonCloseValue = Robot.m_oi_pilot.joystick.getRawButton(2);\n\n if(buttonOpenValue){\n direction = DoubleSolenoid.Value.kForward;\n }\n else if(buttonCloseValue){\n direction = DoubleSolenoid.Value.kReverse;\n }\n else{\n direction = DoubleSolenoid.Value.kOff;\n }\n //Robot.m_pneumatics.runSolenoid(direction);\n }", "private void updateState() {\n switch (game.getGameState()) {\n case GAME:\n gamePlay();\n break;\n case ONE:\n lostTurnByOne();\n break;\n case READY:\n readyToPlay();\n break;\n case START:\n startGame();\n break;\n case TURN:\n startTurn();\n break;\n case FINISH:\n finishGame();\n break;\n }\n }", "state ask(state statea, state stateb) {\n\n //display options with the gamepad buttons to press\n telemetry.addData(\"A\", statea.name);\n telemetry.addData(\"B\", stateb.name);\n //show what was already added\n displayStates();\n telemetry.update();\n\n //check to make sure it is still in init\n while (!isStopRequested() && !opModeIsActive()) {\n if (gamepad1.a) {\n //loop while held to avoid double press\n while (gamepad1.a)\n idle();\n //return state to add to runList\n return statea;\n } else if (gamepad1.b) {\n //loop while held to avoid double press\n while (gamepad1.b)\n idle();\n //return state to add to runList\n return stateb;\n }\n }\n\n //return state if program was stopped to allow a quick restart\n return statea;\n }", "protected void execute() { \t\n \tif (isLowered != Robot.oi.getOperator().getRawButton(2)) {\n \t\tisLowered = Robot.oi.getOperator().getRawButton(2);\n \t\tif (isLowered)\n \t\t\tRobot.gearSubsystem.getRaiser().set(DoubleSolenoid.Value.kForward);\n \t\telse\n \t\t\tRobot.gearSubsystem.getRaiser().set(DoubleSolenoid.Value.kReverse);\n \t}\n \t\n \tif (Robot.oi.getOperator().getRawButton(11))\n \t\tRobot.gearSubsystem.getIntakeMotor().set(0.75);\n \telse if (Robot.oi.getOperator().getRawButton(12))\n \t\tRobot.gearSubsystem.getIntakeMotor().set(0);\n \telse if (Robot.oi.getOperator().getRawButton(10))\n \t\tRobot.gearSubsystem.getIntakeMotor().set(-0.75);\n }", "public void execute(State s){\n while(bExpression.value(s))\n s1.execute(s);\n }", "void beforeState();", "@Override\r\n\tpublic void config() {\n\t\tinter.setState(inter.getConfig());\r\n\t}", "public void Execute() {\n\n }", "public void execute(){\n\t\t\n\t}", "protected void execute() {\n \toi.updateToggleLift();\n if(oi.toggleOnLift){\n \t// The commands here will occur if the TorqueLift toggle switch\n \t// is activated. All code here will only run after the button\n \t// has been toggled.\n \tif (limitswitch.getReadyState()) { \n \ttorquelift.swap();\n \ttorquelift.moveAllMotors(oi.getLiftSpeed());\n \t} else {\n \t\t// activates when the limit switch is pressed\n \t\ttorquelift.moveAllMotors(oi.getLiftYUpSpeed());\n \t}\n } else {\n \t// The commands here will occur normally, when the TorqueLift is\n \t// not activated.\n \treturn;\n }\n }", "protected void execute() {\n\t\ttimer.start();\n\t\t\n\t\tif(switchSide) {\n\t\t\tswitch(state) {\n\t\t\tcase 0:\n\t\t\t\tdriveToSwitch.start();\n\t\t\t\tstate++;\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tif(!driveToSwitch.isRunning()) {\n\t\t\t\t\tturnTowardsSwitchOrScale.start();\n\t\t\t\t\ttimer.reset();\n\t\t\t\t\tstate++;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tif(!turnTowardsSwitchOrScale.isRunning() || timer.get() > 1.5) {\n\t\t\t\t\tturnTowardsSwitchOrScale.cancel();\n\t\t\t\t\tapproachSwitch.start();\n\t\t\t\t\tstate++;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tif(!approachSwitch.isRunning()) {\n\t\t\t\t\t//launchCubeSwitch.start();\n\t\t\t\t\tstate++;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tSystem.out.println(\"Unexpected state in RightScaleOrSwitch.java State: \" + state);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\telse if(scaleSide) {\n\t\t\tswitch(state) {\n\t\t\tcase 0:\n\t\t\t\tdriveToScale.start();\n\t\t\t\tstate++;\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tif(!driveToScale.isRunning()) {\n\t\t\t\t\ttimer.reset();\n\t\t\t\t\tturnTowardsSwitchOrScale.start();\n\t\t\t\t\tstate++;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tif(!turnTowardsSwitchOrScale.isRunning() || timer.get() > 1.5) {\n\t\t\t\t\tturnTowardsSwitchOrScale.cancel();\n\t\t\t\t\tapproachScale.start();\n\t\t\t\t\tstate++;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tif(!approachScale.isRunning()) {\n\t\t\t\t\t//launchCubeScale.start();\n\t\t\t\t\tstate++;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tSystem.out.println(\"Unexpected state in RightScaleOrSwitch.java State: \" + state);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tcrossLine.start();\n\t\t}\n\t}", "void state_INIT(){\r\n eccState = INDEX_INIT;\r\n alg_INIT();\r\n INITO.serviceEvent(this);\r\n state_START();\r\n}", "protected void execute() {\n\t\tif(RobotMap.gearDoorExtended)\n\t\t\tgearSubsystem.retractPiston();\n\t\telse\n\t\t\tif(Robot.oi.getRightStick().getTrigger() || auton)\n\t\t\t\tgearSubsystem.extendPiston();\n\t\t\n\t}", "public void run() {\n if (!this.DATA_STORE.isShutdown()) {\n switch(clockAction) {\n case \"plusHour\":\n do {\n DATA_STORE.setHourValue(DATA_STORE.getHourValue() + 1);\n defaultStatementsInCase();\n } while(DATA_STORE.isButtonPressed());\n break;\n case \"plusMinute\":\n do {\n DATA_STORE.setMinuteValue(DATA_STORE.getMinuteValue() + 1);\n defaultStatementsInCase();\n } while(DATA_STORE.isButtonPressed());\n break;\n case \"plusSecond\":\n do {\n DATA_STORE.setSecondValue(DATA_STORE.getSecondValue() + 1);\n defaultStatementsInCase();\n } while(DATA_STORE.isButtonPressed());\n break;\n case \"minusHour\":\n do {\n DATA_STORE.setHourValue(DATA_STORE.getHourValue() - 1);\n defaultStatementsInCase();\n } while(DATA_STORE.isButtonPressed());\n break;\n case \"minusMinute\":\n do {\n DATA_STORE.setMinuteValue(DATA_STORE.getMinuteValue() - 1);\n defaultStatementsInCase();\n } while(DATA_STORE.isButtonPressed());\n break;\n case \"minusSecond\":\n do {\n DATA_STORE.setSecondValue(DATA_STORE.getSecondValue() - 1);\n defaultStatementsInCase();\n } while(DATA_STORE.isButtonPressed());\n }\n }\n }", "public void execute() {\n execute0();\n }", "@Override\n \tpublic void activated(ILaunchConfigurationWorkingCopy workingCopy) {\n \t\tfInterpreterBlock.refresh();\n \t}", "public GameState(){\n this.gameResults = \"\";\n initVars();\n this.theme = DEFAULT_THEME;\n this.board = new Board(DEFAULT_BOARD);\n createSetOfPlayers(DEFAULT_PLAYERS, DEFAULT_AUTOPLAYER, DEFAULT_AUTOMODE);\n }", "public void execute() {\n\n\t}", "@Override\n public abstract void runOpMode();", "@Override\n public void run() {\n setPointActions(host.getUnlockedStages());\n }", "public void execute() {\n if (hasError())\n return;\n\n runLocally();\n runRemotely();\n }", "public void execute() {\n\t\t\r\n\t}", "public void execute() {\n\t\t\r\n\t}", "public void execute() {\n\t\t\r\n\t}", "void state_START(){\r\n eccState = INDEX_START;\r\n}", "protected abstract void preRun();", "protected void execute()\n\t{\n\t}", "protected void execute() {\n \tif (isIntaking) {\n \t\tRobot.conveyor.forward();\n \t} else {\n \t\tRobot.conveyor.backward();\n \t}\n }", "public void displayCurrentState(State game);", "protected void execute() {\n\t}" ]
[ "0.686934", "0.65567863", "0.6273406", "0.622673", "0.61267215", "0.60598063", "0.603386", "0.60096633", "0.5887221", "0.58734816", "0.57784057", "0.5754299", "0.57429844", "0.57142633", "0.5690416", "0.5680221", "0.56761086", "0.56635916", "0.5663052", "0.56517607", "0.5629864", "0.5622822", "0.56210303", "0.5620821", "0.5616875", "0.56046194", "0.5598527", "0.5590944", "0.55676055", "0.5549948", "0.55462724", "0.55451065", "0.55346304", "0.55220157", "0.551159", "0.55060315", "0.54860234", "0.5483472", "0.5479063", "0.5478938", "0.5475683", "0.547354", "0.5469573", "0.5467616", "0.54620606", "0.54602456", "0.5454941", "0.5451992", "0.5449382", "0.54425097", "0.5439916", "0.5433888", "0.54280853", "0.5425743", "0.5422984", "0.5415698", "0.5415278", "0.5412218", "0.5397924", "0.53944176", "0.53936094", "0.5386471", "0.53862005", "0.53765905", "0.53760666", "0.53760666", "0.53740036", "0.53719854", "0.53630835", "0.53630245", "0.53582674", "0.53556687", "0.5355403", "0.535467", "0.5354518", "0.5344334", "0.53393143", "0.5338989", "0.5336549", "0.5329594", "0.531399", "0.5311095", "0.5309142", "0.53068113", "0.5306358", "0.53012395", "0.53007406", "0.528971", "0.5287144", "0.52844834", "0.5280804", "0.52776814", "0.52776814", "0.52776814", "0.52756745", "0.52738494", "0.52728057", "0.5272253", "0.5263625", "0.52626514" ]
0.6053428
6
/ Given two strings, return true if either of the strings appears at the very end of the other string, ignoring upper/lower case differences (in other words, the computation should not be "case sensitive"). Note: str.toLowerCase() returns the lowercase version of a string.
public static boolean endOther(String a, String b) { String larger, smaller; if (a.length() > b.length()){ larger = a; smaller = b; } else{ larger = b; smaller = a; } larger = larger.toLowerCase(); smaller = smaller.toLowerCase(); int i = larger.length() - smaller.length(); return ((larger.substring(i, larger.length())).equals(smaller)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static String twoStrings(String s1, String s2){\n // Complete this function\n String letters = \"abcdefghijklmnopqrstuvwxyz\";\n for(int i=0;i<letters.length();i++){\n char lettersChar = letters.charAt(i); \n if(s1.indexOf(lettersChar) > -1 && s2.indexOf(lettersChar) > -1){\n return \"YES\";\n }\n }\n \n return \"NO\";\n }", "public boolean compare2StringsIgnoringCasses(String s1, String s2)\r\n {\r\n String a=s1.toLowerCase();\r\n String b=s2.toLowerCase();\r\n if(a.length()!= b.length())\r\n {\r\n return false;\r\n }\r\n else\r\n {\r\n for(int i=0; i<a.length(); i++)\r\n {\r\n if(!comparet2Chars(a.charAt(i),b.charAt(i)))\r\n {\r\n return false;\r\n }\r\n }\r\n }\r\n return true;\r\n }", "private boolean isIn(String s1, String s2) {\n\t for(int i = 0; i <= s2.length() - s1.length(); i++) {\n\t \n\t if(s2.substring(i, i+s1.length()).equals(s1) ) {\n\t // System.out.println(\"+ \" + s2.substring(i, i+s1.length()) + \" \" + s1);\n\t return true;\n\t }\n\t }\n\t return false;\n\t}", "public boolean isARotation(String s1, String s2) {\n\t\tif(s1.length() != s2.length()) return false;\n\t\t\n\t\tStringBuilder stb = new StringBuilder();\n\t\tint i = 0;\n\t\twhile(i < s1.length()) {\n\t\t\tif(s1.charAt(i) == s1.charAt(i)) {\n\t\t\t\treturn subString(s1.substring(0, i), s2) \n\t\t\t\t\t\t&& stb.toString().compareTo(s2.substring(i, s2.length()-1)) == 0;\n\t\t\t}\n\t\t\ti++;\n\t\t\tstb.append(s1.charAt(i));\n\t\t}\n\t\treturn false;\n\t}", "private boolean oneCharOff( String word1, String word2 )\n {\n if( word1.length( ) != word2.length( ) )\n return false;\n int diffs = 0;\n for( int i = 0; i < word1.length( ); i++ )\n if( word1.charAt( i ) != word2.charAt( i ) )\n if( ++diffs > 1 )\n return false;\n return diffs == 1;\n }", "static Boolean isOneAway(String s1, String s2) {\r\n\t\tboolean results = false;\r\n\t\tchar[] chars1 = s1.toCharArray();\r\n\t\tchar[] chars2 = s2.toCharArray();\r\n\t\tif(s1.equals(s2)) {\r\n\t\t\tresults = true;\r\n\t\t}else if(chars1.length==chars2.length) {\r\n\t\t\tint mismatches = 0;\r\n\t\t\tfor(int i = 0; i < chars1.length; i++ ) {\r\n\t\t\t\tif(chars1[i]!=chars2[i]) {\r\n\t\t\t\t\tmismatches++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(mismatches <= 1) results = true;\r\n\t\t}else if(Math.abs(s1.length() - s2.length())==1) {\r\n\t\t\tif(s1.length() > s2.length()) {\r\n\t\t\t\tchars1 = s1.toCharArray();\r\n\t\t\t\tchars2 = s2.toCharArray();\r\n\t\t\t}else {\r\n\t\t\t\tchars1 = s2.toCharArray();\r\n\t\t\t\tchars2 = s1.toCharArray();\r\n\t\t\t}\r\n\t\t\tint mismatches = 0;\r\n\t\t\tint cursor1 = 0;\r\n\t\t\tint cursor2 = 0;\r\n\t\t\twhile((cursor1 < chars1.length) && (cursor2 < chars2.length)) {\r\n\t\t\t\tif(chars1[cursor1] != chars2[cursor2]) {\r\n\t\t\t\t\tmismatches++;\r\n\t\t\t\t\tcursor1++;\r\n\t\t\t\t}else {\r\n\t\t\t\t\tcursor1++;\r\n\t\t\t\t\tcursor2++;\r\n\t\t\t\t}\t\t\t\t \r\n\t\t\t}\r\n\t\t\tif(mismatches <= 1) results = true;\r\n\t\t}else {\r\n\t\t\tresults = false;\r\n\t\t}\r\n\t\r\n\t\treturn results;\r\n\t}", "public boolean checkSam(String stringA, String stringB) {\r\n\t\tString[] s1 = stringA.split(\" \");\r\n\t\tString[] s2 = stringB.split(\" \");\r\n\t\tif(s1.length == s2.length){\r\n\t\t\tint count = 0;\r\n\t\t\tfor (String sB : s2) {\r\n\t\t\t\tfor (String sA : s1) {\r\n\t\t\t\t\tif(sA.equals(sB)){\r\n\t\t\t\t\t\tcount++;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(count == s2.length){\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n }", "private static boolean diffOne(String s1, String s2) {\n int count = 0;\n for (int i = 0; i < s1.length(); i++) {\n if (s1.charAt(i) != s2.charAt(i)) count++;\n if (count > 1) return false;\n }\n return count == 1;\n }", "static String abbreviation(String a, String b) {\r\n \r\n HashSet<Character> aSet = new HashSet<>();\r\n\r\n for(int i = 0 ; i< a.length() ; i++){\r\n aSet.add(a.charAt(i));\r\n }\r\n \r\n for(int i = 0 ; i < b.length() ; i++){\r\n \r\n if(aSet.contains(b.charAt(i)) ){\r\n aSet.remove(b.charAt(i));\r\n }\r\n else if(aSet.contains(Character.toLowerCase(b.charAt(i)))){\r\n aSet.remove(Character.toLowerCase(b.charAt(i)));\r\n }\r\n else{\r\n return \"NO\";\r\n }\r\n \r\n\r\n }\r\n\r\n Iterator<Character> it = aSet.iterator();\r\n while(it.hasNext()){\r\n\r\n if(!isLowerCase(it.next())){\r\n return \"NO\";\r\n }\r\n }\r\n return \"YES\";\r\n \r\n /*\r\n String regex = \"\";\r\n for(int i = 0 ; i < b.length() ; i++){\r\n regex += \"[a-z]*\" + \"[\" + b.charAt(i) + \"|\" + Character.toLowerCase(b.charAt(i)) + \"]\";\r\n }\r\n regex += \"[a-z]*\";\r\n Pattern ptrn = Pattern.compile(regex);\r\n Matcher matcher = ptrn.matcher(a);\r\n\r\n return matcher.matches() ? \"YES\" : \"NO\";\r\n*/\r\n \r\n /*\r\n int aPtr = 0;\r\n\r\n //b e F g H\r\n // E F H\r\n for(int i = 0 ; i < b.length() ; i++){\r\n\r\n if(aPtr + 1 >= a.length())\r\n return \"NO\";\r\n //if(aPtr + 1 == a.length() && i + 1 == b.length())\r\n // return \"YES\";\r\n\r\n System.out.println(b.charAt(i) + \" \" + a.charAt(aPtr));\r\n if(b.charAt(i) == a.charAt(aPtr)){\r\n aPtr++;\r\n }else if(b.charAt(i) == Character.toUpperCase(a.charAt(aPtr)) && isLowerCase(a.charAt(aPtr))){\r\n aPtr++;\r\n\r\n } else if(b.charAt(i) != a.charAt(aPtr) && !isLowerCase(a.charAt(aPtr))){\r\n return \"NO\";\r\n }else if(b.charAt(i) != a.charAt(aPtr) && isLowerCase(a.charAt(aPtr))){\r\n aPtr++;\r\n i--;\r\n }\r\n\r\n\r\n\r\n }\r\n for(int i = aPtr ; i < a.length() ; i++){\r\n if(!isLowerCase(a.charAt(i)))\r\n return \"NO\";\r\n }\r\n\r\n return \"YES\";\r\n */\r\n\r\n }", "public static boolean checkInclusion(String s1, String s2) {\n\n if (s1.length() > s2.length()) {\n return false;\n }\n\n // Assume the input strings contain only lower case letters [a-z] <-> [97-123] in ASCII\n int[] aux1 = generateFrequencyArray(s1);\n\n for (int i = 0; i <= s2.length() - s1.length(); i++) {\n String temp = s2.substring(i, i + s1.length());\n int[] aux = generateFrequencyArray(temp);\n if (Arrays.equals(aux1, aux)) {\n return true;\n }\n }\n return false;\n }", "private boolean containedIn(String a, String b){\n if(a.length() > b.length())return false;\n int aInd = 0;\n int bInd = 0;\n\n while(bInd < b.length()){\n if(aInd >= a.length())return true;\n char bChar = b.charAt(bInd);\n char aChar = a.charAt(aInd);\n if(bChar == aChar){\n aInd++;\n }\n bInd++;\n }\n return false;\n }", "public boolean endsWithSpecificString(String str, String str2)\r\n{\r\n if(str.length()== str2.length())\r\n {\r\n return compare2Strings(str,str2);\r\n }\r\n else if(str.length()> str2.length())\r\n {\r\n return false;\r\n }\r\n else\r\n {\r\n return str.endsWith(str2);\r\n }\r\n}", "public static boolean isOneAway(String string1, String string2) {\n int lengthDifference = Math.abs(string1.length() - string2.length());\n if (lengthDifference > 1) {\n return false;\n }\n\n String shorterString;\n String longerString;\n\n if (string1.length() < string2.length()) {\n shorterString = string1;\n longerString = string2;\n } else {\n shorterString = string2;\n longerString = string1;\n }\n\n int index1 = 0;\n int index2 = 0;\n\n boolean foundDifference = false;\n\n while (index1 < shorterString.length() && index2 < longerString.length()) {\n if (shorterString.charAt(index1) != longerString.charAt(index2)) {\n if (foundDifference) {\n return false;\n }\n\n foundDifference = true;\n\n if (shorterString.length() == longerString.length()) {\n // Replace edit\n index1++;\n } // Else -> insert or delete edit -> do not move index 1\n } else {\n index1++;\n }\n\n index2++;\n }\n\n return true;\n }", "public boolean checkPalindromeFormation(String a, String b) {\n int n = a.length();\n return findCommonSubstring(a.toCharArray(), b.toCharArray(), 0, n - 1) ||\n findCommonSubstring(b.toCharArray(), a.toCharArray(), 0, n - 1);\n }", "private boolean translateWith2ExchangedChars(String input1, String input2) {\n if (StringUtils.isBlank(input1) || StringUtils.isBlank(input2) || input1.length() != input2.length()) {\n return false;\n }\n if (input1.equals(input2)) {\n for (int i = 0; i < input1.length(); i++) {\n char current = input1.charAt(i);\n if (input1.lastIndexOf(current) != i) {\n return true;\n }\n }\n return false;\n } else {\n int first = -1, second = -1;\n for (int i = 0; i < input1.length(); i++) {\n if (input1.charAt(i) != input2.charAt(i)) {\n if (first == -1) {\n first = i;\n } else if (second == -1) {\n second = i;\n } else {\n return false;\n }\n }\n }\n return input1.charAt(first) == input2.charAt(second)\n && input1.charAt(second) == input2.charAt(first);\n }\n }", "@Override\r\n\tpublic boolean matches(String first, String last) {\n\t\treturn false;\r\n\t}", "public static boolean substring(String first,String second)\r\n {\r\n return second.toLowerCase().contains(first.toLowerCase());\r\n }", "public static void srofanother(String s1,String s2){\r\n\t\tString s3=s2+s2;\r\n\t\tSystem.out.println(s3);\r\n\t\tif(s3.contains(s1)){\r\n\t\t\tSystem.out.println(\"reverseof another\");\r\n\t\t}else\r\n\t\t\tSystem.out.println(\"not reverse\");\r\n\t}", "public static boolean stringRotation(String str1, String str2) {\n String temp = str2 + str2;\n return temp.contains(str1);\n }", "public static boolean stringIntersect(String a, String b, int len) {\n\t\tif(len == 0) return true;\n\t\tSet<String> first = new HashSet<String>();\n\t\tSet<String> second = new HashSet<String>();\n\t\tfor(int i = 0; i < a.length() - len + 1; i++){\n\t\t\tfirst.add(a.substring(i, i + len));\n\t\t}\n\t\tfor(int i = 0; i < b.length() - len + 1; i++){\n\t\t\tsecond.add(b.substring(i, i + len));\n\t\t}\n\t\tboolean intersects = !Collections.disjoint(first, second);\n\t\treturn intersects;\n\t}", "public static boolean validate(String str1, String str2 ) {\n return (str2 + str2).contains(str1);\n }", "public static int compareIgnoreCase(String firstString, String secondString){\n\t\tif(firstString.equalsIgnoreCase(secondString)){\n\t\t\treturn 0;\n\t\t}\n\t\tchar[] firstStringCharArray = firstString.toLowerCase().toCharArray();\n\t\tchar[] secondStringCharArray = secondString.toLowerCase().toCharArray();\n\t\tif(firstStringCharArray.length > 0 && !HaikuGenerator.isAWordCharacter(firstStringCharArray[0])\n\t\t\t\t&& secondStringCharArray.length > 0 && HaikuGenerator.isAWordCharacter(secondStringCharArray[0])){\n\t\t\t// First string starts with a non-word character (such as a number) while the second starts with a word-character (such as 'a')\n\t\t\t// -> the second string should be before the first string\n\t\t\treturn -1;\n\t\t}\n\t\tif(firstStringCharArray.length > 0 && HaikuGenerator.isAWordCharacter(firstStringCharArray[0])\n\t\t\t\t&& secondStringCharArray.length > 0 && !HaikuGenerator.isAWordCharacter(secondStringCharArray[0])){\n\t\t\t// First string starts with a word-character (such as 'a') while the second starts with a non-word character (such as a number)\n\t\t\t// -> the first string should be before the second string\n\t\t\treturn 1;\n\t\t}\n\t\tint i = 0;\n\t\twhile(true){\n\t\t\tif(firstStringCharArray[i] < secondStringCharArray[i]){\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t\tif(firstStringCharArray[i] > secondStringCharArray[i]){\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\tif(firstStringCharArray.length == i+1){\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t\tif(secondStringCharArray.length == i+1){\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t}", "public static boolean oneAway(String str1, String str2) {\n\t\t\n\t\t// If lengths make impossible to be one away\n\t\tif (Math.abs(str1.length()-str2.length()) > 1) return false;\n\t\t\n\t\t// if length of one of the strings is 0 (meaning other is 1 and\n\t\t// there by statisfies the one away add/delete edits\n\t\tif(str1.length() == 0 || str2.length() == 0) return true;\n\t\t\n\t\t// If strings are identical, return true\n\t\tif (str1.equals(str2)) return true;\n\t\t\n\t\t// Else determine if these strings are one away\n\t\t\n\t\t// check for one away by change: O(n)\n\t\tif(str1.length() == str2.length()) {\n\t\t\tint numDiff = 0;\n\t\t\t// for each character in string 1\n\t\t\tfor (int i = 0; i < str1.length(); i++) {\n\t\t\t\t// check for equality by index\n\t\t\t\tif (str1.charAt(i) != str2.charAt(i)) ++numDiff;\n\t\t\t\t// If exceeded 1 difference, return false\n\t\t\t\tif (numDiff > 1) return false;\n\t\t\t}\n\t\t\t// There was 1 difference, strings are off by one\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\t// check for off by one by delete: O(n)\n\t\telse if(str1.length() > str2.length()) {\n\t\t\tint p2 = 0; // pointer for string 2\n\t\t\tint numDiff = 0;\n\t\t\t\n\t\t\tfor (int i = 0; i < str1.length(); i++) {\n\t\t\t\tif (str2.charAt(p2) != str1.charAt(i)) {\n\t\t\t\t\t++numDiff;\n\t\t\t\t} else {\n\t\t\t\t\t++p2;\n\t\t\t\t}\n\t\t\t\t// If exceeded 1 difference, return false\n\t\t\t\tif (numDiff > 1) return false;\n\t\t\t}\n\t\t\t// There was 1 difference, strings are off by one\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\t// check for off by one by addition O(n)\n\t\telse {\n\t\t\tint p1 = 0; // pointer for string 1\n\t\t\tint numDiff = 0;\n\t\t\tfor (int i = 0; i < str2.length(); i++) {\n\t\t\t\tif (str1.charAt(p1) != str2.charAt(i)) {\n\t\t\t\t\t++numDiff;\n\t\t\t\t} else {\n\t\t\t\t\t++p1;\n\t\t\t\t}\n\t\t\t\t// If exceeded 1 difference, return false\n\t\t\t\tif (numDiff > 1) return false;\n\t\t\t}\n\t\t\t// There was 1 difference, strings are off by one\n\t\t\treturn true;\n\t\t}\n\t\t\n\t}", "boolean sameName(String a, String b){\n\t\tif(a.length()!=b.length()){\r\n\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tfor(int i=0;i<a.length();i++){\r\n\t\t\tif(a.charAt(i)!=b.charAt(i)){\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tString str1 = \"snow\";\n\t\tString str2 = \"wons\";\n\t\tint count = 0;\t\t\n\t\tfor(int i=0; i<str1.length() && i<str2.length(); i++){\n\t\t\tif(str1.toLowerCase().charAt(i) != str2.toLowerCase().charAt(i)){\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tif(count >1) System.out.println(\"fasle==>>\"+count);\n\t\telse System.out.println(\"true\");\n\t}", "public static boolean replace(String s1, String s2){\n\t\tboolean flag = false;\n\t\tfor (int i = 0; i < s1.length(); i++){\n\t\t\tif (s1.charAt(i) != s2.charAt(i)){\n\t\t\t\tif (flag){\n\t\t\t\t\treturn false;\n\t\t\t\t}else{\n\t\t\t\t\tflag = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public static boolean stringIntersect(String a, String b, int len) {\n\t\tHashSet<String> mySet = new HashSet<String>();\n\t\tfor (int i=0; i+len <= a.length(); i++){\n\t\t\tmySet.add(a.substring(i, i+len));\n\t\t}\n\t\tfor (int i=0; i+len <= b.length(); i++){\n\t\t\tif (mySet.contains(b.substring(i, i+len))){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false; // TO DO ADD YOUR CODE HERE\n\t}", "public static boolean is_rotation_of_another_string(String word1, String word2) {\n\n String s3 = word1 + word1;\n\n if (s3.contains(word2))\n return true;\n else\n return false;\n }", "public int stringMatch(String a, String b) {\n int result = 0;\n int end = (a.length()<=b.length()? a.length():b.length());\n for (int i = 0; i <end-1 ; i++){\n if (a.substring(i, i + 2).equals(b.substring(i, i + 2))) {\n result++;\n }\n }\n return result;\n }", "private boolean alphabCheck(String first, String second) {\n\t\tif (first.length() == 1 || second.length() == 1) {\n\t\t\tif (first.compareTo(second) < 0) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tif (first.substring(0, 1).compareTo(second.substring(0,1)) < 0) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (first.substring(0, 1).compareTo(second.substring(0,1)) == 0) {\n\t\t\t\t\treturn alphabCheck(first.substring(1, first.length()),second.substring(1,second.length()));\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "private static boolean wordHasAllExceptFirstInCommon(String word1, String word2) {\n int charsInCommon = 0;\n\n char[] w1 = word1.toCharArray();\n char[] w2 = word2.toCharArray();\n\n for (int i = 1; i < w1.length; i++) {\n for (int j = 0; j < w2.length; j++) {\n if (w1[i] == w2[j]) {\n charsInCommon++;\n w2[j] = '\\0'; // w2[j] som nullchar (använd)\n break;\n }\n }\n }\n return (charsInCommon == w1.length - 1);\n }", "private boolean equals(String str1, String str2)\n\t{\n\t\tif (str1.length() != str2.length()) // Easiest to check is if they are the same to potentially avoid running remaining code\n\t\t\treturn false;\n\t\tfor(int i = 0; i < str1.length(); i++)\n\t\t{\n\t\t\tif (str1.charAt(i) != str2.charAt(i)) // If at any point one char is not equal to the same char at a given index then they are disimilar\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true; // If no discrepancies are found then the strings must be equal\n\t}", "private boolean startsWithIgnoreCase(String str1, String str2) {\n return str1 != null && str2 != null && str1.toUpperCase().startsWith(str2.toUpperCase());\n }", "public boolean isOneLetterOff(String word1, String word2){\n \tif(word1.equals(word2)){ //all letters same\n \t\treturn false;\n \t}\n \tif(word1.substring(1).equals(word2.substring(1))){\t//all letters same except 1st\n\t\t\treturn true;\n\t\t}\n\t\tif(word1.substring(0,1).equals(word2.substring(0, 1)) && word1.substring(2).equals(word2.substring(2))){ //all letters same except 2nd\n\t\t\treturn true;\n\t\t}\n\t\tif(word1.substring(0,2).equals(word2.substring(0,2)) && word1.substring(3).equals(word2.substring(3))){\t//all letters same except 3rd\n\t\t\treturn true;\n\t\t}\n\t\tif(word1.substring(0,3).equals(word2.substring(0,3)) && word1.substring(4).equals(word2.substring(4))){\t//all letters same except 4th\n\t\t\treturn true;\n\t\t}\n\t\tif(word1.substring(0,4).equals(word2.substring(0,4))){\t//all letters same except 5th\n\t\t\treturn true;\n\t\t}\n \treturn false;\n }", "public static boolean isNotEqualIgnoreCase(String str1, String str2) {\n\treturn (null == str1 && null != str2) || (null != str1 && null == str2)\n\t\t|| (null != str1 && null != str2 && !str1.toUpperCase().trim().equals(str2.toUpperCase().trim()));\n }", "private Boolean solution(String s1, String s2){\n\t\t\n\t\tint k = s1.length();\n\t\tchar[] input1 = s1.toCharArray();\n\t\t\n\t\tint m =0 ,count=0;\n\t\t\n\t\twhile(m < s2.length()-1){\n\t\t\t\n\t\tchar[] temp1 = s2.substring(m, m+k).toCharArray();\n\t\t\t\n\t\t\tfor(int i=0; i<s1.length(); i++){\n\t\t\t\tfor(int j=0; j<s1.length(); j++){\n\t\t\t\t\tif(input1[i] == temp1[j] ){\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\t\n\t\t\t}\n\t\t\tif(count == s1.length())\n\t\t\t\treturn true;\n\t\tcount =0;\n\t\tm++;\n\t\t}\n\t\treturn false;\n\t\t\n\t}", "public static boolean isRotation(String str1, String str2) {\n if ((str1.length() != str2.length()) || str1.isEmpty() || str2.isEmpty()\n || str1 == null || str2 == null) {\n return false;\n }\n return isSubString(str1, str2 + str2);\n // return (str2 + str2).contains(str1);\n // return ((str2 + str2).indexOf(str1) > -1);\n }", "static String twoStrings(String s1, String s2) {\n Hashtable<Character, Integer> shortDict = null;\n Hashtable<Character, Integer> longDict = null;\n \n boolean isCommonSubset = false;\n \n String longerString = s1.length() >= s2.length() ? s1 : s2;\n String shorterString = s1.length() < s2.length() ? s1 : s2;\n \n longDict = prepareHashtable(longerString);\n shortDict = prepareHashtable(shorterString);\n \n for (char ch: shortDict.keySet()) {\n if (longDict.containsKey(ch)) {\n isCommonSubset = true;\n break;\n }\n }\n \n return isCommonSubset ? \"YES\" : \"NO\";\n }", "static String doit(final String string1, final String string2) {\n String shorterString; // a\n String longerString; // b\n if (string1.length() > string2.length()) {\n shorterString = string2;\n longerString = string1;\n } else {\n longerString = string2;\n shorterString = string1;\n }\n String r = \"\";\n\n for (int i = 0; i < shorterString.length(); i++) {\n for (int j = shorterString.length() - i; j > 0; j--) {\n for (int k = 0; k < longerString.length() - j; k++) {\n if (shorterString.regionMatches(i, longerString, k, j) && j > r.length()) {\n r = shorterString.substring(i, i + j);\n }\n }\n } // Ah yeah\n }\n return r;\n\n }", "private boolean m81840a(String str, String str2) {\n boolean isEmpty = TextUtils.isEmpty(str);\n boolean isEmpty2 = TextUtils.isEmpty(str2);\n if (isEmpty && isEmpty2) {\n return true;\n }\n if (!isEmpty && isEmpty2) {\n return false;\n }\n if (!isEmpty || isEmpty2) {\n return str.equals(str2);\n }\n return false;\n }", "public boolean compareStrings(String A, String B) {\n if(A.length()<B.length())\n \treturn false;\n char[] a=A.toCharArray();\n char[] b=B.toCharArray();\n ArrayList<Character> aa=new ArrayList<>();\n ArrayList<Character> bb=new ArrayList<>();\n for(int i=0;i<a.length;i++){\n \taa.add(a[i]);\n }\n for(int i=0;i<b.length;i++){\n \tbb.add(b[i]);\n }\n while(bb.size()!=0){\n \tint flag=0;\n \tfor(int i=0;i<aa.size();i++){\n \t\tif(bb.get(0).equals(aa.get(i))){\n \t\t\tbb.remove(0);\n \t\t\taa.remove(i);\n \t\t\tSystem.out.println(bb);\n \t\t\tSystem.out.println(aa);\n \t\t\tflag=1;\n \t\t\tbreak;\n \t\t}\n \t}\n \tif (flag==0)\n \t\treturn false;\n }\n return true; \n }", "static String twoStrings(String s1, String s2) {\n String bigstr = s1.length() > s2.length() ? s1 : s2;\n String smallstr = s1.length() > s2.length() ? s2 : s1;\n int bigstrSize = bigstr.length();\n int smallstrSize = smallstr.length();\n\n boolean string_check[] = new boolean[1000];\n\n for (int i = 0; i < bigstrSize; i++) {\n string_check[bigstr.charAt(i) - 'A'] = true;\n }\n // if at least one char is present in boolean array\n for (int i = 0; i < smallstrSize; i++) {\n if (string_check[smallstr.charAt(i) - 'A'] == true) {\n return \"YES\";\n }\n }\n return \"NO\";\n }", "public boolean compare_same(String x, String y) {\n\t\tint fuzzy = 0;\n\t\tif (x.length() != y.length()) return false;\n\t\tfor (int i = 0, j = 0; i<x.length() && j<y.length();) {\n\t\t\tif (i>0 && x.charAt(i-1)=='_' && '0'<=x.charAt(i) && x.charAt(i)<='9') {\n\t\t\t\twhile (i<x.length() && '0'<=x.charAt(i) && x.charAt(i)<='9') i++;\n\t\t\t}\n\t\t\tif (j>0 && y.charAt(j-1)=='_' && '0'<=y.charAt(j) && y.charAt(j)<='9') {\n\t\t\t\twhile (j<y.length() && '0'<=y.charAt(j) && y.charAt(j)<='9') j++;\n\t\t\t}\n\t\t\tif (i<x.length() && j<y.length() && x.charAt(i) != y.charAt(j)) {\t\t\t\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\ti++; j++;\n\t\t}\n\t\treturn true;\n\t}", "private boolean myContains(String str2, String search2) {\n if (search2.length() == 0) {\n return true;\n }\n int k = 0;\n int f = 0;\n String str = str2.toLowerCase();\n String search = search2.toLowerCase();\n for (int i = 0; i < str.length(); i++) {\n if (str.charAt(i) == search.charAt(k)) {\n k += 1;\n f += 1;\n if (f == search.length()) {\n return true;\n }\n } else {\n k = 0;\n f = 0;\n }\n }\n return false;\n }", "private static boolean letterDifferByOne(String word1, String word2) {\n if (word1.length() != word2.length()) {\n return false;\n }\n\n int differenceCount = 0;\n for (int i = 0; i < word1.length(); i++) {\n if (word1.charAt(i) != word2.charAt(i)) {\n differenceCount++;\n }\n }\n return (differenceCount == 1);\n }", "public boolean checkInclusion(String s1, String s2) {\n int left = 0;\n int right = 0;\n int count = s1.length();\n int len = s2.length();\n int[] map = new int[256];\n \n // fill the map\n for (int i = 0; i < s1.length(); i++)\n map[s1.charAt(i)]++;\n \n while (right < len) {\n // if contains a character from s1, decrement count\n if (map[s2.charAt(right)] >= 1)\n count--;\n \n // decrase used value and move right\n map[s2.charAt(right)]--;\n right++;\n \n // check for answer\n if (count == 0)\n return true;\n \n // if boundary is crossed, move left pointer\n if (right - left == s1.length()) {\n // restoration\n if (map[s2.charAt(left)] >= 0)\n count++;\n map[s2.charAt(left)]++;\n \n left++;\n }\n \n }\n \n return false;\n }", "public static boolean isEqual(String s1, String s2) {\r\tif(s1.length() != s2.length()){\r\t return false;\r\t}\r\tfor(int i = 0; i< s1.length();i++){\r\t if (s1.charAt(i) != s2.charAt(i)){\r\t\treturn false;\r\t }\r\t}\r\treturn true;\r }", "private static boolean checkIfCanBreak( String s1, String s2 ) {\n\n if (s1.length() != s2.length())\n return false;\n\n Map<Character, Integer> map = new HashMap<>();\n for (Character ch : s2.toCharArray()) {\n map.put(ch, map.getOrDefault(ch, 0) + 1);\n }\n\n for (Character ch : s1.toCharArray()) {\n\n char c = ch;\n while ((int) (c) <= 122 && !map.containsKey(c)) {\n c++;\n }\n\n if (map.containsKey(c)) {\n map.put(c, map.getOrDefault(c, 0) - 1);\n\n if (map.get(c) <= 0)\n map.remove(c);\n }\n }\n\n return map.size() == 0;\n }", "public boolean match(String string1, String string2) {\n\t\tMap<Character, Character>hash_map = new HashMap<Character, Character>();\n\n\t\t//If string length is not same, then it will return false\n\t\tif(string1.length()>string2.length() || string1.length()<string2.length()) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tfor(int i=0; i<string1.length(); i++) {\t\n\t\t\tif(!hash_map.containsKey(string1.charAt(i))) {\n\t\t\t\thash_map.put(string1.charAt(i), string2.charAt(i));\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif(!hash_map.get(string1.charAt(i)).equals(string2.charAt(i))) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public boolean adjacent(String a, String b) {\n\t\tint nDifferent = 0;\n\t\tint length = a.length();\n\t\tfor (int i = 0; i < length; i++) {\n\t\t\tif (a.charAt(i) != b.charAt(i)) {\n\t\t\t\tnDifferent++;\n\t\t\t}\n\t\t\tif (nDifferent > 1)\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public boolean checkInclusion(String s1, String s2) {\n int len1 = s1.length(), len2 = s2.length();\n if (len1 > len2) {\n return false;\n }\n\n int freq[] = new int[26];\n for (int i = 0; i < len1; ++i) {\n freq[s1.charAt(i) - 'a']++;\n freq[s2.charAt(i) - 'a']--;\n }\n if (isArrayEmpty(freq)) {\n return true;\n }\n\n for (int i = len1; i < len2; ++i) {\n freq[s2.charAt(i) - 'a']--;\n freq[s2.charAt(i - len1) - 'a']++;\n if (isArrayEmpty(freq)) {\n return true;\n }\n }\n return false;\n }", "public boolean checkInclusion(String s1, String s2) {\n\t\tif (s1.length() > s2.length())\n\t\t\treturn false;\n\t\tint[] s1map = new int[26];\n\t\tfor (int i = 0; i < s1.length(); i++)\n\t\t\ts1map[s1.charAt(i) - 'a']++;\n\t\tfor (int i = 0; i <= s2.length() - s1.length(); i++) {\n\t\t\tint[] s2map = new int[26];\n\t\t\tfor (int j = 0; j < s1.length(); j++) {\n\t\t\t\ts2map[s2.charAt(i + j) - 'a']++;\n\t\t\t}\n\t\t\tif (matches(s1map, s2map))\n\t\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public static boolean startsWithIgnoreCase(String string1, String string2) {\n // this could be optimized, but anyway it doesn't seem to be a performance killer\n return string1.toUpperCase().startsWith(string2.toUpperCase());\n }", "private static boolean anagramWord(String first, String second) {\n\t\tif(first.length()!=second.length())return false;\n\t\tint matches = 0;\n\t\tchar[] a = first.toLowerCase().toCharArray();\n\t\tchar[] b = second.toLowerCase().toCharArray();\n\t\tfor(int i=0; i<a.length; i++){\n\t\t\tfor(int j=0; j<b.length; j++){\n\t\t\t\tif(a[i]==b[j])matches++;\n\t\t\t}\n\t\t}\n\t\tif( matches==a.length && matches==b.length )return true;\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean checkAnagram(String firstString, String secondString) {\n\t\tchar[] characters = firstString.toCharArray();\n\t\tStringBuilder sbSecond = new StringBuilder(secondString);\n\n\t\tfor(char ch : characters){\n\t\t\tint index = sbSecond.indexOf(\"\" + ch);\n\t\t\tif(index != -1){\n\t\t\t\tsbSecond.deleteCharAt(index);\n\t\t\t}else{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "static int compare(String a, String b) {\n if (a == null) a = \"\";\n if (b == null) b = \"\";\n\n int i = 0;\n while (i < a.length() && i < b.length()) {\n char x = a.charAt(i), y = b.charAt(i);\n if (x != y) return x - y;\n i++;\n }\n return a.length() - b.length();\n }", "public boolean checkPermutaionOfStr(String str1, String str2){\n\tArrayList<Integer> word_cnt1 = new ArrayList<Integer>();\n\tArrayList<Integer> word_cnt2 = new ArrayList<Integer>();\n\t\n\tif(str1.length() != str2.length())\n\t\treturn false;\n\tfor(int i = 0; i< 256; i++){\n\t\tword_cnt1.add(0);\n\t\tword_cnt2.add(0);\n\t}\n\t\n\tfor(int i = 0; i< str1.length(); i++){\n\t\tcntStrChar(str1, word_cnt1, i);\n\t\tcntStrChar(str2, word_cnt2, i);\n\t}\n\t\n\tfor(int i = 0; i< 256; i++){\n\t\tif (word_cnt1.get(i) != word_cnt2.get(i) )\n\t\t\treturn false;\n\t}\n\treturn true;\n}", "public static String contains(String input1, String input2){\n\t\tif((input1 == null && input2 ==null)){\n\t\t\treturn \"yes\";\n\t\t}else if (input1 == null || input2 == null){\n\t\t\treturn \"no\";\n\t\t}\n\t\tchar []input1Arr = input1.toCharArray();\n\t\tchar []input2Arr = input2.toCharArray();\n\t\tint []charMap = new int [256];\n\t\tfor (char ch:input1Arr){\n\t\t\tcharMap[ch] ++;\n\t\t}\n\t\tfor (char ch:input2Arr){\n\t\t\tif(charMap[ch]>=1){\n\t\t\t\tcharMap[ch]--;\n\t\t\t}else {\n\t\t\t\treturn \"no\";\n\t\t\t}\n\t\t}\n\t\treturn \"yes\";\n\t}", "protected int stringCompare(String s1,String s2)\r\n\t{\r\n\t\tint shortLength=Math.min(s1.length(), s2.length());\r\n\t\tfor(int i=0;i<shortLength;i++)\r\n\t\t{\r\n\t\t\tif(s1.charAt(i)<s2.charAt(i))\r\n\t\t\t\treturn 0;\r\n\t\t\telse if(s1.charAt(i)>s2.charAt(i))\r\n\t\t\t\treturn 1;\t\r\n\t\t}\r\n\t\t//if the first shrotLenghtTH characters of s1 and s2 are same \r\n\t\tif(s1.length()<=s2.length()) //it's a close situation. \r\n\t\t\treturn 0;\r\n\t\telse \r\n\t\t\treturn 1; \r\n\t\t\r\n\t}", "public static void main (String[] args) throws java.lang.Exception\n\t{\n\t\tScanner sc=new Scanner(System.in);\n\t\tString str1=sc.nextLine();\n\t\tString str2=sc.nextLine();\n\t\tstr1=str1.toLowerCase();\n\t\tstr2=str2.toLowerCase();\n\t\tif(str1.length()!=str2.length()){\n\t\tSystem.out.println(\"no\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tboolean flg=true;\n\t\tfor(int i=0; i<str1.length();i++){\n\t\t\tif(str1.charAt(i)!=str2.charAt(i)){\n\t\t\t\tflg=false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(flg){\n\t\t\tSystem.out.println(\"yes\");\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"no\");\n\t\t}\n\n\t}", "public static boolean checkString(String s, Predicate<String> pre1,Predicate<String> pre2) {\n return pre1.or(pre2).test(s);\n }", "public static boolean isAnagramFuncApproach(String str1, String str2) {\n List<String> list1 = str1.chars()\n .sorted()\n .mapToObj(c -> Character.valueOf((char) c))\n .map(object -> Objects.toString(object, null))\n .collect(Collectors.toList());\n\n List<String> list2 = str2.chars()\n .sorted()\n .mapToObj(c -> Character.valueOf((char) c))\n .map(object -> Objects.toString(object, null))\n .collect(Collectors.toList());\n\n return list1.equals(list2);\n }", "@Test\n public void whenEndsWithPrefixThenTrue() {\n char[] word = {'H', 'e', 'l', 'l', 'o'};\n char[] post = {'l', 'o'};\n boolean result = ArrayChar.endsWith(word, post);\n assertThat(result, is(true));\n }", "public static void main(String args[]) {\n Scanner in=new Scanner(System.in);\n String str1=in.nextLine();\n String str2=in.nextLine();\n int slen1=str1.length();\n \n int slen2=str2.length();\n int count=0;\n for(int i=0;i<(slen1-slen2+1);i++)\n {\n int num=1;\n for(int j=0;j<slen2;j++)\n {\n if(str1.charAt(i+j)!=(str2.charAt(j)))\n {\n num=0;\n }\n \n } \n if(num==1)\n {\n count++;\n }\n \n }\n System.out.println(count); \n }", "public boolean isSubSequence(String x, String y){\n\t\tint j = 0;\n\t\tfor(int i = 0 ; i < x.length() && j< y.length(); i++){\n\t\t\tif(x.charAt(j) == y.charAt(i)){\n\t\t\t\tj++;\n\t\t\t}\n\t\t}\n\t\treturn j == x.length();\n\t}", "public boolean isMatch(String str1, String str2) {\n \r\n if( str1 == null || str2 == null)\r\n return false;\r\n \r\n int i = 0;\r\n int j = 0;\r\n char preChar = ' ';\r\n \r\n while( i < str1.length() && j < str2.length() ){\r\n char c1 = str1.charAt(i);\r\n char c2 = str2.charAt(j);\r\n \r\n if( c1 == c2 || c2 == '.' ){\r\n i++;\r\n \r\n preChar = c2;\r\n j++;\r\n }\r\n else{\r\n if( c2 == '*' ){\r\n if( c1 == preChar || preChar == '.' ){\r\n i++;\r\n }\r\n else if( j+1 < str2.length() ){\r\n if( c1 == str2.charAt(j+1) || str2.charAt(j+1) == '.' ){\r\n i++;\r\n \r\n preChar = str2.charAt(j+1);\r\n j = j+2;\r\n }\r\n else\r\n return false;\r\n }\r\n else\r\n return false;\r\n }\r\n else{\r\n if( j+1 < str2.length() && str2.charAt(j+1) == '*' ){\r\n i++;\r\n \r\n preChar = c2;\r\n j = j+2;\r\n } \r\n else\r\n return false;\r\n }\r\n }\r\n }\r\n \r\n if( i == str1.length() ){\r\n if( j == str2.length() )\r\n return true;\r\n else if( str2.charAt(j)=='*' ){\r\n \r\n int countStr1 = 0;\r\n for(int k = str1.length()-1; k >= 0; k--){\r\n if( str1.charAt(k) == preChar )\r\n countStr1++;\r\n else\r\n break;\r\n }\r\n \r\n int countStr2 = 0;\r\n int countStarInStr2 = 0;\r\n for(int k = str2.length()-1; k >= 0; k--){\r\n if( str2.charAt(k) == preChar || str2.charAt(k) == '.' )\r\n countStr2++;\r\n else if( str2.charAt(k) == '*' )\r\n countStarInStr2++;\r\n else\r\n break;\r\n } \r\n \r\n if( countStr2 - countStarInStr2 <= countStr1 )\r\n return true;\r\n else\r\n return false;\r\n }\r\n else\r\n }\r\n else \r\n return false;\r\n }", "private boolean isSubSequence(char str1[], char str2[]) {\n int j = 0;\n int m = str1.length;\n int n = str2.length;\n for (int i=0; i<n&&j<m; i++)\n if (str1[j] == str2[i])\n j++;\n return (j==m);\n }", "public boolean compareWords(String word1, String word2) {\n for (int i = 1; i < 5; i++) {\n if (word2.indexOf(word1.charAt(i)) >= 0) {\n word2.replace(word1.charAt(i), ' ');\n } else\n return false;\n }\n\n return true;\n }", "public static void main(String[] args) {\n String str1 = \"listen\";\n String str2 = \"silent\";\n for (int i = 0; i < str1.length(); i++) {\n str2 = str2.replaceFirst(\"\" + str1.charAt(i), \"\");\n }\n System.out.println(str2.isEmpty() ? \"Anagram\" : \"NOT Anagram\");\n\n/*\n //Approach Two:\n String str1 = \"listen\";\n String str2 = \"silent\";\n String str11 = \"\";\n String str22 = \"\";\n char[] ch1 = str1.toCharArray();\n char[] ch2 = str2.toCharArray();\n Arrays.sort(ch1);\n Arrays.sort(ch2);\n for (char each:ch1) {\n str11+=each;\n }\n for (char each:ch2) {\n str22+=each;\n }\n System.out.println(str11.equalsTo(str22)? \"Anagram\" : \"NOT Anagram\");\n\n */\n/*\n\n //Approach Three:\n public static boolean Same(String str12, String str2) {\n str1 = new TreeSet<String>(Arrays.asList( str1.split(\"\") ) ).toString( );\n str2 = new TreeSet<String>(Arrays.asList( str2.split(\"\") ) ).toString( );\n return str1.equals(str2); }\n*/\n }", "public static String findCommonChars(String s1, String s2) {\n s1 = s1.trim().toLowerCase();\n s2 = s2.trim().toLowerCase();\n String fin = \"\";\n if (s1.equals(s2)) {\n return \"\";\n } else {\n for (int i = 0; i < s2.length(); i++) {\n if (s1.contains(s2.charAt(i) + \"\")) {\n s1 = s1.replace(s2.charAt(i) + \"\", \"\");\n s2 = s2.replace(s2.charAt(i) + \"\", \"\");\n }\n }\n\n //fin = s1 + s2;\n return s1+s2;\n\n\n }\n }", "public static boolean isAnagramImperApproach(char[] str1, char[] str2) {\n int n1 = str1.length;\n int n2 = str2.length;\n\n if (n1 != n2) return false;\n\n Arrays.sort(str1);\n Arrays.sort(str2);\n\n for (int i = 0; i < n1; i++) {\n if (str1[i] != str2[i]) {\n return false;\n }\n }\n return true;\n }", "public static boolean timingSafeEquals(String first, String second) {\n if (first == null) {\n return second == null;\n } else if (second == null) {\n return false;\n } else if (second.length() <= 0) {\n return first.length() <= 0;\n }\n char[] firstChars = first.toCharArray();\n char[] secondChars = second.toCharArray();\n char result = (char) ((firstChars.length == secondChars.length) ? 0 : 1);\n int j = 0;\n for (int i = 0; i < firstChars.length; ++i) {\n result |= firstChars[i] ^ secondChars[j];\n j = (j + 1) % secondChars.length;\n }\n return result == 0;\n }", "public static boolean checkForAnagram(final String a, final String b) {\n boolean isAnagram = false;\n\n if(a == null || b == null){\n throw new IllegalArgumentException(\"Invalid input\");\n }\n if(a.length() != b.length()){\n return isAnagram;\n }\n char [] lowerCaseA = a.trim().toLowerCase().toCharArray();\n String upperCaseB= b.trim().toLowerCase();\n boolean check =true;\n for(int i =0; i<lowerCaseA.length ; i++){\n Character c = lowerCaseA[i];\n int n = c;\n if(c >=95 && c <=122){\n if(! upperCaseB.contains(c.toString())){\n check=false;\n break;\n }\n }\n else {\n continue;\n }\n }\n if(check){\n isAnagram =true;\n }\n\n return isAnagram;\n }", "public boolean isAccepted2(String word) {\r\n\t return word.endsWith(\"baa\");\r\n \r\n }", "public static boolean isOneAway2(String string1, String string2) {\n int lengthDifference = Math.abs(string1.length() - string2.length());\n if (lengthDifference > 1) {\n return false;\n }\n\n int[][] dp = new int[string1.length() + 1][string2.length() + 1];\n\n for (int i = 1; i <= string1.length(); i++) {\n for (int j = 1; j <= string2.length(); j++) {\n int smallestEditDistance = Math.min(dp[i - 1][j - 1], dp[i][j - 1]);\n smallestEditDistance = Math.min(smallestEditDistance, dp[i - 1][j]);\n\n if (string1.charAt(i - 1) == string2.charAt(j - 1)) {\n dp[i][j] = smallestEditDistance;\n } else {\n dp[i][j] = smallestEditDistance + 1;\n }\n }\n }\n\n return dp[string1.length()][string2.length()] <= 1;\n }", "private static boolean search(String substring1, String substring2) {\n\t\tHashMap<Character, Integer> hm = new HashMap<Character, Integer>();\n\t\tfor (int i = 0; i < substring1.length(); i++) {\n\t\t\thm.put(substring1.charAt(i), hm.getOrDefault(substring1.charAt(i), 0)+1);\n\t\t}\n\n\t\tfor (int i = 0; i < substring2.length(); i++) {\n\t\t\tchar c = substring2.charAt(i);\n\t\t\tif (hm.containsKey(c)) {\n\t\t\t\thm.put(c, hm.get(c)-1);\n\t\t\t\tif (hm.get(c) == 0) {\n\t\t\t\t\thm.remove(c);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (hm.isEmpty()) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "public int String_Compare(String A, String B) {\n\t\t\n\t\tint shorter_length;\n\t\tif(A.length() >= B.length()) {\n\t\t\tshorter_length=B.length();\n\t\t}\n\t\telse {\n\t\t\tshorter_length=A.length();\n\t\t}\n\t\t\n\n\t\t\n\t\t\n\t\tint i = 0;\n\t\tint A_char;\n\t\tint B_char;\n\t\t\n\t\twhile(i < shorter_length ) {\n\t\t\tA_char = (int)A.charAt(i);\n\t\t\tB_char = (int)B.charAt(i);\n\n\t\t\tif(A_char != B_char) {\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t\ti+=1;\n\t\t}\n\t\treturn 0;\n\t}", "private boolean solveCutPalindrome(String a, String b) {\n\t\treturn solveCutPalindromeUtil(a, b) || solveCutPalindromeUtil(b, a);\n\t}", "public void testCompareStrings() {\n\t\tString one = \"Hello\";\n\t\tString two = \"in the house\";\n\t\t//Gro▀schreibung vor Kleinschreibung\n\t\tassertTrue(comp.compareStrings(one, two) < 0);\n\t\tassertEquals(0, comp.compareStrings(one, one));\n\t\tassertTrue(comp.compareStrings(two, one) > 0);\n\t}", "public static boolean areCircularPermutedStrings(String firstWord, String secondWord) {\n int a = 0;\n boolean x = false;\n if (firstWord.length() != secondWord.length()) {\n return false;\n }\n for (int i = firstWord.length() - 1; i > 1; i--) {\n boolean exists = secondWord.contains(firstWord.substring(0, i));\n if (exists == true) {\n boolean exists2 = secondWord.contains(firstWord.substring(i));\n if (exists2 == true) {\n a++;\n x = true;\n break;\n }\n }\n\n }\n return x;\n }", "public abstract boolean containsUppercaseLetters(String str);", "public boolean frontAgain(String str) {\r\n if (str.length() > 1 && str.substring(0, 2).equals(str.substring(str.length() - 2))) {\r\n return true;\r\n }\r\n return false;\r\n }", "public static boolean matchExact(String word1, String word2) {\n return word1.equals(word2);\n }", "public static boolean isEqualIgnoreCase(String str1, String str2) {\n\treturn (null == str1 && null == str2) || (null != str1 && null != str2 && str1.toUpperCase().trim().equals(str2.toUpperCase().trim()));\n }", "static int isSubstring(String s1, String s2) {\n int m = s1.length();\n int n = s2.length();\n\n // A loop to slide pat[] one by one\n for (int i = 0; i <= n - m; i++) {\n int j;\n\n // For current index i, check for pattern match\n for (j = 0; j < m; j++) {\n if (s2.charAt(i + j) != s1.charAt(j)) {\n break;\n }\n }\n\n if (j == m) {\n return i;\n }\n }\n return -1;\n }", "private boolean isRotation(String s1, String s2) {\n\t\treturn (s1.length() == s2.length()) && isSubstring(s1 + s1, s2);\n\t}", "public static boolean b(String str, String str2) {\n int i2 = 0;\n while (i2 < str2.length()) {\n try {\n if (str.charAt(i2) > str2.charAt(i2)) {\n return true;\n }\n if (str.charAt(i2) < str2.charAt(i2)) {\n return false;\n }\n i2++;\n } catch (Throwable unused) {\n }\n }\n return false;\n }", "@Override\n public int compare(String left, String right) {\n int result = 0;\n int length = left.length() > right.length()\n ? right.length() : left.length();\n for (int i = 0; i < length; i++) {\n result = Character.compare(left.charAt(i), right.charAt(i));\n if (result != 0) {\n break;\n }\n }\n if (result == 0) {\n result = left.length() - right.length();\n }\n return result;\n\n }", "public static boolean matchExactIgnoreCase(String word1, String word2) {\n return word1.equalsIgnoreCase(word2);\n }", "public boolean rotationCheck(String a, String b) {\r\n\t\tif(a.length() != b.length()) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\tString c = a + a;\r\n\t\tif(c.contains(b)) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public static boolean compareSubstring(List<String> pieces, String s)\n {\n\n boolean result = true;\n int len = pieces.size();\n\n int index = 0;\n\nloop: for (int i = 0; i < len; i++)\n {\n String piece = pieces.get(i);\n\n // If this is the first piece, then make sure the\n // string starts with it.\n if (i == 0)\n {\n if (!s.startsWith(piece))\n {\n result = false;\n break loop;\n }\n }\n\n // If this is the last piece, then make sure the\n // string ends with it.\n if (i == len - 1)\n {\n result = s.endsWith(piece);\n break loop;\n }\n\n // If this is neither the first or last piece, then\n // make sure the string contains it.\n if ((i > 0) && (i < (len - 1)))\n {\n index = s.indexOf(piece, index);\n if (index < 0)\n {\n result = false;\n break loop;\n }\n }\n\n // Move string index beyond the matching piece.\n index += piece.length();\n }\n\n return result;\n }", "public static boolean interweavingStrings(String one, String two, String three) {\n if(three.length() != one.length()+two.length()) return false ;\n return interweavingStringsRec(one,two,three,0,0,0);\n\n }", "public static int levenshtein(String a, String b) {\n a = a.toLowerCase();\n b = b.toLowerCase();\n\n if (a.equals(b)) {\n return 0;\n }\n\n return lev(a, b, a.length(), b.length());\n }", "public static boolean equalsIgnoreCaseOrBothNullOrEmpty\r\n (String str1, String str2)\r\n {\r\n if (isNullOrEmpty(str1) != isNullOrEmpty(str2))\r\n {\r\n // One is null or empty and the other is not.\r\n return false;\r\n }\r\n\r\n // Both are null or empty, or both are non-null and non-empty.\r\n return (isNullOrEmpty(str1) || str1.equalsIgnoreCase(str2));\r\n }", "private static Boolean isOneEditAway(String str1, String str2) {\n\t\tint str1Length = str1.length();\n\t\tint str2Length = str2.length();\n\t\tif (str1Length == str2Length)\n\t\t\treturn isOneReplaceAway(str1, str2);\n\t\tif (str1Length == str2Length + 1)\n\t\t\treturn isOneInsertOrDeleteAway(str2, str1);\n\t\tif (str1Length + 1 == str2Length)\n\t\t\treturn isOneInsertOrDeleteAway(str1, str2);\n\t\treturn Boolean.FALSE;\n\t}", "static boolean areAnagram(char[] str1, char[] str2)\n\t{\n\t\t// Get lengths of both strings\n\t\tint n1 = str1.length;\n\t\tint n2 = str2.length;\n\n\t\t// If length of both strings is not same,\n\t\t// then they cannot be anagram\n\t\tif (n1 != n2)\n\t\t\treturn false;\n\n\t\t// Sort both strings\n\t\tArrays.sort(str1);\n\t\tArrays.sort(str2);\n\n\t\t// Compare sorted strings\n\t\tfor (int i = 0; i < n1; i++)\n\t\t\tif (str1[i] != str2[i])\n\t\t\t\treturn false;\n\n\t\treturn true;\n\t}", "public static boolean areAnagrams(String firstWord, String secondWord) {\n\t\tif (firstWord.length() != secondWord.length()) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tStringBuilder firstSequence = new StringBuilder(firstWord.toLowerCase());\n\t\tStringBuilder secondSequence = new StringBuilder(secondWord.toLowerCase());\n\t\t\n\t\tSort.quickSort(firstSequence);\n\t\tSort.quickSort(secondSequence);\n\t\n\t\tfor (int i = 0; i < firstSequence.length(); i++) {\n\t\t\tif (firstSequence.charAt(i) != secondSequence.charAt(i)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "boolean isAnagram(String str1, String str2){\n\t\tString s1 = str1.replaceAll(\"\\\\s\",\"\");\n\t\tString s2 = str2.replaceAll(\"\\\\s\",\"\");\n\t\t\n\t\t//\n\t\tboolean check = true;\n\t\tif(s1.length()!=s2.length())\n\t\t{\n\t\t\tcheck = false;\n\t\t}\n\t\telse{\n\t\t\ts1=sortArray(s1);\n\t\t\ts2=sortArray(s2);\n\t\t\tcheck = s1.equalsIgnoreCase(s2);\n\t\t}\n\treturn check;\n\t}", "public static boolean isPermuted(String str1, String str2) {\n if (str1.length() != str2.length())\n return false;\n\n Map<Character, Integer> str1CountMap = new HashMap<>();\n for (char c : str1.toCharArray()) {\n str1CountMap.put(c, str1CountMap.getOrDefault(c, 0) + 1);\n }\n\n for (char c : str2.toCharArray()) {\n if (!str1CountMap.containsKey(c) || str1CountMap.get(c) <= 0)\n return false;\n str1CountMap.put(c, str1CountMap.get(c) - 1);\n }\n\n return true;\n }", "public static void main(String[] args) {\n\t\r\n\t\t {\r\n\t\t String str1 = \"Hello Java and Welcome to Java\";\r\n\t\t String str2 = \"Java\";\r\n\t\t System.out.println(\"Original String: \" + str1);\r\n\t\t System.out.println(\"Specified sequence of char values: \" + str2);\r\n\t\t System.out.println(str1.contains(str2));\r\n\t\t }\r\n\t\t}" ]
[ "0.7366097", "0.70967823", "0.686626", "0.6862961", "0.67063963", "0.66902214", "0.6667936", "0.66636264", "0.66539204", "0.66325366", "0.6595715", "0.65890443", "0.6577246", "0.65730375", "0.6559691", "0.6553429", "0.64945143", "0.64853877", "0.6457104", "0.64397", "0.6426601", "0.6423195", "0.64208305", "0.64022166", "0.63964844", "0.63888586", "0.63859665", "0.6353535", "0.63510466", "0.6345155", "0.63297355", "0.6318028", "0.63107556", "0.6300343", "0.6299301", "0.6292896", "0.62676466", "0.62201875", "0.6219164", "0.62183154", "0.6216194", "0.6208205", "0.6199561", "0.61989623", "0.61813104", "0.61733586", "0.61672515", "0.6148418", "0.6143193", "0.61367893", "0.6123878", "0.611063", "0.6106564", "0.6101812", "0.60769236", "0.60303706", "0.60297805", "0.60191524", "0.60072297", "0.5993602", "0.5990908", "0.5987936", "0.59875166", "0.5977939", "0.5949966", "0.5943282", "0.5937903", "0.59337455", "0.59327006", "0.59298545", "0.59298116", "0.5919737", "0.5917885", "0.5891272", "0.5886835", "0.5879356", "0.58764464", "0.58403575", "0.5839696", "0.58370525", "0.5827429", "0.5820472", "0.58196646", "0.5819586", "0.58133763", "0.5812087", "0.5806428", "0.58018875", "0.5792192", "0.5775596", "0.57585967", "0.5757329", "0.5755526", "0.5753685", "0.57533634", "0.5746046", "0.57455796", "0.5744352", "0.5737864", "0.5729424" ]
0.76552296
0
End of user code
public interface NTLMMediatorInputConnectorPropertiesEditionPart { /** * Init the incomingLinks * @param settings settings for the incomingLinks ReferencesTable */ public void initIncomingLinks(ReferencesTableSettings settings); /** * Update the incomingLinks * @param newValue the incomingLinks to update * */ public void updateIncomingLinks(); /** * Adds the given filter to the incomingLinks edition editor. * * @param filter * a viewer filter * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter) * */ public void addFilterToIncomingLinks(ViewerFilter filter); /** * Adds the given filter to the incomingLinks edition editor. * * @param filter * a viewer filter * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter) * */ public void addBusinessFilterToIncomingLinks(ViewerFilter filter); /** * @return true if the given element is contained inside the incomingLinks table * */ public boolean isContainedInIncomingLinksTable(EObject element); /** * Returns the internationalized title text. * * @return the internationalized title text. * */ public String getTitle(); // Start of user code for additional methods // End of user code }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void end() {\n\r\n\t}", "protected void end()\n\t{\n\t}", "protected void end() {\n \n \n }", "protected void end() {\n\t}", "protected void end() {\n\t}", "protected void end() {\n\t}", "protected void end() {\n\t}", "protected void end() {\n\t}", "protected void end() {\n\t}", "protected void end() {\r\n }", "protected void end() {\r\n }", "protected void end() {\r\n }", "protected void end() {\r\n }", "protected void end() {\n \t// theres nothing to end\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "public void end() {\n\t\tsigue = false;\n\t}", "@Override\r\n\tpublic void exit() {\n\t\t\r\n\t}", "private void finish() {\n }", "@Override\n\t\tpublic void end() {\n\t\t\t\n\t\t}", "@Override\r\n protected void end() {\r\n\r\n }", "@Override\r\n\tprotected void end() {\r\n\t}", "public void end() {\n\n }", "@Override\n\tprotected void end() {\n\t\t\n\t}", "@Override\n protected void end() {\n\n }", "@Override\r\n\tprotected void end() {\n\r\n\t}", "@Override\r\n\tprotected void end() {\n\r\n\t}", "@Override\n\tpublic void end() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void end() {\n\t\t\t\t\n\t\t\t}", "@Override\n public void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n\tpublic void exit() {\n\t\t//do nothing\n\t}", "@Override\n\tpublic void exit() {\n\t\t\n\t}", "@Override\n\tpublic void exit() {\n\t\t\n\t}", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\r\n\tpublic void exit() {\n\r\n\t}", "@Override\n\tpublic void exit() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "@Override\n\tpublic void exit() {\n\n\t}", "protected void finishExecution() {\r\n\r\n\t}", "@Override\n\tprotected void end() {\n\n\t}", "@Override\n\tprotected void end() {\n\n\t}", "@Override\n\tprotected void end() {\n\n\t}", "@Override\n\tpublic void end() {\n\n\t}", "@Override\n\tpublic void end() {\n\n\t}", "@Override\n\tpublic void end() {\n\t\t// Empty on purpose, no cleanup required yet\n\t}", "@Override\r\n\tpublic void quit() {\n\t\t\r\n\t}", "@Override\n\tprotected void end() {\n\t}", "@Override\n\tprotected void end() {\n\t}", "@Override\n\tprotected void end() {\n\t}", "@Override\n\tprotected void end() {\n\t}", "@Override\n\tprotected void end() {\n\t\t//System.out.println(this.getClass().getSimpleName() + \" end\");\n\t}", "@Override\n\tpublic void finish() {\n\t\tsuper.finish();\n\t\tSystem.exit(0);\n\t}", "protected void end() {\r\n\t\t \tP.println(Tt.getClassName(this) + \" ending\");\r\n\t\t }", "public void end();", "public void finish() { \n\t\t\n\t}", "public void finish() {\n\n\t}", "@Override\n protected void end() {\n \n }", "protected void exit() {\n\t\tSystem.exit(0);\n\t}", "protected void end() {\n isFinished();\n }", "public abstract void end();", "private void quit() {\n\r\n\t}" ]
[ "0.7773234", "0.77577317", "0.77330613", "0.7699825", "0.7699825", "0.7699825", "0.7699825", "0.7699825", "0.7699825", "0.76330596", "0.76330596", "0.76330596", "0.76330596", "0.7611532", "0.75298935", "0.75298935", "0.75298935", "0.75298935", "0.75298935", "0.75298935", "0.75298935", "0.75298935", "0.75298935", "0.75298935", "0.75298935", "0.75298935", "0.75298935", "0.75298935", "0.75298935", "0.75298935", "0.75298935", "0.75298935", "0.75298935", "0.75298935", "0.75298935", "0.75298935", "0.75298935", "0.75298935", "0.75298935", "0.75298935", "0.75298935", "0.75298935", "0.75298935", "0.75298935", "0.75298935", "0.7393504", "0.7372694", "0.73177063", "0.73131937", "0.73116267", "0.73036027", "0.72988707", "0.72815526", "0.72811943", "0.72758365", "0.72758365", "0.72742003", "0.72551286", "0.72490454", "0.72460586", "0.7244951", "0.7230595", "0.7230595", "0.7210668", "0.7210668", "0.7210668", "0.7210668", "0.7210668", "0.7210668", "0.7210668", "0.7210668", "0.7210668", "0.7210668", "0.7210668", "0.7210668", "0.7207982", "0.71987134", "0.71940506", "0.7181804", "0.71764195", "0.71764195", "0.71764195", "0.7164877", "0.7164877", "0.7163901", "0.7151675", "0.7148426", "0.7148426", "0.7148426", "0.7148426", "0.7136314", "0.7135046", "0.7131686", "0.71307844", "0.71302474", "0.71047246", "0.70876944", "0.70834684", "0.70819247", "0.70650005", "0.7064541" ]
0.0
-1
Adds the given filter to the incomingLinks edition editor.
public void addFilterToIncomingLinks(ViewerFilter filter);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addFilterToReferencedLink(ViewerFilter filter);", "public void addBusinessFilterToIncomingLinks(ViewerFilter filter);", "public void addFilterToAnotations(ViewerFilter filter);", "public void addFilterToAnotations(ViewerFilter filter);", "public void addBusinessFilterToReferencedLink(ViewerFilter filter);", "public void addFilterToReader(ViewerFilter filter);", "public void addFilterToAttributes(ViewerFilter filter);", "public void addFilterToCreator(ViewerFilter filter);", "public void addFilterToMigRelations(ViewerFilter filter);", "public void addBusinessFilterToAnotations(ViewerFilter filter);", "public void addBusinessFilterToAnotations(ViewerFilter filter);", "public void addFilterToPolicyEntries(ViewerFilter filter);", "public void addNodeFilter (INodeFilter filter);", "public void addBusinessFilterToMigRelations(ViewerFilter filter);", "public void addBusinessFilterToReader(ViewerFilter filter);", "public void addFilterToImplements_(ViewerFilter filter);", "public void addFilterToCombo(ViewerFilter filter);", "public void addFilterToMethodArguments(ViewerFilter filter);", "public void addFilterToParentModule(ViewerFilter filter);", "public void addBusinessFilterToCreator(ViewerFilter filter);", "public void addFilterToComboRO(ViewerFilter filter);", "public void addFilterToMethods(ViewerFilter filter);", "public void addBusinessFilterToPolicyEntries(ViewerFilter filter);", "public void addFilter(@NotNull final SceneFilter filter) {\n filters.add(filter);\n }", "public void addFilter(MessageFilter filter);", "void onFilterChanged(ArticleFilter filter);", "public void addBusinessFilterToParentModule(ViewerFilter filter);", "public void addBusinessFilterToMethodArguments(ViewerFilter filter);", "public void addBusinessFilterToAttributes(ViewerFilter filter);", "void addRecipeFilter(RecipeFilter recipeFilter);", "public void addBusinessFilterToImplements_(ViewerFilter filter);", "public void addFilter(Filter filter){\n removeEndQuery();\n setMainQuery(getMainQuery()+filter.getFilter()+\"}\");\n setCountQuery(getCountQuery()+filter.getFilter()+\"}\");\n }", "public void addBusinessFilterToMethods(ViewerFilter filter);", "public void addFilterToDialog(String sExtension, String filterName, boolean setToDefault)\n {\n try\n {\n //get the localized filtername\n String uiName = getFilterUIName(filterName);\n String pattern = \"*.\" + sExtension;\n\n //add the filter\n addFilter(uiName, pattern, setToDefault);\n }\n catch (Exception exception)\n {\n exception.printStackTrace(System.out);\n }\n }", "public static void setLinksFilterStatus(boolean tof) { linksFilter = tof; }", "void addFilter(IntentFilter filter);", "public void addFilterToParentLayer(ViewerFilter filter);", "private void applyFilterIcon() {\n addStyleName(\"appliedfilter\");\n icon.setSource(selectedTheam);\n }", "public void addBusinessFilterToParentLayer(ViewerFilter filter);", "void setFilter(String filter);", "public void addFilter(int index, MessageFilter filter);", "FilterInfo setFilterActive(String filter_id, int revision) throws Exception;", "public void setFilter(Expression filter) {\n this.filter = filter;\n }", "public void addFilterItem(FilterItem filterItem) {\n\t\tfilterItems.add(filterItem);\n\t}", "FilterInfo addFilter(String filtercode, String filter_type, String filter_name, String disableFilterPropertyName, String filter_order);", "FilterInfo setCanaryFilter(String filter_id, int revision);", "@Override\n\tpublic void attachFilter(ConfigContext ctx, Entity entity) {\n\t}", "void registerFilterListener(FilterListener listener);", "@Override\n public javax.servlet.FilterRegistration.Dynamic addFilter(String filterName, Filter filter) {\n return null;\n }", "void filterChanged(Filter filter);", "public void setContactFilter(Filter filter);", "public void add(final ArtifactFilter artifactFilter)\n {\n this.filters.add(artifactFilter);\n }", "public void addFilterToAdvancedtablecompositionRequiredProperty(ViewerFilter filter);", "public void addFilter(String token, String value) {\n if (token == null) {\n return;\n }\n globalFilterSet.addFilter(new FilterSet.Filter(token, value));\n }", "protected void addFilter(TableViewer viewer) {\n\t\t//0.6f entspricht einer minimalen durchschnittlichen Bewertung von 3 Punkten\n\t\tviewer.addFilter(new RatingFilter(0.6f));\n\t}", "public void modifyFilter(String topic, MessageFilterI newFilter, String inboundPortURI) {\n\n\t}", "public void addFilter(List<SermonVideo> newList){\n filter = newList;\n notifyDataSetChanged();\n }", "void addDocumentFilter(DocumentFilter documentFilter) {\r\n\t\t((AbstractDocument) document).setDocumentFilter(documentFilter);\r\n\t}", "public void addFilterToAdvancedtablecompositionOptionalProperty(ViewerFilter filter);", "public void setFilter(String filter)\n {\n filteredFrames.add(\"at \" + filter);\n }", "public void setFilter (LSPFilter filter) {\r\n this.filter = filter;\r\n }", "@Override\n public boolean setFilter(String filterId, Filter filter) {\n return false;\n }", "private void attachFilter(Appender<ILoggingEvent> appender, FilterInfo fi){\n if(!appender.getCopyOfAttachedFiltersList().contains(fi.filter)){\n appender.addFilter(fi.filter);\n }\n }", "public void addFilter(Filter subfilter) {\n if (subfilter == null || !subfilter.isValid()) {\n return;\n }\n if (filter == null) {\n filter = new Filters();\n }\n filter.add(subfilter);\n }", "public void onUpdateFilters(SearchFilter newFilter) {\n filter.setSort(newFilter.getSort());\n filter.setBegin_date(newFilter.getBegin_date());\n filter.setNewsDeskOpts(newFilter.getNewsDeskOpts());\n gvResults.clearOnScrollListeners();\n setUpRecycler();\n fetchArticles(0,true);\n }", "public interface LinkFilter {\n\n public boolean accept(String url);\n}", "public void setFilter(EntityFilter filter);", "public interface LinkFilter {\n public boolean accept(String url);\n}", "private void updateFilter(BasicOutputCollector collector) {\n if (updateFilter()){\n \tValues v = new Values();\n v.add(ImmutableList.copyOf(filter));\n \n collector.emit(\"filter\",v);\n \t\n }\n \n \n \n }", "@Override\n\tpublic void filterChange() {\n\t\t\n\t}", "public abstract void updateFilter();", "public void setMenuFilter(ObjectMenuFilter filter);", "public LineLayer withFilter(Object[] filter) {\n setFilter(filter);\n return this;\n }", "public void setFilter(String filter) {\n\t\tthis.filter = filter;\n\n\t}", "@DISPID(-2147412069)\n @PropPut\n void onfilterchange(\n java.lang.Object rhs);", "public void addBusinessFilterToAdvancedtablecompositionRequiredProperty(ViewerFilter filter);", "public String genLink (String request, Array filters){\n \n }", "@SuppressWarnings(\"unchecked\")\n \tprivate void notifyFilterAdded(final IUIFilter filter) {\n \t\tfor (final L next : getListeners()) {\n \t\t\tnext.filterAdded((S) this, filter);\n \t\t}\n \t\tfor (final ISimpleNavigationNodeListener next : getSimpleListeners()) {\n \t\t\tnext.filterAdded(this, filter);\n \t\t}\n \t}", "private void addFilter(WebSocketConnector aConnector, Token aToken) {\n\t\tif (mService == null) {\n\t\t\tmService = new AdminPlugInService(NS_ADMIN, mNumberOfDays, getServer());\n\t\t}\n\n\t\tif (mLog.isDebugEnabled()) {\n\t\t\tmLog.debug(\"Processing 'addFilter'...\");\n\t\t}\n\n\t\tgetServer().sendToken(aConnector, mService.addFilter(aConnector, aToken));\n\t}", "public void appendFeatureHolderStyle(FeatureFilter filter)\n\t{\n\t\tif(this.filter instanceof AndFilter)\n\t\t{\n\t\t\t((AndFilter)this.filter).add(filter);\n\t\t}\n\t\telse if(this.filter != null)\n\t\t{\n\t\t\tthis.filter = new AndFilter(this.filter, filter);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tthis.filter = filter;\n\t\t}\n\t\t\n\t\tthis.valid = false;\n\t}", "public void addFilter(final Filter filter) {\n privateConfig.config.addLoggerFilter(this, filter);\n }", "public void addFilter ( ChannelKey channelKey )\n throws SystemException, CommunicationException, AuthorizationException, DataValidationException\n {\n }", "public void addExtension(String extension) {\n\t if(filters == null) {\n\t filters = new Hashtable(5);\n\t }\n\t filters.put(extension.toLowerCase(), this);\n\t fullDescription = null;\n }", "public RegisterFilter() {\n\t\tqueryList = new ArrayList<QueryPart>();\n\t\torderList = new ArrayList<OrderPart>();\n\t}", "public interface MyFilterListener {\n void onContentChange(List<Article> newArticleList);\n\n void initialise(List<Article> initialArticleList, List<Article> filteredArticleList);\n}", "public void addBusinessFilterToAdvancedtablecompositionOptionalProperty(ViewerFilter filter);", "public void setFilter(Filter filter) {\n\t\tthis.filter = filter;\n\t}", "@Override\n public javax.servlet.FilterRegistration.Dynamic addFilter(String filterName, Class<? extends Filter> filterClass) {\n return null;\n }", "public void setNodeAttributeFilter( AttributeFilter filter )\n \t{\n \t\tnodeAttributeFilter = filter;\n \t}", "public void addFilters(cwterm.service.rigctl.xsd.Filter param) {\n if (localFilters == null) {\n localFilters = new cwterm.service.rigctl.xsd.Filter[] {};\n }\n localFiltersTracker = true;\n java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localFilters);\n list.add(param);\n this.localFilters = (cwterm.service.rigctl.xsd.Filter[]) list.toArray(new cwterm.service.rigctl.xsd.Filter[list.size()]);\n }", "public OrFileFilter addFilter (FileFilter filter)\n {\n filters.add (filter);\n return this;\n }", "public static void addFilterMap(WFJFilterMap filterMap) {\n validateFilterMap(filterMap);\n // Add this filter mapping to our registered set\n filterMaps.add(filterMap);\n }", "@Override\n\tpublic void addWherePart(String newWherePart) {\n\t\n\t\tsuper.addWherePart(newWherePart);\n\t}", "public List setFilter(java.lang.String filter) {\n this.filter = filter;\n return this;\n }", "public void startListening(){\n\t\t// viewerFilter =\n\t\t// cv.getConfigurer().getControlFieldProvider().createFilter();\n\t\tcv.getConfigurer().getControlFieldProvider().addChangeListener(this);\n\t}", "void setFilter(Filter f);", "void addHttpFilterStatementsToResource(BLangFunction resourceNode, SymbolEnv env) {\n if (isHttpResource(resourceNode)) {\n addFilterStatements(resourceNode, env);\n }\n }", "private void filterHandler(Request req, Supplier filter) throws SQLException {\n generalHandler(req);\n params.put(\"currFilter\", filter);\n params.put(\"products\", filter.getProducts());\n }", "public void addFilters(){\r\n filter.getItems().clear();\r\n filter.setPromptText(\"Select Filter\");\r\n filter.setButtonCell(new ListCell<String>() {\r\n @Override\r\n protected void updateItem(String item, boolean empty) {\r\n super.updateItem(item, empty);\r\n if (empty || item == null)\r\n setText(\"Select Filter\");\r\n else\r\n setText(item);\r\n }\r\n });\r\n\r\n //Adds filters to filter combobox based on tx power rating and filter power rating\r\n\r\n DocumentBuilderFactory filteringFactory = DocumentBuilderFactory.newInstance();\r\n DocumentBuilder filterBuilder = null;\r\n try { filterBuilder = filteringFactory.newDocumentBuilder(); }\r\n catch (ParserConfigurationException e) { e.printStackTrace(); }\r\n\r\n Document filterDocument = null;\r\n try { filterDocument = Objects.requireNonNull(filterBuilder).parse(new File(\"maskFiltersCouplers.xml\")); }\r\n catch (SAXException | IOException e) { e.printStackTrace(); }\r\n\r\n List<sample.Filtering> theFilters = new ArrayList<sample.Filtering>();\r\n NodeList filtersNodeList = filterDocument.getDocumentElement().getChildNodes();\r\n for (int i = 0; i < filtersNodeList.getLength(); i++) {\r\n Node filtersNode = filtersNodeList.item(i);\r\n if (filtersNode.getNodeType() == Node.ELEMENT_NODE) {\r\n Element filtersElement = (Element) filtersNode;\r\n\r\n filterPower = Double.parseDouble((filtersElement.getElementsByTagName(\"Power\").item(0).getChildNodes().item(0).getNodeValue()));\r\n filterPIDDescription = filtersElement.getElementsByTagName(\"PIDDESCRIPTION\").item(0).getChildNodes().item(0).getNodeValue();\r\n filterSize = filtersElement.getElementsByTagName(\"Size\").item(0).getChildNodes().item(0).getNodeValue();\r\n filterPID = filtersElement.getElementsByTagName(\"PID\").item(0).getChildNodes().item(0).getNodeValue();\r\n\r\n if (filterPower > powerRating * 1000 || filterPower * cabinets > powerRating * 1000) { //powerRating is KW need to multiply by 1000 to get into watts\r\n theFilters.add(new sample.Filtering(filterPower, filterPIDDescription, filterSize, filterPID));//filterPower is set in watts (1,000 watts = 1KW)\r\n filter.getItems().add(filterPIDDescription + \" input size \" + filterSize);\r\n }\r\n }\r\n }\r\n }", "public boolean addFilter(Long fileID, AbstractFilter newFilter) {\n if (newFilter != null) {\n boolean ok = getFilters(fileID).add(newFilter);\n if (ok) {\n inferePeptides.put(fileID, true);\n }\n return ok;\n } else {\n return false;\n }\n }" ]
[ "0.7563448", "0.7514647", "0.71099037", "0.71099037", "0.7010631", "0.6850969", "0.6652439", "0.6589147", "0.65369487", "0.65155494", "0.65155494", "0.64860696", "0.6353862", "0.6327686", "0.6306877", "0.6281534", "0.6233909", "0.6166945", "0.6157844", "0.6114233", "0.60922426", "0.6070396", "0.60363644", "0.60356563", "0.59736514", "0.5961657", "0.5902185", "0.5856385", "0.58495927", "0.58309937", "0.58271194", "0.5826184", "0.57363546", "0.57207626", "0.57056975", "0.56572914", "0.5614343", "0.55884194", "0.5546417", "0.54903364", "0.543243", "0.5409163", "0.5366754", "0.53630114", "0.5323462", "0.53178036", "0.5313782", "0.53070664", "0.53052145", "0.53052104", "0.5247098", "0.52277845", "0.5215096", "0.52115995", "0.5206629", "0.5190352", "0.51500857", "0.5148019", "0.5134076", "0.51228565", "0.5121462", "0.5110831", "0.5110129", "0.50984365", "0.50951475", "0.50758225", "0.5058087", "0.5056037", "0.5044914", "0.50443035", "0.50403804", "0.5029881", "0.50209963", "0.499415", "0.49867734", "0.49846616", "0.49774715", "0.4970511", "0.49565655", "0.49523166", "0.49479976", "0.49373448", "0.49229985", "0.49173537", "0.49116817", "0.49078396", "0.48854616", "0.48679784", "0.4861672", "0.48455188", "0.4839844", "0.48225453", "0.4821544", "0.48209703", "0.4816387", "0.48161924", "0.4801229", "0.47888824", "0.47803053", "0.47790053" ]
0.81378466
0
Adds the given filter to the incomingLinks edition editor.
public void addBusinessFilterToIncomingLinks(ViewerFilter filter);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addFilterToIncomingLinks(ViewerFilter filter);", "public void addFilterToReferencedLink(ViewerFilter filter);", "public void addFilterToAnotations(ViewerFilter filter);", "public void addFilterToAnotations(ViewerFilter filter);", "public void addBusinessFilterToReferencedLink(ViewerFilter filter);", "public void addFilterToReader(ViewerFilter filter);", "public void addFilterToAttributes(ViewerFilter filter);", "public void addFilterToCreator(ViewerFilter filter);", "public void addFilterToMigRelations(ViewerFilter filter);", "public void addBusinessFilterToAnotations(ViewerFilter filter);", "public void addBusinessFilterToAnotations(ViewerFilter filter);", "public void addFilterToPolicyEntries(ViewerFilter filter);", "public void addNodeFilter (INodeFilter filter);", "public void addBusinessFilterToMigRelations(ViewerFilter filter);", "public void addBusinessFilterToReader(ViewerFilter filter);", "public void addFilterToImplements_(ViewerFilter filter);", "public void addFilterToCombo(ViewerFilter filter);", "public void addFilterToMethodArguments(ViewerFilter filter);", "public void addFilterToParentModule(ViewerFilter filter);", "public void addBusinessFilterToCreator(ViewerFilter filter);", "public void addFilterToComboRO(ViewerFilter filter);", "public void addFilterToMethods(ViewerFilter filter);", "public void addBusinessFilterToPolicyEntries(ViewerFilter filter);", "public void addFilter(@NotNull final SceneFilter filter) {\n filters.add(filter);\n }", "public void addFilter(MessageFilter filter);", "void onFilterChanged(ArticleFilter filter);", "public void addBusinessFilterToParentModule(ViewerFilter filter);", "public void addBusinessFilterToMethodArguments(ViewerFilter filter);", "public void addBusinessFilterToAttributes(ViewerFilter filter);", "void addRecipeFilter(RecipeFilter recipeFilter);", "public void addBusinessFilterToImplements_(ViewerFilter filter);", "public void addFilter(Filter filter){\n removeEndQuery();\n setMainQuery(getMainQuery()+filter.getFilter()+\"}\");\n setCountQuery(getCountQuery()+filter.getFilter()+\"}\");\n }", "public void addBusinessFilterToMethods(ViewerFilter filter);", "public void addFilterToDialog(String sExtension, String filterName, boolean setToDefault)\n {\n try\n {\n //get the localized filtername\n String uiName = getFilterUIName(filterName);\n String pattern = \"*.\" + sExtension;\n\n //add the filter\n addFilter(uiName, pattern, setToDefault);\n }\n catch (Exception exception)\n {\n exception.printStackTrace(System.out);\n }\n }", "public static void setLinksFilterStatus(boolean tof) { linksFilter = tof; }", "void addFilter(IntentFilter filter);", "public void addFilterToParentLayer(ViewerFilter filter);", "private void applyFilterIcon() {\n addStyleName(\"appliedfilter\");\n icon.setSource(selectedTheam);\n }", "public void addBusinessFilterToParentLayer(ViewerFilter filter);", "void setFilter(String filter);", "public void addFilter(int index, MessageFilter filter);", "FilterInfo setFilterActive(String filter_id, int revision) throws Exception;", "public void setFilter(Expression filter) {\n this.filter = filter;\n }", "public void addFilterItem(FilterItem filterItem) {\n\t\tfilterItems.add(filterItem);\n\t}", "FilterInfo addFilter(String filtercode, String filter_type, String filter_name, String disableFilterPropertyName, String filter_order);", "FilterInfo setCanaryFilter(String filter_id, int revision);", "@Override\n\tpublic void attachFilter(ConfigContext ctx, Entity entity) {\n\t}", "void registerFilterListener(FilterListener listener);", "@Override\n public javax.servlet.FilterRegistration.Dynamic addFilter(String filterName, Filter filter) {\n return null;\n }", "void filterChanged(Filter filter);", "public void setContactFilter(Filter filter);", "public void add(final ArtifactFilter artifactFilter)\n {\n this.filters.add(artifactFilter);\n }", "public void addFilterToAdvancedtablecompositionRequiredProperty(ViewerFilter filter);", "public void addFilter(String token, String value) {\n if (token == null) {\n return;\n }\n globalFilterSet.addFilter(new FilterSet.Filter(token, value));\n }", "protected void addFilter(TableViewer viewer) {\n\t\t//0.6f entspricht einer minimalen durchschnittlichen Bewertung von 3 Punkten\n\t\tviewer.addFilter(new RatingFilter(0.6f));\n\t}", "public void modifyFilter(String topic, MessageFilterI newFilter, String inboundPortURI) {\n\n\t}", "public void addFilter(List<SermonVideo> newList){\n filter = newList;\n notifyDataSetChanged();\n }", "void addDocumentFilter(DocumentFilter documentFilter) {\r\n\t\t((AbstractDocument) document).setDocumentFilter(documentFilter);\r\n\t}", "public void addFilterToAdvancedtablecompositionOptionalProperty(ViewerFilter filter);", "public void setFilter(String filter)\n {\n filteredFrames.add(\"at \" + filter);\n }", "public void setFilter (LSPFilter filter) {\r\n this.filter = filter;\r\n }", "@Override\n public boolean setFilter(String filterId, Filter filter) {\n return false;\n }", "private void attachFilter(Appender<ILoggingEvent> appender, FilterInfo fi){\n if(!appender.getCopyOfAttachedFiltersList().contains(fi.filter)){\n appender.addFilter(fi.filter);\n }\n }", "public void addFilter(Filter subfilter) {\n if (subfilter == null || !subfilter.isValid()) {\n return;\n }\n if (filter == null) {\n filter = new Filters();\n }\n filter.add(subfilter);\n }", "public void onUpdateFilters(SearchFilter newFilter) {\n filter.setSort(newFilter.getSort());\n filter.setBegin_date(newFilter.getBegin_date());\n filter.setNewsDeskOpts(newFilter.getNewsDeskOpts());\n gvResults.clearOnScrollListeners();\n setUpRecycler();\n fetchArticles(0,true);\n }", "public interface LinkFilter {\n\n public boolean accept(String url);\n}", "public void setFilter(EntityFilter filter);", "public interface LinkFilter {\n public boolean accept(String url);\n}", "private void updateFilter(BasicOutputCollector collector) {\n if (updateFilter()){\n \tValues v = new Values();\n v.add(ImmutableList.copyOf(filter));\n \n collector.emit(\"filter\",v);\n \t\n }\n \n \n \n }", "@Override\n\tpublic void filterChange() {\n\t\t\n\t}", "public abstract void updateFilter();", "public void setMenuFilter(ObjectMenuFilter filter);", "public LineLayer withFilter(Object[] filter) {\n setFilter(filter);\n return this;\n }", "public void setFilter(String filter) {\n\t\tthis.filter = filter;\n\n\t}", "@DISPID(-2147412069)\n @PropPut\n void onfilterchange(\n java.lang.Object rhs);", "public void addBusinessFilterToAdvancedtablecompositionRequiredProperty(ViewerFilter filter);", "public String genLink (String request, Array filters){\n \n }", "@SuppressWarnings(\"unchecked\")\n \tprivate void notifyFilterAdded(final IUIFilter filter) {\n \t\tfor (final L next : getListeners()) {\n \t\t\tnext.filterAdded((S) this, filter);\n \t\t}\n \t\tfor (final ISimpleNavigationNodeListener next : getSimpleListeners()) {\n \t\t\tnext.filterAdded(this, filter);\n \t\t}\n \t}", "private void addFilter(WebSocketConnector aConnector, Token aToken) {\n\t\tif (mService == null) {\n\t\t\tmService = new AdminPlugInService(NS_ADMIN, mNumberOfDays, getServer());\n\t\t}\n\n\t\tif (mLog.isDebugEnabled()) {\n\t\t\tmLog.debug(\"Processing 'addFilter'...\");\n\t\t}\n\n\t\tgetServer().sendToken(aConnector, mService.addFilter(aConnector, aToken));\n\t}", "public void appendFeatureHolderStyle(FeatureFilter filter)\n\t{\n\t\tif(this.filter instanceof AndFilter)\n\t\t{\n\t\t\t((AndFilter)this.filter).add(filter);\n\t\t}\n\t\telse if(this.filter != null)\n\t\t{\n\t\t\tthis.filter = new AndFilter(this.filter, filter);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tthis.filter = filter;\n\t\t}\n\t\t\n\t\tthis.valid = false;\n\t}", "public void addFilter(final Filter filter) {\n privateConfig.config.addLoggerFilter(this, filter);\n }", "public void addFilter ( ChannelKey channelKey )\n throws SystemException, CommunicationException, AuthorizationException, DataValidationException\n {\n }", "public void addExtension(String extension) {\n\t if(filters == null) {\n\t filters = new Hashtable(5);\n\t }\n\t filters.put(extension.toLowerCase(), this);\n\t fullDescription = null;\n }", "public RegisterFilter() {\n\t\tqueryList = new ArrayList<QueryPart>();\n\t\torderList = new ArrayList<OrderPart>();\n\t}", "public interface MyFilterListener {\n void onContentChange(List<Article> newArticleList);\n\n void initialise(List<Article> initialArticleList, List<Article> filteredArticleList);\n}", "public void addBusinessFilterToAdvancedtablecompositionOptionalProperty(ViewerFilter filter);", "public void setFilter(Filter filter) {\n\t\tthis.filter = filter;\n\t}", "@Override\n public javax.servlet.FilterRegistration.Dynamic addFilter(String filterName, Class<? extends Filter> filterClass) {\n return null;\n }", "public void setNodeAttributeFilter( AttributeFilter filter )\n \t{\n \t\tnodeAttributeFilter = filter;\n \t}", "public void addFilters(cwterm.service.rigctl.xsd.Filter param) {\n if (localFilters == null) {\n localFilters = new cwterm.service.rigctl.xsd.Filter[] {};\n }\n localFiltersTracker = true;\n java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localFilters);\n list.add(param);\n this.localFilters = (cwterm.service.rigctl.xsd.Filter[]) list.toArray(new cwterm.service.rigctl.xsd.Filter[list.size()]);\n }", "public OrFileFilter addFilter (FileFilter filter)\n {\n filters.add (filter);\n return this;\n }", "public static void addFilterMap(WFJFilterMap filterMap) {\n validateFilterMap(filterMap);\n // Add this filter mapping to our registered set\n filterMaps.add(filterMap);\n }", "@Override\n\tpublic void addWherePart(String newWherePart) {\n\t\n\t\tsuper.addWherePart(newWherePart);\n\t}", "public List setFilter(java.lang.String filter) {\n this.filter = filter;\n return this;\n }", "public void startListening(){\n\t\t// viewerFilter =\n\t\t// cv.getConfigurer().getControlFieldProvider().createFilter();\n\t\tcv.getConfigurer().getControlFieldProvider().addChangeListener(this);\n\t}", "void setFilter(Filter f);", "void addHttpFilterStatementsToResource(BLangFunction resourceNode, SymbolEnv env) {\n if (isHttpResource(resourceNode)) {\n addFilterStatements(resourceNode, env);\n }\n }", "private void filterHandler(Request req, Supplier filter) throws SQLException {\n generalHandler(req);\n params.put(\"currFilter\", filter);\n params.put(\"products\", filter.getProducts());\n }", "public void addFilters(){\r\n filter.getItems().clear();\r\n filter.setPromptText(\"Select Filter\");\r\n filter.setButtonCell(new ListCell<String>() {\r\n @Override\r\n protected void updateItem(String item, boolean empty) {\r\n super.updateItem(item, empty);\r\n if (empty || item == null)\r\n setText(\"Select Filter\");\r\n else\r\n setText(item);\r\n }\r\n });\r\n\r\n //Adds filters to filter combobox based on tx power rating and filter power rating\r\n\r\n DocumentBuilderFactory filteringFactory = DocumentBuilderFactory.newInstance();\r\n DocumentBuilder filterBuilder = null;\r\n try { filterBuilder = filteringFactory.newDocumentBuilder(); }\r\n catch (ParserConfigurationException e) { e.printStackTrace(); }\r\n\r\n Document filterDocument = null;\r\n try { filterDocument = Objects.requireNonNull(filterBuilder).parse(new File(\"maskFiltersCouplers.xml\")); }\r\n catch (SAXException | IOException e) { e.printStackTrace(); }\r\n\r\n List<sample.Filtering> theFilters = new ArrayList<sample.Filtering>();\r\n NodeList filtersNodeList = filterDocument.getDocumentElement().getChildNodes();\r\n for (int i = 0; i < filtersNodeList.getLength(); i++) {\r\n Node filtersNode = filtersNodeList.item(i);\r\n if (filtersNode.getNodeType() == Node.ELEMENT_NODE) {\r\n Element filtersElement = (Element) filtersNode;\r\n\r\n filterPower = Double.parseDouble((filtersElement.getElementsByTagName(\"Power\").item(0).getChildNodes().item(0).getNodeValue()));\r\n filterPIDDescription = filtersElement.getElementsByTagName(\"PIDDESCRIPTION\").item(0).getChildNodes().item(0).getNodeValue();\r\n filterSize = filtersElement.getElementsByTagName(\"Size\").item(0).getChildNodes().item(0).getNodeValue();\r\n filterPID = filtersElement.getElementsByTagName(\"PID\").item(0).getChildNodes().item(0).getNodeValue();\r\n\r\n if (filterPower > powerRating * 1000 || filterPower * cabinets > powerRating * 1000) { //powerRating is KW need to multiply by 1000 to get into watts\r\n theFilters.add(new sample.Filtering(filterPower, filterPIDDescription, filterSize, filterPID));//filterPower is set in watts (1,000 watts = 1KW)\r\n filter.getItems().add(filterPIDDescription + \" input size \" + filterSize);\r\n }\r\n }\r\n }\r\n }", "public boolean addFilter(Long fileID, AbstractFilter newFilter) {\n if (newFilter != null) {\n boolean ok = getFilters(fileID).add(newFilter);\n if (ok) {\n inferePeptides.put(fileID, true);\n }\n return ok;\n } else {\n return false;\n }\n }" ]
[ "0.81378466", "0.7563448", "0.71099037", "0.71099037", "0.7010631", "0.6850969", "0.6652439", "0.6589147", "0.65369487", "0.65155494", "0.65155494", "0.64860696", "0.6353862", "0.6327686", "0.6306877", "0.6281534", "0.6233909", "0.6166945", "0.6157844", "0.6114233", "0.60922426", "0.6070396", "0.60363644", "0.60356563", "0.59736514", "0.5961657", "0.5902185", "0.5856385", "0.58495927", "0.58309937", "0.58271194", "0.5826184", "0.57363546", "0.57207626", "0.57056975", "0.56572914", "0.5614343", "0.55884194", "0.5546417", "0.54903364", "0.543243", "0.5409163", "0.5366754", "0.53630114", "0.5323462", "0.53178036", "0.5313782", "0.53070664", "0.53052145", "0.53052104", "0.5247098", "0.52277845", "0.5215096", "0.52115995", "0.5206629", "0.5190352", "0.51500857", "0.5148019", "0.5134076", "0.51228565", "0.5121462", "0.5110831", "0.5110129", "0.50984365", "0.50951475", "0.50758225", "0.5058087", "0.5056037", "0.5044914", "0.50443035", "0.50403804", "0.5029881", "0.50209963", "0.499415", "0.49867734", "0.49846616", "0.49774715", "0.4970511", "0.49565655", "0.49523166", "0.49479976", "0.49373448", "0.49229985", "0.49173537", "0.49116817", "0.49078396", "0.48854616", "0.48679784", "0.4861672", "0.48455188", "0.4839844", "0.48225453", "0.4821544", "0.48209703", "0.4816387", "0.48161924", "0.4801229", "0.47888824", "0.47803053", "0.47790053" ]
0.7514647
2
Returns the internationalized title text.
public String getTitle();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "IDisplayString getTitle();", "public String getTitle() {\n if (getMessages().contains(\"title\")) {\n return message(\"title\");\n }\n return message(MessageUtils.title(getResources().getPageName()));\n }", "public abstract String getTitle(Locale locale);", "public String getTitle() {\n\t\tDictionary d= new Dictionary();\n\t\treturn d.getAsunto(Asunto)+\" \"+d.getWord(\"en\")+\" \"+d.getEstado(Estado);\n\t}", "java.lang.String getTitle();", "java.lang.String getTitle();", "java.lang.String getTitle();", "java.lang.String getTitle();", "java.lang.String getTitle();", "public java.lang.String getTitle();", "public String getTitle() {\n addParameter(\"title.number\" , iBundle.getString(\"reminderreport.title.date\") );\n\n return iBundle.getString(\"reminderreport.title\");\n }", "public String getTitle()\r\n\t{\r\n\t\treturn TITLE;\r\n\t}", "public java.lang.String getTitle() {\n return title;\n }", "public java.lang.String getTitle() {\n return title;\n }", "@AutoEscape\n\tpublic String getTitle();", "@AutoEscape\n\tpublic String getTitle();", "public java.lang.String getTitle() {\n return title;\n }", "public java.lang.String getTitle() {\n return title;\n }", "public java.lang.String getTitle() {\n return title;\n }", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String title();", "String title();", "public String getTitle(String lang) {\n/* 363 */ return getLangAlt(lang, \"title\");\n/* */ }", "public String getTitle()\n {\n return (this.title);\n }", "public String getTitle() {\n \t\treturn title;\n \t}", "public java.lang.String getTitle() {\n java.lang.Object ref = title_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n title_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getTitle() {\n java.lang.Object ref = title_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n title_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getTitle() {\n return getProperty(Property.TITLE);\n }", "@Override\n\tpublic java.lang.String getTitle(java.util.Locale locale) {\n\t\treturn _scienceApp.getTitle(locale);\n\t}", "@NotNull\n String getTitle();", "public String get_defineSetupPage_Titletext() {\r\n\t\treturn FetchText(DefineSetupPageTitle);\r\n\t}", "public java.lang.String getTitle() {\n java.lang.Object ref = title_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n title_ = s;\n }\n return s;\n }\n }", "public java.lang.String getTitle() {\n java.lang.Object ref = title_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n title_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public abstract CharSequence getTitle();", "public String getTitle() \r\n\t{\r\n\t\treturn this.title;\r\n\t}", "public java.lang.String getTitle() {\n java.lang.Object ref = title_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n title_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getTitle() {\n Object ref = title_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n title_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "@Override\r\n\tpublic String getTitle() {\n\t\treturn title;\r\n\t}", "public String getTitle()\n\t{\n\t\treturn title;\n\t}", "public String getTitle()\n\t{\n\t\treturn title;\n\t}", "@NonNull\r\n public String getTitle() {\r\n return f_title;\r\n }", "@Override\r\n\tpublic String getPageTitle() {\t\r\n\t\treturn getTranslation(Routes.getPageTitleKey(Routes.REPORT));\r\n\t}", "public String getTitle(){\n\n\t\treturn title;\n\t}", "@java.lang.Override\n public java.lang.String getTitle() {\n java.lang.Object ref = title_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n title_ = s;\n return s;\n }\n }", "public String getTitle() {\n Object ref = title_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n title_ = s;\n return s;\n }\n }", "public java.lang.String getTitle() {\n java.lang.Object ref = title_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n title_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getTitle() {\n java.lang.Object ref = title_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n title_ = s;\n return s;\n }\n }", "public java.lang.String getTitle() {\n java.lang.Object ref = title_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n title_ = s;\n return s;\n }\n }", "public java.lang.String getTitle() {\n java.lang.Object ref = title_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n title_ = s;\n return s;\n }\n }", "public String getTitle() {\r\n\t\treturn title;\r\n\t}", "public String getTitle() {\r\n\t\treturn title;\r\n\t}", "public String getTitle() {\r\n\t\treturn title;\r\n\t}", "public String getTitle() {\r\n\t\treturn title;\r\n\t}", "public String getTitle() {\r\n\t\treturn title;\r\n\t}", "public String getTitle() {\r\n\t\treturn title;\r\n\t}", "public String getTitle() {\r\n\t\treturn title;\r\n\t}", "public String title()\n\t{\n\t\treturn title;\n\t}", "public String getTitle()\r\n {\r\n return title;\r\n }", "public String getTitle()\r\n {\r\n return title;\r\n }", "public String getTitle()\r\n {\r\n return getSemanticObject().getProperty(swb_title);\r\n }", "@Override\r\n public String getTitle() {\n return title;\r\n }", "public java.lang.String getTitle()\n {\n return this.title;\n }", "public String getTitle()\n {\n return title;\n }", "@ObjectSupport public final String title() {\n return title==null\n ? title = createTitle()\n : title;\n }", "public String getTitle() {\r\n return title;\r\n }", "public String getTitle() {\r\n return title;\r\n }", "public String getTitle() {\r\n return title;\r\n }", "public String getTitle() {\r\n return title;\r\n }", "public String getTitle() {\r\n return title;\r\n }" ]
[ "0.75932795", "0.7533", "0.7472663", "0.73810655", "0.73520434", "0.73520434", "0.73520434", "0.73520434", "0.73520434", "0.7254565", "0.7180434", "0.70977515", "0.70818526", "0.707332", "0.70589423", "0.70589423", "0.70509595", "0.70509595", "0.70509595", "0.7044794", "0.7044794", "0.7044794", "0.7044794", "0.7044794", "0.7044794", "0.7044794", "0.7044794", "0.7044794", "0.7044794", "0.7044794", "0.7044794", "0.7044794", "0.7044794", "0.7044794", "0.70428896", "0.70428896", "0.70299566", "0.6982294", "0.6962829", "0.6947838", "0.6947838", "0.69338256", "0.6933463", "0.69310087", "0.6921453", "0.69168687", "0.6913934", "0.69131625", "0.6912266", "0.6908401", "0.69078124", "0.6907607", "0.6907429", "0.6907429", "0.6903446", "0.6885304", "0.688095", "0.6878078", "0.6866891", "0.6865141", "0.686507", "0.686507", "0.68635327", "0.6863065", "0.6863065", "0.6863065", "0.6863065", "0.6863065", "0.6863065", "0.6863065", "0.685287", "0.68483275", "0.68483275", "0.6844052", "0.68369806", "0.68340236", "0.6819478", "0.6815084", "0.6808515", "0.6808515", "0.6808515", "0.6808515", "0.6808515" ]
0.6937041
56
Creates the upper and lower boundary query Note: does not include min and max key values in the boundary as these are implicit bounds, so not required.
public static BsonDocument createPartitionBounds(final BsonValue lower, final BsonValue upper) { BsonDocument partitionBoundary = new BsonDocument(); if (lower.getBsonType() != BsonType.MIN_KEY) { partitionBoundary.append("$gte", lower); } if (upper.getBsonType() != BsonType.MAX_KEY) { partitionBoundary.append("$lt", upper); } return partitionBoundary; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BetweenCriteria(String attributeName, Object lowerBound, Object upperBound) {\n super(attributeName, lowerBound);\n this.upperBound = upperBound;\n }", "private List<ComparisonExpression> comparisons(HashMap<TimeSelector, Long> lowerBounds,\n HashMap<TimeSelector, Long> upperBounds) {\n List<ComparisonExpression> newComparisons = new ArrayList<>();\n // for all selectors, as lowerBounds has the same keys as upperBounds\n for (Map.Entry<TimeSelector, Long> entry : lowerBounds.entrySet()) {\n TimeSelector selector = entry.getKey();\n Long lower = entry.getValue();\n Long upper = upperBounds.get(selector);\n if (lower.equals(upper)) {\n newComparisons.add(new ComparisonExpression(\n new Comparison(selector, EQ, new TimeLiteral(lower)),\n new ComparableTPGMFactory()));\n } else {\n if (lower > TemporalElement.DEFAULT_TIME_FROM) {\n // check if informative: lower bound of from is trivial lower bound of to\n if (selector.getTimeProp().equals(TX_TO)) {\n TimeSelector txFromSel = new TimeSelector(selector.getVariable(), TX_FROM);\n if (lowerBounds.getOrDefault(txFromSel, TemporalElement.DEFAULT_TIME_FROM).equals(lower)) {\n continue;\n }\n } else if (selector.getTimeProp().equals(VAL_TO)) {\n TimeSelector valFromSel = new TimeSelector(selector.getVariable(), VAL_FROM);\n if (lowerBounds.getOrDefault(valFromSel, TemporalElement.DEFAULT_TIME_FROM).equals(lower)) {\n continue;\n }\n }\n // informative => build comparison\n newComparisons.add(new ComparisonExpression(\n new Comparison(new TimeLiteral(lower), LTE, selector),\n new ComparableTPGMFactory()));\n }\n if (upper < TemporalElement.DEFAULT_TIME_TO) {\n // analagously as for lower bounds\n // upper bound of to is trivial upper of from\n if (selector.getTimeProp().equals(TimeSelector.TimeField.TX_FROM)) {\n TimeSelector txToSel = new TimeSelector(selector.getVariable(), TX_TO);\n if (upperBounds.getOrDefault(txToSel, TemporalElement.DEFAULT_TIME_TO).equals(upper)) {\n continue;\n }\n } else if (selector.getTimeProp().equals(TimeSelector.TimeField.VAL_FROM)) {\n TimeSelector valToSel = new TimeSelector(selector.getVariable(), VAL_TO);\n if (upperBounds.getOrDefault(valToSel, TemporalElement.DEFAULT_TIME_TO).equals(upper)) {\n continue;\n }\n }\n // informative => build comparison\n newComparisons.add(new ComparisonExpression(\n new Comparison(selector, LTE, new TimeLiteral(upper)),\n new ComparableTPGMFactory()));\n }\n }\n }\n return newComparisons;\n }", "@Test\n public void testBoundsAsCompositesWithEqAndInRestrictions()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n ByteBuffer value3 = ByteBufferUtil.bytes(3);\n Restriction eq = newSingleEq(cfMetaData, 0, value1);\n Restriction in = newSingleIN(cfMetaData, 1, value1, value2, value3);\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(eq).mergeWith(in);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(3, bounds.size());\n assertComposite(bounds.get(0), value1, value1, EOC.START);\n assertComposite(bounds.get(1), value1, value2, EOC.START);\n assertComposite(bounds.get(2), value1, value3, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(3, bounds.size());\n assertComposite(bounds.get(0), value1, value1, EOC.END);\n assertComposite(bounds.get(1), value1, value2, EOC.END);\n assertComposite(bounds.get(2), value1, value3, EOC.END);\n }", "private void buildBoundary(Set<String> dict) {\n for (String s : dict) {\n int len = s.length();\n min = Math.min(min, len);\n max = Math.max(max, len);\n }\n }", "private List<HashMap<TimeSelector, Long>> updateLeq(\n HashMap<ComparableExpression, HashSet<ComparableExpression>> rLeq,\n HashMap<TimeSelector, Long> lowerBounds, HashMap<TimeSelector, Long> upperBounds)\n throws QueryContradictoryException {\n\n ArrayList<ArrayList<ComparableExpression>> leq = relationToTuples(rLeq);\n for (ArrayList<ComparableExpression> tuple : leq) {\n TimeSelector selector = null;\n Long literalValue = null;\n // only comparisons between a selector and a literal are interesting here\n // selector <= literal => upper(selector) = min(upper(selector), literal)\n if (tuple.get(0) instanceof TimeSelector && tuple.get(1) instanceof TimeLiteral) {\n selector = (TimeSelector) tuple.get(0);\n literalValue = ((TimeLiteral) tuple.get(1)).getMilliseconds();\n upperBounds.put(selector, Math.min(upperBounds.get(selector), literalValue));\n } else if (tuple.get(1) instanceof TimeSelector &&\n tuple.get(0) instanceof TimeLiteral) {\n // selector >= literal => lower(selector) = max(lower(selector), literal)\n selector = (TimeSelector) tuple.get(1);\n literalValue = ((TimeLiteral) tuple.get(0)).getMilliseconds();\n lowerBounds.put(selector, Math.max(lowerBounds.get(selector), literalValue));\n } else {\n continue;\n }\n\n if (lowerBounds.get(selector) > upperBounds.get(selector)) {\n throw new QueryContradictoryException();\n }\n }\n\n return Arrays.asList(lowerBounds, upperBounds);\n }", "protected String getJPARangeClause(long lowerBound, long upperBound, Map<String, Object> params) {\n params.put(\"lowerBound\", lowerBound);\n params.put(\"upperBound\", upperBound);\n return \"log.id > :lowerBound and log.id <= :upperBound\";\n }", "WindowingClauseBetween createWindowingClauseBetween();", "private List<HashMap<TimeSelector, Long>> updateEq(\n HashMap<ComparableExpression, HashSet<ComparableExpression>> rEq,\n HashMap<TimeSelector, Long> lowerBounds, HashMap<TimeSelector, Long> upperBounds)\n throws QueryContradictoryException {\n\n ArrayList<ArrayList<ComparableExpression>> eq = relationToTuples(rEq);\n for (ArrayList<ComparableExpression> tuple : eq) {\n TimeSelector selector = null;\n TimeLiteral literal = null;\n // only comparisons between a selector and a literal are interesting here\n if (tuple.get(0) instanceof TimeSelector && tuple.get(1) instanceof TimeLiteral) {\n selector = (TimeSelector) tuple.get(0);\n literal = (TimeLiteral) tuple.get(1);\n } else if (tuple.get(1) instanceof TimeSelector && tuple.get(0) instanceof TimeLiteral) {\n selector = (TimeSelector) tuple.get(1);\n literal = (TimeLiteral) tuple.get(0);\n } else {\n continue;\n }\n // for selector=literal, lowerBound(selector) = literal and upperBound(selector) = literal\n Long literalValue = literal.getMilliseconds();\n if (lowerBounds.get(selector) > literalValue || upperBounds.get(selector) < literalValue) {\n throw new QueryContradictoryException();\n } else {\n lowerBounds.put(selector, literalValue);\n upperBounds.put(selector, literalValue);\n }\n }\n return Arrays.asList(lowerBounds, upperBounds);\n }", "public static RowKeyRange getNextKeyRange(byte[] lowerRange, boolean lowerInclusive, byte[] upperRange, boolean upperInclusive) {\n if (lowerRange != RowKeyRange.UNBOUND && !lowerInclusive) {\n lowerRange = nextKey(lowerRange);\n lowerInclusive = true;\n }\n return getNextKeyRange(lowerRange, lowerInclusive, upperRange, upperInclusive);\n }", "@Test\n public void testBoundsAsCompositesWithMultiEqRestrictions()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n Restriction eq = newMultiEq(cfMetaData, 0, value1, value2);\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(eq);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.END);\n }", "public RangeFilter(Envelope queryWindow,boolean considerBoundaryIntersection)\n\t{\n\t\tthis.considerBoundaryIntersection=considerBoundaryIntersection;\n\t\tthis.queryWindow=queryWindow;\n\t}", "private void checkBound(int lowerBound, int upperBound) {\n\t\tSet setKeys = Utility.vocabHM.keySet();\n\t\tIterator i = setKeys.iterator();\n\n\t\twhile (i.hasNext()) {\n\t\t\tString s = (String) i.next();\n\t\t\tInteger df = (Integer) Utility.vocabHM.get(s);\n\n\t\t\tif ((df.intValue() <= lowerBound) || (df.intValue() >= upperBound))\n\t\t\t\ti.remove();\n\t\t}\n\t}", "@Test\n public void testBoundsAsCompositesWithMultiInRestrictions()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n ByteBuffer value3 = ByteBufferUtil.bytes(3);\n Restriction in = newMultiIN(cfMetaData, 0, asList(value1, value2), asList(value2, value3));\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(in);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(2, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.START);\n assertComposite(bounds.get(1), value2, value3, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(2, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.END);\n assertComposite(bounds.get(1), value2, value3, EOC.END);\n }", "private List<HashMap<TimeSelector, Long>> updateLt(\n HashMap<ComparableExpression, HashSet<ComparableExpression>> rLt,\n HashMap<TimeSelector, Long> lowerBounds, HashMap<TimeSelector, Long> upperBounds)\n throws QueryContradictoryException {\n\n ArrayList<ArrayList<ComparableExpression>> lt = relationToTuples(rLt);\n for (ArrayList<ComparableExpression> tuple : lt) {\n TimeSelector selector = null;\n Long literalValue = null;\n // only comparisons between a selector and a literal are interesting here\n // selector < literal => upper(selector) = min(upper(selector), literal-1)\n if (tuple.get(0) instanceof TimeSelector && tuple.get(1) instanceof TimeLiteral) {\n selector = (TimeSelector) tuple.get(0);\n literalValue = ((TimeLiteral) tuple.get(1)).getMilliseconds() - 1;\n upperBounds.put(selector, Math.min(upperBounds.get(selector), literalValue));\n } else if (tuple.get(1) instanceof TimeSelector &&\n tuple.get(0) instanceof TimeLiteral) {\n // selector > literal => lower(selector) = max(lower(selector), literal+1)\n selector = (TimeSelector) tuple.get(1);\n literalValue = ((TimeLiteral) tuple.get(0)).getMilliseconds() + 1;\n lowerBounds.put(selector, Math.max(lowerBounds.get(selector), literalValue));\n } else {\n continue;\n }\n\n if (lowerBounds.get(selector) > upperBounds.get(selector)) {\n throw new QueryContradictoryException();\n }\n }\n\n return Arrays.asList(lowerBounds, upperBounds);\n }", "public void buildInitialBand()\r\n\t{\n\t\r\n\tint bl = boundary.size();\r\n\tfor(int i=0; i<bl; i++) \r\n\t\t{\r\n\t\tInt2d bCur = boundary.get(i);\r\n\t\t//System.out.println(bCur.x + \", \" + bCur.y + \": size = \" + heap.size());\r\n\t\t\r\n\t\ttestPointsAround(bCur.x,bCur.y);\r\n\t\t}\r\n\t\r\n\t}", "public void boundsCheck(BigDecimal d) throws InvalidDatatypeValueException {\n boolean minOk = false;\n boolean maxOk = false;\n String upperBound = (fMaxExclusive != null )? ( fMaxExclusive.toString() ):\n ( ( fMaxInclusive != null )?fMaxInclusive.toString():\"\");\n \n String lowerBound = (fMinExclusive != null )? ( fMinExclusive.toString() ):\n (( fMinInclusive != null )?fMinInclusive.toString():\"\"); \n String lowerBoundIndicator = \"\";\n String upperBoundIndicator = \"\";\n \n \n if ( isMaxInclusiveDefined){\n maxOk = (d.compareTo(fMaxInclusive) <= 0);\n upperBound = fMaxInclusive.toString();\n if ( upperBound != null ){\n upperBoundIndicator = \"<=\"; \n } else {\n upperBound=\"\";\n }\n } else if ( isMaxExclusiveDefined){\n maxOk = (d.compareTo(fMaxExclusive) < 0);\n upperBound = fMaxExclusive.toString();\n if ( upperBound != null ){\n upperBoundIndicator = \"<\";\n } else {\n upperBound = \"\";\n }\n } else{\n maxOk = (!isMaxInclusiveDefined && ! isMaxExclusiveDefined);\n }\n \n \n if ( isMinInclusiveDefined){\n minOk = (d.compareTo(fMinInclusive) >= 0);\n lowerBound = fMinInclusive.toString();\n if( lowerBound != null ){\n lowerBoundIndicator = \"<=\";\n }else {\n lowerBound = \"\";\n }\n } else if ( isMinExclusiveDefined){\n minOk = (d.compareTo(fMinExclusive) > 0);\n lowerBound = fMinExclusive.toString();\n if( lowerBound != null ){\n lowerBoundIndicator = \"<\";\n } else {\n lowerBound = \"\";\n }\n } else{\n minOk = (!isMinInclusiveDefined && !isMinExclusiveDefined);\n }\n \n if (!(minOk && maxOk))\n throw new InvalidDatatypeValueException (\n getErrorString(DatatypeMessageProvider.OutOfBounds,\n DatatypeMessageProvider.MSG_NONE,\n new Object [] { d.toString() , lowerBound ,\n upperBound, lowerBoundIndicator, upperBoundIndicator}));\n \n }", "public RangeFilter(Polygon queryWindow,boolean considerBoundaryIntersection)\n\t{\n\t\tthis.considerBoundaryIntersection=considerBoundaryIntersection;\n\t\tthis.queryWindow=queryWindow;\n\t}", "public BetweenPredicate(Expr compareExpr, Expr lowerBound, Expr upperBound,\n boolean isNotBetween) {\n children_.add(compareExpr);\n children_.add(lowerBound);\n children_.add(upperBound);\n isNotBetween_ = isNotBetween;\n }", "@Test\n public void testBoundsAsCompositesWithEqAndSliceRestrictions()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n ByteBuffer value3 = ByteBufferUtil.bytes(3);\n\n Restriction eq = newSingleEq(cfMetaData, 0, value3);\n\n Restriction slice = newSingleSlice(cfMetaData, 1, Bound.START, false, value1);\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(eq).mergeWith(slice);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value3, value1, EOC.END);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value3, EOC.END);\n\n slice = newSingleSlice(cfMetaData, 1, Bound.START, true, value1);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(eq).mergeWith(slice);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value3, value1, EOC.NONE);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value3, EOC.END);\n\n slice = newSingleSlice(cfMetaData, 1, Bound.END, true, value1);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(eq).mergeWith(slice);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value3, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value3, value1, EOC.END);\n\n slice = newSingleSlice(cfMetaData, 1, Bound.END, false, value1);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(eq).mergeWith(slice);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value3, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value3, value1, EOC.START);\n\n slice = newSingleSlice(cfMetaData, 1, Bound.START, false, value1);\n Restriction slice2 = newSingleSlice(cfMetaData, 1, Bound.END, false, value2);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(eq).mergeWith(slice).mergeWith(slice2);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value3, value1, EOC.END);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value3, value2, EOC.START);\n\n slice = newSingleSlice(cfMetaData, 1, Bound.START, true, value1);\n slice2 = newSingleSlice(cfMetaData, 1, Bound.END, true, value2);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(eq).mergeWith(slice).mergeWith(slice2);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value3, value1, EOC.NONE);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value3, value2, EOC.END);\n }", "public static double inInterval(double lowerBound, double value, double upperBound) {\n/* 67 */ if (value < lowerBound)\n/* 68 */ return lowerBound; \n/* 69 */ if (upperBound < value)\n/* 70 */ return upperBound; \n/* 71 */ return value;\n/* */ }", "public RangeVector(float[] values, float[] upper, float[] lower) {\n checkArgument(values.length > 0, \" dimensions must be > 0\");\n checkArgument(values.length == upper.length && upper.length == lower.length, \"dimensions must be equal\");\n for (int i = 0; i < values.length; i++) {\n checkArgument(upper[i] >= values[i] && values[i] >= lower[i], \"incorrect semantics\");\n }\n this.values = Arrays.copyOf(values, values.length);\n this.upper = Arrays.copyOf(upper, upper.length);\n this.lower = Arrays.copyOf(lower, lower.length);\n }", "protected abstract R toRange(D lower, D upper);", "public void computeBoundingBox() {\n\taveragePosition = new Point3(center);\n tMat.rightMultiply(averagePosition);\n \n minBound = new Point3(Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY);\n maxBound = new Point3(Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY);\n // Initialize\n Point3[] v = new Point3[8];\n for (int i = 0; i < 8; i++)\n \tv[i] = new Point3(center);\n // Vertices of the box\n v[0].add(new Vector3(-radius, -radius, -height/2.0));\n v[1].add(new Vector3(-radius, radius, -height/2.0));\n v[2].add(new Vector3(radius, -radius, -height/2.0));\n v[3].add(new Vector3(radius, radius, -height/2.0));\n v[4].add(new Vector3(-radius, -radius, height/2.0));\n v[5].add(new Vector3(-radius, radius, height/2.0));\n v[6].add(new Vector3(radius, -radius, height/2.0));\n v[7].add(new Vector3(radius, radius, height/2.0));\n // Update minBound and maxBound\n for (int i = 0; i < 8; i++)\n {\n \ttMat.rightMultiply(v[i]);\n \tif (v[i].x < minBound.x)\n \t\tminBound.x = v[i].x;\n \tif (v[i].x > maxBound.x)\n \t\tmaxBound.x = v[i].x;\n \tif (v[i].y < minBound.y)\n \t\tminBound.y = v[i].y;\n \tif (v[i].y > maxBound.y)\n \t\tmaxBound.y = v[i].y;\n \tif (v[i].z < minBound.z)\n \t\tminBound.z = v[i].z;\n \tif (v[i].z > maxBound.z)\n \t\tmaxBound.z = v[i].z;\n }\n \n }", "@Test\n public void testBoundsAsCompositesWithMultiEqAndSingleSliceRestrictions()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC, Sort.ASC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n ByteBuffer value3 = ByteBufferUtil.bytes(3);\n\n // (clustering_0, clustering_1) = (1, 2) AND clustering_2 > 3\n Restriction multiEq = newMultiEq(cfMetaData, 0, value1, value2);\n Restriction singleSlice = newSingleSlice(cfMetaData, 2, Bound.START, false, value3);\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(multiEq).mergeWith(singleSlice);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.END);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.END);\n }", "public int getBound();", "private float[] genBounds(TECarpentersBlock TE, int quad)\n \t{\n \t\tfloat xMin = 0.0F;\n \t\tfloat zMin = 0.0F;\n \t\tfloat xMax = 1.0F;\n \t\tfloat zMax = 1.0F;\t\t\n \t\t\n \t\tswitch (quad)\n \t\t{\n \t\tcase Collapsible.QUAD_XZNN:\n \t\t\txMax = 0.5F;\n \t\t\tzMax = 0.5F;\n \t\t\tbreak;\n \t\tcase Collapsible.QUAD_XZNP:\n \t\t\txMax = 0.5F;\n \t\t\tzMin = 0.5F;\n \t\t\tbreak;\n \t\tcase Collapsible.QUAD_XZPN:\n \t\t\txMin = 0.5F;\n \t\t\tzMax = 0.5F;\n \t\t\tbreak;\n \t\tcase Collapsible.QUAD_XZPP:\n \t\t\txMin = 0.5F;\n \t\t\tzMin = 0.5F;\n \t\t\tbreak;\n \t\t}\n \t\t\n \t\tfloat maxHeight = getMaxHeight(TE);\n \t\tfloat height = Collapsible.getQuadHeight(TE, quad) / 16.0F;\n \t\t\n \t\t/* Make quads stagger no more than 0.5F so player can always walk across them. */\n \t\tif ((maxHeight - height) > 0.5F)\n \t\t\theight = maxHeight - 0.5F;\n \t\t\n \t\treturn new float[] { xMin, 0.0F, zMin, xMax, height, zMax };\t\t\n \t}", "@Test\n public void testBoundsAsCompositesWithSingleEqAndMultiINRestrictions()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC, Sort.ASC, Sort.ASC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n ByteBuffer value3 = ByteBufferUtil.bytes(3);\n ByteBuffer value4 = ByteBufferUtil.bytes(4);\n ByteBuffer value5 = ByteBufferUtil.bytes(5);\n\n // clustering_0 = 1 AND (clustering_1, clustering_2) IN ((2, 3), (4, 5))\n Restriction singleEq = newSingleEq(cfMetaData, 0, value1);\n Restriction multiIN = newMultiIN(cfMetaData, 1, asList(value2, value3), asList(value4, value5));\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(singleEq).mergeWith(multiIN);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(2, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.START);\n assertComposite(bounds.get(1), value1, value4, value5, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(2, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.END);\n assertComposite(bounds.get(1), value1, value4, value5, EOC.END);\n\n // clustering_0 = 1 AND (clustering_1, clustering_2) IN ((2, 3))\n singleEq = newSingleEq(cfMetaData, 0, value1);\n multiIN = newMultiIN(cfMetaData, 1, asList(value2, value3));\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(multiIN).mergeWith(singleEq);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.END);\n\n // clustering_0 = 1 AND clustering_1 = 5 AND (clustering_2, clustering_3) IN ((2, 3), (4, 5))\n singleEq = newSingleEq(cfMetaData, 0, value1);\n Restriction singleEq2 = newSingleEq(cfMetaData, 1, value5);\n multiIN = newMultiIN(cfMetaData, 2, asList(value2, value3), asList(value4, value5));\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(singleEq).mergeWith(multiIN).mergeWith(singleEq2);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(2, bounds.size());\n assertComposite(bounds.get(0), value1, value5, value2, value3, EOC.START);\n assertComposite(bounds.get(1), value1, value5, value4, value5, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(2, bounds.size());\n assertComposite(bounds.get(0), value1, value5, value2, value3, EOC.END);\n assertComposite(bounds.get(1), value1, value5, value4, value5, EOC.END);\n }", "protected void mapValueToWithinBounds() {\n if (getAllele() != null) {\n \tFloat d_value = ( (Float) getAllele());\n if (d_value.isInfinite()) {\n // Here we have to break to avoid a stack overflow.\n // ------------------------------------------------\n return;\n }\n // If the value exceeds either the upper or lower bounds, then\n // map the value to within the legal range. To do this, we basically\n // calculate the distance between the value and the float min,\n // then multiply it with a random number and then care that the lower\n // boundary is added.\n // ------------------------------------------------------------------\n if (d_value.floatValue() > m_upperBound ||\n d_value.floatValue() < m_lowerBound) {\n RandomGenerator rn;\n if (getConfiguration() != null) {\n rn = getConfiguration().getRandomGenerator();\n }\n else {\n rn = new StockRandomGenerator();\n }\n setAllele(new Float((rn.nextFloat()\n * ((m_upperBound - m_lowerBound))) + m_lowerBound));\n }\n }\n }", "public void setValidRange (int lowerBounds, int upperBounds)\r\n\t{\r\n\t\tm_lowerBounds = lowerBounds;\r\n\t\tm_upperBounds = upperBounds;\r\n\t}", "@Test\n public void testBoundsAsCompositesWithSingleEqAndMultiEqRestrictions()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC, Sort.ASC, Sort.ASC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n ByteBuffer value3 = ByteBufferUtil.bytes(3);\n ByteBuffer value4 = ByteBufferUtil.bytes(4);\n\n // clustering_0 = 1 AND (clustering_1, clustering_2) = (2, 3)\n Restriction singleEq = newSingleEq(cfMetaData, 0, value1);\n Restriction multiEq = newMultiEq(cfMetaData, 1, value2, value3);\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(singleEq).mergeWith(multiEq);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.END);\n\n // clustering_0 = 1 AND clustering_1 = 2 AND (clustering_2, clustering_3) = (3, 4)\n singleEq = newSingleEq(cfMetaData, 0, value1);\n Restriction singleEq2 = newSingleEq(cfMetaData, 1, value2);\n multiEq = newMultiEq(cfMetaData, 2, value3, value4);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(singleEq).mergeWith(singleEq2).mergeWith(multiEq);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, value4, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, value4, EOC.END);\n\n // (clustering_0, clustering_1) = (1, 2) AND clustering_2 = 3\n singleEq = newSingleEq(cfMetaData, 2, value3);\n multiEq = newMultiEq(cfMetaData, 0, value1, value2);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(singleEq).mergeWith(multiEq);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.END);\n\n // clustering_0 = 1 AND (clustering_1, clustering_2) = (2, 3) AND clustering_3 = 4\n singleEq = newSingleEq(cfMetaData, 0, value1);\n singleEq2 = newSingleEq(cfMetaData, 3, value4);\n multiEq = newMultiEq(cfMetaData, 1, value2, value3);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(singleEq).mergeWith(multiEq).mergeWith(singleEq2);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, value4, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, value4, EOC.END);\n }", "@Test\n public void testBoundsAsCompositesWithMultiSliceRestrictionsWithOneDescendingAndOneAscendingClusteringColumns()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.DESC, Sort.ASC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n\n // (clustering_0, clustering1) > (1, 2)\n Restriction slice = newMultiSlice(cfMetaData, 0, Bound.START, false, value1, value2);\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(slice);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(2, bounds.size());\n assertEmptyComposite(bounds.get(0));\n assertComposite(bounds.get(1), value1, value2, EOC.END);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(2, bounds.size());\n assertComposite(bounds.get(0), value1, EOC.START);\n assertComposite(bounds.get(1), value1, EOC.END);\n\n // (clustering_0, clustering1) >= (1, 2)\n slice = newMultiSlice(cfMetaData, 0, Bound.START, true, value1, value2);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(slice);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(2, bounds.size());\n assertEmptyComposite(bounds.get(0));\n assertComposite(bounds.get(1), value1, value2, EOC.NONE);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(2, bounds.size());\n assertComposite(bounds.get(0), value1, EOC.START);\n assertComposite(bounds.get(1), value1, EOC.END);\n\n // (clustering_0, clustering1) <= (1, 2)\n slice = newMultiSlice(cfMetaData, 0, Bound.END, true, value1, value2);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(slice);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(2, bounds.size());\n assertComposite(bounds.get(0), value1, EOC.START);\n assertComposite(bounds.get(1), value1, EOC.END);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(2, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.END);\n assertEmptyComposite(bounds.get(1));\n\n // (clustering_0, clustering1) < (1, 2)\n slice = newMultiSlice(cfMetaData, 0, Bound.END, false, value1, value2);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(slice);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(2, bounds.size());\n assertComposite(bounds.get(0), value1, EOC.START);\n assertComposite(bounds.get(1), value1, EOC.END);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(2, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.START);\n assertEmptyComposite(bounds.get(1));\n\n // (clustering_0, clustering1) > (1, 2) AND (clustering_0) < (2)\n slice = newMultiSlice(cfMetaData, 0, Bound.START, false, value1, value2);\n Restriction slice2 = newMultiSlice(cfMetaData, 0, Bound.END, false, value2);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(slice).mergeWith(slice2);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(2, bounds.size());\n assertComposite(bounds.get(0), value2, EOC.END);\n assertComposite(bounds.get(1), value1, value2, EOC.END);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(2, bounds.size());\n assertComposite(bounds.get(0), value1, EOC.START);\n assertComposite(bounds.get(1), value1, EOC.END);\n\n // (clustering_0) > (1) AND (clustering_0, clustering1) < (2, 1)\n slice = newMultiSlice(cfMetaData, 0, Bound.START, false, value1);\n slice2 = newMultiSlice(cfMetaData, 0, Bound.END, false, value2, value1);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(slice).mergeWith(slice2);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(2, bounds.size());\n assertComposite(bounds.get(0), value2, EOC.START);\n assertComposite(bounds.get(1), value2, EOC.END);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(2, bounds.size());\n assertComposite(bounds.get(0), value2, value1, EOC.START);\n assertComposite(bounds.get(1), value1, EOC.START);\n\n // (clustering_0, clustering1) >= (1, 2) AND (clustering_0, clustering1) <= (2, 1)\n slice = newMultiSlice(cfMetaData, 0, Bound.START, true, value1, value2);\n slice2 = newMultiSlice(cfMetaData, 0, Bound.END, true, value2, value1);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(slice).mergeWith(slice2);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(3, bounds.size());\n assertComposite(bounds.get(0), value2, EOC.START);\n assertComposite(bounds.get(1), value2, EOC.END);\n assertComposite(bounds.get(2), value1, value2, EOC.NONE);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(3, bounds.size());\n assertComposite(bounds.get(0), value2, value1, EOC.END);\n assertComposite(bounds.get(1), value1, EOC.START);\n assertComposite(bounds.get(2), value1, EOC.END);\n }", "public void setLowerBound (int lowerBound) throws ModelException;", "@Test\n public void testBoundsAsCompositesWithMultiSliceRestrictionsWithOneAscendingAndOneDescendingClusteringColumns()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.DESC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n\n // (clustering_0, clustering1) > (1, 2)\n Restriction slice = newMultiSlice(cfMetaData, 0, Bound.START, false, value1, value2);\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(slice);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(2, bounds.size());\n assertComposite(bounds.get(0), value1, EOC.START);\n assertComposite(bounds.get(1), value1, EOC.END);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(2, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.START);\n assertEmptyComposite(bounds.get(1));\n\n // (clustering_0, clustering1) >= (1, 2)\n slice = newMultiSlice(cfMetaData, 0, Bound.START, true, value1, value2);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(slice);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(2, bounds.size());\n assertComposite(bounds.get(0), value1, EOC.START);\n assertComposite(bounds.get(1), value1, EOC.END);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(2, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.END);\n assertEmptyComposite(bounds.get(1));\n\n // (clustering_0, clustering1) <= (1, 2)\n slice = newMultiSlice(cfMetaData, 0, Bound.END, true, value1, value2);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(slice);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(2, bounds.size());\n assertEmptyComposite(bounds.get(0));\n assertComposite(bounds.get(1), value1, value2, EOC.NONE);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(2, bounds.size());\n assertComposite(bounds.get(0), value1, EOC.START);\n assertComposite(bounds.get(1), value1, EOC.END);\n\n // (clustering_0, clustering1) < (1, 2)\n slice = newMultiSlice(cfMetaData, 0, Bound.END, false, value1, value2);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(slice);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(2, bounds.size());\n assertEmptyComposite(bounds.get(0));\n assertComposite(bounds.get(1), value1, value2, EOC.END);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(2, bounds.size());\n assertComposite(bounds.get(0), value1, EOC.START);\n assertComposite(bounds.get(1), value1, EOC.END);\n\n // (clustering_0, clustering1) > (1, 2) AND (clustering_0) < (2)\n slice = newMultiSlice(cfMetaData, 0, Bound.START, false, value1, value2);\n Restriction slice2 = newMultiSlice(cfMetaData, 0, Bound.END, false, value2);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(slice).mergeWith(slice2);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(2, bounds.size());\n assertComposite(bounds.get(0), value1, EOC.START);\n assertComposite(bounds.get(1), value1, EOC.END);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(2, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.START);\n assertComposite(bounds.get(1), value2, EOC.START);\n\n // (clustering_0, clustering1) >= (1, 2) AND (clustering_0, clustering1) <= (2, 1)\n slice = newMultiSlice(cfMetaData, 0, Bound.START, true, value1, value2);\n slice2 = newMultiSlice(cfMetaData, 0, Bound.END, true, value2, value1);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(slice).mergeWith(slice2);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(3, bounds.size());\n assertComposite(bounds.get(0), value1, EOC.START);\n assertComposite(bounds.get(1), value1, EOC.END);\n assertComposite(bounds.get(2), value2, value1, EOC.NONE);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(3, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.END);\n assertComposite(bounds.get(1), value2, EOC.START);\n assertComposite(bounds.get(2), value2, EOC.END);\n }", "@Test\n public void testBoundsAsCompositesWithSingleEqAndSliceRestrictions()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC, Sort.ASC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n ByteBuffer value3 = ByteBufferUtil.bytes(3);\n ByteBuffer value4 = ByteBufferUtil.bytes(4);\n ByteBuffer value5 = ByteBufferUtil.bytes(5);\n\n // clustering_0 = 1 AND (clustering_1, clustering_2) > (2, 3)\n Restriction singleEq = newSingleEq(cfMetaData, 0, value1);\n Restriction multiSlice = newMultiSlice(cfMetaData, 1, Bound.START, false, value2, value3);\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(singleEq).mergeWith(multiSlice);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.END);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, EOC.END);\n\n // clustering_0 = 1 AND (clustering_1, clustering_2) > (2, 3) AND (clustering_1) < (4)\n singleEq = newSingleEq(cfMetaData, 0, value1);\n multiSlice = newMultiSlice(cfMetaData, 1, Bound.START, false, value2, value3);\n Restriction multiSlice2 = newMultiSlice(cfMetaData, 1, Bound.END, false, value4);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(multiSlice2).mergeWith(singleEq).mergeWith(multiSlice);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.END);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value4, EOC.START);\n\n // clustering_0 = 1 AND (clustering_1, clustering_2) => (2, 3) AND (clustering_1, clustering_2) <= (4, 5)\n singleEq = newSingleEq(cfMetaData, 0, value1);\n multiSlice = newMultiSlice(cfMetaData, 1, Bound.START, true, value2, value3);\n multiSlice2 = newMultiSlice(cfMetaData, 1, Bound.END, true, value4, value5);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(multiSlice2).mergeWith(singleEq).mergeWith(multiSlice);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.NONE);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value4, value5, EOC.END);\n }", "private void appendBBOXOperationAsSQL( StatementBuffer query, SpatialOperation operation )\n throws GeometryException {\n Envelope env = operation.getGeometry().getEnvelope();\n Surface surface = GeometryFactory.createSurface( env, env.getCoordinateSystem() );\n\n query.append( \"Intersects(\" );\n appendPropertyNameAsSQL( query, operation.getPropertyName() );\n query.append( \",GeomFromWKB(?))\" );\n addMySQLGeometryArgument( query, surface );\n }", "public int upperBoundary(){\r\n\t\treturn yStart - Constants.FLOOR_HEIGHT;\r\n\t}", "@Test\n public void testBoundsAsCompositesWithMultiSliceRestrictionsWithTwoAscendingAndTwoDescendingClusteringColumns()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC, Sort.DESC, Sort.DESC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n ByteBuffer value3 = ByteBufferUtil.bytes(3);\n ByteBuffer value4 = ByteBufferUtil.bytes(4);\n\n // (clustering_0, clustering1, clustering_2, clustering_3) > (1, 2, 3, 4)\n Restriction slice = newMultiSlice(cfMetaData, 0, Bound.START, false, value1, value2, value3, value4);\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(slice);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(2, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.START);\n assertComposite(bounds.get(1), value1, value2, EOC.END);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(2, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, value4, EOC.START);\n assertEmptyComposite(bounds.get(1));\n\n // clustering_0 = 1 AND (clustering_1, clustering_2, clustering_3) > (2, 3, 4)\n Restriction eq = newSingleEq(cfMetaData, 0, value1);\n slice = newMultiSlice(cfMetaData, 1, Bound.START, false, value2, value3, value4);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(slice);\n restrictions = restrictions.mergeWith(eq);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(2, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.START);\n assertComposite(bounds.get(1), value1, value2, EOC.END);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(2, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, value4, EOC.START);\n assertComposite(bounds.get(1), value1, EOC.END);\n\n // clustering_0 = 1 AND (clustering_1, clustering_2, clustering_3) > (2, 3, 4)\n Restriction in = newSingleIN(cfMetaData, 0, value1, value2);\n slice = newMultiSlice(cfMetaData, 1, Bound.START, false, value2, value3, value4);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(slice);\n restrictions = restrictions.mergeWith(in);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(4, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.START);\n assertComposite(bounds.get(1), value1, value2, EOC.END);\n assertComposite(bounds.get(2), value2, value2, EOC.START);\n assertComposite(bounds.get(3), value2, value2, EOC.END);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(4, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, value4, EOC.START);\n assertComposite(bounds.get(1), value1, EOC.END);\n assertComposite(bounds.get(2), value2, value2, value3, value4, EOC.START);\n assertComposite(bounds.get(3), value2, EOC.END);\n\n // (clustering_0, clustering1) >= (1, 2)\n slice = newMultiSlice(cfMetaData, 0, Bound.START, true, value1, value2);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(slice);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.NONE);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertEmptyComposite(bounds.get(0));\n\n // (clustering_0, clustering1, clustering_2, clustering_3) >= (1, 2, 3, 4)\n slice = newMultiSlice(cfMetaData, 0, Bound.START, true, value1, value2, value3, value4);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(slice);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(2, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.START);\n assertComposite(bounds.get(1), value1, value2, EOC.END);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(2, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, value4, EOC.END);\n assertEmptyComposite(bounds.get(1));\n\n // (clustering_0, clustering1, clustering_2, clustering_3) <= (1, 2, 3, 4)\n slice = newMultiSlice(cfMetaData, 0, Bound.END, true, value1, value2, value3, value4);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(slice);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(2, bounds.size());\n assertEmptyComposite(bounds.get(0));\n assertComposite(bounds.get(1), value1, value2, value3, value4, EOC.NONE);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(2, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.START);\n assertComposite(bounds.get(1), value1, value2, EOC.END);\n\n // (clustering_0, clustering1, clustering_2, clustering_3) < (1, 2, 3, 4)\n slice = newMultiSlice(cfMetaData, 0, Bound.END, false, value1, value2, value3, value4);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(slice);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(2, bounds.size());\n assertEmptyComposite(bounds.get(0));\n assertComposite(bounds.get(1), value1, value2, value3, value4, EOC.END);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(2, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.START);\n assertComposite(bounds.get(1), value1, value2, EOC.END);\n\n // (clustering_0, clustering1, clustering_2, clustering_3) > (1, 2, 3, 4) AND (clustering_0, clustering_1) < (2, 3)\n slice = newMultiSlice(cfMetaData, 0, Bound.START, false, value1, value2, value3, value4);\n Restriction slice2 = newMultiSlice(cfMetaData, 0, Bound.END, false, value2, value3);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(slice).mergeWith(slice2);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(2, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.START);\n assertComposite(bounds.get(1), value1, value2, EOC.END);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(2, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, value4, EOC.START);\n assertComposite(bounds.get(1), value2, value3, EOC.START);\n\n // (clustering_0, clustering1, clustering_2, clustering_3) >= (1, 2, 3, 4) AND (clustering_0, clustering1, clustering_2, clustering_3) <= (4, 3, 2, 1)\n slice = newMultiSlice(cfMetaData, 0, Bound.START, true, value1, value2, value3, value4);\n slice2 = newMultiSlice(cfMetaData, 0, Bound.END, true, value4, value3, value2, value1);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(slice).mergeWith(slice2);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(3, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.START);\n assertComposite(bounds.get(1), value1, value2, EOC.END);\n assertComposite(bounds.get(2), value4, value3, value2, value1, EOC.NONE);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(3, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, value4, EOC.END);\n assertComposite(bounds.get(1), value4, value3, EOC.START);\n assertComposite(bounds.get(2), value4, value3, EOC.END);\n }", "protected abstract D getUpper(R range);", "Condition between(QueryParameter parameter, Object x, Object y);", "ValueRangeConstraint createValueRangeConstraint();", "public Rect getBound() {\n return new Rect((int) (x - radius), (int) (y - radius), (int) (x + radius), (int) (y + radius));\n }", "private double getRangeCenter(int lowerBound, int upperBound) {\n return (lowerBound + upperBound) / 2.0;\n }", "@Test\n public void testBoundsAsCompositesWithMultiSliceRestrictionsWithTwoDescendingClusteringColumns()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.DESC, Sort.DESC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n\n // (clustering_0, clustering1) > (1, 2)\n Restriction slice = newMultiSlice(cfMetaData, 0, Bound.START, false, value1, value2);\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(slice);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertEmptyComposite(bounds.get(0));\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.START);\n\n // (clustering_0, clustering1) >= (1, 2)\n slice = newMultiSlice(cfMetaData, 0, Bound.START, true, value1, value2);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(slice);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertEmptyComposite(bounds.get(0));\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.END);\n\n // (clustering_0, clustering1) <= (1, 2)\n slice = newMultiSlice(cfMetaData, 0, Bound.END, true, value1, value2);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(slice);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.NONE);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertEmptyComposite(bounds.get(0));\n\n // (clustering_0, clustering1) < (1, 2)\n slice = newMultiSlice(cfMetaData, 0, Bound.END, false, value1, value2);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(slice);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.END);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertEmptyComposite(bounds.get(0));\n\n\n // (clustering_0, clustering1) > (1, 2) AND (clustering_0) < (2)\n slice = newMultiSlice(cfMetaData, 0, Bound.START, false, value1, value2);\n Restriction slice2 = newMultiSlice(cfMetaData, 0, Bound.END, false, value2);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(slice).mergeWith(slice2);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value2, EOC.END);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.START);\n\n // (clustering_0, clustering1) >= (1, 2) AND (clustering_0, clustering1) <= (2, 1)\n slice = newMultiSlice(cfMetaData, 0, Bound.START, true, value1, value2);\n slice2 = newMultiSlice(cfMetaData, 0, Bound.END, true, value2, value1);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(slice).mergeWith(slice2);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value2, value1, EOC.NONE);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.END);\n }", "private Filter rangeFilter(String start, String end, Object minValue, Object maxValue) {\n Filter f1 = FF.lessOrEqual(FF.property(start), FF.literal(maxValue));\n Filter f2 = FF.greaterOrEqual(FF.property(end), FF.literal(minValue));\n return FF.and(Arrays.asList(f1, f2));\n\n// Filter f1 = FF.greaterOrEqual(FF.property(start), FF.literal(minValue));\n// Filter f2 = FF.lessOrEqual(FF.property(end), FF.literal(maxValue));\n// return FF.and(Arrays.asList(f1, f2));\n }", "@Test\n public void testBoundsAsCompositesWithOneInRestrictionsAndOneClusteringColumn()\n {\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n ByteBuffer value3 = ByteBufferUtil.bytes(3);\n\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC);\n\n Restriction in = newSingleIN(cfMetaData, 0, value1, value2, value3);\n\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(in);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(3, bounds.size());\n assertComposite(bounds.get(0), value1, EOC.START);\n assertComposite(bounds.get(1), value2, EOC.START);\n assertComposite(bounds.get(2), value3, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(3, bounds.size());\n assertComposite(bounds.get(0), value1, EOC.END);\n assertComposite(bounds.get(1), value2, EOC.END);\n assertComposite(bounds.get(2), value3, EOC.END);\n }", "@Test\n public void testBoundsAsCompositesWithMultiSliceRestrictionsMixingAscendingDescendingClusteringColumns()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.DESC, Sort.ASC, Sort.DESC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n ByteBuffer value3 = ByteBufferUtil.bytes(3);\n ByteBuffer value4 = ByteBufferUtil.bytes(4);\n\n // (clustering_0, clustering1, clustering_2, clustering_3) > (1, 2, 3, 4)\n Restriction slice = newMultiSlice(cfMetaData, 0, Bound.START, false, value1, value2, value3, value4);\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(slice);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(4, bounds.size());\n assertComposite(bounds.get(0), value1, EOC.START);\n assertComposite(bounds.get(1), value1, value2, value3, EOC.START);\n assertComposite(bounds.get(2), value1, value2, value3, EOC.END);\n assertComposite(bounds.get(3), value1, EOC.END);\n\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(4, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.START);\n assertComposite(bounds.get(1), value1, value2, value3, value4, EOC.START);\n assertComposite(bounds.get(2), value1, value2, EOC.END);\n assertEmptyComposite(bounds.get(3));\n\n // clustering_0 = 1 AND (clustering_1, clustering_2, clustering_3) > (2, 3, 4)\n Restriction eq = newSingleEq(cfMetaData, 0, value1);\n slice = newMultiSlice(cfMetaData, 1, Bound.START, false, value2, value3, value4);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(slice);\n restrictions = restrictions.mergeWith(eq);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(3, bounds.size());\n assertComposite(bounds.get(0), value1, EOC.START);\n assertComposite(bounds.get(1), value1, value2, value3, EOC.START);\n assertComposite(bounds.get(2), value1, value2, value3, EOC.END);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(3, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.START);\n assertComposite(bounds.get(1), value1, value2, value3, value4, EOC.START);\n assertComposite(bounds.get(2), value1, value2, EOC.END);\n\n // (clustering_0, clustering1) >= (1, 2)\n slice = newMultiSlice(cfMetaData, 0, Bound.START, true, value1, value2);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(slice);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(2, bounds.size());\n assertComposite(bounds.get(0), value1, EOC.START);\n assertComposite(bounds.get(1), value1, EOC.END);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(2, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.END);\n assertEmptyComposite(bounds.get(1));\n\n // (clustering_0, clustering1, clustering_2, clustering_3) >= (1, 2, 3, 4)\n slice = newMultiSlice(cfMetaData, 0, Bound.START, true, value1, value2, value3, value4);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(slice);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(4, bounds.size());\n assertComposite(bounds.get(0), value1, EOC.START);\n assertComposite(bounds.get(1), value1, value2, value3, EOC.START);\n assertComposite(bounds.get(2), value1, value2, value3, EOC.END);\n assertComposite(bounds.get(3), value1, EOC.END);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(4, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.START);\n assertComposite(bounds.get(1), value1, value2, value3, value4, EOC.END);\n assertComposite(bounds.get(2), value1, value2, EOC.END);\n assertEmptyComposite(bounds.get(3));\n\n\n // (clustering_0, clustering1, clustering_2, clustering_3) <= (1, 2, 3, 4)\n slice = newMultiSlice(cfMetaData, 0, Bound.END, true, value1, value2, value3, value4);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(slice);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(4, bounds.size());\n assertEmptyComposite(bounds.get(0));\n assertComposite(bounds.get(1), value1, value2, EOC.START);\n assertComposite(bounds.get(2), value1, value2, value3, value4, EOC.NONE);\n assertComposite(bounds.get(3), value1, value2, EOC.END);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(4, bounds.size());\n assertComposite(bounds.get(0), value1, EOC.START);\n assertComposite(bounds.get(1), value1, value2, value3, EOC.START);\n assertComposite(bounds.get(2), value1, value2, value3, EOC.END);\n assertComposite(bounds.get(3), value1, EOC.END);\n\n // (clustering_0, clustering1, clustering_2, clustering_3) < (1, 2, 3, 4)\n slice = newMultiSlice(cfMetaData, 0, Bound.END, false, value1, value2, value3, value4);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(slice);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(4, bounds.size());\n assertEmptyComposite(bounds.get(0));\n assertComposite(bounds.get(1), value1, value2, EOC.START);\n assertComposite(bounds.get(2), value1, value2, value3, value4, EOC.END);\n assertComposite(bounds.get(3), value1, value2, EOC.END);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(4, bounds.size());\n assertComposite(bounds.get(0), value1, EOC.START);\n assertComposite(bounds.get(1), value1, value2, value3, EOC.START);\n assertComposite(bounds.get(2), value1, value2, value3, EOC.END);\n assertComposite(bounds.get(3), value1, EOC.END);\n\n // (clustering_0, clustering1, clustering_2, clustering_3) > (1, 2, 3, 4) AND (clustering_0, clustering_1) < (2, 3)\n slice = newMultiSlice(cfMetaData, 0, Bound.START, false, value1, value2, value3, value4);\n Restriction slice2 = newMultiSlice(cfMetaData, 0, Bound.END, false, value2, value3);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(slice).mergeWith(slice2);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(5, bounds.size());\n assertComposite(bounds.get(0), value1, EOC.START);\n assertComposite(bounds.get(1), value1, value2, value3, EOC.START);\n assertComposite(bounds.get(2), value1, value2, value3, EOC.END);\n assertComposite(bounds.get(3), value1, EOC.END);\n assertComposite(bounds.get(4), value2, value3, EOC.END);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(5, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.START);\n assertComposite(bounds.get(1), value1, value2, value3, value4, EOC.START);\n assertComposite(bounds.get(2), value1, value2, EOC.END);\n assertComposite(bounds.get(3), value2, EOC.START);\n assertComposite(bounds.get(4), value2, EOC.END);\n\n // (clustering_0, clustering1, clustering_2, clustering_3) >= (1, 2, 3, 4) AND (clustering_0, clustering1, clustering_2, clustering_3) <= (4, 3, 2, 1)\n slice = newMultiSlice(cfMetaData, 0, Bound.START, true, value1, value2, value3, value4);\n slice2 = newMultiSlice(cfMetaData, 0, Bound.END, true, value4, value3, value2, value1);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(slice).mergeWith(slice2);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(7, bounds.size());\n assertComposite(bounds.get(0), value1, EOC.START);\n assertComposite(bounds.get(1), value1, value2, value3, EOC.START);\n assertComposite(bounds.get(2), value1, value2, value3, EOC.END);\n assertComposite(bounds.get(3), value1, EOC.END);\n assertComposite(bounds.get(4), value4, value3, EOC.START);\n assertComposite(bounds.get(5), value4, value3, value2, value1, EOC.NONE);\n assertComposite(bounds.get(6), value4, value3, EOC.END);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(7, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.START);\n assertComposite(bounds.get(1), value1, value2, value3, value4, EOC.END);\n assertComposite(bounds.get(2), value1, value2, EOC.END);\n assertComposite(bounds.get(3), value4, EOC.START);\n assertComposite(bounds.get(4), value4, value3, value2, EOC.START);\n assertComposite(bounds.get(5), value4, value3, value2, EOC.END);\n assertComposite(bounds.get(6), value4, EOC.END);\n }", "@Override\r\n\tpublic Rectangle getBound() {\n\t\treturn new Rectangle((int)x, (int)y, (int)width, (int)height);\r\n\t}", "@Test\n public void testBoundsAsCompositesWithOneEqRestrictionsAndTwoClusteringColumns()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC);\n\n ByteBuffer clustering_0 = ByteBufferUtil.bytes(1);\n Restriction eq = newSingleEq(cfMetaData, 0, clustering_0);\n\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(eq);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), clustering_0, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), clustering_0, EOC.END);\n }", "private List<Bid> getProperBid(double lower, double upper) {\r\n\r\n\t\tList<Bid> bids = new ArrayList<Bid>();\r\n\t\tBidIterator myBidIterator = new BidIterator(US.getDomain());\r\n\t\t\r\n\t\twhile (myBidIterator.hasNext()) {\r\n\t\t\tBid b = myBidIterator.next();\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tdouble util = US.getUtility(b);\r\n\t\t\t\tif (util >= lower && util <= upper) {\r\n\t\t\t\t\tbids.add(b);\r\n\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn bids;\r\n\t}", "public double withIn(double input, double upperBound, double lowerBound) {\n\t\tif (input > 0) {\n\t\t\treturn java.lang.Math.min(upperBound, input);\n\t\t} else if (input < 0) {\n\t\t\treturn java.lang.Math.max(lowerBound, input);\n\t\t} else {\n\t\t\treturn 0;\n\t\t}\n\t}", "public Map<Integer, Geometry> getBoundary() throws SQLException {\n return retrieveExpected(createNativeBoundaryStatement(), GEOMETRY);\n }", "Between createBetween();", "private Boundaries buildBoundaries(Graph graph, Graph clusterPlacement) {\n Boundaries boundaries = new Boundaries();\n NodeAttribute<Coordinates> clusterPositions = clusterPlacement.nodeAttribute(StdAttribute.nodePosition);\n NodeAttribute<Coordinates> clusterSizes = clusterPlacement.nodeAttribute(StdAttribute.nodeSize);\n NodeAttribute<Coordinates> positions = graph.nodeAttribute(StdAttribute.nodePosition);\n EdgeAttribute<ControlPoints> edgePoints = graph.edgeAttribute(StdAttribute.edgePoints);\n\n for (Graph cluster : graph.subGraphs()) {\n String clusterLabel = cluster.<String>graphAttribute(StdAttribute.label).get();\n Node clusterPlaceholder = clusterPlacement.getNode(clusterLabel);\n Coordinates clusterCenter = clusterPositions.get(clusterPlaceholder);\n Coordinates clusterSize = clusterSizes.get(clusterPlaceholder);\n Coordinates clusterBottomLeft = clusterCenter.minus(clusterSize.divide(2));\n\n Node boundaryNode = graph.newNode();\n Edge boundaryEdge = graph.newEdge(boundaryNode, boundaryNode);\n positions.set(boundaryNode, clusterBottomLeft);\n ControlPoints edgeBends = new ControlPoints();\n edgeBends.add(clusterBottomLeft.plus(new Coordinates(clusterSize.x(), 0)));\n edgeBends.add(clusterBottomLeft.plus(clusterSize));\n edgeBends.add(clusterBottomLeft.plus(new Coordinates(0, clusterSize.y())));\n edgePoints.set(boundaryEdge, edgeBends);\n\n boundaries.nodes.add(boundaryNode);\n boundaries.edges.add(boundaryEdge);\n Collection<Edge> surroundingEdge = new HashSet<>();\n surroundingEdge.add(boundaryEdge);\n for (Node node : cluster.nodes()) {\n boundaries.surroundingEdges.set(node, surroundingEdge);\n }\n }\n boundaries.surroundingEdges.setDefault(boundaries.edges);\n return boundaries;\n }", "@Test\n public void testBoundsAsCompositesWithSliceRestrictionsAndOneDescendingClusteringColumn()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.DESC, Sort.DESC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n\n Restriction slice = newSingleSlice(cfMetaData, 0, Bound.START, false, value1);\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(slice);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertEmptyComposite(bounds.get(0));\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, EOC.START);\n\n slice = newSingleSlice(cfMetaData, 0, Bound.START, true, value1);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(slice);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertEmptyComposite(bounds.get(0));\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, EOC.END);\n\n slice = newSingleSlice(cfMetaData, 0, Bound.END, true, value1);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(slice);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, EOC.NONE);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertEmptyComposite(bounds.get(0));\n\n slice = newSingleSlice(cfMetaData, 0, Bound.END, false, value1);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(slice);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, EOC.END);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertEmptyComposite(bounds.get(0));\n\n slice = newSingleSlice(cfMetaData, 0, Bound.START, false, value1);\n Restriction slice2 = newSingleSlice(cfMetaData, 0, Bound.END, false, value2);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(slice).mergeWith(slice2);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value2, EOC.END);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, EOC.START);\n\n slice = newSingleSlice(cfMetaData, 0, Bound.START, true, value1);\n slice2 = newSingleSlice(cfMetaData, 0, Bound.END, true, value2);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(slice).mergeWith(slice2);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value2, EOC.NONE);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, EOC.END);\n }", "@Test\n public void testBoundsAsCompositesWithMultiSliceRestrictionsWithOneDescendingClusteringColumn()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.DESC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n\n Restriction slice = newMultiSlice(cfMetaData, 0, Bound.START, false, value1);\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(slice);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertEmptyComposite(bounds.get(0));\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, EOC.START);\n\n slice = newMultiSlice(cfMetaData, 0, Bound.START, true, value1);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(slice);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertEmptyComposite(bounds.get(0));\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, EOC.END);\n\n slice = newMultiSlice(cfMetaData, 0, Bound.END, true, value1);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(slice);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, EOC.NONE);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertEmptyComposite(bounds.get(0));\n\n slice = newMultiSlice(cfMetaData, 0, Bound.END, false, value1);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(slice);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, EOC.END);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertEmptyComposite(bounds.get(0));\n\n slice = newMultiSlice(cfMetaData, 0, Bound.START, false, value1);\n Restriction slice2 = newMultiSlice(cfMetaData, 0, Bound.END, false, value2);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(slice).mergeWith(slice2);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value2, EOC.END);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, EOC.START);\n\n slice = newMultiSlice(cfMetaData, 0, Bound.START, true, value1);\n slice2 = newMultiSlice(cfMetaData, 0, Bound.END, true, value2);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(slice).mergeWith(slice2);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value2, EOC.NONE);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, EOC.END);\n }", "@Override\n public void getLocalBounds(Vector3 min, Vector3 max) {\n\n // Maximum bounds\n max.setX(radius + margin);\n max.setY(halfHeight + margin);\n max.setZ(max.getX());\n\n // Minimum bounds\n min.setX(-max.getX());\n min.setY(-max.getY());\n min.setZ(min.getX());\n }", "public abstract DoublePredicate upperPredicate(double upperBound);", "public void calculateBoundsAABB() {\n\t\tsuper.minY = 0;\n\t\tradius = 0;\n\t\tmaxY = 0;\n\t\tminX = 999999;\n\t\tmaxX = -999999;\n\t\tmaxZ = -99999;\n\t\tminZ = 99999;\n\t\tfor (int j = 0; j < vertexCount; j++) {\n\t\t\tint x = vertexX[j];\n\t\t\tint y = vertexY[j];\n\t\t\tint z = vertexZ[j];\n\t\t\tif (x < minX) {\n\t\t\t\tminX = x;\n\t\t\t}\n\t\t\tif (x > maxX) {\n\t\t\t\tmaxX = x;\n\t\t\t}\n\t\t\tif (z < minZ) {\n\t\t\t\tminZ = z;\n\t\t\t}\n\t\t\tif (z > maxZ) {\n\t\t\t\tmaxZ = z;\n\t\t\t}\n\t\t\tif (-y > super.minY) {\n\t\t\t\tsuper.minY = -y;\n\t\t\t}\n\t\t\tif (y > maxY) {\n\t\t\t\tmaxY = y;\n\t\t\t}\n\t\t\tint radiusSqr = (x * x) + (z * z);\n\t\t\tif (radiusSqr > radius) {\n\t\t\t\tradius = radiusSqr;\n\t\t\t}\n\t\t}\n\t\tradius = (int) Math.sqrt(radius);\n\t\tminDepth = (int) Math.sqrt((radius * radius) + (super.minY * super.minY));\n\t\tmaxDepth = minDepth + (int) Math.sqrt((radius * radius) + (maxY * maxY));\n\t}", "@Override\n\tpublic Rectangle getBound() {\n\t\trectBound.setX(posX+20);\n\t\trectBound.setY(Y_LAND - image.getHeight() +10);\n\t\trectBound.setWidth(image.getWidth()-10);\n\t\trectBound.setHeight(image.getHeight());\n\t\treturn rectBound;\n\t}", "public GeometryBoundingBox(double west, double south, double east, double north, Double minAltitude,\n Double maxAltitude) {\n this.west = west;\n this.south = south;\n this.east = east;\n this.north = north;\n this.minAltitude = minAltitude;\n this.maxAltitude = maxAltitude;\n }", "public static Envelope createSafeBBOX(String bboxInput) throws InvalidParameterValueException{\n \t\n \tString[] splittedBBOX = bboxInput.split(\",\");\t\t\n \n \tif ( splittedBBOX.length != 4 ) {\n \t \n \tString message = \"Parameter 'BBOX' is not valid\" ;\n \tthrow new InvalidParameterValueException( message ) ;\n \t\n }\n \n \tdouble minx = Double.parseDouble( splittedBBOX[0] ) ; \n \tdouble maxx = Double.parseDouble( splittedBBOX[2] ) ; \n \t\n \tif ( minx >= maxx ) {\n \n \t\tString message = \"Paremeter 'BBOX' is not valid: \";\n \tmessage = \"\\n 'minx < maxx' is required , found (\" + minx +\">=\" +maxx+\")\";\n throw new InvalidParameterValueException( message );\n \n }\n \t\n \tdouble miny = Double.parseDouble( splittedBBOX[1] );\n \tdouble maxy = Double.parseDouble( splittedBBOX[3] );\n \t\n \tif ( miny >= maxy) {\n \n \t\t\tString message = \"Paremeter 'BBOX' is not valid: \" \n \t\t\t + \"\\n 'miny < maxy' is required found (\" + miny +\">=\" +maxy+\")\";\n throw new InvalidParameterValueException( message );\n \n \t}\n\n Envelope env = GeometryFactory.createEnvelope(minx, miny, maxx, maxy, null);\n return env;\n }", "public final void mT__191() throws RecognitionException {\n try {\n int _type = T__191;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // ../org.xtext.example.json.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyjson.g:191:8: ( 'upperBound' )\n // ../org.xtext.example.json.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyjson.g:191:10: 'upperBound'\n {\n match(\"upperBound\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public void constructBoundingBox()\r\n\t{\n\t\tdouble a = m_Qmin.x;\r\n\t\tdouble b = m_Qmin.y;\r\n\t\tdouble c = m_Qmin.z;\r\n\r\n\t\tdouble d = m_Qmax.x;\r\n\t\tdouble e = m_Qmax.y;\r\n\t\tdouble f = m_Qmax.z;\r\n\r\n\t\t//constructing the vertexes of the bounding box\r\n\t\tSceneVertex A = new SceneVertex( new Vector3d(a, b, c));\r\n\t\tSceneVertex B = new SceneVertex( new Vector3d(d, b, c));\r\n\t\tSceneVertex C = new SceneVertex( new Vector3d(d, b, f));\r\n\t\tSceneVertex D = new SceneVertex( new Vector3d(d, e, f));\r\n\t\tSceneVertex E = new SceneVertex( new Vector3d(a, e, f));\r\n\t\tSceneVertex F = new SceneVertex( new Vector3d(a, e, c));\r\n\t\tSceneVertex G = new SceneVertex( new Vector3d(d, e, c));\r\n\t\tSceneVertex H = new SceneVertex( new Vector3d(a, b, f));\r\n\r\n\r\n\t\t// building the vertices arrays for the faces\r\n\t\tArrayList<SceneVertex> verArrP0front = new ArrayList<SceneVertex>(4);\r\n\t\tverArrP0front.add(A);\r\n\t\tverArrP0front.add(B);\r\n\t\tverArrP0front.add(G);\r\n\t\tverArrP0front.add(F);\r\n\t\t\r\n\t\tArrayList<SceneVertex> verArrP1left = new ArrayList<SceneVertex>(4);\r\n\t\tverArrP1left.add(A);\r\n\t\tverArrP1left.add(F);\r\n\t\tverArrP1left.add(E);\r\n\t\tverArrP1left.add(H);\r\n\t\t\r\n\t\tArrayList<SceneVertex> verArrP2back = new ArrayList<SceneVertex>(4);\r\n\t\tverArrP2back.add(H);\r\n\t\tverArrP2back.add(C);\r\n\t\tverArrP2back.add(D);\r\n\t\tverArrP2back.add(E);\r\n\t\t\r\n\t\tArrayList<SceneVertex> verArrP3right = new ArrayList<SceneVertex>(4);\r\n\t\tverArrP3right.add(G);\r\n\t\tverArrP3right.add(D);\r\n\t\tverArrP3right.add(C);\r\n\t\tverArrP3right.add(B);\r\n\t\t\r\n\t\tArrayList<SceneVertex> verArrP4bottom = new ArrayList<SceneVertex>(4);\r\n\t\tverArrP4bottom.add(A);\r\n\t\tverArrP4bottom.add(H);\r\n\t\tverArrP4bottom.add(C);\r\n\t\tverArrP4bottom.add(B);\r\n\r\n\t\tArrayList<SceneVertex> verArrP5top = new ArrayList<SceneVertex>(4);\r\n\t\tverArrP5top.add(F);\r\n\t\tverArrP5top.add(G);\r\n\t\tverArrP5top.add(D);\r\n\t\tverArrP5top.add(E);\r\n\t\t\r\n\t\t// creating BoundingBox\r\n\t\tm_BoundingBox = new SceneNode(DrawingMode.GL_LINE, \"BoundingBox\", null);\r\n\t\tm_BoundingBox.addChild( new ScenePolygon(verArrP0front, \"FRONT\"));\r\n\t\tm_BoundingBox.addChild( new ScenePolygon(verArrP1left, \"LEFT\"));\r\n\t\tm_BoundingBox.addChild( new ScenePolygon(verArrP2back, \"BACK\"));\r\n\t\tm_BoundingBox.addChild( new ScenePolygon(verArrP3right, \"RIGHT\"));\r\n\t\tm_BoundingBox.addChild( new ScenePolygon(verArrP4bottom, \"BOTTOM\"));\r\n\t\tm_BoundingBox.addChild( new ScenePolygon(verArrP5top, \"TOP\"));\r\n\r\n\t\t\r\n\t}", "public LatLngBounds setupBounds(){\n\t\t\n\t\t\n\t\tdouble deltaLat = 0.000015; // correction value\n\t\t\n\t\tLatLng northEast = new LatLng(60.1876397959336 + (2.4 * deltaLat), 24.8207008838576);\n\t\tLatLng southWest = new LatLng(60.1866756699501 + deltaLat, 24.8172971606177);\n\t\t\n\t\t\n\t\t// 60.1866756699501\n\t\treturn new LatLngBounds(southWest, northEast);\n\t}", "private void buildQueryFilterSpatial(String northValue, String southValue,\n\t\t\tString eastValue, String westValue, boolean boundaryContained) \n\t\tthrows UnsupportedEncodingException {\n\t\tboolean crosses;\n\t\tfinal String shapeOperation = boundaryContained ? \"IsWithin\" : \"Intersects\";\n\n\t\tnorthValue = validateGeographicCoordinate(northValue, -90.0F, 90.0F, \"90.0\");\n\t\tsouthValue = validateGeographicCoordinate(southValue, -90.0F, 90.0F, \"-90.0\");\n\t\teastValue = validateGeographicCoordinate(eastValue, -180.0F, 180.0F, \"180.0\");\n\t\twestValue = validateGeographicCoordinate(westValue, -180.0F, 180.0F, \"-180.0\");\n\n\t\t/*\n\t\t * Check that all four coordinates has values before attempting spatial\n\t\t * search.\n\t\t */\n\t\tif ((northValue != null) && (!(northValue.equals(\"\")))\n\t\t\t\t&& (southValue != null) && (!(southValue.equals(\"\")))\n\t\t\t\t&& (eastValue != null) && (!(eastValue.equals(\"\")))\n\t\t\t\t&& (westValue != null) && (!(westValue.equals(\"\")))\n\t\t\t) {\n\n\t\t\tboolean changed = boundsWereChanged(boundsChangedCount, northValue, southValue, eastValue, westValue);\n\t\t\tif (!changed) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t/*\n\t\t\t * Check whether the east/west coordinates cross over the\n\t\t\t * international dateline. If the search crosses the dateline,\n\t\t\t * special handling will be needed in forming the query.\n\t\t\t */\n\t\t\tcrosses = crossesInternationalDateline(eastValue, westValue);\n\n\t\t\tif (crosses) {\n\t\t\t\t// Not sure yet how to manage international date-line queries in Solr\n\t\t\t}\n\t\t\t\n String spatialFilter = String.format(\"coordinates:\\\"%s(ENVELOPE(%s, %s, %s, %s))\\\"\",\n shapeOperation, westValue, eastValue, northValue, southValue);\n\t\t\tString encodedSpatialFilter = URLEncoder.encode(spatialFilter, \"UTF-8\");\n\t\t\tupdateFQString(encodedSpatialFilter);\n\t\t}\n\t}", "public GJBox2D boundingBox() {\n\t\tdouble xmin = Double.MAX_VALUE;\n\t\tdouble ymin = Double.MAX_VALUE;\n\t\tdouble xmax = Double.MIN_VALUE;\n\t\tdouble ymax = Double.MIN_VALUE;\n\n\t\t// coordinates of current point\n\t\tdouble x, y;\n\t\t\n\t\t// Iterate on each control point of each segment\n\t\tfor (Segment seg : this.segments) {\n\t\t\tfor (GJPoint2D p : seg.controlPoints()) {\n\t\t\t\t// get current coordinates\n\t\t\t\tx = p.x();\n\t\t\t\ty = p.y();\n\t\t\t\t\n\t\t\t\t// update bounds\n\t\t\t\txmin = Math.min(xmin, x);\n\t\t\t\tymin = Math.min(ymin, y);\n\t\t\t\txmax = Math.max(xmax, x);\n\t\t\t\tymax = Math.max(ymax, y);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// createFromCollection a new GJBox2D with the bounds\n\t\treturn new GJBox2D(xmin, xmax, ymin, ymax);\n\t}", "private HashMap setupBoundBoxes(BioMightBoundBox bioMightBoundBoxIn) \r\n\t{\r\n\t\t// Set up the bounding boxes for the various components\r\n\t\t// The various components locations will be driven by the\r\n\t\t// bounding boxes\r\n\t\tHashMap boundingBoxMap = new HashMap();\r\n\t\t\r\n\t\t// Initialize the position of the bounding box vars\r\n\t\tBigDecimal xPos = new BigDecimal(0.0);\r\n\t\tBigDecimal yPos = new BigDecimal(0.0);\r\n\t\tBigDecimal zPos= new BigDecimal(0.0);\r\n\t\t\t\r\n\t\t// Set to base 1x1x1 cube\r\n\t\tBigDecimal xVector= new BigDecimal(1.0);\r\n\t\tBigDecimal yVector= new BigDecimal(1.0); \r\n\t\tBigDecimal zVector= new BigDecimal(1.0);\r\n\r\n\t\t// Initialize the BoundBoxes. This is used for\r\n\t\t// collections such as arms, legs,lungs,etc\r\n\t\tBioMightBoundBoxes bioBoundBoxes = null;\r\n\t\r\n\t\t// Initialize the BoundBox\r\n\t\tBioMightBoundBox bioBoundBox = null;\r\n\r\n\t\t// Initialize the Connectors \r\n\t\tBioMightConnectors bioMightConnectors = null; \r\n\r\n\t\t// Initialize the Connector \r\n\t\tBioMightConnector bioMightConnector= null;\r\n\t\t\r\n\t\tdouble circumference = 0.0;\r\n\t\tdouble[] startPos = {0.0, 0.0, 0.0};\r\n\t\tdouble[][] startPoints = BioGraphics.octogonYPlane(startPos, circumference);\r\n\t\t\r\n\t\t// Use the information in the incomiing Bound Box\r\n\t\t// to orientate the inner bound boxes\r\n\t\tif (bioMightBoundBoxIn != null)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Arm - SetupBoundBoxes - Incoming BoundBox: \" + \r\n\t\t\t\t\tbioMightBoundBoxIn.getXPos() + \" \" +\r\n\t\t\t\t\tbioMightBoundBoxIn.getYPos() + \" \" +\r\n\t\t\t\t\tbioMightBoundBoxIn.getZPos());\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t//********************************************************************* \r\n\t\t// EPITHELIUM BOUNDBOX\r\n\t\t// Set up the Bounding Box for the Arm\r\n\t\t// The connector for this will come from the incoming Bound Box\r\n\t\t// Both are defined like and bolt and they lock into position at the\r\n\t\t// interestion of both connectors\r\n\t\t//**********************************************************************\r\n\t\txPos = new BigDecimal(0.0);\r\n\t\tyPos = new BigDecimal(-12.0);\r\n\t\tzPos= new BigDecimal(-1.0);\r\n\t\t\r\n\t\txVector= new BigDecimal(9.0);\r\n\t\tyVector= new BigDecimal(8.0); \r\n\t\tzVector= new BigDecimal(4.0);\r\n\r\n\t\tbioBoundBox = new BioMightBoundBox(xPos, yPos, zPos, xVector, yVector, zVector);\r\n\t\tbioMightConnectors = new BioMightConnectors();\r\n\t\t\r\n\t\t// Arm Epithelium Connector\r\n\t\tcircumference = 0.3;\r\n\t\tstartPos = getStartPoints(0.0, -9.0, -1.0);\r\n\t\tstartPoints = BioGraphics.octogonYPlane(startPos, circumference);\r\n\t\tbioMightConnector = new BioMightConnector(startPoints, \"ArmEpithelialCell\",\"connType\");\r\n\t\tbioMightConnectors.setBioMightConnector(\"ArmEpithelialCell\", bioMightConnector);\r\n\t\t\t\r\n\t\tbioBoundBox.setBioMightConnectors(bioMightConnectors);\r\n\t\t\r\n\t\tboundingBoxMap.put(Constants.ArmEpitheliumRef, bioBoundBox);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\r\n\t\t//********************************************************************* \r\n\t\t// ARMS BOUND BOXES\r\n\t\t// Set up the Bounding Box for the Bronchi\r\n\t\t// On a porportioned human, the Bronchi are located in the --- \r\n\t\t//**********************************************************************\r\n\t\t\r\n\t\t//********************************************************************* \r\n\t\t// LEFT ARMS BOUNDBOX\r\n\t\t// Set up the Bounding Box for the Left Arm\r\n\t\t// On a porportioned human, the Bronchi are located in the --- \r\n\t\t//**********************************************************************\r\n\t\txPos = new BigDecimal(1.0);\r\n\t\tyPos = new BigDecimal(-11.0);\r\n\t\tzPos= new BigDecimal(-3.5);\r\n\t\t\r\n\t\txVector= new BigDecimal(2.0);\r\n\t\tyVector= new BigDecimal(2.0); \r\n\t\tzVector= new BigDecimal(2.0);\r\n\r\n\t\tbioBoundBoxes = new BioMightBoundBoxes();\r\n\t\t\r\n\t\tbioBoundBox = new BioMightBoundBox(xPos, yPos, zPos, xVector, yVector, zVector);\r\n\t\tbioMightConnectors = new BioMightConnectors();\r\n\t\t\t\r\n\t\t// ArmEpithelium Connector\r\n\t\tcircumference = 0.3;\r\n\t\tstartPos = getStartPoints(0.0, -8.0, -1.0);\r\n\t\tstartPoints = BioGraphics.octogonYPlane(startPos, circumference);\r\n\t\tbioMightConnector = new BioMightConnector(startPoints, Constants.ArmEpitheliumRef,\"connType\");\r\n\t\tbioMightConnectors.setBioMightConnector(Constants.ArmEpitheliumRef, bioMightConnector);\r\n\t\t\t\r\n\t\tbioBoundBox.setBioMightConnectors(bioMightConnectors);\r\n\t\t\t\r\n\t\t// Put the Bounding Box into the Collection of Bounding Boxes \r\n\t\tbioBoundBoxes.setBoundingBox(Constants.LeftArmRef, bioBoundBox);\t\r\n\r\n\t\t//********************************************************************* \r\n\t\t// RIGHT ARMS BOUNDBOX\r\n\t\t// Set up the Bounding Box for the Bronchi\r\n\t\t// On a porportioned human, the Bronchi are located in the --- \r\n\t\t//**********************************************************************\r\n\t\txPos = new BigDecimal(-1.0);\r\n\t\tyPos = new BigDecimal(-11.0);\r\n\t\tzPos= new BigDecimal(-3.5);\r\n\t\t\r\n\t\txVector= new BigDecimal(2.0);\r\n\t\tyVector= new BigDecimal(2.0); \r\n\t\tzVector= new BigDecimal(2.0);\r\n\r\n\t\tbioBoundBox = new BioMightBoundBox(xPos, yPos, zPos, xVector, yVector, zVector);\r\n\t\tbioMightConnectors = new BioMightConnectors();\r\n\t\t\t\r\n\t\t// ArmEpithelium Connector\r\n\t\tcircumference = 0.3;\r\n\t\tstartPos = getStartPoints(0.0, -8.0, -1.0);\r\n\t\tstartPoints = BioGraphics.octogonYPlane(startPos, circumference);\r\n\t\tbioMightConnector = new BioMightConnector(startPoints, Constants.ArmEpitheliumRef,\"connType\");\r\n\t\tbioMightConnectors.setBioMightConnector(Constants.ArmEpitheliumRef, bioMightConnector);\r\n\t\t\t\r\n\t\tbioBoundBox.setBioMightConnectors(bioMightConnectors);\r\n\t\t\r\n\t\t// Put the Bounding Box into the Collection of Bounding Boxes \r\n\t\tbioBoundBoxes.setBoundingBox(Constants.RightArmRef, bioBoundBox);\t\t\r\n\r\n\t\t// Put the BioMight BoundBoxes for the Bronchi \r\n\t\t// into the BoundingBoxMap \r\n\t\tboundingBoxMap.put(Constants.BronchiRef, bioBoundBoxes);\t\t\r\n\t\t\r\n\t\t\r\n\t\treturn (boundingBoxMap);\r\n\t}", "public void ComputeBounds( Vec3 min, Vec3 max )\r\n\t{\r\n\t\tfor ( int iTempCount = 1; iTempCount <= 3; iTempCount++ )\r\n\t\t{\r\n\t\t\tVec3 tempPoint = m_vertices[iTempCount];\r\n\t\t\t\r\n\t\t\tif ( tempPoint.xCoord < min.xCoord )\r\n\t\t\t{\r\n\t\t\t\tmin.xCoord = tempPoint.xCoord;\r\n\t\t\t}\r\n\t\t\telse if ( tempPoint.xCoord > max.xCoord )\r\n\t\t\t{\r\n\t\t\t\tmax.xCoord = tempPoint.xCoord;\r\n\t\t\t}\t\t\t\r\n\t\t\t\r\n\t\t\tif ( tempPoint.yCoord < min.yCoord )\r\n\t\t\t{\r\n\t\t\t\tmin.yCoord = tempPoint.yCoord;\r\n\t\t\t}\r\n\t\t\telse if ( tempPoint.yCoord > max.yCoord )\r\n\t\t\t{\r\n\t\t\t\tmax.yCoord = tempPoint.yCoord;\r\n\t\t\t}\t\t\t\r\n\t\t\t\r\n\t\t\tif ( tempPoint.zCoord < min.zCoord )\r\n\t\t\t{\r\n\t\t\t\tmin.zCoord = tempPoint.zCoord;\r\n\t\t\t}\r\n\t\t\telse if ( tempPoint.zCoord > max.zCoord )\r\n\t\t\t{\r\n\t\t\t\tmax.zCoord = tempPoint.zCoord;\r\n\t\t\t}\t\t\t\r\n\t\t}\t\t\r\n\t}", "public void setUpperBound(String upper) {\n upperBound = upper;\n }", "WindowingClause createWindowingClause();", "@Test\n public void testBoundsAsCompositesWithMultiSliceRestrictionsWithTwoClusteringColumn()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n\n // (clustering_0, clustering1) > (1, 2)\n Restriction slice = newMultiSlice(cfMetaData, 0, Bound.START, false, value1, value2);\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(slice);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.END);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertEmptyComposite(bounds.get(0));\n\n // (clustering_0, clustering1) >= (1, 2)\n slice = newMultiSlice(cfMetaData, 0, Bound.START, true, value1, value2);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(slice);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.NONE);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertEmptyComposite(bounds.get(0));\n\n // (clustering_0, clustering1) <= (1, 2)\n slice = newMultiSlice(cfMetaData, 0, Bound.END, true, value1, value2);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(slice);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertEmptyComposite(bounds.get(0));\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.END);\n\n // (clustering_0, clustering1) < (1, 2)\n slice = newMultiSlice(cfMetaData, 0, Bound.END, false, value1, value2);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(slice);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertEmptyComposite(bounds.get(0));\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.START);\n\n // (clustering_0, clustering1) > (1, 2) AND (clustering_0) < (2)\n slice = newMultiSlice(cfMetaData, 0, Bound.START, false, value1, value2);\n Restriction slice2 = newMultiSlice(cfMetaData, 0, Bound.END, false, value2);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(slice).mergeWith(slice2);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.END);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value2, EOC.START);\n\n // (clustering_0, clustering1) >= (1, 2) AND (clustering_0, clustering1) <= (2, 1)\n slice = newMultiSlice(cfMetaData, 0, Bound.START, true, value1, value2);\n slice2 = newMultiSlice(cfMetaData, 0, Bound.END, true, value2, value1);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(slice).mergeWith(slice2);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.NONE);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value2, value1, EOC.END);\n }", "public abstract double[] getLowerBound();", "private Coordinate[] generateBoundingBox(final Geometry geometry) {\n if (geometry == null || geometry.getCoordinates() == null || geometry.getCoordinates().length == 0) {\n return new Coordinate[]{new Coordinate(0,0),new Coordinate(0,0)};\n }\n final Coordinate firstPoint = geometry.getCoordinates()[0];\n double minLat = firstPoint.y;\n double minLon = firstPoint.x;\n double maxLat = firstPoint.y;\n double maxLon = firstPoint.x;\n for (final Coordinate coordinate : geometry.getCoordinates()) {\n if (coordinate.x < minLon) {\n minLon = coordinate.x;\n }\n if (coordinate.y < minLat) {\n minLat = coordinate.y;\n }\n if (coordinate.x > maxLon) {\n maxLon = coordinate.x;\n }\n if (coordinate.y > maxLat) {\n maxLat = coordinate.y;\n }\n }\n return new Coordinate[]{\n new Coordinate(minLon, minLat),\n new Coordinate(maxLon, maxLat)\n };\n }", "public ReferencedEnvelope getBounds(){\n if(bounds==null){\n // Create Null envelope\n this.bounds = new ReferencedEnvelope(getCRS());\n // First try to find the BBOX definition in the gisNode directly\n try{\n if(gisNode.hasProperty(INeoConstants.PROPERTY_BBOX_NAME)){\n double[] bbox = (double[])gisNode.getProperty(INeoConstants.PROPERTY_BBOX_NAME);\n this.bounds = new ReferencedEnvelope(bbox[0],bbox[1],bbox[2],bbox[3],crs);\n }else{\n System.err.println(\"No BBox defined in the GeoNeo object\");\n }\n }catch(Exception bbox_e){\n System.err.println(\"Failed to interpret BBOX: \"+bbox_e.getMessage());\n bbox_e.printStackTrace(System.err);\n }\n // Secondly, if bounds is still empty, try find all feature geometries and calculate bounds\n try{\n if(this.bounds.isNull()){\n // Try to create envelope from any data referenced by the gisNode\n for(GeoNode node:getGeoNodes()){\n //TODO: support high dimensions\n this.bounds.expandToInclude(node.getCoords()[0], node.getCoords()[1]);\n }\n }\n }catch(Exception bbox_e){\n System.err.println(\"Failed to interpret BBOX: \"+bbox_e.getMessage());\n bbox_e.printStackTrace(System.err);\n }\n }\n return bounds;\n }", "private boolean isBetweenBounds(int x, int y, int[] bounds) {\n return x >= bounds[0] && x <= bounds[2] && y >= bounds[1] && y <= bounds[3];\n }", "Long getResultMaskBoundary();", "private String range(double and_load_factor) {\n\t\tStringBuilder s = new StringBuilder();\n\n\t\t// begin query construction (range query is always an OR)\n\t\ts.append(\"[r,|,\");\n\n\t\t// choose number of attributes to involve in the query (use zipf(num_attribute))\n\t\tint attr_id = this.zipf_rng_att.next();\n\n\t\t//a range query from [bin_0, ..., bin_high]\n\t\tint first_bin = -1;\n\t\tint second_bin = -1;\n\t\twhile (first_bin == second_bin) {\n\t\t\tfirst_bin = this.rank_bin_map[attr_id][zipf_rng_bin.next()];\n\t\t\tsecond_bin = this.rank_bin_map[attr_id][zipf_rng_bin.next()];;\n\t\t}\n\t\tfirst_bin += (attr_id) * this.cardinality;\n\t\tsecond_bin += (attr_id) * this.cardinality;\n\n\t\tif (first_bin > second_bin) {\n\t\t\ts.append(second_bin + \",\" + first_bin + \"]\");\n\t\t}\n\t\telse {\n\t\t\ts.append(first_bin + \",\" + second_bin + \"]\");\n\t\t}\n\n\n\n\t\t//update stats\n\t\tthis.num_bins += (second_bin - first_bin + 1);\n\t\tthis.num_or_ops += (second_bin - first_bin);\n\n\t\t//update stats\n\t\tthis.num_range_queries++;\n\t\tthis.num_attributes++;\n\t\treturn s.toString();\n\t}", "private double getMarginFromBounds(int lowerBound, int upperBound) {\n return (upperBound - lowerBound) / 2.0;\n }", "Range controlLimits();", "public Bounds toBounds(Axis proj)\n {\n if (proj == Axis.X)\n {\n return new Bounds(y1, y2, z1, z2);\n }\n else if (proj == Axis.Y)\n {\n return new Bounds(x1, x2, z1, z2);\n }\n else\n {\n return new Bounds(x1, x2, y1, y2);\n }\n }", "protected double[] calculateDataBoundingBox() {\n \t\tdouble min_x = Double.MAX_VALUE;\n \t\tdouble min_y = Double.MAX_VALUE;\n \t\tdouble max_x = 0.0D;\n \t\tdouble max_y = 0.0D;\n \t\t// check the points\n \t\tfor (int i=0; i<n_points; i++) {\n \t\t\tif (p[0][i] < min_x) min_x = p[0][i];\n \t\t\tif (p[1][i] < min_y) min_y = p[1][i];\n \t\t\tif (p[0][i] > max_x) max_x = p[0][i];\n \t\t\tif (p[1][i] > max_y) max_y = p[1][i];\n \t\t}\n \t\treturn new double[]{min_x, min_y, max_x, max_y};\n \t}", "public void queryRange(int lowKey, int highKey, IntPushOperator results) {\n\t\tIntBTreeNode next = entries.get(lowKey);\n\t\tnext.queryRange(lowKey, highKey, results);\n\t}", "static <K extends Comparable<? super K>, V> Iterator<Map.Entry<K, V>> createWithBounds(\n @Nullable Node<K, V> root,\n @Nullable K pFromKey,\n boolean pFromInclusive,\n @Nullable K pToKey,\n boolean pToInclusive) {\n if (root == null) {\n return Collections.emptyIterator();\n } else {\n return new DescendingEntryInOrderIterator<>(\n root, pFromKey, pFromInclusive, pToKey, pToInclusive);\n }\n }", "@Test\n public void testBoundsAsCompositesWithOneEqRestrictionsAndOneClusteringColumn()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC);\n\n ByteBuffer clustering_0 = ByteBufferUtil.bytes(1);\n Restriction eq = newSingleEq(cfMetaData, 0, clustering_0);\n\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(eq);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), clustering_0, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), clustering_0, EOC.END);\n }", "public Bounds getBounds () { return (bounds); }", "public Builder setNbBedroomsValueFunction(double lowerValue, double upperValue) {\n toBuild.setInternalValueFunction(\n Criterion.NB_BEDROOMS, new LinearValueFunction(lowerValue, upperValue));\n return this;\n }", "Rectangle getBoundingBox(Rectangle rect);", "public void setBoundary(int value) {\n this.boundary = value;\n }", "GridEnvelope getLimits();", "public static int curve(int key, int lowerBound, int upperBound) {\n\n\n double d = (lowerBound + upperBound) / 2.0;\n\n double majorAmplitude = (double) (upperBound - d) * (2.0 / 3.0);\n double minorAmplitude = (double) (upperBound - d) * (1.0 / 3.0);\n\n\n int index1 = key % passwordHashAlpha.length();\n int translator1 =\n Character.getNumericValue(passwordHashAlpha.charAt(index1));\n\n int index2 = (key * translator1) % passwordHashBeta.length();\n int translator2 =\n Character.getNumericValue(passwordHashBeta.charAt(index2));\n\n\n return (int) Math.round(\n (majorAmplitude * Math.sin(56 * (key - translator1)))\n + (minorAmplitude * Math.cos(key * (key - translator2)))\n + d);\n\n }", "public Rectangle getBoundsBigger() {\n return new Rectangle(x-32,y-32,128,128);\n }", "private Envelope makeExtent(String sMinX, String sMinY, String sMaxX, String sMaxY, String wkid) {\n if (sMinX.length() > 0 && sMaxX.length() > 0 && sMinY.length() > 0 && sMaxY.length() > 0) {\n double minx = Val.chkDbl(sMinX, -180.0);\n double maxx = Val.chkDbl(sMaxX, 180.0);\n double miny = Val.chkDbl(sMinY, -90.0);\n double maxy = Val.chkDbl(sMaxY, 90.0);\n Envelope envelope = new Envelope(minx, miny, maxx, maxy);\n envelope.setWkid(wkid);\n return envelope;\n }\n return null;\n }", "@Test(timeout = 4000)\n public void test26() throws Throwable {\n Range range0 = Range.of((-1264L), 255L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range range1 = Range.of((-1264L));\n range1.getEnd();\n range1.getEnd();\n List<Range> list0 = range1.split(255L);\n range0.complementFrom(list0);\n Range range2 = Range.of(range_CoordinateSystem0, (-1264L), 0L);\n range2.endsBefore(range0);\n Long.max((-1264L), (-3100L));\n range1.equals(range0);\n Range.Comparators.values();\n range1.getEnd();\n range0.getEnd(range_CoordinateSystem0);\n Range.Builder range_Builder0 = new Range.Builder();\n Range.Builder range_Builder1 = null;\n try {\n range_Builder1 = new Range.Builder(range_CoordinateSystem0, 255L, 248L);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "public int compareLowerToUpperBound(byte[] b, int o, int l, boolean isInclusive) {\n if (lowerUnbound() || b == RowKeyRange.UNBOUND) {\n return -1;\n }\n int cmp = BytesUtils.compareTo(lowerRange, 0, lowerRange.length, b, o, l);\n if (cmp > 0) {\n return 1;\n }\n if (cmp < 0) {\n return -1;\n }\n if (lowerInclusive && isInclusive) {\n return 0;\n }\n return 1;\n }", "private Filter betweenFilter(String start, Object minValue, Object maxValue) {\n return FF.between(FF.property(start), FF.literal(minValue), FF.literal(maxValue));\n }", "static Predicate<Beer> priceRangeQuery(Float priceLowest, Float priceHighest) {\n return b -> b.getPrice() >= priceLowest && b.getPrice() <= priceHighest;\n }", "@Override\n public List<Bound> getBounds() {\n return Collections.unmodifiableList(bounds);\n }", "protected abstract NativeSQLStatement createNativeOverlapsStatement(Geometry geom);", "public float[] getBounds() {\r\n\t\tfloat[] bounds = {x_ - width_/ 2, x_ + width_ / 2, y_ - height_ / 2, y_ + height_ / 2};\r\n\t\treturn bounds;\r\n\t}", "BaseBounds computeBounds(BaseBounds bounds, BaseTransform tx,\n double upad, double dpad,\n double x, double y,\n double w, double h)\n {\n // if the w or h is < 0 then bounds is empty\n if (w < 0.0f || h < 0.0f) return bounds.makeEmpty();\n\n double x0 = x;\n double y0 = y;\n double x1 = w;\n double y1 = h;\n double _dpad = dpad;\n if (tx.isTranslateOrIdentity()) {\n x1 += x0;\n y1 += y0;\n if (tx.getType() == BaseTransform.TYPE_TRANSLATION) {\n final double dx = tx.getMxt();\n final double dy = tx.getMyt();\n x0 += dx;\n y0 += dy;\n x1 += dx;\n y1 += dy;\n }\n _dpad += upad;\n } else {\n x0 -= upad;\n y0 -= upad;\n x1 += upad*2;\n y1 += upad*2;\n // Each corner is transformed by an equation similar to:\n // x' = x * mxx + y * mxy + mxt\n // y' = x * myx + y * myy + myt\n // Since all of the corners are translated by mxt,myt we\n // can ignore them when doing the min/max calculations\n // and add them in once when we are done. We then have\n // to do min/max operations on 4 points defined as:\n // x' = x * mxx + y * mxy\n // y' = x * myx + y * myy\n // Furthermore, the four corners that we will be transforming\n // are not four independent coordinates, they are in a\n // rectangular formation. To that end, if we translated\n // the transform to x,y and scaled it by width,height then\n // we could compute the min/max of the unit rectangle 0,0,1x1.\n // The transform would then be adjusted as follows:\n // First, the translation to x,y only affects the mxt,myt\n // components of the transform which we can hold off on adding\n // until we are done with the min/max. The adjusted translation\n // components would be:\n // mxt' = x * mxx + y * mxy + mxt\n // myt' = x * myx + y * myy + myt\n // Second, the scale affects the components as follows:\n // mxx' = mxx * width\n // mxy' = mxy * height\n // myx' = myx * width\n // myy' = myy * height\n // The min/max of that rectangle then degenerates to:\n // x00' = 0 * mxx' + 0 * mxy' = 0\n // y00' = 0 * myx' + 0 * myy' = 0\n // x01' = 0 * mxx' + 1 * mxy' = mxy'\n // y01' = 0 * myx' + 1 * myy' = myy'\n // x10' = 1 * mxx' + 0 * mxy' = mxx'\n // y10' = 1 * myx' + 0 * myy' = myx'\n // x11' = 1 * mxx' + 1 * mxy' = mxx' + mxy'\n // y11' = 1 * myx' + 1 * myy' = myx' + myy'\n double mxx = tx.getMxx();\n double mxy = tx.getMxy();\n double myx = tx.getMyx();\n double myy = tx.getMyy();\n // Computed translated translation components\n final double mxt = (x0 * mxx + y0 * mxy + tx.getMxt());\n final double myt = (x0 * myx + y0 * myy + tx.getMyt());\n // Scale non-translation components by w/h\n mxx *= x1;\n mxy *= y1;\n myx *= x1;\n myy *= y1;\n x0 = (Math.min(Math.min(0,mxx),Math.min(mxy,mxx+mxy)))+mxt;\n y0 = (Math.min(Math.min(0,myx),Math.min(myy,myx+myy)))+myt;\n x1 = (Math.max(Math.max(0,mxx),Math.max(mxy,mxx+mxy)))+mxt;\n y1 = (Math.max(Math.max(0,myx),Math.max(myy,myx+myy)))+myt;\n }\n x0 -= _dpad;\n y0 -= _dpad;\n x1 += _dpad;\n y1 += _dpad;\n\n bounds = bounds.deriveWithNewBounds((float)x0, (float)y0, 0.0f,\n (float)x1, (float)y1, 0.0f);\n return bounds;\n }" ]
[ "0.639836", "0.6004895", "0.59507746", "0.59344935", "0.59236866", "0.5896326", "0.58388937", "0.5819978", "0.575658", "0.5641359", "0.55510324", "0.55430263", "0.55409104", "0.5534165", "0.55066025", "0.5493605", "0.54178995", "0.53845835", "0.5341836", "0.5302742", "0.5256355", "0.5254431", "0.52450466", "0.5237247", "0.5235503", "0.5232868", "0.52288604", "0.52114606", "0.5207151", "0.51943564", "0.51836216", "0.51805514", "0.5177902", "0.5172618", "0.5168654", "0.51665133", "0.5151347", "0.51332307", "0.51228654", "0.51208246", "0.51056623", "0.5097375", "0.5082318", "0.50735736", "0.50715786", "0.5069936", "0.5069002", "0.5066718", "0.5066104", "0.50547546", "0.5054706", "0.5049811", "0.50461596", "0.5029202", "0.50278574", "0.5021026", "0.5013634", "0.50114596", "0.4998541", "0.49753404", "0.49732476", "0.49551785", "0.49530572", "0.4944711", "0.49258134", "0.49248955", "0.4922424", "0.4900954", "0.4898436", "0.4898358", "0.4898237", "0.48862314", "0.48846108", "0.48838943", "0.4869147", "0.48561454", "0.48499626", "0.48470625", "0.48354718", "0.48348597", "0.48277873", "0.4823052", "0.48207062", "0.48142487", "0.4805472", "0.4793297", "0.4792346", "0.47916755", "0.47814015", "0.47806984", "0.47806725", "0.47745314", "0.47715196", "0.4771066", "0.47709495", "0.47644243", "0.47611815", "0.47587165", "0.47586247", "0.47584477" ]
0.7145925
0
Creates the aggregation pipeline for a partition.
public static List<BsonDocument> createPartitionPipeline( final BsonDocument partitionBounds, final List<BsonDocument> userPipeline) { List<BsonDocument> partitionPipeline = new ArrayList<>(); partitionPipeline.add(new BsonDocument("$match", partitionBounds)); partitionPipeline.addAll(userPipeline); return partitionPipeline; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected static AggregateEsBase<? extends Aggregation, ? extends Bucket> makeAggregate(String type, String field,\n Properties properties) {\n AggregateDescriptor descriptor = new AggregateDescriptor();\n descriptor.setId(aggKey(field, type));\n descriptor.setDocumentField(field);\n descriptor.setType(type);\n properties.forEach((key, value) -> descriptor.setProperty((String) key, (String) value));\n return AggregateFactory.create(descriptor, null);\n }", "AggregationBuilder buildAggregation();", "@Override\n public void createPartition(Partition partition) {\n \n }", "public AggregateFunctionBuilder<T> createAggregate(){\r\n return AggregateFunction.forType(this);\r\n }", "public Builder withPartition(int partition) {\n this.partition = partition;\n return this;\n }", "public final void rule__Partition__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMLRegression.g:1747:1: ( ( 'partition' ) )\n // InternalMLRegression.g:1748:1: ( 'partition' )\n {\n // InternalMLRegression.g:1748:1: ( 'partition' )\n // InternalMLRegression.g:1749:2: 'partition'\n {\n before(grammarAccess.getPartitionAccess().getPartitionKeyword_0()); \n match(input,29,FOLLOW_2); \n after(grammarAccess.getPartitionAccess().getPartitionKeyword_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "static AggregateOperation createAggregate(CoreWaveletOperation operation) {\n if (operation instanceof CoreWaveletDocumentOperation) {\n return new AggregateOperation((CoreWaveletDocumentOperation) operation);\n } else if (operation instanceof CoreRemoveParticipant) {\n return new AggregateOperation((CoreRemoveParticipant) operation);\n } else if (operation instanceof CoreAddParticipant) {\n return new AggregateOperation((CoreAddParticipant) operation);\n } else if (operation instanceof CoreAddSegment) {\n return new AggregateOperation((CoreAddSegment) operation);\n } else if (operation instanceof CoreRemoveSegment) {\n return new AggregateOperation((CoreRemoveSegment) operation);\n } else if (operation instanceof CoreStartModifyingSegment) {\n return new AggregateOperation((CoreStartModifyingSegment) operation);\n } else if (operation instanceof CoreEndModifyingSegment) {\n return new AggregateOperation((CoreEndModifyingSegment) operation);\n }\n assert operation instanceof CoreNoOp;\n return new AggregateOperation();\n }", "public void createQueryProcessor() throws IOException {\n\t\tfor(int i=0; i<=payload.getnumber_of_grouping_variables();i++) {\n\t\t\tlistMapsAggregates.add(new HashMap<String, String>());\n\t\t}\n\t\tfor(int i=0;i<payload.getnumber_of_aggregate_functions();i++) {\n\t\t\tString[] temp = payload.getaggregate_functions().get(i).split(\"_\",3);\n\t\t\tlistMapsAggregates.get(Integer.parseInt(temp[0])).put(temp[1], temp[2]);//(key,value) -> (aggregate function , column name)\n\t\t}\n\t\tStringBuilder fileData = new StringBuilder();\n\t\tfileData.append(\"package dbmsProject;\\r\\n\\r\\n\" + \n\t\t\t\t\"import java.io.FileOutputStream;\\r\\n\" + \n\t\t\t\t\"import java.io.IOException;\\r\\n\" + \n\t\t\t\t\"import java.text.DateFormat;\\r\\n\" + \n\t\t\t\t\"import java.text.DecimalFormat;\\r\\n\" + \n\t\t\t\t\"import java.text.SimpleDateFormat;\\r\\n\" + \n\t\t\t\t\"import java.util.ArrayList;\\r\\n\" + \n\t\t\t\t\"import java.util.Calendar;\\r\\n\" + \n\t\t\t\t\"import java.util.HashMap;\\r\\n\");\n\t\tfileData.append(\"\\r\\npublic class QueryProcessor{\\n\");\n\t\tfileData.append(\"\tprivate SalesTable salesTable;\\n\");\n\t\tfileData.append(\"\tprivate ExpTree expTree;\\n\");\n\t\tfileData.append(\"\tprivate Payload payload;\\n\");\n\t\tfileData.append(\"\tprivate Helper helper;\\n\");\n\t\tfileData.append(\"\tprivate ArrayList<HashMap<String,String>> listMapsAggregates;\\r\\n\" + \n\t\t\t\t\t\t\"\tprivate HashMap<String, Double> aggregatesMap;\\r\\n\" + \n\t\t\t\t\t\t\"\tprivate ArrayList<HashMap<String, ArrayList<InputRow>>> allGroups;\\r\\n\" + \n\t\t\t\t\t\t\"\tprivate ArrayList<ArrayList<String>> allGroupKeyStrings;\\r\\n\" + \n\t\t\t\t\t\t\"\tprivate ArrayList<ArrayList<InputRow>> allGroupKeyRows;\\n\");\n\t\tfileData.append(\"\\r\\n\tpublic QueryProcessor(SalesTable salesTable, Payload payload){\\n\");\n\t\tfileData.append(\"\t\tthis.aggregatesMap = new HashMap<String, Double>();\\n\");\n\t\tfileData.append(\"\t\tthis.salesTable=salesTable;\\n\");\n\t\tfileData.append(\"\t\tthis.payload=payload;\\n\");\n\t\tfileData.append(\"\t\tthis.expTree=new ExpTree();\\n\");\n\t\tfileData.append(\"\t\tthis.helper=new Helper();\\n\"\n\t\t\t\t\t\t+ \"\t\tthis.allGroupKeyRows = new ArrayList<ArrayList<InputRow>>();\\r\\n\" + \n\t\t\t\t\t\t\"\t\tthis.allGroupKeyStrings = new ArrayList<ArrayList<String>>();\\r\\n\" + \n\t\t\t\t\t\t\"\t\tthis.listMapsAggregates = new ArrayList<HashMap<String,String>>();\\r\\n\"\t+\n\t\t\t\t\t\t\"\t\tthis.allGroups = new ArrayList<HashMap<String, ArrayList<InputRow>>>();\\n\");\n\t\tfileData.append(\"\t}\\n\");\n\t\tfileData.append(\"\\r\\n\tpublic ArrayList<InputRow> createInputSet(){\\n\");\n\t\tfileData.append(\"\t\tArrayList<InputRow> inputResultSet = new ArrayList<InputRow>();\\n\");\n\t\tfileData.append(\"\t\tfor(SalesTableRow row: salesTable.getResultSet()) {\\n\");\n\t\tfileData.append(\"\t\t\tInputRow ir=new InputRow();\\n\");\n\t\tfor(String var: this.projectionVars) {\n\t\t\tfileData.append(\"\t\t\tir.set\"+varPrefix+var+\"(row.get\"+var+\"());\\n\");\n\t\t}\n\t\tfileData.append(\"\t\t\tinputResultSet.add(ir);\\n\");\n\t\tfileData.append(\"\t\t}\\n\");\n\t\tfileData.append(\"\t\treturn inputResultSet;\\n\");\n\t\tfileData.append(\"\t}\\n\");\n\t\t\n//OUTPUT ROW CREATION LOGIC\n\t\tfileData.append(\"\\r\\n\tpublic OutputRow convertInputToOutputRow(InputRow inputRow, String str, ArrayList<String> strList){\\n\");\n\t\tfileData.append(\"\t\tString temp=\\\"\\\";\\n\");\n\t\tfileData.append(\"\t\tOutputRow outputRow = new OutputRow();\\n\");\n\t\tfor(String select: payload.getselect_variables()) {\n\t\t\tif(helper.columnMapping.containsKey(select)) {\n\t\t\t\tfileData.append(\"\t\toutputRow.set\"+varPrefix+select+\"(inputRow.get\"+varPrefix+select+\"());\\n\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tString temp=select;\n\t\t\t\tif(select.contains(\"/\")) select=select.replaceAll(\"/\", \"_divide_\");\n\t\t\t\tif(select.contains(\"*\")) select=select.replaceAll(\"*\", \"_multiply_\");\n\t\t\t\tif(select.contains(\"+\")) select=select.replaceAll(\"+\", \"_add_\");\n\t\t\t\tif(select.contains(\"-\")) select=select.replaceAll(\"-\", \"_minus_\");\n\t\t\t\tif(select.contains(\")\")) select=select.replaceAll(\"[)]+\", \"\");\n\t\t\t\tif(select.contains(\"(\")) select=select.replaceAll(\"[(]+\", \"\");\n\t\t\t\tfileData.append(\"\t\ttemp = prepareClause(inputRow, inputRow, \\\"\"+temp+\"\\\", str, strList);\\n\");\n\t\t\t\tfileData.append(\"\t\tif(temp.contains(\\\"(\\\")) temp = expTree.execute(temp);\\r\\n\");\n\t\t\t\tfileData.append(\"\t\tif(temp.equals(\\\"discard_invalid_entry\\\")) return null;\\n\");\n\t\t\t\tfileData.append(\"\t\toutputRow.set\"+varPrefix+select+\"(Double.parseDouble(temp));\\n\");\n\t\t\t}\n\t\t}\n\t\tfileData.append(\"\t\treturn outputRow;\\n\");\n\t\tfileData.append(\"\t}\\n\");\n\t\t\n//WHERE CLAUSE EXECUTOR\n\t\tfileData.append(\"\\r\\n\tpublic ArrayList<InputRow> executeWhereClause(ArrayList<InputRow> inputResultSet) {\\r\\n\" + \n\t\t\t\t\"\t\tint i=0;\\r\\n\" + \n\t\t\t\t\"\t\twhile(i<inputResultSet.size()) {\\r\\n\" + \n\t\t\t\t\"\t\t\tString condition=prepareClause(inputResultSet.get(i), inputResultSet.get(i), payload.getWhereClause(), \\\"\\\", new ArrayList<String>());\\r\\n\" + \n\t\t\t\t\"\t\t\tif(condition.equals(\\\"discard_invalid_entry\\\") || !Boolean.parseBoolean(expTree.execute(condition))){\\r\\n\" + \n\t\t\t\t\"\t\t\t\tinputResultSet.remove(i);\\r\\n\" + \n\t\t\t\t\"\t\t\t\tcontinue;\\r\\n\" + \n\t\t\t\t\"\t\t\t}\\r\\n\" + \n\t\t\t\t\"\t\t\ti++;\\r\\n\" + \n\t\t\t\t\"\t\t}\\r\\n\" + \n\t\t\t\t\"\t\treturn inputResultSet;\\r\\n\" + \n\t\t\t\t\"\t}\\n\");\n\n//REFINE CLAUSE FOR PROCESSING\n\t\tfileData.append(\"\\r\\n\tpublic String prepareClause(InputRow row, InputRow rowZero, String condition, String str, ArrayList<String> strList) {\\r\\n\" + \n\t\t\t\t\"\t\tfor(int i=0;i<strList.size();i++) {\\r\\n\" + \n\t\t\t\t\"\t\t\tif(condition.contains(i+\\\"_\\\")) {\\r\\n\" + \n\t\t\t\t\"\t\t\t\tboolean flag=false;\\r\\n\" + \n\t\t\t\t\"\t\t\t\tfor(String ag : payload.getaggregate_functions()) {\\r\\n\" + \n\t\t\t\t\"\t\t\t\t\tif(!ag.contains(i+\\\"\\\")) continue;\\r\\n\" + \n\t\t\t\t\"\t\t\t\t\tif(condition.contains(ag)) flag=true;\\r\\n\" + \n\t\t\t\t\"\t\t\t\t\tcondition=condition.replaceAll(ag, ag+\\\"_\\\"+strList.get(i));\\r\\n\" + \n\t\t\t\t\"\t\t\t\t}\\r\\n\" + \n\t\t\t\t\"\t\t\t\tif(flag) {\\r\\n\" + \n\t\t\t\t\"\t\t\t\t\tboolean changeFlag=false;\\r\\n\" + \n\t\t\t\t\"\t\t\t\t\tfor(String key : aggregatesMap.keySet()) {\\r\\n\" + \n\t\t\t\t\"\t\t\t\t\t\tif(condition.contains(key)) changeFlag=true;\\r\\n\" + \n\t\t\t\t\"\t\t\t\t\t\tcondition = condition.replaceAll(key, Double.toString(aggregatesMap.get(key)));\\r\\n\" + \n\t\t\t\t\"\t\t\t\t\t}\\r\\n\" + \n\t\t\t\t\"\t\t\t\t\tif(!changeFlag) return \\\"discard_invalid_entry\\\";\\r\\n\" + \n\t\t\t\t\"\t\t\t\t}\\r\\n\" + \n\t\t\t\t\"\t\t\t}\\r\\n\" + \n\t\t\t\t\"\t\t}\\r\\n\" + \n\t\t\t\t\"\t\t\\r\\n\" + \n\t\t\t\t\"\t\tif(condition.contains(\\\".\\\")) {\\r\\n\");\n\t\tfor(String var: projectionVars) {\n\t\t\tif(helper.columnMapping.get(var)==0 || helper.columnMapping.get(var)==1 || helper.columnMapping.get(var)==5)\n\t\t\t\tfileData.append(\"\t\t\tcondition=condition.replaceAll(\\\"[0-9]+\\\\\\\\.\"+var+\"\\\", row.get\"+varPrefix+var+\"());\\r\\n\");\n\t\t\telse\n\t\t\t\tfileData.append(\"\t\t\tcondition=condition.replaceAll(\\\"[0-9]+\\\\\\\\.\"+var+\"\\\", Integer.toString(row.get\"+varPrefix+var+\"()));\\r\\n\");\n\t\t}\n\t\tfileData.append(\"\t\t}\\n\");\n\t\t\n\t\tfor(String var: projectionVars) {\n\t\t\tif(helper.columnMapping.get(var)==0 || helper.columnMapping.get(var)==1 || helper.columnMapping.get(var)==5)\n\t\t\t\tfileData.append(\"\t\tcondition=condition.replaceAll(\\\"\"+var+\"\\\", rowZero.get\"+varPrefix+var+\"());\\r\\n\");\n\t\t\telse\n\t\t\t\tfileData.append(\"\t\tcondition=condition.replaceAll(\\\"\"+var+\"\\\", Integer.toString(rowZero.get\"+varPrefix+var+\"()));\\r\\n\");\n\t\t}\n\t\t\n\t\tfileData.append(\n\t\t\t\t\"\t\tcondition=condition.replaceAll(\\\"\\\\\\\\s+\\\", \\\"\\\");\\r\\n\" + \n\t\t\t\t\"\t\tcondition=condition.replaceAll(\\\"\\\\\\\"\\\", \\\"\\\");\\r\\n\" + \n\t\t\t\t\"\t\tcondition=condition.replaceAll(\\\"\\\\'\\\", \\\"\\\");\\r\\n\" + \n\t\t\t\t\"\t\t\\r\\n\" + \n\t\t\t\t\"\t\treturn condition;\\r\\n\" + \n\t\t\t\t\"\t}\\n\");\n\n//CREATE GROUPS\t\t\n\t\tfileData.append(\"\\r\\n\tpublic void createListsBasedOnSuchThatPredicate(ArrayList<InputRow> inputResultSet) {\\r\\n\" + \n\t\t\t\t\"\t\t\\r\\n\" + \n\t\t\t\t\"\t\tfor(int i=0;i<=payload.getnumber_of_grouping_variables();i++) {\\r\\n\" + \n\t\t\t\t\"\t\t\tArrayList<String> groupKeyStrings = new ArrayList<String>();\\r\\n\" + \n\t\t\t\t\"\t\t\tArrayList<InputRow> groupKeyRows = new ArrayList<InputRow>();\\r\\n\" + \n\t\t\t\t\"\t\t\tfor(InputRow row : inputResultSet) {\\r\\n\" + \n\t\t\t\t\"\t\t\t\tStringBuilder temp=new StringBuilder();\\r\\n\" + \n\t\t\t\t\"\t\t\t\tInputRow groupRow = new InputRow();\\r\\n\" + \n\t\t\t\t\"\t\t\t\tfor(String group: payload.getGroupingAttributesOfAllGroups().get(i)) {\\r\\n\" + \n\t\t\t\t\"\t\t\t\t\tint col = helper.columnMapping.get(group);\\r\\n\" + \n\t\t\t\t\"\t\t\t\t\tswitch(col) {\\r\\n\");\n\t\tfor(String var: projectionVars) {\n\t\t\tfileData.append(\"\t\t\t\t\t\tcase \"+helper.columnMapping.get(var)+\":\"+\"{temp.append(row.get\"+varPrefix+var+\"()+\\\"_\\\"); groupRow.set\"+varPrefix+ var+ \"(row.get\"+varPrefix+var+\"()); break;}\\r\\n\");\n\t\t}\n\t\tfileData.append(\"\t\t\t\t\t}\\n\"+\n\t\t\t\t\"\t\t\t\t}\\r\\n\" + \n\t\t\t\t\"\t\t\t\tString s=temp.toString();\\r\\n\" + \n\t\t\t\t\"\t\t\t\tif(s.charAt(s.length()-1)=='_') s=s.substring(0, s.length()-1);\\r\\n\" + \n\t\t\t\t\"\t\t\t\tif( !groupKeyStrings.contains(s) ) {\\r\\n\" + \n\t\t\t\t\"\t\t\t\t\tgroupKeyStrings.add(s);\\r\\n\" + \n\t\t\t\t\"\t\t\t\t\tgroupKeyRows.add(groupRow);\\r\\n\" + \n\t\t\t\t\"\t\t\t\t}\\r\\n\" + \n\t\t\t\t\"\t\t\t}\\r\\n\" + \n\t\t\t\t\"\t\t\tallGroupKeyRows.add(groupKeyRows);\\r\\n\" + \n\t\t\t\t\"\t\t\tallGroupKeyStrings.add(groupKeyStrings);\\r\\n\" + \n\t\t\t\t\"\t\t}\\r\\n\" + \n\t\t\t\t\"\t\t\\r\\n\" + \n\t\t\t\t\"\t\tfor(int i=0;i<=payload.getnumber_of_grouping_variables();i++) {\\r\\n\" + \n\t\t\t\t\"\t\t\tHashMap<String, ArrayList<InputRow>> res = new HashMap<String, ArrayList<InputRow>>();\\r\\n\" + \n\t\t\t\t\"\t\t\tString suchThat = payload.getsuch_that_predicates().get(i);\\r\\n\" + \n\t\t\t\t\"\t\t\tfor(int j=0;j<allGroupKeyRows.get(i).size();j++) {\\r\\n\" + \n\t\t\t\t\"\t\t\t\tInputRow zeroRow = allGroupKeyRows.get(i).get(j);\\r\\n\" + \n\t\t\t\t\"\t\t\t\tArrayList<InputRow> groupMember = new ArrayList<InputRow>();\\r\\n\" + \n\t\t\t\t\"\t\t\t\tfor(InputRow salesRow : inputResultSet) {\\r\\n\" + \n\t\t\t\t\"\t\t\t\t\tString condition = prepareClause(salesRow, zeroRow, suchThat, \\\"\\\", new ArrayList<String>());\\r\\n\" + \n\t\t\t\t\"\t\t\t\t\tif(Boolean.parseBoolean(expTree.execute(condition))) {\\r\\n\" + \n\t\t\t\t\"\t\t\t\t\t\tgroupMember.add(salesRow);\\r\\n\" + \n\t\t\t\t\"\t\t\t\t\t}\\r\\n\" + \n\t\t\t\t\"\t\t\t\t}\\r\\n\" + \n\t\t\t\t\"\t\t\t\tres.put(allGroupKeyStrings.get(i).get(j), new ArrayList<InputRow>(groupMember));\\r\\n\" + \n\t\t\t\t\"\t\t\t}\\r\\n\" + \n\t\t\t\t\"\t\t\tallGroups.add(new HashMap<String, ArrayList<InputRow>>(res));\\r\\n\" + \n\t\t\t\t\"\t\t}\\r\\n\" + \n\t\t\t\t\"\t}\\n\");\n\t\t\n//GETGROUPING VARIABLE METHOD\n\t\tfileData.append(\"\\r\\n\tpublic String getGroupingVariable(int i, InputRow row) {\\r\\n\" + \n\t\t\t\t\"\t\tswitch(i) {\\r\\n\");\n\t\tfor(String var: projectionVars) {\n\t\t\tif(helper.columnMapping.get(var)==0||helper.columnMapping.get(var)==1||helper.columnMapping.get(var)==5)\n\t\t\t\tfileData.append(\"\t\t\tcase \"+helper.columnMapping.get(var)+\": return row.get\"+varPrefix+var+\"();\\r\\n\");\n\t\t\telse if(helper.columnMapping.get(var)==7)\n\t\t\t\tfileData.append(\"\t\t\tcase \"+helper.columnMapping.get(var)+\": return \\\"all\\\"\");\n\t\t\telse\n\t\t\t\tfileData.append(\"\t\t\tcase \"+helper.columnMapping.get(var)+\": return Integer.toString(row.get\"+varPrefix+var+\"());\\r\\n\");\n\t\t}\n\t\tfileData.append(\"\t\t}\\r\\n\");\n\t\tfileData.append(\"\t\treturn \\\"__Garbage__\\\";\\r\\n\");\n\t\tfileData.append(\"\t}\\n\");\n\t\t\n//COMPUTE AGGREGATES METHOD\n\t\tfileData.append(\"\\r\\n\tpublic void computeAggregates(ArrayList<InputRow> inputResultSet) {\t\\r\\n\" + \n\t\t\t\t\"\t\tdouble val=0;\\r\\n\"+\n\t\t\t\t\"\t\tfor(int i=0; i<=payload.getnumber_of_grouping_variables();i++) {\\r\\n\" + \n\t\t\t\t\"\t\t\tlistMapsAggregates.add(new HashMap<String, String>());\\r\\n\" + \n\t\t\t\t\"\t\t}\\r\\n\" + \n\t\t\t\t\"\t\tfor(int i=0;i<payload.getnumber_of_aggregate_functions();i++) {\\r\\n\" + \n\t\t\t\t\"\t\t\tString[] temp = payload.getaggregate_functions().get(i).split(\\\"_\\\",3);\\r\\n\" + \n\t\t\t\t\"\t\t\tlistMapsAggregates.get(Integer.parseInt(temp[0])).put(temp[1], temp[2]);//(key,value) -> (aggregate function , column name)\\r\\n\" + \n\t\t\t\t\"\t\t}\\r\\n\"+\n\t\t\t\t\"\t\tint nGroupingVariables=0;\\r\\n\"+\n\t\t\t\t\"\t\taggregatesMap = new HashMap<>();\\r\\n\"+\n\t\t\t\t\"\t\tHashMap<String,Double> tempAggregatesMap;\\r\\n\");\n\t\t\n\t\tfor(int nGroupingVariables=0;nGroupingVariables<=payload.getnumber_of_grouping_variables();nGroupingVariables++) {\n\t\t\tfileData.append(\"\\n\t\tnGroupingVariables=\"+nGroupingVariables+\";\\r\\n\");\n\t\t\tfileData.append(\n\t\t\t\t\t\t\t\"\t\ttempAggregatesMap = new HashMap<String,Double>();\\r\\n\" + \n\t\t\t\t\t\t\t\"\t\t\\r\\n\" + \n\t\t\t\t\t\t\t\"\t\tfor(int i=0;i<allGroupKeyRows.get(nGroupingVariables).size(); i++) {\\r\\n\" + \n\t\t\t\t\t\t\t\"\t\t\tInputRow zeroRow = allGroupKeyRows.get(nGroupingVariables).get(i);\\r\\n\" );\n\t\t\t\n\t\t\t//MFvsEMF\n\t\t\tif(isGroupMF(nGroupingVariables)) fileData.append(\"\t\t\tfor(InputRow row: allGroups.get(nGroupingVariables).get(allGroupKeyStrings.get(nGroupingVariables).get(i)))\t{\\r\\n\");\n\t\t\telse fileData.append(\"\t\t\tfor(InputRow row: inputResultSet) {\\r\\n\");\n\t\t\t\n\t\t\tfileData.append(\"\t\t\t\tString condition = payload.getsuch_that_predicates().get(nGroupingVariables);\\r\\n\" + \n\t\t\t\t\t\t\t\"\t\t\t\tString str = allGroupKeyStrings.get(nGroupingVariables).get(i);\\r\\n\" + \n\t\t\t\t\t\t\t\"\t\t\t\tArrayList<String> strList = new ArrayList<String>();\\r\\n\" + \n\t\t\t\t\t\t\t\"\t\t\t\tfor(int j=0;j<=payload.getnumber_of_grouping_variables();j++) strList.add(str);\\r\\n\" +\n\t\t\t\t\t\t\t\"\t\t\t\tcondition= prepareClause(row, zeroRow, condition, str, strList);\\r\\n\" + \n\t\t\t\t\t\t\t\"\t\t\t\tif(condition.equals(\\\"discard_invalid_entry\\\") || !Boolean.parseBoolean(expTree.execute(condition))) continue;\\r\\n\"\n\t\t\t\t\t\t\t);\n\t\t\tString key1 = nGroupingVariables+\"_sum_\"+listMapsAggregates.get(nGroupingVariables).get(\"sum\");\n\t\t\tString key2 = nGroupingVariables+\"_avg_\"+listMapsAggregates.get(nGroupingVariables).get(\"avg\");\n\t\t\tString key3 = nGroupingVariables+\"_min_\"+listMapsAggregates.get(nGroupingVariables).get(\"min\");\n\t\t\tString key4 = nGroupingVariables+\"_max_\"+listMapsAggregates.get(nGroupingVariables).get(\"max\");\n\t\t\tString key5 = nGroupingVariables+\"_count_\"+listMapsAggregates.get(nGroupingVariables).get(\"count\");\n\t\t\tString key6 = nGroupingVariables+\"_count_\"+listMapsAggregates.get(nGroupingVariables).get(\"avg\");\n\t\t\t\n\t\t\tif(listMapsAggregates.get(nGroupingVariables).containsKey(\"sum\")) \n\t\t\t\tfileData.append(\"\t\t\t\tString key1=\\\"\"+key1+\"\\\";\\r\\n\");\n\t\t\tif(listMapsAggregates.get(nGroupingVariables).containsKey(\"avg\")) {\n\t\t\t\tfileData.append(\"\t\t\t\tString key2=\\\"\"+key2+\"\\\";\\r\\n\");\n\t\t\t\tfileData.append(\"\t\t\t\tString key6=\\\"\"+key6+\"\\\";\\r\\n\");\n\t\t\t}\n\t\t\tif(listMapsAggregates.get(nGroupingVariables).containsKey(\"min\"))\n\t\t\t\tfileData.append(\"\t\t\t\tString key3=\\\"\"+key3+\"\\\";\\r\\n\");\n\t\t\tif(listMapsAggregates.get(nGroupingVariables).containsKey(\"max\"))\n\t\t\t\tfileData.append(\"\t\t\t\tString key4=\\\"\"+key4+\"\\\";\\r\\n\");\n\t\t\tif(listMapsAggregates.get(nGroupingVariables).containsKey(\"count\"))\n\t\t\t\tfileData.append(\"\t\t\t\tString key5=\\\"\"+key5+\"\\\";\\r\\n\");\n\t\t\t\n\t\t\tfileData.append(\"\t\t\t\tfor(String ga: payload.getGroupingAttributesOfAllGroups().get(nGroupingVariables)) {\\r\\n\");\n\t\t\tif(listMapsAggregates.get(nGroupingVariables).containsKey(\"sum\")) \n\t\t\t\tfileData.append(\"\t\t\t\t\tkey1=key1+\\\"_\\\"+ getGroupingVariable(helper.columnMapping.get(ga), zeroRow);\\r\\n\");\n\t\t\tif(listMapsAggregates.get(nGroupingVariables).containsKey(\"avg\")) {\n\t\t\t\tfileData.append(\"\t\t\t\t\tkey2=key2+\\\"_\\\"+ getGroupingVariable(helper.columnMapping.get(ga), zeroRow);\\r\\n\");\n\t\t\t\tfileData.append(\"\t\t\t\t\tkey6=key6+\\\"_\\\"+ getGroupingVariable(helper.columnMapping.get(ga), zeroRow);\\r\\n\");\n\t\t\t}\n\t\t\tif(listMapsAggregates.get(nGroupingVariables).containsKey(\"min\"))\n\t\t\t\tfileData.append(\"\t\t\t\t\tkey3=key3+\\\"_\\\"+ getGroupingVariable(helper.columnMapping.get(ga), zeroRow);\\r\\n\");\n\t\t\tif(listMapsAggregates.get(nGroupingVariables).containsKey(\"max\"))\n\t\t\t\tfileData.append(\"\t\t\t\t\tkey4=key4+\\\"_\\\"+ getGroupingVariable(helper.columnMapping.get(ga), zeroRow);\\r\\n\");\n\t\t\tif(listMapsAggregates.get(nGroupingVariables).containsKey(\"count\"))\n\t\t\t\tfileData.append(\"\t\t\t\t\tkey5=key5+\\\"_\\\"+ getGroupingVariable(helper.columnMapping.get(ga), zeroRow);\\r\\n\");\n\t\t\tfileData.append(\"\t\t\t\t}\\r\\n\");\n\t\t\t\n\t\t\tif(listMapsAggregates.get(nGroupingVariables).containsKey(\"sum\")) {\n\t\t\t\tfileData.append(\"\t\t\tval=tempAggregatesMap.getOrDefault(key1, 0.0)+Double.parseDouble(getGroupingVariable(helper.columnMapping.get(listMapsAggregates.get(nGroupingVariables).get(\\\"sum\\\")), row));\\r\\n\" + \n\t\t\t\t\"\t\t\ttempAggregatesMap.put(key1, val);\\r\\n\");\n\t\t\t}\n\t\t\tif(listMapsAggregates.get(nGroupingVariables).containsKey(\"avg\")) {\n\t\t\t\tfileData.append(\"\t\t\tval=tempAggregatesMap.getOrDefault(key2, 0.0)+Double.parseDouble(getGroupingVariable(helper.columnMapping.get(listMapsAggregates.get(nGroupingVariables).get(\\\"avg\\\")), row));\\r\\n\"+\n\t\t\t\t\"\t\t\ttempAggregatesMap.put(key2, val);\\r\\n\"+\n\t\t\t\t\"\t\t\ttempAggregatesMap.put(key6, tempAggregatesMap.getOrDefault(key6, 0.0)+1);\\r\\n\");\n\t\t\t}\n\t\t\tif(listMapsAggregates.get(nGroupingVariables).containsKey(\"min\")) {\n\t\t\t\tfileData.append(\"\t\t\tval=Math.min( tempAggregatesMap.getOrDefault(key3, Double.MAX_VALUE) , Double.parseDouble(getGroupingVariable(helper.columnMapping.get(listMapsAggregates.get(nGroupingVariables).get(\\\"min\\\")), row)));\\r\\n\"+\n\t\t\t\t\"\t\t\ttempAggregatesMap.put(key3, val);\\r\\n\");\n\t\t\t}\n\t\t\tif(listMapsAggregates.get(nGroupingVariables).containsKey(\"max\")) {\n\t\t\t\tfileData.append(\"\t\t\tval=Math.max( tempAggregatesMap.getOrDefault(key4, Double.MIN_VALUE) , Double.parseDouble(getGroupingVariable(helper.columnMapping.get(listMapsAggregates.get(nGroupingVariables).get(\\\"max\\\")), row)));\\r\\n\"+\n\t\t\t\t\"\t\t\ttempAggregatesMap.put(key4, val);\");\n\t\t\t}\n\t\t\tif(listMapsAggregates.get(nGroupingVariables).containsKey(\"count\")) {\n\t\t\t\tfileData.append(\"\t\t\ttempAggregatesMap.put(key5, tempAggregatesMap.getOrDefault(key5, 0.0)+1);\\r\\n\");\n\t\t\t}\n\t\t\tfileData.append(\"\t\t\t}\\r\\n\");\n\t\t\tfileData.append(\"\t\t}\\r\\n\");\n\t\t\tif(listMapsAggregates.get(nGroupingVariables).containsKey(\"avg\")) {\n\t\t\t\tfileData.append(\n\t\t\t\t\"\t\tfor(String key: tempAggregatesMap.keySet()) {\\r\\n\"+\n\t\t\t\t\"\t\t\tif(key.contains(\\\"_avg_\\\"))\\r\\n\"+\n\t\t\t\t\"\t\t\t\ttempAggregatesMap.put(key, tempAggregatesMap.get(key)/tempAggregatesMap.get(key.replace(\\\"_avg_\\\", \\\"_count_\\\")));\\r\\n\"+\n\t\t\t\t\"\t\t}\\r\\n\");\n\t\t\t}\n\t\t\tfileData.append(\"\t\taggregatesMap.putAll(tempAggregatesMap);\\r\\n\");\n\t\t}\n\t\t\n\t\tfileData.append(\"\t}\\n\");\n\n//PREPARE THE RESULTS AND ADD THEM TO A LIST OF OUTPUTROW\n\t\tfileData.append(\"\\r\\n\tpublic ArrayList<OutputRow> createOutputResultSet() {\\r\\n\" + \n\t\t\t\t\"\t\tArrayList<OutputRow> outputRowList = new ArrayList<OutputRow>();\\r\\n\"+\n\t\t\t\t\"\t\tfor(int i=0; i<allGroupKeyRows.get(0).size();i++) {\\r\\n\" + \n\t\t\t\t\"\t\t\tString str=allGroupKeyStrings.get(0).get(i);\\r\\n\" + \n\t\t\t\t\"\t\t\tString[] tempStr = str.split(\\\"_\\\");\\r\\n\" + \n\t\t\t\t\"\t\t\tArrayList<String> strList = new ArrayList<String>();\\r\\n\" + \n\t\t\t\t\"\t\t\tfor(int j=0; j<=payload.getnumber_of_grouping_variables(); j++) {\\r\\n\" + \n\t\t\t\t\"\t\t\t\tString ss = \\\"\\\";\\r\\n\" + \n\t\t\t\t\"\t\t\t\tint k=0;\\r\\n\" + \n\t\t\t\t\"\t\t\t\tfor(String gz: payload.getgrouping_attributes()) {\\r\\n\" + \n\t\t\t\t\"\t\t\t\t\tif(payload.getGroupingAttributesOfAllGroups().get(j).contains(gz)) ss=ss+tempStr[k++]+\\\"_\\\";\\r\\n\" + \n\t\t\t\t\"\t\t\t\t\telse k++;\\r\\n\" + \n\t\t\t\t\"\t\t\t\t}\\r\\n\" + \n\t\t\t\t\"\t\t\t\tstrList.add(ss.substring(0, ss.length()-1));\\r\\n\" + \n\t\t\t\t\"\t\t\t}\\r\\n\" + \n\t\t\t\t\"\t\t\t//having check\\r\\n\" + \n\t\t\t\t\"\t\t\tif(payload.isHavingClause()) {\\r\\n\" + \n\t\t\t\t\"\t\t\t\tString condition= prepareClause(allGroupKeyRows.get(0).get(i), allGroupKeyRows.get(0).get(i), payload.getHavingClause(), str, strList);\\r\\n\" + \n\t\t\t\t\"\t\t\t\tif(condition.equals(\\\"discard_invalid_entry\\\") || !Boolean.parseBoolean(expTree.execute(condition))) continue;\\r\\n\" + \n\t\t\t\t\"\t\t\t}\\r\\n\" + \n\t\t\t\t\"\\r\\n\" + \n\t\t\t\t\"\t\t\tOutputRow outputRow= convertInputToOutputRow(allGroupKeyRows.get(0).get(i), str, strList);\\r\\n\"+\n\t\t\t\t\"\t\t\tif(outputRow!=null){\\r\\n\" + \n\t\t\t\t\"\t\t\t\toutputRowList.add(outputRow);\\r\\n\"+\n\t\t\t\t\"\t\t\t}\\r\\n\"+\t\n\t\t\t\t\"\t\t}\\r\\n\" + \n\t\t\t\t\"\t\treturn outputRowList;\\r\\n\"+\n\t\t\t\t\"\t}\\n\");\n\t\t\n//PRINT THE OUTPUT ROW\n\t\tfileData.append(\"\\r\\n\tpublic void printOutputResultSet(ArrayList<OutputRow> outputResultSet) throws IOException{\\r\\n\");\n\t\tfileData.append(\"\t\tCalendar now = Calendar.getInstance();\\r\\n\" + \n\t\t\t\t\"\t\tDateFormat dateFormat = new SimpleDateFormat(\\\"MM/dd/yyyy HH:mm:ss\\\");\\r\\n\" + \n\t\t\t\t\"\t\tStringBuilder fileData = new StringBuilder();\\r\\n\" + \n\t\t\t\t\"\t\tfileData.append(\\\"TIME (MM/dd/yyyy HH:mm:ss)::::\\\"+dateFormat.format(now.getTime())+\\\"\\\\r\\\\n\\\");\\r\\n\" + \n\t\t\t\t\"\t\tString addDiv = \\\" -------------- \\\";\\r\\n\" + \n\t\t\t\t\"\t\tString divide = \\\"\\\";\\r\\n\" + \n\t\t\t\t\"\t\tString header=\\\"\\\";\"+\n\t\t\t\t\"\t\tfor(String select: payload.getselect_variables()) {\\r\\n\" + \n\t\t\t\t\"\t\t\tif(select.contains(\\\"0_\\\")) select=select.substring(2);\\r\\n\" + \n\t\t\t\t\"\t\t\theader=header+\\\" \\\"+select;\\r\\n\" + \n\t\t\t\t\"\t\t\tfor(int i=0;i<14-select.length();i++) header=header+\\\" \\\";\\r\\n\" + \n\t\t\t\t\"\t\t\tdivide=divide+addDiv;\\r\\n\"+\n\t\t\t\t\"\t\t}\\r\\n\" + \n\t\t\t\t\"\t\tSystem.out.println(divide); fileData.append(divide+\\\"\\\\r\\\\n\\\");\\r\\n\" + \n\t\t\t\t\"\t\tSystem.out.println(header); fileData.append(header+\\\"\\\\r\\\\n\\\");\\r\\n\" + \n\t\t\t\t\"\t\tSystem.out.println(divide); fileData.append(divide+\\\"\\\\r\\\\n\\\");\\r\\n\" + \n\t\t\t\t//\"\t\tSystem.out.println(); fileData.append(\\\"\\\\r\\\\n\\\");\\r\\n\" + \n\t\t\t\t\"\t\tString ansString=\\\"\\\";\\r\\n\" + \n\t\t\t\t\"\t\tDecimalFormat df = new DecimalFormat(\\\"#.####\\\");\\r\\n\");\n\t\tfileData.append(\"\t\tfor(OutputRow outputRow: outputResultSet) {\\r\\n\");\n\t\tfileData.append(\"\t\t\tString answer=\\\"\\\";\\r\\n\");\n\t\t\n\t\tfor(String select: payload.getselect_variables()) {\n\t\t\tif(helper.columnMapping.containsKey(select)) {\n\t\t\t\tint col = helper.columnMapping.get(select);\n\t\t\t\tif(col==0|| col==1|| col==5) {\n\t\t\t\t\t//string\n\t\t\t\t\tfileData.append(\"\t\t\tansString=outputRow.get\"+varPrefix+select+\"();\\r\\n\");\n\t\t\t\t\tfileData.append(\"\t\t\tanswer=answer+\\\" \\\"+ansString;\\r\\n\");\n\t\t\t\t\tfileData.append(\"\t\t\tfor(int k=0;k<14-ansString.length();k++) answer=answer+\\\" \\\";\\r\\n\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t//int\n\t\t\t\t\tfileData.append(\"\t\t\tansString = Integer.toString(outputRow.get\"+varPrefix+select+\"());\\r\\n\");\n\t\t\t\t\tfileData.append(\"\t\t\tfor(int k=0;k<12-ansString.length();k++) answer=answer+\\\" \\\";\\r\\n\");\n\t\t\t\t\tfileData.append(\"\t\t\tanswer=answer+ansString+\\\" \\\";\\r\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\t//double\n\t\t\t\tif(select.contains(\"/\")) select=select.replaceAll(\"/\", \"_divide_\");\n\t\t\t\tif(select.contains(\"*\")) select=select.replaceAll(\"*\", \"_multiply_\");\n\t\t\t\tif(select.contains(\"+\")) select=select.replaceAll(\"+\", \"_add_\");\n\t\t\t\tif(select.contains(\"-\")) select=select.replaceAll(\"-\", \"_minus_\");\n\t\t\t\tif(select.contains(\")\")) select=select.replaceAll(\"[)]+\", \"\");\n\t\t\t\tif(select.contains(\"(\")) select=select.replaceAll(\"[(]+\", \"\");\n\t\t\t\tfileData.append(\"\t\t\tansString = df.format(outputRow.get\"+varPrefix+select+\"());\\r\\n\");\n\t\t\t\tfileData.append(\"\t\t\tfor(int k=0;k<12-ansString.length();k++) answer=answer+\\\" \\\";\\r\\n\");\n\t\t\t\tfileData.append(\"\t\t\tanswer=answer+ansString+\\\" \\\";\\r\\n\");\n\t\t\t}\n\t\t}\n\t\tfileData.append(\"\t\t\tSystem.out.println(answer); fileData.append(answer+\\\"\\\\r\\\\n\\\");\\r\\n\");\n\t\tfileData.append(\"\t\t}\\r\\n\");\n\t\tfileData.append(\"\t\tFileOutputStream fos = new FileOutputStream(\\\"queryOutput/\"+payload.fileName+\"\\\");\\r\\n\" + \n\t\t\t\t\"\t\tfos.write(fileData.toString().getBytes());\\r\\n\" + \n\t\t\t\t\"\t\tfos.flush();\\r\\n\" + \n\t\t\t\t\"\t\tfos.close();\\r\\n\");\n\t\tfileData.append(\"\t}\\r\\n\");\n\t\t\n\t\t\n//DRIVER METHOD OF THE QUERY PROCESSOR\n\t\tfileData.append(\"\\r\\n\tpublic void process() throws IOException{\\r\\n\" + \n\t\t\t\t\"\t\tArrayList<InputRow> inputResultSet = createInputSet();\\r\\n\" + \n\t\t\t\t\"\t\tif(payload.getIsWhereClause()) inputResultSet = executeWhereClause(inputResultSet);\\r\\n\" + \n\t\t\t\t\"\t\tif(payload.getnumber_of_grouping_variables()>0) createListsBasedOnSuchThatPredicate(inputResultSet);\\r\\n\" + \n\t\t\t\t\"\t\tcomputeAggregates(inputResultSet);\\r\\n\" + \n\t\t\t\t\"\t\tArrayList<OutputRow> outputResultSet = createOutputResultSet();\\r\\n\" + \n\t\t\t\t\"\t\tprintOutputResultSet(outputResultSet);\\r\\n\"+\n\t\t\t\t\"\t}\\n\");\n\t\t\n\t\tfileData.append(\"}\");\n\t\tFileOutputStream fos = new FileOutputStream(\"src/dbmsProject/QueryProcessor.java\");\n\t\tfos.write(fileData.toString().getBytes());\n\t\tfos.flush();\n\t\tfos.close();\n\t}", "static AggregateOperation createAggregate(WaveletOperation operation) {\n if (operation instanceof WaveletBlipOperation) {\n return new AggregateOperation((WaveletBlipOperation) operation);\n } else if (operation instanceof RemoveParticipant) {\n return new AggregateOperation((RemoveParticipant) operation);\n } else if (operation instanceof AddParticipant) {\n return new AggregateOperation((AddParticipant) operation);\n } else if (operation instanceof AddSegment) {\n return new AggregateOperation((AddSegment) operation);\n } else if (operation instanceof RemoveSegment) {\n return new AggregateOperation((RemoveSegment) operation);\n } else if (operation instanceof StartModifyingSegment) {\n return new AggregateOperation((StartModifyingSegment) operation);\n } else if (operation instanceof EndModifyingSegment) {\n return new AggregateOperation((EndModifyingSegment) operation);\n }\n assert operation instanceof NoOp : \"Operation is an unhandled type: \" + operation.getClass();\n return new AggregateOperation();\n }", "QueryPartitionClause createQueryPartitionClause();", "private FilterPipeline createPipeline() {\n Filter filterZero = createDefaultPatternFilter(0);\n Filter filterTwo = createDefaultPatternFilter(2); \n Sorter sorter = new ShuttleSorter();\n Filter[] filters = new Filter[] {filterZero, filterTwo, sorter};\n FilterPipeline pipeline = new FilterPipeline(filters);\n return pipeline;\n }", "@Override\n public Object build() {\n String countFilterField = null;\n for (ParamComposite param : this.getChildren().stream()\n .filter(child -> ParamComposite.class.isAssignableFrom(child.getClass()))\n .map(child -> (ParamComposite) child).collect(Collectors.toList())) {\n switch (param.getName().toLowerCase()) {\n case \"field\":\n countFilterField = (String)param.getValue();\n break;\n case \"operator\":\n operator = (BiPredicate) param.getValue();\n break;\n case \"operands\":\n operands = (List<String>)param.getValue();\n break;\n\n }\n }\n\n if (countFilterField != null) {\n String fieldName = (this.getName()+ COUNT_FIELD).replace(\".\",\"_\");\n TermsAggregationBuilder aggregation = AggregationBuilders.terms(this.getName()).field(this.getName())\n .subAggregation(PipelineAggregatorBuilders.bucketSelector(countFilterField,\n Collections.singletonMap(fieldName,\"_count\"),\n BuildFilterScript.script(fieldName, operator,operands)));\n return aggregation;\n }\n\n return this;\n }", "<K1, V1, T> KTable<K1, T> aggregate(Initializer<T> initializer,\n Aggregator<K1, V1, T> add,\n Aggregator<K1, V1, T> remove,\n KeyValueMapper<K, V, KeyValue<K1, V1>> selector,\n Serializer<K1> keySerializer,\n Serializer<V1> valueSerializer,\n Serializer<T> aggValueSerializer,\n Deserializer<K1> keyDeserializer,\n Deserializer<V1> valueDeserializer,\n Deserializer<T> aggValueDeserializer,\n String name);", "@Override\r\n protected Schema generateSchema() {\r\n Operator child = getChild();\r\n if (child == null) {\r\n return null;\r\n }\r\n Schema inputSchema = child.getSchema();\r\n if (inputSchema == null) {\r\n return null;\r\n }\r\n\r\n groupSchema = inputSchema.getSubSchema(gfields);\r\n\r\n /* Build the output schema from the group schema and the aggregates. */\r\n final ImmutableList.Builder<Type> aggTypes = ImmutableList.<Type>builder();\r\n final ImmutableList.Builder<String> aggNames = ImmutableList.<String>builder();\r\n\r\n try {\r\n for (Aggregator agg : AggUtils.allocateAggs(factories, inputSchema)) {\r\n Schema curAggSchema = agg.getResultSchema();\r\n aggTypes.addAll(curAggSchema.getColumnTypes());\r\n aggNames.addAll(curAggSchema.getColumnNames());\r\n }\r\n } catch (DbException e) {\r\n throw new RuntimeException(\"unable to allocate aggregators to determine output schema\", e);\r\n }\r\n aggSchema = new Schema(aggTypes, aggNames);\r\n return Schema.merge(groupSchema, aggSchema);\r\n }", "private void createPartitions() {\n \tfor (int attrOrd : splitAttrs) {\n \t\tFeatureField featFld = schema.findFieldByOrdinal(attrOrd);\n \t\tif (featFld.isInteger()) {\n \t\t\t//numerical\n \t\t\tList<Integer[]> splitList = new ArrayList<Integer[]>();\n \t\t\tInteger[] splits = null;\n \t\t\tcreateNumPartitions(splits, featFld, splitList);\n \t\t\t\n \t\t\t//collect all splits\n \t\t\tfor (Integer[] thisSplit : splitList) {\n \t\t\t\tsplitHandler.addIntSplits(attrOrd, thisSplit);\n \t\t\t}\n \t\t} else if (featFld.isCategorical()) {\n \t\t\t//categorical\n \t\t\tint numGroups = featFld.getMaxSplit();\n \t\t\tif (numGroups > maxCatAttrSplitGroups) {\n \t\t\t\tthrow new IllegalArgumentException(\n \t\t\t\t\t\"more than \" + maxCatAttrSplitGroups + \" split groups not allwed for categorical attr\");\n \t\t\t}\n \t\t\t\n \t\t\t//try all group count from 2 to max\n \t\t\tList<List<List<String>>> finalSplitList = new ArrayList<List<List<String>>>();\n \t\t\tfor (int gr = 2; gr <= numGroups; ++gr) {\n \t\t\t\tLOG.debug(\"num of split sets:\" + gr);\n \t\t\t\tList<List<List<String>>> splitList = new ArrayList<List<List<String>>>();\n \t\t\t\tcreateCatPartitions(splitList, featFld.getCardinality(), 0, gr);\n \t\t\t\tfinalSplitList.addAll(splitList);\n \t\t\t}\n \t\t\t\n \t\t\t//collect all splits\n \t\t\tfor (List<List<String>> splitSets : finalSplitList) {\n \t\t\t\tsplitHandler.addCategoricalSplits(attrOrd, splitSets);\n \t\t\t}\n \t\t\t\n \t\t}\n \t}\n }", "public final void rulePartition() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMLRegression.g:316:2: ( ( ( rule__Partition__Group__0 ) ) )\n // InternalMLRegression.g:317:2: ( ( rule__Partition__Group__0 ) )\n {\n // InternalMLRegression.g:317:2: ( ( rule__Partition__Group__0 ) )\n // InternalMLRegression.g:318:3: ( rule__Partition__Group__0 )\n {\n before(grammarAccess.getPartitionAccess().getGroup()); \n // InternalMLRegression.g:319:3: ( rule__Partition__Group__0 )\n // InternalMLRegression.g:319:4: rule__Partition__Group__0\n {\n pushFollow(FOLLOW_2);\n rule__Partition__Group__0();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getPartitionAccess().getGroup()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "@Override\n public Object build() {\n AvgAggregationBuilder avg = AggregationBuilders.avg(this.getName());\n\n for (ParamComposite param : this.getChildren().stream()\n .filter(child -> ParamComposite.class.isAssignableFrom(child.getClass()))\n .map(child -> (ParamComposite) child).collect(Collectors.toList())) {\n switch (param.getName().toLowerCase()) {\n case \"field\":\n avg.field((String)param.getValue());\n /*case \"script\":\n avg.script((String)param.getValue());*/\n }\n }\n\n return avg;\n }", "public interface AggregationChunkStorage {\n\t/**\n\t * Creates a {@code StreamProducer} that streams records contained in the chunk.\n\t * The chunk to read is determined by {@code aggregationId} and {@code id}.\n\t *\n\t * @param recordClass class of chunk record\n\t * @param id id of chunk\n\t * @return StreamProducer, which will stream read records to its wired consumer.\n\t */\n\t<T> StreamProducer<T> chunkReader(Aggregation aggregation, List<String> keys, List<String> fields,\n\t Class<T> recordClass, long id, DefiningClassLoader classLoader);\n\n\t/**\n\t * Creates a {@code StreamConsumer} that persists streamed records.\n\t * The chunk to write is determined by {@code aggregationId} and {@code id}.\n\t *\n\t * @param fields fields of chunk record\n\t * @param recordClass class of chunk record\n\t * @param id id of chunk\n\t * @param producer producer of records\n\t */\n\t<T> void chunkWriter(Aggregation aggregation, List<String> keys, List<String> fields, Class<T>\n\t\t\trecordClass, long id, StreamProducer<T> producer, DefiningClassLoader classLoader, CompletionCallback callback);\n\n\t/**\n\t * Removes the chunk determined by {@code aggregationId} and {@code id}.\n\t *\n\t * @param id id of chunk\n\t * @param callback callback\n\t */\n\tvoid removeChunk(long id, CompletionCallback callback);\n}", "public CreateStatementBuilder setPartitioning(Partitioning partitioning) {\n this.partitioning = partitioning;\n return this;\n }", "public interface IAggregator<T> {\r\n void aggregate(Collection<T> batch);\r\n}", "private static void DoGroupBy()\n\t{\n\n\t\tArrayList<Attribute> inAtts = new ArrayList<Attribute>();\n\t\tinAtts.add(new Attribute(\"Int\", \"o_orderkey\"));\n\t\tinAtts.add(new Attribute(\"Int\", \"o_custkey\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"o_orderstatus\"));\n\t\tinAtts.add(new Attribute(\"Float\", \"o_totalprice\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"o_orderdate\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"o_orderpriority\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"o_clerk\"));\n\t\tinAtts.add(new Attribute(\"Int\", \"o_shippriority\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"o_comment\"));\n\n\t\tArrayList<Attribute> outAtts = new ArrayList<Attribute>();\n\t\toutAtts.add(new Attribute(\"Str\", \"att1\"));\n\t\toutAtts.add(new Attribute(\"Str\", \"att2\"));\n\t\toutAtts.add(new Attribute(\"Float\", \"att3\"));\n\t\toutAtts.add(new Attribute(\"Int\", \"att4\"));\n\n\t\tArrayList<String> groupingAtts = new ArrayList<String>();\n\t\tgroupingAtts.add(\"o_orderdate\");\n\t\tgroupingAtts.add(\"o_orderstatus\");\n\n\t\tHashMap<String, AggFunc> myAggs = new HashMap<String, AggFunc>();\n\t\tmyAggs.put(\"att1\", new AggFunc(\"none\",\n\t\t\t\t\"Str(\\\"status: \\\") + o_orderstatus\"));\n\t\tmyAggs.put(\"att2\", new AggFunc(\"none\", \"Str(\\\"date: \\\") + o_orderdate\"));\n\t\tmyAggs.put(\"att3\", new AggFunc(\"avg\", \"o_totalprice * Int (100)\"));\n\t\tmyAggs.put(\"att4\", new AggFunc(\"sum\", \"Int (1)\"));\n\n\t\t// run the selection operation\n\t\ttry\n\t\t{\n\t\t\tnew Grouping(inAtts, outAtts, groupingAtts, myAggs, \"orders.tbl\", \"out.tbl\", \"g++\", \"cppDir/\");\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}", "@Override\n public Object build() {\n return innerAggregationBuilder.getAggregations();\n }", "private PartitionFunctionFactory() {\n }", "@StreamListener(\"usersbyregion_input\")\n\t@SendTo(\"usersbyregion_output\")\n\tpublic KStream<Object, UsersByRegionCount> aggregateHandler(KStream<Object, DomainEvent> input) {\n\t\treturn input.filter((k, v) -> v instanceof UserCreated)\n\t\t\t\t.map((k, v) -> new KeyValue<>(((UserCreated) v).getRegion(), v))\n\t\t\t\t.groupByKey(Serialized\n\t\t\t\t\t\t.with(new Serdes.StringSerde(), new JsonSerde<>(DomainEvent.class)))\n\t\t\t\t.windowedBy(TimeWindows.of(WINDOW_SIZE))\n\t\t\t\t.count(Materialized.as(USERS_GROUPED_BY_REGION_SNAPSHOT))\n\t\t\t\t.toStream()\n\t\t\t\t.map((k, v) -> new KeyValue<>(null,\n\t\t\t\t\t\tnew UsersByRegionCount(k.key(), v, k.window().start(), k.window().end())));\n\t}", "static PipelineResult runIngestionPipeline(IngestionPipelineOptions options) {\n Pipeline pipeline = Pipeline.create(options);\n long startTime =\n IngestionPipelineOptions.calculatePipelineStart(\n options.getStartTime(), options.getDuration(), 1, Clock.systemUTC());\n PCollection<DataShare> dataShares =\n pipeline\n .apply(new FirestoreReader(startTime))\n // Ensure distinctness of data shares based on document path\n .apply(\n Distinct.<Document, String>withRepresentativeValueFn(\n // Not using a lambda here as Beam has trouble inferring a coder\n new SerializableFunction<Document, String>() {\n @Override\n public String apply(Document document) {\n return document.getName();\n }\n }))\n .apply(ParDo.of(new ConstructDataSharesFn()));\n processDataShares(dataShares).apply(\"SerializePacketHeaderSig\", ParDo.of(new BatchWriterFn()));\n return pipeline.run();\n }", "@Override\n public Object build() {\n TermsAggregationBuilder terms = AggregationBuilders.terms(this.getName());\n\n for (ParamComposite param : this.getChildren().stream()\n .filter(child -> ParamComposite.class.isAssignableFrom(child.getClass()))\n .map(child -> (ParamComposite) child).collect(Collectors.toList())) {\n switch (param.getName().toLowerCase()) {\n case \"field\":\n terms.field((String)param.getValue());\n break;\n\n case \"size\":\n terms.size((int)param.getValue());\n break;\n\n case \"shard_size\":\n terms.shardSize((int)param.getValue());\n break;\n\n case \"execution_hint\":\n terms.executionHint((String)param.getValue());\n break;\n\n case \"collect_mode\":\n terms.collectMode((Aggregator.SubAggCollectionMode)param.getValue());\n break;\n }\n }\n\n for (Composite childComposite : this.getChildren().stream()\n .filter(child -> !ParamComposite.class.isAssignableFrom(child.getClass()) &&\n !HavingComposite.class.isAssignableFrom(child.getClass())).collect(Collectors.toList())) {\n\n applySubAggregationFromChild(terms, childComposite);\n }\n\n return terms;\n }", "public static AggregatedStats aggreateStats(Dataset<EmptyContext, GmmPartitionData> dataset, int countOfComponents) {\n return new AggregatedStats(dataset.compute(\n data -> map(data, countOfComponents),\n MeanWithClusterProbAggregator::reduce\n ));\n }", "public void partition();", "public void addColumnStageGrouping() {\n addColumnInPrimarySection(ColumnMetaData.KEY_SECTION_STAGE_GROUPING);\n }", "protected void sequence_BEGIN_END_ExecPartition_PARTITION_WITH(ISerializationContext context, ExecPartition semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}", "@Nonnull\r\n\tpublic static <T, U, V> Observable<V> aggregate(\r\n\t\t\t@Nonnull final Observable<? extends T> source,\r\n\t\t\t@Nonnull final Func2<? super U, ? super T, ? extends U> accumulator,\r\n\t\t\t@Nonnull final Func2<? super U, ? super Integer, ? extends V> divide) {\r\n\t\treturn new Aggregate.Projected<V, T, U>(source, accumulator, divide);\r\n\t}", "public QuickSort(Partitionable<T> part)\n {\n partAlgo = part;\n MIN_SIZE = 3;\n }", "private ResultStage createResultStage(RDD<?> rdd,\n JobAction<?, ?> jobAction,\n List<Integer> partitions,\n int jobId,\n CallSite callSite) {\n // step1: 计算final rdd依赖的所有ShuffleDependency\n // step2: 计算ShuffleDependency依赖的ShuffleMapStage\n // 调用链:\n // DAGScheduler.getOrCreateParentStages(rdd)[final rdd ==> ResultStage]\n // |\n // +---> DAGScheduler.getShuffleDependencies(rdd)[final rdd ==> Set<ShuffleDependency>]\n // |\n // +---> DAGScheduler.getOrCreateShuffleMapStage(shuffleId, jobId)[ShuffleDependency ==> List<ShuffleMapStage>]\n // |\n // +---> DAGScheduler.createShuffleMapStage(shuffleDep, jobId)[ShuffleDependency ==> ShuffleMapStage]\n List<Stage> parents = getOrCreateParentStages(rdd, jobId);\n int id = nextStageId.getAndIncrement();\n ResultStage stage = new ResultStage(id,\n rdd,\n jobAction,\n partitions,\n parents,\n jobId,\n callSite);\n stageIdToStage.put(id, stage);\n updateJobIdStageIdMaps(jobId, Lists.newArrayList(stage));\n return stage;\n }", "GroupBuckets buckets();", "public HawtDBAggregationRepository() {\n }", "public PipelineImpl() {\n }", "@Override\n public Object build() {\n CardinalityAggregationBuilder cardinality = AggregationBuilders.cardinality(this.getName());\n\n for (ParamComposite param : this.getChildren().stream()\n .filter(child -> ParamComposite.class.isAssignableFrom(child.getClass()))\n .map(child -> (ParamComposite) child).collect(Collectors.toList())) {\n switch (param.getName().toLowerCase()) {\n case \"field\":\n cardinality.field((String)param.getValue());\n break;\n\n /*case \"script\":\n cardinality.script((String)param.getValue());\n break;*/\n\n case \"precision_threshold\":\n cardinality.precisionThreshold((long)param.getValue());\n break;\n }\n }\n\n return cardinality;\n }", "static void aggregate(String workingDir) {\n String inputPath = workingDir + \"/processed\";\n String outputPath = workingDir + \"/aggregated\";\n\n File input = new File(inputPath);\n File output = new File(outputPath);\n\n System.out.format(\"Process %s to %s\\n\", inputPath, outputPath);\n \n\n AggregatorStrategy[] strategies = new AggregatorStrategy[] {\n new DomainCountCSVAggregatorStrategy(new TruncateDay()),\n new DomainCountCSVAggregatorStrategy(new TruncateMonth()),\n new FullDomainCountCSVAggregatorStrategy(new TruncateMonth()),\n new CodeCountCSVAggregatorStrategy(new TruncateMonth()),\n new CodeCountCSVAggregatorStrategy(new TruncateDay()),\n\n new GroupedFullDomainsAggregatorStrategy(),\n new DOICountCSVAggregatorStrategy(),\n\n new AllCountCSVAggregatorStrategy(new TruncateDay()),\n new AllCountCSVAggregatorStrategy(new TruncateMonth())\n };\n\n \n try {\n List<Thread> threads = new ArrayList<>();\n for (AggregatorStrategy strategy: strategies) {\n System.out.format(\"Aggregate with strategy: %s \\n\", strategy.toString());\n Aggregator aggregator = new Aggregator(input, output, strategy);\n Thread thread = new Thread(aggregator);\n threads.add(thread);\n thread.start(); \n System.out.format(\"Finished aggregate with strategy: %s \\n\", strategy.toString());\n }\n\n for (Thread thread: threads) {\n synchronized(thread) {\n System.out.println(\"Wait...\" + thread.toString());\n thread.join();\n System.out.println(\"Done \" + thread.toString());\n }\n }\n } catch (Exception e) {\n System.err.println(\"Error:\");\n e.printStackTrace();\n System.exit(1);\n }\n }", "Aggregator createAggregator(Aggregator aggregator) throws RepoxException;", "public void createPartition(int nPid);", "public void mergingMapReduce(TimePeriod timePeriod) {\n\n\t\tSystem.out.println(\"Starting merging mapreduce...\");\n\n\t\tDBCollection dailyCollection = mongoOps\n\t\t\t\t.getCollection(DAILY_COLLECT_NAME);\n\n\t\tCalendar stDate = Calendar.getInstance();\n\t\tif (timePeriod.equals(TimePeriod.PASTWEEK)) {\n\t\t\tstDate.add(Calendar.DATE, -7);\n\t\t} else if (timePeriod.equals(TimePeriod.PASTMONTH)) {\n\t\t\tstDate.add(Calendar.DATE, -30);\n\t\t} else {\n\t\t\treturn;\n\t\t}\n\n\t\tSystem.out.println(\"Start date: \" + stDate.getTime().toString());\n\n\t\t// create pipeline operations, first with the $match\n\t\tDBObject matchObj = new BasicDBObject(\"_id.date\", new BasicDBObject(\n\t\t\t\t\"$gte\", counterDateFormat.format(stDate.getTime())));\n\t\tDBObject match = new BasicDBObject(\"$match\", matchObj);\n\n\t\t// build the $projection operation\n\t\tDBObject fields = new BasicDBObject(\"_id.id\", 1);\n\t\tfields.put(\"_id.type\", 1);\n\t\tfields.put(\"value\", 1);\n\t\tDBObject project = new BasicDBObject(\"$project\", fields);\n\n\t\t// the $group operation\n\t\tMap<String, Object> dbObjIdMap = new HashMap<String, Object>();\n\t\tdbObjIdMap.put(\"id\", \"$_id.id\");\n\t\tdbObjIdMap.put(\"type\", \"$_id.type\");\n\t\tDBObject groupFields = new BasicDBObject(\"_id\", new BasicDBObject(\n\t\t\t\tdbObjIdMap));\n\t\tgroupFields.put(\"value\", new BasicDBObject(\"$sum\", \"$value\"));\n\t\tDBObject group = new BasicDBObject(\"$group\", groupFields);\n\n\t\t// $out operation\n\t\tDBObject out = new BasicDBObject(\"$out\",\n\t\t\t\t(timePeriod.equals(TimePeriod.PASTWEEK) ? WEEKLY_COLLECT_NAME\n\t\t\t\t\t\t: MONTHLY_COLLECT_NAME));\n\n\t\tList<DBObject> pipeline = Arrays.asList(match, project, group, out);\n\t\tdailyCollection.aggregate(pipeline);\n\n\t\tSystem.out.println(\"Finished merging mapreduce\");\n\t}", "Pivots createPivots();", "@Override\n public void configurePipeline(ETLStage stageConfig, PipelineConfigurer pipelineConfigurer) {\n if (!Strings.isNullOrEmpty(stageConfig.getProperties().get(BASE_PATH))) {\n String tpfsName = stageConfig.getProperties().get(TPFS_NAME);\n Preconditions.checkArgument(!Strings.isNullOrEmpty(tpfsName), \"TimePartitionedFileSet name must be given.\");\n pipelineConfigurer.createDataset(tpfsName, TimePartitionedFileSet.class.getName(), FileSetProperties.builder()\n .setBasePath(stageConfig.getProperties().get(BASE_PATH))\n .setInputFormat(AvroKeyInputFormat.class)\n .setOutputFormat(AvroKeyOutputFormat.class)\n .setEnableExploreOnCreate(true)\n .setSerDe(\"org.apache.hadoop.hive.serde2.avro.AvroSerDe\")\n .setExploreInputFormat(\"org.apache.hadoop.hive.ql.io.avro.AvroContainerInputFormat\")\n .setExploreOutputFormat(\"org.apache.hadoop.hive.ql.io.avro.AvroContainerOutputFormat\")\n .setTableProperty(\"avro.schema.literal\", (stageConfig.getProperties().get(SCHEMA)))\n .build());\n }\n }", "public Type getAggregateFunction() {\n return this.aggregate;\n }", "protected AbstractAggregateComponent() {\n\t\tsuper();\n\t}", "@Override\n public SinkContext executeByRow(VirtualFrame frame, FrameDescriptorPart framePart, SinkContext context) throws UnexpectedResultException {\n if (this.receiverFrameSlots.size() > 0 && this.objects.size() == 0) {\n for (FrameSlot receiverFrameSlot: this.receiverFrameSlots) {\n TANewObject object = TANewObjectNodeGen.create();\n this.objects.add(object); // TODO remove this.objects after moving this statement to init\n StatementWriteLocalNodeGen.create(object, receiverFrameSlot).executeVoid(frame);\n }\n }\n List<Object> grouping = new ArrayList<>();\n for (Integer i : groupSet) {\n FrameSlot slot = this.aggregateFramePart.findFrameSlotInPrevious(i);\n Objects.requireNonNull(slot);\n Object value = frame.getValue(slot);\n grouping.add(value);\n }\n StatementWriteLocalNodeGen.create(\n ExprLiteral.Object(grouping.toString()), this.keyFrameSlot).executeVoid(frame);\n List<Object> funcResults =\n this.aggFunctions.stream().map(f -> f.executeGeneric(frame)).collect(Collectors.toList());\n map.put(grouping, funcResults);\n return context;\n }", "public static void mergingMapReduce(TimePeriod timePeriod) {\n\n\t\tSystem.out.println(\"Starting merging mapreduce...\");\n\n\t\tDBCollection dailyCollection = mongoOps\n\t\t\t\t.getCollection(DAILY_COLLECT_NAME);\n\n\t\tCalendar stDate = Calendar.getInstance();\n\t\tif (timePeriod.equals(TimePeriod.PASTWEEK)) {\n\t\t\tstDate.add(Calendar.DATE, -7);\n\t\t} else if (timePeriod.equals(TimePeriod.PASTMONTH)) {\n\t\t\tstDate.add(Calendar.DATE, -30);\n\t\t} else {\n\t\t\treturn;\n\t\t}\n\n\t\tSystem.out.println(\"Start date: \" + stDate.getTime().toString());\n\n\t\t// create pipeline operations, first with the $match\n\t\tDBObject matchObj = new BasicDBObject(\"_id.date\", new BasicDBObject(\n\t\t\t\t\"$gte\", counterDateFormat.format(stDate.getTime())));\n\t\tDBObject match = new BasicDBObject(\"$match\", matchObj);\n\n\t\t// build the $projection operation\n\t\tDBObject fields = new BasicDBObject(\"_id.id\", 1);\n\t\tfields.put(\"_id.type\", 1);\n\t\tfields.put(\"value\", 1);\n\t\tDBObject project = new BasicDBObject(\"$project\", fields);\n\n\t\t// the $group operation\n\t\tMap<String, Object> dbObjIdMap = new HashMap<String, Object>();\n\t\tdbObjIdMap.put(\"id\", \"$_id.id\");\n\t\tdbObjIdMap.put(\"type\", \"$_id.type\");\n\t\tDBObject groupFields = new BasicDBObject(\"_id\", new BasicDBObject(\n\t\t\t\tdbObjIdMap));\n\t\tgroupFields.put(\"value\", new BasicDBObject(\"$sum\", \"$value\"));\n\t\tDBObject group = new BasicDBObject(\"$group\", groupFields);\n\n\t\t// $out operation\n\t\tDBObject out = new BasicDBObject(\"$out\",\n\t\t\t\t(timePeriod.equals(TimePeriod.PASTWEEK) ? WEEKLY_COLLECT_NAME\n\t\t\t\t\t\t: MONTHLY_COLLECT_NAME));\n\n\t\tList<DBObject> pipeline = Arrays.asList(match, project, group, out);\n\t\tdailyCollection.aggregate(pipeline);\n\n\t\tSystem.out.println(\"Finished merging mapreduce\");\n\t}", "void exportAggregate(String filePath, Object inputObject, Settings settings) throws IOException ;", "PivotFunctions createPivotFunctions();", "@Override\n public Object build() {\n Map<String, org.opensearch.index.query.QueryBuilder> filterMap = new HashMap<>();\n for (FilterComposite filter : this.getChildren().stream()\n .filter(child -> FilterComposite.class.isAssignableFrom(child.getClass()))\n .map(child -> (FilterComposite) child).collect(Collectors.toList())) {\n\n org.opensearch.index.query.QueryBuilder filterBuilder = (org.opensearch.index.query.QueryBuilder)filter.queryBuilder.seekRoot().query().filtered().filter().getCurrent().build();\n filterMap.put(filter.getName(), filterBuilder);\n }\n\n FiltersAggregationBuilder filtersAggsBuilder = AggregationBuilders.filters(this.getName(),\n Stream.ofAll(filterMap.entrySet())\n .map(entry -> new FiltersAggregator.KeyedFilter(entry.getKey(), entry.getValue()))\n .toJavaArray(FiltersAggregator.KeyedFilter.class));\n\n for (Composite childComposite : this.getChildren().stream()\n .filter(child -> !FilterComposite.class.isAssignableFrom(child.getClass()) &&\n !ParamComposite.class.isAssignableFrom(child.getClass()) &&\n !HavingComposite.class.isAssignableFrom(child.getClass())).collect(Collectors.toList())) {\n\n applySubAggregationFromChild(filtersAggsBuilder, childComposite);\n }\n\n return filtersAggsBuilder;\n }", "@Override\n public void configure() {\n\n final GroupedMessageAggregationStrategy groupedMessageAggregationStrategy = new GroupedMessageAggregationStrategy();\n final SizeAwareAggregationStrategy aggregationStrategy = new SizeAwareAggregationStrategy(groupedMessageAggregationStrategy);\n final AggregatedSizeCompletionPredicate completionPredicate = new AggregatedSizeCompletionPredicate(MAX_SIZE, aggregationStrategy);\n\n // @formatter:off\n\n from(\"timer:TIMER_1?period=1\")\n .bean(PersonProducer.class)\n .setHeader(GROUP, () -> RANDOM.nextInt(1))\n .marshal().json(Jackson)\n .to(\"seda:persons\")\n ;\n\n from(\"seda:persons?concurrentConsumers=5\")\n .aggregate()\n .header(GROUP)\n .aggregationStrategy(aggregationStrategy)\n .completionPredicate(completionPredicate)\n .parallelProcessing()\n .bean(ResultsPrinter.class)\n ;\n\n // @formatter:on\n }", "public interface AggregationPolicy {\n\n /**\n * Method which decides how keys/values are aggregated.\n * @param key the key current the entry, must not be {@code null}.\n * @param currentValue the current value, or {@code null}.\n * @param newValue the new value, never {@code null}.\n * @return the target value to be used in the resulting property set, or null, to remove the property.\n */\n public String aggregate(String key, String currentValue, String newValue);\n\n /** Ignore overrides, only extend (additive). */\n public static final AggregationPolicy IGNORE_DUPLICATES = (k, v1, v2) -> v1 == null? v2 : v1;\n\n /** Combine multiple values into a comma separated list. */\n public static final AggregationPolicy COMBINE = (k, v1, v2) -> v1 != null && v2 != null ? v1 + ',' + v2: v2;\n\n /**\n * Interpret later keys as override (additive and override), replacing\n * the key loaded earlier/fromMap previous contained\n * {@link org.apache.tamaya.PropertyProvider}.\n */\n public static final AggregationPolicy OVERRIDE = (k, v1, v2) -> v2;\n\n /**\n * Throw an exception, when keys are not disjunctive (strictly\n * additive).\n */\n public static final AggregationPolicy EXCEPTION =\n (String key, String value, String newValue) -> {\n if(value!=null && newValue!=null && !value.equals(newValue)){\n throw new ConfigException(\"Conflicting values encountered key=\"+key+\", value=\"+value+\", newValue=\"+newValue);\n }\n return newValue;\n };\n}", "protected void sequence_AGGREGATE_AGGREGATION_BY_DEFINE_DefinitionAggregation_FROM(ISerializationContext context, DefinitionAggregation semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}", "@Override\n public void groupBy(StructuredRecord record, Emitter<StructuredRecord> emitter) throws Exception {\n StructuredRecord.Builder builder = StructuredRecord.builder(getGroupKeySchema(record.getSchema()));\n for (String groupByField : conf.getGroupByFields()) {\n builder.set(groupByField, record.get(groupByField));\n }\n emitter.emit(builder.build());\n }", "@Override\n\tprotected void createExtraStreams() {\n\n\t\t// Crea un store global para procesar los datos de todas las instancias de\n\t\t// vessels agregados por vesselType\n\t\t/*-aggByVesselType = builder.globalTable(vesselsAggByVesselTypeTopic,\n\t\t\t\tConsumed.with(Serdes.String(), hashMapSerdeAggregationVesselTypeInVessel));-*/\n\n\t\tvesselType = builder.globalTable(vesselTypeTopic);\n\n\t\t// vesselTypeEvents = builder.stream(vesselTypeUpdatedTopic);\n\n\t\trealtimeVessel = builder.stream(realtimeVesselsTopic);\n\t}", "@Override\n public Object build() {\n ScriptedMetricAggregationBuilder scriptedMetric = AggregationBuilders.scriptedMetric(this.getName());\n Map<String, Object> params = new HashMap<>();\n\n for (ParamComposite param : this.getChildren().stream()\n .filter(child -> ParamComposite.class.isAssignableFrom(child.getClass()))\n .map(child -> (ParamComposite) child).collect(Collectors.toList())) {\n switch (param.getName().toLowerCase()) {\n /*case \"init_script\":\n scriptedMetric.initScript((String)param.getValue());\n break;\n\n case \"map_script\":\n scriptedMetric.mapScript((String)param.getValue());\n break;\n\n case \"combine_script\":\n scriptedMetric.combineScript((String)param.getValue());\n break;\n\n case \"reduce_script\":\n scriptedMetric.reduceScript((String)param.getValue());\n break;*/\n\n default:\n params.put(param.getName(), param.getValue());\n break;\n }\n }\n\n if (!params.isEmpty()) {\n scriptedMetric.params(params);\n }\n\n return scriptedMetric;\n }", "public void partitionCollectorExample(){\n Map<Boolean, Long> result= createPeople()\n .stream()\n .collect(Collectors.partitioningBy(e->e.getAge()>30, counting()));\n print.accept(result);\n }", "private void setUpGroupBy(){\n\t\tEPPropiedad pro = new EPPropiedad();\n\t\tpro.setNombre(\"a1.p2\");\n\t\tpro.setPseudonombre(\"\");\n\t\texpresionesGroupBy.add(pro);\n\t\tpro = new EPPropiedad();\n\t\tpro.setNombre(\"a1.p3\");\n\t\tpro.setPseudonombre(\"\");\n\t\texpresionesGroupBy.add(pro);\n\t}", "PivotFunction createPivotFunction();", "interface WithGroup extends GroupableResourceCore.DefinitionStages.WithGroup<WithCreate> {\n }", "public final void rule__Partition__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMLRegression.g:1735:1: ( rule__Partition__Group__0__Impl rule__Partition__Group__1 )\n // InternalMLRegression.g:1736:2: rule__Partition__Group__0__Impl rule__Partition__Group__1\n {\n pushFollow(FOLLOW_4);\n rule__Partition__Group__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__Partition__Group__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "private void initialize()\n {\n aggregatedFields = new Fields(fieldToAggregator.keySet());\n }", "@Override\n\tpublic void aggregate(Scan scan) {\n\n\t}", "protected void sequence_BY_GROUP_GroupBy(ISerializationContext context, GroupBy semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}", "private List<EventProducer> createHierarchy(\n\t\t\tList<EventProducer> eventProdToMerge, double currentHierarchyDepth,\n\t\t\tint ppid, int dividingFactor) {\n\t\tLinkedList<EventProducer> newEventProd = new LinkedList<EventProducer>();\n\n\t\tint groupSize;\n\n\t\t// If first hierarchy depth\n\t\tif (currentHierarchyDepth == 0.0)\n\t\t\t// Do not split, just create a super producer representing the whole\n\t\t\t// group\n\t\t\tgroupSize = eventProdToMerge.size();\n\t\telse\n\t\t\t// Compute the size of a new group\n\t\t\tgroupSize = eventProdToMerge.size() / dividingFactor;\n\n\t\tif (groupSize <= 1)\n\t\t\treturn eventProdToMerge;\n\n\t\tint mergedProducers = 0;\n\t\tint i;\n\n\t\t// Compute new group of EP\n\t\tfor (i = 0; i < eventProdToMerge.size() - groupSize; i = i + groupSize) {\n\t\t\tEventProducer newNode = createProducer(eventProdToMerge.get(i)\n\t\t\t\t\t.getName() + \"_\" + (int) currentHierarchyDepth, ppid);\n\t\t\tnewEventProd.add(newNode);\n\t\t\tLinkedList<EventProducer> newSubGroup = new LinkedList<EventProducer>();\n\n\t\t\t// Update the parent of leaves event prod\n\t\t\tfor (int j = i; j < i + groupSize; j++) {\n\t\t\t\teventProdToMerge.get(j).setParentId(newNode.getId());\n\t\t\t\tnewSubGroup.add(eventProdToMerge.get(j));\n\t\t\t}\n\n\n\t\t\t// Keep merging?\n\t\t\tif (currentHierarchyDepth + 1 < maxHierarchyDepth\n\t\t\t\t\t&& newSubGroup.size() >= dividingFactor\n\t\t\t\t\t&& newSubGroup.size() > 1) {\n\t\t\t\tnewEventProd.addAll(createHierarchy(newSubGroup,\n\t\t\t\t\t\tcurrentHierarchyDepth + 1, newNode.getId(),\n\t\t\t\t\t\tdividingFactor));\n\t\t\t}\n\t\t\telse {\n\t\t\t\tnewEventProd.addAll(newSubGroup);\n\t\t\t}\n\t\t\tmergedProducers = i + groupSize;\n\t\t}\n\n\t\tint remainingEP = eventProdToMerge.size() - mergedProducers;\n\n\t\tif (remainingEP == 1) {\n\t\t\tnewEventProd.add(eventProdToMerge.get(eventProdToMerge.size() - 1));\n\t\t} else\n\t\t\t// Check if some producer remains\n\t\t\tif (mergedProducers < eventProdToMerge.size()) {\n\t\t\t\tEventProducer newNode = createProducer(eventProdToMerge.get(i)\n\t\t\t\t\t\t.getName() + \"_\" + (int) currentHierarchyDepth, ppid);\n\t\t\t\tnewEventProd.add(newNode);\n\t\t\t\tLinkedList<EventProducer> newSubGroup = new LinkedList<EventProducer>();\n\n\t\t\t\tfor (i = mergedProducers; i < eventProdToMerge.size(); i++) {\n\t\t\t\t\tif(currentHierarchyDepth > 0.0 || newNode.getName().matches(\"^\\\\d+$\")\n\t\t\t\t\t\t\t|| newNode.getName().compareTo(eventProdToMerge.get(i).getName()\n\t\t\t\t\t\t\t\t\t+ \"_\" + (int) currentHierarchyDepth) != 0){\n\t\t\t\t\t\t// Do not copy data structure at depth 0\n\t\t\t\t\t\teventProdToMerge.get(i).setParentId(newNode.getId());\n\t\t\t\t\t\tnewSubGroup.add(eventProdToMerge.get(i));\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (currentHierarchyDepth + 1 < maxHierarchyDepth\n\t\t\t\t\t\t&& newSubGroup.size() >= dividingFactor\n\t\t\t\t\t\t&& newSubGroup.size() > 1 && dividingFactor > 1) {\n\t\t\t\t\tnewEventProd.addAll(createHierarchy(newSubGroup,\n\t\t\t\t\t\t\tcurrentHierarchyDepth + 1, newNode.getId(),\n\t\t\t\t\t\t\tdividingFactor));\n\t\t\t\t} else {\n\t\t\t\t\tnewEventProd.addAll(newSubGroup);\n\t\t\t\t}\n\t\t\t}\n\n\t\tlogger.debug(currentHierarchyDepth + \", \" + newEventProd.size());\n\t\treturn newEventProd;\n\t}", "MemoryPartition createMemoryPartition();", "public AtomixConfig addPartitionGroup(final PartitionGroupConfig partitionGroup) {\n partitionGroups.put(partitionGroup.getName(), partitionGroup);\n return this;\n }", "@Nonnull\r\n\tpublic static <T, U, V> Observable<V> aggregate(\r\n\t\t\t@Nonnull final Observable<? extends T> source,\r\n\t\t\tfinal U seed,\r\n\t\t\t@Nonnull final Func2<? super U, ? super T, ? extends U> accumulator,\r\n\t\t\t@Nonnull final Func2<? super U, ? super Integer, ? extends V> divide) {\r\n\t\treturn new Aggregate.SeededIndexedProjected<V, T, U>(source, seed, accumulator, divide);\r\n\t}", "public PravegaSplit(String readerGroupName, int subtaskId) {\n this.readerGroupName = readerGroupName;\n this.subtaskId = subtaskId;\n }", "private void sampleOfTheGeneratedWindowedAggregate() {\n Iterator<Integer[]> iterator = null;\n\n // builder3\n Integer[] rows = iterator.next();\n\n int prevStart = -1;\n int prevEnd = -1;\n\n for ( int i = 0; i < rows.length; i++ ) {\n // builder4\n Integer row = rows[i];\n\n int start = 0;\n int end = 100;\n if ( start != prevStart || end != prevEnd ) {\n // builder5\n int actualStart = 0;\n if ( start != prevStart || end < prevEnd ) {\n // builder6\n // recompute\n actualStart = start;\n // implementReset\n } else { // must be start == prevStart && end > prevEnd\n actualStart = prevEnd + 1;\n }\n prevStart = start;\n prevEnd = end;\n\n if ( start != -1 ) {\n for ( int j = actualStart; j <= end; j++ ) {\n // builder7\n // implementAdd\n }\n }\n // implementResult\n // list.add(new Xxx(row.deptno, row.empid, sum, count));\n }\n }\n // multiMap.clear(); // allows gc\n // source = Linq4j.asEnumerable(list);\n }", "interface Definition extends\n DefinitionStages.Blank,\n DefinitionStages.WithGroup,\n DefinitionStages.WithSku,\n DefinitionStages.WithPartitionsAndCreate,\n DefinitionStages.WithReplicasAndCreate,\n DefinitionStages.WithCreate {\n }", "public final void rule__Partition__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMLRegression.g:1774:1: ( ( ':' ) )\n // InternalMLRegression.g:1775:1: ( ':' )\n {\n // InternalMLRegression.g:1775:1: ( ':' )\n // InternalMLRegression.g:1776:2: ':'\n {\n before(grammarAccess.getPartitionAccess().getColonKeyword_1()); \n match(input,23,FOLLOW_2); \n after(grammarAccess.getPartitionAccess().getColonKeyword_1()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "@Value.Parameter\n int partition();", "public ProcessingPipeline buildPipeline(Environment environment)\n throws Exception {\n\n \t\tthis.setupConcreteProcessor(environment);\n\n \t\treturn this.concreteProcessor.buildPipeline(environment);\n }", "public void partition() \n\t{\n\t\tXPath xPath = getXPathHandler();\n\t\tNodeList parentNodes;\n\t\ttry {\n\t\t\tparentNodes = (NodeList)xPath.compile(this.getParentContainerXPath()).evaluate(this.document, XPathConstants.NODESET);\n\t\t\t\n\t\t\tlogger.info(\">>> \" + this.getPartitionType().name() + \" Partitioner: partition()\");\n\t\t\t\n\t\t\tfor (int i = 0; i < parentNodes.getLength(); i++) \n\t\t\t{ \t\n\t\t\t\tNode parentNode = (Node)parentNodes.item(i);\n\t\t\t\t\n\t\t\t\tif (parentNode instanceof Element)\n\t\t\t\t{\n\t\t\t\t\tString sParentClass = parentNode.getAttributes().getNamedItem(\"class\") != null ? parentNode.getAttributes().getNamedItem(this.getMatchingAttributeName()).getNodeValue() : \"\";\n\t\t\t\t\tlogger.info(\"\\tParent Node Name=\" + parentNode.getNodeName()+\":class=\"+ sParentClass);\n\t\t\t\t\t\n\t\t\t\t\tNodeList nodeList = parentNode.getChildNodes();\n\t\t\t\t\tNode xDivNode = null;\n\t\t\t\t\t\n\t\t\t\t\tNode xIntroDivNode = this.document.createElement(\"div\");\n\t\t\t\t\t((Element)xIntroDivNode).setAttribute(\"class\", this.getPartitionTypeAsString());\n\t\t\t\t\t((Element)xIntroDivNode).setAttribute(\"title\", this.getIntroPartitionTitle());\n\t\t\t\t\t\n\t\t\t\t\tboolean first = true;\n\t\t\t\t\tboolean keepFirst = this.getKeepFirstElements();\n\t\t\t\t\tboolean hasIntroNode = false;\n\t\t\t \n\t\t\t\t\tfor (int j = 0, pCount = 0; j < nodeList.getLength(); j++) \n\t\t\t\t\t{ \t\n\t\t\t \tNode xNode = nodeList.item(j);\n\t\t\t \tif (xNode instanceof Element)\n\t\t\t \t{\n\t\t\t \t\tif (first && keepFirst)\n\t\t\t \t\t{\n\t\t\t \t\t\tif (!hasIntroNode) {\n\t\t\t\t \t\t\t((Element)xIntroDivNode).setAttribute(\"id\", Integer.toString(++pCount));\n\t\t\t \t\t\t\tDomUtils.insertBefore(xIntroDivNode, xNode);\t\t \t\t\t\t\n\t\t\t\t \t\t\tj++;\n\t\t\t\t \t\t\thasIntroNode = true;\n\t\t\t \t\t\t}\n\t\t\t \t\t}\n\t\t\t \t\t\n\t\t\t \t\tString sClass = xNode.getAttributes().getNamedItem(\"class\") != null ? xNode.getAttributes().getNamedItem(this.getMatchingAttributeName()).getNodeValue() : \"\";\n\t\t\t\t \tboolean isTable = xNode.getNodeName().equalsIgnoreCase(\"table\") ? true : false;\n\t\t\t\t \tString sId = isTable && xNode.getAttributes().getNamedItem(\"id\") != null ? xNode.getAttributes().getNamedItem(\"id\").getNodeValue() : \"\";\n\t\t\t\t \t\n\t\t\t\t \tif (sClass != null)\n\t\t\t\t \t{\n\t\t\t\t \t\tlogger.info(\"\\tNode Name=\" + xNode.getNodeName()+\":class=\"+ sClass);\n\t\t\t\t \t\t\n\t\t\t\t \t\tboolean match = false;\n\t\t\t\t \t\tswitch ((TaskExprType)this.getAttributeMatchExpression())\n\t\t\t\t \t\t{\n\t\t\t\t \t\tcase NOT_SET:\n\t\t\t\t \t\tcase STARTS_WITH:\n\t\t\t\t \t\t\tmatch = sClass.startsWith(this.getMatchingAttributeValue());\n\t\t\t\t \t\t\tbreak;\n\t\t\t\t \t\tcase CONTAINS:\n\t\t\t\t \t\t\tmatch = sClass.contains(this.getMatchingAttributeValue());\n\t\t\t\t \t\t\tbreak;\n\t\t\t\t \t\t}\n\t\t\t\t \t\t\n\t\t\t\t \t\t// Process the title name match condition if it exists\n\t\t\t\t \t\tString title = null;\n\t\t\t\t \t\tif (match)\n\t\t\t\t \t\t{\n\t\t\t\t \t\t\ttitle = DomUtils.extractTextChildren(xNode);\n\t\t\t\t \t\t\t\n\t\t\t\t \t\t\tif (this.isTitleNameMatchCondition())\n\t\t\t\t \t\t\t{\n\t\t\t\t\t \t\t\tif (title != null && this.getTitleNameMatchType() == TaskMatchType.EXPR)\n\t\t\t\t\t \t\t\t{\n\t\t\t\t\t \t\t\t\tswitch ((TaskExprType)this.getTitleNameMatchExprType())\n\t\t\t\t\t \t\t\t\t{\n\t\t\t\t\t \t\t\t\t\tcase STARTS_WITH:\n\t\t\t\t\t \t\t\t\t\t\tmatch = title.startsWith(this.getTitleNameMatchExprValue());\n\t\t\t\t\t \t\t\t\t\t\tbreak;\n\t\t\t\t\t \t\t\t\t\tcase CONTAINS:\n\t\t\t\t\t \t\t\t\t\t\tmatch = title.contains(this.getTitleNameMatchExprValue());\n\t\t\t\t\t \t\t\t\t\t\tbreak;\n\t\t\t\t\t \t\t\t\t\tcase NOT_SET:\n\t\t\t\t\t \t\t\t\t\t\tbreak;\n\t\t\t\t\t \t\t\t\t\tdefault:\n\t\t\t\t\t \t\t\t\t\t\tbreak;\n\t\t\t\t\t \t\t\t\t}\n\t\t\t\t\t \t\t\t\t\n\t\t\t\t\t \t\t\t} else if (this.getTitleNameMatchType() == TaskMatchType.REGEX)\n\t\t\t\t\t \t\t\t{\n\t\t\t\t\t\t \t\t\tPattern r = Pattern.compile(this.getTitleNameMatchRegexPattern());\t\t\t \t\t\t\n\t\t\t\t\t\t \t\t\tMatcher m = r.matcher(title);\t\t\t \t\t\t\n\t\t\t\t\t\t \t\t\tmatch = m.matches();\n\t\t\t\t\t \t\t\t}\n\t\t\t\t \t\t\t}\n\t\t\t\t \t\t}\n\t\t\t\t \t\t\n\t\t\t\t \t\tif (match)\n\t\t\t\t \t\t{\n\t\t\t\t \t\t\tif (first)\n\t\t\t\t \t\t\t{\n\t\t\t\t \t\t\t\tPartition partition = new Partition();\n\t\t\t\t \t\t\t\tpartition.setType(this.getPartitionType());\n\t\t\t\t \t\t\t\tpartition.setsId(sId);\n\t\t\t\t \t\t\t\tthis.setFirstPartition(partition);\n\t\t\t\t \t\t\t}\n\n\t\t\t\t \t\t\tfirst = false;\n\t\t\t\t \t\t\t\n\t\t\t\t \t\t\tif (this.isTitleNameReplaceCondition())\n\t\t\t\t \t\t\t{\n\t\t\t\t \t\t\t\tPattern r = Pattern.compile(this.getTitleNameReplaceRegexPattern());\t\t\t \t\t\t\n\t\t\t\t\t \t\t\tMatcher m = r.matcher(title);\t\n\t\t\t\t\t \t\t\ttitle = m.replaceAll(this.getTitleNameReplaceWithRegexPattern());\n\t\t\t\t \t\t\t}\n\t\t\t\t \t\t\t\n\t\t\t\t \t\t\txDivNode = this.document.createElement(\"div\");\n\t\t\t\t \t\t\t((Element)xDivNode).setAttribute(\"class\", getPartitionTypeAsString());\n\t\t\t\t \t\t\t((Element)xDivNode).setAttribute(\"title\", title);\n\t\t\t\t \t\t\t((Element)xDivNode).setAttribute(\"id\", Integer.toString(++pCount));\n\t\t\t\t \t\t\t\n\t\t\t\t \t\t\tDomUtils.insertBefore(xDivNode, xNode);\n\t\t\t\t \t\t\tDomUtils.removeElement((Element) xNode, false);\t \n\t\t\t\t \t\t}\n\t\t\t\t \t\telse\n\t\t\t\t \t\t{\n\t\t\t\t \t\t\t// Skip over all nodes leading up to the first Heading1 node\n\t\t\t\t \t\t\tif (!first && xDivNode != null)\n\t\t\t\t \t\t\t{\n\t\t\t\t \t\t\t\txDivNode.appendChild(xNode);\n\t\t\t\t \t\t\t\tj--;\n\t\t\t\t \t\t\t}\n\t\t\t\t \t\t\telse if (first && keepFirst && xIntroDivNode != null)\n\t\t\t\t \t\t\t{\n\t\t\t\t \t\t\t\txIntroDivNode.appendChild(xNode);\n\t\t\t\t \t\t\t\tj--;\n\t\t\t\t \t\t\t}\n\t\t\t\t \t\t}\n\t\t\t\t \t} else if (isTable && sId != null)\n\t\t\t\t \t{\n\t\t\t\t \t\tlogger.info(\"\\t\\tNode Name=\" + xNode.getNodeName()+\":id=\"+ sId);\n\t\t\t \t\t\t// Skip over all nodes leading up to the first Heading1 node\n\t\t\t \t\t\tif (!first && xDivNode != null)\n\t\t\t \t\t\t{\n\t\t\t \t\t\t\txDivNode.appendChild(xNode);\n\t\t\t \t\t\t\tj--;\n\t\t\t \t\t\t}\n\t\t\t \t\t\telse if (first && keepFirst && xIntroDivNode != null)\n\t\t\t \t\t\t{\n\t\t\t \t\t\t\txIntroDivNode.appendChild(xNode);\n\t\t\t \t\t\t\tj--;\n\t\t\t \t\t\t}\n\t\t\t\t \t}\t \t\n\t\t\t \t}\n\t\t\t } // end for j\n\t\t\t\t} // end if parentNode\n\t\t\t} // end for i\n\t\t} catch (XPathExpressionException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\t\n\t\t\n\t}", "public abstract void initialize (org.apache.spark.sql.expressions.MutableAggregationBuffer buffer) ;", "@Override\n\tpublic void extractAggFn(List<Expr> collector) {\n\n\t}", "public final void entryRulePartition() throws RecognitionException {\n try {\n // InternalMLRegression.g:304:1: ( rulePartition EOF )\n // InternalMLRegression.g:305:1: rulePartition EOF\n {\n before(grammarAccess.getPartitionRule()); \n pushFollow(FOLLOW_1);\n rulePartition();\n\n state._fsp--;\n\n after(grammarAccess.getPartitionRule()); \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "@objid (\"29905ff5-55b6-11e2-877f-002564c97630\")\n @Override\n protected Command getCreateCommand(CreateRequest request) {\n // Only care about request for partitions, super can handle the rest.\n final ModelioCreationContext ctx = (ModelioCreationContext) request.getNewObject();\n if (ctx.getJavaClass() != ActivityPartition.class) {\n return super.getCreateCommand(request);\n }\n // Get the specific property \"kind\" from the tool, to know exactly what\n // is requested: a partition container, a sibling partition, or an inner\n // partition.\n PartitionToolKind kind = getPartitionKind(ctx);\n switch (kind) {\n case SIBLING: {\n // Siblings are created by partition containers themselves.\n return null;\n }\n case INNER: {\n // Inner partitions are created by partition containers\n // themselves.\n return null;\n }\n case HORIZONTAL_CONTAINER: {\n if (canHandle(ctx.getMetaclass().getMetamodel().getMClass(ActivityPartition.class), null)) {\n // modify the request to ignore the \"size\"\n request.setSize(null);\n return new CreatePartitionContainerCommand(request, (ActivityDiagramEditPart) getHost(), ctx,\n (Rectangle) getConstraintFor(request), false);\n }\n // else\n return null;\n }\n case VERTICAL_CONTAINER: {\n if (canHandle(ctx.getMetaclass().getMetamodel().getMClass(ActivityPartition.class), null)) {\n // modify the request to ignore the \"size\"\n request.setSize(null);\n return new CreatePartitionContainerCommand(request, (ActivityDiagramEditPart) getHost(), ctx,\n (Rectangle) getConstraintFor(request), true);\n }\n // else\n return null;\n }\n }\n // Should never end here...\n return null;\n }", "WithReplicasAndCreate withPartitionCount(int count);", "public final AstValidator.partition_clause_return partition_clause() throws RecognitionException {\n AstValidator.partition_clause_return retval = new AstValidator.partition_clause_return();\n retval.start = input.LT(1);\n\n\n CommonTree root_0 = null;\n\n CommonTree _first_0 = null;\n CommonTree _last = null;\n\n CommonTree PARTITION318=null;\n AstValidator.func_name_return func_name319 =null;\n\n\n CommonTree PARTITION318_tree=null;\n\n try {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:501:18: ( ^( PARTITION func_name ) )\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:501:20: ^( PARTITION func_name )\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n {\n CommonTree _save_last_1 = _last;\n CommonTree _first_1 = null;\n CommonTree root_1 = (CommonTree)adaptor.nil();\n _last = (CommonTree)input.LT(1);\n PARTITION318=(CommonTree)match(input,PARTITION,FOLLOW_PARTITION_in_partition_clause2683); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n PARTITION318_tree = (CommonTree)adaptor.dupNode(PARTITION318);\n\n\n root_1 = (CommonTree)adaptor.becomeRoot(PARTITION318_tree, root_1);\n }\n\n\n match(input, Token.DOWN, null); if (state.failed) return retval;\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_func_name_in_partition_clause2685);\n func_name319=func_name();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_1, func_name319.getTree());\n\n\n match(input, Token.UP, null); if (state.failed) return retval;\n adaptor.addChild(root_0, root_1);\n _last = _save_last_1;\n }\n\n\n if ( state.backtracking==0 ) {\n }\n }\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n }\n\n }\n\n catch(RecognitionException re) {\n throw re;\n }\n\n finally {\n \t// do for sure before leaving\n }\n return retval;\n }", "@Override\n public Object build() {\n MaxAggregationBuilder max = AggregationBuilders.max(this.getName());\n\n for (ParamComposite param : this.getChildren().stream()\n .filter(child -> ParamComposite.class.isAssignableFrom(child.getClass()))\n .map(child -> (ParamComposite) child).collect(Collectors.toList())) {\n switch (param.getName().toLowerCase()) {\n case \"field\":\n max.field((String)param.getValue());\n }\n }\n\n return max;\n }", "public void setAggregateFunction(Type aggregateFunction) {\n this.aggregate = aggregateFunction;\n }", "@Test\n public void testMultiLevelPartitionPruning() throws SqlParseException {\n\n val project = \"multi_level_partition\";\n val dfId = \"747f864b-9721-4b97-acde-0aa8e8656cba\";\n val expectedRanges = Lists.<Pair<String, String>> newArrayList();\n val segmentRange1 = Pair.newPair(\"2012-01-01\", \"2012-01-02\");\n val segment1Uuid = \"8892fa3f-f607-4eec-8159-7c5ae2f16942\";\n val segmentRange2 = Pair.newPair(\"2012-01-02\", \"2012-01-03\");\n val segment2Uuid = \"d75a822c-788a-4592-a500-cf20186dded1\";\n val segmentRange3 = Pair.newPair(\"2012-01-03\", \"2012-01-04\");\n val segment3Uuid = \"54eaf96d-6146-45d2-b94e-d5d187f89919\";\n val segmentRange4 = Pair.newPair(\"2012-01-04\", \"2012-01-05\");\n val segment4Uuid = \"411f40b9-a80a-4453-90a9-409aac6f7632\";\n val segmentRange5 = Pair.newPair(\"2012-01-05\", \"2012-01-06\");\n val segment5Uuid = \"a8318597-cb75-416f-8eb8-96ea285dd2b4\";\n val expectedPartitionMap = Maps.<String, List<Long>> newHashMap();\n\n val sqlBase = \"select cal_dt, sum(price) from test_kylin_fact inner join test_account on test_kylin_fact.seller_id = test_account.account_id \";\n\n // no filter\n val noFilterSql = sqlBase + \"group by cal_dt\";\n expectedRanges.add(segmentRange1);\n expectedRanges.add(segmentRange2);\n expectedRanges.add(segmentRange3);\n expectedRanges.add(segmentRange4);\n expectedRanges.add(segmentRange5);\n expectedPartitionMap.put(segment1Uuid, Lists.newArrayList(0L, 1L, 2L, 3L));\n expectedPartitionMap.put(segment2Uuid, Lists.newArrayList(0L, 1L, 2L));\n expectedPartitionMap.put(segment3Uuid, Lists.newArrayList(1L, 2L, 3L));\n expectedPartitionMap.put(segment4Uuid, Lists.newArrayList(0L, 1L));\n expectedPartitionMap.put(segment5Uuid, Lists.newArrayList(2L, 3L));\n assertPrunedSegmentsRange(project, noFilterSql, dfId, expectedRanges, 1L, expectedPartitionMap);\n\n val andSql0 = sqlBase\n + \"where cal_dt > '2012-01-01' and cal_dt < '2012-01-04' and lstg_site_id = 1 group by cal_dt\";\n val andMappingSql0 = sqlBase\n + \"where cal_dt > '2012-01-01' and cal_dt < '2012-01-04' and lstg_format_name = 'FP-non GTC' group by cal_dt\";\n val andMixSql0 = sqlBase\n + \"where cal_dt > '2012-01-01' and cal_dt < '2012-01-04' and lstg_site_id = 1 and lstg_format_name = 'FP-non GTC' group by cal_dt\";\n expectedRanges.clear();\n expectedRanges.add(segmentRange1);\n expectedRanges.add(segmentRange2);\n expectedRanges.add(segmentRange3);\n expectedPartitionMap.clear();\n expectedPartitionMap.put(segment1Uuid, Lists.newArrayList(1L));\n expectedPartitionMap.put(segment2Uuid, Lists.newArrayList(1L));\n expectedPartitionMap.put(segment3Uuid, Lists.newArrayList(1L));\n assertPrunedSegmentsRange(project, andSql0, dfId, expectedRanges, 1L, expectedPartitionMap);\n assertPrunedSegmentsRange(project, andMappingSql0, dfId, expectedRanges, 1L, expectedPartitionMap);\n assertPrunedSegmentsRange(project, andMixSql0, dfId, expectedRanges, 1L, expectedPartitionMap);\n\n val notInSql0 = sqlBase\n + \"where cal_dt > '2012-01-02' and cal_dt < '2012-01-04' and lstg_site_id not in (0, 2, 3) group by cal_dt\";\n val notInMappingSql0 = sqlBase\n + \"where cal_dt > '2012-01-02' and cal_dt < '2012-01-04' and lstg_format_name not in ('FP-GTC', 'ABIN', 'Auction') group by cal_dt\";\n val notInMixSql0 = sqlBase\n + \"where cal_dt > '2012-01-02' and cal_dt < '2012-01-04' and lstg_site_id not in (0, 2, 3) and lstg_format_name not in ('FP-GTC', 'ABIN', 'Auction') group by cal_dt\";\n expectedRanges.clear();\n expectedRanges.add(segmentRange2);\n expectedRanges.add(segmentRange3);\n expectedPartitionMap.clear();\n expectedPartitionMap.put(segment2Uuid, Lists.newArrayList(1L));\n expectedPartitionMap.put(segment3Uuid, Lists.newArrayList(1L));\n assertPrunedSegmentsRange(project, notInSql0, dfId, expectedRanges, 1L, expectedPartitionMap);\n assertPrunedSegmentsRange(project, notInMappingSql0, dfId, expectedRanges, 1L, expectedPartitionMap);\n assertPrunedSegmentsRange(project, notInMixSql0, dfId, expectedRanges, 1L, expectedPartitionMap);\n\n // return empty data case\n val emptyData = sqlBase\n + \"where cal_dt > '2012-01-01' and cal_dt < '2012-01-03' and lstg_site_id = 5 group by cal_dt\";\n val emptyDataMapping = sqlBase\n + \"where cal_dt > '2012-01-01' and cal_dt < '2012-01-03' and lstg_format_name = 'not_exist_name' group by cal_dt\";\n val emptyDataMix = sqlBase\n + \"where cal_dt > '2012-01-01' and cal_dt < '2012-01-03' and lstg_site_id = 5 and lstg_format_name = 'not_exist_name' group by cal_dt\";\n expectedRanges.clear();\n expectedPartitionMap.clear();\n assertPrunedSegmentsRange(project, emptyData, dfId, expectedRanges, -1L, expectedPartitionMap);\n assertPrunedSegmentsRange(project, emptyDataMapping, dfId, expectedRanges, -1L, expectedPartitionMap);\n assertPrunedSegmentsRange(project, emptyDataMix, dfId, expectedRanges, -1L, expectedPartitionMap);\n\n // query data out of current built segments range\n val inSql0 = sqlBase\n + \"where cal_dt > '2011-12-30' and cal_dt < '2012-01-03' and lstg_site_id in (1, 2) group by cal_dt\";\n val inMappingSql0 = sqlBase\n + \"where cal_dt > '2011-12-30' and cal_dt < '2012-01-03' and lstg_format_name in ('FP-non GTC', 'ABIN') group by cal_dt\";\n val inMixSql0 = sqlBase\n + \"where cal_dt > '2011-12-30' and cal_dt < '2012-01-03' and lstg_site_id in (1, 2) and lstg_format_name in ('FP-non GTC', 'ABIN') group by cal_dt\";\n expectedRanges.add(segmentRange1);\n expectedRanges.add(segmentRange2);\n expectedPartitionMap.put(segment1Uuid, Lists.newArrayList(1L, 2L));\n expectedPartitionMap.put(segment2Uuid, Lists.newArrayList(1L, 2L));\n assertPrunedSegmentsRange(project, inSql0, dfId, expectedRanges, 1L, expectedPartitionMap);\n assertPrunedSegmentsRange(project, inMappingSql0, dfId, expectedRanges, 1L, expectedPartitionMap);\n assertPrunedSegmentsRange(project, inMixSql0, dfId, expectedRanges, 1L, expectedPartitionMap);\n\n val pushDownSql0 = sqlBase\n + \"where cal_dt > '2012-01-01' and cal_dt < '2012-01-03' and lstg_site_id = 3 group by cal_dt\";\n assertNoRealizationFound(project, pushDownSql0);\n\n val pushDownMappingSql0 = sqlBase\n + \"where cal_dt > '2012-01-01' and cal_dt < '2012-01-03' and lstg_format_name = 'Auction' group by cal_dt\";\n assertNoRealizationFound(project, pushDownMappingSql0);\n\n val pushDownMixSql0 = sqlBase\n + \"where cal_dt > '2012-01-01' and cal_dt < '2012-01-03' and lstg_site_id = 3 and lstg_format_name = 'Auction' group by cal_dt\";\n assertNoRealizationFound(project, pushDownMixSql0);\n\n // return empty result\n val wrongMapping0 = sqlBase\n + \"where cal_dt between '2012-01-01' and '2012-01-02' and lstg_site_id = 0 and lstg_format_name = 'FP-non GTC' group by cal_dt\";\n assertPrunedSegmentsRange(project, wrongMapping0, dfId, null, -1L, null);\n\n val orSql0 = sqlBase\n + \"where cal_dt > '2012-01-01' and cal_dt < '2012-01-02' and (lstg_site_id = 0 or lstg_format_name = 'FP-non GTC') group by cal_dt\";\n expectedRanges.clear();\n expectedPartitionMap.clear();\n expectedRanges.add(segmentRange1);\n expectedPartitionMap.put(segment1Uuid, Lists.newArrayList(0L, 1L));\n assertPrunedSegmentsRange(project, orSql0, dfId, expectedRanges, 1L, expectedPartitionMap);\n }", "interface Partitioner {\n int partition(int[] array, int left, int right, int pivot);\n }", "private interface MyGenericAggFunction<A, V, R> {\n\n A init();\n\n A add( A accumulator, V val );\n\n A merge( A accumulator1, A accumulator2 );\n\n R result( A accumulator );\n\n }", "public MutablePipeline() {\r\n\t\tstages = new ArrayList<>();\r\n\r\n\t\tname = \"Unnamed Pipeline\";\r\n\t}", "DataSourceIngestModule createDataSourceIngestModule(IngestModuleIngestJobSettings settings);", "public final AstValidator.group_clause_return group_clause() throws RecognitionException {\n group_clause_stack.push(new group_clause_scope());\n AstValidator.group_clause_return retval = new AstValidator.group_clause_return();\n retval.start = input.LT(1);\n\n\n CommonTree root_0 = null;\n\n CommonTree _first_0 = null;\n CommonTree _last = null;\n\n CommonTree set147=null;\n AstValidator.group_item_return group_item148 =null;\n\n AstValidator.group_type_return group_type149 =null;\n\n AstValidator.partition_clause_return partition_clause150 =null;\n\n\n CommonTree set147_tree=null;\n\n\n ((group_clause_scope)group_clause_stack.peek()).arity = 0;\n\n try {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:350:2: ( ^( ( GROUP | COGROUP ) ( group_item )+ ( group_type )? ( partition_clause )? ) )\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:350:4: ^( ( GROUP | COGROUP ) ( group_item )+ ( group_type )? ( partition_clause )? )\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n {\n CommonTree _save_last_1 = _last;\n CommonTree _first_1 = null;\n CommonTree root_1 = (CommonTree)adaptor.nil();\n set147=(CommonTree)input.LT(1);\n\n if ( input.LA(1)==COGROUP||input.LA(1)==GROUP ) {\n input.consume();\n if ( state.backtracking==0 ) {\n set147_tree = (CommonTree)adaptor.dupNode(set147);\n\n\n root_1 = (CommonTree)adaptor.becomeRoot(set147_tree, root_1);\n }\n\n state.errorRecovery=false;\n state.failed=false;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return retval;}\n MismatchedSetException mse = new MismatchedSetException(null,input);\n throw mse;\n }\n\n\n match(input, Token.DOWN, null); if (state.failed) return retval;\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:350:27: ( group_item )+\n int cnt40=0;\n loop40:\n do {\n int alt40=2;\n int LA40_0 = input.LA(1);\n\n if ( (LA40_0==ARROBA||LA40_0==ASSERT||LA40_0==COGROUP||(LA40_0 >= CROSS && LA40_0 <= CUBE)||LA40_0==DEFINE||LA40_0==DISTINCT||LA40_0==FILTER||LA40_0==FOREACH||LA40_0==GROUP||LA40_0==IDENTIFIER||LA40_0==JOIN||(LA40_0 >= LIMIT && LA40_0 <= LOAD)||LA40_0==MAPREDUCE||LA40_0==ORDER||LA40_0==RANK||LA40_0==SAMPLE||LA40_0==SPLIT||(LA40_0 >= STORE && LA40_0 <= STREAM)||LA40_0==UNION) ) {\n alt40=1;\n }\n\n\n switch (alt40) {\n \tcase 1 :\n \t // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:350:27: group_item\n \t {\n \t _last = (CommonTree)input.LT(1);\n \t pushFollow(FOLLOW_group_item_in_group_clause1522);\n \t group_item148=group_item();\n\n \t state._fsp--;\n \t if (state.failed) return retval;\n \t if ( state.backtracking==0 ) \n \t adaptor.addChild(root_1, group_item148.getTree());\n\n\n \t if ( state.backtracking==0 ) {\n \t }\n \t }\n \t break;\n\n \tdefault :\n \t if ( cnt40 >= 1 ) break loop40;\n \t if (state.backtracking>0) {state.failed=true; return retval;}\n EarlyExitException eee =\n new EarlyExitException(40, input);\n throw eee;\n }\n cnt40++;\n } while (true);\n\n\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:350:39: ( group_type )?\n int alt41=2;\n int LA41_0 = input.LA(1);\n\n if ( (LA41_0==QUOTEDSTRING) ) {\n alt41=1;\n }\n switch (alt41) {\n case 1 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:350:39: group_type\n {\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_group_type_in_group_clause1525);\n group_type149=group_type();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_1, group_type149.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n\n }\n\n\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:350:51: ( partition_clause )?\n int alt42=2;\n int LA42_0 = input.LA(1);\n\n if ( (LA42_0==PARTITION) ) {\n alt42=1;\n }\n switch (alt42) {\n case 1 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:350:51: partition_clause\n {\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_partition_clause_in_group_clause1528);\n partition_clause150=partition_clause();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_1, partition_clause150.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n\n }\n\n\n match(input, Token.UP, null); if (state.failed) return retval;\n adaptor.addChild(root_0, root_1);\n _last = _save_last_1;\n }\n\n\n if ( state.backtracking==0 ) {\n }\n }\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n }\n\n }\n\n catch(RecognitionException re) {\n throw re;\n }\n\n finally {\n \t// do for sure before leaving\n group_clause_stack.pop();\n }\n return retval;\n }", "public AbstractRowIndexEntry append(UnfilteredRowIterator partition)\n {\n DecoratedKey key = partition.partitionKey();\n maybeReopenEarly(key);\n return writer.append(partition);\n }", "public LiteralValuePartitionAlgorithm() {\n\t\t\n\t}", "public Map<String, ExecutionContext> partition(int gridSize) {\n\n\t\tMap<String, ExecutionContext> partitionMap = new HashMap<String, ExecutionContext>();\n\n\t\tString partitionerQuery =this.getPrimaryKeyQuery();\n\t\t\n\t\tResultSetExtractor<List<Object>> resultSetExtractor = new ResultSetExtractor<List<Object>>() {\n\n\t\t\t@Override\n\t\t\tpublic List<Object> extractData(ResultSet rs)\n\t\t\t\t\tthrows SQLException, DataAccessException {\n\t\t\t\tList<Object> listOfIds = new ArrayList<Object>();\n\t\t\t\twhile(rs.next()){\n\n\t\t\t\t\tlistOfIds.add(rs.getObject(1));\n\t\t\t\t}\n\t\t\t\treturn listOfIds;\n\t\t\t}\n\t\t};\n\t\t\n\t\tList<Object> keys = query(partitionerQuery, resultSetExtractor);\n\n\t\tint recordsToProcess = keys.size();\n\t\tlogger.info(\"-------------------- Total records to process: \" + recordsToProcess);\n\n\t\tint partitionSize = (int) (Math.ceil((float) recordsToProcess / (float) gridSize));\n\n\t\tif (partitionSize < skipGridSizeForRecordsLessThenCount) {\n\t\t\tpartitionSize = skipGridSizeForRecordsLessThenCount;\n\t\t}\n\n\t\tlogger.info(\"--------------------- Total records per Partition: \" + partitionSize);\n\n\t\tint startKey = 0;\n\t\tint endKey = startKey + partitionSize - 1;\n\t\tint partitionId = 1;\n\n\t\twhile (startKey < recordsToProcess) {\n\t\t\tif (endKey > recordsToProcess - 1) {\n\t\t\t\tendKey = recordsToProcess - 1;\n\t\t\t}\n\t\t\tExecutionContext context = new ExecutionContext();\n\n\t\t\tlogger.info(\"-------------------- Start index(\" + partitionId + \"): \" + keys.get(startKey));\n\t\t\tlogger.info(\"-------------------- End index(\" + partitionId + \"): \" + keys.get(endKey));\n\n\t\t\tpartitionMap.put(\"partition-\" + partitionId, context);\n\t\t\tcontext.put(\"startKey\", keys.get(startKey));\n\t\t\tcontext.put(\"endKey\", keys.get(endKey));\n\t\t\tcontext.put(\"partitionId\", partitionId);\n\t\t\tcontext.put(\"partitionSize\", partitionSize);\n\t\t\tcontext.put(\"totalRecords\", keys.size());\n\n\t\t\tstartKey += partitionSize;\n\t\t\tendKey += partitionSize;\n\t\t\tpartitionId++;\n\t\t}\n\n\t\tlogger.info(\"Total no. of Partitions: \" + partitionMap.size());\n\t\treturn partitionMap;\n\t}", "public abstract PartitionType getType();", "public void aggregate() {\n\t\tIAggregate selectedAggregation = this.gui.getSelectedAggregation();\n\t\tthis.output(selectedAggregation.aggregate(satelliteList));\n\t}", "public AggregationPeriod aggregation() {\n\t\treturn message.getAggregation();\n\t}", "private TaskSeriesCollection createCollection3() {\n Task sub1 = new Task(\"Sub1\", new Date(11), new Date(111));\n Task sub2 = new Task(\"Sub2\", new Date(22), new Date(222));\n Task sub3 = new Task(\"Sub3\", new Date(33), new Date(333));\n Task sub4 = new Task(\"Sub4\", new Date(44), new Date(444));\n Task sub5 = new Task(\"Sub5\", new Date(55), new Date(555));\n Task sub6 = new Task(\"Sub6\", new Date(66), new Date(666));\n sub1.setPercentComplete(0.111);\n sub2.setPercentComplete(0.222);\n sub3.setPercentComplete(0.333);\n sub4.setPercentComplete(0.444);\n sub5.setPercentComplete(0.555);\n sub6.setPercentComplete(0.666);\n TaskSeries seriesA = new TaskSeries(\"Series A\");\n Task taskA1 = new Task(\"Task 1\", new SimpleTimePeriod(new Date(100), new Date(200)));\n taskA1.setPercentComplete(0.1);\n taskA1.addSubtask(sub1);\n Task taskA2 = new Task(\"Task 2\", new SimpleTimePeriod(new Date(220), new Date(350)));\n taskA2.setPercentComplete(0.2);\n taskA2.addSubtask(sub2);\n taskA2.addSubtask(sub3);\n seriesA.add(taskA1);\n seriesA.add(taskA2);\n TaskSeries seriesB = new TaskSeries(\"Series B\");\n Task taskB2 = new Task(\"Task 2\", new SimpleTimePeriod(new Date(2220), new Date(3350)));\n taskB2.setPercentComplete(0.3);\n taskB2.addSubtask(sub4);\n taskB2.addSubtask(sub5);\n taskB2.addSubtask(sub6);\n seriesB.add(taskB2);\n TaskSeriesCollection tsc = new TaskSeriesCollection();\n tsc.add(seriesA);\n tsc.add(seriesB);\n return tsc;\n }", "@Override\n\tpublic void prepareResult(Partition partition) {\n\t}", "private void CreateDataIngestors() throws isisicatclient.IcatException_Exception {\n Grouping dataIngestors = new Grouping();\r\n dataIngestors.name = \"DataIngestors\";\r\n dataIngestors.id = port.create(sessionId, dataIngestors);\r\n dataIngestors = (Grouping) port.search(sessionId, \"Grouping[name='DataIngestors']\").get(0);\r\n\r\n List<String> ingestorTables = port.getEntityNames();\r\n\r\n ingestorTables.remove(\"Facility\");\r\n\r\n List<EntityBaseBean> ingestorRules = new ArrayList<>();\r\n for (String table : ingestorTables) {\r\n Rule rule = new Rule();\r\n rule.grouping = dataIngestors;\r\n rule.crudFlags = \"CRUD\"; //no delete permission for ingestors\r\n rule.what = table;\r\n ingestorRules.add(rule);\r\n }\r\n port.createMany(sessionId, ingestorRules);\r\n }", "public static void main(String[] args) {\n MyOptions options = PipelineOptionsFactory\n .fromArgs(args)\n .withValidation()\n .as(MyOptions.class);\n \n options.setStreaming(true);\n projectName = options.getProject();\n\n String subscription = \"projects/\"\n + projectName\n + \"/subscriptions/\"\n + \"dataflow-stream-demo\";\n\n String batchSubscription = \"projects/\"\n + projectName\n + \"/subscriptions/\"\n + \"dataflow-stream-gcs-demo\";\n Pipeline p = Pipeline.create(options);\n PCollection<String> merged;\n\n // Collect batched data events from Pub/Sub\n PCollection<String> uris = p.apply(PubsubIO.readMessagesWithAttributes()\n .fromSubscription(batchSubscription))\n .apply(MapElements\n .via(new InferableFunction<PubsubMessage, String>() {\n private static final long serialVersionUID = 1L;\n public String apply(PubsubMessage msg) throws Exception {\n return GcsPath.fromComponents(\n msg.getAttribute(\"bucketId\"),\n msg.getAttribute(\"objectId\")\n ).toString();\n }\n }));\n\n // Get our files from the batched events\n PCollection<String> batchedData = uris.apply(FileIO.matchAll()\n .withEmptyMatchTreatment(EmptyMatchTreatment.DISALLOW))\n .apply(FileIO.readMatches())\n .apply(TextIO.readFiles());\n\n // Read live data from Pub/Sub\n PCollection<String> pubsubStream = p.apply(\"Read from Pub/Sub\", PubsubIO.readStrings()\n .fromSubscription(subscription));\n \n // Merge our two streams together\n merged = PCollectionList\n .of(batchedData)\n .and(pubsubStream)\n .apply(\"Flatten Streams\",\n Flatten.<String>pCollections());\n // Decode the messages into TableRow's (a type of Map), split by tag\n // based on how our decode function emitted the TableRow\n PCollectionTuple decoded = merged.apply(\"Decode JSON into Rows\", ParDo\n .of(new DecodeMessage())\n .withOutputTags(windowData, TupleTagList\n .of(badData)\n .and(rawData)));\n \n // @decoded is now a single object that contains 3 streams, badData, rawData,\n // and windowData. This illustrates a \"mono\" stream approach where data from\n // a stream can be split and worked differently depending on variables in the\n // data at run time.\n\n // Write data that we couldn't decode (bad JSON, etc) to BigQuery\n decoded.get(badData)\n .apply(\"Send Dead Letter (Failed Decode)\", new DeadLetter(\"Failed Decode\"));\n\n // Write full, raw output, to a BigQuery table\n decoded.get(rawData)\n .apply(\"Raw to BigQuery\", BigQueryIO.writeTableRows()\n .to(projectName + \":dataflow_demo.rawData\")\n .withMethod(Method.STREAMING_INSERTS)\n .withSchema(Helpers.generateSchema(Helpers.rawSchema))\n .withCreateDisposition(BigQueryIO.Write.CreateDisposition.CREATE_IF_NEEDED)\n .withWriteDisposition(BigQueryIO.Write.WriteDisposition.WRITE_APPEND)\n .withFailedInsertRetryPolicy(InsertRetryPolicy.retryTransientErrors()))\n .getFailedInserts()\n .apply(\"Send Dead Letter (Raw)\", new DeadLetter(\"Raw\"));\n\n // Write full, raw output, to a BigTable table.\n decoded.get(rawData).apply(\"Convert to Mutation\", ParDo\n .of(new CreateMutation()))\n .apply(\"Raw to BigTable\", BigtableIO.write()\n .withProjectId(projectName)\n .withInstanceId(\"df-demo\")\n .withTableId(\"df-demo\"));\n\n // Process our previously decoded KV of (event, TableRow) outputs\n // and bucket them into 1 minute long buckets of data. Think of this\n // as a dam that opens the gates every minute.\n decoded.get(windowData)\n .apply(\"1 Minute Window\", Window.<KV<String,TableRow>>\n into(FixedWindows\n .of(Duration.standardMinutes(1))))\n\n // Take our 1 minute worth of data and combine it by Key, and\n // call our previously defined SumEvents function. This will in turn\n // emit a series of KV (event, TableRows) for each unique event\n // type.\n .apply(\"Calculate Rollups\", Combine.<String, TableRow>perKey(new SumEvents()))\n\n // Get the event name for this rollup, and apply it to the TableRow\n .apply(\"Apply Event Name\", ParDo\n .of(new DoFn<KV<String, TableRow>, TableRow>(){\n private static final long serialVersionUID = -690923091551584848L;\n @ProcessElement\n public void processElement(ProcessContext c, BoundedWindow window) {\n TableRow r = c.element().getValue();\n r.set(\"event\", c.element().getKey());\n r.set(\"timestamp\",window.maxTimestamp().getMillis() / 1000);\n c.output(r);\n }\n }))\n // Write our one minute rollups for each event to BigQuery\n .apply(\"Rollup to BigQuery\", BigQueryIO.writeTableRows()\n .to(projectName + \":dataflow_demo.rollupData\")\n .withMethod(Method.STREAMING_INSERTS)\n .withSchema(Helpers.generateSchema(Helpers.rollupSchema))\n .withCreateDisposition(BigQueryIO.Write.CreateDisposition.CREATE_IF_NEEDED)\n .withWriteDisposition(BigQueryIO.Write.WriteDisposition.WRITE_APPEND)\n .withFailedInsertRetryPolicy(InsertRetryPolicy.retryTransientErrors()))\n .getFailedInserts()\n .apply(\"Send Dead Letter (Rollups)\", new DeadLetter(\"Rollups\"));\n\n // Run our pipeline, and do not block/wait for execution!\n p.run();\n }", "public interface Filters extends MultiBucketsAggregation {\n\n /**\n * A bucket associated with a specific filter (identified by its key)\n */\n interface Bucket extends MultiBucketsAggregation.Bucket {}\n\n /**\n * The buckets created by this aggregation.\n */\n @Override\n List<? extends Bucket> getBuckets();\n\n Bucket getBucketByKey(String key);\n\n}" ]
[ "0.55628395", "0.54113805", "0.53199935", "0.5239363", "0.5227838", "0.50531393", "0.49970603", "0.4909245", "0.48176157", "0.48171818", "0.48148873", "0.4808722", "0.47725388", "0.47377893", "0.46853182", "0.46768743", "0.46648222", "0.46078482", "0.45908305", "0.45800295", "0.4478717", "0.44617045", "0.44580412", "0.4450362", "0.4446569", "0.44062808", "0.44022676", "0.4376633", "0.43713668", "0.4356653", "0.4355492", "0.43529302", "0.43358833", "0.43357843", "0.43032312", "0.43004283", "0.42886275", "0.42842224", "0.42668292", "0.42646393", "0.426055", "0.4252851", "0.4251084", "0.4246589", "0.4244083", "0.424281", "0.42416412", "0.4227704", "0.42091173", "0.41997352", "0.4188727", "0.41840172", "0.41812783", "0.41776106", "0.41681683", "0.41610184", "0.4155952", "0.41535592", "0.41433343", "0.41426432", "0.41400966", "0.413831", "0.41376072", "0.4118828", "0.4110471", "0.40904245", "0.4083705", "0.40679416", "0.4066694", "0.40590203", "0.40535012", "0.40455347", "0.40452123", "0.4043804", "0.40431583", "0.40344682", "0.4034241", "0.40323803", "0.40238115", "0.40237057", "0.40200323", "0.40143985", "0.400952", "0.39973956", "0.39964458", "0.39949766", "0.39942372", "0.3993868", "0.39893657", "0.39880127", "0.39698294", "0.3968547", "0.39639473", "0.39633614", "0.39536613", "0.39508802", "0.3948991", "0.39470747", "0.39465147", "0.39398393" ]
0.48954013
8
Get Access Token and persist it
private void checkForSavedLogin() { accessToken = getAccessToken(); if (accessToken==null) return; //if there are no credentials stored then return to usual activity // initialize Twitter4J twitter.setOAuthAccessToken(accessToken); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getAccessToken();", "String getAccessToken();", "String getAccessToken();", "public AccessToken getAccessToken() {\n return token;\n }", "protected AccessToken getAccessToken() \n\t{\n\t\treturn accessToken;\n\t}", "public String getAccessToken() {\n return accessToken;\n }", "public String getAccessToken() {\n return accessToken;\n }", "public static String getAccessToken() {\n return accessToken;\n }", "public String getAccessToken() {\n return accessToken;\n }", "public String getAccessToken()\n {\n if (accessToken == null)\n {\n if (DEBUG)\n {\n System.out.println(\"Access token is empty\");\n }\n try\n {\n FileReader fileReader = new FileReader(getCache(\"token\"));\n BufferedReader bufferedReader = new BufferedReader(fileReader);\n accessToken = bufferedReader.readLine();\n if (DEBUG)\n {\n System.out.println(\"BufferReader line: \" + accessToken);\n }\n } catch (FileNotFoundException e)\n {\n e.printStackTrace();\n } catch (IOException e)\n {\n e.printStackTrace();\n }\n }\n return accessToken;\n }", "@Transient\n\tpublic String getAccessToken() {\n\t\treturn accessToken;\n\t}", "public String getAccessToken() {\n\t\treturn accessToken;\n\t}", "public String getAccessToken() {\n\t\treturn accessToken;\n\t}", "public boolean save(Context context, AccessToken accessToken) \n {\n\n Editor editor = context.getSharedPreferences(KEY, Context.MODE_PRIVATE).edit();\n\n this.token = accessToken.getToken();\n this.tokensecret = accessToken.getTokenSecret();\n editor.putString(TOKEN, token);\n editor.putString(TOKENSECRET, tokensecret);\n \n\n if (editor.commit()) \n {\n singleton = this;\n return true;\n }\n return false;\n }", "public String getAccessToken() {\n readLock.lock();\n try {\n return accessToken;\n } finally {\n readLock.unlock();\n }\n }", "@Nullable\n public String getAccessToken() {\n return accessToken;\n }", "public void storeToken(AuthorizationToken token);", "public String getAccessToken () {\n\t\treturn this.accessToken;\n\t}", "@Transactional\n\tprivate void saveOrUpdateAccessToken() {\n\t\tString tfw = null;\n\t\ttry {\n\t\t\ttfw = this.getAccessTokenFromWechatServer();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tif (tokenConstant == null) {\n\t\t\ttokenConstant = new AccessToken();\n//\t\t\tconstant.setKey(Consts.access_token_key_in_db);\n//\t\t\tconstant.setValue(tfw);\n//\t\t\ttokenConstant.setUpdateTime(new Date());\n//\n//\t\t\tthis.tokenConstant = constant;\n//\t\t\tthis.constantMapper.insert(constant);\n\t\t\tlog.info(\"第一次获取accessToken\");\n\t\t}\n//\t\telse {\n//\t\t\tconstant.setValue(tfw);\n//\t\t\tconstant.setUpdateTime(new Date());\n//\n//\t\t\tthis.tokenConstant = constant;\n//\t\t\tthis.constantMapper.updateAccessToken(constant);\n//\t\t\tlog.info(\"accessToken已经更新\");\n//\t\t}\n\t\tWechatConsts.param_access_token=tfw;\n\t\t\n\t\ttokenConstant.setAccess_token(tfw);\n\t\ttokenConstant.setUpdateTime(new Date());\n\t}", "public String getAccess_token() {\r\n\t\treturn access_token;\r\n\t}", "public boolean setAccessToken(JSONObject response){\n boolean ret=false;\n Log.d(TAG, \"setAccessToken: \"+response);\n SharedPreferences.Editor editor=context.getSharedPreferences(Const.LINKAI_SHAREDPREFERENCE_FILE,Context.MODE_PRIVATE).edit();\n try {\n editor.putString(\"access_token\",response.getString(\"access_token\"));\n editor.putString(\"token_type\",response.getString(\"token_type\"));\n editor.putLong(\"expires_in\",Long.valueOf(response.getString(\"expires_in\")));\n// editor.putLong(\"expires_in\",10000);\n editor.putLong(\"token_timestamp\",new Date().getTime());\n editor.commit();\n ret=true;\n }catch (Exception e){\n e.printStackTrace();\n }\n return ret;\n }", "private void getAccessToken() {\n\n\t\tMediaType mediaType = MediaType.parse(\"application/x-www-form-urlencoded\");\n\t\tRequestBody body = RequestBody.create(mediaType,\n\t\t\t\t\"client_id=\" + CONSUMER_KEY + \"&client_secret=\" + CONSUMER_SECRET + \"&grant_type=client_credentials\");\n\t\tRequest request = new Request.Builder().url(\"https://api.yelp.com/oauth2/token\").post(body)\n\t\t\t\t.addHeader(\"cache-control\", \"no-cache\").build();\n\n\t\ttry {\n\t\t\tokhttp3.Response response = client.newCall(request).execute();\n\t\t\tString respbody = response.body().string().trim();\n\t\t\tJSONParser parser = new JSONParser();\n\t\t\tJSONObject json = (JSONObject) parser.parse(respbody);\n\t\t\taccessToken = (String) json.get(\"access_token\");\n\t\t} catch (IOException | ParseException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public String getAccessToken() {\n\t\t\n\t\tString access_token = \"\";\n\t\t\n\t\tif (securityContext != null) {\n\t\t\taccess_token = securityContext.getTokenString();\n\t\t}\n\t\t\n\t\treturn access_token;\n\t}", "public String getAccessToken() {\n if (accessToken == null || (System.currentTimeMillis() > (expirationTime - 60 * 1000))) {\n if (refreshToken != null) {\n try {\n this.refreshAccessToken();\n } catch (IOException e) {\n log.error(\"Error fetching access token\", e);\n }\n }\n }\n\n return accessToken;\n }", "public static Oauth2AccessToken readAccessToken() {\n Oauth2AccessToken token = new Oauth2AccessToken();\n SharedPrefWrapper sharedPref = SharedPrefWrapper.getInstance();\n\n token.setUid(sharedPref.getWeiboUID());\n token.setToken(sharedPref.getWeiboAccessToken());\n token.setExpiresTime(sharedPref.getWeiboExpiresTime());\n return token;\n }", "AccessToken getOAuthAccessToken(RequestToken requestToken) throws MoefouException;", "protected final String getAccessToken() {\n Session currentSession = sessionTracker.getOpenSession();\n return (currentSession != null) ? currentSession.getAccessToken() : null;\n }", "public static String getAccessToken() {\n return \"\";\n }", "@Api(1.0)\n @NonNull\n public String getAccessToken() {\n return mAccessToken;\n }", "void setAccessToken(String accessToken);", "public String getAccessToken(){\n //return \"3be8b617e076b96b2b0fa6369b6c72ed84318d72\";\n return MobileiaAuth.getInstance(mContext).getCurrentUser().getAccessToken();\n }", "public void retrieveAccessToken(Context context) {\n PBookAuth mPBookAuth = mApplicationPreferences.getPBookAuth();\n if (mPBookAuth == null || TextUtils.isEmpty(mPBookAuth.getClientName())) {\n view.onReturnAccessToken(null, false);\n return;\n }\n Ion.with(context).load(ACCESS_TOKEN_SERVICE_URL).setBodyParameter(\"client\", mPBookAuth.getClientName()).setBodyParameter(\"phoneNumber\", mPBookAuth.getPhoneNumber()).setBodyParameter(\"platform\", PLATFORM_KEY).asString().setCallback(new FutureCallback<String>() {\n @Override\n public void onCompleted(Exception e, String accessToken) {\n if (e == null || !TextUtils.isEmpty(accessToken)) {\n mApplicationPreferences.setTwilioToken(accessToken);\n view.onReturnAccessToken(accessToken, true);\n } else {\n view.onReturnAccessToken(accessToken, false);\n }\n }\n });\n }", "OAuth2Token getToken();", "public void setCurrentAccessToken() {\n String userAccessToken = null;\n String moderatorAccessToken = null;\n // Get tokens of local user and logged in moderator if existing.\n localUser = getLocalUser();\n if (localUser != null) {\n userAccessToken = localUser.getServerAccessToken();\n }\n if (loggedInModerator != null) {\n moderatorAccessToken = loggedInModerator.getServerAccessToken();\n }\n // Use the access token of the local moderator if available (logged in).\n accessToken = moderatorAccessToken;\n if (accessToken == null) {\n // Otherwise, use the access token of the local user.\n accessToken = userAccessToken;\n }\n }", "public static String getAccessToken(Context context){\n\t\t\tSharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);\n\t\t\treturn prefs.getString(TWITTER_ACCESS_TOKEN, null);\n\t\t}", "private String getToken() {\n String keyFilePath = System.getenv(\"APE_API_KEY\");\n if (Strings.isNullOrEmpty(keyFilePath)) {\n File globalKeyFile = GlobalConfiguration.getInstance().getHostOptions().\n getServiceAccountJsonKeyFiles().get(GLOBAL_APE_API_KEY);\n if (globalKeyFile == null || !globalKeyFile.exists()) {\n CLog.d(\"Unable to fetch the service key because neither environment variable \" +\n \"APE_API_KEY is set nor the key file is dynamically downloaded.\");\n return null;\n }\n keyFilePath = globalKeyFile.getAbsolutePath();\n }\n if (Strings.isNullOrEmpty(mApiScope)) {\n CLog.d(\"API scope not set, use flag --business-logic-api-scope.\");\n return null;\n }\n try {\n Credential credential = GoogleCredential.fromStream(new FileInputStream(keyFilePath))\n .createScoped(Collections.singleton(mApiScope));\n credential.refreshToken();\n return credential.getAccessToken();\n } catch (FileNotFoundException e) {\n CLog.e(String.format(\"Service key file %s doesn't exist.\", keyFilePath));\n } catch (IOException e) {\n CLog.e(String.format(\"Can't read the service key file, %s\", keyFilePath));\n }\n return null;\n }", "private void retrieveAccessToken() {\n Log.d(TAG, \"at retreiveAccessToken\");\n String accessURL = TWILIO_ACCESS_TOKEN_SERVER_URL + \"&identity=\" + \"1234\" + \"a\";\n Log.d(TAG, \"accessURL \" + accessURL);\n Ion.with(this).load(accessURL).asString().setCallback(new FutureCallback<String>() {\n @Override\n public void onCompleted(Exception e, String accessToken) {\n if (e == null) {\n Log.d(TAG, \"Access token: \" + accessToken);\n MainActivity.this.accessToken = accessToken;\n registerForCallInvites();\n } else {\n Toast.makeText(MainActivity.this,\n \"Error retrieving access token. Unable to make calls\",\n Toast.LENGTH_LONG).show();\n Log.d(TAG, e.toString());\n }\n }\n });\n }", "String getAuthorizerAccessToken(String appId);", "AccessToken getOAuthAccessToken() throws MoefouException;", "public java.lang.String getOauth_token(){\r\n return localOauth_token;\r\n }", "public String generateAccessToken() {\n return accessTokenGenerator.generate().toString();\n }", "void setOAuthAccessToken(AccessToken accessToken);", "public void generateAccessToken(OAuthAccessor accessor)\n throws OAuthException {\n\n try {\n // generate oauth_token and oauth_secret\n // generate token and secret based on consumer_key\n String consumer_key = accessor.consumer.consumerKey;\n \n OAuthAccessorRecord record = findByConsumerKey(accessor.consumer.consumerKey);\n \n // for now use md5 of name + current time as token\n String token_data = consumer_key + System.nanoTime();\n String token = Digester.MD5(token_data);\n\n record.setRequestToken(null);\n record.setAccessToken(token);\n em.persist(record);\n\n } catch (Exception ex) {\n throw new OAuthException(\"ERROR: generating access token\", ex);\n }\n }", "private static String getAccessToken() throws IOException {\n\t\t \t\n\t\t GoogleCredential googleCredential = GoogleCredential\n\t .fromStream(new FileInputStream(path))\n\t .createScoped(Arrays.asList(SCOPES));\n\t\t \tgoogleCredential.refreshToken();\n\t\t \treturn googleCredential.getAccessToken();\n\t}", "public static String getCurrentAccessToken() {\n if (StringUtils.isNotNull(cacheAccessToken))\n return cacheAccessToken;\n\n String accessToken = null;\n User user = getCurrentUser();\n if (user != null)\n accessToken = user.secret;\n if (accessToken != null)\n cacheAccessToken = accessToken;\n\n return cacheAccessToken;\n }", "public interface TokenProvider {\n /**\n * @return an always valid access token.\n */\n String getAccessToken();\n\n /**\n * Forces a refresh of all tokens.\n *\n * @return the newly refreshed access token.\n */\n String refreshTokens();\n}", "public static void setAccessToken(String token, Context context){\n\t\t\tSharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);\n\t\t\tSharedPreferences.Editor prefEditor = prefs.edit();\n\t\t\tprefEditor.putString(TWITTER_ACCESS_TOKEN, token);\n\t\t\tprefEditor.commit();\n\t\t\t\n\t\t}", "private CdekAuthToken getAuthToken()\n {\n String authEndpoint = conf.ENDPOINT + \"/oauth/token?grant_type={grant_type}&client_id={client_id}&client_secret={client_secret}\";\n\n HttpHeaders defaultHeaders = new HttpHeaders();\n HttpEntity req = new HttpEntity(defaultHeaders);\n\n return rest.postForObject(authEndpoint, req, CdekAuthToken.class, conf.getAuthData());\n }", "private String retrieveToken(String accessCode) throws IOException {\n OAuthApp app = new OAuthApp(asanaCredentials.getClientId(), asanaCredentials.getClientSecret(),\n asanaCredentials.getRedirectUri());\n Client.oauth(app);\n String accessToken = app.fetchToken(accessCode);\n\n //check if user input is valid by testing if accesscode given by user successfully authorises the application\n if (!(app.isAuthorized())) {\n throw new IllegalArgumentException();\n }\n\n return accessToken;\n }", "void onGetTokenSuccess(AccessTokenData token);", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent intent) {\n if (resultCode != RESULT_OK || requestCode != AUTH_TOKEN_REQUEST_CODE) {\n Log.e(TAG, \"Finished with no result.\");\n return;\n }\n\n mToken = NestAPI.getAccessTokenFromIntent(intent);\n if (mToken != null) {\n Auth.saveAuthToken(this, mToken);\n authenticate(mToken);\n } else {\n Log.e(TAG, \"Unable to resolve access token from payload.\");\n }\n }", "public interface OAuthTokenStoreAdapter {\n\n void storeAccessToken(AccessToken token);\n AccessToken retrieveAccessToken(String value);\n\n void storeRefreshToken(RefreshToken token);\n RefreshToken retrieveRefreshToken(String value);\n}", "public synchronized String accessToken(String knownInvalidToken) {\n if (accessToken == null || (knownInvalidToken != null && accessToken.equals(knownInvalidToken))) {\n loadTokens();\n }\n\n return accessToken;\n }", "public void setAccessToken(String accessToken, String tokenType)\n {\n FileWriter fileWriter;\n try\n {\n fileWriter = new FileWriter(getCache(\"token\"));\n BufferedWriter bufferedWriter = new BufferedWriter(fileWriter);\n bufferedWriter.write(accessToken);\n bufferedWriter.close();\n } catch (IOException e)\n {\n e.printStackTrace();\n }\n try\n {\n fileWriter = new FileWriter(getCache(\"tokenType\"));\n BufferedWriter bufferedWriter = new BufferedWriter(fileWriter);\n bufferedWriter.write(tokenType);\n bufferedWriter.close();\n } catch (IOException e)\n {\n e.printStackTrace();\n }\n this.accessToken = accessToken;\n }", "private void saveToken(Context context, String text) {\n android.content.SharedPreferences settings;\n android.content.SharedPreferences.Editor editor;\n \n settings = context.getSharedPreferences(\"PREFS_NAME\", Context.MODE_PRIVATE);\n editor = settings.edit();\n editor.putString(\"TOKEN\", text);\n editor.apply();\n }", "public String saveAuthToken() { // basically for signin\n return authTokenAssist.saveMemberToken(getSavedUserBean().get().getMemberAccount());\n }", "public static void setAccessToken(String accessToken) {\n }", "AuthenticationResult postTokenRequest() throws MsalUiRequiredException, MsalServiceException, MsalClientException {\n checkUserMismatch();\n\n final TokenCache tokenCache = mAuthRequestParameters.getTokenCache();\n final Authority authority = mAuthRequestParameters.getAuthority();\n authority.updateTenantLessAuthority(new IdToken(mTokenResponse.getRawIdToken()).getTenantId());\n final AccessTokenCacheItem accessTokenCacheItem = tokenCache.saveAccessToken(authority.getAuthority(),\n mAuthRequestParameters.getClientId(), mTokenResponse, mRequestContext);\n tokenCache.saveRefreshToken(authority.getAuthorityHost(), mAuthRequestParameters.getClientId(),\n mTokenResponse, mRequestContext);\n\n return new AuthenticationResult(accessTokenCacheItem);\n }", "private void requestToken(){\n APIAuth auth = new APIAuth(this.prefs.getString(\"email\", \"\"), this.prefs.getString(\"password\", \"\"), this.prefs.getString(\"fname\", \"\") + \" \" +this.prefs.getString(\"lname\", \"\"), this.prefs, null);\n auth.authenticate();\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if(requestCode==request_Code){\n AuthenticationResponse response = AuthenticationClient.getResponse(resultCode,data);\n if(response.getType()==AuthenticationResponse.Type.TOKEN){\n accessToken = response.getAccessToken();\n }else{\n }\n }\n new SpotifyNewRelease(accessToken).execute();\n }", "public static void storeToken(AccessToken token, Context cont)\n\t{\n\t\tSharedPreferences.Editor editor = cont.getSharedPreferences(\"StatPump\", 0).edit();\n\t\teditor.putString(\"Token\", token.getToken());\n\t\teditor.putString(\"Token Secret\", token.getTokenSecret());\n\t\teditor.commit();\n\t}", "Future<String> getAccessToken(OkapiConnectionParams params);", "private void getAccessToken(final String code, final OperationCallback<User> callback) {\n \n new Thread() {\n @Override\n public void run() {\n Log.i(TAG, \"Getting access token\");\n try {\n String postData = \"client_id=\" + CLIENT_ID + \"&client_secret=\" + CLIENT_SECRET +\n \"&grant_type=authorization_code\" + \"&redirect_uri=\" + CALLBACK_URL + \"&code=\" + code;\n String response = postRequest(TOKEN_URL, postData);\n \n Log.i(TAG, \"response \" + response);\n JSONObject jsonObj = (JSONObject) new JSONTokener(response).nextValue();\n \n mAccessToken = jsonObj.getString(\"access_token\");\n Log.i(TAG, \"Got access token: \" + mAccessToken);\n \n Gson gson = new Gson();\n User user = gson.fromJson(jsonObj.getJSONObject(\"user\").toString(), User.class);\n user.setAccessToken(mAccessToken);\n \n callback.notifyCompleted(user);\n } catch (Exception ex) {\n callback.notifyError(ex);\n Log.e(TAG, \"Error getting access token\", ex);\n }\n \n }\n }.start();\n }", "private String GetAccessToken() {\n final String grantType = \"password\";\n final String resourceId = \"https%3A%2F%2Fgraph.microsoft.com%2F\";\n final String tokenEndpoint = \"https://login.microsoftonline.com/common/oauth2/token\";\n\n try {\n URL url = new URL(tokenEndpoint);\n HttpURLConnection conn;\n if (configuration.isProxyUsed()) {\n Proxy proxy = new Proxy(Proxy.Type.HTTP, new InetSocketAddress(configuration.getProxyServer(), configuration.getProxyPort()));\n conn = (HttpURLConnection) url.openConnection(proxy);\n } else {\n conn = (HttpURLConnection) url.openConnection();\n }\n\n String line;\n StringBuilder jsonString = new StringBuilder();\n\n conn.setRequestProperty(\"Content-Type\", \"application/x-www-form-urlencoded; charset=UTF-8\");\n conn.setRequestMethod(\"POST\");\n conn.setDoInput(true);\n conn.setDoOutput(true);\n conn.setInstanceFollowRedirects(false);\n conn.connect();\n\n try (OutputStreamWriter outputStreamWriter = new OutputStreamWriter(conn.getOutputStream(), StandardCharsets.UTF_8)) {\n String payload = String.format(\"grant_type=%1$s&resource=%2$s&client_id=%3$s&username=%4$s&password=%5$s\",\n grantType,\n resourceId,\n clientId,\n username,\n password);\n outputStreamWriter.write(payload);\n }\n\n try (BufferedReader br = new BufferedReader(new InputStreamReader(conn.getInputStream()))) {\n while((line = br.readLine()) != null) {\n jsonString.append(line);\n }\n }\n\n conn.disconnect();\n\n JsonObject res = new GsonBuilder()\n .create()\n .fromJson(jsonString.toString(), JsonObject.class);\n\n return res\n .get(\"access_token\")\n .toString()\n .replaceAll(\"\\\"\", \"\");\n\n } catch (IOException e) {\n throw new IllegalAccessError(\"Unable to read authorization response: \" + e.getLocalizedMessage());\n }\n }", "public OAuthTokenResponse getToken() {\n return token;\n }", "@Override\r\n public OAuthTokens getTokens()\r\n {\r\n return tokenStore.loadTokens();\r\n }", "AccessToken getOAuthAccessToken(RequestToken requestToken, String oauthVerifier) throws MoefouException;", "@Override\n public Object getCredentials() {\n return token;\n }", "private void refreshAccessToken() throws IOException {\n\n if (clientId == null) fetchOauthProperties();\n\n URL url = new URL(tokenURI);\n\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"refresh_token\", refreshToken);\n params.put(\"client_id\", clientId);\n params.put(\"client_secret\", clientSecret);\n params.put(\"grant_type\", \"refresh_token\");\n\n String response = HttpUtils.getInstance().doPost(url, params);\n JsonParser parser = new JsonParser();\n JsonObject obj = parser.parse(response).getAsJsonObject();\n\n JsonPrimitive atprim = obj.getAsJsonPrimitive(\"access_token\");\n if (atprim != null) {\n accessToken = obj.getAsJsonPrimitive(\"access_token\").getAsString();\n expirationTime = System.currentTimeMillis() + (obj.getAsJsonPrimitive(\"expires_in\").getAsInt() * 1000);\n fetchUserProfile();\n } else {\n // Refresh token has failed, reauthorize from scratch\n reauthorize();\n }\n\n }", "public void setAccessToken (AccessToken accessToken)\n\t{\n\t\tthis.accessToken = accessToken;\n\t}", "public AuthorizationToken retrieveToken(String token);", "void removeAccessToken() {\n SharedPreferences prefs = // because rest also needs token\n context.getSharedPreferences(SHARED_PREFS_NAME, Context.MODE_PRIVATE);\n prefs.edit()\n .remove(KEY_ACCESS_TOKEN)\n .apply();\n // notification to all listeners\n state.onNext(new AuthState(false));\n\n }", "@Override\n\t\tprotected Integer doInBackground(Void... arg0) {\n\t\t\ttry {\n\t\t\t\treturn HttpHelperUtils.SaveToken(loginName);\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn null;\n\t\t}", "public String getAccessTokenUri() {\n return accessTokenUri;\n }", "public interface OauthAccessToken {\n byte[] getAuthentication();\n\n String getTokenId();\n\n String getAuthenticationId();\n\n byte[] getToken();\n\n void setTokenId(String tokenId);\n\n void setToken(byte[] token);\n\n void setAuthenticationId(String authenticationId);\n\n void setUsername(String username);\n\n void setAuthentication(byte[] authentication);\n\n void setRefreshToken(String refreshToken);\n\n void setClientId(String clientId);\n}", "@Override\n public List<AccessToken> getAccessTokens() {\n return new ArrayList<AccessToken>(accessTokens.values());\n }", "@Override\n public List<AccessToken> getAccessTokens() {\n return new ArrayList<AccessToken>(accessTokens.values());\n }", "public boolean saveRequest(Context context, RequestToken requestToken, Twitter t) \n {\n\n \ttwitter = t;\n Editor editor = context.getSharedPreferences(KEY, Context.MODE_PRIVATE).edit();\n\n rtoken = requestToken.getToken();\n rtokensecret =requestToken.getTokenSecret();\n editor.putString(R_TOKEN,rtoken);\n editor.putString(R_TOKENSECRET, rtokensecret);\n\n if (editor.commit()) \n {\n singleton = this;\n return true;\n }\n return false;\n }", "@Override\n\tprotected RefreshToken doCreateNewRefreshToken(ServerAccessToken at) {\n\t\tRefreshToken refreshToken = super.doCreateNewRefreshToken(at);\n\t\trefreshToken.setTokenKey(\"RT:\" + UUID.randomUUID().toString());\n\t\trefreshToken.setExpiresIn(Oauth2Factory.REFRESH_TOKEN_EXPIRED_TIME_SECONDS);\n\t\t\n\t\tif (log.isDebugEnabled()) {\n\t\t\ttry {\n\t\t\t\tlog.debug(\"RefreshToken={}\", OBJECT_MAPPER.writeValueAsString(refreshToken));\n\t\t\t} catch (JsonProcessingException e) {\n\t\t\t\tlog.error(e.getMessage(), e);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn refreshToken;\n\t}", "@FormUrlEncoded\n @POST(\"/oauth/access_token\")\n Flowable<ResponseBody> getAccessToken(@Field(\"oauth_verifier\") String oauthVerifier);", "public void saveToken(String token, long passTime) {\n }", "String getComponentAccessToken();", "@Override\n public void authenticate() throws IOException, BadAccessIdOrKeyException {\n try{\n HttpPost post = new HttpPost(Constants.FRGXAPI_TOKEN);\n List<NameValuePair> params = new ArrayList<>();\n params.add(new BasicNameValuePair(\"grant_type\", \"apiAccessKey\"));\n params.add(new BasicNameValuePair(\"apiAccessId\", accessId));\n params.add(new BasicNameValuePair(\"apiAccessKey\", accessKey));\n post.setEntity(new UrlEncodedFormEntity(params, \"UTF-8\"));\n\n HttpResponse response = client.execute(post);\n String a = response.getStatusLine().toString();\n\n if(a.equals(\"HTTP/1.1 400 Bad Request\")){\n throw (new BadAccessIdOrKeyException(\"Bad Access Id Or Key\"));\n }\n HttpEntity entity = response.getEntity();\n String responseString = EntityUtils.toString(response.getEntity());\n\n JsonParser jsonParser = new JsonParser();\n JsonObject jo = (JsonObject) jsonParser.parse(responseString);\n if(jo.get(\"access_token\") == null){\n throw new NullResponseException(\"The Access Token you get is null.\");\n }\n String accessToken = jo.get(\"access_token\").getAsString();\n List<Header> headers = new ArrayList<>();\n headers.add(new BasicHeader(HttpHeaders.CONTENT_TYPE, \"application/json\"));\n headers.add(new BasicHeader(\"Authorization\", \"Bearer \" + accessToken));\n\n client = HttpClients.custom().setDefaultHeaders(headers).build();\n } catch (NullResponseException e) {\n System.out.println(e.getMsg());\n }\n }", "public static void writeAccessToken(Oauth2AccessToken token) {\n if (null == token) {\n return;\n }\n\n SharedPrefWrapper sharedPref = SharedPrefWrapper.getInstance();\n sharedPref.setWeiboUID(token.getUid());\n sharedPref.setWeiboAccessToken(token.getToken());\n sharedPref.setWeiboExpiresTime(token.getExpiresTime());\n }", "public void setAccessToken(String accessToken) {\n\t\tthis.accessToken = accessToken;\n\t}", "public void setAccessToken(String accessToken) {\n\t\tthis.accessToken = accessToken;\n\t}", "@Override\n public void onResponse(String response) {\n\n try {\n\n SharedPreferences.Editor editor = prefs.edit();\n JSONObject data= new JSONObject(response);\n String token = data.getString(\"access_token\");\n editor.putString(\"token\", token);\n\n getDatosUser(usuario,token);\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n }", "AccessToken getOAuthAccessToken(String oauthVerifier) throws MoefouException;", "public Token toScribeToken() {\n return new Token(oauthToken, oauthTokenSecret);\n }", "@MainThread\n void getAccessToken(Account account, String scope, GetAccessTokenCallback callback) {\n ConnectionRetry.runAuthTask(new AuthTask<AccessTokenData>() {\n @Override\n public AccessTokenData run() throws AuthException {\n return mAccountManagerFacade.getAccessToken(account, scope);\n }\n @Override\n public void onSuccess(AccessTokenData token) {\n callback.onGetTokenSuccess(token);\n }\n @Override\n public void onFailure(boolean isTransientError) {\n callback.onGetTokenFailure(isTransientError);\n }\n });\n }", "String getAuthorizerRefreshToken(String appId);", "public void setAccessToken(String accessToken) {\n mAccessToken = accessToken;\n retrieveAllUserData();\n }", "@Override\r\n\tpublic String accessToken() throws OAuthSystemException {\n\t\treturn null;\r\n\t}", "public static String getAccessTokenSecret(Context context){\n\t\t\tSharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);\n\t\t\treturn prefs.getString(TWITTER_ACCESS_TOKEN_SECRET, null);\n\t\t}", "@Override\r\n\t\t\t\t\tpublic void onComplete(Bundle bundle) {\n\t\t\t\t\t\tOauth2AccessToken newToken = Oauth2AccessToken\r\n\t\t\t\t\t\t\t\t.parseAccessToken(bundle);\r\n\t\t\t\t\t\tAccessTokenKeeper.writeAccessToken(context, newToken);\r\n\t\t\t\t\t\tToast.makeText(\r\n\t\t\t\t\t\t\t\tcontext,\r\n\t\t\t\t\t\t\t\t\"onAuthorizeComplete token = \"\r\n\t\t\t\t\t\t\t\t\t\t+ newToken.getToken(), 0).show();\r\n\t\t\t\t\t}", "private static String getAppTokenId() {\n if (appTokenId == null) {\n synchronized (DefaultEntityManagerImpl.class) {\n if (appTokenId == null) {\n try {\n if (OAuthProperties.isServerMode()) {\n appTokenId = OAuthServiceUtils.getAdminTokenId();\n }\n else {\n final String username =\n OAuthProperties.get(PathDefs.APP_USER_NAME);\n final String password =\n OAuthProperties.get(PathDefs.APP_USER_PASSWORD);\n appTokenId =\n OAuthServiceUtils.authenticate(username, password, false);\n }\n }\n catch (final OAuthServiceException oe) {\n Logger.getLogger(DefaultEntityManagerImpl.class.getName()).log(\n Level.SEVERE, null, oe);\n throw new WebApplicationException(oe);\n }\n }\n }\n }\n return appTokenId;\n }", "public RefreshToken generateRefreshToken(){\n RefreshToken refreshToken = new RefreshToken();\n //Creates a 128bit random UUID. This serves as our refresh token\n refreshToken.setToken(UUID.randomUUID().toString());\n //Set creation timestampt\n refreshToken.setCreatedDate(Instant.now());\n\n return refreshTokenRepository.save(refreshToken);\n }", "void expireComponentAccessToken();", "public interface AccessTokenService extends Managed{\n public UserSession createAccessToken(UserSession userSession);\n\n public UserSession getUserFromAccessToken(String accessToken);\n\n public boolean isValidToken(String accessToken);\n\n public void removeAccessToken(String accessToken);\n\n public void removeUser(String userName);\n\n}", "static String getToken(Context context) {\r\n SharedPreferences preferences = context.getSharedPreferences(context.getString(R.string.shared_preferences), MODE_PRIVATE);\r\n return preferences.getString(context.getString(R.string.token), null);\r\n }", "public String getAccessSecret () {\n\t\treturn this.accessSecret;\n\t}" ]
[ "0.7206143", "0.7135087", "0.7135087", "0.69820005", "0.6973416", "0.6963855", "0.6954641", "0.69038606", "0.6885812", "0.6791594", "0.67143685", "0.66290414", "0.66290414", "0.66261584", "0.66245097", "0.6605619", "0.6571714", "0.65678585", "0.6566283", "0.6561043", "0.65514785", "0.6501558", "0.6439517", "0.64209753", "0.6404472", "0.6369284", "0.63689137", "0.6331534", "0.63311094", "0.6313861", "0.6304644", "0.6228779", "0.6221989", "0.620689", "0.6205265", "0.61640203", "0.6163166", "0.61569315", "0.6153396", "0.6134108", "0.6121807", "0.60936356", "0.6082174", "0.6081684", "0.60608584", "0.6020013", "0.59031975", "0.59027934", "0.5890107", "0.5889947", "0.5862814", "0.58594656", "0.58541465", "0.58311194", "0.5814212", "0.5799437", "0.57848495", "0.5779271", "0.5769401", "0.575999", "0.5758981", "0.5744634", "0.574128", "0.5738507", "0.57268727", "0.5719526", "0.57138896", "0.5704178", "0.5661419", "0.5657583", "0.5654058", "0.5648221", "0.5637459", "0.5618512", "0.56179684", "0.56158215", "0.56158215", "0.56107014", "0.5606225", "0.56034464", "0.5597447", "0.5595473", "0.55947775", "0.5555654", "0.55401725", "0.55401725", "0.55338746", "0.552485", "0.552059", "0.5516792", "0.55043703", "0.55024856", "0.54859036", "0.5479446", "0.5470838", "0.547002", "0.54354554", "0.5431482", "0.5429218", "0.54119194", "0.54093516" ]
0.0
-1
Create a new instance.
public StrTab() { maxIndex = 1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Instance createInstance();", "public void create(){}", "public Instance() {\n }", "private Instantiation(){}", "private Object createInstance() throws InstantiationException, IllegalAccessException {\n\t\treturn classType.newInstance();\n\t}", "void create(T instance) throws IOException;", "Reproducible newInstance();", "public void create() {\n\t\t\n\t}", "public void makeInstance() {\n\t\t// Create the attributes, class and text\n\t\tFastVector fvNominalVal = new FastVector(2);\n\t\tfvNominalVal.addElement(\"ad1\");\n\t\tfvNominalVal.addElement(\"ad2\");\n\t\tAttribute attribute1 = new Attribute(\"class\", fvNominalVal);\n\t\tAttribute attribute2 = new Attribute(\"text\",(FastVector) null);\n\t\t// Create list of instances with one element\n\t\tFastVector fvWekaAttributes = new FastVector(2);\n\t\tfvWekaAttributes.addElement(attribute1);\n\t\tfvWekaAttributes.addElement(attribute2);\n\t\tinstances = new Instances(\"Test relation\", fvWekaAttributes, 1); \n\t\t// Set class index\n\t\tinstances.setClassIndex(0);\n\t\t// Create and add the instance\n\t\tInstance instance = new Instance(2);\n\t\tinstance.setValue(attribute2, text);\n\t\t// Another way to do it:\n\t\t// instance.setValue((Attribute)fvWekaAttributes.elementAt(1), text);\n\t\tinstances.add(instance);\n \t\tSystem.out.println(\"===== Instance created with reference dataset =====\");\n\t\tSystem.out.println(instances);\n\t}", "public T newInstance();", "@Override\r\n\tpublic void create() {\n\t\t\r\n\t}", "T create();", "T create();", "@Override\r\n\tpublic T createInstance() {\r\n\t\ttry {\r\n\t\t\treturn getClassType().newInstance();\r\n\t\t} catch (Exception e) {\r\n\t\t\tLogger.getLogger(AbstractCRUDBean.class.getSimpleName()).log(Level.ALL, e.getMessage());\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public CMObject newInstance();", "@Override\n protected T createInstance() throws Exception {\n return this.isSingleton() ? this.builder().build() : XMLObjectSupport.cloneXMLObject(this.builder().build());\n }", "void createNewInstance(String filename)\n {\n iIncomingLobsFactory = new incomingLobsFactory();\n iIncomingLobsFactory.setPackageName(\"com.loadSample\");\n \n // include schemaLocation hint for validation\n iIncomingLobsFactory.setXSDFileName(\"LoadSample.xsd\");\n \n // encoding for output document\n iIncomingLobsFactory.setEncoding(\"UTF8\");\n \n // encoding tag for xml declaration\n iIncomingLobsFactory.setEncodingTag(\"UTF-8\");\n \n // Create the root element in the document using the specified root element name\n iIncomingLobs = (incomingLobs) iIncomingLobsFactory.createRoot(\"incomingLobs\");\n createincomingLobs();\n \n iIncomingLobsFactory.save(filename);\n }", "@Override\n\tpublic void create() {\n\n\t}", "@Override\n\tpublic void create() {\n\t\t\n\t}", "private synchronized static void createInstance(){\r\n\t\tif (instance == null){\r\n\t\t\tinstance = new Casino();\r\n\t\t}\r\n\t}", "public abstract void create();", "@Override\n\tpublic void create () {\n\n\t}", "public Instance() {\n super(Routing.NAMESPACE, \"instance\");\n }", "InstanceModel createInstanceOfInstanceModel();", "public static void createInstance()\n {\n if (instance == null) {\n // Create the instance\n instance = new SalesOrderDataSingleton();\n }\n }", "public Command createInstance() {\n\t\t\n\t\tif(name == \"Direction\")\n\t\t\treturn new Direction();\n\t\t\n\t\tif(name == \"Gear\")\n\t\t\treturn new Gear();\n\t\t\n\t\tif(name == \"Pause\")\n\t\t\treturn new Pause();\n\t\t\n\t\treturn null;\n\t\t\n\t}", "private Vehicle createNewVehicle() {\n\t\tString make = generateMake();\n\t\tString model = generateModel();\n\t\tdouble weight = generateWeight(model);\n\t\tdouble engineSize = generateEngineSize(model);\n\t\tint numberOfDoors = generateNumberOfDoors(model);\n\t\tboolean isImport = generateIsImport(make);\n\t\t\n\t\tVehicle vehicle = new Vehicle(make, model, weight, engineSize, numberOfDoors, isImport);\n\t\treturn vehicle;\t\t\n\t}", "@Override\r\n\tpublic void create() {\n\r\n\t}", "private static void makeInstance(){\n\n if(settingsFile==null){\n settingsFile = new MetadataFile(SETTINGS_FILE_PATH);\n }\n\n if(!settingsFile.exists()){\n settingsFile.create();\n }\n\n if(tagListeners==null){\n tagListeners= new HashMap<>();\n }\n\n }", "private synchronized static void createInstance() {\n if (INSTANCE == null) { \n INSTANCE = new DataConnection();\n }\n }", "public Factory() {\n\t\tsuper();\n\t}", "@SuppressWarnings(\"unchecked\")\n public T newInstance()\n throws NoSuchMethodException, IllegalAccessException, InvocationTargetException, InstantiationException {\n if (constructor_ == null) {\n constructor_ = getRawClass().getConstructor();\n }\n\n return (T)constructor_.newInstance();\n }", "@Override\r\n\tpublic CMObject newInstance()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\treturn this.getClass().getDeclaredConstructor().newInstance();\r\n\t\t}\r\n\t\tcatch(final Exception e)\r\n\t\t{\r\n\t\t\tLog.errOut(ID(),e);\r\n\t\t}\r\n\t\treturn new StdBehavior();\r\n\t}", "public static void createInstance(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource) {\r\n\t\tBase.createInstance(model, RDFS_CLASS, instanceResource);\r\n\t}", "public abstract boolean create(T newInstance);", "<T> T newInstance(URI description) throws EnvironmentException;", "public Taginstance() {\n\t\tthis(\"taginstance\", null);\n\t}", "private static synchronized void createInstance() {\r\n\t\tif (instance == null)\r\n\t\t\tinstance = new LOCFacade();\r\n\t}", "public void create () {\n // TODO random generation of a ~100 x 100 x 100 world\n }", "public static QuinzicalModel createInstance() throws Exception {\n\t\tif (instance == null) {\n\t\t\tinstance = new QuinzicalModel();\n\t\t}\n\t\treturn instance;\n\t}", "public Idea create() {\n \t\t\tIdea idea = new Idea();\n \n \t\t\treturn idea;\n \t\t}", "public static void createInstance(Model model, Resource instanceResource) {\r\n\t\tBase.createInstance(model, RDFS_CLASS, instanceResource);\r\n\t}", "@Override\r\n public void instantiate() {\r\n }", "public ObjectFactory() {}", "public ObjectFactory() {}", "public ObjectFactory() {}", "protected abstract void construct();", "public ApplicationCreator() {\n }", "public SingleRequest<?> create() {\n return new SingleRequest<>();\n }", "public ObjectFactory() {\n super(grammarInfo);\n }", "@Override\n\tpublic LightTank create() {\n\t\treturn new LightTank(GameContext.getGameContext());\n\t}", "T create() throws PersistException;", "public Object createNew(String typename, Object... args) \n\t\tthrows \tIllegalAccessException, \n\t\t\tInstantiationException, \n\t\t\tClassNotFoundException,\n\t\t\tNoSuchMethodException,\n\t\t\tInvocationTargetException \n\t{\n\t\tswitch(args.length) \n\t\t{\n\t\tcase 1 : return Class.forName(typename).getConstructor(args[0].getClass()).newInstance(args[0]);\n\t\tcase 2 : return Class.forName(typename).getConstructor(args[0].getClass(), args[1].getClass()).\n\t\t\tnewInstance(args[0], args[1]);\n\t\t}\n\t\treturn null;\n\t}", "public Factory() {\n this(getInternalClient());\n }", "public ObjectFactory() {\n\t}", "public static StaticFactoryInsteadOfConstructors create(){\n return new StaticFactoryInsteadOfConstructors();\n }", "public Open() {\n //creates a new open instance\n }", "public ObjectFactory() {\r\n\t}", "public Game getNewInstance() {\n try {\n return classObj.newInstance();\n } catch (Exception e) {\n e.printStackTrace();\n throw new RuntimeException(\"Error generating \" + this + \" game\");\n }\n }", "For createFor();", "private static void createInstance() {\n if (mApiInterface == null) {\n synchronized(APIClient.class) {\n if (mApiInterface == null) {\n mApiInterface = buildApiClient();\n }\n }\n }\n }", "public static Builder create() {\n\t\treturn new Builder();\n\t}", "public static Builder create() {\n\t\treturn new Builder();\n\t}", "Snapshot create();", "public void test_ctor() {\n assertNotNull(\"instance should be created.\", instance);\n }", "@Override\n\tpublic ModIndexedInstance createNewInstance() {\n\t\tModIndexedInstance newInst = new ModIndexedInstance(); // create the new instance\n\t\tnewInst.setRegComp(this); // set component type of new instance\n\t\taddInstanceOf(newInst); // add instance to list for this comp\n\t\treturn newInst;\n\t}", "void create( State state );", "public Produto() {}", "public static void main(String[] args) throws IOException {\n \n CreateInstance createInstance = new CreateInstance();\n\n try {\n createInstance.init(args);\n Flavor flavor = createInstance.getFlavor();\n createInstance.createInstance(flavor);\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n createInstance.close();\n }\n }", "public static Book createEntity() {\n Book book = new Book()\n .idBook(DEFAULT_ID_BOOK)\n .isbn(DEFAULT_ISBN)\n .title(DEFAULT_TITLE)\n .author(DEFAULT_AUTHOR)\n .year(DEFAULT_YEAR)\n .publisher(DEFAULT_PUBLISHER)\n .url_s(DEFAULT_URL_S)\n .url_m(DEFAULT_URL_M)\n .url_l(DEFAULT_URL_L);\n return book;\n }", "public static synchronized void constructInstance()\n {\n SmartDashboard.putBoolean( TelemetryNames.Elbow.status, false );\n\n if ( ourInstance != null )\n {\n throw new IllegalStateException( myName + \" Already Constructed\" );\n }\n ourInstance = new ElbowSubsystem();\n\n SmartDashboard.putBoolean( TelemetryNames.Elbow.status, true );\n }", "Klassenstufe createKlassenstufe();", "DynamicInstance createDynamicInstance();", "public void testConstructor() {\r\n assertNotNull(\"unable to create instance\", instance);\r\n }", "public ProductoCreable newInstance(int codigo, String nombre){\r\n \r\n }", "void create(T t);", "public static IPCGCallDetailCreator instance()\r\n {\r\n if (instance == null)\r\n {\r\n instance = new IPCGCallDetailCreator();\r\n }\r\n return instance;\r\n }", "public Activator() {\r\n\t}", "@Override\r\n\tpublic ItemInstance createItemInstance() {\n\t\treturn new HpInstance();\r\n\t}", "T newInstance(Object... args);", "public T safeNewInstance() {\n try {\n return newInstance();\n } catch (NoSuchMethodException e) {\n throw new IllegalArgumentException(e);\n } catch (IllegalAccessException e) {\n throw new IllegalArgumentException(e);\n } catch (InvocationTargetException e) {\n throw new IllegalArgumentException(e);\n } catch (InstantiationException e) {\n throw new IllegalArgumentException(e);\n }\n }", "public static StaticFactoryInsteadOfConstructors newInstance() {\n return new StaticFactoryInsteadOfConstructors();\n }", "public Model() {\n\t}", "public Model() {\n\t}", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }" ]
[ "0.7856344", "0.7297506", "0.7190777", "0.7127816", "0.70360863", "0.69051784", "0.6813679", "0.67574406", "0.6720743", "0.67055887", "0.66634166", "0.66509396", "0.66509396", "0.66497475", "0.6614444", "0.656769", "0.6566887", "0.652523", "0.6489371", "0.64792", "0.6469803", "0.64636576", "0.64393514", "0.6321882", "0.6275043", "0.62730247", "0.6260265", "0.6240543", "0.6209885", "0.61780596", "0.61729485", "0.616454", "0.6157075", "0.61501217", "0.6111954", "0.60838616", "0.6040035", "0.6025259", "0.6012407", "0.5999213", "0.5979572", "0.59750104", "0.5967036", "0.5955364", "0.5955364", "0.5955364", "0.5947893", "0.5933223", "0.59014374", "0.59010714", "0.5900167", "0.5899628", "0.5898611", "0.58976215", "0.58948785", "0.58926153", "0.58899117", "0.58886194", "0.5879765", "0.58792996", "0.58736473", "0.58511376", "0.58511376", "0.5848479", "0.58465594", "0.5842973", "0.5839303", "0.5833458", "0.5830305", "0.58247954", "0.5808021", "0.58075076", "0.5807484", "0.5806005", "0.5803778", "0.58007973", "0.5791398", "0.5790655", "0.5789477", "0.5787487", "0.5780606", "0.5769286", "0.5762539", "0.5762539", "0.5754392", "0.5754392", "0.5754392", "0.5754392", "0.5754392", "0.5754392", "0.5754392", "0.5754392", "0.5754392", "0.5754392", "0.5754392", "0.5754392", "0.5754392", "0.5754392", "0.5754392", "0.5754392", "0.5754392" ]
0.0
-1
Create a new instance and initialize from the given byte array.
public StrTab(byte[] data, int length) { final int cnt = length; int addr = 0; while (addr < cnt) { int size = 0; while ((addr + size < cnt) && (data[addr + size] != 0)) { size++; } final String s = new String(data, addr, size); final Integer index = addr; str2addr.put(s, index); addr2str.put(index, s); addr += (size + 1); } maxIndex = cnt; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public UUID(byte[] byteArray) {\n this(byteArray, 0);\n }", "ByteArray(byte []a) {\n\tdata = a;\n }", "public static Account fromByteArray(byte[] b) {\n return new Account(b);\n }", "public TByteArray(uka.transport.UnmarshalStream _stream)\n throws java.io.IOException, ClassNotFoundException\n {\n this(_stream, _SIZE);\n _stream.accept(_SIZE);\n }", "public void fromBytes(ByteBuffer buffer) {\n }", "public ByteArray()\n\t{\n\t\t// initialize the byte array\n\t\tbytes = new byte[0];\n\t}", "public DerParser( byte[] bytes ) throws IOException {\n this( new ByteArrayInputStream( bytes ) );\n }", "public ByteArray(final byte[] bytes)\n\t{\n\t\t// save the byte array\n\t\tthis.bytes = bytes;\n\t}", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:13.509 -0500\", hash_original_method = \"F3F9FDCE1484676B88E382A49EC8877F\", hash_generated_method = \"E98CBD85708A9D853A0E84BBC5FA6CF1\")\n \npublic static ASN1Object fromByteArray(byte[] data)\n throws IOException\n {\n ASN1InputStream aIn = new ASN1InputStream(data);\n\n try\n {\n return (ASN1Object)aIn.readObject();\n }\n catch (ClassCastException e)\n {\n throw new IOException(\"cannot recognise object in stream\"); \n }\n }", "protected O bytesToObject(byte[] data) throws OBException,\r\n InstantiationException, IllegalAccessException, IllegalIdException {\r\n O res = type.newInstance();\r\n try {\r\n res.load(data);\r\n } catch (IOException e) {\r\n throw new OBException(e);\r\n }\r\n return res;\r\n }", "public BinaryRefAddr(String paramString, byte[] paramArrayOfbyte) {\n/* 81 */ this(paramString, paramArrayOfbyte, 0, paramArrayOfbyte.length);\n/* */ }", "private synchronized DataSource fromBytes(byte[] bytes) {\n Kryo kryo = new Kryo();\n Input input = new Input(new ByteArrayInputStream(bytes));\n DataSource curDataSource = (DataSource) kryo.readClassAndObject(input);\n input.close();\n return curDataSource;\n }", "public void fromBytes(byte[] data) {\n\t\tint index = 0;\n//\t\tArrayList<Integer> al= new ArrayList<Integer>();;\n\t\tthis.setProtocol(data[index]);\n\t\tindex++;\n this.setTotalSize(BitConverter.bytesToInt(data, index, ByteOrder.BIG_ENDIAN));\n\t\tindex+=4;\n\t\tthis.hashSize = BitConverter.bytesToInt(data, index, ByteOrder.BIG_ENDIAN);\n\t\tindex+=4;\n\t\tthis.setHash(new java.lang.String(data, index, hashSize));\n\t\tindex+=hashSize;\n\t\tthis.requestorHashSize = BitConverter.bytesToInt(data, index, ByteOrder.BIG_ENDIAN);\n\t\tindex+=4;\n\t\tthis.setRequestorHash(new java.lang.String(data, index, requestorHashSize));\n\t\tindex+=requestorHashSize;\n\t\tthis.setCommand(data[index]);\n\t\tindex++;\n\t\t\n\t}", "public void initFromByteArray(byte[] buffer, int offset, int byteCount,\n\t\t\tAudioFormat format) {\n\t\tinitFromByteArray(buffer, offset, byteCount, format, LAZY_DEFAULT);\n\t}", "public TagData(byte[] epc)\n {\n this(epc, null);\n }", "public UUID(ByteBuffer byteArray) {\n data = new byte[16];\n byteArray.get(data);\n }", "public BytesAgigaDocumentReader(byte[] b, AgigaPrefs prefs) {\n super(b, prefs);\n }", "public Builder setFromBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n from_ = value;\n onChanged();\n return this;\n }", "public void testByteArrayEthernetAddressConstructor()\n {\n // lets test some error cases\n // first, passing null\n try\n {\n /*EthernetAddress ethernet_address =*/\n new EthernetAddress((byte[])null);\n // if we reached here we failed because we didn't get an exception\n fail(\"Expected exception not caught\");\n }\n catch (NullPointerException ex)\n {\n // this is the success case so do nothing\n }\n catch (Exception ex)\n {\n fail(\"Caught unexpected exception: \" + ex);\n }\n \n // now an array that is too small\n try\n {\n /*EthernetAddress ethernet_address =*/\n new EthernetAddress(\n new byte[ETHERNET_ADDRESS_ARRAY_LENGTH - 1]);\n // if we reached here we failed because we didn't get an exception\n fail(\"Expected exception not caught\");\n }\n catch (NumberFormatException ex)\n {\n // this is the success case so do nothing\n }\n catch (Exception ex)\n {\n fail(\"Caught unexpected exception: \" + ex);\n }\n\n // now an array that is too big\n try {\n /*EthernetAddress ethernet_address =*/\n new EthernetAddress(\n new byte[ETHERNET_ADDRESS_ARRAY_LENGTH + 1]);\n // if we reached here we failed because we didn't get an exception\n fail(\"Expected exception not caught\");\n } catch (NumberFormatException ex) {\n // this is the success case so do nothing\n } catch (Exception ex) {\n fail(\"Caught unexpected exception: \" + ex);\n }\n\n // let's test that creating a EthernetAddress from an zero'd array\n // gives us a null EthernetAddress (definition of null EthernetAddress)\n EthernetAddress ethernet_address =\n new EthernetAddress(new byte[ETHERNET_ADDRESS_ARRAY_LENGTH]);\n assertEquals(\n \"EthernetAddress(byte[]) did not create expected EthernetAddress\",\n NULL_ETHERNET_ADDRESS_LONG,\n ethernet_address.toLong());\n \n // let's test creating an array from a good byte array\n ethernet_address =\n new EthernetAddress(VALID_ETHERNET_ADDRESS_BYTE_ARRAY);\n assertEquals(\n \"EthernetAddress(byte[]) did not create expected EthernetAddress\",\n VALID_ETHERNET_ADDRESS_LONG,\n ethernet_address.toLong());\n }", "public Builder setFromBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n\n from_ = value;\n onChanged();\n return this;\n }", "public ByteArray(final byte[] bytes, int length)\n\t{\n\t\t// call the other constructor\n\t\tthis(length);\n\t\t\n\t\t// determine the smaller value\n\t\tint smaller = Math.min(bytes.length, length);\n\t\t\n\t\t// for every byte\n\t\tfor (int i = 0; i < smaller; i++)\n\t\t{\n\t\t\tthis.bytes[i] = bytes[i];\n\t\t}\n\t}", "public BitReader(byte[] input) {\n this.input = input;\n this.size = input.length << 3;\n }", "public static AbstractPacket newFromBytes(byte[] bytes) {\n try {\n if ((bytes == null) || (bytes.length < PacketHeader.getSize())) {\n CommsLog.log(CommsLog.Entry.Category.PROBLEM, \"Unable to generate a packet from the byte array; byte array was not big enough to hold a header\");\n }\n AbstractPacket packet = null;\n ByteBuffer reader = ByteBuffer.wrap(bytes);\n\n byte[] headerBytes = new byte[PacketHeader.getSize()];\n reader.get(headerBytes);\n PacketHeader header = PacketHeader.newFromBytes(headerBytes);\n\n if (header == null) {\n CommsLog.log(CommsLog.Entry.Category.PROBLEM, \"Unable to generate a packet header from the byte array\");\n return null;\n }\n\n packet = AbstractPacket.newFromHeader(header);\n if (packet == null) {\n CommsLog.log(CommsLog.Entry.Category.PROBLEM, \"Unable to generate a packet from the packet header\");\n return null;\n }\n\n int len = reader.remaining();\n if (len > 0) {\n byte[] packetBytes = new byte[len];\n reader.get(packetBytes);\n packet.parse(packetBytes);\n }\n reader.clear();\n return packet;\n } catch (Exception e) {\n return null;\n }\n }", "ByteArray(String s) {\n\tdata = StringConverter.hexToByte(s);\n }", "public static Block fromByteArray(byte[] byteArr, int recordSize) {\n ByteBuffer buf = ByteBuffer.wrap(byteArr);\n Block block = Block.empty(byteArr.length, recordSize);\n\n for (int i = 0; i < block.records.length; ++i) {\n boolean empty = buf.get() == 1;\n\n char[] tconst = new char[10];\n for (int j = 0; j < tconst.length; ++j) {\n tconst[j] = (char) buf.get();\n }\n\n float avgRating = buf.getFloat();\n int numVotes = buf.getInt();\n\n block.updateRecord(i, tconst, avgRating, numVotes, empty);\n }\n\n return block;\n }", "public Data(byte[] bytes) {\r\n try {\r\n this.read_data_header(bytes);\r\n } catch (IOException e) {\r\n System.out.println(e.getMessage());\r\n }\r\n }", "DerParser(byte[] bytes) {\n\t\t\tthis(new ByteArrayInputStream(bytes));\n\t\t}", "public static <T> T readFromByteArray(byte[] byteArray) {\n Input input = kryoThreadLocalContext.get().getInput();\n input.setBuffer(byteArray);\n Kryo kryo = getInstance();\n return (T) kryo.readClassAndObject(input);\n }", "public static Stats fromByteArray(byte[] byteArray) {\n/* 548 */ Preconditions.checkNotNull(byteArray);\n/* 549 */ Preconditions.checkArgument((byteArray.length == 40), \"Expected Stats.BYTES = %s remaining , got %s\", 40, byteArray.length);\n/* */ \n/* */ \n/* */ \n/* */ \n/* 554 */ return readFrom(ByteBuffer.wrap(byteArray).order(ByteOrder.LITTLE_ENDIAN));\n/* */ }", "@Override\n\tpublic Task fromBytes(byte[] byteArray) {\n\t\treturn null;\n\t}", "public Str(byte[] data) {\n unpack(data);\n }", "public ByteArrayBitstreamInput(final byte[] data) throws BitstreamException {\r\n\t\tsuper(new ByteArrayInputStream(data), data.length);\r\n\t}", "public Token(byte[] data) {\n super(data);\n lastSeen = 0;\n }", "public Runnable init(byte[] data, Object ctx) {\n\t\t\t\t\t\t\t\tthis.data = data;\n\t\t\t\t\t\t\t\tthis.ctx = ctx;\n\n\t\t\t\t\t\t\t\treturn this;\n\t\t\t\t\t\t\t}", "public MovieObject(final int aType, final byte[] bytes) {\r\n type = aType;\r\n\r\n if (bytes == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n data = Arrays.copyOf(bytes, bytes.length);\r\n }", "public Version(byte[] msg) throws Exception{\n super(msg);\n\n this.version = ByteBuffer.wrap(Arrays.copyOfRange(data, 0, 4))\n .order(ByteOrder.LITTLE_ENDIAN)\n .getInt();\n this.network_service = ByteBuffer.wrap(Arrays\n .copyOfRange(data, 4, 12)\n )\n .order(ByteOrder.LITTLE_ENDIAN)\n .getLong();\n this.timestamp = ByteBuffer.wrap(\n Arrays\n .copyOfRange(data, 12, 20)\n )\n .order(ByteOrder.LITTLE_ENDIAN)\n .getLong();\n\n this.recipient = new NetAddr(\n Arrays.copyOfRange(data, 20, 46)\n );\n this.sender = new NetAddr(\n Arrays.copyOfRange(data, 46, 72)\n );\n this.nodeId = Arrays.copyOfRange(data, 72, 80);\n\n VarInt len = new VarInt(Arrays.copyOfRange(data, 80, data.length));\n subversion = new String(\n Arrays.copyOfRange(data, 80 + len.getNumBytes(), 80 + len.getNumBytes() + (int)len.getValue())\n );\n\n int endOfSubVersion = 80 + len.getNumBytes() + (int)len.getValue();\n\n lastBlock = ByteBuffer.wrap(\n Arrays.copyOfRange(data, endOfSubVersion, endOfSubVersion + 4)\n ).order(ByteOrder.LITTLE_ENDIAN)\n .getInt();\n\n System.out.println(\"VERSION \" + version + \" - \" + subversion + \" last \" + lastBlock);\n }", "public ByteArray(final int length)\n\t{\n\t\t// initialize the byte array\n\t\tbytes = new byte[length];\n\t\t\n\t\t// fill the array with byte 0\n\t\tArrays.fill(bytes, (byte) 0);\n\t}", "public static Object load(byte[] bytes) {\r\n Object obj = null;\r\n ByteArrayInputStream bais = new ByteArrayInputStream(bytes);\r\n try {\r\n ObjectInputStream ois = new ObjectInputStream(bais);\r\n obj = ois.readObject();\r\n } catch (IOException e) {\r\n e.printStackTrace(); //To change body of catch statement use Options | File Templates.\r\n } catch (ClassNotFoundException e) {\r\n e.printStackTrace(); //To change body of catch statement use Options | File Templates.\r\n }\r\n return obj;\r\n }", "public BEROctetString(byte[] string)\n {\n this(string, DEFAULT_CHUNK_SIZE);\n }", "public static AsonValue CreateFrom(byte data[]) throws java.io.IOException {\n if((data[0]&0x80)!=0) return new AsonParser().parse(new ByteArrayInputStream(data));\n return new JsonParser().parse(new String(data,\"UTF-8\"));\n }", "private ByteTools(){}", "public ByteArrayWritable(byte[] data) {\r\n this.bytes = data;\r\n this.hash = -1;\r\n }", "public ByteArrayConversionException() {\n super();\n }", "public void fromByteArray(byte[] ba)throws IOException{\r\n ByteArrayInputStream bai = new ByteArrayInputStream(ba);\r\n DataInputStream dai = new DataInputStream(bai);\r\n\r\n this.id = dai.readInt();\r\n \r\n this.nome = dai.readUTF();\r\n this.email = dai.readUTF();\r\n this.endereco = dai.readUTF();\r\n }", "public CommAreaRecord(byte[] bytes) {\n\t\tthis.bytes = bytes;\n\t}", "public static UUID fromBytes(byte[] bytes) {\n\t\tUuidValidator.validate(bytes);\n\t\tlong msb = ByteUtil.toNumber(bytes, 0, 8);\n\t\tlong lsb = ByteUtil.toNumber(bytes, 8, 16);\n\t\treturn new UUID(msb, lsb);\n\t}", "public ByteArrayBitstreamInput(final byte[] data, final int bufferLength)\r\n\t\t\tthrows BitstreamException {\r\n\t\tsuper(new ByteArrayInputStream(data), bufferLength);\r\n\t}", "public CpElement(byte [] value) {\n if (value.length==Constants.CPELEMENT_LEN) {\n for (int i=0; i<Constants.CPELEMENT_LEN; i++) {\n this.value[i] = value[i];\n }\n }\n }", "private static Object getObject(byte[] byteArr) throws IOException, ClassNotFoundException {\n\t\tObject object = SerializationUtils.deserialize(byteArr);\n\t\tByteArrayInputStream bis = new ByteArrayInputStream(byteArr);\n\t\tObjectInput in = new ObjectInputStream(bis);\n\t\t//return in.readObject();\n\t\treturn object;\n\t}", "public static <T> T fromBytes(byte[] bytes, int start, OutputType<T> outputType) {\n\t\treturn outputType.fromBytes(bytes, start);\n\t}", "public static Object bytesToObject( byte[] bytes ) throws IOException, ClassNotFoundException\n {\n if( bytes == null ){\n return null;\n }\n ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(bytes);\n ObjectInputStream objectInputStream = new ObjectInputStream(byteArrayInputStream);\n return objectInputStream.readObject();\n }", "public DefinedClass(final String className, final byte[] bytes) {\n this.className = className;\n this.bytes = bytes;\n }", "public static Object toObject(byte[] bytes) throws IOException, ClassNotFoundException\n {\n Object obj = null;\n ByteArrayInputStream bis = null;\n ObjectInputStream ois = null;\n \n try\n {\n bis = new ByteArrayInputStream(bytes);\n ois = new ObjectInputStream(bis);\n obj = ois.readObject();\n }\n finally\n {\n if (bis != null)\n {\n bis.close();\n }\n if (ois != null)\n {\n ois.close();\n }\n }\n return obj;\n }", "public static JobID fromByteArray(byte[] bytes) {\n return new JobID(bytes);\n }", "private BytesUtils() {\n\n }", "public Builder setTagBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n tag_ = value;\n onChanged();\n return this;\n }", "public ByteCodeContainer(String className, byte[] byteCode) {\n this.className = className;\n this.byteCode = byteCode;\n }", "public Asn1Object( int tag, int length, byte[] value ) {\n this.tag = tag;\n this.type = tag & 0x1F;\n this.length = length;\n this.value = value;\n }", "public Int8Msg(byte[] data, int base_offset, int data_length) {\n super(data, base_offset, data_length);\n amTypeSet(AM_TYPE);\n }", "public Builder setDataBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n data_ = value;\n onChanged();\n return this;\n }", "public IPv4Address(byte[] bytes) throws AddressValueException {\n\t\tthis(bytes, null);\n\t}", "public BinaryRefAddr(String paramString, byte[] paramArrayOfbyte, int paramInt1, int paramInt2) {\n/* 97 */ super(paramString);\n/* 98 */ this.buf = new byte[paramInt2];\n/* 99 */ System.arraycopy(paramArrayOfbyte, paramInt1, this.buf, 0, paramInt2);\n/* */ }", "public TPMTransportLog( byte[] source, int offset )\r\n {\r\n this.fromBytes( source, offset );\r\n }", "private Board(byte [] blocks) {\n this.state = Arrays.copyOf(blocks, blocks.length);\n }", "private void setArray(byte[] initialArray)\r\n/* 60: */ {\r\n/* 61: 95 */ this.array = initialArray;\r\n/* 62: 96 */ this.tmpNioBuf = null;\r\n/* 63: */ }", "public Builder setMemberOfBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n\n memberOf_ = value;\n onChanged();\n return this;\n }", "public Builder setField1972Bytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n field1972_ = value;\n onChanged();\n return this;\n }", "private Account createAccount(byte[] address) {\n return new Account(address);\n }", "public ByteArrayWritable(byte data) {\r\n this.bytes = new byte[]{data};\r\n this.hash = -1;\r\n }", "public IndividualAddress(final byte[] address)\n\t{\n\t\tsuper(address);\n\t}", "public Token(I2PAppContext ctx, byte[] data) {\n super(data);\n // lets not get carried away\n if (data.length > MAX_TOK_LEN)\n throw new IllegalArgumentException();\n lastSeen = ctx.clock().now();\n }", "public Builder setField1172Bytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n field1172_ = value;\n onChanged();\n return this;\n }", "public Paquet(byte []datainitiale) {\n\t\t\n\t\t\n\t\tsuper();\n\t\t\n\t\t_instance_id++;\n\t\tSystem.out.print(\"\\nmnb = \"+_instance_id);\n\n\t\tshort header = (short) ((datainitiale[0] & 255)<<8 | (datainitiale[1] & 255 )) ;\n\t\t\t\n\t\tthis.id = (short) (header >> 2);\n\t\tsizeofsize = (byte) (header & 3);\n\t\t\n\t\tswitch(sizeofsize)\n\t\t{\n\t\t\tcase 0 \t: \tsize = 0;break;\n\t\t\tcase 1 \t:\tsize = datainitiale[2] & 255;break;\n\t\t\tcase 2\t:\tsize = ((datainitiale[2] & 255)<<8 | datainitiale[3]& 255);break;\n\t\t\tdefault :\tsize = (((datainitiale[2] & 255 )<< 16 | (datainitiale[3]& 255) << 8) | datainitiale[4] & 255);\t\n\t\t}\n\t\tint t;\n\tif(size<8192)\n\t\t{this.data = new byte[size];\n\t\tt=size;\n\t\tfor(int i = 0; i < t ; i++)\n\t\t\tdata[i] = datainitiale[i+2 + sizeofsize];\n\t\tfor(int i = 0; i < datainitiale.length-(t+2+sizeofsize) ; i++)\n\t\t\tdatainitiale[i]=datainitiale[i+t+2+sizeofsize];\n\t\t}\n\telse \n\t\t{this.data=new byte[datainitiale.length-sizeofsize-2];\n\t\tt=datainitiale.length;\n\t\tfor(int i = 0; i <datainitiale.length-sizeofsize-2; i++)\n\t\t\tdata[i] = datainitiale[i+2 + sizeofsize];\n\t\t\n\t\t}\n\t\n\t\t\n\t\t\n\t}", "public static SemanticVersion fromBytes(byte[] bytes) throws InvalidProtocolBufferException {\n return fromProtobuf(com.hedera.hashgraph.sdk.proto.SemanticVersion.parseFrom(bytes));\n }", "public HNSHK(byte[] message) {\n super(message);\n }", "public ClassFile(byte[] abClazz)\n {\n setBytes(abClazz);\n }", "public void fromBuffer(ByteBufWrapper paramhd)\r\n/* 18: */ {\r\n/* 19:35 */ this.b = ((np)a.fromJson(paramhd.c(32767), np.class));\r\n/* 20: */ }", "private MessageDraft(@NonNull final byte[] data) {\n\t\tpayload = new BinaryData(data);\n\t}", "public abstract Tuple parseFrom(byte[] bytes) throws Exception;", "public Scan(byte[] buffer) throws IOException, ClassNotFoundException\n\t{\n\t\t_type = TYPE;\n\t\tdeserialize(buffer);\n\t}", "public Builder setObjectBytes(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n object_ = value;\n bitField0_ |= 0x00000002;\n onChanged();\n return this;\n }", "public TextObjectBaseRecord(short id, short size, byte [] data, int offset)\n {\n super(id, size, data, offset);\n \n }", "@Override\r\n public Object fromBinaryJava(byte[] bytes, Class<?> clazz) {\r\n return JSON.parseObject(bytes, clazz);\r\n }", "ITaggedData Create(short tag, byte[] data, int offset, int count);", "public static ByteArrayImplementation fromRandom(int numberBytes) {\n RandomGenerator rng = RandomGeneratorSupplier.getRnd();\n return new ByteArrayImplementation(rng.getRandomByteArray(numberBytes));\n }", "public static Object bytesToObject(byte[] bytes) throws IOException,\r\n ClassNotFoundException\r\n {\r\n ByteArrayInputStream bais = new ByteArrayInputStream(bytes);\r\n ObjectInputStream ois = new ObjectInputStream(bais);\r\n try\r\n {\r\n return ois.readObject();\r\n }\r\n finally\r\n {\r\n ois.close();\r\n }\r\n }", "@Test\n public void canCreateWithEmptyArray() {\n // Arrange\n byte[] byteArray = new byte[0];\n\n // Act\n final EventData eventData = new EventData(byteArray);\n\n // Assert\n final byte[] actual = eventData.getBody();\n Assertions.assertNotNull(actual);\n Assertions.assertEquals(0, actual.length);\n }", "public JobID(byte[] bytes) {\n super(bytes);\n }", "public Maze(byte[] arrayByte){\n start=new Position(toDecimal(0,arrayByte),toDecimal(numOfBits,arrayByte));\n goal=new Position(toDecimal(numOfBits*2,arrayByte),toDecimal(numOfBits*3,arrayByte));\n maze=new int[toDecimal(numOfBits*4,arrayByte)][toDecimal(numOfBits*5,arrayByte)];\n int counter=numOfBits*6;\n for(int i=0;i<maze.length;i++){\n for (int j=0;j<maze[0].length;j++){\n maze[i][j]=arrayByte[counter];\n counter++;\n }\n }\n mazeID=toByteArray().toString().hashCode();\n }", "@Test\n public void TestConnectionEventFromBytes() {\n ConnectionEvent connectionEvent = new ConnectionEvent(ConnectionEvent.ConnectionEventType.Close, new byte[0][0]); // Initialize connection event\n\n ConnectionEvent deserializedEvent = new ConnectionEvent(connectionEvent.Bytes()); // Deserialize\n\n ConnectionEvent testDeserializedEvent = new ConnectionEvent(new byte[0]); // Deserialize\n\n assertTrue(\"invalid deserialized connection event must be null\", testDeserializedEvent.Type == null); // Ensure null\n\n assertTrue(\"deserialized connection event must be equivalent to raw connection event\", Arrays.equals(connectionEvent.Bytes(), deserializedEvent.Bytes())); // Ensure equivalent\n }", "public PacketInputStream ()\n {\n _buffer = ByteBuffer.allocate(INITIAL_BUFFER_CAPACITY);\n }", "public Builder setField1934Bytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n field1934_ = value;\n onChanged();\n return this;\n }", "public As21Id27(byte[] as21Id27)\n\t{\n\t\tsuper() ;\n\t\tsetReceiveMessage(as21Id27) ;\n\t}", "public static ResponseApdu fromBytes(byte[] buf) throws ParseException {\n return new ResponseApdu(new ByteArrayInputStreamExtension(buf));\n }", "public JsonParser createParser(byte[] data)\n/* */ throws IOException, JsonParseException\n/* */ {\n/* 840 */ IOContext ctxt = _createContext(data, true);\n/* 841 */ if (this._inputDecorator != null) {\n/* 842 */ InputStream in = this._inputDecorator.decorate(ctxt, data, 0, data.length);\n/* 843 */ if (in != null) {\n/* 844 */ return _createParser(in, ctxt);\n/* */ }\n/* */ }\n/* 847 */ return _createParser(data, 0, data.length, ctxt);\n/* */ }", "protected JsonParser _createParser(byte[] data, int offset, int len, IOContext ctxt)\n/* */ throws IOException\n/* */ {\n/* 1318 */ return new ByteSourceJsonBootstrapper(ctxt, data, offset, len).constructParser(this._parserFeatures, this._objectCodec, this._byteSymbolCanonicalizer, this._rootCharSymbols, this._factoryFeatures);\n/* */ }", "public TPMTransportLog( byte[] source )\r\n {\r\n this.fromBytes( source, 0 );\r\n }", "Asn1Object(int tag, int length, byte[] value) {\n\t\t\tthis.tag = tag;\n\t\t\tthis.type = tag & 0x1F;\n\t\t\tthis.length = length;\n\t\t\tthis.value = value;\n\t\t}", "public ParseBuffer(byte[] newBuffer) {\r\n\t\tthis(newBuffer, 0, newBuffer.length);\r\n\t}", "public Builder setField1957Bytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n field1957_ = value;\n onChanged();\n return this;\n }", "public void initFromByteArray(byte[] buffer, int offset, int byteCount,\n\t\t\tAudioFormat format, boolean lazy) {\n\t\tif (offset + byteCount > buffer.length) {\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"FloatSampleBuffer.initFromByteArray: buffer too small.\");\n\t\t}\n\n\t\tint thisSampleCount = byteCount / format.getFrameSize();\n\t\tinit(format.getChannels(), thisSampleCount, format.getSampleRate(),\n\t\t\t\tlazy);\n\n\t\t// save format for automatic dithering mode\n\t\toriginalFormatType = FloatSampleTools.getFormatType(format);\n\n\t\tFloatSampleTools.byte2float(buffer, offset, channels, 0, sampleCount,\n\t\t\t\tformat);\n\t}" ]
[ "0.665722", "0.65446705", "0.6543535", "0.64565456", "0.6423464", "0.63984865", "0.62695974", "0.61936885", "0.6168735", "0.61332434", "0.6117108", "0.6107842", "0.60721785", "0.60334855", "0.60293674", "0.6002763", "0.5974683", "0.5943034", "0.5939043", "0.59342086", "0.59232885", "0.5910888", "0.5873204", "0.5838699", "0.5810737", "0.58013505", "0.5793771", "0.57904494", "0.5774896", "0.5774761", "0.57362705", "0.5701449", "0.5677564", "0.5651938", "0.55868584", "0.5575112", "0.5563581", "0.55425733", "0.55218154", "0.5520542", "0.5518498", "0.551526", "0.55087405", "0.55031735", "0.5499298", "0.5493682", "0.5492233", "0.54909724", "0.54779935", "0.5468873", "0.5467002", "0.5453593", "0.54460347", "0.5424748", "0.5423138", "0.5422573", "0.54225713", "0.54097956", "0.53968525", "0.5365961", "0.53563786", "0.5355477", "0.5354953", "0.5336503", "0.53272325", "0.53263277", "0.53221786", "0.5315415", "0.5308975", "0.5299434", "0.529731", "0.52891654", "0.5286413", "0.52838457", "0.5273827", "0.52721477", "0.5270788", "0.5250706", "0.5245443", "0.5244786", "0.52443415", "0.5237527", "0.5236464", "0.5235705", "0.5235037", "0.52307826", "0.52296543", "0.5227395", "0.52268374", "0.5216902", "0.5216132", "0.5202129", "0.51997507", "0.51966", "0.5186203", "0.518247", "0.51805294", "0.51789343", "0.5178065", "0.51777554", "0.51739323" ]
0.0
-1
Add a string and return its index.
public int addString(String v) { int addr = findString(v); if (addr < 0) { addr = maxIndex; maxIndex += (v.length() + 1); final Integer index = addr; str2addr.put(v, index); addr2str.put(index, v); } return addr; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Integer add(String v)\n {\n Integer pos = h(v);\n if (search(v) != -1)\n {\n return -1;\n }\n while (pos < cap && table.get(pos) != null && !table.get(pos).equals(v))\n {\n pos++;\n }\n if (pos == cap)\n {\n while (table.get(pos) != null)\n {\n pos++;\n }\n }\n table.set(pos, v);\n return pos;\n }", "public void add(int index, String value){\n\tadd(value);\n }", "public void add(int index, String value){\n add(value);\n }", "public static int addString(String s){\n\t\tint a = 0;\n\t\tfor (int i=0; i<s.length(); i++)\n\t\t\ta += (int)s.charAt(i);\n\t\treturn a;\n\t}", "public void add(String str);", "public void add(String str);", "public Integer indexOf(String s){\n\t\tInteger i;\n\t\tif((i=indices.get(s))!=null)\n\t\t\treturn i;\n\t\telse\n\t\t\treturn Integer.valueOf(-1);\n\t}", "private void add(String thestring) {\n\t\t\n\t}", "public void add(final String string) throws IOException {\n\n\t\t// first store position of string in pointers file...\n\n\t\t// the first four bytes store the maximum position in this file!\n\t\tfinal long posInFile = 4 + this.max*8;\n\n\t\tStringArray.storeLongInPage(this.pointersFilename, posInFile, this.lastString);\n\n\t\t// update max also in pointers file...\n\n\t\tthis.max++;\n\n\t\tStringArray.storeIntInPage(this.pointersFilename, 0, this.max);\n\n\t\t// now store the string...\n\t\tthis.lastString = StringArray.storeStringInPage(this.stringsFilename, this.lastString, string);\n\n\t\t// and update the position into which the last string is stored!\n\n\t\tStringArray.storeLongInPage(this.stringsFilename, 0, this.lastString);\n\t}", "void insert(int pos, String s);", "int indexOf(ASCIIString str, int fromIndex);", "public void addPos(String word, IPosition pos);", "public int indexOf(String str) {\n/* 514 */ return this.m_str.indexOf(str);\n/* */ }", "public int indexOf(XMLString str) {\n/* 536 */ return this.m_str.indexOf(str.toString());\n/* */ }", "public boolean add(String value){\n int index=findIndexBinary(value);\n super.add(index,value);\n return true;\n }", "public static int getIndex(String s) {\n\t\tint index=-1; \n\t\tfor(int i = 0 ; i < dataList.size() ; i ++ ) {\n\t\t\tif(dataList.get(i).name.equals(s)) {\n\t\t\t\t\n\t\t\t\tindex =i;\n\t\t\t}\n\t\t}\n\t\treturn index;\n\t}", "public static int nextIndexOf(String string, String characters, int index) {\n int retInd = string.length();\n int auxIndex = -1;\n \n for (int i = 0; i < characters.length(); i++) {\n auxIndex = string.substring(index + 1).indexOf(characters.charAt(i));\n if ((auxIndex > -1) && (auxIndex + index + 1 < retInd)) {\n retInd = auxIndex + index + 1;\n }\n }\n return retInd;\n }", "StringCursor addString(String string) throws RemoteException;", "static int strStr(String s, String x){\n return s.indexOf(x);\n }", "public boolean add(String s){\n if(count == contents.length) {\n return false;\n }\n contents[count] = s;\n count++;\n return true;\n }", "public native String insertItemBefore(String newItem, Number index);", "void add(String value);", "private static String insert(String input, int index, String toInsert) {\n return input.substring(0, index) + toInsert + input.substring(index);\n }", "public int mo131897a(String str) {\n return super.indexOf(str);\n }", "public int indexOf(String str)\n\t{\n\t\tint indexOf = recursiveIndexOf(firstC, length, 0, -1, str);\n\t\treturn indexOf;\n\t}", "private void addString(String value) {\n\n if (LOGGER.isDebugEnabled()) {\n LOGGER.debug(\"Adding String '\" + value + \"'\");\n }\n\n int index = stringTable.getIndex(value);\n addInt(index);\n }", "public boolean add(String value){\n\t//add to the correct spot.\n\t//you may still use super.add(index,value)\n\tif (size() == getData().length) {\n\t resize();\n\t}\n\t//index = findIndex(value);\n\tint index = findIndexBinary(value);\n\tsuper.add(index,value);\n\treturn true;\n }", "public void add(String value);", "public String indexOf(String s1,String ch) {\n\t\tint i = s1.indexOf(ch);\n\t\treturn Integer.toString(i);\n\t}", "public int getCharaterPositionWithName(String s){\n int i;\n for(i = 0; i<alCharacter.size(); i++){\n String nameNextChar = alCharacter.get(i).getName();\n if(s.equals(nameNextChar)){\n break;\n }\n }\n return i;\n }", "static int size_of_add(String passed){\n\t\treturn 1;\n\t}", "public int add(String key, E value) {\r\n int index = items.size();\r\n keys.put(key, index);\r\n items.add(value);\r\n return index;\r\n }", "private int findIndex(String str){\n for(int i=size()-1;i>=0;i--){\n if(str.compareTo(get(i))>0){\n return i+1;\n }\n }\n return 0;\n }", "public static int indexOf(String s, String sub) {\r\tfor (int i = 0; i < s.length() - sub.length() + 1; i++)\r\t\tif (isEqual(substring(s, i, sub.length()), sub))\r\t\t\treturn i;\r\r\treturn -1;\r\t\r\t\r\t\r }", "boolean add(String val);", "public int indexOf(int ch) {\n/* 411 */ return this.m_str.indexOf(ch);\n/* */ }", "String getFirstIndex();", "public void insertString(String text) {\n HashSet<Node> visited = new HashSet<Node>();\n for (int i = 0; i <= text.length(); i++) {\n addSuffix(text.substring(i) + WORD_TERMINATION, i, visited);\n }\n // fullText = text;\n for (Node n: visited) {\n n.setCount(n.getCount() + 1.0);\n }\n this.string_cnt += 1;\n }", "@Override\n\tpublic String strindexOf(String str, String strsr) {\n\t\treturn null;\n\t}", "void mo9058ad(String str, int i);", "private static int codePointToStringIndex(String string, int index, int cpLength) {\n if ( index < 0 )\n return 0;\n\n return (index > cpLength)\n ? string.length()\n : string.offsetByCodePoints(0, index);\n }", "public int indexOf(String str, int fromIndex) {\n/* 567 */ return this.m_str.indexOf(str, fromIndex);\n/* */ }", "public void IncCount(String s) \n\t{\n if(numEntries+1 >= tableSize)\n rehashTable();\n \n HashEntry entry = contains(s);\n \n if(entry == null)\n {\n insert(s);\n numEntries++;\n }\n else\n entry.value++;\n\t}", "public static int indexOf(List<String> strings, String string) {\n\tif (strings == null) {\n\t return -1;\n\t}\n\treturn strings.indexOf(string);\n }", "Index getIndex(String symbol);", "public static void addToLinearArray(int i, String s) {\n\t\tLinearArray[i] = s;\n\t}", "public int indexOf(int ch, int fromIndex) {\n/* 444 */ return this.m_str.indexOf(ch, fromIndex);\n/* */ }", "public static int codeBeforeIndex(String str, int index) {\r\n return str.codePointBefore(index);\r\n }", "int getStartCharIndex();", "private int locate(String str, String substr, int pos) {\n if (substr.length() == 0) {\n if (pos <= (str.length() + 1)) {\n return pos;\n }\n else {\n return 0;\n }\n }\n int idx = StringUtils.indexOf(str, substr, pos - 1);\n if (idx == -1) {\n return 0;\n }\n return idx + 1;\n }", "private int indexOf(final String string, final String sub, final boolean start,\n final boolean ends, final InputInfo info) throws QueryException {\n\n final RuleBasedCollator rbc = rbc(info);\n final CollationElementIterator i = rbc.getCollationElementIterator(string);\n final CollationElementIterator is = rbc.getCollationElementIterator(sub);\n do {\n final int cs = next(is);\n if(cs == -1) return 0;\n int c;\n do {\n c = next(i);\n if(c == -1) return -1;\n } while(c != cs);\n\n final int s = i.getOffset();\n if(startsWith(i, is) && (!ends || next(i) == -1))\n return start ? s - 1 : i.getOffset();\n i.setOffset(s);\n is.reset();\n } while(true);\n }", "public static void main(String[] args) {\n String Data=\"The generations of our family changing\";\nSystem.out.println(Data.indexOf(\"The\")); //Index ==== displays \"the\" position in the string\nSystem.out.println(Data.indexOf(\"family\"));\nSystem.out.println(Data.indexOf(\"Family\")); //case sensitive ====== for index thats the reason -1 is printing.\n\t}", "String get(int index);", "@Override\n\tpublic void insertString(int offs, String str, AttributeSet a) throws BadLocationException {\n\t\tsuper.insertString(offs, str.replaceAll(\"[^0-9]\", \"\"), a);\n\t}", "public static void main(String[] args) {\n\n String haystack = \"abc\";\n String needle = \"c\";\n\n\n int idx = strStr(haystack, needle);\n System.out.println(idx);\n }", "public void setString(int index,String value);", "public char givenIndex(String str, int index)\r\n {\r\n char a= str.charAt(index);\r\n return a;\r\n }", "private int getIndex(Spinner spinner, String myString) {\n for (int i = 0; i < spinner.getCount(); i++) {\n if (spinner.getItemAtPosition(i).toString().equalsIgnoreCase(myString)) {\n return i;\n }\n }\n return -1;\n }", "public int nextIndexOf(String identifier){\n Token token;\n int tempCurrentToken = currentToken, result;\n \n nextTokenOf(identifier);\n result = currentToken;\n currentToken = tempCurrentToken;\n return result;\n }", "public void indexString() {\n\t\t\tString name = \"martin\";\n\t\t\tint index = name.indexOf(\"in\");\n\t\t\tSystem.out.println(\"Index of \" + index);\n\t\t}", "int getOrAdd(String symbol);", "private static int charAt(String data) {\n\t\treturn 0;\n\t}", "@Override // java.util.List\n public /* synthetic */ void add(int i, String str) {\n throw new UnsupportedOperationException(\"Operation is not supported for read-only collection\");\n }", "private static int findTheLastIndexInString(String s, char x){\n\n\t\tfor(int i=s.length()-1 ; i>=0; i--){\n\t\t\t\n\t\t\tif(s.charAt(i) == x)\n\t\t\t\treturn i;\n\t\t}\n\t\treturn -1;\n\t}", "private int getIndex(Spinner spinner, String myString){\n for (int i=0;i<spinner.getCount();i++){\n if (spinner.getItemAtPosition(i).toString().equalsIgnoreCase(myString)){\n return i;\n }\n }\n\n return 0;\n }", "public static String[] insertAt(String[] strings, String string, \n int index) {\n String[] newStrings = new String[strings.length+1];\n\n if (index > 0)\n System.arraycopy(strings, 0, newStrings, 0, index);\n\n int tail = strings.length - index;\n if (tail > 0) \n System.arraycopy(strings, index, newStrings, index+1, tail);\n\n newStrings[index] = string;\n\n return newStrings;\n }", "public int lastIndexOf(String str) {\n/* 590 */ return this.m_str.lastIndexOf(str);\n/* */ }", "public static int indexOf(String firstStr, String secondStr) {\n return indexOf(firstStr, secondStr, 0);\n }", "@SuppressWarnings (\"unchecked\") public void add(int i,String item){\n if(item==null)\n return;\n items.add(i,item.trim());\n }", "public void insertString(int offs, String str, AttributeSet a)\n throws BadLocationException\n {\n String currentText = getText( 0, getLength() ) + \"0\";\n\n String beforeOffset = currentText.substring(0, offs);\n String afterOffset = currentText.substring(offs, currentText.length());\n String proposedResult = beforeOffset + str + afterOffset;\n try {\n format.parseObject( proposedResult );\n super.insertString( offs, str, a );\n } catch (ParseException e) {\n Toolkit.getDefaultToolkit().beep();\n }\n }", "@Test\r\n\tpublic void testIndexOf() {\r\n\t\ttestArray = new ArrayBasedList<String>();\r\n\t\ttestArray.add(\"math\");\r\n\t\ttestArray.add(\"reading\");\r\n\t\ttestArray.add(\"science\");\r\n\t\ttestArray.add(\"social studies\");\r\n\t\tassertEquals(0, testArray.indexOf(\"math\"));\r\n\t\tassertEquals(1, testArray.indexOf(\"reading\"));\r\n\t\tassertEquals(2, testArray.indexOf(\"science\"));\r\n\t\tassertEquals(3, testArray.indexOf(\"social studies\"));\r\n\t\tassertEquals(-1, testArray.indexOf(\"invalid\"));\r\n\t}", "public int addSymbol(ISymbol newSymbol)\r\n {\r\n if (symbols.add(newSymbol)) {\r\n\t\t\treturn symbols.size()-1;\r\n\t\t}\r\n return -1;\r\n\r\n }", "public boolean add(String string){\r\n if(string == null) {\r\n return false;\r\n }\r\n int hash = string.hashCode(),index = 0;\r\n int i = 0;\r\n boolean found = false;\r\n while(!found){\r\n index = (hash + (i*i+i)/2) & (this.capacity()-1);\r\n if(this.hashTable[index] == null || this.hashTable[index] == this.deleted){\r\n found = true;\r\n }\r\n else if(this.hashTable[index].equals(string)){\r\n return false;\r\n }\r\n i ++;\r\n }\r\n this.hashTable[index] = string;\r\n this.size +=1;\r\n this.checkForReHash(1);\r\n return true;\r\n\r\n }", "private int getIndex(Spinner spinner, String myString)\n {\n int index = 0;\n\n for (int i=0;i<spinner.getCount();i++){\n if (spinner.getItemAtPosition(i).toString().equalsIgnoreCase(myString)){\n index = i;\n break;\n }\n }\n return index;\n }", "private String[][] addWord(String[][] level, String string) throws Exception {\r\n\t\tint[] pos = addRandomLetter(level, string);\r\n\t\tfor(int i = 1; i<string.length(); i++){ \r\n\t\t\tString c = Character.toString(string.charAt(i));\r\n\t\t\tpos = addLetterAroundPosition(pos, level, c);\r\n\t\t}\r\n\t\t\r\n\t\treturn level;\r\n\t}", "public int insert(int i, int k, String s) //O(log(n))\n {\n\t int output = this.lst.rankinsertion(i, k, s); //see details in class AVLTree\n\t if(output == 0)\n\t\t this.length++; //we added one element\n\t return output;\n }", "public void add(String str) {\r\n list.add(str);\r\n }", "private int addName(String[] args, int i) throws JaccsCommandException {\r\n\t\tString tempStrCard = \"\";\r\n\t\tint j;\r\n\t\tfor (j = 1; j < args.length; j++) \r\n\t\t{\r\n\t\t\tif(i+j>=args.length) throw (new JaccsCommandException(\"Use a space before \\\"$$end\\\"\"));\r\n\t\t\tif (args[i + j].equalsIgnoreCase(prefix + \"end\")) \r\n\t\t\t{\r\n\t\t\t\ti += j;\r\n\t\t\t\tthis.names.add(tempStrCard.substring(0, tempStrCard.length() - 1));\r\n\t\t\t\treturn j;\r\n\t\t\t} else {\r\n\t\t\t\ttempStrCard += args[i + j] + \" \";\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tthrow (new JaccsCommandException(\"No end command was given\"));\r\n\t}", "private int getIndex(Spinner spinner, String myString){\n for (int i=0;i<spinner.getCount();i++){\n Log.e(\"mytag\",\"spinner.getItemAtPosition(i).toString(): \" +spinner.getItemAtPosition(i).toString() + \" \" + myString);\n if (spinner.getItemAtPosition(i).toString().equalsIgnoreCase(myString)){\n return i;\n }\n }\n\n return 0;\n }", "public void add(int index, Type t);", "public int add(String fragments) {\n\t\tif (fragments == null) {\n\t\t\treturn 0;\n\t\t}\n\n\t\tfinal String[] splitFragments = fragments.replaceFirst(\"^\\\\/\", \"\").split(\"\\\\/\", -1);\n\n\t\tfinal int n = splitFragments.length;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tpathFragments.add(splitFragments[i]);\n\t\t}\n\n\t\treturn n;\n\t}", "private static int strStr(String a, String b)\n\t{\n\t\tint aL=a.length();\n\t\tint bL=b.length();\n\t\tif(a.equals(b)){\n\t\t\treturn 0;\n\t\t}\n\t\tfor(int i=0;i<aL;i++){\n\t\t\tint j=i+bL;\n\t\t\tif(j<=aL){\n\t\t\t\tString subStr=a.substring(i, j);\n\t\t\t\tif(subStr.equals(b)){\n\t\t\t\t\treturn i;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}", "public int find(String string) {\n\t\tif (string==null) {\n\t\t\treturn -1;\n\t\t}\n\t\tfor (int i=0;i!=m_stringOffsets.length;++i) {\n\t\t\tint offset=m_stringOffsets[i];\n\t\t\tint length=getShort(m_strings,offset);\n\t\t\tif (length!=string.length()) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tint j=0;\n\t\t\tfor (;j!=length;++j) {\n\t\t\t\toffset+=2;\n\t\t\t\tif (string.charAt(j)!=getShort(m_strings,offset)) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (j==length) {\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}", "public int strStr1(String haystack, String needle) {\n return haystack.indexOf(needle);\n }", "public int nameIndex();", "public int getIndex(String s){\r\n int b = 1;\r\n int l = hashFunction(s);\r\n if(table[l].getKey().equals(s)){\r\n return l;\r\n }\r\n else{\r\n while(table[l + b*b] != null){\r\n if(table[l].getKey().equals(s)){\r\n break;\r\n }\r\n else{\r\n b++;\r\n } \r\n }\r\n if(table[l].getKey().equals(s)){\r\n return l;\r\n }\r\n else{\r\n return 0;\r\n }\r\n }\r\n }", "public void add(String word) {\n if (hashTable.contains(word)) {\n hashTable.put(word, hashTable.get(word) + 1);\n }\n else {\n hashTable.put(word,1);\n }\n }", "public int add(int index, Path item) {\n // Gracefully handle items beyond end\n final int size = mItems.size();\n index = constrain(index, 0, size);\n\n mItems.add(index, item);\n return index;\n }", "public static String updateByIndex(String str, int index, int value) {\r\n\t\tStringBuilder result = new StringBuilder();\r\n\t\tString[] list = str.split(\"-\");\r\n\t\tfor (int i = 0; i < list.length; i++) {\r\n\t\t\tif (index == i)\r\n\t\t\t\tresult.append(value + \"-\");\r\n\t\t\telse\r\n\t\t\t\tresult.append(list[i] + \"-\");\r\n\t\t}\r\n\t\tresult.deleteCharAt(result.length() - 1);\r\n\t\treturn result.toString();\r\n\t}", "private String getItemAt(String s, int index) {\n\t\tString temp = new String();\n\t\tStringTokenizer st = new StringTokenizer(s);\n\t\t\n\t\tif(index > st.countTokens()) {\n\t\t\tSystem.exit(-1);\n\t\t}\n\t\t\n\t\tfor(int j = 1; j<=index; j++) {\n\t\t\ttemp = st.nextToken();\n\t\t}\n\t\t\n\t\treturn temp;\n\t}", "public int addLiteral (final A_BasicObject literal)\n\t{\n\t\t@Nullable Integer index = reverseLiterals.get(literal);\n\t\tif (index == null)\n\t\t{\n\t\t\tliterals.add((AvailObject) literal);\n\t\t\tindex = literals.size();\n\t\t\treverseLiterals.put(literal, index);\n\t\t}\n\t\treturn index;\n\t}", "public static void main(String[] args) {\n\t\tString s = \"String -Hello, my name is algoritmia - \";\n\t\t\n\t\tint pos1 = s.indexOf(\"Hello\");\n\t\tint pos2 = s.lastIndexOf(\"my\");\n\t\tSystem.out.println(pos1);\n\t\tSystem.out.println(pos2);\n\t}", "void add(int index, T element);", "void add(int index, T element);", "public int add(String s1, String s2) {\n int int1 = Integer.parseInt(s1);\r\n int int2 = Integer.parseInt(s2);\r\n return int1 + int2;\r\n }", "public int indexOf(String v) {\n int index = -1;\n for (int i = 0; i < this.vertexes.length; i++) {\n if (v.equals(this.vertexes[i])) {\n index = i;\n break;\n }\n }\n\n return index;\n }", "public int lastIndexOf(String str)\n\t{\n\t\tint indexOf = recursiveLastIndexOf(firstC, length, 0, -1, str);\n\t\treturn indexOf;\n\t}", "public boolean add(String s) {\n\t\tif (s != \"\") return start.get().add(s, 0);\n\t\tAtomicBoolean result = emptyAbsent;\n\t\temptyAbsent.set(false);\n\t\treturn result.get();\n\t}", "public int addValue(char i) {\n return foldIn(i);\n }", "private int findCharacter(char ch, String inputString, int currentIdx) {\n if (inputString.isEmpty()) {\n return -1;\n }\n return inputString.charAt(0) == ch ? currentIdx : findCharacter(ch, inputString.substring(1), ++currentIdx);\n }" ]
[ "0.6707172", "0.6540168", "0.6489317", "0.6450438", "0.6293798", "0.6293798", "0.625183", "0.61680025", "0.60561484", "0.6017921", "0.5989439", "0.59602404", "0.5930037", "0.5858705", "0.58185905", "0.5792712", "0.5779089", "0.5748235", "0.5734886", "0.5722158", "0.57194436", "0.5711032", "0.569221", "0.56855905", "0.5640298", "0.56272304", "0.56053704", "0.5584506", "0.55249107", "0.55022234", "0.54969656", "0.5486061", "0.5446587", "0.5426094", "0.5410977", "0.5393409", "0.53888804", "0.53867465", "0.53836495", "0.53815246", "0.53720874", "0.53350663", "0.5334133", "0.5330377", "0.5309084", "0.53013486", "0.5299362", "0.52796996", "0.52634406", "0.52578115", "0.52478725", "0.5237714", "0.52337414", "0.52267736", "0.52253896", "0.5224172", "0.5212374", "0.5208902", "0.51999694", "0.51944405", "0.5192522", "0.5163251", "0.5162097", "0.5147082", "0.5140535", "0.51388526", "0.5136109", "0.5125773", "0.5117847", "0.5106337", "0.51047975", "0.51006526", "0.50704205", "0.5067663", "0.5062316", "0.5062099", "0.50611895", "0.5060554", "0.5053389", "0.5049369", "0.5044585", "0.50377744", "0.50244325", "0.50212985", "0.5014658", "0.5014102", "0.5013165", "0.50064874", "0.5005933", "0.5005524", "0.4997569", "0.49906182", "0.498958", "0.498958", "0.49875337", "0.49872884", "0.4968785", "0.49685076", "0.49660906", "0.49646717" ]
0.6907516
0
Gets the String at a given index.
public String getString(int index) { return addr2str.get(new Integer(index)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getString(int index);", "String get(int index);", "public CharSequence get(int index) {\n return getString(index);\n }", "public String getString(int index) throws IOException {\n\t\t\tInputStream in = newInputStream(index);\n\t\t\treturn in != null ? inputStreamToString(in) : null;\n\t\t}", "public String get(int index) {\n\t\t\n\t\tString result = null;\n\t\t\n\t\tif(Math.abs(index) >= 0 && Math.abs(index) < lenght)\n\t\t{\n\t\t\tif(index < 0)\n\t\t\t\tresult = this.elements.get(this.length() + index);\n\t\t\telse\n\t\t\t\tresult = this.elements.get(index);\n\t\t}\n\t\treturn result;\n\t}", "private String getCharacter(final int index) {\n String s = null;\n try {\n s = document.getText(index, 1);\n } catch (final BadLocationException e) {\n }\n return s;\n }", "private String getItemAt(String s, int index) {\n\t\tString temp = new String();\n\t\tStringTokenizer st = new StringTokenizer(s);\n\t\t\n\t\tif(index > st.countTokens()) {\n\t\t\tSystem.exit(-1);\n\t\t}\n\t\t\n\t\tfor(int j = 1; j<=index; j++) {\n\t\t\ttemp = st.nextToken();\n\t\t}\n\t\t\n\t\treturn temp;\n\t}", "public String get(int index){\n return words.get(index);\n }", "public String get(int index){\n\t\treturn list.get(index);\n\t}", "public String getAsString(int index) {\n return ((String[])data)[index];\n }", "public String get(int index) {\n\n return solutionVector[index];\n }", "java.lang.String getContents(int index);", "public String getElementAt(int index)\n\t{\n\t\t// returns the string at the specified index (0.. n-1): O(n).\n\t\tint count = 0;\n\t\tnode p = head;\n\t\twhile(p.next != null&&count<index)\n\t\t{\n\t\t\tcount++;\n\t\t\tp=p.next;\n\t\t}\n\t\treturn p.getData();\n\t}", "public static String getString(final Envelop envelop, final int index) {\n return In.request(envelop, index, String.class);\n }", "public char charAt(int index) {\n/* 121 */ return this.m_str.charAt(index);\n/* */ }", "public String getString(final int index) {\n Object returnable = this.get(index);\n if (returnable instanceof Boolean) {\n returnable = returnable.toString();\n } else if (returnable instanceof Number) {\n returnable = returnable.toString();\n }\n return (String) returnable;\n }", "public char charAt(int anIndex)\n {\n return _xstr.charAt(_start + anIndex);\n }", "public String get(int idx) {\n return (String) columns.get(idx);\n }", "@Override\r\n\tpublic char charAt(int index) {\n\t\treturn chars[index];\r\n\t}", "public String s(int index) {\n if (get(index) == null) return \"null\";\n return this.adapter.get(index).toString();\n }", "public String getFullString(int n) {\n\t\treturn strings.get(n);\n\t\n\t}", "public char givenIndex(String str, int index)\r\n {\r\n char a= str.charAt(index);\r\n return a;\r\n }", "public char charAt(int index);", "public native String getItem(Number index);", "private String getWord(final int index) {\n int start = 0;\n int length = 0;\n String result = null;\n try {\n start = TextUtils.getWordStart(textKit, index);\n length = TextUtils.getWordEnd(textKit, index) - start;\n result = document.getText(start, length);\n } catch (final BadLocationException e) {\n }\n\n return result;\n }", "@Override\n\tpublic String getElementAt(int index) {\n\t\tif (index < contents.length)\n\t\t\treturn contents[index++];\n\t\telse\n\t\t\treturn null;\n\t}", "private String getLine(final int index) {\n Element elem = TextUtils.getParagraphElement(document, index);\n if (elem == null) {\n return null;\n }\n int start = elem.getStartOffset();\n int length = elem.getEndOffset() - start;\n String result = null;\n try {\n result = document.getText(start, length);\n } catch (final BadLocationException e) {\n }\n return result;\n }", "java.lang.String getStrValues(int index);", "@Override\n public final char charAt(final int index) {\n return text.charAt(index);\n }", "public String getWord(int index){\n\t\treturn (String)list.get(index);\n\t}", "public static String substring(String s, int index, int length) {\r\tString result = \"\";\r\r\tfor (int i = 0; i < length; i++)\r\t result += s.charAt(index + i);\r\r\treturn result;\r\r }", "@Override\n\tpublic String getElementAt(int index) {\n\t\treturn datas.get(index);\n\t}", "public final synchronized String getString(int parameterIndex) \n throws SQLException\n {\n return getCallableStatement().getString(parameterIndex);\n }", "public char charAt(String str, int index) {\n char charAt = ' ';\n\n try {\n charAt = str.charAt(index);\n } catch (IndexOutOfBoundsException e) {\n System.err.print(\"Index out of bounds exception: \" + e.getMessage());\n }\n\n return charAt;\n }", "private String getString(int cursorIndex, int position) {\n if (position < mExtraOffset || position > mCount) {\n return \"\";\n }\n mCursor.moveToPosition(position- mExtraOffset);\n return mCursor.getString(cursorIndex);\n }", "public char charAt(int index)\r\n/* 31: */ {\r\n/* 32: 44 */ if (index > this.pos) {\r\n/* 33: 45 */ throw new IndexOutOfBoundsException();\r\n/* 34: */ }\r\n/* 35: 47 */ return this.chars[index];\r\n/* 36: */ }", "String optString(int index) {\n return this.optString(index, \"\");\n }", "private String next(Stack<String> stack, AtomicInteger index) {\n\t\tint next = index.incrementAndGet();\n\t\tif (next < stack.size())\n\t\t\treturn stack.get(next);\n\t\telse\n\t\t\treturn null;\n\t}", "public String itemAt(int index) {\n int counter = 1;\n LinkedList i = this;\n\n while (i.next != null && counter < index) {\n i = i.next;\n counter++;\n }\n return i.name;\n }", "public String get(int position)\n\t{\n\t\treturn data[position];\n\t}", "public String get(int i) {\n Object obj = this.f51596a.get(i);\n C32569u.m150513a(obj, \"get(...)\");\n return (String) obj;\n }", "String getString(int index) throws PropertyException {\n Object object = this.get(index);\n if (object instanceof String) {\n return (String) object;\n }\n throw new PropertyException(\"JSONArray[\" + index + \"] not a string.\");\n }", "public char getLetter(int index) {\n\t\treturn _objMyStringBuilder.getCharAt(index);\n\t}", "public String getQuestion(int index){\n return questionList.get(index);\n }", "public char charAt(int index) throws stackException\n {\n char ans;\n if(index >= 0 && index < numNodes)\n {\n Node n = this.get(index);\n ans = n.item;\n return ans;\n }\n else\n {\n throw new stackException(\"Index Is Out Of Bounds\");\n }\n }", "public java.lang.String getStrValues(int index) {\n return strValues_.get(index);\n }", "public String getTag(int tagIndex) {\n int s = getTagStart(tagIndex);\n if (s >= 0 && s < tags.length()) {\n int e = getTagEnd(tagIndex);\n return substring(s, e);\n } else {\n return \"\";\n }\n }", "public String getMessage(int index) {\n return text.get(index);\n }", "public String twoChar(String str, int index) {\r\n return index > 0 && index < str.length() - 1 ? str.substring(index, index + 2) : str.substring(\r\n 0, 2);\r\n }", "public String getRecord(int index) {\r\n\t\tString record = \"\";\r\n\t\tif (index<fileRecords.size() && index>-1) {\r\n\t\t\trecord = fileRecords.get(index);\r\n\t\t}\r\n\t\telse {\r\n\t\t\t/*\r\n\t\t\t * TODO\r\n\t\t\t * Error: index out of bounds\r\n\t\t\t */\r\n\t\t}\r\n\t\treturn record;\r\n\t}", "java.lang.String getWpa(int index);", "public java.lang.String getStrValues(int index) {\n return strValues_.get(index);\n }", "public char charAt(int index)\n\t{\n\t\tif (index < 0 || index > (length - 1))\n\t\t\tthrow new IndexOutOfBoundsException();\n\t\tCNode character = getCNodeAt(index, firstC);\n\t\treturn character.data;\n\t}", "java.lang.String getCommand(int index);", "public String wordAt(int index) {\n if (index < 0 || index >= myWords.length) {\n throw new IndexOutOfBoundsException(\"bad index in wordAt \"+index);\n }\n return myWords[index];\n }", "public String getWord (int wordIndex) {\n if (wordIndex < 0 ) {\n return \"\";\n } else {\n int s = getWordStart (wordIndex);\n int e = indexOfNextSeparator (tags, s, true, true, slashToSeparate);\n if (e > s) {\n return tags.substring (s, e);\n } else {\n return \"\";\n }\n }\n }", "String getFirstIndex();", "String get(int offset, int length) throws BadLocationException;", "public XMLString substring(int beginIndex) {\n/* 637 */ return new XMLStringDefault(this.m_str.substring(beginIndex));\n/* */ }", "public String getWord(int index) {\n\t\t\n\t\tswitch (index) {\n\t\t\tcase 0:\n\t\t\t\treturn \"BUOY\";\n\t\t\tcase 1:\n\t\t\t\treturn \"COMPUTER\";\n\t\t\tcase 2:\n\t\t\t\treturn \"CONNOISSEUR\";\n\t\t\tcase 3:\n\t\t\t\treturn \"DEHYDRATE\";\n\t\t\tcase 4:\n\t\t\t\treturn \"FUZZY\";\n\t\t\tcase 5:\n\t\t\t\treturn \"HUBBUB\";\n\t\t\tcase 6:\n\t\t\t\treturn \"KEYHOLE\";\n\t\t\tcase 7:\n\t\t\t\treturn \"QUAGMIRE\";\n\t\t\tcase 8:\n\t\t\t\treturn \"SLITHER\";\n\t\t\tcase 9:\n\t\t\t\treturn \"ZIRCON\";\n\t\t\tdefault:\n\t\t\t\treturn new String(\"Illegal index\");\n\t\t}\n\t}", "private static int codePointToStringIndex(String string, int index, int cpLength) {\n if ( index < 0 )\n return 0;\n\n return (index > cpLength)\n ? string.length()\n : string.offsetByCodePoints(0, index);\n }", "public int get(int index);", "@Override\n\tpublic char charAt(int index) {\n\t\tif (index >= this.size()) throw new IndexOutOfBoundsException(\"out of bounds gah\");\n\t\tif (index<0) throw new IndexOutOfBoundsException(\"invalid index\");\n\n\t\tif (index<myIndex) {\n\t\t\tmyIndex = 0;\n\t\t\tmyLocalIndex=0;\n\t\t\tmyCurrent = myFirst;\n\t\t}\n\t\twhile (myIndex != index) {\n\n\t\t\tmyIndex++;\n\t\t\tmyLocalIndex++;\n\t\t\t\n\t\t\tif (myLocalIndex >= myCurrent.info.length()) {\n\t\t\t\tmyLocalIndex = 0;\n\t\t\t\t\n\t\t\t\tif (myCurrent.next.info == null) throw new IndexOutOfBoundsException(\"out of nodes\");\n\t\t\t\tmyCurrent = myCurrent.next;\n\t\t\t\t\n\t\t\t}\n\t\t}\n return myCurrent.info.charAt(myLocalIndex);\n }", "public String searchByIndex(int index){\n if(hashMap.containsKey(index))\n return hashMap.get(index).toString();\n else\n return \"Cannot Find index given\";\n }", "public String getWord(int wordIndex) {\n return this.words.get(wordIndex);\n }", "public static String getString(final ConstantPool cp,\n final int index) {\n final Entry entry;\n try {\n entry = cp.getEntry(index);\n } catch (IllegalIndexException e) {\n return null;\n }\n if (!(entry instanceof Utf8Entry)) {\n return null;\n }\n return ((Utf8Entry)entry).getValue();\n }", "public static String sub(String str, int idx)\n\t{\n\t\tchar[] temp = str.toCharArray();\n\t\tString out = \"\";\n\t\tfor(int i = 0; i < idx;i++)\n\t\t{\n\t\t\tout = out + String.valueOf(temp[i]);\n\t\t}\n\n\t\treturn out;\n\t}", "Resolvable<String> getKey(int index);", "public abstract String getString(int columnIndex);", "public char getChar(int index) throws ArrayIndexOutOfBoundsException\n\t{\n\t\treturn (char) bytes[index];\n\t}", "public static String getLogEntry(int index){\n if(index < 0 || index >= log.size()){\n return \"\";\n }\n return log.get(index);\n }", "public String getAnswer(int index){\n return answerList.get(index);\n }", "public byte getTextSnapshot(int index)\n {\n return this.videocard.textSnapshot[index];\n }", "public String userNameIndex(int index){\n index = index-1;\n String userName1 = \"\";\n userName1 = user[index].getUserName();\n return userName1;\n }", "public String getNotiContent(int index){\n\t\treturn content.get(index);\n\t}", "public String indexStr(int index) {\n\t\tif (index == TYPE_ANY) return \"*\";\n\t\tif (index == TYPE_ALL) return \"ALL\";\n\t\treturn Integer.toString(index);\n\t}", "public T get(int index);", "public T get(int index);", "public T get(int index);", "@ZenCodeType.Operator(ZenCodeType.OperatorType.INDEXGET)\n default IData getAt(int index) {\n \n return notSupportedOperator(OperatorType.INDEXGET);\n }", "public E get(int index)\n\t{\n\t\treturn contents[index];\n\t}", "public char getChar(int index)\r\n/* 191: */ {\r\n/* 192:208 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 193:209 */ return super.getChar(index);\r\n/* 194: */ }", "private String getStringStat(int index) {\n String[] scores = readFromFile().split(\"\\n\");\n String[] stats = scores[currPlayer].split(\",\");\n return stats[index];\n }", "public String getText(int index) {\r\n\t ChartDataHistogramDouble thCartData = ((ChartDataHistogramDouble) chartData);\r\n\t\tif (index < 0 || index >= this.getNumOfData()) return \"\";\r\n\t\telse return thCartData.getObservedString(index);\r\n\t}", "Object get(int index);", "Object get(int index);", "String getKey(int index);", "public String get(int pos){\r\n\t\tif(pos == -1)\r\n\t\t\tthrow new NoSuchElementException();\r\n\t\t\r\n\t\tNode indexptr = head;\r\n\t\t\r\n\t\tif(head == null)\r\n\t\t\tthrow new NoSuchElementException(EmptyList);\r\n\t\t\r\n\t\tint cnt =0;\r\n\t\twhile(cnt < pos){\r\n\t\t\tindexptr = indexptr.next;\r\n\t\t\tcnt++;\r\n\t\t}\r\n\t\t\r\n\t\treturn indexptr.data;\r\n\t}", "String get(int i, int j);", "java.lang.String getSourceFile(int index);", "@Override\n\tpublic Object getItem(int position) {\n\t\treturn str[position];\n\t}", "java.lang.String getUnreachable(int index);", "public void setString(int index,String value);", "public String getString(int columnIndex) throws SQLException {\n\n try {\n debugCodeCall(\"getString\", columnIndex);\n return get(columnIndex).getString();\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }", "T get(int index);", "T get(int index);", "T get(int index);", "T get(int index);", "T get(int index);", "public String getIndex() {\n return this.index;\n }" ]
[ "0.8523295", "0.8081963", "0.80084246", "0.7583707", "0.75784105", "0.74095917", "0.7341092", "0.73142034", "0.7232141", "0.7205619", "0.70605344", "0.70234334", "0.7018173", "0.70055676", "0.6943304", "0.6894119", "0.6801034", "0.6726409", "0.66538686", "0.66352594", "0.66317296", "0.66078436", "0.658481", "0.6546784", "0.6528805", "0.6507687", "0.65008605", "0.6500065", "0.64903533", "0.643244", "0.6427787", "0.64209324", "0.63853043", "0.6360508", "0.63236725", "0.6310637", "0.63031757", "0.62974924", "0.6293401", "0.6287019", "0.62739694", "0.6265431", "0.62537533", "0.6203455", "0.6160249", "0.6149169", "0.61431646", "0.61406714", "0.6111631", "0.61091936", "0.61038214", "0.6090278", "0.6073998", "0.605622", "0.6047809", "0.60368663", "0.601581", "0.60064286", "0.59885186", "0.59688306", "0.5959716", "0.59521836", "0.5944366", "0.5943499", "0.592654", "0.5917076", "0.5901607", "0.58953243", "0.5892662", "0.5888769", "0.585408", "0.5843805", "0.5824655", "0.58025855", "0.57900476", "0.57864356", "0.5750941", "0.5750941", "0.5750941", "0.5727927", "0.5727153", "0.57236207", "0.57148254", "0.57082313", "0.56969315", "0.56969315", "0.56842333", "0.56815714", "0.56597465", "0.56364405", "0.5635738", "0.5635317", "0.5628764", "0.5624215", "0.56210893", "0.56210893", "0.56210893", "0.56210893", "0.56210893", "0.561434" ]
0.7378076
6
Return the index of a given string, or 1 if not found.
public int findString(String v) { final Integer addr = str2addr.get(v); if (addr != null) { return addr; } else { return -1; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Integer indexOf(String s){\n\t\tInteger i;\n\t\tif((i=indices.get(s))!=null)\n\t\t\treturn i;\n\t\telse\n\t\t\treturn Integer.valueOf(-1);\n\t}", "public int find(String string) {\n\t\tif (string==null) {\n\t\t\treturn -1;\n\t\t}\n\t\tfor (int i=0;i!=m_stringOffsets.length;++i) {\n\t\t\tint offset=m_stringOffsets[i];\n\t\t\tint length=getShort(m_strings,offset);\n\t\t\tif (length!=string.length()) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tint j=0;\n\t\t\tfor (;j!=length;++j) {\n\t\t\t\toffset+=2;\n\t\t\t\tif (string.charAt(j)!=getShort(m_strings,offset)) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (j==length) {\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}", "public int indexOf(String str)\n\t{\n\t\tint indexOf = recursiveIndexOf(firstC, length, 0, -1, str);\n\t\treturn indexOf;\n\t}", "public int indexOf(String str) {\n/* 514 */ return this.m_str.indexOf(str);\n/* */ }", "public static int getIndex(String s) {\n\t\tint index=-1; \n\t\tfor(int i = 0 ; i < dataList.size() ; i ++ ) {\n\t\t\tif(dataList.get(i).name.equals(s)) {\n\t\t\t\t\n\t\t\t\tindex =i;\n\t\t\t}\n\t\t}\n\t\treturn index;\n\t}", "public static int indexOf(String s, String sub) {\r\tfor (int i = 0; i < s.length() - sub.length() + 1; i++)\r\t\tif (isEqual(substring(s, i, sub.length()), sub))\r\t\t\treturn i;\r\r\treturn -1;\r\t\r\t\r\t\r }", "int indexOf(ASCIIString str, int fromIndex);", "static int strStr(String s, String x){\n return s.indexOf(x);\n }", "public int indexOf(XMLString str) {\n/* 536 */ return this.m_str.indexOf(str.toString());\n/* */ }", "protected int lookup(String s) {\r\n\t\tint i;\r\n\r\n\t\tfor (i = 0; i < kwlist.length; i++) {\r\n\t\t\tif (kwlist[i].equalsIgnoreCase(s))\r\n\t\t\t\treturn i;\r\n\t\t}\r\n\r\n\t\treturn -1;\r\n\t}", "public static int strStr(String haystack, String needle){\n\n if(needle.length() == 0) return 0;\n for(int i = 0; i <= haystack.length() - needle.length(); i++){\n\n if(haystack.substring(i, i + needle.length()).equals(needle)) return i;\n\n }\n return -1;\n\n }", "Integer getIndexOfGivenValue(String value) {\n Integer index = null;\n for (IndexValuePair indexValuePair : indexValuePairs) {\n if (indexValuePair.getValue().equals(value)) {\n index = indexValuePair.getIndex();\n break;\n }\n }\n return index;\n }", "public static int findIndex(String str) {\r\n\t\tint index = -1;\r\n\r\n\t\t//Loop through the entire ini array list to find the setting headings.\r\n\t\tfor (int i = 0; i < Main.ini.size(); i++) {\r\n\t\t\t//When found, set the index equal to i.\r\n\t\t\tif (((String) Main.ini.get(i)).equalsIgnoreCase(str)) index = i;\r\n\t\t}\r\n\r\n\t\treturn index;\r\n\t}", "public static int indexOf(List<String> strings, String string) {\n\tif (strings == null) {\n\t return -1;\n\t}\n\treturn strings.indexOf(string);\n }", "public int stateIndexOfString (String s)\n\t{\n\t\tfor (int i = 0; i < this.numStates(); i++) {\n\t\t\tString state = this.getState (i).getName();\n\t\t\tif (state.equals (s))\n\t\t\t\treturn i;\n\t\t}\n\t\treturn -1;\t\t\n\t}", "public static int indexOf(String[] strings, String string) {\n for (int i = 0; i < strings.length; ++i) {\n // string may be null, strings[i] cannot.\n if (strings[i].equals(string))\n return i;\n }\n return -1;\n }", "private int getIndex(Spinner spinner, String myString) {\n for (int i = 0; i < spinner.getCount(); i++) {\n if (spinner.getItemAtPosition(i).toString().equalsIgnoreCase(myString)) {\n return i;\n }\n }\n return -1;\n }", "private int findIndex(String str){\n for(int i=size()-1;i>=0;i--){\n if(str.compareTo(get(i))>0){\n return i+1;\n }\n }\n return 0;\n }", "int indexOf(String column);", "int indexOf(String column);", "public int indexOf(String key) {\r\n Integer i = keys.get(key);\r\n return (i == null ? -1 : i);\r\n }", "public static int indexOf(String firstStr, String secondStr) {\n return indexOf(firstStr, secondStr, 0);\n }", "public static int approach1(String str) {\n\t\tint strLength = str.length();\n\t\tfor(int i = 0; i < strLength; i++) {\n\t\t\tfor(int j = i+1; j < strLength; j++) {\n\t\t\t\tif(str.charAt(i) == str.charAt(j)) {\n\t\t\t\t\treturn i;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}", "private int getIndex(Spinner spinner, String myString){\n for (int i=0;i<spinner.getCount();i++){\n if (spinner.getItemAtPosition(i).toString().equalsIgnoreCase(myString)){\n return i;\n }\n }\n\n return 0;\n }", "public int getCharaterPositionWithName(String s){\n int i;\n for(i = 0; i<alCharacter.size(); i++){\n String nameNextChar = alCharacter.get(i).getName();\n if(s.equals(nameNextChar)){\n break;\n }\n }\n return i;\n }", "public static int getIndex(String key) {\r\n return KEYS.indexOf(key);\r\n }", "public int getIndex(String s){\r\n int b = 1;\r\n int l = hashFunction(s);\r\n if(table[l].getKey().equals(s)){\r\n return l;\r\n }\r\n else{\r\n while(table[l + b*b] != null){\r\n if(table[l].getKey().equals(s)){\r\n break;\r\n }\r\n else{\r\n b++;\r\n } \r\n }\r\n if(table[l].getKey().equals(s)){\r\n return l;\r\n }\r\n else{\r\n return 0;\r\n }\r\n }\r\n }", "String getFirstIndex();", "private int getIndex(Spinner spinner, String myString)\n {\n int index = 0;\n\n for (int i=0;i<spinner.getCount();i++){\n if (spinner.getItemAtPosition(i).toString().equalsIgnoreCase(myString)){\n index = i;\n break;\n }\n }\n return index;\n }", "public int indexOf(String cate, int idx) {\n\t\tif (idx >= seq.size()) return -1;\n\t\tfor (int i=idx; i < seq.size(); i++) {\n\t\t\tif (seq.get(i).equals(cate))\n\t\t\t\treturn i;\n\t\t}\n\t\treturn -1;\n\t}", "public static int indexOf(String testStr, String [] strArray) {\n \tif(strArray==null || strArray.length==0) return -1;\n \tint len = strArray.length;\n \tfor(int i =0; i < len; ++i) {\n \t\tif(strArray[i]==null) {\n \t\t\tif(testStr == null) return i;\n \t\t}\n \t\telse {\n \t\t\tif(strArray[i].equals(testStr)) return i;\n \t\t}\n \t}\n \treturn -1;\n }", "public int strStr1(String haystack, String needle) {\n return haystack.indexOf(needle);\n }", "public static int indexOf(String[] arr, String e) {\n\t\tfor (int i = 0; i < arr.length; i++)\n\t\t\tif (arr[i].startsWith(e))\n\t\t\t\treturn i;\n\t\treturn -1;\n\t}", "public static int getIndex(String state) {\n int index = 0;\n for (String stateName : stateAbbreviations.keySet()) {\n if (stateName.equals(state)) {\n return index;\n }\n index++;\n }\n return index;\n }", "private int findIndex(String value) {\n\tint index = 0;\n\tfor (int i = 0; i < getData().length && index == 0;) {\n\t if (value.compareTo(getData()[i]) <= 0) {\n\t\tindex = i;\n\t }\n\t else {\n\t\ti++;\n\t }\n\t}\n\treturn index;\n }", "public int indexOf(String str, int fromIndex) {\n/* 567 */ return this.m_str.indexOf(str, fromIndex);\n/* */ }", "public int indexOf(String name, int start) {\n\t\tint sz = size();\n\t\tfor (int i = start; i < sz; i++) {\n\t\t\tString n = getName(i);\n\t\t\tif (name == null) {\n\t\t\t\tif (n == null)\n\t\t\t\t\treturn i; // matched null\n\t\t\t} else if (name.equals(n)) {\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}", "public int findPosition(int num) {\n\t\t\n\t\tString s = new Integer(num).toString();\n\t\tSystem.out.println(\"After converting input number to string: \" + s);\n\t\t\n\t\tint i = 0, j = 0;\n\t\tint m = s.length(), n = input.length();\n\t\t\n\t\tfor(i = 0; i <= n - m; i++) {\n\t\t\tj = 0;\n\t\t\twhile(j < m && input.charAt(i + j) == s.charAt(j)) {\n\t\t\t\tj++;\n\t\t\t}\n\t\t\tif(j == m) {\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\t\t\n\t\t\n\t\treturn -1;\n\t}", "@Override\n\tpublic String strindexOf(String str, String strsr) {\n\t\treturn null;\n\t}", "private int indexOf(String s, Map<String, Integer> map) {\n\n if (map.containsKey(s)) {\n return map.get(s);\n }\n return EDGE_NOT_EXIST;\n }", "public int indexOf(int ch) {\n/* 411 */ return this.m_str.indexOf(ch);\n/* */ }", "private int indexOf(final String string, final String sub, final boolean start,\n final boolean ends, final InputInfo info) throws QueryException {\n\n final RuleBasedCollator rbc = rbc(info);\n final CollationElementIterator i = rbc.getCollationElementIterator(string);\n final CollationElementIterator is = rbc.getCollationElementIterator(sub);\n do {\n final int cs = next(is);\n if(cs == -1) return 0;\n int c;\n do {\n c = next(i);\n if(c == -1) return -1;\n } while(c != cs);\n\n final int s = i.getOffset();\n if(startsWith(i, is) && (!ends || next(i) == -1))\n return start ? s - 1 : i.getOffset();\n i.setOffset(s);\n is.reset();\n } while(true);\n }", "public static int index(String str, String[] strArray, boolean ignoreCase) {\n if (str == null || strArray == null) return -1;\n boolean equals;\n for (int i = 0; i < strArray.length; i++) {\n equals = ignoreCase ? str.equalsIgnoreCase(strArray[i]) : str.equals(strArray[i]);\n if (equals) return i;\n }\n return -1;\n }", "private int locate(String str, String substr, int pos) {\n if (substr.length() == 0) {\n if (pos <= (str.length() + 1)) {\n return pos;\n }\n else {\n return 0;\n }\n }\n int idx = StringUtils.indexOf(str, substr, pos - 1);\n if (idx == -1) {\n return 0;\n }\n return idx + 1;\n }", "public int mo131897a(String str) {\n return super.indexOf(str);\n }", "public static void main(String[] args) {\n\n String haystack = \"abc\";\n String needle = \"c\";\n\n\n int idx = strStr(haystack, needle);\n System.out.println(idx);\n }", "static public int strStr(String haystack, String needle) {\n\n if(needle.equals(\"\") ) return 0;\n if (haystack.equals(\"\") || haystack.length() < needle.length()) return -1;\n for(int i =0;i<haystack.length();i++)\n {\n for(int j = i+1;j<haystack.length()+1;j++)\n {\n //用==比较字符串容易bug\n //System.out.println(haystack.substring(i,j)==needle);\n if(haystack.substring(i,j).equals(needle)) {\n return i;\n }\n }\n\n }\n return -1;\n }", "public String indexOf(String s1,String ch) {\n\t\tint i = s1.indexOf(ch);\n\t\treturn Integer.toString(i);\n\t}", "public static int helper(String str) {\n\t\t// null & illegal checking here\n\t\tif(str == null){\n\t\t\treturn 0;\n\t\t}\n\t \n\t\tif(str.length() == 1){\n\t\t\treturn 1;\n\t\t}\n\t \n\t\tchar[] arr = str.toCharArray();\n\t\tchar p = arr[arr.length - 1];\n\t\tint result = 1;\n\t \n\t\tfor (int i = arr.length - 2; i >= 0; i--) {\n\t\t\tif (p == arr[i]) {\n\t\t\t\tresult++;\n\t\t\t} else {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t \n\t\treturn result;\n\t}", "int findState(String str){\n int i = 0;\n\n for (i = 0; i < states.size(); i++) {\n if(Objects.equals(str, states.get(i))){\n return i;\n }\n }\n /** Could not find the state */\n return -1;\n }", "Index getIndex(String symbol);", "public static int indexOfOutOfString(String string, char find) {\r\n\t\tboolean inJavaString = false;\r\n\t\tint numBackSlashes = 0;\r\n\t\tfor (int i = 0; i < string.length(); i++) {\r\n\t\t\tchar cur = string.charAt(i);\r\n\t\t\tif (!inJavaString) {\r\n\t\t\t\tif (cur == find) {\r\n\t\t\t\t\treturn i;\r\n\t\t\t\t}\r\n\t\t\t\tif (cur == '\\\"') {\r\n\t\t\t\t\tinJavaString = true;\r\n\t\t\t\t\tnumBackSlashes = 0;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tif (cur == '\\\\') {\r\n\t\t\t\t\tnumBackSlashes++;\r\n\t\t\t\t}\r\n\t\t\t\tif (cur == '\\\"' && numBackSlashes % 2 == 0) {\r\n\t\t\t\t\tinJavaString = false;\r\n\t\t\t\t\tif (cur == find) {\r\n\t\t\t\t\t\treturn i;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn -1;\r\n\t}", "public int indexOf(String field) {\n return index.get(field);\n }", "private int findIndexByName(String name) {\n // for each item in stock, while item var isn't unassigned:\n for (int i = 0; i < this._noOfItems; i++) {\n // if name is the same, return current index - to the first place where the same name was found\n if (this._stock[i].getName().equals(name))\n return i;\n }\n // if not found, return -1\n return -1;\n }", "private int indexOfByRegex(String input, String regex) {\n\t\tPattern p = Pattern.compile(regex);\n\t\tMatcher m = p.matcher(input);\n\t\tif (m.find()) {\n\t\t\treturn m.start();\n\t\t}\n\t\treturn -1;\n\t}", "int findStringLineno(String[] lines, String str, int startLine) {\n int i = startLine;\n while (i < lines.length) {\n if (lines[i].contains(str))\n return i;\n ++i;\n }\n return i;\n }", "private int indexOf(String columnName) {\n\t\tfor (int i = 0; i < columnNames.length; ++i)\n\t\t\tif (columnNames[i].equals(columnName))\n\t\t\t\treturn i;\n\n\t\tthrow new IndexOutOfBoundsException(\"Column (\" + columnName + \") doesn't exist in \" + tableName);\n\t}", "public static void main(String[] args) {\n String Data=\"The generations of our family changing\";\nSystem.out.println(Data.indexOf(\"The\")); //Index ==== displays \"the\" position in the string\nSystem.out.println(Data.indexOf(\"family\"));\nSystem.out.println(Data.indexOf(\"Family\")); //case sensitive ====== for index thats the reason -1 is printing.\n\t}", "public int getIndexOfWord(String wordSearched)\n {\n //returns -1 if not found\n if (this.isEmpty())\n {\n //this was designed to always only follow a hasWord\n //returns a -1 to throw an index out of bounds if I messed up elsewhere in the code\n return -1;\n }\n\n //finds the entry exactly the same way as hasWord, just returns an index\n //current entry in the linked list\n Entry current;\n //position on the linked list\n int index = 0;\n while (index < entryList.size())\n {\n current = entryList.get(index);\n if (current.getWord().equalsIgnoreCase(wordSearched))\n {\n //the current word matches the searched word\n return index;\n }\n index++;\n\n }\n //I didn't find it in the list\n //and my code is broken\n return -1;\n }", "public static int strStr(String haystack, String needle) {\n\n for (int i = 0; ; i++) {\n for (int j = 0; ; j++) {\n if (j == needle.length()) return i;\n if (i + j == haystack.length()) return -1;\n if (needle.charAt(j) != haystack.charAt(i + j)) break;\n }\n }\n }", "private int getIndex(Spinner spinner, String myString){\n for (int i=0;i<spinner.getCount();i++){\n Log.e(\"mytag\",\"spinner.getItemAtPosition(i).toString(): \" +spinner.getItemAtPosition(i).toString() + \" \" + myString);\n if (spinner.getItemAtPosition(i).toString().equalsIgnoreCase(myString)){\n return i;\n }\n }\n\n return 0;\n }", "public int strStr(String haystack, String needle) {\n for (int i = 0; ; i++) {\n for (int j = 0; ; j++) {\n if (j == needle.length()) return i;\n if (i + j == haystack.length()) return -1;\n if (needle.charAt(j) != haystack.charAt(i + j)) break;\n }\n }\n }", "protected int findFromIndex(char c) {\r\n int len = fromChars.length;\r\n for(int i = 0; i < len; i++) {\r\n if(fromChars[i] == c) return i;\r\n }\r\n return -1;\r\n }", "public int firstUniqChar(String s) {\n Map<String, Integer> occurMap = new LinkedHashMap<>();\n for (int i = 0; i < s.length(); i++) {\n String si = s.substring(i, i + 1);\n if (occurMap.containsKey(si)) {\n if (occurMap.get(si) > -1) {\n occurMap.put(si, -1);\n }\n } else {\n occurMap.put(si, i);\n }\n }\n for (Integer idx : occurMap.values()) {\n if (idx > -1) {\n return idx;\n }\n }\n return -1;\n }", "public int getIndexOfName(String fullName){\n\t\tfullName = fullName.substring(0,1).toUpperCase()+fullName.substring(1).toLowerCase();\n\t\treturn names.indexOf(fullName);\n\t}", "public static int get(String s) {\n int buffer = map.get(s);\n return (int) buffer;\n }", "public int indexOf(int ch, int fromIndex) {\n/* 444 */ return this.m_str.indexOf(ch, fromIndex);\n/* */ }", "public int indexOf(String word) {\n for (int i = 0; i < children.size(); i++) {\n if (word.equals(get(i).getId())) {\n return i;\n }\n }\n return -1;\n }", "public static int findStartIndex(Record[] r, int field, String s){\r\n\r\n\r\n\t\tint guess = binaryRecSearch(r, field, s); \t//find location of element using binary search\r\n\r\n\r\n\t\tif(guess == -1){return -1;} \t//if element was not found --> return -1\r\n\r\n\t\twhile(true){\r\n\r\n\t\t\tif(s.equals(r[guess].getData()[field])){\r\n\t\t\t\tif(guess == 0){return 0;} \t//case where record is found at position 0\r\n\t\t\t\tguess--;}\r\n\t\t\telse{break;}\r\n\t\t}\r\n\r\n\t\treturn guess+1; \t\t\t\t\t\t\t//return first position\r\n\t}", "public int getIndexOfItem(String name) {\n\n\t\tString item;\n\t\tint i = 0;\n\t\twhile ((item = comboBoxName.getItemAt(i)) != null) {\n\t\t\tif (item.equals(name)) {\n\t\t\t\treturn i;\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t\treturn -1;\n\t}", "public int nextIndexOf(String identifier){\n Token token;\n int tempCurrentToken = currentToken, result;\n \n nextTokenOf(identifier);\n result = currentToken;\n currentToken = tempCurrentToken;\n return result;\n }", "public int strStr(String haystack, String needle) {\n \n for(int i = 0 ; ; i++) {\n for(int j = 0; ; j++) {\n if(j == needle.length()) return i;\n if(i+j == haystack.length()) return -1;\n if(needle.charAt(j) != haystack.charAt(i+j)) break;\n } \n }\n }", "public static int findSlash(String input){\n boolean slashFound=false;\n int slashPosition=0;\n int i=0;\n //loop through the string to find the '/' and record the position if found\n do{\n if(input.charAt(i)=='/'){\n slashFound=true;\n slashPosition=i;\n }\n i++;\n }while(i<input.length()&&slashFound==false);\n\n if(slashFound==false){\n return 0;\n }\n return slashPosition;\n }", "private int getSearchIndex() \n {\n String selected = searchCombo.getSelectedItem().toString();\n for(int i = 0; i<columnNames.length; i++)\n {\n if(selected.equals(columnNames[i]))\n {\n return i;\n }\n }\n return -1;\n }", "public static int indexOf(StringBuffer buf, String find)\r\n {\r\n return indexOf(buf, find, 0);\r\n }", "int indexOf(int val);", "private static int _search(int skip, String text, char a, int index) {\n switch (skip) {\n case -1:\n for (int i = 0; i < text.length(); i++) {\n if (text.charAt(i) == a)\n return i;\n }\n break;\n default:\n if (text.length() > index && text.charAt(index) == a)\n return index;\n }\n\n return -1;\n }", "public int firstUniqChar2(String s) {\n char[] chars = s.toCharArray();\n \n for (int i = 0; i < chars.length; i++) {\n char c = chars[i];\n if (s.indexOf(c) == s.lastIndexOf(c)) return i;\n }\n \n return -1;\n }", "public int lookup(String data) {\n\t\tfor(int i = 0; i < storageSpace.length; i++) {\n\t\t\tif(storageSpace[i].isEqual(data)) {\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}", "private static int findIndex(String line) {\n\n int index = -1;\n\n if (line == null) {\n return index;\n }\n\n line = line.trim();\n int spaceIndex = line.indexOf(\" \");\n int tabIndex = line.indexOf(\"\\t\");\n\n if (spaceIndex != -1) {\n if (tabIndex != -1) {\n if (spaceIndex < tabIndex) {\n index = spaceIndex;\n } else {\n index = tabIndex;\n }\n } else {\n index = spaceIndex;\n }\n } else {\n index = tabIndex;\n }\n return index;\n }", "public int find(String subseq)\n {\n return find(subseq, 0);\n }", "public static int findIndex(String string1, String string2) {\n char c;\n char d;\n int index = -1;\n boolean match = true;\n int count = 1;\n int counter = 0;\n boolean matchFound = false;\n for (int i = 0; i < string2.length(); i++) {\n c = string2.charAt(i);\n if (string2.length() > string1.length()) {\n match = false;\n break;\n }\n // Checks if the characters after the first of string 2 match in string 1\n if (matchFound == true) {\n for (int j = count + counter; j < string1.length(); j++) {\n d = string1.charAt(j);\n if (d != c) {\n \n match = false;\n } else {\n counter++;\n index = j -1;\n matchFound = true;\n break;\n }\n }\n } \n // Checks for the first character in string2 in string1\n if (matchFound == false) {\n for (int k = 0; k < string1.length(); k++) {\n d = string1.charAt(k); \n if (d != c) {\n count ++;\n \n matchFound = false;\n } else {\n index = k;\n matchFound = true;\n break;\n } \n match = true;\n } \n } \n }\n // returns the index number\n return index;\n \n \n }", "public int getIndex(String xmlName)\n {\n int length = getLength();\n \n for (int i = 0; i < length; i++)\n {\n if (getQName(i).equals(xmlName))\n {\n return i;\n }\n }\n return -1;\n }", "public static int nextIndexOf(String string, String characters, int index) {\n int retInd = string.length();\n int auxIndex = -1;\n \n for (int i = 0; i < characters.length(); i++) {\n auxIndex = string.substring(index + 1).indexOf(characters.charAt(i));\n if ((auxIndex > -1) && (auxIndex + index + 1 < retInd)) {\n retInd = auxIndex + index + 1;\n }\n }\n return retInd;\n }", "public int get(String s) {\n boolean val=search(s);\n if(val==true){\n int a=(int) hmap.get(s);\n System.out.println(\"Found\");\n return a;\n }\n else {\n return -1;\n }\n\n }", "private static int strStr(String a, String b)\n\t{\n\t\tint aL=a.length();\n\t\tint bL=b.length();\n\t\tif(a.equals(b)){\n\t\t\treturn 0;\n\t\t}\n\t\tfor(int i=0;i<aL;i++){\n\t\t\tint j=i+bL;\n\t\t\tif(j<=aL){\n\t\t\t\tString subStr=a.substring(i, j);\n\t\t\t\tif(subStr.equals(b)){\n\t\t\t\t\treturn i;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}", "public int getSplitIndex(Split s)\n\t{\n\t\tfor(int counter = 0; counter < splits.size(); counter ++)\n\t\t{\n\t\t\tif(splits.get(counter).equals(s))\n\t\t\t{\n\t\t\t\treturn counter;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn -1;\n\t}", "public int strStr(String haystack, String needle) \n {\n if(haystack.length()==0 && needle.length()==0) \n return 0;\n //If needle is empty, it means needle is part of haystack.\n else if(needle.length()==0)\n return 0;\n //If haystack is empty or the length of haystack is less than that of needle, it means needle is not part of haystack.\n else if(haystack.length()==0 || haystack.length()<needle.length())\n return -1;\n //If needle is the exact same string as haystack, it means needle is part of haystack.\n else if(haystack.compareTo(needle)==0)\n return 0;\n int i,j=0,index=-1,flag=0;\n for(i=0;i<haystack.length();i++)\n {\n //Checks if every character of needle is a part of the haystack.\n if(haystack.charAt(i)==needle.charAt(j))\n {\n if(j==0)\n index=i;\n j++;\n flag=1;\n if(j<needle.length())\n continue;\n }\n //The following condition tests and makes sure that needle is part of the haystack.And returns the required index.\n if(j>=needle.length())\n return index;\n if(flag==1)\n i=index;\n flag=0;\n j=0;\n }\n return -1;\n }", "public static int lookup (String name)\n {\n\tInteger result = MAP.get (name.toLowerCase ());\n\n\treturn (result == null) ? -1 : result;\n }", "public int mo33889nt(String str) {\n return -1;\n }", "static int firstNonRepeating(String str) {\n getCharCountArray(str);\n int index = -1, i;\n\n for (i = 0; i < str.length(); i++) {\n if (count[str.charAt(i)] == 1) {\n index = i;\n break;\n }\n }\n\n return index;\n }", "private int getIndex(String rib){\n for (int i=0;i<ribSp.getCount();i++){\n if (ribSp.getItemAtPosition(i).toString().equalsIgnoreCase(rib)){\n return i;\n }\n }\n\n return 0;\n }", "public int getIndex(String uri, String local)\n {\n int length = getLength();\n \n for (int i = 0; i < length; i++)\n {\n if (!getURI(i).equals(uri))\n {\n continue;\n }\n if (getLocalName(i).equals(local))\n {\n return i;\n }\n }\n return -1;\n }", "private static int findTheLastIndexInString(String s, char x){\n\n\t\tfor(int i=s.length()-1 ; i>=0; i--){\n\t\t\t\n\t\t\tif(s.charAt(i) == x)\n\t\t\t\treturn i;\n\t\t}\n\t\treturn -1;\n\t}", "public Integer search(String v)\n {\n Integer pos = h(v);\n while (pos < cap) {\n\n if (table.get(pos) == null) {\n return -1;\n } else if (table.get(pos).equals(v))\n return pos;\n pos++;\n }\n if (pos == cap)\n {\n while (pos < cap)\n {\n if (table.get(pos).equals(v))\n return pos;\n else if (table.get(pos) == null)\n return -1;\n pos++;\n }\n }\n return -1;\n }", "public static int indexOf(char c, CharSequence seq) {\n int max = seq.length();\n for (int i = 0; i < max; i++) {\n if (c == seq.charAt(i)) {\n return i;\n }\n }\n return -1;\n }", "public static void main(String[] args) {\n\n\t\tString str=\"javs\";\n\t\tint index=0;\n\t\tindex=str.indexOf(\"v\");\n\t\t\n\t\tSystem.out.println(index);\n\t}", "public int search(char value)\n {\n for(int i = 0; i < this.raw_value.length; i++)\n {\n if(this.raw_value[i] == value) return i;\n }\n return -1;\n }", "public int strStr(String haystack, String needle) {\n if (needle == null || needle.length() == 0)\n return 0;\n if (haystack.length() < needle.length())\n return -1;\n a: for (int i = 0; i <= haystack.length() - needle.length(); i++) {\n int j = 0;\n while (j < needle.length()) {\n if (haystack.charAt(i + j) != needle.charAt(j))\n continue a;\n j++;\n }\n return i;\n }\n return -1;\n }", "public int checkAndGetIndex() throws DukeException {\n String taskIndex = input.substring(4, 6);\n boolean singleDigit = taskIndex.contains(\" \");\n if (singleDigit) { // if the tag index is a single digit\n try {\n int index = Integer.parseInt(taskIndex.substring(0, 1));\n if (!checkValidIndex(index)) {\n throw new DukeException(\"No such task exists!\");\n }\n return index;\n } catch (NumberFormatException e) { // Thrown by parseInt\n throw new DukeException(\"That is not a valid index input!\");\n }\n } else {\n try {\n int index = Integer.parseInt(taskIndex.substring(0, 2));\n if (!checkValidIndex(index)) {\n throw new DukeException(\"No such task exists!\");\n }\n return index;\n } catch (NumberFormatException e) {\n throw new DukeException(\"That is not a valid index input!\");\n }\n }\n }" ]
[ "0.79786175", "0.7493283", "0.7365867", "0.7307042", "0.7288988", "0.7163814", "0.7105169", "0.7019245", "0.69767964", "0.6863682", "0.6860682", "0.6817162", "0.68114984", "0.6771398", "0.6764175", "0.67427737", "0.6693621", "0.66826653", "0.6651861", "0.6651861", "0.66079366", "0.6601962", "0.6596363", "0.65609556", "0.6524513", "0.65133494", "0.6510405", "0.64879316", "0.648157", "0.6477545", "0.6476146", "0.647015", "0.6453584", "0.6445962", "0.6443957", "0.6435294", "0.64105606", "0.6408071", "0.6393652", "0.6379912", "0.63745904", "0.6358592", "0.6347827", "0.63457423", "0.63416654", "0.63173527", "0.63165015", "0.629669", "0.6271416", "0.62702227", "0.62693757", "0.6268784", "0.6264506", "0.6258029", "0.6249821", "0.62438935", "0.62435293", "0.6237935", "0.6237818", "0.62131083", "0.62114424", "0.6190737", "0.6188974", "0.6186551", "0.6185447", "0.61765003", "0.6133711", "0.61288273", "0.61242443", "0.6122484", "0.6114893", "0.6113625", "0.6100893", "0.6098626", "0.6086872", "0.6077525", "0.60538685", "0.60534006", "0.60440254", "0.6040408", "0.60365045", "0.60365033", "0.6035154", "0.60316116", "0.60296196", "0.6020196", "0.6007573", "0.60043514", "0.60025424", "0.59599674", "0.595949", "0.5948274", "0.5939042", "0.5938815", "0.5938531", "0.5936868", "0.5934157", "0.593244", "0.5928613", "0.5928472" ]
0.6513412
25
Convert to a strtab formatted byte array.
public byte[] toByteArray() { final byte[] data = new byte[maxIndex]; for (Map.Entry<Integer, String> entry : addr2str.entrySet()) { final String str = entry.getValue(); final int addr = entry.getKey(); for (int k = 0; k < str.length(); k++) { data[addr + k] = (byte) str.charAt(k); } } return data; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public StrTab(byte[] data, int length) {\n final int cnt = length;\n int addr = 0;\n while (addr < cnt) {\n int size = 0;\n while ((addr + size < cnt) && (data[addr + size] != 0)) {\n size++;\n }\n final String s = new String(data, addr, size);\n final Integer index = addr;\n str2addr.put(s, index);\n addr2str.put(index, s);\n addr += (size + 1);\n }\n maxIndex = cnt;\n }", "ByteBuffer getStringTable(){\n return ByteBuffer.wrap(super.buf, 0, super.count);\n }", "@Benchmark\n public String bytesToStringOkio() {\n return BenchmarkUtils.decodeUtf8(decodeArray);\n }", "public String bufferToString() {\n\t\tStringBuffer buf = new StringBuffer();\n\n\t\tfor (int i = 0; i < actualsizeinwords; i++) {\n\t\t\tbuf.append(\"\" + i + \": \");\n\t\t\tbuf.append(longToBitString(this.buffer[i]));\n\t\t\tbuf.append('\\n');\n\t\t}\n\n\t\treturn buf.toString();\n\t}", "public StringToStringTableVector()\n {\n\n m_blocksize = 8;\n m_mapSize = m_blocksize;\n m_map = new StringToStringTable[m_blocksize];\n }", "public char[] BinaryToAsci(List<Integer> bin) {\n char[] tab = new char[bin.size() / 8]; //tablica przechowująca odkodwane znaki\n char znak;\n for (int j = 0; j < bin.size() / 8; j++) {\n znak = 0;\n for (int i = 0; i < 8; i++) {\n znak += bin.get(7 + (j * 8) - i) * Math.pow(2, i);\n // zamiana zer i jedynek na liczbę w zapisie dzisiętnym, która jest\n znak %= 128; // interpretowana jako znak z tablicy ASCI\n }\n\n tab[j] = znak;\n }\n return tab;\n }", "private String arrayToString(double[] a) {\n StringBuffer buffy = new StringBuffer();\n for (int i=0; i<a.length; i++) {\n buffy.append(a[i]+\"\\t\");\n }\n return buffy.toString();\n }", "private String arrayToString(double[] a) {\n StringBuffer buffy = new StringBuffer();\n for (int i=0; i<a.length; i++) {\n buffy.append(a[i]+\"\\t\");\n }\n return buffy.toString();\n }", "public static String toByteString(byte[] array) {\n StringBuilder sb = new StringBuilder(\"{\");\n for (int i = 0; i < array.length; i++) {\n if (i > 0)\n sb.append(\" \");\n sb.append(toByteString(array[i]));\n }\n return sb.append(\"}\").toString();\n }", "public static String bytesToString(byte[] txtInByte){\n \treturn hexToString(bytesToHex(txtInByte));\n }", "private String m34494b(byte[] bArr) {\n return String.format(\"%032x\", new Object[]{new BigInteger(1, bArr)});\n }", "private String strBufToString() {\n return new String(strBuf, 0, strBufLen);\n }", "static byte[] serializeTable(Map<String, ByteIterator> aTable) {\n final ByteArrayOutputStream anOutputStream = new ByteArrayOutputStream();\n final Set<Map.Entry<String, ByteIterator>> theEntries = aTable.entrySet();\n\n try {\n for (final Map.Entry<String, ByteIterator> anEntry : theEntries) {\n final byte[] aColumnName = anEntry.getKey().getBytes();\n\n anOutputStream.write(toBytes(aColumnName.length));\n anOutputStream.write(aColumnName);\n\n final byte[] aColumnValue = anEntry.getValue().toArray();\n\n anOutputStream.write(toBytes(aColumnValue.length));\n anOutputStream.write(aColumnValue);\n }\n return anOutputStream.toByteArray();\n } catch (IOException e) {\n throw new IllegalStateException(e);\n } finally {\n close(anOutputStream);\n }\n }", "private byte[] macStringToByteArray(String dstMac) {\n byte[] dstMAC = new byte[6];\n if (dstMac != null) {\n for (int i = 0; i < 6; i++) {\n dstMAC[i] = (byte) Integer.parseInt(dstMac.substring(i * 3, (i * 3) + 2), 16);\n }\n }\n return dstMAC;\n }", "public String toString(){\r\n\t\tString output = \"\";\r\n\t\tfor(String s: this.data){\r\n\t\t\toutput = output + s + \"\\t\";\r\n\t\t}\r\n\r\n\t\treturn output;\r\n\t}", "String[][] packData();", "public String toString() {\n StringBuffer ret = new StringBuffer(\"APDU_Buffer = \");\n ret.append(makeHex(getBytes()));\n ret.append(\" (hex) | lc = \");\n ret.append(lc);\n ret.append(\" | le = \");\n ret.append(le);\n\n // make hex representation of byte array\n return ret.toString();\n }", "String printTableToString(Table inputTable) {\n String horDiv = generateHorizontalDivider(inputTable);\n StringBuilder tableStringBuilder = new StringBuilder();\n tableStringBuilder.append(horDiv);\n // i = -1 for column headers; i = 0..recsz for records\n for (int i = -1; i < inputTable.getRecordSize(); i++) {\n tableStringBuilder.append(generateDataString(inputTable, i));\n if (i == -1) {\n tableStringBuilder.append(horDiv);\n }\n }\n tableStringBuilder.append(horDiv);\n return tableStringBuilder.toString();\n }", "private static String toString (byte[] ba) {\r\n return toString(ba, 0, ba.length);\r\n }", "com.google.protobuf.ByteString\n getBaseTableBytes();", "public byte[] encode(byte[] pArray) {\n return encodeQuotedPrintable(PRINTABLE_CHARS, pArray);\n }", "public static String toString(byte[] buf, int off, int len) {\r\n if (buf == null) {\r\n return \"null\";\r\n }\r\n if (off < 0) {\r\n off = 0;\r\n }\r\n if ((len < 0) || (off + len > buf.length)) {\r\n len = buf.length - off;\r\n }\r\n\r\n StringBuilder buffer = new StringBuilder();\r\n buffer.append('\\n');\r\n StringBuilder bufBytes = new StringBuilder();\r\n StringBuilder bufChars = new StringBuilder();\r\n for (int i = 0; i < len; i++) {\r\n int v = 0xff & buf[i + off];\r\n bufBytes.append(HEX[v >> 4]).append(HEX[v & 0xf]).append(' ');\r\n bufChars.append(((32 <= v) && (v <= 126)) ? ((char) v) : '.');\r\n if ((i % 16) == 7) {\r\n // half way break\r\n bufBytes.append(\" \");\r\n bufChars.append(\" \");\r\n } else if ((i % 16) == 15) {\r\n // end of line\r\n buffer.append(String.format(\"%06x %-50s %-17s\\n\", i - 15, bufBytes, bufChars));\r\n bufBytes.setLength(0);\r\n bufChars.setLength(0);\r\n }\r\n }\r\n\r\n // add last line\r\n if (len % 16 != 0) {\r\n buffer.append(String.format(\"%06x %-50s %-17s\\n\", 16 * (len / 16), bufBytes, bufChars));\r\n }\r\n\r\n return buffer.toString();\r\n }", "private void createTab() {\n tab = new char[tabSize];\n for (int i = 0; i < tabSize; i++) {\n tab[i] = tabChar;\n }\n }", "public byte[] toByteArray() {\n ByteBuffer buf = ByteBuffer.allocate(blockSize);\n for (Record record : records) {\n buf.put(record.isEmpty() ? (byte) 1 : (byte) 0);\n buf.put(new String(record.getTconst()).getBytes(StandardCharsets.US_ASCII));\n buf.putFloat(record.getAvgRating());\n buf.putInt(record.getNumVotes());\n }\n return buf.array();\n }", "public static String toString(byte[] buf) {\r\n if (buf == null) {\r\n return \"null\";\r\n }\r\n return toString(buf, 0, buf.length);\r\n }", "com.google.protobuf.ByteString\n getScStrBytes();", "BigDecimal[][] toTriangular();", "public String bytesToString(byte[] input) {\r\n StringBuilder buildString = new StringBuilder();\r\n for (int i = 0; i < input.length * 4; i++) {\r\n // Begin at the start of byte minus 2, then subtract\r\n // the number of bits into the byte we are\r\n int bytePos = 6 - (i % 4) * 2;\r\n // Only need 2 bits, so and with 3\r\n int currChar = 0x3 & input[i / 4] >> bytePos;\r\n\r\n if (currChar == 0) {\r\n buildString.append('A');\r\n }\r\n else if (currChar == 1) {\r\n buildString.append('C');\r\n }\r\n else if (currChar == 2) {\r\n buildString.append('G');\r\n }\r\n else if (currChar == 3) {\r\n buildString.append('T');\r\n }\r\n }\r\n\r\n String seqString = buildString.toString();\r\n return seqString;\r\n }", "@Nonnull\n public String toBuf() {\n Buf buf = new Buf();\n Error.throwIfNeeded(jniToBuf(buf, getRawPointer()));\n return buf.getString().orElse(\"\");\n }", "public static String byteArrayToBinaryString(byte[] array) {\n\t\tStringBuilder str = new StringBuilder();\n\t\tfor(byte b : array) {\n\t\t\tstr.append((\"00000000\"+Integer.toBinaryString(b)).substring(Integer.toBinaryString(b).length()));\n\t\t\tstr.append(\" \");\n\t\t}\n\t\treturn str.toString();\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\tpublic String toString()\r\n\t{\r\n\t\tString result =\"Table:\\n\";\r\n\t\tfor (int i =0; i< this.tableSize; i++)\r\n\t\t{ \r\n\t\t\tLinkedArrays<T> L = (LinkedArrays<T>) table[i]; \r\n\t\t\tresult+= i+\": \";\r\n\t\t\tresult+= L.toString() ;\r\n\t\t\tif(i<this.tableSize-1)\r\n\t\t\t{ result +=\"\\n\"; }\r\n\t\t\t\r\n\t\t}\r\n\t\r\n\t\treturn result;\r\n\t}", "public byte[] marshall();", "@Test\n public void stringFromBytesArray() {\n byte[] input = new byte[]{\n 12,\n -68,\n 102,\n 17,\n -11,\n 84,\n 11,\n -48,\n -128,\n -102,\n 56,\n -115,\n -55,\n 90,\n 97,\n 91\n };\n\n assertEquals(\n \"0cbc6611f5540bd0809a388dc95a615b\",\n JdkHashTools.getStringFromByteArray(input)\n );\n }", "public static void printCharArray(java.io.PrintWriter ostr, String s) {\n ostr.print(\"{\");\n for (int i = 0; i < s.length(); i++) {\n ostr.print(\"0x\" + Integer.toHexString((int)s.charAt(i)) + \", \");\n }\n ostr.print(\"0}\");\n }", "public static String b2s(byte b[]) {\n\t\tint len = 0;\n\t\t\n\t\twhile (b[len] != 0) {\n\t\t\tlen += 1;\n\t\t}\n\n\t\treturn new String(b, 0, len);\n\t}", "public byte[] getBytes() {\r\n \treturn toString().getBytes();\r\n }", "com.google.protobuf.ByteString\n getS2Bytes();", "public static String bytesToString(byte[] b) {\n\t\tString s=new String(b);\n\t\treturn s.trim();\n\t}", "public String toLargeString() {\r\n\t\tStringBuilder sb=new StringBuilder();\r\n\t\tsb.append(\"DetalleTablaComplementario{\");\r\n\t\tsb.append(\"idDetalleTablaComplementario\" ).append(\"=\").append(idDetalleTablaComplementario).append(\"|\");\r\n\t\tsb.append(\"tablaAbordamiento\" ).append(\"=\").append(tablaAbordamiento).append(\"|\");\r\n\t\tsb.append(\"nombreComplementario\" ).append(\"=\").append(nombreComplementario).append(\"|\");\r\n\t\tsb.append(\"porcentaje\" ).append(\"=\").append(porcentaje).append(\"|\");\r\n\t\tsb.append(\"aplicaPax\" ).append(\"=\").append(aplicaPax).append(\"|\");\r\n\t\tsb.append(\"aplicaCantidadVuelo\" ).append(\"=\").append(aplicaCantidadVuelo).append(\"|\");\r\n\t\tsb.append(\"aplicaMaterialExtra\" ).append(\"=\").append(aplicaMaterialExtra).append(\"|\");\r\n\t\tsb.append(\"aplicaKit\" ).append(\"=\").append(aplicaKit).append(\"|\");\r\n\t\t//sb.append(\"serialVersionUID=\").append(serialVersionUID).append(\"}\");\r\n sb.append(\"}\");\r\n\t\treturn sb.toString();\r\n\t}", "public StringTable(int maxSize) \n\t{\n\t\tfor (int j = 0; j < length; j++){ //fills table with empty slots\n\t\t\tTable[j] = new Record(\" \");\n\t\t}\n\t}", "char[] toCharArray();", "public String getTabularResult() {\n StringBuilder builder = new StringBuilder();\n for (int c = 0; c < cols; ++c) {\n for (int r = 0; r < rows; ++r) {\n builder.append(puzzleMap.get(orderedKeys[r][c]).getValue());\n }\n builder.append(System.lineSeparator());\n }\n return builder.toString().trim();\n }", "static String createString(byte b[]) {\n\treturn StringConverter.byteToHex(b);\n }", "public String createTSV() throws IOException {\n\t\tStringBuilder sb = null;\n\t\tif (recordList != null) {\n\t\t\tsb = new StringBuilder();\n\t\t\tCSVPrinter csvPrinter = new CSVPrinter(sb, CSVFormat.TDF);\n\t\t\tfor (CSVRecord record : recordList) {\n\t\t\t\ttry {\n\t\t\t\t\tcsvPrinter.printRecord(record);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tcsvPrinter.close();\n\t\t\t\t\tthrow new IOException(\"cannot write record \", e);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcsvPrinter.close();\n\t\t}\n\t\treturn sb == null ? null : sb.toString();\n\t}", "public StringToStringTableVector(int blocksize)\n {\n\n m_blocksize = blocksize;\n m_mapSize = blocksize;\n m_map = new StringToStringTable[blocksize];\n }", "private byte[] get_VARCHAR_FOR_BIT_DATA(int column) {\n byte[] bytes;\n int columnLength =\n (maxFieldSize_ == 0) ? columnDataComputedLength_[column - 1] - 2 :\n Math.min(maxFieldSize_, columnDataComputedLength_[column - 1] - 2);\n bytes = new byte[columnLength];\n// System.arraycopy(dataBuffer_, columnDataPosition_[column - 1] + 2, bytes, 0, bytes.length);\n dataBuffer_.getBytes(columnDataPosition_[column - 1] + 2, bytes);\n return bytes;\n }", "public byte[] toByteArray() {\n/* 510 */ ByteBuffer buff = ByteBuffer.allocate(40).order(ByteOrder.LITTLE_ENDIAN);\n/* 511 */ writeTo(buff);\n/* 512 */ return buff.array();\n/* */ }", "private static String bytes2String(byte[] bytes) {\n StringBuffer stringBuffer = new StringBuffer();\n for (int i = 0; i < bytes.length; i++) {\n stringBuffer.append((char) bytes[i]);\n }\n return stringBuffer.toString();\n }", "@Test\n\tpublic void test_ReadAsciiString_tab_terminates() throws IOException {\n\t\tBinaryReader br = br(true, 'A', 'B', 'C', '\\t', 'D', 'E', 'F', 0, /* magic flag */ 42);\n\t\tassertEquals(\"ABC\\tDEF\", br.readAsciiString(0));\n\t}", "private static String decodeStringFromBuffer(StringBuffer buf)\n {\n String returnValue = null;\n\n if (buf != null)\n {\n StringBuffer decodedBuffer = new StringBuffer();\n char[] pair = new char[2];\n\n // get the char equivelant of each number pair + 32\n for (int numberPair = 0; numberPair < buf.length() - 1;\n numberPair += 2)\n {\n buf.getChars(numberPair, numberPair + 2, pair, 0);\n int ascii;\n\n try\n {\n ascii = Integer.valueOf(new String(pair)).intValue() + 32;\n }\n catch (NumberFormatException e)\n {\n return null;\n }\n decodedBuffer.append((char) ascii);\n }\n returnValue = decodedBuffer.toString();\n }\n return returnValue;\n }", "public static String asString(byte[] in) {\n final StringBuilder builder = new StringBuilder();\n for(byte b : in) {\n builder.append(String.format(\"%02x\", b));\n }\n return builder.toString();\n }", "static protected String[] double2String(double[][] d){ // Borrowed from JMatLink\r\nString encodeS[]=new String[d.length]; // String vector\r\n// for all rows\r\nfor (int n=0; n<d.length; n++){\r\nbyte b[] = new byte[d[n].length];\r\n// convert row from double to byte\r\nfor (int i=0; i<d[n].length ;i++) b[i]=(byte)d[n][i];\r\n\r\n// convert byte to String\r\ntry { encodeS[n] = new String(b, \"UTF8\");}\r\ncatch (UnsupportedEncodingException e) { e.printStackTrace(); }\r\n}\r\nreturn encodeS;\r\n}", "public static String byteArrayToString(byte[] array) {\n\t\tStringBuilder str = new StringBuilder();\n\t\t\n\t\t//iterate through whole array, convert each element from the array to hexadecimal string form, put a space between elements\n\t\tfor(byte b : array) {\n\t\t\tstr.append(String.format(\"%02X\", b));\n\t\t\tstr.append(\" \");\n\t\t}\n\t\treturn str.toString();\n\t}", "public String toString() { return new String(b,0,i_end); }", "@Override\n\tpublic String toString()\n\t{\n\t\treturn new String(bytes);\n\t}", "private static byte[] hexStringToByteArray(String s) {\n\t\tint len = s.length();\n\t\tbyte[] data = new byte[len / 2];\n\t\tfor (int i = 0; i < len; i += 2) {\n\t\t\tdata[i / 2] = (byte) ((Character.digit(s.charAt(i), 16) << 4)\n\t\t\t\t\t+ Character.digit(s.charAt(i+1), 16));\n\t\t}\n\t\treturn data;\n\t}", "com.google.protobuf.ByteString\n getToBytes();", "private static String toPcapString( byte[] packet )\n {\n int pcapLen = PCAP_GLOBAL_HEADER_LEN + PCAP_RECORD_HEADER_LEN + packet.length;\n ByteBuffer buf = ByteBuffers.allocate(pcapLen, BufferType.ARRAY_BACKED);\n putGlobalHeader(buf);\n putRecordHeader(buf, packet.length);\n buf.put(packet);\n buf.flip();\n return toBashBytes(buf);\n }", "public static String byteArrayToString(byte[] ba) {\n return new String(ba, Charset.forName(CommonDefs.CHARSET)).trim();\n }", "public static String bufferToString(Buffer buffer) {\n return buffer.readString(Charset.defaultCharset());\n }", "public abstract byte[] toByteArray();", "public abstract byte[] toByteArray();", "private static void spacesToBinary() {\n\t\tString stringBinary = \"\"; \n\t\tfor(int i = 0; i < spaces.length; i++) {\n\t\t\tif(spaces[i].length() % 2 == 0) { stringBinary += \"1\"; }\n\t\t\telse if(spaces[i].length() % 2 == 1) { stringBinary += \"0\"; }\n\n\t\t\tif(i != 0 && (i+1) % 5 == 0) {\n\t\t\t\tbinary.add(stringBinary);\n\t\t\t\tstringBinary = \"\";\n\t\t\t} \n\t\t\telse if(i+1 == spaces.length) {\n\t\t\t\tfor(int k = (i+1)%5; k < 5; k++) {\n\t\t\t\t\tstringBinary += \"0\";\n\t\t\t\t}\n\t\t\t\tbinary.add(stringBinary);\n\t\t\t\tstringBinary = \"\";\n\t\t\t}\n\t\t}\n\t}", "public String toStringTabbed(int tabs){\n StringBuilder b = new StringBuilder();\n for(int i = 0; i < tabs; i++){\n b.append(\"\\t\");\n }\n b.append(\"while (\" + bExpression.toString() + \")\\n\" + s1.toStringTabbed(tabs+1));\n return b.toString();\n \n }", "public static int unserializeString(byte[] arr, int offset, StringBuffer sb) {\n\t\tint i;\n\t\tint len;\n\t\tbyte[] str_byte;\n\t\n\t\tlen = unserializeUint32(arr, offset);\n\t\toffset += 4;\n\t\tstr_byte = new byte[len];\n\t\tfor (i = 0; i < len; i++)\n\t\t\tstr_byte[i] = arr[offset + i];\n\t\n\t\tsb.append(new String(str_byte));\n\t\treturn offset + len;\n\t}", "@Test\n public void toStringTest() {\n\n FaithCell[] cells = new FaithCell[25];\n\n cells[21] = new FaithCell(0, 0);\n\n String testString = \"0 0\";\n\n assertArrayEquals(testString.toCharArray(), cells[21].toString().toCharArray());\n }", "public static String convert(byte[] bytes) {\n/* 34 */ StringBuffer sb = new StringBuffer(bytes.length * 2);\n/* 35 */ for (int i = 0; i < bytes.length; i++) {\n/* 36 */ sb.append(hexs[bytes[i] >> 4 & 0xF]);\n/* 37 */ sb.append(hexs[bytes[i] & 0xF]);\n/* */ } \n/* 39 */ return sb.toString();\n/* */ }", "public String byteToChar(byte b[], String encoding);", "private byte[] toByteArray(String s)\r\n\t\t{\n\t\t\tlong l = 0;\r\n\t\t\tif (s.startsWith(\"0x\") || s.startsWith(\"0X\")) {\r\n\t\t\t\tfinal byte[] d = new byte[(s.length() - 1) / 2];\r\n\t\t\t\tint k = (s.length() & 0x01) != 0 ? 3 : 4;\r\n\t\t\t\tfor (int i = 2; i < s.length(); i = k, k += 2)\r\n\t\t\t\t\td[(i - 1) / 2] = (byte) Short.parseShort(s.substring(i, k), 16);\r\n\t\t\t\treturn d;\r\n\t\t\t}\r\n\t\t\telse if (s.length() > 1 && s.startsWith(\"0\"))\r\n\t\t\t\tl = Long.parseLong(s, 8);\r\n\t\t\telse if (s.startsWith(\"b\"))\r\n\t\t\t\tl = Long.parseLong(s.substring(1), 2);\r\n\t\t\telse\r\n\t\t\t\tl = Long.parseLong(s);\r\n\t\t\tint i = 0;\r\n\t\t\tfor (long test = l; test != 0; test /= 0x100)\r\n\t\t\t\t++i;\r\n\t\t\tfinal byte[] d = new byte[i == 0 ? 1 : i];\r\n\t\t\tfor (; i-- > 0; l /= 0x100)\r\n\t\t\t\td[i] = (byte) (l & 0xff);\r\n\t\t\treturn d;\r\n\t\t}", "com.google.protobuf.ByteString\n getS8Bytes();", "public String getData() {\n \n String str = new String();\n int aux;\n\n for(int i = 0; i < this.buffer.size(); i++) {\n for(int k = 0; k < this.buffer.get(i).size(); k++) {\n aux = this.buffer.get(i).get(k);\n str = str + Character.toString((char)aux);\n }\n str = str + \"\\n\";\n }\n return str;\n }", "private static byte[] hexStringToByteArray(String s) {\n final int len = s.length();\n final byte[] data = new byte[len / 2];\n \n for (int i = 0; i < len; i += 2) {\n data[i / 2] = (byte) ((Character.digit(s.charAt(i), 16) << 4)\n + Character.digit(s.charAt(i + 1), 16));\n }\n \n return data;\n }", "public byte[] toBytes () {\n return toTuple().toBytes();\n }", "private String byteToString(byte[] bytes) {\n String bytesInStringForm = \"\";\n for (int byteChecked = 0; byteChecked < bytes.length; byteChecked++) {\n bytesInStringForm += (Integer.toString(bytes[byteChecked]));\n bytesInStringForm += (\",\");\n }\n return bytesInStringForm;\n }", "private String[][] getTableData (JTable table,int[] dim) {\n\t DefaultTableModel model = (DefaultTableModel) table.getModel();\n\t int rowNo = model.getRowCount(), colNo = model.getColumnCount();\n\t dim[0] = rowNo;\n\t dim[1] = colNo;\n\t logInfo(\"rowNo:\"+rowNo+\" colNo:\"+colNo);\n\t String[][] tableData = new String[rowNo][colNo];\n\t for (int i = 0 ; i < rowNo ; i++) {\n\t for (int j = 0 ; j < colNo ; j++) {\n\t tableData[i][j] = model.getValueAt(i, j) != null ? model.getValueAt(i,j).toString() : \"\\\"\\\"\";\n\t logInfo(\"i:\"+i+\" j:\" + j + \" \" + tableData[i][j]);\n\t }\n\t }\n\t return tableData;\n\t}", "public String toString() {\n return Util.bytesToHex(getByteArray());\n }", "private byte[] toBytes(String obj){\n return Base64.getDecoder().decode(obj);\n }", "public String tab(String str) {\n if (str == null || str.trim().isEmpty()) {\n return str;\n }\n str = str.replaceAll(\"\\n\\t\", \"\\n\\t\\t\");\n str = str.replaceAll(\"\\n<\", \"\\n\\t<\");\n return \"\\t\" + str;\n }", "@Override\n\tpublic String[] toArray() {\n\t\tString strHostName = null;\n\t\ttry {\n\t\t\tstrHostName = InetAddress.getLocalHost().getHostAddress();\n\t\t} catch (UnknownHostException ex) {\n\t\t\tstrHostName = \"127.0.0.1\";\n\t\t}\n\t\tstrValue[0] = \"*LINX\"; // 0 :\n\t\tstrValue[1] = strHostName; // 1 :\n\t\tstrValue[5] = \"213\"; // 5 :\n\t\tstrValue[7] = \"0200\"; // 7 :\n\t\tstrValue[8] = \"*DSP\"; // 8 :\n\t\tstrValue[9] = \"MBSD\"; // 9 :\n\t\tstrValue[10] = \"*LINX\"; // 10 :\n\t\tstrValue[14] = \"01\"; // 14 :\n\t\tstrValue[17] = \"BBMBSLNINQFNC\"; // 17 :\n\t\tstrValue[22] = \"1\"; // 22 :\n\t\tstrValue[23] = \"10\"; // 23 :\n\t\tstrValue[24] = calla.getTeller(); // 24 :\n\t\tstrValue[25] = strHostName; // 25 :\n\t\tstrValue[26] = \"86305\"; // 26 :\n\t\tstrValue[27] = \"N\"; // 27 :\n\t\tstrValue[31] = calla.getTeller(); // 31 : User ID\n\t\tstrValue[32] = \"1\"; // 32 : Reference Number\n\t\tstrValue[34] = \"*END\"; // 34 : End of Group Indicator\n\t\tstrValue[36] = \"BTS\"; // 36 : Source ID\n\t\tstrValue[37] = \"RBS\"; // 37 : Destination ID\n\t\tstrValue[39] = strHostName; // 39 : Terminal ID\n\t\tstrValue[40] = \"27\"; // 40 : Bank Number\n\t\tstrValue[41] = calla.getBranch(); // 41 : Branch\n\t\t\t\t\t\t\t\t\t\t\t// Number\n\t\tstrValue[45] = \"86305\"; // Transaction Code\n\t\tstrValue[46] = \"I\"; // \"D\",\"C\" Action Code\n\t\tstrValue[47] = \"R\"; // Transaction Mode\n\t\tstrValue[48] = \"1\"; // No. Of Records To Retrieve\n\t\tstrValue[49] = \"N\"; // More Records Indicator\n\t\tstrValue[50] = \"F\"; // Search Method\n\t\tstrValue[56] = \"D\"; // 56 : Response Reason For Code 3\n\t\tstrValue[67] = calla.getApplicationNo(); // Account number\n\t\tstrValue[68] = calla.getFacilityCode(); // 240\n\t\tstrValue[69] = calla.getFacId();//\n\t\tstrValue[70] = calla.getCollateralId(); //\n\n\t\treturn strValue;\n\t}", "private String bytesToString(byte[] someBytes) {\n String retStr = \"\";\n\n for (int i = 0; i < someBytes.length; ++i) {\n retStr += \" \" + someBytes[i];\n }\n\n return retStr;\n }", "public byte[] getTextBytes();", "@Override\n\t\tpublic byte[] convert(String s) {\n\t\t\treturn s.getBytes();\n\t\t}", "public String getString_data() { \n char carr[] = new char[Math.min(net.tinyos.message.Message.MAX_CONVERTED_STRING_LENGTH,60)];\n int i;\n for (i = 0; i < carr.length; i++) {\n if ((char)getElement_data(i) == (char)0) break;\n carr[i] = (char)getElement_data(i);\n }\n return new String(carr,0,i);\n }", "public abstract String toString(String bin);", "public byte[] export() {\n\t\tByteArrayOutputStream bos = new ByteArrayOutputStream();\n\t\ttry {\n\t\t\tfor (Ligne ligne : lignes) {\n\t\t\t\tif (ligne.getTraduit() != null) {\n\t\t\t\t\tbos.write(ligne.getTraduit().getBytes());\n\t\t\t\t} else {\n\t\t\t\t\tbos.write(ligne.getOriginal().getBytes());\n\t\t\t\t}\n\t\t\t\tbos.write(\"\\r\\n\".getBytes());\n\t\t\t}\n\t\t} catch (IOException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t\t\n\t\treturn bos.toByteArray();\n\t}", "private static String m3299b(byte[] bArr, String str) throws C1108a {\n try {\n return new String(f3068kj.mo6438c(bArr, str), \"UTF-8\");\n } catch (C1157a e) {\n throw new C1108a(e);\n } catch (UnsupportedEncodingException e2) {\n throw new C1108a(e2);\n }\n }", "private String m34491a(byte[] bArr) {\n StringBuilder sb = new StringBuilder(bArr.length);\n for (byte b : bArr) {\n String hexString = Integer.toHexString(((char) b) & 255);\n if (hexString.length() < 2) {\n sb.append(0);\n }\n sb.append(hexString.toUpperCase());\n }\n return sb.toString();\n }", "private static String m5291a(byte[] bArr) {\n StringBuffer stringBuffer = new StringBuffer();\n for (byte b : bArr) {\n String hexString = Integer.toHexString(b & 255);\n if (hexString.length() == 1) {\n stringBuffer.append('0');\n }\n stringBuffer.append(hexString);\n }\n return stringBuffer.toString();\n }", "public byte[] exportWithSize()\n\t{\n\t\tByteBuffer tmp = ByteBuffer.allocate(4);\n\t\ttmp.order(ByteOrder.LITTLE_ENDIAN);\n\t\ttmp.putInt(bytesUsed);\n\t\t\n\t\tbyte[] newdata = new byte[bytesUsed+4];\n\n\t\tSystem.arraycopy(tmp.array(), 0, newdata, 0, 4);\n\t\tSystem.arraycopy(buf.array(), 0, newdata, 4, bytesUsed);\n\t\treturn newdata;\n\t}", "private String asString(ByteBuffer buffer) {\n\t\tByteBuffer copy = buffer.duplicate();\n\t\tbyte[] bytes = new byte[copy.remaining()];\n\t\tcopy.get(bytes);\n\t\treturn new String(bytes, StandardCharsets.UTF_8);\n\t}", "public String[] asStringArray() {\n\t\tString array[] = new String[4];\n\t\tarray[0] = \"Name: \" + this.name;\n\t\tarray[1] = \"Money: \" + Double.toString(this.money);\n\t\tarray[2] = \"On table: \" + Double.toString(onTable);\n\t\tif (this.getBlind() == Blind.NONE) {\n\t\t\tarray[3] = \"\";\n\t\t} else {\n\t\t\tarray[3] = \"Blind \" + this.blind.name();\n\t\t}\n\t\treturn array;\n\t}", "public static final byte[] encodeQuotedPrintable(BitSet printable, byte[] pArray) {\n if (pArray == null) {\n return null;\n }\n if (printable == null) {\n printable = PRINTABLE_CHARS;\n }\n ByteArrayOutputStream buffer = new ByteArrayOutputStream();\n for (int i = 0; i < pArray.length; i++) {\n int b = pArray[i];\n if (b < 0) {\n b = 256 + b;\n }\n if (printable.get(b)) {\n buffer.write(b);\n } else {\n encodeQuotedPrintable(b, buffer);\n }\n }\n return buffer.toByteArray();\n }", "private byte[] convertingTobyteArray(String result) {\n String[] splited = result.split(\"\\\\s+\");\n byte[] valueByte = new byte[splited.length];\n for (int i = 0; i < splited.length; i++) {\n if (splited[i].length() > 2) {\n String trimmedByte = splited[i].split(\"x\")[1];\n valueByte[i] = (byte) convertstringtobyte(trimmedByte);\n }\n\n }\n return valueByte;\n\n }", "public static final <T> StrBuilder ARRAY_TO_STRING(T[][] ar){\n\t\tStrBuilder ret = new StrBuilder(50);\n\t\tfor(int row=0; row<ar.length; row++){ //TODO not null save\n\t\t\tif(ar[row]==null){\n\t\t\t\tret.append(\"[\").append(row).appendln(\"]: null\");\n\t\t\t}\n\t\t\telse if(ar[row].length==0){\n\t\t\t\tret.append(\"[\").append(row).appendln(\"]: 0\");\n\t\t\t}\n\t\t\telse{\n\t\t\t\tfor(int col=0; col<ar[row].length; col++){\n\t\t\t\t\tret.append(\"[\").append(row).append(\"][\").append(col).append(\"]: \");\n\t\t\t\t\tif(ar[row][col]==null){\n\t\t\t\t\t\tret.appendln(\"null\");\n\t\t\t\t\t}\n\t\t\t\t\telse if(\"\".equals(ar[row][col])){\n\t\t\t\t\t\tret.appendln(\"0\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tret.appendln(ar[row][col]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn ret;\n\t}", "public String toString() \r\n {\r\n \treturn new String(buf, 0, count);\r\n }", "public static String writeBytes(byte[] bytes) {\n\n StringBuffer stringBuffer = new StringBuffer();\n\n for (int i = 0; i < bytes.length; i++) {\n\n // New line every 4 bytes\n if (i % 4 == 0) {\n\n stringBuffer.append(\"\\n\");\n }\n\n stringBuffer.append(writeBits(bytes[i]) + \" \");\n }\n\n return stringBuffer.toString();\n\n }", "com.google.protobuf.ByteString\n getSBytes();", "@NonNull\n public static String byteToString(byte[] byteArray) throws UnsupportedEncodingException\n {\n return new String(byteArray, \"UTF-8\");\n }", "public String getTableFormat(){\n String tableToPrint = \"\";\n Enumeration keys = this.clientData.keys();\n while(keys.hasMoreElements()){\n String clientName = (String) keys.nextElement();\n tableToPrint += \"\\t\" + clientName + this.clientData.get(clientName) + '\\n';\n }\n return tableToPrint.substring(0,tableToPrint.length() - 1);\n }", "public abstract String[] createTablesStatementStrings();" ]
[ "0.61049664", "0.5508162", "0.55020434", "0.51414573", "0.511175", "0.50917524", "0.50467396", "0.50467396", "0.5031013", "0.5027355", "0.4979949", "0.49751234", "0.49475336", "0.49294218", "0.49123445", "0.48876968", "0.48745722", "0.48730588", "0.48670438", "0.4856325", "0.48023948", "0.47860682", "0.47815555", "0.4768743", "0.47641015", "0.4742601", "0.47161064", "0.47125745", "0.47090027", "0.46933386", "0.46718207", "0.46715996", "0.46639052", "0.465573", "0.46552727", "0.46482953", "0.4645299", "0.46414334", "0.46232158", "0.4623102", "0.46113595", "0.46077824", "0.4575268", "0.4573163", "0.4567906", "0.4557076", "0.45563543", "0.45458385", "0.45407677", "0.4540447", "0.4536949", "0.45308593", "0.45301256", "0.4528526", "0.4525099", "0.451683", "0.451336", "0.450724", "0.45041597", "0.45018438", "0.4501443", "0.4501443", "0.44989255", "0.44987184", "0.44963047", "0.4495895", "0.44904944", "0.44892678", "0.44835666", "0.44800374", "0.44720957", "0.4459405", "0.44584668", "0.4452741", "0.44502178", "0.44409224", "0.4438621", "0.44364986", "0.44344854", "0.44309276", "0.44177178", "0.44078436", "0.43988448", "0.4398419", "0.4398395", "0.4384504", "0.43759546", "0.437588", "0.436989", "0.43652537", "0.43590164", "0.43572834", "0.43509436", "0.43436015", "0.43375582", "0.43363133", "0.43360084", "0.4334763", "0.43215582", "0.43196958" ]
0.48938146
15
/ Create constructor without arguments. and declare exception
protected MyRemoteImp1() throws RemoteException { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(expected = IllegalArgumentException.class)\r\n public void constructorExceptionTest(){\n Owner invalid = new Owner(\"First\", \"Last\", \"333\");\r\n }", "public CIMException() {\n\t\tthis((String) null, (Object[]) null);\n\t}", "public JavaException()\r\n\t{\r\n\t\tsuper();\r\n\t}", "public Exception() {\n\t\t\tsuper();\n\t\t}", "public Exception() {\n\tsuper();\n }", "public TechnicalException() {\r\n }", "public SMSLibException() {}", "@Test\r\n public void testBadConstructor() {\r\n try {\r\n SnakeSquare instance = new SnakeSquare(33,44);\r\n fail();\r\n } catch (IllegalArgumentException e) { }\r\n }", "public PriceModelException() {\n\n }", "public NoTraceOntimizeJEEException() {\r\n this((String) null);\r\n }", "private Consts(){\n //this prevents even the native class from \n //calling this ctor as well :\n throw new AssertionError();\n }", "private Ex() {\n }", "@Test( expected = IllegalStateException.class )\n\tpublic void constructorShouldNotBeInstantiable() {\n\t\tnew ReflectionUtil() {\n\t\t\t// constructor is protected\n\t\t};\n\t}", "MyException(String str)\n {\n //parametrize constructor\n super(str);\n }", "public ShieldException() {\n }", "public TypeException() {\n }", "private Instantiation(){}", "public SucheException() {\n }", "public DataAccessLayerException() {\n }", "@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }", "public CanyonException()\r\n {\r\n super();\r\n }", "public void testCtor1() {\r\n try {\r\n new DbBaseFilterFactory(null);\r\n fail(\"IllegalArgumentException expected.\");\r\n } catch (IllegalArgumentException iae) {\r\n //good\r\n }\r\n }", "public DynamicDeckDynamoException() {\n }", "public TrafficspacesAPIException() {\n \tthis(null, DEFAULT_MESSAGE);\n }", "public void testConstructorWithNullArgument() throws Exception {\r\n try {\r\n new ConfigurationObjectSpecificationFactory(null);\r\n fail(\"IllegalArgumentException is expected.\");\r\n } catch (IllegalArgumentException e) {\r\n // ok\r\n }\r\n }", "public DataControlException() {\r\n }", "private Constructor getConstructor() throws Exception {\r\n return type.getConstructor(Contact.class, label, Format.class);\r\n }", "public void testCreationWithInvalidArguments() throws Exception {\n try {\n new Experiment(null, 1L, Arrays.asList(1L));\n fail(\"Expected exception.\");\n } catch (NullPointerException expectedSoIgnore) {}\n\n try {\n new Experiment(experimentDb, 0L, Arrays.asList(1L));\n fail(\"Expected IllegalArgumentException.\");\n } catch (IllegalArgumentException expectedSoIgnore) {}\n\n try {\n new Experiment(experimentDb, 1L, null);\n fail(\"Expected IllegalArgumentException.\");\n } catch (IllegalArgumentException expectedSoIgnore) {}\n\n try {\n new Experiment(experimentDb, 1L, Collections.<Long>emptyList());\n fail(\"Expected IllegalArgumentException.\");\n } catch (IllegalArgumentException expectedSoIgnore) {}\n }", "private Example() {\n\t\tthrow new Error(\"no instantiation is permitted\");\n\t}", "protected abstract void construct();", "public ArgumentException() {\n super(\"Wrong arguments passed to function\");\n }", "public OrderServiceSecurityException() {\n\t}", "Reproducible newInstance();", "public OLMSException() {\r\n super();\r\n }", "public ExceptionUtils()\n {\n // nothing to do\n }", "public NoSolutionException() {\n }", "public FullCarException() {\r\n super(\"\");\r\n }", "@Test\n\tvoid testConstructor() {\n\t\tassertDoesNotThrow(() -> {UdpCommunicator communicator = this.getCommunicatorImplementation(64324);});\n\t\tassertThrows(IllegalArgumentException.class, () -> {UdpCommunicator communicator = this.getCommunicatorImplementation(-54);});\n\t\tassertThrows(IllegalArgumentException.class, () -> {UdpCommunicator communicator = this.getCommunicatorImplementation(70000);});\n\t}", "public void testCtor_Failure() {\r\n try {\r\n new TCAuthToken(0);\r\n fail(\"IllegalArgumentException is expected.\");\r\n } catch (IllegalArgumentException e) {\r\n //success\r\n }\r\n }", "public static NewExpression new_(Constructor constructor) { throw Extensions.todo(); }", "public BusinessObjectException() {\r\n super();\r\n }", "public XDBBaseException() {\n }", "public MyMoneyException() {\r\n\t\tsuper();\r\n\t}", "public void testCtor_ProjectConfigurationException() {\n System.setProperty(\"exception\", \"ProjectConfigurationException\");\n try {\n new AddActionStateAction(state, activityGraph, manager);\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException iae) {\n //good\n } finally {\n System.clearProperty(\"exception\");\n }\n }", "public negativeNumberException() {\r\n\t \t \r\n\t }", "public CalculadoraException() {\r\n }", "public void testCtorIllegalArgumentException() {\r\n try {\r\n new FileSystemPersistence(0);\r\n fail(\"if the int argument is not positive, throw IllegalArgumentException\");\r\n } catch (IllegalArgumentException e) {\r\n // good\r\n }\r\n try {\r\n new FileSystemPersistence(-1);\r\n fail(\"if the int argument is not positive, throw IllegalArgumentException\");\r\n } catch (IllegalArgumentException e) {\r\n // good\r\n }\r\n }", "public OperationException() {\n super();\n }", "private ErrorFactory() {\r\n\t}", "public ElFicheroNoExisteException() {\n }", "public VariableNotSetException() {\n }", "public InvalidBrainException() {\n }", "public void testCtor_Failure1() {\r\n try {\r\n new TCAuthToken(-2);\r\n fail(\"IllegalArgumentException is expected.\");\r\n } catch (IllegalArgumentException e) {\r\n //success\r\n }\r\n }", "public HttpException() {\n }", "defaultConstructor(){}", "public void testCtor_NullManager() {\n try {\n new AddActionStateAction(state, activityGraph, null);\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException iae) {\n //good\n }\n }", "public NSException() {\n\t\tsuper();\n\t\tthis.exception = new Exception();\n\t}", "GitletException() {\n super();\n }", "public GameBuyException() {\n }", "public NotSearchableException() {\n }", "@SuppressWarnings(\"unused\")\r\n\tprivate TransporterException(){\r\n\t\t\r\n\t}", "public CircleWithException() {\n this(1.0);\n }", "public Error() {\n }", "public GotNullException(String message)\n {\n super(message);\n }", "public MyException() {\n super(\"This is my message. There are many like it but this one is mine.\");\n }", "public SearchException() {\n }", "public LexerException() {\n\n\t}", "public SmppException() {\n\t\tsuper();\n\t}", "public void testCtorNPE() {\r\n try {\r\n new UploadRequestValidator(null);\r\n fail(\"if the argument is null, throw NullPointerExcetpion\");\r\n } catch (NullPointerException e) {\r\n // good\r\n }\r\n }", "public GeocodingException() {\n\t}", "public MissingArgumentException() {\n super(\"No Arguments Provided.\");\n }", "public UnmatchedException(){\r\n\r\n\t}", "void DefaultConstructor(){}", "public void testCtor1Accuracy() {\n ContestEligibilityValidatorException exception = new ContestEligibilityValidatorException();\n assertNotNull(\"Unable to instantiate ContestEligibilityValidatorException.\", exception);\n }", "@Test\n public void testConstructorWithMessageAndCause()\n {\n final RuntimeException cause = new RuntimeException();\n final LoaderException e = new LoaderException(\"Custom message\", cause);\n assertEquals(\"Custom message\", e.getMessage());\n assertEquals(cause, e.getCause());\n }", "@Test\n public void testConstructorWithMessage()\n {\n final LoaderException e = new LoaderException(\"Custom message\");\n assertEquals(\"Custom message\", e.getMessage());\n }", "public QueryException() {\n\n }", "public void testConstructorNPE2() {\r\n try {\r\n new SimpleCreditCardValidator(null, new ValidationLUHN());\r\n fail(\"an NPE is expected\");\r\n }\r\n catch (NullPointerException npe) {\r\n //pass\r\n }\r\n }", "public MessageParseException() {\n }", "public ShopingCartException() {\n\tsuper(); // call superclass constructor\n\tmistake = \"unknown\";\n }", "public ItemInvalidoException() {\r\n }", "public BadDiceException() {\n }", "public void testCtor_NullState() {\n try {\n new AddActionStateAction(null, activityGraph, manager);\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException iae) {\n //good\n }\n }", "public ParseException() {\n super();\n specialConstructor = false;\n }", "private ExceptionLogger() {\n }", "@Test\n public void testConstructorEmptyName() {\n String name = \"\";\n int cost = 10;\n\n assertThrows( IllegalArgumentException.class, () -> {\n Modifier m = new Modifier(name, cost) {\n @Override\n public int getValue() {\n return 0;\n }\n };\n });\n }", "public void testConstructorNPE1() {\r\n try {\r\n new SimpleCreditCardValidator(null);\r\n fail(\"an NPE is expected\");\r\n }\r\n catch (NullPointerException npe) {\r\n //pass\r\n }\r\n }", "public void testCtor_NullActivityGraph() {\n try {\n new AddActionStateAction(state, null, manager);\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException iae) {\n //good\n }\n }", "@Test(expected = IllegalArgumentException.class)\n public void testCtor_null_argument() throws Exception {\n new DefaultProjectPaymentCalculator(null);\n }", "public ScheduleException() {\r\n }", "public NEOLoggerException()\n {\n }", "public MRFException() {\n\t\tsuper();\n\t}", "private ExampleVersion() {\n throw new UnsupportedOperationException(\"Illegal constructor call.\");\n }", "@Test\n public void exampleTest1() {\n \ttry {\n \t\tVersion version = new Version(null);\n \t} catch(IllegalArgumentException e) {\n \t\tAssert.assertEquals(errorVersionMustNotBeNull, e.getMessage());\n \t} catch(Exception e) {\n \t\tAssert.fail(\"No exception thrown when null version passed to constructor: \"+e.getClass().getName()+\" \"+e.getMessage());\n \t}\n }", "public OfferingException() {\n }", "@Test(expected = IllegalArgumentException.class)\r\n public void creacionIncorrecta() throws IllegalArgumentException {\r\n P = new Partido(\"Camp Nou\",\"28-04-2010\");\r\n }", "@Test\n public void testConstructorNegativeCost() {\n String name = \"A modifier\";\n int cost = -1;\n\n assertThrows( IllegalArgumentException.class, () -> {\n Modifier m = new Modifier(name, cost) {\n @Override\n public int getValue() {\n return 0;\n }\n };\n });\n }", "private TemplateFactory(){\n //AssertionError不是必须的. 但它可以避免不小心在类的内部调用构造器. 保证该类在任何情况下都不会被实例化.\n //see 《Effective Java》 2nd\n throw new AssertionError(\"No \" + getClass().getName() + \" instances for you!\");\n }", "public DaoException() {\r\n\t\tsuper();\r\n\t}", "@Test\r\n public void testCtorLegalName1() throws IllegalUserNameLengthException,\r\n IllegalUserUsernameLengthException, IllegalUserNameException, IllegalUserRoleException,\r\n IllegalUserUsernameException {\r\n new User(\"username\", Role.DONOR, \"ed\");\r\n }", "public PreparationException() {\n\t\tsuper();\n\t}" ]
[ "0.74116397", "0.72845733", "0.710491", "0.71031624", "0.7073247", "0.70722723", "0.70673156", "0.70278335", "0.69564897", "0.69502455", "0.69192356", "0.68963397", "0.68930095", "0.68844116", "0.6881135", "0.687869", "0.685766", "0.6851045", "0.68504614", "0.6837691", "0.68186086", "0.6808875", "0.6800228", "0.6798876", "0.67957073", "0.67807615", "0.6767177", "0.6761652", "0.67585796", "0.67582655", "0.6739249", "0.67283237", "0.6717028", "0.6712011", "0.6710049", "0.6709932", "0.67039216", "0.66914123", "0.66625506", "0.6653394", "0.66487247", "0.66373116", "0.6619906", "0.6613629", "0.66033095", "0.65997815", "0.659825", "0.6588683", "0.65797305", "0.6577105", "0.6576356", "0.65663713", "0.6566293", "0.656322", "0.6551616", "0.65487814", "0.6548672", "0.65319014", "0.6523827", "0.6517406", "0.6515649", "0.65119034", "0.65037686", "0.65032566", "0.6500533", "0.64924026", "0.6490409", "0.6489598", "0.64883757", "0.64877945", "0.64818776", "0.64797956", "0.64759547", "0.6462714", "0.6458542", "0.6452935", "0.6452476", "0.64240885", "0.6416882", "0.64084285", "0.6402966", "0.6397586", "0.6395998", "0.63925505", "0.6389651", "0.63871723", "0.6385486", "0.638404", "0.63762414", "0.6369197", "0.63657415", "0.6357579", "0.6356999", "0.63524985", "0.6350874", "0.6348793", "0.63406837", "0.6340422", "0.63259476", "0.6318054", "0.6316254" ]
0.0
-1
/ Add service in RMI
public static void main(String[] args) { try { MyRemote service = new MyRemoteImp1(); Naming.rebind("Remote Hello", service); } catch (Exception ex) { ex.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract T addService(ServerServiceDefinition service);", "void addService(ServiceInfo serviceInfo);", "void addHost(Service newHost);", "public void registerService(String serviceName, Object service);", "public interface DemoService extends Remote {\r\n public final static String SERVICE_NAME = \"DemoService\";\r\n \r\n public String doTask(String[] args) throws RemoteException;\r\n}", "public void addService() throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"service\",\n null,\n childrenNames());\n }", "public void addService() throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"service\",\n null,\n childrenNames());\n }", "public void registerService(String serviceName){\n jmc.registerService(serviceName);\n }", "public static void main(String[] args) throws RemoteException{\n \r\n Registry registry= LocateRegistry.createRegistry(5099); //registrar a nuestro cliente \r\n registry.rebind(\"hello\", new ObjectRemote());\r\n }", "private void registerService() {\r\n DFAgentDescription desc = new DFAgentDescription();\r\n desc.setName(getAID());\r\n ServiceDescription sd = new ServiceDescription();\r\n sd.setType(SERVICE_TYPE);\r\n sd.setName(SERVICE_NAME);\r\n desc.addServices(sd);\r\n try {\r\n DFService.register(this, desc);\r\n } catch (FIPAException e) {\r\n e.printStackTrace(System.err);\r\n }\r\n }", "public interface ILamportServer extends Remote {\n public String SERVICE_NAME = \"LAMPORT_RMI\"; // Nom du service\n \n /**\n * Envoie un Message REQUEST aux autres serveurs pour annoncer le fait de \n * vouloir rentrer dans la section critique\n * @param message Le message envoyé avec une requête\n * @throws RemoteException \n */\n public void request(Message message) throws RemoteException;\n \n /**\n * Envoi du Message RESPONSE après avoir Reçu le Message REQUEST\n * @param message Le message envoyé avec une réponse\n * @throws RemoteException \n */\n public void response(Message message) throws RemoteException;\n \n /**\n * Envoie du message FREE pour indiquer aux autres serveur que l'on sort de\n * la section critique\n * @param message Le message envoyé pour libérer la section critique\n * @throws RemoteException \n */\n public void freeSC(Message message) throws RemoteException;\n \n /**\n * Métode pour modifier la variable globalle dans tous les serveurs\n * @param newValue La nouvelle valeur de la variable\n * @throws RemoteException \n */\n public void setVariableGlobally(int newValue) throws RemoteException;\n}", "public interface Service extends AsyncRunnable, Remote {\n\n\tint registryPort() throws RemoteException;\n\n\tString name() throws RemoteException;\n}", "public interface RegistryReplicationService extends RegistryService {\n\n GetServicesResponse getServices(GetServicesRequest request);\n\n}", "public void addServiceImpl(String serviceName, FileObject configFile, boolean fromWSDL);", "public void serviceAdded(ServiceDescription service) {\n System.out.println(\"service added\");\n current = service;\n //set up channel to communicate with server\n //multiple beds -> multiple channels\n channel = ManagedChannelBuilder.forAddress(service.getAddress(), service.getPort())\n .usePlaintext(true)\n .build();\n\n //To call service methods, we first need to create a stub, \n //a blocking/synchronous stub: this means that the RPC call waits for the server to respond, \n //and will either return a response or raise an exception.\n blockingStub = ProjectorGrpc.newBlockingStub(channel);\n\n activateProjector();\n //listInputs();\n\n }", "public interface RMIInterface extends Remote {\n\n public String helloTo(String name) throws RemoteException;\n\n}", "public interface ExportableServiceConduit\r\n{\r\n /**\r\n * Register a service as added.\r\n * \r\n * @param serviceID an identifier for the service which should be unique within the meem server.\r\n * @param service the object providing the service.\r\n * @param itemList a list of Jini Entry objects.\r\n */\r\n public void serviceAdded(String serviceID, Remote service, List<?> itemList);\r\n\r\n /**\r\n * Register a service as removed.\r\n * \r\n * @param serviceID an identifier for the service which should be unique within the meem server.\r\n */\r\n public void serviceRemoved(String serviceID);\r\n}", "public static void main(String[] args) throws RemoteException, MalformedURLException {\n\t\tAddC add = new AddC(); \r\n\t\tNaming.rebind(\"ADD\", add);\r\n\t\tSystem.out.println(\"Server Up and running\");\r\n\t}", "public abstract void add(String element) throws RemoteException;", "private void initRMI() throws RemoteException {\n log.info(\"Registering with RMI\");\n Registry registry = LocateRegistry.getRegistry();\n registry.rebind(address, this);\n }", "public void startClient() throws RemoteException {\n\t\t\n\t\t// object to be passed to server\n\t\tString[] details = { name, dob, country, clientServiceName, hostName };\n\n\t\t// creating server stub \n\t\ttry {\n\t\t\tNaming.rebind(\"rmi://\" + hostName + \"/\" + clientServiceName, this);\n\t\t\tIServer = (IChatServer) Naming.lookup(\"rmi://\" + hostName + \"/\" + serviceName);\n\t\t} catch (ConnectException e) {\n\t\t\tJOptionPane.showMessageDialog(chatGUI.frame, \"The server seems to be unavailable\\nPlease try later\",\n\t\t\t\t\t\"Connection problem\", JOptionPane.ERROR_MESSAGE);\n\t\t\tconnectionProblem = true;\n\t\t\te.printStackTrace();\n\t\t} catch (NotBoundException | MalformedURLException me) {\n\t\t\tconnectionProblem = true;\n\t\t\tme.printStackTrace();\n\t\t}\n\t\t// if no problem sends details object to the server to be processed\n\t\tif (!connectionProblem) {\n\t\t\tIServer.initiateRegister(details);\n\n\t\t}\n\t\t// print this if it was able to reach this point\n\t\tSystem.out.println(\"Client Listen RMI Server is running...\\n\");\n\t}", "public static void main(String[] args){\n try{\n // El servidor se registra en RMI\n IP = args[0];\n IPBroker = args[1];\n\n Registry registryA = LocateRegistry.getRegistry();\n\n ServerAInterface sA = new ServerA();\n\n ServerAInterface stub = (ServerAInterface) UnicastRemoteObject.exportObject(sA,0);\n\n System.setProperty(\"java.rmi.server.hostname\",IP);\n registryA.rebind(\"//\"+IP+\":ServerA\",stub);\n System.out.println(\"Servidor A registrado correctamente.\");\n\n // Obtenemos el Broker\n Registry registry = LocateRegistry.getRegistry(IPBroker);\n ServicesBrokerInterface s = (ServicesBrokerInterface) registry.lookup(\"//\"+IPBroker+\":ServicesBroker\");\n\t\n Scanner teclado = new Scanner(System.in);\n boolean finalizar = false;\n String entrada = \"\";\n\t\t\t\n while (!finalizar) {\n System.out.println(\"\\n--------------------------------------\\n\");\n System.out.println(\"LISTA DE SERVICIOS DEL SERVIDOR B:\\n\" +\n \" - Nombre: introducir_libro; Parametros: String nombreLibro; Return: Void \\n\" +\n \" - Nombre: lista_libros; Parametros: none; Return: ArrayList<String> \\n\");\n\n System.out.println(\"¿Que desea hacer? \\n\"+\n \" 1 - Introducir libro\\n\"+\n \" 2 - Obtener lista de libros\\n\");\n System.out.print(\"Accion: \");\n entrada = teclado.nextLine();\n\n if (entrada.equals(\"1\")) {\n System.out.println(\"Introduzca el titulo del libro que desea almacenar:\");\n System.out.print(\"Titulo:\");\n entrada = teclado.nextLine();\n System.out.println(s.ejecutar_servicio(\"introducir_libro\", entrada));\n } else if (entrada.equals(\"2\")) {\n System.out.println(s.ejecutar_servicio(\"lista_libros\",\"\"));\n } else System.out.println(\"Accion no existente.\");\n }\n\n }catch (RemoteException e){\n System.out.println(e);\n } catch (ArrayIndexOutOfBoundsException e) {\n System.out.println(\"Es necesario pasar como parametro la IP del servidor donde se hostea el registro RMI y la IP del Broker.\");\n } catch (NotBoundException e) {\n e.printStackTrace();\n }\n }", "public void registerWithServer();", "public interface RsService {\n public void add(Rs rs);\n\n}", "protected final void registerService(Object service){\n ModuleManager.getInstance().regService(this.moduleName,service);\n }", "void addHasMicroService(MService newHasMicroService);", "Service newService();", "public abstract T addService(BindableService bindableService);", "@Override\n\tpublic void addServer(String arg0) throws IOException {\n\n\t}", "public static void main(String args[]) {\n try {\n //Cria HelloImpl\n //Runtime.getRuntime().exec(\"rmiregistry 1010\");\n //Registry registry = LocateRegistry.getRegistry(2001);\n \tSystem.setProperty(\"java.rmi.server.hostname\",\"192.168.0.30\");\n Registry registry = LocateRegistry.createRegistry(2001);\n Implementation obj = new Implementation();\n registry.bind(\"HelloServer\", obj);\n System.out.println(\"Hello Server pronto.\");\n } catch (Exception e) {\n System.out.println(\"HelloServer erro \" + e.getMessage());\n }\n }", "public interface ServiceRegistry {\n\n /**\n * Add a service into the registry.\n *\n * @param serviceInfo\n */\n void addService(ServiceInfo serviceInfo);\n\n /**\n * Gets the interval in second of heartbeats.\n *\n * @return\n */\n int getHeartbeatInterval();\n\n /**\n * Sets the interval in second of heartbeats.\n *\n * @param interval\n */\n void setHeartbeatInterval(int interval);\n\n void run();\n\n void stop();\n}", "public interface OperationServiceService extends javax.xml.rpc.Service {\n public java.lang.String getOperationServiceAddress();\n\n public fr.uphf.service.OperationService getOperationService() throws javax.xml.rpc.ServiceException;\n\n public fr.uphf.service.OperationService getOperationService(java.net.URL portAddress) throws javax.xml.rpc.ServiceException;\n}", "boolean addServiceInstance(Service service, InstancePublishInfo instancePublishInfo);", "public void initRMI() {\n\t\ttry {\n\t\t\t//creo RMI handler\n\t\t\tGossip_RMI_handler handler = new Gossip_RMI_handler(data);\n\t\t\t//esporto l'interfaccia\n\t\t\tGossip_RMI_server_interface stub = (Gossip_RMI_server_interface)UnicastRemoteObject.exportObject(handler, 0);\n\t\t\tLocateRegistry.createRegistry(Gossip_config.RMI_PORT);\n\t\t\tRegistry r = LocateRegistry.getRegistry(Gossip_config.RMI_PORT);\n\t\t\tr.rebind(Gossip_config.RMI_NAME, stub);\n\t\t\t\n\t\t} catch (RemoteException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public interface DictionaryService extends Remote {\n\t\n\tpublic String search(String Word) throws RemoteException, IOException;\n\tpublic void populate() throws RemoteException, IOException;\n\n}", "@Override\n\tpublic String addInstance(String serviceName, String hostName) {\n\t\tServiceManager serviceManager = loadBalance.search(serviceName);\n\t\tif (serviceManager == null) {\n\t\t\treturn \"Service not added previouly using ADD_SERVICE\";\n\t\t}\n\t\tArrayList<String> hostNames = serviceManager.getHostnames();\n\t\tif (cluster.containsKey(hostName)) {\n\t\t\tif (hostNames.contains(hostName)) {\n\t\t\t\treturn \"Service already exist\";\n\t\t\t} else {\n\t\t\t\thostNames.add(hostName);\n\t\t\t\tserviceManager.setHostnames(hostNames);\n\t\t\t\treturn \"Instance Added\";\n\t\t\t}\n\t\t} else {\n\t\t\treturn \"Invalid Machine\";\n\t\t}\n\t}", "public interface ComputeService {\n\n\n Integer add(int a, int b);\n}", "@Remote\r\npublic interface ProductServiceRemote {\r\n long addProduct(Product product);\r\n}", "public void start(int port) throws RemoteException, AlreadyBoundException\n {\n\n ZserioService zserioService = (ZserioService)UnicastRemoteObject.exportObject(this, 0);\n Registry registry = LocateRegistry.createRegistry(port);\n registry.bind(serviceFullName, this);\n }", "@Override\n\tpublic void addServer(String arg0, int arg1) throws IOException {\n\n\t}", "public abstract void addServiceListener(PhiDiscoverListener listener);", "public void InitService() {\n\t\ttry {\r\n\t\t\tgetCommManager().register(this); \r\n\t\t} catch (CommunicationException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "protected abstract ServiceRegistry getNewServiceRegistry();", "private static void addInstance(String[] args,CuratorFramework client,String command,\n List<ExampleServer> servers) throws Exception {\n \n if (args.length < 2) {\n System.err.println(\"syntax error (expected add <name> <description>): \" + command);\n return;\n }\n \n StringBuilder description = new StringBuilder();\n for (int i = 1; i < args.length; ++i) {\n if (i > 1) {\n description.append(' ');\n }\n description.append(args[i]);\n }\n \n String serviceName = args[0];\n ExampleServer server = new ExampleServer(client,PATH,serviceName,description.toString());\n servers.add(server);\n server.start();\n \n System.out.println(serviceName + \" added\");\n }", "public void serviceAdded(String serviceID, Remote service, List<?> itemList);", "public interface MineService {\n}", "@RemoteServiceRelativePath(\"greet\")\npublic interface GreetingService extends RemoteService {\n\tString greetServer(String name) throws IllegalArgumentException;\n\tString registrazione(String nome, String nick, String password, String mail) throws IllegalArgumentException;\n\tString login(String nick, String passw) throws IllegalArgumentException;\n\tString caricaevento(String nome, String luogo, String descs,String dal,String al,String idKey, int check, String cause) throws IllegalArgumentException;\n\tString cancellaevento(String id,String idKey) throws IllegalArgumentException;\n\tString chiudievento(String id,String idKey) throws IllegalArgumentException;\n\tString insertJoin(String idEvento, String nome, String nick, String commento,int disp) throws IllegalArgumentException;\n\tLinkedList<Partecipa> getAllUsersJoin(String idEvento) throws IllegalArgumentException;\n\tLinkedList<Evento> getAllUserEvents(String id) throws IllegalArgumentException;\n\tLinkedList<Evento> getAllEvents() throws IllegalArgumentException;\n}", "public interface Server {\n void register(String serverName, Class impl) throws Exception;\n\n void start() throws IOException;\n\n\n}", "public void addServiceImpl(String serviceName, FileObject configFile, boolean fromWSDL, String[] wscompileFeatures);", "@HystrixCommand(fallbackMethod = \"addServiceFallback\")\n\tpublic String addService() {\n\t\treturn restTemplate.getForEntity(\"http://COMPUTE-SERVICE/add?a=10&b=20\", String.class).getBody();\n\t}", "public void registerServer() {\n log.info(\"Registering service {}\", serviceName);\n cancelDiscovery = discoveryService.register(\n ResolvingDiscoverable.of(new Discoverable(serviceName, httpService.getBindAddress())));\n }", "@Override\n\t\tpublic void setService(String system_id) throws RemoteException {\n\t\t\tSystem.out.println(\"set service invoke on \" + system_id);\n\t\t}", "@Override\n\t\tpublic void getService(String system_id) throws RemoteException {\n\t\t\tSystem.out.println(\"get service invoke on \" + system_id);\n\t\t}", "public RoomInterface addService(RoomInterface room, String newService)\n {\n return room = new RoomExtraService(room, newService);\n }", "public static void bind(String name, myRemoteInterface obj) throws AlreadyBoundException, RemoteException, IOException {\n\t\tString className = obj.getClass().getCanonicalName();\n\t\tString ip = null;\n\t\ttry {\n\t\t\tip = InetAddress.getLocalHost().getHostAddress();\n \n\t\t} catch (UnknownHostException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t\t\n\t\tString nameWithSpace = Naming.parseHostPort(name);\n\t\tString args[] = nameWithSpace.split(\" \");\n\t\t\n\t\tRemoteObjectRef newRef = new RemoteObjectRef(ip, 9999,args[2] , className,\"bind\");\n\t\t\n\t\tObjectMap.insertIntoServerMap(args[2], obj);\n\t\t\n\t\tRegistryInterface stub = null;\n\t\t try{\n\t\t\t \n\t\t\t Class<?> stub_class = Class.forName(\"registry.Registry_stub\");\n\t\t\t stub = (RegistryInterface)Class.forName(\"registry.Registry_stub\").newInstance();\n\t\t\t if(stub_class != null){\n\t\t\t\t byte[] temp = downloadToServer(stub_class, newRef);\n\t\t\t }\n\t\t} catch (InstantiationException | IllegalAccessException\n\t\t\t\t| ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tstub.bind(name, newRef);\n\t\t\n\t}", "public interface ImageService extends Remote {\n\n public static final int IMG_SIZE_ORIGINAL = 0;\n public static final int IMG_SIZE_176_220_SMALL = 1;\n public static final int IMG_SIZE_330_220 = 2;\n public static final int IMG_SIZE_240_320_SMALL = 3;\n public static final int IMG_SIZE_120_67 = 4;\n\n public static final int IMG_SIZE_320_480_SMALL = 5;\n public static final int IMG_SIZE_170_121 = 6;\n public static final int IMG_SIZE_480_640_SMALL = 7;\n public static final int IMG_SIZE_800_600 = 8;\n\n public static final String SERVICE_NAME = \"ImageService\";\n\n public byte[] getBytes(long imageId, int imageSize) throws RemoteException;\n\n public byte[] getBytesQuiet(long imageId, int imageSize) throws RemoteException;\n\n public void removeImage(long imageId) throws RemoteException;\n\n public byte[] scale(byte[] data, int imageSize) throws RemoteException;\n\n public boolean addImage(long imageId, byte[] bytes) throws RemoteException;\n}", "public void add_server(String host) throws LookupException, \n NameServerContactException{\n \n String ip = lookup_ip(host);\n int port = lookup_port(host);\n System.out.println(\"Lookup of host \" + host + \": Success\");\n \n Server server = new Server(host, ip, port);\n \n servers.put(host, server);\n }", "public void addPorts(){\n\t\t\n\t}", "public static void main(String args[]) {\n try {\n LocateRegistry.createRegistry(80);\n OperacoesImpl obj = new OperacoesImpl();\n Naming.rebind(\"ServerRMI\", obj);\n System.out.println(\"Server RMI pronto.\");\n } catch (Exception e) {\n System.out.println(\"Server erro\" + e.getMessage());\n }\n }", "public interface RegistrationInterface extends Remote {\n public int registraUtente(String nickname, String password) throws RemoteException;\n}", "private void startServer() throws RemoteException, AlreadyBoundException{\n\t\ttry{\n\t\t\tInsuranceImplementation impl = new InsuranceImplementation();\n\t\t\timpl.setIPAddress(ipHospital.getText());\n\t\t\timpl.setPortNumebr(Integer.parseInt(portHospital.getText()));\n\t\t\t\n\t\t\tRegistry registry = LocateRegistry.createRegistry(Integer.parseInt(portInsurance.getText()));\n\t\t\tregistry.bind(Constants.RMI_ID, impl); \n\t\t\t\n\t\t\tlogMessage(\"Insurance Server Started\");\n\t\t\t\n\t\t} catch (Exception exp)\n\t\t{\n\t\t\tlogMessage(\"ObjID already in use.\\nPlease kill the process running at port 5002\");\n\t\t\texp.printStackTrace();\n\t\t} \n\t\t\n\t}", "@Override\n\tpublic void run() {\n\t\t\t\n\t\t\ttry {\n\t\t\tLocateRegistry.createRegistry(port);\n\t\t\t}catch(RemoteException e){\n\t\t\t\tSystem.out.println(\"Another peer is running in this machine\");\n\t\t\t}\n\t\t\t\n\t\t\tInterfaceUI rmi;\n\t\t\ttry {\n\t\t\t\trmi = (InterfaceUI)UnicastRemoteObject.exportObject(this, 0);\n\t\t\t\tRegistry registry = LocateRegistry.getRegistry();\n\t\t\t\tregistry.rebind(this.id, rmi);\n\t\t\t\n\t\t\t\n\t\t\t} catch (RemoteException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\n\t\t\n\t}", "@Override\n public void register(Remote registerObj, String name) throws RemoteException\n {\n synchronized (supervisors)\n {\n Logger.getGlobal().log(Level.INFO, String.format(\"Register Supervisor: %s.\", name));\n addSupervisor(name);\n registry.rebind(name, registerObj);\n }\n }", "@Override\n\tpublic void addServer(String arg0, int arg1, int arg2) throws IOException {\n\n\t}", "public void onServiceConnected(ComponentName name, IBinder binder) {\n boolean added = false;\n ManagedServiceInfo info = null;\n synchronized (ManagedServices.this.mMutex) {\n ManagedServices.this.mServicesRebinding.remove(str2);\n if (ManagedServices.this.mServicesBinding.contains(str2)) {\n Slog.d(ManagedServices.this.TAG, \"onServiceConnected, just remove the servicesBindingTag and add service.\");\n ManagedServices.this.mServicesBinding.remove(str2);\n try {\n this.mService = ManagedServices.this.asInterface(binder);\n info = ManagedServices.this.newServiceInfo(this.mService, name, i2, z, this, targetSdkVersion);\n binder.linkToDeath(info, 0);\n added = ManagedServices.this.mServices.add(info);\n } catch (RemoteException e) {\n }\n } else {\n Slog.d(ManagedServices.this.TAG, \"service has been connected, just return.\");\n ManagedServices.this.mContext.unbindService(this);\n }\n }\n }", "public void service() {\n\t}", "public void launch(int port) {\n try {\n Registry registry = LocateRegistry.createRegistry( port );\n\n EchoService service = new ReversedEchoServiceImpl();\n EchoService stub = (EchoService) UnicastRemoteObject.exportObject(service, 0);\n\n registry.bind(\"com.anotheria.strel.rmi.EchoService\", stub);\n\n log.info(String.format(\"Service is now accessible on port %d with name com.anotheria.strel.rmi.EchoService\", port));\n }\n catch (RemoteException ex) {\n log.fatal(\"Remote Exception: \" + ex.getMessage());\n }\n catch (AlreadyBoundException ex) {\n log.fatal(\"Echo service is already bound with given name: \" + ex.getMessage());\n }\n }", "public void registerService(Registrant r) {\n namingService.registerService(r);\n }", "public static void main(String[] args) {\n /* obtenção da localização do serviço de registo RMI */\n \n // nome do sistema onde está localizado o serviço de registos RMI\n String rmiRegHostName;\n \n // port de escuta do serviço\n int rmiRegPortNumb; \n\n RegistryConfig rc = new RegistryConfig(\"config.ini\");\n rmiRegHostName = rc.registryHost();\n rmiRegPortNumb = rc.registryPort();\n \n /* instanciação e instalação do gestor de segurança */\n if (System.getSecurityManager() == null) {\n System.setSecurityManager(new SecurityManager());\n }\n \n /* instanciação do objecto remoto que representa o referee site e geração de um stub para ele */\n RefereeSite referee_site = null;\n RefereeSiteInterface refereeSiteInterface = null;\n referee_site = new RefereeSite();\n \n try {\n refereeSiteInterface = (RefereeSiteInterface) UnicastRemoteObject.exportObject(referee_site, rc.refereeSitePort());\n } catch (RemoteException e) {\n System.out.println(\"Excepção na geração do stub para o referee site: \" + e.getMessage());\n System.exit(1);\n }\n \n System.out.println(\"O stub para o referee site foi gerado!\");\n\n /* seu registo no serviço de registo RMI */\n String nameEntryBase = RegistryConfig.registerHandler;\n String nameEntryObject = RegistryConfig.refereeSiteNameEntry;\n Registry registry = null;\n RegisterInterface reg = null;\n\n try {\n registry = LocateRegistry.getRegistry(rmiRegHostName, rmiRegPortNumb);\n } catch (RemoteException e) {\n System.out.println(\"Excepção na criação do registo RMI: \" + e.getMessage());\n System.exit(1);\n }\n \n System.out.println(\"O registo RMI foi criado!\");\n\n try {\n reg = (RegisterInterface) registry.lookup(nameEntryBase);\n } catch (RemoteException e) {\n System.out.println(\"RegisterRemoteObject lookup exception: \" + e.getMessage());\n System.exit(1);\n } catch (NotBoundException e) {\n System.out.println(\"RegisterRemoteObject not bound exception: \" + e.getMessage());\n System.exit(1);\n }\n\n try {\n reg.bind(nameEntryObject, refereeSiteInterface);\n } catch (RemoteException e) {\n System.out.println(\"Excepção no registo do referee site: \" + e.getMessage());\n System.exit(1);\n } catch (AlreadyBoundException e) {\n System.out.println(\"O referee site já está registado: \" + e.getMessage());\n System.exit(1);\n }\n \n System.out.println(\"O referee site foi registado!\");\n }", "public Ice.AsyncResult begin_startService(String service);", "@RemoteServiceRelativePath(\"solr-system\")\npublic interface SolrSystemService extends RemoteService {\n\n\t/**\n\t * Create a new system\n\t * \n\t * @param systemDTO\n\t * The system to create\n\t * @param userDTO\n\t * The user that creates the system\n\t */\n\tvoid createSolrSystem(SolrSystemDTO systemDTO, UserDTO userDTO);\n\n\t/**\n\t * Update a selected system\n\t * \n\t * @param systemDTO\n\t * The system to update\n\t * @param userDTO\n\t * The user that updates the system\n\t */\n\tvoid updateSolrSystem(SolrSystemDTO systemDTO, UserDTO userDTO);\n\n\t/**\n\t * Delete a system\n\t * \n\t * @param systemDTO\n\t * The system to delete\n\t * @param userDTO\n\t * The user that deletes the system\n\t */\n\tvoid deleteSolrSystem(SolrSystemDTO systemDTO, UserDTO userDTO);\n\n\t/**\n\t * Show a list of all the systems the system can communicate with\n\t * \n\t * @param userDTO\n\t * the user that requested the systems\n\t * @return A list of all the available systems\n\t */\n\tList<SolrSystemDTO> showAllSolrSystems(UserDTO userDTO);\n\n\tboolean optimize(SolrSystemDTO sustemDTO, UserDTO userDTO);\n}", "@RemoteServiceRelativePath(\"greet\")\npublic interface GreetingService extends RemoteService \n{\n\tBoolean greetServer(Osoba person) throws IllegalArgumentException;\n\tList<Osoba> getOsoba() throws IllegalArgumentException;\n\tList<Osoba> fetchPage(int start, int length) throws IllegalArgumentException;\n\tLong fetchCount() throws IllegalArgumentException;\n}", "public static void main(String args[])\r\n {\n System.setSecurityManager(new RMISecurityManager());\r\n\r\n try\r\n {\r\n // Create ResultRMIImpl\r\n ResultRMIImpl myResult = new ResultRMIImpl(\"//Binita/myResultRMI\");\r\n System.out.println(\"ResultRMI Server ready.\");\r\n } \r\n catch (Exception e)\r\n { \r\n System.out.println(\"Exception: \" + e.getMessage());\r\n e.printStackTrace();\r\n }\r\n }", "public void registerListener(IMountServiceListener listener) throws RemoteException;", "@NotNull\n public AsynchResult<Server> addServer(AddServerRequestV1 request) {\n // TODO \n // We need first to probe the server to find out some server properties to decide what kind of client to use.\n var client = new HuaweiServerHardwareClient(request.address, request.username, request.password);\n var basicInfo = client.getServerBasicInfo();\n var currentServer = serverRepository.findFirstByAssetInfoSerialNumber(basicInfo.assetInfo.serialNumber);\n if (currentServer != null) {\n throw new ResourceAlreadyExistException();\n }\n var initializedServer = Server.initialize(basicInfo);\n initializedServer = serverRepository.save(initializedServer);\n var context = new AddServerContext();\n return context.run();\n }", "public interface ServerIF extends RemoteIF{\n void RegisterClient(ClientIF client) throws RemoteException;\n void WelcomeScreen() throws RemoteException;\n ArrayList<ClientIF> getClients() throws RemoteException;\n}", "org.apache.geronimo.corba.xbeans.csiv2.tss.TSSSasMechType.ServiceConfigurationList addNewServiceConfigurationList();", "public void service_INIT(){\n }", "public void addServer(Identity identity, ServerInvokerMetadata invokers[]);", "@Override\n\tpublic void loadService() {\n\t\t\n\t}", "private void registerLocalService() {\n WifiP2pDnsSdServiceInfo serviceInfo =\n WifiP2pDnsSdServiceInfo.newInstance(WifiDirectUtilities.SERVICE_NAME,\n \"_\" + WifiDirectUtilities.SERVICE_TYPE + \"._\" + WifiDirectUtilities.SERVICE_PROTOCOL,\n WifiDirectUtilities.SERVICE_RECORD);\n\n // Add the local service, sending the service info, network channel,\n // and listener that will be used to indicate success or failure of\n // the request.\n mManager.addLocalService(mChannel, serviceInfo, new WifiP2pManager.ActionListener() {\n @Override\n public void onSuccess() {\n // Command successful! Code isn't necessarily needed here,\n // Unless you want to update the UI or add logging statements.\n }\n\n @Override\n public void onFailure(int arg0) {\n // Command failed. Check for P2P_UNSUPPORTED, ERROR, or BUSY\n }\n });\n WifiDirectDnsSdListener listener = new WifiDirectDnsSdListener(this);\n mManager.setDnsSdResponseListeners(mChannel, listener, listener);\n }", "public void addService(Class<? extends IFloodlightService> clazz, \n\t IFloodlightService service) {\n\t\tserviceMap.put(clazz, service);\n\t}", "public interface GrpcService extends BindableService {\r\n public String getServiceName();\r\n public String getDescription();\r\n}", "public interface ServiceManagerInterface {\n\n /**\n * add a Service\n * @param servicePackage the service package to register\n * @param configuration The configuration of the client\n * @param profile the client profile\n * @return The added service description\n * @throws IOException\n * @throws SoapException\n */\n AGServiceDescription addService(\n AGServicePackageDescription servicePackage,\n AGParameter[] configuration,\n ClientProfile profile)\n throws IOException, SoapException;\n\n /**\n * gets the service manager description\n * @return service manager description\n * @throws IOException\n * @throws SoapException\n */\n AGServiceManagerDescription getDescription()\n throws IOException, SoapException;\n\n /**\n * gets the url of the node service\n * @return url of node service\n * @throws IOException\n * @throws SoapException\n */\n String getNodeServiceUrl()\n throws IOException, SoapException;\n\n /**\n * gets the available services\n * @return a vector of available services\n * @throws IOException\n * @throws SoapException\n */\n AGServiceDescription[] getServices()\n throws IOException, SoapException;\n\n /**\n * test whether the service manager is valid\n * @return the 'valid' state\n * @throws IOException\n * @throws SoapException\n */\n int isValid() throws IOException, SoapException;\n\n /**\n * removes a service from the service manager\n * @param serviceDescription the description of the service to be removed\n * @throws IOException\n * @throws SoapException\n */\n void removeService(AGServiceDescription serviceDescription)\n throws IOException, SoapException;\n\n /**\n * removes all services from the service manager\n * @throws IOException\n * @throws SoapException\n */\n void removeServices() throws IOException, SoapException;\n\n /**\n * sets the url for node service\n * @param nodeServiceUri\n * @throws IOException\n * @throws SoapException\n */\n void setNodeServiceUrl(String nodeServiceUri)\n throws IOException, SoapException;\n\n /**\n * shuts down the service manager\n * @throws IOException\n * @throws SoapException\n */\n void shutdown() throws IOException, SoapException;\n\n /**\n * stops all services on service manager\n * @throws IOException\n * @throws SoapException\n */\n void stopServices() throws IOException, SoapException;\n\n /**\n * gets the version number of the service manager\n * @return string with version of service manager\n * @throws IOException\n * @throws SoapException\n */\n String getVersion() throws IOException, SoapException;\n\n\n /**\n * Requests to join a bridge\n * @param bridgeDescription The description of the bridge\n * @throws IOException\n * @throws SoapException\n */\n void joinBridge(BridgeDescription bridgeDescription)\n throws IOException, SoapException;\n\n /**\n * Sets the streams of this service manager\n *\n * @param streamDescriptionList a vector of stream descriptions\n * @throws IOException\n * @throws SoapException\n */\n void setStreams(StreamDescription[] streamDescriptionList)\n throws IOException, SoapException;\n /**\n * adds a stream\n * @param argname stream description of new stream\n * @throws IOException\n * @throws SoapException\n */\n void addStream(StreamDescription argname)\n throws IOException, SoapException;\n /**\n * Removes a stream\n * @param argname The stream to remove\n * @throws IOException\n * @throws SoapException\n */\n void removeStream(StreamDescription argname)\n throws IOException, SoapException;\n /**\n * Sets the point of reference for network traffic\n * @param url The url of the point of reference server\n * @throws IOException\n * @throws SoapException\n */\n void setPointOfReference(String url)\n throws IOException, SoapException;\n\n /**\n * Sets the encryption\n * @param encryption The encryption\n * @throws IOException\n * @throws SoapException\n */\n void setEncryption(String encryption)\n throws IOException, SoapException;\n /**\n * Instructs the client to run automatic bridging\n * @throws IOException\n * @throws SoapException\n */\n void runAutomaticBridging()\n throws IOException, SoapException;\n\n /**\n * Determines if a service is enabled\n * @param service The service to get the status of\n * @return True if enabled, false otherwise\n * @throws IOException\n * @throws SoapException\n */\n boolean isServiceEnabled(AGServiceDescription service)\n throws IOException, SoapException;\n\n /**\n * Enables or disables a service\n * @param service The service to control\n * @param enabled True to enable, false to disable\n * @throws IOException\n * @throws SoapException\n */\n void enableService(AGServiceDescription service, boolean enabled)\n throws IOException, SoapException;\n\n /**\n * Gets the configuration parameters of a service\n * @param service The service to get the configuration of\n * @return The parameters\n * @throws IOException\n * @throws SoapException\n */\n AGParameter[] getServiceConfiguration(AGServiceDescription service)\n throws IOException, SoapException;\n /**\n * Sets the configuration parameters for a service\n * @param service The service to configure\n * @param config The new parameters\n * @throws IOException\n * @throws SoapException\n */\n void setServiceConfiguration(AGServiceDescription service,\n AGParameter[] config)\n throws IOException, SoapException;\n\n /**\n * Sets the client profile\n * @param profile The new profile\n * @throws IOException\n * @throws SoapException\n */\n void setClientProfile(ClientProfile profile)\n throws IOException, SoapException;\n}", "public boolean connect() throws RemoteException {\n\t\ttry {\n\t\t\t// Get remote object reference\n\t\t\tthis.registry = LocateRegistry.getRegistry(host, port);\n\t\t\tthis.server = (ServerInterface) registry.lookup(\"Server\");\n\t\t\tid = this.server.getNewClientId();\n\t\t\tClientInterface c_strub = (ClientInterface) UnicastRemoteObject.exportObject(this, 0);\n\t\t\tregistry.bind(id, c_strub);\n\t\t\treturn this.server.addClient(username, password, id);\n\t\t}\n\t\tcatch (AlreadyBoundException | NotBoundException e) {\n\t\t\tSystem.err.println(\"Error on client :\" + e);\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(-1);\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "public abstract void register();", "public void onServiceConnected(ComponentName className, IBinder service) {\n \tmServiceMessenger = new Messenger(service);\r\n // We want to monitor the service for as long as we are\r\n // connected to it.\r\n try {\r\n Message message = Message.obtain(null, WATCHiTServiceInterface.REGISTER_CLIENT);\r\n message.replyTo = mMessenger;\r\n mServiceMessenger.send(message);\r\n } catch (RemoteException e) {\r\n // In this case the service has crashed before we could even\r\n // do anything with it; we can count on soon being\r\n // disconnected (and then reconnected if it can be restarted)\r\n // so there is no need to do anything here.\r\n }\r\n // Toast.makeText(MainActivity.this, R.string.remote_service_bound, Toast.LENGTH_SHORT).show();\r\n }", "public interface IServer extends Remote {\n /**\n * @param auction\n * @throws RemoteException\n */\n void placeAuction(AuctionBean auction) throws RemoteException;\n\n /**\n * @param client\n * @throws RemoteException\n * @throws InterruptedException\n */\n void register(IClient client) throws RemoteException, InterruptedException;\n\n void disconnect(IClient client) throws RemoteException;\n\n /**\n * @param client\n * @param newBid\n * @throws RemoteException\n */\n void raiseBid(IClient client, int newBid) throws RemoteException;\n\n /**\n * @param client\n * @throws RemoteException\n * @throws InterruptedException\n */\n void timeElapsed(IClient client) throws RemoteException, InterruptedException;\n\n\tvoid registerCredentials(String username, String password) throws RemoteException, InterruptedException;\n\n\tboolean verifyCredentials(String username, String password) throws RemoteException, InterruptedException;\n\t\n}", "@Override\n/**\n * Communication Tester method\n */\npublic String Communicate() throws RemoteException {\n\treturn \"Server Says Hi\";\n}", "@Remote\r\npublic interface RappelManagerRemote\r\n extends RappelManager\r\n{\r\n\r\n\r\n}", "public void registerListener(IMountServiceListener listener) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeStrongBinder((listener != null ? listener.asBinder() : null));\n mRemote.transact(Stub.TRANSACTION_registerListener, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }", "public interface Provider {\n //Connection connect(String url, java.util.Properties info)\n Service newService();\n}", "public void register(IObserver obj);", "public interface MainMBean\n{\n // Attributes ---------------------------------------------------\n \n void setRmiPort(int port);\n int getRmiPort();\n \n void setPort(int port);\n int getPort();\n\n void setBindAddress(String host) throws UnknownHostException; \n String getBindAddress();\n\n void setRmiBindAddress(String host) throws UnknownHostException; \n String getRmiBindAddress();\n\n void setBacklog(int backlog); \n int getBacklog();\n\n /** Whether the MainMBean's Naming server will be installed as the NamingContext.setLocal global value */\n void setInstallGlobalService(boolean flag);\n boolean getInstallGlobalService();\n\n /** Get the UseGlobalService which defines whether the MainMBean's\n * Naming server will initialized from the existing NamingContext.setLocal\n * global value.\n * \n * @return true if this should try to use VM global naming service, false otherwise \n */ \n public boolean getUseGlobalService();\n /** Set the UseGlobalService which defines whether the MainMBean's\n * Naming server will initialized from the existing NamingContext.setLocal global\n * value. This allows one to export multiple servers via different transports\n * and still share the same underlying naming service.\n * \n * @return true if this should try to use VM global naming service, false otherwise \n */ \n public void setUseGlobalService(boolean flag);\n\n /** The RMIClientSocketFactory implementation class */\n void setClientSocketFactory(String factoryClassName)\n throws ClassNotFoundException, InstantiationException, IllegalAccessException;\n String getClientSocketFactory();\n \n /** The RMIServerSocketFactory implementation class */\n void setServerSocketFactory(String factoryClassName)\n throws ClassNotFoundException, InstantiationException, IllegalAccessException;\n String getServerSocketFactory();\n\n /** The JNPServerSocketFactory implementation class */\n void setJNPServerSocketFactory(String factoryClassName) \n throws ClassNotFoundException, InstantiationException, IllegalAccessException;\n\n // Operations ----------------------------------------------------\n \n public void start() throws Exception;\n \n public void stop();\n \n}", "public interface ServiceIface {\n void service();\n}", "public static void main(String[] args) {\n\n try {\n\n Registry registry = LocateRegistry.createRegistry( 1888);\n registry.rebind(\"YStudentServerImpl\", new YStudentServerImpl());\n\n\n }\n catch (Exception ex){\n System.err.println(\"YStudentServerImpl exeption\");\n ex.printStackTrace();\n }\n\n\n }", "@RemoteServiceRelativePath(\"greet\")\r\npublic interface GreetingService extends RemoteService {\r\n\tAdd getsubmit(Add name) throws IllegalArgumentException;\r\n\r\n\tData p(Data n) throws IllegalArgumentException;\r\n\r\n\tLog l(Log u) throws IllegalArgumentException;\r\n\r\n\tupl insert(upl u) throws IllegalArgumentException;\r\n\r\n\toutuser getdata(outuser name) throws IllegalArgumentException;\r\n\r\n\t\r\n\r\n\tBooks[] fun(String s1)throws IllegalArgumentException;\r\n\r\n\tAdd[] po(String s)throws IllegalArgumentException;\r\n\t\r\n\t\r\n\tBooks fun1(Books s1)throws IllegalArgumentException;\r\n}", "public boolean addService(BluetoothGattService service) {\n/* 60 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public interface CentralConfRegistryService {\n void set(String key, Object value) throws ServiceException;\n\n void set(String key, Object value, String description) throws ServiceException;\n\n Object get(String key) throws ServiceException;\n}", "public static void main(String[] args) throws Exception{\n /* get location of the generic registry service */\n String rmiRegHostName;\n int rmiRegPortNumber;\n \n Scanner sc = new Scanner(System.in);\n int listeningPort = 22324;\n String nameEntry = RegistryConfig.bettingCenterNameEntry;\n \n System.out.println(\"Node process host name(RMI Service Host Name): \");\n rmiRegHostName = sc.nextLine();\n System.out.println(\"Node process port number(RMI Service Port Number): \");\n rmiRegPortNumber = sc.nextInt();\n \n /* Instanciate and install security manager */\n if(System.getSecurityManager() == null){\n System.setSecurityManager(new SecurityManager());\n }\n \n /* Get Central Registry */\n Registry registry = null;\n try{\n registry = LocateRegistry.getRegistry(rmiRegHostName, rmiRegPortNumber);\n }catch(RemoteException e){\n System.err.println(\"Wrong registry location!!!\");\n System.exit(1);\n }\n System.out.println(\"RMI Registry created!\");\n \n /* Get LogRepository register */\n Log_Interface log_itf = null;\n try{\n log_itf = (Log_Interface) registry.lookup(RegistryConfig.logRepositoryNameEntry);\n } catch (NotBoundException e){\n System.out.println(\"LogRepository lookup exception: \" + e.getMessage());\n e.printStackTrace();\n System.exit(1);\n }\n \n /* Create Betting Center Stub */\n Betting_Center betting_center = new Betting_Center(log_itf, GlobalInfo.numSpec, rmiRegHostName, rmiRegPortNumber);\n BettingCenter_Itf betting_center_itf = null;\n \n try{\n betting_center_itf = (BettingCenter_Itf) UnicastRemoteObject.exportObject(betting_center, listeningPort);\n } catch (RemoteException e) {\n System.out.println(\"Betting stub create exception: \" + e.getMessage());\n e.printStackTrace();\n System.exit(1);\n }\n System.out.print(\"Betting Center Stub created!\\n\");\n \n /* Register RMI register */\n Register register = null;\n String nameEntryBase = RegistryConfig.rmiRegisterName;\n try {\n register = (Register) registry.lookup(nameEntryBase);\n } catch (RemoteException | NotBoundException ex) {\n System.out.println(\"Wrong register location!\");\n System.exit (1);\n }\n \n try {\n register.bind(nameEntry, betting_center_itf);\n } catch (RemoteException e) {\n System.out.println(\"Betting Center register exception \" + e.getMessage());\n e.printStackTrace();\n System.exit(1);\n } catch (Exception e) {\n System.out.println(\"Betting Center is already registered: \" + e.getMessage());\n e.printStackTrace();\n System.exit(1);\n }\n System.out.println(\"Betting Center module has been registered!\");\n }" ]
[ "0.697079", "0.6946799", "0.6757271", "0.672887", "0.6717192", "0.66440153", "0.66440153", "0.6634023", "0.6596507", "0.65928", "0.65670294", "0.6559834", "0.6506064", "0.65030926", "0.64759076", "0.64475137", "0.6376025", "0.63473797", "0.6344478", "0.6304058", "0.62895036", "0.6271889", "0.626807", "0.6249923", "0.62250715", "0.6212935", "0.61998934", "0.61969", "0.6181311", "0.6179686", "0.6169424", "0.61564523", "0.6152346", "0.61477137", "0.6124106", "0.6121626", "0.6115761", "0.61113214", "0.6110917", "0.6104875", "0.60950655", "0.6094348", "0.6091707", "0.60765165", "0.60616344", "0.601339", "0.6001952", "0.59819496", "0.5974006", "0.59673315", "0.59647876", "0.5942635", "0.5915438", "0.59130317", "0.5903188", "0.5892146", "0.5885006", "0.5872609", "0.586474", "0.585389", "0.5852263", "0.58449686", "0.5840228", "0.58371294", "0.583645", "0.58139014", "0.5809177", "0.5806373", "0.58023256", "0.57993627", "0.5792487", "0.578731", "0.5784159", "0.5774079", "0.57589215", "0.5757127", "0.575638", "0.5756032", "0.57465494", "0.57442564", "0.57439315", "0.57395667", "0.57307374", "0.5724816", "0.57199705", "0.5710395", "0.57054156", "0.57033956", "0.57012343", "0.56974554", "0.5692732", "0.5684799", "0.5682253", "0.5681063", "0.56775916", "0.5669898", "0.5669324", "0.565674", "0.5655687", "0.56527656" ]
0.60326844
45
admin api used to create consent/notconsent user for given study nearly identical to createUser() one
public Result createUserWithStudyId(String studyId) throws Exception { getAuthenticatedSession(ADMIN); Study study = studyService.getStudy(studyId); JsonNode node = parseJson(request(), JsonNode.class); StudyParticipant participant = parseJson(request(), StudyParticipant.class); boolean consent = JsonUtils.asBoolean(node, CONSENT_FIELD); userAdminService.createUser(study, participant, null, false, consent); return createdResult("User created."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createUser(User user);", "CreateUserResult createUser(CreateUserRequest createUserRequest);", "public void createUserAccount(UserAccount account);", "public void createUser(User user) {\n\n\t}", "@Test\n public void testCreateOnBehalfUser() throws Exception {\n String password = \"abcdef\";\n VOUserDetails result = idService\n .createOnBehalfUser(customer.getOrganizationId(), password);\n checkCreatedUser(result, customer, password, false);\n }", "Human_User createHuman_User();", "UserCreateResponse createUser(UserCreateRequest request);", "int createUser(User data) throws Exception;", "@Test\n public void testCreateOnBehalfUser_asTechnologyManager() throws Exception {\n container.login(supplierAdminUser.getKey(), ROLE_TECHNOLOGY_MANAGER);\n VOUserDetails result = idService\n .createOnBehalfUser(customer.getOrganizationId(), \"abcdef\");\n checkCreatedUser(result, customer, \"abcdef\", false);\n checkUserRoleAssignment(result, ROLE_ORGANIZATION_ADMIN);\n }", "public UserAuthToken createUser(CreateUserRequest request);", "public ApplicationUser createUserProfile(ApplicationUser applicationUser){\n int min = 105;\n int max = 200;\n int random_int = (int)Math.floor(Math.random()*(max-min+1)+min);\n applicationUser.setAdminId(Integer.toString(random_int));\n applicationUser.setActive(\"Y\");\n applicationUser = mongoDbConnector.createUserProfile(applicationUser);\n return applicationUser;\n }", "@Override\n\tpublic void createUserProfile(User user) throws Exception {\n\n\t}", "@Test\n public void createUser() {\n Response response = regressionClient.createUser();\n dbAssist.responseValidation(response);\n }", "private void userSignUp(final int id, String agentNm, String fName, String sta, String localG, String tow, String phoneNm, String fmMr, String cbRg, String memSiz, String cggNam, String cFarmZz, String fcRg, String inFarm, String riceVarr, String qttyHarr, String afRg,\n String fertTldd, String noRzz, String qtyApll, String alRg, String szLoaa, String srcRicc, String qtyPdyRicc, String majByrss, String comSolcc, String qttyByy, String howMcc, String prcBb, String incDs,\n String reasnn, String hwSpyy, String stRg, String ysSptrr, String fm1, String t11, String cstCs11, String fm2, String t22, String cstCs22, String fm3, String t33, String cstCs33, String infPrcc, String salesDmm,\n String avgQtFcc, String whnCp, String whyCp, String whnEx, String whyExx, String mjCh, String adCh, String timSe, String othSe, String adInn) {\n Call<ResponseBody> call = RetrofitClient2\n .getInstance()\n .getNaSurvey()\n .submitResponse(agentNm, fName, sta, localG, tow, phoneNm, fmMr, cbRg, memSiz, cggNam, cFarmZz, fcRg, inFarm, riceVarr, qttyHarr, afRg, fertTldd, noRzz, qtyApll, alRg, szLoaa, srcRicc, qtyPdyRicc, majByrss, comSolcc, qttyByy, howMcc, prcBb, incDs, reasnn, hwSpyy, stRg, ysSptrr, fm1, t11, cstCs11,\n fm2, t22, cstCs22, fm3, t33, cstCs33, infPrcc, salesDmm, avgQtFcc, whnCp, whyCp, whnEx, whyExx, mjCh, adCh, timSe, othSe, adInn);\n\n call.enqueue(new Callback<ResponseBody>() {\n @Override\n public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {\n\n try {\n JSONObject obj = new JSONObject(String.valueOf(response));\n if (!obj.getBoolean(\"error\")) {\n //updating the status in sqlite\n db.updateNameStatus(id, SurveyActivity.SYNC_STATUS_OK);\n\n //sending the broadcast to refresh the list\n context.sendBroadcast(new Intent(SurveyActivity.DATA_SAVED_BROADCAST));\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n\n @Override\n public void onFailure(Call<ResponseBody> call, Throwable t) {\n Map<String, String> params = new HashMap<>();\n params.put(\"agentNm\", agentNm);\n params.put(\"fname\", fName);\n params.put(\"state\", sta);\n params.put(\"lga\", localG);\n params.put(\"town\", tow);\n params.put(\"phoneNm\", phoneNm);\n params.put(\"farmer\", fmMr);\n params.put(\"cogp\", cbRg);\n params.put(\"memsz\", memSiz);\n params.put(\"cgnam\", cggNam);\n params.put(\"cofmsz\", cFarmZz);\n params.put(\"frmcol\", fcRg);\n params.put(\"invfz\", inFarm);\n params.put(\"ricev\", riceVarr);\n params.put(\"qtyhv\", qttyHarr);\n params.put(\"apfert\", afRg);\n params.put(\"ysyld\", fertTldd);\n params.put(\"norz\", noRzz);\n params.put(\"qtyap\", qtyApll);\n params.put(\"aploa\", alRg);\n params.put(\"szloa\", szLoaa);\n params.put(\"srcric\", srcRicc);\n params.put(\"qtypdrc\", qtyPdyRicc);\n params.put(\"majby\", majByrss);\n params.put(\"comso\", comSolcc);\n params.put(\"qtby\", qttyByy);\n params.put(\"hwmch\", howMcc);\n params.put(\"pricbf\", prcBb);\n params.put(\"indcr\", incDs);\n params.put(\"rsn\", reasnn);\n params.put(\"hwspl\", hwSpyy);\n params.put(\"chsp\", stRg);\n params.put(\"yssptr\", ysSptrr);\n params.put(\"frm1\", fm1);\n params.put(\"to1\", t11);\n params.put(\"costc1\", cstCs11);\n params.put(\"frm2\", fm2);\n params.put(\"to2\", t22);\n params.put(\"costcs2\", cstCs22);\n params.put(\"frm3\", fm3);\n params.put(\"to3\", t33);\n params.put(\"costcs3\", cstCs33);\n params.put(\"infpr\", infPrcc);\n params.put(\"salsdm\", salesDmm);\n params.put(\"avqtf\", avgQtFcc);\n params.put(\"wncp\", whnCp);\n params.put(\"wycp\", whyCp);\n params.put(\"wnex\", whnEx);\n params.put(\"wyex\", whyExx);\n params.put(\"majch\", mjCh);\n params.put(\"addch\", adCh);\n params.put(\"timsl\",timSe);\n params.put(\"othsl\",othSe);\n params.put(\"adin\",adInn);\n\n return;\n }\n });\n\n }", "User createUser();", "User createUser(User user);", "@Override\n\tpublic void create(User user) {\n\t\t\n\t}", "public UserProfile createUserProfile(String username, UserProfile newProfile);", "boolean create(User user) throws Exception;", "public void createUserAccount(String email, String password, final String userId, final SignUpInterface listner) {\n collectionReference = db.collection(\"Users\");\n firebaseAuth = FirebaseAuth.getInstance();\n firebaseAuth.createUserWithEmailAndPassword(email, password)\n .addOnCompleteListener(new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n\n if(task.isSuccessful()){\n currentUser = FirebaseAuth.getInstance().getCurrentUser();\n assert currentUser!= null;\n final String currentUserId = currentUser.getUid();\n\n Map<String, String> userMap = new HashMap<>();\n userMap.put(\"UserIdInDB\", currentUserId);\n userMap.put(\"UserName\", userId);\n\n collectionReference.add(userMap)\n .addOnSuccessListener(new OnSuccessListener<DocumentReference>() {\n @Override\n public void onSuccess(DocumentReference documentReference) {\n documentReference.get()\n .addOnCompleteListener(new OnCompleteListener<DocumentSnapshot>() {\n @Override\n public void onComplete(@NonNull Task<DocumentSnapshot> task) {\n if(task.getResult().exists()) {\n\n String name = task.getResult().getString(\"UserName\");\n\n EntityClass entityObj = EntityClass.getInstance();\n entityObj.setUserName(name);\n entityObj.setUserIdInDb(currentUserId);\n listner.signUpStatus(true);\n }\n }\n });\n }\n })\n .addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Log.d(TAG, \"onFailure: \" + e.getMessage());\n listner.signUpStatus(false);\n listner.onFailure(e.getMessage());\n }\n });\n }\n }\n })\n .addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Log.d(TAG, \"onFailure: \" + e.getMessage());\n listner.signUpStatus(false);\n listner.onFailure(e.getMessage());\n }\n });\n }", "Account create();", "void ensureUserCreationAllowed(String email, String userName) throws BadRequestException, ConflictException, ServerException;", "Utilizator createUser(String username, String password, String nume,\n\t\t\tString prenume, String tip, String aux);", "GenerateUserAccount () {\r\n }", "public static void creaStudente(Student stud) {\n\t\ttry {\n\t\t\tRequestContent rp = new RequestContent();\n\t\t\trp.type = RequestType.CREATE_USER;\n\t\t\trp.userType = UserType.STUDENT;\n\t\t\trp.parameters = new Object[] { stud };\n\t\t\tsend(rp);\n\t\t} catch (Exception e) {\n\n\t\t}\n\t}", "String createUserRequest(String username, UserRequestType type);", "public long registerUserProfile(User user);", "@Override\n\tpublic ApplicationResponse createUser(UserRequest request) {\n\t\tUserEntity entity = repository.save(modeltoentity.apply(request));\n\t\tif (entity != null) {\n\t\t\treturn new ApplicationResponse(true, \"Success\", enitytomodel.apply(entity));\n\t\t}\n\t\treturn new ApplicationResponse(false, \"Failure\", enitytomodel.apply(entity));\n\t}", "public void newUser(User user);", "Boolean registerNewUser(User user);", "public void createSupplier(User user){\n BCryptPasswordEncoder encoder= new BCryptPasswordEncoder();\n user.setPassword(encoder.encode(user.getPassword()));\n //creating roles\n Role userRole = new Role(\"SUPPLIER\");//we create a role type client\n //a user can then take a list of roles\n List<Role> roles = new ArrayList<>();//list of roles\n roles.add(userRole);//add client role type to the list\n user.setRoles(roles);//set a user to a role type\n userRepository.save(user);//save( save is a crudrepository method) the user to the database.\n }", "@Test\n public void testCreateStudentAccount() {\n // For this test, we also need the Access Client\n //final AccessClient accessClient = new AccessClient();\n\n // Create the new User Request Object\n final String username = \"[email protected]\";\n final String password = \"myPassword\";\n final CreateUserRequest createUserRequest = new CreateUserRequest(username, password, \"Student\", \"Graduate\");\n createUserRequest.setStudentAccount(true);\n\n final Students students = new StudentClient();\n final FetchStudentsRequest fetchStudentsRequest = new FetchStudentsRequest();\n final FetchStudentsResponse beforeStudentsResponse = students.fetchStudents(token, fetchStudentsRequest);\n\n // Now, perform the actual test - create the Account, and verify that\n // the response is ok, and that a Notification was sent\n final Response result = administration.createUser(token, createUserRequest);\n assertThat(result.isOk(), is(true));\n assertThat(spy.size(), is(0));\n\n //TODO Pavel 2014-04-15: students are not supposed to receive activation email now so the following test should not work\n // since no notification is generated. Once the emails are sent, following lines have to be uncommented\n// assertThat(spy.size(), is(1));\n// final String activationCode = spy.getNext().getFields().get(NotificationField.CODE);\n// assertThat(activationCode, is(not(nullValue())));\n\n // Attempt to login using the new User Account. It should not yet work,\n // since the account is not activated\n// final AuthenticationRequest request = new AuthenticationRequest(username, password);\n// final AuthenticationResponse response1 = accessClient.generateSession(request);\n// assertThat(response1.isOk(), is(false));\n// assertThat(response1.getError(), is(IWSErrors.AUTHENTICATION_ERROR));\n\n // Verify that the Students exists\n final FetchStudentsResponse afterFetchStudentsResponse = students.fetchStudents(token, fetchStudentsRequest);\n assertThat(afterFetchStudentsResponse.isOk(), is(true));\n assertThat(afterFetchStudentsResponse.getStudents().size(), is(beforeStudentsResponse.getStudents().size() + 1));\n\n // Activate the Account\n// final Fallible acticationResult = administration.activateUser(activationCode);\n// assertThat(acticationResult.isOk(), is(true));\n\n // Now, attempt to login again\n// final AuthenticationResponse response2 = accessClient.generateSession(request);\n// assertThat(response2.isOk(), is(true));\n// assertThat(response2.getToken(), is(not(nullValue())));\n\n //// Now, read the Permissions that the student has, basically, there is\n //// only 1 permission - which is applying for Open Offers\n //final FetchPermissionResponse permissionResponse = accessClient.fetchPermissions(response2.getToken());\n //assertThat(permissionResponse.isOk(), is(true));\n //// The following fails, since the order of the UserGroup Object in the\n //// Authorization Object is undefined, for this reason, the code is\n //// commented out\n //assertThat(permissionResponse.getAuthorizations().get(0).getUserGroup().getRole().getPermissions().contains(Permission.APPLY_FOR_OPEN_OFFER), is(true));\n\n // Deprecate the Students Session, the test is over :-)\n// final Fallible deprecateSessionResult = accessClient.deprecateSession(response2.getToken());\n// assertThat(deprecateSessionResult.isOk(), is(true));\n }", "public void createAdminUser() {\n\n Users user = new Users();\n user.setId(\"1\");\n user.setName(\"admin\");\n user.setPassword(bCryptPasswordEncoder.encode(\"admin\"));\n\n ExampleMatcher em = ExampleMatcher.matching().withIgnoreCase();\n Example<Users> example = Example.of(user, em);\n List<Users> users = userRepository.findAll(example);\n System.out.println(\"Existing users: \" + users);\n\n if (users.size() == 0) {\n System.out.println(\"admin user not found, hence creating admin user\");\n userRepository.save(user);\n System.out.println(\"admin user created\");\n latch.countDown();\n }\n try {\n latch.await();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "User createUser(UserCreationModel user);", "@Override\n public void run() {\n try {\n stringOrganizationIds.remove(defaultOrg);\n List<Integer> organizationIds = FluentIterable.from(stringOrganizationIds)\n .transform(Ints.stringConverter()).toList();\n\n newUser.setActive(false);\n UserProfileStruct savedUser = createAccountInternal(conn, newUser, password, resetQuestion,\n resetAnswer, givenName, surname, organizationId);\n for (Integer orgId : organizationIds) {\n Profile profile = new Profile();\n profile.setGivenName(givenName);\n profile.setSurname(surname);\n profile.setOrganizationId(orgId);\n profile.setUserId(savedUser.credentialedUser.getId());\n profile = profilePersister.createProfile(profile, conn);\n\n authService.grantAtLeast(profile.getId(), ROLE_READER, orgId);\n authService.grantAtLeast(orgId, ROLE_ADMIN, profile.getId());\n }\n\n User user = savedUser.credentialedUser.getUser();\n user.setActive(true);\n persistenceService.process(conn, new UserPersister.UpdateUserFunc(user));\n conn.commit();\n } catch (Exception e) {\n closeConnection(conn);\n }\n }", "UserAccount createUserAccount(User user, double amount);", "@Override\r\n\tpublic void postRequest(Request request, Response response) {\r\n\t\tcreateUser(request, response);\r\n\t}", "private ServerCommand processCreateUserCommand(RoMClient client, CreateUserClientCommand createUserCommand) {\r\n \t\tboolean success = false;\r\n \r\n \t\t// Check if user is admin\r\n \t\tif (client.getIsAdmin()) {\r\n \t\t\tsuccess = this.dataLayer.addUser(createUserCommand.getNewUserName(), createUserCommand.getSHA1EncryptedPassword());\r\n \t\t}\r\n \r\n \t\tServerCommand serverResponseCommand = new CreateUserServerCommand(success, createUserCommand);\r\n \r\n \t\treturn serverResponseCommand;\r\n \t}", "private RequestTypeEntity setCreateUserDetails(RequestTypeEntity requestTypeEntity,AuthDetailsVo authDetailsVo) {\n\n\t\trequestTypeEntity.setCreateBy(authDetailsVo.getUserId());\n\t\trequestTypeEntity.setCreateDate(CommonConstant.getCalenderDate());\n\t\trequestTypeEntity.setUpdateBy(authDetailsVo.getUserId());\n\t\trequestTypeEntity.setUpdateDate(CommonConstant.getCalenderDate());\n\t\trequestTypeEntity.setDeleteFlag(CommonConstant.FLAG_ZERO);\n\t\treturn requestTypeEntity;\n\t}", "public Boolean ins(User user);", "public static void creaDocente(Teacher doc) {\n\t\ttry {\n\t\t\tRequestContent rp = new RequestContent();\n\t\t\trp.type = RequestType.CREATE_USER;\n\t\t\trp.userType = UserType.TEACHER;\n\t\t\trp.parameters = new Object[] { doc };\n\t\t\tsend(rp);\n\t\t} catch (Exception e) {\n\n\t\t}\n\t}", "@BeforeClass(alwaysRun = true)\r\n\tpublic void createUser() throws ParseException, SQLException, JoseException {\r\n\t\tSystem.out.println(\"******STARTING***********\");\r\n\t\tUser userInfo = User.builder().build();\r\n\t\tuserInfo.setUsername(userName);\r\n\t\tuserInfo.setPassword(\"Test@123\");\r\n\t\tsessionObj = EnvSession.builder().cobSession(config.getCobrandSessionObj().getCobSession())\r\n\t\t\t\t.path(config.getCobrandSessionObj().getPath()).build();\r\n\t\t//userHelper.getUserSession(\"InsightsEngineusers26 \", \"TEST@123\", sessionObj); \r\n\t\tuserHelper.getUserSession(userInfo, sessionObj);\r\n\t\tlong providerId = 16441;\r\n\t\tproviderAccountId = providerId;\r\n\t\tResponse response = providerAccountUtils.addProviderAccountStrict(providerId, \"fieldarray\",\r\n\t\t\t\t\"budget1_v1.site16441.1\", \"site16441.1\", sessionObj);\r\n\t\tproviderAccountId = response.jsonPath().getLong(JSONPaths.PROVIDER_ACC_ID);\r\n\t\tAssert.assertTrue(providerAccountId!=null);\r\n\t\t\r\n\t\t}", "@PostMapping(\"/usersv1\")\n\tpublic Resource<User> createUser1(@RequestBody User user) {\n\t\tUser savedUser = userService.saveUser(user);\n\t\tSystem.out.println(\"Saved User \" + savedUser);\n\t\tResource<User> resource = new Resource<User>(savedUser);\n\t\tSystem.out.println(resource.getContent().getUserName());\n\t\t//ControllerLinkBuilder linkTo = new ControllerLinkBuilderFactory().linkTo(methodOn(this.getClass()).createUserResponseCode(user));\n\t\tControllerLinkBuilder linkTo = new ControllerLinkBuilderFactory().linkTo(methodOn(this.getClass()).getOneUser(savedUser.getUserId()));\n\t\t//ControllerLinkBuilder linkTo = new ControllerLinkBuilderFactory().linkTo(methodOn(this.getClass()).getOneUser(102));\n\t\tSystem.out.println(linkTo.toUri().toString());\n\t\t//resource.add(linkTo.withRel(\"To get with location of the added user use this url\"));\n\t\tresource.add(linkTo.withRel(\"added-user-link\"));\n\n\t\t//resource.add(linkTo.withRel(\"Access added user here: \"));\n\t\treturn resource;\n\t}", "@PreAuthorize(\"hasRole('ADMINISTRATOR') OR \"\r\n \t\t\t+ \"((hasRole('EMPLOYEE') OR isAnonymous()) AND \"\r\n \t\t\t+ \"(#userDTO.type.typeLabel == 'CUSTOMERLEGAL' OR #userDTO.type.typeLabel == 'CUSTOMERINDIVIDUAL'))\")\r\n \tpublic SystemUserDTO create(SystemUserDTO userDTO);", "@Override\n public ApiResponse createUser(SignupDto signupDto){\n var userRole = this.roleDAO.findByName(RoleEnum.USER);\n Set<Role> userRoles = new HashSet<Role>(Collections.singletonList(userRole.get()));\n\n Person newPerson = new Person();\n newPerson.setEmail(signupDto.getUsername());\n newPerson.setFirstName(signupDto.getFirstName());\n newPerson.setLastName(signupDto.getLastName());\n newPerson.setRoles(userRoles);\n\n // Encriptamos la contraseña que nos mando el usuario\n var encryptedPassword = this.passwordEncoder.encode(signupDto.getPassword());\n newPerson.setPassword(encryptedPassword);\n\n this.personDAO.save(newPerson);\n\n return new ApiResponse(true, \"Usuario creado\");\n\n }", "@Test(expected = OperationNotPermittedException.class)\n public void testCreateOnBehalfUser_notActingOn() throws Exception {\n idService.createOnBehalfUser(customer2.getOrganizationId(), \"\");\n }", "public void createUser(int usertype) {\n\t\tthePerson = PersonFactory.getPerson(usertype);\n\t}", "@Test\n public void testValidApplyWithBlockedUser() {\n with().parameters(\"loanAmount\", \"10\", \"term\", \"12 month\", \"name\", \"kung-fu\", \"surname\", \"panda\", \"personalId\", \"kung-fu-666-panda\").expect().body(\"passed\", equalTo(false), \"errors.size()\", is(1)).when().post(\"/apply\");\n //No additional user created, we have one from fixture sql\n assertEquals(1, userDataRepository.count());\n }", "public int createAccount(User user) throws ExistingUserException,\n UnsetPasswordException;", "Registration registration(long idUser, long idTrail);", "public void createClient(User user){\n //but first we hash the password for security purposes.\n BCryptPasswordEncoder encoder= new BCryptPasswordEncoder();\n user.setPassword(encoder.encode(user.getPassword()));\n //creating roles\n Role userRole = new Role(\"CLIENT\");//we create a role type client\n //a user can then take a list of roles\n List<Role> roles = new ArrayList<>();//list of roles\n roles.add(userRole);//add client role type to the list\n user.setRoles(roles);//set a user to a role type\n userRepository.save(user);//save the user to the database.\n }", "public void creatUser(String name, String phone, String email, String password);", "public String create() {\r\n\t\tuserService.create(userAdd);\r\n\t\tusers.setWrappedData(userService.list());\r\n\t\treturn \"create\";\r\n\t}", "int createSurvey(List<Question> questions, String userId);", "@Test(groups ={Slingshot,Regression})\n\tpublic void allAcctsSuperUserCreation() {\n\t\t Report.createTestLogHeader(\"MuMv\", \"Verify the Super user creation and their Audit entry in DB\"); \t \t \t \t \t \t \n\t\tUserProfile userProfile = new TestDataHelper().getUserProfile(\"Switchtopaperlessacctspecifics\");\n\t\tSMRAccountDetails smrProfile = new TestDataHelper().getAllSMRUserProfile(\"SubmitMeterReadodb\");\n\t\tCrmUserProfile crmuserProfile = new TestDataHelper().getCrmUserProfile(\"SlingshotCrmDetailsSuperuser\"); \n\t\tnew LoginAction()\n\t\t.BgbnavigateToLogin()\n\t\t.BgbloginDetails(userProfile);\n\t\tnew MultiUserMultiViewAction()\n\t\t.ClickManageUserLink()\n\t\t.ClickAddNewUserLink()\n\t\t.AddUserRadioButton()\n\t\t.SuperUserCreation()\n\t\t.SuperUserOverlayyes();\n\t\tnew BgbRegistrationAction()\n\t\t.AddNewSuperUser(userProfile);\n\t\tnew MultiUserMultiViewAction()\n\t\t.verifyAuditTable(userProfile)\n\t\t.AdduserConfirmationPage();\n\t/*\t.confirmationPageVerificationLinks();\n\t\t/*.UserJourney_SuperUserAccessVerification(userProfile,smrProfile);\n\t\tnew SapCrmAction()\n\t\t.loginDetails(crmuserProfile)\n\t\t.searchCrmFieldsVerification(crmuserProfile, userProfile);\n*/\n\t}", "@Headers({\n \"Content-Type:application/json\"\n })\n @POST(\"administrators\")\n Call<Void> createUser(\n @retrofit2.http.Body UserBody userBody\n );", "public void setupUser() {\n }", "public void new_user(){\n }", "BaseUser createAdminUser(Application application);", "@RequestMapping(value=\"\", method=RequestMethod.POST, consumes=MediaType.MULTIPART_FORM_DATA_VALUE, produces = \"application/json\")\n\tpublic @ResponseBody Object createUser(@RequestParam String userName, @RequestParam String userPassword, @RequestParam String userFirstName, \n\t\t\t@RequestParam String userLastName, @RequestParam String userPicURL,@RequestParam String userEmail, @RequestParam String userEmployer,\n\t\t\t@RequestParam String userDesignation, @RequestParam String userCity, @RequestParam String userState, @RequestParam(required=false) String programId, \n\t\t\t@RequestParam long updatedBy, @RequestParam String userExpertise, @RequestParam String userRoleDescription,\n\t\t\t@RequestParam String userPermissionCode, @RequestParam String userPermissionDescription, HttpServletRequest request, HttpServletResponse response) {\n\t\treturn userService.createUser(userName, userPassword, userFirstName, userLastName, userPicURL, userEmail, userEmployer, userDesignation, userCity, userState, programId, updatedBy, userExpertise, userRoleDescription, userPermissionCode, userPermissionDescription, request, response);\n\t}", "public void requestAccountCreation(Secretary sec) {\n \n System.out.println(this.iD + \": Requesting account creation from secretary \" + sec.iD);\n sec.addToWaitingListForApproval(this);\n }", "Student createStudent();", "private static void oneUserExample()\t{\n\t}", "private void createUser(String Address, String Phone_number,String needy) {\n // TODO\n // In real apps this userId should be fetched\n // by implementing firebase auth\n if (TextUtils.isEmpty(userId)) {\n userId = mFirebaseDatabase.push().getKey();\n }\n\n com.glitch.annapurna.needy user = new needy(Address,Phone_number,needy);\n\n mFirebaseDatabase.child(userId).setValue(user);\n\n addUserChangeListener();\n }", "private Appuser newUser() {\n //TODO: get logged user from security context\n String createdBy = \"REST\";\n Appuser au = new Appuser();\n Userdetails ud = new Userdetails();\n boolean idOK = false;\n Long id = 0L;\n while (!idOK) {\n id = EntityIdGenerator.random();\n idOK = !userRepository.exists(id);\n }\n //notNull\n ud.setNotes(\"none\");\n au.setPasswdHash(\"*\");\n au.setCreatedBy(createdBy);\n au.setUserId(id);\n ud.setUserId(id);\n au.setUserdetails(ud);\n return au;\n }", "User create(User user);", "private void createLocalStudentUserData(FirebaseUser user){\n\n String name = usernameTextView.getText().toString();\n StudentManager.createStudent(name, user.getUid(), newSchoolID);\n\n }", "@Test(groups ={Slingshot,Regression})\n\tpublic void allAcctsStdUserCreation() {\n\t\tReport.createTestLogHeader(\"MuMv\", \"Verify whether the user can successfully enter details in Add new user page and registers it\"); \t \t \t \n\t\tUserProfile userProfile = new TestDataHelper().getUserProfile(\"MuMVTestDatas\");\n\t\tnew LoginAction()\n\t\t.BgbnavigateToLogin()\n\t\t.BgbloginDetails(userProfile);\n\t\tnew MultiUserMultiViewAction()\n\t\t.ClickManageUserLink()\n\t\t.ClickAddNewUserLink()\n\t\t.AddUserRadioButton()\n\t\t.StandardUserCreation();\n\t\tnew BgbRegistrationAction()\n\t\t.AddNewStdUser(userProfile);\n\t\tnew MultiUserMultiViewAction()\n\t\t.verifyAuditTable(userProfile)\n\t\t.AdduserConfirmationPage()\n\t\t.confirmationPageVerificationLinks();\n\t}", "UserModel createUserModel(UserModel userModel);", "public int saveUser(User user);", "public void saveProfileCreateData() {\r\n\r\n }", "Document createAccount(String username, String accountDisplayName,\n String accountFullName, double balance, double interestRate);", "void createUser(User newUser, String token) throws AuthenticationException, InvalidUserException, UserAlreadyExistsException;", "private void createNewUser() {\n ContentValues contentValues = new ContentValues();\n contentValues.put(DataBaseConstants.Constants_TBL_PATIENTS.GENDER, getSelectedGender());\n contentValues.put(DataBaseConstants.Constants_TBL_PATIENTS.PIN, edtConfirmPin.getText().toString().trim());\n contentValues.put(DataBaseConstants.Constants_TBL_PATIENTS.LAST_NAME, edtLastName.getText().toString().trim());\n contentValues.put(DataBaseConstants.Constants_TBL_PATIENTS.FIRST_NAME, edtFirstName.getText().toString().trim());\n contentValues.put(DataBaseConstants.Constants_TBL_PATIENTS.STATUS, spnStatus.getSelectedItem().toString().trim());\n contentValues.put(DataBaseConstants.Constants_TBL_PATIENTS.DATE_OF_BIRTH, edtDateOfBirth.getText().toString().trim());\n contentValues.put(DataBaseConstants.Constants_TBL_PATIENTS.BLOOD_GROUP, spnBloodGroup.getSelectedItem().toString().trim());\n contentValues.put(DataBaseConstants.Constants_TBL_PATIENTS.IS_DELETED, \"N\");\n contentValues.put(DataBaseConstants.Constants_TBL_PATIENTS.MOBILE_NUMBER, edtMobileNumber.getText().toString());\n contentValues.put(DataBaseConstants.Constants_TBL_CATEGORIES.CREATE_DATE, Utils.getCurrentDateTime(Utils.DD_MM_YYYY));\n\n dataBaseHelper.saveToLocalTable(DataBaseConstants.TableNames.TBL_PATIENTS, contentValues);\n context.startActivity(new Intent(CreatePinActivity.this, LoginActivity.class));\n }", "void saveUserData(User user);", "@Override\r\n\tpublic boolean createUser(Utilisateur u) {\n\t\treturn false;\r\n\t}", "@Override\n protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {\n if (CREATE_USER_REQUEST_CODE == requestCode && RESULT_OK == resultCode){\n if (data != null) {\n String username = data.getStringExtra(UserCreationActivity.BUNDLE_NEW_USER_NAME);\n\n User user = new User(username, User.EMPTY_CASE, User.EMPTY_CASE);\n\n createUser(user);\n }\n }\n }", "public void createAccount(final String userName , final String email , String password){\n //checking if user input is not empty\n\n\n if(userName!=null && email!=null && password!=null){\n\n\n progressBar.setVisibility(View.VISIBLE);\n\n //setting up new user ----- see assistant\n firebaseAuth.createUserWithEmailAndPassword(email , password)\n .addOnCompleteListener(new OnCompleteListener<AuthResult>() {\n\n //onCopletion of user sign in\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n // safe check if was sussesfull\n if(task.isSuccessful()) {\n //Maping a user on database\n currentUser = firebaseAuth.getCurrentUser() ;\n assert currentUser != null;\n final String userId = currentUser.getUid();\n // creating a hashmap to map\n\n Map<String,String> userObj = new HashMap<>() ;\n\n userObj.put(\"userId\", userId) ;\n userObj.put(\"userName\" , userName) ;\n\n collectionReference.add(userObj)\n .addOnSuccessListener(new OnSuccessListener<DocumentReference>() {\n @Override\n public void onSuccess(DocumentReference documentReference) {\n //Toast.makeText(CreateAccActivity.this,\"onSucess\",Toast.LENGTH_LONG).show();\n\n Log.d(\"hello\",\"sussess\") ;\n documentReference.get()\n .addOnCompleteListener(new OnCompleteListener<DocumentSnapshot>() {\n @Override\n public void onComplete(@NonNull Task<DocumentSnapshot> task) {\n\n //if(!Objects.requireNonNull(task.getResult()).exists()){\n\n //Log.d(\"hello\",\"sussess\") ;\n progressBar.setVisibility(View.INVISIBLE);\n\n //Toast.makeText(CreateAccActivity.this,userName,Toast.LENGTH_LONG).show();\n\n\n String name = Objects.requireNonNull(task.getResult()).getString(\"userName\") ;\n\n journalApi journalApi = new journalApi() ;\n util.journalApi.getInstance().setUserID(userId);\n util.journalApi.getInstance().setUserName(userName);\n\n //Toast.makeText(CreateAccActivity.this,name,Toast.LENGTH_LONG).show();\n\n Log.d(\"hello\",userName) ;\n Intent intent = new Intent(CreateAccActivity.this\n ,PostJournalActivity.class) ;\n\n intent.putExtra(\"username\",name);\n intent.putExtra(\"userid\",userId) ;\n\n startActivity(intent);\n\n\n }\n /*else{\n progressBar.setVisibility(View.INVISIBLE);\n }*/\n\n\n });\n\n }\n })\n .addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Toast.makeText(CreateAccActivity.this\n ,\"error\" , Toast.LENGTH_LONG).show();\n }\n });\n\n }\n }\n }).addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n\n Toast.makeText(CreateAccActivity.this,\"Something Went wrong\"+e\n ,Toast.LENGTH_LONG).show();\n progressBar.setVisibility(View.INVISIBLE);\n\n }\n });\n\n }\n else{\n\n Toast.makeText(CreateAccActivity.this,\"All the Fields are Requoired\",Toast.LENGTH_LONG).show();\n }\n\n }", "User createUser(ResultSet resultSet, User user) throws SQLException;", "@Test\n public void createUserTestTest()\n {\n HashMap<String, Object> values = new HashMap<String, Object>();\n values.put(\"age\", \"22\");\n values.put(\"dob\", new Date());\n values.put(\"firstName\", \"CreateFName\");\n values.put(\"lastName\", \"CreateLName\");\n values.put(\"middleName\", \"CreateMName\");\n values.put(\"pasword\", \"user\");\n values.put(\"address\", \"CreateAddress\");\n values.put(\"areacode\", \"CreateAddressLine\");\n values.put(\"city\", \"CreateCity\");\n values.put(\"country\", \"CreateCountry\");\n values.put(\"road\", \"CreateRoad\");\n values.put(\"suberb\", \"CreateSuberb\");\n values.put(\"cell\", \"CreateCell\");\n values.put(\"email\", \"user\");\n values.put(\"homeTell\", \"CreateHomeTell\");\n values.put(\"workTell\", \"CreateWorkTell\");\n createUser.createNewUser(values);\n\n Useraccount useraccount = useraccountCrudService.findById(ObjectId.getCurrentUserAccountId());\n Assert.assertNotNull(useraccount);\n\n Garage garage = garageCrudService.findById(ObjectId.getCurrentGarageId());\n Assert.assertNotNull(garage);\n\n Saleshistory saleshistory = saleshistoryCrudService.findById(ObjectId.getCurrentSalesHistoryId());\n Assert.assertNotNull(saleshistory);\n }", "private void createUsersAndApplications() throws Exception {\n UserManagementUtils.signupUser(USER_ONE, PASSWORD, FIRST_NAME, ORGANIZATION);\n //signup of user two\n UserManagementUtils.signupUser(USER_TWO, PASSWORD, FIRST_NAME, ORGANIZATION);\n\n restAPIStoreClientUser1 = new RestAPIStoreImpl(USER_ONE, PASSWORD, SUPER_TENANT_DOMAIN, storeURLHttps);\n restAPIStoreClientUser2 = new RestAPIStoreImpl(USER_TWO, PASSWORD, SUPER_TENANT_DOMAIN, storeURLHttps);\n\n // Create Application for user one\n HttpResponse appCreationResponse1 = restAPIStoreClientUser1.createApplication(APPLICATION_NAME,\n \"App created by user1\", APIMIntegrationConstants.APPLICATION_TIER.UNLIMITED,\n ApplicationDTO.TokenTypeEnum.JWT);\n userOneApplicationId = appCreationResponse1.getData();\n\n // Create Application for user two\n HttpResponse appCreationResponse2 = restAPIStoreClientUser2.createApplication(APPLICATION_NAME,\n \"App created by user2\", APIMIntegrationConstants.APPLICATION_TIER.UNLIMITED,\n ApplicationDTO.TokenTypeEnum.JWT);\n userTwoApplicationId = appCreationResponse2.getData();\n\n HttpResponse appCreationResponse3 = restAPIStoreClientUser1.createApplicationWithOrganization(SHARED_APPLICATION_NAME,\n \"App created by user1\", APIMIntegrationConstants.APPLICATION_TIER.UNLIMITED,\n ApplicationDTO.TokenTypeEnum.JWT, groups);\n userOneSharedApplicationId = appCreationResponse3.getData();\n }", "int createAccount(Account account);", "@Override\n\tpublic String createUserAccountQuery(String username, String password, String firstName, String lastName,\n\t\t\tString dob, String accountType, String accountID, String creationDate, String requestDate,\n\t\t\tString phoneNumber, String email, boolean isApproved) {\n\t\treturn null;\n\t}", "public void createAccount() {\n\t\tSystem.out.print(\"Enter Name: \");\n\t\tString name = nameCheck(sc.next());\n\t\tSystem.out.print(\"Enter Mobile No.: \");\n\t\tlong mobNo = mobCheck(sc.nextLong());\n\t\tlong accNo = mobNo - 1234;\n\t\tSystem.out.print(\"Enter Balance: \"); \n\t\tfloat balance = amountCheck(sc.nextFloat());\n\t\tuserBean BeanObjCreateAccountObj = new userBean(accNo, name, mobNo, balance);\n\t\tSystem.out.println(\"Account created with Account Number: \" +accNo);\n\t\tServiceObj.bankAccountCreate(BeanObjCreateAccountObj);\n\t\t\n\t\n\t}", "static public int setupDemoAccount(CmProgram program, HaBasicUser.UserType userType) throws Exception {\n Connection conn = null;\n try {\n conn = HMConnectionPool.getConnection();\n HaBasicUser user = HaUserFactory.createDemoUser(conn, \"ess\", userType);\n\n CmStudentDao.getInstance().assignProgramToStudent(conn, user.getUserKey(),program,null);\n \n return user.getUserKey();\n \n }\n finally {\n SqlUtilities.releaseResources(null,null,conn);\n }\n }", "public void setCreateUser(User createUser)\r\n/* */ {\r\n/* 151 */ this.createUser = createUser;\r\n/* */ }", "static void CreateNewUserToDB(String[] userData, boolean[] userPermissions) throws IOException, InvalidKeySpecException, NoSuchAlgorithmException, ClassNotFoundException {\n if (CreateNewUser(userData, GetListOfUsers())) {\n Socket client = ConnectionToServer();\n\n // connects to the server with information and attempts to get the auth token\n // for the user after successful Login\n if (client.isConnected()) {\n OutputStream outputStream = client.getOutputStream();\n InputStream inputStream = client.getInputStream();\n\n ObjectOutputStream send = new ObjectOutputStream(outputStream);\n ObjectInputStream receiver = new ObjectInputStream(inputStream);\n\n send.writeUTF(\"createNewUser\");\n send.writeUTF(userData[0]);\n send.writeUTF(userData[1]);\n send.writeUTF(userData[2]);\n send.writeUTF(userData[3]);\n send.writeBoolean(userPermissions[0]);\n send.writeBoolean(userPermissions[1]);\n send.writeBoolean(userPermissions[2]);\n send.writeBoolean(userPermissions[3]);\n send.writeUTF(loggedInUser);\n send.writeUTF(token);\n send.flush();\n\n WasRequestSuccessful(receiver.readBoolean(), receiver.readUTF());\n\n // End connections\n send.close();\n receiver.close();\n client.close();\n }\n }\n }", "@Override\n\tpublic boolean create(User user) {\n\t\treturn false;\n\t}", "User registration(User user);", "user(String username, int herotype) {\r\n this.username = username;\r\n this.herotype = herotype;\r\n }", "public void saveUser(User user);", "@Test\n public void createDuplicateAccount() {\n final String username1 = \"[email protected]\";\n final String username2 = \"[email protected]\";\n final String username3 = \"[email protected]\";\n final String firstname = \"william\";\n final String lastname = \"shakespeare\";\n final String address = \"@iaeste.org\";\n\n final CreateUserRequest request1 = new CreateUserRequest(username1, firstname, lastname);\n final CreateUserResponse response1 = administration.createUser(token, request1);\n assertThat(response1, is(not(nullValue())));\n assertThat(response1.isOk(), is(true));\n assertThat(response1.getUser(), is(not(nullValue())));\n assertThat(response1.getUser().getAlias(), is(firstname + '.' + lastname + address));\n\n final CreateUserRequest request2 = new CreateUserRequest(username2, firstname, lastname);\n final CreateUserResponse response2 = administration.createUser(token, request2);\n assertThat(response2, is(not(nullValue())));\n assertThat(response2.isOk(), is(true));\n assertThat(response2.getUser(), is(not(nullValue())));\n assertThat(response2.getUser().getAlias(), is(firstname + '.' + lastname + 2 + address));\n\n final CreateUserRequest request3 = new CreateUserRequest(username3, firstname, lastname);\n final CreateUserResponse response3 = administration.createUser(token, request3);\n assertThat(response3, is(not(nullValue())));\n assertThat(response3.isOk(), is(true));\n assertThat(response3.getUser(), is(not(nullValue())));\n assertThat(response3.getUser().getAlias(), is(firstname + '.' + lastname + 3 + address));\n }", "public void addStudent(User user) {\n\t\t\r\n\t}", "public EOSUser createUser(EOSUser user, Map<String, String> userData) throws EOSDuplicatedEntryException,\n\t\t\tEOSForbiddenException, EOSUnauthorizedException, EOSValidationException;", "void createUser(CreateUserDto createUserDto);", "public void insertUser() {}", "@org.testng.annotations.Test(dataProvider = \"createUser\", dataProviderClass = Service1DataProvider.class)\n public void createUserWithDP(String name, String job) {\n Response response = regressionClient.createUser(name, job);\n dbAssist.responseValidation(response, name, job);\n }", "Accessprofile create(Accessprofile accessprofile);", "public boolean createUser(UserProfile userProfile) {\n\t\tmongoTemplate.insert(userProfile, \"UserProfile_Details\");\n\t\treturn true;\n\t}", "private String createUser(String name) {\n\t\treturn null;\n\t}" ]
[ "0.6346299", "0.62345433", "0.6182914", "0.6176046", "0.6168964", "0.615934", "0.615823", "0.6144956", "0.61324626", "0.60506374", "0.6038169", "0.60309446", "0.5977909", "0.5954644", "0.5934294", "0.58755046", "0.58146006", "0.57494354", "0.5745901", "0.57091963", "0.57057256", "0.57054424", "0.56881845", "0.56674105", "0.5659351", "0.5656434", "0.56553787", "0.5642166", "0.5617515", "0.5612119", "0.5608348", "0.5593799", "0.55932057", "0.5591807", "0.557674", "0.5562323", "0.5555743", "0.5548982", "0.55366427", "0.55238634", "0.55214363", "0.5517508", "0.54913634", "0.5487105", "0.54845566", "0.5476695", "0.54732406", "0.5465235", "0.5460834", "0.54572886", "0.5456974", "0.5456255", "0.54499024", "0.54444623", "0.543879", "0.54386896", "0.54374164", "0.5437279", "0.54367846", "0.5435354", "0.54344517", "0.54293674", "0.54245937", "0.5411911", "0.5410052", "0.5403076", "0.54005677", "0.53993845", "0.5397608", "0.53963375", "0.53560984", "0.5346454", "0.53422874", "0.5338729", "0.5337444", "0.5334406", "0.5326071", "0.5325188", "0.5324892", "0.53232336", "0.5321361", "0.53174585", "0.5304045", "0.52951807", "0.52941597", "0.5286573", "0.5286296", "0.52848697", "0.52798015", "0.52751005", "0.527344", "0.5268198", "0.5265443", "0.52552533", "0.52537644", "0.52535355", "0.52527183", "0.52469313", "0.5246606", "0.5245472" ]
0.60366666
11
/ renamed from: a
public C30677a newBuilder() { C30677a aVar = new C30677a(); aVar.addUnknownFields(unknownFields()); return aVar; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }", "interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }", "public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}", "public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }", "public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }", "public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }", "private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }", "protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }", "public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }", "public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}", "public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}", "public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }", "public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }", "public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }", "public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }", "public void a() {\n ((a) this.a).a();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}", "public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}", "public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}", "public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}", "public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}", "interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}", "public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}", "public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}", "public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }", "@Override\n\tpublic void a() {\n\t\t\n\t}", "public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}", "void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}", "public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}", "public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }", "public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}", "public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}", "public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}", "public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}", "public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}", "public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }", "public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}", "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}", "public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}", "public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }", "public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}", "public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}", "public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}", "public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}", "public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}", "public void acionou(int a){\n\t\t\tb=a;\n\t\t}", "public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }", "public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}", "public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }", "public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }", "public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }", "public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }", "public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }", "public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}", "public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}", "public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }", "public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}", "protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }", "public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }", "public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }", "public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }", "public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}", "public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}", "public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}", "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }", "interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }", "public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}", "public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }", "private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }", "interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }" ]
[ "0.6249595", "0.6242955", "0.61393225", "0.6117684", "0.61140615", "0.60893875", "0.6046927", "0.60248226", "0.60201806", "0.59753186", "0.5947817", "0.5912414", "0.5883872", "0.5878469", "0.587005", "0.58678955", "0.58651674", "0.5857262", "0.58311176", "0.58279663", "0.58274275", "0.5794977", "0.57889086", "0.57837564", "0.5775938", "0.57696944", "0.57688814", "0.5752557", "0.5690739", "0.5678386", "0.567034", "0.56661606", "0.56595623", "0.56588095", "0.56576085", "0.5654566", "0.56445956", "0.56401736", "0.5638699", "0.56305", "0.56179273", "0.56157446", "0.5607045", "0.5605239", "0.5600648", "0.5595156", "0.55912733", "0.5590759", "0.5573802", "0.5556659", "0.55545336", "0.5550466", "0.5549409", "0.5544484", "0.55377364", "0.55291194", "0.55285007", "0.55267704", "0.5525843", "0.5522067", "0.5520236", "0.55098593", "0.5507351", "0.5488173", "0.54860324", "0.54823226", "0.5481975", "0.5481588", "0.5480086", "0.5478032", "0.54676044", "0.5463578", "0.54506475", "0.54438734", "0.5440832", "0.5440053", "0.5432095", "0.5422814", "0.5421934", "0.54180306", "0.5403851", "0.5400144", "0.5400042", "0.5394655", "0.53891194", "0.5388751", "0.53749055", "0.53691155", "0.53590924", "0.5356525", "0.5355397", "0.535498", "0.5354871", "0.535003", "0.5341249", "0.5326222", "0.53232485", "0.53197914", "0.5316941", "0.5311645", "0.5298656" ]
0.0
-1
/ renamed from: a
public ZABEMobileNetwork build() { return new ZABEMobileNetwork(buildUnknownFields()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }", "interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }", "public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}", "public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }", "public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }", "public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }", "private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }", "protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }", "public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }", "public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}", "public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}", "public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }", "public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }", "public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }", "public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }", "public void a() {\n ((a) this.a).a();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}", "public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}", "public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}", "public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}", "public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}", "interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}", "public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}", "public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}", "public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }", "@Override\n\tpublic void a() {\n\t\t\n\t}", "public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}", "void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}", "public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}", "public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }", "public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}", "public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}", "public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}", "public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}", "public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}", "public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }", "public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}", "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}", "public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}", "public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }", "public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}", "public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}", "public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}", "public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}", "public void acionou(int a){\n\t\t\tb=a;\n\t\t}", "public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}", "public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }", "public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}", "public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }", "public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }", "public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }", "public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }", "public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }", "public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}", "public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}", "public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }", "public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}", "protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }", "public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }", "public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }", "public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }", "public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}", "public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}", "public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}", "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }", "interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }", "public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}", "public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }", "private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }", "interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }" ]
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064", "0.5794689", "0.57890314", "0.57838726", "0.5775679", "0.57694733", "0.5769128", "0.57526815", "0.56907034", "0.5677874", "0.5670547", "0.56666386", "0.56592244", "0.5658682", "0.56574154", "0.5654324", "0.5644676", "0.56399715", "0.5638734", "0.5630582", "0.56183887", "0.5615435", "0.56069666", "0.5605207", "0.56005067", "0.559501", "0.55910283", "0.5590222", "0.55736613", "0.5556682", "0.5554544", "0.5550076", "0.55493855", "0.55446684", "0.5538079", "0.5529058", "0.5528109", "0.552641", "0.5525864", "0.552186", "0.5519972", "0.5509587", "0.5507195", "0.54881203", "0.5485328", "0.54826045", "0.5482066", "0.5481586", "0.5479751", "0.54776895", "0.54671466", "0.5463307", "0.54505056", "0.54436916", "0.5440517", "0.5439747", "0.5431944", "0.5422869", "0.54217863", "0.5417556", "0.5403905", "0.5400223", "0.53998446", "0.5394735", "0.5388649", "0.5388258", "0.5374842", "0.5368887", "0.53591394", "0.5357029", "0.5355688", "0.535506", "0.5355034", "0.53494394", "0.5341044", "0.5326166", "0.53236824", "0.53199095", "0.53177035", "0.53112453", "0.5298229" ]
0.0
-1
/ renamed from: a
public int encodedSize(ZABEMobileNetwork jVar) { return jVar.unknownFields().mo132944h(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }", "interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }", "public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}", "public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }", "public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }", "public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }", "private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }", "protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }", "public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }", "public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}", "public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}", "public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }", "public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }", "public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }", "public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }", "public void a() {\n ((a) this.a).a();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}", "public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}", "public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}", "public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}", "public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}", "interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}", "public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}", "public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}", "public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }", "@Override\n\tpublic void a() {\n\t\t\n\t}", "public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}", "void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}", "public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}", "public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }", "public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}", "public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}", "public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}", "public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}", "public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}", "public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }", "public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}", "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}", "public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}", "public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }", "public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}", "public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}", "public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}", "public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}", "public void acionou(int a){\n\t\t\tb=a;\n\t\t}", "public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}", "public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }", "public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}", "public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }", "public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }", "public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }", "public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }", "public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }", "public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}", "public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}", "public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }", "public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}", "protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }", "public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }", "public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }", "public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }", "public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}", "public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}", "public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}", "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }", "interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }", "public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}", "public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }", "private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }", "interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }" ]
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064", "0.5794689", "0.57890314", "0.57838726", "0.5775679", "0.57694733", "0.5769128", "0.57526815", "0.56907034", "0.5677874", "0.5670547", "0.56666386", "0.56592244", "0.5658682", "0.56574154", "0.5654324", "0.5644676", "0.56399715", "0.5638734", "0.5630582", "0.56183887", "0.5615435", "0.56069666", "0.5605207", "0.56005067", "0.559501", "0.55910283", "0.5590222", "0.55736613", "0.5556682", "0.5554544", "0.5550076", "0.55493855", "0.55446684", "0.5538079", "0.5529058", "0.5528109", "0.552641", "0.5525864", "0.552186", "0.5519972", "0.5509587", "0.5507195", "0.54881203", "0.5485328", "0.54826045", "0.5482066", "0.5481586", "0.5479751", "0.54776895", "0.54671466", "0.5463307", "0.54505056", "0.54436916", "0.5440517", "0.5439747", "0.5431944", "0.5422869", "0.54217863", "0.5417556", "0.5403905", "0.5400223", "0.53998446", "0.5394735", "0.5388649", "0.5388258", "0.5374842", "0.5368887", "0.53591394", "0.5357029", "0.5355688", "0.535506", "0.5355034", "0.53494394", "0.5341044", "0.5326166", "0.53236824", "0.53199095", "0.53177035", "0.53112453", "0.5298229" ]
0.0
-1
/ renamed from: a
public void encode(ProtoWriter iVar, ZABEMobileNetwork jVar) throws IOException { iVar.mo40528a(jVar.unknownFields()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }", "interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }", "public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}", "public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }", "public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }", "public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }", "private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }", "protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }", "public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }", "public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}", "public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}", "public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }", "public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }", "public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }", "public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }", "public void a() {\n ((a) this.a).a();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}", "public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}", "public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}", "public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}", "public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}", "interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}", "public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}", "public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}", "public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }", "@Override\n\tpublic void a() {\n\t\t\n\t}", "public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}", "void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}", "public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}", "public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }", "public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}", "public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}", "public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}", "public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}", "public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}", "public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }", "public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}", "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}", "public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}", "public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }", "public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}", "public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}", "public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}", "public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}", "public void acionou(int a){\n\t\t\tb=a;\n\t\t}", "public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}", "public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }", "public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}", "public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }", "public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }", "public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }", "public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }", "public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }", "public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}", "public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}", "public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }", "public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}", "protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }", "public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }", "public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }", "public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }", "public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}", "public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}", "public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}", "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }", "interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }", "public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}", "public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }", "private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }", "interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }" ]
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064", "0.5794689", "0.57890314", "0.57838726", "0.5775679", "0.57694733", "0.5769128", "0.57526815", "0.56907034", "0.5677874", "0.5670547", "0.56666386", "0.56592244", "0.5658682", "0.56574154", "0.5654324", "0.5644676", "0.56399715", "0.5638734", "0.5630582", "0.56183887", "0.5615435", "0.56069666", "0.5605207", "0.56005067", "0.559501", "0.55910283", "0.5590222", "0.55736613", "0.5556682", "0.5554544", "0.5550076", "0.55493855", "0.55446684", "0.5538079", "0.5529058", "0.5528109", "0.552641", "0.5525864", "0.552186", "0.5519972", "0.5509587", "0.5507195", "0.54881203", "0.5485328", "0.54826045", "0.5482066", "0.5481586", "0.5479751", "0.54776895", "0.54671466", "0.5463307", "0.54505056", "0.54436916", "0.5440517", "0.5439747", "0.5431944", "0.5422869", "0.54217863", "0.5417556", "0.5403905", "0.5400223", "0.53998446", "0.5394735", "0.5388649", "0.5388258", "0.5374842", "0.5368887", "0.53591394", "0.5357029", "0.5355688", "0.535506", "0.5355034", "0.53494394", "0.5341044", "0.5326166", "0.53236824", "0.53199095", "0.53177035", "0.53112453", "0.5298229" ]
0.0
-1
/ renamed from: a
public ZABEMobileNetwork decode(ProtoReader hVar) throws IOException { C30677a aVar = new C30677a(); long a = hVar.mo40516a(); while (true) { int b = hVar.mo40518b(); if (b != -1) { FieldEncoding c = hVar.mo40519c(); aVar.addUnknownField(b, c, c.rawProtoAdapter().decode(hVar)); } else { hVar.mo40517a(a); return aVar.build(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }", "interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }", "public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}", "public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }", "public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }", "public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }", "private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }", "protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }", "public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }", "public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}", "public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}", "public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }", "public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }", "public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }", "public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }", "public void a() {\n ((a) this.a).a();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}", "public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}", "public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}", "public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}", "public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}", "interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}", "public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}", "public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}", "public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }", "@Override\n\tpublic void a() {\n\t\t\n\t}", "public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}", "void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}", "public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}", "public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }", "public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}", "public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}", "public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}", "public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}", "public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}", "public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }", "public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}", "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}", "public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}", "public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }", "public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}", "public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}", "public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}", "public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}", "public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}", "public void acionou(int a){\n\t\t\tb=a;\n\t\t}", "public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }", "public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}", "public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }", "public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }", "public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }", "public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }", "public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }", "public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}", "public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}", "public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }", "public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}", "protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }", "public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }", "public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }", "public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }", "public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}", "public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}", "public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}", "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }", "interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }", "public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}", "public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }", "private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }", "interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }" ]
[ "0.6249595", "0.6242955", "0.61393225", "0.6117684", "0.61140615", "0.60893875", "0.6046927", "0.60248226", "0.60201806", "0.59753186", "0.5947817", "0.5912414", "0.5883872", "0.5878469", "0.587005", "0.58678955", "0.58651674", "0.5857262", "0.58311176", "0.58279663", "0.58274275", "0.5794977", "0.57889086", "0.57837564", "0.5775938", "0.57696944", "0.57688814", "0.5752557", "0.5690739", "0.5678386", "0.567034", "0.56661606", "0.56595623", "0.56588095", "0.56576085", "0.5654566", "0.56445956", "0.56401736", "0.5638699", "0.56305", "0.56179273", "0.56157446", "0.5607045", "0.5605239", "0.5600648", "0.5595156", "0.55912733", "0.5590759", "0.5573802", "0.5556659", "0.55545336", "0.5550466", "0.5549409", "0.5544484", "0.55377364", "0.55291194", "0.55285007", "0.55267704", "0.5525843", "0.5522067", "0.5520236", "0.55098593", "0.5507351", "0.5488173", "0.54860324", "0.54823226", "0.5481975", "0.5481588", "0.5480086", "0.5478032", "0.54676044", "0.5463578", "0.54506475", "0.54438734", "0.5440832", "0.5440053", "0.5432095", "0.5422814", "0.5421934", "0.54180306", "0.5403851", "0.5400144", "0.5400042", "0.5394655", "0.53891194", "0.5388751", "0.53749055", "0.53691155", "0.53590924", "0.5356525", "0.5355397", "0.535498", "0.5354871", "0.535003", "0.5341249", "0.5326222", "0.53232485", "0.53197914", "0.5316941", "0.5311645", "0.5298656" ]
0.0
-1
/ renamed from: b
public ZABEMobileNetwork redact(ZABEMobileNetwork jVar) { C30677a a = jVar.newBuilder(); a.clearUnknownFields(); return a.build(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo2508a(bxb bxb);", "@Override\n public void func_104112_b() {\n \n }", "@Override\n public void b() {\n }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "@Override\n\tpublic void b2() {\n\t\t\n\t}", "void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "@Override\n\tpublic void b() {\n\n\t}", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public bb b() {\n return a(this.a);\n }", "@Override\n\tpublic void b1() {\n\t\t\n\t}", "public void b() {\r\n }", "@Override\n\tpublic void bbb() {\n\t\t\n\t}", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public abstract void b(StringBuilder sb);", "public void b() {\n }", "public void b() {\n }", "protected b(int mb) {\n/* 87 */ this.b = mb;\n/* */ }", "public u(b paramb)\r\n/* 7: */ {\r\n/* 8: 9 */ this.a = paramb;\r\n/* 9: */ }", "public interface b {\n void H_();\n\n void I_();\n\n void J_();\n\n void a(C0063d dVar);\n\n void a(byte[] bArr);\n\n void b(boolean z);\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public void b() {\n ((a) this.a).b();\n }", "public np a()\r\n/* 33: */ {\r\n/* 34:49 */ return this.b;\r\n/* 35: */ }", "b(a aVar) {\n super(0);\n this.this$0 = aVar;\n }", "public t b() {\n return a(this.a);\n }", "public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }", "public static String a(int c) {\n/* 89 */ return b.a(c);\n/* */ }", "private void m678b(byte b) {\n byte[] bArr = this.f523r;\n bArr[0] = b;\n this.f552g.mo502b(bArr);\n }", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "public abstract T zzm(B b);", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public void b(World paramaqu, BlockPosition paramdt, Block parambec)\r\n/* 27: */ {\r\n/* 28: 47 */ bcm localbcm = paramaqu.s(paramdt);\r\n/* 29: 48 */ if ((localbcm instanceof bdv)) {\r\n/* 30: 49 */ ((bdv)localbcm).h();\r\n/* 31: */ } else {\r\n/* 32: 51 */ super.b(paramaqu, paramdt, parambec);\r\n/* 33: */ }\r\n/* 34: */ }", "public abstract void zzc(B b, int i, int i2);", "public interface b {\n}", "public interface b {\n}", "private void m10263b(byte b) throws cf {\r\n this.f6483r[0] = b;\r\n this.g.m10347b(this.f6483r);\r\n }", "BSubstitution createBSubstitution();", "public void b(ahd paramahd) {}", "void b();", "public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "B database(S database);", "public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}", "public abstract C0631bt mo9227aB();", "public an b() {\n return a(this.a);\n }", "protected abstract void a(bru parambru);", "static void go(Base b) {\n\t\tb.add(8);\n\t}", "void mo46242a(bmc bmc);", "public interface b extends c {\n void a(Float f);\n\n void a(Integer num);\n\n void b(Float f);\n\n void c(Float f);\n\n String d();\n\n void d(Float f);\n\n void d(String str);\n\n void e(Float f);\n\n void e(String str);\n\n void f(String str);\n\n void g(String str);\n\n Long j();\n\n LineChart k();\n }", "public interface bca extends bbn {\n bca a();\n\n bca a(String str);\n\n bca b(String str);\n\n bca c(String str);\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public abstract BoundType b();", "public void b(amj paramamj)\r\n/* 538: */ {\r\n/* 539:579 */ this.f = paramamj;\r\n/* 540: */ }", "b(a aVar, com.bytedance.jedi.model.h.a aVar2) {\n super(aVar2);\n this.f21531a = aVar;\n this.f21532b = new com.bytedance.jedi.model.h.f(aVar);\n }", "private void b(int paramInt)\r\n/* 193: */ {\r\n/* 194:203 */ this.h.a(a(paramInt));\r\n/* 195: */ }", "public void b(ahb paramahb)\r\n/* 583: */ {\r\n/* 584:625 */ for (int i = 0; i < this.a.length; i++) {\r\n/* 585:626 */ this.a[i] = amj.b(paramahb.a[i]);\r\n/* 586: */ }\r\n/* 587:628 */ for (i = 0; i < this.b.length; i++) {\r\n/* 588:629 */ this.b[i] = amj.b(paramahb.b[i]);\r\n/* 589: */ }\r\n/* 590:631 */ this.c = paramahb.c;\r\n/* 591: */ }", "interface b {\n\n /* compiled from: CreditAccountContract */\n public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }\n\n /* compiled from: CreditAccountContract */\n public interface b extends c {\n void a(Float f);\n\n void a(Integer num);\n\n void b(Float f);\n\n void c(Float f);\n\n String d();\n\n void d(Float f);\n\n void d(String str);\n\n void e(Float f);\n\n void e(String str);\n\n void f(String str);\n\n void g(String str);\n\n Long j();\n\n LineChart k();\n }\n}", "@Override\n\tpublic void visit(PartB partB) {\n\n\t}", "public abstract void zzb(B b, int i, long j);", "public abstract void zza(B b, int i, zzeh zzeh);", "int metodo2(int a, int b) {\r\n\r\n\t\tthis.a += 5; // se modifica el campo del objeto, el uso de la palabra reservada this se utiliza para referenciar al campo.\r\n\t\tb += 7;\r\n\t\treturn a; // modifica en la asignaci\\u00f3n\r\n\t}", "private void internalCopy(Board b) {\n for (int i = 0; i < SIDE * SIDE; i += 1) {\n set(i, b.get(i));\n }\n\n _directions = b._directions;\n _whoseMove = b._whoseMove;\n _history = b._history;\n }", "public int b()\r\n/* 69: */ {\r\n/* 70:74 */ return this.b;\r\n/* 71: */ }", "public void b(StringBuilder sb) {\n sb.append(this.a);\n sb.append(')');\n }", "public void b() {\n e$a e$a;\n try {\n e$a = this.b;\n }\n catch (IOException iOException) {\n return;\n }\n Object object = this.c;\n e$a.b(object);\n }", "public abstract void a(StringBuilder sb);", "public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}", "public abstract void zzf(Object obj, B b);", "public interface bdp {\n\n /* renamed from: a */\n public static final bdp f3422a = new bdo();\n\n /* renamed from: a */\n bdm mo1784a(akh akh);\n}", "@Override\n\tpublic void parse(Buffer b) {\n\t\t\n\t}", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public abstract void a(b paramb, int paramInt1, int paramInt2);", "public void mo1945a(byte b) throws cf {\r\n m10263b(b);\r\n }", "void mo83703a(C32456b<T> bVar);", "public void a(String str) {\n ((b.b) this.b).d(str);\n }", "public void selectB() { }", "BOperation createBOperation();", "void metodo1(int a, int b) {\r\n\t\ta += 5;//par\\u00e1metro con el mismo nombre que el campo.\r\n\t\tb += 7;\r\n\t}", "private static void m2196a(StringBuffer stringBuffer, byte b) {\n stringBuffer.append(\"0123456789ABCDEF\".charAt((b >> 4) & 15)).append(\"0123456789ABCDEF\".charAt(b & 15));\n }", "public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }", "public void b(fv paramfv)\r\n/* 408: */ {\r\n/* 409:423 */ this.a = new amj[36];\r\n/* 410:424 */ this.b = new amj[4];\r\n/* 411:425 */ for (int i = 0; i < paramfv.c(); i++)\r\n/* 412: */ {\r\n/* 413:426 */ fn localfn = paramfv.b(i);\r\n/* 414:427 */ int j = localfn.d(\"Slot\") & 0xFF;\r\n/* 415:428 */ amj localamj = amj.a(localfn);\r\n/* 416:429 */ if (localamj != null)\r\n/* 417: */ {\r\n/* 418:430 */ if ((j >= 0) && (j < this.a.length)) {\r\n/* 419:431 */ this.a[j] = localamj;\r\n/* 420: */ }\r\n/* 421:433 */ if ((j >= 100) && (j < this.b.length + 100)) {\r\n/* 422:434 */ this.b[(j - 100)] = localamj;\r\n/* 423: */ }\r\n/* 424: */ }\r\n/* 425: */ }\r\n/* 426: */ }", "public void b(String str) {\n ((b.b) this.b).e(str);\n }", "public String b()\r\n/* 35: */ {\r\n/* 36:179 */ return a();\r\n/* 37: */ }", "public abstract void zza(B b, int i, T t);", "public Item b(World paramaqu, BlockPosition paramdt)\r\n/* 189: */ {\r\n/* 190:220 */ return null;\r\n/* 191: */ }", "public abstract void zza(B b, int i, long j);", "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public abstract void mo9798a(byte b);", "public void mo9798a(byte b) {\n if (this.f9108f == this.f9107e) {\n mo9827i();\n }\n byte[] bArr = this.f9106d;\n int i = this.f9108f;\n this.f9108f = i + 1;\n bArr[i] = b;\n this.f9109g++;\n }", "public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}", "private void m676a(TField bkVar, byte b) {\n if (b == -1) {\n b = m687e(bkVar.f538b);\n }\n short s = bkVar.f539c;\n short s2 = this.f519n;\n if (s <= s2 || s - s2 > 15) {\n m678b(b);\n mo446a(bkVar.f539c);\n } else {\n m686d(b | ((s - s2) << 4));\n }\n this.f519n = bkVar.f539c;\n }", "private static void m831a(C0741g<?> gVar, C0747b bVar) {\n gVar.mo9477a(C0743i.f718b, (C0739e<? super Object>) bVar);\n gVar.mo9476a(C0743i.f718b, (C0738d) bVar);\n gVar.mo9474a(C0743i.f718b, (C0736b) bVar);\n }", "public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}", "private void j()\n/* */ {\n/* 223 */ c localc = this.b;\n/* 224 */ this.b = this.c;\n/* 225 */ this.c = localc;\n/* 226 */ this.c.b();\n/* */ }", "public lj ar(byte b) {\n throw new Runtime(\"d2j fail translate: java.lang.RuntimeException: can not merge I and Z\\r\\n\\tat com.googlecode.dex2jar.ir.TypeClass.merge(TypeClass.java:100)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeRef.updateTypeClass(TypeTransformer.java:174)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.provideAs(TypeTransformer.java:780)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.e1expr(TypeTransformer.java:496)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:713)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:703)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.enexpr(TypeTransformer.java:698)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:719)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:703)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.s1stmt(TypeTransformer.java:810)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.sxStmt(TypeTransformer.java:840)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.analyze(TypeTransformer.java:206)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer.transform(TypeTransformer.java:44)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar$2.optimize(Dex2jar.java:162)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertCode(Dex2Asm.java:414)\\r\\n\\tat com.googlecode.d2j.dex.ExDex2Asm.convertCode(ExDex2Asm.java:42)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar$2.convertCode(Dex2jar.java:128)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertMethod(Dex2Asm.java:509)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertClass(Dex2Asm.java:406)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertDex(Dex2Asm.java:422)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar.doTranslate(Dex2jar.java:172)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar.to(Dex2jar.java:272)\\r\\n\\tat com.googlecode.dex2jar.tools.Dex2jarCmd.doCommandLine(Dex2jarCmd.java:108)\\r\\n\\tat com.googlecode.dex2jar.tools.BaseCmd.doMain(BaseCmd.java:288)\\r\\n\\tat com.googlecode.dex2jar.tools.Dex2jarCmd.main(Dex2jarCmd.java:32)\\r\\n\");\n }", "public interface AbstractC10485b {\n /* renamed from: a */\n void mo64153a(boolean z);\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }" ]
[ "0.64558864", "0.6283203", "0.6252635", "0.6250949", "0.6244743", "0.6216273", "0.6194491", "0.6193556", "0.61641675", "0.6140157", "0.60993093", "0.60974354", "0.6077849", "0.6001867", "0.5997364", "0.59737104", "0.59737104", "0.5905105", "0.5904295", "0.58908087", "0.5886636", "0.58828026", "0.5855491", "0.584618", "0.5842517", "0.5824137", "0.5824071", "0.58097327", "0.5802052", "0.58012927", "0.579443", "0.5792392", "0.57902914", "0.5785124", "0.57718205", "0.57589084", "0.5735892", "0.5735892", "0.5734873", "0.5727929", "0.5720821", "0.5712531", "0.5706813", "0.56896514", "0.56543154", "0.5651059", "0.5649904", "0.56496733", "0.5647035", "0.5640965", "0.5640109", "0.563993", "0.5631903", "0.5597427", "0.55843794", "0.5583287", "0.557783", "0.55734867", "0.55733293", "0.5572254", "0.55683887", "0.55624336", "0.55540246", "0.5553985", "0.55480546", "0.554261", "0.5535739", "0.5529958", "0.5519634", "0.5517503", "0.55160624", "0.5511545", "0.5505353", "0.5500533", "0.5491741", "0.5486198", "0.5481978", "0.547701", "0.54725856", "0.5471632", "0.5463497", "0.5460805", "0.5454913", "0.5454885", "0.54519916", "0.5441594", "0.5436747", "0.5432453", "0.5425923", "0.5424724", "0.54189867", "0.54162544", "0.54051477", "0.53998184", "0.53945845", "0.53887725", "0.5388146", "0.5387678", "0.53858143", "0.53850687", "0.5384439" ]
0.0
-1
Constructor que inicializa el parametro de la clase
public ControladorRanking(){ clasificacion = new Ranking[10]; for(int i=0;i<10;i++){ clasificacion[i]=new Ranking(); clasificacion[i].setLogin(" "); clasificacion[i].setMediana(0); }//END_FOR }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Constructor() {\r\n\t\t \r\n\t }", "public Constructor(){\n\t\t\n\t}", "public Parameters() {\n\t}", "public Pasien() {\r\n }", "public BaseParameters(){\r\n\t}", "public prueba()\r\n {\r\n }", "public TParametrosVOImpl() {\r\n }", "public AntrianPasien() {\r\n\r\n }", "public PowerMethodParameter() {\r\n\t\t\r\n\t\t//constructor fara parametru, utilizat in cazul in care utilizatorul nu introduce\r\n\t\t//fisierul sursa si nici fiesierul destinatie ca parametrii in linia de comanda\r\n\t\tSystem.out.println(\"****The constructor without parameters PowerMethodParameter has been called****\");\r\n\t\tSystem.out.println(\"You did not specify the input file and the output file\");\r\n\t\t\r\n\t}", "public Curso() {\r\n }", "public LightParameter()\r\n\t{\r\n\t}", "public Alojamiento() {\r\n\t}", "public UserParameter() {\n }", "public Carrera(){\n }", "public Caso_de_uso () {\n }", "public Plato(){\n\t\t\n\t}", "public Final_parametre() {\r\n\t}", "public Vehiculo() {\r\n }", "public Classe() {\r\n }", "public ParamJson() {\n\t\n\t}", "public SlanjePoruke() {\n }", "public Perro() {\n// super(\"No define\", \"NN\", 0); en caso el constructor de animal tenga parametros\n this.pelaje = \"corto\";\n }", "public CustomEntitiesTaskParameters() {}", "private BaseDatos() {\n }", "public Cgg_jur_anticipo(){}", "public void init(Object[] parameters) {\n\n\t}", "public Corso() {\n\n }", "public ListParameter()\r\n\t{\r\n\t}", "public CampoModelo(String valor, String etiqueta, Integer longitud)\n/* 10: */ {\n/* 11:17 */ this.valor = valor;\n/* 12:18 */ this.etiqueta = etiqueta;\n/* 13:19 */ this.longitud = longitud;\n/* 14: */ }", "public Datos(){\n }", "private Params()\n {\n }", "private Instantiation(){}", "public Generic(){\n\t\tthis(null);\n\t}", "public ModuleParams()\n\t{\n\t}", "public Busca(){\n }", "public TebakNusantara()\n {\n }", "public Funcionario() {\r\n\t\t\r\n\t}", "public ValorVariavel() {\r\n }", "public Propuestas() {}", "public MorteSubita() {\n }", "public Clade() {}", "public Troco() {\n }", "public Valvula(){}", "public TCubico(){}", "public AfiliadoVista() {\r\n }", "public Postoj() {}", "Casilla(String nombre){\n this.nombre=nombre; \n }", "public Aritmetica(){ }", "public tn(String paramString, ho paramho)\r\n/* 12: */ {\r\n/* 13:11 */ super(paramString, paramho);\r\n/* 14: */ }", "public TTau() {}", "public Odontologo() {\n }", "protected ParameterList(){\n //title = t;\n //cellWorld = cw;\n }", "public MLetter(Parameters parametersObj) {\r\n\t\tsuper(parametersObj);\r\n\t}", "public Kullanici() {}", "public NhanVien()\n {\n }", "public Funcionaria(){\n\n }", "public Transportista() {\n }", "public Persona() {\n\t}", "public Trening() {\n }", "public Promo(String n){\nnom = n;\n}", "public Chauffeur() {\r\n\t}", "public Achterbahn() {\n }", "public Exercicio(){\n \n }", "public Producto() {\r\n }", "public MPaciente() {\r\n\t}", "public Livro() {\n\n\t}", "public Pitonyak_09_02() {\r\n }", "public Producto (){\n\n }", "public ModuleParams() {\n }", "public Persona() {\n }", "public Candidatura (){\n \n }", "public ParameterizedInstantiateFactory() {\r\n super();\r\n }", "public Setparam() {\r\n super();\r\n }", "public CCuenta()\n {\n }", "public Persona(){\n \n }", "public Persona(){\n \n }", "public Funcionario(String nome, double salario){//construtor\nthis.nome=nome;\nthis.salario=salario;\n\n}", "public ContasCorrentes(){\n this(0,\"\",0.0,0.0,0);\n }", "@Test\n\tpublic void testParameterizedConstructor() {\n\t\tQuestionsEntity questions=new QuestionsEntity(1,\"SOX\",\"Have all changes has been approved\",\"Yes\");\n\t assertEquals(\"Yes\",questions.getResponse());\n\t}", "private DBParameter() {\n }", "public Venda() {\n }", "public Ciudad()\n {\n\n }", "public RptPotonganGaji() {\n }", "public Phl() {\n }", "public cola_de_un_banco(){// se crea nuestro metodo costructor \r\n primero=null;//se crea el tipo de indicaciones con valor a null\r\n ultimo=null;\r\n}", "public Persona() {\n \t\n }", "protected Asignatura()\r\n\t{}", "public YonetimliNesne() {\n }", "public Contructor(int year, String name) {\n // constructor name must match class name and cannot have return type\n // all classes have constructor by default\n // f you do not create a class constructor yourself, Java creates one for you.\n // However, then you are not able to set initial values for object attributes.\n // constructor can also take parameters\n batchYear = year;\n studentName = name;\n }", "public Sistema(){\r\n\t\t\r\n\t}", "public Facturacion() {\n }", "public CyanSus() {\n\n }", "public PersonaFisica() {}", "public Respuesta() {\n }", "public Casa() { \n \n /* Cuando se crea la casa, tambien se debe crear la puerta */\n \n laPuerta = new Puerta();\n \n /* se pone la letra F por que son de tipo float */\n laPuerta.setAncho(2.3F);\n laPuerta.setAlto(1.5F);\n \n }", "public ClaseGenerica(T objeto){\n this.objeto=objeto;\n }", "public EnsembleLettre() {\n\t\t\n\t}", "public Documento() {\n\n\t}", "protected void initParametros ( int numParametros ) {\n if ( numParametros > 0 )\n parametros = new Parametro[ numParametros ];\n }", "public DetArqueoRunt () {\r\n\r\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}" ]
[ "0.703147", "0.7029833", "0.69145393", "0.6908502", "0.6831717", "0.67776334", "0.674887", "0.671675", "0.670564", "0.6690012", "0.66832846", "0.6642523", "0.6628807", "0.6609864", "0.66073024", "0.6606715", "0.65773684", "0.65650076", "0.65332675", "0.6518476", "0.6495822", "0.6489313", "0.6458749", "0.6458637", "0.6432368", "0.6423944", "0.6418879", "0.640629", "0.640293", "0.6392033", "0.6390958", "0.6365459", "0.63645095", "0.6355026", "0.63488746", "0.6342607", "0.6341729", "0.6338707", "0.6333281", "0.6324969", "0.6317574", "0.6309525", "0.6308032", "0.6297549", "0.6264466", "0.6257032", "0.62521905", "0.6251311", "0.6245591", "0.624512", "0.6244593", "0.6239397", "0.6239289", "0.6231212", "0.6221421", "0.62167376", "0.6215923", "0.62141514", "0.62057626", "0.62020123", "0.6199133", "0.619663", "0.6196152", "0.61898524", "0.61829144", "0.6180137", "0.6175663", "0.6174965", "0.617367", "0.6171262", "0.616723", "0.61536735", "0.6149272", "0.614289", "0.6134996", "0.6134996", "0.6131012", "0.6120193", "0.6119693", "0.61182845", "0.6117823", "0.6111966", "0.6111603", "0.6107979", "0.6103938", "0.6102446", "0.60986507", "0.6096333", "0.6096204", "0.60959566", "0.6095563", "0.60952216", "0.6093871", "0.6092332", "0.6089986", "0.6087976", "0.6082066", "0.60813046", "0.6080512", "0.6074965", "0.6069317" ]
0.0
-1
END_CONSTRUCTOR Actualiza la clasificacion de los 10 mejores jugadores
public void actualizarRanking(String login, int mediana){ int temp=0; for(int i=0;i<10;i++){ if((clasificacion[i].getLogin()).equals(login)){ //si el jugador ya esta en los 10 mejores jugadores actualizo su punctuacion temp=(clasificacion[i].getMediana()) + mediana; clasificacion[i].setMediana(temp); ordenarRanking(); //ordeno el ranking con la puntuacion del jugador actualizada return; }//END_IF }//END_FOR for(int j=0;j<10;j++){ if((clasificacion[j].getMediana()) < mediana){//si existe en el ranking una puntuacion menor de la que se passa a la funcion por parametro System.arraycopy(clasificacion, j, clasificacion, j+1, clasificacion.length-j-1);//reordena las puntuaciones menores que mediana Ranking aux=new Ranking(); aux.setLogin(login); aux.setMediana(mediana); clasificacion[j]=aux; return; }//END_IF }//END_FOR }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public jugador(){\n\t\tnombre=\"Dave\";\n\t\ttipo=\"jugador\";\n\t\tpoderataque=6;\n\t\tpuntosvida=20;\n\t}", "public Jeu(){\n Saisie.Initialiser();\n this.premierJoueur = CreationDePersonnage(\"joueur1\");\n this.secondJoueur = CreationDePersonnage(\"joueur2\");\n Combat();\n Saisie.Terminer();\n }", "public Clasificacion (ArrayList<Jugador> jugadores)\n\t{\n\t\tthis.jugadores = jugadores;\n\t\tthis.numJug = jugadores.size();\n\t\tthis.podio = new ArrayList<Jugador>();\n\t\tthis.ganadores = new ArrayList<Jugador>();\n\t\tthis.baraja = new Baraja();\n\t\tbaraja.barajar(); baraja.barajar();\n\t\tbarajaDeCartas = baraja.getBaraja();\n\t}", "public Pitonyak_09_02() {\r\n }", "public static void init()\n\t{\n\t\t\n\t\tu.creerGalaxie(\"VoieLactee\", \"spirale\", 0);\n\t\tu.creerEtoile(\"Soleil\", 0, 'F', u.getGalaxie(\"VoieLactee\")); //1\n\t\tu.creerObjetFroid(\"Terre\", 150000 , 13000 , 365 , u.getObjet(1)); //2\n\n\t\tu.creerObjetFroid(\"Lune\", 200 , 5000 , 30 , u.getObjet(2)); //3\n\n\t\tu.creerObjetFroid(\"Mars\", 200000 , 11000 , 750 , u.getObjet(1)); //4\n\n\t\tu.creerObjetFroid(\"Phobos\", 150 , 500 , 40 , u.getObjet(4)); //5\n\n\t\tu.creerObjetFroid(\"Pluton\", 1200000 , 4000 , 900 , u.getObjet(1)); //6\n\n\t\tu.creerEtoile(\"Sirius\", 2, 'B', u.getGalaxie(\"VoieLactee\")); //7\n\n\t\tu.creerObjetFroid(\"BIG-1\", 1000 , 50000 , 333 , u.getObjet(7)); //8\n\n\t\tu.creerGalaxie(\"M31\", \"lenticulaire\", 900000);\n\t\tu.creerEtoile(\"XS67\", 8, 'F', u.getGalaxie(\"M31\")); //9\n\t\tu.creerObjetFroid(\"XP88\", 160000 , 40000 , 400 , u.getObjet(9)); //10\n\t}", "private static void eligeJugadores() {\r\n\t\tint eleccion;\r\n\t\tdo {\r\n\t\t\tSystem.out.print(\"Elige el numero de jugadores [2,6]: \");\r\n\t\t\teleccion = Teclado.leerInt();\r\n\t\t} while (eleccion < 2 || eleccion > 6);\r\n\t\tnJugadores = eleccion;\r\n\t\tjugadores = new JugadorM[nJugadores];\r\n\t\tjugadores[0] = new JugadorM(\"Jugador\", true);\r\n\t\tfor (int i = 1; i < jugadores.length; i++)\r\n\t\t\tjugadores[i] = new JugadorM(\"Maquina\" + i, false);\r\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "public Jugador(int dorsal)\n {\n Random rmd = new Random();\n edad = rmd.nextInt(23)+18 ;\n estadoForma = rmd.nextInt(11);\n int nom = rmd.nextInt(33);\n Nombres nomb = new Nombres();\n nombre = nomb.getNombre(nom);\n this.dorsal = dorsal;\n this.nombre = nombre;\n }", "public Jugador(String nombreJugador)\n {\n this.nombreJugador = nombreJugador;\n cartasQueTieneEnLaMano = new Carta[5];\n numeroCartasEnLaMano = 0;\n }", "public cola_de_un_banco(){// se crea nuestro metodo costructor \r\n primero=null;//se crea el tipo de indicaciones con valor a null\r\n ultimo=null;\r\n}", "public Cgg_jur_anticipo(){}", "public JajarGenjang() {\n initComponents();\n }", "public Vocas(String jmeno) {\r\n super(jmeno);\r\n }", "public void init() {\n //De leden mogen niet extreem obesitas hebben. Onder of gelijk aan 180kg.\n Valerie= 40;\n Jeroen=100;\n Hans=80;\n\n // Teller begint bij 0. Stel: staaf is 80 hoog.\n // 180 is waar de grafiek begint.\n nulpunt=180; //Dit is het nulpunt van de staaf\n som_v = nulpunt - Valerie;\n som_j = nulpunt - Jeroen;\n som_h = nulpunt - Hans;\n }", "public Celula() { // Sentinela\n\t\tthis.item = new Jogador();\n\t\tproximo = null;\n\t}", "public Regla2(){ /*ESTE ES EL CONSTRUCTOR POR DEFECTO */\r\n\r\n /* TODAS LAS CLASES TIENE EL CONSTRUCTOR POR DEFECTO, A VECES SE CREAN AUTOMATICAMENTE, PERO\r\n PODEMOS CREARLOS NOSOTROS TAMBIEN SI NO SE HUBIERAN CREADO AUTOMATICAMENTE\r\n */\r\n \r\n }", "public Jefatura(String nom,double sue, int agno,int mes,int dia){\r\n \r\n super(nom,sue,agno,mes,dia); \r\n \r\n }", "public Jogador(String nome, String cor){\r\n this.nome = nome;\r\n this.cor = cor;\r\n this.contaCorrente = new ContaCorrente(1500);\r\n this.propriedadesDoJogador = new ArrayList<>();\r\n this.companhiasDoJogador = new ArrayList<>();\r\n this.posicaoNoTabuleiroIndice = 0;\r\n this.possuiCartaSairDaPrisao = false;\r\n this.reclusao = 0;\r\n this.sorteNosDados = 0;\r\n monopolioNoGrupoDeCor = new ArrayList<>();\r\n }", "public Mannschaft() {\n }", "private UsineJoueur() {}", "public ControladorRanking(){\n clasificacion = new Ranking[10];\n for(int i=0;i<10;i++){\n clasificacion[i]=new Ranking();\n clasificacion[i].setLogin(\" \");\n clasificacion[i].setMediana(0);\n }//END_FOR\n }", "public Tequisquiapan()\n {\n nivel = new Counter(\"Barrio Tequisquiapan: \");\n \n nivel.setValue(5);\n hombre.escenario=5;\n\n casa5.creaCasa(4);\n addObject(casa5, 2, 3);\n \n arbol2.creaArbol(2);\n addObject(arbol2, 20, 3);\n arbol3.creaArbol(3);\n addObject(arbol3, 20, 16); \n \n addObject(letrero5, 15, 8);\n\n addObject(hombre, 11, 1);\n \n arbol4.creaArbol(4);\n addObject(arbol4, 20, 20);\n arbol5.creaArbol(5);\n addObject(arbol5, 3, 17);\n \n fuente2.creaAfuera(6);\n addObject(fuente2, 11, 19);\n \n lampara1.creaAfuera(2);\n addObject(lampara1, 8, 14);\n lampara2.creaAfuera(1);\n addObject(lampara2, 8, 7);\n \n addObject(nivel, 5, 0);\n addObject(atras, 20, 2); \n }", "public Zjcclims() {\n\t\tsuper();\n\t}", "public ContasCorrentes(){\n this(0,\"\",0.0,0.0,0);\n }", "public Drakkar(){\r\n\t\tanguilas=m;\r\n\t}", "public Tbdcongvan36() {\n super();\n }", "public BaseDatos() {\r\n super();\r\n listaNumeros.add(6.0f);\r\n }", "public Janela01() {\n initComponents();\n }", "public misTutores() {\n initComponents();\n }", "public void init() {\n\t\t \r\n\t\t }", "public Pasien() {\r\n }", "private void prepare()\n {\n addObject(new TempoLimite(), 432, 207);\n addObject(new NumeroVidas(), 395, 278);\n\n Cliqueparajogar clique = new Cliqueparajogar();\n addObject(clique, getWidth()/2, getHeight()/2);\n\n Som som = new Som();\n addObject(som, getWidth() - 37, getHeight()-57);\n \n umMin ummin = new umMin();\n addObject(ummin,630,206);\n\n doisMin doismin = new doisMin();\n addObject(doismin,670,206);\n \n tresMin tresmin = new tresMin();\n addObject(tresmin,710,206);\n \n quatroMin quatromin = new quatroMin();\n addObject(quatromin,750,206);\n \n cincoMin cincomin = new cincoMin();\n addObject(cincomin,790,206);\n \n umaVida umavida = new umaVida();\n addObject(umavida,630,280);\n \n duasVidas duasvidas = new duasVidas();\n addObject(duasvidas,670,280);\n \n tresVidas tresvidas = new tresVidas();\n addObject(tresvidas,710,280);\n \n quatroVidas quatrovidas = new quatroVidas();\n addObject(quatrovidas,750,280);\n \n cincoVidas cincovidas = new cincoVidas();\n addObject(cincovidas,790,280);\n \n voltaratras voltar = new voltaratras();\n addObject(voltar, getWidth() -37, 428);\n }", "private void inicializarVariablesControlRonda() {\n\t\ttieneAs = new int[4];\n\t\tfor(int i=0;i<tieneAs.length;i++) {\n\t\t\ttieneAs[i]=0;\n\t\t}\n\t\tidJugadores = new String[3];\n\t\tvalorManos = new int[4];\n\t\t\n\t\tmazo = new Baraja();\n\t\tCarta carta;\n\t\tganador = new ArrayList<String>();\n\t\tapuestasJugadores = new int[3];\n\t\tmanoJugador1 = new ArrayList<Carta>();\n\t\tmanoJugador2 = new ArrayList<Carta>();\n\t\tmanoJugador3 = new ArrayList<Carta>();\n\t\tmanoDealer = new ArrayList<Carta>();\n\t\tparejaNombreGanancia = new ArrayList<Pair<String,Integer>>(); \n\t\t\n\t\t// gestiona las tres manos en un solo objeto para facilitar el manejo del hilo\n\t\tmanosJugadores = new ArrayList<ArrayList<Carta>>(4);\n\t\tmanosJugadores.add(manoJugador1);\n\t\tmanosJugadores.add(manoJugador2);\n\t\tmanosJugadores.add(manoJugador3);\n\t\tmanosJugadores.add(manoDealer);\n\t\t// reparto inicial jugadores 1 y 2\n\t\tfor (int i = 1; i <= 2; i++) {\n\t\t\tcarta = mazo.getCarta();\n\t\t\tmanoJugador1.add(carta);\n\t\t\tcalcularValorMano(carta, 0);\n\t\t\tcarta = mazo.getCarta();\n\t\t\tmanoJugador2.add(carta);\n\t\t\tcalcularValorMano(carta, 1);\n\t\t\tcarta = mazo.getCarta();\n\t\t\tmanoJugador3.add(carta);\n\t\t\tcalcularValorMano(carta, 2);\n\t\t}\n\t\t// Carta inicial Dealer\n\t\tcarta = mazo.getCarta();\n\t\tmanoDealer.add(carta);\n\t\tcalcularValorMano(carta, 3);\n\n\t\t\n\t}", "public Persona(){\n /*super(nombresPosibles\n [r.nextInt(nombresPosibles.length)],(byte)r.nextInt(101));\n */\n super(\"Anónimo\",(byte)5);\n String[] nombresPosibles={\"Patracio\",\"Eusequio\",\"Bartolo\",\"Mortadelo\",\"Piorroncho\",\"Tiburcio\"};\n String[] apellidosPosibles={\"Sánchez\",\"López\",\"Martínez\",\"González\",\"Páramos\",\"Jiménez\",\"Parra\"};\n String[] nacionalidadesPosibles={\"Española\",\"Francesa\",\"Alemana\",\"Irlandesa\",\"Japonesa\",\"Congoleña\",\"Bielorrusa\",\"Mauritana\"};\n Random r=new Random();\n this.apellido=apellidosPosibles\n [r.nextInt(apellidosPosibles.length)];\n this.nacionalidad=nacionalidadesPosibles\n [r.nextInt(nacionalidadesPosibles.length)];\n mascota=new Mascota[5];\n this.saldo=r.nextInt(101);\n }", "public ListaJugadores() {\n\n\t\tListaJugadores.numListasJugadores++;\n\n\t\tthis.id = ListaJugadores.numListasJugadores;\n\n\t\tthis.jugadoresEnMesa = new ArrayList<Jugador>();\n\t\tthis.cargarJugadoresEnMesa();\n\n\t\tif (ListaJugadores.jugadoresRetirados == null) {\n\t\t\tListaJugadores.jugadoresRetirados = new ArrayList<Jugador>();\n\t\t\tthis.cargarJugadoresRetirados();\n\t\t}\n\n\t}", "public Caso_de_uso () {\n }", "public Kullanici() {}", "public VPacientes() {\n initComponents();\n inicializar();\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "public static void instanciarCreencias() {\n\t\tfor(int i =0; i < GestorPartida.getContJugadores(); i++) {\n\t\t\t\n\t\t\tGestorPartida.jugadores[i].setCreencias(new Creencias(GestorPartida.jugadores, GestorPartida.objetoJugador, GestorPartida.objetoSala, i)); \n\t\t}\n\t}", "public RptPotonganGaji() {\n }", "public MPaciente() {\r\n\t}", "public MorteSubita() {\n }", "public Jugador(String nick)\n {\n nombre = nick;\n mano = new Carta[5];\n cartasDeMano = 0; \n }", "public AntrianPasien() {\r\n\r\n }", "public void newGameJBJ() {\n newGame();\n min = 0; max = 1000;\n myctr.setMinMaxLabel();\n myctr.setLabels();\n }", "public Knuckels(){\n super(\"Knuckels\",10);\n }", "private void __sep__Constructors__() {}", "public SlanjePoruke() {\n }", "public Regras()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(1100, 457, 1); \n prepare();\n if(MenuPrincipal.mundo == 1) //se o mundo anterior tiver sido MenuPrincipal\n som1 = MenuPrincipal.som2; //a música ficar com a mesma opção do mundo Menu Principal (a tocar ou sem som)}\n else if(MenuPrincipal.mundo == 3) //se o mundo anterior tiver sido MundoJogo\n som1 = MundoJogo.som3; //a música ficar com a mesma opção do mundo MundoJogo (a tocar ou sem som)\n imgsom2 = MenuPrincipal.imgsom1; //atualiza a imagem da coluna para ser igual à do mundo MenuPrincipal (mute/unmute)\n MenuPrincipal.mundo = 2; //atualizar 'mundo' para indicar que o mundo atual é o mundo Regras\n }", "public Ov_Chipkaart() {\n\t\t\n\t}", "public Jovem(String identificador) {\n super(identificador);\n numAulas = DEFAULT_N_AULAS;\n }", "public ventAdmon() {\r\n try {\r\n jbInit();\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }", "public Inicio()\n { \n super(600, 400, 1);\n prepararInicio();\n\n }", "@Override\n public void crearReloj() {\n Manecilla seg;\n seg = new Manecilla(40,60,0,1,null);\n cronometro = new Reloj(seg);\n }", "public Joueur(int id, int pa)\r\n/* */ {\r\n/* 34 */ this.id_joueur = id;\r\n/* 35 */ this.points_action = pa;\r\n/* */ }", "private Pares(){\n\t\t\tprimero=null;\n\t\t\tsegundo=null;\n\t\t\tdistancia=0;\n\t\t}", "@Override\r\n\tprotected void initVentajas() {\n\r\n\t}", "private GrupoCuenta(String nombre, int operacion)\r\n/* 11: */ {\r\n/* 12:31 */ this.nombre = nombre;\r\n/* 13:32 */ this.operacion = operacion;\r\n/* 14: */ }", "@PostConstruct\r\n\tpublic void init() {\n\t\ttexto=\"Nombre : \";\r\n\t\topcion = 1;\r\n\t\tverPn = true;\r\n\t\ttipoPer = 1;\r\n\t\tsTipPer = \"N\";\r\n\t\tverGuar = true;\r\n\t\tvalBus = \"\";\r\n\t\tverCampo = true;\r\n\t\tread = false;\r\n\t\tgrabar = 0;\r\n\t\tcodCli = 0;\r\n\t\tcargarLista();\r\n\t}", "public Hipermercado(){\r\n this.clientes = new CatalogoClientes();\r\n this.produtos = new CatalogoProdutos();\r\n this.numFiliais = 3;\r\n this.faturacao = new Faturacao(this.numFiliais);\r\n this.filial = new ArrayList<>(this.numFiliais);\r\n for (int i = 0; i < this.numFiliais; i++){\r\n this.filial.add(new Filial());\r\n }\r\n \r\n this.invalidas = 0;\r\n }", "public Magazzino() {\r\n }", "private void Initialize()\n {\n \tEcran = new Rectangle(Framework.gauche, Framework.haut, Framework.frameWidth\n\t\t\t\t- Framework.droite - Framework.gauche, Framework.frameHeight - Framework.bas\n\t\t\t\t- Framework.haut);\n\t\tCentreEcranX = (int)(Ecran.getWidth()/2);\n\t\tCentreEcranY = (int)(Ecran.getHeight()/2);\n\t\twidth = Ecran.getWidth();\n\t\theight = Ecran.getHeight();\t\t\n\t\tpH=height/768;\t\t\n\t\tpW=width/1366;\n\t\tObjets = new ArrayList<Objet>(); // Créer la liste chainée en mémoire\n\t\tMissiles = new ArrayList<Missile>(); // Créer la liste chainée en mémoire\n\t\tStations = new ArrayList<Station>(); // Créer la liste chainée en mémoire\n\t\tJoueurs = new ArrayList<Joueur>();\n\t\tlastTrajectoires = new ArrayList<Trajectoire>();\n\n\t\tDisposeAstres(Framework.niveauChoisi);\n\t\tstationCourante = Stations.get(0);\n\n\t\tetat = ETAT.PREPARATION;\n\t\tmouseClicked = mousePressed = mouseReleased = false;\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "public AjoutChauffeurJPanell() {\n initComponents();\n }", "public OOP_207(){\n\n }", "public Memoria() {\n for (int i=0; i<320; i++)\n slots[i]=\"\";\n }", "public Pojo1110110(){\r\n\t}", "public Summalista()\r\n\t{\r\n\t\tthis.summa = 0;\r\n\t\tthis.alkiot = 0;\r\n\t}", "public Index() {\n EntityManager emgr = new BeanBase().getEntityManager();\n this.listaUltimasEntradas = new BeanBaseJWiki().getUltimosCincoArticulosSmall();\n this.listaExistenciasFallidas = emgr.createQuery(\"SELECT e FROM Existencia e WHERE e.idestado.idestado=2\").getResultList();\n this.listaExistenciasMantenimiento = emgr.createQuery(\"SELECT e FROM Existencia e WHERE e.idestado.idestado=3\").getResultList();\n this.listaEquiposFallidos = emgr.createQuery(\"SELECT e FROM Equiposimple e WHERE e.idestado.idestado=2\").getResultList();\n this.listaEquiposMantenimiento = emgr.createQuery(\"SELECT e FROM Equiposimple e WHERE e.idestado.idestado=3\").getResultList();\n\n Calendar cal = Calendar.getInstance(); \n this.listaReservasHoy = new BeanBaseJCanon().getReservasMismoDia(cal.get(Calendar.DAY_OF_MONTH), cal.get(Calendar.MONTH) + 1, cal.get(Calendar.YEAR));\n\n }", "public Maquina() {\n savia = 0;\n reflejosLagrimas = 0;\n estado = false;\n }", "public Alojamiento() {\r\n\t}", "public InstrutorCadastrarTela() {\n initComponents();\n //Limite de caracateres e apenas caracteres permitidos\n jTextFieldNome.setDocument(new classesBasicas.CaracterLimitePermitido(60));\n //Limitando os caracteres para (N), independende de ser numero ou letras\n jTextFieldRg.setDocument(new classesBasicas.JTextFieldLimite(20)); \n }", "public MrnWoatlas5() {\n clearVars();\n if (dbg) System.out.println (\"<br>in MrnWoatlas5 constructor 1\"); // debug\n }", "public ArmasHija2(int objetoHija2){\r\n super(objetoHija2);\r\n this.objetoHija2=objetoHija2;\r\n }", "public Plantas() {\r\n initComponents();\r\n limpiar();\r\n \r\n hilor = new HiloReloj(lbhora);\r\n hilor.start();\r\n }", "public Constructor(){\n\t\t\n\t}", "public ContentKj () {\n\t\tsuper();\n\t}", "public Calculadora() {\n initComponents();\n }", "@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}", "@Override\n\t\tpublic void init() {\n\t\t}", "public void init(){\n\t\tEmployee first = new Employee(\"Diego\", \"Gerente\", \"[email protected]\");\n\t\tHighSchool toAdd = new HighSchool(\"Santiago Apostol\", \"4656465\", \"cra 33a #44-56\", \"3145689879\", 30, 5000, \"Jose\", new Date(1, 3, 2001), 3, \"Servicios educativos\", \"451616\", 15, \"Piedrahita\", 45, 1200, 500);\n\t\ttoAdd.addEmployee(first);\n\t\tProduct pilot = new Product(\"jet\", \"A00358994\", 1.5, 5000);\n\t\tFood firstFood = new Food(\"Colombina\", \"454161\", \"cra 18\", \"454611313\", 565, 60000, \"Alberto\", new Date(1, 8, 2015), 6, \"Manufactura\", 4);\n\t\tfirstFood.addProduct(pilot);\n\t\ttheHolding = new Holding(\"Hertz\", \"15545\", \"cra 39a #30a-55\", \"3147886693\", 80, 500000, \"Daniel\", new Date(1, 2, 2015), 5);\n\t\ttheHolding.addSubordinate(toAdd);\n\t\ttheHolding.addSubordinate(firstFood);\n\t}", "public Sobre() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "public Carrinho() {\n\t\tsuper();\n\t}", "public CalendarBasi()\n {\n dia = new DisplayDosDigitos(31);\n mes = new DisplayDosDigitos(13);\n anio = new DisplayDosDigitos(100);\n }", "public TmKabupaten() {\n\t}", "private void init() {\n\n\n\n }", "public Oddeven() {\n initComponents();\n }", "public Transportadora() {\r\n super();\r\n this.nif = \"\";\r\n this.raio = 0;\r\n this.precoKm = 0;\r\n this.classificacao = new Classificacao();\r\n this.estaLivre = true;\r\n this.velocidadeMed = 0;\r\n this.kmsTotal = 0;\r\n this.capacidade = 0;\r\n }", "public Kurama(){\n super(\"Kurama\",3,800,800,\"n\",19,5);\n }", "public PerformanceAmigos() {\n initComponents();\n }", "public Persona() { // constructor sin parámetros\r\n\t\t\r\n\t\tthis.nif = \"44882229Y\";\r\n\t\tthis.nombre=\"Anonimo\";\r\n\t\tthis.sexo = 'F';\r\n\t\tthis.fecha = LocalDate.now();\r\n\t\tthis.altura = 180;\r\n\t\tthis.madre = null;\r\n\t\tthis.padre = null;\r\n\t\tcontador++;\r\n\t}", "@SuppressWarnings(\"unchecked\")\n\t\tvoid init() {\n\t\t\tsetNodes(offHeapService.newArray(JudyIntermediateNode[].class, NODE_SIZE, true));\n\t\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "public Jahresrangliste() {\r\n\t\tLaeufe = new ArrayList<Lauf>();\r\n\t\tRennfahrer = new ArrayList<Fahrer>();\r\n\t}" ]
[ "0.648292", "0.64138055", "0.6345335", "0.63449025", "0.63336736", "0.6309976", "0.6183232", "0.6174491", "0.6159301", "0.6136813", "0.611937", "0.6108618", "0.6101674", "0.60874766", "0.60726213", "0.60316944", "0.6008547", "0.5998668", "0.59962267", "0.597136", "0.5963929", "0.59517", "0.59377337", "0.59327173", "0.5928685", "0.5928491", "0.5914583", "0.59112173", "0.59079236", "0.59042877", "0.5893042", "0.58847296", "0.5880782", "0.58752924", "0.58724403", "0.58721197", "0.58658415", "0.58632946", "0.58463603", "0.5843138", "0.5838345", "0.5833081", "0.58288217", "0.5814857", "0.580409", "0.5803504", "0.5796843", "0.57915515", "0.57879794", "0.578261", "0.5781791", "0.57791847", "0.5777194", "0.57770836", "0.57767797", "0.5772402", "0.5771471", "0.5767386", "0.57670873", "0.5760518", "0.5758051", "0.57535195", "0.57473946", "0.5746644", "0.5746644", "0.5746644", "0.5745387", "0.5745168", "0.57389873", "0.5737015", "0.5734004", "0.5733228", "0.5719893", "0.5716189", "0.570534", "0.5703297", "0.569875", "0.56969815", "0.56908244", "0.56871355", "0.56829447", "0.568085", "0.5668721", "0.56681734", "0.566784", "0.566269", "0.56611013", "0.5660464", "0.5659615", "0.5657191", "0.5656313", "0.5655939", "0.56513286", "0.5644107", "0.56424206", "0.56415254", "0.56415254", "0.56415254", "0.56415254", "0.56415254", "0.56403995" ]
0.0
-1
END_METHOD Ordena las puntuaciones en el ranking de mayor a menor
public void ordenarRanking(){ for(int i = 0; i < clasificacion.length; i++) { boolean flag = false; for(int j = 0; j < clasificacion.length-1; j++) { /*Si el elemento de la posicion j+1 es mayor que el anterior se intercambian los valores de esas posiciones*/ if((clasificacion[j].getMediana())<(clasificacion[j+1].getMediana())) { Ranking k = new Ranking(); k=clasificacion[j]; clasificacion[j] = clasificacion[i]; clasificacion[i] = k; flag=true; //Se pone a true para indicar que se ha hecho un cambio }//END_IF }//END_FOR if(!flag) break; //Si flag es igual a falso quiere decir que en la ultima iteracion //no hubo ningun intercambio y por lo tanto el metodo puede terminar //ya que el vector esta ordenado }//END_FOR }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void rank(){\n\n\t}", "long getToRank();", "int getRanking();", "private int rankMethod()\r\n {\r\n\treturn spinTheWheel();\r\n }", "public abstract void modRanking(ParamRanking pr);", "long getRank();", "public void actualizarRanking(String login, int mediana){\n \n int temp=0;\n for(int i=0;i<10;i++){\n if((clasificacion[i].getLogin()).equals(login)){ //si el jugador ya esta en los 10 mejores jugadores actualizo su punctuacion\n temp=(clasificacion[i].getMediana()) + mediana;\n clasificacion[i].setMediana(temp);\n ordenarRanking(); //ordeno el ranking con la puntuacion del jugador actualizada\n return;\n }//END_IF\n }//END_FOR\n\n \n for(int j=0;j<10;j++){\n \n if((clasificacion[j].getMediana()) < mediana){//si existe en el ranking una puntuacion menor de la que se passa a la funcion por parametro\n System.arraycopy(clasificacion, j, clasificacion, j+1, clasificacion.length-j-1);//reordena las puntuaciones menores que mediana\n Ranking aux=new Ranking();\n aux.setLogin(login);\n aux.setMediana(mediana);\n clasificacion[j]=aux;\n return;\n }//END_IF\n }//END_FOR\n }", "public int Rank();", "public int getRank();", "public int getRank();", "public int getRank(){\n\t\tswitch(getTkn()){\n\t\t\tcase Not:\n\t\t\treturn 7;\n\t\t\t\n\t\t\tcase Kali:\n\t\t\tcase Bagi:\n\t\t\tcase Mod:\n\t\t\tcase Div:\n\t\t\treturn 6;\n\t\t\t\n\t\t\tcase Tambah:\n\t\t\tcase Kurang:\n\t\t\treturn 5;\n\t\t\t\n\t\t\tcase KurangDari:\n\t\t\tcase LebihDari:\n\t\t\tcase KurangDariSamaDengan:\n\t\t\tcase LebihDariSamaDengan:\n\t\t\treturn 4;\n\t\t\t\t\t\t\n\t\t\tcase SamaDengan:\n\t\t\tcase TidakSamaDengan:\n\t\t\treturn 3;\n\t\t\t\n\t\t\tcase And:\n\t\t\treturn 2;\n\t\t\t\n\t\t\tcase Xor:\n\t\t\treturn 1;\n\t\t\t\n\t\t\tcase Or:\n\t\t\treturn 0;\n\n\t\t\tdefault:\n\t\t\treturn -999;\n\t\t}\n\t}", "@Override\n\tpublic VisualizarR listarRanking() throws RemoteException {\n\t\treturn null;\n\t}", "public int getRank ()\n {\n return this.ranks; \n }", "@Override\n\tpublic String morder() {\n\t\treturn \"Los anelidos muerden y se aferran\";\n\t}", "public void restarPunto ( ) {\n\t\tif ( vida > 0 )\n\t\t\tvida--;\n\t}", "public int getRank(){\r\n return this.rank;\r\n }", "public int rank() { return this.rank; }", "public HashMap<User, Integer> userMonthRanking(User user, LinkedList<User> friends, int method){\n LinkedList<User> allUsers = new LinkedList<>();\n HashMap<User, Integer> result = new HashMap<>();\n\n allUsers.add(user);\n allUsers.addAll(friends);\n\n int rank = 0;\n long lastTime = -1;\n int lastSteps = -1;\n double lastDistance = -1;\n int lastAchievementCount = -1;\n\n switch (method){\n case METHODS.TIME:\n //sort the data\n Collections.sort(allUsers, new SortMonthTime());\n\n // for all users check the value and attach the rank, if changed value increment rank\n for (User next : allUsers) {\n if (next.getMyTimeline().getActiveTimeForMonth() != lastTime) {\n rank++;\n lastTime = next.getMyTimeline().getActiveTimeForMonth();\n }\n result.put(next, rank);\n }\n\n break;\n\n case METHODS.DISTANCE:\n //sort the data\n Collections.sort(allUsers, new SortMonthDistance());\n\n // for all users check the value and attach the rank, if changed value increment rank\n for (User next : allUsers) {\n if (next.getMyTimeline().getActiveDistanceForMonth() != lastDistance) {\n rank++;\n lastDistance = next.getMyTimeline().getActiveDistanceForMonth();\n }\n result.put(next, rank);\n }\n\n break;\n\n case METHODS.STEPS:\n //sort the data\n Collections.sort(allUsers, new SortMonthSteps());\n\n // for all users check the value and attach the rank, if changed value increment rank\n for (User next : allUsers) {\n if (next.getMyTimeline().getStepsForMonth() != lastSteps) {\n rank++;\n lastSteps = next.getMyTimeline().getStepsForMonth();\n }\n result.put(next, rank);\n }\n\n break;\n\n case METHODS.ACHIEVEMENTS:\n //sort the data\n Collections.sort(allUsers, new SortMonthAchievements());\n\n // for all users check the value and attach the rank, if changed value increment rank\n for (User next : allUsers) {\n if (next.getMyTimeline().getAchievementsForMonth() != lastAchievementCount) {\n rank++;\n lastAchievementCount = next.getMyTimeline().getAchievementsForMonth();\n }\n result.put(next, rank);\n }\n\n break;\n }\n\n return result;\n }", "@Override\n public int getRank() {\n return rank;\n }", "public int getRank(){\n return rank;\n }", "protected void jouerOrdinateur() {\n Random rdmPropoOrdi = new Random();\n\n for (int i = 0; i < nbrPosition; i++) {\n int min = 0;\n int max = propositionHaute[i];\n if (propositionBasse[i] != 0) {\n min = propositionBasse[i] + 1;\n }\n\n if (propositionOrdinateur[i] != combinaisonJoueur[i]) {\n int propoOrdi = min + rdmPropoOrdi.nextInt(max - min);\n propositionOrdinateur[i] = (byte) (propoOrdi);\n\n if (propositionOrdinateur[i] < combinaisonJoueur[i]) {\n propositionBasse[i] = propositionOrdinateur[i];\n } else {\n propositionHaute[i] = propositionOrdinateur[i];\n }\n }\n }\n }", "@Override\n public void imprimir() {\n System.out.println(\"Vehiculos ordenados por precio mayor a menor:\");\n if(a1.precio>a2.precio && a1.precio >m1.precio && a1.precio >m2.precio){\n System.out.println(a1.marca+\"\"+a1.modelo);\n if(a2.precio >m1.precio && a2.precio >m2.precio){\n System.out.println(a2.marca+\"\"+a2.modelo);\n if(m1.precio >m2.precio){\n System.out.println(m1.marca+\"\"+m1.modelo);\n System.out.println(m2.marca+\"\"+m2.modelo);\n }else{\n System.out.println(m2.marca+\"\"+m1.modelo);\n System.out.println(m1.marca+\"\"+m1.modelo);\n \n }\n }else{\n if(m1.precio >a2.precio && m1.precio >m2.precio){\n System.out.println(m1.marca+\"\"+m1.modelo);\n if(a2.precio >m2.precio){\n System.out.println(a2.marca+\"\"+a2.modelo);\n System.out.println(m2.marca+\"\"+m2.modelo);\n }else{\n System.out.println(m2.marca+\"\"+m2.modelo);\n System.out.println(a2.marca+\"\"+a2.modelo);\n \n }\n }else{\n if(m2.precio >a2.precio && m2.precio >m1.precio){\n System.out.println(m2.marca+\"\"+m2.modelo);\n if(m1.precio >a2.precio){\n System.out.println(m1.marca+\"\"+m1.modelo);\n System.out.println(a2.marca+\"\"+a2.modelo);\n }else{\n System.out.println(a2.marca+\"\"+a2.modelo);\n System.out.println(m1.marca+\"\"+m1.modelo);\n }\n }\n }\n }\n }else{\n if(a2.precio>a1.precio && a2.precio >m1.precio && a2.precio >m2.precio){\n System.out.println(a2.marca+\" \"+a2.modelo);\n if(a1.precio >m1.precio && a1.precio >m2.precio){\n System.out.println(a1.marca+\" \"+a1.modelo);\n if(m1.precio >m2.precio){\n System.out.println(m1.marca+\" \"+m1.modelo);\n System.out.println(m2.marca+\" \"+m2.modelo);\n }else{\n System.out.println(m2.marca+\" \"+m2.modelo);\n System.out.println(m1.marca+\" \"+m1.modelo);\n \n }\n }else{\n if(m1.precio >a1.precio && m1.precio >m2.precio){\n System.out.println(m1.marca+\" \"+m1.modelo);\n if(a1.precio >m2.precio){\n System.out.println(a1.marca+\" \"+a1.modelo);\n System.out.println(m2.marca+\" \"+m2.modelo);\n }else{\n System.out.println(m2.marca+\" \"+m2.modelo);\n System.out.println(a1.marca+\" \"+a1.modelo);\n \n }\n }else{\n if(m2.precio >a1.precio && m2.precio >m1.precio){\n System.out.println(m2.marca+\" \"+m2.modelo);\n if(m1.precio >a1.precio){\n System.out.println(m1.marca+\" \"+m1.modelo);\n System.out.println(a1.marca+\" \"+a1.modelo);\n }else{\n System.out.println(a1.marca+\" \"+a1.modelo);\n System.out.println(m1.marca+\" \"+m1.modelo);\n }\n }\n }\n }\n }else{\n if(m1.precio>a2.precio && m1.precio >a1.precio && m1.precio >m2.precio){\n System.out.println(m1.marca+\" \"+m1.modelo);\n if(a2.precio >a1.precio && a2.precio >m2.precio){\n System.out.println(a2.marca+\" \"+a2.modelo);\n if(a1.precio >m2.precio){\n System.out.println(a1.marca+\" \"+a1.modelo);\n System.out.println(m2.marca+\" \"+m2.modelo);\n }else{\n System.out.println(m2.marca+\" \"+m2.modelo);\n System.out.println(a1.marca+\" \"+a1.modelo);\n \n }\n }else{\n if(a1.precio >a2.precio && a1.precio >m2.precio){\n System.out.println(a1.marca+\"\"+a1.modelo);\n if(a2.precio >m2.precio){\n System.out.println(a2.marca+\" \"+a2.modelo);\n System.out.println(m2.marca+\" \"+m2.modelo);\n }else{\n System.out.println(m2.marca+\" \"+m2.modelo);\n System.out.println(a2.marca+\" \"+a2.modelo);\n \n }\n }else{\n if(m2.precio >a2.precio && m2.precio >a1.precio){\n System.out.println(m2.marca+\" \"+m2.modelo);\n if(a1.precio >a2.precio){\n System.out.println(a1.marca+\" \"+a1.modelo);\n System.out.println(a2.marca+\" \"+a2.modelo);\n }else{\n System.out.println(a2.marca+\" \"+a2.modelo);\n System.out.println(a1.marca+\" \"+a1.modelo);\n }\n }\n }\n }\n }else{ \n if(m2.precio>a2.precio && m2.precio >a1.precio && m2.precio >m1.precio){\n System.out.println(m2.marca+\" \"+m2.modelo);\n if(a2.precio >a1.precio && a2.precio >m1.precio){\n System.out.println(a2.marca+\" \"+a2.modelo);\n if(a1.precio >m1.precio){\n System.out.println(a1.marca+\" \"+a1.modelo);\n System.out.println(m1.marca+\" \"+m1.modelo);\n }else{\n System.out.println(m1.marca+\" \"+m1.modelo);\n System.out.println(a1.marca+\" \"+a1.modelo);\n \n }\n }else{\n if(a1.precio >a2.precio && a1.precio >m1.precio){\n System.out.println(a1.marca+\"\"+a1.modelo);\n if(a2.precio >m1.precio){\n System.out.println(a2.marca+\" \"+a2.modelo);\n System.out.println(m1.marca+\" \"+m1.modelo);\n }else{\n System.out.println(m1.marca+\" \"+m1.modelo);\n System.out.println(a2.marca+\" \"+a2.modelo);\n \n }\n }else{\n if(m1.precio >a2.precio && m1.precio >a1.precio){\n System.out.println(m1.marca+\" \"+m1.modelo);\n if(a1.precio >a2.precio){\n System.out.println(a1.marca+\" \"+a1.modelo);\n System.out.println(a2.marca+\" \"+a2.modelo);\n }else{\n System.out.println(a2.marca+\" \"+a2.modelo);\n System.out.println(a1.marca+\" \"+a1.modelo);\n }\n }\n }\n }\n } \n \n }\n\n }\n }\n }", "public long getToRank() {\n return toRank_;\n }", "public void determineRank(){\r\n //ranks highcard 0, pair 1, twopair 2, three of a kind 3, straight 4, flush 5,\r\n //full house 6, four of a kind 7 , straight flush 8, royal flush 9\r\n //I should start top down.\r\n\r\n //Royal Flush\r\n if(isRoyalFlush())\r\n setRank(9);\r\n //Straight flush\r\n else if(isFlush() && isStraight())\r\n setRank(8);\r\n //four of a kind\r\n else if(isFourOfAKind())\r\n setRank(7);\r\n //full house\r\n else if( isFullHouse())\r\n setRank(6);\r\n //flush\r\n else if(isFlush())\r\n setRank(5);\r\n //straight\r\n else if(isStraight())\r\n setRank(4);\r\n //three of a kind\r\n else if(isThreeOfAKind())\r\n setRank(3);\r\n //twoPair\r\n else if(isTwoPair())\r\n setRank(2);\r\n //pair\r\n else if(isPair())\r\n setRank(1);\r\n //highcard\r\n else\r\n setRank(0);\r\n\r\n }", "private void priorizar() {\r\n if (ini == fin) {\r\n return;\r\n }\r\n\r\n int t1 = fin, t2 = fin - 1;\r\n TDAPrioridad aux = new TDAPrioridad(0, '0');\r\n while (t1 != ini) {\r\n if (datos[t1].getPrioridad() > datos[t2].getPrioridad()) {\r\n aux.setObjeto(datos[t1]);\r\n datos[t1].setObjeto(datos[t2]);\r\n datos[t2].setObjeto(aux);\r\n t2--;\r\n t1--;\r\n } else {\r\n break;\r\n }\r\n }\r\n }", "public int getRank(){\n return this.rank;\n }", "public void sumaPuntos() {\r\n int rojo = 0;\r\n int azul = 0;\r\n for (int i = 1; i < 10; i++) {\r\n\r\n if (tablero[1][i].getTipo().equals(\"Rojo\")) {\r\n rojo += tablero[1][i].getValor();\r\n }\r\n\r\n if (tablero[8][i].getTipo().equals(\"Azul\")) {\r\n azul += tablero[8][i].getValor();\r\n }\r\n\r\n }\r\n if (rojo > azul) {\r\n this.setResultado(\"Rojo\");\r\n this.agregarVictoria(jugadorRojo);\r\n }\r\n if (azul > rojo) {\r\n this.setResultado(\"Azul\");\r\n this.agregarVictoria(jugadorAzul);\r\n }\r\n \r\n this.setReplay(true);\r\n }", "public void ordenaPontos(){\r\n\t\tloja.ordenaPontos();\r\n\t}", "public Rank getRank()\n {\n return rank;\n }", "public void rankMatches();", "public long getToRank() {\n return toRank_;\n }", "public String getRankString(){ return this.rank; }", "public abstract void distributeTeamsPointsRedoubleGame(Announce normalAnnounce);", "public int getRank()\n {\n return rank;\n }", "@Override\n public void cantidad_Punteria(){\n punteria=69.5+05*nivel+aumentoP;\n }", "public int[] get_ranking() {\n\t\treturn null;\r\n\t}", "protected void end() {\r\n lang.nextStep();\r\n int total = seen + failed;\r\n\r\n hideAll();\r\n SourceCode end = lang.newSourceCode(new Offset(0, 50, pMap.get(\"hRect\"),\r\n \"SW\"), \"end\", null, sourceCodeProperties);\r\n end.addCodeLine(\r\n \"Das h\\u00F6chste Ergebnis, dass der Spieler bei einem optimal spielenden Gegner erzielen kann, ist \"\r\n + result + \".\", \"end\", 0, null);\r\n if (seen == 1) {\r\n end.addCodeLine(\"Von den insgesamt \" + nodesTotal + \" Knoten wurde \"\r\n + seen + \" nur Knoten untersucht.\", \"end\", 0, null);\r\n } else {\r\n end.addCodeLine(\"Von den insgesamt \" + nodesTotal + \" Knoten wurden \"\r\n + seen + \" verschiedene Knoten untersucht.\", \"end\", 0, null);\r\n }\r\n if (pruned == 1) {\r\n end.addCodeLine(\"Es wurde \" + pruned + \" Knoten gepruned.\", \"end\", 0,\r\n null);\r\n } else {\r\n end.addCodeLine(\"Es wurde \" + pruned + \" Knoten gepruned.\", \"end\", 0,\r\n null);\r\n }\r\n if (failed == 1) {\r\n end.addCodeLine(\"Allerdings musste auch \" + failed\r\n + \" Knoten erneut untersucht werden, weil es zum Fail High kam.\",\r\n \"end\", 0, null);\r\n } else {\r\n end.addCodeLine(\"Allerdings mussten auch \" + failed\r\n + \" Knoten erneut untersucht werden, weil es zum Fail High kam.\",\r\n \"end\", 0, null);\r\n }\r\n end.addCodeLine(\"Damit wurde der Algorithmus insgesamt \" + total\r\n + \" Mal aufgerufen.\", \"end\", 0, null);\r\n end.addCodeLine(\r\n \"Im Vergleich dazu h\\u00E4tte der Minimax-Algorithmus alle \"\r\n + nodesTotal + \" Knoten einmal untersucht.\", \"end\", 0, null);\r\n end.addCodeLine(\"\", \"end\", 0, null);\r\n end.addCodeLine(\r\n \"Da der Algorithmus annimmt, dass jeweils der erste Kindknoten der beste ist \",\r\n \"end\", 0, null);\r\n end.addCodeLine(\r\n \"und danach mit einem Nullwindow arbeitet, ist die Reihenfolge der Knoten sehr wichtig, \",\r\n \"end\", 0, null);\r\n end.addCodeLine(\r\n \"damit m\\u00F6glichst viele Knoten gepruned werden und m\\u00F6glichst wenige erneut untersucht werden m\\u00FCssen.\",\r\n \"end\", 0, null);\r\n end.addCodeLine(\r\n \"Es kann sich sogar zeitlich lohnen, die Knoten vorzusortieren.\",\r\n \"end\", 0, null);\r\n end.addCodeLine(\r\n \"Bei unsortierten Knoten ist der Negascout-Algorithmus langsamer als das Alpha-Beta-Pruning,\",\r\n \"end\", 0, null);\r\n end.addCodeLine(\r\n \"bei dem zwar weniger Knoten nicht untersucht werden, daf\\u00FCr aber auch keine erneut untersucht werden m\\u00FCssen.\",\r\n \"end\", 0, null);\r\n end.addCodeLine(\r\n \"Die Komplexit\\u00E4t von Negascout betr\\u00E4gt O(b^d) in der Landau-Notation,\",\r\n \"end\", 0, null);\r\n end.addCodeLine(\r\n \"wobei b f\\u00FCr den Verzweigungsfaktor (branching factor) und d f\\u00FCr die Baumtiefe (depth) steht\",\r\n \"end\", 0, null);\r\n lang.nextStep(\"Conclusion\");\r\n }", "Rank(int points){\r\n\t\tthis.points = points;\r\n\t}", "public int AmbosHijosR() { //Hecho por mi\n return AmbosHijosR(raiz);\n }", "public int getRank()\n {\n return rank;\n }", "public void finalResult() {\n ConnectionSockets.getInstance().sendMessage(Integer.toString(points)+\"\\n\");\n System.out.println(\"escreveu para o oponente\");\n opponentPoints = Integer.parseInt(ConnectionSockets.getInstance().receiveMessage());\n System.out.println(\"leu do oponente\");\n if(points != opponentPoints) {\n if (points > opponentPoints) {// Won\n MatchController.getInstance().getSets().add(1);\n MatchController.getInstance().increaseSet();\n } else { //Lost\n MatchController.getInstance().getSets().add(0);\n MatchController.getInstance().increaseSet();\n }\n }\n }", "void showRanking(String winner, String rank);", "public void precio4e(){\n precioHabitaciones = precioHabitaciones + (cantidadHabitaciones * numeroCamas);\n\n //Restaurante\n if(capacidadRestaurant < 30){\n precioHabitaciones = precioHabitaciones + 10;\n } else if (capacidadRestaurant > 29 && capacidadRestaurant < 51){\n precioHabitaciones = precioHabitaciones + 30;\n } else if (capacidadRestaurant > 50){\n precioHabitaciones = precioHabitaciones + 50;\n }\n\n //Gimnasio\n switch (gimnasio){\n case \"A\":\n precioHabitaciones = precioHabitaciones + 50;\n break;\n case \"B\":\n precioHabitaciones = precioHabitaciones + 30;\n break;\n }\n\n }", "public void createRanking() {\n Question q = new Ranking(this.in,this.o);\n this.o.setDisplay(\"Enter the prompt for your Ranking question:\\n\");\n this.o.getDisplay();\n\n q.setPrompt(this.in.getUserInput());\n\n int numAns = 0;\n while (numAns == 0) {\n this.o.setDisplay(\"How many items need to be ranked?\\n\");\n this.o.getDisplay();\n\n try {\n numAns = Integer.parseInt(this.in.getUserInput());\n if (numAns < 1) {\n numAns = 0;\n } else {\n q.setMaxResponses(numAns);\n }\n } catch (NumberFormatException e) {\n numAns = 0;\n }\n }\n\n if (isTest) {\n RCA ca = new RCA(this.in,this.o);\n Test t = (Test)this.survey;\n String ans;\n\n this.o.setDisplay(\"Enter correct answer(s):\\n\");\n this.o.getDisplay();\n for (int j=0; j < q.getMaxResponses(); j++){\n\n ans = this.in.getUserInput();\n\n ca.addResponse(ans);\n }\n t.addAnswer(ca);\n }\n this.survey.addQuestion(q);\n }", "public String getRank()\n {\n return _rank;\n }", "public void tableFinished(int position, Integer[] ranking) {\r\n }", "private void generateOutgoingRankingReport() {\r\n\r\n\t\tStringBuilder stringBuilder = new StringBuilder();\r\n\t\tstringBuilder.append(\"\\n----------------------------------------\\n\")\r\n\t\t\t\t.append(\" Outgoing Ranking \\n\")\r\n\t\t\t\t.append(\"----------------------------------------\\n\")\r\n\t\t\t\t.append(\" Entity | Rank \\n\")\r\n\t\t\t\t.append(\"-----------------+----------------------\\n\");\r\n\t\tallOutgoingRankings.entrySet().stream().sorted(Map.Entry.<String, Integer>comparingByValue())\r\n\t\t\t\t.forEach(key -> stringBuilder\r\n\t\t\t\t\t\t.append(\" \" + key.getKey() + \" | \" + key.getValue() + \" \\n\"));\r\n\t\tdataWriter.write(stringBuilder.toString());\r\n\t}", "private void moverJogadorAPosicao(int jogador, int valorDados, boolean iguais) {\n int tentativasDeSairDaPrisao = this.listaJogadores.get(jogadorAtual()).getTentativasSairDaPrisao();\n //Analisando se o cara esta preso, se a prisao ta ativada e se o cara tentou um numero de vezes menos que tres\n //ou se a funcao prisao esta falsa\n //ou se o jogador nao esta preso\n if ((JogadorEstaPreso(this.listaJogadores.get(jogadorAtual()).getNome()) && iguais && this.prisao == true && tentativasDeSairDaPrisao <= 2) || this.prisao == false || (!JogadorEstaPreso(this.listaJogadores.get(jogadorAtual()).getNome()) && this.prisao == true)) {\n if (JogadorEstaPreso(this.listaJogadores.get(jogadorAtual()).getNome()) && iguais && this.prisao == true && tentativasDeSairDaPrisao < 2);\n {\n this.sairdaPrisao(this.listaJogadores.get(jogadorAtual()));\n this.listaJogadores.get(jogadorAtual()).setTentativasSairDaPrisao(0);\n }\n this.posicoes[jogador] = (this.posicoes[jogador] + valorDados);\n if (posicoes[jogador] > 40) {\n posicoes[jogador] = posicoes[jogador] - 40;\n }\n }\n\n //analisando se o jogador esta preso e lanca numeros diferentes nos dados\n if (JogadorEstaPreso(this.listaJogadores.get(jogadorAtual()).getNome()) && !iguais && this.prisao == true) {\n //analisa se estourou as tentativas\n //se estourou\n if (this.listaJogadores.get(jogadorAtual()).getTentativasSairDaPrisao() == 2) {\n this.sairdaPrisao(this.listaJogadores.get(jogadorAtual()));\n this.listaJogadores.get(jogadorAtual()).retirarDinheiro(50);\n this.listaJogadores.get(jogadorAtual()).setTentativasSairDaPrisao(0);\n this.posicoes[jogador] = (this.posicoes[jogador] + valorDados);\n if (posicoes[jogador] > 40) {\n posicoes[jogador] = posicoes[jogador] - 40;\n }\n\n } //se nao estourou\n else if (this.listaJogadores.get(jogadorAtual()).getTentativasSairDaPrisao() < 2) {\n this.listaJogadores.get(jogadorAtual()).addTentativasSairDaPrisao();\n }\n\n\n }\n\n\n }", "public int getRank(){\n return Value;\n }", "public void decrementPossiblePoints() {\n if (groupScore == 1) {groupScore = 0; return;}\n if (groupScore - (groupScore / 2) >= 0) {\n groupScore -= (groupScore / 2);\n }\n }", "public LSPRanking getRanking () {\r\n return ranking;\r\n }", "public int getRank() {\r\n return rank;\r\n }", "public int getRank()\r\n {\r\n return this.rank;\r\n }", "public void postOrden(nodoArbolAVL r){\n if(r != null){\n postOrden(r.hijoIzquierdo);\n postOrden(r.hijoDerecho);\n //System.out.print(r.dato + \" , \");\n for (int i = 1; i<=7;i++) {\n if(r.nivel==i)\n {\n //vector[i]=r.dato;\n System.out.println(r.dato + \" NIVEL: \"+i);\n }\n }\n \n } \n \n }", "boolean hasRanking();", "private void recolteNourriture() {\r\n\t\t\t//1pop recolte toute la case\r\n\t\t\tint tempNourr = 0;\r\n\t\t\tint totalPop = population + populationColoniale;\r\n\t\t\tint limite = (totalPop < caseOwned.size()) ? totalPop : caseOwned.size();\r\n\t\t\tfor(int id = 0; id < limite; id++) {\r\n\t\t\t\ttempNourr += caseOwned.get(id).getFood();\r\n\t\t\t}\r\n\t\t\t//animaux\r\n\t\t\ttempNourr += howManyAnimal(Animaux.Bétail) * 10; //Ca mange de l'herbe, ça se tente.\r\n\t\t\ttempNourr += howManyAnimal(Animaux.Cervidés) * 7.5; //CARIBOUUUUUUUUU !!\r\n\t\t\ttempNourr += howManyAnimal(Animaux.Crabe) * 2; //ca pique les pied, a mort!!\r\n\t\t\ttempNourr += howManyAnimal(Animaux.Elephants) * 30; //polution sonore\r\n\t\t\ttempNourr += howManyAnimal(Animaux.Moutons) * 5; //kébab landais\r\n\t\t\ttempNourr += howManyAnimal(Animaux.Poissons) * 5; //croustibat\r\n\t\t\ttempNourr += howManyAnimal(Animaux.Chevaux) * 7; //lasagnes\r\n\t\t\ttempNourr += howManyAnimal(Animaux.Baleines) * 50; //*bruit de baleine virile*\r\n\t\t\t//aplication des bonus\r\n\t\t\ttempNourr *= (1 + (0.15 * scienceLvl) + (0.05 * (bonheur - baseBonheur))); // +15% par scienceLvl +5% par bonheur excedentaire, -5% par bonheur négatif\r\n\t\t\t\r\n\t\t\tnourriture += tempNourr;\r\n\t\t\t//bonus de conservation grâce au sel\r\n\t\t\tif(howManyRessource(StrategicRessource.Sel) > 0 && nourriture > 0) nourriture *= 1.10;\r\n\t\t\t//limitation de stockage\r\n\t\t\tint stockageMax = caseOwned.size() * 100 * scienceLvl;\r\n\t\t\tif(nourriture > stockageMax) nourriture = stockageMax;\r\n\t\t}", "public void WatchOverIt(int target_rank);", "@Override\n public void tirar() {\n if ( this.probabilidad == null ) {\n super.tirar();\n this.valorTrucado = super.getValor();\n return;\n }\n \n // Necesitamos conocer la probabilidad de cada número, trucados o no, para ello tengo que saber\n // primero cuantos números hay trucados y la suma de sus probabilidades. \n // Con esto puedo calcular la probabilidad de aparición de los números no trucados.\n \n int numeroTrucados = 0;\n double sumaProbalidadesTrucadas = 0;\n double probabilidadNoTrucados = 0;\n \n for ( double p: this.probabilidad ) { // cálculo de la suma números y probabilidades trucadas\n if ( p >= 0 ) {\n numeroTrucados++;\n sumaProbalidadesTrucadas += p;\n }\n }\n \n if ( numeroTrucados < 6 ) { // por si estuvieran todos trucados\n probabilidadNoTrucados = (1-sumaProbalidadesTrucadas) / (6-numeroTrucados);\n }\n\n double aleatorio = Math.random(); // me servirá para escoger el valor del dado\n \n // Me quedo con la cara del dado cuya probabilidad de aparición, sumada a las anteriores, \n // supere el valor aleatorio\n double sumaProbabilidades = 0;\n this.valorTrucado = 0;\n do {\n ++this.valorTrucado;\n if (this.probabilidad[this.valorTrucado-1] < 0) { // no es una cara del dado trucada\n sumaProbabilidades += probabilidadNoTrucados;\n } else {\n sumaProbabilidades += this.probabilidad[this.valorTrucado-1];\n }\n \n } while (sumaProbabilidades < aleatorio && valorTrucado < 6);\n \n \n }", "public static void miedo(){\n int aleatorio; //variables locales a utilizar\n Random numeroAleatorio = new Random(); //declarando variables tipo random para aleatoriedad\n aleatorio = (numeroAleatorio.nextInt(10-5+1)+5);\n \n if(oro>aleatorio){//condicion de finalizar battalla y sus acciones\n oroPerdido= (nivel*2)+aleatorio;\n oro= oro-oroPerdido;\n System.out.println(\"Huiste de la batalla!!!\");\n\t\t System.out.println(\"oro perdido:\"+oroPerdido);\n opcionMiedo=1; //finalizando battalla por huida del jugador \n }\n else{\n System.out.println(\"No pudes huir de la batalla\");\n } \n }", "List<Ranking> calculateOutcomeRanks(List<Instruction> instructions);", "public int getRank() {\n return rank;\n }", "public int getRank() {\n return rank;\n }", "public int getRank() {\n return rank;\n }", "public void redeem(String n, double p) {\r\n\t\tint index =-1;\r\n\t\tfor(int i=0;i<ms.size();i++) {\r\n\t\t\tif(ms.get(i).getNumber().equals(n)&&ms.get(i).getPoints()>=p) {\r\n\t\t\t\tindex=i;\r\n\t\t\t\tms.get(i).setPoints(ms.get(i).getPoints()-p);\r\n\t\t\t}\t\t\r\n\t\t}\r\n\t\tif(index>=0)ms.get(index).updateTier();\r\n\t}", "public void ordenarHabitantesDesc() {\r\n Collections.sort(ciudades, new HabitantesComparator());\r\n Collections.reverse(ciudades);\r\n }", "private static void determineFinalRanks(Fold fold, ParametersManager params) {\n for (int currRank = fold.getNumInst(); currRank >= 1; currRank--) {\n Instance instSmallestWeight = fold.getInstSmallestWeight(); // selects the next less important instance\n\n instSmallestWeight.setRank(currRank); // ranks the instance by its order of elimination\n instSmallestWeight.setWeight(Double.POSITIVE_INFINITY); // the instance will be disregarded from now\n\n // removes the traces of the ranked instance out of the other instances\n fold.clearInstTraces(instSmallestWeight);\n\n /* For instances with rank value smaller than the number of neighbors, the relative position in the ranking\n is irrelevant (and, by construction, impossible to determine). Therefore, only the first steps of the\n ranking are performed for these instances. */\n if (currRank <= params.getNumNeighbors()) continue;\n\n // updates the distances matrix, setting the distance to or from the ranked instance to infinite\n fold.updateDistMatrix(instSmallestWeight.getId());\n\n // updates the weights of instances that had the eliminated instance among its nearest neighbors\n InstanceWeighting.updateAssociatesWeights(fold, instSmallestWeight, params);\n }\n }", "public Ranking[] vaciarRanking()\n {\n for(int i=0;i<10;i++){\n clasificacion[i].setLogin(\" \");\n clasificacion[i].setMediana(0);\n }//END_FOR\n return clasificacion;\n }", "public Ranking[] mostrarRanking(){\n return clasificacion;\n }", "public short getRank(){\n\t\treturn srtRank;\r\n\t\t\r\n\t}", "@Override\n\t\tpublic int compare(RankingEntry o1, RankingEntry o2) {\n\t\t\tif (o2.getMurderCount() == o1.getMurderCount()) {\n\t\t\t\treturn o1.getDeathCount() - o2.getDeathCount();\n\t\t\t}\n\t\t\treturn o2.getMurderCount() - o1.getMurderCount();\n\t\t}", "public final EObject ruleRanking() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_0=null;\n Token lv_isMandatory_1_0=null;\n Token otherlv_3=null;\n Token otherlv_4=null;\n Token otherlv_5=null;\n AntlrDatatypeRuleToken lv_questionText_2_0 = null;\n\n EObject lv_answers_6_0 = null;\n\n EObject lv_answers_7_0 = null;\n\n\n enterRule(); \n \n try {\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:845:28: ( (otherlv_0= 'Q' ( (lv_isMandatory_1_0= '*' ) )? ( (lv_questionText_2_0= ruleEString ) ) otherlv_3= '[' otherlv_4= 'rank' otherlv_5= ']' ( (lv_answers_6_0= ruleAnswer ) ) ( (lv_answers_7_0= ruleAnswer ) )* ) )\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:846:1: (otherlv_0= 'Q' ( (lv_isMandatory_1_0= '*' ) )? ( (lv_questionText_2_0= ruleEString ) ) otherlv_3= '[' otherlv_4= 'rank' otherlv_5= ']' ( (lv_answers_6_0= ruleAnswer ) ) ( (lv_answers_7_0= ruleAnswer ) )* )\n {\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:846:1: (otherlv_0= 'Q' ( (lv_isMandatory_1_0= '*' ) )? ( (lv_questionText_2_0= ruleEString ) ) otherlv_3= '[' otherlv_4= 'rank' otherlv_5= ']' ( (lv_answers_6_0= ruleAnswer ) ) ( (lv_answers_7_0= ruleAnswer ) )* )\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:846:3: otherlv_0= 'Q' ( (lv_isMandatory_1_0= '*' ) )? ( (lv_questionText_2_0= ruleEString ) ) otherlv_3= '[' otherlv_4= 'rank' otherlv_5= ']' ( (lv_answers_6_0= ruleAnswer ) ) ( (lv_answers_7_0= ruleAnswer ) )*\n {\n otherlv_0=(Token)match(input,25,FollowSets000.FOLLOW_25_in_ruleRanking1698); \n\n \tnewLeafNode(otherlv_0, grammarAccess.getRankingAccess().getQKeyword_0());\n \n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:850:1: ( (lv_isMandatory_1_0= '*' ) )?\n int alt17=2;\n int LA17_0 = input.LA(1);\n\n if ( (LA17_0==26) ) {\n alt17=1;\n }\n switch (alt17) {\n case 1 :\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:851:1: (lv_isMandatory_1_0= '*' )\n {\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:851:1: (lv_isMandatory_1_0= '*' )\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:852:3: lv_isMandatory_1_0= '*'\n {\n lv_isMandatory_1_0=(Token)match(input,26,FollowSets000.FOLLOW_26_in_ruleRanking1716); \n\n newLeafNode(lv_isMandatory_1_0, grammarAccess.getRankingAccess().getIsMandatoryAsteriskKeyword_1_0());\n \n\n \t if (current==null) {\n \t current = createModelElement(grammarAccess.getRankingRule());\n \t }\n \t\tsetWithLastConsumed(current, \"isMandatory\", true, \"*\");\n \t \n\n }\n\n\n }\n break;\n\n }\n\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:865:3: ( (lv_questionText_2_0= ruleEString ) )\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:866:1: (lv_questionText_2_0= ruleEString )\n {\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:866:1: (lv_questionText_2_0= ruleEString )\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:867:3: lv_questionText_2_0= ruleEString\n {\n \n \t newCompositeNode(grammarAccess.getRankingAccess().getQuestionTextEStringParserRuleCall_2_0()); \n \t \n pushFollow(FollowSets000.FOLLOW_ruleEString_in_ruleRanking1751);\n lv_questionText_2_0=ruleEString();\n\n state._fsp--;\n\n\n \t if (current==null) {\n \t current = createModelElementForParent(grammarAccess.getRankingRule());\n \t }\n \t\tset(\n \t\t\tcurrent, \n \t\t\t\"questionText\",\n \t\tlv_questionText_2_0, \n \t\t\"EString\");\n \t afterParserOrEnumRuleCall();\n \t \n\n }\n\n\n }\n\n otherlv_3=(Token)match(input,20,FollowSets000.FOLLOW_20_in_ruleRanking1763); \n\n \tnewLeafNode(otherlv_3, grammarAccess.getRankingAccess().getLeftSquareBracketKeyword_3());\n \n otherlv_4=(Token)match(input,28,FollowSets000.FOLLOW_28_in_ruleRanking1775); \n\n \tnewLeafNode(otherlv_4, grammarAccess.getRankingAccess().getRankKeyword_4());\n \n otherlv_5=(Token)match(input,22,FollowSets000.FOLLOW_22_in_ruleRanking1787); \n\n \tnewLeafNode(otherlv_5, grammarAccess.getRankingAccess().getRightSquareBracketKeyword_5());\n \n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:895:1: ( (lv_answers_6_0= ruleAnswer ) )\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:896:1: (lv_answers_6_0= ruleAnswer )\n {\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:896:1: (lv_answers_6_0= ruleAnswer )\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:897:3: lv_answers_6_0= ruleAnswer\n {\n \n \t newCompositeNode(grammarAccess.getRankingAccess().getAnswersAnswerParserRuleCall_6_0()); \n \t \n pushFollow(FollowSets000.FOLLOW_ruleAnswer_in_ruleRanking1808);\n lv_answers_6_0=ruleAnswer();\n\n state._fsp--;\n\n\n \t if (current==null) {\n \t current = createModelElementForParent(grammarAccess.getRankingRule());\n \t }\n \t\tadd(\n \t\t\tcurrent, \n \t\t\t\"answers\",\n \t\tlv_answers_6_0, \n \t\t\"Answer\");\n \t afterParserOrEnumRuleCall();\n \t \n\n }\n\n\n }\n\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:913:2: ( (lv_answers_7_0= ruleAnswer ) )*\n loop18:\n do {\n int alt18=2;\n int LA18_0 = input.LA(1);\n\n if ( (LA18_0==19) ) {\n alt18=1;\n }\n\n\n switch (alt18) {\n \tcase 1 :\n \t // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:914:1: (lv_answers_7_0= ruleAnswer )\n \t {\n \t // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:914:1: (lv_answers_7_0= ruleAnswer )\n \t // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:915:3: lv_answers_7_0= ruleAnswer\n \t {\n \t \n \t \t newCompositeNode(grammarAccess.getRankingAccess().getAnswersAnswerParserRuleCall_7_0()); \n \t \t \n \t pushFollow(FollowSets000.FOLLOW_ruleAnswer_in_ruleRanking1829);\n \t lv_answers_7_0=ruleAnswer();\n\n \t state._fsp--;\n\n\n \t \t if (current==null) {\n \t \t current = createModelElementForParent(grammarAccess.getRankingRule());\n \t \t }\n \t \t\tadd(\n \t \t\t\tcurrent, \n \t \t\t\t\"answers\",\n \t \t\tlv_answers_7_0, \n \t \t\t\"Answer\");\n \t \t afterParserOrEnumRuleCall();\n \t \t \n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop18;\n }\n } while (true);\n\n\n }\n\n\n }\n\n leaveRule(); \n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "@Override\n public int compare(Posicion pos1, Posicion pos2) {\n\n /*Si ambos tiempos no acarrean la maxima puntuacion */\n if ((!pos1.getPenal().isMaxPointsPenal())\n && (!pos2.getPenal().isMaxPointsPenal())) {\n /**\n * Si NO compiten en tiempo compensado\n */\n if (pos1.getBarco().getTipo().getCompiteTmpReal()) {\n //TODO Probar bien esto!\n return (int) ponderarPenalizacion(pos1.getSegTiempo(),\n pos1.getPenal(), pos1.getSegPenalizacion())\n .compareTo(ponderarPenalizacion(pos2.getSegTiempo(),\n pos2.getPenal(), pos2.getSegPenalizacion()));\n } else {\n\n return ponderarPenalizacion(\n calcTiempoCompensado(pos1.getSegTiempo(), pos1.getBarco(), pos1.getManga()),\n pos1.getPenal(),\n pos1.getSegPenalizacion())\n .compareTo(ponderarPenalizacion(calcTiempoCompensado(\n pos2.getSegTiempo(),\n pos2.getBarco(), pos2.getManga()),\n pos2.getPenal(),\n pos2.getSegPenalizacion()));\n }\n } else {\n /**\n * Situacion en la que uno de ellos esta penalizado o ambos lo\n * están\n */\n\n if (pos1.getPenal() == Posicion.Penalizacion.NAN) {\n\n return -1;\n\n } else if (pos2.getPenal() == Posicion.Penalizacion.NAN) {\n\n return 1;\n\n } else {\n\n return 0;\n\n }\n\n }\n }", "@Override\n\tpublic void verkaufen() {\n\t\tif( (bestand - abgenommeneMenge) < 0)\n\t\t\tthis.setBestand(0);\n\t\telse\n\t\t\tthis.setBestand(this.getBestand() - abgenommeneMenge);\n//\t\tSystem.out.println(\"Bestand danach:\" + bestand);\n\t}", "public void soin() {\n if (!autoriseOperation()) {\n return;\n }\n if (tamagoStats.getXp() >= 2) {\n incrFatigue(-3);\n incrHumeur(3);\n incrFaim(-3);\n incrSale(-3);\n incrXp(-2);\n\n if (tamagoStats.getPoids() == 0) {\n incrPoids(3);\n } else if (tamagoStats.getPoids() == TamagoStats.POIDS_MAX) {\n incrPoids(-3);\n }\n\n setEtatPiece(Etat.NONE);\n tamagoStats.setEtatSante(Etat.NONE);\n\n setChanged();\n notifyObservers();\n }\n }", "public String getRank() {\r\n return rank;\r\n }", "protected void end() {\n \tclimber.ascend(0, 0);\n }", "public void nourrir() {\n if (!autoriseOperation()) {\n return;\n }\n\n incrFaim(-2);\n incrPoids(1);\n incrHumeur(1);\n incrXp(1);\n\n System.out.println(tamagoStats.getXp());\n setChanged();\n notifyObservers();\n\n }", "private void demote(WAVLNode z) {\n\t z.rank--;\r\n }", "public TurnDirection chooseNDPrimaProva(){\n if(actualPosition.getRow()==getWidth()-1 && botDirection.getDirection()==Direction.VERTICAL_UP){\n botDirection.setDirection(Direction.HORIZONTAL_UP);\n return TurnDirection.TURN_RIGHT;\n }\n else{\n if(actualPosition.getRow()==0 && botDirection.getDirection()==Direction.VERTICAL_DOWN){\n botDirection.setDirection(Direction.HORIZONTAL_UP);\n return TurnDirection.TURN_LEFT;\n }\n else{\n if(actualPosition.getRow()==getWidth()-1 && botDirection.getDirection()==Direction.HORIZONTAL_UP){\n botDirection.setDirection(Direction.VERTICAL_DOWN);\n return TurnDirection.TURN_RIGHT;\n }\n else{\n botDirection.setDirection(Direction.VERTICAL_UP); /**actualPosition.getRaw()==0 && botDirection.getDirection()==Direction.HORIZONTAL_UP**/\n return TurnDirection.TURN_LEFT;\n }\n }\n }\n }", "public void setRank(int r) {\r\n\t\trank = r;\r\n\t}", "long getFromRank();", "public String rank() {\r\n return rank;\r\n }", "private static void printRanking(List<Instruction> list,final String settlementType) {\n\t\tfinal Map<String, Double> entityMap = new HashMap<>();\n\t\tfor(Instruction instruction : list) {\n\t\t\tif(entityMap.get(instruction.getEntity())!=null) {\n\t\t\t\t//if multiple trades happened for same entity \n\t\t\t\tentityMap.put(instruction.getEntity(),(entityMap.get(instruction.getEntity()) + instruction.getTotalAmount()));\n\t\t\t}else {\n\t\t\t\tentityMap.put(instruction.getEntity(), instruction.getTotalAmount());\n\t\t\t}\n\t\t}\n\t\t// sort entity map based on TotoalAmount\n\t\tfinal Map<String, Double> sortedMap = entityMap.entrySet().stream()\n\t\t.sorted(Map.Entry.<String,Double>comparingByValue().reversed())\n\t\t.collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue, (e1, e2) -> e1, HashMap<String,Double>::new));\n\t\t\n\t\tSystem.out.println(settlementType +\" Ranking :\\n\");\n\t\tSet<String> keySet = sortedMap.keySet();\n\t\tint rank = 1;\n\t\tfor(String key : keySet) {\n\t\t\tSystem.out.println(key +\" - \"+ rank++);\n\t\t}\n\t}", "int getRemainPoints();", "public void deal(){\n\t\tInteger topRank;\n\t\tInteger btmRank;\n\t\tDouble[] currPercent = {0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0};\n\t\tlastRaise = -1;\n\t\tcurrBet = 3.0;\n\t\tfor (int i = 0; i<tablePlayers.length*2+5; i++) {\n\t\t\tif (i<tablePlayers.length) {\n\t\t\t\ttablePlayers[i].setCard1(deck[i]); \n\t\t\t}\n\t\t\telse if (i<tablePlayers.length*2) {\n\t\t\t\ttablePlayers[i%tablePlayers.length].setCard2(deck[i]); \n\t\t\t}\n\t\t\telse {\n\t\t\t\ttableCards[i-tablePlayers.length*2].setRank(deck[i].getRank());\n\t\t\t\ttableCards[i-tablePlayers.length*2].setSuit(deck[i].getSuit());\n\t\t\t}\n\t\t}\n\t\t//determine each hand's winning percentage and go through first round of betting\n\t\tfor (int j = 0; j < tablePlayers.length; j++) {\n\t\t\tint i = (button + 3 + j) % 10;\n\t\t\t//if (j==0) System.out.println(\"button = \" + button + \"; first = \" + i);\n\t\t\tif (tablePlayers[i].getCard1().getRank() == 1 || tablePlayers[i].getCard2().getRank() == 1) {\n\t\t\t\ttopRank = 14;\n\t\t\t\tbtmRank = Math.max(tablePlayers[i].getCard1().getRank(), tablePlayers[i].getCard2().getRank());\n\t\t\t\tif (btmRank == 1) {\n\t\t\t\t\tbtmRank = 14;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (tablePlayers[i].getCard1().getRank() <= tablePlayers[i].getCard2().getRank()) {\n\t\t\t\t\ttopRank = tablePlayers[i].getCard2().getRank();\n\t\t\t\t\tbtmRank = tablePlayers[i].getCard1().getRank();\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\ttopRank = tablePlayers[i].getCard1().getRank();\n\t\t\t\t\tbtmRank = tablePlayers[i].getCard2().getRank();\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (topRank == btmRank) { //pocket pair\n\t\t\t\tif (topRank == 14) {\n\t\t\t\t\tcurrPercent[i] = winPercent[168];\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tcurrPercent[i] = winPercent[154 + topRank];\n\t\t\t\t}\n\t\t\t} \n\t\t\telse {\n\t\t\t\tint index = -1;\n\t\t\t\tfor (int k = 1; k < topRank-2; k++) {\n\t\t\t\t\tindex += k;\n\t\t\t\t}\n\t\t\t\tindex += btmRank-1;\n\t\t\t\tindex *= 2;\n\t\t\t\tif (tablePlayers[i].getCard1().getSuit() == tablePlayers[i].getCard2().getSuit()) {\n\t\t\t\t\tindex++;\n\t\t\t\t}\n\t\t\t\tcurrPercent[i] = winPercent[index];\n\t\t\t}\n\t\t\t\n\t\t\t//place first round of pre-flop bets\n\t\t\tif (currPercent[i] > 0.20) { \n\t\t\t\tbetOrRaise(i,12.,3.);\n\t\t\t}\t\t\t\n\t\t\telse if ((currPercent[i] > 0.166 && currBet <= 3.0) ) { \n\t\t\t\tbetOrRaise(i,6.,3.);\n\t\t\t}\n\t\t\telse if (currPercent[i] > preFlopCallBBOdds[i] && currBet <= 3.0) {\n\t\t\t\tcallBetOrCheck(i,3.);\n\t\t\t}\n\t\t\telse if (currPercent[i] > preFlopCallARaiseOdds[i] && currBet <= 6.0) {\n\t\t\t\tcallBetOrCheck(i,6.);\n\t\t\t}\n\t\t\telse if (currPercent[i] > preFlopCallMultiRaiseOdds[i] && currBet > 6.0) {\n\t\t\t\tcallBetOrCheck(i,12.);\n\t\t\t}\n\t\t\telse if (i == ((button + 1) % 10)) {\n\t\t\t\ttablePlayers[i].placeBet(1.0);\n\t\t\t\tpot += 1.0;\n\t\t\t\ttablePlayers[i].foldHand();\n\t\t\t}\n\t\t\telse if (i == ((button + 2) % 10)) {\n\t\t\t\ttablePlayers[i].placeBet(3.0);\n\t\t\t\tpot += 3.0;\n\t\t\t\tif (currBet > 3.0) {\n\t\t\t\t\tif (currPercent[i] > preFlopCallBBOdds[i] && currBet <= 6.0) {\n\t\t\t\t\t\tcallBetOrCheck(i,6.);\n\t\t\t\t\t}\n\t\t\t\t\telse tablePlayers[i].foldHand();\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (tablePlayers[i].getBet() < currBet) {\n\t\t\t\ttablePlayers[i].foldHand();\n\t\t\t}\n\t\t}\n\t\tif (lastRaise > -1) {\n\t\t\traiseCount++;\n\t\t}\n\t\t// call raises and allow for re-raises to cap\n\t\twhile (lastRaise > -1) {\n\t\t\tlastRaise = -1;\n\t\t\tfor (int j = 0; j < tablePlayers.length; j++) {\n\t\t\t\tint i = (button + 3 + j) % 10;\n\t\t\t\tif (!tablePlayers[i].hasFolded()) {\n\t\t\t\t\tif (currPercent[i] > 0.20) {\n\t\t\t\t\t\tbetOrRaise(i,12.,3.);\n\t\t\t\t\t}\n\t\t\t\t\tif (tablePlayers[i].getBet() >= currBet) {\n\t\t\t\t\t\tcontinue; //check\n\t\t\t\t\t}\n\t\t\t\t\telse if (tablePlayers[i].getBet() == currBet - 3.0 && currPercent[i] > preFlopCallBBOdds[i]) {\n\t\t\t\t\t\t//call one raise if player would have called BB\n\t\t\t\t\t\tcallBetOrCheck(i, currBet);\n\t\t\t\t\t}\n\t\t\t\t\telse if (tablePlayers[i].getBet() < currBet - 3.0 && currPercent[i] > preFlopCallMultiRaiseOdds[i]) {\n\t\t\t\t\t\t//call the multiRaise if would have called multiple raises on first action\n\t\t\t\t\t\tcallBetOrCheck(i,12.);\n\t\t\t\t\t}\n\t\t\t\t\telse tablePlayers[i].foldHand();\n\t\t\t\t}\n\t\t\t}\n//\t\t\tprintTableStatus();\n\t\t}\n//\t\tfor (int i = 0; i < tablePlayers.length; i++) {\n//\t\t\tif (!tablePlayers[9].hasFolded()) flopsPlayed++;\n//\t\t}\n\t\t//Bet the flop\n\t\tresetPlayerBets();\n\t\tfor (int i = 0; i < tablePlayers.length; i++) {\n\t\t\tif (!tablePlayers[i].hasFolded()) {\n\t\t\t\tplayersLeft++;\n\t\t\t\tflopPlayers++;\n\t\t\t}\n\t\t}\n\t\tif (playersLeft > 1) flopsSeen++;\n\t\tplayersLeft = 0;\n\t\tbetFlop();\n\t\t//Bet the turn\n\t\tresetPlayerBets();\n\t\tfor (int i = 0; i < tablePlayers.length; i++) {\n\t\t\tif (!tablePlayers[i].hasFolded()) {\n\t\t\t\tplayersLeft++;\n\t\t\t\tturnPlayers++;\n\t\t\t}\n\t\t}\n\t\tif (playersLeft > 1) turnsSeen++;\n\t\tplayersLeft = 0;\n\t\tbetTurn();\n\t\t\n\t\t//Bet the river\n\t\tresetPlayerBets();\n\t\tfor (int i = 0; i < tablePlayers.length; i++) {\n\t\t\tif (!tablePlayers[i].hasFolded()) {\n\t\t\t\triverPlayers++;\n\t\t\t\tplayersLeft++;\n\t\t\t}\n\t\t}\n\t\tif (playersLeft > 1) riversSeen++;\n\t\tplayersLeft = 0;\n\t\tbetRiver();\n\t\tfor (int i = 0; i < tablePlayers.length; i++) {\n\t\t\tif (!tablePlayers[i].hasFolded()) {\n\t\t\t\tplayersLeft++;\n\t\t\t}\n\t\t}\n\t\tif (playersLeft > 1) showdowns++;\n\t\tplayersLeft = 0;\n\t\t\n\t}", "private void calculateOutgoingRankings(List<ClientInstructions> instructions) throws ReportingSystemException {\r\n\t\tallOutgoingRankings = outgoingRankingService.evaluateRanking(instructions, outgoingPredicate);\r\n\t}", "public void removerFinal() {\n switch (totalElementos()) {\n case 0:\n System.out.println(\"lista esta vazia\");\n break;\n case 1:\n this.primeiro = this.ultimo = null;\n this.total--;\n break;\n default:\n ElementoLista elementoTemporarioAnteriorAtual = this.primeiro;\n ElementoLista elementoTemporarioAtual = this.primeiro.irParaProximo();\n for (int i = 1; i < totalElementos(); i++) {\n elementoTemporarioAnteriorAtual = elementoTemporarioAtual;\n elementoTemporarioAtual = elementoTemporarioAtual.irParaProximo();\n }\n\n this.ultimo = elementoTemporarioAnteriorAtual;\n this.ultimo.definirProximo(null);\n this.total--;\n }\n //this.ultimo = this.ultimo.irParaAnterior();\n //this.ultimo.definirProximo(null);\n }", "public PentagoMove alphabetaw(PentagoBoardState boardState){\n PentagoBoardState pbs = (PentagoBoardState) boardState.clone();\n ArrayList<PentagoMove> legalmoves = pbs.getAllLegalMoves();\n\n PentagoMove bestmove = legalmoves.get(0);\n PentagoMove bestopponentmove = new PentagoMove(0,0,0,0,0);\n int bestmovescore = -9999999;\n int bestwhitescore = 0;\n //ArrayList<Integer> scores = new ArrayList<Integer>();\n for(int i = 0;i<legalmoves.size()-1;i++){\n\n PentagoBoardState newboard = (PentagoBoardState) pbs.clone();\n //System.out.println( pbs.getTurnPlayer() + \"BEFORE PROCESS\");\n PentagoMove next = legalmoves.get(i);\n\n newboard.processMove(next);\n\n int score = evaluate(newboard);\n //scores.add(score);\n //System.out.println( pbs.getTurnPlayer() + \" AFTER PROCES\");\n\n if(score > 100000){\n newboard.getWinner();\n newboard.printBoard();\n System.out.println(\"FOUND A WINNER\" + score);\n return next;\n }\n\n\n PentagoMove currentopponentmove;\n ArrayList<PentagoMove> opponentlegalmoves = newboard.getAllLegalMoves();\n if (opponentlegalmoves.size()!=0){\n currentopponentmove = opponentlegalmoves.get(0);\n }\n\n int minopponentmovescore = 999999;\n int thismovescore = -9999;\n ArrayList<PentagoMove> bestopponentmoves = new ArrayList<PentagoMove>();\n PentagoMove currentbestopponentmove = new PentagoMove(0,0,0,0,0);\n\n for(int a = 0;a<opponentlegalmoves.size()-1;a++){\n\n PentagoBoardState pbsopponent = (PentagoBoardState) newboard.clone();\n //System.out.println( pbs.getTurnPlayer() + \"BEFORE PROCESS\");\n PentagoMove opponentnext = opponentlegalmoves.get(a);\n\n pbsopponent.processMove(opponentnext);\n //System.out.println( pbs.getTurnPlayer() + \" AFTER PROCES\");\n //pbs.printBoard();\n\n int opponentscore = evaluate(pbsopponent);\n\n\n\n\n\n if (minopponentmovescore>opponentscore){\n //currentopponentmove = opponentnext;\n minopponentmovescore = opponentscore;\n bestopponentmoves.add(opponentnext);\n currentbestopponentmove = opponentnext;\n }\n\n\n }\n bestopponentmove = currentbestopponentmove;\n //lvl 3\n /*\n\n int lvl3minscore =99999;\n PentagoMove currentmaxmove;\n for (int r = 0;r<bestopponentmoves.size()-1;r++) {\n PentagoBoardState pbsopponent = (PentagoBoardState) newboard.clone();\n pbsopponent.processMove(bestopponentmoves.get(r));\n\n ArrayList<PentagoMove> maxlegalmoves = pbsopponent.getAllLegalMoves();\n if (maxlegalmoves.size() != 0) {\n currentmaxmove = maxlegalmoves.get(0);\n }\n int opponentscore = evaluate(pbsopponent);\n int findminmaxmovescore = -99999;\n for (int s = 0; s < maxlegalmoves.size() - 1; s++) {\n\n PentagoBoardState maxboard = (PentagoBoardState) pbsopponent.clone();\n //System.out.println( pbs.getTurnPlayer() + \"BEFORE PROCESS\");\n PentagoMove maxnext = maxlegalmoves.get(s);\n\n maxboard.processMove(maxnext);\n //System.out.println( pbs.getTurnPlayer() + \" AFTER PROCES\");\n //pbs.printBoard();\n\n int maxnextscore = evaluate(pbsopponent);\n if (findminmaxmovescore < maxnextscore) {\n currentmaxmove = maxnext;\n findminmaxmovescore = maxnextscore;\n }\n }\n if (thismovescore<findminmaxmovescore){\n //currentopponentmove = opponentnext;\n thismovescore = findminmaxmovescore;\n }\n\n //opponentscore = maxmovescore;\n }\n\n //end experiment\n\n\n\n\n if (mycolour ==1){\n lvl3minscore =minopponentmovescore;\n }\n */\n if (minopponentmovescore>bestmovescore){//minopponentmovescore\n System.out.println(\"max player move score: \"+score + \"Min : \" + minopponentmovescore);\n bestmovescore = minopponentmovescore;\n bestmove = next;\n bestwhitescore = score;\n\n }\n else if (minopponentmovescore == bestmovescore){\n if (score > bestwhitescore){\n System.out.println(\"max player move score: \"+score + \"Min : \" + minopponentmovescore);\n bestmovescore = minopponentmovescore;\n bestmove = next;\n bestwhitescore = score;\n }\n\n\n\n }\n\n\n }\n System.out.println(\"final max player move score: \"+ bestmovescore + \"\\n My best move: \"+bestmove.toPrettyString() + \"\\n My best move: \"+ bestopponentmove.toPrettyString());\n return bestmove;\n }", "private void obsluga_bonusu()\n {\n if(bonusy_poziomu>0)\n {\n boolean numer= los.nextBoolean();\n if(numer){\n bon.add(new Bonus(w.getPolozenie_x(),w.getPolozenie_y(),getWidth(),getHeight()));\n bonusy_poziomu--;\n }\n }\n }", "KingdomRank getRank(KingdomUser user);", "private Map<String, Integer> setPuntuation(List<Point> points, List<Result> results){\n\t\t\n\t\tMap<String, Integer> puntuation = new HashMap<>();\n\t\t\n\t\tfor(Integer i = 0; i<points.size(); i++) {\t\t\n\t\t\tif(results.size() > i) {\n\t\t\t\tString clubName = results.get(i).getRunner().getClub().getName();\n\t\t\t\tInteger clubPoints = points.get(i).getPuntuation();\n\t\t\t\t\n\t\t\t\tif(puntuation.containsKey(clubName))\n\t\t\t\t\tpuntuation.put(clubName, puntuation.get(clubName)+clubPoints);\n\t\t\t\telse\n\t\t\t\t\tpuntuation.put(clubName, clubPoints);\n\t\t\t}\t\n\t\t}\n\t\t\n\t\treturn puntuation;\n\t}", "public String getRank()\r\n\t{\r\n\t\treturn rank;\r\n\t}", "public void setRank(int value);", "public int puntosRestantes() {\n // TODO implement here\n return 0;\n }", "public void incrank() {\n\t\trank++;\n\t}", "public Integer getRank(){\r\n\t\treturn rank;\r\n\t}", "public Rank getRank()\n\t{\n\t\treturn rank;\n\t}", "List<Ranking> calculateIncomeRanks(List<Instruction> instructions);", "public String getRank() {\n return rank;\n }", "public static void dormir(){\n System.out.print(\"\\033[H\\033[2J\");//limpia pantalla\n System.out.flush();\n int restoDeMana; //variables locales a utilizar\n int restoDeVida;\n if(oro>=30){ //condicion de oro para recuperar vida y mana\n restoDeMana=10-puntosDeMana;\n puntosDeMana=puntosDeMana+restoDeMana;\n restoDeVida=150-puntosDeVida;\n puntosDeVida=puntosDeVida+restoDeVida;\n //descotando oro al jugador\n oro=oro-30;\n System.out.println(\"\\nrecuperacion satisfactoria\");\n }\n else{\n System.out.println(\"no cuentas con 'Oro' para recuperarte\");\n }\n }" ]
[ "0.6318386", "0.6055099", "0.5990141", "0.5852561", "0.58046246", "0.57987577", "0.5689414", "0.5642407", "0.56370085", "0.56370085", "0.56181127", "0.55808526", "0.55401224", "0.55356866", "0.5491646", "0.5475468", "0.5449252", "0.5440623", "0.54165304", "0.541352", "0.539439", "0.5390335", "0.5390235", "0.5383612", "0.5381195", "0.53770876", "0.5341691", "0.53394353", "0.5323391", "0.5311293", "0.53081554", "0.5303923", "0.52840996", "0.5284019", "0.5279494", "0.5274711", "0.5273136", "0.52641195", "0.5259795", "0.5254374", "0.5241326", "0.5238167", "0.52377", "0.5232061", "0.5224708", "0.5217971", "0.52094454", "0.5208156", "0.52019626", "0.51872706", "0.5182844", "0.51766104", "0.5176342", "0.5176072", "0.5168207", "0.5164775", "0.51619625", "0.5149798", "0.51275015", "0.512503", "0.51247114", "0.51247114", "0.51247114", "0.51239437", "0.5123009", "0.51117015", "0.5105894", "0.51009053", "0.5094768", "0.5089428", "0.5081068", "0.50714624", "0.5070349", "0.50656915", "0.50631815", "0.5059296", "0.5059034", "0.5058949", "0.50558347", "0.50506264", "0.5046982", "0.5038284", "0.5028142", "0.50263613", "0.5025956", "0.5024603", "0.5019546", "0.50144786", "0.5011285", "0.50105596", "0.5009443", "0.50072145", "0.500557", "0.5005012", "0.50002986", "0.4998296", "0.49971303", "0.4993734", "0.4993645", "0.4991206" ]
0.60778564
1
END_METHOD Vacia el vector de la clasificacion
public Ranking[] vaciarRanking() { for(int i=0;i<10;i++){ clasificacion[i].setLogin(" "); clasificacion[i].setMediana(0); }//END_FOR return clasificacion; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public WB_Vector nextVector();", "public VOIVector() {\r\n super();\r\n }", "public abstract Vector computeCenter();", "List<IntVector3> rails();", "public nvo_coords.CoordsType getVector() {\n return vector;\n }", "public void clearVectors();", "public Vector(float[] axis){ this.axis = axis;}", "VectorType11 getVector();", "public abstract ImmutableVector getImmutableVector();", "private void genLoadVectorCode(String name, String classSimpleName, boolean primitive, int dimensions, String cppType) {\n int tabLevel = 1;\n String tabs = tabs(tabLevel);\n String prevVVarName = \"\";\n char prevLoopVarName = ' ';\n\n for (int i = 1; i <= dimensions; i++) {\n int level = dimensions + 1 - i;\n String vVarName = \"v\" + i + \"_\" + name;\n String vectorType = vectorCppTypeName(level, cppType);\n String lenVarName = vVarName + \"_length\";\n char loopVarName = (char) ('i' + (i - 1));\n\n if (i == 1) {\n load.println(\"\\t// \" + vectorType + \" this->\" + name);\n genDebug(load, \"\\tstd::cout << \\\"load \" + vectorType + \" \" + name + \"\\\" << std::endl;\");\n }\n\n load.println(tabs + \"int \" + lenVarName + \";\");\n\n load.println();\n load.println(tabs + INSTREAM_VAR_NAME + \".readInt( \" + lenVarName + \" );\");\n\n genDebugDumpValue(load, lenVarName, tabs);\n\n if (i > 1) {\n // inside a for loop, inner vector variable initialized by\n // dereferencing iterator\n load.println(tabs + vectorType + \"& \" + vVarName + \" = \" + prevVVarName + \".at( \" + prevLoopVarName + \" );\");\n } else {\n // outside for loop, inner vector variable initialized to member\n // variable\n load.println(tabs + vectorType + \"& \" + vVarName + \" = this->\" + name + \";\");\n }\n\n if (i <= dimensions - 1) {\n // initialize & pre-allocate the vector at this level\n load.println(tabs + vVarName + \" = \" + vectorType + \"( \" + lenVarName + \" );\");\n } else {\n // initialize & pre-allocate the vector at this level\n load.println(tabs + vVarName + \".reserve( \" + lenVarName + \" );\");\n }\n\n load.println();\n load.println(tabs + \"for( int \" + loopVarName + \" = 0; \" + loopVarName + \" < \" + lenVarName + \"; \" + loopVarName\n + \"++ ){\");\n\n tabLevel++;\n tabs = tabs(tabLevel);\n\n if (i == dimensions) {\n if (primitive || classSimpleName.equals(\"String\")) {\n load.println(tabs + cppType + \" v\" + i + \";\");\n load.println(tabs + genReadCode(\"v\" + i, cppType(classSimpleName)));\n load.println(tabs + vVarName + \".push_back( v\" + i + \" );\");\n } else {\n load.println(tabs + cppType + \" v\" + i + \";\");\n load.println(tabs + \"v\" + i + \".load( \" + INSTREAM_VAR_NAME + \" );\");\n load.println(tabs + vVarName + \".push_back( v\" + i + \" );\");\n }\n }\n prevVVarName = vVarName;\n prevLoopVarName = loopVarName;\n }\n for (int i = 0; i < dimensions; i++) {\n tabLevel--;\n tabs = tabs(tabLevel);\n load.println(tabs + \"}\");\n }\n }", "public double[] ClassVect() {\n\t\treturn class_vect;\n\t}", "Vec(double x, double y) {\n this.x = x; this.y = y;\n }", "Vector getZeroVector();", "@Override\r\n default Vector3 getEnd() {\r\n return Vector3.fromXYZ(getOrgX() + getDirX(), getOrgY() + getDirY(), getOrgZ() + getDirZ());\r\n }", "void vectorFromWorld(double px, double py, double pz, DVector3 result);", "public ColladaFloatVector() {\n super();\n }", "public int[] getFinalVectors() {\n if (getLastStep() != null) {\n return getLastStep().getVectors();\n }\n return getEntity().getVectors();\n }", "public float[] getVec() {\n return vec;\n }", "private void rv2Elements(VectorN r, VectorN v)\n\t{\n\t\tr.checkVectorDimensions(3);\n\t\tv.checkVectorDimensions(3);\n\t\t//Constants c = new Constants();\n\t\tVectorN evec = new VectorN(3); // e vector\n\t\tVectorN k = new VectorN(3); // unit vector in z direction\n\n\t\tthis.rv = new VectorN(r, v);\n\n\t\tdouble rmag = r.mag();\n\t\tdouble vmag = v.mag();\n\t\tdouble energy = vmag * vmag / 2.0 - this.mu / rmag;\n\n\t\tk.x[0] = 0.0;\n\t\tk.x[1] = 0.0;\n\t\tk.x[2] = 1.0;\n\n\t\tVectorN h = r.crossProduct(v);\n\t\tVectorN n = k.crossProduct(h);\n\n\t\tdouble rdotv = r.dotProduct(v);\n\n\t\tdouble q1 = (vmag * vmag - this.mu / rmag) / this.mu;\n\t\tdouble q2 = rdotv / this.mu;\n\n\t\tevec.x[0] = q1 * r.x[0] - q2 * v.x[0];\n\t\tevec.x[1] = q1 * r.x[1] - q2 * v.x[1];\n\t\tevec.x[2] = q1 * r.x[2] - q2 * v.x[2];\n\n\t\tthis.e = evec.mag();\n\n\t\tif (e != 1.0)\n\t\t{\n\t\t\tthis.a = -this.mu / (2.0 * energy);\n\t\t} else\n\t\t{\n\t\t\tthis.a = 1.0E30;\n\t\t\tSystem.out.println(\"parabolic orbit\");\n\t\t}\n\n\t\tthis.i = Math.acos(h.x[2] / h.mag()); // inclination\n\n\t\tthis.raan = Math.acos(n.x[0] / n.mag()); // raan\n\t\tif (n.x[1] < 0.0)\n\t\t{\n\t\t\tthis.raan = 2.0 * Constants.pi - raan;\n\t\t}\n\n\t\tthis.w = Math.acos(n.dotProduct(evec) / (n.mag() * e));\n\t\tif (evec.x[2] < 0.0)\n\t\t{\n\t\t\tthis.w = 2.0 * Constants.pi - this.w;\n\t\t}\n\n\t\tif (i == 0.0) // equatorial orbit, things blow up\n\t\t{\n\t\t\t//\t\t System.out.println(\"KeplerElements: equatorial orbit, RAAN no good\");\n\t\t\tthis.raan = 0.0;\n\t\t\tthis.w = Math.acos(evec.x[0] / e);\n\t\t\tif (evec.x[1] < 0.0)\n\t\t\t{\n\t\t\t\tthis.w = 2.0 * Constants.pi - this.w;\n\t\t\t}\n\t\t}\n\n\t\tif (i == Constants.pi) // equatorial orbit, things blow up\n\t\t{\n\t\t\t//\t\t System.out.println(\"KeplerElements: equatorial orbit, RAAN no good\");\n\t\t\tthis.raan = 0.0;\n\t\t\tthis.w = Math.acos(evec.x[0] / e);\n\t\t\tif (evec.x[1] > 0.0)\n\t\t\t{\n\t\t\t\tthis.w = 2.0 * Constants.pi - this.w;\n\t\t\t}\n\t\t}\n\n\t\tthis.ta = Math.acos(evec.dotProduct(r) / (e * rmag));\n\t\tif (rdotv < 0.0)\n\t\t{\n\t\t\tthis.ta = 2.0 * Constants.pi - this.ta;\n\t\t}\n\t}", "public abstract Vector4fc zero();", "float[][] getCameraVectors(int resX, int resY){\n float vectors[][]=new float[resX*resY][3];//first vector index, second the components of the vector\n float[] vect2=rotateYVector(dir);\n vect2[1]=0;\n vect2=normalize(vect2);\n float[] vect3=normalize(vectorProduct(dir, vect2));//dir, vect2, vect3 base vectors\n float[] x={0,0,0};\n float[] y={0,0,0};\n float[] temp={0,0,0};\n for(int i=0;i<3;i++){\n x[i]=(vect2[i])/(resX/2);\n y[i]=(vect3[i])/(resY/2);\n temp[i]=vect2[i];\n }\n \n for(int j=0;j<resY;j++){\n for(int i=0;i<resX;i++){\n vectors[j*resX+i][0]=dir[0]+vect2[0]+vect3[0];\n vectors[j*resX+i][1]=dir[1]+vect2[1]+vect3[1];\n vectors[j*resX+i][2]=dir[2]+vect2[2]+vect3[2];\n vect2[0]-=x[0];\n vect2[1]-=x[1];\n vect2[2]-=x[2];\n if((vectorLength(vect2)>(-0.0001)&&vectorLength(vect2)<0.0001)&&(resX%2)==0){\n vect2[0]-=x[0];\n vect2[1]-=x[1];\n vect2[2]-=x[2];\n }\n }\n //printVector(temp);\n vect2[0]=temp[0];\n vect2[1]=temp[1];\n vect2[2]=temp[2];\n vect3[0]-=y[0];\n vect3[1]-=y[1];\n vect3[2]-=y[2];\n if((vectorLength(vect3)>(-0.0001)&&vectorLength(vect3)<0.0001)&&(resY%2)==0){\n vect3[0]-=y[0];\n vect3[1]-=y[1];\n vect3[2]-=y[2];\n }\n }\n \n return vectors;\n }", "public abstract double[] getVector(int[] location);", "public Vector330Class(){\n this.x = 0;\n this.y = 0;\n }", "@org.junit.Test\n public void inverser_vector() throws Exception {\n //voici un commentaire\n Vector<Integer> inppuut = new Vector<Integer>();\n inppuut.add(1);\n inppuut.add(2);\n inppuut.add(3);\n inppuut.add(4);\n\n Vector<Integer> expec = new Vector<Integer>();\n expec.add(4);\n expec.add(3);\n expec.add(2);\n expec.add(1);\n\n VectorHelper.inverser_vector(inppuut);\n assertEquals(expec, inppuut);\n\n }", "public void SetVector(int[] v){ this.vector=v;}", "public Vector produitVectorielle(Vector vec){\n return new Vector(y * vec.z - z * vec.y, z * vec.x - x * vec.z, x * vec.y - y * vec.x);\t\t\n }", "public VectorN xref0 ();", "VectorArray getNeutHar();", "Vector<Vector<Object>> getDataVector();", "public Vector2d() {\n\t\tthis.x = 0;\n\t\tthis.y = 0;\n\t}", "protected abstract void paintVectors(Graphics2D g);", "float[][] getCameraVectorsNormal(int resX, int resY){\n float vectors[][]=new float[resX*resY][3];//first vector index, second the components of the vector\n float[] vect2=rotateYVector(dir);\n vect2[1]=0;\n vect2=normalize(vect2);\n float[] vect3=normalize(vectorProduct(dir, vect2));//dir, vect2, vect3 base vectors\n float[] x={0,0,0};\n float[] y={0,0,0};\n float[] temp={0,0,0};\n for(int i=0;i<3;i++){\n x[i]=(vect2[i])/(resX/2);\n y[i]=(vect3[i])/(resY/2);\n temp[i]=vect2[i];\n }\n \n for(int j=0;j<resY;j++){\n for(int i=0;i<resX;i++){\n vectors[j*resX+i][0]=dir[0]+vect2[0]+vect3[0];\n vectors[j*resX+i][1]=dir[1]+vect2[1]+vect3[1];\n vectors[j*resX+i][2]=dir[2]+vect2[2]+vect3[2];\n vectors[j*resX+i]=normalize(vectors[j*resX+i]);\n vect2[0]-=x[0];\n vect2[1]-=x[1];\n vect2[2]-=x[2];\n if((vectorLength(vect2)>(-0.0001)&&vectorLength(vect2)<0.0001)&&(resX%2)==0){\n vect2[0]-=x[0];\n vect2[1]-=x[1];\n vect2[2]-=x[2];\n }\n }\n //printVector(temp);\n vect2[0]=temp[0];\n vect2[1]=temp[1];\n vect2[2]=temp[2];\n vect3[0]-=y[0];\n vect3[1]-=y[1];\n vect3[2]-=y[2];\n if((vectorLength(vect3)>(-0.0001)&&vectorLength(vect3)<0.0001)&&(resY%2)==0){\n vect3[0]-=y[0];\n vect3[1]-=y[1];\n vect3[2]-=y[2];\n }\n }\n \n return vectors;\n }", "public Coordinates unitVector(Coordinates vector);", "public Vertice GetExtremoFinal(){\r\n return this.Vf;\r\n }", "public void setEqualTo(Vector v){ components = v.getVectorAsArray(); }", "public Vector getVector()\n\t{\n\t\tVector v=new Vector();\n\t\tv.add(getDate());\n\t\tv.add(getCaloriesConsumed());\n\t\tv.add(getCaloriesBurned());\n\t\tv.add(getCaloriesDifference());\n\t\treturn v;\n\t}", "public ArrayList<Integer> getVector() {\n\t\tif (vector != null) {\n\t\t\treturn vector;\n\t\t} else {\n\t\t\tSystem.out\n\t\t\t\t\t.println(\"Error accessing vector in Sentence class for rawSen= '\"\n\t\t\t\t\t\t\t+ rawSen + \"'\\n\");\n\t\t\treturn null;\n\t\t}\n\t}", "public MyVector() {\n\t\tarr = new int[10];\n\t\tend = 0;\n\t}", "void doVector() {\n Vector<String> v = new Vector<>();//creating vector\n v.add( \"umesh\" );//method of Collection\n v.addElement( \"irfan\" );//method of Vector\n v.addElement( \"kumar\" );\n //traversing elements using Enumeration\n Enumeration e = v.elements(); // creates enumeration objects\n while (e.hasMoreElements()) { //\n System.out.println( e.nextElement() );\n }\n }", "public VFunction2D() {\n \n \n }", "private VectorArit CasteoVectores(VectorArit v, TipoPrimitivo t) {\r\n switch (t) {\r\n case STRING:\r\n return VectorToString(v);\r\n case NUMERIC:\r\n return VectorToDouble(v);\r\n case INTEGER:\r\n return VectorToInt(v);\r\n default:\r\n return v;\r\n }\r\n }", "public VectorOutput () { }", "public Vector2i() {\n }", "protected Vector getFeatureSet()\n {\n // get the superclass' vector\n Vector v = super.getFeatureSet();\n\n // add the features\n\n // return the vector\n return v;\n }", "public static android.renderscript.Element createVector(android.renderscript.RenderScript rs, android.renderscript.Element.DataType dt, int size) { throw new RuntimeException(\"Stub!\"); }", "@Test\r\n\tpublic void testCMLLatticeCMLLatticeVectorCMLLatticeVectorCMLLatticeVector() {\r\n\t\tCMLLattice lattice = new CMLLattice(new CMLLatticeVector(new double[] {\r\n\t\t\t\t1., 2., 3. }),\r\n\t\t\t\tnew CMLLatticeVector(new double[] { 4., 5., 6. }),\r\n\t\t\t\tnew CMLLatticeVector(new double[] { 7., 8., 9. }));\r\n\t\tCMLVector3Test.assertEquals(\"construct\", new double[] { 1., 2., 3. },\r\n\t\t\t\tlattice.getCMLVector3(0), EPS);\r\n\t\tCMLVector3Test.assertEquals(\"construct\", new double[] { 4., 5., 6. },\r\n\t\t\t\tlattice.getCMLVector3(1), EPS);\r\n\t\tCMLVector3Test.assertEquals(\"construct\", new double[] { 7., 8., 9. },\r\n\t\t\t\tlattice.getCMLVector3(2), EPS);\r\n\t}", "private void genSaveVectorCode(String name, String classSimpleName, boolean primitive, int dimensions, String cppType) {\n int tabLevel = 1;\n String tabs = tabs(tabLevel);\n\n for (int i = 1; i <= dimensions; i++) {\n\n String itVarName = \"i\" + i + \"_\" + name;\n String vVarName = \"v\" + i + \"_\" + name;\n\n // another for(;;) loop...\n String vectorType = vectorCppTypeName(dimensions + 1 - i, cppType);\n\n if (i == 1) {\n save.println(\"\\t// \" + vectorType + \" \" + name);\n genDebug(save, \"\\tstd::cout << \\\"save \" + vectorType + \" \" + name + \"\\\" << std::endl;\");\n }\n\n if (i > 1) {\n // inside a for loop, inner vector variable initialized by\n // dereferencing iterator\n save.println(tabs + vectorType + \"& \" + vVarName + \" = (*i\" + (i - 1) + \"_\" + name + \");\");\n } else {\n // outside for loop, inner vector variable initialized to member\n // variable\n save.println(tabs + vectorType + \"& \" + vVarName + \" = this->\" + name + \";\");\n }\n\n save.println(tabs + \"int \" + vVarName + \"_length = \" + vVarName + \".size();\");\n\n save.println();\n save.println(tabs + OUTSTREAM_VAR_NAME + \".writeInt(\" + vVarName + \"_length);\");\n\n genDebugDumpValue(save, vVarName + \"_length\", tabs);\n\n save.println();\n save.println(tabs + vectorType + \"::iterator \" + itVarName + \";\");\n save.println(tabs + \"for( \" + itVarName + \" = \" + vVarName + \".begin(); \" + itVarName + \" != \" + vVarName\n + \".end(); ++\" + itVarName + \" ){\");\n\n tabLevel++;\n tabs = tabs(tabLevel);\n\n if (i == dimensions) {\n if (primitive || classSimpleName.equals(\"String\")) {\n save.println(tabs + cppType + \" v\" + i + \" = (*\" + itVarName + \");\");\n save.println(tabs + genWriteCode(\"v\" + i, cppType));\n } else {\n // save.println( tabs + type + \" v\" + i + \" = (*\" +\n // itVarName + \");\" );\n // save.println( tabs + \"v\" + i + \".save( output );\");\n save.println(tabs + itVarName + \" -> save( \" + OUTSTREAM_VAR_NAME + \" );\");\n }\n }\n\n if (i < dimensions) {\n } else {\n if (i > 1) {\n // not outside outer for(;;) loop\n // bottom\n }\n }\n }\n\n for (int i = 0; i < dimensions; i++) {\n tabLevel--;\n tabs = tabs(tabLevel);\n save.println(tabs + \"}\");\n }\n }", "public Vector()\r\n {\r\n // initialise instance variables\r\n first = null;\r\n last = null;\r\n count = 0;\r\n }", "@Test\r\n\tpublic void newVectorTest() {\r\n\t\tfor (int x = -10; x<10; x++) {\r\n\t\t\tfor (int y = -10; y<10; y++) {\r\n\t\t\t\tVector v = new Vector(x,y);\r\n\t\t\t\tVector v2 = new Vector(v);\r\n\t\t\t\tv2.add(v);\r\n\t\t\t\tv2 = v2.add(v);\r\n\t\t\t\tv2 = v2.add(v2);\r\n\t\t\t\tassertTrue(v.equals(new Vector(x,y)));\r\n\t\t\t\tassertTrue(v2.equals(v.add(v).add(v).add(v)));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public ArcReversalSV() {\n\n results = new Vector();\n resultsForPolicies = new Vector();\n crono = new Crono();\n statistics = new PropagationStatisticsID();\n }", "public void recalculateVector()\r\n {\r\n recalculateVector(destX, destY);\r\n }", "static Vec vector(PointDouble a, PointDouble b) {\n return new Vec(b.x - a.x, b.y - a.y);\n }", "@Override\n\tpublic void vInv() {\n\t\t\n\t}", "public static void main(String[] args) {\n net.mindview.simple.Vector vector = new net.mindview.simple.Vector();\n java.util.Vector vector1 = new java.util.Vector<>();\n }", "public Vector2 getVectorOne(){\n return vecOne;\n }", "public Coordinates unitVector(Coordinates vector, Coordinates origin);", "public int vecLength();", "public Vector() {\n construct();\n }", "public abstract Vector2[] getVertices();", "private Vector(double x, double y){\n this.x = x;\n this.y = y;\n }", "@Override protected void compute2() {\n addToPendingCount(_env.peekAry().numCols()-1);\n int nchks=0;\n for (int i =0; i < _argcnt; ++i)\n nchks+=_env.peekAryAt(-i).anyVec().nChunks();\n\n _espc = new long[nchks+1];\n int coffset = _env.peekAry().anyVec().nChunks();\n long[] first_espc = _env.peekAry().anyVec().get_espc();\n System.arraycopy(first_espc, 0, _espc, 0, first_espc.length);\n for (int i=1; i< _argcnt; ++i) {\n long roffset = _espc[coffset];\n long[] espc = _env.peekAryAt(-i).anyVec().get_espc();\n int j = 1;\n for (; j < espc.length; j++)\n _espc[coffset + j] = roffset+ espc[j];\n coffset += _env.peekAryAt(-i).anyVec().nChunks();\n }\n\n Key[] keys = _env.peekAry().anyVec().group().addVecs(_env.peekAry().numCols());\n _vecs = new Vec[keys.length];\n for (int i=0; i<_vecs.length; ++i)\n _vecs[i] = new Vec( keys[i], _espc, null, _env.peekAry().vec(i).get_type());\n\n for (int i=0; i < Math.min(_maxP, _vecs.length); ++i) forkVecTask(i);\n }", "@Override\r\n protected void calculateContour(ArrayList<double[]> outContour,\r\n ArrayList<double[]> inContour) {\n\r\n }", "protected void generateVectors(int direction)\n\t{\n\t\tswitch(direction)\n\t\t{\n\t\t\tcase AnimationManager.BACK:\n\t\t\t\tvector_x = 0;\n\t\t\t\tvector_y = -1;\n\t\t\t\tbreak;\n\t\t\tcase AnimationManager.BACK_LEFT:\n\t\t\t\tvector_x = -1;\n\t\t\t\tvector_y = -1;\n\t\t\t\tbreak;\n\t\t\tcase AnimationManager.BACK_RIGHT:\n\t\t\t\tvector_x = 1;\n\t\t\t\tvector_y = -1;\n\t\t\t\tbreak;\n\t\t\tcase AnimationManager.RIGHT:\n\t\t\t\tvector_x = 1;\n\t\t\t\tvector_y = 0;\n\t\t\t\tbreak;\n\t\t\tcase AnimationManager.LEFT:\n\t\t\t\tvector_x = -1;\n\t\t\t\tvector_y = 0;\n\t\t\t\tbreak;\n\t\t\tcase AnimationManager.FRONT:\n\t\t\t\tvector_x = 0;\n\t\t\t\tvector_y = 1;\n\t\t\t\tbreak;\n\t\t\tcase AnimationManager.FRONT_RIGHT:\n\t\t\t\tvector_x = 1;\n\t\t\t\tvector_y = 1;\n\t\t\t\tbreak;\n\t\t\tcase AnimationManager.FRONT_LEFT:\n\t\t\t\tvector_x = -1;\n\t\t\t\tvector_y = 1;\n\t\t\t\tbreak;\n\t\t}\n\t}", "public void vivir(){\r\n\t\r\n\tAtacable algo42tmp;\r\n\t\r\n\tif (!(this.muerto)){\r\n\t\tfor(int i = 0; i <= this.velY; i++){\r\n\t\t\tthis.mover();\r\n\t\t}\r\n\t\t\r\n\t\talgo42tmp = zonaDeCombate.comprobarColisionAlgo42(this);\r\n\t\tif (algo42tmp != null){\r\n\t\t\talgo42tmp.recibirDanio(20); /**hacer q se muera*/\r\n\t\t\tthis.muerto = true;\r\n\t\t}\r\n\t\t\r\n\r\n\t\t}\r\n\t}", "public java.util.Vector getVecData() {\r\n return vecData;\r\n }", "@Test\r\n\tpublic void testCMLLatticeCMLLatticeVectorArray() {\r\n\t\tCMLLattice lattice = new CMLLattice(new CMLLatticeVector[] {\r\n\t\t\t\tnew CMLLatticeVector(new double[] { 1., 2., 3. }),\r\n\t\t\t\tnew CMLLatticeVector(new double[] { 4., 5., 6. }),\r\n\t\t\t\tnew CMLLatticeVector(new double[] { 7., 8., 9. }) });\r\n\t\tCMLVector3Test.assertEquals(\"construct\", new double[] { 1., 2., 3. },\r\n\t\t\t\tlattice.getCMLVector3(0), EPS);\r\n\t\tCMLVector3Test.assertEquals(\"construct\", new double[] { 4., 5., 6. },\r\n\t\t\t\tlattice.getCMLVector3(1), EPS);\r\n\t\tCMLVector3Test.assertEquals(\"construct\", new double[] { 7., 8., 9. },\r\n\t\t\t\tlattice.getCMLVector3(2), EPS);\r\n\t}", "public void PrintClassVector() {\n\t\tfor(int i=0; i<class_vect.length; i++) {\n\t\t\tSystem.out.print(class_vect[i]+\" \");\n\t\t}\n\t\t\n\t\tSystem.out.println(\"\");\n\t}", "public ThreeVector() { \r\n\t\t//returns null for no arguments\r\n\t}", "public static void main(String[] args) {\n\t\tVector v1=new Vector(2,8);\n\t\tSystem.out.println(v1.capacity());\n\t\tv1.add(10);\n\t\tv1.add(20);\nv1.add(30);\n\tv1.add(40);\n\tv1.add(50);\n\tv1.add(60);\n\tv1.add(70);\n\tv1.add(80);\n\tv1.add(90);\n\t\tv1.add(10);\n\t\tv1.add(11);\n\t\tArrayList a1=new ArrayList(v1);\n\t\ta1.add(200);\n\t\tSystem.out.println(a1);\n\t\n\n\n\t}", "private void fillVector()\r\n {\r\n // The x and y coordinates of a point\r\n int xPoint;\r\n int yPoint;\r\n \r\n // The x and y coordinates of a point with the displacement of the plot \r\n // origin from the component origin taken into consideration\r\n int xPointOffset, yPointOffset;\r\n \r\n // The point to be stored in the vector\r\n SPlotPoint plotPoint;\r\n\r\n\r\n // Get the max of the data types to figure out how to scale plot\r\n maxX_ = (new Double(xData_.getMax())).intValue();\r\n maxY_ = (new Double(yData_.getMax())).intValue();\r\n \r\n // Want max axes to be max of 200. Need to calculate the scaling factor\r\n xFactor_ = maxX_/MAX_AXIS_LENGTH;\r\n yFactor_ = maxY_/MAX_AXIS_LENGTH;\r\n \r\n // Extract x and y values, generate SPlotPoints and store in vector\r\n for (int i = 0; i < xSize_; i++)\r\n {\r\n xPoint = (int)(xData_.getValue(i) / xFactor_);\r\n yPoint = (int)(yData_.getValue(i) / yFactor_); \r\n\r\n\r\n // The xy coordinates where to plot the point (after taking the \r\n // offset btn the plot origin and the component origin into account\r\n xPointOffset = xPoint+OFFSET;\r\n yPointOffset = yPoint+OFFSET;\r\n \r\n // Generate SPlotPoints and store in vector\r\n plotPoint = new SPlotPoint(xPointOffset,\r\n yPointOffset);\r\n \r\n // Set the id of the scatter plot point (corresponds to the row\r\n // number in the .dbf\r\n // Must add one to compensate for geodata starting at 1 and vector\r\n // index starting at 0\r\n plotPoint.setId(i+1);\r\n \r\n pointVector_.addElement(plotPoint);\r\n }\r\n }", "public lj ax() {\n throw new Runtime(\"d2j fail translate: java.lang.RuntimeException: can not merge I and Z\\r\\n\\tat com.googlecode.dex2jar.ir.TypeClass.merge(TypeClass.java:100)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeRef.updateTypeClass(TypeTransformer.java:174)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.provideAs(TypeTransformer.java:780)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.e1expr(TypeTransformer.java:496)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:713)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:703)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.enexpr(TypeTransformer.java:698)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:719)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:703)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.s1stmt(TypeTransformer.java:810)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.sxStmt(TypeTransformer.java:840)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.analyze(TypeTransformer.java:206)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer.transform(TypeTransformer.java:44)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar$2.optimize(Dex2jar.java:162)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertCode(Dex2Asm.java:414)\\r\\n\\tat com.googlecode.d2j.dex.ExDex2Asm.convertCode(ExDex2Asm.java:42)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar$2.convertCode(Dex2jar.java:128)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertMethod(Dex2Asm.java:509)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertClass(Dex2Asm.java:406)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertDex(Dex2Asm.java:422)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar.doTranslate(Dex2jar.java:172)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar.to(Dex2jar.java:272)\\r\\n\\tat com.googlecode.dex2jar.tools.Dex2jarCmd.doCommandLine(Dex2jarCmd.java:108)\\r\\n\\tat com.googlecode.dex2jar.tools.BaseCmd.doMain(BaseCmd.java:288)\\r\\n\\tat com.googlecode.dex2jar.tools.Dex2jarCmd.main(Dex2jarCmd.java:32)\\r\\n\");\n }", "@Test\n public void getLengthVector2d(){\n Vector2d newVec = new Vector2d(0,1);\n vector.add(newVec);\n\n assertTrue(newVec.getLength() == 1);\n }", "public static void testVecteur(){\n\t\tVecteur u = new Vecteur(1,0);\n\t\tSystem.out.println(u);\n\t\tu = u.rotation(Math.PI/2);\n\t\tSystem.out.println(u);\n\t\tu = u.rotation(Math.PI/2);\n\t\tSystem.out.println(u);\n\t\t\n\t}", "@Test\r\n public void testAddVector() throws Exception {\r\n System.out.println(\"AddVector\");\r\n int[] T = {1,2,3};\r\n int []T2 = {4,5,6};\r\n VectorHelper instance = new VectorHelper();\r\n int[] expResult = {5,7,9};\r\n int[] result = instance.AddVector(T, T2);\r\n assertArrayEquals(expResult, result);\r\n \r\n }", "public Vector2f ()\n {\n }", "public void Sumatoria()\n {\n for (int i = 0; i < vector1.length; i++) {\n sumatoria[i]=vector1[i]+vector2[i];\n }\n }", "public Vector3 boostVector() {\n\t\tif (this.e() == 0)\n\t\t\treturn new Vector3(0., 0., 0.);\n\t\treturn new Vector3(this.px() / this.e(), this.py() / this.e(), this.pz() / this.e());\n\t}", "@Override \n public Vector getLocation() {\n return this.getR();\n }", "public double[] getVectorW() { \r\n return w;\r\n }", "public OriginalSparseVector () {}", "public Vector toVector(){\r\n\t\tVector v = new Vector();\r\n\r\n\t\t// ATTENTION l'ordre est très important !!\r\n\t\t// l'ordre doit être :\r\n\t\t// id, id localisation, adresse, code postal, ville, telephone\r\n\r\n\t\tv.add(id);\r\n\t\tv.add(localisation.getId());\r\n\t\tv.add(localisation.getAdresse());\r\n\t\tv.add(localisation.getCodePostal());\r\n\t\tv.add(localisation.getVille());\r\n\t\tv.add(telephone);\r\n\r\n\t\treturn v;\r\n\t}", "public abstract void generateFeatureVector(Factor<Scope> f);", "@Override\r\n\tpublic vec3 minus() {\n\t\treturn null;\r\n\t}", "public Vector(double x, double y){\n this.x=x;\n this.y=y;\n }", "private int[] actualizarDisp(int asignacion[][], int disponibles[]){\r\n \r\n //Vector auxiliar a ser actualizado\r\n int update[] = disponibles;\r\n \r\n //Proceso de actualizacion de vector\r\n for(int j = 0; j < update.length; j++){\r\n for(int i = 0; i < asignacion.length; i++){\r\n //Restar el valor almacenado en cada proceso para cada tipo de recurso respectivo\r\n update[j] = recursos[j] - asignacion[i][j];\r\n }\r\n }\r\n \r\n return update;\r\n }", "@Model\r\n\tpublic Vector(double xComp, double yComp) {\r\n\t\t\r\n\t\t\tthis.xComp = xComp;\r\n\t\t\r\n\t\r\n\t\t\tthis.yComp = yComp;\r\n\r\n\t}", "public String getFeatVect();", "public void clearCentroidVectors();", "void vectorToWorld(double px, double py, double pz, DVector3 result);", "abstract public Vector3[][] update();", "public float[] getVector() {\r\n\t\t\r\n\t\tfloat array[]=new float[12];\r\n\t\tint index=-1;\r\n\t\t\r\n\t\tfor(int i=0;i<4;i++) {\r\n\t\t\tfor(int j=0;j<3;j++) {\r\n\t\t\t\t++index;\r\n\t\t\t\tarray[index]=thecounts[i][j]; \r\n\t\t\t}\r\n\t\t}\r\n\t\treturn array;\r\n\t}", "private MrnWoatlas5[] doGet(Vector result) {\n if (dbg) System.out.println (\"vector size = \" + result.size());\n int latitudeCol = db.getColNumber(LATITUDE);\n int longitudeCol = db.getColNumber(LONGITUDE);\n int depthCol = db.getColNumber(DEPTH);\n int temperatureMinCol = db.getColNumber(TEMPERATURE_MIN);\n int temperatureMaxCol = db.getColNumber(TEMPERATURE_MAX);\n int salinityMinCol = db.getColNumber(SALINITY_MIN);\n int salinityMaxCol = db.getColNumber(SALINITY_MAX);\n int oxygenMinCol = db.getColNumber(OXYGEN_MIN);\n int oxygenMaxCol = db.getColNumber(OXYGEN_MAX);\n int nitrateMinCol = db.getColNumber(NITRATE_MIN);\n int nitrateMaxCol = db.getColNumber(NITRATE_MAX);\n int phosphateMinCol = db.getColNumber(PHOSPHATE_MIN);\n int phosphateMaxCol = db.getColNumber(PHOSPHATE_MAX);\n int silicateMinCol = db.getColNumber(SILICATE_MIN);\n int silicateMaxCol = db.getColNumber(SILICATE_MAX);\n int chlorophyllMinCol = db.getColNumber(CHLOROPHYLL_MIN);\n int chlorophyllMaxCol = db.getColNumber(CHLOROPHYLL_MAX);\n MrnWoatlas5[] cArray = new MrnWoatlas5[result.size()];\n for (int i = 0; i < result.size(); i++) {\n Vector row = (Vector) result.elementAt(i);\n cArray[i] = new MrnWoatlas5();\n if (latitudeCol != -1)\n cArray[i].setLatitude ((String) row.elementAt(latitudeCol));\n if (longitudeCol != -1)\n cArray[i].setLongitude ((String) row.elementAt(longitudeCol));\n if (depthCol != -1)\n cArray[i].setDepth ((String) row.elementAt(depthCol));\n if (temperatureMinCol != -1)\n cArray[i].setTemperatureMin((String) row.elementAt(temperatureMinCol));\n if (temperatureMaxCol != -1)\n cArray[i].setTemperatureMax((String) row.elementAt(temperatureMaxCol));\n if (salinityMinCol != -1)\n cArray[i].setSalinityMin ((String) row.elementAt(salinityMinCol));\n if (salinityMaxCol != -1)\n cArray[i].setSalinityMax ((String) row.elementAt(salinityMaxCol));\n if (oxygenMinCol != -1)\n cArray[i].setOxygenMin ((String) row.elementAt(oxygenMinCol));\n if (oxygenMaxCol != -1)\n cArray[i].setOxygenMax ((String) row.elementAt(oxygenMaxCol));\n if (nitrateMinCol != -1)\n cArray[i].setNitrateMin ((String) row.elementAt(nitrateMinCol));\n if (nitrateMaxCol != -1)\n cArray[i].setNitrateMax ((String) row.elementAt(nitrateMaxCol));\n if (phosphateMinCol != -1)\n cArray[i].setPhosphateMin ((String) row.elementAt(phosphateMinCol));\n if (phosphateMaxCol != -1)\n cArray[i].setPhosphateMax ((String) row.elementAt(phosphateMaxCol));\n if (silicateMinCol != -1)\n cArray[i].setSilicateMin ((String) row.elementAt(silicateMinCol));\n if (silicateMaxCol != -1)\n cArray[i].setSilicateMax ((String) row.elementAt(silicateMaxCol));\n if (chlorophyllMinCol != -1)\n cArray[i].setChlorophyllMin((String) row.elementAt(chlorophyllMinCol));\n if (chlorophyllMaxCol != -1)\n cArray[i].setChlorophyllMax((String) row.elementAt(chlorophyllMaxCol));\n } // for i\n return cArray;\n }", "public VectorN getV()\n\t{\n\t\tVectorN out = new VectorN(3);\n\t\tout.x[0] = this.rv.x[3];\n\t\tout.x[1] = this.rv.x[4];\n\t\tout.x[2] = this.rv.x[5];\n\t\treturn out;\n\t}", "public Vector getRightVector() {\n return v;\n }", "@Test\n public void getAngleVector2d(){\n Vector2d newVec = new Vector2d(0,1);\n vector.add(newVec);\n\n assertTrue(newVec.getAngle() == 90);\n }", "public VOIVector(int initialsize) {\r\n super(initialsize);\r\n }", "public Vector4d() {\n\t\t// intentionally left empty\n\t}", "@Test\n void testNormalize() {\n\n Vector vCopy = new Vector(v.getHead());\n Vector vCopyNormalize = vCopy.normalize();\n assertEquals(vCopy, vCopyNormalize, \"ERROR: normalize() function creates a new vector\");\n\n\n }", "public IDoubleArray getSolutionVector();", "@Override\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\tPilaVector p = new PilaVector();\n\t\tfor(int i = 0; i < this.vector.size(); i++) {\n\t\t\tp.vector.add(this.vector.get(i));\n\t\t}\n\t\treturn p;\n\t}", "private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }" ]
[ "0.60121524", "0.59860265", "0.59511316", "0.59221876", "0.5884436", "0.5882479", "0.587164", "0.5863575", "0.58256024", "0.58218277", "0.5782296", "0.5774094", "0.5765953", "0.5748898", "0.57322246", "0.57133585", "0.5706466", "0.5699951", "0.56998146", "0.56893384", "0.56612134", "0.5659971", "0.5659721", "0.56485337", "0.5622521", "0.5611991", "0.56061023", "0.55998546", "0.55964476", "0.5589054", "0.5585388", "0.55828154", "0.5553396", "0.5544518", "0.5542172", "0.5537921", "0.551345", "0.55128413", "0.5510825", "0.5502438", "0.5489749", "0.54795444", "0.54714525", "0.54633635", "0.54593194", "0.54541993", "0.5453391", "0.54457086", "0.54451495", "0.54444724", "0.54434997", "0.5442231", "0.5430656", "0.5429695", "0.54274905", "0.54224336", "0.5405646", "0.5397898", "0.5396203", "0.53814775", "0.5380811", "0.5374223", "0.53715944", "0.5362436", "0.53527814", "0.53506845", "0.53400373", "0.53362817", "0.5335958", "0.53321856", "0.533142", "0.53259206", "0.53241396", "0.53169894", "0.53166646", "0.5313426", "0.53101456", "0.53093344", "0.52903306", "0.52851003", "0.5282332", "0.52790767", "0.52777", "0.5268847", "0.5263715", "0.5260227", "0.52556276", "0.5246981", "0.52469236", "0.5246212", "0.52461296", "0.5241193", "0.52405715", "0.5235102", "0.52329403", "0.5229601", "0.5221355", "0.52201337", "0.52185106", "0.52172273", "0.521698" ]
0.0
-1
END_METHOD Devuelve la clasificacion de los 10 mejores jugadores
public Ranking[] mostrarRanking(){ return clasificacion; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void end() {\n\t\tlog.info(\"-----end()-----\");\n\t\tTonKhoDelegate tkDelegate = TonKhoDelegate.getInstance();\n\t\tKiemKeDelegate kiemkeDel = KiemKeDelegate.getInstance();\n\t\tif (listCtKhoLeTraEx.size() > 0) {\n\t\t\tyteLog = new YteLog();\n\t\t\tlistDataLog = \"\";\n\t\t\tif (!ngayXuat.equals(\"\")) {\n\t\t\t\tSimpleDateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\t\t\ttry {\n\t\t\t\t\tDate dtNgayXuat = df.parse(ngayXuat);\n\t\t\t\t\tCalendar cal = Calendar.getInstance();\n\t\t\t\t\tcal.setTime(dtNgayXuat);\n\t\t\t\t\tphieuTra.setPhieutrakhoNgaygiocn(cal.getTime());\n\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\tlog.error(String.format(\"-----Error: %s\", e.toString()));\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\ttry {\n\t\t\t\tfor (int i=0;i<listCtKhoLeTraEx.size();i++) {\n\t\t\t\t\tCtTraKho ct = listCtKhoLeTraEx.get(i).getCtTraKho();\n\t\t\t\t\t\n\t\t\t\t\t//28-4-2011 - kiem tra tai kho nhan, neu dang kiem ke thi khong duoc tra thuoc\n\t\t\t\t\tboolean tinhtrangKiemKe = kiemkeDel.dangKiemKe(ct.getCttrakhoMalk(),phieuTra.getDmkhoaNhan().getDmkhoaMaso());\n\t\t\t\t\tif(tinhtrangKiemKe == true){\n\t\t\t\t\t\tFacesMessages.instance().add(IConstantsRes.PHIEUXUATKHO_DANGKIEMKE, ct.getCttrakhoMalk());\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\t//End kiem tra\n\t\t\t\t\t\n\t\t\t\t\tDouble tonkhoHienTai = tkDelegate.findByTonkhoKhoaMalienketHienTai(ct.getCttrakhoMalk(), phieuTra.getDmkhoaTra().getDmkhoaMaso());\n\t\t\t\t\tif (tonkhoHienTai < ct.getCttrakhoSoluong())\n\t\t\t\t\t{\n\t\t\t\t\t\t//Neu so luong ton hien tai < so luong tra tren phieu du tru cua khoa tra thi se khong cho tra tren phieu du tru do\n\t\t\t\t\t\t//Yeu cau huy phieu du tru va lam lai\n\t\t\t\t\t\tFacesMessages.instance().add(IConstantsRes.PHIEUTRAKHO_SLKHONGDUTRA);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdouble tt = Double.valueOf(\"0\");\n\t\t\t\tArrayList<CtTraKho> listCtx = new ArrayList<CtTraKho>();\n\t\t\t\tArrayList<TonKho> listTkTra = new ArrayList<TonKho>();\n\t\t\t\tArrayList<TonKho> listTkNhan = new ArrayList<TonKho>();\n\t\t\t\tTonKho tkTra;\n\t\t\t\tTonKho tkNhan;\n\t\t\t\t//CtTraKhoExt obj = new CtTraKhoExt();\n\t\t\t\tfor (int i=0;i<listCtKhoLeTraEx.size();i++) {\n\t\t\t\t\tCtTraKho ct = listCtKhoLeTraEx.get(i).getCtTraKho();\n\t\t\t\t\ttt += ct.getCttrakhoSoluong() * ct.getCttrakhoDongia();\n\t\t\t\t\tct.setCttrakhoThutu(Short.valueOf(\"\" + (i + 1)));\n\t\t\t\t\tlistCtx.add(ct);\n\t\t\t\t\ttkTra=createTonKhoTra(listCtKhoLeTraEx.get(i));\n\t\t\t\t\t//ctx.getTonKhoTra().setTonkhoMa(null);\n\t\t\t\t\tlistTkTra.add(tkTra);\n\t\t\t\t\t\n\t\t\t\t\ttkNhan=createTonKhoNhan(listCtKhoLeTraEx.get(i));\n\t\t\t\t\t//ctx.getTonKhoNhan().setTonkhoMa(null);\n\t\t\t\t\tlistTkNhan.add(tkNhan);\n\t\t\t\t\t\n\t\t\t\t\t//luu log thong tin thuoc\n\t\t\t\t\tlistDataLog += \"Ma LK:\"+ ct.getCttrakhoMalk()+\n\t\t\t\t\t\t\t\" Don gia: \"+ ct.getCttrakhoDongia()+ \" Don gia ban: \"+ ct.getCttrakhoDongiaban() + \n\t\t\t\t\t\t\t\" So luong: \"+ ct.getCttrakhoSoluong()+\n\t\t\t\t\t\t\t\" So lo: \"+ ct.getCttrakhoLo()+\n\t\t\t\t\t\t\t\" Nam SX: \" + ct.getCttrakhoNamnhap()+\n\t\t\t\t\t\t\t\" Nam HD: \" + ct.getCttrakhoNamhandung()+\"\\n\";\n\t\t\t\t}\n\t\t\t\tphieuTra.setPhieutrakhoThanhtien(tt);\n\t\t\t\tphieuTra.setPhieutrakhoNgaygiocn(new Date());\n\t\t\t\tphieuTra.setPhieutrakhoNgaygiophat(new Date());\n\t\t\t\t//phieuTra.setPhieutrakhoNgay(dtNgayXuat);\n\t\t\t\tPhieuTraKhoDelegate pxDelegate = PhieuTraKhoDelegate.getInstance();\n\t\t\t\tclearInfor();\n\t\t\t\tmaPhieu = pxDelegate.thucHienTraKho(phieuTra, listCtx, listTkNhan, listTkTra);\n\t\t\t\tif (maPhieu != \"\") {\n\t\t\t\t\tresetInfo();\n\t\t\t\t\tFacesMessages.instance().add(IConstantsRes.PHIEUXUATKHO_THANHCONG, maPhieu);\n\t\t\t\t\t//reset();\n\t\t\t\t\tisUpdate = \"0\";//@Trung fix bug 473: sau khi Ghi Nhan moi cho In phieu\n\t\t\t\t\tisFound=\"true\";\n\t\t\t\t} else {\n\t\t\t\t\tFacesMessages.instance().add(IConstantsRes.PHIEUXUATKHO_THATBAI);\n\t\t\t\t}\n\t\t\t\t\n//\t\t\t\tLuu log he thong\n\t\t yteLog.setForm(\"B4162_Kholetrahang\");\n\t\t yteLog.setUserId(identity == null ? \"NULL\" : identity.getUsername());\n\t\t yteLog.setObjectId(maPhieu);\n\t\t yteLog.setLogString(\"Ngày xuất: \"+ ngayXuat + \n\t\t \t\t\t\t\t\" Người nhập: \"+ phieuTra.getDtdmnhanvienCn(true).getDtdmnhanvienMa()+\n\t\t \t\t\t\t\t\" Người ký: \"+ phieuTra.getDtdmnhanvienBacsi(true).getDtdmnhanvienMa()+\n\t\t \t\t\t\t\t\" Kho nhận: \"+ phieuTra.getDmkhoaNhan(true).getDmkhoaMa()+\n\t\t \t\t\t\t\t\" Kho xuất: \"+ phieuTra.getDmkhoaTra(true).getDmkhoaMa()+\n\t\t \t\t\t\t\t\" Người lập: \"+ phieuTra.getDtdmnhanvienPhat(true).getDtdmnhanvienMa());\n\t\t yteLog.setDateTime(new Date());\n\t\t yteLog.setListData(listDataLog);\n\n\t\t yteLogDele.create(yteLog);\n\t\t\t\t\n\t\t\t} catch (Exception e) {\n\t\t\t\tFacesMessages.instance().add(IConstantsRes.PHIEUXUATKHO_THATBAI);\n\t\t\t\tlog.error(String.format(\"-----Error: %s\", e.toString()));\n\t\t\t}\n\t\t} else {\n\t\t\tFacesMessages.instance().add(IConstantsRes.PHIEUXUATKHO_DMT_NULL);\n\t\t}\n\t}", "private void end() {\n\t\tfor(int i = 0; i < intReactant; i++) {\n\t\t\tif(reactantMM[i] > 0) {\n\t\t\t\trMol[i].setText(finalMolReactant[i] + \"mol\");\n\t\t\t\trGrams[i].setText(numberFormat.format(reactantMM[i] * finalMolReactant[i]) + \"g\");\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < intProduct; i++) {\n\t\t\tif(productMM[i] > 0) {\n\t\t\t\tpMol[i].setText(finalMolProduct[i] + \"mol\");\n\t\t\t\tpGrams[i].setText(numberFormat.format(productMM[i] * finalMolProduct[i]) + \"g\");\n\t\t\t}\n\t\t}\n\t}", "private static void eligeJugadores() {\r\n\t\tint eleccion;\r\n\t\tdo {\r\n\t\t\tSystem.out.print(\"Elige el numero de jugadores [2,6]: \");\r\n\t\t\teleccion = Teclado.leerInt();\r\n\t\t} while (eleccion < 2 || eleccion > 6);\r\n\t\tnJugadores = eleccion;\r\n\t\tjugadores = new JugadorM[nJugadores];\r\n\t\tjugadores[0] = new JugadorM(\"Jugador\", true);\r\n\t\tfor (int i = 1; i < jugadores.length; i++)\r\n\t\t\tjugadores[i] = new JugadorM(\"Maquina\" + i, false);\r\n\t}", "protected void end() {\n \tclimber.ascend(0, 0);\n }", "private static void operacionesJugar() {\r\n\t\tjuego.actualizarJugadores(respuesta);\r\n\t\tJugadorM[] ganadores;\r\n\t\ttry {\r\n\t\t\tint before = juego.getNJugadoresActivos();\r\n\t\t\tganadores = juego.finalizarRonda();\r\n\t\t\tif (ganadores.length == 0) {\r\n\t\t\t\tescribirRonda(false);\r\n\t\t\t\tmostrarEmpateRonda();\r\n\t\t\t} else if (ganadores.length == before) {\r\n\t\t\t\tescribirRonda(false);\r\n\t\t\t\tmostrarEmpateRonda();\r\n\t\t\t} else if (ganadores.length == 1) {\r\n\t\t\t\tescribirRonda(true);\r\n\t\t\t\tFINhayGanador(ganadores[0]);\r\n\t\t\t\tjuego.nextRonda();\r\n\t\t\t} else {\r\n\t\t\t\tmostrarGanadoresRonda(ganadores);\r\n\t\t\t\tescribirRonda(true);\r\n\t\t\t\tjuego.nextRonda();\r\n\t\t\t}\r\n\t\t} catch (AllRondasCompleteException e) {\r\n\t\t\tFINtotalRondasAlcanzadas(e);\r\n\t\t}\r\n\t}", "@Override\n\t\t\tpublic void end() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void terminarJuego() {\n\t\t\n\t}", "@Override\r\n protected void end() {\r\n\r\n }", "protected void end()\n\t{\n\t}", "@Override\n\tprotected void end() {\n\n\t}", "@Override\n\tprotected void end() {\n\n\t}", "@Override\n\tprotected void end() {\n\n\t}", "void leituraEnd();", "protected void end() {\n\r\n\t}", "protected void end() {\n \n \n }", "public void abrirManoMaximo()\n {\n brazo.manoAbrirMaximo();\n }", "protected void end() {\n\t}", "protected void end() {\n\t}", "protected void end() {\n\t}", "protected void end() {\n\t}", "protected void end() {\n\t}", "protected void end() {\n\t}", "@Override\n\tpublic void visit(DisparoJugadorMaximo disparoJugadorMaximo) {\n\t\t\n\t}", "@Override\n\tprotected void end() {\n\t\t\n\t}", "@Override\n protected void end() {\n\n }", "public void jugar(){\n\t\tdo {\n\t\t\t\n\t\t\tSystem.out.printf(\"\\n-------- HANGMAN --------\\n\");\n\t\t\tdibujar();\n\t\t\tSystem.out.printf(\"\\n Errores: %d \\n\\n\", partida.getErrores());\n\t\t\tescribir();\n\t\t\tSystem.out.printf(\"Ingrese una letra: \\n\");\n\t\t\tlectura = entrada.nextLine();\n\t\t\tletra = lectura.charAt(0);\n\t\t\tpartida.accionar(letra);\n\t\t\t\n\t\t} while(!partida.parada());\n\t\t\n\t\t//Aquí se dibuja el estado final del juego.\n\t\t\n\t\tSystem.out.printf(\"\\n-------- HANGMAN --------\\n\");\n\t\tdibujar();\n\t\tSystem.out.printf(\"\\n Errores: %d \\n\\n\", partida.getErrores());\n\t\tescribir();\n\t\tSystem.out.printf(\"\\nTerminó el juego!!\\n\");\n\t\tif(partida.getErrores() == 10){\n\t\t\tSystem.out.printf(\"\\nPerdiste!!\\n\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.printf(\"\\nGanaste!!\\n\");\n\t\t}\n\t}", "@Override\n\tpublic void muestraInfo() {\n\t\tSystem.out.println(\"Adivina un número par: Es un juego en el que el jugador\" +\n\t\t\t\t\" deberá acertar un número PAR comprendido entre el 0 y el 10 mediante un número limitado de intentos(vidas)\");\n\t}", "@Override\r\n\tprotected void end() {\r\n\t}", "@Override\r\n\tprotected void end() {\n\r\n\t}", "@Override\r\n\tprotected void end() {\n\r\n\t}", "@Override\n\t\tpublic void end() {\n\t\t\t\n\t\t}", "@Override\n\tpublic void end() {\n\n\t}", "@Override\n\tpublic void end() {\n\n\t}", "public static String endMethod() {\n\t\treturn \"\\t\\t\\t</mth>\" + \"\\n\";\n\t}", "@Override\n\tprotected void end() {\n\t}", "@Override\n\tprotected void end() {\n\t}", "@Override\n\tprotected void end() {\n\t}", "@Override\n\tprotected void end() {\n\t}", "@Override\n\tprotected void end() {\n\t\t//System.out.println(this.getClass().getSimpleName() + \" end\");\n\t}", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\r\n }", "protected void end() {\r\n }", "protected void end() {\r\n }", "protected void end() {\r\n }", "protected void end() {\n \t// theres nothing to end\n }", "protected void end() {\r\n lang.nextStep();\r\n int total = seen + failed;\r\n\r\n hideAll();\r\n SourceCode end = lang.newSourceCode(new Offset(0, 50, pMap.get(\"hRect\"),\r\n \"SW\"), \"end\", null, sourceCodeProperties);\r\n end.addCodeLine(\r\n \"Das h\\u00F6chste Ergebnis, dass der Spieler bei einem optimal spielenden Gegner erzielen kann, ist \"\r\n + result + \".\", \"end\", 0, null);\r\n if (seen == 1) {\r\n end.addCodeLine(\"Von den insgesamt \" + nodesTotal + \" Knoten wurde \"\r\n + seen + \" nur Knoten untersucht.\", \"end\", 0, null);\r\n } else {\r\n end.addCodeLine(\"Von den insgesamt \" + nodesTotal + \" Knoten wurden \"\r\n + seen + \" verschiedene Knoten untersucht.\", \"end\", 0, null);\r\n }\r\n if (pruned == 1) {\r\n end.addCodeLine(\"Es wurde \" + pruned + \" Knoten gepruned.\", \"end\", 0,\r\n null);\r\n } else {\r\n end.addCodeLine(\"Es wurde \" + pruned + \" Knoten gepruned.\", \"end\", 0,\r\n null);\r\n }\r\n if (failed == 1) {\r\n end.addCodeLine(\"Allerdings musste auch \" + failed\r\n + \" Knoten erneut untersucht werden, weil es zum Fail High kam.\",\r\n \"end\", 0, null);\r\n } else {\r\n end.addCodeLine(\"Allerdings mussten auch \" + failed\r\n + \" Knoten erneut untersucht werden, weil es zum Fail High kam.\",\r\n \"end\", 0, null);\r\n }\r\n end.addCodeLine(\"Damit wurde der Algorithmus insgesamt \" + total\r\n + \" Mal aufgerufen.\", \"end\", 0, null);\r\n end.addCodeLine(\r\n \"Im Vergleich dazu h\\u00E4tte der Minimax-Algorithmus alle \"\r\n + nodesTotal + \" Knoten einmal untersucht.\", \"end\", 0, null);\r\n end.addCodeLine(\"\", \"end\", 0, null);\r\n end.addCodeLine(\r\n \"Da der Algorithmus annimmt, dass jeweils der erste Kindknoten der beste ist \",\r\n \"end\", 0, null);\r\n end.addCodeLine(\r\n \"und danach mit einem Nullwindow arbeitet, ist die Reihenfolge der Knoten sehr wichtig, \",\r\n \"end\", 0, null);\r\n end.addCodeLine(\r\n \"damit m\\u00F6glichst viele Knoten gepruned werden und m\\u00F6glichst wenige erneut untersucht werden m\\u00FCssen.\",\r\n \"end\", 0, null);\r\n end.addCodeLine(\r\n \"Es kann sich sogar zeitlich lohnen, die Knoten vorzusortieren.\",\r\n \"end\", 0, null);\r\n end.addCodeLine(\r\n \"Bei unsortierten Knoten ist der Negascout-Algorithmus langsamer als das Alpha-Beta-Pruning,\",\r\n \"end\", 0, null);\r\n end.addCodeLine(\r\n \"bei dem zwar weniger Knoten nicht untersucht werden, daf\\u00FCr aber auch keine erneut untersucht werden m\\u00FCssen.\",\r\n \"end\", 0, null);\r\n end.addCodeLine(\r\n \"Die Komplexit\\u00E4t von Negascout betr\\u00E4gt O(b^d) in der Landau-Notation,\",\r\n \"end\", 0, null);\r\n end.addCodeLine(\r\n \"wobei b f\\u00FCr den Verzweigungsfaktor (branching factor) und d f\\u00FCr die Baumtiefe (depth) steht\",\r\n \"end\", 0, null);\r\n lang.nextStep(\"Conclusion\");\r\n }", "@Override\n\tpublic void end() {\n\t\t\n\t}", "@Override\n protected void end() {\n }", "private void finish() {\n }", "private static void menuManejoJugadores() {\n\t\tint opcion;\n\t\tdo{\n\t\t\topcion=menuManejoJugadores.gestionar();\n\t\t\tgestionarMenuManejoJugador(opcion);\n\t\t}while(opcion!=menuManejoJugadores.getSALIR());\n\t}", "public void resSincEnd(int codSinc,ObjetoRecibir rta) throws Exception;", "public void Exterior() {\n\t\t\r\n\t}", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n\tpublic void onEndGererCommande()\n\t{\n\t\t\n\t}", "protected void end() {\r\n\t\t \tP.println(Tt.getClassName(this) + \" ending\");\r\n\t\t }", "@Override\n public void end() {\n }", "@Override\n protected void end() {\n \n }", "void endcredits() {\n }", "public void finish() { \n\t\t\n\t}", "@Override\n\tpublic void finish() {\n\n\t}" ]
[ "0.6303767", "0.6088076", "0.6048375", "0.5997116", "0.59545887", "0.5906791", "0.58666843", "0.5839423", "0.58208764", "0.5818749", "0.5818749", "0.5818749", "0.58034986", "0.5799478", "0.5794213", "0.57812834", "0.5780972", "0.5780972", "0.5780972", "0.5780972", "0.5780972", "0.5780972", "0.5777333", "0.57761973", "0.5746682", "0.57333815", "0.572891", "0.572725", "0.5722659", "0.5722659", "0.571222", "0.57122177", "0.57122177", "0.5710247", "0.5709408", "0.5709408", "0.5709408", "0.5709408", "0.56962293", "0.56780547", "0.56780547", "0.56780547", "0.56780547", "0.56780547", "0.56780547", "0.56780547", "0.56780547", "0.56780547", "0.56780547", "0.56780547", "0.56780547", "0.56780547", "0.56780547", "0.56780547", "0.56780547", "0.56780547", "0.56780547", "0.56780547", "0.56780547", "0.56780547", "0.56780547", "0.56780547", "0.56780547", "0.56780547", "0.56780547", "0.56780547", "0.56780547", "0.56780547", "0.56780547", "0.56780547", "0.56728685", "0.56728685", "0.56728685", "0.56728685", "0.5669953", "0.5664059", "0.56584543", "0.5656367", "0.5646676", "0.56274235", "0.56164914", "0.56124735", "0.56089973", "0.56089973", "0.56089973", "0.56089973", "0.56089973", "0.56089973", "0.56089973", "0.56089973", "0.56089973", "0.56089973", "0.56089973", "0.56089973", "0.5596739", "0.55589706", "0.5555282", "0.5549029", "0.5534927", "0.55238783", "0.5490915" ]
0.0
-1
END_METHOD Guarda la clasificacion actualizada
public void guardarRanking() throws FileNotFoundException, IOException{ gest.guardarRanking(clasificacion); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@AfterMethod\n\tpublic void end()\n\t{\n\n\t}", "protected void end() {\n\r\n\t}", "protected void end()\n\t{\n\t}", "protected void end() {\n\t}", "protected void end() {\n\t}", "protected void end() {\n\t}", "protected void end() {\n\t}", "protected void end() {\n\t}", "protected void end() {\n\t}", "protected void end() {\n \n \n }", "protected void end() {\r\n }", "protected void end() {\r\n }", "protected void end() {\r\n }", "protected void end() {\r\n }", "@Override\r\n protected void end() {\r\n\r\n }", "@Override\r\n\tprotected void end() {\n\r\n\t}", "@Override\r\n\tprotected void end() {\n\r\n\t}", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "@Override\n protected void end() {\n\n }", "@Override\n\tprotected void end() {\n\n\t}", "@Override\n\tprotected void end() {\n\n\t}", "@Override\n\tprotected void end() {\n\n\t}", "@Override\r\n\tprotected void end() {\r\n\t}", "protected void finish() {\n }", "public void visitEnd()\n {\n visitMethodHandleFields(_methods.size(), (ClassWriter) cv);\n final int access = Opcodes.ACC_PROTECTED | Opcodes.ACC_FINAL;\n visitField(access, FIELD_SIGNATURE, referenceName(STRING), null, null).visitEnd();\n visitField(access, FIELD_HASHCODE, TYPE_INT, null, null).visitEnd();\n visitStaticInitializer(_methods, INTERNAL_CLASS_NAME, CLASS_NAME, (ClassWriter) cv);\n }", "@Override\n\t\t\tpublic void end() {\n\t\t\t\t\n\t\t\t}", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "private void finish() {\n }", "@Override\n\tprotected void end() {\n\t\t\n\t}", "@Override\n protected void end() {\n }", "@Override\n\tprotected void end() {\n\t}", "@Override\n\tprotected void end() {\n\t}", "@Override\n\tprotected void end() {\n\t}", "@Override\n\tprotected void end() {\n\t}", "protected void end() {\r\n\t\t \tP.println(Tt.getClassName(this) + \" ending\");\r\n\t\t }", "@Override\n protected void end() {\n \n }", "@AfterClass // codigo que se ejecuta una unica vez al final de la clase\r\n\tpublic static void afterClass() {\n\t\tSystem.out.println(\"AfterClass()\");\r\n\t\tcalc.clear();\r\n\t}", "@Override\n\t\tpublic void end() {\n\t\t\t\n\t\t}", "@Override\n\tpublic void end() {\n\n\t}", "@Override\n\tpublic void end() {\n\n\t}", "public void finish() { \n\t\t\n\t}", "protected void end() {\n \t// theres nothing to end\n }", "public void finish() {\n\n\t}", "@Override\n\t\tpublic void onFinish() {\n\t\t\tfinalizar();\n\t\t}", "@InnerAccess void visitEnd ()\n\t{\n\t\tclassWriter.visitEnd();\n\t}", "@Override\r\n\t\t\tpublic void autEndProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autEndProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autEndProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autEndProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autEndProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tprotected void end() {\n\t\t//System.out.println(this.getClass().getSimpleName() + \" end\");\n\t}", "@Override\n\tpublic void finish() {\n\n\t}", "@Override\n\tpublic void finish() {\n\n\t}", "@Override\n\tpublic void finish() {\n\n\t}", "void leituraEnd();", "@Override\n public void end() {\n }", "public void actualizar() {\n\n\t}", "@Override\n\tpublic void end() {\n\t\t\n\t}", "protected void finishExecution() {\r\n\r\n\t}", "@Override\r\n\t\t\t\tpublic void autEndProcess() {\n\t\t\t\t\t\r\n\t\t\t\t}" ]
[ "0.7157829", "0.70224136", "0.6982857", "0.69309026", "0.69309026", "0.69309026", "0.69309026", "0.69309026", "0.69309026", "0.69239223", "0.6802931", "0.6802931", "0.6802931", "0.6802931", "0.6782752", "0.67825925", "0.67825925", "0.67765933", "0.67765933", "0.67765933", "0.67765933", "0.67765933", "0.67765933", "0.67765933", "0.67765933", "0.67765933", "0.67765933", "0.67765933", "0.67765933", "0.67765933", "0.67765933", "0.67765933", "0.67765933", "0.67765933", "0.67765933", "0.67765933", "0.67765933", "0.67765933", "0.67765933", "0.67765933", "0.67765933", "0.67765933", "0.67765933", "0.67765933", "0.67765933", "0.67765933", "0.67765933", "0.67765933", "0.67523396", "0.6691879", "0.6691879", "0.6691879", "0.6670258", "0.6647891", "0.6636982", "0.662624", "0.66176605", "0.66176605", "0.66176605", "0.66176605", "0.66176605", "0.66176605", "0.66176605", "0.66176605", "0.66176605", "0.66176605", "0.66176605", "0.66176605", "0.6611142", "0.6605382", "0.6604091", "0.65901726", "0.65901726", "0.65901726", "0.65901726", "0.6577745", "0.6570259", "0.6558941", "0.65567666", "0.65440065", "0.65440065", "0.6541374", "0.65390056", "0.6511049", "0.65031254", "0.6499496", "0.649849", "0.649849", "0.649849", "0.649849", "0.649849", "0.6486591", "0.6482459", "0.6482459", "0.6482459", "0.6474438", "0.6473916", "0.64730597", "0.64663154", "0.6455092", "0.64508694" ]
0.0
-1
END_METHOD Carga el ultimo ranking guardado y actualiza el atributo clasificacion
public void cargarRanking() throws ClassNotFoundException, FileNotFoundException, IOException, RankingNotFoundException { try{ clasificacion=gest.cargarRanking(); }//END_TRY catch (RankingNotFoundException e){ }//END_CATCH }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void iniciarRanking() {\n\t\tif(!usouIa) {\r\n\t\t\tswitch (this.dificuldade) {\r\n\t\t\tcase FACIL:\r\n\t\t\t\trank = new RankingFacil();\r\n\t\t\t\tbreak;\r\n\t\t\tcase MEDIO:\r\n\t\t\t\trank = new RankingMedio();\r\n\t\t\t\tbreak;\r\n\t\t\tcase DIFICIL:\r\n\t\t\t\trank = new RankingDificil();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\trank.iniciarRanking(new Jogador(this.nomeJogador, timer.getTempo(), timer.getTempoTotal()));//MANDA O NOME DO JOGADOR, O TEMPO FORMATADO E O TEMPO TOTAL PRO RANKING\r\n\t\t}\r\n\t}", "public void guardarRanking() throws FileNotFoundException, IOException{\n gest.guardarRanking(clasificacion);\n }", "public void ordenarRanking(){\n for(int i = 0; i < clasificacion.length; i++) {\n boolean flag = false;\n for(int j = 0; j < clasificacion.length-1; j++) {\n\n /*Si el elemento de la posicion j+1 es mayor que el anterior se intercambian\n los valores de esas posiciones*/\n if((clasificacion[j].getMediana())<(clasificacion[j+1].getMediana())) {\n Ranking k = new Ranking();\n k=clasificacion[j];\n clasificacion[j] = clasificacion[i];\n clasificacion[i] = k;\n flag=true; //Se pone a true para indicar que se ha hecho un cambio\n }//END_IF\n }//END_FOR\n\n if(!flag) break; //Si flag es igual a falso quiere decir que en la ultima iteracion\n //no hubo ningun intercambio y por lo tanto el metodo puede terminar\n //ya que el vector esta ordenado\n }//END_FOR\n\n }", "public void actualizarRanking(String login, int mediana){\n \n int temp=0;\n for(int i=0;i<10;i++){\n if((clasificacion[i].getLogin()).equals(login)){ //si el jugador ya esta en los 10 mejores jugadores actualizo su punctuacion\n temp=(clasificacion[i].getMediana()) + mediana;\n clasificacion[i].setMediana(temp);\n ordenarRanking(); //ordeno el ranking con la puntuacion del jugador actualizada\n return;\n }//END_IF\n }//END_FOR\n\n \n for(int j=0;j<10;j++){\n \n if((clasificacion[j].getMediana()) < mediana){//si existe en el ranking una puntuacion menor de la que se passa a la funcion por parametro\n System.arraycopy(clasificacion, j, clasificacion, j+1, clasificacion.length-j-1);//reordena las puntuaciones menores que mediana\n Ranking aux=new Ranking();\n aux.setLogin(login);\n aux.setMediana(mediana);\n clasificacion[j]=aux;\n return;\n }//END_IF\n }//END_FOR\n }", "public void rank(){\n\n\t}", "public abstract void modRanking(ParamRanking pr);", "private static void determineFinalRanks(Fold fold, ParametersManager params) {\n for (int currRank = fold.getNumInst(); currRank >= 1; currRank--) {\n Instance instSmallestWeight = fold.getInstSmallestWeight(); // selects the next less important instance\n\n instSmallestWeight.setRank(currRank); // ranks the instance by its order of elimination\n instSmallestWeight.setWeight(Double.POSITIVE_INFINITY); // the instance will be disregarded from now\n\n // removes the traces of the ranked instance out of the other instances\n fold.clearInstTraces(instSmallestWeight);\n\n /* For instances with rank value smaller than the number of neighbors, the relative position in the ranking\n is irrelevant (and, by construction, impossible to determine). Therefore, only the first steps of the\n ranking are performed for these instances. */\n if (currRank <= params.getNumNeighbors()) continue;\n\n // updates the distances matrix, setting the distance to or from the ranked instance to infinite\n fold.updateDistMatrix(instSmallestWeight.getId());\n\n // updates the weights of instances that had the eliminated instance among its nearest neighbors\n InstanceWeighting.updateAssociatesWeights(fold, instSmallestWeight, params);\n }\n }", "int getRanking();", "@Override\n\tpublic VisualizarR listarRanking() throws RemoteException {\n\t\treturn null;\n\t}", "public Ranking[] vaciarRanking()\n {\n for(int i=0;i<10;i++){\n clasificacion[i].setLogin(\" \");\n clasificacion[i].setMediana(0);\n }//END_FOR\n return clasificacion;\n }", "@Override\n\tpublic String StatistiqueNbrRisuqe(){\n float m= accountRepository.NbrStatus(\"a risque\");\n float s=accountRepository.NbrStatus(\"Stable\");\n float res =( m / s)*100;\n return res+\"%\";\n\n\t}", "private void setRank(int rank) {\r\n\r\n this.rank = rank;\r\n }", "public void setRanking (LSPRanking ranking) {\r\n this.ranking = ranking;\r\n }", "long getToRank();", "public void nourrir() {\n if (!autoriseOperation()) {\n return;\n }\n\n incrFaim(-2);\n incrPoids(1);\n incrHumeur(1);\n incrXp(1);\n\n System.out.println(tamagoStats.getXp());\n setChanged();\n notifyObservers();\n\n }", "public int getRank ()\n {\n return this.ranks; \n }", "public int rank() { return this.rank; }", "public ControladorRanking(){\n clasificacion = new Ranking[10];\n for(int i=0;i<10;i++){\n clasificacion[i]=new Ranking();\n clasificacion[i].setLogin(\" \");\n clasificacion[i].setMediana(0);\n }//END_FOR\n }", "long getRank();", "public int getRank(){\r\n return this.rank;\r\n }", "public int getRank(){\n return rank;\n }", "public Ranking[] mostrarRanking(){\n return clasificacion;\n }", "public void setRank(Integer rank){\r\n\t\tthis.rank = rank;\r\n\t}", "public void determineRank(){\r\n //ranks highcard 0, pair 1, twopair 2, three of a kind 3, straight 4, flush 5,\r\n //full house 6, four of a kind 7 , straight flush 8, royal flush 9\r\n //I should start top down.\r\n\r\n //Royal Flush\r\n if(isRoyalFlush())\r\n setRank(9);\r\n //Straight flush\r\n else if(isFlush() && isStraight())\r\n setRank(8);\r\n //four of a kind\r\n else if(isFourOfAKind())\r\n setRank(7);\r\n //full house\r\n else if( isFullHouse())\r\n setRank(6);\r\n //flush\r\n else if(isFlush())\r\n setRank(5);\r\n //straight\r\n else if(isStraight())\r\n setRank(4);\r\n //three of a kind\r\n else if(isThreeOfAKind())\r\n setRank(3);\r\n //twoPair\r\n else if(isTwoPair())\r\n setRank(2);\r\n //pair\r\n else if(isPair())\r\n setRank(1);\r\n //highcard\r\n else\r\n setRank(0);\r\n\r\n }", "private int rankMethod()\r\n {\r\n\treturn spinTheWheel();\r\n }", "public void venceuRodada () {\n this.pontuacaoPartida++;\n }", "public int getRank(){\n return this.rank;\n }", "public void setRank(int value);", "void setDefaultRank(KingdomUser user);", "public void refreshRank() {\n rank = getRank();\n lblUserTitle.setText(username + \" - \" + rank);\n }", "public void createRanking() {\n Question q = new Ranking(this.in,this.o);\n this.o.setDisplay(\"Enter the prompt for your Ranking question:\\n\");\n this.o.getDisplay();\n\n q.setPrompt(this.in.getUserInput());\n\n int numAns = 0;\n while (numAns == 0) {\n this.o.setDisplay(\"How many items need to be ranked?\\n\");\n this.o.getDisplay();\n\n try {\n numAns = Integer.parseInt(this.in.getUserInput());\n if (numAns < 1) {\n numAns = 0;\n } else {\n q.setMaxResponses(numAns);\n }\n } catch (NumberFormatException e) {\n numAns = 0;\n }\n }\n\n if (isTest) {\n RCA ca = new RCA(this.in,this.o);\n Test t = (Test)this.survey;\n String ans;\n\n this.o.setDisplay(\"Enter correct answer(s):\\n\");\n this.o.getDisplay();\n for (int j=0; j < q.getMaxResponses(); j++){\n\n ans = this.in.getUserInput();\n\n ca.addResponse(ans);\n }\n t.addAnswer(ca);\n }\n this.survey.addQuestion(q);\n }", "@Override\n public void cantidad_Defensa(){\n defensa=2+nivel+aumentoD;\n }", "public LSPRanking getRanking () {\r\n return ranking;\r\n }", "public void setRank(Integer rank) {\n this.rank = rank;\n }", "ParqueaderoEntidad actualizar(ParqueaderoEntidad parqueadero);", "public void generarNumeroFacura(){\n try{\n FacturaDao facturaDao = new FacturaDaoImp();\n //Comprobamos si hay registros en la tabla Factura de la BD\n this.numeroFactura = facturaDao.numeroRegistrosFactura();\n \n //Si no hay registros hacemos el numero de factura igual a 1\n if(numeroFactura <= 0 || numeroFactura == null){\n numeroFactura = Long.valueOf(\"1\");\n this.factura.setNumeroFactura(this.numeroFactura.intValue());\n this.factura.setTotalVenta(new BigDecimal(0));\n }else{\n //Recuperamos el ultimo registro que existe en la tabla Factura\n Factura factura = facturaDao.getMaxNumeroFactura();\n //Le pasamos a la variable local el numero de factura incrementado en 1\n this.numeroFactura = Long.valueOf(factura.getNumeroFactura() + 1);\n this.factura.setNumeroFactura(this.numeroFactura.intValue());\n this.factura.setTotalVenta(new BigDecimal(0));\n }\n \n \n }catch(Exception e){\n e.printStackTrace();\n }\n \n }", "public Nodo_Bodega ultimaAgregada(){\n return Nodo_bodega_final;\n }", "public int precioFinal(){\r\n int monto=super.PrecioFinal();\r\n\t \t \r\n\t if (pulgadas>40){\r\n\t monto+=precioBase*0.3;\r\n\t }\r\n\t if (sintonizador){\r\n\t monto+=50;\r\n\t }\r\n\t \r\n\t return monto;\r\n\t }", "private void priorizar() {\r\n if (ini == fin) {\r\n return;\r\n }\r\n\r\n int t1 = fin, t2 = fin - 1;\r\n TDAPrioridad aux = new TDAPrioridad(0, '0');\r\n while (t1 != ini) {\r\n if (datos[t1].getPrioridad() > datos[t2].getPrioridad()) {\r\n aux.setObjeto(datos[t1]);\r\n datos[t1].setObjeto(datos[t2]);\r\n datos[t2].setObjeto(aux);\r\n t2--;\r\n t1--;\r\n } else {\r\n break;\r\n }\r\n }\r\n }", "public Rank getRank()\n {\n return rank;\n }", "public void ultimo(){//executa metodo para ultima pagina de registro de funcionarios\r\n\t\tdao.ultimo();\r\n\t}", "public void rank() throws Exception{\n\t\tfor (int i = 0; i < test.numInstances(); i++) {\n\t\t\tInstance instance = test.instance(i);\n\t\t\t// obtained classification\n\t\t\tDouble clsLabel = classifier.classifyInstance(instance);\n\t\t\t// answer_id\n\t\t\tString answer_id = instance.toString(1);\n\t\t\t// ques_id\n\t\t\tString ques_id = instance.toString(2);\n\t\t\t// storing classification in BETable if it is contained in the \n\t\t\t// Interface to the database (otherwise there will be no entry in\n\t\t\t// the bETable)\n\t\t\tdatasetInterface.questions.beforeFirst();\n\t\t\twhile(datasetInterface.questions.next()){\n\t\t\t\tString id = datasetInterface.questions.getString(\"ques_id\");\n\t\t\t\t// if corresponding question had been found\n\t\t\t\tif(id.equalsIgnoreCase(ques_id)){\n\t\t\t\t\t// update corresponding bETable entry\n\t\t\t\t\tbETable.table.get(ques_id + \".\" + answer_id).docQuality = \n\t\t\t\t\t\tclsLabel;\n\t\t\t\t\t// no need to look at the other questions\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n\tpublic boolean update(RankDefBean t) {\n\t\treturn false;\r\n\t}", "public void setRankingMethod(String league, String winP, String drawP, String loseP) {\n // TODO: get league\n // League league = get from DB by leagueName\n // league.getRankingMethod().setRankingMethod(Integer.parseInt(winP), Integer.parseInt(loseP), Integer.parseInt(drawP));\n logger.info(\"New Ranking Method was added to \" + league);\n }", "public void soin() {\n if (!autoriseOperation()) {\n return;\n }\n if (tamagoStats.getXp() >= 2) {\n incrFatigue(-3);\n incrHumeur(3);\n incrFaim(-3);\n incrSale(-3);\n incrXp(-2);\n\n if (tamagoStats.getPoids() == 0) {\n incrPoids(3);\n } else if (tamagoStats.getPoids() == TamagoStats.POIDS_MAX) {\n incrPoids(-3);\n }\n\n setEtatPiece(Etat.NONE);\n tamagoStats.setEtatSante(Etat.NONE);\n\n setChanged();\n notifyObservers();\n }\n }", "public void setRank(int rank) {\n this.rank = rank;\n }", "public Ranking getRanking() {\n return ranking;\n }", "void setRank(KingdomUser user, KingdomRank rank);", "public void setRank(int aRank)\n {\n this.ranks = aRank;\n }", "public int getRank()\n {\n return rank;\n }", "public int getRank(){\n return Value;\n }", "public int[] get_ranking() {\n\t\treturn null;\r\n\t}", "public void setRank(int num)\r\n {\r\n //Check if the new rank is less than 0 before setting the new rank \r\n if(num < 0)\r\n {\r\n //Outouts a warning message\r\n System.out.println(\"WARNING:You cannot assign a negative time\");\r\n }\r\n else \r\n {\r\n this.rank = num;\r\n }//end if\r\n }", "public HashMap<User, Integer> userMonthRanking(User user, LinkedList<User> friends, int method){\n LinkedList<User> allUsers = new LinkedList<>();\n HashMap<User, Integer> result = new HashMap<>();\n\n allUsers.add(user);\n allUsers.addAll(friends);\n\n int rank = 0;\n long lastTime = -1;\n int lastSteps = -1;\n double lastDistance = -1;\n int lastAchievementCount = -1;\n\n switch (method){\n case METHODS.TIME:\n //sort the data\n Collections.sort(allUsers, new SortMonthTime());\n\n // for all users check the value and attach the rank, if changed value increment rank\n for (User next : allUsers) {\n if (next.getMyTimeline().getActiveTimeForMonth() != lastTime) {\n rank++;\n lastTime = next.getMyTimeline().getActiveTimeForMonth();\n }\n result.put(next, rank);\n }\n\n break;\n\n case METHODS.DISTANCE:\n //sort the data\n Collections.sort(allUsers, new SortMonthDistance());\n\n // for all users check the value and attach the rank, if changed value increment rank\n for (User next : allUsers) {\n if (next.getMyTimeline().getActiveDistanceForMonth() != lastDistance) {\n rank++;\n lastDistance = next.getMyTimeline().getActiveDistanceForMonth();\n }\n result.put(next, rank);\n }\n\n break;\n\n case METHODS.STEPS:\n //sort the data\n Collections.sort(allUsers, new SortMonthSteps());\n\n // for all users check the value and attach the rank, if changed value increment rank\n for (User next : allUsers) {\n if (next.getMyTimeline().getStepsForMonth() != lastSteps) {\n rank++;\n lastSteps = next.getMyTimeline().getStepsForMonth();\n }\n result.put(next, rank);\n }\n\n break;\n\n case METHODS.ACHIEVEMENTS:\n //sort the data\n Collections.sort(allUsers, new SortMonthAchievements());\n\n // for all users check the value and attach the rank, if changed value increment rank\n for (User next : allUsers) {\n if (next.getMyTimeline().getAchievementsForMonth() != lastAchievementCount) {\n rank++;\n lastAchievementCount = next.getMyTimeline().getAchievementsForMonth();\n }\n result.put(next, rank);\n }\n\n break;\n }\n\n return result;\n }", "public void setRank(String value)\n {\n _rank = value;\n }", "public void actualizarValor() {\n\t\tif (valor!=null && valor < getCantElementos()-1){\n\t\t\tvalor++;\n\t\t}\n\t\telse {\n\t\t\tvalor = 0;\n\t\t}\t\t\n\t}", "@Override\n\tpublic long actualizar(Account entidad) {\n\t\treturn 0;\n\t}", "public void updateHighestRank(int newHighestRank) {\n try {\n byte[] highestRank = new byte[5];\n\n // Updating the number of records (adding whitespace to end, so thee entire byte array is filled)\n String newHighestRankString = HelperFunctions.addWhitespacesToEnd(Integer.toString(newHighestRank), 5);\n\n byte [] newHighestRankBytes = newHighestRankString.getBytes();\n\n for (int i = 0; i < newHighestRankBytes.length; i++) {\n // Truncating if the characters for newHighestRankString exceed the allocated bytes for HIGHEST-RANK\n if (i == 5) {\n break;\n }\n highestRank[i] = newHighestRankBytes[i];\n }\n\n // Writing the updated number of records back to the config file\n RandomAccessFile raf = new RandomAccessFile(this.databaseName + \".config\", \"rws\");\n\n raf.getChannel().position(104);\n raf.write(highestRank);\n raf.close();\n \n } catch (IOException ex) {\n ex.printStackTrace();\n } \n }", "public int getRank()\n {\n return rank;\n }", "private void remplirPrestaraireData() {\n\t}", "public int Rank();", "@Override\n public int getRank() {\n return rank;\n }", "public void setRank(int r) {\r\n\t\trank = r;\r\n\t}", "private void inizia() throws Exception {\n /* variabili e costanti locali di lavoro */\n Dati dati;\n\n try { // prova ad eseguire il codice\n\n this.setMessaggio(\"Analisi in corso\");\n this.setBreakAbilitato(true);\n\n /* recupera e registra i dati delle RMP da elaborare */\n dati = getDatiRMP();\n this.setDati(dati);\n\n /* regola il fondo scala dell'operazione */\n this.setMax(dati.getRowCount());\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "public void inativarMovimentacoes() {\n\n\t\ttry {\n\n\t\t\tif (((auxMovimentacao.getDataMovimentacao())\n\t\t\t\t\t.before(permitirCadastrarMovimentacao(movimentacao.getAlunoTurma()).getDataMovimentacao()))\n\t\t\t\t\t|| (auxMovimentacao.getDataMovimentacao()).equals(\n\t\t\t\t\t\t\tpermitirCadastrarMovimentacao(movimentacao.getAlunoTurma()).getDataMovimentacao())\n\t\t\t\t\t) {\n\t\t\t\tExibirMensagem.exibirMensagem(Mensagem.MOVIMENTACOES_ANTERIORES);\n\t\t\t} else {\n\n\t\t\t\tDate dataFinal = auxMovimentacao.getDataMovimentacao();\n\t\t\t\tCalendar calendarData = Calendar.getInstance();\n\t\t\t\tcalendarData.setTime(dataFinal);\n\t\t\t\tcalendarData.add(Calendar.DATE, -1);\n\t\t\t\tDate dataInicial = calendarData.getTime();\n\n\t\t\t\tMovimentacao mov = new Movimentacao();\n\t\t\t\tmov = (Movimentacao) movimentacaoAlunoDAO.listarTodos(Movimentacao.class,\n\t\t\t\t\t\t\" a.dataMovimentacao = (select max(b.dataMovimentacao) \"\n\t\t\t\t\t\t\t\t+ \" from Movimentacao b where b.alunoTurma = a.alunoTurma) \"\n\t\t\t\t\t\t\t\t+ \" and a.status is true and a.alunoTurma.status = true and dataMovimentacaoFim = null and a.alunoTurma = \"\n\t\t\t\t\t\t\t\t+ movimentacao.getAlunoTurma().getId())\n\t\t\t\t\t\t.get(0);\n\n\t\t\t\tmov.setControle(false);\n\t\t\t\tmov.setDataMovimentacaoFim(dataInicial);\n\t\t\t\tmovimentacaoService.inserirAlterar(mov);\n\n\t\t\t\tAlunoTurma aluno = new AlunoTurma();\n\t\t\t\taluno = daoAlunoTurma.buscarPorId(AlunoTurma.class, movimentacao.getAlunoTurma().getId());\n\t\t\t\taluno.setControle(0);\n\t\t\t\t\n\n\t\t\t\tauxMovimentacao.setAlunoTurma(movimentacao.getAlunoTurma());\n\t\t\t\tauxMovimentacao.setStatus(true);\n\t\t\t\tauxMovimentacao.setControle(false);\n\n\t\t\t\tmovimentacaoService.inserirAlterar(auxMovimentacao);\n\t\t\t\t\n\t\t\t\tif(auxMovimentacao.getSituacao()==5){\n//\t\t\t\t\t\n//\t\t\t\t\tCurso cursoAluno = new Curso();\n//\t\t\t\t\tcursoAluno = daoCurso.buscarPorId(Curso.class, auxMovimentacao.getAlunoTurma().getTurma().getCurso().getId());\n\t\t\t\t\t\n\t\t\t\t\taluno.setSituacao(5);\n\t\t\t\t\taluno.setLiberado(false);\n\t\t\t\t\talunoTurmaService.inserirAlterar(aluno);\n\t\t\t\t\t\n\t\t\t\t\t//liberar para responder o questionário\n\t\t\t\t\tAluno alunoResponde = new Aluno(); \n\t\t\t\t\talunoResponde = daoAluno.buscarPorId(Aluno.class, aluno.getAluno().getId());\n\t\t\t\t\t \n\t\t\t\t // email.setCursos(auxMovimentacao.getAlunoTurma().getTurma().getCurso());\n\t\t\t\t\t//email.setTurma(auxMovimentacao.getAlunoTurma().getTurma());\n\t\t\t\t\temail.setEnviado(false);\n\t\t\t\t\temail.setStatus(true);\n\t\t\t\t\temail.setAlunoTurma(auxMovimentacao.getAlunoTurma());\n\t\t\t\t\t\n\t\t\t\t\t//email.setAluno(alunoResponde);\n\t\t\t\t\temailService.inserirAlterar(email);\n\t\t\t\t\t//enviar o email para responder \n\t\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\t\taluno.setSituacao(0);\n\t\t\t\t\talunoTurmaService.inserirAlterar(aluno);\n\t\t\t\t}\n\t\t\t\taluno = new AlunoTurma();\n\t\t\t\temail = new Email();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tFecharDialog.fecharDialogAlunoCursoEditar();\n\t\t\t\tFecharDialog.fecharDialogAlunoEditarCurso();\n\t\t\t\tFecharDialog.fecharDialogAlunoTrancamento();\n\t\t\t\talterar(movimentacao);\n\n\t\t\t\tExibirMensagem.exibirMensagem(Mensagem.SUCESSO);\n\t\t\t\tauxMovimentacao = new Movimentacao();\n\n\t\t\t\talunoTurmaService.update(\" AlunoTurma set permiteCadastroCertificado = 2 where id = \"\n\t\t\t\t\t\t+ movimentacao.getAlunoTurma().getId());\n\n\t\t\t\n\t\t\t\tcriarNovoObjetoAluno();\n\t\t\t\tatualizarListas();\n\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tExibirMensagem.exibirMensagem(Mensagem.ERRO);\n\t\t}\n\n\t}", "public short getRank(){\n\t\treturn srtRank;\r\n\t\t\r\n\t}", "void desconto_final(){\n setDesconto_final(this.inss + this.irpf);\n System.out.println(\"desconto_total = R$ \" + arredondar(this.desconto_final));\n }", "public int getRanking() {\n return ranking_;\n }", "public void AddNroCitasRealizadas() {\n\t\tthis.NroCitasRealizadas = this.NroCitasRealizadas+1;\n\t}", "private void updateRanking(boolean byTime, char[] allTyreTypes)\n {\n if(byTime) // if required to sort by time\n {\n getDrivers().adjustDriversListByTime(allTyreTypes);\n }\n else // if required to sort by championship score\n {\n getDrivers().sortByScore();\n }\n for(int i = 0 ; i < getDrivers().getSize() ; i++)\n {\n getDrivers().getDriver(i).setRanking(i + 1); // update ranking\n }\n }", "public int getRank();", "public int getRank();", "public void tableFinished(int position, Integer[] ranking) {\r\n }", "public int getRank() {\r\n return rank;\r\n }", "public void load_ranking() throws IOException {\n\t\tListOfRows all_users = users_rep.getAllUsersByAverage();\n\t\tString[] names = {\"position\", \"nickname\",\"num_games\", \"average\"};\n\t\tString ranking = \"[\";\n\t\t// dopo aver preso il riferimento a tutti gli utenti che hanno giocato almeno una partita,\n\t\t// per ogni utente prelevo nickname, numero di partite e punteggio medio\n\t\tfor (int i = 0; i < all_users.size(); i++){\n\t\t\tString nickname = (String) all_users.get(i).get(\"nickname\");\n\t\t\tint num_games = (Integer) all_users.get(i).get(\"num_games\");\n\t\t\tfloat average = (float) all_users.get(i).get(\"average\");\n\t\t\tString avg = String.format(\"%.2f\", average);\n\t\t\tString[] values = {String.valueOf(i+1), nickname, String.valueOf(num_games), avg};\n\t\t\tif (i == 0) {\n\t\t\t\tranking = ranking + toJson(names, values);\n\t\t\t} else {\n\t\t\t\tranking = ranking + \",\" + toJson(names, values);\n\t\t\t}\n\t\t}\n\t\tranking = ranking + \"]\";\n\t\tString json = toJson(\"users\", ranking);\n\t\tjson = json.replace(\"\\\"[\", \"[\");\n\t\tjson = json.replace(\"]\\\"\", \"]\");\n\t\twriteBody(json);\n\t}", "public String getRankString(){ return this.rank; }", "public void calculoPersonal(){\n ayudantes = getAyudantesNecesarios();\n responsables = getResponsablesNecesarios();\n \n //Calculo atencion al cliente (30% total trabajadores) y RRPP (10% total trabajadores):\n \n int total = ayudantes + responsables;\n \n atencion_al_cliente = (total * 30) / 100;\n \n RRPP = (total * 10) / 100;\n \n //Creamos los trabajadores\n \n gestor_trabajadores.crearTrabajadores(RRPP, ayudantes,responsables,atencion_al_cliente);\n \n }", "private void executeRicercaAccertamentoPerOrdinativo() {\n \tif (model.getGestioneOrdinativoStep1Model().getAnnoAccertamento() == null || model.getGestioneOrdinativoStep1Model().getNumeroAccertamento() == null) {\n\n \t\tif(!sonoInAggiornamento()){\n \t\t\t\n \t\t\tmodel.getGestioneOrdinativoStep2Model().setListaAccertamento(new ArrayList<Accertamento>());\n \t\t\tmodel.getGestioneOrdinativoStep2Model().setListaAccertamentoOriginale(new ArrayList<Accertamento>());\n \t\t\tmodel.getGestioneOrdinativoStep2Model().setResultSize(0);\n\n \t\t\tRicercaAccertamentiSubAccertamenti request= new RicercaAccertamentiSubAccertamenti();\n \t\t\trequest.setEnte(sessionHandler.getEnte());\n \t\t\trequest.setRichiedente(sessionHandler.getRichiedente());\n\n\n \t\t\tParametroRicercaAccSubAcc param= new ParametroRicercaAccSubAcc();\n \t\t\tparam.setAnnoEsercizio(Integer.parseInt(sessionHandler.getAnnoEsercizio()));\n \t\t\tparam.setAnnoAccertamento(Integer.parseInt(sessionHandler.getAnnoEsercizio()));\n \t\t\tparam.setDisponibilitaAdIncassare(true);\n\n \t\t\t// Capitolo\n \t\t\tif (model.getGestioneOrdinativoStep1Model().getCapitolo() != null) {\n \t\t\t\tparam.setNumeroCapitolo(model.getGestioneOrdinativoStep1Model().getCapitolo().getNumCapitolo());\n \t\t\t\tparam.setNumeroArticolo(model.getGestioneOrdinativoStep1Model().getCapitolo().getArticolo());\n \t\t\t\tif(null!=model.getGestioneOrdinativoStep1Model().getCapitolo().getUeb()){\n \t\t\t\t\tparam.setNumeroUEB(model.getGestioneOrdinativoStep1Model().getCapitolo().getUeb().intValue());\n \t\t\t\t}\n \t\t\t}\n\n\n \t\t\tparam.setCodiceDebitore(model.getGestioneOrdinativoStep1Model().getSoggetto().getCodCreditore());\n \t\t\tparam.setIsRicercaDaAccertamento(false);\n \t\t\trequest.setParametroRicercaAccSubAcc(param);\n\n\n \t\t\taddNumAndPageSize(request, \"listaAccertamentoOrdinativoId\");\n\n \t\t\tRicercaAccertamentiSubAccertamentiResponse response= movimentoGestionService.ricercaAccertamentiSubAccertamentiPerOrdinativoIncasso(request);\n\n \t\t\tif(response.isFallimento() || !response.getErrori().isEmpty()){\n\n \t\t\t\t//setto gli errori cosi che siano segnalati lato app!\n \t\t\t\taddErrori(response.getErrori());\n\n \t\t\t}else{\n\n \t\t\t\tif (response.getListaAccertamenti() != null && response.getListaAccertamenti().size() > 0) {\n \t\t\t\t\tfor (Accertamento currentAccetamento : response.getListaAccertamenti()) {\n \t\t\t\t\t\taddAccertamentiESubAccertamentiInUnicaLista(currentAccetamento);\n \t\t\t\t\t}\n\n \t\t\t\t\tmodel.getGestioneOrdinativoStep2Model().setResultSize(response.getNumRisultati());\n \t\t\t\t\t\n \t\t\t\t\tif(model.getGestioneOrdinativoStep2Model().getListaAccertamento()==null || model.getGestioneOrdinativoStep2Model().getListaAccertamento().size()==0){\n \t\t\t\t\t\taddPersistentActionWarning(ErroreFin.CRU_WAR_1003.getErrore().getCodice()+\" : \"+ErroreFin.CRU_WAR_1003.getErrore(\" accertamenti o subaccertamenti\").getDescrizione());\n \t\t\t\t\t}\n \t\t\t\t} else {\n \t\t\t\t\taddPersistentActionWarning(ErroreFin.CRU_WAR_1003.getErrore().getCodice()+\" : \"+ErroreFin.CRU_WAR_1003.getErrore(\" accertamenti o subaccertamenti\").getDescrizione());\n \t\t\t\t}\n \t\t\t}\n\n \t\t}\n \t}\n }", "public void precioFinal(){\r\n if(getConsumoEnergetico() == Letra.A){\r\n precioBase = 100+precioBase;\r\n }\r\n else if((getConsumoEnergetico() == Letra.B)){\r\n precioBase = 80+precioBase;\r\n }\r\n else if(getConsumoEnergetico() == Letra.C){\r\n precioBase = 60+precioBase;\r\n }\r\n else if((getConsumoEnergetico() == Letra.D)){\r\n precioBase = 50+precioBase;\r\n }\r\n else if(getConsumoEnergetico() == Letra.E){\r\n precioBase = 30+precioBase;\r\n }\r\n else if((getConsumoEnergetico() == Letra.F)){\r\n precioBase = 10+precioBase;\r\n }\r\n else{\r\n aux=1;\r\n System.out.println(\"...No existe...\");\r\n }\r\n if (aux==0){\r\n peso();\r\n }\r\n \r\n }", "public int getRank()\r\n {\r\n return this.rank;\r\n }", "private void atualizarPalitos() {\n Jogador jogador = servidor.getJogador(nomeJogador);\n LugarModelo lugarModelo = listaLugares.get(jogador.lugar - 1);\n lugarModelo.getMao().setText(jogador.quantidadePalitosApostados + \" Palitos\");\n lugarModelo.getQuantidadePalitosRestantes().setText(\"Palitos Restante: \" + jogador.quantidadePalitosRestantes + \"\");\n }", "public Integer getRank(){\r\n\t\treturn rank;\r\n\t}", "public void sumaPuntos() {\r\n int rojo = 0;\r\n int azul = 0;\r\n for (int i = 1; i < 10; i++) {\r\n\r\n if (tablero[1][i].getTipo().equals(\"Rojo\")) {\r\n rojo += tablero[1][i].getValor();\r\n }\r\n\r\n if (tablero[8][i].getTipo().equals(\"Azul\")) {\r\n azul += tablero[8][i].getValor();\r\n }\r\n\r\n }\r\n if (rojo > azul) {\r\n this.setResultado(\"Rojo\");\r\n this.agregarVictoria(jugadorRojo);\r\n }\r\n if (azul > rojo) {\r\n this.setResultado(\"Azul\");\r\n this.agregarVictoria(jugadorAzul);\r\n }\r\n \r\n this.setReplay(true);\r\n }", "long getFromRank();", "public void setRank(int rank) {\n\t\tthis.rank = rank;\n\t}", "public void setRank(int rank) {\n\t\tthis.rank = rank;\n\t}", "public void insertNewResult(Record rank) {\n listRank.add(rank);\n Collections.sort(listRank, Collections.reverseOrder());\n jlistRank.setListData(listRank.toArray());\n }", "public Builder clearRanking() {\n bitField0_ = (bitField0_ & ~0x00000010);\n ranking_ = 10;\n onChanged();\n return this;\n }", "public int getRank() {\n return rank;\n }", "public int getRank() {\n return rank;\n }", "public int getRank() {\n return rank;\n }", "public void atualizar() {\n System.out.println(\"Metodo atualizar chamado!\");\n setR1(0);\n setR2(0);\n setR3(0);\n setN(0);\n\n //context.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_INFO, \"Atualizado!\", \"\"));\n }", "@Override\n public void cantidad_Punteria(){\n punteria=69.5+05*nivel+aumentoP;\n }", "void addScore() throws ClassNotFoundException, SQLException, ParseException{\n /* \n TODO check if the score in the valid range\n TODO get the last entry and check if not the same\n TODO ADD option to custom the date\n TODO check if score not already in the HT (retrieve the lastElement)\n */\n \n DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n if(this.updateValue){\n this.user.modifyScoreValue(this.date, \n Integer.parseInt(scoreField.getText().replaceAll(\"\\\\s+\",\"\")));\n }else{\n Date curr_date = new Date();\n this.user.addScore(dateFormat.format(curr_date).toString(), \n Integer.parseInt(scoreField.getText().replaceAll(\"\\\\s+\",\"\")));\n }\n \n \n }", "public void setRank(String rank) {\n this.rank = rank;\n }", "Rank(int points){\r\n\t\tthis.points = points;\r\n\t}", "@Override\n\tpublic void frenar() {\n\t\tvelocidadActual = 0;\n\t}", "public void updateScoreboard() {\n\t\tif(obj != null) {\t\t\t\r\n\t\t\tobj.unregister();\r\n\t\t}\r\n\t\tobj = scoreboard.registerNewObjective(\"gui\", \"dummy\");\r\n\t\tobj.setDisplaySlot(DisplaySlot.SIDEBAR);\r\n\t\tobj.setDisplayName(\"§c§lVitality\");\r\n\t\tScore currentRank = obj.getScore(\"§e§lRank\");\r\n\t\tcurrentRank.setScore(40);\r\n\t\tScore currentRankVal = obj.getScore(\"§f\" + getRank().getName());\r\n\t\tcurrentRankVal.setScore(39);\r\n\t\tScore spacer1 = obj.getScore(\" \");\r\n\t\tspacer1.setScore(38);\r\n\t\tPrisonRank next = PrisonRank.getNextRank(rank);\r\n\t\tif(next != null) {\r\n\t\t\tScore nextRank = obj.getScore(\"§b§lProgress to \" + next.getName());\r\n\t\t\tnextRank.setScore(37);\r\n\t\t\tdouble percent = (Prison.getEco().getBalance(this) / next.getValue()) * 100;\r\n\t\t\tif(percent > 100) {\r\n\t\t\t\tpercent = 100;\r\n\t\t\t}\r\n\t\t\tScore nextRankVal = obj.getScore(\"§f\" + ((int)percent + \"%\"));\r\n\t\t\tnextRankVal.setScore(36);\r\n\t\t} else {\r\n\t\t\tScore nextRank = obj.getScore(\"§b§lNext Rank\");\r\n\t\t\tnextRank.setScore(37);\r\n\t\t\tScore nextRankVal = obj.getScore(\"§fNone\");\r\n\t\t\tnextRankVal.setScore(36);\r\n\t\t}\r\n\t\tScore spacer2 = obj.getScore(\" \");\r\n\t\tspacer2.setScore(35);\r\n\t\tScore money = obj.getScore(\"§a§lBalance\");\r\n\t\tmoney.setScore(34);\r\n\t\tScore moneyVal = obj.getScore(\"§f$\" + moneyFormat.format(Prison.getEco().getBalance(this)));\r\n\t\tmoneyVal.setScore(33);\r\n\t\tScore spacer3 = obj.getScore(\" \");\r\n\t\tspacer3.setScore(32);\r\n\t\t\r\n\t\tScore mult = obj.getScore(\"§6§lMultiplier\");\r\n\t\tmult.setScore(31);\r\n\t\t\r\n\t\tif(Multiplier.getMultiplier() > 1.0) {\r\n\t\t\tScore multVal = obj.getScore(\"§f\" + Multiplier.getMultiplier() + \"x\");\r\n\t\t\tmultVal.setScore(30);\r\n\t\t} else {\r\n\t\t\tScore multVal = obj.getScore(\"§fNone\");\r\n\t\t\tmultVal.setScore(30);\r\n\t\t}\r\n\t\tScore spacer4 = obj.getScore(\" \");\r\n\t\tspacer4.setScore(29);\r\n\t\tScore onlineStaff = obj.getScore(\"§c§lOnline Staff\");\r\n\t\tonlineStaff.setScore(28);\r\n\t\tScore onlineStaffVal = obj.getScore(\"§f\" + Prison.getStaffOnline().getCurrent());\r\n\t\tonlineStaffVal.setScore(27);\r\n\t}", "public String getRank()\n {\n return _rank;\n }", "private void recolteNourriture() {\r\n\t\t\t//1pop recolte toute la case\r\n\t\t\tint tempNourr = 0;\r\n\t\t\tint totalPop = population + populationColoniale;\r\n\t\t\tint limite = (totalPop < caseOwned.size()) ? totalPop : caseOwned.size();\r\n\t\t\tfor(int id = 0; id < limite; id++) {\r\n\t\t\t\ttempNourr += caseOwned.get(id).getFood();\r\n\t\t\t}\r\n\t\t\t//animaux\r\n\t\t\ttempNourr += howManyAnimal(Animaux.Bétail) * 10; //Ca mange de l'herbe, ça se tente.\r\n\t\t\ttempNourr += howManyAnimal(Animaux.Cervidés) * 7.5; //CARIBOUUUUUUUUU !!\r\n\t\t\ttempNourr += howManyAnimal(Animaux.Crabe) * 2; //ca pique les pied, a mort!!\r\n\t\t\ttempNourr += howManyAnimal(Animaux.Elephants) * 30; //polution sonore\r\n\t\t\ttempNourr += howManyAnimal(Animaux.Moutons) * 5; //kébab landais\r\n\t\t\ttempNourr += howManyAnimal(Animaux.Poissons) * 5; //croustibat\r\n\t\t\ttempNourr += howManyAnimal(Animaux.Chevaux) * 7; //lasagnes\r\n\t\t\ttempNourr += howManyAnimal(Animaux.Baleines) * 50; //*bruit de baleine virile*\r\n\t\t\t//aplication des bonus\r\n\t\t\ttempNourr *= (1 + (0.15 * scienceLvl) + (0.05 * (bonheur - baseBonheur))); // +15% par scienceLvl +5% par bonheur excedentaire, -5% par bonheur négatif\r\n\t\t\t\r\n\t\t\tnourriture += tempNourr;\r\n\t\t\t//bonus de conservation grâce au sel\r\n\t\t\tif(howManyRessource(StrategicRessource.Sel) > 0 && nourriture > 0) nourriture *= 1.10;\r\n\t\t\t//limitation de stockage\r\n\t\t\tint stockageMax = caseOwned.size() * 100 * scienceLvl;\r\n\t\t\tif(nourriture > stockageMax) nourriture = stockageMax;\r\n\t\t}" ]
[ "0.64020324", "0.6347305", "0.6285348", "0.6159879", "0.6117985", "0.6012957", "0.5965037", "0.58190674", "0.57523847", "0.56746477", "0.55862796", "0.5549195", "0.55380183", "0.5528503", "0.5513732", "0.55058646", "0.5500656", "0.549919", "0.5491905", "0.5486574", "0.54655045", "0.54621816", "0.5445992", "0.54413944", "0.54384345", "0.5431714", "0.54141736", "0.5413998", "0.54007053", "0.5399972", "0.5396337", "0.5381519", "0.53799176", "0.53687024", "0.5365636", "0.53599155", "0.5346991", "0.53236264", "0.53061646", "0.53044075", "0.53031445", "0.52928233", "0.52873343", "0.52863866", "0.52807987", "0.5280599", "0.52677435", "0.5244984", "0.5244365", "0.5235309", "0.52305144", "0.522524", "0.5205984", "0.52002555", "0.5199931", "0.5193212", "0.51889825", "0.5160547", "0.51602274", "0.5152039", "0.514982", "0.5146772", "0.51434505", "0.5135205", "0.5132999", "0.51317537", "0.5128283", "0.5125695", "0.51215696", "0.5117711", "0.51168066", "0.51168066", "0.5100831", "0.5099607", "0.5099403", "0.50906193", "0.5088844", "0.50886184", "0.50865716", "0.50806016", "0.5079152", "0.5078147", "0.50754595", "0.50742316", "0.5067698", "0.5067698", "0.50675976", "0.50651246", "0.50593346", "0.50593346", "0.50593346", "0.5054843", "0.5053975", "0.5052544", "0.50458485", "0.50448835", "0.5035101", "0.50325876", "0.5029289", "0.50187933" ]
0.5942
7
1 remaining is best, all remaining is second.
@Override public int compare(Pen p1, Pen p2) { int r1 = p1.remaining(); int r2 = p2.remaining(); if(r1 == 1) r1 = 7; if(r2 == 1) r2 = 7; return Integer.compare(r1,r2); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void runBest() {\n }", "public long getBestSolutionTime();", "public Double getBestTime() {\n return bestTime;\n }", "Object getBest();", "public void setBestTime(Time bestTime)\n\t{\n\t\tthis.bestTime = bestTime;\n\t}", "public Time getBestTime()\n\t{\n\t\treturn bestTime;\n\t}", "private long finTime(){\n \n long result = 0, time = 0;\n Integer[] temp;\n \n while(!this.prior.isEmpty()){\n \n // getting the head of the queue and removing it\n temp = this.prior.poll();\n \n // printing some temp. results\n //System.out.println(\"weight \" + temp[0] + \" length/time \" + temp[1]);\n \n // callculate the finishing time\n time += temp[1];\n \n // calculate the weighted time, we want to minimise\n result += (temp[0]*time);\n }\n return result;\n }", "public void checkBestScoreAndChangeIt() {\n \tbestTime = readPreference(difficulty);\n \t\n \tif (currentTime < bestTime) {\n \t\tbestTime = currentTime;\n \t\tsavePreference(bestTime, difficulty);\n \t}\n }", "private static void testDelayOverhead() throws InterruptedException {\n Object m = \"\";\n int iters = 1000;\n long delay = 50;\n\n long before = System.currentTimeMillis();\n\n for (int i = 0; i < iters; i++) {\n\n synchronized (m) {\n m.wait(delay);\n }\n }\n\n long after = System.currentTimeMillis();\n\n long tottime = after - before;\n System.out.println(\"total time: \" + tottime + \"ms\");\n long ovhd = tottime - iters * delay;\n System.out.println(\"overhead: \" + ovhd + \"ms (\" + (100 * (ovhd / ((double) tottime))) + \"%)\");\n }", "int getWaitTime(int arrival_time, QNode temp) {\r\n\t \t //1. this is the case when the first person arrives before 9 a.m.\r\n\t \t if (arrival_time <32400) {\r\n\t \t\t //for the wait time of the first person\r\n\t\t \t if (size== maxSize) {\r\n\t\t \t\t\t this.front.wait_time = 32400-arrival_time;\r\n\t\t \t\t\t this.front.service_timeEnding = 32700;\r\n\t\t \t\t\t savewait.add(this.front.wait_time);\r\n\t\t \t\t\t return this.front.wait_time;\r\n\t\t \r\n\t\t \t }\r\n\t\t \t //for the rest of them\r\n\t\t \t else {\r\n\t\t \t\t //if there is no waiting\r\n\t\t \t\t if (temp.service_timeEnding< arrival_time) {\r\n\t\t \t\t\t this.front.wait_time= 0;\r\n\t\t \t\t\t this.front.service_timeEnding = arrival_time +300;\r\n\t\t \t\t\t if (this.front.arrival_time+this.front.wait_time+300 !=this.front.service_timeEnding) {\r\n\t\t \t\t\t\t numberCustomers++;\r\n\t\t \t\t\t }\r\n\t\t \t\t\t savewait.add(this.front.wait_time);\r\n\t\t \t\t\t return this.front.wait_time;\r\n\t\t \t\t\t \r\n\t\t \t\t }\r\n\t\t \t\t //if there is waiting and there is person before you\r\n\t\t \t\t else {\r\n\t\t\t\t \tthis.front.wait_time = temp.service_timeEnding - arrival_time;\r\n\t\t\t\t \tthis.front.service_timeEnding = arrival_time +this.front.wait_time +300;\r\n\t\t\t\t \tif (this.front.service_timeEnding< this.front.wait_time) {\r\n\t\t \t\t\t\t numberCustomers++;\r\n\t\t \t\t\t }\r\n\t\t\t\t \t//save wait time\r\n\t\t\t\t \tsavewait.add(this.front.wait_time);\r\n\t\t\t\t \treturn this.front.wait_time;\r\n\t\t \t\t \r\n\t\t \t\t }\r\n\t\t \t\t \r\n\t\t \t }\r\n\t \t }\r\n\t \t \r\n\t \t //this is the case when the first person arrives after 9\r\n\t \t else {\r\n\t \t\t //for the first person arriving\r\n\t\t \t if (size ==maxSize ) {\r\n\t\t \t\t\t this.front.wait_time = 0;\r\n\t\t \t\t\t this.front.service_timeEnding = arrival_time +300;\r\n\t\t \t\t\t savewait.add(this.front.wait_time);\r\n\t\t \t\t\t return this.front.wait_time;\r\n\t\t \t }\r\n\t\t \t //for the rest of them\r\n\t\t \t else {\r\n\t\t \t\t //if there is no waiting\r\n\t\t \t\t if (temp.service_timeEnding< arrival_time) {\r\n\t\t \t\t\t this.front.wait_time= 0;\r\n\t\t \t\t\t this.front.service_timeEnding = arrival_time +300;\r\n\t\t \t\t\t if (this.front.service_timeEnding!= this.front.wait_time) {\r\n\t\t \t\t\t\t numberCustomers++;\r\n\t\t \t\t\t }\r\n\t\t \t\t\t savewait.add(this.front.wait_time);\r\n\t\t \t\t\t return this.front.wait_time;\r\n\t\t \t\t\t \r\n\t\t \t\t }\r\n\t\t \t\t //if there is a waiting\r\n\t\t \t\t else {\r\n\t\t\t\t \tthis.front.wait_time = temp.service_timeEnding - arrival_time;\r\n\t\t\t\t \tthis.front.service_timeEnding = arrival_time +this.front.wait_time +300;\r\n\t\t\t\t \tif (this.front.service_timeEnding!= this.front.wait_time) {\r\n\t\t \t\t\t\t numberCustomers++;\r\n\t\t \t\t\t }\r\n\t\t\t\t \tsavewait.add(this.front.wait_time);\r\n\t\t\t\t \treturn this.front.wait_time;\r\n\t\t \t\t\r\n\t\t \t\t \r\n\t\t \t\t }\r\n\t\t \t \r\n\t \t \r\n\t \t\r\n\t \t }\r\n\t \t }\r\n\t }", "double getMissChance();", "@Override\r\n\tpublic double getSlowness() {\n\t\treturn 10;\r\n\t}", "public long findFastestTime()\r\n {\r\n for(int top = 1; top < listOfTimes.size(); top++)\r\n { \r\n long item = listOfTimes.get(top); \r\n int i = top;\r\n\r\n while(i > 0 && item < listOfTimes.get(i - 1))\r\n {\r\n listOfTimes.set(i, listOfTimes.get(i- 1));\r\n i--;\r\n }//end while \r\n\r\n listOfTimes.set(i, item);\r\n }//end for \r\n\r\n return listOfTimes.get(0);\r\n }", "@Override\n\tpublic List<Double> getCurrentBest() {\n\t\treturn null;\n\t}", "public double getBestScore();", "private void getBest()\n\t{\n\t\tSystem.out.println();\n\t\tSystem.out.println();\n\t\tSystem.out.println(bestTour + \" \" + bestScore);\n\t}", "public void setBestTime(float [] time){\n for (float f : time){\n bestLevelTime += f;\n }\n bestTime = time;\n }", "private void applyRaceStartPenalty()\n {\n for(int i = 0; i < getDrivers().getSize(); i++)\n {\n getDrivers().getDriver(i).setAccumulatedTime(0); // set to default\n int driverRanking = getDrivers().getDriver(i).getRanking();\n int timePenalty = 10;\n switch(driverRanking)\n {\n case 1: timePenalty = 0; break;\n case 2: timePenalty = 3; break;\n case 3: timePenalty = 5; break;\n case 4: timePenalty = 7; break;\n }\n getDrivers().getDriver(i).setAccumulatedTime(timePenalty);\n }\n }", "DurationTracker timeSpentTaskWait();", "public int chooseVTD(){\n int min=0;\n //this loop is used to avoid a bug\n for(int i=0;i<heuristicArrayTD.length;i++){\n if(heuristicArrayTD[i]< heuristicArrayTD[min]){\n min=i;\n }\n }\n int max=min;\n //returns highest scoring and unused var\n for(int i=0;i<heuristicArrayTD.length;i++){\n if(heuristicArrayTD[i]>= heuristicArrayTD[max] && usageArray[i%variableLength]==0){\n max=i;\n }\n }\n return max%variableLength;\n }", "public double calcAverageWaitingTime()\n\t{\n\t\tint min,y;\n\t\tint sum=0;\n\t\tint x=0,j;\n\t\tfor( int i=0;i<num;i++)\n\t\t{\n\t\t\ttest[i]=Priority[i];\n\n\t\t}\n\t\tint max=test[0];\n\t\tfor (int i=0;i<num;i++)\n\t\t{\n\t\t\tif(test[i]>max)\n\t\t\t{\n\t\t\t\tmax=test[i];\n\t\t\t}\n\n\t\t}\n\t\tmax=max+1;\n\t\tfor (int i=0;i<num;i++)\n\t\t{ \n\t\t\tmin = max;\n\t\t\tfor(j=0;j<num;j++)\n\t\t\t{\n\t\t\t\tif(test[j]!=-1&&test[j]<min)\n\t\t\t\t{\n\t\t\t\t\tmin = test[j];\n\t\t\t\t\tx = j;\n\t\t\t\t}\n\t\t\t\telse if(test[j]!=-1&&test[j]==min)\n\t\t\t\t{\n\t\t\t\t\tif(burstTime[j]<burstTime[x])\n\t\t\t\t\t{\n\t\t\t\t\t\tmin = test[j];\n\t\t\t\t\t\tx = j;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tpid1[i]=x;\n\t\t\ttest[x]=-1;\n\t\t}\n\t\treturn printWaitingTime();\n\t}", "@Test\n @Order(8)\n void taillardTestMoreIterations() {\n try {\n\n for (int i = 0; i < SearchTestUtil.taillardFilenames.length; i++) {\n int output;\n float sumTabu = 0;\n int minTabu = Integer.MAX_VALUE;\n float sumRecuit = 0;\n int minRecuit = Integer.MAX_VALUE;\n System.out.println(\"Run#\" + SearchTestUtil.taillardFilenames[i]);\n assignementProblem.taillardInitializer(SearchTestUtil.taillardFilenames[i]);\n assignementProblem.setNeighborsFunction(NEIGHBORHOOD_TYPE, assignementProblem.getAssignmentData().getLength());\n for (int j = 0; j < 10; j++) {\n assignementProblem.setInCombination(Combination.generateRandom(assignementProblem.getAssignmentData().getLength()));\n\n System.out.println(\"\\n \\t Test#\"+j);\n executeAlgo(SearchTestUtil.ALGO.TABU);\n output = assignementProblem.getF().apply(assignementProblem.getOutCombination());\n sumTabu += output;\n if (output < minTabu) minTabu = output;\n\n executeAlgo(SearchTestUtil.ALGO.RECUIT);\n output = assignementProblem.getF().apply(assignementProblem.getOutCombination());\n sumRecuit += output;\n if (output < minRecuit) minRecuit = output;\n }\n\n\n System.out.println(\"\\tAverage tabu \" + sumTabu / 10);\n System.out.println(\"\\tMinimum found \" + minTabu);\n\n System.out.println(\"\\tAverage recuit \" + sumRecuit / 10);\n System.out.println(\"\\tMinimum found \" + minRecuit);\n\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "int getMaximumDelay();", "private void findWaitingTime(int wt[]) {\n\t\tint rt[] = new int[n];\r\n\t\t\r\n\t\tfor(int i=0;i<n;i++) {\r\n\t\t\trt[i] = processList.get(i).getBurstTime();\r\n\t\t}\r\n\t\t\r\n\t\tint completed = 0,t=0,minm = Integer.MAX_VALUE;\r\n\t\tint shortest = 0, finish_time;\r\n\t\t\r\n\t\tboolean check = false;\r\n\t\t\r\n\t\twhile(completed!=n) {\r\n\t\t\t// find process with min rmaining time\r\n\t\t\tfor(int i=0; i<n ;i++) {\r\n\t\t\t\tif (processList.get(i).getArrivalTime()<=t && rt[i]<minm && rt[i]>0) {\r\n\t\t\t\t\tminm = rt[i];\r\n\t\t\t\t\tshortest = i;\r\n\t\t\t\t\tcheck = true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(check == false) {\r\n\t\t\t\tt++;\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\trt[shortest]--;\r\n\t\t\t\r\n\t\t\tif (minm == 0) {\r\n\t\t\t\tminm = Integer.MAX_VALUE;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (rt[shortest]==0) {\r\n\t\t\t\tcompleted++;\r\n\t\t\t\tcheck=false;\r\n\t\t\t\t\r\n\t\t\t\tfinish_time = t+1;\r\n\t\t\t\t\r\n\t\t\t\twt[shortest] = finish_time - processList.get(shortest).getBurstTime() - processList.get(shortest).getArrivalTime();\r\n\t\t\t\t\r\n\t\t\t\tif (wt[shortest]<0) {\r\n\t\t\t\t\twt[shortest] = 0;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tt++;\r\n\t\t}\r\n\t}", "public int minimumWaitingTime(int[] queries) {\n\t\tArrays.sort(queries);\n\t\t\n\t\tint answer = 0;\n\t\tfor(int i=0; i<queries.length-1; i++){\n\t\t\tint sum = queries[i]*(queries.length-1-i);\n\t\t\tanswer += sum;\n\t\t}\n return answer;\n }", "@Override\n\t\t\tpublic int durationToWait() {\n\t\t\t\treturn getCarType() == 2 ? 60000 : 15000;\n\t\t\t}", "public float getSpawningChance()\n {\n return 0.1F;\n }", "public static void main(String[] args) throws Exception {\n getBestTime();\n }", "Object getWorst();", "protected int getTimesOptimized()\r\n {\r\n return timesOptimized;\r\n }", "public int updateSleeping() {\n //sleeping = 1.3 + 7-energy/10 -- Eat until foodAmt == 0 or 2 more than the lowest stat\n //wake up = 1.0 + 7-stat/10 -- Get the highest value to compare to eating value\n options[0] = (1.0 + ((5.0-(double)energy)/10.0)); // sleep\n options[1] = (1.0 + ((7.0-(double)food)/10.0)); // eat\n options[2] = (1.0 + ((7.0-(double)water)/10.0)); // drink\n \n int maxStat = getMax();\n \n if(maxStat == 0)\n return 0;\n else\n return 1;\n }", "public int getBestValue() {\n return bestValue;\n }", "public T peekBest();", "public Action getBestAction() {\n long startTime = System.currentTimeMillis();\n\n // Continue iterating through the search algorithm until the time limit\n // is reached\n while (System.currentTimeMillis() < startTime + timeLimit) {\n Node newNode = selectAndExpandNewNode();\n double randomPlayout = simulateRandomPlayout(newNode);\n backPropagate(newNode, randomPlayout);\n }\n\n // Technically this function will take us slightly over timeLimit, but\n // that's why a buffer is removed from timeLimit when passed to this\n // class\n return bestActionFromFinishedTree();\n }", "@Override\r\n public BidDetails determineNextBid() {\r\n\r\n double time = negotiationSession.getTime();\r\n\r\n // for the first 20% of the time, offer the bid which gives max utility\r\n if(time < Offer_Max_Util_Time){\r\n BidDetails maxBid = null;\r\n try {\r\n maxBid = this.outcomespace.getMaxBidPossible();\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n System.out.println(\"Exception: cannot generate max utility bid\");\r\n }\r\n return maxBid;\r\n\r\n }else {\r\n //compute the target utility based on time\r\n double utilityGoal = p(time);\r\n // if there is no opponent model available\r\n if (opponentModel instanceof NoModel) {\r\n // generate a Bid near the Utility we wish to have\r\n nextBid = negotiationSession.getOutcomeSpace().getBidNearUtility(utilityGoal);\r\n } else {\r\n // get the best Bid for the Opponent among a list of similarly preferred bids for our Agent\r\n // Then, make an offer with that bid\r\n nextBid = omStrategy.getBid(outcomespace, utilityGoal);\r\n }\r\n }\r\n return nextBid;\r\n }", "public boolean refreshBestTime(double time) {\n increaseAttempts();\n if (this.bestTime == null) {\n this.bestTime = time;\n return true;\n }\n if (time < this.bestTime) {\n this.bestTime = time;\n return true;\n }\n return false;\n }", "@Test\n public void testSubsequentRuns() {\n System.out.println(\" - test subsequent runs (maximizing)\");\n // create and add listeners\n AcceptedMovesListener l1 = new AcceptedMovesListener();\n AcceptedMovesListener l2 = new AcceptedMovesListener();\n AcceptedMovesListener l3 = new AcceptedMovesListener();\n searchLowTemp.addSearchListener(l1);\n searchMedTemp.addSearchListener(l2);\n searchHighTemp.addSearchListener(l3);\n // perform multiple runs (maximizing objective)\n System.out.format(\" - low temperature (T = %.7f)\\n\", LOW_TEMP);\n multiRunWithMaximumRuntime(searchLowTemp, MULTI_RUN_RUNTIME, MAX_RUNTIME_TIME_UNIT, NUM_RUNS, true, true);\n System.out.format(\" >>> accepted/rejected moves: %d/%d\\n\", l1.getTotalAcceptedMoves(), l1.getTotalRejectedMoves());\n System.out.format(\" - medium temperature (T = %.7f)\\n\", MED_TEMP);\n multiRunWithMaximumRuntime(searchMedTemp, MULTI_RUN_RUNTIME, MAX_RUNTIME_TIME_UNIT, NUM_RUNS, true, true);\n System.out.format(\" >>> accepted/rejected moves: %d/%d\\n\", l2.getTotalAcceptedMoves(), l2.getTotalRejectedMoves());\n System.out.format(\" - high temperature (T = %.7f)\\n\", HIGH_TEMP);\n multiRunWithMaximumRuntime(searchHighTemp, MULTI_RUN_RUNTIME, MAX_RUNTIME_TIME_UNIT, NUM_RUNS, true, true);\n System.out.format(\" >>> accepted/rejected moves: %d/%d\\n\", l3.getTotalAcceptedMoves(), l3.getTotalRejectedMoves());\n }", "private double updateEstimates(long sleep) {\r\n \t\t// Prune datasets\r\n \t\twhile (startupTimeHistory.size() > poolConfig.averageCount) {\r\n \t\t\tstartupTimeHistory.remove(0);\r\n \t\t}\r\n \t\twhile (requestTimeHistory.size() > poolConfig.averageCount) {\r\n \t\t\trequestTimeHistory.remove(0);\r\n \t\t}\r\n \r\n \t\t// Do estimates\r\n \t\tlong totalTime = 0;\r\n \t\tfor (long t : startupTimeHistory) {\r\n \t\t\ttotalTime += t;\r\n \t\t}\r\n \t\tstartupTimeEstimate = totalTime / startupTimeHistory.size();\r\n \r\n \t\t// Math.max(..., 1) to avoid divide by zeros.\r\n \t\tdemandEstimate = requestTimeHistory.size()\r\n \t\t\t\t/ Math.max(System.currentTimeMillis() - requestTimeHistory.get(0), 1.0);\r\n \r\n \t\t// Guestimate demand for N\r\n \t\tdouble estimate = demandEstimate * poolConfig.safetyMultiplier * sleep;\r\n \t\treturn Math.min(Math.max(estimate, poolConfig.poolMin), poolConfig.poolMax);\r\n \t}", "public Long getFastestTime()\r\n {\r\n return this.fastestTime;\r\n }", "public void crawlDelay()\n\t{\n//\t\tint delay = robot.getCrawlDelay(best_match);\n//\t\tif (delay!=-1)\n//\t\t{\n//\t\t\ttry \n//\t\t\t{\n//\t\t\t\tTimeUnit.SECONDS.sleep(robot.getCrawlDelay(best_match));\n//\t\t\t} \n//\t\t\tcatch (InterruptedException e) \n//\t\t\t{\n//\t\t\t\treturn;\n//\t\t\t}\n//\t\t}\n\t}", "public Server findFastestServer(double time){\n double fastest = 9999;\n Server server = new Server(fastest, -1);\n for(int i = 0; i < cntServer; i++){\n\n if(fastest > serverArray[i].efficiency && !serverArray[i].busy){\n fastest = serverArray[i].efficiency;\n server = serverArray[i];\n }\n }\n server.busyTime += time - server.busyTime;\n server.cntCustomer++;\n return server;\n }", "private static float tock(){\n\t\treturn (System.currentTimeMillis() - startTime);\n\t}", "public float getBestScore(GameModel startingState) {\n\n float bestScore = 0;\n for (int i = 0; i < NUM_SIMULATIONS; i++) {\n bestScore = max(bestScore, simulateAndGetScore(GameModel.copyOf(startingState)));\n }\n\n return bestScore;\n }", "private static long calculateBestPickWithoutRepetition(int weight, Item[] items, long[][] DP) {\n\n for(int w = 1; w <= weight; w++) {\n for(int i = 1; i <= items.length; i++) {\n DP[w][i] = DP[w][i-1];\n Item item = items[i-1];\n\n if (item.getWeight() <= w) {\n DP[w][i] = Math.max(DP[w][i], DP[w - item.getWeight() ][i-1] + item.getValue());\n }\n }\n }\n\n return DP[DP.length -1][DP[0].length - 1];\n }", "UAction nextAction() { What should we do next? Override this for custom AI.\n //\n updateSeenEntities();\n UAction bestAction = null;\n float bestUrgency = 0f;\n int bc=0;\n for (UBehavior behavior : behaviors) {\n bc++;\n UAction action = behavior.getAction(this);\n if (action != null) {\n if (bestAction == null) {\n bestAction = action;\n bestUrgency = behavior.getCurrentUrgency();\n } else if (behavior.getCurrentUrgency() > bestUrgency) {\n bestAction = action;\n bestUrgency = behavior.getCurrentUrgency();\n }\n }\n }\n return bestAction;\n }", "public Computer findMostExpensiveComputerV2( ) { \n\t\tComputer highest= computers.get(0);\n\t\tint index=1; \n\t\twhile (index<computers.size()){\n\t\t\tif (highest.getPrice()<computers.get(index).getPrice()) {\n\t\t\t\thighest= computers.get(index);\n\n\t\t\t}\n\t\t\tindex ++;\n\t\t}\n\t\treturn highest;\n\n\t}", "private int computeBetterResponse(int player, GameObserver go) {\n int[] devOutcome = currentOutcome.clone();\n double aspirationPayoff = eGame.getPayoff(currentOutcome, player) + aspirationLevel;\n double bestPayoff = eGame.getPayoff(currentOutcome, player);\n int bestResponse = currentOutcome[player];\n\n ///System.out.println(\"Finding BR: \" + Arrays.toString(currentOutcome));\n\n // get the order in which to test best responses\n List<Integer> order = deviationTestOrder.getDeviationTestOrder(currentOutcome, player);\n\n// if (order.size() < nActs[player]-1) {\n// System.out.println(\"To few actions in order listing: \" + order.size());\n// }\n\n int itr = 0;\n for (int a : order) {\n // skip current action\n if (a == currentOutcome[player]) continue;\n devOutcome[player] = a;\n\n //System.out.println(\"Testing dev: \" + Arrays.toString(devOutcome));\n\n // check whether this profile is \"tabu\"\n if (tabu.getValue(devOutcome)) {\n //System.out.println(\"TABU\");\n continue;\n }\n\n // sample if necessary; flag not enough samples\n if (eGame.getNumSamples(devOutcome) == 0) {\n if (go.numObsLeft() <= 0) return NO_SAMPLES_FLAG;\n sampleAndUpdate(devOutcome, go);\n //System.out.println(\"SAMPLED\");\n }\n\n // check BR\n double devPayoff = eGame.getPayoff(devOutcome, player);\n\n// if (devPayoff > aspirationPayoff) {\n// //System.out.println(\"Aspiration met.\");\n// return a;\n// } else\n\n if (devPayoff > bestPayoff) {\n //System.out.println(\"Br, but not aspiration level\");\n bestPayoff = devPayoff;\n bestResponse = a;\n }\n\n itr++;\n if (itr > minDeviationsTested &&\n bestPayoff > aspirationPayoff) {\n return bestResponse;\n }\n\n }\n\n if (bestResponse != currentOutcome[player]) {\n //System.out.println(\"return non-aspiration BR\");\n return bestResponse;\n }\n //System.out.println(\"NO BR\");\n return NO_BR_FLAG;\n }", "public double maxWait()\r\n {\r\n //find the max value in an arraylist\r\n double maxWait = servedCustomers.get(0).getwaitTime();\r\n for(int i = 1; i < servedCustomers.size(); i++){\r\n if(servedCustomers.get(i).getwaitTime()>maxWait){\r\n maxWait = servedCustomers.get(i).getwaitTime();\r\n }\r\n }\r\n return maxWait;\r\n }", "int longestBreaktime(int waitTime, QNode temp) {\r\n\t \t\r\n\t \tif (this.front.wait_time==0) {\r\n\t \t\tint eachBreak = this.front.arrival_time- temp.service_timeEnding;\r\n\t \t\tbreaktime+= eachBreak;\r\n\t \t\tif (longest < eachBreak) {\r\n\t \t\t\tlongest= eachBreak;\r\n\t \t\t}\r\n\t \t\treturn breaktime;\r\n\t \t}\r\n\t \t\r\n\t\t\treturn breaktime;\r\n\t }", "public void updateWaitingTime(){\n waitingTime = waitingTime - 1;\n }", "public static double doAvgWaitTime() {\n if (count >= 1) {\n return waitTimeTotal / count;\n } else {\n return -1;\n }\n }", "void setBestScore(double bestScore);", "public void performance() {\n\t\tPositionVo s = currentPerformed.getFirst();\n\t\t@SuppressWarnings(\"unused\")\n\t\tPositionVo e = currentPerformed.getLast();\n//\t\tint timeCost = (int) (e.getTime() - s.getTime());\n//\t\tint span = (int) Math.abs(e.getHead().getX() - s.getHead().getX());\n\t\t// TODO according to the moving rate decide how many nodes fill the gap\n\n\t\tint size = currentPerformed.size();\n\n\t\tfor (int i = 1; i < size * 4 - 4; i += 4) {\n\t\t\tPositionVo s1 = currentPerformed.get(i - 1);\n\t\t\tPositionVo s2 = currentPerformed.get(i);\n\n\t\t\tPoint[] delta_Head = sim_dda(s1.getHead(), s2.getHead(), 4);\n\t\t\tPoint[] delta_left_hand = sim_dda(s1.getLeftHand(), s2.getRightHand(), 4);\n\t\t\tPoint[] delta_right_hand = sim_dda(s1.getRightHand(), s2.getRightHand(), 4);\n\n\t\t\tfor (int j = 0; j < 3; j++)\n\t\t\t\tcurrentPerformed.add(i + j, new PositionVo(delta_Head[j], delta_left_hand[j], delta_right_hand[j]));\n\t\t}\n\n\t\tnCount = currentPerformed.size();\n\t\tcursor = 0;\n\n\t\t/* (*)absolute point = initial point - current point */\n\t\treferX -= s.getHead().getX();\n\t\treferY += s.getHead().getY();\n\t\tcurrReferX = referX;\n\t\tcurrReferY = referY;\n\n\t\t/* update gui */\n\t\tmanager.proceBar.setMinimum(0);\n\t\tmanager.proceBar.setMaximum(nCount);\n\t\t/* end */\n\n\t\tstartTimer((int) (ANIMATE_FPS * speedRate));\n\t}", "final int getEstimatedSurplusTaskCount() {\n // The halving approximates weighting idle vs non-idle threads\n return (sp - base) - (pool.getIdleThreadCount() >>> 1);\n }", "int getWaitTime();", "double getSolverTimeLimitSeconds();", "private void waitConstant() {\r\n \t\tlong\tlwait = CL_FRMPRDAC;\r\n \t\t// drawing is active?\r\n \t\tif(m_fHorzShift == 0 && m_lTimeZoomStart == 0\r\n \t\t\t\t&& GloneApp.getDoc().isOnAnimation() == false)\r\n \t\t\tlwait = CL_FRMPRDST;\t\t// stalled\r\n \r\n \t\t// make constant fps\r\n \t\t// http://stackoverflow.com/questions/4772693/\r\n \t\tlong\tldt = System.currentTimeMillis() - m_lLastRendered;\r\n \t\ttry {\r\n \t\t\tif(ldt < lwait)\r\n \t\t\t\tThread.sleep(lwait - ldt);\r\n \t\t} catch (InterruptedException e) {\r\n \t\t\te.printStackTrace();\r\n \t\t}\r\n \t}", "public Computer findMostExpensiveComputerV1( ) { \n\t\tComputer highest= computers.get(0);\n\t\tfor (int index=1; index<computers.size();index++){\n\t\t\tif (highest.getPrice()<computers.get(index).getPrice()) {\n\t\t\t\thighest= computers.get(index);\n\n\t\t\t}\n\t\t}\n\t\treturn highest;\n\t}", "public Decision planBest(Context context, Decision defaultDecision);", "protected boolean update_best_value(Knapsack knapsack) {\n iteration+=1;\n if (knapsack.get_value()>best_value)\n {\n best_value=knapsack.get_value();\n return true;\n }\n if (iteration%100000==0)\n System.out.println(\"iteration:\"+iteration+\" time:\"+System.currentTimeMillis()+\n \" best_value:\"+best_value);\n return false;\n }", "public float[] getBestTime(){return bestTime;}", "double getThroughput();", "protected abstract float _getGrowthChance();", "public int getTurnaround (){\n return finishingTime-arrival_time;\n }", "@Override\r\n\tpublic void perSecond() {\n\r\n\t}", "public void runLastTime(){\n\t\t/*try {\n\t\t\tlong timeDiff = 100;\n\t\t\t\n\t\t\tFeatureListController controller = new FeatureListController(timeDiff);\n\t\t\tTestSensorListener listener1 = new TestSensorListener();\n\t\t\tcontroller.registerSensorListener(listener1);\n\t\t\tTestSensorListener listener2 = new TestSensorListener();\n\t\t\tcontroller.registerSensorListener(listener2);\n\t\t\t\n\t\t\t\n\t\t\t//20 samples in total\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\t\n\t\t\t\n\t\t\tfor(int i=0;i<2;++i){\n\t\t\t\tSensorListener listener;\n\t\t\t\tif(i==0)\n\t\t\t\t\tlistener = listener1;\n\t\t\t\telse \n\t\t\t\t\tlistener = listener2;\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"LISTENER\" + (i+1));\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Now:\" + new Date().getTime());\n\t\t\t\tList<FeatureList> featureLists = controller.getLastFeatureListsInMilliseconds(listener, -1);\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"All feature lists with milliseconds method\");\n\t\t\t\tfor(FeatureList l : featureLists)\n\t\t\t\t\tSystem.out.println(l.getTimestamp().getTime());\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"All feature lists with n method\");\n\t\t\t\tList<FeatureList> featureLists2 = controller.getLastNFeatureList(listener, -1);\n\t\t\t\tfor(FeatureList l : featureLists)\n\t\t\t\t\tSystem.out.println(l.getTimestamp().getTime());\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Last milliseconds \" + 40);\n\t\t\t\tList<FeatureList> featureLists3 = controller.getLastFeatureListsInMilliseconds(listener, 40);\n\t\t\t\tfor(FeatureList l : featureLists3)\n\t\t\t\t\tSystem.out.println(l.getTimestamp().getTime());\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Last N Feature Lists \" + 6);\n\t\t\t\tList<FeatureList> featureLists4 = controller.getLastNFeatureList(listener, 6);\n\t\t\t\tfor(FeatureList l : featureLists4)\n\t\t\t\t\tSystem.out.println(l.getTimestamp().getTime());\n\t\t\t}\n\t\t\t\n\n\t\t} catch (InterruptedException ex) {\n\t\t\tSystem.out.println(ex.getLocalizedMessage());\n//Logger.getLogger(CaseFeatureListController.class.getName()).log(Level.SEVERE, new double[10], ex);\n\t\t}*/\n\t\t\n\t}", "private Action bestActionFromFinishedTree() {\n return Collections.max(validActionsDiscretized, Comparator.comparing(\n c -> root.getActionReward(c) / (double) root.getActionVisits(c)));\n }", "Integer getMaxSuccessiveDeltaCycles();", "private void checkSpeedAndReserved()\n\t{\n\t\t// only check every 5 seconds\n\t\tif(mainloop_loop_count % MAINLOOP_FIVE_SECOND_INTERVAL != 0)\n\t\t\treturn;\n\n\t\tfinal int\t\t\t\tnbPieces\t=_nbPieces;\n\t\tfinal PEPieceImpl[] pieces =pePieces;\n\t\t//for every piece\n\t\tfor (int i =0; i <nbPieces; i++)\n\t\t{\n\t\t\t// placed before null-check in case it really removes a piece\n\t\t\tcheckEmptyPiece(i);\n\n\n\t\t\tfinal PEPieceImpl pePiece =pieces[i];\n\t\t\t// these checks are only against pieces being downloaded\n\t\t\t// yet needing requests still/again\n\t\t\tif (pePiece !=null)\n\t\t\t{\n\t\t\t\tfinal long timeSinceActivity =pePiece.getTimeSinceLastActivity()/1000;\t\t\t\t\n\n\t\t\t\tint pieceSpeed =pePiece.getSpeed();\n\t\t\t\t// block write speed slower than piece speed\n\t\t\t\tif (pieceSpeed > 0 && timeSinceActivity*pieceSpeed*0.25 > DiskManager.BLOCK_SIZE/1024)\n\t\t\t\t{\n\t\t\t\t\tif(pePiece.getNbUnrequested() > 2)\n\t\t\t\t\t\tpePiece.setSpeed(pieceSpeed-1);\n\t\t\t\t\telse\n\t\t\t\t\t\tpePiece.setSpeed(0);\n\t\t\t\t}\n\n\n\t\t\t\tif(timeSinceActivity > 120)\n\t\t\t\t{\n\t\t\t\t\tpePiece.setSpeed(0);\n\t\t\t\t\t// has reserved piece gone stagnant?\n\t\t\t\t\tfinal String reservingPeer =pePiece.getReservedBy();\n\t\t\t\t\tif(reservingPeer !=null)\n\t\t\t\t\t{\n\t\t\t\t\t\tfinal PEPeerTransport pt = getTransportFromAddress(reservingPeer);\n\t\t\t\t\t\t// Peer is too slow; Ban them and unallocate the piece\n\t\t\t\t\t\t// but, banning is no good for peer types that get pieces reserved\n\t\t\t\t\t\t// to them for other reasons, such as special seed peers\n\t\t\t\t\t\tif (needsMD5CheckOnCompletion(i))\n\t\t\t\t\t\t\tbadPeerDetected(reservingPeer, i);\n\t\t\t\t\t\telse if (pt != null)\n\t\t\t\t\t\t\tcloseAndRemovePeer(pt, \"Reserved piece data timeout; 120 seconds\", true);\n\n\t\t\t\t\t\tpePiece.setReservedBy(null);\n\t\t\t\t\t}\n\n\t\t\t\t\tif (!piecePicker.isInEndGameMode()){\n\t\t\t\t\t\tpePiece.checkRequests();\n\t\t\t\t\t}\n\n\t\t\t\t\tcheckEmptyPiece(i);\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t}", "public double[] getTimeBest()\r\n\t{\r\n\t\tint i;\r\n\t\tdouble[] time_step; \r\n\r\n\t\ttime_step = new double[_esn.getNumOutputNeurons()];//create an element for each output neuron\r\n\t\tfor(i=0; i<time_step.length; i++)\r\n\t\t{\r\n\t\t\ttime_step[i] = _time_best;\r\n\t\t}\r\n\t\t\r\n\t\treturn time_step;\r\n\t}", "@Test\n public void testSubsequentRunsWithPenalizingConstraint() {\n System.out.println(\" - test subsequent runs with penalizing constraint\");\n // set constraint\n problem.addPenalizingConstraint(constraint);\n // create and add listeners\n AcceptedMovesListener l1 = new AcceptedMovesListener();\n AcceptedMovesListener l2 = new AcceptedMovesListener();\n AcceptedMovesListener l3 = new AcceptedMovesListener();\n searchLowTemp.addSearchListener(l1);\n searchMedTemp.addSearchListener(l2);\n searchHighTemp.addSearchListener(l3);\n // perform 3 times as many runs as usual for this harder problem (maximizing objective)\n System.out.format(\" - low temperature (T = %.7f)\\n\", LOW_TEMP);\n multiRunWithMaximumRuntime(searchLowTemp, MULTI_RUN_RUNTIME, MAX_RUNTIME_TIME_UNIT, 3*NUM_RUNS, true, true);\n System.out.format(\" >>> accepted/rejected moves: %d/%d\\n\", l1.getTotalAcceptedMoves(), l1.getTotalRejectedMoves());\n // constraint satisfied ?\n if(problem.getViolatedConstraints(searchLowTemp.getBestSolution()).isEmpty()){\n System.out.println(\" >>> constraint satisfied!\");\n } else {\n System.out.println(\" >>> constraint not satisfied, penalty \"\n + constraint.validate(searchLowTemp.getBestSolution(), data).getPenalty());\n }\n System.out.format(\" - medium temperature (T = %.7f)\\n\", MED_TEMP);\n multiRunWithMaximumRuntime(searchMedTemp, MULTI_RUN_RUNTIME, MAX_RUNTIME_TIME_UNIT, 3*NUM_RUNS, true, true);\n System.out.format(\" >>> accepted/rejected moves: %d/%d\\n\", l2.getTotalAcceptedMoves(), l2.getTotalRejectedMoves());\n // constraint satisfied ?\n if(problem.getViolatedConstraints(searchMedTemp.getBestSolution()).isEmpty()){\n System.out.println(\" >>> constraint satisfied!\");\n } else {\n System.out.println(\" >>> constraint not satisfied, penalty \"\n + constraint.validate(searchMedTemp.getBestSolution(), data).getPenalty());\n }\n System.out.format(\" - high temperature (T = %.7f)\\n\", HIGH_TEMP);\n multiRunWithMaximumRuntime(searchHighTemp, MULTI_RUN_RUNTIME, MAX_RUNTIME_TIME_UNIT, 3*NUM_RUNS, true, true);\n System.out.format(\" >>> accepted/rejected moves: %d/%d\\n\", l3.getTotalAcceptedMoves(), l3.getTotalRejectedMoves());\n // constraint satisfied ?\n if(problem.getViolatedConstraints(searchHighTemp.getBestSolution()).isEmpty()){\n System.out.println(\" >>> constraint satisfied!\");\n } else {\n System.out.println(\" >>> constraint not satisfied, penalty \"\n + constraint.validate(searchHighTemp.getBestSolution(), data).getPenalty());\n }\n }", "@Override\n\tpublic int calculateEffort() {\n\t\treturn 0;\n\t}", "private Action selectBestAction(Node node) {\n return Collections.max(validActionsDiscretized, Comparator.comparing(c -> UCTValue(c,\n node)));\n }", "int getMinigameDefenseChancesLeft();", "@Override\n\tpublic int topSpeed() {\n\t\treturn 0;\n\t}", "public Decision planWorst(Context context, Decision defaultDecision);", "private static Population getBestPossibleParettoOfAGS(){\n int numberOfRounds = 10;\n Population allFrontsMembers = new Population();\n\n NSGAII nsgaii = new NSGAII();\n SPEA2 spea2 = new SPEA2();\n AEMMT aemmt = new AEMMT();\n AEMMD aemmd = new AEMMD();\n MOEAD moead = new MOEAD();\n\n ProblemKnapsackFromFile problem = new ProblemKnapsackFromFile(macPathGetProblemFrom);\n progressBar = new ProgressBar((double) numberOfRounds);\n\n for (int i = 0; i < numberOfRounds; i++) {\n\n Parameters.NUMBER_OF_GENERATIONS = problem.items.size() < 100? 100 : 200;\n\n System.out.println(\"NSGAII\");\n nsgaii.runAlgorithm(problem);\n allFrontsMembers.population.addAll(nsgaii.paretto.membersAtThisFront);\n\n System.out.println(\"SPEA2\");\n spea2.runAlgorithm(problem);\n allFrontsMembers.population.addAll(spea2.paretto.membersAtThisFront);\n\n //moead.runAlgorithm(problem);\n //allFrontsMembers.population.addAll( moead.pareto.membersAtThisFront);\n\n Parameters.NUMBER_OF_GENERATIONS = 15000;\n System.out.println(\"AEMMT\");\n aemmt.runAlgorithm(problem);\n allFrontsMembers.population.addAll(aemmt.paretto.membersAtThisFront);\n\n System.out.println(\"AEMMD\");\n aemmd.runAlgorithm(problem);\n allFrontsMembers.population.addAll(aemmd.paretto.membersAtThisFront);\n\n progressBar.addJobDone();\n\n allFrontsMembers.fastNonDominatedSort();\n Problem.removeSimilar(allFrontsMembers.fronts.allFronts.get(0),problem);\n allFrontsMembers.population = allFrontsMembers.fronts.allFronts.get(0).membersAtThisFront;\n }\n\n problem.printResolutionMessage();\n //Printer.printBinaryMembers(allFrontsMembers);\n System.out.println(\"ALL FRONTS SIZE: \"+allFrontsMembers.population.size());\n\n return allFrontsMembers;\n }", "public int getWorstScore()\n {\n return -1;\n }", "private void updateBest() {\n if (bestTourOrder == null) {\n bestTourOrder = ants.get(0).trail;\n bestTourLength = ants.get(0)\n .trailLength(graph);\n }\n for (Ant a : ants) {\n if (a.trailLength(graph) > bestTourLength) {\n bestTourLength = a.trailLength(graph);\n bestTourOrder = a.trail.clone();\n }\n }\n\n\n }", "public Decision worstFor(Context context);", "public float computeGap()\r\n {\n float bestOffer = -1f;\r\n float secondBest = -1f;\r\n if (_offres != null)\r\n {\r\n for (Offre current : _offres)\r\n {\r\n if (!current.isRejetee())\r\n {\r\n if (current.getMontant() > bestOffer)\r\n {\r\n secondBest = bestOffer;\r\n bestOffer = current.getMontant();\r\n }\r\n else if (current.getMontant() > secondBest)\r\n {\r\n secondBest = current.getMontant();\r\n }\r\n }\r\n }\r\n }\r\n if (bestOffer > 0)\r\n {\r\n if (secondBest > 0)\r\n {\r\n return bestOffer - secondBest;\r\n }\r\n else\r\n {\r\n return bestOffer - _montantVente;\r\n }\r\n }\r\n else\r\n {\r\n return -1;\r\n }\r\n }", "public void updateBestTime(int room_idx){\n float time = rooms[room_idx].getTimer();\n if (time<bestTime[room_idx]){bestTime[room_idx]=time;}\n curTime[room_idx] = time;\n rooms[room_idx].resetTimer();\n }", "public Computer findMostExpensiveComputerV4( ) { \n\n\t\tComputer highest= computers.get(0);\n\t\tIterator<Computer> it= computers.iterator();\n\t\tComputer current=null; // a temporary copy of has.next() to perform multiple actions on it inside the loop\n\t\twhile(it.hasNext()) {\n\t\t\tcurrent=it.next();\n\t\t\tif (highest.getPrice()<current.getPrice()) \n\t\t\t\thighest=current;\n\n\n\t\t}\n\n\t\treturn highest;\n\n\t}", "public float getMaxTimeSeconds() { return getMaxTime()/1000f; }", "boolean requiresRestart(Operation nextBestOp) {\n\t\t\treturn nextBestOp.val == Integer.MAX_VALUE;\n\n\t\t}", "static void start() throws IOException\n {\n cms_list = create_cms( num_cms );\n\n\n // 5.do until terminate\n\t\tfor( int iter=0; iter<num_iter; iter++ )\n\t\t{\n\t\t\tstart_t = System.currentTimeMillis();\n\n\t\t\tcms_sol_rdd = spark_selection(); //selction \n\t\t cms_list = new ArrayList( spark_transition_fitness( cms_sol_rdd ));\n\t\t\treduce_t = System.currentTimeMillis();\n\t\t for( int i=0; i<num_cms; i++ )\n if( best_objectvalue > cms_list.get(i)._2() )\n best_objectvalue = cms_list.get(i)._2();\n\n\t\t\tend_t = System.currentTimeMillis();\n\t\t\tprint_best( iter + 1 ); //print\n\t\t}\n }", "public void cycle() {\r\n processTask(); // tune relative frequency?\r\n processConcept(); // use this order to check the new result\r\n }", "public FishingRod getBestRod();", "public void AlgoTimeTrials() {\n\t\n\tSystem.out.println( \"\\nQuestion (7) AlgoTimeTrials\" );\n\tSystem.out.println( \"---------------------------\");\n\tint start = 100 , end = 1000000 , mult = 10;\n\tint NTrials = 5;\n\tdouble Range = 9.0;\n\tStopWatch watch = new StopWatch();\n\tdouble target = Math.PI;\n\tSystem.out.format( \"%10s %12s %12s %12s\\n\" , \"Size\" , \"AvgSort(us)\" , \"AvgBinary(us)\" , \"AvgLinear(us)\" );\n\tSystem.out.format( \"%10s %12s %12s %12s\\n\" , \"----\" , \"-----------\" , \"-------------\" , \"-------------\" );\n\tfor( int Size = start ; Size <= end ; Size *= mult ) {\n\t double [] sortTimes = new double[NTrials];\n\t double [] binarySearchTimes = new double[NTrials];\n\t double [] linearSearchTimes = new double[NTrials];\n\t for( int i = 0; i < NTrials ; i++ ) {\n\t\tdouble [] A = createRandomDoubleArray(Size,Range);\n\t\tA[A.length-1] = target;\n\t\tsortTimes[i] = getSortTime( A , watch );\n\t\tbinarySearchTimes[i] = getBinarySearchTime(A,target,watch);\n\t\tlinearSearchTimes[i] = getLinearSearchTime(A,target,watch);\n\t }\n\t double avgSort = getAverage( sortTimes );\n\t double avgBinary = getAverage( binarySearchTimes);\n\t double avgLinear = getAverage( linearSearchTimes);\n\t System.out.format( \"%10d %12.1f %12.1f %12.1f\\n\" , Size , avgSort , avgBinary , avgLinear );\n\t}\n }", "private void updateCompletionTime()\n\t{\n\t\tfor (Map.Entry<Tab, Set<FarmingPatch>> tab : farmingWorld.getTabs().entrySet())\n\t\t{\n\t\t\tlong extremumCompletionTime = config.preferSoonest() ? Long.MAX_VALUE : 0;\n\t\t\tboolean allUnknown = true;\n\t\t\tboolean allEmpty = true;\n\n\t\t\tfor (FarmingPatch patch : tab.getValue())\n\t\t\t{\n\t\t\t\tPatchPrediction prediction = predictPatch(patch);\n\t\t\t\tif (prediction == null || prediction.getProduce().getItemID() < 0)\n\t\t\t\t{\n\t\t\t\t\tcontinue; // unknown state\n\t\t\t\t}\n\n\t\t\t\tallUnknown = false;\n\n\t\t\t\tif (prediction.getProduce() != Produce.WEEDS && prediction.getProduce() != Produce.SCARECROW)\n\t\t\t\t{\n\t\t\t\t\tallEmpty = false;\n\n\t\t\t\t\t// update max duration if this patch takes longer to grow\n\t\t\t\t\tif (config.preferSoonest())\n\t\t\t\t\t{\n\t\t\t\t\t\textremumCompletionTime = Math.min(extremumCompletionTime, prediction.getDoneEstimate());\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\textremumCompletionTime = Math.max(extremumCompletionTime, prediction.getDoneEstimate());\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfinal SummaryState state;\n\t\t\tfinal long completionTime;\n\n\t\t\tif (allUnknown)\n\t\t\t{\n\t\t\t\tstate = SummaryState.UNKNOWN;\n\t\t\t\tcompletionTime = -1L;\n\t\t\t}\n\t\t\telse if (allEmpty)\n\t\t\t{\n\t\t\t\tstate = SummaryState.EMPTY;\n\t\t\t\tcompletionTime = -1L;\n\t\t\t}\n\t\t\telse if (extremumCompletionTime <= Instant.now().getEpochSecond())\n\t\t\t{\n\t\t\t\tstate = SummaryState.COMPLETED;\n\t\t\t\tcompletionTime = 0;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tstate = SummaryState.IN_PROGRESS;\n\t\t\t\tcompletionTime = extremumCompletionTime;\n\t\t\t}\n\t\t\tsummaries.put(tab.getKey(), state);\n\t\t\tcompletionTimes.put(tab.getKey(), completionTime);\n\t\t}\n\t}", "@Override\n\tpublic int getTopSpeed() {\n\t\treturn 100;\n\t}", "public int getLivesRemaining();", "@Override\n public void postRound() {\n super.postRound();\n Integer res = 0;\n if(this.algorithm_choosed!=-1){\n switch(this.algorithm_choosed) {\n case 1:\n if((res=this.checkingIfAllNodesHasFinished())!=-1 && !this.first_Algorithm){\n this.first_Algorithm = true;\n Tools.appendToOutput(\"Algorithm1 converge in '\" + Tools.getGlobalTime() + \"'Steps'\\n\");\n Tools.appendToOutput(\"Algorithm1 find this size of max matching \"+res+\"\\n\");\n }\n break;\n case 2:\n if ((res=this.checkingIfAllNodesHasFinished())!=-1 && !this.second_Algorithm) {\n this.second_Algorithm = true;\n Tools.appendToOutput(\"Algorithm2 converge in '\" + Tools.getGlobalTime() + \"'Steps'\\n\");\n Tools.appendToOutput(\"Algorithm2 find this size of max matching \"+res+\"\\n\");\n }\n break;\n case 3:\n if ((res=this.checkingIfAllNodesHasFinished())!=-1 && !this.third_Algorithm) {\n this.third_Algorithm = true;\n Tools.appendToOutput(\"Algorithm3 converge in '\" + Tools.getGlobalTime() + \"'Steps'\\n\");\n Tools.appendToOutput(\"Algorithm3 find this size of max matching \"+res+\"\\n\");\n this.tempFourth = res;\n }\n break;\n case 4:\n if(!this.fourth_algorithm && (res=this.checkingIfAllNodesHasFinished())!=-1) {\n Integer c = 0;\n this.fourth_algorithm = true;\n Tools.appendToOutput(\"Maximal converge in '\" + Tools.getGlobalTime() + \"'Steps'\\n\");\n Tools.appendToOutput(\"Maximal matching size is = \"+res+\"\\n\");\n //log.logln(\"Try to find the optimum!!!\");\n for (Iterator<Node> it = Tools.getNodeList().iterator(); it.hasNext();) {\n MS4Node node = (MS4Node) it.next();\n if(node.isMarried()){\n c+=1;\n }\n node.setFindTheOptimum();\n node.end_flag = false;\n }\n this.printTheMarriages();\n //log.logln(\"Total number of nodes married = \"+c);\n this.tempFourth = res;\n }\n if(this.fourth_algorithm && (res=this.checkingIfAllNodesHasFinished())!=-1 && !this.approximazion_alg){\n Tools.appendToOutput(\"RES ---->\"+res+\"\\n\");\n for(Iterator<Node> it = Tools.getNodeList().iterator();it.hasNext();){\n MS4Node node = (MS4Node)it.next();\n if(node.isSecondMatchDone()){\n //Tools.appendToOutput(\"**NODE with a success in MATCH SECOND ==\"+node.ID+\" \\n\");\n node.setColorToEdgeAndNodes(Color.BLACK, Tools.getNodeByID(node.pointingNode));\n Tools.getNodeByID(node.pointingNode).setColor(node.defaultColor);\n node.setColorToEdgeAndNodes(Color.MAGENTA, Tools.getNodeByID(node.getP_v()));\n ((MS4Node)Tools.getNodeByID(node.getP_v())).isMarried = true;\n MS4Node married = (MS4Node)Tools.getNodeByID(node.getPointingNode());\n married.setColorToEdgeAndNodes(Color.MAGENTA,Tools.getNodeByID(married.getP_v()));\n ((MS4Node)Tools.getNodeByID(married.getP_v())).isMarried = true;\n }\n }\n Integer newRes = checkingIfAllNodesHasFinished();\n Tools.appendToOutput(\"Approx algorithm converge in '\" + Tools.getGlobalTime() + \"'Steps'\\n\");\n Tools.appendToOutput(\"New Maximal matching size is = \"+newRes+\" so improved by \"+(newRes-tempFourth)+\"\\n\");\n //log.logln(\"--------------------APPROX RESULT-----------------------------\");\n Integer count = 0;\n for(Iterator<Node> it = Tools.getNodeList().iterator();it.hasNext();){\n MS4Node node = (MS4Node)it.next();\n if(node.isMarried()) {\n count++;\n }\n }\n this.printTheMarriages();\n //log.logln(\"----------------NUMBER OF MARRIED : \"+count+\"-----------------------------\");\n this.approximazion_alg = true;\n break;\n }\n case 5:\n if ((res=this.checkingIfAllNodesHasFinished())!=-1 && !this.fifth_algorithm) {\n this.fifth_algorithm = true;\n Tools.appendToOutput(\"Algorithm3_probabilistic converge in '\" + Tools.getGlobalTime() + \"'Steps'\\n\");\n Tools.appendToOutput(\"Algorithm3_probabilistic find this size of max matching \" + res + \"\\n\");\n }\n\n }\n }\n }", "@Override\n\tpublic double getFinalBestTargetValue() {\n\t\treturn 0;\n\t}", "public int getTimeToComplete() {\n // one level is ten minutes long\n int totalTime = numberOfLevels * 10;\n if (is3D) {\n // if it's 3d then it take twice as long because its harder\n totalTime = totalTime * 2;\n }\n \n return totalTime;\n }", "private int timeToNextAttack() {\n return ATTACK_SPEED - mAttacker.getSpeed();\n }", "int getAbsoluteMaximumDelay();", "static int hireAssistant(int tab[]) {\n int best = 0;\n for(int i = 0; i<tab.length; i++) {\n if(tab[i] > best)\n best = tab[i];\n }\n return best;\n }", "@Override\n\tpublic double getBestTargetValue() {\n\t\treturn 0;\n\t}", "double getCritChance();", "public String waitTimeConroller(long start) throws NumberFormatException, IOException {\n\t\t\t\tdouble sec = waitTimeCalculatior(start)/1000;\n\t\t\t\tlong testStart = convertStringToLong(fileScanner(\"start.time\"));\n\t\t\t\tint limit = 0;\n\t\t\t\t\n\t\t\t\tif ((sec >= 15) && (sec < 30)) { limit = 15; }\n\t\t\t\tif ((sec >= 30) && (sec < 60)) { limit = 30; }\n\t\t\t\tif (sec >= 60) { limit = 60; }\n\t\t\t\t\n\t\t\t\tif (sec >= 15) {\n\t\t\t\tfileWriterPrinter(\"Waiting time exceeded limit of \" + new DecimalFormat(\"0.000\").format(limit) + \" seconds!\");\n\t\t\t\tfileWriter(\"wait.log\", \" Test: #\" + fileScanner(\"test.num\"));\t\n\t\t\t\tfileWriter(\"wait.log\", \" Started: \" + convertCalendarMillisecondsAsLongToDateTimeHourMinSec(testStart));\n\t\t\t\tfileWriter(\"wait.log\", \" Event: \" + convertCalendarMillisecondsAsLongToDateTimeHourMinSec(start));\n\t\t\t\tfileWriter(\"wait.log\", \" XML Path: \" + fileScanner(\"xml.path\"));\n\t\t\t\tfileWriter(\"wait.log\", \" Waiting time is \" + sec + \" sec, which exceeds limit of \" + new DecimalFormat(\"0.000\").format(limit) + \" seconds!\");\n\t\t\t\tfileWriterPrinter(\"wait.log\", \"\");\n\t\t\t\t}\n\t\t\t\treturn padNum(sec);\n\t\t\t}" ]
[ "0.6707525", "0.64184296", "0.63672596", "0.6211809", "0.60044324", "0.5940432", "0.59291357", "0.5854789", "0.57286996", "0.57125014", "0.57020277", "0.561788", "0.5600205", "0.5581661", "0.55776453", "0.5566689", "0.55566365", "0.55496484", "0.55300605", "0.5527408", "0.5506458", "0.54990894", "0.5499012", "0.5496002", "0.5489033", "0.54862845", "0.5484356", "0.5478465", "0.5475473", "0.5463069", "0.54584605", "0.5445542", "0.542973", "0.54179", "0.54047906", "0.53991014", "0.5397137", "0.53941274", "0.5393036", "0.5391823", "0.5376787", "0.5353731", "0.5328703", "0.5321927", "0.5316397", "0.53097236", "0.5271652", "0.5270106", "0.52681917", "0.52656066", "0.52640736", "0.5263682", "0.5259979", "0.52572185", "0.5241204", "0.5235882", "0.523381", "0.5232404", "0.5228479", "0.522718", "0.52268845", "0.52258307", "0.52233154", "0.52209276", "0.5218432", "0.5214858", "0.52132964", "0.52078265", "0.52062565", "0.52058804", "0.52014637", "0.519932", "0.51987827", "0.5195348", "0.51929635", "0.5191974", "0.51867425", "0.51843596", "0.518155", "0.51803046", "0.517608", "0.5175644", "0.5163735", "0.5163599", "0.5159344", "0.51548475", "0.51416093", "0.5139322", "0.5138312", "0.5137046", "0.5135446", "0.513475", "0.51314336", "0.5129507", "0.5128264", "0.5125957", "0.512208", "0.5121337", "0.51204103", "0.5119945", "0.5116398" ]
0.0
-1
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.teacher_hw_frgmnt2, container, false); drawer = (DrawerLayout) ((TeacherHome) getContext()).findViewById(R.id.drawer_asiana); toolbar = (Toolbar) ((TeacherHome) getContext()).findViewById(R.id.tool_bar); FloatingActionButton button = (FloatingActionButton) view.findViewById(R.id.fab); recyclerView = (RecyclerView) view.findViewById(R.id.recycler); progress = (ProgressBar) view.findViewById(R.id.progress); manager = new GridLayoutManager(getActivity(), 1); list = new ArrayList<>(); //searchList = new ArrayList<>(); adapter = new AdapterHwList(getContext(), list); recyclerView.setAdapter(adapter); recyclerView.setLayoutManager(manager); list1 = new ArrayList<>(); classlist = new ArrayList<>(); classId = new ArrayList<>(); listSection = new ArrayList<>(); sectionlist = new ArrayList<>(); sectionid = new ArrayList<>(); listSubject = new ArrayList<>(); subjectlist = new ArrayList<>(); subjectId = new ArrayList<>(); if (isSearch = false) { User b = (User) getActivity().getApplicationContext(); Retrofit retrofit = new Retrofit.Builder() .baseUrl(b.baseURL) .addConverterFactory(ScalarsConverterFactory.create()) .addConverterFactory(GsonConverterFactory.create()) .build(); AllAPIs cr = retrofit.create(AllAPIs.class); progress.setVisibility(View.VISIBLE); Call<HomewrkListbean> call = cr.homwwrk_list(b.school_id, b.user_id); call.enqueue(new Callback<HomewrkListbean>() { @Override public void onResponse(Call<HomewrkListbean> call, Response<HomewrkListbean> response) { adapter.setGridData(response.body().getHomeworkList()); adapter.notifyDataSetChanged(); progress.setVisibility(View.GONE); } @Override public void onFailure(Call<HomewrkListbean> call, Throwable throwable) { progress.setVisibility(View.GONE); } }); } /* card=(CardView)view.findViewById(R.id.card); card.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { FragmentManager fm = getFragmentManager(); FragmentTransaction ft = fm.beginTransaction(); TeacherHwFrgmntTwo frag1 = new TeacherHwFrgmntTwo(); ft.replace(R.id.replace, frag1); ft.addToBackStack(null); ft.commit(); } }); */ button.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { final Dialog dialog = new Dialog(getActivity()); dialog.setCancelable(true); dialog.requestWindowFeature(Window.FEATURE_NO_TITLE); dialog.setContentView(R.layout.hw_dialog); final Button submit = (Button) dialog.findViewById(R.id.submit); final Spinner className = (Spinner) dialog.findViewById(R.id.className); final Spinner sectionName = (Spinner) dialog.findViewById(R.id.sectionName); final Spinner subjectName = (Spinner) dialog.findViewById(R.id.subjectName); final ProgressBar progress = (ProgressBar) dialog.findViewById(R.id.progress); final User b = (User) getActivity().getApplicationContext(); Retrofit retrofit = new Retrofit.Builder() .baseUrl(b.baseURL) .addConverterFactory(ScalarsConverterFactory.create()) .addConverterFactory(GsonConverterFactory.create()) .build(); final AllAPIs cr = retrofit.create(AllAPIs.class); Call<ClassListbean> call = cr.classList(b.school_id); progress.setVisibility(View.VISIBLE); call.enqueue(new Callback<ClassListbean>() { @Override public void onResponse(Call<ClassListbean> call, Response<ClassListbean> response) { list1 = response.body().getClassList(); classlist.clear(); classId.clear(); for (int i = 0; i < response.body().getClassList().size(); i++) { classlist.add(response.body().getClassList().get(i).getClassName()); classId.add(response.body().getClassList().get(i).getClassId()); } ArrayAdapter<String> adp1 = new ArrayAdapter<String>(getContext(), android.R.layout.simple_list_item_1, classlist); adp1.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); className.setAdapter(adp1); ArrayAdapter<String> adp = new ArrayAdapter<String>(getContext(), android.R.layout.simple_list_item_1, sectionlist); adp.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); sectionName.setAdapter(adp); ArrayAdapter<String> adp2 = new ArrayAdapter<String>(getContext(), android.R.layout.simple_list_item_1, subjectlist); adp2.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); subjectName.setAdapter(adp2); progress.setVisibility(View.GONE); } @Override public void onFailure(Call<ClassListbean> call, Throwable throwable) { progress.setVisibility(View.GONE); } }); className.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() { @Override public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) { cId = classId.get(i); Retrofit retrofit = new Retrofit.Builder() .baseUrl(b.baseURL) .addConverterFactory(ScalarsConverterFactory.create()) .addConverterFactory(GsonConverterFactory.create()) .build(); AllAPIs cr = retrofit.create(AllAPIs.class); Call<SectionListbean> call2 = cr.sectionList(b.school_id, classId.get(i)); progress.setVisibility(View.VISIBLE); call2.enqueue(new Callback<SectionListbean>() { @Override public void onResponse(Call<SectionListbean> call, Response<SectionListbean> response) { listSection = response.body().getSectionList(); sectionlist.clear(); sectionid.clear(); for (int i = 0; i < response.body().getSectionList().size(); i++) { sectionlist.add(response.body().getSectionList().get(i).getSectionName()); sectionid.add(response.body().getSectionList().get(i).getSectionId()); } ArrayAdapter<String> adp = new ArrayAdapter<String>(getContext(), android.R.layout.simple_list_item_1, sectionlist); adp.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); sectionName.setAdapter(adp); Log.d("Cid", String.valueOf(cId)); progress.setVisibility(View.GONE); } @Override public void onFailure(Call<SectionListbean> call, Throwable throwable) { progress.setVisibility(View.GONE); } }); } @Override public void onNothingSelected(AdapterView<?> adapterView) { } }); sectionName.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() { @Override public void onItemSelected(AdapterView<?> adapterView, View view, final int i, long l) { sId = sectionid.get(i); Retrofit retrofit = new Retrofit.Builder() .baseUrl(b.baseURL) .addConverterFactory(ScalarsConverterFactory.create()) .addConverterFactory(GsonConverterFactory.create()) .build(); final AllAPIs cr = retrofit.create(AllAPIs.class); Call<SectionListbean> call2 = cr.sectionList(b.school_id, classId.get(i)); progress.setVisibility(View.VISIBLE); call2.enqueue(new Callback<SectionListbean>() { @Override public void onResponse(Call<SectionListbean> call, Response<SectionListbean> response) { Retrofit retrofit = new Retrofit.Builder() .baseUrl(b.baseURL) .addConverterFactory(ScalarsConverterFactory.create()) .addConverterFactory(GsonConverterFactory.create()) .build(); AllAPIs cr = retrofit.create(AllAPIs.class); Call<SubjectListBean> call1 = cr.subjectList(b.school_id, classId.get(i),sectionid.get(i)); progress.setVisibility(View.VISIBLE); call1.enqueue(new Callback<SubjectListBean>() { @Override public void onResponse(Call<SubjectListBean> call, Response<SubjectListBean> response) { listSubject = response.body().getSubjectList(); subjectlist.clear(); subjectId.clear(); for (int i = 0; i < response.body().getSubjectList().size(); i++) { subjectlist.add(response.body().getSubjectList().get(i).getSubjectName()); subjectId.add(response.body().getSubjectList().get(i).getSubjectId()); } ArrayAdapter<String> adp = new ArrayAdapter<String>(getContext(), android.R.layout.simple_list_item_1, subjectlist); adp.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); subjectName.setAdapter(adp); progress.setVisibility(View.GONE); } @Override public void onFailure(Call<SubjectListBean> call, Throwable throwable) { progress.setVisibility(View.GONE); } }); progress.setVisibility(View.GONE); } @Override public void onFailure(Call<SectionListbean> call, Throwable throwable) { progress.setVisibility(View.GONE); } }); } @Override public void onNothingSelected(AdapterView<?> adapterView) { } }); subjectName.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() { @Override public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) { ssId = subjectId.get(i); } @Override public void onNothingSelected(AdapterView<?> adapterView) { } }); submit.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { if (isFirst == true) { Toast.makeText(getActivity(), "Select Class, Section and Subject. ", Toast.LENGTH_SHORT).show(); } else { Retrofit retrofit = new Retrofit.Builder() .baseUrl(b.baseURL) .addConverterFactory(ScalarsConverterFactory.create()) .addConverterFactory(GsonConverterFactory.create()) .build(); AllAPIs cr = retrofit.create(AllAPIs.class); progress.setVisibility(View.VISIBLE); Log.d("iddd", String.valueOf(sId)); Call<HomewrkListbean> call = cr.homwwrk_list(b.school_id, b.user_id, cId, sId, ssId); call.enqueue(new Callback<HomewrkListbean>() { @Override public void onResponse(Call<HomewrkListbean> call, Response<HomewrkListbean> response) { dialog.dismiss(); progress.setVisibility(View.GONE); adapter.setGridData(response.body().getHomeworkList()); adapter.notifyDataSetChanged(); isSearch = true; onResume(); } @Override public void onFailure(Call<HomewrkListbean> call, Throwable throwable) { progress.setVisibility(View.GONE); } }); } } }); dialog.show(); } }); return view; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.wallpager_layout, null);\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_invit_friends, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_zhuye, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_posts, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.ilustration_fragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_sow_drug_cost_per_week, container, false);\n\n db = new DataBaseAdapter(getActivity());\n hc = new HelperClass();\n pop = new FeedSowsFragment();\n\n infltr = (LayoutInflater) getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n parent = (LinearLayout) v.findViewById(R.id.layout_for_add);\n tvTotalCost = (TextView) v.findViewById(R.id.totalCost);\n\n getData();\n setData();\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_stream_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_event, container, false);\n\n\n\n\n\n\n\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_feed, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.screen_select_list_student, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_overall, container, false);\n mNamesLayout = (LinearLayout) rootView.findViewById(R.id.fragment_overall_names_layout);\n mOverallView = (OverallView) rootView.findViewById(R.id.fragment_overall_view);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n\n\n view = inflater.inflate(R.layout.fragment_earning_fragmant, container, false);\n ini(view);\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n super.onCreateView(inflater, container, savedInstanceState);\n final View rootview = inflater.inflate(R.layout.activity_email_frag, container, false);\n ConfigInnerElements(rootview);\n return rootview;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\trootView = inflater.inflate(R.layout.fragment_attack_armor, container, false);\r\n\r\n\t\tfindInterfaceElements();\r\n\t\taddRangeSelector();\r\n\t\tupdateHeadings();\r\n\t\tsetListeners();\r\n\r\n\t\tsetFromData();\r\n\r\n\t\treturn rootView;\r\n\t}", "@SuppressLint(\"InflateParams\")\r\n\t@Override\r\n\tpublic View initLayout(LayoutInflater inflater) {\n\t\tView view = inflater.inflate(R.layout.frag_customer_all, null);\r\n\t\treturn view;\r\n\t}", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_fore_cast, container, false);\r\n initView();\r\n mainLayout.setVisibility(View.GONE);\r\n apiInterface = RestClinet.getClient().create(ApiInterface.class);\r\n loadData();\r\n return view;\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_friend, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_detail, container, false);\n image = rootView.findViewById(R.id.fr_image);\n name = rootView.findViewById(R.id.fr_name);\n phoneNumber = rootView.findViewById(R.id.fr_phone_number);\n email = rootView.findViewById(R.id.fr_email);\n street = rootView.findViewById(R.id.fr_street);\n city = rootView.findViewById(R.id.fr_city);\n state = rootView.findViewById(R.id.fr_state);\n zipcode = rootView.findViewById(R.id.fr_zipcode);\n dBrith = rootView.findViewById(R.id.date_brith);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_pm25, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_kkbox_playlist, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_feed_pager, container, false);\n\n// loadData();\n\n findViews(rootView);\n\n setViews();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n layout = (FrameLayout) inflater.inflate(R.layout.fragment_actualites, container, false);\n\n relLayout = (RelativeLayout) layout.findViewById(R.id.relLayoutActus);\n\n initListView();\n getXMLData();\n\n return layout;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.frag_post_prayer_video, container, false);\n setCustomDesign();\n setCustomClickListeners();\n return rootView;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.lf_em4305_fragment, container, false);\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_recordings, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_category, container, false);\n initView(view);\n bindRefreshListener();\n loadParams();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_cm_box_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_layout12, container, false);\n\n iniv();\n\n init();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_details, container, false);\n //return inflater.inflate(R.layout.fragment_details, container, false);\n getIntentValues();\n initViews();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_mem_body_blood, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_qiugouxiaoxi, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_coll_blank, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_attendance_divide, container, false);\n\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.show_program_fragment, parent, false);\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container,\n @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.visualization_fragment, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_category_details_page, container, false);\n initializeAll();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View v = inflater.inflate(R.layout.fragemnt_reserve, container, false);\n\n\n\n\n return v;\n }", "protected int getLayoutResId() {\n return R.layout.activity_fragment;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_quizs, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n role = getArguments().getInt(\"role\");\n rootview = inflater.inflate(R.layout.fragment_application, container, false);\n layout = rootview.findViewById(R.id.patentDetails);\n progressBar = rootview.findViewById(R.id.progressBar);\n try {\n run();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return rootview;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tview = inflater.inflate(R.layout.fragment_zhu, null);\n\t\tinitView();\n\t\tinitData();\n\t\treturn view;\n\t}", "@Override\n\t\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n\t\t{\n\t\t\tView rootView = inflater.inflate(R.layout.maimfragment, container, false);\n\t\t\treturn rootView;\n\t\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n return inflater.inflate(R.layout.fragment__record__week, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_porishongkhan, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_dashboard, container, false);\n resultsRv = view.findViewById(R.id.db_results_rv);\n resultText = view.findViewById(R.id.db_search_empty);\n progressBar = view.findViewById(R.id.db_progressbar);\n lastVisitText = view.findViewById(R.id.db_last_visit);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(getLayoutId(), container, false);\n init(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_feedback, container, false);\n self = getActivity();\n initUI(view);\n initControlUI();\n initData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_service_summery, container, false);\n tvVoiceMS = v.findViewById(R.id.tvVoiceValue);\n tvDataMS = v.findViewById(R.id.tvdataValue);\n tvSMSMS = v.findViewById(R.id.tvSMSValue);\n tvVoiceFL = v.findViewById(R.id.tvVoiceFLValue);\n tvDataBS = v.findViewById(R.id.tvDataBRValue);\n tvTotal = v.findViewById(R.id.tvTotalAccountvalue);\n return v;\n }", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_clan_rank_details, container, false);\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_star_wars_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_lei, container, false);\n\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_quotation, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_wode_ragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n\n\n\n\n\n return inflater.inflate(R.layout.fragment_appoint_list, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n if (rootView == null) {\n rootView = inflater.inflate(R.layout.fragment_ip_info, container, false);\n initView();\n }\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_offer, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_rooms, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.fragment_img_eva, container, false);\n\n getSendData();\n\n initView(view);\n\n initData();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_project_collection, container, false);\n ButterKnife.bind(this, view);\n fragment = this;\n initView();\n getCollectionType();\n // getCategoryList();\n initBroadcastReceiver();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_yzm, container, false);\n initView(view);\n return view;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tmainLayout = inflater.inflate(R.layout.fragment_play, container, false);\r\n\t\treturn mainLayout;\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_invite_request, container, false);\n initialiseVariables();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n getLocationPermission();\n return inflater.inflate(R.layout.centrum_fragment, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_habit_type_details, container, false);\n\n habitTitle = rootView.findViewById(R.id.textViewTitle);\n habitReason = rootView.findViewById(R.id.textViewReason);\n habitStartDate = rootView.findViewById(R.id.textViewStartDate);\n habitWeeklyPlan = rootView.findViewById(R.id.textViewWeeklyPlan);\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_information_friends4, container, false);\n\n if (getArguments() != null) {\n FriendsID = getArguments().getString(\"keyFriends\");\n }\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_post_details, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hotel, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_bus_inquiry, container, false);\n initView();\n initData();\n initDialog();\n getDataFromNet();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_weather, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_srgl, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_ground_detail_frgment, container, false);\n init();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_book_appointment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_wheretogo, container, false);\n ids();\n setup();\n click();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n binding = DataBindingUtil\n .inflate(inflater, R.layout.fragment_learning_leaders, container, false);\n init();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_end_game_tab, container, false);\n\n setupWidgets();\n setupTextFields(view);\n setupSpinners(view);\n\n // Inflate the layout for this fragment\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.memoir_fragment, container, false);\n\n getUserIdFromSharedPref();\n configureUI(view);\n configureSortSpinner();\n configureFilterSpinner();\n\n networkConnection = new NetworkConnection();\n new GetAllMemoirTask().execute();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_jadwal, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_delivery_detail, container, false);\n initialise();\n\n\n\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_4, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_product, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_group_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment06_7, container, false);\n initView(view);\n setLegend();\n setXAxis();\n setYAxis();\n setData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_downloadables, container, false);\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.movie_list_fragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_like, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hall, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_unit_main, container, false);\n TextView mTxvBusinessAassistant = (TextView) view.findViewById(R.id.txv_business_assistant);\n TextView mTxvCardINformation = (TextView) view.findViewById(R.id.txv_card_information);\n RelativeLayout mRelOfficialWebsite = (RelativeLayout) view.findViewById(R.id.rel_official_website);\n RelativeLayout mRelPictureAblum = (RelativeLayout) view.findViewById(R.id.rel_picture_album);\n TextView mTxvQrCodeCard = (TextView) view.findViewById(R.id.txv_qr_code_card);\n TextView mTxvShareCard = (TextView) view.findViewById(R.id.txv_share_card);\n mTxvBusinessAassistant.setOnClickListener(this.mOnClickListener);\n mTxvCardINformation.setOnClickListener(this.mOnClickListener);\n mRelOfficialWebsite.setOnClickListener(this.mOnClickListener);\n mRelPictureAblum.setOnClickListener(this.mOnClickListener);\n mTxvQrCodeCard.setOnClickListener(this.mOnClickListener);\n mTxvShareCard.setOnClickListener(this.mOnClickListener);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_moviespage, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_s, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_overview, container, false);\n\n initOverviewComponents(view);\n registerListeners();\n initTagListener();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_bahan_ajar, container, false);\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n root = (ViewGroup) inflater.inflate(R.layout.money_main, container, false);\n context = getActivity();\n initHeaderView(root);\n initView(root);\n\n getDate();\n initEvetn();\n return root;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_historical_event, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_event_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_video, container, false);\n unbinder = ButterKnife.bind(this, view);\n initView();\n initData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n v= inflater.inflate(R.layout.fragment_post_contacts, container, false);\n this.mapping(v);\n return v;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_measures, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_feed, container, false);\n findViews(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_surah_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_data_binded, container, false);\n }" ]
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.6625158", "0.66195583", "0.66164845", "0.6608733", "0.6596594", "0.65928894", "0.6585293", "0.65842897", "0.65730995", "0.6571248", "0.6569152", "0.65689117", "0.656853", "0.6566686", "0.65652984", "0.6553419", "0.65525705", "0.65432084", "0.6542382", "0.65411425", "0.6538022", "0.65366334", "0.65355957", "0.6535043", "0.65329415", "0.65311074", "0.65310687", "0.6528645", "0.65277404", "0.6525902", "0.6524516", "0.6524048", "0.65232015", "0.65224624", "0.65185034", "0.65130377", "0.6512968", "0.65122765", "0.65116245", "0.65106046", "0.65103024", "0.6509013", "0.65088093", "0.6508651", "0.6508225", "0.6504662", "0.650149", "0.65011525", "0.6500686", "0.64974767", "0.64935696", "0.6492234", "0.6490034", "0.6487609", "0.6487216", "0.64872116", "0.6486594", "0.64861935", "0.6486018", "0.6484269", "0.648366", "0.6481476", "0.6481086", "0.6480985", "0.6480396", "0.64797544", "0.647696", "0.64758915", "0.6475649", "0.6474114", "0.6474004", "0.6470706", "0.6470275", "0.64702207", "0.6470039", "0.6467449", "0.646602", "0.6462256", "0.64617974", "0.6461681", "0.6461214" ]
0.0
-1
Creates a new async stub that supports all call types for the service
public static DoctorServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory<DoctorServiceStub> factory = new io.grpc.stub.AbstractStub.StubFactory<DoctorServiceStub>() { @java.lang.Override public DoctorServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new DoctorServiceStub(channel, callOptions); } }; return DoctorServiceStub.newStub(factory, channel); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Stub createStub();", "public interface GenerateResourceServiceAsync {\n /**\n * {@link GenerateResourceServiceImpl#generateTSDPattern(long,boolean)}\n */\n void generateTSDPattern(long settingFileId, boolean isCreateFile, AsyncCallback<VMFile> callback) throws IllegalArgumentException;\n\n /**\n * {@link GenerateResourceServiceImpl#generateBehaviorPattern(long,boolean)}\n */\n void generateBehaviorPattern(long settingFileId, boolean isCreateFile, AsyncCallback<VMFile> callback) throws IllegalArgumentException;\n\n /**\n * {@link GenerateResourceServiceImpl#generateScenarioSet(long, boolean)}\n */\n void generateScenarioSet(long settingFileId, boolean isCreateFile, AsyncCallback<VMFile> callback) throws IllegalArgumentException;\n\n /**\n * {@link GenerateResourceServiceImpl#generateConcreteScenarioSet(long, byte[])}\n */\n void generateConcreteScenarioSet(long settingFileId, byte[] pattern, AsyncCallback<VMFile> callback) throws IllegalArgumentException;\n\n /**\n * {@link GenerateResourceServiceImpl#getPartOfFileContent(long, long, long, long)}\n */\n void getPartOfFileContent(long projectId, long fileId, long startRecordOffset, long recordCount, AsyncCallback<byte[]> callback) throws IllegalArgumentException;\n\n /**\n * {@link GenerateResourceServiceImpl#getPartOfFileContent(long, long, long, String)}\n */\n void getPartOfFileContent(long projectId, long fileId, long patternId, String generationHash, AsyncCallback<byte[]> callback) throws IllegalArgumentException;\n\n /**\n * {@link GenerateResourceServiceImpl#getSettingFileJobStatusList(long, long)}\n */\n void getSettingFileJobStatusList(long fileId, long projectId, AsyncCallback<List<JobStatusInfo>> callback) throws IllegalArgumentException;\n\n}", "public interface AsyncService {\n\n /**\n *\n *\n * <pre>\n * Creates a new [AzureClient][google.cloud.gkemulticloud.v1.AzureClient]\n * resource on a given Google Cloud project and region.\n * `AzureClient` resources hold client authentication\n * information needed by the Anthos Multicloud API to manage Azure resources\n * on your Azure subscription on your behalf.\n * If successful, the response contains a newly created\n * [Operation][google.longrunning.Operation] resource that can be\n * described to track the status of the operation.\n * </pre>\n */\n default void createAzureClient(\n com.google.cloud.gkemulticloud.v1.CreateAzureClientRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getCreateAzureClientMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Describes a specific\n * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource.\n * </pre>\n */\n default void getAzureClient(\n com.google.cloud.gkemulticloud.v1.GetAzureClientRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.gkemulticloud.v1.AzureClient>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGetAzureClientMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Lists all [AzureClient][google.cloud.gkemulticloud.v1.AzureClient]\n * resources on a given Google Cloud project and region.\n * </pre>\n */\n default void listAzureClients(\n com.google.cloud.gkemulticloud.v1.ListAzureClientsRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.gkemulticloud.v1.ListAzureClientsResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getListAzureClientsMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Deletes a specific [AzureClient][google.cloud.gkemulticloud.v1.AzureClient]\n * resource.\n * If the client is used by one or more clusters, deletion will\n * fail and a `FAILED_PRECONDITION` error will be returned.\n * If successful, the response contains a newly created\n * [Operation][google.longrunning.Operation] resource that can be\n * described to track the status of the operation.\n * </pre>\n */\n default void deleteAzureClient(\n com.google.cloud.gkemulticloud.v1.DeleteAzureClientRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getDeleteAzureClientMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Creates a new [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]\n * resource on a given Google Cloud Platform project and region.\n * If successful, the response contains a newly created\n * [Operation][google.longrunning.Operation] resource that can be\n * described to track the status of the operation.\n * </pre>\n */\n default void createAzureCluster(\n com.google.cloud.gkemulticloud.v1.CreateAzureClusterRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getCreateAzureClusterMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Updates an [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster].\n * </pre>\n */\n default void updateAzureCluster(\n com.google.cloud.gkemulticloud.v1.UpdateAzureClusterRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getUpdateAzureClusterMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Describes a specific\n * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource.\n * </pre>\n */\n default void getAzureCluster(\n com.google.cloud.gkemulticloud.v1.GetAzureClusterRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.gkemulticloud.v1.AzureCluster>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGetAzureClusterMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Lists all [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]\n * resources on a given Google Cloud project and region.\n * </pre>\n */\n default void listAzureClusters(\n com.google.cloud.gkemulticloud.v1.ListAzureClustersRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.gkemulticloud.v1.ListAzureClustersResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getListAzureClustersMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Deletes a specific\n * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource.\n * Fails if the cluster has one or more associated\n * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources.\n * If successful, the response contains a newly created\n * [Operation][google.longrunning.Operation] resource that can be\n * described to track the status of the operation.\n * </pre>\n */\n default void deleteAzureCluster(\n com.google.cloud.gkemulticloud.v1.DeleteAzureClusterRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getDeleteAzureClusterMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Generates a short-lived access token to authenticate to a given\n * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource.\n * </pre>\n */\n default void generateAzureAccessToken(\n com.google.cloud.gkemulticloud.v1.GenerateAzureAccessTokenRequest request,\n io.grpc.stub.StreamObserver<\n com.google.cloud.gkemulticloud.v1.GenerateAzureAccessTokenResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGenerateAzureAccessTokenMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Creates a new [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool],\n * attached to a given\n * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster].\n * If successful, the response contains a newly created\n * [Operation][google.longrunning.Operation] resource that can be\n * described to track the status of the operation.\n * </pre>\n */\n default void createAzureNodePool(\n com.google.cloud.gkemulticloud.v1.CreateAzureNodePoolRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getCreateAzureNodePoolMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Updates an [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool].\n * </pre>\n */\n default void updateAzureNodePool(\n com.google.cloud.gkemulticloud.v1.UpdateAzureNodePoolRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getUpdateAzureNodePoolMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Describes a specific\n * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource.\n * </pre>\n */\n default void getAzureNodePool(\n com.google.cloud.gkemulticloud.v1.GetAzureNodePoolRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.gkemulticloud.v1.AzureNodePool>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGetAzureNodePoolMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Lists all [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]\n * resources on a given\n * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster].\n * </pre>\n */\n default void listAzureNodePools(\n com.google.cloud.gkemulticloud.v1.ListAzureNodePoolsRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.gkemulticloud.v1.ListAzureNodePoolsResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getListAzureNodePoolsMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Deletes a specific\n * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource.\n * If successful, the response contains a newly created\n * [Operation][google.longrunning.Operation] resource that can be\n * described to track the status of the operation.\n * </pre>\n */\n default void deleteAzureNodePool(\n com.google.cloud.gkemulticloud.v1.DeleteAzureNodePoolRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getDeleteAzureNodePoolMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Returns information, such as supported Azure regions and Kubernetes\n * versions, on a given Google Cloud location.\n * </pre>\n */\n default void getAzureServerConfig(\n com.google.cloud.gkemulticloud.v1.GetAzureServerConfigRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.gkemulticloud.v1.AzureServerConfig>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGetAzureServerConfigMethod(), responseObserver);\n }\n }", "public interface AsyncService {\n\n /**\n *\n *\n * <pre>\n * Lists nodes.\n * </pre>\n */\n default void listNodes(\n com.google.cloud.tpu.v2alpha1.ListNodesRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.tpu.v2alpha1.ListNodesResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListNodesMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Gets the details of a node.\n * </pre>\n */\n default void getNode(\n com.google.cloud.tpu.v2alpha1.GetNodeRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.tpu.v2alpha1.Node> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetNodeMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Creates a node.\n * </pre>\n */\n default void createNode(\n com.google.cloud.tpu.v2alpha1.CreateNodeRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateNodeMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Deletes a node.\n * </pre>\n */\n default void deleteNode(\n com.google.cloud.tpu.v2alpha1.DeleteNodeRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteNodeMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Stops a node. This operation is only available with single TPU nodes.\n * </pre>\n */\n default void stopNode(\n com.google.cloud.tpu.v2alpha1.StopNodeRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStopNodeMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Starts a node.\n * </pre>\n */\n default void startNode(\n com.google.cloud.tpu.v2alpha1.StartNodeRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStartNodeMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Updates the configurations of a node.\n * </pre>\n */\n default void updateNode(\n com.google.cloud.tpu.v2alpha1.UpdateNodeRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateNodeMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Lists queued resources.\n * </pre>\n */\n default void listQueuedResources(\n com.google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.tpu.v2alpha1.ListQueuedResourcesResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getListQueuedResourcesMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Gets details of a queued resource.\n * </pre>\n */\n default void getQueuedResource(\n com.google.cloud.tpu.v2alpha1.GetQueuedResourceRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.tpu.v2alpha1.QueuedResource>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGetQueuedResourceMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Creates a QueuedResource TPU instance.\n * </pre>\n */\n default void createQueuedResource(\n com.google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getCreateQueuedResourceMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Deletes a QueuedResource TPU instance.\n * </pre>\n */\n default void deleteQueuedResource(\n com.google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getDeleteQueuedResourceMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Resets a QueuedResource TPU instance\n * </pre>\n */\n default void resetQueuedResource(\n com.google.cloud.tpu.v2alpha1.ResetQueuedResourceRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getResetQueuedResourceMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Generates the Cloud TPU service identity for the project.\n * </pre>\n */\n default void generateServiceIdentity(\n com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGenerateServiceIdentityMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Lists accelerator types supported by this API.\n * </pre>\n */\n default void listAcceleratorTypes(\n com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getListAcceleratorTypesMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Gets AcceleratorType.\n * </pre>\n */\n default void getAcceleratorType(\n com.google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.tpu.v2alpha1.AcceleratorType>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGetAcceleratorTypeMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Lists runtime versions supported by this API.\n * </pre>\n */\n default void listRuntimeVersions(\n com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getListRuntimeVersionsMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Gets a runtime version.\n * </pre>\n */\n default void getRuntimeVersion(\n com.google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.tpu.v2alpha1.RuntimeVersion>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGetRuntimeVersionMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Retrieves the guest attributes for the node.\n * </pre>\n */\n default void getGuestAttributes(\n com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.tpu.v2alpha1.GetGuestAttributesResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGetGuestAttributesMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Simulates a maintenance event.\n * </pre>\n */\n default void simulateMaintenanceEvent(\n com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getSimulateMaintenanceEventMethod(), responseObserver);\n }\n }", "public interface AsyncService {\n\n /**\n *\n *\n * <pre>\n * Creates a namespace, and returns the new namespace.\n * </pre>\n */\n default void createNamespace(\n com.google.cloud.servicedirectory.v1beta1.CreateNamespaceRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.servicedirectory.v1beta1.Namespace>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getCreateNamespaceMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Lists all namespaces.\n * </pre>\n */\n default void listNamespaces(\n com.google.cloud.servicedirectory.v1beta1.ListNamespacesRequest request,\n io.grpc.stub.StreamObserver<\n com.google.cloud.servicedirectory.v1beta1.ListNamespacesResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getListNamespacesMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Gets a namespace.\n * </pre>\n */\n default void getNamespace(\n com.google.cloud.servicedirectory.v1beta1.GetNamespaceRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.servicedirectory.v1beta1.Namespace>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGetNamespaceMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Updates a namespace.\n * </pre>\n */\n default void updateNamespace(\n com.google.cloud.servicedirectory.v1beta1.UpdateNamespaceRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.servicedirectory.v1beta1.Namespace>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getUpdateNamespaceMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Deletes a namespace. This also deletes all services and endpoints in\n * the namespace.\n * </pre>\n */\n default void deleteNamespace(\n com.google.cloud.servicedirectory.v1beta1.DeleteNamespaceRequest request,\n io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getDeleteNamespaceMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Creates a service, and returns the new service.\n * </pre>\n */\n default void createService(\n com.google.cloud.servicedirectory.v1beta1.CreateServiceRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.servicedirectory.v1beta1.Service>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getCreateServiceMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Lists all services belonging to a namespace.\n * </pre>\n */\n default void listServices(\n com.google.cloud.servicedirectory.v1beta1.ListServicesRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.servicedirectory.v1beta1.ListServicesResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getListServicesMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Gets a service.\n * </pre>\n */\n default void getService(\n com.google.cloud.servicedirectory.v1beta1.GetServiceRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.servicedirectory.v1beta1.Service>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetServiceMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Updates a service.\n * </pre>\n */\n default void updateService(\n com.google.cloud.servicedirectory.v1beta1.UpdateServiceRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.servicedirectory.v1beta1.Service>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getUpdateServiceMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Deletes a service. This also deletes all endpoints associated with\n * the service.\n * </pre>\n */\n default void deleteService(\n com.google.cloud.servicedirectory.v1beta1.DeleteServiceRequest request,\n io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getDeleteServiceMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Creates an endpoint, and returns the new endpoint.\n * </pre>\n */\n default void createEndpoint(\n com.google.cloud.servicedirectory.v1beta1.CreateEndpointRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.servicedirectory.v1beta1.Endpoint>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getCreateEndpointMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Lists all endpoints.\n * </pre>\n */\n default void listEndpoints(\n com.google.cloud.servicedirectory.v1beta1.ListEndpointsRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.servicedirectory.v1beta1.ListEndpointsResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getListEndpointsMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Gets an endpoint.\n * </pre>\n */\n default void getEndpoint(\n com.google.cloud.servicedirectory.v1beta1.GetEndpointRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.servicedirectory.v1beta1.Endpoint>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGetEndpointMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Updates an endpoint.\n * </pre>\n */\n default void updateEndpoint(\n com.google.cloud.servicedirectory.v1beta1.UpdateEndpointRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.servicedirectory.v1beta1.Endpoint>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getUpdateEndpointMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Deletes an endpoint.\n * </pre>\n */\n default void deleteEndpoint(\n com.google.cloud.servicedirectory.v1beta1.DeleteEndpointRequest request,\n io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getDeleteEndpointMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Gets the IAM Policy for a resource\n * </pre>\n */\n default void getIamPolicy(\n com.google.iam.v1.GetIamPolicyRequest request,\n io.grpc.stub.StreamObserver<com.google.iam.v1.Policy> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGetIamPolicyMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Sets the IAM Policy for a resource\n * </pre>\n */\n default void setIamPolicy(\n com.google.iam.v1.SetIamPolicyRequest request,\n io.grpc.stub.StreamObserver<com.google.iam.v1.Policy> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getSetIamPolicyMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Tests IAM permissions for a resource (namespace, service or\n * service workload only).\n * </pre>\n */\n default void testIamPermissions(\n com.google.iam.v1.TestIamPermissionsRequest request,\n io.grpc.stub.StreamObserver<com.google.iam.v1.TestIamPermissionsResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getTestIamPermissionsMethod(), responseObserver);\n }\n }", "public static RaftServerProtocolServiceFutureStub newFutureStub(\n org.apache.ratis.shaded.io.grpc.Channel channel) {\n return new RaftServerProtocolServiceFutureStub(channel);\n }", "protected HttpJsonServicesStub(\n ServicesStubSettings settings,\n ClientContext clientContext,\n HttpJsonStubCallableFactory callableFactory)\n throws IOException {\n this.callableFactory = callableFactory;\n this.httpJsonOperationsStub =\n HttpJsonOperationsStub.create(\n clientContext,\n callableFactory,\n typeRegistry,\n ImmutableMap.<String, HttpRule>builder()\n .put(\n \"google.longrunning.Operations.GetOperation\",\n HttpRule.newBuilder().setGet(\"/v1/{name=apps/*/operations/*}\").build())\n .put(\n \"google.longrunning.Operations.ListOperations\",\n HttpRule.newBuilder().setGet(\"/v1/{name=apps/*}/operations\").build())\n .build());\n\n HttpJsonCallSettings<ListServicesRequest, ListServicesResponse> listServicesTransportSettings =\n HttpJsonCallSettings.<ListServicesRequest, ListServicesResponse>newBuilder()\n .setMethodDescriptor(listServicesMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"parent\", String.valueOf(request.getParent()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<GetServiceRequest, Service> getServiceTransportSettings =\n HttpJsonCallSettings.<GetServiceRequest, Service>newBuilder()\n .setMethodDescriptor(getServiceMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"name\", String.valueOf(request.getName()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<UpdateServiceRequest, Operation> updateServiceTransportSettings =\n HttpJsonCallSettings.<UpdateServiceRequest, Operation>newBuilder()\n .setMethodDescriptor(updateServiceMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"name\", String.valueOf(request.getName()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<DeleteServiceRequest, Operation> deleteServiceTransportSettings =\n HttpJsonCallSettings.<DeleteServiceRequest, Operation>newBuilder()\n .setMethodDescriptor(deleteServiceMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"name\", String.valueOf(request.getName()));\n return builder.build();\n })\n .build();\n\n this.listServicesCallable =\n callableFactory.createUnaryCallable(\n listServicesTransportSettings, settings.listServicesSettings(), clientContext);\n this.listServicesPagedCallable =\n callableFactory.createPagedCallable(\n listServicesTransportSettings, settings.listServicesSettings(), clientContext);\n this.getServiceCallable =\n callableFactory.createUnaryCallable(\n getServiceTransportSettings, settings.getServiceSettings(), clientContext);\n this.updateServiceCallable =\n callableFactory.createUnaryCallable(\n updateServiceTransportSettings, settings.updateServiceSettings(), clientContext);\n this.updateServiceOperationCallable =\n callableFactory.createOperationCallable(\n updateServiceTransportSettings,\n settings.updateServiceOperationSettings(),\n clientContext,\n httpJsonOperationsStub);\n this.deleteServiceCallable =\n callableFactory.createUnaryCallable(\n deleteServiceTransportSettings, settings.deleteServiceSettings(), clientContext);\n this.deleteServiceOperationCallable =\n callableFactory.createOperationCallable(\n deleteServiceTransportSettings,\n settings.deleteServiceOperationSettings(),\n clientContext,\n httpJsonOperationsStub);\n\n this.backgroundResources =\n new BackgroundResourceAggregation(clientContext.getBackgroundResources());\n }", "protected GrpcJobServiceStub(\n JobServiceStubSettings settings,\n ClientContext clientContext,\n GrpcStubCallableFactory callableFactory)\n throws IOException {\n this.callableFactory = callableFactory;\n this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory);\n\n GrpcCallSettings<CreateCustomJobRequest, CustomJob> createCustomJobTransportSettings =\n GrpcCallSettings.<CreateCustomJobRequest, CustomJob>newBuilder()\n .setMethodDescriptor(createCustomJobMethodDescriptor)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"parent\", String.valueOf(request.getParent()));\n return builder.build();\n })\n .build();\n GrpcCallSettings<GetCustomJobRequest, CustomJob> getCustomJobTransportSettings =\n GrpcCallSettings.<GetCustomJobRequest, CustomJob>newBuilder()\n .setMethodDescriptor(getCustomJobMethodDescriptor)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"name\", String.valueOf(request.getName()));\n return builder.build();\n })\n .build();\n GrpcCallSettings<ListCustomJobsRequest, ListCustomJobsResponse>\n listCustomJobsTransportSettings =\n GrpcCallSettings.<ListCustomJobsRequest, ListCustomJobsResponse>newBuilder()\n .setMethodDescriptor(listCustomJobsMethodDescriptor)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"parent\", String.valueOf(request.getParent()));\n return builder.build();\n })\n .build();\n GrpcCallSettings<DeleteCustomJobRequest, Operation> deleteCustomJobTransportSettings =\n GrpcCallSettings.<DeleteCustomJobRequest, Operation>newBuilder()\n .setMethodDescriptor(deleteCustomJobMethodDescriptor)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"name\", String.valueOf(request.getName()));\n return builder.build();\n })\n .build();\n GrpcCallSettings<CancelCustomJobRequest, Empty> cancelCustomJobTransportSettings =\n GrpcCallSettings.<CancelCustomJobRequest, Empty>newBuilder()\n .setMethodDescriptor(cancelCustomJobMethodDescriptor)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"name\", String.valueOf(request.getName()));\n return builder.build();\n })\n .build();\n GrpcCallSettings<CreateDataLabelingJobRequest, DataLabelingJob>\n createDataLabelingJobTransportSettings =\n GrpcCallSettings.<CreateDataLabelingJobRequest, DataLabelingJob>newBuilder()\n .setMethodDescriptor(createDataLabelingJobMethodDescriptor)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"parent\", String.valueOf(request.getParent()));\n return builder.build();\n })\n .build();\n GrpcCallSettings<GetDataLabelingJobRequest, DataLabelingJob>\n getDataLabelingJobTransportSettings =\n GrpcCallSettings.<GetDataLabelingJobRequest, DataLabelingJob>newBuilder()\n .setMethodDescriptor(getDataLabelingJobMethodDescriptor)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"name\", String.valueOf(request.getName()));\n return builder.build();\n })\n .build();\n GrpcCallSettings<ListDataLabelingJobsRequest, ListDataLabelingJobsResponse>\n listDataLabelingJobsTransportSettings =\n GrpcCallSettings.<ListDataLabelingJobsRequest, ListDataLabelingJobsResponse>newBuilder()\n .setMethodDescriptor(listDataLabelingJobsMethodDescriptor)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"parent\", String.valueOf(request.getParent()));\n return builder.build();\n })\n .build();\n GrpcCallSettings<DeleteDataLabelingJobRequest, Operation>\n deleteDataLabelingJobTransportSettings =\n GrpcCallSettings.<DeleteDataLabelingJobRequest, Operation>newBuilder()\n .setMethodDescriptor(deleteDataLabelingJobMethodDescriptor)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"name\", String.valueOf(request.getName()));\n return builder.build();\n })\n .build();\n GrpcCallSettings<CancelDataLabelingJobRequest, Empty> cancelDataLabelingJobTransportSettings =\n GrpcCallSettings.<CancelDataLabelingJobRequest, Empty>newBuilder()\n .setMethodDescriptor(cancelDataLabelingJobMethodDescriptor)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"name\", String.valueOf(request.getName()));\n return builder.build();\n })\n .build();\n GrpcCallSettings<CreateHyperparameterTuningJobRequest, HyperparameterTuningJob>\n createHyperparameterTuningJobTransportSettings =\n GrpcCallSettings\n .<CreateHyperparameterTuningJobRequest, HyperparameterTuningJob>newBuilder()\n .setMethodDescriptor(createHyperparameterTuningJobMethodDescriptor)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"parent\", String.valueOf(request.getParent()));\n return builder.build();\n })\n .build();\n GrpcCallSettings<GetHyperparameterTuningJobRequest, HyperparameterTuningJob>\n getHyperparameterTuningJobTransportSettings =\n GrpcCallSettings\n .<GetHyperparameterTuningJobRequest, HyperparameterTuningJob>newBuilder()\n .setMethodDescriptor(getHyperparameterTuningJobMethodDescriptor)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"name\", String.valueOf(request.getName()));\n return builder.build();\n })\n .build();\n GrpcCallSettings<ListHyperparameterTuningJobsRequest, ListHyperparameterTuningJobsResponse>\n listHyperparameterTuningJobsTransportSettings =\n GrpcCallSettings\n .<ListHyperparameterTuningJobsRequest, ListHyperparameterTuningJobsResponse>\n newBuilder()\n .setMethodDescriptor(listHyperparameterTuningJobsMethodDescriptor)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"parent\", String.valueOf(request.getParent()));\n return builder.build();\n })\n .build();\n GrpcCallSettings<DeleteHyperparameterTuningJobRequest, Operation>\n deleteHyperparameterTuningJobTransportSettings =\n GrpcCallSettings.<DeleteHyperparameterTuningJobRequest, Operation>newBuilder()\n .setMethodDescriptor(deleteHyperparameterTuningJobMethodDescriptor)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"name\", String.valueOf(request.getName()));\n return builder.build();\n })\n .build();\n GrpcCallSettings<CancelHyperparameterTuningJobRequest, Empty>\n cancelHyperparameterTuningJobTransportSettings =\n GrpcCallSettings.<CancelHyperparameterTuningJobRequest, Empty>newBuilder()\n .setMethodDescriptor(cancelHyperparameterTuningJobMethodDescriptor)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"name\", String.valueOf(request.getName()));\n return builder.build();\n })\n .build();\n GrpcCallSettings<CreateNasJobRequest, NasJob> createNasJobTransportSettings =\n GrpcCallSettings.<CreateNasJobRequest, NasJob>newBuilder()\n .setMethodDescriptor(createNasJobMethodDescriptor)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"parent\", String.valueOf(request.getParent()));\n return builder.build();\n })\n .build();\n GrpcCallSettings<GetNasJobRequest, NasJob> getNasJobTransportSettings =\n GrpcCallSettings.<GetNasJobRequest, NasJob>newBuilder()\n .setMethodDescriptor(getNasJobMethodDescriptor)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"name\", String.valueOf(request.getName()));\n return builder.build();\n })\n .build();\n GrpcCallSettings<ListNasJobsRequest, ListNasJobsResponse> listNasJobsTransportSettings =\n GrpcCallSettings.<ListNasJobsRequest, ListNasJobsResponse>newBuilder()\n .setMethodDescriptor(listNasJobsMethodDescriptor)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"parent\", String.valueOf(request.getParent()));\n return builder.build();\n })\n .build();\n GrpcCallSettings<DeleteNasJobRequest, Operation> deleteNasJobTransportSettings =\n GrpcCallSettings.<DeleteNasJobRequest, Operation>newBuilder()\n .setMethodDescriptor(deleteNasJobMethodDescriptor)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"name\", String.valueOf(request.getName()));\n return builder.build();\n })\n .build();\n GrpcCallSettings<CancelNasJobRequest, Empty> cancelNasJobTransportSettings =\n GrpcCallSettings.<CancelNasJobRequest, Empty>newBuilder()\n .setMethodDescriptor(cancelNasJobMethodDescriptor)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"name\", String.valueOf(request.getName()));\n return builder.build();\n })\n .build();\n GrpcCallSettings<GetNasTrialDetailRequest, NasTrialDetail> getNasTrialDetailTransportSettings =\n GrpcCallSettings.<GetNasTrialDetailRequest, NasTrialDetail>newBuilder()\n .setMethodDescriptor(getNasTrialDetailMethodDescriptor)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"name\", String.valueOf(request.getName()));\n return builder.build();\n })\n .build();\n GrpcCallSettings<ListNasTrialDetailsRequest, ListNasTrialDetailsResponse>\n listNasTrialDetailsTransportSettings =\n GrpcCallSettings.<ListNasTrialDetailsRequest, ListNasTrialDetailsResponse>newBuilder()\n .setMethodDescriptor(listNasTrialDetailsMethodDescriptor)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"parent\", String.valueOf(request.getParent()));\n return builder.build();\n })\n .build();\n GrpcCallSettings<CreateBatchPredictionJobRequest, BatchPredictionJob>\n createBatchPredictionJobTransportSettings =\n GrpcCallSettings.<CreateBatchPredictionJobRequest, BatchPredictionJob>newBuilder()\n .setMethodDescriptor(createBatchPredictionJobMethodDescriptor)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"parent\", String.valueOf(request.getParent()));\n return builder.build();\n })\n .build();\n GrpcCallSettings<GetBatchPredictionJobRequest, BatchPredictionJob>\n getBatchPredictionJobTransportSettings =\n GrpcCallSettings.<GetBatchPredictionJobRequest, BatchPredictionJob>newBuilder()\n .setMethodDescriptor(getBatchPredictionJobMethodDescriptor)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"name\", String.valueOf(request.getName()));\n return builder.build();\n })\n .build();\n GrpcCallSettings<ListBatchPredictionJobsRequest, ListBatchPredictionJobsResponse>\n listBatchPredictionJobsTransportSettings =\n GrpcCallSettings\n .<ListBatchPredictionJobsRequest, ListBatchPredictionJobsResponse>newBuilder()\n .setMethodDescriptor(listBatchPredictionJobsMethodDescriptor)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"parent\", String.valueOf(request.getParent()));\n return builder.build();\n })\n .build();\n GrpcCallSettings<DeleteBatchPredictionJobRequest, Operation>\n deleteBatchPredictionJobTransportSettings =\n GrpcCallSettings.<DeleteBatchPredictionJobRequest, Operation>newBuilder()\n .setMethodDescriptor(deleteBatchPredictionJobMethodDescriptor)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"name\", String.valueOf(request.getName()));\n return builder.build();\n })\n .build();\n GrpcCallSettings<CancelBatchPredictionJobRequest, Empty>\n cancelBatchPredictionJobTransportSettings =\n GrpcCallSettings.<CancelBatchPredictionJobRequest, Empty>newBuilder()\n .setMethodDescriptor(cancelBatchPredictionJobMethodDescriptor)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"name\", String.valueOf(request.getName()));\n return builder.build();\n })\n .build();\n GrpcCallSettings<CreateModelDeploymentMonitoringJobRequest, ModelDeploymentMonitoringJob>\n createModelDeploymentMonitoringJobTransportSettings =\n GrpcCallSettings\n .<CreateModelDeploymentMonitoringJobRequest, ModelDeploymentMonitoringJob>\n newBuilder()\n .setMethodDescriptor(createModelDeploymentMonitoringJobMethodDescriptor)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"parent\", String.valueOf(request.getParent()));\n return builder.build();\n })\n .build();\n GrpcCallSettings<\n SearchModelDeploymentMonitoringStatsAnomaliesRequest,\n SearchModelDeploymentMonitoringStatsAnomaliesResponse>\n searchModelDeploymentMonitoringStatsAnomaliesTransportSettings =\n GrpcCallSettings\n .<SearchModelDeploymentMonitoringStatsAnomaliesRequest,\n SearchModelDeploymentMonitoringStatsAnomaliesResponse>\n newBuilder()\n .setMethodDescriptor(searchModelDeploymentMonitoringStatsAnomaliesMethodDescriptor)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\n \"model_deployment_monitoring_job\",\n String.valueOf(request.getModelDeploymentMonitoringJob()));\n return builder.build();\n })\n .build();\n GrpcCallSettings<GetModelDeploymentMonitoringJobRequest, ModelDeploymentMonitoringJob>\n getModelDeploymentMonitoringJobTransportSettings =\n GrpcCallSettings\n .<GetModelDeploymentMonitoringJobRequest, ModelDeploymentMonitoringJob>newBuilder()\n .setMethodDescriptor(getModelDeploymentMonitoringJobMethodDescriptor)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"name\", String.valueOf(request.getName()));\n return builder.build();\n })\n .build();\n GrpcCallSettings<\n ListModelDeploymentMonitoringJobsRequest, ListModelDeploymentMonitoringJobsResponse>\n listModelDeploymentMonitoringJobsTransportSettings =\n GrpcCallSettings\n .<ListModelDeploymentMonitoringJobsRequest,\n ListModelDeploymentMonitoringJobsResponse>\n newBuilder()\n .setMethodDescriptor(listModelDeploymentMonitoringJobsMethodDescriptor)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"parent\", String.valueOf(request.getParent()));\n return builder.build();\n })\n .build();\n GrpcCallSettings<UpdateModelDeploymentMonitoringJobRequest, Operation>\n updateModelDeploymentMonitoringJobTransportSettings =\n GrpcCallSettings.<UpdateModelDeploymentMonitoringJobRequest, Operation>newBuilder()\n .setMethodDescriptor(updateModelDeploymentMonitoringJobMethodDescriptor)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\n \"model_deployment_monitoring_job.name\",\n String.valueOf(request.getModelDeploymentMonitoringJob().getName()));\n return builder.build();\n })\n .build();\n GrpcCallSettings<DeleteModelDeploymentMonitoringJobRequest, Operation>\n deleteModelDeploymentMonitoringJobTransportSettings =\n GrpcCallSettings.<DeleteModelDeploymentMonitoringJobRequest, Operation>newBuilder()\n .setMethodDescriptor(deleteModelDeploymentMonitoringJobMethodDescriptor)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"name\", String.valueOf(request.getName()));\n return builder.build();\n })\n .build();\n GrpcCallSettings<PauseModelDeploymentMonitoringJobRequest, Empty>\n pauseModelDeploymentMonitoringJobTransportSettings =\n GrpcCallSettings.<PauseModelDeploymentMonitoringJobRequest, Empty>newBuilder()\n .setMethodDescriptor(pauseModelDeploymentMonitoringJobMethodDescriptor)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"name\", String.valueOf(request.getName()));\n return builder.build();\n })\n .build();\n GrpcCallSettings<ResumeModelDeploymentMonitoringJobRequest, Empty>\n resumeModelDeploymentMonitoringJobTransportSettings =\n GrpcCallSettings.<ResumeModelDeploymentMonitoringJobRequest, Empty>newBuilder()\n .setMethodDescriptor(resumeModelDeploymentMonitoringJobMethodDescriptor)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"name\", String.valueOf(request.getName()));\n return builder.build();\n })\n .build();\n GrpcCallSettings<ListLocationsRequest, ListLocationsResponse> listLocationsTransportSettings =\n GrpcCallSettings.<ListLocationsRequest, ListLocationsResponse>newBuilder()\n .setMethodDescriptor(listLocationsMethodDescriptor)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"name\", String.valueOf(request.getName()));\n return builder.build();\n })\n .build();\n GrpcCallSettings<GetLocationRequest, Location> getLocationTransportSettings =\n GrpcCallSettings.<GetLocationRequest, Location>newBuilder()\n .setMethodDescriptor(getLocationMethodDescriptor)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"name\", String.valueOf(request.getName()));\n return builder.build();\n })\n .build();\n GrpcCallSettings<SetIamPolicyRequest, Policy> setIamPolicyTransportSettings =\n GrpcCallSettings.<SetIamPolicyRequest, Policy>newBuilder()\n .setMethodDescriptor(setIamPolicyMethodDescriptor)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"resource\", String.valueOf(request.getResource()));\n return builder.build();\n })\n .build();\n GrpcCallSettings<GetIamPolicyRequest, Policy> getIamPolicyTransportSettings =\n GrpcCallSettings.<GetIamPolicyRequest, Policy>newBuilder()\n .setMethodDescriptor(getIamPolicyMethodDescriptor)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"resource\", String.valueOf(request.getResource()));\n return builder.build();\n })\n .build();\n GrpcCallSettings<TestIamPermissionsRequest, TestIamPermissionsResponse>\n testIamPermissionsTransportSettings =\n GrpcCallSettings.<TestIamPermissionsRequest, TestIamPermissionsResponse>newBuilder()\n .setMethodDescriptor(testIamPermissionsMethodDescriptor)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"resource\", String.valueOf(request.getResource()));\n return builder.build();\n })\n .build();\n\n this.createCustomJobCallable =\n callableFactory.createUnaryCallable(\n createCustomJobTransportSettings, settings.createCustomJobSettings(), clientContext);\n this.getCustomJobCallable =\n callableFactory.createUnaryCallable(\n getCustomJobTransportSettings, settings.getCustomJobSettings(), clientContext);\n this.listCustomJobsCallable =\n callableFactory.createUnaryCallable(\n listCustomJobsTransportSettings, settings.listCustomJobsSettings(), clientContext);\n this.listCustomJobsPagedCallable =\n callableFactory.createPagedCallable(\n listCustomJobsTransportSettings, settings.listCustomJobsSettings(), clientContext);\n this.deleteCustomJobCallable =\n callableFactory.createUnaryCallable(\n deleteCustomJobTransportSettings, settings.deleteCustomJobSettings(), clientContext);\n this.deleteCustomJobOperationCallable =\n callableFactory.createOperationCallable(\n deleteCustomJobTransportSettings,\n settings.deleteCustomJobOperationSettings(),\n clientContext,\n operationsStub);\n this.cancelCustomJobCallable =\n callableFactory.createUnaryCallable(\n cancelCustomJobTransportSettings, settings.cancelCustomJobSettings(), clientContext);\n this.createDataLabelingJobCallable =\n callableFactory.createUnaryCallable(\n createDataLabelingJobTransportSettings,\n settings.createDataLabelingJobSettings(),\n clientContext);\n this.getDataLabelingJobCallable =\n callableFactory.createUnaryCallable(\n getDataLabelingJobTransportSettings,\n settings.getDataLabelingJobSettings(),\n clientContext);\n this.listDataLabelingJobsCallable =\n callableFactory.createUnaryCallable(\n listDataLabelingJobsTransportSettings,\n settings.listDataLabelingJobsSettings(),\n clientContext);\n this.listDataLabelingJobsPagedCallable =\n callableFactory.createPagedCallable(\n listDataLabelingJobsTransportSettings,\n settings.listDataLabelingJobsSettings(),\n clientContext);\n this.deleteDataLabelingJobCallable =\n callableFactory.createUnaryCallable(\n deleteDataLabelingJobTransportSettings,\n settings.deleteDataLabelingJobSettings(),\n clientContext);\n this.deleteDataLabelingJobOperationCallable =\n callableFactory.createOperationCallable(\n deleteDataLabelingJobTransportSettings,\n settings.deleteDataLabelingJobOperationSettings(),\n clientContext,\n operationsStub);\n this.cancelDataLabelingJobCallable =\n callableFactory.createUnaryCallable(\n cancelDataLabelingJobTransportSettings,\n settings.cancelDataLabelingJobSettings(),\n clientContext);\n this.createHyperparameterTuningJobCallable =\n callableFactory.createUnaryCallable(\n createHyperparameterTuningJobTransportSettings,\n settings.createHyperparameterTuningJobSettings(),\n clientContext);\n this.getHyperparameterTuningJobCallable =\n callableFactory.createUnaryCallable(\n getHyperparameterTuningJobTransportSettings,\n settings.getHyperparameterTuningJobSettings(),\n clientContext);\n this.listHyperparameterTuningJobsCallable =\n callableFactory.createUnaryCallable(\n listHyperparameterTuningJobsTransportSettings,\n settings.listHyperparameterTuningJobsSettings(),\n clientContext);\n this.listHyperparameterTuningJobsPagedCallable =\n callableFactory.createPagedCallable(\n listHyperparameterTuningJobsTransportSettings,\n settings.listHyperparameterTuningJobsSettings(),\n clientContext);\n this.deleteHyperparameterTuningJobCallable =\n callableFactory.createUnaryCallable(\n deleteHyperparameterTuningJobTransportSettings,\n settings.deleteHyperparameterTuningJobSettings(),\n clientContext);\n this.deleteHyperparameterTuningJobOperationCallable =\n callableFactory.createOperationCallable(\n deleteHyperparameterTuningJobTransportSettings,\n settings.deleteHyperparameterTuningJobOperationSettings(),\n clientContext,\n operationsStub);\n this.cancelHyperparameterTuningJobCallable =\n callableFactory.createUnaryCallable(\n cancelHyperparameterTuningJobTransportSettings,\n settings.cancelHyperparameterTuningJobSettings(),\n clientContext);\n this.createNasJobCallable =\n callableFactory.createUnaryCallable(\n createNasJobTransportSettings, settings.createNasJobSettings(), clientContext);\n this.getNasJobCallable =\n callableFactory.createUnaryCallable(\n getNasJobTransportSettings, settings.getNasJobSettings(), clientContext);\n this.listNasJobsCallable =\n callableFactory.createUnaryCallable(\n listNasJobsTransportSettings, settings.listNasJobsSettings(), clientContext);\n this.listNasJobsPagedCallable =\n callableFactory.createPagedCallable(\n listNasJobsTransportSettings, settings.listNasJobsSettings(), clientContext);\n this.deleteNasJobCallable =\n callableFactory.createUnaryCallable(\n deleteNasJobTransportSettings, settings.deleteNasJobSettings(), clientContext);\n this.deleteNasJobOperationCallable =\n callableFactory.createOperationCallable(\n deleteNasJobTransportSettings,\n settings.deleteNasJobOperationSettings(),\n clientContext,\n operationsStub);\n this.cancelNasJobCallable =\n callableFactory.createUnaryCallable(\n cancelNasJobTransportSettings, settings.cancelNasJobSettings(), clientContext);\n this.getNasTrialDetailCallable =\n callableFactory.createUnaryCallable(\n getNasTrialDetailTransportSettings,\n settings.getNasTrialDetailSettings(),\n clientContext);\n this.listNasTrialDetailsCallable =\n callableFactory.createUnaryCallable(\n listNasTrialDetailsTransportSettings,\n settings.listNasTrialDetailsSettings(),\n clientContext);\n this.listNasTrialDetailsPagedCallable =\n callableFactory.createPagedCallable(\n listNasTrialDetailsTransportSettings,\n settings.listNasTrialDetailsSettings(),\n clientContext);\n this.createBatchPredictionJobCallable =\n callableFactory.createUnaryCallable(\n createBatchPredictionJobTransportSettings,\n settings.createBatchPredictionJobSettings(),\n clientContext);\n this.getBatchPredictionJobCallable =\n callableFactory.createUnaryCallable(\n getBatchPredictionJobTransportSettings,\n settings.getBatchPredictionJobSettings(),\n clientContext);\n this.listBatchPredictionJobsCallable =\n callableFactory.createUnaryCallable(\n listBatchPredictionJobsTransportSettings,\n settings.listBatchPredictionJobsSettings(),\n clientContext);\n this.listBatchPredictionJobsPagedCallable =\n callableFactory.createPagedCallable(\n listBatchPredictionJobsTransportSettings,\n settings.listBatchPredictionJobsSettings(),\n clientContext);\n this.deleteBatchPredictionJobCallable =\n callableFactory.createUnaryCallable(\n deleteBatchPredictionJobTransportSettings,\n settings.deleteBatchPredictionJobSettings(),\n clientContext);\n this.deleteBatchPredictionJobOperationCallable =\n callableFactory.createOperationCallable(\n deleteBatchPredictionJobTransportSettings,\n settings.deleteBatchPredictionJobOperationSettings(),\n clientContext,\n operationsStub);\n this.cancelBatchPredictionJobCallable =\n callableFactory.createUnaryCallable(\n cancelBatchPredictionJobTransportSettings,\n settings.cancelBatchPredictionJobSettings(),\n clientContext);\n this.createModelDeploymentMonitoringJobCallable =\n callableFactory.createUnaryCallable(\n createModelDeploymentMonitoringJobTransportSettings,\n settings.createModelDeploymentMonitoringJobSettings(),\n clientContext);\n this.searchModelDeploymentMonitoringStatsAnomaliesCallable =\n callableFactory.createUnaryCallable(\n searchModelDeploymentMonitoringStatsAnomaliesTransportSettings,\n settings.searchModelDeploymentMonitoringStatsAnomaliesSettings(),\n clientContext);\n this.searchModelDeploymentMonitoringStatsAnomaliesPagedCallable =\n callableFactory.createPagedCallable(\n searchModelDeploymentMonitoringStatsAnomaliesTransportSettings,\n settings.searchModelDeploymentMonitoringStatsAnomaliesSettings(),\n clientContext);\n this.getModelDeploymentMonitoringJobCallable =\n callableFactory.createUnaryCallable(\n getModelDeploymentMonitoringJobTransportSettings,\n settings.getModelDeploymentMonitoringJobSettings(),\n clientContext);\n this.listModelDeploymentMonitoringJobsCallable =\n callableFactory.createUnaryCallable(\n listModelDeploymentMonitoringJobsTransportSettings,\n settings.listModelDeploymentMonitoringJobsSettings(),\n clientContext);\n this.listModelDeploymentMonitoringJobsPagedCallable =\n callableFactory.createPagedCallable(\n listModelDeploymentMonitoringJobsTransportSettings,\n settings.listModelDeploymentMonitoringJobsSettings(),\n clientContext);\n this.updateModelDeploymentMonitoringJobCallable =\n callableFactory.createUnaryCallable(\n updateModelDeploymentMonitoringJobTransportSettings,\n settings.updateModelDeploymentMonitoringJobSettings(),\n clientContext);\n this.updateModelDeploymentMonitoringJobOperationCallable =\n callableFactory.createOperationCallable(\n updateModelDeploymentMonitoringJobTransportSettings,\n settings.updateModelDeploymentMonitoringJobOperationSettings(),\n clientContext,\n operationsStub);\n this.deleteModelDeploymentMonitoringJobCallable =\n callableFactory.createUnaryCallable(\n deleteModelDeploymentMonitoringJobTransportSettings,\n settings.deleteModelDeploymentMonitoringJobSettings(),\n clientContext);\n this.deleteModelDeploymentMonitoringJobOperationCallable =\n callableFactory.createOperationCallable(\n deleteModelDeploymentMonitoringJobTransportSettings,\n settings.deleteModelDeploymentMonitoringJobOperationSettings(),\n clientContext,\n operationsStub);\n this.pauseModelDeploymentMonitoringJobCallable =\n callableFactory.createUnaryCallable(\n pauseModelDeploymentMonitoringJobTransportSettings,\n settings.pauseModelDeploymentMonitoringJobSettings(),\n clientContext);\n this.resumeModelDeploymentMonitoringJobCallable =\n callableFactory.createUnaryCallable(\n resumeModelDeploymentMonitoringJobTransportSettings,\n settings.resumeModelDeploymentMonitoringJobSettings(),\n clientContext);\n this.listLocationsCallable =\n callableFactory.createUnaryCallable(\n listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);\n this.listLocationsPagedCallable =\n callableFactory.createPagedCallable(\n listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);\n this.getLocationCallable =\n callableFactory.createUnaryCallable(\n getLocationTransportSettings, settings.getLocationSettings(), clientContext);\n this.setIamPolicyCallable =\n callableFactory.createUnaryCallable(\n setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext);\n this.getIamPolicyCallable =\n callableFactory.createUnaryCallable(\n getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext);\n this.testIamPermissionsCallable =\n callableFactory.createUnaryCallable(\n testIamPermissionsTransportSettings,\n settings.testIamPermissionsSettings(),\n clientContext);\n\n this.backgroundResources =\n new BackgroundResourceAggregation(clientContext.getBackgroundResources());\n }", "public interface GeneralService {\n\n /**\n * Returns general server data\n */\n Request getGeneralData(AsyncCallback<GeneralData> callback);\n\n}", "public interface HomepageServiceAsync {\n\tpublic void getProtectionInformation(AsyncCallback<ProtectionInformationModel[]> callback);\n\n\tpublic void getRecentBackups(int backupType, int backupStatus,int top, AsyncCallback<RecoveryPointModel[]> callback);\n\t\n\tpublic void getRecentBackupsByServerTime(int backupType, int backupStatus, String serverBeginDate, String serverEndDate, boolean needCatalogStatus, AsyncCallback<RecoveryPointModel[]> callback);\n\t\n\tpublic void getVMRecentBackupsByServerTime(int backupType, int backupStatus, String serverBeginDate, String serverEndDate, boolean needCatalogStatus, BackupVMModel vmModel,AsyncCallback<RecoveryPointModel[]> callback);\n\t\n\tpublic void getBackupInforamtionSummary(AsyncCallback<BackupInformationSummaryModel> callback);\n\t\n\tpublic void updateProtectionInformation(AsyncCallback<ProtectionInformationModel[]> callback);\n\t\n\tpublic void getDestSizeInformation(BackupSettingsModel model,AsyncCallback<DestinationCapacityModel> callback);\n\t\n\tpublic void getNextScheduleEvent(int in_iJobType,AsyncCallback<NextScheduleEventModel> callback);\n\n\tpublic void getTrustHosts(\n\t\t\tAsyncCallback<TrustHostModel[]> callback);\n\n\tvoid becomeTrustHost(TrustHostModel trustHostModel,\n\t\t\tAsyncCallback<Boolean> callback);\n\n\tvoid checkBaseLicense(AsyncCallback<Boolean> callback);\n\n\tvoid getBackupInforamtionSummaryWithLicInfo(AsyncCallback<BackupInformationSummaryModel> callback);\n\t\n\tvoid getLocalHost(AsyncCallback<TrustHostModel> callback);\n\n\tvoid PMInstallPatch(PatchInfoModel in_patchinfoModel,\n\t\t\tAsyncCallback<Integer> callback);\n\t\n\tvoid PMInstallBIPatch(PatchInfoModel in_patchinfoModel,\n\t\t\tAsyncCallback<Integer> callback);//added by cliicy.luo\n\t\n\tvoid getVMBackupInforamtionSummaryWithLicInfo(BackupVMModel vm,\n\t\t\tAsyncCallback<BackupInformationSummaryModel> callback);\n\n\tvoid getVMBackupInforamtionSummary(BackupVMModel vm,\n\t\t\tAsyncCallback<BackupInformationSummaryModel> callback);\n\n\tvoid getVMProtectionInformation(BackupVMModel vmModel,\n\t\t\tAsyncCallback<ProtectionInformationModel[]> callback);\n\n\tvoid getVMNextScheduleEvent(BackupVMModel vmModel,\n\t\t\tAsyncCallback<NextScheduleEventModel> callback);\n\tpublic void getVMRecentBackups(int backupType, int backupStatus,int top,BackupVMModel vmModel, AsyncCallback<RecoveryPointModel[]> callback);\n\n\tvoid updateVMProtectionInformation(BackupVMModel vm,\n\t\t\tAsyncCallback<ProtectionInformationModel[]> callback);\n\n\tvoid getArchiveInfoSummary(AsyncCallback<ArchiveJobInfoModel> callback);\n\n\tvoid getLicInfo(AsyncCallback<LicInfoModel> callback);\n\n\tvoid getVMStatusModel(BackupVMModel vmModel,\n\t\t\tAsyncCallback<VMStatusModel[]> callback);\n\n\tvoid getConfiguredVM(AsyncCallback<BackupVMModel[]> callback);\n\n\tvoid getMergeJobMonitor(String vmInstanceUUID,\n\t\t\tAsyncCallback<MergeJobMonitorModel> callback);\n\n\tvoid pauseMerge(String vmInstanceUUID, AsyncCallback<Integer> callback);\n\n\tvoid resumeMerge(String vmInstanceUUID, AsyncCallback<Integer> callback);\n\n\tvoid getMergeStatus(String vmInstanceUUID,\n AsyncCallback<MergeStatusModel> callback);\n\n\tvoid getBackupSetInfo(String vmInstanceUUID, \n\t\t\tAsyncCallback<ArrayList<BackupSetInfoModel>> callback);\n\t\n\tpublic void getDataStoreStatus(String dataStoreUUID, AsyncCallback<DataStoreInfoModel> callback);\n\n\tvoid getVMDataStoreStatus(BackupVMModel vm, String dataStoreUUID,\n\t\t\tAsyncCallback<DataStoreInfoModel> callback);\n\t\n}", "public static SinkServiceFutureStub newFutureStub(\n io.grpc.Channel channel) {\n io.grpc.stub.AbstractStub.StubFactory<SinkServiceFutureStub> factory =\n new io.grpc.stub.AbstractStub.StubFactory<SinkServiceFutureStub>() {\n @java.lang.Override\n public SinkServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {\n return new SinkServiceFutureStub(channel, callOptions);\n }\n };\n return SinkServiceFutureStub.newStub(factory, channel);\n }", "public static S3InternalServiceFutureStub newFutureStub(\n io.grpc.Channel channel) {\n io.grpc.stub.AbstractStub.StubFactory<S3InternalServiceFutureStub> factory =\n new io.grpc.stub.AbstractStub.StubFactory<S3InternalServiceFutureStub>() {\n @java.lang.Override\n public S3InternalServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {\n return new S3InternalServiceFutureStub(channel, callOptions);\n }\n };\n return S3InternalServiceFutureStub.newStub(factory, channel);\n }", "public interface GreetingServiceAsync {\r\n\tvoid getAll( String type, AsyncCallback<HashMap<String, String>> callback );\r\n\tvoid delete(String id,AsyncCallback callback );\r\n\tvoid getById(String idData, AsyncCallback<PhotoClient> callback);\r\n\tvoid addProject(String proName,AsyncCallback callback);\r\n\tvoid getProjectList(AsyncCallback callback);\r\n\tvoid getFolderChildren(FileModel model, AsyncCallback<List<FileModel>> children);\r\n \r\n}", "public interface RLatitudeServiceAsync {\r\n\r\n\tvoid sayHello(AsyncCallback<String> callback);\r\n\r\n\tvoid publishUser(String name, String firstName, String dateNaissance,\r\n\t\t\tAsyncCallback< String > callback );\r\n\t\r\n\tvoid checkPasswordLoginValidity( String login, String password, AsyncCallback< Boolean > callback );\r\n\t\r\n\tvoid publishAuthentication( String uid, String login, String password, AsyncCallback</*IUser*/Void> callback );\r\n\t\r\n\tvoid connect(String login, String password, AsyncCallback< String > callback);\r\n\t\r\n\tvoid disconnect(String uid, AsyncCallback< Boolean > callback);\r\n\t\r\n\tvoid changeMyVisibility(String uid, boolean visibility,\r\n\t\t\tAsyncCallback<Boolean> callback);\r\n\r\n\tvoid getVisibility(String uid, AsyncCallback<Boolean> callback);\r\n\t\r\n\tvoid setCurrentPostion(String uid, Position position,\r\n\t\t\tAsyncCallback<Void> callback);\r\n\t\r\n\tvoid addContact( String uidUser, String uidContact, AsyncCallback< Void > callback );\r\n\t\r\n\tvoid getContact( String uid,\r\n\t\t\tAsyncCallback< List< ResolvedContact > > callback );\r\n\t\r\n\tvoid getUser( String name, String lastName, AsyncCallback<ResolvedUser> callback );\r\n\t\r\n\tvoid getUser(String uid,AsyncCallback<ResolvedUser> callback);\r\n\r\n\tvoid getPosition( String uidUser, AsyncCallback< Position > callback );\r\n\r\n}", "public interface AsyncService {\n\n /**\n *\n *\n * <pre>\n * Initializes a MetadataStore, including allocation of resources.\n * </pre>\n */\n default void createMetadataStore(\n com.google.cloud.aiplatform.v1.CreateMetadataStoreRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getCreateMetadataStoreMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Retrieves a specific MetadataStore.\n * </pre>\n */\n default void getMetadataStore(\n com.google.cloud.aiplatform.v1.GetMetadataStoreRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.MetadataStore>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGetMetadataStoreMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Lists MetadataStores for a Location.\n * </pre>\n */\n default void listMetadataStores(\n com.google.cloud.aiplatform.v1.ListMetadataStoresRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.ListMetadataStoresResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getListMetadataStoresMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Deletes a single MetadataStore and all its child resources (Artifacts,\n * Executions, and Contexts).\n * </pre>\n */\n default void deleteMetadataStore(\n com.google.cloud.aiplatform.v1.DeleteMetadataStoreRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getDeleteMetadataStoreMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Creates an Artifact associated with a MetadataStore.\n * </pre>\n */\n default void createArtifact(\n com.google.cloud.aiplatform.v1.CreateArtifactRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.Artifact> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getCreateArtifactMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Retrieves a specific Artifact.\n * </pre>\n */\n default void getArtifact(\n com.google.cloud.aiplatform.v1.GetArtifactRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.Artifact> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGetArtifactMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Lists Artifacts in the MetadataStore.\n * </pre>\n */\n default void listArtifacts(\n com.google.cloud.aiplatform.v1.ListArtifactsRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.ListArtifactsResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getListArtifactsMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Updates a stored Artifact.\n * </pre>\n */\n default void updateArtifact(\n com.google.cloud.aiplatform.v1.UpdateArtifactRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.Artifact> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getUpdateArtifactMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Deletes an Artifact.\n * </pre>\n */\n default void deleteArtifact(\n com.google.cloud.aiplatform.v1.DeleteArtifactRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getDeleteArtifactMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Purges Artifacts.\n * </pre>\n */\n default void purgeArtifacts(\n com.google.cloud.aiplatform.v1.PurgeArtifactsRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getPurgeArtifactsMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Creates a Context associated with a MetadataStore.\n * </pre>\n */\n default void createContext(\n com.google.cloud.aiplatform.v1.CreateContextRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.Context> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getCreateContextMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Retrieves a specific Context.\n * </pre>\n */\n default void getContext(\n com.google.cloud.aiplatform.v1.GetContextRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.Context> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetContextMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Lists Contexts on the MetadataStore.\n * </pre>\n */\n default void listContexts(\n com.google.cloud.aiplatform.v1.ListContextsRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.ListContextsResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getListContextsMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Updates a stored Context.\n * </pre>\n */\n default void updateContext(\n com.google.cloud.aiplatform.v1.UpdateContextRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.Context> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getUpdateContextMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Deletes a stored Context.\n * </pre>\n */\n default void deleteContext(\n com.google.cloud.aiplatform.v1.DeleteContextRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getDeleteContextMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Purges Contexts.\n * </pre>\n */\n default void purgeContexts(\n com.google.cloud.aiplatform.v1.PurgeContextsRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getPurgeContextsMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Adds a set of Artifacts and Executions to a Context. If any of the\n * Artifacts or Executions have already been added to a Context, they are\n * simply skipped.\n * </pre>\n */\n default void addContextArtifactsAndExecutions(\n com.google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest request,\n io.grpc.stub.StreamObserver<\n com.google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getAddContextArtifactsAndExecutionsMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Adds a set of Contexts as children to a parent Context. If any of the\n * child Contexts have already been added to the parent Context, they are\n * simply skipped. If this call would create a cycle or cause any Context to\n * have more than 10 parents, the request will fail with an INVALID_ARGUMENT\n * error.\n * </pre>\n */\n default void addContextChildren(\n com.google.cloud.aiplatform.v1.AddContextChildrenRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.AddContextChildrenResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getAddContextChildrenMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Remove a set of children contexts from a parent Context. If any of the\n * child Contexts were NOT added to the parent Context, they are\n * simply skipped.\n * </pre>\n */\n default void removeContextChildren(\n com.google.cloud.aiplatform.v1.RemoveContextChildrenRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.RemoveContextChildrenResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getRemoveContextChildrenMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Retrieves Artifacts and Executions within the specified Context, connected\n * by Event edges and returned as a LineageSubgraph.\n * </pre>\n */\n default void queryContextLineageSubgraph(\n com.google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.LineageSubgraph>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getQueryContextLineageSubgraphMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Creates an Execution associated with a MetadataStore.\n * </pre>\n */\n default void createExecution(\n com.google.cloud.aiplatform.v1.CreateExecutionRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.Execution> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getCreateExecutionMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Retrieves a specific Execution.\n * </pre>\n */\n default void getExecution(\n com.google.cloud.aiplatform.v1.GetExecutionRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.Execution> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGetExecutionMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Lists Executions in the MetadataStore.\n * </pre>\n */\n default void listExecutions(\n com.google.cloud.aiplatform.v1.ListExecutionsRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.ListExecutionsResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getListExecutionsMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Updates a stored Execution.\n * </pre>\n */\n default void updateExecution(\n com.google.cloud.aiplatform.v1.UpdateExecutionRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.Execution> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getUpdateExecutionMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Deletes an Execution.\n * </pre>\n */\n default void deleteExecution(\n com.google.cloud.aiplatform.v1.DeleteExecutionRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getDeleteExecutionMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Purges Executions.\n * </pre>\n */\n default void purgeExecutions(\n com.google.cloud.aiplatform.v1.PurgeExecutionsRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getPurgeExecutionsMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Adds Events to the specified Execution. An Event indicates whether an\n * Artifact was used as an input or output for an Execution. If an Event\n * already exists between the Execution and the Artifact, the Event is\n * skipped.\n * </pre>\n */\n default void addExecutionEvents(\n com.google.cloud.aiplatform.v1.AddExecutionEventsRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.AddExecutionEventsResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getAddExecutionEventsMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Obtains the set of input and output Artifacts for this Execution, in the\n * form of LineageSubgraph that also contains the Execution and connecting\n * Events.\n * </pre>\n */\n default void queryExecutionInputsAndOutputs(\n com.google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.LineageSubgraph>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getQueryExecutionInputsAndOutputsMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Creates a MetadataSchema.\n * </pre>\n */\n default void createMetadataSchema(\n com.google.cloud.aiplatform.v1.CreateMetadataSchemaRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.MetadataSchema>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getCreateMetadataSchemaMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Retrieves a specific MetadataSchema.\n * </pre>\n */\n default void getMetadataSchema(\n com.google.cloud.aiplatform.v1.GetMetadataSchemaRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.MetadataSchema>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGetMetadataSchemaMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Lists MetadataSchemas.\n * </pre>\n */\n default void listMetadataSchemas(\n com.google.cloud.aiplatform.v1.ListMetadataSchemasRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.ListMetadataSchemasResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getListMetadataSchemasMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Retrieves lineage of an Artifact represented through Artifacts and\n * Executions connected by Event edges and returned as a LineageSubgraph.\n * </pre>\n */\n default void queryArtifactLineageSubgraph(\n com.google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.LineageSubgraph>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getQueryArtifactLineageSubgraphMethod(), responseObserver);\n }\n }", "public AsyncService() {\n super(2, 2);\n }", "@RemoteServiceRelativePath(\"greet\")\npublic interface MyBitService extends RemoteService {\n OrderInfoList getOrderInfoList() throws IllegalArgumentException;\n\n CoinInfoList getCoinInfoList() throws IllegalArgumentException;\n\n ExchangeInfoList getExchangeInfoList() throws IllegalArgumentException;\n\n CompareInfoList getCompareInfoList() throws IllegalArgumentException;\n\n String toggleBot() throws IllegalArgumentException;\n\n String setThreshold(Double threshold) throws IllegalArgumentException;\n\n String getThreshold() throws IllegalArgumentException;\n\n public static class App {\n private static MyBitServiceAsync ourInstance = GWT.create(MyBitService.class);\n\n public static synchronized MyBitServiceAsync getInstance() {\n return ourInstance;\n }\n }\n}", "@RemoteServiceClient(SimpleHttpService.class)\npublic interface ISimpleHttpServiceClient extends IServiceClient {\n\n @RemoteMessageClient(SimpleHttpService.REQUEST_START)\n void bootup(int port);\n\n @RemoteMessageClient(SimpleHttpService.REQUEST_STOP)\n void shutdown();\n\n @RemoteMessageClient(SimpleHttpService.REQUEST_INFO)\n void info(int port);\n}", "public static ImageServiceFutureStub newFutureStub(\n io.grpc.Channel channel) {\n io.grpc.stub.AbstractStub.StubFactory<ImageServiceFutureStub> factory =\n new io.grpc.stub.AbstractStub.StubFactory<ImageServiceFutureStub>() {\n @java.lang.Override\n public ImageServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {\n return new ImageServiceFutureStub(channel, callOptions);\n }\n };\n return ImageServiceFutureStub.newStub(factory, channel);\n }", "protected HttpJsonAgentsStub(\n AgentsStubSettings settings,\n ClientContext clientContext,\n HttpJsonStubCallableFactory callableFactory)\n throws IOException {\n this.callableFactory = callableFactory;\n this.httpJsonOperationsStub =\n HttpJsonOperationsStub.create(\n clientContext,\n callableFactory,\n typeRegistry,\n ImmutableMap.<String, HttpRule>builder()\n .put(\n \"google.longrunning.Operations.CancelOperation\",\n HttpRule.newBuilder()\n .setPost(\"/v3/{name=projects/*/operations/*}:cancel\")\n .addAdditionalBindings(\n HttpRule.newBuilder()\n .setPost(\"/v3/{name=projects/*/locations/*/operations/*}:cancel\")\n .build())\n .build())\n .put(\n \"google.longrunning.Operations.GetOperation\",\n HttpRule.newBuilder()\n .setGet(\"/v3/{name=projects/*/operations/*}\")\n .addAdditionalBindings(\n HttpRule.newBuilder()\n .setGet(\"/v3/{name=projects/*/locations/*/operations/*}\")\n .build())\n .build())\n .put(\n \"google.longrunning.Operations.ListOperations\",\n HttpRule.newBuilder()\n .setGet(\"/v3/{name=projects/*}/operations\")\n .addAdditionalBindings(\n HttpRule.newBuilder()\n .setGet(\"/v3/{name=projects/*/locations/*}/operations\")\n .build())\n .build())\n .build());\n\n HttpJsonCallSettings<ListAgentsRequest, ListAgentsResponse> listAgentsTransportSettings =\n HttpJsonCallSettings.<ListAgentsRequest, ListAgentsResponse>newBuilder()\n .setMethodDescriptor(listAgentsMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"parent\", String.valueOf(request.getParent()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<GetAgentRequest, Agent> getAgentTransportSettings =\n HttpJsonCallSettings.<GetAgentRequest, Agent>newBuilder()\n .setMethodDescriptor(getAgentMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"name\", String.valueOf(request.getName()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<CreateAgentRequest, Agent> createAgentTransportSettings =\n HttpJsonCallSettings.<CreateAgentRequest, Agent>newBuilder()\n .setMethodDescriptor(createAgentMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"parent\", String.valueOf(request.getParent()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<UpdateAgentRequest, Agent> updateAgentTransportSettings =\n HttpJsonCallSettings.<UpdateAgentRequest, Agent>newBuilder()\n .setMethodDescriptor(updateAgentMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"agent.name\", String.valueOf(request.getAgent().getName()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<DeleteAgentRequest, Empty> deleteAgentTransportSettings =\n HttpJsonCallSettings.<DeleteAgentRequest, Empty>newBuilder()\n .setMethodDescriptor(deleteAgentMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"name\", String.valueOf(request.getName()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<ExportAgentRequest, Operation> exportAgentTransportSettings =\n HttpJsonCallSettings.<ExportAgentRequest, Operation>newBuilder()\n .setMethodDescriptor(exportAgentMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"name\", String.valueOf(request.getName()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<RestoreAgentRequest, Operation> restoreAgentTransportSettings =\n HttpJsonCallSettings.<RestoreAgentRequest, Operation>newBuilder()\n .setMethodDescriptor(restoreAgentMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"name\", String.valueOf(request.getName()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<ValidateAgentRequest, AgentValidationResult>\n validateAgentTransportSettings =\n HttpJsonCallSettings.<ValidateAgentRequest, AgentValidationResult>newBuilder()\n .setMethodDescriptor(validateAgentMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"name\", String.valueOf(request.getName()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<GetAgentValidationResultRequest, AgentValidationResult>\n getAgentValidationResultTransportSettings =\n HttpJsonCallSettings\n .<GetAgentValidationResultRequest, AgentValidationResult>newBuilder()\n .setMethodDescriptor(getAgentValidationResultMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"name\", String.valueOf(request.getName()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<GetGenerativeSettingsRequest, GenerativeSettings>\n getGenerativeSettingsTransportSettings =\n HttpJsonCallSettings.<GetGenerativeSettingsRequest, GenerativeSettings>newBuilder()\n .setMethodDescriptor(getGenerativeSettingsMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"name\", String.valueOf(request.getName()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<UpdateGenerativeSettingsRequest, GenerativeSettings>\n updateGenerativeSettingsTransportSettings =\n HttpJsonCallSettings.<UpdateGenerativeSettingsRequest, GenerativeSettings>newBuilder()\n .setMethodDescriptor(updateGenerativeSettingsMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\n \"generative_settings.name\",\n String.valueOf(request.getGenerativeSettings().getName()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<ListLocationsRequest, ListLocationsResponse>\n listLocationsTransportSettings =\n HttpJsonCallSettings.<ListLocationsRequest, ListLocationsResponse>newBuilder()\n .setMethodDescriptor(listLocationsMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"name\", String.valueOf(request.getName()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<GetLocationRequest, Location> getLocationTransportSettings =\n HttpJsonCallSettings.<GetLocationRequest, Location>newBuilder()\n .setMethodDescriptor(getLocationMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"name\", String.valueOf(request.getName()));\n return builder.build();\n })\n .build();\n\n this.listAgentsCallable =\n callableFactory.createUnaryCallable(\n listAgentsTransportSettings, settings.listAgentsSettings(), clientContext);\n this.listAgentsPagedCallable =\n callableFactory.createPagedCallable(\n listAgentsTransportSettings, settings.listAgentsSettings(), clientContext);\n this.getAgentCallable =\n callableFactory.createUnaryCallable(\n getAgentTransportSettings, settings.getAgentSettings(), clientContext);\n this.createAgentCallable =\n callableFactory.createUnaryCallable(\n createAgentTransportSettings, settings.createAgentSettings(), clientContext);\n this.updateAgentCallable =\n callableFactory.createUnaryCallable(\n updateAgentTransportSettings, settings.updateAgentSettings(), clientContext);\n this.deleteAgentCallable =\n callableFactory.createUnaryCallable(\n deleteAgentTransportSettings, settings.deleteAgentSettings(), clientContext);\n this.exportAgentCallable =\n callableFactory.createUnaryCallable(\n exportAgentTransportSettings, settings.exportAgentSettings(), clientContext);\n this.exportAgentOperationCallable =\n callableFactory.createOperationCallable(\n exportAgentTransportSettings,\n settings.exportAgentOperationSettings(),\n clientContext,\n httpJsonOperationsStub);\n this.restoreAgentCallable =\n callableFactory.createUnaryCallable(\n restoreAgentTransportSettings, settings.restoreAgentSettings(), clientContext);\n this.restoreAgentOperationCallable =\n callableFactory.createOperationCallable(\n restoreAgentTransportSettings,\n settings.restoreAgentOperationSettings(),\n clientContext,\n httpJsonOperationsStub);\n this.validateAgentCallable =\n callableFactory.createUnaryCallable(\n validateAgentTransportSettings, settings.validateAgentSettings(), clientContext);\n this.getAgentValidationResultCallable =\n callableFactory.createUnaryCallable(\n getAgentValidationResultTransportSettings,\n settings.getAgentValidationResultSettings(),\n clientContext);\n this.getGenerativeSettingsCallable =\n callableFactory.createUnaryCallable(\n getGenerativeSettingsTransportSettings,\n settings.getGenerativeSettingsSettings(),\n clientContext);\n this.updateGenerativeSettingsCallable =\n callableFactory.createUnaryCallable(\n updateGenerativeSettingsTransportSettings,\n settings.updateGenerativeSettingsSettings(),\n clientContext);\n this.listLocationsCallable =\n callableFactory.createUnaryCallable(\n listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);\n this.listLocationsPagedCallable =\n callableFactory.createPagedCallable(\n listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);\n this.getLocationCallable =\n callableFactory.createUnaryCallable(\n getLocationTransportSettings, settings.getLocationSettings(), clientContext);\n\n this.backgroundResources =\n new BackgroundResourceAggregation(clientContext.getBackgroundResources());\n }", "public IStubProvider getStubProvider();", "void stubResponses(HttpExecuteResponse... responses);", "public static EmployeeServiceFutureStub newFutureStub(\n io.grpc.Channel channel) {\n return new EmployeeServiceFutureStub(channel);\n }", "public interface AsyncService {\n\n /**\n *\n *\n * <pre>\n * Returns a specific `Metrics Scope`.\n * </pre>\n */\n default void getMetricsScope(\n com.google.monitoring.metricsscope.v1.GetMetricsScopeRequest request,\n io.grpc.stub.StreamObserver<com.google.monitoring.metricsscope.v1.MetricsScope>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGetMetricsScopeMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Returns a list of every `Metrics Scope` that a specific `MonitoredProject`\n * has been added to. The metrics scope representing the specified monitored\n * project will always be the first entry in the response.\n * </pre>\n */\n default void listMetricsScopesByMonitoredProject(\n com.google.monitoring.metricsscope.v1.ListMetricsScopesByMonitoredProjectRequest request,\n io.grpc.stub.StreamObserver<\n com.google.monitoring.metricsscope.v1.ListMetricsScopesByMonitoredProjectResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getListMetricsScopesByMonitoredProjectMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Adds a `MonitoredProject` with the given project ID\n * to the specified `Metrics Scope`.\n * </pre>\n */\n default void createMonitoredProject(\n com.google.monitoring.metricsscope.v1.CreateMonitoredProjectRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getCreateMonitoredProjectMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Deletes a `MonitoredProject` from the specified `Metrics Scope`.\n * </pre>\n */\n default void deleteMonitoredProject(\n com.google.monitoring.metricsscope.v1.DeleteMonitoredProjectRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getDeleteMonitoredProjectMethod(), responseObserver);\n }\n }", "protected GrpcJobServiceStub(JobServiceStubSettings settings, ClientContext clientContext)\n throws IOException {\n this(settings, clientContext, new GrpcJobServiceCallableFactory());\n }", "public interface InternalAuditServiceAsync {\n\n\tvoid signIn(String userid, String password, AsyncCallback<Employee> callback);\n\n\tvoid fetchObjectiveOwners(AsyncCallback<ArrayList<Employee>> callback);\n\n\tvoid fetchDepartments(AsyncCallback<ArrayList<Department>> callback);\n\n\tvoid fetchRiskFactors(int companyID, AsyncCallback<ArrayList<RiskFactor>> callback);\n\n\tvoid saveStrategic(Strategic strategic, HashMap<String, String> hm, AsyncCallback<String> callback);\n\n\tvoid fetchStrategic(HashMap<String, String> hm, AsyncCallback<ArrayList<Strategic>> callback);\n\n\tvoid fetchRiskAssesment(HashMap<String, String> hm, AsyncCallback<ArrayList<RiskAssesmentDTO>> callback);\n\n\tvoid saveRiskAssesment(HashMap<String, String> hm, ArrayList<StrategicDegreeImportance> strategicRisks,\n\t\t\tArrayList<StrategicRiskFactor> arrayListSaveRiskFactors, float resultRating, AsyncCallback<String> callback);\n\n\tvoid sendBackStrategic(Strategic strategics, AsyncCallback<String> callback);\n\n\tvoid declineStrategic(int startegicId, AsyncCallback<String> callback);\n\n\tvoid fetchStrategicAudit(AsyncCallback<ArrayList<StrategicAudit>> callback);\n\n\tvoid fetchDashBoard(HashMap<String, String> hm, AsyncCallback<ArrayList<DashBoardDTO>> callback);\n\n\tvoid fetchFinalAuditables(AsyncCallback<ArrayList<Strategic>> callback);\n\n\tvoid checkDate(Date date, AsyncCallback<Boolean> callback);\n\n\tvoid fetchSchedulingStrategic(HashMap<String, String> hm, AsyncCallback<ArrayList<StrategicDTO>> callback);\n\n\tvoid fetchSkills(AsyncCallback<ArrayList<Skills>> callback);\n\n\tvoid saveJobTimeEstimation(JobTimeEstimationDTO entity, ArrayList<SkillUpdateData> updateForSkills,\n\t\t\tAsyncCallback<Boolean> callback);\n\n\tvoid fetchJobTime(int jobId, AsyncCallback<JobTimeEstimationDTO> callback);\n\n\tvoid fetchEmployees(AsyncCallback<ArrayList<Employee>> callback);\n\n\tvoid fetchResourceUseFor(int jobId, AsyncCallback<ArrayList<ResourceUse>> callback);\n\n\tvoid fetchEmployeesByDeptId(ArrayList<Integer> depIds, AsyncCallback<ArrayList<Employee>> asyncCallback);\n\n\tvoid saveJobAndAreaOfExpertiseState(ArrayList<JobAndAreaOfExpertise> state, AsyncCallback<Void> callback);\n\n\tvoid fetchCheckBoxStateFor(int jobId, AsyncCallback<ArrayList<JobAndAreaOfExpertise>> callback);\n\n\tvoid saveCreatedJob(JobCreationDTO job, AsyncCallback<String> callback);\n\n\tvoid fetchCreatedJobs(boolean getEmpRelation, boolean getSkillRelation,\n\t\t\tAsyncCallback<ArrayList<JobCreationDTO>> asyncCallback);\n\n\tvoid getEndDate(Date value, int estimatedWeeks, AsyncCallback<String> asyncCallback);\n\n\tvoid fetchEmployeesWithJobs(AsyncCallback<ArrayList<JobsOfEmployee>> callback);\n\n\tvoid updateEndDateForJob(int jobId, String startDate, String endDate, AsyncCallback<JobCreation> asyncCallback);\n\n\tvoid getMonthsInvolved(String string, String string2, AsyncCallback<int[]> callback);\n\n\tvoid fetchAllAuditEngagement(int loggedInEmployee, AsyncCallback<ArrayList<AuditEngagement>> callback);\n\n\tvoid fetchCreatedJob(int jobId, AsyncCallback<JobCreation> callback);\n\n\tvoid updateAuditEngagement(AuditEngagement e, String fieldToUpdate, AsyncCallback<Boolean> callback);\n\n\tvoid syncAuditEngagementWithCreatedJobs(int loggedInEmployee, AsyncCallback<Void> asyncCallback);\n\n\tvoid saveRisks(ArrayList<RiskControlMatrixEntity> records, AsyncCallback<Boolean> asyncCallback);\n\n\tvoid sendEmail(String body, String sendTo, AsyncCallback<Boolean> asyncCallback);\n\n\tvoid fetchAuditEngagement(int selectedJobId, AsyncCallback<AuditEngagement> asyncCallback);\n\n\tvoid fetchRisks(int auditEngId, AsyncCallback<ArrayList<RiskControlMatrixEntity>> asyncCallback);\n\n\t// void fetchEmpForThisJob(\n\t// int selectedJobId,\n\t// AsyncCallback<ArrayList<Object>> asyncCallback);\n\n\tvoid fetchEmployeeJobRelations(int selectedJobId, AsyncCallback<ArrayList<JobEmployeeRelation>> asyncCallback);\n\n\tvoid fetchJobs(AsyncCallback<ArrayList<JobCreation>> asyncCallback);\n\n\tvoid fetchEmployeeJobs(Employee loggedInEmployee, String reportingTab,\n\t\t\tAsyncCallback<ArrayList<JobCreation>> asyncCallback);\n\n\tvoid fetchJobExceptions(int jobId, AsyncCallback<ArrayList<Exceptions>> asyncCallbac);\n\n\tvoid fetchEmployeeExceptions(int employeeId, int jobId, AsyncCallback<ArrayList<Exceptions>> asyncCallbac);\n\n\tvoid sendException(Exceptions exception, Boolean sendMail, String selectedView, AsyncCallback<String> asyncCallbac);\n\n\tvoid saveAuditStepAndExceptions(AuditStep step, ArrayList<Exceptions> exs, AsyncCallback<Void> asyncCallback);\n\n\tvoid getSavedAuditStep(int selectedJobId, int auditWorkId, AsyncCallback<AuditStep> asyncCallback);\n\n\tvoid getSavedExceptions(int selectedJobId, AsyncCallback<ArrayList<Exceptions>> asyncCallback);\n\n\tvoid saveAuditWork(ArrayList<AuditWork> records, AsyncCallback<Void> asyncCallback);\n\n\tvoid updateKickoffStatus(int auditEngId, Employee loggedInUser, AsyncCallback<Void> asyncCallback);\n\n\tvoid fetchAuditHeadExceptions(int auditHeadId, int selectedJob, AsyncCallback<ArrayList<Exceptions>> asyncCallback);\n\n\tvoid fetchCreatedJob(int id, boolean b, boolean c, String string, AsyncCallback<JobCreationDTO> asyncCallback);\n\n\tvoid fetchAuditWorkRows(int selectedJobId, AsyncCallback<ArrayList<AuditWork>> asyncCallback);\n\n\tvoid fetchApprovedAuditWorkRows(int selectedJobId, AsyncCallback<ArrayList<AuditWork>> asyncCallback);\n\n\tvoid saveAuditNotification(int auditEngagementId, String message, String to, String cc, String refNo, String from,\n\t\t\tString subject, String filePath, String momoNo, String date, int status,\n\t\t\tAsyncCallback<String> asyncCallback);\n\n\tvoid logOut(AsyncCallback<String> asyncCallback);\n\n\tvoid selectYear(int year, AsyncCallback<Void> asyncCallback);\n\n\tvoid fetchNumberofPlannedJobs(AsyncCallback<Integer> asyncCallback);\n\n\tvoid fetchNumberofInProgressJobs(AsyncCallback<Integer> asyncCallback);\n\n\tvoid fetchNumberofCompletedJobs(AsyncCallback<Integer> asyncCallback);\n\n\tvoid fetchJobsKickOffWithInaWeek(AsyncCallback<ArrayList<String>> asyncCallback);\n\n\tvoid fetchNumberOfAuditObservations(AsyncCallback<Integer> asyncCallback);\n\n\tvoid fetchNumberOfExceptionsInProgress(AsyncCallback<Integer> asyncCallback);\n\n\tvoid fetchNumberOfExceptionsImplemented(AsyncCallback<Integer> asyncCallback);\n\n\tvoid fetchNumberOfExceptionsOverdue(AsyncCallback<Integer> asyncCallback);\n\n\tvoid fetchEmployeesAvilbleForNext2Weeks(AsyncCallback<ArrayList<String>> asyncCallback);\n\n\tvoid fetchStrategicDepartments(int strategicId, AsyncCallback<ArrayList<StrategicDepartments>> asyncCallback);\n\n\tvoid fetchResourceIds(int strategicId, AsyncCallback<ArrayList<Integer>> asyncCallback);\n\n\tvoid fetchJobSoftSkills(int strategicId, AsyncCallback<ArrayList<Integer>> asyncCallback);\n\n\tvoid fetchReportSearchResult(ArrayList<String> dept, ArrayList<String> domain, ArrayList<String> risk,\n\t\t\tArrayList<String> department, AsyncCallback<ArrayList<Strategic>> callback);\n\n\tvoid fetchReportWithResourcesSearchResult(ArrayList<String> dept, ArrayList<String> domain, ArrayList<String> risk,\n\t\t\tArrayList<String> resources, ArrayList<String> department, AsyncCallback<ArrayList<JobCreation>> callback);\n\n\tvoid fetchStrategicDepartmentsMultiple(ArrayList<Integer> ids,\n\t\t\tAsyncCallback<ArrayList<StrategicDepartments>> callback);\n\n\tvoid exportAuditPlanningReport(ArrayList<ExcelDataDTO> excelDataList, String btn, AsyncCallback<String> callback);\n\n\tvoid fetchReportAuditScheduling(ArrayList<String> dept, ArrayList<String> domain, ArrayList<String> jobStatus,\n\t\t\tArrayList<String> responsiblePerson, ArrayList<String> dep, AsyncCallback<ArrayList<Strategic>> callback);\n\n\tvoid approveFinalAuditable(Strategic strategic, AsyncCallback<String> callback);\n\n\tvoid declineFinalAuditable(Strategic strategic, AsyncCallback<String> asyncCallback);\n\n\tvoid saveUser(Employee employee, AsyncCallback<String> asyncCallback);\n\n\tvoid updateUser(int previousHours, Employee employee, AsyncCallback<String> asyncCallback);\n\n\tvoid getStartEndDates(AsyncCallback<ArrayList<Date>> asyncCallback);\n\n\tvoid fetchNumberOfDaysBetweenTwoDates(Date from, Date to, AsyncCallback<Integer> asyncCallback);\n\n\tvoid saveCompany(Company company, AsyncCallback<String> asyncCallback);\n\n\tvoid fetchCompanies(AsyncCallback<ArrayList<Company>> asyncCallback);\n\n\tvoid updateStrategic(Strategic strategic, AsyncCallback<String> asyncCallback);\n\n\tvoid deleteRisk(RiskControlMatrixEntity risk, AsyncCallback<String> asyncCallback);\n\n\tvoid deleteAuditWork(int auditWorkId, AsyncCallback<String> asyncCallback);\n\n\tvoid fetchCurrentYear(AsyncCallback<Integer> asyncCallback);\n\n\tvoid fetchEmployeesBySkillId(int jobId, AsyncCallback<ArrayList<Employee>> asyncCallback);\n\n\tvoid checkNoOfResourcesForSelectedSkill(int noOfResources, int skillId, AsyncCallback<String> asyncCallback);\n\n\tvoid deleteException(int exceptionId, AsyncCallback<String> asyncCallback);\n\n\tvoid approveScheduling(AsyncCallback<String> asyncCallback);\n\n\tvoid fetchSelectedEmployee(int employeeId, AsyncCallback<Employee> asyncCallback);\n\n\tvoid fetchExceptionReports(ArrayList<String> div, ArrayList<String> domain, ArrayList<String> risk,\n\t\t\tArrayList<String> resources, ArrayList<String> jobs, ArrayList<String> auditees,\n\t\t\tArrayList<String> exceptionStatus, ArrayList<String> department, AsyncCallback<ArrayList<Exceptions>> asyncCallback);\n\n\tvoid exportJobTimeAllocationReport(ArrayList<JobTimeAllocationReportDTO> excelDataList, String btn,\n\t\t\tAsyncCallback<String> callback);\n\n\tvoid exportAuditExceptionsReport(ArrayList<ExceptionsReportDTO> excelDataList, String btn,\n\t\t\tAsyncCallback<String> asyncCallback);\n\n\tvoid exportAuditSchedulingReport(ArrayList<AuditSchedulingReportDTO> excelDataList, String btn,\n\t\t\tAsyncCallback<String> asyncCallback);\n\n\tvoid isScheduleApproved(AsyncCallback<Boolean> asyncCallback);\n\n\tvoid fetchDashboard(HashMap<String, String> hm, AsyncCallback<DashBoardNewDTO> asyncCallback);\n\n\tvoid updateUploadedAuditStepFile(int auditStepId, AsyncCallback<String> asyncCallback);\n\n\tvoid saveSelectedAuditStepIdInSession(int auditStepId, AsyncCallback<String> asyncCallback);\n\n\tvoid submitFeedBack(Feedback feedBack, AsyncCallback<String> asyncCallback);\n\n\tvoid fetchProcessDTOs(AsyncCallback<ArrayList<ProcessDTO>> callback);\n\n\tvoid fetchSubProcess(int processId, AsyncCallback<ArrayList<SubProcess>> callback);\n\n\tvoid saveActivityObjectives(ArrayList<ActivityObjective> activityObjectives, int jobid, int status,\n\t\t\tAsyncCallback<String> callback);\n\n\tvoid saveRiskObjectives(ArrayList<RiskObjective> riskObjectives, int jobid, int status,\n\t\t\tAsyncCallback<String> callback);\n\n\tvoid saveExistingControls(ArrayList<SuggestedControls> suggestedControls, AsyncCallback<String> callback);\n\n\tvoid saveAuditWorkProgram(ArrayList<AuditProgramme> auditWorkProgramme, int selectedJobId,\n\t\t\tAsyncCallback<String> callback);\n\n\tvoid fetchApprovedAuditProgrammeRows(int selectedJobId, AsyncCallback<ArrayList<AuditProgramme>> asyncCallback);\n\n\tvoid deleteRiskObjective(int riskId, int jobId, AsyncCallback<String> asyncCallback);\n\n\tvoid fetchJobStatus(int jobId, AsyncCallback<JobStatusDTO> asyncCallback);\n\n\tvoid fetchDashBoardListBoxDTOs(AsyncCallback<ArrayList<DashboardListBoxDTO>> callback);\n\n\tvoid savetoDo(ToDo todo, AsyncCallback<String> callback);\n\n\tvoid saveinformationRequest(InformationRequestEntity informationrequest, String filepath,\n\t\t\tAsyncCallback<String> callback);\n\n\tvoid fetchEmailAttachments(AsyncCallback<ArrayList<String>> callback);\n\n\tvoid saveToDoLogs(ToDoLogsEntity toDoLogsEntity, AsyncCallback<String> callback);\n\n\tvoid saveInformationRequestLogs(InformationRequestLogEntity informationRequestLogEntity,\n\t\t\tAsyncCallback<String> callback);\n\n\tvoid fetchAuditStepExceptions(String id, AsyncCallback<ArrayList<String>> callback);\n\n\tvoid fetchAuditStepsProcerdure(String id, String mainFolder, AsyncCallback<ArrayList<String>> callback);\n\n\tvoid deleteAttachmentFile(String id, String mainFolder, String fileName, AsyncCallback<String> callback);\n\n\tvoid deleteUnsavedAttachemnts(String pathtodouploads, AsyncCallback<String> callback);\n\n\tvoid fetchAssignedFromToDos(AsyncCallback<ArrayList<ToDo>> callback);\n\n\tvoid fetchAssignedToToDos(AsyncCallback<ArrayList<ToDo>> callback);\n\n\tvoid fetchAssignedFromIRReLoad(AsyncCallback<ArrayList<InformationRequestEntity>> callback);\n\n\tvoid fetchJobExceptionWithImplicationRating(int jobId, int ImplicationRating,\n\t\t\tAsyncCallback<ArrayList<Exceptions>> callback);\n\n\tvoid fetchControlsForReport(int jobId, AsyncCallback<ArrayList<SuggestedControls>> callback);\n\n\tvoid fetchSelectedJob(int jobId, AsyncCallback<JobCreation> callback);\n\n\tvoid saveReportDataPopup(ArrayList<ReportDataEntity> listReportData12, AsyncCallback<String> callback);\n\n\tvoid fetchReportDataPopup(int jobId, AsyncCallback<ArrayList<ReportDataEntity>> callback);\n\n\tvoid saveAssesmentGrid(ArrayList<AssesmentGridEntity> listAssesment, int jobid, AsyncCallback<String> callback);\n\n\tvoid fetchAssesmentGrid(int jobId, AsyncCallback<ArrayList<AssesmentGridDbEntity>> callback);\n\n\tvoid deleteActivityObjective(int jobId, AsyncCallback<String> callback);\n\n\tvoid getNextYear(Date value, AsyncCallback<Date> asyncCallback);\n\n\tvoid readExcel(String subFolder, String mainFolder, AsyncCallback<ArrayList<SamplingExcelSheetEntity>> callback);\n\n\tvoid fetchAssignedToIRReLoad(AsyncCallback<ArrayList<InformationRequestEntity>> asyncCallback);\n\n\tvoid generateSamplingOutput(String populationSize, String samplingSize, String samplingMehod,\n\t\t\tArrayList<SamplingExcelSheetEntity> list, Integer auditStepId, AsyncCallback<ArrayList<SamplingExcelSheetEntity>> callback);\n\n\n\tvoid exportSamplingAuditStep(String samplingMehod, String reportFormat, ArrayList<SamplingExcelSheetEntity> list,\n\t\t\tInteger auditStepId, AsyncCallback<String> callback);\n\n\tvoid fetchDivision(AsyncCallback<ArrayList<Division>> asyncCallback);\n\n\tvoid fetchDivisionDepartments(int divisionID, AsyncCallback<ArrayList<Department>> asyncCallback);\n\n\tvoid fetchSavedSamplingReport(String folder, String auditStepId, AsyncCallback<String> callback);\n\n\tvoid fetchJobsAgainstSelectedDates(Date startDate, Date endDate, AsyncCallback<ArrayList<JobCreation>> callback);\n\n\tvoid fetchStrategicSubProcess(int id, AsyncCallback<StrategicSubProcess> asyncCallback);\n\n\tvoid fetchCompanyPackage(int companyId, AsyncCallback<String> asyncCallback);\n\n\tvoid fetchCompanyLogoPath(int companyID, AsyncCallback<String> asyncCallback);\n\n\tvoid updatePassword(Employee loggedInUser, AsyncCallback<String> asyncCallback);\n\n\tvoid validateRegisteredUserEmail(String emailID, AsyncCallback<Integer> asyncCallback);\n\n\tvoid sendPasswordResetEmail(String emailBody, String value, AsyncCallback<Boolean> asyncCallback);\n\n\tvoid resetPassword(Integer employeeID, String newPassword, AsyncCallback<String> asyncCallback);\n\n\tvoid upgradeSoftware(AsyncCallback<String> asyncCallback);\n\n\tvoid addDivision(String divisionName, AsyncCallback<String> asyncCallback);\n\n\tvoid addDepartment(int divisionID, String departmentName, AsyncCallback<String> asyncCallback);\n\n\tvoid editDivisionName(Division division, AsyncCallback<String> asyncCallback);\n\n\tvoid editDepartmentName(Department department, AsyncCallback<String> asyncCallback);\n\n\tvoid deleteDivision(int divisionID, AsyncCallback<String> asyncCallback);\n\n\tvoid deleteDepartment(int departmentID, AsyncCallback<String> asyncCallback);\n\n\tvoid uploadCompanyLogo(String fileName, int companyID, AsyncCallback<String> callback);\n\n\tvoid fetchDegreeImportance(int companyID, AsyncCallback<ArrayList<DegreeImportance>> asyncCallback);\n\n\tvoid saveDegreeImportance(ArrayList<DegreeImportance> arrayListDegreeImportance, AsyncCallback<ArrayList<DegreeImportance>> asyncCallback);\n\n\tvoid deleteDegreeImportance(int degreeID, AsyncCallback<ArrayList<DegreeImportance>> asyncCallback);\n\n\tvoid saveRiskFactor(ArrayList<RiskFactor> arrayListRiskFacrors, AsyncCallback<ArrayList<RiskFactor>> asyncCallback);\n\n\tvoid deleteRiskFactor(int riskID, AsyncCallback<ArrayList<RiskFactor>> asyncCallback);\n\n\tvoid removeStrategicDegreeImportance(int id, AsyncCallback<String> asyncCallback);\n\n\tvoid removeStrategicRiskFactor(int id, AsyncCallback<String> callback);\n\n\tvoid fetchStrategicDuplicate(Strategic strategic, AsyncCallback<ArrayList<Strategic>> asyncCallback);\n\n}", "protected HttpJsonEventarcStub(\n EventarcStubSettings settings,\n ClientContext clientContext,\n HttpJsonStubCallableFactory callableFactory)\n throws IOException {\n this.callableFactory = callableFactory;\n this.httpJsonOperationsStub =\n HttpJsonOperationsStub.create(\n clientContext,\n callableFactory,\n typeRegistry,\n ImmutableMap.<String, HttpRule>builder()\n .put(\n \"google.longrunning.Operations.CancelOperation\",\n HttpRule.newBuilder()\n .setPost(\"/v1/{name=projects/*/locations/*/operations/*}:cancel\")\n .build())\n .put(\n \"google.longrunning.Operations.DeleteOperation\",\n HttpRule.newBuilder()\n .setDelete(\"/v1/{name=projects/*/locations/*/operations/*}\")\n .build())\n .put(\n \"google.longrunning.Operations.GetOperation\",\n HttpRule.newBuilder()\n .setGet(\"/v1/{name=projects/*/locations/*/operations/*}\")\n .build())\n .put(\n \"google.longrunning.Operations.ListOperations\",\n HttpRule.newBuilder()\n .setGet(\"/v1/{name=projects/*/locations/*}/operations\")\n .build())\n .build());\n\n HttpJsonCallSettings<GetTriggerRequest, Trigger> getTriggerTransportSettings =\n HttpJsonCallSettings.<GetTriggerRequest, Trigger>newBuilder()\n .setMethodDescriptor(getTriggerMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"name\", String.valueOf(request.getName()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<ListTriggersRequest, ListTriggersResponse> listTriggersTransportSettings =\n HttpJsonCallSettings.<ListTriggersRequest, ListTriggersResponse>newBuilder()\n .setMethodDescriptor(listTriggersMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"parent\", String.valueOf(request.getParent()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<CreateTriggerRequest, Operation> createTriggerTransportSettings =\n HttpJsonCallSettings.<CreateTriggerRequest, Operation>newBuilder()\n .setMethodDescriptor(createTriggerMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"parent\", String.valueOf(request.getParent()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<UpdateTriggerRequest, Operation> updateTriggerTransportSettings =\n HttpJsonCallSettings.<UpdateTriggerRequest, Operation>newBuilder()\n .setMethodDescriptor(updateTriggerMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"trigger.name\", String.valueOf(request.getTrigger().getName()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<DeleteTriggerRequest, Operation> deleteTriggerTransportSettings =\n HttpJsonCallSettings.<DeleteTriggerRequest, Operation>newBuilder()\n .setMethodDescriptor(deleteTriggerMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"name\", String.valueOf(request.getName()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<GetChannelRequest, Channel> getChannelTransportSettings =\n HttpJsonCallSettings.<GetChannelRequest, Channel>newBuilder()\n .setMethodDescriptor(getChannelMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"name\", String.valueOf(request.getName()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<ListChannelsRequest, ListChannelsResponse> listChannelsTransportSettings =\n HttpJsonCallSettings.<ListChannelsRequest, ListChannelsResponse>newBuilder()\n .setMethodDescriptor(listChannelsMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"parent\", String.valueOf(request.getParent()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<CreateChannelRequest, Operation> createChannelTransportSettings =\n HttpJsonCallSettings.<CreateChannelRequest, Operation>newBuilder()\n .setMethodDescriptor(createChannelMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"parent\", String.valueOf(request.getParent()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<UpdateChannelRequest, Operation> updateChannelTransportSettings =\n HttpJsonCallSettings.<UpdateChannelRequest, Operation>newBuilder()\n .setMethodDescriptor(updateChannelMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"channel.name\", String.valueOf(request.getChannel().getName()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<DeleteChannelRequest, Operation> deleteChannelTransportSettings =\n HttpJsonCallSettings.<DeleteChannelRequest, Operation>newBuilder()\n .setMethodDescriptor(deleteChannelMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"name\", String.valueOf(request.getName()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<GetProviderRequest, Provider> getProviderTransportSettings =\n HttpJsonCallSettings.<GetProviderRequest, Provider>newBuilder()\n .setMethodDescriptor(getProviderMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"name\", String.valueOf(request.getName()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<ListProvidersRequest, ListProvidersResponse>\n listProvidersTransportSettings =\n HttpJsonCallSettings.<ListProvidersRequest, ListProvidersResponse>newBuilder()\n .setMethodDescriptor(listProvidersMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"parent\", String.valueOf(request.getParent()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<GetChannelConnectionRequest, ChannelConnection>\n getChannelConnectionTransportSettings =\n HttpJsonCallSettings.<GetChannelConnectionRequest, ChannelConnection>newBuilder()\n .setMethodDescriptor(getChannelConnectionMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"name\", String.valueOf(request.getName()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<ListChannelConnectionsRequest, ListChannelConnectionsResponse>\n listChannelConnectionsTransportSettings =\n HttpJsonCallSettings\n .<ListChannelConnectionsRequest, ListChannelConnectionsResponse>newBuilder()\n .setMethodDescriptor(listChannelConnectionsMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"parent\", String.valueOf(request.getParent()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<CreateChannelConnectionRequest, Operation>\n createChannelConnectionTransportSettings =\n HttpJsonCallSettings.<CreateChannelConnectionRequest, Operation>newBuilder()\n .setMethodDescriptor(createChannelConnectionMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"parent\", String.valueOf(request.getParent()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<DeleteChannelConnectionRequest, Operation>\n deleteChannelConnectionTransportSettings =\n HttpJsonCallSettings.<DeleteChannelConnectionRequest, Operation>newBuilder()\n .setMethodDescriptor(deleteChannelConnectionMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"name\", String.valueOf(request.getName()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<GetGoogleChannelConfigRequest, GoogleChannelConfig>\n getGoogleChannelConfigTransportSettings =\n HttpJsonCallSettings.<GetGoogleChannelConfigRequest, GoogleChannelConfig>newBuilder()\n .setMethodDescriptor(getGoogleChannelConfigMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"name\", String.valueOf(request.getName()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<UpdateGoogleChannelConfigRequest, GoogleChannelConfig>\n updateGoogleChannelConfigTransportSettings =\n HttpJsonCallSettings.<UpdateGoogleChannelConfigRequest, GoogleChannelConfig>newBuilder()\n .setMethodDescriptor(updateGoogleChannelConfigMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\n \"google_channel_config.name\",\n String.valueOf(request.getGoogleChannelConfig().getName()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<ListLocationsRequest, ListLocationsResponse>\n listLocationsTransportSettings =\n HttpJsonCallSettings.<ListLocationsRequest, ListLocationsResponse>newBuilder()\n .setMethodDescriptor(listLocationsMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"name\", String.valueOf(request.getName()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<GetLocationRequest, Location> getLocationTransportSettings =\n HttpJsonCallSettings.<GetLocationRequest, Location>newBuilder()\n .setMethodDescriptor(getLocationMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"name\", String.valueOf(request.getName()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<SetIamPolicyRequest, Policy> setIamPolicyTransportSettings =\n HttpJsonCallSettings.<SetIamPolicyRequest, Policy>newBuilder()\n .setMethodDescriptor(setIamPolicyMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"resource\", String.valueOf(request.getResource()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<GetIamPolicyRequest, Policy> getIamPolicyTransportSettings =\n HttpJsonCallSettings.<GetIamPolicyRequest, Policy>newBuilder()\n .setMethodDescriptor(getIamPolicyMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"resource\", String.valueOf(request.getResource()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<TestIamPermissionsRequest, TestIamPermissionsResponse>\n testIamPermissionsTransportSettings =\n HttpJsonCallSettings.<TestIamPermissionsRequest, TestIamPermissionsResponse>newBuilder()\n .setMethodDescriptor(testIamPermissionsMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"resource\", String.valueOf(request.getResource()));\n return builder.build();\n })\n .build();\n\n this.getTriggerCallable =\n callableFactory.createUnaryCallable(\n getTriggerTransportSettings, settings.getTriggerSettings(), clientContext);\n this.listTriggersCallable =\n callableFactory.createUnaryCallable(\n listTriggersTransportSettings, settings.listTriggersSettings(), clientContext);\n this.listTriggersPagedCallable =\n callableFactory.createPagedCallable(\n listTriggersTransportSettings, settings.listTriggersSettings(), clientContext);\n this.createTriggerCallable =\n callableFactory.createUnaryCallable(\n createTriggerTransportSettings, settings.createTriggerSettings(), clientContext);\n this.createTriggerOperationCallable =\n callableFactory.createOperationCallable(\n createTriggerTransportSettings,\n settings.createTriggerOperationSettings(),\n clientContext,\n httpJsonOperationsStub);\n this.updateTriggerCallable =\n callableFactory.createUnaryCallable(\n updateTriggerTransportSettings, settings.updateTriggerSettings(), clientContext);\n this.updateTriggerOperationCallable =\n callableFactory.createOperationCallable(\n updateTriggerTransportSettings,\n settings.updateTriggerOperationSettings(),\n clientContext,\n httpJsonOperationsStub);\n this.deleteTriggerCallable =\n callableFactory.createUnaryCallable(\n deleteTriggerTransportSettings, settings.deleteTriggerSettings(), clientContext);\n this.deleteTriggerOperationCallable =\n callableFactory.createOperationCallable(\n deleteTriggerTransportSettings,\n settings.deleteTriggerOperationSettings(),\n clientContext,\n httpJsonOperationsStub);\n this.getChannelCallable =\n callableFactory.createUnaryCallable(\n getChannelTransportSettings, settings.getChannelSettings(), clientContext);\n this.listChannelsCallable =\n callableFactory.createUnaryCallable(\n listChannelsTransportSettings, settings.listChannelsSettings(), clientContext);\n this.listChannelsPagedCallable =\n callableFactory.createPagedCallable(\n listChannelsTransportSettings, settings.listChannelsSettings(), clientContext);\n this.createChannelCallable =\n callableFactory.createUnaryCallable(\n createChannelTransportSettings, settings.createChannelSettings(), clientContext);\n this.createChannelOperationCallable =\n callableFactory.createOperationCallable(\n createChannelTransportSettings,\n settings.createChannelOperationSettings(),\n clientContext,\n httpJsonOperationsStub);\n this.updateChannelCallable =\n callableFactory.createUnaryCallable(\n updateChannelTransportSettings, settings.updateChannelSettings(), clientContext);\n this.updateChannelOperationCallable =\n callableFactory.createOperationCallable(\n updateChannelTransportSettings,\n settings.updateChannelOperationSettings(),\n clientContext,\n httpJsonOperationsStub);\n this.deleteChannelCallable =\n callableFactory.createUnaryCallable(\n deleteChannelTransportSettings, settings.deleteChannelSettings(), clientContext);\n this.deleteChannelOperationCallable =\n callableFactory.createOperationCallable(\n deleteChannelTransportSettings,\n settings.deleteChannelOperationSettings(),\n clientContext,\n httpJsonOperationsStub);\n this.getProviderCallable =\n callableFactory.createUnaryCallable(\n getProviderTransportSettings, settings.getProviderSettings(), clientContext);\n this.listProvidersCallable =\n callableFactory.createUnaryCallable(\n listProvidersTransportSettings, settings.listProvidersSettings(), clientContext);\n this.listProvidersPagedCallable =\n callableFactory.createPagedCallable(\n listProvidersTransportSettings, settings.listProvidersSettings(), clientContext);\n this.getChannelConnectionCallable =\n callableFactory.createUnaryCallable(\n getChannelConnectionTransportSettings,\n settings.getChannelConnectionSettings(),\n clientContext);\n this.listChannelConnectionsCallable =\n callableFactory.createUnaryCallable(\n listChannelConnectionsTransportSettings,\n settings.listChannelConnectionsSettings(),\n clientContext);\n this.listChannelConnectionsPagedCallable =\n callableFactory.createPagedCallable(\n listChannelConnectionsTransportSettings,\n settings.listChannelConnectionsSettings(),\n clientContext);\n this.createChannelConnectionCallable =\n callableFactory.createUnaryCallable(\n createChannelConnectionTransportSettings,\n settings.createChannelConnectionSettings(),\n clientContext);\n this.createChannelConnectionOperationCallable =\n callableFactory.createOperationCallable(\n createChannelConnectionTransportSettings,\n settings.createChannelConnectionOperationSettings(),\n clientContext,\n httpJsonOperationsStub);\n this.deleteChannelConnectionCallable =\n callableFactory.createUnaryCallable(\n deleteChannelConnectionTransportSettings,\n settings.deleteChannelConnectionSettings(),\n clientContext);\n this.deleteChannelConnectionOperationCallable =\n callableFactory.createOperationCallable(\n deleteChannelConnectionTransportSettings,\n settings.deleteChannelConnectionOperationSettings(),\n clientContext,\n httpJsonOperationsStub);\n this.getGoogleChannelConfigCallable =\n callableFactory.createUnaryCallable(\n getGoogleChannelConfigTransportSettings,\n settings.getGoogleChannelConfigSettings(),\n clientContext);\n this.updateGoogleChannelConfigCallable =\n callableFactory.createUnaryCallable(\n updateGoogleChannelConfigTransportSettings,\n settings.updateGoogleChannelConfigSettings(),\n clientContext);\n this.listLocationsCallable =\n callableFactory.createUnaryCallable(\n listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);\n this.listLocationsPagedCallable =\n callableFactory.createPagedCallable(\n listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);\n this.getLocationCallable =\n callableFactory.createUnaryCallable(\n getLocationTransportSettings, settings.getLocationSettings(), clientContext);\n this.setIamPolicyCallable =\n callableFactory.createUnaryCallable(\n setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext);\n this.getIamPolicyCallable =\n callableFactory.createUnaryCallable(\n getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext);\n this.testIamPermissionsCallable =\n callableFactory.createUnaryCallable(\n testIamPermissionsTransportSettings,\n settings.testIamPermissionsSettings(),\n clientContext);\n\n this.backgroundResources =\n new BackgroundResourceAggregation(clientContext.getBackgroundResources());\n }", "public interface IRoutingDomainsServiceAsync extends RemoteService {\n\t/**\n\t * Returns the routing domains.\n\t * @param callback Callback for processing the returned routing domains.\n\t */\n\tvoid getDomains(AsyncCallback<List<RoutingDomainSelDTO>> callback);\n\n\t/**\n\t * Returns the detail of a routing domain.\n\t * @param id Routing domain id.\n\t * @param callback Callback for processing the requested routing domain.\n\t */\n\tvoid get(String id, AsyncCallback<RoutingDomainDTO> callback);\n\n\t/**\n\t * Saves a routing domain. If the id is {@code null} it is considered an insert, otherwise it is an update.\n\t * @param dto Routing domain to save.\n\t * @param callback Callback for processing the saved routing domain.\n\t */\n\tvoid save(RoutingDomainDTO dto, AsyncCallback<RoutingDomainDTO> callback);\n\n\t/**\n\t * Deletes a routing domain.\n\t * @param id Routing domain id.\n\t * @param callback Callback.\n\t */\n\tvoid delete(String id, AsyncCallback<Void> callback);\n\n\t/**\n\t * Returns the default routing domain.<br/>\n\t * @param callback Callback for processing the returned default routing domain.\n\t */\n\tvoid getDefault(AsyncCallback<RoutingDomainDTO> callback);\n\n\t/**\n\t * Sets the default routing domain.<br/>\n\t * @param dto The default routing domain.\n\t * @param callback Callback for processing the returned default routing domain.\n\t */\n\tvoid setDefault(RoutingDomainDTO dto, AsyncCallback<RoutingDomainDTO> callback);\n}", "protected HttpJsonFunctionServiceStub(\n FunctionServiceStubSettings settings,\n ClientContext clientContext,\n HttpJsonStubCallableFactory callableFactory)\n throws IOException {\n this.callableFactory = callableFactory;\n this.httpJsonOperationsStub =\n HttpJsonOperationsStub.create(\n clientContext,\n callableFactory,\n typeRegistry,\n ImmutableMap.<String, HttpRule>builder()\n .put(\n \"google.longrunning.Operations.GetOperation\",\n HttpRule.newBuilder()\n .setGet(\"/v2/{name=projects/*/locations/*/operations/*}\")\n .build())\n .put(\n \"google.longrunning.Operations.ListOperations\",\n HttpRule.newBuilder()\n .setGet(\"/v2/{name=projects/*/locations/*}/operations\")\n .build())\n .build());\n\n HttpJsonCallSettings<GetFunctionRequest, Function> getFunctionTransportSettings =\n HttpJsonCallSettings.<GetFunctionRequest, Function>newBuilder()\n .setMethodDescriptor(getFunctionMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"name\", String.valueOf(request.getName()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<ListFunctionsRequest, ListFunctionsResponse>\n listFunctionsTransportSettings =\n HttpJsonCallSettings.<ListFunctionsRequest, ListFunctionsResponse>newBuilder()\n .setMethodDescriptor(listFunctionsMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"parent\", String.valueOf(request.getParent()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<CreateFunctionRequest, Operation> createFunctionTransportSettings =\n HttpJsonCallSettings.<CreateFunctionRequest, Operation>newBuilder()\n .setMethodDescriptor(createFunctionMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"parent\", String.valueOf(request.getParent()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<UpdateFunctionRequest, Operation> updateFunctionTransportSettings =\n HttpJsonCallSettings.<UpdateFunctionRequest, Operation>newBuilder()\n .setMethodDescriptor(updateFunctionMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"function.name\", String.valueOf(request.getFunction().getName()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<DeleteFunctionRequest, Operation> deleteFunctionTransportSettings =\n HttpJsonCallSettings.<DeleteFunctionRequest, Operation>newBuilder()\n .setMethodDescriptor(deleteFunctionMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"name\", String.valueOf(request.getName()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<GenerateUploadUrlRequest, GenerateUploadUrlResponse>\n generateUploadUrlTransportSettings =\n HttpJsonCallSettings.<GenerateUploadUrlRequest, GenerateUploadUrlResponse>newBuilder()\n .setMethodDescriptor(generateUploadUrlMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"parent\", String.valueOf(request.getParent()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<GenerateDownloadUrlRequest, GenerateDownloadUrlResponse>\n generateDownloadUrlTransportSettings =\n HttpJsonCallSettings\n .<GenerateDownloadUrlRequest, GenerateDownloadUrlResponse>newBuilder()\n .setMethodDescriptor(generateDownloadUrlMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"name\", String.valueOf(request.getName()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<ListRuntimesRequest, ListRuntimesResponse> listRuntimesTransportSettings =\n HttpJsonCallSettings.<ListRuntimesRequest, ListRuntimesResponse>newBuilder()\n .setMethodDescriptor(listRuntimesMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"parent\", String.valueOf(request.getParent()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<ListLocationsRequest, ListLocationsResponse>\n listLocationsTransportSettings =\n HttpJsonCallSettings.<ListLocationsRequest, ListLocationsResponse>newBuilder()\n .setMethodDescriptor(listLocationsMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"name\", String.valueOf(request.getName()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<SetIamPolicyRequest, Policy> setIamPolicyTransportSettings =\n HttpJsonCallSettings.<SetIamPolicyRequest, Policy>newBuilder()\n .setMethodDescriptor(setIamPolicyMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"resource\", String.valueOf(request.getResource()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<GetIamPolicyRequest, Policy> getIamPolicyTransportSettings =\n HttpJsonCallSettings.<GetIamPolicyRequest, Policy>newBuilder()\n .setMethodDescriptor(getIamPolicyMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"resource\", String.valueOf(request.getResource()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<TestIamPermissionsRequest, TestIamPermissionsResponse>\n testIamPermissionsTransportSettings =\n HttpJsonCallSettings.<TestIamPermissionsRequest, TestIamPermissionsResponse>newBuilder()\n .setMethodDescriptor(testIamPermissionsMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"resource\", String.valueOf(request.getResource()));\n return builder.build();\n })\n .build();\n\n this.getFunctionCallable =\n callableFactory.createUnaryCallable(\n getFunctionTransportSettings, settings.getFunctionSettings(), clientContext);\n this.listFunctionsCallable =\n callableFactory.createUnaryCallable(\n listFunctionsTransportSettings, settings.listFunctionsSettings(), clientContext);\n this.listFunctionsPagedCallable =\n callableFactory.createPagedCallable(\n listFunctionsTransportSettings, settings.listFunctionsSettings(), clientContext);\n this.createFunctionCallable =\n callableFactory.createUnaryCallable(\n createFunctionTransportSettings, settings.createFunctionSettings(), clientContext);\n this.createFunctionOperationCallable =\n callableFactory.createOperationCallable(\n createFunctionTransportSettings,\n settings.createFunctionOperationSettings(),\n clientContext,\n httpJsonOperationsStub);\n this.updateFunctionCallable =\n callableFactory.createUnaryCallable(\n updateFunctionTransportSettings, settings.updateFunctionSettings(), clientContext);\n this.updateFunctionOperationCallable =\n callableFactory.createOperationCallable(\n updateFunctionTransportSettings,\n settings.updateFunctionOperationSettings(),\n clientContext,\n httpJsonOperationsStub);\n this.deleteFunctionCallable =\n callableFactory.createUnaryCallable(\n deleteFunctionTransportSettings, settings.deleteFunctionSettings(), clientContext);\n this.deleteFunctionOperationCallable =\n callableFactory.createOperationCallable(\n deleteFunctionTransportSettings,\n settings.deleteFunctionOperationSettings(),\n clientContext,\n httpJsonOperationsStub);\n this.generateUploadUrlCallable =\n callableFactory.createUnaryCallable(\n generateUploadUrlTransportSettings,\n settings.generateUploadUrlSettings(),\n clientContext);\n this.generateDownloadUrlCallable =\n callableFactory.createUnaryCallable(\n generateDownloadUrlTransportSettings,\n settings.generateDownloadUrlSettings(),\n clientContext);\n this.listRuntimesCallable =\n callableFactory.createUnaryCallable(\n listRuntimesTransportSettings, settings.listRuntimesSettings(), clientContext);\n this.listLocationsCallable =\n callableFactory.createUnaryCallable(\n listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);\n this.listLocationsPagedCallable =\n callableFactory.createPagedCallable(\n listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);\n this.setIamPolicyCallable =\n callableFactory.createUnaryCallable(\n setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext);\n this.getIamPolicyCallable =\n callableFactory.createUnaryCallable(\n getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext);\n this.testIamPermissionsCallable =\n callableFactory.createUnaryCallable(\n testIamPermissionsTransportSettings,\n settings.testIamPermissionsSettings(),\n clientContext);\n\n this.backgroundResources =\n new BackgroundResourceAggregation(clientContext.getBackgroundResources());\n }", "public interface AsyncOperationHelper {\n\t\n\t/**\n\t * Inserisce l'operazione asincrona e restituisce il risultato dell'invocazione.\n\t * \n\t * @param account l'account relativo alla richiesta\n\t * @param azioneRichiesta l'azione richiesta\n\t * @param ente l'ente\n\t * @param richiedente il richiedente\n\t * \n\t * @return la response del servizio di {@link InserisciOperazioneAsinc}\n\t * \n\t * @throws WebServiceInvocationFailureException nel caso in cui l'invocazione del WebService restituisca un'eccezione\n\t */\n\tInserisciOperazioneAsincResponse inserisciOperazioneAsincrona(Account account, AzioneRichiesta azioneRichiesta, Ente ente, Richiedente richiedente)\n\t\tthrows WebServiceInvocationFailureException;\n\t\n\t/**\n\t * Effettua il polling dell'operazione asincrona.\n\t * \n\t * @param idAzioneAsync l'id dell'azione asincrona\n\t * @param richiedente il richiedente\n\t * \n\t * @return la response del servizio di {@link GetOperazioneAsincResponse}\n\t * \n\t * @throws WebServiceInvocationFailureException nel caso in cui l'invocazione del WebService restituisca un'eccezione\n\t */\n\tGetOperazioneAsincResponse getOperazioneAsinc(Integer idAzioneAsync, Richiedente richiedente) throws WebServiceInvocationFailureException;\n\t\n}", "public static BookServicesFutureStub newFutureStub(\n io.grpc.Channel channel) {\n return new BookServicesFutureStub(channel);\n }", "@ThriftService(\"ThriftTaskService\")\npublic interface ThriftTaskClient\n{\n @ThriftMethod\n ListenableFuture<ThriftBufferResult> getResults(TaskId taskId, OutputBufferId bufferId, long token, long maxSizeInBytes);\n\n @ThriftMethod\n ListenableFuture<Void> acknowledgeResults(TaskId taskId, OutputBufferId bufferId, long token);\n\n @ThriftMethod\n ListenableFuture<Void> abortResults(TaskId taskId, OutputBufferId bufferId);\n}", "public interface AsyncService {\n\n /**\n * <pre>\n * Creates or removes asset group signals. Operation statuses are\n * returned.\n * </pre>\n */\n default void mutateAssetGroupSignals(com.google.ads.googleads.v14.services.MutateAssetGroupSignalsRequest request,\n io.grpc.stub.StreamObserver<com.google.ads.googleads.v14.services.MutateAssetGroupSignalsResponse> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getMutateAssetGroupSignalsMethod(), responseObserver);\n }\n }", "public static TpuFutureStub newFutureStub(io.grpc.Channel channel) {\n io.grpc.stub.AbstractStub.StubFactory<TpuFutureStub> factory =\n new io.grpc.stub.AbstractStub.StubFactory<TpuFutureStub>() {\n @java.lang.Override\n public TpuFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {\n return new TpuFutureStub(channel, callOptions);\n }\n };\n return TpuFutureStub.newStub(factory, channel);\n }", "public static interface ApplicationManagerFutureClient {\n\n /**\n * <pre>\n * Applications should first be registered to the Handler with the `RegisterApplication` method\n * </pre>\n */\n public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> registerApplication(\n org.thethingsnetwork.management.proto.HandlerOuterClass.ApplicationIdentifier request);\n\n /**\n * <pre>\n * GetApplication returns the application with the given identifier (app_id)\n * </pre>\n */\n public com.google.common.util.concurrent.ListenableFuture<org.thethingsnetwork.management.proto.HandlerOuterClass.Application> getApplication(\n org.thethingsnetwork.management.proto.HandlerOuterClass.ApplicationIdentifier request);\n\n /**\n * <pre>\n * SetApplication updates the settings for the application. All fields must be supplied.\n * </pre>\n */\n public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> setApplication(\n org.thethingsnetwork.management.proto.HandlerOuterClass.Application request);\n\n /**\n * <pre>\n * DeleteApplication deletes the application with the given identifier (app_id)\n * </pre>\n */\n public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> deleteApplication(\n org.thethingsnetwork.management.proto.HandlerOuterClass.ApplicationIdentifier request);\n\n /**\n * <pre>\n * GetDevice returns the device with the given identifier (app_id and dev_id)\n * </pre>\n */\n public com.google.common.util.concurrent.ListenableFuture<org.thethingsnetwork.management.proto.HandlerOuterClass.Device> getDevice(\n org.thethingsnetwork.management.proto.HandlerOuterClass.DeviceIdentifier request);\n\n /**\n * <pre>\n * SetDevice creates or updates a device. All fields must be supplied.\n * </pre>\n */\n public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> setDevice(\n org.thethingsnetwork.management.proto.HandlerOuterClass.Device request);\n\n /**\n * <pre>\n * DeleteDevice deletes the device with the given identifier (app_id and dev_id)\n * </pre>\n */\n public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> deleteDevice(\n org.thethingsnetwork.management.proto.HandlerOuterClass.DeviceIdentifier request);\n\n /**\n * <pre>\n * GetDevicesForApplication returns all devices that belong to the application with the given identifier (app_id)\n * </pre>\n */\n public com.google.common.util.concurrent.ListenableFuture<org.thethingsnetwork.management.proto.HandlerOuterClass.DeviceList> getDevicesForApplication(\n org.thethingsnetwork.management.proto.HandlerOuterClass.ApplicationIdentifier request);\n\n /**\n * <pre>\n * DryUplink simulates processing a downlink message and returns the result\n * </pre>\n */\n public com.google.common.util.concurrent.ListenableFuture<org.thethingsnetwork.management.proto.HandlerOuterClass.DryDownlinkResult> dryDownlink(\n org.thethingsnetwork.management.proto.HandlerOuterClass.DryDownlinkMessage request);\n\n /**\n * <pre>\n * DryUplink simulates processing an uplink message and returns the result\n * </pre>\n */\n public com.google.common.util.concurrent.ListenableFuture<org.thethingsnetwork.management.proto.HandlerOuterClass.DryUplinkResult> dryUplink(\n org.thethingsnetwork.management.proto.HandlerOuterClass.DryUplinkMessage request);\n\n /**\n * <pre>\n * SimulateUplink simulates an uplink message\n * </pre>\n */\n public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> simulateUplink(\n org.thethingsnetwork.management.proto.HandlerOuterClass.SimulatedUplinkMessage request);\n }", "public static RaftServerProtocolServiceStub newStub(org.apache.ratis.shaded.io.grpc.Channel channel) {\n return new RaftServerProtocolServiceStub(channel);\n }", "public static JwtAuthTestServiceFutureStub newFutureStub(\n io.grpc.Channel channel) {\n io.grpc.stub.AbstractStub.StubFactory<JwtAuthTestServiceFutureStub> factory =\n new io.grpc.stub.AbstractStub.StubFactory<JwtAuthTestServiceFutureStub>() {\n @java.lang.Override\n public JwtAuthTestServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {\n return new JwtAuthTestServiceFutureStub(channel, callOptions);\n }\n };\n return JwtAuthTestServiceFutureStub.newStub(factory, channel);\n }", "public interface AsynService {\n void asynMethod();\n}", "public interface BankOfficeGWTServiceAsync {\n\tpublic void findById(Integer id, AsyncCallback<BankOfficeDTO> callback);\n\tpublic void saveOrUpdate(BankOfficeDTO entity, AsyncCallback<Integer> callback);\n\tpublic void getMyOffice(AsyncCallback<BankOfficeDTO> callback);\n\tpublic void findByExternalId(Long midasId, AsyncCallback<BankOfficeDTO> callback);\n\tpublic void findAll(AsyncCallback<ArrayList<BankOfficeDTO>> callback);\n\tpublic void findAllShort(AsyncCallback<ArrayList<ListBoxDTO>> asyncCallback);\n}", "protected GrpcAssetServiceStub(AssetServiceStubSettings settings, ClientContext clientContext)\n throws IOException {\n this(settings, clientContext, new GrpcAssetServiceCallableFactory());\n }", "protected HttpJsonServicesStub(ServicesStubSettings settings, ClientContext clientContext)\n throws IOException {\n this(settings, clientContext, new HttpJsonServicesCallableFactory());\n }", "public static RoutesFutureStub newFutureStub(io.grpc.Channel channel) {\n io.grpc.stub.AbstractStub.StubFactory<RoutesFutureStub> factory =\n new io.grpc.stub.AbstractStub.StubFactory<RoutesFutureStub>() {\n @java.lang.Override\n public RoutesFutureStub newStub(\n io.grpc.Channel channel, io.grpc.CallOptions callOptions) {\n return new RoutesFutureStub(channel, callOptions);\n }\n };\n return RoutesFutureStub.newStub(factory, channel);\n }", "public interface StubGenerator {\n\n\t/**\n\t * @param fileName - file name\n\t * @return {@code true} if the converter can handle the file to convert it into a\n\t * stub.\n\t */\n\tdefault boolean canHandleFileName(String fileName) {\n\t\treturn fileName.endsWith(fileExtension());\n\t}\n\n\t/**\n\t * @param rootName - root name of the contract\n\t * @param content - metadata of the contract\n\t * @return the collection of converted contracts into stubs. One contract can result\n\t * in multiple stubs.\n\t */\n\tMap<Contract, String> convertContents(String rootName, ContractMetadata content);\n\n\t/**\n\t * @param inputFileName - name of the input file\n\t * @return the name of the converted stub file. If you have multiple contracts in a\n\t * single file then a prefix will be added to the generated file. If you provide the\n\t * {@link Contract#name} field then that field will override the generated file name.\n\t *\n\t * Example: name of file with 2 contracts is {@code foo.groovy}, it will be converted\n\t * by the implementation to {@code foo.json}. The recursive file converter will create\n\t * two files {@code 0_foo.json} and {@code 1_foo.json}\n\t */\n\tString generateOutputFileNameForInput(String inputFileName);\n\n\t/**\n\t * Describes the file extension that this stub generator can handle.\n\t * @return string describing the file extension\n\t */\n\tdefault String fileExtension() {\n\t\treturn \".json\";\n\t}\n\n}", "@NonNull\n @MainThread\n protected abstract LiveData<ApiResponse<RequestType>> createCall();", "public static ProductServiceFutureStub newFutureStub(\n io.grpc.Channel channel) {\n io.grpc.stub.AbstractStub.StubFactory<ProductServiceFutureStub> factory =\n new io.grpc.stub.AbstractStub.StubFactory<ProductServiceFutureStub>() {\n @java.lang.Override\n public ProductServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {\n return new ProductServiceFutureStub(channel, callOptions);\n }\n };\n return ProductServiceFutureStub.newStub(factory, channel);\n }", "public interface ICommunicationService\n extends IInterface\n{\n public static abstract class Stub extends Binder\n implements ICommunicationService\n {\n\n static final int TRANSACTION_acquireConnection = 1;\n static final int TRANSACTION_acquireConnectionEx = 8;\n static final int TRANSACTION_deregisterMessageHandler = 3;\n static final int TRANSACTION_getGatewayConnectivity = 9;\n static final int TRANSACTION_getIdentityResolver = 6;\n static final int TRANSACTION_isInitialized = 7;\n static final int TRANSACTION_registerMessageHandler = 2;\n static final int TRANSACTION_removeAckHandler = 11;\n static final int TRANSACTION_routeMessage = 4;\n static final int TRANSACTION_routeMessageFragment = 5;\n static final int TRANSACTION_setAckHandler = 10;\n\n public static ICommunicationService asInterface(IBinder ibinder)\n {\n if (ibinder == null)\n {\n return null;\n }\n IInterface iinterface = ibinder.queryLocalInterface(\"com.amazon.communication.ICommunicationService\");\n if (iinterface != null && (iinterface instanceof ICommunicationService))\n {\n return (ICommunicationService)iinterface;\n } else\n {\n return new Proxy(ibinder);\n }\n }\n\n public IBinder asBinder()\n {\n return this;\n }\n\n public boolean onTransact(int i, Parcel parcel, Parcel parcel1, int j)\n throws RemoteException\n {\n Object obj1 = null;\n ParcelableStatus parcelablestatus2 = null;\n Object obj = null;\n Object obj2 = null;\n boolean flag = false;\n switch (i)\n {\n default:\n return super.onTransact(i, parcel, parcel1, j);\n\n case 1598968902: \n parcel1.writeString(\"com.amazon.communication.ICommunicationService\");\n return true;\n\n case 1: // '\\001'\n parcel.enforceInterface(\"com.amazon.communication.ICommunicationService\");\n if (parcel.readInt() != 0)\n {\n obj = (ParcelableEndpointIdentity)ParcelableEndpointIdentity.CREATOR.createFromParcel(parcel);\n } else\n {\n obj = null;\n }\n if (parcel.readInt() != 0)\n {\n obj1 = (ParcelableConnectionPolicy)ParcelableConnectionPolicy.CREATOR.createFromParcel(parcel);\n } else\n {\n obj1 = null;\n }\n parcel = IConnectionListener.Stub.asInterface(parcel.readStrongBinder());\n parcelablestatus2 = new ParcelableStatus();\n obj = acquireConnection(((ParcelableEndpointIdentity) (obj)), ((ParcelableConnectionPolicy) (obj1)), parcel, parcelablestatus2);\n parcel1.writeNoException();\n parcel = obj2;\n if (obj != null)\n {\n parcel = ((IConnection) (obj)).asBinder();\n }\n parcel1.writeStrongBinder(parcel);\n if (parcelablestatus2 != null)\n {\n parcel1.writeInt(1);\n parcelablestatus2.writeToParcel(parcel1, 1);\n return true;\n } else\n {\n parcel1.writeInt(0);\n return true;\n }\n\n case 2: // '\\002'\n parcel.enforceInterface(\"com.amazon.communication.ICommunicationService\");\n i = registerMessageHandler(parcel.readInt(), IMessageHandler.Stub.asInterface(parcel.readStrongBinder()));\n parcel1.writeNoException();\n parcel1.writeInt(i);\n return true;\n\n case 3: // '\\003'\n parcel.enforceInterface(\"com.amazon.communication.ICommunicationService\");\n deregisterMessageHandler(parcel.readInt());\n parcel1.writeNoException();\n return true;\n\n case 4: // '\\004'\n parcel.enforceInterface(\"com.amazon.communication.ICommunicationService\");\n if (parcel.readInt() != 0)\n {\n obj = (ParcelableEndpointIdentity)ParcelableEndpointIdentity.CREATOR.createFromParcel(parcel);\n } else\n {\n obj = null;\n }\n if (parcel.readInt() != 0)\n {\n obj1 = (MessageEnvelope)MessageEnvelope.CREATOR.createFromParcel(parcel);\n } else\n {\n obj1 = null;\n }\n routeMessage(((ParcelableEndpointIdentity) (obj)), ((MessageEnvelope) (obj1)), parcel.readInt());\n parcel1.writeNoException();\n return true;\n\n case 5: // '\\005'\n parcel.enforceInterface(\"com.amazon.communication.ICommunicationService\");\n boolean flag1;\n if (parcel.readInt() != 0)\n {\n obj = (ParcelableEndpointIdentity)ParcelableEndpointIdentity.CREATOR.createFromParcel(parcel);\n } else\n {\n obj = null;\n }\n i = parcel.readInt();\n if (parcel.readInt() != 0)\n {\n obj1 = (MessageEnvelope)MessageEnvelope.CREATOR.createFromParcel(parcel);\n } else\n {\n obj1 = null;\n }\n if (parcel.readInt() != 0)\n {\n flag1 = true;\n } else\n {\n flag1 = false;\n }\n routeMessageFragment(((ParcelableEndpointIdentity) (obj)), i, ((MessageEnvelope) (obj1)), flag1, parcel.readInt());\n parcel1.writeNoException();\n return true;\n\n case 6: // '\\006'\n parcel.enforceInterface(\"com.amazon.communication.ICommunicationService\");\n obj = getIdentityResolver();\n parcel1.writeNoException();\n parcel = ((Parcel) (obj1));\n if (obj != null)\n {\n parcel = ((IIdentityResolver) (obj)).asBinder();\n }\n parcel1.writeStrongBinder(parcel);\n return true;\n\n case 7: // '\\007'\n parcel.enforceInterface(\"com.amazon.communication.ICommunicationService\");\n boolean flag2 = isInitialized();\n parcel1.writeNoException();\n i = ((flag) ? 1 : 0);\n if (flag2)\n {\n i = 1;\n }\n parcel1.writeInt(i);\n return true;\n\n case 8: // '\\b'\n parcel.enforceInterface(\"com.amazon.communication.ICommunicationService\");\n ParcelablePolicy parcelablepolicy;\n ParcelableStatus parcelablestatus1;\n if (parcel.readInt() != 0)\n {\n obj = (ParcelableEndpointIdentity)ParcelableEndpointIdentity.CREATOR.createFromParcel(parcel);\n } else\n {\n obj = null;\n }\n if (parcel.readInt() != 0)\n {\n parcelablepolicy = (ParcelablePolicy)ParcelablePolicy.CREATOR.createFromParcel(parcel);\n } else\n {\n parcelablepolicy = null;\n }\n parcel = IConnectionListener.Stub.asInterface(parcel.readStrongBinder());\n parcelablestatus1 = new ParcelableStatus();\n obj = acquireConnectionEx(((ParcelableEndpointIdentity) (obj)), parcelablepolicy, parcel, parcelablestatus1);\n parcel1.writeNoException();\n parcel = parcelablestatus2;\n if (obj != null)\n {\n parcel = ((IConnection) (obj)).asBinder();\n }\n parcel1.writeStrongBinder(parcel);\n if (parcelablestatus1 != null)\n {\n parcel1.writeInt(1);\n parcelablestatus1.writeToParcel(parcel1, 1);\n return true;\n } else\n {\n parcel1.writeInt(0);\n return true;\n }\n\n case 9: // '\\t'\n parcel.enforceInterface(\"com.amazon.communication.ICommunicationService\");\n parcel = IConnectionListener.Stub.asInterface(parcel.readStrongBinder());\n ParcelableStatus parcelablestatus = new ParcelableStatus();\n IGatewayConnectivity igatewayconnectivity = getGatewayConnectivity(parcel, parcelablestatus);\n parcel1.writeNoException();\n parcel = ((Parcel) (obj));\n if (igatewayconnectivity != null)\n {\n parcel = igatewayconnectivity.asBinder();\n }\n parcel1.writeStrongBinder(parcel);\n if (parcelablestatus != null)\n {\n parcel1.writeInt(1);\n parcelablestatus.writeToParcel(parcel1, 1);\n return true;\n } else\n {\n parcel1.writeInt(0);\n return true;\n }\n\n case 10: // '\\n'\n parcel.enforceInterface(\"com.amazon.communication.ICommunicationService\");\n i = setAckHandler(com.amazon.communication.rlm.IAckHandler.Stub.asInterface(parcel.readStrongBinder()));\n parcel1.writeNoException();\n parcel1.writeInt(i);\n return true;\n\n case 11: // '\\013'\n parcel.enforceInterface(\"com.amazon.communication.ICommunicationService\");\n removeAckHandler();\n parcel1.writeNoException();\n return true;\n }\n }\n\n public Stub()\n {\n attachInterface(this, \"com.amazon.communication.ICommunicationService\");\n }\n }\n\n private static class Stub.Proxy\n implements ICommunicationService\n {\n\n private IBinder mRemote;\n\n public IConnection acquireConnection(ParcelableEndpointIdentity parcelableendpointidentity, ParcelableConnectionPolicy parcelableconnectionpolicy, IConnectionListener iconnectionlistener, ParcelableStatus parcelablestatus)\n throws RemoteException\n {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"com.amazon.communication.ICommunicationService\");\n if (parcelableendpointidentity == null) goto _L2; else goto _L1\n_L1:\n parcel.writeInt(1);\n parcelableendpointidentity.writeToParcel(parcel, 0);\n_L5:\n if (parcelableconnectionpolicy == null) goto _L4; else goto _L3\n_L3:\n parcel.writeInt(1);\n parcelableconnectionpolicy.writeToParcel(parcel, 0);\n_L6:\n if (iconnectionlistener == null)\n {\n break MISSING_BLOCK_LABEL_156;\n }\n parcelableendpointidentity = iconnectionlistener.asBinder();\n_L7:\n parcel.writeStrongBinder(parcelableendpointidentity);\n mRemote.transact(1, parcel, parcel1, 0);\n parcel1.readException();\n parcelableendpointidentity = IConnection.Stub.asInterface(parcel1.readStrongBinder());\n if (parcel1.readInt() != 0)\n {\n parcelablestatus.readFromParcel(parcel1);\n }\n parcel1.recycle();\n parcel.recycle();\n return parcelableendpointidentity;\n_L2:\n parcel.writeInt(0);\n goto _L5\n parcelableendpointidentity;\n parcel1.recycle();\n parcel.recycle();\n throw parcelableendpointidentity;\n_L4:\n parcel.writeInt(0);\n goto _L6\n parcelableendpointidentity = null;\n goto _L7\n }\n\n public IConnection acquireConnectionEx(ParcelableEndpointIdentity parcelableendpointidentity, ParcelablePolicy parcelablepolicy, IConnectionListener iconnectionlistener, ParcelableStatus parcelablestatus)\n throws RemoteException\n {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"com.amazon.communication.ICommunicationService\");\n if (parcelableendpointidentity == null) goto _L2; else goto _L1\n_L1:\n parcel.writeInt(1);\n parcelableendpointidentity.writeToParcel(parcel, 0);\n_L5:\n if (parcelablepolicy == null) goto _L4; else goto _L3\n_L3:\n parcel.writeInt(1);\n parcelablepolicy.writeToParcel(parcel, 0);\n_L6:\n if (iconnectionlistener == null)\n {\n break MISSING_BLOCK_LABEL_157;\n }\n parcelableendpointidentity = iconnectionlistener.asBinder();\n_L7:\n parcel.writeStrongBinder(parcelableendpointidentity);\n mRemote.transact(8, parcel, parcel1, 0);\n parcel1.readException();\n parcelableendpointidentity = IConnection.Stub.asInterface(parcel1.readStrongBinder());\n if (parcel1.readInt() != 0)\n {\n parcelablestatus.readFromParcel(parcel1);\n }\n parcel1.recycle();\n parcel.recycle();\n return parcelableendpointidentity;\n_L2:\n parcel.writeInt(0);\n goto _L5\n parcelableendpointidentity;\n parcel1.recycle();\n parcel.recycle();\n throw parcelableendpointidentity;\n_L4:\n parcel.writeInt(0);\n goto _L6\n parcelableendpointidentity = null;\n goto _L7\n }\n\n public IBinder asBinder()\n {\n return mRemote;\n }\n\n public void deregisterMessageHandler(int i)\n throws RemoteException\n {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"com.amazon.communication.ICommunicationService\");\n parcel.writeInt(i);\n mRemote.transact(3, parcel, parcel1, 0);\n parcel1.readException();\n parcel1.recycle();\n parcel.recycle();\n return;\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public IGatewayConnectivity getGatewayConnectivity(IConnectionListener iconnectionlistener, ParcelableStatus parcelablestatus)\n throws RemoteException\n {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"com.amazon.communication.ICommunicationService\");\n if (iconnectionlistener == null)\n {\n break MISSING_BLOCK_LABEL_86;\n }\n iconnectionlistener = iconnectionlistener.asBinder();\n_L1:\n parcel.writeStrongBinder(iconnectionlistener);\n mRemote.transact(9, parcel, parcel1, 0);\n parcel1.readException();\n iconnectionlistener = IGatewayConnectivity.Stub.asInterface(parcel1.readStrongBinder());\n if (parcel1.readInt() != 0)\n {\n parcelablestatus.readFromParcel(parcel1);\n }\n parcel1.recycle();\n parcel.recycle();\n return iconnectionlistener;\n iconnectionlistener = null;\n goto _L1\n iconnectionlistener;\n parcel1.recycle();\n parcel.recycle();\n throw iconnectionlistener;\n }\n\n public IIdentityResolver getIdentityResolver()\n throws RemoteException\n {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n IIdentityResolver iidentityresolver;\n parcel.writeInterfaceToken(\"com.amazon.communication.ICommunicationService\");\n mRemote.transact(6, parcel, parcel1, 0);\n parcel1.readException();\n iidentityresolver = com.amazon.communication.ir.IIdentityResolver.Stub.asInterface(parcel1.readStrongBinder());\n parcel1.recycle();\n parcel.recycle();\n return iidentityresolver;\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public String getInterfaceDescriptor()\n {\n return \"com.amazon.communication.ICommunicationService\";\n }\n\n public boolean isInitialized()\n throws RemoteException\n {\n Parcel parcel;\n Parcel parcel1;\n boolean flag;\n flag = false;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n int i;\n parcel.writeInterfaceToken(\"com.amazon.communication.ICommunicationService\");\n mRemote.transact(7, parcel, parcel1, 0);\n parcel1.readException();\n i = parcel1.readInt();\n if (i != 0)\n {\n flag = true;\n }\n parcel1.recycle();\n parcel.recycle();\n return flag;\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public int registerMessageHandler(int i, IMessageHandler imessagehandler)\n throws RemoteException\n {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"com.amazon.communication.ICommunicationService\");\n parcel.writeInt(i);\n if (imessagehandler == null)\n {\n break MISSING_BLOCK_LABEL_73;\n }\n imessagehandler = imessagehandler.asBinder();\n_L1:\n parcel.writeStrongBinder(imessagehandler);\n mRemote.transact(2, parcel, parcel1, 0);\n parcel1.readException();\n i = parcel1.readInt();\n parcel1.recycle();\n parcel.recycle();\n return i;\n imessagehandler = null;\n goto _L1\n imessagehandler;\n parcel1.recycle();\n parcel.recycle();\n throw imessagehandler;\n }\n\n public void removeAckHandler()\n throws RemoteException\n {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"com.amazon.communication.ICommunicationService\");\n mRemote.transact(11, parcel, parcel1, 0);\n parcel1.readException();\n parcel1.recycle();\n parcel.recycle();\n return;\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public void routeMessage(ParcelableEndpointIdentity parcelableendpointidentity, MessageEnvelope messageenvelope, int i)\n throws RemoteException\n {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"com.amazon.communication.ICommunicationService\");\n if (parcelableendpointidentity == null) goto _L2; else goto _L1\n_L1:\n parcel.writeInt(1);\n parcelableendpointidentity.writeToParcel(parcel, 0);\n_L3:\n if (messageenvelope == null)\n {\n break MISSING_BLOCK_LABEL_111;\n }\n parcel.writeInt(1);\n messageenvelope.writeToParcel(parcel, 0);\n_L4:\n parcel.writeInt(i);\n mRemote.transact(4, parcel, parcel1, 0);\n parcel1.readException();\n parcel1.recycle();\n parcel.recycle();\n return;\n_L2:\n parcel.writeInt(0);\n goto _L3\n parcelableendpointidentity;\n parcel1.recycle();\n parcel.recycle();\n throw parcelableendpointidentity;\n parcel.writeInt(0);\n goto _L4\n }\n\n public void routeMessageFragment(ParcelableEndpointIdentity parcelableendpointidentity, int i, MessageEnvelope messageenvelope, boolean flag, int j)\n throws RemoteException\n {\n Parcel parcel;\n Parcel parcel1;\n boolean flag1;\n flag1 = true;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"com.amazon.communication.ICommunicationService\");\n if (parcelableendpointidentity == null) goto _L2; else goto _L1\n_L1:\n parcel.writeInt(1);\n parcelableendpointidentity.writeToParcel(parcel, 0);\n_L6:\n parcel.writeInt(i);\n if (messageenvelope == null) goto _L4; else goto _L3\n_L3:\n parcel.writeInt(1);\n messageenvelope.writeToParcel(parcel, 0);\n goto _L5\n_L7:\n parcel.writeInt(i);\n parcel.writeInt(j);\n mRemote.transact(5, parcel, parcel1, 0);\n parcel1.readException();\n parcel1.recycle();\n parcel.recycle();\n return;\n_L2:\n parcel.writeInt(0);\n goto _L6\n parcelableendpointidentity;\n parcel1.recycle();\n parcel.recycle();\n throw parcelableendpointidentity;\n_L4:\n parcel.writeInt(0);\n goto _L5\n_L9:\n i = 0;\n goto _L7\n_L5:\n if (!flag) goto _L9; else goto _L8\n_L8:\n i = ((flag1) ? 1 : 0);\n goto _L7\n }\n\n public int setAckHandler(IAckHandler iackhandler)\n throws RemoteException\n {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"com.amazon.communication.ICommunicationService\");\n if (iackhandler == null)\n {\n break MISSING_BLOCK_LABEL_66;\n }\n iackhandler = iackhandler.asBinder();\n_L1:\n int i;\n parcel.writeStrongBinder(iackhandler);\n mRemote.transact(10, parcel, parcel1, 0);\n parcel1.readException();\n i = parcel1.readInt();\n parcel1.recycle();\n parcel.recycle();\n return i;\n iackhandler = null;\n goto _L1\n iackhandler;\n parcel1.recycle();\n parcel.recycle();\n throw iackhandler;\n }\n\n Stub.Proxy(IBinder ibinder)\n {\n mRemote = ibinder;\n }\n }\n\n\n public abstract IConnection acquireConnection(ParcelableEndpointIdentity parcelableendpointidentity, ParcelableConnectionPolicy parcelableconnectionpolicy, IConnectionListener iconnectionlistener, ParcelableStatus parcelablestatus)\n throws RemoteException;\n\n public abstract IConnection acquireConnectionEx(ParcelableEndpointIdentity parcelableendpointidentity, ParcelablePolicy parcelablepolicy, IConnectionListener iconnectionlistener, ParcelableStatus parcelablestatus)\n throws RemoteException;\n\n public abstract void deregisterMessageHandler(int i)\n throws RemoteException;\n\n public abstract IGatewayConnectivity getGatewayConnectivity(IConnectionListener iconnectionlistener, ParcelableStatus parcelablestatus)\n throws RemoteException;\n\n public abstract IIdentityResolver getIdentityResolver()\n throws RemoteException;\n\n public abstract boolean isInitialized()\n throws RemoteException;\n\n public abstract int registerMessageHandler(int i, IMessageHandler imessagehandler)\n throws RemoteException;\n\n public abstract void removeAckHandler()\n throws RemoteException;\n\n public abstract void routeMessage(ParcelableEndpointIdentity parcelableendpointidentity, MessageEnvelope messageenvelope, int i)\n throws RemoteException;\n\n public abstract void routeMessageFragment(ParcelableEndpointIdentity parcelableendpointidentity, int i, MessageEnvelope messageenvelope, boolean flag, int j)\n throws RemoteException;\n\n public abstract int setAckHandler(IAckHandler iackhandler)\n throws RemoteException;\n}", "public static MovieRPCFutureStub newFutureStub(\n io.grpc.Channel channel) {\n io.grpc.stub.AbstractStub.StubFactory<MovieRPCFutureStub> factory =\n new io.grpc.stub.AbstractStub.StubFactory<MovieRPCFutureStub>() {\n @java.lang.Override\n public MovieRPCFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {\n return new MovieRPCFutureStub(channel, callOptions);\n }\n };\n return MovieRPCFutureStub.newStub(factory, channel);\n }", "public interface HealthServiceClient extends ClientProxy {\n\n /**\n * Register a service with the health system\n *\n * @param name name of the service\n * @param ttl ttl on how long before the service timeout.\n * @param timeUnit time unit for the ttl.\n */\n default void register(String name, long ttl, TimeUnit timeUnit) {\n }\n\n\n /**\n * Check in the service so it passes it TTL\n *\n * @param name name of service.\n */\n default void checkInOk(String name) {\n }\n\n /**\n * Check in with a certain TTL.\n *\n * @param name name of service (PASS, WARN, FAIL, UNKNOWN)\n * @param status status\n */\n default void checkIn(String name, HealthStatus status) {\n }\n\n\n /**\n * Checks to see if all services registered with the health system are ok.\n *\n * @return ok\n */\n default Promise<Boolean> ok() {\n final Promise<Boolean> promise = Promises.promise();\n promise.resolve(true);\n return promise;\n }\n\n /**\n * Returns list of healthy nodes.\n *\n * @return promise\n */\n default Promise<List<String>> findHealthyNodes() {\n final Promise<List<String>> promise = Promises.promise();\n promise.resolve(Collections.emptyList());\n return promise;\n }\n\n /**\n * Find all nodes\n *\n * @return promise\n */\n default Promise<List<String>> findAllNodes() {\n final Promise<List<String>> promise = Promises.promise();\n promise.resolve(Collections.emptyList());\n return promise;\n }\n\n /**\n * Find all nodes with a certain status.\n *\n * @param queryStatus status you are looking for.\n * @return promise\n */\n default Promise<List<String>> findAllNodesWithStatus(HealthStatus queryStatus) {\n final Promise<List<String>> promise = Promises.promise();\n promise.resolve(Collections.emptyList());\n return promise;\n\n }\n\n /**\n * Find all healthy nodes\n *\n * @return promise\n */\n default Promise<List<String>> findNotHealthyNodes() {\n final Promise<List<String>> promise = Promises.promise();\n promise.resolve(Collections.emptyList());\n return promise;\n\n }\n\n\n /**\n * Load all nodes no matter the status.\n *\n * @return promise\n */\n default Promise<List<NodeHealthStat>> loadNodes() {\n final Promise<List<NodeHealthStat>> promise = Promises.promise();\n promise.resolve(Collections.emptyList());\n return promise;\n }\n\n /**\n * Unregister the service\n *\n * @param serviceName name of service\n */\n default void unregister(String serviceName) {\n }\n\n /**\n * Fail with a particular reason.\n *\n * @param name name\n * @param reason reason\n */\n default void failWithReason(final String name, final HealthFailReason reason) {\n }\n\n\n /**\n * Fail with error\n *\n * @param name name\n * @param error error\n */\n default void failWithError(final String name, final Throwable error) {\n }\n\n /**\n * warn with reason\n *\n * @param name name\n * @param reason reason\n */\n default void warnWithReason(final String name, final HealthFailReason reason) {\n }\n\n\n /**\n * warn with error\n *\n * @param name name\n * @param error error\n */\n default void warnWithError(final String name, final Throwable error) {\n }\n\n\n /**\n * Register a service but don't specify a check in TTL.\n *\n * @param name name\n */\n default void registerNoTtl(String name) {\n }\n\n}", "public static MovieRPCStub newStub(io.grpc.Channel channel) {\n io.grpc.stub.AbstractStub.StubFactory<MovieRPCStub> factory =\n new io.grpc.stub.AbstractStub.StubFactory<MovieRPCStub>() {\n @java.lang.Override\n public MovieRPCStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {\n return new MovieRPCStub(channel, callOptions);\n }\n };\n return MovieRPCStub.newStub(factory, channel);\n }", "public static MetadataServiceFutureStub newFutureStub(io.grpc.Channel channel) {\n io.grpc.stub.AbstractStub.StubFactory<MetadataServiceFutureStub> factory =\n new io.grpc.stub.AbstractStub.StubFactory<MetadataServiceFutureStub>() {\n @java.lang.Override\n public MetadataServiceFutureStub newStub(\n io.grpc.Channel channel, io.grpc.CallOptions callOptions) {\n return new MetadataServiceFutureStub(channel, callOptions);\n }\n };\n return MetadataServiceFutureStub.newStub(factory, channel);\n }", "protected HttpJsonAzureClustersStub(\n AzureClustersStubSettings settings,\n ClientContext clientContext,\n HttpJsonStubCallableFactory callableFactory)\n throws IOException {\n this.callableFactory = callableFactory;\n this.httpJsonOperationsStub =\n HttpJsonOperationsStub.create(\n clientContext,\n callableFactory,\n typeRegistry,\n ImmutableMap.<String, HttpRule>builder()\n .put(\n \"google.longrunning.Operations.CancelOperation\",\n HttpRule.newBuilder()\n .setPost(\"/v1/{name=projects/*/locations/*/operations/*}:cancel\")\n .build())\n .put(\n \"google.longrunning.Operations.DeleteOperation\",\n HttpRule.newBuilder()\n .setDelete(\"/v1/{name=projects/*/locations/*/operations/*}\")\n .build())\n .put(\n \"google.longrunning.Operations.GetOperation\",\n HttpRule.newBuilder()\n .setGet(\"/v1/{name=projects/*/locations/*/operations/*}\")\n .build())\n .put(\n \"google.longrunning.Operations.ListOperations\",\n HttpRule.newBuilder()\n .setGet(\"/v1/{name=projects/*/locations/*}/operations\")\n .build())\n .build());\n\n HttpJsonCallSettings<CreateAzureClientRequest, Operation> createAzureClientTransportSettings =\n HttpJsonCallSettings.<CreateAzureClientRequest, Operation>newBuilder()\n .setMethodDescriptor(createAzureClientMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"parent\", String.valueOf(request.getParent()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<GetAzureClientRequest, AzureClient> getAzureClientTransportSettings =\n HttpJsonCallSettings.<GetAzureClientRequest, AzureClient>newBuilder()\n .setMethodDescriptor(getAzureClientMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"name\", String.valueOf(request.getName()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<ListAzureClientsRequest, ListAzureClientsResponse>\n listAzureClientsTransportSettings =\n HttpJsonCallSettings.<ListAzureClientsRequest, ListAzureClientsResponse>newBuilder()\n .setMethodDescriptor(listAzureClientsMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"parent\", String.valueOf(request.getParent()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<DeleteAzureClientRequest, Operation> deleteAzureClientTransportSettings =\n HttpJsonCallSettings.<DeleteAzureClientRequest, Operation>newBuilder()\n .setMethodDescriptor(deleteAzureClientMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"name\", String.valueOf(request.getName()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<CreateAzureClusterRequest, Operation> createAzureClusterTransportSettings =\n HttpJsonCallSettings.<CreateAzureClusterRequest, Operation>newBuilder()\n .setMethodDescriptor(createAzureClusterMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"parent\", String.valueOf(request.getParent()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<UpdateAzureClusterRequest, Operation> updateAzureClusterTransportSettings =\n HttpJsonCallSettings.<UpdateAzureClusterRequest, Operation>newBuilder()\n .setMethodDescriptor(updateAzureClusterMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\n \"azure_cluster.name\", String.valueOf(request.getAzureCluster().getName()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<GetAzureClusterRequest, AzureCluster> getAzureClusterTransportSettings =\n HttpJsonCallSettings.<GetAzureClusterRequest, AzureCluster>newBuilder()\n .setMethodDescriptor(getAzureClusterMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"name\", String.valueOf(request.getName()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<ListAzureClustersRequest, ListAzureClustersResponse>\n listAzureClustersTransportSettings =\n HttpJsonCallSettings.<ListAzureClustersRequest, ListAzureClustersResponse>newBuilder()\n .setMethodDescriptor(listAzureClustersMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"parent\", String.valueOf(request.getParent()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<DeleteAzureClusterRequest, Operation> deleteAzureClusterTransportSettings =\n HttpJsonCallSettings.<DeleteAzureClusterRequest, Operation>newBuilder()\n .setMethodDescriptor(deleteAzureClusterMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"name\", String.valueOf(request.getName()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<GenerateAzureAccessTokenRequest, GenerateAzureAccessTokenResponse>\n generateAzureAccessTokenTransportSettings =\n HttpJsonCallSettings\n .<GenerateAzureAccessTokenRequest, GenerateAzureAccessTokenResponse>newBuilder()\n .setMethodDescriptor(generateAzureAccessTokenMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"azure_cluster\", String.valueOf(request.getAzureCluster()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<CreateAzureNodePoolRequest, Operation>\n createAzureNodePoolTransportSettings =\n HttpJsonCallSettings.<CreateAzureNodePoolRequest, Operation>newBuilder()\n .setMethodDescriptor(createAzureNodePoolMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"parent\", String.valueOf(request.getParent()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<UpdateAzureNodePoolRequest, Operation>\n updateAzureNodePoolTransportSettings =\n HttpJsonCallSettings.<UpdateAzureNodePoolRequest, Operation>newBuilder()\n .setMethodDescriptor(updateAzureNodePoolMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\n \"azure_node_pool.name\",\n String.valueOf(request.getAzureNodePool().getName()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<GetAzureNodePoolRequest, AzureNodePool> getAzureNodePoolTransportSettings =\n HttpJsonCallSettings.<GetAzureNodePoolRequest, AzureNodePool>newBuilder()\n .setMethodDescriptor(getAzureNodePoolMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"name\", String.valueOf(request.getName()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<ListAzureNodePoolsRequest, ListAzureNodePoolsResponse>\n listAzureNodePoolsTransportSettings =\n HttpJsonCallSettings.<ListAzureNodePoolsRequest, ListAzureNodePoolsResponse>newBuilder()\n .setMethodDescriptor(listAzureNodePoolsMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"parent\", String.valueOf(request.getParent()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<DeleteAzureNodePoolRequest, Operation>\n deleteAzureNodePoolTransportSettings =\n HttpJsonCallSettings.<DeleteAzureNodePoolRequest, Operation>newBuilder()\n .setMethodDescriptor(deleteAzureNodePoolMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"name\", String.valueOf(request.getName()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<GetAzureServerConfigRequest, AzureServerConfig>\n getAzureServerConfigTransportSettings =\n HttpJsonCallSettings.<GetAzureServerConfigRequest, AzureServerConfig>newBuilder()\n .setMethodDescriptor(getAzureServerConfigMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"name\", String.valueOf(request.getName()));\n return builder.build();\n })\n .build();\n\n this.createAzureClientCallable =\n callableFactory.createUnaryCallable(\n createAzureClientTransportSettings,\n settings.createAzureClientSettings(),\n clientContext);\n this.createAzureClientOperationCallable =\n callableFactory.createOperationCallable(\n createAzureClientTransportSettings,\n settings.createAzureClientOperationSettings(),\n clientContext,\n httpJsonOperationsStub);\n this.getAzureClientCallable =\n callableFactory.createUnaryCallable(\n getAzureClientTransportSettings, settings.getAzureClientSettings(), clientContext);\n this.listAzureClientsCallable =\n callableFactory.createUnaryCallable(\n listAzureClientsTransportSettings, settings.listAzureClientsSettings(), clientContext);\n this.listAzureClientsPagedCallable =\n callableFactory.createPagedCallable(\n listAzureClientsTransportSettings, settings.listAzureClientsSettings(), clientContext);\n this.deleteAzureClientCallable =\n callableFactory.createUnaryCallable(\n deleteAzureClientTransportSettings,\n settings.deleteAzureClientSettings(),\n clientContext);\n this.deleteAzureClientOperationCallable =\n callableFactory.createOperationCallable(\n deleteAzureClientTransportSettings,\n settings.deleteAzureClientOperationSettings(),\n clientContext,\n httpJsonOperationsStub);\n this.createAzureClusterCallable =\n callableFactory.createUnaryCallable(\n createAzureClusterTransportSettings,\n settings.createAzureClusterSettings(),\n clientContext);\n this.createAzureClusterOperationCallable =\n callableFactory.createOperationCallable(\n createAzureClusterTransportSettings,\n settings.createAzureClusterOperationSettings(),\n clientContext,\n httpJsonOperationsStub);\n this.updateAzureClusterCallable =\n callableFactory.createUnaryCallable(\n updateAzureClusterTransportSettings,\n settings.updateAzureClusterSettings(),\n clientContext);\n this.updateAzureClusterOperationCallable =\n callableFactory.createOperationCallable(\n updateAzureClusterTransportSettings,\n settings.updateAzureClusterOperationSettings(),\n clientContext,\n httpJsonOperationsStub);\n this.getAzureClusterCallable =\n callableFactory.createUnaryCallable(\n getAzureClusterTransportSettings, settings.getAzureClusterSettings(), clientContext);\n this.listAzureClustersCallable =\n callableFactory.createUnaryCallable(\n listAzureClustersTransportSettings,\n settings.listAzureClustersSettings(),\n clientContext);\n this.listAzureClustersPagedCallable =\n callableFactory.createPagedCallable(\n listAzureClustersTransportSettings,\n settings.listAzureClustersSettings(),\n clientContext);\n this.deleteAzureClusterCallable =\n callableFactory.createUnaryCallable(\n deleteAzureClusterTransportSettings,\n settings.deleteAzureClusterSettings(),\n clientContext);\n this.deleteAzureClusterOperationCallable =\n callableFactory.createOperationCallable(\n deleteAzureClusterTransportSettings,\n settings.deleteAzureClusterOperationSettings(),\n clientContext,\n httpJsonOperationsStub);\n this.generateAzureAccessTokenCallable =\n callableFactory.createUnaryCallable(\n generateAzureAccessTokenTransportSettings,\n settings.generateAzureAccessTokenSettings(),\n clientContext);\n this.createAzureNodePoolCallable =\n callableFactory.createUnaryCallable(\n createAzureNodePoolTransportSettings,\n settings.createAzureNodePoolSettings(),\n clientContext);\n this.createAzureNodePoolOperationCallable =\n callableFactory.createOperationCallable(\n createAzureNodePoolTransportSettings,\n settings.createAzureNodePoolOperationSettings(),\n clientContext,\n httpJsonOperationsStub);\n this.updateAzureNodePoolCallable =\n callableFactory.createUnaryCallable(\n updateAzureNodePoolTransportSettings,\n settings.updateAzureNodePoolSettings(),\n clientContext);\n this.updateAzureNodePoolOperationCallable =\n callableFactory.createOperationCallable(\n updateAzureNodePoolTransportSettings,\n settings.updateAzureNodePoolOperationSettings(),\n clientContext,\n httpJsonOperationsStub);\n this.getAzureNodePoolCallable =\n callableFactory.createUnaryCallable(\n getAzureNodePoolTransportSettings, settings.getAzureNodePoolSettings(), clientContext);\n this.listAzureNodePoolsCallable =\n callableFactory.createUnaryCallable(\n listAzureNodePoolsTransportSettings,\n settings.listAzureNodePoolsSettings(),\n clientContext);\n this.listAzureNodePoolsPagedCallable =\n callableFactory.createPagedCallable(\n listAzureNodePoolsTransportSettings,\n settings.listAzureNodePoolsSettings(),\n clientContext);\n this.deleteAzureNodePoolCallable =\n callableFactory.createUnaryCallable(\n deleteAzureNodePoolTransportSettings,\n settings.deleteAzureNodePoolSettings(),\n clientContext);\n this.deleteAzureNodePoolOperationCallable =\n callableFactory.createOperationCallable(\n deleteAzureNodePoolTransportSettings,\n settings.deleteAzureNodePoolOperationSettings(),\n clientContext,\n httpJsonOperationsStub);\n this.getAzureServerConfigCallable =\n callableFactory.createUnaryCallable(\n getAzureServerConfigTransportSettings,\n settings.getAzureServerConfigSettings(),\n clientContext);\n\n this.backgroundResources =\n new BackgroundResourceAggregation(clientContext.getBackgroundResources());\n }", "public static ApplicationManagerFutureStub newFutureStub(\n io.grpc.Channel channel) {\n return new ApplicationManagerFutureStub(channel);\n }", "public interface InviteService extends Service, ActorService {\r\n\r\n @AsyncInvocation\r\n void save();\r\n @AsyncInvocation\r\n void insert(DbRow dbRow);\r\n @AsyncInvocation\r\n void update(DbRow dbRow);\r\n @AsyncInvocation\r\n void bindInviteCode(RoleInvitePo roleInvitePoFrom, RoleBeInvitePo roleBeInvitePo);\r\n\r\n}", "public interface IOngoingStubbing {}", "protected HttpJsonFunctionServiceStub(\n FunctionServiceStubSettings settings, ClientContext clientContext) throws IOException {\n this(settings, clientContext, new HttpJsonFunctionServiceCallableFactory());\n }", "public Object getStubHandler() {\n return new RMIStubHandler(); \n }", "public interface DBServiceAsync {\r\n\tvoid greetServer(String input, AsyncCallback<String> callback);\r\n\r\n\tvoid startDB(AsyncCallback<String> callback);\r\n\r\n\tvoid stopDB(AsyncCallback<String> callback);\r\n\r\n\tvoid createDB(AsyncCallback<String> callback);\r\n}", "IMember getServerStub();", "public interface Future<T> extends AsyncResult<T> {\n\n final class Factory {\n\n public static <T> Future<T> failedFuture(String failureMessage) {\n return new FutureImpl<>(failureMessage, false);\n }\n\n public static <T> Future<T> failedFuture(Throwable t) {\n return new FutureImpl<>(t);\n }\n\n public static <T> Future<T> future() {\n return new FutureImpl<>();\n }\n\n public static <T> Future<T> succeededFuture() {\n return new FutureImpl<>((Throwable) null);\n }\n\n public static <T> Future<T> succeededFuture(T result) {\n return new FutureImpl<>(result);\n }\n }\n\n void complete();\n\n void complete(T result);\n\n void fail(String failureMessage);\n\n void fail(Throwable throwable);\n\n boolean isComplete();\n\n void setHandler(Handler<AsyncResult<T>> handler);\n}", "@VertxGen\n@ProxyGen\npublic interface IOrderHandler {\n\n String ORDER_SERVICE_ADDRESS = \"order_service_address\";\n\n @Fluent\n IOrderHandler insertOrder(long orderId, long userId, String price, String freight, long shippingInformationId, String leaveMessage, JsonArray orderDetails, Handler<AsyncResult<Integer>> handler);\n\n @Fluent\n IOrderHandler findPageOrder(long userId, Integer status, int size, int offset, Handler<AsyncResult<List<JsonObject>>> handler);\n\n @Fluent\n IOrderHandler findOrderRowNum(long userId, Integer status, Handler<AsyncResult<JsonObject>> handler);\n\n @Fluent\n IOrderHandler preparedInsertOrder(JsonArray params, Handler<AsyncResult<String>> handler);\n\n @Fluent\n IOrderHandler findPreparedOrder(String id, Handler<AsyncResult<JsonObject>> handler);\n\n @Fluent\n IOrderHandler getOrderById(long orderId, long userId, Handler<AsyncResult<JsonObject>> handler);\n\n @Fluent\n IOrderHandler payOrder(long orderId, int versions, Handler<AsyncResult<Integer>> handler);\n\n @Fluent\n IOrderHandler refund(long orderId, long userId, int refundType, String refundReason, String refundMoney, String refundDescription, Handler<AsyncResult<UpdateResult>> handler);\n\n @Fluent\n IOrderHandler undoRefund(long orderId, long userId, Handler<AsyncResult<UpdateResult>> handler);\n}", "public static AvroreposFutureStub newFutureStub(\n io.grpc.Channel channel) {\n io.grpc.stub.AbstractStub.StubFactory<AvroreposFutureStub> factory =\n new io.grpc.stub.AbstractStub.StubFactory<AvroreposFutureStub>() {\n @java.lang.Override\n public AvroreposFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {\n return new AvroreposFutureStub(channel, callOptions);\n }\n };\n return AvroreposFutureStub.newStub(factory, channel);\n }", "public static ShippingServiceFutureStub newFutureStub(\n io.grpc.Channel channel) {\n io.grpc.stub.AbstractStub.StubFactory<ShippingServiceFutureStub> factory =\n new io.grpc.stub.AbstractStub.StubFactory<ShippingServiceFutureStub>() {\n @java.lang.Override\n public ShippingServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {\n return new ShippingServiceFutureStub(channel, callOptions);\n }\n };\n return ShippingServiceFutureStub.newStub(factory, channel);\n }", "public static ImageServiceStub newStub(io.grpc.Channel channel) {\n io.grpc.stub.AbstractStub.StubFactory<ImageServiceStub> factory =\n new io.grpc.stub.AbstractStub.StubFactory<ImageServiceStub>() {\n @java.lang.Override\n public ImageServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {\n return new ImageServiceStub(channel, callOptions);\n }\n };\n return ImageServiceStub.newStub(factory, channel);\n }", "public static LightningFutureStub newFutureStub(\n io.grpc.Channel channel) {\n return new LightningFutureStub(channel);\n }", "public interface PendingContactUpdateExtMethods\r\n extends PendingContactUpdateExtMethodsStubI\r\n{\r\n\r\n\r\n}", "public interface ConnectionServiceAsync {\n void searchSynonyms(String input, AsyncCallback<List<String>> callback) throws IllegalArgumentException;;\n void callMaplabelsToSynonyms(AsyncCallback<Boolean> callback) throws IllegalArgumentException;;\n\n\n}", "<T extends Response> Future<T> sendAsync(Request request, Class<T> responseType);", "public Stub()\n{\nthis.attachInterface(this, DESCRIPTOR);\n}", "public Stub()\n{\nthis.attachInterface(this, DESCRIPTOR);\n}", "public Stub()\n{\nthis.attachInterface(this, DESCRIPTOR);\n}", "public Stub()\n{\nthis.attachInterface(this, DESCRIPTOR);\n}", "public Stub()\n{\nthis.attachInterface(this, DESCRIPTOR);\n}", "public Stub()\n{\nthis.attachInterface(this, DESCRIPTOR);\n}", "public Stub()\n{\nthis.attachInterface(this, DESCRIPTOR);\n}", "public Stub()\n{\nthis.attachInterface(this, DESCRIPTOR);\n}", "public Stub()\n{\nthis.attachInterface(this, DESCRIPTOR);\n}", "public Stub()\n{\nthis.attachInterface(this, DESCRIPTOR);\n}", "public Stub()\n{\nthis.attachInterface(this, DESCRIPTOR);\n}", "public Stub()\n{\nthis.attachInterface(this, DESCRIPTOR);\n}", "public GenericServiceConnection(final Class<AIDLInterface> aidl)\n\t{\n\n\t\t//System.out.println(\"---- GenericServiceConnection -----\");\n\n\t\tClass<?> stub = null;\n\t\tMethod method = null;\n\t\tfor (final Class<?> c : aidl.getDeclaredClasses())\n\t\t{\n\t\t\tif (c.getSimpleName().equals(STUB))\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\n\t\t\t\t\t//System.out.println(\"---- GenericServiceConnection -----\"\n\t\t\t\t\t\t//\t+ c.getSimpleName());\n\n\t\t\t\t\tstub = c;\n\t\t\t\t\tmethod = stub.getMethod(AS_INTERFACE, AI_PARAMS);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcatch (final NoSuchMethodException e)\n\t\t\t\t{ // Should not be possible\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tmStub = stub;\n\t\tmAsInterface = method;\n\t}", "@Headers(keys = \"x-ms-version\", values = \"2012-03-01\")\npublic interface OSImageAsyncApi {\n\n /**\n * @see OSImageApi#list()\n */\n @Named(\"ListOsImages\")\n @GET\n @Path(\"/services/images\")\n @XMLResponseParser(ListOSImagesHandler.class)\n @Fallback(EmptySetOnNotFoundOr404.class)\n @Consumes(MediaType.APPLICATION_XML)\n ListenableFuture<Set<OSImage>> list();\n\n /**\n * @see OSImageApi#add(String)\n */\n @Named(\"AddOsImage\")\n @POST\n @Path(\"/services/images\")\n @Produces(MediaType.APPLICATION_XML)\n ListenableFuture<Void> add(@BinderParam(BindOSImageParamsToXmlPayload.class) OSImageParams params);\n\n /**\n * @see OSImageApi#update(String)\n */\n @Named(\"UpdateOsImage\")\n @PUT\n @Path(\"/services/images/{imageName}\")\n @Produces(MediaType.APPLICATION_XML)\n ListenableFuture<Void> update(\n @PathParam(\"imageName\") @ParamParser(OSImageParamsName.class) @BinderParam(BindOSImageParamsToXmlPayload.class) OSImageParams params);\n\n /**\n * @see OSImageApi#delete(String)\n */\n @Named(\"DeleteOsImage\")\n @DELETE\n @Path(\"/services/images/{imageName}\")\n @Fallback(VoidOnNotFoundOr404.class)\n ListenableFuture<Void> delete(@PathParam(\"imageName\") String imageName);\n\n}", "public static SubscriptionServiceFutureStub newFutureStub(\n io.grpc.Channel channel) {\n io.grpc.stub.AbstractStub.StubFactory<SubscriptionServiceFutureStub> factory =\n new io.grpc.stub.AbstractStub.StubFactory<SubscriptionServiceFutureStub>() {\n @java.lang.Override\n public SubscriptionServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {\n return new SubscriptionServiceFutureStub(channel, callOptions);\n }\n };\n return SubscriptionServiceFutureStub.newStub(factory, channel);\n }", "public static ProductServiceStub newStub(io.grpc.Channel channel) {\n io.grpc.stub.AbstractStub.StubFactory<ProductServiceStub> factory =\n new io.grpc.stub.AbstractStub.StubFactory<ProductServiceStub>() {\n @java.lang.Override\n public ProductServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {\n return new ProductServiceStub(channel, callOptions);\n }\n };\n return ProductServiceStub.newStub(factory, channel);\n }", "public RpcClient(ManagedChannelBuilder<?> channelBuilder) {\n channel = channelBuilder.build();\n blockingStub = PredictionServiceGrpc.newBlockingStub(channel);\n asyncStub = PredictionServiceGrpc.newStub(channel);\n modelServiceBlockingStub = ModelServiceGrpc.newBlockingStub(channel);\n modelServiceStub = ModelServiceGrpc.newStub(channel);\n channelzBlockingStub = ChannelzGrpc.newBlockingStub(channel);\n }", "void stubNextResponse(HttpExecuteResponse nextResponse, Duration delay);", "public interface IBugReportRpcAsync {\r\n\r\n /**\r\n * Submit a bug report.\r\n * @param bugReport Bug report to submit\r\n * @param callback Callback to be invoked after method call completes\r\n */\r\n void submitBugReport(BugReport bugReport, AsyncCallback<Void> callback);\r\n\r\n}", "default void createAzureClient(\n com.google.cloud.gkemulticloud.v1.CreateAzureClientRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getCreateAzureClientMethod(), responseObserver);\n }", "void stubNextResponse(HttpExecuteResponse nextResponse);", "public Stub()\n {\n this.attachInterface(this, DESCRIPTOR);\n }", "public Stub()\n {\n this.attachInterface(this, DESCRIPTOR);\n }", "public Stub()\n {\n this.attachInterface(this, DESCRIPTOR);\n }", "public Stub()\n {\n this.attachInterface(this, DESCRIPTOR);\n }", "public Stub()\n {\n this.attachInterface(this, DESCRIPTOR);\n }", "protected HttpJsonTasksStub(TasksStubSettings settings, ClientContext clientContext)\n throws IOException {\n this(settings, clientContext, new HttpJsonTasksCallableFactory());\n }", "public Stub() {\n attachInterface(this, DESCRIPTOR);\n }", "public static GreetingServiceFutureStub newFutureStub(\n io.grpc.Channel channel) {\n return new GreetingServiceFutureStub(channel);\n }", "public interface HubProxy {\n\n /**\n * Invokes a server side hub method asynchronously.\n * \n * @param methodName The method name.\n * @param returnType The return type.\n * @param arguments The arguments.\n * @return The invocation result.\n */\n <R> Promise<R> invoke(String methodName, Class<R> returnType, Object... arguments);\n\n /**\n * Registers a client side hub callback.\n * \n * @param methodName The method name.\n * @param callback The hub callback.\n */\n void register(String methodName, HubCallback<JsonElement> callback);\n\n /**\n * Registers a client side hub callback.\n * \n * @param methodName The method name.\n * @param argumentType The argument type.\n * @param callback The hub callback.\n */\n <T> void register(String methodName, Class<T> argumentType, HubCallback<T> callback);\n\n /**\n * Unregisters a client side hub callback.\n * \n * @param methodName The method name.\n */\n void unregister(String methodName);\n}", "public static AssetGroupSignalServiceFutureStub newFutureStub(\n io.grpc.Channel channel) {\n io.grpc.stub.AbstractStub.StubFactory<AssetGroupSignalServiceFutureStub> factory =\n new io.grpc.stub.AbstractStub.StubFactory<AssetGroupSignalServiceFutureStub>() {\n @java.lang.Override\n public AssetGroupSignalServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {\n return new AssetGroupSignalServiceFutureStub(channel, callOptions);\n }\n };\n return AssetGroupSignalServiceFutureStub.newStub(factory, channel);\n }", "public static OrganizationServiceFutureStub newFutureStub(\n io.grpc.Channel channel) {\n io.grpc.stub.AbstractStub.StubFactory<OrganizationServiceFutureStub> factory =\n new io.grpc.stub.AbstractStub.StubFactory<OrganizationServiceFutureStub>() {\n @java.lang.Override\n public OrganizationServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {\n return new OrganizationServiceFutureStub(channel, callOptions);\n }\n };\n return OrganizationServiceFutureStub.newStub(factory, channel);\n }", "@Async @Endpoint(\"http://0.0.0.0:8080\")\npublic interface AsyncEndpoint {\n\t\n\t\n\t/**\n\t * <p>Sends a request asynchronously using @{@link Async} and {@link AsyncHandler}.</p>\n\t * \n\t * @param asyncHandler\n\t * \t\t\tthe {@link AsyncHandler} which handles the results of the asynchronous request\n\t * \n\t * @return {@code null}, since the request is processed asynchronously\n\t * \n\t * @since 1.3.0\n\t */\n\t@GET(\"/asyncsuccess\")\n\tString asyncSuccess(AsyncHandler<String> asyncHandler);\n\t\n\t/**\n\t * <p>Sends a request asynchronously using @{@link Async} and {@link AsyncHandler} which returns response \n\t * code that signifies a failure. This should invoke {@link AsyncHandler#onFailure(HttpResponse)} on the \n\t * provided callback.</p> \n\t * \n\t * @param asyncHandler\n\t * \t\t\tthe {@link AsyncHandler} which handles the results of the asynchronous request\n\t * \n\t * @since 1.3.0\n\t */\n\t@GET(\"/asyncfailure\")\n\tvoid asyncFailure(AsyncHandler<String> asyncHandler);\n\t\n\t/**\n\t * <p>Sends a request asynchronously using @{@link Async} and {@link AsyncHandler} whose execution is \n\t * expected to fail with an exception and hence handled by the callback {@link AsyncHandler#onError(Exception)}.</p>\n\t * \n\t * <p>The error is caused by the deserializer which attempts to parse the response content, which is \n\t * not JSON, into the {@link User} model.</p> \n\t * \n\t * @param asyncHandler\n\t * \t\t\tthe {@link AsyncHandler} which handles the results of the asynchronous request\n\t * \n\t * @since 1.3.4\n\t */\n\t@Deserialize(JSON)\n\t@GET(\"/asyncerror\")\n\tvoid asyncError(AsyncHandler<User> asyncHandler);\n\t\n\t/**\n\t * <p>Sends a request asynchronously using @{@link Async} but does not expect the response to be \n\t * handled using an {@link AsyncHandler}.</p>\n\t * \n\t * @since 1.3.0\n\t */\n\t@GET(\"/asyncnohandling\")\n\tvoid asyncNoHandling();\n\t\n\t/**\n\t * <p>Processes a successful execution, but the user provided implementation of the callback \n\t * {@link AsyncHandler#onSuccess(HttpResponse, Object)} throws an exception.</p>\n\t * \n\t * @param asyncHandler\n\t * \t\t\tthe {@link AsyncHandler} which is expected to throw an exception in <i>onSuccess</i>\n\t * \n\t * @since 1.3.0\n\t */\n\t@GET(\"/successcallbackerror\")\n\tvoid asyncSuccessCallbackError(AsyncHandler<String> asyncHandler);\n\t\n\t/**\n\t * <p>Processes a failed execution, but the user provided implementation of the callback \n\t * {@link AsyncHandler#onFailure(HttpResponse)} throws an exception.</p>\n\t * \n\t * @param asyncHandler\n\t * \t\t\tthe {@link AsyncHandler} which is expected to throw an exception in <i>onFailure</i>\n\t * \n\t * @since 1.3.0\n\t */\n\t@GET(\"/failurecallbackerror\")\n\tvoid asyncFailureCallbackError(AsyncHandler<String> asyncHandler);\n\t\n\t/**\n\t * <p>Processes an erroneous execution, but the user provided implementation of the callback \n\t * {@link AsyncHandler#onError(Exception)} throws an exception itself.</p>\n\t * \n\t * @param asyncHandler\n\t * \t\t\tthe {@link AsyncHandler} which is expected to throw an exception in <i>onError</i>\n\t * \n\t * @since 1.3.0\n\t */\n\t@Deserialize(JSON)\n\t@GET(\"/errorcallbackerror\")\n\tvoid asyncErrorCallbackError(AsyncHandler<User> asyncHandler);\n\t\n\t/**\n\t * <p>Sends a request <b>synchronously</b> by detaching the inherited @{@link Async} annotation.</p> \n\t * \n\t * @return the response string which indicated a synchronous request\n\t * \n\t * @since 1.3.0\n\t */\n\t@Detach(Async.class) \n\t@GET(\"/asyncdetached\")\n\tString asyncDetached();\n}", "public static S3InternalServiceStub newStub(io.grpc.Channel channel) {\n io.grpc.stub.AbstractStub.StubFactory<S3InternalServiceStub> factory =\n new io.grpc.stub.AbstractStub.StubFactory<S3InternalServiceStub>() {\n @java.lang.Override\n public S3InternalServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {\n return new S3InternalServiceStub(channel, callOptions);\n }\n };\n return S3InternalServiceStub.newStub(factory, channel);\n }" ]
[ "0.6892434", "0.6467239", "0.6211053", "0.60550624", "0.58448124", "0.5826248", "0.58191776", "0.5696866", "0.5648306", "0.55342954", "0.55286705", "0.5512426", "0.5510817", "0.5508667", "0.54999334", "0.54982334", "0.546741", "0.5460062", "0.5459664", "0.5436188", "0.54325175", "0.5430662", "0.5414752", "0.54106337", "0.5402307", "0.53977644", "0.53952056", "0.5394361", "0.5384344", "0.5378525", "0.53784996", "0.53668857", "0.5365112", "0.5358567", "0.53515", "0.5341371", "0.53329724", "0.53245246", "0.5319282", "0.53167367", "0.53059435", "0.53051347", "0.5300577", "0.5298286", "0.52924985", "0.5290797", "0.52806884", "0.5279439", "0.5270424", "0.5258987", "0.52544516", "0.52492434", "0.5241549", "0.5239092", "0.52385944", "0.523672", "0.521222", "0.5211992", "0.5197618", "0.5195408", "0.51884866", "0.5183115", "0.51818454", "0.5179374", "0.51740146", "0.5170586", "0.5168091", "0.5159182", "0.5159182", "0.5159182", "0.5159182", "0.5159182", "0.5159182", "0.5159182", "0.5159182", "0.5159182", "0.5159182", "0.5159182", "0.5159182", "0.51572084", "0.51488954", "0.51481146", "0.51443535", "0.5142627", "0.5135692", "0.5132226", "0.5123487", "0.51221776", "0.5121168", "0.5121168", "0.5121168", "0.5121168", "0.5121168", "0.51201606", "0.51159906", "0.5110202", "0.5097174", "0.5085313", "0.5081177", "0.50809103", "0.50777197" ]
0.0
-1
Creates a new blockingstyle stub that supports unary and streaming output calls on the service
public static DoctorServiceBlockingStub newBlockingStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory<DoctorServiceBlockingStub> factory = new io.grpc.stub.AbstractStub.StubFactory<DoctorServiceBlockingStub>() { @java.lang.Override public DoctorServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new DoctorServiceBlockingStub(channel, callOptions); } }; return DoctorServiceBlockingStub.newStub(factory, channel); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Stub createStub();", "public interface Stream<T> extends Lifecycle {\n\n PendingRequest<T> next(int requestId, T request);\n\n int getPendingRequestCount();\n\n ClientResponseObserver<T, RpcResult> newObserver();\n\n\n final class PendingRequest<T> {\n\n private final T request;\n\n private final int requestId;\n\n private final SettableFuture<com.baichen.jraft.transport.RpcResult> future;\n\n private RepeatableTimer.TimerTask timeout;\n\n private long startTime;\n\n public PendingRequest(T request, int requestId, SettableFuture<com.baichen.jraft.transport.RpcResult> future) {\n this.request = request;\n this.requestId = requestId;\n this.future = future;\n }\n\n public long getStartTime() {\n return startTime;\n }\n\n public void setStartTime(long startTime) {\n this.startTime = startTime;\n }\n\n public void setTimeout(RepeatableTimer.TimerTask timeout) {\n this.timeout = timeout;\n }\n\n public RepeatableTimer.TimerTask getTimeout() {\n return timeout;\n }\n\n public T getRequest() {\n return request;\n }\n\n public int getRequestId() {\n return requestId;\n }\n\n public SettableFuture<com.baichen.jraft.transport.RpcResult> getFuture() {\n return future;\n }\n }\n}", "public interface IOngoingStubbing {}", "public static S3InternalServiceBlockingStub newBlockingStub(\n io.grpc.Channel channel) {\n io.grpc.stub.AbstractStub.StubFactory<S3InternalServiceBlockingStub> factory =\n new io.grpc.stub.AbstractStub.StubFactory<S3InternalServiceBlockingStub>() {\n @java.lang.Override\n public S3InternalServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {\n return new S3InternalServiceBlockingStub(channel, callOptions);\n }\n };\n return S3InternalServiceBlockingStub.newStub(factory, channel);\n }", "public static SinkServiceBlockingStub newBlockingStub(\n io.grpc.Channel channel) {\n io.grpc.stub.AbstractStub.StubFactory<SinkServiceBlockingStub> factory =\n new io.grpc.stub.AbstractStub.StubFactory<SinkServiceBlockingStub>() {\n @java.lang.Override\n public SinkServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {\n return new SinkServiceBlockingStub(channel, callOptions);\n }\n };\n return SinkServiceBlockingStub.newStub(factory, channel);\n }", "public Stub()\n {\n this.attachInterface(this, DESCRIPTOR);\n }", "public Stub()\n {\n this.attachInterface(this, DESCRIPTOR);\n }", "public Stub()\n {\n this.attachInterface(this, DESCRIPTOR);\n }", "public Stub()\n {\n this.attachInterface(this, DESCRIPTOR);\n }", "public Stub()\n {\n this.attachInterface(this, DESCRIPTOR);\n }", "@ThriftService(\"ThriftTaskService\")\npublic interface ThriftTaskClient\n{\n @ThriftMethod\n ListenableFuture<ThriftBufferResult> getResults(TaskId taskId, OutputBufferId bufferId, long token, long maxSizeInBytes);\n\n @ThriftMethod\n ListenableFuture<Void> acknowledgeResults(TaskId taskId, OutputBufferId bufferId, long token);\n\n @ThriftMethod\n ListenableFuture<Void> abortResults(TaskId taskId, OutputBufferId bufferId);\n}", "public static RaftServerProtocolServiceBlockingStub newBlockingStub(\n org.apache.ratis.shaded.io.grpc.Channel channel) {\n return new RaftServerProtocolServiceBlockingStub(channel);\n }", "IMember getServerStub();", "public interface IMountService extends IInterface {\n /** Local-side IPC implementation stub class. */\n public static abstract class Stub extends Binder implements IMountService {\n private static class Proxy implements IMountService {\n private final IBinder mRemote;\n\n Proxy(IBinder remote) {\n mRemote = remote;\n }\n\n public IBinder asBinder() {\n return mRemote;\n }\n\n public String getInterfaceDescriptor() {\n return DESCRIPTOR;\n }\n\n /**\n * Registers an IMountServiceListener for receiving async\n * notifications.\n */\n public void registerListener(IMountServiceListener listener) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeStrongBinder((listener != null ? listener.asBinder() : null));\n mRemote.transact(Stub.TRANSACTION_registerListener, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n /**\n * Unregisters an IMountServiceListener\n */\n public void unregisterListener(IMountServiceListener listener) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeStrongBinder((listener != null ? listener.asBinder() : null));\n mRemote.transact(Stub.TRANSACTION_unregisterListener, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n /**\n * Returns true if a USB mass storage host is connected\n */\n public boolean isUsbMassStorageConnected() throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n boolean _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n mRemote.transact(Stub.TRANSACTION_isUsbMassStorageConnected, _data, _reply, 0);\n _reply.readException();\n _result = 0 != _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n /**\n * Enables / disables USB mass storage. The caller should check\n * actual status of enabling/disabling USB mass storage via\n * StorageEventListener.\n */\n public void setUsbMassStorageEnabled(boolean enable) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeInt((enable ? 1 : 0));\n mRemote.transact(Stub.TRANSACTION_setUsbMassStorageEnabled, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n /**\n * Returns true if a USB mass storage host is enabled (media is\n * shared)\n */\n public boolean isUsbMassStorageEnabled() throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n boolean _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n mRemote.transact(Stub.TRANSACTION_isUsbMassStorageEnabled, _data, _reply, 0);\n _reply.readException();\n _result = 0 != _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n /**\n * Mount external storage at given mount point. Returns an int\n * consistent with MountServiceResultCode\n */\n public int mountVolume(String mountPoint) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n int _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(mountPoint);\n mRemote.transact(Stub.TRANSACTION_mountVolume, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n /**\n * Safely unmount external storage at given mount point. The unmount\n * is an asynchronous operation. Applications should register\n * StorageEventListener for storage related status changes.\n */\n public void unmountVolume(String mountPoint, boolean force, boolean removeEncryption)\n throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(mountPoint);\n _data.writeInt((force ? 1 : 0));\n _data.writeInt((removeEncryption ? 1 : 0));\n mRemote.transact(Stub.TRANSACTION_unmountVolume, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n /**\n * Format external storage given a mount point. Returns an int\n * consistent with MountServiceResultCode\n */\n public int formatVolume(String mountPoint) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n int _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(mountPoint);\n mRemote.transact(Stub.TRANSACTION_formatVolume, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n /**\n * Returns an array of pids with open files on the specified path.\n */\n public int[] getStorageUsers(String path) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n int[] _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(path);\n mRemote.transact(Stub.TRANSACTION_getStorageUsers, _data, _reply, 0);\n _reply.readException();\n _result = _reply.createIntArray();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n /**\n * Gets the state of a volume via its mountpoint.\n */\n public String getVolumeState(String mountPoint) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n String _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(mountPoint);\n mRemote.transact(Stub.TRANSACTION_getVolumeState, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readString();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n /*\n * Creates a secure container with the specified parameters. Returns\n * an int consistent with MountServiceResultCode\n */\n public int createSecureContainer(String id, int sizeMb, String fstype, String key,\n int ownerUid, boolean external) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n int _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(id);\n _data.writeInt(sizeMb);\n _data.writeString(fstype);\n _data.writeString(key);\n _data.writeInt(ownerUid);\n _data.writeInt(external ? 1 : 0);\n mRemote.transact(Stub.TRANSACTION_createSecureContainer, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n /*\n * Destroy a secure container, and free up all resources associated\n * with it. NOTE: Ensure all references are released prior to\n * deleting. Returns an int consistent with MountServiceResultCode\n */\n public int destroySecureContainer(String id, boolean force) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n int _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(id);\n _data.writeInt((force ? 1 : 0));\n mRemote.transact(Stub.TRANSACTION_destroySecureContainer, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n /*\n * Finalize a container which has just been created and populated.\n * After finalization, the container is immutable. Returns an int\n * consistent with MountServiceResultCode\n */\n public int finalizeSecureContainer(String id) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n int _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(id);\n mRemote.transact(Stub.TRANSACTION_finalizeSecureContainer, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n /*\n * Mount a secure container with the specified key and owner UID.\n * Returns an int consistent with MountServiceResultCode\n */\n public int mountSecureContainer(String id, String key, int ownerUid, boolean readOnly)\n throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n int _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(id);\n _data.writeString(key);\n _data.writeInt(ownerUid);\n _data.writeInt(readOnly ? 1 : 0);\n mRemote.transact(Stub.TRANSACTION_mountSecureContainer, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n /*\n * Unount a secure container. Returns an int consistent with\n * MountServiceResultCode\n */\n public int unmountSecureContainer(String id, boolean force) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n int _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(id);\n _data.writeInt((force ? 1 : 0));\n mRemote.transact(Stub.TRANSACTION_unmountSecureContainer, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n /*\n * Returns true if the specified container is mounted\n */\n public boolean isSecureContainerMounted(String id) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n boolean _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(id);\n mRemote.transact(Stub.TRANSACTION_isSecureContainerMounted, _data, _reply, 0);\n _reply.readException();\n _result = 0 != _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n /*\n * Rename an unmounted secure container. Returns an int consistent\n * with MountServiceResultCode\n */\n public int renameSecureContainer(String oldId, String newId) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n int _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(oldId);\n _data.writeString(newId);\n mRemote.transact(Stub.TRANSACTION_renameSecureContainer, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n /*\n * Returns the filesystem path of a mounted secure container.\n */\n public String getSecureContainerPath(String id) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n String _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(id);\n mRemote.transact(Stub.TRANSACTION_getSecureContainerPath, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readString();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n /**\n * Gets an Array of currently known secure container IDs\n */\n public String[] getSecureContainerList() throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n String[] _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n mRemote.transact(Stub.TRANSACTION_getSecureContainerList, _data, _reply, 0);\n _reply.readException();\n _result = _reply.createStringArray();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n /**\n * Shuts down the MountService and gracefully unmounts all external\n * media. Invokes call back once the shutdown is complete.\n */\n public void shutdown(IMountShutdownObserver observer)\n throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeStrongBinder((observer != null ? observer.asBinder() : null));\n mRemote.transact(Stub.TRANSACTION_shutdown, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n /**\n * Call into MountService by PackageManager to notify that its done\n * processing the media status update request.\n */\n public void finishMediaUpdate() throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n mRemote.transact(Stub.TRANSACTION_finishMediaUpdate, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n /**\n * Mounts an Opaque Binary Blob (OBB) with the specified decryption\n * key and only allows the calling process's UID access to the\n * contents. MountService will call back to the supplied\n * IObbActionListener to inform it of the terminal state of the\n * call.\n */\n public void mountObb(String rawPath, String canonicalPath, String key,\n IObbActionListener token, int nonce) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(rawPath);\n _data.writeString(canonicalPath);\n _data.writeString(key);\n _data.writeStrongBinder((token != null ? token.asBinder() : null));\n _data.writeInt(nonce);\n mRemote.transact(Stub.TRANSACTION_mountObb, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n /**\n * Unmounts an Opaque Binary Blob (OBB). When the force flag is\n * specified, any program using it will be forcibly killed to\n * unmount the image. MountService will call back to the supplied\n * IObbActionListener to inform it of the terminal state of the\n * call.\n */\n public void unmountObb(\n String rawPath, boolean force, IObbActionListener token, int nonce)\n throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(rawPath);\n _data.writeInt((force ? 1 : 0));\n _data.writeStrongBinder((token != null ? token.asBinder() : null));\n _data.writeInt(nonce);\n mRemote.transact(Stub.TRANSACTION_unmountObb, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n /**\n * Checks whether the specified Opaque Binary Blob (OBB) is mounted\n * somewhere.\n */\n public boolean isObbMounted(String rawPath) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n boolean _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(rawPath);\n mRemote.transact(Stub.TRANSACTION_isObbMounted, _data, _reply, 0);\n _reply.readException();\n _result = 0 != _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n /**\n * Gets the path to the mounted Opaque Binary Blob (OBB).\n */\n public String getMountedObbPath(String rawPath) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n String _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(rawPath);\n mRemote.transact(Stub.TRANSACTION_getMountedObbPath, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readString();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n /**\n * Returns whether the external storage is emulated.\n */\n public boolean isExternalStorageEmulated() throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n boolean _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n mRemote.transact(Stub.TRANSACTION_isExternalStorageEmulated, _data, _reply, 0);\n _reply.readException();\n _result = 0 != _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n public int getEncryptionState() throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n int _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n mRemote.transact(Stub.TRANSACTION_getEncryptionState, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n public int decryptStorage(String password) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n int _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(password);\n mRemote.transact(Stub.TRANSACTION_decryptStorage, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n public int encryptStorage(int type, String password) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n int _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeInt(type);\n _data.writeString(password);\n mRemote.transact(Stub.TRANSACTION_encryptStorage, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n public int changeEncryptionPassword(int type, String password) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n int _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeInt(type);\n _data.writeString(password);\n mRemote.transact(Stub.TRANSACTION_changeEncryptionPassword, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n @Override\n public int verifyEncryptionPassword(String password) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n int _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(password);\n mRemote.transact(Stub.TRANSACTION_verifyEncryptionPassword, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n public int getPasswordType() throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n int _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n mRemote.transact(Stub.TRANSACTION_getPasswordType, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n public String getPassword() throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n String _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n mRemote.transact(Stub.TRANSACTION_getPassword, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readString();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n public void clearPassword() throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n mRemote.transact(Stub.TRANSACTION_clearPassword, _data, _reply, IBinder.FLAG_ONEWAY);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n public void setField(String field, String data) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(field);\n _data.writeString(data);\n mRemote.transact(Stub.TRANSACTION_setField, _data, _reply, IBinder.FLAG_ONEWAY);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n public String getField(String field) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n String _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(field);\n mRemote.transact(Stub.TRANSACTION_getField, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readString();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n public boolean isConvertibleToFBE() throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n boolean _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n mRemote.transact(Stub.TRANSACTION_isConvertibleToFBE, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readInt() != 0;\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n public StorageVolume[] getVolumeList(int uid, String packageName, int flags)\n throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n StorageVolume[] _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeInt(uid);\n _data.writeString(packageName);\n _data.writeInt(flags);\n mRemote.transact(Stub.TRANSACTION_getVolumeList, _data, _reply, 0);\n _reply.readException();\n _result = _reply.createTypedArray(StorageVolume.CREATOR);\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n /*\n * Returns the filesystem path of a mounted secure container.\n */\n public String getSecureContainerFilesystemPath(String id) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n String _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(id);\n mRemote.transact(Stub.TRANSACTION_getSecureContainerFilesystemPath, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readString();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n /**\n * Fix permissions in a container which has just been created and\n * populated. Returns an int consistent with MountServiceResultCode\n */\n public int fixPermissionsSecureContainer(String id, int gid, String filename)\n throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n int _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(id);\n _data.writeInt(gid);\n _data.writeString(filename);\n mRemote.transact(Stub.TRANSACTION_fixPermissionsSecureContainer, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n @Override\n public int mkdirs(String callingPkg, String path) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n int _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(callingPkg);\n _data.writeString(path);\n mRemote.transact(Stub.TRANSACTION_mkdirs, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n @Override\n public int resizeSecureContainer(String id, int sizeMb, String key)\n throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n int _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(id);\n _data.writeInt(sizeMb);\n _data.writeString(key);\n mRemote.transact(Stub.TRANSACTION_resizeSecureContainer, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n @Override\n public long lastMaintenance() throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n long _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n mRemote.transact(Stub.TRANSACTION_lastMaintenance, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readLong();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n @Override\n public void runMaintenance() throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n mRemote.transact(Stub.TRANSACTION_runMaintenance, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return;\n }\n\n @Override\n public void waitForAsecScan() throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n mRemote.transact(Stub.TRANSACTION_waitForAsecScan, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return;\n }\n\n @Override\n public DiskInfo[] getDisks() throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n DiskInfo[] _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n mRemote.transact(Stub.TRANSACTION_getDisks, _data, _reply, 0);\n _reply.readException();\n _result = _reply.createTypedArray(DiskInfo.CREATOR);\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n @Override\n public VolumeInfo[] getVolumes(int _flags) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n VolumeInfo[] _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeInt(_flags);\n mRemote.transact(Stub.TRANSACTION_getVolumes, _data, _reply, 0);\n _reply.readException();\n _result = _reply.createTypedArray(VolumeInfo.CREATOR);\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n @Override\n public VolumeRecord[] getVolumeRecords(int _flags) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n VolumeRecord[] _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeInt(_flags);\n mRemote.transact(Stub.TRANSACTION_getVolumeRecords, _data, _reply, 0);\n _reply.readException();\n _result = _reply.createTypedArray(VolumeRecord.CREATOR);\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n @Override\n public void mount(String volId) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(volId);\n mRemote.transact(Stub.TRANSACTION_mount, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public void unmount(String volId) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(volId);\n mRemote.transact(Stub.TRANSACTION_unmount, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public void format(String volId) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(volId);\n mRemote.transact(Stub.TRANSACTION_format, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public long benchmark(String volId) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(volId);\n mRemote.transact(Stub.TRANSACTION_benchmark, _data, _reply, 0);\n _reply.readException();\n return _reply.readLong();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public void partitionPublic(String diskId) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(diskId);\n mRemote.transact(Stub.TRANSACTION_partitionPublic, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public void partitionPrivate(String diskId) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(diskId);\n mRemote.transact(Stub.TRANSACTION_partitionPrivate, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public void partitionMixed(String diskId, int ratio) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(diskId);\n _data.writeInt(ratio);\n mRemote.transact(Stub.TRANSACTION_partitionMixed, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public void setVolumeNickname(String fsUuid, String nickname) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(fsUuid);\n _data.writeString(nickname);\n mRemote.transact(Stub.TRANSACTION_setVolumeNickname, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public void setVolumeUserFlags(String fsUuid, int flags, int mask) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(fsUuid);\n _data.writeInt(flags);\n _data.writeInt(mask);\n mRemote.transact(Stub.TRANSACTION_setVolumeUserFlags, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public void forgetVolume(String fsUuid) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(fsUuid);\n mRemote.transact(Stub.TRANSACTION_forgetVolume, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public void forgetAllVolumes() throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n mRemote.transact(Stub.TRANSACTION_forgetAllVolumes, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public void setDebugFlags(int _flags, int _mask) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeInt(_flags);\n _data.writeInt(_mask);\n mRemote.transact(Stub.TRANSACTION_setDebugFlags, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public String getPrimaryStorageUuid() throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n String _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n mRemote.transact(Stub.TRANSACTION_getPrimaryStorageUuid, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readString();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n @Override\n public void setPrimaryStorageUuid(String volumeUuid, IPackageMoveObserver callback)\n throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(volumeUuid);\n _data.writeStrongBinder((callback != null ? callback.asBinder() : null));\n mRemote.transact(Stub.TRANSACTION_setPrimaryStorageUuid, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public void createUserKey(int userId, int serialNumber, boolean ephemeral)\n throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeInt(userId);\n _data.writeInt(serialNumber);\n _data.writeInt(ephemeral ? 1 : 0);\n mRemote.transact(Stub.TRANSACTION_createUserKey, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public void destroyUserKey(int userId) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeInt(userId);\n mRemote.transact(Stub.TRANSACTION_destroyUserKey, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public void addUserKeyAuth(int userId, int serialNumber,\n byte[] token, byte[] secret) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeInt(userId);\n _data.writeInt(serialNumber);\n _data.writeByteArray(token);\n _data.writeByteArray(secret);\n mRemote.transact(Stub.TRANSACTION_addUserKeyAuth, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public void fixateNewestUserKeyAuth(int userId) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeInt(userId);\n mRemote.transact(Stub.TRANSACTION_fixateNewestUserKeyAuth, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public void unlockUserKey(int userId, int serialNumber,\n byte[] token, byte[] secret) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeInt(userId);\n _data.writeInt(serialNumber);\n _data.writeByteArray(token);\n _data.writeByteArray(secret);\n mRemote.transact(Stub.TRANSACTION_unlockUserKey, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public void lockUserKey(int userId) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeInt(userId);\n mRemote.transact(Stub.TRANSACTION_lockUserKey, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public boolean isUserKeyUnlocked(int userId) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n boolean _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeInt(userId);\n mRemote.transact(Stub.TRANSACTION_isUserKeyUnlocked, _data, _reply, 0);\n _reply.readException();\n _result = 0 != _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n @Override\n public void prepareUserStorage(\n String volumeUuid, int userId, int serialNumber, int flags)\n throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(volumeUuid);\n _data.writeInt(userId);\n _data.writeInt(serialNumber);\n _data.writeInt(flags);\n mRemote.transact(Stub.TRANSACTION_prepareUserStorage, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public void destroyUserStorage(String volumeUuid, int userId, int flags)\n throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(volumeUuid);\n _data.writeInt(userId);\n _data.writeInt(flags);\n mRemote.transact(Stub.TRANSACTION_destroyUserStorage, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public ParcelFileDescriptor mountAppFuse(String name) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n ParcelFileDescriptor _result = null;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(name);\n mRemote.transact(Stub.TRANSACTION_mountAppFuse, _data, _reply, 0);\n _reply.readException();\n _result = _reply.<ParcelFileDescriptor>readParcelable(\n ClassLoader.getSystemClassLoader());\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n }\n\n private static final String DESCRIPTOR = \"IMountService\";\n\n static final int TRANSACTION_registerListener = IBinder.FIRST_CALL_TRANSACTION + 0;\n\n static final int TRANSACTION_unregisterListener = IBinder.FIRST_CALL_TRANSACTION + 1;\n\n static final int TRANSACTION_isUsbMassStorageConnected = IBinder.FIRST_CALL_TRANSACTION + 2;\n\n static final int TRANSACTION_setUsbMassStorageEnabled = IBinder.FIRST_CALL_TRANSACTION + 3;\n\n static final int TRANSACTION_isUsbMassStorageEnabled = IBinder.FIRST_CALL_TRANSACTION + 4;\n\n static final int TRANSACTION_mountVolume = IBinder.FIRST_CALL_TRANSACTION + 5;\n\n static final int TRANSACTION_unmountVolume = IBinder.FIRST_CALL_TRANSACTION + 6;\n\n static final int TRANSACTION_formatVolume = IBinder.FIRST_CALL_TRANSACTION + 7;\n\n static final int TRANSACTION_getStorageUsers = IBinder.FIRST_CALL_TRANSACTION + 8;\n\n static final int TRANSACTION_getVolumeState = IBinder.FIRST_CALL_TRANSACTION + 9;\n\n static final int TRANSACTION_createSecureContainer = IBinder.FIRST_CALL_TRANSACTION + 10;\n\n static final int TRANSACTION_finalizeSecureContainer = IBinder.FIRST_CALL_TRANSACTION + 11;\n\n static final int TRANSACTION_destroySecureContainer = IBinder.FIRST_CALL_TRANSACTION + 12;\n\n static final int TRANSACTION_mountSecureContainer = IBinder.FIRST_CALL_TRANSACTION + 13;\n\n static final int TRANSACTION_unmountSecureContainer = IBinder.FIRST_CALL_TRANSACTION + 14;\n\n static final int TRANSACTION_isSecureContainerMounted = IBinder.FIRST_CALL_TRANSACTION + 15;\n\n static final int TRANSACTION_renameSecureContainer = IBinder.FIRST_CALL_TRANSACTION + 16;\n\n static final int TRANSACTION_getSecureContainerPath = IBinder.FIRST_CALL_TRANSACTION + 17;\n\n static final int TRANSACTION_getSecureContainerList = IBinder.FIRST_CALL_TRANSACTION + 18;\n\n static final int TRANSACTION_shutdown = IBinder.FIRST_CALL_TRANSACTION + 19;\n\n static final int TRANSACTION_finishMediaUpdate = IBinder.FIRST_CALL_TRANSACTION + 20;\n\n static final int TRANSACTION_mountObb = IBinder.FIRST_CALL_TRANSACTION + 21;\n\n static final int TRANSACTION_unmountObb = IBinder.FIRST_CALL_TRANSACTION + 22;\n\n static final int TRANSACTION_isObbMounted = IBinder.FIRST_CALL_TRANSACTION + 23;\n\n static final int TRANSACTION_getMountedObbPath = IBinder.FIRST_CALL_TRANSACTION + 24;\n\n static final int TRANSACTION_isExternalStorageEmulated = IBinder.FIRST_CALL_TRANSACTION + 25;\n\n static final int TRANSACTION_decryptStorage = IBinder.FIRST_CALL_TRANSACTION + 26;\n\n static final int TRANSACTION_encryptStorage = IBinder.FIRST_CALL_TRANSACTION + 27;\n\n static final int TRANSACTION_changeEncryptionPassword = IBinder.FIRST_CALL_TRANSACTION + 28;\n\n static final int TRANSACTION_getVolumeList = IBinder.FIRST_CALL_TRANSACTION + 29;\n\n static final int TRANSACTION_getSecureContainerFilesystemPath = IBinder.FIRST_CALL_TRANSACTION + 30;\n\n static final int TRANSACTION_getEncryptionState = IBinder.FIRST_CALL_TRANSACTION + 31;\n\n static final int TRANSACTION_verifyEncryptionPassword = IBinder.FIRST_CALL_TRANSACTION + 32;\n\n static final int TRANSACTION_fixPermissionsSecureContainer = IBinder.FIRST_CALL_TRANSACTION + 33;\n\n static final int TRANSACTION_mkdirs = IBinder.FIRST_CALL_TRANSACTION + 34;\n\n static final int TRANSACTION_getPasswordType = IBinder.FIRST_CALL_TRANSACTION + 35;\n\n static final int TRANSACTION_getPassword = IBinder.FIRST_CALL_TRANSACTION + 36;\n\n static final int TRANSACTION_clearPassword = IBinder.FIRST_CALL_TRANSACTION + 37;\n\n static final int TRANSACTION_setField = IBinder.FIRST_CALL_TRANSACTION + 38;\n\n static final int TRANSACTION_getField = IBinder.FIRST_CALL_TRANSACTION + 39;\n\n static final int TRANSACTION_resizeSecureContainer = IBinder.FIRST_CALL_TRANSACTION + 40;\n\n static final int TRANSACTION_lastMaintenance = IBinder.FIRST_CALL_TRANSACTION + 41;\n\n static final int TRANSACTION_runMaintenance = IBinder.FIRST_CALL_TRANSACTION + 42;\n\n static final int TRANSACTION_waitForAsecScan = IBinder.FIRST_CALL_TRANSACTION + 43;\n\n static final int TRANSACTION_getDisks = IBinder.FIRST_CALL_TRANSACTION + 44;\n static final int TRANSACTION_getVolumes = IBinder.FIRST_CALL_TRANSACTION + 45;\n static final int TRANSACTION_getVolumeRecords = IBinder.FIRST_CALL_TRANSACTION + 46;\n\n static final int TRANSACTION_mount = IBinder.FIRST_CALL_TRANSACTION + 47;\n static final int TRANSACTION_unmount = IBinder.FIRST_CALL_TRANSACTION + 48;\n static final int TRANSACTION_format = IBinder.FIRST_CALL_TRANSACTION + 49;\n\n static final int TRANSACTION_partitionPublic = IBinder.FIRST_CALL_TRANSACTION + 50;\n static final int TRANSACTION_partitionPrivate = IBinder.FIRST_CALL_TRANSACTION + 51;\n static final int TRANSACTION_partitionMixed = IBinder.FIRST_CALL_TRANSACTION + 52;\n\n static final int TRANSACTION_setVolumeNickname = IBinder.FIRST_CALL_TRANSACTION + 53;\n static final int TRANSACTION_setVolumeUserFlags = IBinder.FIRST_CALL_TRANSACTION + 54;\n static final int TRANSACTION_forgetVolume = IBinder.FIRST_CALL_TRANSACTION + 55;\n static final int TRANSACTION_forgetAllVolumes = IBinder.FIRST_CALL_TRANSACTION + 56;\n\n static final int TRANSACTION_getPrimaryStorageUuid = IBinder.FIRST_CALL_TRANSACTION + 57;\n static final int TRANSACTION_setPrimaryStorageUuid = IBinder.FIRST_CALL_TRANSACTION + 58;\n\n static final int TRANSACTION_benchmark = IBinder.FIRST_CALL_TRANSACTION + 59;\n static final int TRANSACTION_setDebugFlags = IBinder.FIRST_CALL_TRANSACTION + 60;\n\n static final int TRANSACTION_createUserKey = IBinder.FIRST_CALL_TRANSACTION + 61;\n static final int TRANSACTION_destroyUserKey = IBinder.FIRST_CALL_TRANSACTION + 62;\n\n static final int TRANSACTION_unlockUserKey = IBinder.FIRST_CALL_TRANSACTION + 63;\n static final int TRANSACTION_lockUserKey = IBinder.FIRST_CALL_TRANSACTION + 64;\n static final int TRANSACTION_isUserKeyUnlocked = IBinder.FIRST_CALL_TRANSACTION + 65;\n\n static final int TRANSACTION_prepareUserStorage = IBinder.FIRST_CALL_TRANSACTION + 66;\n static final int TRANSACTION_destroyUserStorage = IBinder.FIRST_CALL_TRANSACTION + 67;\n\n static final int TRANSACTION_isConvertibleToFBE = IBinder.FIRST_CALL_TRANSACTION + 68;\n\n static final int TRANSACTION_mountAppFuse = IBinder.FIRST_CALL_TRANSACTION + 69;\n\n static final int TRANSACTION_addUserKeyAuth = IBinder.FIRST_CALL_TRANSACTION + 70;\n\n static final int TRANSACTION_fixateNewestUserKeyAuth = IBinder.FIRST_CALL_TRANSACTION + 71;\n\n /**\n * Cast an IBinder object into an IMountService interface, generating a\n * proxy if needed.\n */\n public static IMountService asInterface(IBinder obj) {\n if (obj == null) {\n return null;\n }\n IInterface iin = obj.queryLocalInterface(DESCRIPTOR);\n if (iin != null && iin instanceof IMountService) {\n return (IMountService) iin;\n }\n return new IMountService.Stub.Proxy(obj);\n }\n\n /** Construct the stub at attach it to the interface. */\n public Stub() {\n attachInterface(this, DESCRIPTOR);\n }\n\n public IBinder asBinder() {\n return this;\n }\n\n @Override\n public boolean onTransact(int code, Parcel data, Parcel reply,\n int flags) throws RemoteException {\n switch (code) {\n case INTERFACE_TRANSACTION: {\n reply.writeString(DESCRIPTOR);\n return true;\n }\n case TRANSACTION_registerListener: {\n data.enforceInterface(DESCRIPTOR);\n IMountServiceListener listener;\n listener = IMountServiceListener.Stub.asInterface(data.readStrongBinder());\n registerListener(listener);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_unregisterListener: {\n data.enforceInterface(DESCRIPTOR);\n IMountServiceListener listener;\n listener = IMountServiceListener.Stub.asInterface(data.readStrongBinder());\n unregisterListener(listener);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_isUsbMassStorageConnected: {\n data.enforceInterface(DESCRIPTOR);\n boolean result = isUsbMassStorageConnected();\n reply.writeNoException();\n reply.writeInt((result ? 1 : 0));\n return true;\n }\n case TRANSACTION_setUsbMassStorageEnabled: {\n data.enforceInterface(DESCRIPTOR);\n boolean enable;\n enable = 0 != data.readInt();\n setUsbMassStorageEnabled(enable);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_isUsbMassStorageEnabled: {\n data.enforceInterface(DESCRIPTOR);\n boolean result = isUsbMassStorageEnabled();\n reply.writeNoException();\n reply.writeInt((result ? 1 : 0));\n return true;\n }\n case TRANSACTION_mountVolume: {\n data.enforceInterface(DESCRIPTOR);\n String mountPoint;\n mountPoint = data.readString();\n int resultCode = mountVolume(mountPoint);\n reply.writeNoException();\n reply.writeInt(resultCode);\n return true;\n }\n case TRANSACTION_unmountVolume: {\n data.enforceInterface(DESCRIPTOR);\n String mountPoint;\n mountPoint = data.readString();\n boolean force = 0 != data.readInt();\n boolean removeEncrypt = 0 != data.readInt();\n unmountVolume(mountPoint, force, removeEncrypt);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_formatVolume: {\n data.enforceInterface(DESCRIPTOR);\n String mountPoint;\n mountPoint = data.readString();\n int result = formatVolume(mountPoint);\n reply.writeNoException();\n reply.writeInt(result);\n return true;\n }\n case TRANSACTION_getStorageUsers: {\n data.enforceInterface(DESCRIPTOR);\n String path;\n path = data.readString();\n int[] pids = getStorageUsers(path);\n reply.writeNoException();\n reply.writeIntArray(pids);\n return true;\n }\n case TRANSACTION_getVolumeState: {\n data.enforceInterface(DESCRIPTOR);\n String mountPoint;\n mountPoint = data.readString();\n String state = getVolumeState(mountPoint);\n reply.writeNoException();\n reply.writeString(state);\n return true;\n }\n case TRANSACTION_createSecureContainer: {\n data.enforceInterface(DESCRIPTOR);\n String id;\n id = data.readString();\n int sizeMb;\n sizeMb = data.readInt();\n String fstype;\n fstype = data.readString();\n String key;\n key = data.readString();\n int ownerUid;\n ownerUid = data.readInt();\n boolean external;\n external = 0 != data.readInt();\n int resultCode = createSecureContainer(id, sizeMb, fstype, key, ownerUid,\n external);\n reply.writeNoException();\n reply.writeInt(resultCode);\n return true;\n }\n case TRANSACTION_finalizeSecureContainer: {\n data.enforceInterface(DESCRIPTOR);\n String id;\n id = data.readString();\n int resultCode = finalizeSecureContainer(id);\n reply.writeNoException();\n reply.writeInt(resultCode);\n return true;\n }\n case TRANSACTION_destroySecureContainer: {\n data.enforceInterface(DESCRIPTOR);\n String id;\n id = data.readString();\n boolean force;\n force = 0 != data.readInt();\n int resultCode = destroySecureContainer(id, force);\n reply.writeNoException();\n reply.writeInt(resultCode);\n return true;\n }\n case TRANSACTION_mountSecureContainer: {\n data.enforceInterface(DESCRIPTOR);\n String id;\n id = data.readString();\n String key;\n key = data.readString();\n int ownerUid;\n ownerUid = data.readInt();\n boolean readOnly;\n readOnly = data.readInt() != 0;\n int resultCode = mountSecureContainer(id, key, ownerUid, readOnly);\n reply.writeNoException();\n reply.writeInt(resultCode);\n return true;\n }\n case TRANSACTION_unmountSecureContainer: {\n data.enforceInterface(DESCRIPTOR);\n String id;\n id = data.readString();\n boolean force;\n force = 0 != data.readInt();\n int resultCode = unmountSecureContainer(id, force);\n reply.writeNoException();\n reply.writeInt(resultCode);\n return true;\n }\n case TRANSACTION_isSecureContainerMounted: {\n data.enforceInterface(DESCRIPTOR);\n String id;\n id = data.readString();\n boolean status = isSecureContainerMounted(id);\n reply.writeNoException();\n reply.writeInt((status ? 1 : 0));\n return true;\n }\n case TRANSACTION_renameSecureContainer: {\n data.enforceInterface(DESCRIPTOR);\n String oldId;\n oldId = data.readString();\n String newId;\n newId = data.readString();\n int resultCode = renameSecureContainer(oldId, newId);\n reply.writeNoException();\n reply.writeInt(resultCode);\n return true;\n }\n case TRANSACTION_getSecureContainerPath: {\n data.enforceInterface(DESCRIPTOR);\n String id;\n id = data.readString();\n String path = getSecureContainerPath(id);\n reply.writeNoException();\n reply.writeString(path);\n return true;\n }\n case TRANSACTION_getSecureContainerList: {\n data.enforceInterface(DESCRIPTOR);\n String[] ids = getSecureContainerList();\n reply.writeNoException();\n reply.writeStringArray(ids);\n return true;\n }\n case TRANSACTION_shutdown: {\n data.enforceInterface(DESCRIPTOR);\n IMountShutdownObserver observer;\n observer = IMountShutdownObserver.Stub.asInterface(data\n .readStrongBinder());\n shutdown(observer);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_finishMediaUpdate: {\n data.enforceInterface(DESCRIPTOR);\n finishMediaUpdate();\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_mountObb: {\n data.enforceInterface(DESCRIPTOR);\n final String rawPath = data.readString();\n final String canonicalPath = data.readString();\n final String key = data.readString();\n IObbActionListener observer;\n observer = IObbActionListener.Stub.asInterface(data.readStrongBinder());\n int nonce;\n nonce = data.readInt();\n mountObb(rawPath, canonicalPath, key, observer, nonce);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_unmountObb: {\n data.enforceInterface(DESCRIPTOR);\n String filename;\n filename = data.readString();\n boolean force;\n force = 0 != data.readInt();\n IObbActionListener observer;\n observer = IObbActionListener.Stub.asInterface(data.readStrongBinder());\n int nonce;\n nonce = data.readInt();\n unmountObb(filename, force, observer, nonce);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_isObbMounted: {\n data.enforceInterface(DESCRIPTOR);\n String filename;\n filename = data.readString();\n boolean status = isObbMounted(filename);\n reply.writeNoException();\n reply.writeInt((status ? 1 : 0));\n return true;\n }\n case TRANSACTION_getMountedObbPath: {\n data.enforceInterface(DESCRIPTOR);\n String filename;\n filename = data.readString();\n String mountedPath = getMountedObbPath(filename);\n reply.writeNoException();\n reply.writeString(mountedPath);\n return true;\n }\n case TRANSACTION_isExternalStorageEmulated: {\n data.enforceInterface(DESCRIPTOR);\n boolean emulated = isExternalStorageEmulated();\n reply.writeNoException();\n reply.writeInt(emulated ? 1 : 0);\n return true;\n }\n case TRANSACTION_decryptStorage: {\n data.enforceInterface(DESCRIPTOR);\n String password = data.readString();\n int result = decryptStorage(password);\n reply.writeNoException();\n reply.writeInt(result);\n return true;\n }\n case TRANSACTION_encryptStorage: {\n data.enforceInterface(DESCRIPTOR);\n int type = data.readInt();\n String password = data.readString();\n int result = encryptStorage(type, password);\n reply.writeNoException();\n reply.writeInt(result);\n return true;\n }\n case TRANSACTION_changeEncryptionPassword: {\n data.enforceInterface(DESCRIPTOR);\n int type = data.readInt();\n String password = data.readString();\n int result = changeEncryptionPassword(type, password);\n reply.writeNoException();\n reply.writeInt(result);\n return true;\n }\n case TRANSACTION_getVolumeList: {\n data.enforceInterface(DESCRIPTOR);\n int uid = data.readInt();\n String packageName = data.readString();\n int _flags = data.readInt();\n StorageVolume[] result = getVolumeList(uid, packageName, _flags);\n reply.writeNoException();\n reply.writeTypedArray(result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE);\n return true;\n }\n case TRANSACTION_getSecureContainerFilesystemPath: {\n data.enforceInterface(DESCRIPTOR);\n String id;\n id = data.readString();\n String path = getSecureContainerFilesystemPath(id);\n reply.writeNoException();\n reply.writeString(path);\n return true;\n }\n case TRANSACTION_getEncryptionState: {\n data.enforceInterface(DESCRIPTOR);\n int result = getEncryptionState();\n reply.writeNoException();\n reply.writeInt(result);\n return true;\n }\n case TRANSACTION_fixPermissionsSecureContainer: {\n data.enforceInterface(DESCRIPTOR);\n String id;\n id = data.readString();\n int gid;\n gid = data.readInt();\n String filename;\n filename = data.readString();\n int resultCode = fixPermissionsSecureContainer(id, gid, filename);\n reply.writeNoException();\n reply.writeInt(resultCode);\n return true;\n }\n case TRANSACTION_mkdirs: {\n data.enforceInterface(DESCRIPTOR);\n String callingPkg = data.readString();\n String path = data.readString();\n int result = mkdirs(callingPkg, path);\n reply.writeNoException();\n reply.writeInt(result);\n return true;\n }\n case TRANSACTION_getPasswordType: {\n data.enforceInterface(DESCRIPTOR);\n int result = getPasswordType();\n reply.writeNoException();\n reply.writeInt(result);\n return true;\n }\n case TRANSACTION_getPassword: {\n data.enforceInterface(DESCRIPTOR);\n String result = getPassword();\n reply.writeNoException();\n reply.writeString(result);\n return true;\n }\n case TRANSACTION_clearPassword: {\n data.enforceInterface(DESCRIPTOR);\n clearPassword();\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_setField: {\n data.enforceInterface(DESCRIPTOR);\n String field = data.readString();\n String contents = data.readString();\n setField(field, contents);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_getField: {\n data.enforceInterface(DESCRIPTOR);\n String field = data.readString();\n String contents = getField(field);\n reply.writeNoException();\n reply.writeString(contents);\n return true;\n }\n case TRANSACTION_isConvertibleToFBE: {\n data.enforceInterface(DESCRIPTOR);\n int resultCode = isConvertibleToFBE() ? 1 : 0;\n reply.writeNoException();\n reply.writeInt(resultCode);\n return true;\n }\n case TRANSACTION_resizeSecureContainer: {\n data.enforceInterface(DESCRIPTOR);\n String id;\n id = data.readString();\n int sizeMb;\n sizeMb = data.readInt();\n String key;\n key = data.readString();\n int resultCode = resizeSecureContainer(id, sizeMb, key);\n reply.writeNoException();\n reply.writeInt(resultCode);\n return true;\n }\n case TRANSACTION_lastMaintenance: {\n data.enforceInterface(DESCRIPTOR);\n long lastMaintenance = lastMaintenance();\n reply.writeNoException();\n reply.writeLong(lastMaintenance);\n return true;\n }\n case TRANSACTION_runMaintenance: {\n data.enforceInterface(DESCRIPTOR);\n runMaintenance();\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_waitForAsecScan: {\n data.enforceInterface(DESCRIPTOR);\n waitForAsecScan();\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_getDisks: {\n data.enforceInterface(DESCRIPTOR);\n DiskInfo[] disks = getDisks();\n reply.writeNoException();\n reply.writeTypedArray(disks, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE);\n return true;\n }\n case TRANSACTION_getVolumes: {\n data.enforceInterface(DESCRIPTOR);\n int _flags = data.readInt();\n VolumeInfo[] volumes = getVolumes(_flags);\n reply.writeNoException();\n reply.writeTypedArray(volumes, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE);\n return true;\n }\n case TRANSACTION_getVolumeRecords: {\n data.enforceInterface(DESCRIPTOR);\n int _flags = data.readInt();\n VolumeRecord[] volumes = getVolumeRecords(_flags);\n reply.writeNoException();\n reply.writeTypedArray(volumes, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE);\n return true;\n }\n case TRANSACTION_mount: {\n data.enforceInterface(DESCRIPTOR);\n String volId = data.readString();\n mount(volId);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_unmount: {\n data.enforceInterface(DESCRIPTOR);\n String volId = data.readString();\n unmount(volId);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_format: {\n data.enforceInterface(DESCRIPTOR);\n String volId = data.readString();\n format(volId);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_benchmark: {\n data.enforceInterface(DESCRIPTOR);\n String volId = data.readString();\n long res = benchmark(volId);\n reply.writeNoException();\n reply.writeLong(res);\n return true;\n }\n case TRANSACTION_partitionPublic: {\n data.enforceInterface(DESCRIPTOR);\n String diskId = data.readString();\n partitionPublic(diskId);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_partitionPrivate: {\n data.enforceInterface(DESCRIPTOR);\n String diskId = data.readString();\n partitionPrivate(diskId);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_partitionMixed: {\n data.enforceInterface(DESCRIPTOR);\n String diskId = data.readString();\n int ratio = data.readInt();\n partitionMixed(diskId, ratio);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_setVolumeNickname: {\n data.enforceInterface(DESCRIPTOR);\n String volId = data.readString();\n String nickname = data.readString();\n setVolumeNickname(volId, nickname);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_setVolumeUserFlags: {\n data.enforceInterface(DESCRIPTOR);\n String volId = data.readString();\n int _flags = data.readInt();\n int _mask = data.readInt();\n setVolumeUserFlags(volId, _flags, _mask);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_forgetVolume: {\n data.enforceInterface(DESCRIPTOR);\n String fsUuid = data.readString();\n forgetVolume(fsUuid);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_forgetAllVolumes: {\n data.enforceInterface(DESCRIPTOR);\n forgetAllVolumes();\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_setDebugFlags: {\n data.enforceInterface(DESCRIPTOR);\n int _flags = data.readInt();\n int _mask = data.readInt();\n setDebugFlags(_flags, _mask);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_getPrimaryStorageUuid: {\n data.enforceInterface(DESCRIPTOR);\n String volumeUuid = getPrimaryStorageUuid();\n reply.writeNoException();\n reply.writeString(volumeUuid);\n return true;\n }\n case TRANSACTION_setPrimaryStorageUuid: {\n data.enforceInterface(DESCRIPTOR);\n String volumeUuid = data.readString();\n IPackageMoveObserver listener = IPackageMoveObserver.Stub.asInterface(\n data.readStrongBinder());\n setPrimaryStorageUuid(volumeUuid, listener);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_createUserKey: {\n data.enforceInterface(DESCRIPTOR);\n int userId = data.readInt();\n int serialNumber = data.readInt();\n boolean ephemeral = data.readInt() != 0;\n createUserKey(userId, serialNumber, ephemeral);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_destroyUserKey: {\n data.enforceInterface(DESCRIPTOR);\n int userId = data.readInt();\n destroyUserKey(userId);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_addUserKeyAuth: {\n data.enforceInterface(DESCRIPTOR);\n int userId = data.readInt();\n int serialNumber = data.readInt();\n byte[] token = data.createByteArray();\n byte[] secret = data.createByteArray();\n addUserKeyAuth(userId, serialNumber, token, secret);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_fixateNewestUserKeyAuth: {\n data.enforceInterface(DESCRIPTOR);\n int userId = data.readInt();\n fixateNewestUserKeyAuth(userId);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_unlockUserKey: {\n data.enforceInterface(DESCRIPTOR);\n int userId = data.readInt();\n int serialNumber = data.readInt();\n byte[] token = data.createByteArray();\n byte[] secret = data.createByteArray();\n unlockUserKey(userId, serialNumber, token, secret);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_lockUserKey: {\n data.enforceInterface(DESCRIPTOR);\n int userId = data.readInt();\n lockUserKey(userId);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_isUserKeyUnlocked: {\n data.enforceInterface(DESCRIPTOR);\n int userId = data.readInt();\n boolean result = isUserKeyUnlocked(userId);\n reply.writeNoException();\n reply.writeInt(result ? 1 : 0);\n return true;\n }\n case TRANSACTION_prepareUserStorage: {\n data.enforceInterface(DESCRIPTOR);\n String volumeUuid = data.readString();\n int userId = data.readInt();\n int serialNumber = data.readInt();\n int _flags = data.readInt();\n prepareUserStorage(volumeUuid, userId, serialNumber, _flags);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_destroyUserStorage: {\n data.enforceInterface(DESCRIPTOR);\n String volumeUuid = data.readString();\n int userId = data.readInt();\n int _flags = data.readInt();\n destroyUserStorage(volumeUuid, userId, _flags);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_mountAppFuse: {\n data.enforceInterface(DESCRIPTOR);\n String name = data.readString();\n ParcelFileDescriptor fd = mountAppFuse(name);\n reply.writeNoException();\n reply.writeParcelable(fd, Parcelable.PARCELABLE_WRITE_RETURN_VALUE);\n return true;\n }\n }\n return super.onTransact(code, data, reply, flags);\n }\n }\n\n /*\n * Creates a secure container with the specified parameters. Returns an int\n * consistent with MountServiceResultCode\n */\n public int createSecureContainer(String id, int sizeMb, String fstype, String key,\n int ownerUid, boolean external) throws RemoteException;\n\n /*\n * Destroy a secure container, and free up all resources associated with it.\n * NOTE: Ensure all references are released prior to deleting. Returns an\n * int consistent with MountServiceResultCode\n */\n public int destroySecureContainer(String id, boolean force) throws RemoteException;\n\n /*\n * Finalize a container which has just been created and populated. After\n * finalization, the container is immutable. Returns an int consistent with\n * MountServiceResultCode\n */\n public int finalizeSecureContainer(String id) throws RemoteException;\n\n /**\n * Call into MountService by PackageManager to notify that its done\n * processing the media status update request.\n */\n public void finishMediaUpdate() throws RemoteException;\n\n /**\n * Format external storage given a mount point. Returns an int consistent\n * with MountServiceResultCode\n */\n public int formatVolume(String mountPoint) throws RemoteException;\n\n /**\n * Gets the path to the mounted Opaque Binary Blob (OBB).\n */\n public String getMountedObbPath(String rawPath) throws RemoteException;\n\n /**\n * Gets an Array of currently known secure container IDs\n */\n public String[] getSecureContainerList() throws RemoteException;\n\n /*\n * Returns the filesystem path of a mounted secure container.\n */\n public String getSecureContainerPath(String id) throws RemoteException;\n\n /**\n * Returns an array of pids with open files on the specified path.\n */\n public int[] getStorageUsers(String path) throws RemoteException;\n\n /**\n * Gets the state of a volume via its mountpoint.\n */\n public String getVolumeState(String mountPoint) throws RemoteException;\n\n /**\n * Checks whether the specified Opaque Binary Blob (OBB) is mounted\n * somewhere.\n */\n public boolean isObbMounted(String rawPath) throws RemoteException;\n\n /*\n * Returns true if the specified container is mounted\n */\n public boolean isSecureContainerMounted(String id) throws RemoteException;\n\n /**\n * Returns true if a USB mass storage host is connected\n */\n public boolean isUsbMassStorageConnected() throws RemoteException;\n\n /**\n * Returns true if a USB mass storage host is enabled (media is shared)\n */\n public boolean isUsbMassStorageEnabled() throws RemoteException;\n\n /**\n * Mounts an Opaque Binary Blob (OBB) with the specified decryption key and\n * only allows the calling process's UID access to the contents.\n * MountService will call back to the supplied IObbActionListener to inform\n * it of the terminal state of the call.\n */\n public void mountObb(String rawPath, String canonicalPath, String key,\n IObbActionListener token, int nonce) throws RemoteException;\n\n /*\n * Mount a secure container with the specified key and owner UID. Returns an\n * int consistent with MountServiceResultCode\n */\n public int mountSecureContainer(String id, String key, int ownerUid, boolean readOnly)\n throws RemoteException;\n\n /**\n * Mount external storage at given mount point. Returns an int consistent\n * with MountServiceResultCode\n */\n public int mountVolume(String mountPoint) throws RemoteException;\n\n /**\n * Registers an IMountServiceListener for receiving async notifications.\n */\n public void registerListener(IMountServiceListener listener) throws RemoteException;\n\n /*\n * Rename an unmounted secure container. Returns an int consistent with\n * MountServiceResultCode\n */\n public int renameSecureContainer(String oldId, String newId) throws RemoteException;\n\n /**\n * Enables / disables USB mass storage. The caller should check actual\n * status of enabling/disabling USB mass storage via StorageEventListener.\n */\n public void setUsbMassStorageEnabled(boolean enable) throws RemoteException;\n\n /**\n * Shuts down the MountService and gracefully unmounts all external media.\n * Invokes call back once the shutdown is complete.\n */\n public void shutdown(IMountShutdownObserver observer) throws RemoteException;\n\n /**\n * Unmounts an Opaque Binary Blob (OBB). When the force flag is specified,\n * any program using it will be forcibly killed to unmount the image.\n * MountService will call back to the supplied IObbActionListener to inform\n * it of the terminal state of the call.\n */\n public void unmountObb(String rawPath, boolean force, IObbActionListener token, int nonce)\n throws RemoteException;\n\n /*\n * Unount a secure container. Returns an int consistent with\n * MountServiceResultCode\n */\n public int unmountSecureContainer(String id, boolean force) throws RemoteException;\n\n /**\n * Safely unmount external storage at given mount point. The unmount is an\n * asynchronous operation. Applications should register StorageEventListener\n * for storage related status changes.\n * @param mountPoint the mount point\n * @param force whether or not to forcefully unmount it (e.g. even if programs are using this\n * data currently)\n * @param removeEncryption whether or not encryption mapping should be removed from the volume.\n * This value implies {@code force}.\n */\n public void unmountVolume(String mountPoint, boolean force, boolean removeEncryption)\n throws RemoteException;\n\n /**\n * Unregisters an IMountServiceListener\n */\n public void unregisterListener(IMountServiceListener listener) throws RemoteException;\n\n /**\n * Returns whether or not the external storage is emulated.\n */\n public boolean isExternalStorageEmulated() throws RemoteException;\n\n /** The volume is not encrypted. */\n static final int ENCRYPTION_STATE_NONE = 1;\n /** The volume has been encrypted succesfully. */\n static final int ENCRYPTION_STATE_OK = 0;\n /** The volume is in a bad state.*/\n static final int ENCRYPTION_STATE_ERROR_UNKNOWN = -1;\n /** Encryption is incomplete */\n static final int ENCRYPTION_STATE_ERROR_INCOMPLETE = -2;\n /** Encryption is incomplete and irrecoverable */\n static final int ENCRYPTION_STATE_ERROR_INCONSISTENT = -3;\n /** Underlying data is corrupt */\n static final int ENCRYPTION_STATE_ERROR_CORRUPT = -4;\n\n /**\n * Determines the encryption state of the volume.\n * @return a numerical value. See {@code ENCRYPTION_STATE_*} for possible\n * values.\n * Note that this has been replaced in most cases by the APIs in\n * StorageManager (see isEncryptable and below)\n * This is still useful to get the error state when encryption has failed\n * and CryptKeeper needs to throw up a screen advising the user what to do\n */\n public int getEncryptionState() throws RemoteException;\n\n /**\n * Decrypts any encrypted volumes.\n */\n public int decryptStorage(String password) throws RemoteException;\n\n /**\n * Encrypts storage.\n */\n public int encryptStorage(int type, String password) throws RemoteException;\n\n /**\n * Changes the encryption password.\n */\n public int changeEncryptionPassword(int type, String password)\n throws RemoteException;\n\n /**\n * Verify the encryption password against the stored volume. This method\n * may only be called by the system process.\n */\n public int verifyEncryptionPassword(String password) throws RemoteException;\n\n /**\n * Returns list of all mountable volumes.\n */\n public StorageVolume[] getVolumeList(int uid, String packageName, int flags) throws RemoteException;\n\n /**\n * Gets the path on the filesystem for the ASEC container itself.\n *\n * @param cid ASEC container ID\n * @return path to filesystem or {@code null} if it's not found\n * @throws RemoteException\n */\n public String getSecureContainerFilesystemPath(String cid) throws RemoteException;\n\n /*\n * Fix permissions in a container which has just been created and populated.\n * Returns an int consistent with MountServiceResultCode\n */\n public int fixPermissionsSecureContainer(String id, int gid, String filename)\n throws RemoteException;\n\n /**\n * Ensure that all directories along given path exist, creating parent\n * directories as needed. Validates that given path is absolute and that it\n * contains no relative \".\" or \"..\" paths or symlinks. Also ensures that\n * path belongs to a volume managed by vold, and that path is either\n * external storage data or OBB directory belonging to calling app.\n */\n public int mkdirs(String callingPkg, String path) throws RemoteException;\n\n /**\n * Determines the type of the encryption password\n * @return PasswordType\n */\n public int getPasswordType() throws RemoteException;\n\n /**\n * Get password from vold\n * @return password or empty string\n */\n public String getPassword() throws RemoteException;\n\n /**\n * Securely clear password from vold\n */\n public void clearPassword() throws RemoteException;\n\n /**\n * Set a field in the crypto header.\n * @param field field to set\n * @param contents contents to set in field\n */\n public void setField(String field, String contents) throws RemoteException;\n\n /**\n * Gets a field from the crypto header.\n * @param field field to get\n * @return contents of field\n */\n public String getField(String field) throws RemoteException;\n\n public boolean isConvertibleToFBE() throws RemoteException;\n\n public int resizeSecureContainer(String id, int sizeMb, String key) throws RemoteException;\n\n /**\n * Report the time of the last maintenance operation such as fstrim.\n * @return Timestamp of the last maintenance operation, in the\n * System.currentTimeMillis() time base\n * @throws RemoteException\n */\n public long lastMaintenance() throws RemoteException;\n\n /**\n * Kick off an immediate maintenance operation\n * @throws RemoteException\n */\n public void runMaintenance() throws RemoteException;\n\n public void waitForAsecScan() throws RemoteException;\n\n public DiskInfo[] getDisks() throws RemoteException;\n public VolumeInfo[] getVolumes(int flags) throws RemoteException;\n public VolumeRecord[] getVolumeRecords(int flags) throws RemoteException;\n\n public void mount(String volId) throws RemoteException;\n public void unmount(String volId) throws RemoteException;\n public void format(String volId) throws RemoteException;\n public long benchmark(String volId) throws RemoteException;\n\n public void partitionPublic(String diskId) throws RemoteException;\n public void partitionPrivate(String diskId) throws RemoteException;\n public void partitionMixed(String diskId, int ratio) throws RemoteException;\n\n public void setVolumeNickname(String fsUuid, String nickname) throws RemoteException;\n public void setVolumeUserFlags(String fsUuid, int flags, int mask) throws RemoteException;\n public void forgetVolume(String fsUuid) throws RemoteException;\n public void forgetAllVolumes() throws RemoteException;\n public void setDebugFlags(int flags, int mask) throws RemoteException;\n\n public String getPrimaryStorageUuid() throws RemoteException;\n public void setPrimaryStorageUuid(String volumeUuid, IPackageMoveObserver callback)\n throws RemoteException;\n\n public void createUserKey(int userId, int serialNumber, boolean ephemeral)\n throws RemoteException;\n public void destroyUserKey(int userId) throws RemoteException;\n public void addUserKeyAuth(int userId, int serialNumber,\n byte[] token, byte[] secret) throws RemoteException;\n public void fixateNewestUserKeyAuth(int userId) throws RemoteException;\n\n public void unlockUserKey(int userId, int serialNumber,\n byte[] token, byte[] secret) throws RemoteException;\n public void lockUserKey(int userId) throws RemoteException;\n public boolean isUserKeyUnlocked(int userId) throws RemoteException;\n\n public void prepareUserStorage(String volumeUuid, int userId, int serialNumber,\n int flags) throws RemoteException;\n public void destroyUserStorage(String volumeUuid, int userId, int flags) throws RemoteException;\n\n public ParcelFileDescriptor mountAppFuse(String name) throws RemoteException;\n}", "public static MovieRPCBlockingStub newBlockingStub(\n io.grpc.Channel channel) {\n io.grpc.stub.AbstractStub.StubFactory<MovieRPCBlockingStub> factory =\n new io.grpc.stub.AbstractStub.StubFactory<MovieRPCBlockingStub>() {\n @java.lang.Override\n public MovieRPCBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {\n return new MovieRPCBlockingStub(channel, callOptions);\n }\n };\n return MovieRPCBlockingStub.newStub(factory, channel);\n }", "public static SinkServiceFutureStub newFutureStub(\n io.grpc.Channel channel) {\n io.grpc.stub.AbstractStub.StubFactory<SinkServiceFutureStub> factory =\n new io.grpc.stub.AbstractStub.StubFactory<SinkServiceFutureStub>() {\n @java.lang.Override\n public SinkServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {\n return new SinkServiceFutureStub(channel, callOptions);\n }\n };\n return SinkServiceFutureStub.newStub(factory, channel);\n }", "public Stub() {\n this.attachInterface(this, DESCRIPTOR);\n }", "public Stub() {\n this.attachInterface(this, DESCRIPTOR);\n }", "public static homeLightsBlockingStub newBlockingStub(\n io.grpc.Channel channel) {\n return new homeLightsBlockingStub(channel);\n }", "public StreamResponseRequestBuilder<akka.stream.javadsl.Source<io.cloudstate.protocol.CrdtProto.CrdtStreamIn, akka.NotUsed>, io.cloudstate.protocol.CrdtProto.CrdtStreamOut> handle()\n \n {\n throw new UnsupportedOperationException();\n }", "public Stub() {\n attachInterface(this, DESCRIPTOR);\n }", "public Stub()\n{\nthis.attachInterface(this, DESCRIPTOR);\n}", "public Stub()\n{\nthis.attachInterface(this, DESCRIPTOR);\n}", "public Stub()\n{\nthis.attachInterface(this, DESCRIPTOR);\n}", "public Stub()\n{\nthis.attachInterface(this, DESCRIPTOR);\n}", "public Stub()\n{\nthis.attachInterface(this, DESCRIPTOR);\n}", "public Stub()\n{\nthis.attachInterface(this, DESCRIPTOR);\n}", "public Stub()\n{\nthis.attachInterface(this, DESCRIPTOR);\n}", "public Stub()\n{\nthis.attachInterface(this, DESCRIPTOR);\n}", "public Stub()\n{\nthis.attachInterface(this, DESCRIPTOR);\n}", "public Stub()\n{\nthis.attachInterface(this, DESCRIPTOR);\n}", "public Stub()\n{\nthis.attachInterface(this, DESCRIPTOR);\n}", "public Stub()\n{\nthis.attachInterface(this, DESCRIPTOR);\n}", "public static ExtractionServiceBlockingStub newBlockingStub(\n io.grpc.Channel channel) {\n io.grpc.stub.AbstractStub.StubFactory<ExtractionServiceBlockingStub> factory =\n new io.grpc.stub.AbstractStub.StubFactory<ExtractionServiceBlockingStub>() {\n @Override\n public ExtractionServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {\n return new ExtractionServiceBlockingStub(channel, callOptions);\n }\n };\n return ExtractionServiceBlockingStub.newStub(factory, channel);\n }", "public static S3InternalServiceFutureStub newFutureStub(\n io.grpc.Channel channel) {\n io.grpc.stub.AbstractStub.StubFactory<S3InternalServiceFutureStub> factory =\n new io.grpc.stub.AbstractStub.StubFactory<S3InternalServiceFutureStub>() {\n @java.lang.Override\n public S3InternalServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {\n return new S3InternalServiceFutureStub(channel, callOptions);\n }\n };\n return S3InternalServiceFutureStub.newStub(factory, channel);\n }", "VoidOperation createVoidOperation();", "public static RaftServerProtocolServiceFutureStub newFutureStub(\n org.apache.ratis.shaded.io.grpc.Channel channel) {\n return new RaftServerProtocolServiceFutureStub(channel);\n }", "public static TpuBlockingStub newBlockingStub(io.grpc.Channel channel) {\n io.grpc.stub.AbstractStub.StubFactory<TpuBlockingStub> factory =\n new io.grpc.stub.AbstractStub.StubFactory<TpuBlockingStub>() {\n @java.lang.Override\n public TpuBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {\n return new TpuBlockingStub(channel, callOptions);\n }\n };\n return TpuBlockingStub.newStub(factory, channel);\n }", "public static S3InternalServiceStub newStub(io.grpc.Channel channel) {\n io.grpc.stub.AbstractStub.StubFactory<S3InternalServiceStub> factory =\n new io.grpc.stub.AbstractStub.StubFactory<S3InternalServiceStub>() {\n @java.lang.Override\n public S3InternalServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {\n return new S3InternalServiceStub(channel, callOptions);\n }\n };\n return S3InternalServiceStub.newStub(factory, channel);\n }", "long createBidirectionalStream(CronetBidirectionalStream caller,\n long urlRequestContextAdapter, boolean sendRequestHeadersAutomatically,\n boolean trafficStatsTagSet, int trafficStatsTag, boolean trafficStatsUidSet,\n int trafficStatsUid, long networkHandle);", "public interface NettyProxyService {\n /**\n * 心跳\n *\n * @param msg\n * @throws Exception\n */\n void processHeartbeatMsg(HeartbeatMsg msg) throws Exception;\n\n /**\n * 上传位置\n *\n * @param msg\n * @throws Exception\n */\n void processLocationMsg(LocationMsg msg) throws Exception;\n\n /**\n * 离线\n *\n * @param deviceNumber\n */\n void processInactive(String deviceNumber);\n}", "@Test(description = \"2.1.1.2\", enabled = false)\n public void httpEndpointViaCallMediatorBlockingMode() throws\n Exception {\n String proxyServiceUrl = getProxyServiceURLHttp(\"2_1_1_2_Proxy_httpEndpointViaCallMediatorBlockingMode\");\n HTTPUtils.invokeSoapActionAndCheckContains(proxyServiceUrl, GET_QUOTE_REQUEST, header, expectedResponse,\n HttpConstants.HTTP_SC_SUCCESS, \"urn:mediate\",\n \"httpEndpointViaCallMediatorBlockingMode\");\n }", "public static ImageServiceBlockingStub newBlockingStub(\n io.grpc.Channel channel) {\n io.grpc.stub.AbstractStub.StubFactory<ImageServiceBlockingStub> factory =\n new io.grpc.stub.AbstractStub.StubFactory<ImageServiceBlockingStub>() {\n @java.lang.Override\n public ImageServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {\n return new ImageServiceBlockingStub(channel, callOptions);\n }\n };\n return ImageServiceBlockingStub.newStub(factory, channel);\n }", "@Override\n\tpublic Future<RpcResult<Void>> noinputOutput() {\n\t\tLOG.info(\"noinputOutput is called.\");\n\t\treturn Futures.immediateFuture( RpcResultBuilder.<Void> success().build() );\n\t}", "public interface IBluetoothHeadset\n extends IInterface {\n public static abstract class Stub extends Binder\n implements IBluetoothHeadset {\n private static class Proxy\n implements IBluetoothHeadset {\n\n public boolean acceptIncomingConnect(BluetoothDevice bluetoothdevice) throws RemoteException {\n boolean flag;\n Parcel parcel;\n Parcel parcel1;\n flag = true;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"android.bluetooth.IBluetoothHeadset\");\n if(bluetoothdevice == null)\n break MISSING_BLOCK_LABEL_76;\n parcel.writeInt(1);\n bluetoothdevice.writeToParcel(parcel, 0);\n_L1:\n int i;\n mRemote.transact(13, parcel, parcel1, 0);\n parcel1.readException();\n i = parcel1.readInt();\n Exception exception;\n if(i == 0)\n flag = false;\n parcel1.recycle();\n parcel.recycle();\n return flag;\n parcel.writeInt(0);\n goto _L1\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public IBinder asBinder() {\n return mRemote;\n }\n\n public boolean cancelConnectThread() throws RemoteException {\n boolean flag;\n Parcel parcel;\n Parcel parcel1;\n flag = false;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n int i;\n parcel.writeInterfaceToken(\"android.bluetooth.IBluetoothHeadset\");\n mRemote.transact(15, parcel, parcel1, 0);\n parcel1.readException();\n i = parcel1.readInt();\n if(i != 0)\n flag = true;\n parcel1.recycle();\n parcel.recycle();\n return flag;\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public boolean connect(BluetoothDevice bluetoothdevice) throws RemoteException {\n boolean flag;\n Parcel parcel;\n Parcel parcel1;\n flag = true;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"android.bluetooth.IBluetoothHeadset\");\n if(bluetoothdevice == null)\n break MISSING_BLOCK_LABEL_75;\n parcel.writeInt(1);\n bluetoothdevice.writeToParcel(parcel, 0);\n_L1:\n int i;\n mRemote.transact(1, parcel, parcel1, 0);\n parcel1.readException();\n i = parcel1.readInt();\n Exception exception;\n if(i == 0)\n flag = false;\n parcel1.recycle();\n parcel.recycle();\n return flag;\n parcel.writeInt(0);\n goto _L1\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public boolean connectHeadsetInternal(BluetoothDevice bluetoothdevice) throws RemoteException {\n boolean flag;\n Parcel parcel;\n Parcel parcel1;\n flag = true;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"android.bluetooth.IBluetoothHeadset\");\n if(bluetoothdevice == null)\n break MISSING_BLOCK_LABEL_76;\n parcel.writeInt(1);\n bluetoothdevice.writeToParcel(parcel, 0);\n_L1:\n int i;\n mRemote.transact(16, parcel, parcel1, 0);\n parcel1.readException();\n i = parcel1.readInt();\n Exception exception;\n if(i == 0)\n flag = false;\n parcel1.recycle();\n parcel.recycle();\n return flag;\n parcel.writeInt(0);\n goto _L1\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public boolean createIncomingConnect(BluetoothDevice bluetoothdevice) throws RemoteException {\n boolean flag;\n Parcel parcel;\n Parcel parcel1;\n flag = true;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"android.bluetooth.IBluetoothHeadset\");\n if(bluetoothdevice == null)\n break MISSING_BLOCK_LABEL_76;\n parcel.writeInt(1);\n bluetoothdevice.writeToParcel(parcel, 0);\n_L1:\n int i;\n mRemote.transact(12, parcel, parcel1, 0);\n parcel1.readException();\n i = parcel1.readInt();\n Exception exception;\n if(i == 0)\n flag = false;\n parcel1.recycle();\n parcel.recycle();\n return flag;\n parcel.writeInt(0);\n goto _L1\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public boolean disconnect(BluetoothDevice bluetoothdevice) throws RemoteException {\n boolean flag;\n Parcel parcel;\n Parcel parcel1;\n flag = true;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"android.bluetooth.IBluetoothHeadset\");\n if(bluetoothdevice == null)\n break MISSING_BLOCK_LABEL_75;\n parcel.writeInt(1);\n bluetoothdevice.writeToParcel(parcel, 0);\n_L1:\n int i;\n mRemote.transact(2, parcel, parcel1, 0);\n parcel1.readException();\n i = parcel1.readInt();\n Exception exception;\n if(i == 0)\n flag = false;\n parcel1.recycle();\n parcel.recycle();\n return flag;\n parcel.writeInt(0);\n goto _L1\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public boolean disconnectHeadsetInternal(BluetoothDevice bluetoothdevice) throws RemoteException {\n boolean flag;\n Parcel parcel;\n Parcel parcel1;\n flag = true;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"android.bluetooth.IBluetoothHeadset\");\n if(bluetoothdevice == null)\n break MISSING_BLOCK_LABEL_76;\n parcel.writeInt(1);\n bluetoothdevice.writeToParcel(parcel, 0);\n_L1:\n int i;\n mRemote.transact(17, parcel, parcel1, 0);\n parcel1.readException();\n i = parcel1.readInt();\n Exception exception;\n if(i == 0)\n flag = false;\n parcel1.recycle();\n parcel.recycle();\n return flag;\n parcel.writeInt(0);\n goto _L1\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public int getAudioState(BluetoothDevice bluetoothdevice) throws RemoteException {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"android.bluetooth.IBluetoothHeadset\");\n if(bluetoothdevice == null)\n break MISSING_BLOCK_LABEL_65;\n parcel.writeInt(1);\n bluetoothdevice.writeToParcel(parcel, 0);\n_L1:\n int i;\n mRemote.transact(19, parcel, parcel1, 0);\n parcel1.readException();\n i = parcel1.readInt();\n parcel1.recycle();\n parcel.recycle();\n return i;\n parcel.writeInt(0);\n goto _L1\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public int getBatteryUsageHint(BluetoothDevice bluetoothdevice) throws RemoteException {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"android.bluetooth.IBluetoothHeadset\");\n if(bluetoothdevice == null)\n break MISSING_BLOCK_LABEL_65;\n parcel.writeInt(1);\n bluetoothdevice.writeToParcel(parcel, 0);\n_L1:\n int i;\n mRemote.transact(11, parcel, parcel1, 0);\n parcel1.readException();\n i = parcel1.readInt();\n parcel1.recycle();\n parcel.recycle();\n return i;\n parcel.writeInt(0);\n goto _L1\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public List getConnectedDevices() throws RemoteException {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n java.util.ArrayList arraylist;\n parcel.writeInterfaceToken(\"android.bluetooth.IBluetoothHeadset\");\n mRemote.transact(3, parcel, parcel1, 0);\n parcel1.readException();\n arraylist = parcel1.createTypedArrayList(BluetoothDevice.CREATOR);\n parcel1.recycle();\n parcel.recycle();\n return arraylist;\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public int getConnectionState(BluetoothDevice bluetoothdevice) throws RemoteException {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"android.bluetooth.IBluetoothHeadset\");\n if(bluetoothdevice == null)\n break MISSING_BLOCK_LABEL_64;\n parcel.writeInt(1);\n bluetoothdevice.writeToParcel(parcel, 0);\n_L1:\n int i;\n mRemote.transact(5, parcel, parcel1, 0);\n parcel1.readException();\n i = parcel1.readInt();\n parcel1.recycle();\n parcel.recycle();\n return i;\n parcel.writeInt(0);\n goto _L1\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public List getDevicesMatchingConnectionStates(int ai[]) throws RemoteException {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n java.util.ArrayList arraylist;\n parcel.writeInterfaceToken(\"android.bluetooth.IBluetoothHeadset\");\n parcel.writeIntArray(ai);\n mRemote.transact(4, parcel, parcel1, 0);\n parcel1.readException();\n arraylist = parcel1.createTypedArrayList(BluetoothDevice.CREATOR);\n parcel1.recycle();\n parcel.recycle();\n return arraylist;\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public String getInterfaceDescriptor() {\n return \"android.bluetooth.IBluetoothHeadset\";\n }\n\n public int getPriority(BluetoothDevice bluetoothdevice) throws RemoteException {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"android.bluetooth.IBluetoothHeadset\");\n if(bluetoothdevice == null)\n break MISSING_BLOCK_LABEL_65;\n parcel.writeInt(1);\n bluetoothdevice.writeToParcel(parcel, 0);\n_L1:\n int i;\n mRemote.transact(7, parcel, parcel1, 0);\n parcel1.readException();\n i = parcel1.readInt();\n parcel1.recycle();\n parcel.recycle();\n return i;\n parcel.writeInt(0);\n goto _L1\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public boolean isAudioConnected(BluetoothDevice bluetoothdevice) throws RemoteException {\n boolean flag;\n Parcel parcel;\n Parcel parcel1;\n flag = true;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"android.bluetooth.IBluetoothHeadset\");\n if(bluetoothdevice == null)\n break MISSING_BLOCK_LABEL_76;\n parcel.writeInt(1);\n bluetoothdevice.writeToParcel(parcel, 0);\n_L1:\n int i;\n mRemote.transact(10, parcel, parcel1, 0);\n parcel1.readException();\n i = parcel1.readInt();\n Exception exception;\n if(i == 0)\n flag = false;\n parcel1.recycle();\n parcel.recycle();\n return flag;\n parcel.writeInt(0);\n goto _L1\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public boolean rejectIncomingConnect(BluetoothDevice bluetoothdevice) throws RemoteException {\n boolean flag;\n Parcel parcel;\n Parcel parcel1;\n flag = true;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"android.bluetooth.IBluetoothHeadset\");\n if(bluetoothdevice == null)\n break MISSING_BLOCK_LABEL_76;\n parcel.writeInt(1);\n bluetoothdevice.writeToParcel(parcel, 0);\n_L1:\n int i;\n mRemote.transact(14, parcel, parcel1, 0);\n parcel1.readException();\n i = parcel1.readInt();\n Exception exception;\n if(i == 0)\n flag = false;\n parcel1.recycle();\n parcel.recycle();\n return flag;\n parcel.writeInt(0);\n goto _L1\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public boolean setAudioState(BluetoothDevice bluetoothdevice, int i) throws RemoteException {\n boolean flag;\n Parcel parcel;\n Parcel parcel1;\n flag = true;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"android.bluetooth.IBluetoothHeadset\");\n if(bluetoothdevice == null)\n break MISSING_BLOCK_LABEL_88;\n parcel.writeInt(1);\n bluetoothdevice.writeToParcel(parcel, 0);\n_L1:\n int j;\n parcel.writeInt(i);\n mRemote.transact(18, parcel, parcel1, 0);\n parcel1.readException();\n j = parcel1.readInt();\n Exception exception;\n if(j == 0)\n flag = false;\n parcel1.recycle();\n parcel.recycle();\n return flag;\n parcel.writeInt(0);\n goto _L1\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public boolean setPriority(BluetoothDevice bluetoothdevice, int i) throws RemoteException {\n boolean flag;\n Parcel parcel;\n Parcel parcel1;\n flag = true;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"android.bluetooth.IBluetoothHeadset\");\n if(bluetoothdevice == null)\n break MISSING_BLOCK_LABEL_88;\n parcel.writeInt(1);\n bluetoothdevice.writeToParcel(parcel, 0);\n_L1:\n int j;\n parcel.writeInt(i);\n mRemote.transact(6, parcel, parcel1, 0);\n parcel1.readException();\n j = parcel1.readInt();\n Exception exception;\n if(j == 0)\n flag = false;\n parcel1.recycle();\n parcel.recycle();\n return flag;\n parcel.writeInt(0);\n goto _L1\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public boolean startScoUsingVirtualVoiceCall(BluetoothDevice bluetoothdevice) throws RemoteException {\n boolean flag;\n Parcel parcel;\n Parcel parcel1;\n flag = true;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"android.bluetooth.IBluetoothHeadset\");\n if(bluetoothdevice == null)\n break MISSING_BLOCK_LABEL_76;\n parcel.writeInt(1);\n bluetoothdevice.writeToParcel(parcel, 0);\n_L1:\n int i;\n mRemote.transact(20, parcel, parcel1, 0);\n parcel1.readException();\n i = parcel1.readInt();\n Exception exception;\n if(i == 0)\n flag = false;\n parcel1.recycle();\n parcel.recycle();\n return flag;\n parcel.writeInt(0);\n goto _L1\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public boolean startVoiceRecognition(BluetoothDevice bluetoothdevice) throws RemoteException {\n boolean flag;\n Parcel parcel;\n Parcel parcel1;\n flag = true;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"android.bluetooth.IBluetoothHeadset\");\n if(bluetoothdevice == null)\n break MISSING_BLOCK_LABEL_76;\n parcel.writeInt(1);\n bluetoothdevice.writeToParcel(parcel, 0);\n_L1:\n int i;\n mRemote.transact(8, parcel, parcel1, 0);\n parcel1.readException();\n i = parcel1.readInt();\n Exception exception;\n if(i == 0)\n flag = false;\n parcel1.recycle();\n parcel.recycle();\n return flag;\n parcel.writeInt(0);\n goto _L1\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public boolean stopScoUsingVirtualVoiceCall(BluetoothDevice bluetoothdevice) throws RemoteException {\n boolean flag;\n Parcel parcel;\n Parcel parcel1;\n flag = true;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"android.bluetooth.IBluetoothHeadset\");\n if(bluetoothdevice == null)\n break MISSING_BLOCK_LABEL_76;\n parcel.writeInt(1);\n bluetoothdevice.writeToParcel(parcel, 0);\n_L1:\n int i;\n mRemote.transact(21, parcel, parcel1, 0);\n parcel1.readException();\n i = parcel1.readInt();\n Exception exception;\n if(i == 0)\n flag = false;\n parcel1.recycle();\n parcel.recycle();\n return flag;\n parcel.writeInt(0);\n goto _L1\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public boolean stopVoiceRecognition(BluetoothDevice bluetoothdevice) throws RemoteException {\n boolean flag;\n Parcel parcel;\n Parcel parcel1;\n flag = true;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"android.bluetooth.IBluetoothHeadset\");\n if(bluetoothdevice == null)\n break MISSING_BLOCK_LABEL_76;\n parcel.writeInt(1);\n bluetoothdevice.writeToParcel(parcel, 0);\n_L1:\n int i;\n mRemote.transact(9, parcel, parcel1, 0);\n parcel1.readException();\n i = parcel1.readInt();\n Exception exception;\n if(i == 0)\n flag = false;\n parcel1.recycle();\n parcel.recycle();\n return flag;\n parcel.writeInt(0);\n goto _L1\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n private IBinder mRemote;\n\n Proxy(IBinder ibinder) {\n mRemote = ibinder;\n }\n }\n\n\n public static IBluetoothHeadset asInterface(IBinder ibinder) {\n Object obj;\n if(ibinder == null) {\n obj = null;\n } else {\n IInterface iinterface = ibinder.queryLocalInterface(\"android.bluetooth.IBluetoothHeadset\");\n if(iinterface != null && (iinterface instanceof IBluetoothHeadset))\n obj = (IBluetoothHeadset)iinterface;\n else\n obj = new Proxy(ibinder);\n }\n return ((IBluetoothHeadset) (obj));\n }\n\n public IBinder asBinder() {\n return this;\n }\n\n public boolean onTransact(int i, Parcel parcel, Parcel parcel1, int j) throws RemoteException {\n int k;\n boolean flag;\n k = 0;\n flag = true;\n i;\n JVM INSTR lookupswitch 22: default 192\n // 1: 215\n // 2: 278\n // 3: 341\n // 4: 366\n // 5: 395\n // 6: 449\n // 7: 516\n // 8: 570\n // 9: 633\n // 10: 696\n // 11: 759\n // 12: 813\n // 13: 876\n // 14: 939\n // 15: 1002\n // 16: 1036\n // 17: 1099\n // 18: 1162\n // 19: 1229\n // 20: 1283\n // 21: 1346\n // 1598968902: 206;\n goto _L1 _L2 _L3 _L4 _L5 _L6 _L7 _L8 _L9 _L10 _L11 _L12 _L13 _L14 _L15 _L16 _L17 _L18 _L19 _L20 _L21 _L22 _L23\n_L1:\n flag = super.onTransact(i, parcel, parcel1, j);\n_L25:\n return flag;\n_L23:\n parcel1.writeString(\"android.bluetooth.IBluetoothHeadset\");\n continue; /* Loop/switch isn't completed */\n_L2:\n parcel.enforceInterface(\"android.bluetooth.IBluetoothHeadset\");\n BluetoothDevice bluetoothdevice17;\n boolean flag15;\n if(parcel.readInt() != 0)\n bluetoothdevice17 = (BluetoothDevice)BluetoothDevice.CREATOR.createFromParcel(parcel);\n else\n bluetoothdevice17 = null;\n flag15 = connect(bluetoothdevice17);\n parcel1.writeNoException();\n if(flag15)\n k = ((flag) ? 1 : 0);\n parcel1.writeInt(k);\n continue; /* Loop/switch isn't completed */\n_L3:\n parcel.enforceInterface(\"android.bluetooth.IBluetoothHeadset\");\n BluetoothDevice bluetoothdevice16;\n boolean flag14;\n if(parcel.readInt() != 0)\n bluetoothdevice16 = (BluetoothDevice)BluetoothDevice.CREATOR.createFromParcel(parcel);\n else\n bluetoothdevice16 = null;\n flag14 = disconnect(bluetoothdevice16);\n parcel1.writeNoException();\n if(flag14)\n k = ((flag) ? 1 : 0);\n parcel1.writeInt(k);\n continue; /* Loop/switch isn't completed */\n_L4:\n parcel.enforceInterface(\"android.bluetooth.IBluetoothHeadset\");\n List list1 = getConnectedDevices();\n parcel1.writeNoException();\n parcel1.writeTypedList(list1);\n continue; /* Loop/switch isn't completed */\n_L5:\n parcel.enforceInterface(\"android.bluetooth.IBluetoothHeadset\");\n List list = getDevicesMatchingConnectionStates(parcel.createIntArray());\n parcel1.writeNoException();\n parcel1.writeTypedList(list);\n continue; /* Loop/switch isn't completed */\n_L6:\n parcel.enforceInterface(\"android.bluetooth.IBluetoothHeadset\");\n BluetoothDevice bluetoothdevice15;\n int k1;\n if(parcel.readInt() != 0)\n bluetoothdevice15 = (BluetoothDevice)BluetoothDevice.CREATOR.createFromParcel(parcel);\n else\n bluetoothdevice15 = null;\n k1 = getConnectionState(bluetoothdevice15);\n parcel1.writeNoException();\n parcel1.writeInt(k1);\n continue; /* Loop/switch isn't completed */\n_L7:\n parcel.enforceInterface(\"android.bluetooth.IBluetoothHeadset\");\n BluetoothDevice bluetoothdevice14;\n boolean flag13;\n if(parcel.readInt() != 0)\n bluetoothdevice14 = (BluetoothDevice)BluetoothDevice.CREATOR.createFromParcel(parcel);\n else\n bluetoothdevice14 = null;\n flag13 = setPriority(bluetoothdevice14, parcel.readInt());\n parcel1.writeNoException();\n if(flag13)\n k = ((flag) ? 1 : 0);\n parcel1.writeInt(k);\n continue; /* Loop/switch isn't completed */\n_L8:\n parcel.enforceInterface(\"android.bluetooth.IBluetoothHeadset\");\n BluetoothDevice bluetoothdevice13;\n int j1;\n if(parcel.readInt() != 0)\n bluetoothdevice13 = (BluetoothDevice)BluetoothDevice.CREATOR.createFromParcel(parcel);\n else\n bluetoothdevice13 = null;\n j1 = getPriority(bluetoothdevice13);\n parcel1.writeNoException();\n parcel1.writeInt(j1);\n continue; /* Loop/switch isn't completed */\n_L9:\n parcel.enforceInterface(\"android.bluetooth.IBluetoothHeadset\");\n BluetoothDevice bluetoothdevice12;\n boolean flag12;\n if(parcel.readInt() != 0)\n bluetoothdevice12 = (BluetoothDevice)BluetoothDevice.CREATOR.createFromParcel(parcel);\n else\n bluetoothdevice12 = null;\n flag12 = startVoiceRecognition(bluetoothdevice12);\n parcel1.writeNoException();\n if(flag12)\n k = ((flag) ? 1 : 0);\n parcel1.writeInt(k);\n continue; /* Loop/switch isn't completed */\n_L10:\n parcel.enforceInterface(\"android.bluetooth.IBluetoothHeadset\");\n BluetoothDevice bluetoothdevice11;\n boolean flag11;\n if(parcel.readInt() != 0)\n bluetoothdevice11 = (BluetoothDevice)BluetoothDevice.CREATOR.createFromParcel(parcel);\n else\n bluetoothdevice11 = null;\n flag11 = stopVoiceRecognition(bluetoothdevice11);\n parcel1.writeNoException();\n if(flag11)\n k = ((flag) ? 1 : 0);\n parcel1.writeInt(k);\n continue; /* Loop/switch isn't completed */\n_L11:\n parcel.enforceInterface(\"android.bluetooth.IBluetoothHeadset\");\n BluetoothDevice bluetoothdevice10;\n boolean flag10;\n if(parcel.readInt() != 0)\n bluetoothdevice10 = (BluetoothDevice)BluetoothDevice.CREATOR.createFromParcel(parcel);\n else\n bluetoothdevice10 = null;\n flag10 = isAudioConnected(bluetoothdevice10);\n parcel1.writeNoException();\n if(flag10)\n k = ((flag) ? 1 : 0);\n parcel1.writeInt(k);\n continue; /* Loop/switch isn't completed */\n_L12:\n parcel.enforceInterface(\"android.bluetooth.IBluetoothHeadset\");\n BluetoothDevice bluetoothdevice9;\n int i1;\n if(parcel.readInt() != 0)\n bluetoothdevice9 = (BluetoothDevice)BluetoothDevice.CREATOR.createFromParcel(parcel);\n else\n bluetoothdevice9 = null;\n i1 = getBatteryUsageHint(bluetoothdevice9);\n parcel1.writeNoException();\n parcel1.writeInt(i1);\n continue; /* Loop/switch isn't completed */\n_L13:\n parcel.enforceInterface(\"android.bluetooth.IBluetoothHeadset\");\n BluetoothDevice bluetoothdevice8;\n boolean flag9;\n if(parcel.readInt() != 0)\n bluetoothdevice8 = (BluetoothDevice)BluetoothDevice.CREATOR.createFromParcel(parcel);\n else\n bluetoothdevice8 = null;\n flag9 = createIncomingConnect(bluetoothdevice8);\n parcel1.writeNoException();\n if(flag9)\n k = ((flag) ? 1 : 0);\n parcel1.writeInt(k);\n continue; /* Loop/switch isn't completed */\n_L14:\n parcel.enforceInterface(\"android.bluetooth.IBluetoothHeadset\");\n BluetoothDevice bluetoothdevice7;\n boolean flag8;\n if(parcel.readInt() != 0)\n bluetoothdevice7 = (BluetoothDevice)BluetoothDevice.CREATOR.createFromParcel(parcel);\n else\n bluetoothdevice7 = null;\n flag8 = acceptIncomingConnect(bluetoothdevice7);\n parcel1.writeNoException();\n if(flag8)\n k = ((flag) ? 1 : 0);\n parcel1.writeInt(k);\n continue; /* Loop/switch isn't completed */\n_L15:\n parcel.enforceInterface(\"android.bluetooth.IBluetoothHeadset\");\n BluetoothDevice bluetoothdevice6;\n boolean flag7;\n if(parcel.readInt() != 0)\n bluetoothdevice6 = (BluetoothDevice)BluetoothDevice.CREATOR.createFromParcel(parcel);\n else\n bluetoothdevice6 = null;\n flag7 = rejectIncomingConnect(bluetoothdevice6);\n parcel1.writeNoException();\n if(flag7)\n k = ((flag) ? 1 : 0);\n parcel1.writeInt(k);\n continue; /* Loop/switch isn't completed */\n_L16:\n parcel.enforceInterface(\"android.bluetooth.IBluetoothHeadset\");\n boolean flag6 = cancelConnectThread();\n parcel1.writeNoException();\n if(flag6)\n k = ((flag) ? 1 : 0);\n parcel1.writeInt(k);\n continue; /* Loop/switch isn't completed */\n_L17:\n parcel.enforceInterface(\"android.bluetooth.IBluetoothHeadset\");\n BluetoothDevice bluetoothdevice5;\n boolean flag5;\n if(parcel.readInt() != 0)\n bluetoothdevice5 = (BluetoothDevice)BluetoothDevice.CREATOR.createFromParcel(parcel);\n else\n bluetoothdevice5 = null;\n flag5 = connectHeadsetInternal(bluetoothdevice5);\n parcel1.writeNoException();\n if(flag5)\n k = ((flag) ? 1 : 0);\n parcel1.writeInt(k);\n continue; /* Loop/switch isn't completed */\n_L18:\n parcel.enforceInterface(\"android.bluetooth.IBluetoothHeadset\");\n BluetoothDevice bluetoothdevice4;\n boolean flag4;\n if(parcel.readInt() != 0)\n bluetoothdevice4 = (BluetoothDevice)BluetoothDevice.CREATOR.createFromParcel(parcel);\n else\n bluetoothdevice4 = null;\n flag4 = disconnectHeadsetInternal(bluetoothdevice4);\n parcel1.writeNoException();\n if(flag4)\n k = ((flag) ? 1 : 0);\n parcel1.writeInt(k);\n continue; /* Loop/switch isn't completed */\n_L19:\n parcel.enforceInterface(\"android.bluetooth.IBluetoothHeadset\");\n BluetoothDevice bluetoothdevice3;\n boolean flag3;\n if(parcel.readInt() != 0)\n bluetoothdevice3 = (BluetoothDevice)BluetoothDevice.CREATOR.createFromParcel(parcel);\n else\n bluetoothdevice3 = null;\n flag3 = setAudioState(bluetoothdevice3, parcel.readInt());\n parcel1.writeNoException();\n if(flag3)\n k = ((flag) ? 1 : 0);\n parcel1.writeInt(k);\n continue; /* Loop/switch isn't completed */\n_L20:\n parcel.enforceInterface(\"android.bluetooth.IBluetoothHeadset\");\n BluetoothDevice bluetoothdevice2;\n int l;\n if(parcel.readInt() != 0)\n bluetoothdevice2 = (BluetoothDevice)BluetoothDevice.CREATOR.createFromParcel(parcel);\n else\n bluetoothdevice2 = null;\n l = getAudioState(bluetoothdevice2);\n parcel1.writeNoException();\n parcel1.writeInt(l);\n continue; /* Loop/switch isn't completed */\n_L21:\n parcel.enforceInterface(\"android.bluetooth.IBluetoothHeadset\");\n BluetoothDevice bluetoothdevice1;\n boolean flag2;\n if(parcel.readInt() != 0)\n bluetoothdevice1 = (BluetoothDevice)BluetoothDevice.CREATOR.createFromParcel(parcel);\n else\n bluetoothdevice1 = null;\n flag2 = startScoUsingVirtualVoiceCall(bluetoothdevice1);\n parcel1.writeNoException();\n if(flag2)\n k = ((flag) ? 1 : 0);\n parcel1.writeInt(k);\n continue; /* Loop/switch isn't completed */\n_L22:\n parcel.enforceInterface(\"android.bluetooth.IBluetoothHeadset\");\n BluetoothDevice bluetoothdevice;\n boolean flag1;\n if(parcel.readInt() != 0)\n bluetoothdevice = (BluetoothDevice)BluetoothDevice.CREATOR.createFromParcel(parcel);\n else\n bluetoothdevice = null;\n flag1 = stopScoUsingVirtualVoiceCall(bluetoothdevice);\n parcel1.writeNoException();\n if(flag1)\n k = ((flag) ? 1 : 0);\n parcel1.writeInt(k);\n if(true) goto _L25; else goto _L24\n_L24:\n }\n\n private static final String DESCRIPTOR = \"android.bluetooth.IBluetoothHeadset\";\n static final int TRANSACTION_acceptIncomingConnect = 13;\n static final int TRANSACTION_cancelConnectThread = 15;\n static final int TRANSACTION_connect = 1;\n static final int TRANSACTION_connectHeadsetInternal = 16;\n static final int TRANSACTION_createIncomingConnect = 12;\n static final int TRANSACTION_disconnect = 2;\n static final int TRANSACTION_disconnectHeadsetInternal = 17;\n static final int TRANSACTION_getAudioState = 19;\n static final int TRANSACTION_getBatteryUsageHint = 11;\n static final int TRANSACTION_getConnectedDevices = 3;\n static final int TRANSACTION_getConnectionState = 5;\n static final int TRANSACTION_getDevicesMatchingConnectionStates = 4;\n static final int TRANSACTION_getPriority = 7;\n static final int TRANSACTION_isAudioConnected = 10;\n static final int TRANSACTION_rejectIncomingConnect = 14;\n static final int TRANSACTION_setAudioState = 18;\n static final int TRANSACTION_setPriority = 6;\n static final int TRANSACTION_startScoUsingVirtualVoiceCall = 20;\n static final int TRANSACTION_startVoiceRecognition = 8;\n static final int TRANSACTION_stopScoUsingVirtualVoiceCall = 21;\n static final int TRANSACTION_stopVoiceRecognition = 9;\n\n public Stub() {\n attachInterface(this, \"android.bluetooth.IBluetoothHeadset\");\n }\n }\n\n\n public abstract boolean acceptIncomingConnect(BluetoothDevice bluetoothdevice) throws RemoteException;\n\n public abstract boolean cancelConnectThread() throws RemoteException;\n\n public abstract boolean connect(BluetoothDevice bluetoothdevice) throws RemoteException;\n\n public abstract boolean connectHeadsetInternal(BluetoothDevice bluetoothdevice) throws RemoteException;\n\n public abstract boolean createIncomingConnect(BluetoothDevice bluetoothdevice) throws RemoteException;\n\n public abstract boolean disconnect(BluetoothDevice bluetoothdevice) throws RemoteException;\n\n public abstract boolean disconnectHeadsetInternal(BluetoothDevice bluetoothdevice) throws RemoteException;\n\n public abstract int getAudioState(BluetoothDevice bluetoothdevice) throws RemoteException;\n\n public abstract int getBatteryUsageHint(BluetoothDevice bluetoothdevice) throws RemoteException;\n\n public abstract List getConnectedDevices() throws RemoteException;\n\n public abstract int getConnectionState(BluetoothDevice bluetoothdevice) throws RemoteException;\n\n public abstract List getDevicesMatchingConnectionStates(int ai[]) throws RemoteException;\n\n public abstract int getPriority(BluetoothDevice bluetoothdevice) throws RemoteException;\n\n public abstract boolean isAudioConnected(BluetoothDevice bluetoothdevice) throws RemoteException;\n\n public abstract boolean rejectIncomingConnect(BluetoothDevice bluetoothdevice) throws RemoteException;\n\n public abstract boolean setAudioState(BluetoothDevice bluetoothdevice, int i) throws RemoteException;\n\n public abstract boolean setPriority(BluetoothDevice bluetoothdevice, int i) throws RemoteException;\n\n public abstract boolean startScoUsingVirtualVoiceCall(BluetoothDevice bluetoothdevice) throws RemoteException;\n\n public abstract boolean startVoiceRecognition(BluetoothDevice bluetoothdevice) throws RemoteException;\n\n public abstract boolean stopScoUsingVirtualVoiceCall(BluetoothDevice bluetoothdevice) throws RemoteException;\n\n public abstract boolean stopVoiceRecognition(BluetoothDevice bluetoothdevice) throws RemoteException;\n}", "protected static <T> ServiceOutBuilder<T> doPipeServiceOut() {\n\t\treturn new ServiceOutBuilder<>();\n\t}", "public interface SystemService {\n /**\n * Gets unique service identifier.\n *\n * @return unique String service identifier\n */\n public String getServiceID();\n\n /**\n * Starts service. Called when service is about to be\n * requested for the first time. Thus, services can be\n * initialized lazily, only when they are really needed.\n */\n public void start();\n\n /**\n * Shutdowns service.\n */\n public void stop();\n\n /**\n * Accepts connection. When client requests a service, first,\n * a connection between client and service is created, and then\n * it is passed to service via this method to accept it and\n * start doing its thing. Note: you shouldn't block in this\n * method.\n *\n * @param connection connection between client and service\n */\n public void acceptConnection(SystemServiceConnection connection);\n}", "public interface AsyncService {\n\n /**\n *\n *\n * <pre>\n * Lists nodes.\n * </pre>\n */\n default void listNodes(\n com.google.cloud.tpu.v2alpha1.ListNodesRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.tpu.v2alpha1.ListNodesResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListNodesMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Gets the details of a node.\n * </pre>\n */\n default void getNode(\n com.google.cloud.tpu.v2alpha1.GetNodeRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.tpu.v2alpha1.Node> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetNodeMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Creates a node.\n * </pre>\n */\n default void createNode(\n com.google.cloud.tpu.v2alpha1.CreateNodeRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateNodeMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Deletes a node.\n * </pre>\n */\n default void deleteNode(\n com.google.cloud.tpu.v2alpha1.DeleteNodeRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteNodeMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Stops a node. This operation is only available with single TPU nodes.\n * </pre>\n */\n default void stopNode(\n com.google.cloud.tpu.v2alpha1.StopNodeRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStopNodeMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Starts a node.\n * </pre>\n */\n default void startNode(\n com.google.cloud.tpu.v2alpha1.StartNodeRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStartNodeMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Updates the configurations of a node.\n * </pre>\n */\n default void updateNode(\n com.google.cloud.tpu.v2alpha1.UpdateNodeRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateNodeMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Lists queued resources.\n * </pre>\n */\n default void listQueuedResources(\n com.google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.tpu.v2alpha1.ListQueuedResourcesResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getListQueuedResourcesMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Gets details of a queued resource.\n * </pre>\n */\n default void getQueuedResource(\n com.google.cloud.tpu.v2alpha1.GetQueuedResourceRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.tpu.v2alpha1.QueuedResource>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGetQueuedResourceMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Creates a QueuedResource TPU instance.\n * </pre>\n */\n default void createQueuedResource(\n com.google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getCreateQueuedResourceMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Deletes a QueuedResource TPU instance.\n * </pre>\n */\n default void deleteQueuedResource(\n com.google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getDeleteQueuedResourceMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Resets a QueuedResource TPU instance\n * </pre>\n */\n default void resetQueuedResource(\n com.google.cloud.tpu.v2alpha1.ResetQueuedResourceRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getResetQueuedResourceMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Generates the Cloud TPU service identity for the project.\n * </pre>\n */\n default void generateServiceIdentity(\n com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGenerateServiceIdentityMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Lists accelerator types supported by this API.\n * </pre>\n */\n default void listAcceleratorTypes(\n com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getListAcceleratorTypesMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Gets AcceleratorType.\n * </pre>\n */\n default void getAcceleratorType(\n com.google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.tpu.v2alpha1.AcceleratorType>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGetAcceleratorTypeMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Lists runtime versions supported by this API.\n * </pre>\n */\n default void listRuntimeVersions(\n com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getListRuntimeVersionsMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Gets a runtime version.\n * </pre>\n */\n default void getRuntimeVersion(\n com.google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.tpu.v2alpha1.RuntimeVersion>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGetRuntimeVersionMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Retrieves the guest attributes for the node.\n * </pre>\n */\n default void getGuestAttributes(\n com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.tpu.v2alpha1.GetGuestAttributesResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGetGuestAttributesMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Simulates a maintenance event.\n * </pre>\n */\n default void simulateMaintenanceEvent(\n com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getSimulateMaintenanceEventMethod(), responseObserver);\n }\n }", "InOut createInOut();", "void stubNextResponse(HttpExecuteResponse nextResponse, Duration delay);", "public SingleOperationMarshallingTest() {\n }", "public static GreetingServiceBlockingStub newBlockingStub(\n io.grpc.Channel channel) {\n return new GreetingServiceBlockingStub(channel);\n }", "public static LightningStub newStub(io.grpc.Channel channel) {\n return new LightningStub(channel);\n }", "public abstract IOpipeService service();", "public static ShippingServiceBlockingStub newBlockingStub(\n io.grpc.Channel channel) {\n io.grpc.stub.AbstractStub.StubFactory<ShippingServiceBlockingStub> factory =\n new io.grpc.stub.AbstractStub.StubFactory<ShippingServiceBlockingStub>() {\n @java.lang.Override\n public ShippingServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {\n return new ShippingServiceBlockingStub(channel, callOptions);\n }\n };\n return ShippingServiceBlockingStub.newStub(factory, channel);\n }", "public interface DataStreamClient {\n\n Logger LOG = LoggerFactory.getLogger(DataStreamClient.class);\n\n /** Return Client id. */\n ClientId getId();\n\n /** Return Streamer Api instance. */\n DataStreamApi getDataStreamApi();\n\n /**\n * send to server via streaming.\n * Return a completable future.\n */\n\n /** To build {@link DataStreamClient} objects */\n class Builder {\n private ClientId clientId;\n private DataStreamClientRpc dataStreamClientRpc;\n private RaftProperties properties;\n private Parameters parameters;\n\n private Builder() {}\n\n public DataStreamClientImpl build(){\n if (clientId == null) {\n clientId = ClientId.randomId();\n }\n if (properties != null) {\n if (dataStreamClientRpc == null) {\n final SupportedDataStreamType type = RaftConfigKeys.DataStream.type(properties, LOG::info);\n dataStreamClientRpc = DataStreamClientFactory.cast(type.newFactory(parameters))\n .newDataStreamClientRpc(clientId, properties);\n }\n }\n return new DataStreamClientImpl(clientId, properties, dataStreamClientRpc);\n }\n\n public Builder setClientId(ClientId clientId) {\n this.clientId = clientId;\n return this;\n }\n\n public Builder setParameters(Parameters parameters) {\n this.parameters = parameters;\n return this;\n }\n\n public Builder setDataStreamClientRpc(DataStreamClientRpc dataStreamClientRpc){\n this.dataStreamClientRpc = dataStreamClientRpc;\n return this;\n }\n\n public Builder setProperties(RaftProperties properties) {\n this.properties = properties;\n return this;\n }\n }\n\n}", "public static SinkServiceStub newStub(io.grpc.Channel channel) {\n io.grpc.stub.AbstractStub.StubFactory<SinkServiceStub> factory =\n new io.grpc.stub.AbstractStub.StubFactory<SinkServiceStub>() {\n @java.lang.Override\n public SinkServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {\n return new SinkServiceStub(channel, callOptions);\n }\n };\n return SinkServiceStub.newStub(factory, channel);\n }", "public static LightningFutureStub newFutureStub(\n io.grpc.Channel channel) {\n return new LightningFutureStub(channel);\n }", "public RpcClient(ManagedChannelBuilder<?> channelBuilder) {\n channel = channelBuilder.build();\n blockingStub = PredictionServiceGrpc.newBlockingStub(channel);\n asyncStub = PredictionServiceGrpc.newStub(channel);\n modelServiceBlockingStub = ModelServiceGrpc.newBlockingStub(channel);\n modelServiceStub = ModelServiceGrpc.newStub(channel);\n channelzBlockingStub = ChannelzGrpc.newBlockingStub(channel);\n }", "@RemoteServiceClient(SimpleHttpService.class)\npublic interface ISimpleHttpServiceClient extends IServiceClient {\n\n @RemoteMessageClient(SimpleHttpService.REQUEST_START)\n void bootup(int port);\n\n @RemoteMessageClient(SimpleHttpService.REQUEST_STOP)\n void shutdown();\n\n @RemoteMessageClient(SimpleHttpService.REQUEST_INFO)\n void info(int port);\n}", "public interface AsynService {\n void asynMethod();\n}", "public interface UdpReceiverService {\n\n public void start() throws IOException, TimeoutException;\n\n public void setCompress(boolean compress);\n}", "public void start() {\n/* 255 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Test\n public void constructStartAndStop() {\n kit.setBlockingStartup(false);\n kit.startAsync();\n kit.awaitRunning();\n kit.stopAsync();\n kit.awaitTerminated();\n }", "public interface BackPressuredWriteStream<T> extends WriteStream<T> {\n\n static <T> BackPressuredWriteStream create(Handler<T> writeHandler) {\n return new BackPressuredWriteStreamImpl<T>(writeHandler);\n }\n\n static <T> BackPressuredWriteStream createThrottled(Handler<T> writeHandler, long quotaPeriod, int quota, String persistentQuotaTimeFile, Vertx vertx) {\n return new ThrottleStreamImpl(writeHandler, quotaPeriod, quota, persistentQuotaTimeFile, vertx);\n }\n\n void drop();\n\n long getQueueSize();\n}", "public static EmployeeServiceBlockingStub newBlockingStub(\n io.grpc.Channel channel) {\n return new EmployeeServiceBlockingStub(channel);\n }", "void stubNextResponse(HttpExecuteResponse nextResponse);", "public static LightningBlockingStub newBlockingStub(\n io.grpc.Channel channel) {\n return new LightningBlockingStub(channel);\n }", "public interface PseudoOperation {\n\t/**\n\t * Performs pre-processing for a pseudo-operation, such as setting up outbound transport headers.\n\t * @param serviceDesc the service description for the associated service\n\t * @param reqMetaCtx the request meta-information such as transport headers and query parameters\n\t * @param respMetaCtx a holder for response information such as the transport headers and output stream\n\t * @throws ServiceException if an error is detected, such as inconsistent query information\n\t */\n\tpublic void preinvoke(ServerServiceDesc serviceDesc, RequestMetaContext reqMetaCtx, ResponseMetaContext respMetaCtx) throws ServiceException;\n\n\t/**\n\t * Processes the pseudo-operation and pushes the result into the output stream. \n\t * @param serviceDesc the service description for the associated service\n\t * @param reqMetaCtx the request meta-information such as transport headers and query parameters\n\t * @param respMetaCtx a holder for response information such as the transport headers\n\t * @throws ServiceException if an error is encountered during processing\n\t */\n\tpublic void invoke(ServerServiceDesc serviceDesc, RequestMetaContext reqMetaCtx, ResponseMetaContext respMetaCtx) throws ServiceException;\n}", "public Object call() throws Exception {\n\t\t\t\t\t\tProducerSimpleNettyResponseFuture future;\n\t\t\t\t\t\tProducerSimpleNettyResponse responseFuture;\n\t\t\t\t\t\tfuture = clientProxy.request(message);\n\t\t\t\t\t\tresponseFuture = future\n\t\t\t\t\t\t\t\t.get(3000, TimeUnit.MILLISECONDS);\n\t\t\t\t\t\treturn responseFuture.getResponse();\n\t\t\t\t\t}", "public interface Http2Client extends Closeable {\n\n /**\n * connect to remote address asynchronously\n * @return CompletableFuture contains {@link Void}\n */\n CompletableFuture<Void> connect();\n\n /**\n * send http request to remote address asynchronously\n * @param request http2 request\n * @return CompletableFuture contains response\n */\n CompletableFuture<HttpResponse> sendRequest(HttpRequest request);\n\n /**\n * send http request to remote address asynchronously,\n * and not wait far response\n * @param request http2 request\n * @return CompletableFuture contains nothing\n */\n CompletableFuture<Void> sendRequestOneWay(HttpRequest request);\n\n /**\n * send server-push ack to remote address asynchronously\n * @param pushAck server-push ack\n * @param streamId http2 streamId\n * @return CompletableFuture contains nothing\n */\n CompletableFuture<Void> sendPushAck(HttpPushAck pushAck, int streamId);\n}", "public interface LongProcessOperations \n{\n ServoConRemote.LongProcessPackage.Status Completed ();\n\n //message is empty on success\n String Message ();\n double Progress ();\n void Detach ();\n}", "public abstract @Nullable SerializableSupplier<PublisherServiceStub> stubSupplier();", "private static void bidiStreamService(ManagedChannel channel){\n CalculatorServiceGrpc.CalculatorServiceStub asynClient = CalculatorServiceGrpc.newStub(channel);\n CountDownLatch latch = new CountDownLatch(1);\n StreamObserver<FindMaximumRequest> streamObserver = asynClient.findMaximum(new StreamObserver<FindMaximumResponse>() {\n @Override\n public void onNext(FindMaximumResponse value) {\n System.out.println(\"Got new maxium from server: \"+ value.getMaximum());\n }\n\n @Override\n public void onError(Throwable t) {\n latch.countDown();\n }\n\n @Override\n public void onCompleted() {\n System.out.println(\"Server is done sending data\");\n latch.countDown();\n }\n });\n\n Arrays.asList(1,5,3,6,2,20).forEach(\n number -> {\n System.out.println(\"Sending number: \"+ number);\n streamObserver.onNext(FindMaximumRequest.newBuilder()\n .setNumber(number)\n .build());\n }\n );\n\n streamObserver.onCompleted();\n try {\n latch.await(3L, TimeUnit.SECONDS);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "public interface Client {\n\n\t/**\n\t * @throws Http2Exception\n\t */\n\tvoid init() throws Http2Exception;\n\n\t/**\n\t * @return\n\t * @throws Http2Exception\n\t */\n\tboolean start() throws Http2Exception;\n\n\t/**\n\t * @param request\n\t * @return\n\t * @throws Http2Exception\n\t */\n\t Http2Response request(Http2Request request) throws Http2Exception;\n\n\t/**\n\t * @return\n\t * @throws Http2Exception\n\t */\n\tboolean isRuning() throws Http2Exception;\n\n\t/**\n\t * @return\n\t * @throws Http2Exception\n\t */\n\tboolean shutdown() throws Http2Exception;\n\n}", "public static GreeterBlockingStub newBlockingStub(\n io.grpc.Channel channel) {\n return new GreeterBlockingStub(channel);\n }", "public static homeLightsFutureStub newFutureStub(\n io.grpc.Channel channel) {\n return new homeLightsFutureStub(channel);\n }", "public static CommunicationServiceBlockingStub newBlockingStub(\n io.grpc.Channel channel) {\n return new CommunicationServiceBlockingStub(channel);\n }", "@Test\n void runWithBroadcastMessageTest() throws Exception {\n\n Prattle.startUp();\n\n\n\n Field initialized = client1.getClass().getDeclaredField(\"initialized\");\n Field input = client1.getClass().getDeclaredField(\"input\");\n Field output = client1.getClass().getDeclaredField(\"output\");\n\n initialized.setAccessible(true);\n input.setAccessible(true);\n output.setAccessible(true);\n\n initialized.set(client1, false);\n when(scanNetNB.hasNextMessage()).thenReturn(true);\n Message msg = Message.makeBroadcastMessage(\"Mandy\", \"test\");\n when(scanNetNB.nextMessage()).thenReturn(msg);\n\n input.set(client1, scanNetNB);\n\n\n client1.run();\n assertEquals(true, client1.isInitialized());\n client1.run();\n Message msgLogOff = Message.makeBroadcastMessage(\"Mandy\", \"Prattle says everyone log off\");\n when(scanNetNB.nextMessage()).thenReturn(msgLogOff);\n client1.run();\n\n Message msgWithDiffName = Message.makeBroadcastMessage(\"Noodle\", \"Hello from Noodle\");\n client1.setName(\"Mandy\");\n System.out.print(client1.getName());\n System.out.print(msgWithDiffName.getName());\n client1.run();\n\n assertEquals(true, client1.isInitialized());\n when(scanNetNB.hasNextMessage()).thenReturn(true);\n when(scanNetNB.nextMessage()).thenReturn(msgWithDiffName);\n input.set(client1, scanNetNB);\n output.set(client1, printNetNB);\n\n ClientRunnable clientRunnable = spy(client1);\n Mockito.doNothing().when(clientRunnable).terminateClient();\n clientRunnable.run();\n\n\n\n\n\n }", "public static BookServicesBlockingStub newBlockingStub(\n io.grpc.Channel channel) {\n return new BookServicesBlockingStub(channel);\n }", "public static ProductServiceBlockingStub newBlockingStub(\n io.grpc.Channel channel) {\n io.grpc.stub.AbstractStub.StubFactory<ProductServiceBlockingStub> factory =\n new io.grpc.stub.AbstractStub.StubFactory<ProductServiceBlockingStub>() {\n @java.lang.Override\n public ProductServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {\n return new ProductServiceBlockingStub(channel, callOptions);\n }\n };\n return ProductServiceBlockingStub.newStub(factory, channel);\n }", "public static TransferBlockingStub newBlockingStub(\n io.grpc.Channel channel) {\n return new TransferBlockingStub(channel);\n }", "public interface RpcClient {\r\n\r\n\t/**\r\n\t * Initializes this RpcClient\r\n\t */\r\n\tpublic void initialize();\r\n\t\r\n\t/**\r\n\t * Sends the specified object and waits for a response message (or) the specified timeout to occur. Keeps the connection open for further \r\n\t * send requests. Note that clients of this RPCClient must call {@link RPCClient#closeConnections()} when done using this RPCClient.\r\n\t * This method performs to-and-from conversion of the specified object to a raw byte array when publishing it to the queue / consuming off it. \r\n\t * @param message the message to be sent\r\n\t * @param timeout the timeout duration in milliseconds\r\n\t * @return response Object from the RPC message call\r\n\t * @throws MessagingTimeoutException in case the specified timeout occurs\r\n\t * @throws MessagingException in case of errors in message publishing\r\n\t */\r\n\tpublic Object send(Object message, int timeout) throws MessagingTimeoutException, MessagingException;\r\n\r\n\t/**\r\n\t * Sends the specified String and waits for a response message (or) the specified timeout to occur. Keeps the connection open for further \r\n\t * send requests. Note that clients of this RPCClient must call {@link RPCClient#closeConnections()} when done using this RPCClient.\r\n\t * This method performs to-and-from conversion of the specified object to UTF-8 encoded byte array when publishing it to the queue / consuming off it. \r\n\t * @param message the String message to be sent\r\n\t * @param timeout the timeout duration in milliseconds\r\n\t * @return response String from the RPC message call\r\n\t * @throws MessagingTimeoutException in case the specified timeout occurs\r\n\t * @throws MessagingException in case of errors in message publishing\r\n\t */\r\n\tpublic String sendString(String message , int timeout) throws MessagingTimeoutException, MessagingException;\r\n\t\r\n\t/**\r\n\t * Closes connection related objects used by this RpcClient.\r\n\t * @throws MessagingException in case of errors closing connections to the underlying messaging system.\r\n\t */\r\n\tpublic void closeConnections() throws MessagingException;\r\n\t\r\n}", "public interface Spy<T> {\n /**\n * Request processing\n *\n * @param request\n * @return\n */\n T in(T request);\n\n /**\n * Response processing\n *\n * @param response\n * @return\n */\n T out(T response);\n}", "private static void unaryService(ManagedChannel channel){\n CalculatorServiceBlockingStub calculatorClient = newBlockingStub(channel);\n\n //Create a Greet Request\n SumRequest sumRequest = SumRequest\n .newBuilder()\n .setFirstNumber(1)\n .setSecondNumber(2)\n .build();\n\n //Call the RPC and get back a GreetResponse\n SumResponse sumResponse = calculatorClient.sum(sumRequest);\n System.out.println(sumRequest.getFirstNumber() +\"+\" + sumRequest.getSecondNumber() +\"=\"+ sumResponse.getSumResult());\n }", "Optional<String> invokeRpc(@Nonnull String uriPath, Optional<String> input) throws OperationFailedException;", "public static LogBlockingStub newBlockingStub(\n io.grpc.Channel channel) {\n return new LogBlockingStub(channel);\n }", "public static JwtAuthTestServiceBlockingStub newBlockingStub(\n io.grpc.Channel channel) {\n io.grpc.stub.AbstractStub.StubFactory<JwtAuthTestServiceBlockingStub> factory =\n new io.grpc.stub.AbstractStub.StubFactory<JwtAuthTestServiceBlockingStub>() {\n @java.lang.Override\n public JwtAuthTestServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {\n return new JwtAuthTestServiceBlockingStub(channel, callOptions);\n }\n };\n return JwtAuthTestServiceBlockingStub.newStub(factory, channel);\n }", "public static SubscriptionServiceBlockingStub newBlockingStub(\n io.grpc.Channel channel) {\n io.grpc.stub.AbstractStub.StubFactory<SubscriptionServiceBlockingStub> factory =\n new io.grpc.stub.AbstractStub.StubFactory<SubscriptionServiceBlockingStub>() {\n @java.lang.Override\n public SubscriptionServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {\n return new SubscriptionServiceBlockingStub(channel, callOptions);\n }\n };\n return SubscriptionServiceBlockingStub.newStub(factory, channel);\n }", "public static RaftServerProtocolServiceStub newStub(org.apache.ratis.shaded.io.grpc.Channel channel) {\n return new RaftServerProtocolServiceStub(channel);\n }", "public static AvroreposBlockingStub newBlockingStub(\n io.grpc.Channel channel) {\n io.grpc.stub.AbstractStub.StubFactory<AvroreposBlockingStub> factory =\n new io.grpc.stub.AbstractStub.StubFactory<AvroreposBlockingStub>() {\n @java.lang.Override\n public AvroreposBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {\n return new AvroreposBlockingStub(channel, callOptions);\n }\n };\n return AvroreposBlockingStub.newStub(factory, channel);\n }", "public interface UsbCommunicationInterface extends Runnable\n{\n byte get();\n\n void send(byte data) throws IOException;\n\n void cancel();\n}", "public interface IBeltApi extends ICloseable {\r\n /**\r\n * Start the belt vibrating in the indicated direction for the specified duration.\r\n * @param radiansFromNorth radians left of north in which the belt should indicate.\r\n * @param radiansOfArch an arch with with its mid point centered on the radiansFromNorth which should be include in the indication.\r\n * This provides the ability to have a fine or bord direction indication.\r\n * @param durationInMS duration in milliseconds the indication should last.\r\n * @throws IOException\r\n */\r\n void vibrate(double radiansFromNorth, double radiansOfArch, double durationInMS) throws IOException;\r\n\r\n /**\r\n * Stops any current indication the device is communicating.\r\n * @throws IOException\r\n */\r\n void stop() throws IOException;\r\n}", "public ApplicationStub() {\n }", "public interface P2LOutputStream extends AutoCloseable {\n /** Internal use only. */\n void receivedReceipt(P2LMessage rawReceipt);\n /** Internal use only. */\n InetSocketAddress getRawFrom();\n /** Internal use only. */\n short getType();\n /** Internal use only. */\n short getConversationId();\n /** Internal use only. */\n short getStep();\n\n /**\n * Blocking method to obtain the guarantee that all data written AND subsequently flushed has been received by the peer.\n * When the method returns all data has been correctly received by the peer.\n * However no guarantee can be made whether the client has read and interpreted the data.\n *\n * @param timeout_ms timeout after which to throw a timeout exception - if the timeout is 0 the method will block potentially forever\n * @throws IOException if the underlying socket has an error\n * @return whether confirmation has been received within the given timeout\n */\n boolean waitForConfirmationOnAll(int timeout_ms) throws IOException;\n\n /**\n * Closes the stream and cleans internal data structures.\n * Before this is done however, close completes the current write(for example using flush) and waits until all send messages have been received using {@link #waitForConfirmationOnAll(int)}.\n * In other words this method is blocking, potentially forever.\n * @throws IOException if flush fails\n */\n default void close() throws IOException { close(0); }\n /**\n * Closes the stream and cleans internal data structures.\n * Before this is done however, close completes the current write(for example using flush) and waits until all send messages have been received using {@link #waitForConfirmationOnAll(int)}.\n * After the given timeout the internal data structures are cleaned even without confirmation.\n *\n * This method is idempotent, i.e. calling it multiple times will not yield different results or change the internal state again. Or .. it isn't?\n *\n * @param timeout_ms timeout after which to force the stream to close - if the timeout is 0 the method will blocking until confirmation is received.\n * @return whether confirmation was received before the timeout\n * @throws IOException if flush fails\n */\n boolean close(int timeout_ms) throws IOException;\n\n /**\n * Closes the stream and cleans internal data structures.\n * Before this is done however, close completes the current write(for example using flush) and will resent messages if required.\n * After the given timeout the internal data structures are cleaned even without confirmation.\n *\n * Canceling this future will cancel the stream. i.e. there will not be hope of it ever completing.\n *\n * @return whether confirmation was received - and THAT confirmation was received\n */\n P2LFuture<Boolean> closeAsync();\n\n /**\n * @return whether {@link #close()} was ever called, or the receiving input stream informed us that they have closed the stream on their side.\n */\n boolean isClosed();\n}", "@MatchStatement\r\n public T stub() {\r\n MatchingInvocationHandler matchingInvocationHandler = createAlwaysMatchingBehaviorDefiningMatchingInvocationHandler(new StubMockBehavior());\r\n return startMatchingInvocation(matchingInvocationHandler);\r\n }", "public interface GeneralService {\n\n /**\n * Returns general server data\n */\n Request getGeneralData(AsyncCallback<GeneralData> callback);\n\n}", "org.omg.CORBA.portable.OutputStream try_invoke(java.lang.String method, org.omg.CORBA.portable.InputStream input,\r\n org.omg.CORBA.portable.ResponseHandler handler) throws X;", "go.micro.runtime.RuntimeOuterClass.Service getService();", "go.micro.runtime.RuntimeOuterClass.Service getService();", "go.micro.runtime.RuntimeOuterClass.Service getService();" ]
[ "0.6458012", "0.57180977", "0.5505814", "0.544022", "0.54356253", "0.54159", "0.54159", "0.54159", "0.54159", "0.54159", "0.5414142", "0.54074436", "0.5389581", "0.5360376", "0.5344012", "0.53095233", "0.5303986", "0.5303986", "0.5291003", "0.5264746", "0.5260247", "0.5252084", "0.5252084", "0.5252084", "0.5252084", "0.5252084", "0.5252084", "0.5252084", "0.5252084", "0.5252084", "0.5252084", "0.5252084", "0.5252084", "0.52477425", "0.52221", "0.52162015", "0.51845825", "0.51649386", "0.5150883", "0.51466185", "0.51464915", "0.5143622", "0.5120194", "0.5119645", "0.5113335", "0.51060617", "0.5104131", "0.5103912", "0.5100631", "0.5098832", "0.50965965", "0.50895554", "0.5089424", "0.508008", "0.50792474", "0.50774026", "0.50740945", "0.50648993", "0.5036404", "0.50288236", "0.50279284", "0.5026592", "0.50094897", "0.5002365", "0.5001653", "0.5000807", "0.49808404", "0.49763662", "0.4975403", "0.49746308", "0.49704853", "0.49691334", "0.4965084", "0.4960856", "0.49592596", "0.49553472", "0.49462816", "0.4940837", "0.49359396", "0.4935785", "0.49314958", "0.49296921", "0.49218956", "0.49217016", "0.49183288", "0.49111807", "0.49035755", "0.4880504", "0.4880394", "0.4878252", "0.4864675", "0.48633724", "0.48628262", "0.48613787", "0.48580173", "0.4855402", "0.48467076", "0.4841177", "0.48357624", "0.48357624", "0.48357624" ]
0.0
-1
Creates a new ListenableFuturestyle stub that supports unary calls on the service
public static DoctorServiceFutureStub newFutureStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory<DoctorServiceFutureStub> factory = new io.grpc.stub.AbstractStub.StubFactory<DoctorServiceFutureStub>() { @java.lang.Override public DoctorServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new DoctorServiceFutureStub(channel, callOptions); } }; return DoctorServiceFutureStub.newStub(factory, channel); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static ExtractionServiceFutureStub newFutureStub(\n io.grpc.Channel channel) {\n io.grpc.stub.AbstractStub.StubFactory<ExtractionServiceFutureStub> factory =\n new io.grpc.stub.AbstractStub.StubFactory<ExtractionServiceFutureStub>() {\n @Override\n public ExtractionServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {\n return new ExtractionServiceFutureStub(channel, callOptions);\n }\n };\n return ExtractionServiceFutureStub.newStub(factory, channel);\n }", "public static ShippingServiceFutureStub newFutureStub(\n io.grpc.Channel channel) {\n io.grpc.stub.AbstractStub.StubFactory<ShippingServiceFutureStub> factory =\n new io.grpc.stub.AbstractStub.StubFactory<ShippingServiceFutureStub>() {\n @java.lang.Override\n public ShippingServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {\n return new ShippingServiceFutureStub(channel, callOptions);\n }\n };\n return ShippingServiceFutureStub.newStub(factory, channel);\n }", "public interface ListenableFutureCallback\n\textends SuccessCallback, FailureCallback\n{\n}", "public static S3InternalServiceFutureStub newFutureStub(\n io.grpc.Channel channel) {\n io.grpc.stub.AbstractStub.StubFactory<S3InternalServiceFutureStub> factory =\n new io.grpc.stub.AbstractStub.StubFactory<S3InternalServiceFutureStub>() {\n @java.lang.Override\n public S3InternalServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {\n return new S3InternalServiceFutureStub(channel, callOptions);\n }\n };\n return S3InternalServiceFutureStub.newStub(factory, channel);\n }", "default void accept(ListenableFuture<? extends T> listenableFuture) {\n Futures.addCallback(listenableFuture, new FutureCallback<T>() {\n @Override\n public void onSuccess(T result) {\n success(result);\n }\n\n @Override\n public void onFailure(Throwable t) {\n error(t);\n }\n });\n }", "public static ProductServiceFutureStub newFutureStub(\n io.grpc.Channel channel) {\n io.grpc.stub.AbstractStub.StubFactory<ProductServiceFutureStub> factory =\n new io.grpc.stub.AbstractStub.StubFactory<ProductServiceFutureStub>() {\n @java.lang.Override\n public ProductServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {\n return new ProductServiceFutureStub(channel, callOptions);\n }\n };\n return ProductServiceFutureStub.newStub(factory, channel);\n }", "public static TpuFutureStub newFutureStub(io.grpc.Channel channel) {\n io.grpc.stub.AbstractStub.StubFactory<TpuFutureStub> factory =\n new io.grpc.stub.AbstractStub.StubFactory<TpuFutureStub>() {\n @java.lang.Override\n public TpuFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {\n return new TpuFutureStub(channel, callOptions);\n }\n };\n return TpuFutureStub.newStub(factory, channel);\n }", "public static SubscriptionServiceFutureStub newFutureStub(\n io.grpc.Channel channel) {\n io.grpc.stub.AbstractStub.StubFactory<SubscriptionServiceFutureStub> factory =\n new io.grpc.stub.AbstractStub.StubFactory<SubscriptionServiceFutureStub>() {\n @java.lang.Override\n public SubscriptionServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {\n return new SubscriptionServiceFutureStub(channel, callOptions);\n }\n };\n return SubscriptionServiceFutureStub.newStub(factory, channel);\n }", "public interface ChefService {\n\n ListenableFuture<ResponseChefsEvent> requestChefs(final RequestChefsEvent event);\n\n ListenableFuture<ResponseChefEvent> createChef(final CreateChefEvent event);\n\n ListenableFuture<ResponseChefEvent> registerChef(final RegisterChefEvent event);\n\n ListenableFuture<ResponseChefEvent> requestChef(final RequestChefEvent event);\n\n ListenableFuture<ResponseChefEvent> updateChef(final UpdateChefEvent event);\n\n ListenableFuture<ResponseChefEvent> deleteChef(final DeleteChefEvent event);\n}", "public static AzureClustersFutureStub newFutureStub(io.grpc.Channel channel) {\n io.grpc.stub.AbstractStub.StubFactory<AzureClustersFutureStub> factory =\n new io.grpc.stub.AbstractStub.StubFactory<AzureClustersFutureStub>() {\n @java.lang.Override\n public AzureClustersFutureStub newStub(\n io.grpc.Channel channel, io.grpc.CallOptions callOptions) {\n return new AzureClustersFutureStub(channel, callOptions);\n }\n };\n return AzureClustersFutureStub.newStub(factory, channel);\n }", "public static ClusterServiceFutureStub newFutureStub(\n io.grpc.Channel channel) {\n io.grpc.stub.AbstractStub.StubFactory<ClusterServiceFutureStub> factory =\n new io.grpc.stub.AbstractStub.StubFactory<ClusterServiceFutureStub>() {\n @java.lang.Override\n public ClusterServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {\n return new ClusterServiceFutureStub(channel, callOptions);\n }\n };\n return ClusterServiceFutureStub.newStub(factory, channel);\n }", "public static SinkServiceFutureStub newFutureStub(\n io.grpc.Channel channel) {\n io.grpc.stub.AbstractStub.StubFactory<SinkServiceFutureStub> factory =\n new io.grpc.stub.AbstractStub.StubFactory<SinkServiceFutureStub>() {\n @java.lang.Override\n public SinkServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {\n return new SinkServiceFutureStub(channel, callOptions);\n }\n };\n return SinkServiceFutureStub.newStub(factory, channel);\n }", "public static LightningFutureStub newFutureStub(\n io.grpc.Channel channel) {\n return new LightningFutureStub(channel);\n }", "public static ImageServiceFutureStub newFutureStub(\n io.grpc.Channel channel) {\n io.grpc.stub.AbstractStub.StubFactory<ImageServiceFutureStub> factory =\n new io.grpc.stub.AbstractStub.StubFactory<ImageServiceFutureStub>() {\n @java.lang.Override\n public ImageServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {\n return new ImageServiceFutureStub(channel, callOptions);\n }\n };\n return ImageServiceFutureStub.newStub(factory, channel);\n }", "public static EntityServantFutureStub newFutureStub(\n io.grpc.Channel channel) {\n return new EntityServantFutureStub(channel);\n }", "@ThriftService(\"ThriftTaskService\")\npublic interface ThriftTaskClient\n{\n @ThriftMethod\n ListenableFuture<ThriftBufferResult> getResults(TaskId taskId, OutputBufferId bufferId, long token, long maxSizeInBytes);\n\n @ThriftMethod\n ListenableFuture<Void> acknowledgeResults(TaskId taskId, OutputBufferId bufferId, long token);\n\n @ThriftMethod\n ListenableFuture<Void> abortResults(TaskId taskId, OutputBufferId bufferId);\n}", "public static EmployeeServiceFutureStub newFutureStub(\n io.grpc.Channel channel) {\n return new EmployeeServiceFutureStub(channel);\n }", "public static MetadataServiceFutureStub newFutureStub(io.grpc.Channel channel) {\n io.grpc.stub.AbstractStub.StubFactory<MetadataServiceFutureStub> factory =\n new io.grpc.stub.AbstractStub.StubFactory<MetadataServiceFutureStub>() {\n @java.lang.Override\n public MetadataServiceFutureStub newStub(\n io.grpc.Channel channel, io.grpc.CallOptions callOptions) {\n return new MetadataServiceFutureStub(channel, callOptions);\n }\n };\n return MetadataServiceFutureStub.newStub(factory, channel);\n }", "public static WebSocketFrameServiceFutureStub newFutureStub(\n io.grpc.Channel channel) {\n io.grpc.stub.AbstractStub.StubFactory<WebSocketFrameServiceFutureStub> factory =\n new io.grpc.stub.AbstractStub.StubFactory<WebSocketFrameServiceFutureStub>() {\n @java.lang.Override\n public WebSocketFrameServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {\n return new WebSocketFrameServiceFutureStub(channel, callOptions);\n }\n };\n return WebSocketFrameServiceFutureStub.newStub(factory, channel);\n }", "public static RaftServerProtocolServiceFutureStub newFutureStub(\n org.apache.ratis.shaded.io.grpc.Channel channel) {\n return new RaftServerProtocolServiceFutureStub(channel);\n }", "public static homeLightsFutureStub newFutureStub(\n io.grpc.Channel channel) {\n return new homeLightsFutureStub(channel);\n }", "public interface Future<T> extends AsyncResult<T> {\n\n final class Factory {\n\n public static <T> Future<T> failedFuture(String failureMessage) {\n return new FutureImpl<>(failureMessage, false);\n }\n\n public static <T> Future<T> failedFuture(Throwable t) {\n return new FutureImpl<>(t);\n }\n\n public static <T> Future<T> future() {\n return new FutureImpl<>();\n }\n\n public static <T> Future<T> succeededFuture() {\n return new FutureImpl<>((Throwable) null);\n }\n\n public static <T> Future<T> succeededFuture(T result) {\n return new FutureImpl<>(result);\n }\n }\n\n void complete();\n\n void complete(T result);\n\n void fail(String failureMessage);\n\n void fail(Throwable throwable);\n\n boolean isComplete();\n\n void setHandler(Handler<AsyncResult<T>> handler);\n}", "public static RegistrationServiceFutureStub newFutureStub(io.grpc.Channel channel) {\n io.grpc.stub.AbstractStub.StubFactory<RegistrationServiceFutureStub> factory =\n new io.grpc.stub.AbstractStub.StubFactory<RegistrationServiceFutureStub>() {\n @java.lang.Override\n public RegistrationServiceFutureStub newStub(\n io.grpc.Channel channel, io.grpc.CallOptions callOptions) {\n return new RegistrationServiceFutureStub(channel, callOptions);\n }\n };\n return RegistrationServiceFutureStub.newStub(factory, channel);\n }", "public static MovieRPCFutureStub newFutureStub(\n io.grpc.Channel channel) {\n io.grpc.stub.AbstractStub.StubFactory<MovieRPCFutureStub> factory =\n new io.grpc.stub.AbstractStub.StubFactory<MovieRPCFutureStub>() {\n @java.lang.Override\n public MovieRPCFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {\n return new MovieRPCFutureStub(channel, callOptions);\n }\n };\n return MovieRPCFutureStub.newStub(factory, channel);\n }", "private static void unaryService(ManagedChannel channel){\n CalculatorServiceBlockingStub calculatorClient = newBlockingStub(channel);\n\n //Create a Greet Request\n SumRequest sumRequest = SumRequest\n .newBuilder()\n .setFirstNumber(1)\n .setSecondNumber(2)\n .build();\n\n //Call the RPC and get back a GreetResponse\n SumResponse sumResponse = calculatorClient.sum(sumRequest);\n System.out.println(sumRequest.getFirstNumber() +\"+\" + sumRequest.getSecondNumber() +\"=\"+ sumResponse.getSumResult());\n }", "public static interface ApplicationManagerFutureClient {\n\n /**\n * <pre>\n * Applications should first be registered to the Handler with the `RegisterApplication` method\n * </pre>\n */\n public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> registerApplication(\n org.thethingsnetwork.management.proto.HandlerOuterClass.ApplicationIdentifier request);\n\n /**\n * <pre>\n * GetApplication returns the application with the given identifier (app_id)\n * </pre>\n */\n public com.google.common.util.concurrent.ListenableFuture<org.thethingsnetwork.management.proto.HandlerOuterClass.Application> getApplication(\n org.thethingsnetwork.management.proto.HandlerOuterClass.ApplicationIdentifier request);\n\n /**\n * <pre>\n * SetApplication updates the settings for the application. All fields must be supplied.\n * </pre>\n */\n public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> setApplication(\n org.thethingsnetwork.management.proto.HandlerOuterClass.Application request);\n\n /**\n * <pre>\n * DeleteApplication deletes the application with the given identifier (app_id)\n * </pre>\n */\n public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> deleteApplication(\n org.thethingsnetwork.management.proto.HandlerOuterClass.ApplicationIdentifier request);\n\n /**\n * <pre>\n * GetDevice returns the device with the given identifier (app_id and dev_id)\n * </pre>\n */\n public com.google.common.util.concurrent.ListenableFuture<org.thethingsnetwork.management.proto.HandlerOuterClass.Device> getDevice(\n org.thethingsnetwork.management.proto.HandlerOuterClass.DeviceIdentifier request);\n\n /**\n * <pre>\n * SetDevice creates or updates a device. All fields must be supplied.\n * </pre>\n */\n public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> setDevice(\n org.thethingsnetwork.management.proto.HandlerOuterClass.Device request);\n\n /**\n * <pre>\n * DeleteDevice deletes the device with the given identifier (app_id and dev_id)\n * </pre>\n */\n public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> deleteDevice(\n org.thethingsnetwork.management.proto.HandlerOuterClass.DeviceIdentifier request);\n\n /**\n * <pre>\n * GetDevicesForApplication returns all devices that belong to the application with the given identifier (app_id)\n * </pre>\n */\n public com.google.common.util.concurrent.ListenableFuture<org.thethingsnetwork.management.proto.HandlerOuterClass.DeviceList> getDevicesForApplication(\n org.thethingsnetwork.management.proto.HandlerOuterClass.ApplicationIdentifier request);\n\n /**\n * <pre>\n * DryUplink simulates processing a downlink message and returns the result\n * </pre>\n */\n public com.google.common.util.concurrent.ListenableFuture<org.thethingsnetwork.management.proto.HandlerOuterClass.DryDownlinkResult> dryDownlink(\n org.thethingsnetwork.management.proto.HandlerOuterClass.DryDownlinkMessage request);\n\n /**\n * <pre>\n * DryUplink simulates processing an uplink message and returns the result\n * </pre>\n */\n public com.google.common.util.concurrent.ListenableFuture<org.thethingsnetwork.management.proto.HandlerOuterClass.DryUplinkResult> dryUplink(\n org.thethingsnetwork.management.proto.HandlerOuterClass.DryUplinkMessage request);\n\n /**\n * <pre>\n * SimulateUplink simulates an uplink message\n * </pre>\n */\n public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> simulateUplink(\n org.thethingsnetwork.management.proto.HandlerOuterClass.SimulatedUplinkMessage request);\n }", "public static CommunicationServiceFutureStub newFutureStub(\n io.grpc.Channel channel) {\n return new CommunicationServiceFutureStub(channel);\n }", "public static BookServicesFutureStub newFutureStub(\n io.grpc.Channel channel) {\n return new BookServicesFutureStub(channel);\n }", "public static PolicyServiceFutureStub newFutureStub(\n io.grpc.Channel channel) {\n return new PolicyServiceFutureStub(channel);\n }", "public static JwtAuthTestServiceFutureStub newFutureStub(\n io.grpc.Channel channel) {\n io.grpc.stub.AbstractStub.StubFactory<JwtAuthTestServiceFutureStub> factory =\n new io.grpc.stub.AbstractStub.StubFactory<JwtAuthTestServiceFutureStub>() {\n @java.lang.Override\n public JwtAuthTestServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {\n return new JwtAuthTestServiceFutureStub(channel, callOptions);\n }\n };\n return JwtAuthTestServiceFutureStub.newStub(factory, channel);\n }", "public static PeopleFutureStub newFutureStub(\n io.grpc.Channel channel) {\n io.grpc.stub.AbstractStub.StubFactory<PeopleFutureStub> factory =\n new io.grpc.stub.AbstractStub.StubFactory<PeopleFutureStub>() {\n @java.lang.Override\n public PeopleFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {\n return new PeopleFutureStub(channel, callOptions);\n }\n };\n return PeopleFutureStub.newStub(factory, channel);\n }", "Stub createStub();", "public static RoutesFutureStub newFutureStub(io.grpc.Channel channel) {\n io.grpc.stub.AbstractStub.StubFactory<RoutesFutureStub> factory =\n new io.grpc.stub.AbstractStub.StubFactory<RoutesFutureStub>() {\n @java.lang.Override\n public RoutesFutureStub newStub(\n io.grpc.Channel channel, io.grpc.CallOptions callOptions) {\n return new RoutesFutureStub(channel, callOptions);\n }\n };\n return RoutesFutureStub.newStub(factory, channel);\n }", "public static GreetingServiceFutureStub newFutureStub(\n io.grpc.Channel channel) {\n return new GreetingServiceFutureStub(channel);\n }", "public interface AsyncService {\n\n /**\n *\n *\n * <pre>\n * Lists nodes.\n * </pre>\n */\n default void listNodes(\n com.google.cloud.tpu.v2alpha1.ListNodesRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.tpu.v2alpha1.ListNodesResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListNodesMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Gets the details of a node.\n * </pre>\n */\n default void getNode(\n com.google.cloud.tpu.v2alpha1.GetNodeRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.tpu.v2alpha1.Node> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetNodeMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Creates a node.\n * </pre>\n */\n default void createNode(\n com.google.cloud.tpu.v2alpha1.CreateNodeRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateNodeMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Deletes a node.\n * </pre>\n */\n default void deleteNode(\n com.google.cloud.tpu.v2alpha1.DeleteNodeRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteNodeMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Stops a node. This operation is only available with single TPU nodes.\n * </pre>\n */\n default void stopNode(\n com.google.cloud.tpu.v2alpha1.StopNodeRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStopNodeMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Starts a node.\n * </pre>\n */\n default void startNode(\n com.google.cloud.tpu.v2alpha1.StartNodeRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStartNodeMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Updates the configurations of a node.\n * </pre>\n */\n default void updateNode(\n com.google.cloud.tpu.v2alpha1.UpdateNodeRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateNodeMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Lists queued resources.\n * </pre>\n */\n default void listQueuedResources(\n com.google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.tpu.v2alpha1.ListQueuedResourcesResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getListQueuedResourcesMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Gets details of a queued resource.\n * </pre>\n */\n default void getQueuedResource(\n com.google.cloud.tpu.v2alpha1.GetQueuedResourceRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.tpu.v2alpha1.QueuedResource>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGetQueuedResourceMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Creates a QueuedResource TPU instance.\n * </pre>\n */\n default void createQueuedResource(\n com.google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getCreateQueuedResourceMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Deletes a QueuedResource TPU instance.\n * </pre>\n */\n default void deleteQueuedResource(\n com.google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getDeleteQueuedResourceMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Resets a QueuedResource TPU instance\n * </pre>\n */\n default void resetQueuedResource(\n com.google.cloud.tpu.v2alpha1.ResetQueuedResourceRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getResetQueuedResourceMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Generates the Cloud TPU service identity for the project.\n * </pre>\n */\n default void generateServiceIdentity(\n com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGenerateServiceIdentityMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Lists accelerator types supported by this API.\n * </pre>\n */\n default void listAcceleratorTypes(\n com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.tpu.v2alpha1.ListAcceleratorTypesResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getListAcceleratorTypesMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Gets AcceleratorType.\n * </pre>\n */\n default void getAcceleratorType(\n com.google.cloud.tpu.v2alpha1.GetAcceleratorTypeRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.tpu.v2alpha1.AcceleratorType>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGetAcceleratorTypeMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Lists runtime versions supported by this API.\n * </pre>\n */\n default void listRuntimeVersions(\n com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getListRuntimeVersionsMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Gets a runtime version.\n * </pre>\n */\n default void getRuntimeVersion(\n com.google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.tpu.v2alpha1.RuntimeVersion>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGetRuntimeVersionMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Retrieves the guest attributes for the node.\n * </pre>\n */\n default void getGuestAttributes(\n com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.tpu.v2alpha1.GetGuestAttributesResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGetGuestAttributesMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Simulates a maintenance event.\n * </pre>\n */\n default void simulateMaintenanceEvent(\n com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getSimulateMaintenanceEventMethod(), responseObserver);\n }\n }", "public static AvroreposFutureStub newFutureStub(\n io.grpc.Channel channel) {\n io.grpc.stub.AbstractStub.StubFactory<AvroreposFutureStub> factory =\n new io.grpc.stub.AbstractStub.StubFactory<AvroreposFutureStub>() {\n @java.lang.Override\n public AvroreposFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {\n return new AvroreposFutureStub(channel, callOptions);\n }\n };\n return AvroreposFutureStub.newStub(factory, channel);\n }", "public static CurrencyServiceFutureStub newFutureStub(\n io.grpc.Channel channel) {\n return new CurrencyServiceFutureStub(channel);\n }", "public static CurrencyServiceFutureStub newFutureStub(\n io.grpc.Channel channel) {\n return new CurrencyServiceFutureStub(channel);\n }", "public interface AsyncService {\n\n /**\n *\n *\n * <pre>\n * Creates a new [AzureClient][google.cloud.gkemulticloud.v1.AzureClient]\n * resource on a given Google Cloud project and region.\n * `AzureClient` resources hold client authentication\n * information needed by the Anthos Multicloud API to manage Azure resources\n * on your Azure subscription on your behalf.\n * If successful, the response contains a newly created\n * [Operation][google.longrunning.Operation] resource that can be\n * described to track the status of the operation.\n * </pre>\n */\n default void createAzureClient(\n com.google.cloud.gkemulticloud.v1.CreateAzureClientRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getCreateAzureClientMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Describes a specific\n * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource.\n * </pre>\n */\n default void getAzureClient(\n com.google.cloud.gkemulticloud.v1.GetAzureClientRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.gkemulticloud.v1.AzureClient>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGetAzureClientMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Lists all [AzureClient][google.cloud.gkemulticloud.v1.AzureClient]\n * resources on a given Google Cloud project and region.\n * </pre>\n */\n default void listAzureClients(\n com.google.cloud.gkemulticloud.v1.ListAzureClientsRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.gkemulticloud.v1.ListAzureClientsResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getListAzureClientsMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Deletes a specific [AzureClient][google.cloud.gkemulticloud.v1.AzureClient]\n * resource.\n * If the client is used by one or more clusters, deletion will\n * fail and a `FAILED_PRECONDITION` error will be returned.\n * If successful, the response contains a newly created\n * [Operation][google.longrunning.Operation] resource that can be\n * described to track the status of the operation.\n * </pre>\n */\n default void deleteAzureClient(\n com.google.cloud.gkemulticloud.v1.DeleteAzureClientRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getDeleteAzureClientMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Creates a new [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]\n * resource on a given Google Cloud Platform project and region.\n * If successful, the response contains a newly created\n * [Operation][google.longrunning.Operation] resource that can be\n * described to track the status of the operation.\n * </pre>\n */\n default void createAzureCluster(\n com.google.cloud.gkemulticloud.v1.CreateAzureClusterRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getCreateAzureClusterMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Updates an [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster].\n * </pre>\n */\n default void updateAzureCluster(\n com.google.cloud.gkemulticloud.v1.UpdateAzureClusterRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getUpdateAzureClusterMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Describes a specific\n * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource.\n * </pre>\n */\n default void getAzureCluster(\n com.google.cloud.gkemulticloud.v1.GetAzureClusterRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.gkemulticloud.v1.AzureCluster>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGetAzureClusterMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Lists all [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]\n * resources on a given Google Cloud project and region.\n * </pre>\n */\n default void listAzureClusters(\n com.google.cloud.gkemulticloud.v1.ListAzureClustersRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.gkemulticloud.v1.ListAzureClustersResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getListAzureClustersMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Deletes a specific\n * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource.\n * Fails if the cluster has one or more associated\n * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources.\n * If successful, the response contains a newly created\n * [Operation][google.longrunning.Operation] resource that can be\n * described to track the status of the operation.\n * </pre>\n */\n default void deleteAzureCluster(\n com.google.cloud.gkemulticloud.v1.DeleteAzureClusterRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getDeleteAzureClusterMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Generates a short-lived access token to authenticate to a given\n * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource.\n * </pre>\n */\n default void generateAzureAccessToken(\n com.google.cloud.gkemulticloud.v1.GenerateAzureAccessTokenRequest request,\n io.grpc.stub.StreamObserver<\n com.google.cloud.gkemulticloud.v1.GenerateAzureAccessTokenResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGenerateAzureAccessTokenMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Creates a new [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool],\n * attached to a given\n * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster].\n * If successful, the response contains a newly created\n * [Operation][google.longrunning.Operation] resource that can be\n * described to track the status of the operation.\n * </pre>\n */\n default void createAzureNodePool(\n com.google.cloud.gkemulticloud.v1.CreateAzureNodePoolRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getCreateAzureNodePoolMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Updates an [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool].\n * </pre>\n */\n default void updateAzureNodePool(\n com.google.cloud.gkemulticloud.v1.UpdateAzureNodePoolRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getUpdateAzureNodePoolMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Describes a specific\n * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource.\n * </pre>\n */\n default void getAzureNodePool(\n com.google.cloud.gkemulticloud.v1.GetAzureNodePoolRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.gkemulticloud.v1.AzureNodePool>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGetAzureNodePoolMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Lists all [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]\n * resources on a given\n * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster].\n * </pre>\n */\n default void listAzureNodePools(\n com.google.cloud.gkemulticloud.v1.ListAzureNodePoolsRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.gkemulticloud.v1.ListAzureNodePoolsResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getListAzureNodePoolsMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Deletes a specific\n * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource.\n * If successful, the response contains a newly created\n * [Operation][google.longrunning.Operation] resource that can be\n * described to track the status of the operation.\n * </pre>\n */\n default void deleteAzureNodePool(\n com.google.cloud.gkemulticloud.v1.DeleteAzureNodePoolRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getDeleteAzureNodePoolMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Returns information, such as supported Azure regions and Kubernetes\n * versions, on a given Google Cloud location.\n * </pre>\n */\n default void getAzureServerConfig(\n com.google.cloud.gkemulticloud.v1.GetAzureServerConfigRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.gkemulticloud.v1.AzureServerConfig>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGetAzureServerConfigMethod(), responseObserver);\n }\n }", "public static CategoryServiceFutureStub newFutureStub(\n io.grpc.Channel channel) {\n return new CategoryServiceFutureStub(channel);\n }", "public static QueryFutureStub newFutureStub(\n io.grpc.Channel channel) {\n io.grpc.stub.AbstractStub.StubFactory<QueryFutureStub> factory =\n new io.grpc.stub.AbstractStub.StubFactory<QueryFutureStub>() {\n @java.lang.Override\n public QueryFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {\n return new QueryFutureStub(channel, callOptions);\n }\n };\n return QueryFutureStub.newStub(factory, channel);\n }", "public static OrganizationServiceFutureStub newFutureStub(\n io.grpc.Channel channel) {\n io.grpc.stub.AbstractStub.StubFactory<OrganizationServiceFutureStub> factory =\n new io.grpc.stub.AbstractStub.StubFactory<OrganizationServiceFutureStub>() {\n @java.lang.Override\n public OrganizationServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {\n return new OrganizationServiceFutureStub(channel, callOptions);\n }\n };\n return OrganizationServiceFutureStub.newStub(factory, channel);\n }", "public static MsgFutureStub newFutureStub(\n io.grpc.Channel channel) {\n io.grpc.stub.AbstractStub.StubFactory<MsgFutureStub> factory =\n new io.grpc.stub.AbstractStub.StubFactory<MsgFutureStub>() {\n @java.lang.Override\n public MsgFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {\n return new MsgFutureStub(channel, callOptions);\n }\n };\n return MsgFutureStub.newStub(factory, channel);\n }", "V call() throws StatusRuntimeException;", "public static ForumFutureStub newFutureStub(\n io.grpc.Channel channel) {\n io.grpc.stub.AbstractStub.StubFactory<ForumFutureStub> factory =\n new io.grpc.stub.AbstractStub.StubFactory<ForumFutureStub>() {\n @java.lang.Override\n public ForumFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {\n return new ForumFutureStub(channel, callOptions);\n }\n };\n return ForumFutureStub.newStub(factory, channel);\n }", "public interface LightFuture<T> {\n /**\n * Returns {@code true} then task is finished.\n */\n boolean isReady();\n\n /**\n * Returns result of work.\n * @throws InterruptedException if waiting for the result to compute fails\n * @throws LightExecutionException if computation ends up with an exception\n */\n T get() throws InterruptedException, LightExecutionException;\n\n /**\n * Applies mapping to result of the task to get a new task.\n * @param mapping function to get new task from the result\n * of the previous\n * @param <U> return value of new task\n * @return new task\n * @throws InterruptedException if waiting for the result to compute fails\n * @throws LightExecutionException if computation ends up with an exception\n */\n @NotNull\n <U> LightFuture<U> thenApply(Function<? super T, U> mapping) throws InterruptedException, LightExecutionException;\n}", "public static TransferFutureStub newFutureStub(\n io.grpc.Channel channel) {\n return new TransferFutureStub(channel);\n }", "public static LanguageConstantServiceFutureStub newFutureStub(\n io.grpc.Channel channel) {\n return new LanguageConstantServiceFutureStub(channel);\n }", "public interface OperationServiceService extends javax.xml.rpc.Service {\n public java.lang.String getOperationServiceAddress();\n\n public fr.uphf.service.OperationService getOperationService() throws javax.xml.rpc.ServiceException;\n\n public fr.uphf.service.OperationService getOperationService(java.net.URL portAddress) throws javax.xml.rpc.ServiceException;\n}", "public interface AsyncOperationHelper {\n\t\n\t/**\n\t * Inserisce l'operazione asincrona e restituisce il risultato dell'invocazione.\n\t * \n\t * @param account l'account relativo alla richiesta\n\t * @param azioneRichiesta l'azione richiesta\n\t * @param ente l'ente\n\t * @param richiedente il richiedente\n\t * \n\t * @return la response del servizio di {@link InserisciOperazioneAsinc}\n\t * \n\t * @throws WebServiceInvocationFailureException nel caso in cui l'invocazione del WebService restituisca un'eccezione\n\t */\n\tInserisciOperazioneAsincResponse inserisciOperazioneAsincrona(Account account, AzioneRichiesta azioneRichiesta, Ente ente, Richiedente richiedente)\n\t\tthrows WebServiceInvocationFailureException;\n\t\n\t/**\n\t * Effettua il polling dell'operazione asincrona.\n\t * \n\t * @param idAzioneAsync l'id dell'azione asincrona\n\t * @param richiedente il richiedente\n\t * \n\t * @return la response del servizio di {@link GetOperazioneAsincResponse}\n\t * \n\t * @throws WebServiceInvocationFailureException nel caso in cui l'invocazione del WebService restituisca un'eccezione\n\t */\n\tGetOperazioneAsincResponse getOperazioneAsinc(Integer idAzioneAsync, Richiedente richiedente) throws WebServiceInvocationFailureException;\n\t\n}", "public static GreeterFutureStub newFutureStub(\n io.grpc.Channel channel) {\n return new GreeterFutureStub(channel);\n }", "public Ice.AsyncResult begin_startService(String service, Callback_ServiceManager_startService __cb);", "InvocationResult invoke(RemoteService service, MethodInvocation invocation);", "public interface HealthServiceClient extends ClientProxy {\n\n /**\n * Register a service with the health system\n *\n * @param name name of the service\n * @param ttl ttl on how long before the service timeout.\n * @param timeUnit time unit for the ttl.\n */\n default void register(String name, long ttl, TimeUnit timeUnit) {\n }\n\n\n /**\n * Check in the service so it passes it TTL\n *\n * @param name name of service.\n */\n default void checkInOk(String name) {\n }\n\n /**\n * Check in with a certain TTL.\n *\n * @param name name of service (PASS, WARN, FAIL, UNKNOWN)\n * @param status status\n */\n default void checkIn(String name, HealthStatus status) {\n }\n\n\n /**\n * Checks to see if all services registered with the health system are ok.\n *\n * @return ok\n */\n default Promise<Boolean> ok() {\n final Promise<Boolean> promise = Promises.promise();\n promise.resolve(true);\n return promise;\n }\n\n /**\n * Returns list of healthy nodes.\n *\n * @return promise\n */\n default Promise<List<String>> findHealthyNodes() {\n final Promise<List<String>> promise = Promises.promise();\n promise.resolve(Collections.emptyList());\n return promise;\n }\n\n /**\n * Find all nodes\n *\n * @return promise\n */\n default Promise<List<String>> findAllNodes() {\n final Promise<List<String>> promise = Promises.promise();\n promise.resolve(Collections.emptyList());\n return promise;\n }\n\n /**\n * Find all nodes with a certain status.\n *\n * @param queryStatus status you are looking for.\n * @return promise\n */\n default Promise<List<String>> findAllNodesWithStatus(HealthStatus queryStatus) {\n final Promise<List<String>> promise = Promises.promise();\n promise.resolve(Collections.emptyList());\n return promise;\n\n }\n\n /**\n * Find all healthy nodes\n *\n * @return promise\n */\n default Promise<List<String>> findNotHealthyNodes() {\n final Promise<List<String>> promise = Promises.promise();\n promise.resolve(Collections.emptyList());\n return promise;\n\n }\n\n\n /**\n * Load all nodes no matter the status.\n *\n * @return promise\n */\n default Promise<List<NodeHealthStat>> loadNodes() {\n final Promise<List<NodeHealthStat>> promise = Promises.promise();\n promise.resolve(Collections.emptyList());\n return promise;\n }\n\n /**\n * Unregister the service\n *\n * @param serviceName name of service\n */\n default void unregister(String serviceName) {\n }\n\n /**\n * Fail with a particular reason.\n *\n * @param name name\n * @param reason reason\n */\n default void failWithReason(final String name, final HealthFailReason reason) {\n }\n\n\n /**\n * Fail with error\n *\n * @param name name\n * @param error error\n */\n default void failWithError(final String name, final Throwable error) {\n }\n\n /**\n * warn with reason\n *\n * @param name name\n * @param reason reason\n */\n default void warnWithReason(final String name, final HealthFailReason reason) {\n }\n\n\n /**\n * warn with error\n *\n * @param name name\n * @param error error\n */\n default void warnWithError(final String name, final Throwable error) {\n }\n\n\n /**\n * Register a service but don't specify a check in TTL.\n *\n * @param name name\n */\n default void registerNoTtl(String name) {\n }\n\n}", "public interface Future\n{\n\n public abstract boolean cancel(boolean flag);\n\n public abstract boolean isCancelled();\n\n public abstract boolean isDone();\n\n public abstract Object get()\n throws ExecutionException, InterruptedException;\n\n public abstract Object get(long l, TimeUnit timeunit)\n throws ExecutionException, InterruptedException, TimeoutException;\n}", "public static CatalogFutureStub newFutureStub(\n io.grpc.Channel channel) {\n return new CatalogFutureStub(channel);\n }", "public static QueryFutureStub newFutureStub(\n io.grpc.Channel channel) {\n return new QueryFutureStub(channel);\n }", "public static AssetGroupSignalServiceFutureStub newFutureStub(\n io.grpc.Channel channel) {\n io.grpc.stub.AbstractStub.StubFactory<AssetGroupSignalServiceFutureStub> factory =\n new io.grpc.stub.AbstractStub.StubFactory<AssetGroupSignalServiceFutureStub>() {\n @java.lang.Override\n public AssetGroupSignalServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {\n return new AssetGroupSignalServiceFutureStub(channel, callOptions);\n }\n };\n return AssetGroupSignalServiceFutureStub.newStub(factory, channel);\n }", "public static QueryProcessGrpcFutureStub newFutureStub(\n io.grpc.Channel channel) {\n io.grpc.stub.AbstractStub.StubFactory<QueryProcessGrpcFutureStub> factory =\n new io.grpc.stub.AbstractStub.StubFactory<QueryProcessGrpcFutureStub>() {\n @Override\n public QueryProcessGrpcFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {\n return new QueryProcessGrpcFutureStub(channel, callOptions);\n }\n };\n return QueryProcessGrpcFutureStub.newStub(factory, channel);\n }", "public interface OmniProxyMethods extends JacksonRpcClient {\n Logger log = LoggerFactory.getLogger(OmniProxyMethods.class);\n AddressParser addressParser = AddressParser.getDefault();\n\n /**\n * Determine if remote server is an OmniProxy server.\n * @return true if server is OmniProxy\n */\n boolean isOmniProxyServer();\n\n private List<OmniPropertyInfo> omniProxyListPropertiesSync() throws IOException {\n JavaType javaType = getMapper().getTypeFactory().constructCollectionType(List.class, OmniPropertyInfo.class);\n return send(\"omniproxy.listproperties\", javaType);\n }\n\n default CompletableFuture<List<OmniPropertyInfo>> omniProxyListProperties() {\n return supplyAsync(this::omniProxyListPropertiesSync);\n }\n\n default CompletableFuture<TokenRichList<OmniValue, CurrencyID>> omniProxyGetRichList(CurrencyID id, int size) {\n return supplyAsync(() -> omniProxyGetRichListSync(id, size));\n }\n\n default TokenRichList<OmniValue, CurrencyID> omniProxyGetRichListSync(CurrencyID id, int size) throws IOException {\n // TODO: Can we replace JsonNode with a JavaType for TokenRichList<OmniValue, CurrencyID> ??\n // JavaType javaType = client.getMapper().getTypeFactory().constructParametricType(TokenRichList.class, OmniValue.class, CurrencyID.class);\n\n JsonNode node = send(\"omniproxy.getrichlist\", JsonNode.class, id.getValue(), size);\n if (node instanceof NullNode) {\n log.error(\"Got null node: {}\", node);\n throw new JsonRpcException(\"Got null node\");\n }\n JsonNode listNode = node.get(\"richList\");\n List<TokenRichList.TokenBalancePair<OmniValue>> listOnly =\n (listNode != null)\n ? StreamSupport.stream(listNode.spliterator(), false)\n .map(this::nodeToBalancePair)\n .collect(Collectors.toList())\n : List.of();\n return new TokenRichList<>(\n 0,\n Sha256Hash.ZERO_HASH,\n 0,\n CurrencyID.OMNI,\n listOnly,\n OmniValue.of(node.get(\"otherBalanceTotal\").asText())\n );\n }\n\n default WalletAddressBalance omniProxyGetBalance(Address address) throws IOException {\n return send(\"omniproxy.getbalance\", WalletAddressBalance.class, address);\n }\n\n default OmniJBalances omniProxyGetBalances(List<Address> addresses) throws IOException {\n return send(\"omniproxy.getbalances\", OmniJBalances.class, addresses.toArray());\n }\n\n private TokenRichList.TokenBalancePair<OmniValue> nodeToBalancePair(JsonNode node) {\n Address address = addressParser.parseAddress(node.get(\"address\").asText());\n OmniValue value = OmniValue.of(node.get(\"balance\").asText());\n return new TokenRichList.TokenBalancePair<>(address, value);\n }\n}", "public static DConcurrentServerFutureStub newFutureStub(\n io.grpc.Channel channel) {\n return new DConcurrentServerFutureStub(channel);\n }", "@Override\n protected List<Invoker<T>> doList(Invocation invocation) throws RpcException {\n if (forbidden){\n throw new RpcException(RpcException.FORBIDDEN_EXCEPTION, \"No provider available from registry \"\n + getUrl().getAddress() + \" for service \" + getConsumerUrl().getServiceKey()\n + \" on consumer \" + NetUtils.getLocalHost() + \" use mandal version is \"\n + Version.getVersion() + \", may be provider disabled or not registerd\");\n }\n List<Invoker<T>> invokers = null;\n Map<String, List<Invoker<T>>> localMethodInvokerMap = this.methodsInvokerMap;\n if (!CollectionUtils.isEmpty(localMethodInvokerMap)){\n String methodName = RpcUtils.getMethodName(invocation);\n Object[] args = RpcUtils.getArgument(invocation);\n if (!Objects.isNull(args) && args.length > 0 && !Objects.isNull(args[0]) && (args[0] instanceof String || args[0].getClass().isEnum())){\n invokers = localMethodInvokerMap.get(methodName + \".\" + args[0]);\n }\n if (Objects.isNull(invokers)){\n invokers = localMethodInvokerMap.get(methodName);\n }\n if (Objects.isNull(invokers)){\n invokers = localMethodInvokerMap.get(Constants.ANY_VALUE);\n }\n if (Objects.isNull(invokers)){\n Iterator<List<Invoker<T>>> iterator = localMethodInvokerMap.values().iterator();\n if (iterator.hasNext()){\n invokers = iterator.next();\n }\n }\n }\n return Objects.isNull(invokers) ? new ArrayList<Invoker<T>>(0) : invokers;\n }", "public static ApplicationManagerFutureStub newFutureStub(\n io.grpc.Channel channel) {\n return new ApplicationManagerFutureStub(channel);\n }", "VoidOperation createVoidOperation();", "public static MetricsScopesFutureStub newFutureStub(io.grpc.Channel channel) {\n io.grpc.stub.AbstractStub.StubFactory<MetricsScopesFutureStub> factory =\n new io.grpc.stub.AbstractStub.StubFactory<MetricsScopesFutureStub>() {\n @java.lang.Override\n public MetricsScopesFutureStub newStub(\n io.grpc.Channel channel, io.grpc.CallOptions callOptions) {\n return new MetricsScopesFutureStub(channel, callOptions);\n }\n };\n return MetricsScopesFutureStub.newStub(factory, channel);\n }", "public static ArtifactRegistryFutureStub newFutureStub(io.grpc.Channel channel) {\n io.grpc.stub.AbstractStub.StubFactory<ArtifactRegistryFutureStub> factory =\n new io.grpc.stub.AbstractStub.StubFactory<ArtifactRegistryFutureStub>() {\n @java.lang.Override\n public ArtifactRegistryFutureStub newStub(\n io.grpc.Channel channel, io.grpc.CallOptions callOptions) {\n return new ArtifactRegistryFutureStub(channel, callOptions);\n }\n };\n return ArtifactRegistryFutureStub.newStub(factory, channel);\n }", "public OperationFutureImpl(\n RetryingFuture<OperationSnapshot> pollingFuture,\n ApiFuture<OperationSnapshot> initialFuture,\n ApiFunction<OperationSnapshot, ResponseT> responseTransformer,\n ApiFunction<OperationSnapshot, MetadataT> metadataTransformer) {\n this.pollingFuture = checkNotNull(pollingFuture);\n this.initialFuture = checkNotNull(initialFuture);\n this.resultFuture = ApiFutures.transform(pollingFuture, responseTransformer, directExecutor());\n this.metadataTransformer = checkNotNull(metadataTransformer);\n }", "public static NoiseMonitorServiceFutureStub newFutureStub(\n io.grpc.Channel channel) {\n return new NoiseMonitorServiceFutureStub(channel);\n }", "public Ice.AsyncResult begin_startService(String service, Ice.Callback __cb);", "public static LogFutureStub newFutureStub(\n io.grpc.Channel channel) {\n return new LogFutureStub(channel);\n }", "public interface AsyncService {\n\n /**\n *\n *\n * <pre>\n * Creates a namespace, and returns the new namespace.\n * </pre>\n */\n default void createNamespace(\n com.google.cloud.servicedirectory.v1beta1.CreateNamespaceRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.servicedirectory.v1beta1.Namespace>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getCreateNamespaceMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Lists all namespaces.\n * </pre>\n */\n default void listNamespaces(\n com.google.cloud.servicedirectory.v1beta1.ListNamespacesRequest request,\n io.grpc.stub.StreamObserver<\n com.google.cloud.servicedirectory.v1beta1.ListNamespacesResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getListNamespacesMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Gets a namespace.\n * </pre>\n */\n default void getNamespace(\n com.google.cloud.servicedirectory.v1beta1.GetNamespaceRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.servicedirectory.v1beta1.Namespace>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGetNamespaceMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Updates a namespace.\n * </pre>\n */\n default void updateNamespace(\n com.google.cloud.servicedirectory.v1beta1.UpdateNamespaceRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.servicedirectory.v1beta1.Namespace>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getUpdateNamespaceMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Deletes a namespace. This also deletes all services and endpoints in\n * the namespace.\n * </pre>\n */\n default void deleteNamespace(\n com.google.cloud.servicedirectory.v1beta1.DeleteNamespaceRequest request,\n io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getDeleteNamespaceMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Creates a service, and returns the new service.\n * </pre>\n */\n default void createService(\n com.google.cloud.servicedirectory.v1beta1.CreateServiceRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.servicedirectory.v1beta1.Service>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getCreateServiceMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Lists all services belonging to a namespace.\n * </pre>\n */\n default void listServices(\n com.google.cloud.servicedirectory.v1beta1.ListServicesRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.servicedirectory.v1beta1.ListServicesResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getListServicesMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Gets a service.\n * </pre>\n */\n default void getService(\n com.google.cloud.servicedirectory.v1beta1.GetServiceRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.servicedirectory.v1beta1.Service>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetServiceMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Updates a service.\n * </pre>\n */\n default void updateService(\n com.google.cloud.servicedirectory.v1beta1.UpdateServiceRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.servicedirectory.v1beta1.Service>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getUpdateServiceMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Deletes a service. This also deletes all endpoints associated with\n * the service.\n * </pre>\n */\n default void deleteService(\n com.google.cloud.servicedirectory.v1beta1.DeleteServiceRequest request,\n io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getDeleteServiceMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Creates an endpoint, and returns the new endpoint.\n * </pre>\n */\n default void createEndpoint(\n com.google.cloud.servicedirectory.v1beta1.CreateEndpointRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.servicedirectory.v1beta1.Endpoint>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getCreateEndpointMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Lists all endpoints.\n * </pre>\n */\n default void listEndpoints(\n com.google.cloud.servicedirectory.v1beta1.ListEndpointsRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.servicedirectory.v1beta1.ListEndpointsResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getListEndpointsMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Gets an endpoint.\n * </pre>\n */\n default void getEndpoint(\n com.google.cloud.servicedirectory.v1beta1.GetEndpointRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.servicedirectory.v1beta1.Endpoint>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGetEndpointMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Updates an endpoint.\n * </pre>\n */\n default void updateEndpoint(\n com.google.cloud.servicedirectory.v1beta1.UpdateEndpointRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.servicedirectory.v1beta1.Endpoint>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getUpdateEndpointMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Deletes an endpoint.\n * </pre>\n */\n default void deleteEndpoint(\n com.google.cloud.servicedirectory.v1beta1.DeleteEndpointRequest request,\n io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getDeleteEndpointMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Gets the IAM Policy for a resource\n * </pre>\n */\n default void getIamPolicy(\n com.google.iam.v1.GetIamPolicyRequest request,\n io.grpc.stub.StreamObserver<com.google.iam.v1.Policy> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGetIamPolicyMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Sets the IAM Policy for a resource\n * </pre>\n */\n default void setIamPolicy(\n com.google.iam.v1.SetIamPolicyRequest request,\n io.grpc.stub.StreamObserver<com.google.iam.v1.Policy> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getSetIamPolicyMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Tests IAM permissions for a resource (namespace, service or\n * service workload only).\n * </pre>\n */\n default void testIamPermissions(\n com.google.iam.v1.TestIamPermissionsRequest request,\n io.grpc.stub.StreamObserver<com.google.iam.v1.TestIamPermissionsResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getTestIamPermissionsMethod(), responseObserver);\n }\n }", "public Ice.AsyncResult begin_startService(String service);", "@RemoteServiceClient(SimpleHttpService.class)\npublic interface ISimpleHttpServiceClient extends IServiceClient {\n\n @RemoteMessageClient(SimpleHttpService.REQUEST_START)\n void bootup(int port);\n\n @RemoteMessageClient(SimpleHttpService.REQUEST_STOP)\n void shutdown();\n\n @RemoteMessageClient(SimpleHttpService.REQUEST_INFO)\n void info(int port);\n}", "public interface AsynService {\n void asynMethod();\n}", "public interface StockService extends Service<Stock> {\n List<Stock> selectByDisappear();\n}", "public ChannelProgressivePromise unvoid()\r\n/* 141: */ {\r\n/* 142:172 */ return this;\r\n/* 143: */ }", "@Deprecated\npublic interface OrderCompanyJournalReadRpcService {\n\n\n}", "void removeFutureInstance();", "public static ABCIApplicationFutureStub newFutureStub(\n io.grpc.Channel channel) {\n return new ABCIApplicationFutureStub(channel);\n }", "public interface Stream<T> extends Lifecycle {\n\n PendingRequest<T> next(int requestId, T request);\n\n int getPendingRequestCount();\n\n ClientResponseObserver<T, RpcResult> newObserver();\n\n\n final class PendingRequest<T> {\n\n private final T request;\n\n private final int requestId;\n\n private final SettableFuture<com.baichen.jraft.transport.RpcResult> future;\n\n private RepeatableTimer.TimerTask timeout;\n\n private long startTime;\n\n public PendingRequest(T request, int requestId, SettableFuture<com.baichen.jraft.transport.RpcResult> future) {\n this.request = request;\n this.requestId = requestId;\n this.future = future;\n }\n\n public long getStartTime() {\n return startTime;\n }\n\n public void setStartTime(long startTime) {\n this.startTime = startTime;\n }\n\n public void setTimeout(RepeatableTimer.TimerTask timeout) {\n this.timeout = timeout;\n }\n\n public RepeatableTimer.TimerTask getTimeout() {\n return timeout;\n }\n\n public T getRequest() {\n return request;\n }\n\n public int getRequestId() {\n return requestId;\n }\n\n public SettableFuture<com.baichen.jraft.transport.RpcResult> getFuture() {\n return future;\n }\n }\n}", "public static void forward()\n {\n throw new UnsupportedOperationException();\n }", "public interface ListenerableFuture<T> extends Future<T> {\n\tpublic void addListener(Runnable runnable);\n}", "public ChannelFuture method_4097() {\n return null;\n }", "public interface RLatitudeServiceAsync {\r\n\r\n\tvoid sayHello(AsyncCallback<String> callback);\r\n\r\n\tvoid publishUser(String name, String firstName, String dateNaissance,\r\n\t\t\tAsyncCallback< String > callback );\r\n\t\r\n\tvoid checkPasswordLoginValidity( String login, String password, AsyncCallback< Boolean > callback );\r\n\t\r\n\tvoid publishAuthentication( String uid, String login, String password, AsyncCallback</*IUser*/Void> callback );\r\n\t\r\n\tvoid connect(String login, String password, AsyncCallback< String > callback);\r\n\t\r\n\tvoid disconnect(String uid, AsyncCallback< Boolean > callback);\r\n\t\r\n\tvoid changeMyVisibility(String uid, boolean visibility,\r\n\t\t\tAsyncCallback<Boolean> callback);\r\n\r\n\tvoid getVisibility(String uid, AsyncCallback<Boolean> callback);\r\n\t\r\n\tvoid setCurrentPostion(String uid, Position position,\r\n\t\t\tAsyncCallback<Void> callback);\r\n\t\r\n\tvoid addContact( String uidUser, String uidContact, AsyncCallback< Void > callback );\r\n\t\r\n\tvoid getContact( String uid,\r\n\t\t\tAsyncCallback< List< ResolvedContact > > callback );\r\n\t\r\n\tvoid getUser( String name, String lastName, AsyncCallback<ResolvedUser> callback );\r\n\t\r\n\tvoid getUser(String uid,AsyncCallback<ResolvedUser> callback);\r\n\r\n\tvoid getPosition( String uidUser, AsyncCallback< Position > callback );\r\n\r\n}", "public static ExtractionServiceStub newStub(io.grpc.Channel channel) {\n io.grpc.stub.AbstractStub.StubFactory<ExtractionServiceStub> factory =\n new io.grpc.stub.AbstractStub.StubFactory<ExtractionServiceStub>() {\n @Override\n public ExtractionServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {\n return new ExtractionServiceStub(channel, callOptions);\n }\n };\n return ExtractionServiceStub.newStub(factory, channel);\n }", "public AsyncService() {\n super(2, 2);\n }", "@Override\r\n\tpublic Response invoke() {\n\t\treturn null;\r\n\t}", "@Test\n public void testAddSynchronousResponseHandler() {\n System.out.println(\"addSynchronousResponseHandler\");\n String sa = \"testhandler\";\n SynchronousResponseHandler h = (SpineSOAPRequest r) -> {\n };\n instance.addSynchronousResponseHandler(sa, h);\n }", "@RemoteServiceRelativePath(\"greet\")\npublic interface MyBitService extends RemoteService {\n OrderInfoList getOrderInfoList() throws IllegalArgumentException;\n\n CoinInfoList getCoinInfoList() throws IllegalArgumentException;\n\n ExchangeInfoList getExchangeInfoList() throws IllegalArgumentException;\n\n CompareInfoList getCompareInfoList() throws IllegalArgumentException;\n\n String toggleBot() throws IllegalArgumentException;\n\n String setThreshold(Double threshold) throws IllegalArgumentException;\n\n String getThreshold() throws IllegalArgumentException;\n\n public static class App {\n private static MyBitServiceAsync ourInstance = GWT.create(MyBitService.class);\n\n public static synchronized MyBitServiceAsync getInstance() {\n return ourInstance;\n }\n }\n}", "private <T> Future<T> newFuture(final T response) {\n FutureTask<T> t = new FutureTask<T>(new Callable<T>() {\n @Override\n public T call() {\n return response;\n }\n });\n t.run();\n return t;\n }", "OperationContinuation createOperationContinuation();", "public interface IBluetoothHeadset\n extends IInterface {\n public static abstract class Stub extends Binder\n implements IBluetoothHeadset {\n private static class Proxy\n implements IBluetoothHeadset {\n\n public boolean acceptIncomingConnect(BluetoothDevice bluetoothdevice) throws RemoteException {\n boolean flag;\n Parcel parcel;\n Parcel parcel1;\n flag = true;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"android.bluetooth.IBluetoothHeadset\");\n if(bluetoothdevice == null)\n break MISSING_BLOCK_LABEL_76;\n parcel.writeInt(1);\n bluetoothdevice.writeToParcel(parcel, 0);\n_L1:\n int i;\n mRemote.transact(13, parcel, parcel1, 0);\n parcel1.readException();\n i = parcel1.readInt();\n Exception exception;\n if(i == 0)\n flag = false;\n parcel1.recycle();\n parcel.recycle();\n return flag;\n parcel.writeInt(0);\n goto _L1\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public IBinder asBinder() {\n return mRemote;\n }\n\n public boolean cancelConnectThread() throws RemoteException {\n boolean flag;\n Parcel parcel;\n Parcel parcel1;\n flag = false;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n int i;\n parcel.writeInterfaceToken(\"android.bluetooth.IBluetoothHeadset\");\n mRemote.transact(15, parcel, parcel1, 0);\n parcel1.readException();\n i = parcel1.readInt();\n if(i != 0)\n flag = true;\n parcel1.recycle();\n parcel.recycle();\n return flag;\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public boolean connect(BluetoothDevice bluetoothdevice) throws RemoteException {\n boolean flag;\n Parcel parcel;\n Parcel parcel1;\n flag = true;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"android.bluetooth.IBluetoothHeadset\");\n if(bluetoothdevice == null)\n break MISSING_BLOCK_LABEL_75;\n parcel.writeInt(1);\n bluetoothdevice.writeToParcel(parcel, 0);\n_L1:\n int i;\n mRemote.transact(1, parcel, parcel1, 0);\n parcel1.readException();\n i = parcel1.readInt();\n Exception exception;\n if(i == 0)\n flag = false;\n parcel1.recycle();\n parcel.recycle();\n return flag;\n parcel.writeInt(0);\n goto _L1\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public boolean connectHeadsetInternal(BluetoothDevice bluetoothdevice) throws RemoteException {\n boolean flag;\n Parcel parcel;\n Parcel parcel1;\n flag = true;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"android.bluetooth.IBluetoothHeadset\");\n if(bluetoothdevice == null)\n break MISSING_BLOCK_LABEL_76;\n parcel.writeInt(1);\n bluetoothdevice.writeToParcel(parcel, 0);\n_L1:\n int i;\n mRemote.transact(16, parcel, parcel1, 0);\n parcel1.readException();\n i = parcel1.readInt();\n Exception exception;\n if(i == 0)\n flag = false;\n parcel1.recycle();\n parcel.recycle();\n return flag;\n parcel.writeInt(0);\n goto _L1\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public boolean createIncomingConnect(BluetoothDevice bluetoothdevice) throws RemoteException {\n boolean flag;\n Parcel parcel;\n Parcel parcel1;\n flag = true;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"android.bluetooth.IBluetoothHeadset\");\n if(bluetoothdevice == null)\n break MISSING_BLOCK_LABEL_76;\n parcel.writeInt(1);\n bluetoothdevice.writeToParcel(parcel, 0);\n_L1:\n int i;\n mRemote.transact(12, parcel, parcel1, 0);\n parcel1.readException();\n i = parcel1.readInt();\n Exception exception;\n if(i == 0)\n flag = false;\n parcel1.recycle();\n parcel.recycle();\n return flag;\n parcel.writeInt(0);\n goto _L1\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public boolean disconnect(BluetoothDevice bluetoothdevice) throws RemoteException {\n boolean flag;\n Parcel parcel;\n Parcel parcel1;\n flag = true;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"android.bluetooth.IBluetoothHeadset\");\n if(bluetoothdevice == null)\n break MISSING_BLOCK_LABEL_75;\n parcel.writeInt(1);\n bluetoothdevice.writeToParcel(parcel, 0);\n_L1:\n int i;\n mRemote.transact(2, parcel, parcel1, 0);\n parcel1.readException();\n i = parcel1.readInt();\n Exception exception;\n if(i == 0)\n flag = false;\n parcel1.recycle();\n parcel.recycle();\n return flag;\n parcel.writeInt(0);\n goto _L1\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public boolean disconnectHeadsetInternal(BluetoothDevice bluetoothdevice) throws RemoteException {\n boolean flag;\n Parcel parcel;\n Parcel parcel1;\n flag = true;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"android.bluetooth.IBluetoothHeadset\");\n if(bluetoothdevice == null)\n break MISSING_BLOCK_LABEL_76;\n parcel.writeInt(1);\n bluetoothdevice.writeToParcel(parcel, 0);\n_L1:\n int i;\n mRemote.transact(17, parcel, parcel1, 0);\n parcel1.readException();\n i = parcel1.readInt();\n Exception exception;\n if(i == 0)\n flag = false;\n parcel1.recycle();\n parcel.recycle();\n return flag;\n parcel.writeInt(0);\n goto _L1\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public int getAudioState(BluetoothDevice bluetoothdevice) throws RemoteException {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"android.bluetooth.IBluetoothHeadset\");\n if(bluetoothdevice == null)\n break MISSING_BLOCK_LABEL_65;\n parcel.writeInt(1);\n bluetoothdevice.writeToParcel(parcel, 0);\n_L1:\n int i;\n mRemote.transact(19, parcel, parcel1, 0);\n parcel1.readException();\n i = parcel1.readInt();\n parcel1.recycle();\n parcel.recycle();\n return i;\n parcel.writeInt(0);\n goto _L1\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public int getBatteryUsageHint(BluetoothDevice bluetoothdevice) throws RemoteException {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"android.bluetooth.IBluetoothHeadset\");\n if(bluetoothdevice == null)\n break MISSING_BLOCK_LABEL_65;\n parcel.writeInt(1);\n bluetoothdevice.writeToParcel(parcel, 0);\n_L1:\n int i;\n mRemote.transact(11, parcel, parcel1, 0);\n parcel1.readException();\n i = parcel1.readInt();\n parcel1.recycle();\n parcel.recycle();\n return i;\n parcel.writeInt(0);\n goto _L1\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public List getConnectedDevices() throws RemoteException {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n java.util.ArrayList arraylist;\n parcel.writeInterfaceToken(\"android.bluetooth.IBluetoothHeadset\");\n mRemote.transact(3, parcel, parcel1, 0);\n parcel1.readException();\n arraylist = parcel1.createTypedArrayList(BluetoothDevice.CREATOR);\n parcel1.recycle();\n parcel.recycle();\n return arraylist;\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public int getConnectionState(BluetoothDevice bluetoothdevice) throws RemoteException {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"android.bluetooth.IBluetoothHeadset\");\n if(bluetoothdevice == null)\n break MISSING_BLOCK_LABEL_64;\n parcel.writeInt(1);\n bluetoothdevice.writeToParcel(parcel, 0);\n_L1:\n int i;\n mRemote.transact(5, parcel, parcel1, 0);\n parcel1.readException();\n i = parcel1.readInt();\n parcel1.recycle();\n parcel.recycle();\n return i;\n parcel.writeInt(0);\n goto _L1\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public List getDevicesMatchingConnectionStates(int ai[]) throws RemoteException {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n java.util.ArrayList arraylist;\n parcel.writeInterfaceToken(\"android.bluetooth.IBluetoothHeadset\");\n parcel.writeIntArray(ai);\n mRemote.transact(4, parcel, parcel1, 0);\n parcel1.readException();\n arraylist = parcel1.createTypedArrayList(BluetoothDevice.CREATOR);\n parcel1.recycle();\n parcel.recycle();\n return arraylist;\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public String getInterfaceDescriptor() {\n return \"android.bluetooth.IBluetoothHeadset\";\n }\n\n public int getPriority(BluetoothDevice bluetoothdevice) throws RemoteException {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"android.bluetooth.IBluetoothHeadset\");\n if(bluetoothdevice == null)\n break MISSING_BLOCK_LABEL_65;\n parcel.writeInt(1);\n bluetoothdevice.writeToParcel(parcel, 0);\n_L1:\n int i;\n mRemote.transact(7, parcel, parcel1, 0);\n parcel1.readException();\n i = parcel1.readInt();\n parcel1.recycle();\n parcel.recycle();\n return i;\n parcel.writeInt(0);\n goto _L1\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public boolean isAudioConnected(BluetoothDevice bluetoothdevice) throws RemoteException {\n boolean flag;\n Parcel parcel;\n Parcel parcel1;\n flag = true;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"android.bluetooth.IBluetoothHeadset\");\n if(bluetoothdevice == null)\n break MISSING_BLOCK_LABEL_76;\n parcel.writeInt(1);\n bluetoothdevice.writeToParcel(parcel, 0);\n_L1:\n int i;\n mRemote.transact(10, parcel, parcel1, 0);\n parcel1.readException();\n i = parcel1.readInt();\n Exception exception;\n if(i == 0)\n flag = false;\n parcel1.recycle();\n parcel.recycle();\n return flag;\n parcel.writeInt(0);\n goto _L1\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public boolean rejectIncomingConnect(BluetoothDevice bluetoothdevice) throws RemoteException {\n boolean flag;\n Parcel parcel;\n Parcel parcel1;\n flag = true;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"android.bluetooth.IBluetoothHeadset\");\n if(bluetoothdevice == null)\n break MISSING_BLOCK_LABEL_76;\n parcel.writeInt(1);\n bluetoothdevice.writeToParcel(parcel, 0);\n_L1:\n int i;\n mRemote.transact(14, parcel, parcel1, 0);\n parcel1.readException();\n i = parcel1.readInt();\n Exception exception;\n if(i == 0)\n flag = false;\n parcel1.recycle();\n parcel.recycle();\n return flag;\n parcel.writeInt(0);\n goto _L1\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public boolean setAudioState(BluetoothDevice bluetoothdevice, int i) throws RemoteException {\n boolean flag;\n Parcel parcel;\n Parcel parcel1;\n flag = true;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"android.bluetooth.IBluetoothHeadset\");\n if(bluetoothdevice == null)\n break MISSING_BLOCK_LABEL_88;\n parcel.writeInt(1);\n bluetoothdevice.writeToParcel(parcel, 0);\n_L1:\n int j;\n parcel.writeInt(i);\n mRemote.transact(18, parcel, parcel1, 0);\n parcel1.readException();\n j = parcel1.readInt();\n Exception exception;\n if(j == 0)\n flag = false;\n parcel1.recycle();\n parcel.recycle();\n return flag;\n parcel.writeInt(0);\n goto _L1\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public boolean setPriority(BluetoothDevice bluetoothdevice, int i) throws RemoteException {\n boolean flag;\n Parcel parcel;\n Parcel parcel1;\n flag = true;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"android.bluetooth.IBluetoothHeadset\");\n if(bluetoothdevice == null)\n break MISSING_BLOCK_LABEL_88;\n parcel.writeInt(1);\n bluetoothdevice.writeToParcel(parcel, 0);\n_L1:\n int j;\n parcel.writeInt(i);\n mRemote.transact(6, parcel, parcel1, 0);\n parcel1.readException();\n j = parcel1.readInt();\n Exception exception;\n if(j == 0)\n flag = false;\n parcel1.recycle();\n parcel.recycle();\n return flag;\n parcel.writeInt(0);\n goto _L1\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public boolean startScoUsingVirtualVoiceCall(BluetoothDevice bluetoothdevice) throws RemoteException {\n boolean flag;\n Parcel parcel;\n Parcel parcel1;\n flag = true;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"android.bluetooth.IBluetoothHeadset\");\n if(bluetoothdevice == null)\n break MISSING_BLOCK_LABEL_76;\n parcel.writeInt(1);\n bluetoothdevice.writeToParcel(parcel, 0);\n_L1:\n int i;\n mRemote.transact(20, parcel, parcel1, 0);\n parcel1.readException();\n i = parcel1.readInt();\n Exception exception;\n if(i == 0)\n flag = false;\n parcel1.recycle();\n parcel.recycle();\n return flag;\n parcel.writeInt(0);\n goto _L1\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public boolean startVoiceRecognition(BluetoothDevice bluetoothdevice) throws RemoteException {\n boolean flag;\n Parcel parcel;\n Parcel parcel1;\n flag = true;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"android.bluetooth.IBluetoothHeadset\");\n if(bluetoothdevice == null)\n break MISSING_BLOCK_LABEL_76;\n parcel.writeInt(1);\n bluetoothdevice.writeToParcel(parcel, 0);\n_L1:\n int i;\n mRemote.transact(8, parcel, parcel1, 0);\n parcel1.readException();\n i = parcel1.readInt();\n Exception exception;\n if(i == 0)\n flag = false;\n parcel1.recycle();\n parcel.recycle();\n return flag;\n parcel.writeInt(0);\n goto _L1\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public boolean stopScoUsingVirtualVoiceCall(BluetoothDevice bluetoothdevice) throws RemoteException {\n boolean flag;\n Parcel parcel;\n Parcel parcel1;\n flag = true;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"android.bluetooth.IBluetoothHeadset\");\n if(bluetoothdevice == null)\n break MISSING_BLOCK_LABEL_76;\n parcel.writeInt(1);\n bluetoothdevice.writeToParcel(parcel, 0);\n_L1:\n int i;\n mRemote.transact(21, parcel, parcel1, 0);\n parcel1.readException();\n i = parcel1.readInt();\n Exception exception;\n if(i == 0)\n flag = false;\n parcel1.recycle();\n parcel.recycle();\n return flag;\n parcel.writeInt(0);\n goto _L1\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public boolean stopVoiceRecognition(BluetoothDevice bluetoothdevice) throws RemoteException {\n boolean flag;\n Parcel parcel;\n Parcel parcel1;\n flag = true;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"android.bluetooth.IBluetoothHeadset\");\n if(bluetoothdevice == null)\n break MISSING_BLOCK_LABEL_76;\n parcel.writeInt(1);\n bluetoothdevice.writeToParcel(parcel, 0);\n_L1:\n int i;\n mRemote.transact(9, parcel, parcel1, 0);\n parcel1.readException();\n i = parcel1.readInt();\n Exception exception;\n if(i == 0)\n flag = false;\n parcel1.recycle();\n parcel.recycle();\n return flag;\n parcel.writeInt(0);\n goto _L1\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n private IBinder mRemote;\n\n Proxy(IBinder ibinder) {\n mRemote = ibinder;\n }\n }\n\n\n public static IBluetoothHeadset asInterface(IBinder ibinder) {\n Object obj;\n if(ibinder == null) {\n obj = null;\n } else {\n IInterface iinterface = ibinder.queryLocalInterface(\"android.bluetooth.IBluetoothHeadset\");\n if(iinterface != null && (iinterface instanceof IBluetoothHeadset))\n obj = (IBluetoothHeadset)iinterface;\n else\n obj = new Proxy(ibinder);\n }\n return ((IBluetoothHeadset) (obj));\n }\n\n public IBinder asBinder() {\n return this;\n }\n\n public boolean onTransact(int i, Parcel parcel, Parcel parcel1, int j) throws RemoteException {\n int k;\n boolean flag;\n k = 0;\n flag = true;\n i;\n JVM INSTR lookupswitch 22: default 192\n // 1: 215\n // 2: 278\n // 3: 341\n // 4: 366\n // 5: 395\n // 6: 449\n // 7: 516\n // 8: 570\n // 9: 633\n // 10: 696\n // 11: 759\n // 12: 813\n // 13: 876\n // 14: 939\n // 15: 1002\n // 16: 1036\n // 17: 1099\n // 18: 1162\n // 19: 1229\n // 20: 1283\n // 21: 1346\n // 1598968902: 206;\n goto _L1 _L2 _L3 _L4 _L5 _L6 _L7 _L8 _L9 _L10 _L11 _L12 _L13 _L14 _L15 _L16 _L17 _L18 _L19 _L20 _L21 _L22 _L23\n_L1:\n flag = super.onTransact(i, parcel, parcel1, j);\n_L25:\n return flag;\n_L23:\n parcel1.writeString(\"android.bluetooth.IBluetoothHeadset\");\n continue; /* Loop/switch isn't completed */\n_L2:\n parcel.enforceInterface(\"android.bluetooth.IBluetoothHeadset\");\n BluetoothDevice bluetoothdevice17;\n boolean flag15;\n if(parcel.readInt() != 0)\n bluetoothdevice17 = (BluetoothDevice)BluetoothDevice.CREATOR.createFromParcel(parcel);\n else\n bluetoothdevice17 = null;\n flag15 = connect(bluetoothdevice17);\n parcel1.writeNoException();\n if(flag15)\n k = ((flag) ? 1 : 0);\n parcel1.writeInt(k);\n continue; /* Loop/switch isn't completed */\n_L3:\n parcel.enforceInterface(\"android.bluetooth.IBluetoothHeadset\");\n BluetoothDevice bluetoothdevice16;\n boolean flag14;\n if(parcel.readInt() != 0)\n bluetoothdevice16 = (BluetoothDevice)BluetoothDevice.CREATOR.createFromParcel(parcel);\n else\n bluetoothdevice16 = null;\n flag14 = disconnect(bluetoothdevice16);\n parcel1.writeNoException();\n if(flag14)\n k = ((flag) ? 1 : 0);\n parcel1.writeInt(k);\n continue; /* Loop/switch isn't completed */\n_L4:\n parcel.enforceInterface(\"android.bluetooth.IBluetoothHeadset\");\n List list1 = getConnectedDevices();\n parcel1.writeNoException();\n parcel1.writeTypedList(list1);\n continue; /* Loop/switch isn't completed */\n_L5:\n parcel.enforceInterface(\"android.bluetooth.IBluetoothHeadset\");\n List list = getDevicesMatchingConnectionStates(parcel.createIntArray());\n parcel1.writeNoException();\n parcel1.writeTypedList(list);\n continue; /* Loop/switch isn't completed */\n_L6:\n parcel.enforceInterface(\"android.bluetooth.IBluetoothHeadset\");\n BluetoothDevice bluetoothdevice15;\n int k1;\n if(parcel.readInt() != 0)\n bluetoothdevice15 = (BluetoothDevice)BluetoothDevice.CREATOR.createFromParcel(parcel);\n else\n bluetoothdevice15 = null;\n k1 = getConnectionState(bluetoothdevice15);\n parcel1.writeNoException();\n parcel1.writeInt(k1);\n continue; /* Loop/switch isn't completed */\n_L7:\n parcel.enforceInterface(\"android.bluetooth.IBluetoothHeadset\");\n BluetoothDevice bluetoothdevice14;\n boolean flag13;\n if(parcel.readInt() != 0)\n bluetoothdevice14 = (BluetoothDevice)BluetoothDevice.CREATOR.createFromParcel(parcel);\n else\n bluetoothdevice14 = null;\n flag13 = setPriority(bluetoothdevice14, parcel.readInt());\n parcel1.writeNoException();\n if(flag13)\n k = ((flag) ? 1 : 0);\n parcel1.writeInt(k);\n continue; /* Loop/switch isn't completed */\n_L8:\n parcel.enforceInterface(\"android.bluetooth.IBluetoothHeadset\");\n BluetoothDevice bluetoothdevice13;\n int j1;\n if(parcel.readInt() != 0)\n bluetoothdevice13 = (BluetoothDevice)BluetoothDevice.CREATOR.createFromParcel(parcel);\n else\n bluetoothdevice13 = null;\n j1 = getPriority(bluetoothdevice13);\n parcel1.writeNoException();\n parcel1.writeInt(j1);\n continue; /* Loop/switch isn't completed */\n_L9:\n parcel.enforceInterface(\"android.bluetooth.IBluetoothHeadset\");\n BluetoothDevice bluetoothdevice12;\n boolean flag12;\n if(parcel.readInt() != 0)\n bluetoothdevice12 = (BluetoothDevice)BluetoothDevice.CREATOR.createFromParcel(parcel);\n else\n bluetoothdevice12 = null;\n flag12 = startVoiceRecognition(bluetoothdevice12);\n parcel1.writeNoException();\n if(flag12)\n k = ((flag) ? 1 : 0);\n parcel1.writeInt(k);\n continue; /* Loop/switch isn't completed */\n_L10:\n parcel.enforceInterface(\"android.bluetooth.IBluetoothHeadset\");\n BluetoothDevice bluetoothdevice11;\n boolean flag11;\n if(parcel.readInt() != 0)\n bluetoothdevice11 = (BluetoothDevice)BluetoothDevice.CREATOR.createFromParcel(parcel);\n else\n bluetoothdevice11 = null;\n flag11 = stopVoiceRecognition(bluetoothdevice11);\n parcel1.writeNoException();\n if(flag11)\n k = ((flag) ? 1 : 0);\n parcel1.writeInt(k);\n continue; /* Loop/switch isn't completed */\n_L11:\n parcel.enforceInterface(\"android.bluetooth.IBluetoothHeadset\");\n BluetoothDevice bluetoothdevice10;\n boolean flag10;\n if(parcel.readInt() != 0)\n bluetoothdevice10 = (BluetoothDevice)BluetoothDevice.CREATOR.createFromParcel(parcel);\n else\n bluetoothdevice10 = null;\n flag10 = isAudioConnected(bluetoothdevice10);\n parcel1.writeNoException();\n if(flag10)\n k = ((flag) ? 1 : 0);\n parcel1.writeInt(k);\n continue; /* Loop/switch isn't completed */\n_L12:\n parcel.enforceInterface(\"android.bluetooth.IBluetoothHeadset\");\n BluetoothDevice bluetoothdevice9;\n int i1;\n if(parcel.readInt() != 0)\n bluetoothdevice9 = (BluetoothDevice)BluetoothDevice.CREATOR.createFromParcel(parcel);\n else\n bluetoothdevice9 = null;\n i1 = getBatteryUsageHint(bluetoothdevice9);\n parcel1.writeNoException();\n parcel1.writeInt(i1);\n continue; /* Loop/switch isn't completed */\n_L13:\n parcel.enforceInterface(\"android.bluetooth.IBluetoothHeadset\");\n BluetoothDevice bluetoothdevice8;\n boolean flag9;\n if(parcel.readInt() != 0)\n bluetoothdevice8 = (BluetoothDevice)BluetoothDevice.CREATOR.createFromParcel(parcel);\n else\n bluetoothdevice8 = null;\n flag9 = createIncomingConnect(bluetoothdevice8);\n parcel1.writeNoException();\n if(flag9)\n k = ((flag) ? 1 : 0);\n parcel1.writeInt(k);\n continue; /* Loop/switch isn't completed */\n_L14:\n parcel.enforceInterface(\"android.bluetooth.IBluetoothHeadset\");\n BluetoothDevice bluetoothdevice7;\n boolean flag8;\n if(parcel.readInt() != 0)\n bluetoothdevice7 = (BluetoothDevice)BluetoothDevice.CREATOR.createFromParcel(parcel);\n else\n bluetoothdevice7 = null;\n flag8 = acceptIncomingConnect(bluetoothdevice7);\n parcel1.writeNoException();\n if(flag8)\n k = ((flag) ? 1 : 0);\n parcel1.writeInt(k);\n continue; /* Loop/switch isn't completed */\n_L15:\n parcel.enforceInterface(\"android.bluetooth.IBluetoothHeadset\");\n BluetoothDevice bluetoothdevice6;\n boolean flag7;\n if(parcel.readInt() != 0)\n bluetoothdevice6 = (BluetoothDevice)BluetoothDevice.CREATOR.createFromParcel(parcel);\n else\n bluetoothdevice6 = null;\n flag7 = rejectIncomingConnect(bluetoothdevice6);\n parcel1.writeNoException();\n if(flag7)\n k = ((flag) ? 1 : 0);\n parcel1.writeInt(k);\n continue; /* Loop/switch isn't completed */\n_L16:\n parcel.enforceInterface(\"android.bluetooth.IBluetoothHeadset\");\n boolean flag6 = cancelConnectThread();\n parcel1.writeNoException();\n if(flag6)\n k = ((flag) ? 1 : 0);\n parcel1.writeInt(k);\n continue; /* Loop/switch isn't completed */\n_L17:\n parcel.enforceInterface(\"android.bluetooth.IBluetoothHeadset\");\n BluetoothDevice bluetoothdevice5;\n boolean flag5;\n if(parcel.readInt() != 0)\n bluetoothdevice5 = (BluetoothDevice)BluetoothDevice.CREATOR.createFromParcel(parcel);\n else\n bluetoothdevice5 = null;\n flag5 = connectHeadsetInternal(bluetoothdevice5);\n parcel1.writeNoException();\n if(flag5)\n k = ((flag) ? 1 : 0);\n parcel1.writeInt(k);\n continue; /* Loop/switch isn't completed */\n_L18:\n parcel.enforceInterface(\"android.bluetooth.IBluetoothHeadset\");\n BluetoothDevice bluetoothdevice4;\n boolean flag4;\n if(parcel.readInt() != 0)\n bluetoothdevice4 = (BluetoothDevice)BluetoothDevice.CREATOR.createFromParcel(parcel);\n else\n bluetoothdevice4 = null;\n flag4 = disconnectHeadsetInternal(bluetoothdevice4);\n parcel1.writeNoException();\n if(flag4)\n k = ((flag) ? 1 : 0);\n parcel1.writeInt(k);\n continue; /* Loop/switch isn't completed */\n_L19:\n parcel.enforceInterface(\"android.bluetooth.IBluetoothHeadset\");\n BluetoothDevice bluetoothdevice3;\n boolean flag3;\n if(parcel.readInt() != 0)\n bluetoothdevice3 = (BluetoothDevice)BluetoothDevice.CREATOR.createFromParcel(parcel);\n else\n bluetoothdevice3 = null;\n flag3 = setAudioState(bluetoothdevice3, parcel.readInt());\n parcel1.writeNoException();\n if(flag3)\n k = ((flag) ? 1 : 0);\n parcel1.writeInt(k);\n continue; /* Loop/switch isn't completed */\n_L20:\n parcel.enforceInterface(\"android.bluetooth.IBluetoothHeadset\");\n BluetoothDevice bluetoothdevice2;\n int l;\n if(parcel.readInt() != 0)\n bluetoothdevice2 = (BluetoothDevice)BluetoothDevice.CREATOR.createFromParcel(parcel);\n else\n bluetoothdevice2 = null;\n l = getAudioState(bluetoothdevice2);\n parcel1.writeNoException();\n parcel1.writeInt(l);\n continue; /* Loop/switch isn't completed */\n_L21:\n parcel.enforceInterface(\"android.bluetooth.IBluetoothHeadset\");\n BluetoothDevice bluetoothdevice1;\n boolean flag2;\n if(parcel.readInt() != 0)\n bluetoothdevice1 = (BluetoothDevice)BluetoothDevice.CREATOR.createFromParcel(parcel);\n else\n bluetoothdevice1 = null;\n flag2 = startScoUsingVirtualVoiceCall(bluetoothdevice1);\n parcel1.writeNoException();\n if(flag2)\n k = ((flag) ? 1 : 0);\n parcel1.writeInt(k);\n continue; /* Loop/switch isn't completed */\n_L22:\n parcel.enforceInterface(\"android.bluetooth.IBluetoothHeadset\");\n BluetoothDevice bluetoothdevice;\n boolean flag1;\n if(parcel.readInt() != 0)\n bluetoothdevice = (BluetoothDevice)BluetoothDevice.CREATOR.createFromParcel(parcel);\n else\n bluetoothdevice = null;\n flag1 = stopScoUsingVirtualVoiceCall(bluetoothdevice);\n parcel1.writeNoException();\n if(flag1)\n k = ((flag) ? 1 : 0);\n parcel1.writeInt(k);\n if(true) goto _L25; else goto _L24\n_L24:\n }\n\n private static final String DESCRIPTOR = \"android.bluetooth.IBluetoothHeadset\";\n static final int TRANSACTION_acceptIncomingConnect = 13;\n static final int TRANSACTION_cancelConnectThread = 15;\n static final int TRANSACTION_connect = 1;\n static final int TRANSACTION_connectHeadsetInternal = 16;\n static final int TRANSACTION_createIncomingConnect = 12;\n static final int TRANSACTION_disconnect = 2;\n static final int TRANSACTION_disconnectHeadsetInternal = 17;\n static final int TRANSACTION_getAudioState = 19;\n static final int TRANSACTION_getBatteryUsageHint = 11;\n static final int TRANSACTION_getConnectedDevices = 3;\n static final int TRANSACTION_getConnectionState = 5;\n static final int TRANSACTION_getDevicesMatchingConnectionStates = 4;\n static final int TRANSACTION_getPriority = 7;\n static final int TRANSACTION_isAudioConnected = 10;\n static final int TRANSACTION_rejectIncomingConnect = 14;\n static final int TRANSACTION_setAudioState = 18;\n static final int TRANSACTION_setPriority = 6;\n static final int TRANSACTION_startScoUsingVirtualVoiceCall = 20;\n static final int TRANSACTION_startVoiceRecognition = 8;\n static final int TRANSACTION_stopScoUsingVirtualVoiceCall = 21;\n static final int TRANSACTION_stopVoiceRecognition = 9;\n\n public Stub() {\n attachInterface(this, \"android.bluetooth.IBluetoothHeadset\");\n }\n }\n\n\n public abstract boolean acceptIncomingConnect(BluetoothDevice bluetoothdevice) throws RemoteException;\n\n public abstract boolean cancelConnectThread() throws RemoteException;\n\n public abstract boolean connect(BluetoothDevice bluetoothdevice) throws RemoteException;\n\n public abstract boolean connectHeadsetInternal(BluetoothDevice bluetoothdevice) throws RemoteException;\n\n public abstract boolean createIncomingConnect(BluetoothDevice bluetoothdevice) throws RemoteException;\n\n public abstract boolean disconnect(BluetoothDevice bluetoothdevice) throws RemoteException;\n\n public abstract boolean disconnectHeadsetInternal(BluetoothDevice bluetoothdevice) throws RemoteException;\n\n public abstract int getAudioState(BluetoothDevice bluetoothdevice) throws RemoteException;\n\n public abstract int getBatteryUsageHint(BluetoothDevice bluetoothdevice) throws RemoteException;\n\n public abstract List getConnectedDevices() throws RemoteException;\n\n public abstract int getConnectionState(BluetoothDevice bluetoothdevice) throws RemoteException;\n\n public abstract List getDevicesMatchingConnectionStates(int ai[]) throws RemoteException;\n\n public abstract int getPriority(BluetoothDevice bluetoothdevice) throws RemoteException;\n\n public abstract boolean isAudioConnected(BluetoothDevice bluetoothdevice) throws RemoteException;\n\n public abstract boolean rejectIncomingConnect(BluetoothDevice bluetoothdevice) throws RemoteException;\n\n public abstract boolean setAudioState(BluetoothDevice bluetoothdevice, int i) throws RemoteException;\n\n public abstract boolean setPriority(BluetoothDevice bluetoothdevice, int i) throws RemoteException;\n\n public abstract boolean startScoUsingVirtualVoiceCall(BluetoothDevice bluetoothdevice) throws RemoteException;\n\n public abstract boolean startVoiceRecognition(BluetoothDevice bluetoothdevice) throws RemoteException;\n\n public abstract boolean stopScoUsingVirtualVoiceCall(BluetoothDevice bluetoothdevice) throws RemoteException;\n\n public abstract boolean stopVoiceRecognition(BluetoothDevice bluetoothdevice) throws RemoteException;\n}", "public interface AbstractScheduledFutureC02560jD<V> extends ScheduledFuture<V>, AnonymousClass1XI<V> {\n}", "public interface OnStart extends FuncUnit0 {\n \n public static final OnStart DoNothing = ()->{};\n \n public static OnStart run(FuncUnit0 runnable) {\n if (runnable == null)\n return null;\n \n return runnable::run;\n }\n \n}", "public Ice.AsyncResult begin_stopService(String service, Callback_ServiceManager_stopService __cb);", "public abstract @Nullable SerializableSupplier<PublisherServiceStub> stubSupplier();", "public ULocale build() {\n/* 1725 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "default void createService(\n com.google.cloud.servicedirectory.v1beta1.CreateServiceRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.servicedirectory.v1beta1.Service>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getCreateServiceMethod(), responseObserver);\n }", "public ChannelFuture method_4120() {\n return null;\n }", "public interface IMountService extends IInterface {\n /** Local-side IPC implementation stub class. */\n public static abstract class Stub extends Binder implements IMountService {\n private static class Proxy implements IMountService {\n private final IBinder mRemote;\n\n Proxy(IBinder remote) {\n mRemote = remote;\n }\n\n public IBinder asBinder() {\n return mRemote;\n }\n\n public String getInterfaceDescriptor() {\n return DESCRIPTOR;\n }\n\n /**\n * Registers an IMountServiceListener for receiving async\n * notifications.\n */\n public void registerListener(IMountServiceListener listener) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeStrongBinder((listener != null ? listener.asBinder() : null));\n mRemote.transact(Stub.TRANSACTION_registerListener, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n /**\n * Unregisters an IMountServiceListener\n */\n public void unregisterListener(IMountServiceListener listener) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeStrongBinder((listener != null ? listener.asBinder() : null));\n mRemote.transact(Stub.TRANSACTION_unregisterListener, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n /**\n * Returns true if a USB mass storage host is connected\n */\n public boolean isUsbMassStorageConnected() throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n boolean _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n mRemote.transact(Stub.TRANSACTION_isUsbMassStorageConnected, _data, _reply, 0);\n _reply.readException();\n _result = 0 != _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n /**\n * Enables / disables USB mass storage. The caller should check\n * actual status of enabling/disabling USB mass storage via\n * StorageEventListener.\n */\n public void setUsbMassStorageEnabled(boolean enable) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeInt((enable ? 1 : 0));\n mRemote.transact(Stub.TRANSACTION_setUsbMassStorageEnabled, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n /**\n * Returns true if a USB mass storage host is enabled (media is\n * shared)\n */\n public boolean isUsbMassStorageEnabled() throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n boolean _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n mRemote.transact(Stub.TRANSACTION_isUsbMassStorageEnabled, _data, _reply, 0);\n _reply.readException();\n _result = 0 != _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n /**\n * Mount external storage at given mount point. Returns an int\n * consistent with MountServiceResultCode\n */\n public int mountVolume(String mountPoint) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n int _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(mountPoint);\n mRemote.transact(Stub.TRANSACTION_mountVolume, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n /**\n * Safely unmount external storage at given mount point. The unmount\n * is an asynchronous operation. Applications should register\n * StorageEventListener for storage related status changes.\n */\n public void unmountVolume(String mountPoint, boolean force, boolean removeEncryption)\n throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(mountPoint);\n _data.writeInt((force ? 1 : 0));\n _data.writeInt((removeEncryption ? 1 : 0));\n mRemote.transact(Stub.TRANSACTION_unmountVolume, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n /**\n * Format external storage given a mount point. Returns an int\n * consistent with MountServiceResultCode\n */\n public int formatVolume(String mountPoint) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n int _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(mountPoint);\n mRemote.transact(Stub.TRANSACTION_formatVolume, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n /**\n * Returns an array of pids with open files on the specified path.\n */\n public int[] getStorageUsers(String path) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n int[] _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(path);\n mRemote.transact(Stub.TRANSACTION_getStorageUsers, _data, _reply, 0);\n _reply.readException();\n _result = _reply.createIntArray();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n /**\n * Gets the state of a volume via its mountpoint.\n */\n public String getVolumeState(String mountPoint) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n String _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(mountPoint);\n mRemote.transact(Stub.TRANSACTION_getVolumeState, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readString();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n /*\n * Creates a secure container with the specified parameters. Returns\n * an int consistent with MountServiceResultCode\n */\n public int createSecureContainer(String id, int sizeMb, String fstype, String key,\n int ownerUid, boolean external) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n int _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(id);\n _data.writeInt(sizeMb);\n _data.writeString(fstype);\n _data.writeString(key);\n _data.writeInt(ownerUid);\n _data.writeInt(external ? 1 : 0);\n mRemote.transact(Stub.TRANSACTION_createSecureContainer, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n /*\n * Destroy a secure container, and free up all resources associated\n * with it. NOTE: Ensure all references are released prior to\n * deleting. Returns an int consistent with MountServiceResultCode\n */\n public int destroySecureContainer(String id, boolean force) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n int _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(id);\n _data.writeInt((force ? 1 : 0));\n mRemote.transact(Stub.TRANSACTION_destroySecureContainer, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n /*\n * Finalize a container which has just been created and populated.\n * After finalization, the container is immutable. Returns an int\n * consistent with MountServiceResultCode\n */\n public int finalizeSecureContainer(String id) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n int _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(id);\n mRemote.transact(Stub.TRANSACTION_finalizeSecureContainer, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n /*\n * Mount a secure container with the specified key and owner UID.\n * Returns an int consistent with MountServiceResultCode\n */\n public int mountSecureContainer(String id, String key, int ownerUid, boolean readOnly)\n throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n int _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(id);\n _data.writeString(key);\n _data.writeInt(ownerUid);\n _data.writeInt(readOnly ? 1 : 0);\n mRemote.transact(Stub.TRANSACTION_mountSecureContainer, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n /*\n * Unount a secure container. Returns an int consistent with\n * MountServiceResultCode\n */\n public int unmountSecureContainer(String id, boolean force) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n int _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(id);\n _data.writeInt((force ? 1 : 0));\n mRemote.transact(Stub.TRANSACTION_unmountSecureContainer, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n /*\n * Returns true if the specified container is mounted\n */\n public boolean isSecureContainerMounted(String id) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n boolean _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(id);\n mRemote.transact(Stub.TRANSACTION_isSecureContainerMounted, _data, _reply, 0);\n _reply.readException();\n _result = 0 != _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n /*\n * Rename an unmounted secure container. Returns an int consistent\n * with MountServiceResultCode\n */\n public int renameSecureContainer(String oldId, String newId) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n int _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(oldId);\n _data.writeString(newId);\n mRemote.transact(Stub.TRANSACTION_renameSecureContainer, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n /*\n * Returns the filesystem path of a mounted secure container.\n */\n public String getSecureContainerPath(String id) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n String _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(id);\n mRemote.transact(Stub.TRANSACTION_getSecureContainerPath, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readString();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n /**\n * Gets an Array of currently known secure container IDs\n */\n public String[] getSecureContainerList() throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n String[] _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n mRemote.transact(Stub.TRANSACTION_getSecureContainerList, _data, _reply, 0);\n _reply.readException();\n _result = _reply.createStringArray();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n /**\n * Shuts down the MountService and gracefully unmounts all external\n * media. Invokes call back once the shutdown is complete.\n */\n public void shutdown(IMountShutdownObserver observer)\n throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeStrongBinder((observer != null ? observer.asBinder() : null));\n mRemote.transact(Stub.TRANSACTION_shutdown, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n /**\n * Call into MountService by PackageManager to notify that its done\n * processing the media status update request.\n */\n public void finishMediaUpdate() throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n mRemote.transact(Stub.TRANSACTION_finishMediaUpdate, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n /**\n * Mounts an Opaque Binary Blob (OBB) with the specified decryption\n * key and only allows the calling process's UID access to the\n * contents. MountService will call back to the supplied\n * IObbActionListener to inform it of the terminal state of the\n * call.\n */\n public void mountObb(String rawPath, String canonicalPath, String key,\n IObbActionListener token, int nonce) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(rawPath);\n _data.writeString(canonicalPath);\n _data.writeString(key);\n _data.writeStrongBinder((token != null ? token.asBinder() : null));\n _data.writeInt(nonce);\n mRemote.transact(Stub.TRANSACTION_mountObb, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n /**\n * Unmounts an Opaque Binary Blob (OBB). When the force flag is\n * specified, any program using it will be forcibly killed to\n * unmount the image. MountService will call back to the supplied\n * IObbActionListener to inform it of the terminal state of the\n * call.\n */\n public void unmountObb(\n String rawPath, boolean force, IObbActionListener token, int nonce)\n throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(rawPath);\n _data.writeInt((force ? 1 : 0));\n _data.writeStrongBinder((token != null ? token.asBinder() : null));\n _data.writeInt(nonce);\n mRemote.transact(Stub.TRANSACTION_unmountObb, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n /**\n * Checks whether the specified Opaque Binary Blob (OBB) is mounted\n * somewhere.\n */\n public boolean isObbMounted(String rawPath) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n boolean _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(rawPath);\n mRemote.transact(Stub.TRANSACTION_isObbMounted, _data, _reply, 0);\n _reply.readException();\n _result = 0 != _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n /**\n * Gets the path to the mounted Opaque Binary Blob (OBB).\n */\n public String getMountedObbPath(String rawPath) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n String _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(rawPath);\n mRemote.transact(Stub.TRANSACTION_getMountedObbPath, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readString();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n /**\n * Returns whether the external storage is emulated.\n */\n public boolean isExternalStorageEmulated() throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n boolean _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n mRemote.transact(Stub.TRANSACTION_isExternalStorageEmulated, _data, _reply, 0);\n _reply.readException();\n _result = 0 != _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n public int getEncryptionState() throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n int _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n mRemote.transact(Stub.TRANSACTION_getEncryptionState, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n public int decryptStorage(String password) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n int _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(password);\n mRemote.transact(Stub.TRANSACTION_decryptStorage, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n public int encryptStorage(int type, String password) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n int _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeInt(type);\n _data.writeString(password);\n mRemote.transact(Stub.TRANSACTION_encryptStorage, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n public int changeEncryptionPassword(int type, String password) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n int _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeInt(type);\n _data.writeString(password);\n mRemote.transact(Stub.TRANSACTION_changeEncryptionPassword, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n @Override\n public int verifyEncryptionPassword(String password) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n int _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(password);\n mRemote.transact(Stub.TRANSACTION_verifyEncryptionPassword, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n public int getPasswordType() throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n int _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n mRemote.transact(Stub.TRANSACTION_getPasswordType, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n public String getPassword() throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n String _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n mRemote.transact(Stub.TRANSACTION_getPassword, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readString();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n public void clearPassword() throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n mRemote.transact(Stub.TRANSACTION_clearPassword, _data, _reply, IBinder.FLAG_ONEWAY);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n public void setField(String field, String data) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(field);\n _data.writeString(data);\n mRemote.transact(Stub.TRANSACTION_setField, _data, _reply, IBinder.FLAG_ONEWAY);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n public String getField(String field) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n String _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(field);\n mRemote.transact(Stub.TRANSACTION_getField, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readString();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n public boolean isConvertibleToFBE() throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n boolean _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n mRemote.transact(Stub.TRANSACTION_isConvertibleToFBE, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readInt() != 0;\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n public StorageVolume[] getVolumeList(int uid, String packageName, int flags)\n throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n StorageVolume[] _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeInt(uid);\n _data.writeString(packageName);\n _data.writeInt(flags);\n mRemote.transact(Stub.TRANSACTION_getVolumeList, _data, _reply, 0);\n _reply.readException();\n _result = _reply.createTypedArray(StorageVolume.CREATOR);\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n /*\n * Returns the filesystem path of a mounted secure container.\n */\n public String getSecureContainerFilesystemPath(String id) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n String _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(id);\n mRemote.transact(Stub.TRANSACTION_getSecureContainerFilesystemPath, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readString();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n /**\n * Fix permissions in a container which has just been created and\n * populated. Returns an int consistent with MountServiceResultCode\n */\n public int fixPermissionsSecureContainer(String id, int gid, String filename)\n throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n int _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(id);\n _data.writeInt(gid);\n _data.writeString(filename);\n mRemote.transact(Stub.TRANSACTION_fixPermissionsSecureContainer, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n @Override\n public int mkdirs(String callingPkg, String path) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n int _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(callingPkg);\n _data.writeString(path);\n mRemote.transact(Stub.TRANSACTION_mkdirs, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n @Override\n public int resizeSecureContainer(String id, int sizeMb, String key)\n throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n int _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(id);\n _data.writeInt(sizeMb);\n _data.writeString(key);\n mRemote.transact(Stub.TRANSACTION_resizeSecureContainer, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n @Override\n public long lastMaintenance() throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n long _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n mRemote.transact(Stub.TRANSACTION_lastMaintenance, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readLong();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n @Override\n public void runMaintenance() throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n mRemote.transact(Stub.TRANSACTION_runMaintenance, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return;\n }\n\n @Override\n public void waitForAsecScan() throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n mRemote.transact(Stub.TRANSACTION_waitForAsecScan, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return;\n }\n\n @Override\n public DiskInfo[] getDisks() throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n DiskInfo[] _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n mRemote.transact(Stub.TRANSACTION_getDisks, _data, _reply, 0);\n _reply.readException();\n _result = _reply.createTypedArray(DiskInfo.CREATOR);\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n @Override\n public VolumeInfo[] getVolumes(int _flags) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n VolumeInfo[] _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeInt(_flags);\n mRemote.transact(Stub.TRANSACTION_getVolumes, _data, _reply, 0);\n _reply.readException();\n _result = _reply.createTypedArray(VolumeInfo.CREATOR);\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n @Override\n public VolumeRecord[] getVolumeRecords(int _flags) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n VolumeRecord[] _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeInt(_flags);\n mRemote.transact(Stub.TRANSACTION_getVolumeRecords, _data, _reply, 0);\n _reply.readException();\n _result = _reply.createTypedArray(VolumeRecord.CREATOR);\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n @Override\n public void mount(String volId) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(volId);\n mRemote.transact(Stub.TRANSACTION_mount, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public void unmount(String volId) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(volId);\n mRemote.transact(Stub.TRANSACTION_unmount, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public void format(String volId) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(volId);\n mRemote.transact(Stub.TRANSACTION_format, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public long benchmark(String volId) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(volId);\n mRemote.transact(Stub.TRANSACTION_benchmark, _data, _reply, 0);\n _reply.readException();\n return _reply.readLong();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public void partitionPublic(String diskId) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(diskId);\n mRemote.transact(Stub.TRANSACTION_partitionPublic, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public void partitionPrivate(String diskId) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(diskId);\n mRemote.transact(Stub.TRANSACTION_partitionPrivate, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public void partitionMixed(String diskId, int ratio) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(diskId);\n _data.writeInt(ratio);\n mRemote.transact(Stub.TRANSACTION_partitionMixed, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public void setVolumeNickname(String fsUuid, String nickname) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(fsUuid);\n _data.writeString(nickname);\n mRemote.transact(Stub.TRANSACTION_setVolumeNickname, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public void setVolumeUserFlags(String fsUuid, int flags, int mask) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(fsUuid);\n _data.writeInt(flags);\n _data.writeInt(mask);\n mRemote.transact(Stub.TRANSACTION_setVolumeUserFlags, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public void forgetVolume(String fsUuid) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(fsUuid);\n mRemote.transact(Stub.TRANSACTION_forgetVolume, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public void forgetAllVolumes() throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n mRemote.transact(Stub.TRANSACTION_forgetAllVolumes, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public void setDebugFlags(int _flags, int _mask) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeInt(_flags);\n _data.writeInt(_mask);\n mRemote.transact(Stub.TRANSACTION_setDebugFlags, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public String getPrimaryStorageUuid() throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n String _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n mRemote.transact(Stub.TRANSACTION_getPrimaryStorageUuid, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readString();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n @Override\n public void setPrimaryStorageUuid(String volumeUuid, IPackageMoveObserver callback)\n throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(volumeUuid);\n _data.writeStrongBinder((callback != null ? callback.asBinder() : null));\n mRemote.transact(Stub.TRANSACTION_setPrimaryStorageUuid, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public void createUserKey(int userId, int serialNumber, boolean ephemeral)\n throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeInt(userId);\n _data.writeInt(serialNumber);\n _data.writeInt(ephemeral ? 1 : 0);\n mRemote.transact(Stub.TRANSACTION_createUserKey, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public void destroyUserKey(int userId) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeInt(userId);\n mRemote.transact(Stub.TRANSACTION_destroyUserKey, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public void addUserKeyAuth(int userId, int serialNumber,\n byte[] token, byte[] secret) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeInt(userId);\n _data.writeInt(serialNumber);\n _data.writeByteArray(token);\n _data.writeByteArray(secret);\n mRemote.transact(Stub.TRANSACTION_addUserKeyAuth, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public void fixateNewestUserKeyAuth(int userId) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeInt(userId);\n mRemote.transact(Stub.TRANSACTION_fixateNewestUserKeyAuth, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public void unlockUserKey(int userId, int serialNumber,\n byte[] token, byte[] secret) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeInt(userId);\n _data.writeInt(serialNumber);\n _data.writeByteArray(token);\n _data.writeByteArray(secret);\n mRemote.transact(Stub.TRANSACTION_unlockUserKey, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public void lockUserKey(int userId) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeInt(userId);\n mRemote.transact(Stub.TRANSACTION_lockUserKey, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public boolean isUserKeyUnlocked(int userId) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n boolean _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeInt(userId);\n mRemote.transact(Stub.TRANSACTION_isUserKeyUnlocked, _data, _reply, 0);\n _reply.readException();\n _result = 0 != _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n @Override\n public void prepareUserStorage(\n String volumeUuid, int userId, int serialNumber, int flags)\n throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(volumeUuid);\n _data.writeInt(userId);\n _data.writeInt(serialNumber);\n _data.writeInt(flags);\n mRemote.transact(Stub.TRANSACTION_prepareUserStorage, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public void destroyUserStorage(String volumeUuid, int userId, int flags)\n throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(volumeUuid);\n _data.writeInt(userId);\n _data.writeInt(flags);\n mRemote.transact(Stub.TRANSACTION_destroyUserStorage, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public ParcelFileDescriptor mountAppFuse(String name) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n ParcelFileDescriptor _result = null;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(name);\n mRemote.transact(Stub.TRANSACTION_mountAppFuse, _data, _reply, 0);\n _reply.readException();\n _result = _reply.<ParcelFileDescriptor>readParcelable(\n ClassLoader.getSystemClassLoader());\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n }\n\n private static final String DESCRIPTOR = \"IMountService\";\n\n static final int TRANSACTION_registerListener = IBinder.FIRST_CALL_TRANSACTION + 0;\n\n static final int TRANSACTION_unregisterListener = IBinder.FIRST_CALL_TRANSACTION + 1;\n\n static final int TRANSACTION_isUsbMassStorageConnected = IBinder.FIRST_CALL_TRANSACTION + 2;\n\n static final int TRANSACTION_setUsbMassStorageEnabled = IBinder.FIRST_CALL_TRANSACTION + 3;\n\n static final int TRANSACTION_isUsbMassStorageEnabled = IBinder.FIRST_CALL_TRANSACTION + 4;\n\n static final int TRANSACTION_mountVolume = IBinder.FIRST_CALL_TRANSACTION + 5;\n\n static final int TRANSACTION_unmountVolume = IBinder.FIRST_CALL_TRANSACTION + 6;\n\n static final int TRANSACTION_formatVolume = IBinder.FIRST_CALL_TRANSACTION + 7;\n\n static final int TRANSACTION_getStorageUsers = IBinder.FIRST_CALL_TRANSACTION + 8;\n\n static final int TRANSACTION_getVolumeState = IBinder.FIRST_CALL_TRANSACTION + 9;\n\n static final int TRANSACTION_createSecureContainer = IBinder.FIRST_CALL_TRANSACTION + 10;\n\n static final int TRANSACTION_finalizeSecureContainer = IBinder.FIRST_CALL_TRANSACTION + 11;\n\n static final int TRANSACTION_destroySecureContainer = IBinder.FIRST_CALL_TRANSACTION + 12;\n\n static final int TRANSACTION_mountSecureContainer = IBinder.FIRST_CALL_TRANSACTION + 13;\n\n static final int TRANSACTION_unmountSecureContainer = IBinder.FIRST_CALL_TRANSACTION + 14;\n\n static final int TRANSACTION_isSecureContainerMounted = IBinder.FIRST_CALL_TRANSACTION + 15;\n\n static final int TRANSACTION_renameSecureContainer = IBinder.FIRST_CALL_TRANSACTION + 16;\n\n static final int TRANSACTION_getSecureContainerPath = IBinder.FIRST_CALL_TRANSACTION + 17;\n\n static final int TRANSACTION_getSecureContainerList = IBinder.FIRST_CALL_TRANSACTION + 18;\n\n static final int TRANSACTION_shutdown = IBinder.FIRST_CALL_TRANSACTION + 19;\n\n static final int TRANSACTION_finishMediaUpdate = IBinder.FIRST_CALL_TRANSACTION + 20;\n\n static final int TRANSACTION_mountObb = IBinder.FIRST_CALL_TRANSACTION + 21;\n\n static final int TRANSACTION_unmountObb = IBinder.FIRST_CALL_TRANSACTION + 22;\n\n static final int TRANSACTION_isObbMounted = IBinder.FIRST_CALL_TRANSACTION + 23;\n\n static final int TRANSACTION_getMountedObbPath = IBinder.FIRST_CALL_TRANSACTION + 24;\n\n static final int TRANSACTION_isExternalStorageEmulated = IBinder.FIRST_CALL_TRANSACTION + 25;\n\n static final int TRANSACTION_decryptStorage = IBinder.FIRST_CALL_TRANSACTION + 26;\n\n static final int TRANSACTION_encryptStorage = IBinder.FIRST_CALL_TRANSACTION + 27;\n\n static final int TRANSACTION_changeEncryptionPassword = IBinder.FIRST_CALL_TRANSACTION + 28;\n\n static final int TRANSACTION_getVolumeList = IBinder.FIRST_CALL_TRANSACTION + 29;\n\n static final int TRANSACTION_getSecureContainerFilesystemPath = IBinder.FIRST_CALL_TRANSACTION + 30;\n\n static final int TRANSACTION_getEncryptionState = IBinder.FIRST_CALL_TRANSACTION + 31;\n\n static final int TRANSACTION_verifyEncryptionPassword = IBinder.FIRST_CALL_TRANSACTION + 32;\n\n static final int TRANSACTION_fixPermissionsSecureContainer = IBinder.FIRST_CALL_TRANSACTION + 33;\n\n static final int TRANSACTION_mkdirs = IBinder.FIRST_CALL_TRANSACTION + 34;\n\n static final int TRANSACTION_getPasswordType = IBinder.FIRST_CALL_TRANSACTION + 35;\n\n static final int TRANSACTION_getPassword = IBinder.FIRST_CALL_TRANSACTION + 36;\n\n static final int TRANSACTION_clearPassword = IBinder.FIRST_CALL_TRANSACTION + 37;\n\n static final int TRANSACTION_setField = IBinder.FIRST_CALL_TRANSACTION + 38;\n\n static final int TRANSACTION_getField = IBinder.FIRST_CALL_TRANSACTION + 39;\n\n static final int TRANSACTION_resizeSecureContainer = IBinder.FIRST_CALL_TRANSACTION + 40;\n\n static final int TRANSACTION_lastMaintenance = IBinder.FIRST_CALL_TRANSACTION + 41;\n\n static final int TRANSACTION_runMaintenance = IBinder.FIRST_CALL_TRANSACTION + 42;\n\n static final int TRANSACTION_waitForAsecScan = IBinder.FIRST_CALL_TRANSACTION + 43;\n\n static final int TRANSACTION_getDisks = IBinder.FIRST_CALL_TRANSACTION + 44;\n static final int TRANSACTION_getVolumes = IBinder.FIRST_CALL_TRANSACTION + 45;\n static final int TRANSACTION_getVolumeRecords = IBinder.FIRST_CALL_TRANSACTION + 46;\n\n static final int TRANSACTION_mount = IBinder.FIRST_CALL_TRANSACTION + 47;\n static final int TRANSACTION_unmount = IBinder.FIRST_CALL_TRANSACTION + 48;\n static final int TRANSACTION_format = IBinder.FIRST_CALL_TRANSACTION + 49;\n\n static final int TRANSACTION_partitionPublic = IBinder.FIRST_CALL_TRANSACTION + 50;\n static final int TRANSACTION_partitionPrivate = IBinder.FIRST_CALL_TRANSACTION + 51;\n static final int TRANSACTION_partitionMixed = IBinder.FIRST_CALL_TRANSACTION + 52;\n\n static final int TRANSACTION_setVolumeNickname = IBinder.FIRST_CALL_TRANSACTION + 53;\n static final int TRANSACTION_setVolumeUserFlags = IBinder.FIRST_CALL_TRANSACTION + 54;\n static final int TRANSACTION_forgetVolume = IBinder.FIRST_CALL_TRANSACTION + 55;\n static final int TRANSACTION_forgetAllVolumes = IBinder.FIRST_CALL_TRANSACTION + 56;\n\n static final int TRANSACTION_getPrimaryStorageUuid = IBinder.FIRST_CALL_TRANSACTION + 57;\n static final int TRANSACTION_setPrimaryStorageUuid = IBinder.FIRST_CALL_TRANSACTION + 58;\n\n static final int TRANSACTION_benchmark = IBinder.FIRST_CALL_TRANSACTION + 59;\n static final int TRANSACTION_setDebugFlags = IBinder.FIRST_CALL_TRANSACTION + 60;\n\n static final int TRANSACTION_createUserKey = IBinder.FIRST_CALL_TRANSACTION + 61;\n static final int TRANSACTION_destroyUserKey = IBinder.FIRST_CALL_TRANSACTION + 62;\n\n static final int TRANSACTION_unlockUserKey = IBinder.FIRST_CALL_TRANSACTION + 63;\n static final int TRANSACTION_lockUserKey = IBinder.FIRST_CALL_TRANSACTION + 64;\n static final int TRANSACTION_isUserKeyUnlocked = IBinder.FIRST_CALL_TRANSACTION + 65;\n\n static final int TRANSACTION_prepareUserStorage = IBinder.FIRST_CALL_TRANSACTION + 66;\n static final int TRANSACTION_destroyUserStorage = IBinder.FIRST_CALL_TRANSACTION + 67;\n\n static final int TRANSACTION_isConvertibleToFBE = IBinder.FIRST_CALL_TRANSACTION + 68;\n\n static final int TRANSACTION_mountAppFuse = IBinder.FIRST_CALL_TRANSACTION + 69;\n\n static final int TRANSACTION_addUserKeyAuth = IBinder.FIRST_CALL_TRANSACTION + 70;\n\n static final int TRANSACTION_fixateNewestUserKeyAuth = IBinder.FIRST_CALL_TRANSACTION + 71;\n\n /**\n * Cast an IBinder object into an IMountService interface, generating a\n * proxy if needed.\n */\n public static IMountService asInterface(IBinder obj) {\n if (obj == null) {\n return null;\n }\n IInterface iin = obj.queryLocalInterface(DESCRIPTOR);\n if (iin != null && iin instanceof IMountService) {\n return (IMountService) iin;\n }\n return new IMountService.Stub.Proxy(obj);\n }\n\n /** Construct the stub at attach it to the interface. */\n public Stub() {\n attachInterface(this, DESCRIPTOR);\n }\n\n public IBinder asBinder() {\n return this;\n }\n\n @Override\n public boolean onTransact(int code, Parcel data, Parcel reply,\n int flags) throws RemoteException {\n switch (code) {\n case INTERFACE_TRANSACTION: {\n reply.writeString(DESCRIPTOR);\n return true;\n }\n case TRANSACTION_registerListener: {\n data.enforceInterface(DESCRIPTOR);\n IMountServiceListener listener;\n listener = IMountServiceListener.Stub.asInterface(data.readStrongBinder());\n registerListener(listener);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_unregisterListener: {\n data.enforceInterface(DESCRIPTOR);\n IMountServiceListener listener;\n listener = IMountServiceListener.Stub.asInterface(data.readStrongBinder());\n unregisterListener(listener);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_isUsbMassStorageConnected: {\n data.enforceInterface(DESCRIPTOR);\n boolean result = isUsbMassStorageConnected();\n reply.writeNoException();\n reply.writeInt((result ? 1 : 0));\n return true;\n }\n case TRANSACTION_setUsbMassStorageEnabled: {\n data.enforceInterface(DESCRIPTOR);\n boolean enable;\n enable = 0 != data.readInt();\n setUsbMassStorageEnabled(enable);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_isUsbMassStorageEnabled: {\n data.enforceInterface(DESCRIPTOR);\n boolean result = isUsbMassStorageEnabled();\n reply.writeNoException();\n reply.writeInt((result ? 1 : 0));\n return true;\n }\n case TRANSACTION_mountVolume: {\n data.enforceInterface(DESCRIPTOR);\n String mountPoint;\n mountPoint = data.readString();\n int resultCode = mountVolume(mountPoint);\n reply.writeNoException();\n reply.writeInt(resultCode);\n return true;\n }\n case TRANSACTION_unmountVolume: {\n data.enforceInterface(DESCRIPTOR);\n String mountPoint;\n mountPoint = data.readString();\n boolean force = 0 != data.readInt();\n boolean removeEncrypt = 0 != data.readInt();\n unmountVolume(mountPoint, force, removeEncrypt);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_formatVolume: {\n data.enforceInterface(DESCRIPTOR);\n String mountPoint;\n mountPoint = data.readString();\n int result = formatVolume(mountPoint);\n reply.writeNoException();\n reply.writeInt(result);\n return true;\n }\n case TRANSACTION_getStorageUsers: {\n data.enforceInterface(DESCRIPTOR);\n String path;\n path = data.readString();\n int[] pids = getStorageUsers(path);\n reply.writeNoException();\n reply.writeIntArray(pids);\n return true;\n }\n case TRANSACTION_getVolumeState: {\n data.enforceInterface(DESCRIPTOR);\n String mountPoint;\n mountPoint = data.readString();\n String state = getVolumeState(mountPoint);\n reply.writeNoException();\n reply.writeString(state);\n return true;\n }\n case TRANSACTION_createSecureContainer: {\n data.enforceInterface(DESCRIPTOR);\n String id;\n id = data.readString();\n int sizeMb;\n sizeMb = data.readInt();\n String fstype;\n fstype = data.readString();\n String key;\n key = data.readString();\n int ownerUid;\n ownerUid = data.readInt();\n boolean external;\n external = 0 != data.readInt();\n int resultCode = createSecureContainer(id, sizeMb, fstype, key, ownerUid,\n external);\n reply.writeNoException();\n reply.writeInt(resultCode);\n return true;\n }\n case TRANSACTION_finalizeSecureContainer: {\n data.enforceInterface(DESCRIPTOR);\n String id;\n id = data.readString();\n int resultCode = finalizeSecureContainer(id);\n reply.writeNoException();\n reply.writeInt(resultCode);\n return true;\n }\n case TRANSACTION_destroySecureContainer: {\n data.enforceInterface(DESCRIPTOR);\n String id;\n id = data.readString();\n boolean force;\n force = 0 != data.readInt();\n int resultCode = destroySecureContainer(id, force);\n reply.writeNoException();\n reply.writeInt(resultCode);\n return true;\n }\n case TRANSACTION_mountSecureContainer: {\n data.enforceInterface(DESCRIPTOR);\n String id;\n id = data.readString();\n String key;\n key = data.readString();\n int ownerUid;\n ownerUid = data.readInt();\n boolean readOnly;\n readOnly = data.readInt() != 0;\n int resultCode = mountSecureContainer(id, key, ownerUid, readOnly);\n reply.writeNoException();\n reply.writeInt(resultCode);\n return true;\n }\n case TRANSACTION_unmountSecureContainer: {\n data.enforceInterface(DESCRIPTOR);\n String id;\n id = data.readString();\n boolean force;\n force = 0 != data.readInt();\n int resultCode = unmountSecureContainer(id, force);\n reply.writeNoException();\n reply.writeInt(resultCode);\n return true;\n }\n case TRANSACTION_isSecureContainerMounted: {\n data.enforceInterface(DESCRIPTOR);\n String id;\n id = data.readString();\n boolean status = isSecureContainerMounted(id);\n reply.writeNoException();\n reply.writeInt((status ? 1 : 0));\n return true;\n }\n case TRANSACTION_renameSecureContainer: {\n data.enforceInterface(DESCRIPTOR);\n String oldId;\n oldId = data.readString();\n String newId;\n newId = data.readString();\n int resultCode = renameSecureContainer(oldId, newId);\n reply.writeNoException();\n reply.writeInt(resultCode);\n return true;\n }\n case TRANSACTION_getSecureContainerPath: {\n data.enforceInterface(DESCRIPTOR);\n String id;\n id = data.readString();\n String path = getSecureContainerPath(id);\n reply.writeNoException();\n reply.writeString(path);\n return true;\n }\n case TRANSACTION_getSecureContainerList: {\n data.enforceInterface(DESCRIPTOR);\n String[] ids = getSecureContainerList();\n reply.writeNoException();\n reply.writeStringArray(ids);\n return true;\n }\n case TRANSACTION_shutdown: {\n data.enforceInterface(DESCRIPTOR);\n IMountShutdownObserver observer;\n observer = IMountShutdownObserver.Stub.asInterface(data\n .readStrongBinder());\n shutdown(observer);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_finishMediaUpdate: {\n data.enforceInterface(DESCRIPTOR);\n finishMediaUpdate();\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_mountObb: {\n data.enforceInterface(DESCRIPTOR);\n final String rawPath = data.readString();\n final String canonicalPath = data.readString();\n final String key = data.readString();\n IObbActionListener observer;\n observer = IObbActionListener.Stub.asInterface(data.readStrongBinder());\n int nonce;\n nonce = data.readInt();\n mountObb(rawPath, canonicalPath, key, observer, nonce);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_unmountObb: {\n data.enforceInterface(DESCRIPTOR);\n String filename;\n filename = data.readString();\n boolean force;\n force = 0 != data.readInt();\n IObbActionListener observer;\n observer = IObbActionListener.Stub.asInterface(data.readStrongBinder());\n int nonce;\n nonce = data.readInt();\n unmountObb(filename, force, observer, nonce);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_isObbMounted: {\n data.enforceInterface(DESCRIPTOR);\n String filename;\n filename = data.readString();\n boolean status = isObbMounted(filename);\n reply.writeNoException();\n reply.writeInt((status ? 1 : 0));\n return true;\n }\n case TRANSACTION_getMountedObbPath: {\n data.enforceInterface(DESCRIPTOR);\n String filename;\n filename = data.readString();\n String mountedPath = getMountedObbPath(filename);\n reply.writeNoException();\n reply.writeString(mountedPath);\n return true;\n }\n case TRANSACTION_isExternalStorageEmulated: {\n data.enforceInterface(DESCRIPTOR);\n boolean emulated = isExternalStorageEmulated();\n reply.writeNoException();\n reply.writeInt(emulated ? 1 : 0);\n return true;\n }\n case TRANSACTION_decryptStorage: {\n data.enforceInterface(DESCRIPTOR);\n String password = data.readString();\n int result = decryptStorage(password);\n reply.writeNoException();\n reply.writeInt(result);\n return true;\n }\n case TRANSACTION_encryptStorage: {\n data.enforceInterface(DESCRIPTOR);\n int type = data.readInt();\n String password = data.readString();\n int result = encryptStorage(type, password);\n reply.writeNoException();\n reply.writeInt(result);\n return true;\n }\n case TRANSACTION_changeEncryptionPassword: {\n data.enforceInterface(DESCRIPTOR);\n int type = data.readInt();\n String password = data.readString();\n int result = changeEncryptionPassword(type, password);\n reply.writeNoException();\n reply.writeInt(result);\n return true;\n }\n case TRANSACTION_getVolumeList: {\n data.enforceInterface(DESCRIPTOR);\n int uid = data.readInt();\n String packageName = data.readString();\n int _flags = data.readInt();\n StorageVolume[] result = getVolumeList(uid, packageName, _flags);\n reply.writeNoException();\n reply.writeTypedArray(result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE);\n return true;\n }\n case TRANSACTION_getSecureContainerFilesystemPath: {\n data.enforceInterface(DESCRIPTOR);\n String id;\n id = data.readString();\n String path = getSecureContainerFilesystemPath(id);\n reply.writeNoException();\n reply.writeString(path);\n return true;\n }\n case TRANSACTION_getEncryptionState: {\n data.enforceInterface(DESCRIPTOR);\n int result = getEncryptionState();\n reply.writeNoException();\n reply.writeInt(result);\n return true;\n }\n case TRANSACTION_fixPermissionsSecureContainer: {\n data.enforceInterface(DESCRIPTOR);\n String id;\n id = data.readString();\n int gid;\n gid = data.readInt();\n String filename;\n filename = data.readString();\n int resultCode = fixPermissionsSecureContainer(id, gid, filename);\n reply.writeNoException();\n reply.writeInt(resultCode);\n return true;\n }\n case TRANSACTION_mkdirs: {\n data.enforceInterface(DESCRIPTOR);\n String callingPkg = data.readString();\n String path = data.readString();\n int result = mkdirs(callingPkg, path);\n reply.writeNoException();\n reply.writeInt(result);\n return true;\n }\n case TRANSACTION_getPasswordType: {\n data.enforceInterface(DESCRIPTOR);\n int result = getPasswordType();\n reply.writeNoException();\n reply.writeInt(result);\n return true;\n }\n case TRANSACTION_getPassword: {\n data.enforceInterface(DESCRIPTOR);\n String result = getPassword();\n reply.writeNoException();\n reply.writeString(result);\n return true;\n }\n case TRANSACTION_clearPassword: {\n data.enforceInterface(DESCRIPTOR);\n clearPassword();\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_setField: {\n data.enforceInterface(DESCRIPTOR);\n String field = data.readString();\n String contents = data.readString();\n setField(field, contents);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_getField: {\n data.enforceInterface(DESCRIPTOR);\n String field = data.readString();\n String contents = getField(field);\n reply.writeNoException();\n reply.writeString(contents);\n return true;\n }\n case TRANSACTION_isConvertibleToFBE: {\n data.enforceInterface(DESCRIPTOR);\n int resultCode = isConvertibleToFBE() ? 1 : 0;\n reply.writeNoException();\n reply.writeInt(resultCode);\n return true;\n }\n case TRANSACTION_resizeSecureContainer: {\n data.enforceInterface(DESCRIPTOR);\n String id;\n id = data.readString();\n int sizeMb;\n sizeMb = data.readInt();\n String key;\n key = data.readString();\n int resultCode = resizeSecureContainer(id, sizeMb, key);\n reply.writeNoException();\n reply.writeInt(resultCode);\n return true;\n }\n case TRANSACTION_lastMaintenance: {\n data.enforceInterface(DESCRIPTOR);\n long lastMaintenance = lastMaintenance();\n reply.writeNoException();\n reply.writeLong(lastMaintenance);\n return true;\n }\n case TRANSACTION_runMaintenance: {\n data.enforceInterface(DESCRIPTOR);\n runMaintenance();\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_waitForAsecScan: {\n data.enforceInterface(DESCRIPTOR);\n waitForAsecScan();\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_getDisks: {\n data.enforceInterface(DESCRIPTOR);\n DiskInfo[] disks = getDisks();\n reply.writeNoException();\n reply.writeTypedArray(disks, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE);\n return true;\n }\n case TRANSACTION_getVolumes: {\n data.enforceInterface(DESCRIPTOR);\n int _flags = data.readInt();\n VolumeInfo[] volumes = getVolumes(_flags);\n reply.writeNoException();\n reply.writeTypedArray(volumes, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE);\n return true;\n }\n case TRANSACTION_getVolumeRecords: {\n data.enforceInterface(DESCRIPTOR);\n int _flags = data.readInt();\n VolumeRecord[] volumes = getVolumeRecords(_flags);\n reply.writeNoException();\n reply.writeTypedArray(volumes, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE);\n return true;\n }\n case TRANSACTION_mount: {\n data.enforceInterface(DESCRIPTOR);\n String volId = data.readString();\n mount(volId);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_unmount: {\n data.enforceInterface(DESCRIPTOR);\n String volId = data.readString();\n unmount(volId);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_format: {\n data.enforceInterface(DESCRIPTOR);\n String volId = data.readString();\n format(volId);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_benchmark: {\n data.enforceInterface(DESCRIPTOR);\n String volId = data.readString();\n long res = benchmark(volId);\n reply.writeNoException();\n reply.writeLong(res);\n return true;\n }\n case TRANSACTION_partitionPublic: {\n data.enforceInterface(DESCRIPTOR);\n String diskId = data.readString();\n partitionPublic(diskId);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_partitionPrivate: {\n data.enforceInterface(DESCRIPTOR);\n String diskId = data.readString();\n partitionPrivate(diskId);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_partitionMixed: {\n data.enforceInterface(DESCRIPTOR);\n String diskId = data.readString();\n int ratio = data.readInt();\n partitionMixed(diskId, ratio);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_setVolumeNickname: {\n data.enforceInterface(DESCRIPTOR);\n String volId = data.readString();\n String nickname = data.readString();\n setVolumeNickname(volId, nickname);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_setVolumeUserFlags: {\n data.enforceInterface(DESCRIPTOR);\n String volId = data.readString();\n int _flags = data.readInt();\n int _mask = data.readInt();\n setVolumeUserFlags(volId, _flags, _mask);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_forgetVolume: {\n data.enforceInterface(DESCRIPTOR);\n String fsUuid = data.readString();\n forgetVolume(fsUuid);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_forgetAllVolumes: {\n data.enforceInterface(DESCRIPTOR);\n forgetAllVolumes();\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_setDebugFlags: {\n data.enforceInterface(DESCRIPTOR);\n int _flags = data.readInt();\n int _mask = data.readInt();\n setDebugFlags(_flags, _mask);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_getPrimaryStorageUuid: {\n data.enforceInterface(DESCRIPTOR);\n String volumeUuid = getPrimaryStorageUuid();\n reply.writeNoException();\n reply.writeString(volumeUuid);\n return true;\n }\n case TRANSACTION_setPrimaryStorageUuid: {\n data.enforceInterface(DESCRIPTOR);\n String volumeUuid = data.readString();\n IPackageMoveObserver listener = IPackageMoveObserver.Stub.asInterface(\n data.readStrongBinder());\n setPrimaryStorageUuid(volumeUuid, listener);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_createUserKey: {\n data.enforceInterface(DESCRIPTOR);\n int userId = data.readInt();\n int serialNumber = data.readInt();\n boolean ephemeral = data.readInt() != 0;\n createUserKey(userId, serialNumber, ephemeral);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_destroyUserKey: {\n data.enforceInterface(DESCRIPTOR);\n int userId = data.readInt();\n destroyUserKey(userId);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_addUserKeyAuth: {\n data.enforceInterface(DESCRIPTOR);\n int userId = data.readInt();\n int serialNumber = data.readInt();\n byte[] token = data.createByteArray();\n byte[] secret = data.createByteArray();\n addUserKeyAuth(userId, serialNumber, token, secret);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_fixateNewestUserKeyAuth: {\n data.enforceInterface(DESCRIPTOR);\n int userId = data.readInt();\n fixateNewestUserKeyAuth(userId);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_unlockUserKey: {\n data.enforceInterface(DESCRIPTOR);\n int userId = data.readInt();\n int serialNumber = data.readInt();\n byte[] token = data.createByteArray();\n byte[] secret = data.createByteArray();\n unlockUserKey(userId, serialNumber, token, secret);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_lockUserKey: {\n data.enforceInterface(DESCRIPTOR);\n int userId = data.readInt();\n lockUserKey(userId);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_isUserKeyUnlocked: {\n data.enforceInterface(DESCRIPTOR);\n int userId = data.readInt();\n boolean result = isUserKeyUnlocked(userId);\n reply.writeNoException();\n reply.writeInt(result ? 1 : 0);\n return true;\n }\n case TRANSACTION_prepareUserStorage: {\n data.enforceInterface(DESCRIPTOR);\n String volumeUuid = data.readString();\n int userId = data.readInt();\n int serialNumber = data.readInt();\n int _flags = data.readInt();\n prepareUserStorage(volumeUuid, userId, serialNumber, _flags);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_destroyUserStorage: {\n data.enforceInterface(DESCRIPTOR);\n String volumeUuid = data.readString();\n int userId = data.readInt();\n int _flags = data.readInt();\n destroyUserStorage(volumeUuid, userId, _flags);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_mountAppFuse: {\n data.enforceInterface(DESCRIPTOR);\n String name = data.readString();\n ParcelFileDescriptor fd = mountAppFuse(name);\n reply.writeNoException();\n reply.writeParcelable(fd, Parcelable.PARCELABLE_WRITE_RETURN_VALUE);\n return true;\n }\n }\n return super.onTransact(code, data, reply, flags);\n }\n }\n\n /*\n * Creates a secure container with the specified parameters. Returns an int\n * consistent with MountServiceResultCode\n */\n public int createSecureContainer(String id, int sizeMb, String fstype, String key,\n int ownerUid, boolean external) throws RemoteException;\n\n /*\n * Destroy a secure container, and free up all resources associated with it.\n * NOTE: Ensure all references are released prior to deleting. Returns an\n * int consistent with MountServiceResultCode\n */\n public int destroySecureContainer(String id, boolean force) throws RemoteException;\n\n /*\n * Finalize a container which has just been created and populated. After\n * finalization, the container is immutable. Returns an int consistent with\n * MountServiceResultCode\n */\n public int finalizeSecureContainer(String id) throws RemoteException;\n\n /**\n * Call into MountService by PackageManager to notify that its done\n * processing the media status update request.\n */\n public void finishMediaUpdate() throws RemoteException;\n\n /**\n * Format external storage given a mount point. Returns an int consistent\n * with MountServiceResultCode\n */\n public int formatVolume(String mountPoint) throws RemoteException;\n\n /**\n * Gets the path to the mounted Opaque Binary Blob (OBB).\n */\n public String getMountedObbPath(String rawPath) throws RemoteException;\n\n /**\n * Gets an Array of currently known secure container IDs\n */\n public String[] getSecureContainerList() throws RemoteException;\n\n /*\n * Returns the filesystem path of a mounted secure container.\n */\n public String getSecureContainerPath(String id) throws RemoteException;\n\n /**\n * Returns an array of pids with open files on the specified path.\n */\n public int[] getStorageUsers(String path) throws RemoteException;\n\n /**\n * Gets the state of a volume via its mountpoint.\n */\n public String getVolumeState(String mountPoint) throws RemoteException;\n\n /**\n * Checks whether the specified Opaque Binary Blob (OBB) is mounted\n * somewhere.\n */\n public boolean isObbMounted(String rawPath) throws RemoteException;\n\n /*\n * Returns true if the specified container is mounted\n */\n public boolean isSecureContainerMounted(String id) throws RemoteException;\n\n /**\n * Returns true if a USB mass storage host is connected\n */\n public boolean isUsbMassStorageConnected() throws RemoteException;\n\n /**\n * Returns true if a USB mass storage host is enabled (media is shared)\n */\n public boolean isUsbMassStorageEnabled() throws RemoteException;\n\n /**\n * Mounts an Opaque Binary Blob (OBB) with the specified decryption key and\n * only allows the calling process's UID access to the contents.\n * MountService will call back to the supplied IObbActionListener to inform\n * it of the terminal state of the call.\n */\n public void mountObb(String rawPath, String canonicalPath, String key,\n IObbActionListener token, int nonce) throws RemoteException;\n\n /*\n * Mount a secure container with the specified key and owner UID. Returns an\n * int consistent with MountServiceResultCode\n */\n public int mountSecureContainer(String id, String key, int ownerUid, boolean readOnly)\n throws RemoteException;\n\n /**\n * Mount external storage at given mount point. Returns an int consistent\n * with MountServiceResultCode\n */\n public int mountVolume(String mountPoint) throws RemoteException;\n\n /**\n * Registers an IMountServiceListener for receiving async notifications.\n */\n public void registerListener(IMountServiceListener listener) throws RemoteException;\n\n /*\n * Rename an unmounted secure container. Returns an int consistent with\n * MountServiceResultCode\n */\n public int renameSecureContainer(String oldId, String newId) throws RemoteException;\n\n /**\n * Enables / disables USB mass storage. The caller should check actual\n * status of enabling/disabling USB mass storage via StorageEventListener.\n */\n public void setUsbMassStorageEnabled(boolean enable) throws RemoteException;\n\n /**\n * Shuts down the MountService and gracefully unmounts all external media.\n * Invokes call back once the shutdown is complete.\n */\n public void shutdown(IMountShutdownObserver observer) throws RemoteException;\n\n /**\n * Unmounts an Opaque Binary Blob (OBB). When the force flag is specified,\n * any program using it will be forcibly killed to unmount the image.\n * MountService will call back to the supplied IObbActionListener to inform\n * it of the terminal state of the call.\n */\n public void unmountObb(String rawPath, boolean force, IObbActionListener token, int nonce)\n throws RemoteException;\n\n /*\n * Unount a secure container. Returns an int consistent with\n * MountServiceResultCode\n */\n public int unmountSecureContainer(String id, boolean force) throws RemoteException;\n\n /**\n * Safely unmount external storage at given mount point. The unmount is an\n * asynchronous operation. Applications should register StorageEventListener\n * for storage related status changes.\n * @param mountPoint the mount point\n * @param force whether or not to forcefully unmount it (e.g. even if programs are using this\n * data currently)\n * @param removeEncryption whether or not encryption mapping should be removed from the volume.\n * This value implies {@code force}.\n */\n public void unmountVolume(String mountPoint, boolean force, boolean removeEncryption)\n throws RemoteException;\n\n /**\n * Unregisters an IMountServiceListener\n */\n public void unregisterListener(IMountServiceListener listener) throws RemoteException;\n\n /**\n * Returns whether or not the external storage is emulated.\n */\n public boolean isExternalStorageEmulated() throws RemoteException;\n\n /** The volume is not encrypted. */\n static final int ENCRYPTION_STATE_NONE = 1;\n /** The volume has been encrypted succesfully. */\n static final int ENCRYPTION_STATE_OK = 0;\n /** The volume is in a bad state.*/\n static final int ENCRYPTION_STATE_ERROR_UNKNOWN = -1;\n /** Encryption is incomplete */\n static final int ENCRYPTION_STATE_ERROR_INCOMPLETE = -2;\n /** Encryption is incomplete and irrecoverable */\n static final int ENCRYPTION_STATE_ERROR_INCONSISTENT = -3;\n /** Underlying data is corrupt */\n static final int ENCRYPTION_STATE_ERROR_CORRUPT = -4;\n\n /**\n * Determines the encryption state of the volume.\n * @return a numerical value. See {@code ENCRYPTION_STATE_*} for possible\n * values.\n * Note that this has been replaced in most cases by the APIs in\n * StorageManager (see isEncryptable and below)\n * This is still useful to get the error state when encryption has failed\n * and CryptKeeper needs to throw up a screen advising the user what to do\n */\n public int getEncryptionState() throws RemoteException;\n\n /**\n * Decrypts any encrypted volumes.\n */\n public int decryptStorage(String password) throws RemoteException;\n\n /**\n * Encrypts storage.\n */\n public int encryptStorage(int type, String password) throws RemoteException;\n\n /**\n * Changes the encryption password.\n */\n public int changeEncryptionPassword(int type, String password)\n throws RemoteException;\n\n /**\n * Verify the encryption password against the stored volume. This method\n * may only be called by the system process.\n */\n public int verifyEncryptionPassword(String password) throws RemoteException;\n\n /**\n * Returns list of all mountable volumes.\n */\n public StorageVolume[] getVolumeList(int uid, String packageName, int flags) throws RemoteException;\n\n /**\n * Gets the path on the filesystem for the ASEC container itself.\n *\n * @param cid ASEC container ID\n * @return path to filesystem or {@code null} if it's not found\n * @throws RemoteException\n */\n public String getSecureContainerFilesystemPath(String cid) throws RemoteException;\n\n /*\n * Fix permissions in a container which has just been created and populated.\n * Returns an int consistent with MountServiceResultCode\n */\n public int fixPermissionsSecureContainer(String id, int gid, String filename)\n throws RemoteException;\n\n /**\n * Ensure that all directories along given path exist, creating parent\n * directories as needed. Validates that given path is absolute and that it\n * contains no relative \".\" or \"..\" paths or symlinks. Also ensures that\n * path belongs to a volume managed by vold, and that path is either\n * external storage data or OBB directory belonging to calling app.\n */\n public int mkdirs(String callingPkg, String path) throws RemoteException;\n\n /**\n * Determines the type of the encryption password\n * @return PasswordType\n */\n public int getPasswordType() throws RemoteException;\n\n /**\n * Get password from vold\n * @return password or empty string\n */\n public String getPassword() throws RemoteException;\n\n /**\n * Securely clear password from vold\n */\n public void clearPassword() throws RemoteException;\n\n /**\n * Set a field in the crypto header.\n * @param field field to set\n * @param contents contents to set in field\n */\n public void setField(String field, String contents) throws RemoteException;\n\n /**\n * Gets a field from the crypto header.\n * @param field field to get\n * @return contents of field\n */\n public String getField(String field) throws RemoteException;\n\n public boolean isConvertibleToFBE() throws RemoteException;\n\n public int resizeSecureContainer(String id, int sizeMb, String key) throws RemoteException;\n\n /**\n * Report the time of the last maintenance operation such as fstrim.\n * @return Timestamp of the last maintenance operation, in the\n * System.currentTimeMillis() time base\n * @throws RemoteException\n */\n public long lastMaintenance() throws RemoteException;\n\n /**\n * Kick off an immediate maintenance operation\n * @throws RemoteException\n */\n public void runMaintenance() throws RemoteException;\n\n public void waitForAsecScan() throws RemoteException;\n\n public DiskInfo[] getDisks() throws RemoteException;\n public VolumeInfo[] getVolumes(int flags) throws RemoteException;\n public VolumeRecord[] getVolumeRecords(int flags) throws RemoteException;\n\n public void mount(String volId) throws RemoteException;\n public void unmount(String volId) throws RemoteException;\n public void format(String volId) throws RemoteException;\n public long benchmark(String volId) throws RemoteException;\n\n public void partitionPublic(String diskId) throws RemoteException;\n public void partitionPrivate(String diskId) throws RemoteException;\n public void partitionMixed(String diskId, int ratio) throws RemoteException;\n\n public void setVolumeNickname(String fsUuid, String nickname) throws RemoteException;\n public void setVolumeUserFlags(String fsUuid, int flags, int mask) throws RemoteException;\n public void forgetVolume(String fsUuid) throws RemoteException;\n public void forgetAllVolumes() throws RemoteException;\n public void setDebugFlags(int flags, int mask) throws RemoteException;\n\n public String getPrimaryStorageUuid() throws RemoteException;\n public void setPrimaryStorageUuid(String volumeUuid, IPackageMoveObserver callback)\n throws RemoteException;\n\n public void createUserKey(int userId, int serialNumber, boolean ephemeral)\n throws RemoteException;\n public void destroyUserKey(int userId) throws RemoteException;\n public void addUserKeyAuth(int userId, int serialNumber,\n byte[] token, byte[] secret) throws RemoteException;\n public void fixateNewestUserKeyAuth(int userId) throws RemoteException;\n\n public void unlockUserKey(int userId, int serialNumber,\n byte[] token, byte[] secret) throws RemoteException;\n public void lockUserKey(int userId) throws RemoteException;\n public boolean isUserKeyUnlocked(int userId) throws RemoteException;\n\n public void prepareUserStorage(String volumeUuid, int userId, int serialNumber,\n int flags) throws RemoteException;\n public void destroyUserStorage(String volumeUuid, int userId, int flags) throws RemoteException;\n\n public ParcelFileDescriptor mountAppFuse(String name) throws RemoteException;\n}" ]
[ "0.5985981", "0.5908025", "0.58695775", "0.58659035", "0.58654654", "0.58402485", "0.5769668", "0.5759988", "0.5710096", "0.56908256", "0.5688155", "0.5675159", "0.5666334", "0.5658236", "0.5655489", "0.565218", "0.56243795", "0.5623187", "0.55766517", "0.5550165", "0.55326164", "0.55214524", "0.5508058", "0.54908705", "0.54884756", "0.54838985", "0.54180634", "0.54176724", "0.541486", "0.54089004", "0.54077023", "0.5399211", "0.5393047", "0.53636277", "0.5317061", "0.53126276", "0.530754", "0.530754", "0.5299414", "0.5299149", "0.52927077", "0.5282992", "0.5256117", "0.524262", "0.51988846", "0.5189642", "0.51735973", "0.51590073", "0.5151846", "0.5150865", "0.51138324", "0.50704676", "0.5043575", "0.5042248", "0.5035879", "0.50331867", "0.50173587", "0.49975142", "0.49942878", "0.49936402", "0.49930158", "0.49887857", "0.4978673", "0.49735042", "0.49570176", "0.49473354", "0.49335474", "0.49332362", "0.493232", "0.4917219", "0.4910801", "0.48711693", "0.4867403", "0.48635864", "0.48633265", "0.48361832", "0.48361367", "0.48329252", "0.48327094", "0.48319703", "0.48222575", "0.4819257", "0.4810137", "0.4806214", "0.4802804", "0.479952", "0.47848204", "0.47845113", "0.4773482", "0.4765696", "0.47613183", "0.4758281", "0.47577152", "0.4741727", "0.47293383", "0.47225", "0.47187424", "0.4715898", "0.47155032", "0.47121236" ]
0.55032784
23
/ ================================================================= Class constructors for instantiating a car entity object to represent a row in the Car table in the CarsDB database. ================================================================= Used in PrepareCreate method in CarController
public Car() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Car(){\n\t\t\n\t}", "public Car() {\n }", "public Car() {\r\n super();\r\n }", "public Car() {\n super();\n }", "public Car(Integer id, String make, String logoFileName, String makeUrl, String model, Integer year, Integer price, Integer mileage, Integer cityMPG, Integer highwayMPG, String engineType, String driveType) {\n this.id = id;\n this.make = make;\n this.logoFileName = logoFileName;\n this.makeUrl = makeUrl;\n this.model = model;\n this.year = year;\n this.price = price;\n this.mileage = mileage;\n this.cityMPG = cityMPG;\n this.highwayMPG = highwayMPG;\n this.engineType = engineType;\n this.driveType = driveType;\n }", "public Carmodel() {\n this(\"CarModel\", null);\n }", "public Car () {\n\n Make = \"\";\n Model = \"\";\n Year = 2017;\n Price = 0.00;\n }", "private Car(Integer carID, String make, String model, Integer productionYear) {\r\n setCarID(carID);\r\n setMake(make);\r\n setModel(model);\r\n setProductionYear(productionYear);\r\n }", "public Car(String primaryKey, String name, String dealerKey, int year, Category category,\r\n double price, String displacementCC, int maxPower,\r\n String powerRPM, double torqueFtLb, String torqueRPM, DriveTrain driveTrain,\r\n Aspiration aspiration, double length, double width, double height, double weight,\r\n double maxSpeed, double acceleration, double braking, double cornering, double stability) {\r\n this.primaryKey = primaryKey;\r\n this.name = name;\r\n this.manufacturerKey = dealerKey;\r\n this.year = year;\r\n this.category = category;\r\n this.price = price;\r\n this.displacementCC = displacementCC;\r\n this.maxPower = maxPower;\r\n this.powerRPM = powerRPM;\r\n this.torqueFtLb = torqueFtLb;\r\n this.torqueRPM = torqueRPM;\r\n this.driveTrain = driveTrain;\r\n this.aspiration = aspiration;\r\n this.length = length;\r\n this.width = width;\r\n this.height = height;\r\n this.weight = weight;\r\n this.maxSpeed = maxSpeed;\r\n this.acceleration = acceleration;\r\n this.braking = braking;\r\n this.cornering = cornering;\r\n this.stability = stability;\r\n }", "public CarResource() {\n }", "public Car(String carname) {\n this.carname = carname;\n }", "public Car()\n {\n \tsuper();\n bodyType = null;\n noOfDoors = 0;\n noOfSeats = 0;\n }", "public Car(String description)\r\n {\r\n this.description = description;\r\n customersName = \"\";\r\n }", "public Car() {\n\t\t\tmake = \"GM\";\n\t\t\tyear = 1900;\n\t\t\tmileage= 0;\n\t\t\tcarCost = 0;\n\t\t}", "public Car() {\r\n this(\"\", \"\", \"\", 0, Category.EMPTY, 0.00, \"\", 0, \"\", 0.00, \"\", DriveTrain.EMPTY,\r\n Aspiration.EMPTY, 0.00, 0.00, 0.00, 0.00, 0.0, 0.0, 0.0, 0.0, 0.0);\r\n }", "public Vehicle(String carClass, BigDecimal price) {\n this.carClass = carClass;\n this.price = price;\n }", "public Car(String licensePlate, double fuelEconomy){\n this.licensePlate = licensePlate;\n this.fuelEconomy = fuelEconomy;\n}", "@Transactional\n\tpublic Car createCar(String name, String makeOfCar, Integer numSeats, String carType, Integer numDoors, String driveType) {\n\t\tCar car = new Car();\n\t\tcar.setName(name);\n\t\tcar.setMakeOfCar(makeOfCar);\n\t\tcar.setNumSeats(numSeats);\n\t\tcar.setCarType(carType);\n\t\tcar.setNumDoors(numDoors);\n\t\tcar.setDriveType(driveType);\n\t\tentityManager.persist(car);\n\t\treturn car;\n\t}", "public Car create(Car car) {\n if (car.getStation() == null) {\n throw new IllegalArgumentException(messages.get(\"carStationNotNull\"));\n }\n if (car.getStation().getId() == null || !stationService.existsById(car.getStation().getId())) {\n throw new EntityNotFoundException(messages.get(\"stationNotFound\"));\n }\n if (carRepository.existsById(car.getRegistrationNr())) {\n throw new EntityExistsException(messages.get(\"carAlreadyExists\"));\n }\n return carRepository.save(car);\n }", "public CarAccessBean () {\n super();\n }", "public Car(String registrationNumber, String make, String model) {\r\n super(registrationNumber, make, model);\r\n }", "public Carrier() {\n }", "public Car(String regisNo,String carOwner,String ownerStatus)\n {\n this.regisNo = regisNo;\n this.carOwner = carOwner;\n this.ownerStatus = ownerStatus;\n }", "public Car(String make, int year, int mileage, int carCost ) {\n\t\t\tthis.make = make;\n\t\t\tthis.year = year;\n\t\t\tthis.mileage = mileage;\n\t\t\tthis.carCost = carCost;\n\t\t}", "public Vehicle() {}", "CarType(String carCode)\r\n {\r\n this.carCode = carCode;\r\n }", "public Vehicle() {\n }", "public Vehicle() {\n\n\t}", "public Vehicle(){}", "public Car(float x, float y) {\r\n\r\n //initialize\r\n this.world = new World(new Vector2(0, 0), false);\r\n this.box2Drender = new Box2DDebugRenderer();\r\n\r\n this.CarBody = new PolygonShape();\r\n \r\n\r\n this.bodyD = new BodyDef();\r\n this.CarFixDef = new FixtureDef();\r\n \r\n this.x = x;\r\n this.y = y;\r\n this.Cpos = new Vector2(x,y);\r\n \r\n\r\n //setting bodyDef damping (Regular slow)\r\n bodyD.linearDamping = 0.5f;\r\n bodyD.angularDamping = 2f;\r\n \r\n //Adding bodyDef to the world and setting type as Dynamic\r\n body = world.createBody(bodyD);\r\n body.setType(BodyDef.BodyType.DynamicBody);\r\n \r\n //setting the body position in the world using the Vector given.\r\n body.setTransform(this.Cpos, (float) ((Math.PI) / 2));\r\n\r\n \r\n \r\n\r\n //Setting the car(box) and wheel size\r\n CarBody.setAsBox(this.length, this.width);\r\n \r\n CarFixDef.shape = CarBody;\r\n\r\n \r\n body.createFixture(CarFixDef);\r\n\r\n \r\n\r\n }", "public GetAllCarsDTO() {\n }", "public Car(String make, String model, Color color){\n // set the arguments to the member variables.\n this.make = make;\n this.model = model;\n this.color = color;\n // the default speed will be 0 since the car isn't moving.\n speed = 0;\n }", "public Car( double fuelEfficiency)\n {\n // initialise instance variables\n fuelEfficiency = fuelEfficiency;\n fuelInTank = 0;\n }", "public Car(double fuelEfficiency)\n {\n this.fuelEfficiency = fuelEfficiency;\n fuelInTank = 0;\n }", "public CarUpdateMB() {\n }", "public static EmployeeCars createEntity(EntityManager em) {\n EmployeeCars employeeCars = new EmployeeCars()\n .previousReading(DEFAULT_PREVIOUS_READING)\n .currentReading(DEFAULT_CURRENT_READING)\n .workingDays(DEFAULT_WORKING_DAYS)\n .updateDate(DEFAULT_UPDATE_DATE);\n // Add required entity\n Employee employee = EmployeeResourceIT.createEntity(em);\n em.persist(employee);\n em.flush();\n employeeCars.setEmployee(employee);\n // Add required entity\n Car car = CarResourceIT.createEntity(em);\n em.persist(car);\n em.flush();\n employeeCars.setCar(car);\n return employeeCars;\n }", "public static SdCarInfo createEntity(EntityManager em) {\n SdCarInfo sdCarInfo = new SdCarInfo()\n \t\t.id(DEFAULT_ID)\n .carType(DEFAULT_CAR_TYPE)\n .engineNumber(DEFAULT_ENGINE_NUMBER)\n .buyDate(DEFAULT_BUY_DATE)\n .checkLoad(DEFAULT_CHECK_LOAD)\n .checkVolume(DEFAULT_CHECK_VOLUME)\n .carLength(DEFAULT_CAR_LENGTH)\n .carWidth(DEFAULT_CAR_WIDTH)\n .carHeight(DEFAULT_CAR_HEIGHT)\n .vehicleNo(DEFAULT_VEHICLE_NO)\n .policyNo(DEFAULT_POLICY_NO)\n .carrier(DEFAULT_CARRIER)\n .runNumber(DEFAULT_RUN_NUMBER);\n return sdCarInfo;\n }", "public AbstractCar(String car){\n\t\n\tSystem.out.println(\"\\n\\n The following are the details for : \" + car);\n}", "public Car(Engine engine, String brand, String model, String color, String serialNumber,\n double fuelConsumption, double fuelLevel, FuelTank fuelTank) {\n this.engine = engine;\n this.brand = brand;\n this.model = model;\n this.color = color;\n this.serialNumber = serialNumber;\n this.fuelTank = fuelTank;\n this.fuelConsumption = fuelConsumption;\n this.fuelLevel = fuelLevel;\n this.mirrors = new ArrayList<>();\n this.tires = new ArrayList<>();\n }", "public Car createListings(int year, String brand, String model, int mileage, int bidPrice) {\r\n\r\n car = new Car(year, brand, model, mileage, bidPrice);\r\n\r\n cars.addCar(car);\r\n\r\n return car;\r\n\r\n }", "public ClientDetailsEntity() {\n\t\t\n\t}", "public Vehicle() {\r\n\t\tthis.numOfDoors = 4;\r\n\t\tthis.price = 1;\r\n\t\tthis.yearMake = 2019;\r\n\t\tthis.make = \"Toyota\";\r\n\t}", "public CarEdition() {\n ELContext context = FacesContext.getCurrentInstance().getELContext();\n app = (CarsaleApplication) FacesContext.getCurrentInstance().getApplication().getELResolver().getValue(context, null, \"carsaleApplication\");\n try {\n this.carId = Integer.valueOf(FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get(\"carId\"));\n this.car = searchCar(this.carId);\n } catch (Exception ex) {\n Logger.getLogger(CarDetail.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "@Test\n\tpublic void testCreateNullCarModel() {\n\t\tCarFactory _carFactory = new CarFactory();\n\n\t\tCarType _carType = CarType.valueOf((\"coupe\".toUpperCase()));\n\t\tString _make = \"BMW\";\n\t\tString _model = null;\n\t\tString _color = \"invalid_color\";\n\t\tint _year = 1999;\n\n\t\t// ---------------------------------------------\n\t\t// Creating an null model car.\n\t\ttry {\n\t\t\t@SuppressWarnings(\"unused\")\n\t\t\tAbstractCar _unknown = _carFactory.buildCar(_carType, _make, _model, _color, _year);\n\n\t\t\tfail(\"Successfully created an invalid car (should not work).\");\n\t\t} catch (Exception expected_) {\n\t\t}\n\n\t}", "private ICarModel ICarModel(Car car) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\treturn null;\r\n\t}", "private Vehicle createVehicle(/*ResultSet rs*/) {\n // creates a vehicle using the specific form data\n //Form would get every field\n //This is dummy data\n Vehicle vehicle = new Vehicle();\n// try {\n int id = 1;\n String marca = \"marca\";\n String modelo = \"modelo\";\n double cilindrada = 2.0;\n int cavalos = 120;\n double preco = 1000.0;\n int quilometros = 200000;\n java.sql.Date date = new Date(1996-10-21);\n String combustivel = \"combustivel\";\n// //ADICIONAR\n vehicle.setId(id);\n vehicle.setMarca(marca);\n vehicle.setModelo(modelo);\n vehicle.setCilindrada(cilindrada);\n vehicle.setCavalos(cavalos);\n vehicle.setPreco(preco);\n vehicle.setDate(date);\n vehicle.setQuilometros(quilometros);\n vehicle.setCombustivel(Combustiveis.valueOf(combustivel));\n\n// } catch (SQLException e) {\n// e.printStackTrace();\n// }\n return vehicle;\n }", "public abstract CarTO findCarById(Long id);", "public Device createObject(String brand, String model, Integer price, String photo, String date);", "Vehicle createVehicle();", "Vehicle createVehicle();", "public Car saveCar(Car car) {\r\n return repository.save(car);\r\n }", "public CarroResource() {\r\n }", "public Supercar() {\r\n\t\t\r\n\t}", "VehicleClass() {}", "public Car(VehicleType vehicleType, String vehicleNumber) {\n\t\tthis.vehicleType = vehicleType;\n\t\tthis.vehicleNumber = vehicleNumber;\n\t}", "public Car createCar(String name, String modelName, String type) {\r\n return new Car(name, modelName, type);\r\n }", "public void setCar(Car car) {\n this.car = car;\n }", "public Car(String make, String model, int maxSpeedKmph, double secTo100Kmph, double litersPer100km) {\n counter++;\n uniqueId = counter;\n this.make = make;\n this.model = model;\n this.maxSpeedKmph = maxSpeedKmph;\n this.secTo100Kmph = secTo100Kmph;\n this.litersPer100km = litersPer100km;\n\n }", "public Vehicle(Vehicle vehicle) {\r\n\r\n\t\tthis.make = vehicle.make;\r\n\t\tthis.yearMake = vehicle.yearMake;\r\n\t\tthis.numOfDoors = vehicle.numOfDoors;\r\n\t\tthis.price = vehicle.price;\r\n\t}", "public AbstractEntity() {\r\n\t}", "Car()\r\n\t{\r\n\t\tSystem.out.println(\"hello\");\r\n\t}", "public Car (String color, int wheels, double speed)\n {\n this.color = color;\n this.wheels = wheels;\n this.speed = speed;\n }", "Entity createEntity();", "public Vehicle(int year, String make, String model) {\n\t\tsuper();\n\t\tYear = year;\n\t\tMake = make;\n\t\tModel = model;\n\t}", "public Vehicle(Integer id, Integer year, String make, String model) {\n this.id = id;\n this.year = year;\n this.make = make;\n this.model = model;\n }", "public DatabaseTable() { }", "public Item(Car car, Type type) {\n\t\tthis.type = type;\n\t\tthis.car = car;\n\t\tid = 1;\n\t}", "protected CompanyJPA() {\n\t}", "public MapEntity() {\n\t}", "public static Car createExisting(Integer carID, String make, String model,\r\n Integer productionYear) {\r\n return new Car(carID, make, model, productionYear);\r\n }", "public ElectricCar(String mfr, String color, Model model, Vehicle.PowerSource power, \n\t\t double safety, int range, boolean awd, int price, int rch,String batteryType, int VIN)\n{\n\t super(mfr, color, model, Vehicle.PowerSource.ELECTRIC_MOTOR, safety, range, awd, price, VIN);\n\t rechargeTime = rch;\n\t batteryType = \"Lithium\";\n}", "public Vehicle()\n {\n name = \"none\";\n cost = 0;\n }", "public Car getCarById(Integer id){\n\n return this.carCrudInterface.getById(id);\n\n }", "public Carmodel(String alias) {\n this(alias, CARMODEL);\n }", "public Car(int floor, String color){\n\t\tthis.carPosition = floor;\n\t\tthis.carColor = color;\n\t}", "@Test\n\tpublic void testCreateEmptyCarModel() {\n\t\tCarFactory _carFactory = new CarFactory();\n\n\t\tCarType _carType = CarType.valueOf((\"coupe\".toUpperCase()));\n\t\tString _make = \"BMW\";\n\t\tString _model = \"\";\n\t\tString _color = \"invalid_color\";\n\t\tint _year = 1999;\n\n\t\t// ---------------------------------------------\n\t\t// Creating an empty model car.\n\t\ttry {\n\t\t\t@SuppressWarnings(\"unused\")\n\t\t\tAbstractCar _unknown = _carFactory.buildCar(_carType, _make, _model, _color, _year);\n\n\t\t\tfail(\"Successfully created an invalid car (should not work).\");\n\t\t} catch (Exception expected_) {\n\t\t}\n\n\t}", "public Company() {\r\n\t\tsuper();\r\n\t}", "public Dealership() {\n cars = new TreeMap<>();\n }", "public interface CarDAO {\n\n /**\n *\n * @return all car object in the database.\n */\n Collection<Car> readCars();\n\n /**\n *\n * @param producer selected producer\n * @return return all car of the selected producer\n */\n Collection<Car> readCars(CarProducer producer);\n\n /**\n * Read a single car based on the plate number.\n * @param plateNo selected plate number\n * @return a car object. It should not return with null.\n * @throws CarNotFoundException if no car record is found in the database\n */\n Car readCar(String plateNo) throws CarNotFoundException;\n\n /**\n * Record car\n * @param car car which will be recorded\n * @throws CarRecordAlreadyExistsException if there is a car with the given plate number in the system.\n */\n void createCar(Car car) throws CarRecordAlreadyExistsException;\n}", "@Test\n\tpublic void testCreateNullCarMake() {\n\t\tCarFactory _carFactory = new CarFactory();\n\n\t\tCarType _carType = CarType.valueOf((\"coupe\".toUpperCase()));\n\t\tString _make = null;\n\t\tString _model = \"invalid_model\";\n\t\tString _color = \"invalid_color\";\n\t\tint _year = 1990;\n\n\t\t// ---------------------------------------------\n\t\t// Creating a null make car.\n\t\ttry {\n\t\t\t@SuppressWarnings(\"unused\")\n\t\t\tAbstractCar _unknown = _carFactory.buildCar(_carType, _make, _model, _color, _year);\n\n\t\t\tfail(\"Successfully created an invalid car (should not work).\");\n\t\t} catch (Exception expected_) {\n\t\t}\n\t}", "@Spawns(\"car\")\n public Entity spawnCar(SpawnData data) {\n PhysicsComponent physics = new PhysicsComponent();\n physics.setBodyType(BodyType.DYNAMIC);\n return entityBuilder()\n .type(CAR)\n .from(data)\n .viewWithBBox(texture(MainMenu.getSelectedCarAsset() , 70, 140))\n .with(new CollidableComponent(true))\n .with(new IrremovableComponent())\n .build();\n }", "public Model() {\n this(Persistence.createEntityManagerFactory(PERSISTENCE_UNIT_NAME), new TextRepository());\n }", "public VehicleViewRecord(String licensePlate, String modelcar, String brand, String fio, String status, Date begDate, Date endDate, Long vehiclePk, Long ptsPk, Long licenseplatePk) {\n super(VehicleView.VEHICLE_VIEW);\n\n set(0, licensePlate);\n set(1, modelcar);\n set(2, brand);\n set(3, fio);\n set(4, status);\n set(5, begDate);\n set(6, endDate);\n set(7, vehiclePk);\n set(8, ptsPk);\n set(9, licenseplatePk);\n }", "public City() {\n }", "public Company() {\n\t\tsuper();\n\t}", "public City() {\n\t}", "public City() {\n\t}", "public Car(String brand, String model, int productionYear, float dailyRentalPrice, int passengers){\n super(brand,model,productionYear,dailyRentalPrice);\n this.passengers = passengers;\n }", "CsticModel createInstanceOfCsticModel();", "public VehicleType() {\n }", "public CarShowroom() {\n initialiseShowroom();\n calculateAveragePrice();\n setOldestCar();\n getPriciestCar();\n }", "public DataSourceEntityExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "public VehicleType() { }", "public static Book createEntity() {\n Book book = new Book()\n .idBook(DEFAULT_ID_BOOK)\n .isbn(DEFAULT_ISBN)\n .title(DEFAULT_TITLE)\n .author(DEFAULT_AUTHOR)\n .year(DEFAULT_YEAR)\n .publisher(DEFAULT_PUBLISHER)\n .url_s(DEFAULT_URL_S)\n .url_m(DEFAULT_URL_M)\n .url_l(DEFAULT_URL_L);\n return book;\n }", "public CompanyData() {\r\n }", "private Car extractCar(Node carNode) throws DataProviderException {\n\t\tString pageId = getXpathEvaluator().evaluateXpathString(carNode, CarXpath.PAGE_ID);\n\n\t\tString model = StringEscapeUtils.unescapeHtml4(getXpathEvaluator().evaluateXpathString(carNode, CarXpath.MODEL));\n\t\tif (model == null || model.isEmpty()) {\n\t\t\tmodel = getXpathEvaluator().evaluateXpathString(carNode, CarXpath.MODEL_PROMOTED);\n\t\t}\n\n\t\tString mileage = getXpathEvaluator().evaluateXpathString(carNode, CarXpath.MILEAGE);\n\t\tif (mileage == null || mileage.isEmpty()) {\n\t\t\tmileage = getXpathEvaluator().evaluateXpathString(carNode, CarXpath.MILEAGE_PROMOTED);\n\t\t}\n\n\t\tString year = getXpathEvaluator().evaluateXpathString(carNode, CarXpath.YEAR);\n\t\tif (year == null || year.isEmpty()) {\n\t\t\tyear = getXpathEvaluator().evaluateXpathString(carNode, CarXpath.YEAR_PROMOTED);\n\t\t}\n\n\t\tString price = getXpathEvaluator().evaluateXpathString(carNode, CarXpath.PRICE);\n\t\tif (price == null || price.isEmpty()) {\n\t\t\tprice = getXpathEvaluator().evaluateXpathString(carNode, CarXpath.PRICE_PROMOTED);\n\t\t}\n\n\t\tCar result = new Car();\n\t\tresult.setPageId(pageId);\n\t\tresult.setModel(model);\n\t\tresult.setMileage(mileage);\n\t\tresult.setYear(year);\n\t\ttry {\n\t\t\tString[] priceSplitted = price.split(\" \");\n\t\t\tresult.setPrice(priceSplitted[0]);\n\t\t\tresult.setPriceCurrency(priceSplitted[1]);\n\t\t} catch (Exception e) {\n\t\t\tresult.setPrice(price);\n\t\t}\n\t\treturn result;\n\t}", "public CarAccessBean ( javax.ejb.EJBObject o ) throws java.rmi.RemoteException {\n super(o);\n }", "public Builder setCar(com.zzsong.netty.protobuff.two.ProtoData.Car value) {\n if (carBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n dataBody_ = value;\n onChanged();\n } else {\n carBuilder_.setMessage(value);\n }\n dataBodyCase_ = 4;\n return this;\n }", "public Vehicle2D() {\n }", "@Override\n public void onCreate(SQLiteDatabase db) {\n try {\n db.execSQL(\"CREATE TABLE \" + CARDS_TABLE_NAME + \" (\" +\n CARDS_COLUMN_ID + \" INTEGER PRIMARY KEY AUTOINCREMENT, \" +\n CARDS_COLUMN_NAME + \" VARCHAR(255), \" +\n CARDS_COLUMN_NUMBER + \" VARCHAR(255), \" +\n CARDS_COLUMN_CATEGORY + \" VARCHAR(255), \" +\n CARDS_COLUMN_FORMAT + \" VARCHAR(255), \" +\n CARDS_COLUMN_IMAGE + \" VARCHAR(255));\"\n );\n Log.d(\"DBHelper\", \"Table Created\");\n }catch(SQLException e){\n e.printStackTrace();\n }\n }" ]
[ "0.69915813", "0.6983518", "0.69649357", "0.69357663", "0.6869717", "0.685597", "0.67141426", "0.665427", "0.6635293", "0.6573711", "0.6564019", "0.65449315", "0.6422973", "0.64181644", "0.6366417", "0.63643646", "0.6167395", "0.61466897", "0.6133917", "0.61060816", "0.61016625", "0.6091494", "0.6056905", "0.60265553", "0.5995142", "0.5991932", "0.5940178", "0.5937627", "0.58872145", "0.58761615", "0.5851828", "0.5841174", "0.58381426", "0.5820919", "0.581173", "0.5803805", "0.57592374", "0.5738124", "0.57352656", "0.57349753", "0.5729229", "0.5728788", "0.5726278", "0.5718094", "0.57137364", "0.570851", "0.5695918", "0.56723803", "0.5662956", "0.5662956", "0.5655015", "0.5642815", "0.5642429", "0.5637708", "0.5622983", "0.5596192", "0.55808216", "0.55759466", "0.5573925", "0.55579454", "0.5551593", "0.55488765", "0.55472755", "0.55401325", "0.5538871", "0.5510365", "0.54995143", "0.54924583", "0.54809064", "0.5480285", "0.5477725", "0.54697007", "0.546349", "0.546158", "0.5453128", "0.5453023", "0.5446019", "0.54368824", "0.5434971", "0.54339725", "0.5433852", "0.54324305", "0.5432252", "0.543157", "0.54287827", "0.54287493", "0.54287493", "0.5427265", "0.54198533", "0.540526", "0.5401428", "0.5398254", "0.5397567", "0.5388632", "0.5384929", "0.5381097", "0.537669", "0.5372243", "0.5354756", "0.5342039" ]
0.6946471
3
Not used but kept for potential future use
public Car(Integer id, String make, String logoFileName, String makeUrl, String model, Integer year, Integer price, Integer mileage, Integer cityMPG, Integer highwayMPG, String engineType, String driveType) { this.id = id; this.make = make; this.logoFileName = logoFileName; this.makeUrl = makeUrl; this.model = model; this.year = year; this.price = price; this.mileage = mileage; this.cityMPG = cityMPG; this.highwayMPG = highwayMPG; this.engineType = engineType; this.driveType = driveType; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "public final void mo51373a() {\n }", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n public void func_104112_b() {\n \n }", "private void m50366E() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "protected boolean func_70814_o() { return true; }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void init() {\n }", "private Rekenhulp()\n\t{\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "protected MetadataUGWD() {/* intentionally empty block */}", "public void method_4270() {}", "@Override\n public int describeContents() { return 0; }", "private void getStatus() {\n\t\t\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "public void mo38117a() {\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "private void init() {\n\n\t}", "@Override\n public void init() {\n }", "@Override\r\n\tpublic void init() {}", "public void smell() {\n\t\t\n\t}", "private void poetries() {\n\n\t}", "@Override\n public void init() {\n\n }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "private void kk12() {\n\n\t}", "private MetallicityUtils() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n void init() {\n }", "@Override\n protected void initialize() \n {\n \n }", "@Override\n protected void prot() {\n }", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override public int describeContents() { return 0; }", "@Override\n protected void getExras() {\n }", "protected void mo6255a() {\n }", "@Override\n public void init() {}", "@Override\n protected void initialize() {\n\n \n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void mo4359a() {\n }", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "@Override\r\n\tpublic final void init() {\r\n\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "protected boolean func_70041_e_() { return false; }", "@Override\n\tpublic void anular() {\n\n\t}", "private void strin() {\n\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\n\t\tpublic void init() {\n\t\t}", "public final void mo91715d() {\n }", "private void initialize() {\n\t\t\n\t}", "private void m50367F() {\n }", "@Override\n public int retroceder() {\n return 0;\n }", "public void m23075a() {\n }", "private void init() {\n }", "public void mo12628c() {\n }", "private ReportGenerationUtil() {\n\t\t\n\t}", "protected OpinionFinding() {/* intentionally empty block */}", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "private Util() { }", "public void mo6081a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "private static void cajas() {\n\t\t\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tprotected void initialize() {\n\t}" ]
[ "0.61924255", "0.60743606", "0.6071602", "0.60103106", "0.5922578", "0.58908457", "0.5848054", "0.58245224", "0.57981026", "0.5776768", "0.5756279", "0.5734877", "0.5699842", "0.5699842", "0.56921464", "0.56921464", "0.56921464", "0.56921464", "0.56921464", "0.56921464", "0.5686693", "0.56774175", "0.56468004", "0.5637053", "0.56360257", "0.5608441", "0.55885834", "0.55829334", "0.557726", "0.55739737", "0.55739737", "0.55717754", "0.5566636", "0.5565191", "0.5561077", "0.55577767", "0.5550738", "0.55498356", "0.55437076", "0.55269444", "0.5515119", "0.5515119", "0.5515119", "0.5515119", "0.5515119", "0.55119324", "0.5511701", "0.5507611", "0.5506474", "0.5506474", "0.5504546", "0.54967487", "0.5495561", "0.5491595", "0.54888755", "0.54830253", "0.5480924", "0.54712087", "0.54704595", "0.54704595", "0.54704595", "0.54669315", "0.5464085", "0.5462248", "0.5458826", "0.5453803", "0.54518044", "0.54491425", "0.54491425", "0.5446095", "0.5439294", "0.54391164", "0.5436218", "0.5434585", "0.5434405", "0.5434283", "0.5430158", "0.5412015", "0.5408614", "0.5405249", "0.5402393", "0.53996193", "0.53946394", "0.5390446", "0.53879386", "0.53865", "0.5378862", "0.53783596", "0.53783596", "0.53783596", "0.53783596", "0.53783596", "0.53783596", "0.53783596", "0.537598", "0.5374543", "0.5370397", "0.5370397", "0.5370397", "0.53678495", "0.53678495" ]
0.0
-1
/ ================================ Instance Methods Used Internally ================================ Generate and return a hash code value for the object with database primary key id
@Override public int hashCode() { int hash = 0; hash += (id != null ? id.hashCode() : 0); return hash; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public int hashCode() {\n \n final int code = 24;\n int result = 1;\n result = code * result + ((id == null) ? 0 : id.hashCode());\n return result;\n }", "public int hashCode() {\n return getId();\n }", "public int hashCode() {\n return getId();\n }", "public void generateID()\n {\n ID = this.hashCode();\n }", "@Override\n\t\tpublic int hashCode()\n\t\t{\n\t\t\treturn absorber.getObjectId();\n\t\t}", "private static int initHash() {\n return 0x811c9DC5; // unsigned 2166136261\n }", "public long getObjectId(Object o)\n{\n\treturn o.hashCode();\n}", "public int hashCode() {\n long hash = UtilConstants.HASH_INITIAL;\n hash = hash * UtilConstants.HASH_PRIME + objectHashCode(getProjectName());\n hash = hash * UtilConstants.HASH_PRIME + objectHashCodeFK(getDataProvider());\n hash = hash * UtilConstants.HASH_PRIME + objectHashCodeFK(getPrimaryInvestigator());\n hash = hash * UtilConstants.HASH_PRIME + objectHashCodeFK(getCreatedBy());\n hash = hash * UtilConstants.HASH_PRIME + objectHashCode(getCreatedTime());\n return (int)(hash % Integer.MAX_VALUE);\n }", "public int hashCode() {\n/* 781 */ return getUniqueId().hashCode();\n/* */ }", "@Override\n\tpublic int hashCode() {\n\t\treturn getId();\n\t}", "public int hashCode() {\n\t\treturn BeanTools.createHashcode(id, consultContent, consultTime);\r\n\t}", "@Override\r\n\tpublic int hashCode() {\n\t\treturn this.id;\r\n\t}", "public int hashCode()\r\n/* 124: */ {\r\n/* 125:126 */ return this.id;\r\n/* 126: */ }", "@Override\r\n\tpublic int hashCode() {\n\t\tint result = 17;\r\n\t\tresult = 37*result+(int) (id ^ (id>>>32));\r\n\t\t//result = 37*result+(name==null?0:name.hashCode());\r\n\t\t//result = 37*result+displayOrder;\r\n\t\t//result = 37*result+(this.url==null?0:url.hashCode());\r\n\t\treturn result;\r\n\t}", "@Override\n public int hashCode() {\n int i;\n int result = 17;\n i = getIduser();\n result = 37*result + i;\n return result;\n }", "public int hashCode(){\n return this.id; // this.hashCode()\n }", "@Override\n public int hashCode() {\n final int prime = 31;\n int result = 1;\n result = prime * result + id;\n return result;\n }", "@Override\n public int hashCode() {\n int i;\n int result = 17;\n i = getIdacquirente();\n result = 37*result + i;\n return result;\n }", "@Override\n public int hashCode() {\n return this.id;\n }", "@Override\r\n\t public int hashCode()\r\n\t {\n\t final int PRIME = 31;\r\n\t int result = 1;\r\n\t result = (int) (PRIME * result + (getId()==null?\r\n\t \t\tgetName().hashCode()\r\n\t \t\t:getName().hashCode()+getId()));\r\n\t return result;\r\n\t }", "public int hashCode()\r\n\t{\r\n\t\tif(getId() != null)\r\n\t\t\treturn getId().hashCode();\r\n\t\treturn 0;\r\n\t}", "public int hashcode();", "public int hashCode()\r\n {\r\n if (this.hashValue == 0)\r\n {\r\n int result = 17;\r\n int purSubcateIdValue = this.getId() == null ? 0 : this.getId().hashCode();\r\n result = result * 37 + purSubcateIdValue;\r\n this.hashValue = result;\r\n }\r\n return this.hashValue;\r\n }", "@Override\n public int hashCode() {\n final int prime = 31;\n int result = 1;\n result = prime * result + id; \n return result;\n }", "@Override\r\n\tpublic int hashCode() {\n\t\treturn id;\r\n\t}", "@Override\r\n public int hashCode() {\n int key=(Integer)(this.capsule.get(0)); // Get the key\r\n Integer bkey=Integer.parseInt(Integer.toBinaryString(key)); // Convert into binary \r\n int n=setcount(bkey); //counts the number of 1's in the binary\r\n key=key*n + Objects.hashCode(this.capsule.get(0)); //multiplies that with the hashcode of the pId\r\n return key;\r\n }", "public int hashCode()\r\n/* */ {\r\n/* 89 */ int hash = 3;\r\n/* 90 */ hash = 19 * hash + Objects.hashCode(this.id);\r\n/* 91 */ return hash;\r\n/* */ }", "@Override\r\n \tpublic int hashCode() {\n \t\treturn id.hashCode();\r\n \t}", "public int hashCode()\n\t{\n\t\tif(getId() != null)\n\t\t\treturn getId().hashCode();\n\t\treturn 0;\n\t}", "static int getUniqueID(Object obj) {\n return obj.hashCode();\n }", "public int hashCode()\n\t{\n\t\treturn id.hashCode();\n\t}", "@Override\r\n public int hashCode() {\n return id % 10;\r\n }", "@Override\n public int hashCode() {\n return Long.hashCode(this.getId());\n }", "@Override\r\n public int hashCode() {\r\n final int prime = 31;\r\n int result = 1;\r\n result = prime * result + id;\r\n return result;\r\n }", "@Override\n\tpublic int hashCode()\n\t{\n\t\treturn (int)id;\n\t}", "@Override\n\tpublic int hashCode() {\n\t\t\n\t\treturn (int)id * name.hashCode() * email.hashCode();\n\t\t//int hash = new HashCodeBuilder(17,37).append(id).append(name); //can be added from Apache Commons Lang's HashCodeBuilder class\n\t}", "public int hashCode() {\n\t\treturn this.eid + 25;\n\t}", "public int hashCode(){\r\n \tif (id != null){\r\n \t\treturn id.hashCode();\r\n \t}\r\n \treturn 0;\r\n }", "@Override\n\tpublic int hashCode() {\n\t\treturn id;\n\t}", "@Override\n\tpublic int hashCode() {\n\t\treturn id;\n\t}", "@Override\n\tpublic int hashCode() {\n\t\tfinal int prime = 31;\n\t\tint result = 1;\n\t\tresult = prime * result + id;\n\t\treturn result;\n\t}", "@Override\n\tpublic int hashCode() {\n\t\tfinal int prime = 31;\n\t\tint result = 1;\n\t\tresult = prime * result + id;\n\t\treturn result;\n\t}", "@Override\n\tpublic int hashCode() {\n\t\tfinal int prime = 31;\n\t\tint result = 1;\n\t\tresult = prime * result + id;\n\t\treturn result;\n\t}", "public int getID() {\n\t\treturn this.data.hashCode();\n\t}", "@Override\n public int hashCode() {\n final int prime = 31;\n int result = 1;\n result = prime * result + ((id == null) ? 0 : id.hashCode());\n return result;\n }", "public int generateHashCode() {\n int code = getClass().hashCode();\n ASTSpanInfo temp_info = getInfo();\n code ^= temp_info.hashCode();\n LHS temp_obj = getObj();\n code ^= temp_obj.hashCode();\n Expr temp_index = getIndex();\n code ^= temp_index.hashCode();\n return code;\n }", "@Override\n\tpublic int hashCode() {\n\t\tfinal int prime = 999;\n\t\tint result = 1;\n\t\tresult = prime * result + Table;\n\t\tresult = prime * result + id;\n\t\treturn result;\n\t}", "private Integer getUniqueId(Object object) {\n/* 89 */ Integer id = this.idCache.get(object);\n/* 90 */ if (id == null) {\n/* 91 */ id = Integer.valueOf(this.uidGenerator.incrementAndGet());\n/* 92 */ Integer existing = this.idCache.putIfAbsent(object, id);\n/* 93 */ if (existing != null) {\n/* 94 */ return existing;\n/* */ }\n/* */ } \n/* 97 */ return id;\n/* */ }", "public int hashCode()\n {\n int i = 0;\n if ( hasId() )\n i ^= getId().hashCode();\n return i;\n }", "public int hashCode()\n {\n int i = 0;\n if ( hasId() )\n i ^= getId().hashCode();\n return i;\n }", "public int hashCode()\n {\n int i = 0;\n if ( hasId() )\n i ^= getId().hashCode();\n return i;\n }", "public int hashCode()\n {\n int i = 0;\n if ( hasId() )\n i ^= getId().hashCode();\n return i;\n }", "public int hashCode()\n {\n int i = 0;\n if ( hasId() )\n i ^= getId().hashCode();\n return i;\n }", "@Override\n public int hashCode() {\n return this.id.hashCode();\n }", "public int hashCode() {\r\n int result = 17;\r\n result = xCH(result, getTableDbName());\r\n result = xCH(result, getMemberAddressId());\r\n return result;\r\n }", "public int hashCode() {\n ID id = getId();\n\n if (id != null) {\n return id.hashCode();\n }\n\n return super.hashCode();\n }", "public int genID() {\n int uid = this.hashCode();\n if (uid < 0) {\n uid = Math.abs(uid);\n uid = uid * 15551;\n }\n return uid;\n }", "public int hashCode() {\r\n \tif (id != null){\r\n \t\treturn id.hashCode();\r\n \t}\r\n \treturn 0;\r\n }", "public int generateHashCode() {\n int code = getClass().hashCode();\n boolean temp_fromSource = isFromSource();\n code ^= temp_fromSource ? 1231 : 1237;\n IRId temp_name = getName();\n code ^= temp_name.hashCode();\n List<IRId> temp_params = getParams();\n code ^= temp_params.hashCode();\n List<IRStmt> temp_args = getArgs();\n code ^= temp_args.hashCode();\n List<IRFunDecl> temp_fds = getFds();\n code ^= temp_fds.hashCode();\n List<IRVarStmt> temp_vds = getVds();\n code ^= temp_vds.hashCode();\n List<IRStmt> temp_body = getBody();\n code ^= temp_body.hashCode();\n return code;\n }", "@Override\n public int hashCode() {\n final int prime = 31;\n int result = 1;\n result = prime * result + ((getId() == null) ? 0 : getId().hashCode());\n return result;\n }", "@Override\n\tpublic int hashCode() {\n\t\treturn id.hashCode();\n\t}", "public int hashCode()\n { \n \tint result = 17;\n \t\n \tresult = 37 * result + id;\n \tresult = 37 * result + room.hashCode();\n \tresult = 37 * result + ( isLocked ? 1 : 0 );\n \tresult = 37 * result + keyID; \t\n \t\n \treturn result;\n }", "public int hashCode() {\n final int HASH_MULTIPLIER = 29;\n int h = HASH_MULTIPLIER * FName.hashCode() + LName.hashCode();\n h = HASH_MULTIPLIER * h + ((Integer)ID).hashCode();\n return h;\n }", "@Override\n @PersistField(id = true, name = \"id\", readonly = true)\n public int hashCode()\n {\n int positionHash = position == null ? 0 : position.hashCode();\n int worldHash = worldData == null ? 0 : worldData.getName().hashCode();\n return positionHash ^ worldHash << 14;\n }", "private static int nextHashCode() {\n return nextHashCode.getAndAdd(HASH_INCREMENT);\n }", "@Override\n\tpublic int hashCode() {\n\t\treturn this.id == null ? 0 : this.id.hashCode();\n\t}", "long getCodeId();", "long getCodeId();", "long getCodeId();", "@Override\n\tpublic int hashCode() {\n\t\tfinal int prime = 31;\n\t\tint result = 1;\n\t\tresult = prime * result + ((id == null) ? 0 : id.hashCode());\n\t\treturn result;\n\t}", "@Override\n\tpublic int hashCode() {\n\t\tfinal int prime = 31;\n\t\tint result = 1;\n\t\tresult = prime * result + ((id == null) ? 0 : id.hashCode());\n\t\treturn result;\n\t}", "public int hashCode()\n {\n return (int)(swigCPtr^(swigCPtr>>>32));\n }", "public abstract long id();", "@Override\n public int hashCode(){\n return this.myId;\n }", "@Override\n public int hashCode() {\n return (id == null) ? 0 : id.hashCode();\n }", "public int hashCode() {\n return 37 * 17;\n }", "public String identityHash() {\n return Integer.toHexString(System.identityHashCode(this));\n }", "@Override\r\n public int hashCode() {\r\n int hash = 0;\r\n hash += (this.id != null ? this.id.hashCode() : 0);\r\n return hash;\r\n }", "@Override\n public int hashCode() {\n final int prime = 31;\n int result = 1;\n result = prime * result + ((getId() == null) ? 0 : getId().hashCode());\n result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());\n result = prime * result + ((getIdentityType() == null) ? 0 : getIdentityType().hashCode());\n result = prime * result + ((getIdentifier() == null) ? 0 : getIdentifier().hashCode());\n return result;\n }", "@Override\n\tpublic int hashCode() {\n\t\treturn getId() == null ? super.hashCode() : getId().hashCode();\n\t}", "public int hashCode() {\n int hash = UtilConstants.HASH_INITIAL;\n hash = hash * UtilConstants.HASH_PRIME + (userId != null ? userId.hashCode() : 0);\n hash = hash * UtilConstants.HASH_PRIME + (role != null ? role.hashCode() : 0);\n return hash;\n }", "public int getId() {\n // some code goes here\n \treturn m_f.getAbsoluteFile().hashCode();\n }", "public int hashCode() {\n int hash = UtilConstants.HASH_INITIAL;\n hash = hash * UtilConstants.HASH_PRIME + (userId != null ? userId.hashCode() : 0);\n hash = hash * UtilConstants.HASH_PRIME + (projectId != null ? projectId.hashCode() : 0);\n return hash;\n }", "public int hashCode()\n\t{\n\t\treturn System.identityHashCode(userObject);\n\t}", "public int hashCode(){\n int hash = HashCodeUtil.SEED;\n\n hash = HashCodeUtil.hash(hash,getEventTimeMillis());\n hash = HashCodeUtil.hash(hash,getEventId());\n hash = HashCodeUtil.hash(hash,getAuthenticationType());\n hash = HashCodeUtil.hash(hash,getServiceHost());\n hash = HashCodeUtil.hash(hash,getRequesterIp());\n hash = HashCodeUtil.hash(hash,getSessionId());\n hash = HashCodeUtil.hash(hash,getResourceHost());\n hash = HashCodeUtil.hash(hash,getPrincipalName());\n hash = HashCodeUtil.hash(hash,getEventType());\n hash = HashCodeUtil.hash(hash,getServiceId());\n hash = HashCodeUtil.hash(hash,getResourceId());\n\n\n return hash;\n\n }", "int getObjId();", "int getObjId();", "int getObjId();", "int getObjId();", "int getObjId();", "int getObjId();", "public int getId() {\n // some code goes here\n int id = f.getAbsoluteFile().hashCode();\n //System.out.println(id);\n return id;\n }", "@Override\n public int hashCode()\n {\n if (hash != 0) {\n return hash;\n }\n\n hash = provider.hashCode() * 127 + id.hashCode();\n return hash;\n }", "@Override\n public int hashCode() {\n return Objects.hash(id);\n }", "String uniqueId();", "public abstract int getHash();", "@Override\r\n public int hashCode() {\r\n int i;\r\n int result = 17;\r\n i = getIdContacto();\r\n result = 37 * result + i;\r\n return result;\r\n }", "public int hashCode() {\n return registrationNumber.hashCode(); // In this case there is the simplest and best solving.\n }", "@Override\n public int hashCode() {\n int hash = 0;\n hash += (id != null ? id.hashCode() : 0);\n return hash;\n }", "@Override\r\n\tpublic int hashCode() {\n\t\treturn caId.hashCode();\r\n\t}" ]
[ "0.72991204", "0.71596473", "0.71044886", "0.7104342", "0.70938575", "0.7056521", "0.704486", "0.7014118", "0.6967047", "0.6965784", "0.695912", "0.69252115", "0.6924061", "0.69209224", "0.6896156", "0.6885128", "0.6879265", "0.6875088", "0.68545043", "0.68349975", "0.68214774", "0.6820035", "0.68182456", "0.6817926", "0.6813295", "0.68119997", "0.6809652", "0.68045396", "0.6801435", "0.6799973", "0.6799349", "0.6794309", "0.67905974", "0.6766817", "0.67667025", "0.6745683", "0.67294854", "0.67279744", "0.6723684", "0.6723684", "0.6716105", "0.6716105", "0.6716105", "0.67139876", "0.6711101", "0.67095", "0.6703328", "0.67028177", "0.670203", "0.670203", "0.670203", "0.670203", "0.670203", "0.66961867", "0.66923606", "0.66921735", "0.66884696", "0.6658694", "0.6648058", "0.66432065", "0.66411173", "0.6626409", "0.6621095", "0.6617512", "0.6597691", "0.65819585", "0.6574281", "0.6574281", "0.6574281", "0.65706027", "0.65706027", "0.65662354", "0.65556175", "0.6554846", "0.6552703", "0.6537857", "0.65241075", "0.64975363", "0.6489853", "0.6487269", "0.6479264", "0.6468098", "0.6465695", "0.6465127", "0.6460938", "0.6447082", "0.6447082", "0.6447082", "0.6447082", "0.6447082", "0.6447082", "0.6439497", "0.64267874", "0.6422832", "0.64180684", "0.64148223", "0.6414127", "0.6413322", "0.6406415", "0.64007056" ]
0.64777136
81
/ Checks if the car object identified by 'object' is the same as the car object identified by 'id' Parameter object = car object identified by 'object' Returns True if the car 'object' and 'id' are the same; otherwise, return False
@Override public boolean equals(Object object) { if (!(object instanceof Car)) { return false; } Car other = (Car) object; return (this.id != null || other.id == null) && (this.id == null || this.id.equals(other.id)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Car)) {\n return false;\n }\n Car other = (Car) object;\n if ((this.idcar == null && other.idcar != null) || (this.idcar != null && !this.idcar.equals(other.idcar))) {\n return false;\n }\n return true;\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof CarPayment)) {\r\n return false;\r\n }\r\n CarPayment other = (CarPayment) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\n public boolean equals(Object o) {\n if (this == o)\n return true;\n\n if (!(o instanceof Car))\n return false;\n\n Car c = (Car) o;\n return (this.id == c.id\n && this.size == c.size\n && this.orientation == c.orientation\n && this.currentPosition.equals(c.currentPosition));\n }", "@Override\n public boolean equals(Object o) {\n if (this == o) {\n return true;\n }\n if (!(o instanceof Carrito)) {\n return false;\n }\n return id != null && id.equals(((Carrito) o).id);\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof CarModel)) {\n return false;\n }\n CarModel other = (CarModel) object;\n if ((this.modelId == null && other.modelId != null) || (this.modelId != null && !this.modelId.equals(other.modelId))) {\n return false;\n }\n return true;\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof FatRecurso)) {\r\n return false;\r\n }\r\n FatRecurso other = (FatRecurso) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\r\n public boolean equals(Object o){\r\n boolean equals=false;\r\n if (o!=null) {\r\n equals=(this.id==((Car)o).id)&&\r\n this.currentPosition.equals(((Car)o).currentPosition)\r\n &&this.orientation==((Car)o).orientation&&this.size==((Car)o).size;\r\n }\r\n return equals;\r\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Reprocessing)) {\n return false;\n }\n Reprocessing other = (Reprocessing) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Tmproyecto)) {\n return false;\n }\n Tmproyecto other = (Tmproyecto) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Rolistafit)) {\n return false;\n }\n Rolistafit other = (Rolistafit) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Acarsdata)) {\r\n return false;\r\n }\r\n Acarsdata other = (Acarsdata) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Campeonatos)) {\r\n return false;\r\n }\r\n Campeonatos other = (Campeonatos) object;\r\n if ((this.idcampeonato == null && other.idcampeonato != null) || (this.idcampeonato != null && !this.idcampeonato.equals(other.idcampeonato))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Thjerreza)) {\r\n return false;\r\n }\r\n Thjerreza other = (Thjerreza) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof CompteBancaire)) {\r\n return false;\r\n }\r\n CompteBancaire other = (CompteBancaire) object;\r\n if (this.id != other.id) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Doktori)) {\n return false;\n }\n Doktori other = (Doktori) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof MejObra)) {\n return false;\n }\n MejObra other = (MejObra) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Vagas)) {\r\n return false;\r\n }\r\n Vagas other = (Vagas) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Carrito)) {\n return false;\n }\n Carrito other = (Carrito) object;\n if ((this.codigoCarrito == null && other.codigoCarrito != null) || (this.codigoCarrito != null && !this.codigoCarrito.equals(other.codigoCarrito))) {\n return false;\n }\n return true;\n }", "public boolean equals(Object obj) {\n return (obj instanceof Car) && ((Car) obj).registrationNumber.equals(registrationNumber);\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Corder)) {\n return false;\n }\n Corder other = (Corder) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Kanri)) {\n return false;\n }\n Kanri other = (Kanri) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Tarjeta)) {\n return false;\n }\n Tarjeta other = (Tarjeta) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof TransferItem)) {\r\n return false;\r\n }\r\n TransferItem other = (TransferItem) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return false;\r\n }\r\n return true;\r\n }", "public boolean equals(Object object);", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Surenchere)) {\r\n return false;\r\n }\r\n Surenchere other = (Surenchere) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof SicRecurso)) {\n return false;\n }\n SicRecurso other = (SicRecurso) object;\n if ((this.idSicRecurso == null && other.idSicRecurso != null) || (this.idSicRecurso != null && !this.idSicRecurso.equals(other.idSicRecurso))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object obj) {\n\n return id.equals(((BacInfo) obj).id);\n\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Dia3)) {\n return false;\n }\n Dia3 other = (Dia3) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "public boolean isIdentical(Remote obj1, Remote obj2)\n {\n\torg.omg.CORBA.Object corbaObj1 = (org.omg.CORBA.Object)obj1;\n\torg.omg.CORBA.Object corbaObj2 = (org.omg.CORBA.Object)obj2;\n\n\treturn corbaObj1._is_equivalent(corbaObj2);\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof GoiTin)) {\n return false;\n }\n GoiTin other = (GoiTin) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Receta)) {\n return false;\n }\n Receta other = (Receta) object;\n if ((this.idReceta == null && other.idReceta != null) || (this.idReceta != null && !this.idReceta.equals(other.idReceta))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Sacrificio)) {\n return false;\n }\n Sacrificio other = (Sacrificio) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "boolean equals(Object object);", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof OrdenMedica)) {\r\n return false;\r\n }\r\n OrdenMedica other = (OrdenMedica) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Transfer)) {\n return false;\n }\n Transfer other = (Transfer) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Contrato)) {\n return false;\n }\n Contrato other = (Contrato) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "public boolean equals(Object object1) {\n if (object1 != null && object1.getClass() != this.getClass())\n {\n return false;\n }\n else\n {\n Computer c1 = (Computer) object1;\n return (this.brand.equals(c1.brand) && this.model.equals(c1.model) && this.price == c1.price);\n }\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Museo)) {\r\n return false;\r\n }\r\n Museo other = (Museo) object;\r\n if ((this.idMuseo == null && other.idMuseo != null) || (this.idMuseo != null && !this.idMuseo.equals(other.idMuseo))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof FluxoCaixa)) {\r\n return false;\r\n }\r\n FluxoCaixa other = (FluxoCaixa) object;\r\n return (this.id != null || other.id == null) && (this.id == null || this.id.equals(other.id));\r\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof AsignacionReparacion)) {\r\n return false;\r\n }\r\n AsignacionReparacion other = (AsignacionReparacion) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\n public boolean equals(Object obj) {\n if (obj.getClass() == Vehicle.class){\n Vehicle vehicleObj = (Vehicle) obj;\n return vehicleObj.getId().equals(id) &&\n vehicleObj.getYear().equals(year) &&\n vehicleObj.getMake().equals(make) &&\n vehicleObj.getModel().equals(model);\n }\n return false;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof BancosTO)) {\n return false;\n }\n BancosTO other = (BancosTO) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Matiere)) {\n return false;\n }\n Matiere other = (Matiere) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Lektor)) {\r\n return false;\r\n }\r\n Lektor other = (Lektor) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Condominios)) {\r\n return false;\r\n }\r\n Condominios other = (Condominios) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Scanner)) {\n return false;\n }\n Scanner other = (Scanner) object;\n return !((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id)));\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Seguimiento)) {\r\n return false;\r\n }\r\n Seguimiento other = (Seguimiento) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof RevResultado)) {\n return false;\n }\n RevResultado other = (RevResultado) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "public boolean equals(Object other){\r\n Car nuCar = (Car)other;\r\n if(super.equals(nuCar)){\r\n if(this.model==nuCar.model&&this.AWD==nuCar.AWD){\r\n return true;\r\n }else{\r\n return false;\r\n }\r\n }else{\r\n return false;\r\n }\r\n\t}", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Raci)) {\n return false;\n }\n Raci other = (Raci) object;\n if ((this.idRaci == null && other.idRaci != null) || (this.idRaci != null && !this.idRaci.equals(other.idRaci))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Kniha)) {\n return false;\n }\n Kniha other = (Kniha) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "public boolean equals(Object otherObject) {\n if (!(otherObject instanceof ID)) {\n return false;\n }\n return (this.UID.equals(otherObject.toString()));\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Review)) {\n return false;\n }\n Review other = (Review) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Direccion)) {\r\n return false;\r\n }\r\n Direccion other = (Direccion) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Song)) {\n return false;\n }\n Song other = (Song) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof CatalogoVehiculos)) {\r\n return false;\r\n }\r\n CatalogoVehiculos other = (CatalogoVehiculos) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Trainee)) {\n return false;\n }\n Trainee other = (Trainee) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Fornecedor)) {\r\n return false;\r\n }\r\n Fornecedor other = (Fornecedor) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Shares)) {\r\n return false;\r\n }\r\n Shares other = (Shares) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof BodegaNovedad)) {\n return false;\n }\n BodegaNovedad other = (BodegaNovedad) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Brating)) {\r\n return false;\r\n }\r\n Brating other = (Brating) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Puntori)) {\n return false;\n }\n Puntori other = (Puntori) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Fakturaslownik)) {\n return false;\n }\n Fakturaslownik other = (Fakturaslownik) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof PlikPotw)) {\r\n return false;\r\n }\r\n PlikPotw other = (PlikPotw) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Curriculo)) {\r\n return false;\r\n }\r\n Curriculo other = (Curriculo) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof ItemCotizacion)) {\n return false;\n }\n ItemCotizacion other = (ItemCotizacion) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Produit)) {\r\n return false;\r\n }\r\n Produit other = (Produit) object;\r\n if (this.id != other.id) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof OperationBancaire)) {\n return false;\n }\n OperationBancaire other = (OperationBancaire) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Clothing)) {\n return false;\n }\n Clothing other = (Clothing) object;\n if ((this.idclothing == null && other.idclothing != null) || (this.idclothing != null && !this.idclothing.equals(other.idclothing))) {\n return false;\n }\n return true;\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Reservations)) {\r\n return false;\r\n }\r\n Reservations other = (Reservations) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return false;\r\n }\r\n return true;\r\n }", "boolean hasSameAs();", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Valvula)) {\n return false;\n }\n Valvula other = (Valvula) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Jscmisto)) {\r\n return false;\r\n }\r\n Jscmisto other = (Jscmisto) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof ComplaintImageDTO)) {\n return false;\n }\n ComplaintImageDTO other = (ComplaintImageDTO) object;\n if ((this.complaintImageID == null && other.complaintImageID != null) || (this.complaintImageID != null && !this.complaintImageID.equals(other.complaintImageID))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Booking)) {\n return false;\n }\n Booking other = (Booking) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "@Override\r\n public boolean equals(Object o) {\r\n if (this == o) {\r\n return true;\r\n }\r\n if (!(o instanceof ReOs)) {\r\n return false;\r\n }\r\n return id != null && id.equals(((ReOs) o).id);\r\n }", "public boolean equals(Object obj);", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Canton)) {\n return false;\n }\n Canton other = (Canton) object;\n if ((this.idCanton == null && other.idCanton != null) || (this.idCanton != null && !this.idCanton.equals(other.idCanton))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Cda)) {\n return false;\n }\n Cda other = (Cda) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Contrato)) {\r\n return false;\r\n }\r\n Contrato other = (Contrato) object;\r\n if ((this.idcontrato == null && other.idcontrato != null) || (this.idcontrato != null && !this.idcontrato.equals(other.idcontrato))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\n public boolean equals(Object o) {\n if (this == o) return true;\n\n //jesli obiekt porownywany jest null\n //albo jesli kasy obiektow sa rozne\n //to nie ten sam obiekt\n if (o == null || getClass() != o.getClass()) return false;\n\n\n Car car = (Car) o;\n\n //jak juz powyzsze przeszlo to porownojemy wszystkie pole ktore chcemy\n //brac jako okreslajace nepowtarzalnosc naszego obiektu\n return maxSpeed == car.maxSpeed && //\n name.equals(car.name) && // zapis jednej lini w wielu\n engine.equals(car.engine); //\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Mascota)) {\r\n return false;\r\n }\r\n Mascota other = (Mascota) object;\r\n if ((this.idMascota == null && other.idMascota != null) || (this.idMascota != null && !this.idMascota.equals(other.idMascota))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Lugar)) {\n return false;\n }\n Lugar other = (Lugar) object;\n if ((this.idlugar == null && other.idlugar != null) || (this.idlugar != null && !this.idlugar.equals(other.idlugar))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof ClientesMotoristas)) {\n return false;\n }\n ClientesMotoristas other = (ClientesMotoristas) object;\n if ((this.clmtId == null && other.clmtId != null) || (this.clmtId != null && !this.clmtId.equals(other.clmtId))) {\n return false;\n }\n return true;\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Descarga)) {\r\n return false;\r\n }\r\n Descarga other = (Descarga) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Compras)) {\r\n return false;\r\n }\r\n Compras other = (Compras) object;\r\n if ((this.idCompras == null && other.idCompras != null) || (this.idCompras != null && !this.idCompras.equals(other.idCompras))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Card)) {\n return false;\n }\n Card other = (Card) object;\n if ((this.cardPK == null && other.cardPK != null) || (this.cardPK != null && !this.cardPK.equals(other.cardPK))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Commande)) {\n return false;\n }\n Commande other = (Commande) object;\n return (this.id != null || other.id == null) && (this.id == null || this.id.equals(other.id));\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof TipoReparo)) {\n return false;\n }\n TipoReparo other = (TipoReparo) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Person)) {\n return false;\n }\n Person other = (Person) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Person)) {\n return false;\n }\n Person other = (Person) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Person)) {\n return false;\n }\n Person other = (Person) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof TrattaAuto)) {\n return false;\n }\n TrattaAuto other = (TrattaAuto) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Archivo)) {\n return false;\n }\n Archivo other = (Archivo) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "boolean canEqual(Object obj);", "public boolean equals(Object obj) {\n\t\tif (obj instanceof Trip) {\n\t\t\treturn getTripID().equalsIgnoreCase(\n\t\t\t\t((Trip) obj).getTripID());\n\t\t}\n\t\treturn false;\n\t}", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof GrnRetrunDetail)) {\n return false;\n }\n GrnRetrunDetail other = (GrnRetrunDetail) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Veiculo)) {\n return false;\n }\n Veiculo other = (Veiculo) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Rdv)) {\n return false;\n }\n Rdv other = (Rdv) object;\n if ((this.idRdv == null && other.idRdv != null) || (this.idRdv != null && !this.idRdv.equals(other.idRdv))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Trainees)) {\n return false;\n }\n Trainees other = (Trainees) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }" ]
[ "0.7376661", "0.6764973", "0.67045397", "0.6688957", "0.66392064", "0.66318506", "0.656746", "0.6556242", "0.6507981", "0.6494172", "0.64735055", "0.64590055", "0.6452922", "0.6406771", "0.63895136", "0.63842463", "0.63825405", "0.6365666", "0.636046", "0.6360428", "0.6349232", "0.63440484", "0.63314044", "0.63285387", "0.63167703", "0.62855864", "0.62772137", "0.62764645", "0.62686586", "0.6260119", "0.62499446", "0.623974", "0.62354153", "0.6231733", "0.62286896", "0.6227128", "0.62253827", "0.6224682", "0.6221535", "0.62207484", "0.62187237", "0.62074125", "0.62067723", "0.6198585", "0.61978364", "0.6185239", "0.61847126", "0.61802053", "0.61653346", "0.6160526", "0.6158881", "0.61578", "0.615369", "0.61509794", "0.61465204", "0.614126", "0.61396104", "0.6136702", "0.6135164", "0.61325204", "0.61304086", "0.6126291", "0.61245", "0.61164105", "0.611367", "0.61135983", "0.60991526", "0.6098416", "0.6098273", "0.60960734", "0.60956055", "0.60897225", "0.6083092", "0.60791403", "0.60738826", "0.607345", "0.60733676", "0.6071496", "0.6071223", "0.6067202", "0.6063436", "0.6059364", "0.6052919", "0.60521173", "0.60416174", "0.6040825", "0.60345334", "0.60342586", "0.6030282", "0.6026579", "0.6026579", "0.6026579", "0.60265046", "0.60240054", "0.6023118", "0.60201097", "0.6019293", "0.6018246", "0.60118115", "0.6011501" ]
0.75523454
0
Return String representation of database primary key id
@Override public String toString() { return id.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getPrimaryKey() {\n if (primaryKey == null) primaryKey = \"id\";\n return primaryKey;\n }", "public static String getPrimaryKeyName() {\r\n\t\t\treturn PRIMARY_KEY_ID;\r\n\t\t}", "public String formatPrimaryKey()\n {\n StringBuilder sb = new StringBuilder();\n AcFormatter f = new AcFormatter();\n sb.append(f.formatAny(getId()));\n return sb.toString();\n }", "public String formatPrimaryKey()\n {\n StringBuilder sb = new StringBuilder();\n AcFormatter f = new AcFormatter();\n sb.append(f.formatAny(getId()));\n return sb.toString();\n }", "public String formatPrimaryKey()\n {\n StringBuilder sb = new StringBuilder();\n AcFormatter f = new AcFormatter();\n sb.append(f.formatAny(getId()));\n return sb.toString();\n }", "public String formatPrimaryKey()\n {\n StringBuilder sb = new StringBuilder();\n AcFormatter f = new AcFormatter();\n sb.append(f.formatAny(getId()));\n return sb.toString();\n }", "public String formatPrimaryKey()\n {\n StringBuilder sb = new StringBuilder();\n AcFormatter f = new AcFormatter();\n sb.append(f.formatAny(getId()));\n return sb.toString();\n }", "public String getPrimaryKey() {\n return this.getString(R.string.primaryKey);\n }", "@Override\r\n\tpublic String getPrimaryKey() {\n\t\treturn \"ID\";\r\n\t}", "public String getPrimaryKey() {\n return getBasicChar().getPrimaryKey();\n }", "public String getKey() {\n\t\treturn id + \"\";\n\t}", "public String formatPrimaryKey()\n {\n StringBuilder sb = new StringBuilder();\n AcFormatter f = new AcFormatter();\n sb.append(f.formatAny(getBatchId()));\n sb.append(\", \");\n sb.append(f.formatAny(getNestId()));\n return sb.toString();\n }", "public String formatPrimaryKey()\n {\n StringBuilder sb = new StringBuilder();\n AcFormatter f = new AcFormatter();\n sb.append(f.formatAny(getHashKey()));\n return sb.toString();\n }", "public String getIdAsString(String key) {\n Object obj = ids.get(key);\n if (obj == null) {\n return \"\";\n }\n return String.valueOf(obj);\n }", "java.lang.String getDatabaseId();", "public String getId()\r\n\t{\n\t\treturn id.substring(2, 5);\r\n\t}", "public String getId() {\n int result;\n result = (key != null ? key.hashCode() : 0);\n result = 31 * result + (overridable ? 1 : 0);\n result = 31 * result + (value != null ? value.hashCode() : 0);\n result = 31 * result + (set ? 1 : 0);\n if (result < 0)\n result = result * -1;\n return String.valueOf(result);\n }", "public String generatePkForDbEntityString(DbEntity ent) {\n if ((null == ent.getPrimaryKey()) || (1 != ent.getPrimaryKey().size())) {\n throw new CayenneRuntimeException(\n \"Error generating pk for DbEntity \"\n + ent.getName()\n + \": pk must be single attribute\");\n }\n DbAttribute primaryKeyAttribute = (DbAttribute) ent.getPrimaryKey().get(0);\n\n StringBuffer buf = new StringBuffer(\"NEWID FOR \");\n buf.append(ent.getName()).append(' ').append(primaryKeyAttribute.getName());\n return buf.toString();\n }", "java.lang.String getStringId();", "java.lang.String getStringId();", "public String formatPrimaryKey()\n {\n StringBuilder sb = new StringBuilder();\n AcFormatter f = new AcFormatter();\n sb.append(f.formatAny(getCode()));\n return sb.toString();\n }", "public static String getStringID(Entity building) {\n\t\treturn Long.toString(building.getKey().getId());\n\t}", "public String getPkName() {\n\t\treturn \"id\";\n\t}", "public String getId() {\n\t\treturn Integer.toString(this.hashCode());\n\t}", "public String fieldIdToString() {\r\n\t\treturn new String(String.format(\"%02d\", getID()));\r\n\t}", "public String getId() {\n if (id == null)\n return \"\"; //$NON-NLS-1$\n return id;\n }", "public String getIdKey(EdaContext xContext) {\n\t\treturn String.valueOf(getId());\n\n\t}", "public java.lang.String getDatabaseId() {\n java.lang.Object ref = databaseId_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n databaseId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "@NonNull\n public final synchronized String getId() {\n if (id == null) {\n id = UUID.randomUUID().toString();\n }\n return id;\n }", "public String fetchPrimaryKey(){\n\t\treturn primaryKey;\n\t}", "String getIdentityId();", "public String getID() {\r\n return insertMode ? null : stringValue(CONTACTS_ID);\r\n }", "public String getQueryKey()\n {\n if (getPrimaryKey() == null)\n {\n return \"\";\n }\n else\n {\n return getPrimaryKey().toString();\n }\n }", "public String getIdString() {\n return idString;\n }", "public String getIDString() {\n return idString;\n }", "java.lang.String getClientRecordId();", "public String getId() {\r\n\t\treturn userId.toString();\r\n\t}", "private final static String getKey( Integer id ) {\n\t\treturn \"\" + id ;\n\t}", "com.google.protobuf.ByteString\n getDatabaseIdBytes();", "java.lang.String getID();", "public String naturalKeyName() {\n return idName();\n }", "public String getConvertToId();", "public java.lang.String getId() {\n\t\t\t\t\tjava.lang.Object ref = id_;\n\t\t\t\t\tif (!(ref instanceof java.lang.String)) {\n\t\t\t\t\t\tcom.google.protobuf.ByteString bs =\n\t\t\t\t\t\t\t\t(com.google.protobuf.ByteString) ref;\n\t\t\t\t\t\tjava.lang.String s = bs.toStringUtf8();\n\t\t\t\t\t\tid_ = s;\n\t\t\t\t\t\treturn s;\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn (java.lang.String) ref;\n\t\t\t\t\t}\n\t\t\t\t}", "public final String getIdAttribute() {\n return getAttributeValue(\"id\");\n }", "public String getPrimaryKey() {\r\n\t\treturn primaryKey;\r\n\t}", "@Override\n\tpublic Object getPrimaryKey() {\n\t\treturn id;\n\t}", "protected String createPKString(DbEntity entity) {\n List pk = entity.getPrimaryKey();\n\n if (pk == null || pk.size() == 0) {\n throw new CayenneRuntimeException(\n \"Entity '\" + entity.getName() + \"' has no PK defined.\");\n }\n\n StringBuffer buffer = new StringBuffer();\n buffer.append(\"CREATE PRIMARY KEY \").append(entity.getName()).append(\" (\");\n\n Iterator it = pk.iterator();\n\n // at this point we know that there is at least on PK column\n DbAttribute firstColumn = (DbAttribute) it.next();\n buffer.append(firstColumn.getName());\n\n while (it.hasNext()) {\n DbAttribute column = (DbAttribute) it.next();\n buffer.append(\", \").append(column.getName());\n }\n\n buffer.append(\")\");\n return buffer.toString();\n }", "public java.lang.String getId() {\n java.lang.Object ref = id_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n id_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getId() {\n java.lang.Object ref = id_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n id_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getId() {\n java.lang.Object ref = id_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n id_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getId() {\n java.lang.Object ref = id_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n id_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getId() {\n java.lang.Object ref = id_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n id_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getId() {\n java.lang.Object ref = id_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n id_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public Long getId()\n\t{\n\t\treturn (Long) this.getKeyValue(\"id\");\n\n\t}", "public java.lang.String getId() {\n java.lang.Object ref = id_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n id_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getId() {\n java.lang.Object ref = id_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n id_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getId() {\n java.lang.Object ref = id_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n id_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getId() {\n java.lang.Object ref = id_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n id_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getId() {\n java.lang.Object ref = id_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n id_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getId() {\n java.lang.Object ref = id_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n id_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getId() {\n java.lang.Object ref = id_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n id_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getId() {\n java.lang.Object ref = id_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n id_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getId() {\n java.lang.Object ref = id_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n id_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getPrimaryKey() {\n\t\treturn primaryKey;\n\t}", "public StrColumn getId() {\n return delegate.getColumn(\"id\", DelegatingStrColumn::new);\n }", "public StrColumn getId() {\n return delegate.getColumn(\"id\", DelegatingStrColumn::new);\n }", "public StrColumn getId() {\n return delegate.getColumn(\"id\", DelegatingStrColumn::new);\n }", "public StrColumn getId() {\n return delegate.getColumn(\"id\", DelegatingStrColumn::new);\n }", "public java.lang.String getId() {\n java.lang.Object ref = id_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n id_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getId() {\n java.lang.Object ref = id_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n id_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "String uniqueId();", "public String getId() {\n\t\tStringBuilder builder = new StringBuilder();\n\t\tbuilder.append(\"n=\");\n\t\tif ( nodeId != null ) {\n\t\t\tbuilder.append(nodeId);\n\t\t}\n\t\tbuilder.append(\";c=\");\n\t\tif ( created != null ) {\n\t\t\tbuilder.append(created);\n\t\t}\n\t\tbuilder.append(\";s=\");\n\t\tif ( sourceId != null ) {\n\t\t\tbuilder.append(sourceId);\n\t\t}\n\t\treturn DigestUtils.sha1Hex(builder.toString());\n\t}", "@Override\n\tpublic String getKey() {\n\t\treturn id+\"\";\n\t}", "public java.lang.String getId() {\n\t\t\t\tjava.lang.Object ref = id_;\n\t\t\t\tif (ref instanceof java.lang.String) {\n\t\t\t\t\treturn (java.lang.String) ref;\n\t\t\t\t} else {\n\t\t\t\t\tcom.google.protobuf.ByteString bs =\n\t\t\t\t\t\t\t(com.google.protobuf.ByteString) ref;\n\t\t\t\t\tjava.lang.String s = bs.toStringUtf8();\n\t\t\t\t\tid_ = s;\n\t\t\t\t\treturn s;\n\t\t\t\t}\n\t\t\t}", "public java.lang.String getId() {\n java.lang.Object ref = id_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n id_ = s;\n }\n return s;\n }\n }", "public java.lang.String getId() {\n java.lang.Object ref = id_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n id_ = s;\n }\n return s;\n }\n }", "public java.lang.String getId() {\n java.lang.Object ref = id_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();\n id_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String generateID() {\n return IDPREFIX + nextidint++;\n }", "String getIdNumber();", "public java.lang.String getId() {\n java.lang.Object ref = id_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n id_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getId() {\n java.lang.Object ref = id_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n id_ = s;\n }\n return s;\n }\n }", "public static String idToString(int id) {\n return Integer.toString(id, Character.MAX_RADIX);\n }", "public java.lang.String getId() {\n java.lang.Object ref = id_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n id_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getId() {\n java.lang.Object ref = id_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n id_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();" ]
[ "0.751708", "0.73463094", "0.73122334", "0.73122334", "0.73122334", "0.73122334", "0.73122334", "0.7201877", "0.7200001", "0.71599394", "0.70564175", "0.698959", "0.6966004", "0.6887756", "0.6867729", "0.6856605", "0.68272513", "0.6806194", "0.6798513", "0.6798513", "0.6762675", "0.6762076", "0.6709957", "0.6704716", "0.6702241", "0.66974", "0.6689033", "0.66880345", "0.66785014", "0.6598481", "0.6596341", "0.65894365", "0.65869355", "0.65826124", "0.6576936", "0.6569294", "0.65676266", "0.65657514", "0.65454364", "0.65373844", "0.6535213", "0.6525524", "0.6523688", "0.65204525", "0.6507637", "0.65073717", "0.64977187", "0.64838666", "0.64838666", "0.64838666", "0.64838666", "0.64838666", "0.6471665", "0.64698106", "0.64690036", "0.64690036", "0.64690036", "0.64690036", "0.64690036", "0.64690036", "0.64690036", "0.64690036", "0.6466313", "0.64612687", "0.6459429", "0.6459429", "0.6459429", "0.6459429", "0.6451236", "0.6451236", "0.644461", "0.64428276", "0.6425264", "0.642315", "0.64226866", "0.64226866", "0.64128447", "0.6406602", "0.6399905", "0.6391431", "0.6383249", "0.63824403", "0.6378066", "0.6378066", "0.63777244", "0.63777244", "0.63777244", "0.63777244", "0.63777244", "0.63777244", "0.63777244", "0.63777244", "0.63777244", "0.63777244", "0.63777244", "0.63777244", "0.63777244", "0.63777244", "0.63777244", "0.63777244", "0.63777244" ]
0.0
-1
This method will be invoked when a new page becomes selected.
@Override public void onPageSelected(int position) { // Toast.makeText(AlarmSettingActivity.this, // "Selected page position: " + position, Toast.LENGTH_SHORT).show(); setIndicator(position); play(position); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onPageSelected(int pageSelected) {\n\t\t\t}", "@Override\n\t\t\tpublic void onPageSelected(int arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onPageSelected(int arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onPageSelected(int arg0) {\n\n\t\t\t}", "@Override\n\t\tpublic void onPageSelected(int arg0)\n\t\t{\n\t\t\t\n\t\t}", "@Override\r\n\t\t\tpublic void onPageSelected(int arg0) {\n\t\t\t}", "@Override\n public void onPageSelected(int arg0) {\n }", "@Override\n\tpublic void onPageSelected(int arg0) {\n\t\t\n\t}", "@Override\n\tpublic void onPageSelected(int arg0) {\n\t\t\n\t}", "@Override\n\tpublic void onPageSelected(int arg0) {\n\n\t}", "@Override\n\tpublic void onPageSelected(int arg0) {\n\n\t}", "@Override\r\n\tpublic void onPageSelected(int arg0) {\n\r\n\t}", "@Override\r\n\t\tpublic void onPageSelected(int position) {\n\t\t\t\r\n\t\t}", "public void onPageSelected(int position) {\n \t\n }", "public void onPageSelected(int position) {\n\t\t\n\t}", "@Override\n \t\t\tpublic void widgetSelected(SelectionEvent e) {\n \t\t\t\t\n \t\t\t\tupdatePageComplete();\n \t\t\t}", "@Override\n public void onPageSelected(int position) {\n }", "@Override\n public void onPageSelected(int position) {\n }", "@Override\n public void onPageSelected(int position) {\n }", "@Override\r\n\tpublic void onPageSelected() {\n\t\tif (mRoomDropDownAdapter != null) {\r\n\t\t\tmRoomDropDownAdapter.setSelected(mUiEngine.getRoomCurrentIndex());\r\n\t\t\trefreshListByPosition(mRoomDropDownAdapter.getSelected());\r\n\t\t}\r\n\t}", "@Override\n public void onPageSelected(int position)\n {\n\n }", "@Override\n public void onPageSelected(int position)\n {\n super.onPageSelected(position);\n }", "@Override\n\t\tpublic void onPageSelected(int arg0) {\n\t\t\tchecked(arg0);\n\t\t\tmPager.setCurrentItem(arg0);\n\t\t}", "@Override\n public void changePage(int newPage) {\n\n if ( (newPage >= 0) && (newPage< bookInitial.getListAllTextToDisplay().size()))\n {\n\n if (isManual)\n {\n bookInitial.setCurrentPage(newPage);\n updateCurrentPage();\n displayPage();\n }else\n {\n int a = bookInitial.getCurrentPage();\n bookInitial.setCurrentPage(newPage);\n updateCurrentPage();\n displayPage();\n updateAutoWPop(a);\n }\n\n\n }\n\n\n }", "@Override\n\tpublic void onPageSelected(int position) {\n\t\tselectTab(position);\n\t}", "@Override\n public void onPageSelected(int position) {\n Log.d(TAG, \"onPageSelected: \"+position);\n }", "@Override\n\t\t\tpublic void onPageSelected(int arg0) {\n\t\t\t\tLog.i(\"\", \"Enter hereeeeeeeeeeeeeeeeeeeee(onPageSelected!!!\");\n\t\t\t\t\n\t\t\t\t//adapter.instantiateItem(pager, arg0);\n\t\t\t\tadapter.notifyDataSetChanged();\n\t\t\t}", "@Override\n public void PageFistLoad() {\n }", "@Override\r\n public void onPageSelected(int position) {\r\n switchPoint(position);\r\n }", "public void onPageSelected(int position) {\n\t\t\tcurrentItem = position;\n\t\t\toldPosition = position;\n\t\t}", "public void onPageChange(int newPage){\n if(newPage == MediaReviewerPagerActivity.MEDIA_PAGE){\n onEnterPage();\n } else {\n onExitPage();\n }\n }", "@Override\r\n\tpublic void onPageSelected(int newPosition) {\n\t\tLog.e(TAG, \"onpageselected=\" + newPosition);\r\n\t\tFragmentLifeCycle fragmentToShow = (FragmentLifeCycle) mAdapter\r\n\t\t\t\t.getItem(newPosition);\r\n\t\tfragmentToShow.onResumeFragment();\r\n\r\n\t\tFragmentLifeCycle fragmentToHide = (FragmentLifeCycle) mAdapter\r\n\t\t\t\t.getItem(currentPosition);\r\n\t\tfragmentToHide.onPauseFragment();\r\n\r\n\t\tcurrentPosition = newPosition;\r\n\t}", "@Override\n\t\t\tpublic void onPageSelected(int arg0) {\n\t\t\t\tToast.makeText(getBaseContext(), arg0 + \"\", Toast.LENGTH_SHORT).show();\n\t\t\t}", "protected void clickOnNouveauClient() {\n\t\t\t_currentPage = ((DoliTiersPage)_currentPage).clickOnNouveauClient();\n\t\t}", "@Override\n public void onPageSelected(int arg0) {\n current = arg0;\n // title.setText(content[current]);\n\n //\tToast.makeText(LearningActivity.this, \"Current = \"+arg0, Toast.LENGTH_SHORT).show();\n\n }", "public void onPageChanged() {\n if (cbxPage != null && (cbxPage.getSelectedIndex() != (_pageIndex))) {\n cbxPage.setSelectedIndex(_pageIndex);\n }\n if (_dispatchEvents)\n dispatchEvent(new ExtendedFilterPageSortChangeEvent(ExtendedFilterPageSortChangeEvent.PAGE_CHANGE, null, false, false));\n }", "@Override\n\t\tpublic void onPageSelected(int arg0) {\n\t\t\tsetTextViewBG(arg0);\n\t\t}", "@Override\r\n\tprotected void pageChange(int pageIndex) {\r\n\t\tsuper.pageChange(pageIndex);\r\n\r\n\t\tif (contentOutlinePage != null) {\r\n\t\t\thandleContentOutlineSelection(contentOutlinePage.getSelection());\r\n\t\t}\r\n\t}", "@Override\n public void onPageSelected(int arg0) {\n mCurrentItem = arg0;\n }", "@Override\n\t\t\tpublic void onPageSelected(int arg0) {\n\n\t\t\t\tmPosition = arg0;\n\t\t\t}", "@Override\n public void onClick(View view) {\n ((Page) Page.activity).selectPage(list.get(position) + 1);\n ((BookmarksActivity) context).finish();\n }", "@Override\n protected void onNextPageRequested(int page) {\n\n }", "public void loadPage() {\n\t\tLog.i(TAG, \"MyGardenListActivity::LoadPage ! Nothing to do anymore here :)\");\n\t}", "@Override\n public void onPageSelected(int position) {\n setPage(tabLayout, position);\n }", "@Override\n\t\tpublic void onPageSelected(int arg0) {\n\t\t\tif(arg0!=curIndex)\n\t\t\t{\n\t\t\t\tLog.i(\"VpWithRpFragment\",\"VpWithRpFragment.onPageSelected\");\n\t\t\t\tsetNewRoundPoint(arg0);\n\t\t\t}\n\t\t}", "@Override\n public void onPageSelected(int position) {\n setAddButtonVisibility(getCurrentlyVisibleEditorTab().requestsAddButton());\n }", "@Override\n public void onPageSelected(int n) {\n actionBar.setSelectedNavigationItem(n);\n }", "@Override\n\t\t\tpublic void onPageSelected(int arg0) {\n\t\t\t\tactionBar.setSelectedNavigationItem(arg0);\n\t\t\t}", "@Override\n public void onPageSelected(int position) {\n tljr_txt_page.setText(position + 1 + \"/\" + uList.size());\n currentPosition = position;\n }", "@Override\n public void onPageSelected(int position) {\n Toast.makeText(TeamViewActivity.this,\n \"Selected page position: \" + position, Toast.LENGTH_SHORT).show();\n }", "@FXML\n private void callCourseSelectPage(ActionEvent e) {\n\n CourseSelectPage.selectForRecordMode= false;\n\n Pageloader loader = new Pageloader();\n Parent root = loader.getPage(\"GUIcourseSelectPage\");\n Stage stage = new Stage();\n stage.setTitle(\"Add record for student\");\n stage.initModality(Modality.APPLICATION_MODAL);\n stage.setScene(new Scene(root));\n stage.showAndWait();\n }", "protected void clickOnCreerClient() {\n\t\t\t_currentPage = ((DoliNouveauTiersPage)_currentPage).clickOnCreerClient();\n\t\t}", "@Override\n\tpublic void changePage() {\n\t\tprimaryStage.setScene(balancer);\n\t}", "@Override\n public void onPageSelected(int position) {\n mViewPager.setCurrentItem(position);\n selectTab(position);\n }", "@Override\n public void onPageChanged(int page, int pageCount) {\n }", "@Override\r\n public void onPageSelected(int index) {\n clearIconState();\r\n setIconState(index);\r\n }", "@Override\r\n\tpublic void mypage() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void onPageSelected(int arg0) {\n\t\t\tswitch (arg0) {\n\t\t\tcase 0:\n\t\t\t\tbasicButton.setChecked(true);\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tuploadButton.setChecked(true);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}", "@Override\n public void onPageSelected(int position) {\n tabHost.setSelectedNavigationItem(position);\n }", "private void onPageSelected(int position) {\n mSearchField.setVisibility(position == 0 ? View.VISIBLE : View.INVISIBLE);\n mHistoryButton.setSelected(position == 0);\n mStatementButton.setSelected(position == 1);\n mPieChartButton.setSelected(position == 2);\n if (position == 0) {\n mAccountHistory.updateView();\n }\n else if (position == 1) {\n mAccountStatement.updateView();\n }\n else if (position == 2) {\n mAccountPieChart.updateView();\n }\n }", "@Override\n\t\t\tpublic void onPageSelected(int position2) {\n\t\t\t\tnextPosition2 = position2;\n\t\t\t}", "private void viewPageClicked(ActionEvent event) {\n\n Item tempItem = new Item();\n String itemURL = tempItem.itemURL;\n Desktop dk = Desktop.getDesktop();\n try{\n dk.browse(new java.net.URI(itemURL));\n }catch(IOException | URISyntaxException e){\n System.out.println(\"The URL on file is invalid.\");\n }\n\n showMessage(\"Visiting Item Web Page\");\n\n }", "public void startPage() {\n\t\tthis.dataComposer.startPage();\n\t}", "public void onConnectionEstablished() {\n\t\tviewPager.setCurrentItem(Tabs.SCARY_CREEPER.index);\n\t}", "private void gotoCompletePage() {\n WebkitUtil.forward(mWebView, AFTER_PRINT_PAGE);\n }", "public void addPages() {\n //super.addPages(); //<--- notice we're overriding here\n mainPage = new NewTargetWizardPage(\"newFilePage1\", getSelection());//$NON-NLS-1$\n mainPage.setTitle(TITLE);\n mainPage.setDescription(DESCRIPTION); \n addPage(mainPage);\n }", "@Override\n public void onPageSelected(int position) {\n getActionBar().setSelectedNavigationItem(position);\n // jumpFlag = true;\n }", "@Override\n public void addPages() {\n super.addPages();\n page1 = new NewReviewWizardPage();\n addPage(page1);\n }", "public abstract void pageDisplayed();", "void onPageChanged(int position);", "@Override\n\t\t\t\tpublic void onPageSelected(int position) {\n\t\t\t\t\tactionbar.setSelectedNavigationItem(position);\n\t\t\t\t}", "@FXML\n public void backPage() {\n LibrarySystem.setScene(new ReaderLogIn(readerlist, booklist));\n }", "public void newPage(FrameDesc fdesc) {\n // no need to update frame state\n }", "public void onPageSelected(int position) {\n\t\t\t\tactionBar.setSelectedNavigationItem(position);\n\t\t\t}", "public void actionPerformed(ActionEvent e) {\r\n\t\t// create an instance of NewPage\r\n\t\tNewPage newPage = new NewPage(canvas);\r\n\t\t// create new WhiteBoard Page\r\n\t\tnewPage.createNewWbPage();\r\n\t\t// create an instance PresentationInfoListData object to \r\n\t\t//add to PresentationList.\r\n\t\tPresentationInfoListData data =\r\n\t\t\tnew PresentationInfoListData(0, false, newPage.getKey());\r\n\t\tpresentationInfo.add(data);\r\n\t\t// notify all the participants that a new WhiteBoard has been opened\r\n\t\t// and selected\r\n\t\tDataEvent.notifySender(\r\n\t\t\tcanvas.getApplicationType(),\r\n\t\t\tpresentationInfo.getListModel().getSize(),\r\n\t\t\tnewPage.getKey(),\r\n\t\t\tgetToolString());\r\n\t\t\t\r\n\t\t// select the current new WhiteBoard\r\n\t\tpresentationInfo.getPresentationList().setSelectedValue(data, true);\r\n\r\n\t}", "public void setPage(Page page) {this.page = page;}", "public void onPageChanged(View currentView) {\n mCurrentView = currentView;\n requestLayout();\n }", "@Override\n\tpublic void nextPage() {\n\t\tif ( yesBox.isChecked() ) {\n\t\t\tcore.modelCore.events.remove(core.modelCore.selectedEvent);\n\t\t\t\n\t\t\tcore.currentScreen.thisRemoveScreen();\n\t\t\tcore.currentScreen = null;\n\t\t\tPage_Event12Yes newPage = new Page_Event12Yes(core);\n\t\t} else {\n\t\t\tcore.currentScreen.thisRemoveScreen();\n\t\t\tcore.currentScreen = null;\n\t\t\tPage_Event12No newPage = new Page_Event12No(core);\n\t\t}\n\t\t\n\t\t//core.currentScreen.thisRemoveScreen();\n\t\t//core.currentScreen = null;\n\t\t//Page_Event03 newPage = new Page_Event03(core);\n\t}", "@Override\n protected BasePage openPage() {\n return null;\n }", "@Override\r\n public void onPageSelected(int position) {\n actionBar.setSelectedNavigationItem(position);\r\n }", "public void setCurrentPage(int pageNumber) {\n\t\t\n\t}", "@Override\n\t public void onPageSelected(int position) {\n\t getSupportActionBar().setSelectedNavigationItem(position);\n\t }", "public void onPageSelected(int position) {\n if (position == 0) {\n getStarted.setBackground(getResources().getDrawable(R.drawable.rectangle_blue_white));\n getStarted.setTextColor(getResources().getColor(R.color.white));\n } else {\n getStarted.setBackground(\n getResources().getDrawable(R.drawable.rectangle_black_white));\n getStarted.setTextColor(getResources().getColor(R.color.colorPrimary));\n }\n }", "@Override\n public void onPageSelected(int position) {\n if (position != MEETUP_LIST_FRAG_POS) {\n meetupListFragment.resetMeetupList();\n }\n\n submitViewPagerAnalytics(position);\n }", "@Override\r\n\t\tpublic void onPageSelected(int position) {\r\n\t\t\t// TODO Auto-generated method stub\r\n\t\t\tgetActionBar().setSelectedNavigationItem(position);\r\n\t\t}", "@Override\n\t\t\t\t\tpublic void onPageSelected(int position) {\n\n\t\t\t\t\t\tactionBar.setSelectedNavigationItem(position);\n\t\t\t\t\t}", "public void onNew() {\t\t\n\t\tdesignWidget.addNewForm();\n\t}", "@Override\n public void onPageSelected(int position) {\n Log.d(TAG, \"onPageSelected: Position:\" + position);\n\n //update the current view pager position\n viewPagerPosition = position;\n\n //set the toolbar title\n updateToolbarTitle(position);\n }", "@Override\n public void onPageSelected(int position) {\n ActionBar ab = getActionBar();\n if (ab != null) {\n getActionBar().setSelectedNavigationItem(position);\n }\n }", "public void onMenuNew() {\n handleMenuOpen(null);\n }", "@Override\n\t\t\tpublic void onPageSelected(int position) {\n\t\t\t\t actionBar.setSelectedNavigationItem(position);\n\t\t\t}", "public void clickedPresentationNew() {\n\t\t\n\t}", "@Override\n public void onPageSelected(int position) {\n actionBar.setSelectedNavigationItem(position);\n }", "@Override\n public void onPageSelected(int position) {\n actionBar.setSelectedNavigationItem(position);\n }", "@Override\n public void onPageSelected(int position) {\n actionBar.setSelectedNavigationItem(position);\n }", "@Override\n public void onPageSelected(int position) {\n actionBar.setSelectedNavigationItem(position);\n }", "@Override\n public void onPageSelected(int position) {\n actionBar.setSelectedNavigationItem(position);\n }", "@Override\n public void onPageSelected(int position) {\n actionBar.setSelectedNavigationItem(position);\n }", "@Override\n\t\t\tpublic void onPageSelected(int position) {\n\t\t\t\tactionBar.setSelectedNavigationItem(position);\n\t\t\t}", "@Override\n\t\t\tpublic void onPageSelected(int position) {\n\t\t\t\tactionBar.setSelectedNavigationItem(position);\n\t\t\t}", "@Override\n\t\t\tpublic void onPageSelected(int position) {\n\t\t\t\tactionBar.setSelectedNavigationItem(position);\n\t\t\t}" ]
[ "0.7797357", "0.77812594", "0.77812594", "0.7773528", "0.77425534", "0.7726533", "0.7650704", "0.7589704", "0.7589704", "0.7516986", "0.7516986", "0.7491818", "0.7251853", "0.71917045", "0.71658856", "0.7123647", "0.70867276", "0.70867276", "0.70867276", "0.70827943", "0.70043397", "0.69385576", "0.69307125", "0.69002", "0.6769112", "0.6617481", "0.66137135", "0.65811723", "0.6562939", "0.6558041", "0.6556933", "0.6544188", "0.6516884", "0.65024954", "0.6489353", "0.6479307", "0.64788675", "0.64595526", "0.64531183", "0.6414703", "0.6405871", "0.6396653", "0.6367967", "0.63663024", "0.63591343", "0.63538253", "0.6316896", "0.6299082", "0.62767553", "0.6267654", "0.6262344", "0.623697", "0.6235394", "0.62074727", "0.6181869", "0.61552554", "0.61544853", "0.6146081", "0.61347073", "0.61285084", "0.61267966", "0.6123738", "0.61231285", "0.6108783", "0.61012554", "0.6070633", "0.60676134", "0.6059704", "0.6059571", "0.6020507", "0.6015684", "0.60090184", "0.600495", "0.5999997", "0.59977764", "0.5982973", "0.59729", "0.5964436", "0.596365", "0.59617513", "0.5956671", "0.59559035", "0.59554577", "0.59453744", "0.5942332", "0.5936068", "0.59300065", "0.591423", "0.59120566", "0.5905754", "0.5899881", "0.589952", "0.58825475", "0.58825475", "0.58825475", "0.58825475", "0.58825475", "0.58825475", "0.587811", "0.587811", "0.587811" ]
0.0
-1
This method will be invoked when the current page is scrolled
@Override public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) { // Code goes here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onPageScrollStateChanged(int arg0) {\n \n }", "@Override\n public void onPageScrollStateChanged(int arg0) {\n \n }", "@Override\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n public void onPageScrollStateChanged(int state) {\n // Code goes here\n }", "@Override\n public void onPageScrollStateChanged(int state) {\n // Code goes here\n }", "@Override\n public void onPageScrollStateChanged(int state) {\n // Code goes here\n }", "@Override\n\t\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\t\n\t\t}", "@Override\n\t\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void onPageScrollStateChanged(int arg0) {\n\n }", "@Override\r\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\n\t\t\t}", "@Override\n public void onPageScrollStateChanged(int arg0) {\n }", "@Override\n public void onPageScrollStateChanged(int arg0) {\n }", "@Override\n public void onPageScrollStateChanged(int arg0) {\n\n }", "@Override\n public void onPageScrollStateChanged(int arg0) {\n\n }", "@Override\n public void onPageScrollStateChanged(int arg0) {\n\n }", "@Override\n public void onPageScrollStateChanged(int arg0) {\n\n }", "@Override\n public void onPageScrollStateChanged(int arg0) {\n\n }", "@Override\n public void onPageScrollStateChanged(int arg0) {\n\n }", "@Override\n public void onPageScrollStateChanged(int arg0) {\n\n }", "@Override\n public void onPageScrollStateChanged(int arg0) {\n\n }", "@Override\n public void onPageScrollStateChanged(int arg0) {\n\n }", "@Override\n public void onPageScrollStateChanged(int arg0) {\n }", "public void onPageScrollStateChanged(int arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\tpublic void onPageScrollStateChanged(int arg0)\n\t\t{\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void onPageScrollStateChanged(int arg0) {\n\n\t\t}", "@Override\n\t\tpublic void onPageScrollStateChanged(int arg0) {\n\n\t\t}", "@Override\n\t\tpublic void onPageScrollStateChanged(int arg0) {\n\n\t\t}", "@Override\n\t\tpublic void onPageScrollStateChanged(int arg0) {\n\n\t\t}", "@Override\n\t\tpublic void onPageScrollStateChanged(int arg0) {\n\n\t\t}", "@Override\n\t\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t}", "@Override\n public void onPageScrollStateChanged(int state) {\n }", "@Override\n public void onPageScrollStateChanged(int state) {\n\n }", "@Override\n\t\t\tpublic void onPageScrollStateChanged(int state) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onPageScrollStateChanged(int state) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onPageScrollStateChanged(int state) {\n\t\t\t\t\n\t\t\t}", "@Override\n public void onPageScrollStateChanged(int state) {\n }", "@Override\n public void onPageScrollStateChanged(int state) {\n }", "@Override\n public void onPageScrollStateChanged(int state) {\n }", "@Override\n public void onPageScrollStateChanged(int state) {\n }", "@Override\n\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\n\t}", "@Override\n\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\n\t}", "@Override\n\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\n\t}", "@Override\n\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\n\t}", "@Override\n\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\n\t}", "@Override\n\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\n\t}", "@Override\n\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\n\t}", "@Override\n\tpublic void onPageScrollStateChanged(int arg0) {\n\n\t}", "@Override\n\tpublic void onPageScrollStateChanged(int arg0) {\n\n\t}", "@Override\n\tpublic void onPageScrollStateChanged(int arg0) {\n\n\t}", "@Override\n public void onPageScrollStateChanged(int arg0) {\n\n }", "@Override\r\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\r\n\t\t\t}", "@Override\n public void onPageScrollStateChanged(int state)\n {\n\n }", "@Override\r\n\tpublic void onPageScrollStateChanged(int arg0) {\n\r\n\t}", "@Override\r\n\tpublic void onPageScrollStateChanged(int arg0) {\n\r\n\t}", "@Override\n\t\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\t\t\t\n\t\t}", "@Override\n\t\t\t\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n\t\t\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\t\t\t\t\n\t\t\t}", "@Override\n public void onPageScrolled(int arg0, float arg1, int arg2) {\n\n System.out.println(\"onPageScrolled is called\");\n\n\n }", "public void onPageScrollStateChanged(int arg0) {\n }", "@Override\r\n\t\tpublic void onPageScrollStateChanged(int arg0) {\n\r\n\t\t}", "@Override\r\n\t\t\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\t\t\t\t\r\n\t\t\t}", "@Override\n public void onPageScrolled(int arg0, float arg1, int arg2) {\n \n }", "@Override\n public void onPageScrolled(int arg0, float arg1, int arg2) {\n \n }", "@Override\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\t\tLog.i(\"\", \"Enter hereeeeeeeeeeeeeeeeeeeee(onPageScrollStateChanged!!!\");\n\t\t\t}", "@Override\n public void onPageScrolled(int arg0, float arg1, int arg2) {\n }", "@Override\n\t\t\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\n\t\t\t}", "@Override\r\n\tpublic void onPageScrollStateChanged(int state) {\n\r\n\t}", "@Override\n\t\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\t\t}", "@Override\n\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\t}", "@Override\r\n\t\tpublic void onPageScrollStateChanged(int state) {\n\t\t\t\r\n\t\t}", "@Override\n public void onPageScrolled(int arg0, float arg1, int arg2) {\n\n }", "@Override\n public void onPageScrolled(int arg0, float arg1, int arg2) {\n\n }", "@Override\n public void onPageScrolled(int arg0, float arg1, int arg2) {\n\n }", "@Override\n public void onPageScrolled(int arg0, float arg1, int arg2) {\n\n }" ]
[ "0.78713685", "0.78713685", "0.7814419", "0.7814419", "0.7814419", "0.7814419", "0.7814419", "0.7814419", "0.7814419", "0.7814419", "0.7814419", "0.7814419", "0.7807032", "0.7807032", "0.7807032", "0.7781545", "0.7781545", "0.7762315", "0.7754217", "0.7753104", "0.774548", "0.774548", "0.774548", "0.774548", "0.774548", "0.7738354", "0.7738354", "0.77325594", "0.77325594", "0.77325594", "0.77325594", "0.77325594", "0.77325594", "0.77325594", "0.77325594", "0.77325594", "0.7714206", "0.77073145", "0.76968396", "0.7671412", "0.7671412", "0.7671412", "0.7671412", "0.7671412", "0.7670672", "0.7665001", "0.7626714", "0.76186717", "0.76186717", "0.76186717", "0.76123554", "0.76123554", "0.76123554", "0.76123554", "0.76031184", "0.76031184", "0.76031184", "0.76031184", "0.76031184", "0.76031184", "0.76031184", "0.7599942", "0.7599942", "0.7599942", "0.75888443", "0.7587768", "0.7584514", "0.7583531", "0.7583531", "0.7547661", "0.7542468", "0.7540958", "0.7540958", "0.7540958", "0.7540958", "0.7540958", "0.7540958", "0.7540958", "0.7540958", "0.7540958", "0.7540958", "0.75382763", "0.75171345", "0.7515309", "0.75129426", "0.7499595", "0.7499595", "0.74950564", "0.7468144", "0.74644977", "0.74644977", "0.74644977", "0.74644977", "0.7436468", "0.7436422", "0.74320626", "0.74274117", "0.7427008", "0.7427008", "0.7427008", "0.7427008" ]
0.0
-1
Called when the scroll state changes: SCROLL_STATE_IDLE, SCROLL_STATE_DRAGGING, SCROLL_STATE_SETTLING
@Override public void onPageScrollStateChanged(int state) { // Code goes here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void onScrollStateChanged(AbsListView view, int scrollState) {\n\t\tmCurrentScrollState = scrollState;\n\t}", "@Override\n public void onScrollChanged(int scrollY, boolean firstScroll, boolean dragging) {\n }", "@Override\n\tprotected void onScrollChanged(int l, int t, int oldl, int oldt) {\n\t\tsuper.onScrollChanged(l, t, oldl, oldt);\n\t\t\n\t}", "public void onPageScrollStateChanged(int state) {\n\t\t\n\t}", "@Override\n\t\t\tpublic void onPageScrollStateChanged(int state)\n\t\t\t{\n\n\t\t\t}", "public void onScrollStateChanged(AbsListView arg0, int scrollState) {\n\t\tcurrentScrollState = scrollState;\n\t\tif (valorUltimo <= 0)\n\t\t\tisScrollCompleted();\n\t}", "@Override\n\t\t\t\t\tpublic void onPageScrollStateChanged(int state) {\n\n\t\t\t\t\t}", "@Override\n protected void onScrollChanged(int l, int t, int oldl, int oldt) {\n super.onScrollChanged(l, t, oldl, oldt);\n\n }", "@Override\r\n\t\tpublic void onPageScrollStateChanged(int state) {\n\t\t}", "@Override\n public void onScrollStateChanged(AbsListView view, int scrollState) {\n this.currentScrollState = scrollState;\n try {\n isScrollCompleted();\n } catch (Exception ex) {\n\n }\n }", "void onScroll(boolean bDragging);", "@Override\r\n\t\tpublic void onPageScrollStateChanged(int state) {\n\t\t\t\r\n\t\t}", "public void onPageScrollStateChanged(int arg0) {\n }", "public void onPageScrollStateChanged(int arg0) {\n\n\t\t}", "@Override\n\tprotected void onScrollChanged(int l, int t, int oldl, int oldt) {\n\t\tsuper.onScrollChanged(l, t, oldl, oldt);\n\t\tif (mListener != null) {\n\t\t\tmListener.scrollOritention(l, t, oldl, oldt);\n\t\t}\n\t}", "@Override\r\n public void onScrollStateChanged(AbsListView view, int scrollState) {\n\r\n if (scrollState == SCROLL_STATE_IDLE) {\r\n\r\n if (getScrollYDistance() > 0) {\r\n setListener();\r\n LogManager.i(\"=============onScrollStateChanged\");\r\n }\r\n// LogManager.i(\"=============getScrollYDistance()=\" + getScrollYDistance());\r\n }\r\n }", "@Override\n\t\tpublic void onPageScrollStateChanged(int arg0)\n\t\t{\n\t\t\t\n\t\t}", "public void onScroll(State state, int positionY);", "@Override\n\t\t\tpublic void onPageScrollStateChanged(int state) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onPageScrollStateChanged(int state) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onPageScrollStateChanged(int state) {\n\t\t\t\t\n\t\t\t}", "@Override\r\n\t\t\tpublic void onPageScrollStateChanged(int state) {\n\r\n\t\t\t}", "public void onPageScrollStateChanged(int arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\n\t\t\t}", "@Override\n\t\tpublic void onPageScrollStateChanged(int arg0) {\n\n\t\t}", "@Override\n\t\tpublic void onPageScrollStateChanged(int arg0) {\n\n\t\t}", "@Override\n\t\tpublic void onPageScrollStateChanged(int arg0) {\n\n\t\t}", "@Override\n\t\tpublic void onPageScrollStateChanged(int arg0) {\n\n\t\t}", "@Override\n\t\tpublic void onPageScrollStateChanged(int arg0) {\n\n\t\t}", "@Override\n\t\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t}", "@Override\n\t\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\t\n\t\t}", "@Override\n public void onPageScrollStateChanged(int state) {\n }", "@Override\n public void onPageScrollStateChanged(int state) {\n }", "@Override\n public void onPageScrollStateChanged(int state) {\n }", "@Override\n public void onPageScrollStateChanged(int state) {\n }", "@Override\r\n\tpublic void onPageScrollStateChanged(int state) {\n\r\n\t}", "@Override\r\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\t\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n\t\tpublic void onScrollStateChanged(AbsListView view, int scrollState) {\n\n\t\t}", "@Override\n\t\t\tpublic void onScrollStateChanged(AbsListView view, int scrollState) {\n\t\t\t}", "@Override\n\t\t\tpublic void onScrollStateChanged(AbsListView arg0, int arg1) {\n\t\t\t}", "@Override\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\tpublic void onScrollStateChanged(AbsListView view, int scrollState) {\n\t\t}", "@Override\n public void onPageScrollStateChanged(int state) {\n }", "@Override\n\t\t\tpublic void onScrollStateChanged(AbsListView arg0, int arg1) {\n\n\t\t\t}", "@Override\n\tpublic void onScrollStateChanged(AbsListView view, int scrollState) {\n\t\tswitch (scrollState) {\n\t\tcase OnScrollListener.SCROLL_STATE_IDLE:\n\t\t\trushIconThread();\n\t\t\tbreak;\n\t\t}\n\t}", "@Override\n\t\t\tpublic void onScrollStateChanged(AbsListView view, int scrollState) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void onScrollStateChanged(AbsListView view, int scrollState) {\n\n\t\t\t}", "@Override\n public void onPageScrollStateChanged(int state) {\n\n }", "@Override\r\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\r\n\t\t\t}", "@Override\n public void onPageScrollStateChanged(int arg0) {\n\n }", "@Override\n public void onPageScrollStateChanged(int state)\n {\n\n }", "@Override\n public void onPageScrollStateChanged(int arg0) {\n }", "@Override\n public void onPageScrollStateChanged(int arg0) {\n }", "@Override\n\tpublic void onPageScrollStateChanged(int arg0) {\n\n\t}", "@Override\n\tpublic void onPageScrollStateChanged(int arg0) {\n\n\t}", "@Override\n\tpublic void onPageScrollStateChanged(int arg0) {\n\n\t}", "@Override\n\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\n\t}", "@Override\n\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\n\t}", "@Override\n\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\n\t}", "@Override\n\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\n\t}", "@Override\n\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\n\t}", "@Override\n\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\n\t}", "@Override\n\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\n\t}", "@Override\n public void onPageScrollStateChanged(int arg0) {\n \n }", "@Override\n public void onPageScrollStateChanged(int arg0) {\n \n }", "@Override\r\n\t\tpublic void onPageScrollStateChanged(int arg0) {\n\r\n\t\t}", "void onScrollChange(View v, int scrollX, int scrollY, int oldScrollX, int oldScrollY);", "@Override\r\n\tpublic void onPageScrollStateChanged(int arg0) {\n\r\n\t}", "@Override\r\n\tpublic void onPageScrollStateChanged(int arg0) {\n\r\n\t}", "@Override\r\n\t\t\tpublic void onScrollStateChanged(AbsListView view, int scrollState) {\n\t\t\t\tLogUtil.print(\"scrolling--->\"\r\n\t\t\t\t\t\t+ schoolListView.getFirstVisiblePosition());\r\n\t\t\t\tswitch (scrollState) {\r\n\t\t\t\t// 当不滚动时\r\n\t\t\t\tcase OnScrollListener.SCROLL_STATE_IDLE:// 是当屏幕停止滚动时\r\n\t\t\t\t\tscrollFlag = false;\r\n\t\t\t\t\t// 判断滚动到底部\r\n\t\t\t\t\tif (schoolListView.getLastVisiblePosition() == (schoolListView\r\n\t\t\t\t\t\t\t.getCount() - 1)) {\r\n\t\t\t\t\t\t// toTopBtn.setVisibility(View.VISIBLE);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// 判断滚动到顶部\r\n\t\t\t\t\tif (schoolListView.getFirstVisiblePosition() == 0) {\r\n\t\t\t\t\t\t// toTopBtn.setVisibility(View.GONE);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase OnScrollListener.SCROLL_STATE_TOUCH_SCROLL:// 滚动时\r\n\t\t\t\t\tscrollFlag = true;\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase OnScrollListener.SCROLL_STATE_FLING:// 是当用户由于之前划动屏幕并抬起手指,屏幕产生惯性滑动时\r\n\t\t\t\t\tscrollFlag = false;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}", "@Override\n public void onScrollStateChanged(View view, String featureId, int newState, long timestamp) {\n if (newState == RecyclerView.SCROLL_STATE_IDLE) {\n mFrameAdapter.triggerViewActions(mViewport);\n }\n }", "@Override\n\t\t\tpublic void onScrollStateChanged(AbsListView view, int scrollState) {\n\t\t\t\t\n\t\t\t}", "@Override\r\n\t\t\tpublic void onScrollStateChanged(AbsListView view, int scrollState) {\n\t\t\t\t\r\n\t\t\t}", "@Override\n public void onScrollStateChanged(AbsListView view, int scrollState)\n {\n }", "@Override\n public void onPageScrollStateChanged(int arg0) {\n\n }", "@Override\n public void onPageScrollStateChanged(int arg0) {\n\n }", "@Override\n public void onPageScrollStateChanged(int arg0) {\n\n }", "@Override\n public void onPageScrollStateChanged(int arg0) {\n\n }", "@Override\n public void onPageScrollStateChanged(int arg0) {\n\n }", "@Override\n public void onPageScrollStateChanged(int arg0) {\n\n }", "@Override\n public void onPageScrollStateChanged(int arg0) {\n\n }", "@Override\n public void onPageScrollStateChanged(int arg0) {\n\n }", "@Override\n public void onPageScrollStateChanged(int arg0) {\n\n }" ]
[ "0.7382847", "0.73236716", "0.72743726", "0.72585857", "0.72423357", "0.7222176", "0.7147042", "0.7138126", "0.7134588", "0.70917165", "0.7084647", "0.7063793", "0.70577234", "0.7056919", "0.7040674", "0.70398295", "0.70190746", "0.7017717", "0.70029944", "0.70029944", "0.70029944", "0.6995803", "0.6990489", "0.69827986", "0.69827986", "0.69827986", "0.69827986", "0.69827986", "0.6980731", "0.6980731", "0.6980731", "0.6980731", "0.6980731", "0.69635546", "0.69533944", "0.69533944", "0.6932936", "0.6932936", "0.6932936", "0.6932936", "0.6913496", "0.68950564", "0.68852633", "0.6858713", "0.6856741", "0.6852592", "0.68458676", "0.68458676", "0.68458676", "0.68458676", "0.68458676", "0.68458676", "0.68458676", "0.68458676", "0.68458676", "0.68458676", "0.68405426", "0.68173724", "0.68150985", "0.68093497", "0.6808064", "0.6808064", "0.6799993", "0.6773832", "0.67705756", "0.675573", "0.67506105", "0.67506105", "0.6748074", "0.6748074", "0.6748074", "0.673576", "0.673576", "0.673576", "0.673576", "0.673576", "0.673576", "0.673576", "0.6719796", "0.6719796", "0.6709376", "0.6688999", "0.667648", "0.667648", "0.66623175", "0.66588664", "0.66565377", "0.665464", "0.66472876", "0.6630117", "0.6630117", "0.6630117", "0.6630117", "0.6630117", "0.6630117", "0.6630117", "0.6630117", "0.6630117" ]
0.66840225
84
Returns total number of pages
@Override public int getCount() { return NUM_ITEMS; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getPagesAmount();", "public int getTotalPages() {\r\n return totalPages;\r\n }", "public int getTotalPages()\r\n {\r\n return pageNames.size()-1;\r\n }", "public int getTotalPages() {\r\n\t\treturn page.getTotalPages();\r\n\t}", "public Integer getPageCount();", "public int getTotalPage() {\n return getSize() == 0 ? 1 : (int) Math.ceil((double) total / (double) getSize());\n }", "public int getPageCount() { return _pages.size(); }", "public int getTotalPageCount() {\n try {\n return (int) this.webView.getEngine().executeScript(\"PDFViewerApplication.pagesCount;\");\n } catch (RuntimeException e) {\n e.printStackTrace();\n return 0;\n }\n }", "public int getPageCount()\n {\n return _pages.size();\n }", "int getPagesize();", "public Integer getTotalPageCount() {\n return totalPageCount;\n }", "public static int getTotalPage() {\n List<WebElement> PAGINATION = findElements(pagination);\n int size = PAGINATION.size() - 1;\n //Get the number of the second-last item which next to the \">\" icon\n WebElement lastPage = findElement(By.xpath(String.format(last_page, size)));\n return Integer.parseInt(lastPage.getText());\n }", "public int numPages() {\n \t//numOfPages = (int)(this.fileName.length()/BufferPool.PAGE_SIZE);\n return numOfPages;\n }", "int getNumPages();", "public String getTotalPage() {\r\n return totalPage;\r\n }", "public int numPages() {\n return numPages;\n }", "protected int getTotalPages(FacesContext context) {\n String forValue = (String) getAttributes().get(\"for\");\n UIData uiData = (UIData) getForm(context).findComponent(forValue);\n if (uiData == null) {\n return 0;\n }\n int rowsPerPage = uiData.getRows(); \n int totalRows = uiData.getRowCount();\n int result = totalRows / rowsPerPage;\n if (0 != (totalRows % rowsPerPage)) {\n result++;\n }\n return result;\n }", "public int numPages() {\n // some code goes here\n return (int) Math.ceil(m_f.length() / BufferPool.PAGE_SIZE);\n }", "@Override\n\tpublic Integer getTotalPages(ConditionInfo cf) {\n\t\treturn rd.getTotalPages(cf);\n\t}", "public static int getPageHits() {\r\n return _count;\r\n }", "public int getNumPages()\n {\n return numPages;\n }", "public int numPages() {\n // some code goes here\n return (int)Math.ceil(f.length()/BufferPool.PAGE_SIZE);\n \n }", "public int numPages() {\n // some code goes here\n //System.out.println(\"File length :\" + f.length());\n\n return (int) Math.ceil(f.length() * 1.0 / BufferPool.PAGE_SIZE * 1.0);\n }", "public Long getTotalPageNum() {\n\t\treturn this.totalPageNum;\n\t}", "public int getPageCount() {\n return mPdfRenderer.getPageCount();\n }", "long getAmountPage();", "public int getPageCount() {\n return (int) (getPageSize() > 0 ? Math.ceil(getTotalRecords() / getPageSize()) : 0);\n }", "public Integer getPageItemCount() {\n return pageItemCount;\n }", "public long getTotal() {\r\n\t\treturn page.getTotalElements();\r\n\t}", "public int getPages()\n {\n return pages;\n }", "public int getpageCount(int pageSize) {\n\t\treturn 0;\n\t}", "public int getPages() {\n return pages;\n }", "int getPageSize();", "int getPageSize();", "int getPageSize();", "int getPageSize();", "public int getTotalArticle() {\n int listLimit;\n int total;\n int totalPage;\n listLimit = getArticleRowCount();\n clickGoToLastPageBtn();\n // Has to used this method instead of goToPageBtn().size() since the maximum size of the goToPageBtn list is always 10\n totalPage = Integer.parseInt(goToPageBtn().get(goToPageBtn().size() - 1).getText().trim());\n total = getArticleRowCount() + listLimit * totalPage;\n return total;\n }", "public int getPages() {\n return pages;\n }", "public int getPages() {\n return pages;\n }", "public int pageCount()\n {\n return (int)Math.ceil((double)getTaskVector().size() /\n (double)getRecordsPerPage());\n }", "public int actualPageCount() {\n\t\tTestLog.log.info(\"get actual page count\");\n\t\tint actualpageNumbers = 0;\n\t\ttry{\n\t\t\tactualpageNumbers = driver.findElements(By.xpath(\"//div[@id='example_paginate']/span/a\")).size();\n\t\t\t\n\t\t}catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t\tTestLog.log.info(\"Could not find page count\" + ex);\n\t\t}\n\t\treturn actualpageNumbers;\n\t}", "public int getTotalPages(int pagesize) {\n\t\tint totalpages = 0;\r\n\t\tSqlSession session = MybatisSqlSessionFactory.getSqlSession();\r\n\t\tInteger totalrecords = session.selectOne(\"rgettotalrecords\");\r\n\t\ttotalpages = (totalrecords%pagesize==0?0:1)+totalrecords/pagesize;\r\n\t\tMybatisSqlSessionFactory.closeSqlSession();\r\n\t\treturn totalpages;\r\n\t}", "long getPageSize();", "long getPageSize();", "long getPageSize();", "public Integer getBookTotalPage() {\n return bookTotalPage;\n }", "Optional<Integer> getPageCount();", "public static int getPageCount(PDDocument doc) {\n\tint pageCount = doc.getNumberOfPages();\n\treturn pageCount;\n\t\n}", "public int getPagesize() {\n return pagesize_;\n }", "public int getPagesize() {\n return pagesize_;\n }", "int getPageNumber();", "public int getPages(){\n return pages;\n }", "private void updateTotalPageNumbers() {\n totalPageNumbers = rows.size() / NUM_ROWS_PER_PAGE;\n }", "public Iterator<Integer> getPageCountIterator();", "int getPage();", "public int getNumberOfPages(Document doc) {\n Elements elements = doc.select(\"table.sort_options\");\n Element table = elements.get(1);\n Elements columns = table.select(\"td\");\n Element column = columns.get(0);\n String str = column.text();\n String[] arr = str.split(\" \");\n int numberOfpages = Integer.valueOf(arr[arr.length - 1]);\n return numberOfpages;\n }", "public int getNumberOfPages(HttpServletRequest request,\n SubmissionInfo subInfo) throws ServletException\n {\n // always just one page of initial questions\n return 1;\n }", "@Schema(example = \"10\", description = \"Amount of pages available in the file. Used only for multipage documents.\")\n public Integer getPageCount() {\n return pageCount;\n }", "public int getGatheredPages() {\r\n return gatheredPages;\r\n }", "public Integer getPerPage();", "@Override\n public int numberOfPages() {\n // TODO Auto-generated method stub\n throw new UnsupportedOperationException(\"Unsupported operation\");\n }", "public Integer getCurrentPageSize();", "public int getPagesCrawled() {\n return pagesCrawled;\n }", "Integer getPage();", "public int getPageTotalNumber(int totalNumber) {\n/* 70 */ int fullPage = totalNumber / 25;\n/* 71 */ return (totalNumber % 25 > 0) ? (fullPage + 1) : ((fullPage == 0) ? 1 : fullPage);\n/* */ }", "static int pageCount(int n, int p) {\n \tint i=1;\n int count=0,mid=0,t=0;\n if(n%2==0)\n {\n t=n;\n\n }\n else\n {\n t=n-1;\n\n }\n \tmid=n/2;\n\n if(n==p)\n return 0;\n if(mid>=p){\n while(i<p){\n i=i+2;\n count++;\n }\n }else{\n while(t>p){\n t=t-2;\n count++;\n }\n }\n return count;\n }", "Long pageCount(Long pageSize, Long...params);", "public int pageCount(Map map) {\n\t\treturn iSBookMapper.pageCount(map);\n\t}", "public int getPagesDisplayed() {\n return getTableModelSource().getTableModel().getPageCount();\n }", "int getTotalCount();", "public static int getPageSize() {\n\t\treturn Unsafe.get().pageSize();\n\t}", "public int getPageSize()\n {\n return bouquet.getSheaf().getPageSize();\n }", "public static int getPagesCount(int s) {\n if(s>10)\n return (s + ((s-6)/5));\n else\n return s;\n }", "public int getPageSize() {\r\n\t\t\t\treturn pageCount;\r\n\t\t\t}", "public int getTotalCount() {\n return totalCount;\n }", "@Test\n\tpublic void pdfPageCountTest() throws Exception {\n\t\tString pdfFile = \"/data/sample.pdf\";\n\t\tSystem.out.println(\n\t\t\t\t\"Page Count: \" + NDLDataUtils.getPDFPageCount(new File(NDLDataUtils.getResourcePath(pdfFile))));\n\t}", "public static int getPageSize() {\n\t\treturn PageSize;\n\t}", "private int pagesLeft() {\n return this.pages - this.pagesRead;\n }", "boolean hasPagesize();", "public int getTotalCount() {\r\n return root.getTotalCount();\r\n }", "public int getNumResultsPerPage() {\n return numResultsPerPage;\n }", "public float total_scroll() {\r\n\t\treturn total_scroll;\r\n\t}", "default Integer getPageSize() {\n return 10;\n }", "@Override\n\tpublic int getTotalPage(Integer pageSize, EmpTypeVo vo) {\n\t\treturn 0;\n\t}", "@Override\n public int getCount() {\n int TOTAL_PAGES = totalPages;\n return TOTAL_PAGES;\n }", "public int totalNum(){\n return wp.size();\n }", "public int getActualPageNumber() {\n try {\n return (int) this.webView.getEngine().executeScript(\"PDFViewerApplication.page;\");\n } catch (RuntimeException e) {\n e.printStackTrace();\n return 0;\n }\n }", "@Override\r\n\tpublic int totalCount() {\n\t\treturn sqlSession.selectOne(namespace + \".totalCount\");\r\n\t}", "@Override\r\n\tpublic int totalCount() {\n\t\treturn sqlSession.selectOne(namespace + \".totalCount\");\r\n\t}", "@Override\r\n\tpublic int getPaging() {\n\t\treturn 0;\r\n\t}", "Integer getTotalStepCount();", "public int getTotalVisited(){\n return this.getSea().countVisited();\n }", "public int countPaging(Criteria cri) throws Exception {\n\t\treturn session.selectOne(namespace + \".countPaging\");\r\n\t}", "public int getPageSize() {\n return pageSize;\n }", "public int getPageSize() {\n return pageSize;\n }", "public int getPageSize() {\n return pageSize;\n }", "@Override\n\tpublic int findPageCount(Invoice invoice) {\n\t\treturn invoiceDao.findPageCount(invoice);\n\t}", "public long getTotalPosts();", "int getNumberOfResults();", "@Override\r\n\tpublic int getCount(PageBean bean) {\n\t\treturn session.selectOne(\"enter.getCount\", bean);\r\n\t}", "private int countPaging(final int commonCount, final int offsetLine) {\n\t\tint result = commonCount % offsetLine > 0 ? Math.floorDiv(commonCount, offsetLine) + 1\n\t\t\t\t: Math.floorDiv(commonCount, offsetLine);\n\t\treturn result;\n\t}" ]
[ "0.8670782", "0.85352755", "0.835817", "0.8342886", "0.8292837", "0.8233094", "0.81880236", "0.80999756", "0.8094793", "0.80073506", "0.78744197", "0.7799766", "0.77388656", "0.77283823", "0.75954545", "0.7590071", "0.75671303", "0.7541962", "0.75169176", "0.7510422", "0.7509082", "0.7480078", "0.74681264", "0.7462978", "0.7444948", "0.743361", "0.74030054", "0.7397627", "0.7391772", "0.73555547", "0.73444533", "0.7337975", "0.73324", "0.73324", "0.73324", "0.73324", "0.73217326", "0.7317316", "0.7317316", "0.72936887", "0.7276861", "0.7246419", "0.7241476", "0.7241476", "0.7241476", "0.7176054", "0.7143356", "0.71097267", "0.7104532", "0.7087032", "0.7002097", "0.699167", "0.6903902", "0.68941367", "0.6859324", "0.6855821", "0.68485534", "0.68099296", "0.6773778", "0.67589885", "0.6745402", "0.6733003", "0.67316896", "0.6713952", "0.6710426", "0.6707379", "0.66741955", "0.6658716", "0.660885", "0.6607776", "0.6604358", "0.65063715", "0.65048957", "0.6494837", "0.6488843", "0.6477906", "0.64702", "0.6434586", "0.6432082", "0.64276433", "0.64224", "0.6414829", "0.6401432", "0.63926005", "0.63880485", "0.6373856", "0.63629764", "0.6361131", "0.6361131", "0.63586396", "0.63318515", "0.6320916", "0.62939", "0.62846786", "0.62846786", "0.62846786", "0.62718874", "0.6269918", "0.62621385", "0.62409836", "0.62198776" ]
0.0
-1
Returns the fragment to display for that page
@Override public Fragment getItem(int position) { switch (position) { case 0: // Fragment # 0 - This will show FirstFragment return Alarm_Fragment_1.newInstance(0, "Page #1"); case 1: // Fragment # 0 - This will show FirstFragment different title return Alarm_Fragment_2.newInstance(1, "Page # 2"); case 2: // Fragment # 1 - This will show SecondFragment return Alarm_Fragment_3.newInstance(2, "Page # 3"); case 3 : return Alarm_Fragment_4.newInstance(3, "Page # 4"); case 4 : return Alarm_Fragment_5.newInstance(5, "Page # 5"); //return Frag5.newInstance(4, "Page # 5"); case 5 : return Alarm_Fragment_6.newInstance(6, "Page # 6"); default: return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getFragment() {\n\t\treturn fragment;\n\t}", "public String getFragment() {\n return m_fragment;\n }", "public lanyotech.cn.park.protoc.CommonProtoc.PageHelper getPage() {\n if (pageBuilder_ == null) {\n return page_;\n } else {\n return pageBuilder_.getMessage();\n }\n }", "public abstract Fragment getFragment();", "String fragment();", "public String customFragment() {\n return this.customFragment;\n }", "public Fragment getFragment() {\n return fragment;\n }", "@Override\n public Fragment getFragment() {\n// uuid = (UUID)getIntent().getSerializableExtra(UUID);\n// return GoalDetailViewFragment.newInstance(uuid);\n return null;\n }", "public lanyotech.cn.park.protoc.CommonProtoc.PageHelper getPage() {\n return page_;\n }", "public abstract String getFragmentName();", "String getStartpage();", "public static Fragment Instance() {\n\t\t\n\t\treturn new GCourtInfoDetailsFragment();\n\t}", "@UML(identifier=\"page\", obligation=OPTIONAL, specification=ISO_19115)\n String getPage();", "public abstract int getFragmentView();", "public String gotoPage() {\n return FxJsfUtils.getParameter(\"page\");\n }", "public final String getPageContent() {\n\t\treturn pageContent;\n\t}", "@Override\n\tpublic String findPage() {\n\t\treturn null;\n\t}", "public String getPageText();", "Page getPage();", "public static Fragment newInstance() {\n\t\treturn new ScreenSlidePageFragment();\n\t}", "String pageDetails();", "@Override\n\tpublic String getCurrentFragmentName() {\n\t\treturn \"IncomeFragment\";\n\t}", "public ProgramFragment getFragment(String treeName, Address addr);", "String getPageFullName();", "lanyotech.cn.park.protoc.CommonProtoc.PageHelper getPage();", "protected abstract int getFirstFrag();", "private Fragment getLessonFragment() {\n\t\treturn MediaPlayerFragmentFactory.getMediaPlayerFragment(lesson);\n\t}", "public int getCurrentPage();", "String getPageName();", "int getCurrentPage();", "public String fragmentAt(int index) {\n\t\treturn pathFragments.get(index);\n\t}", "private EditBuildInfoFragment findInfoFragment() {\n\t\tFragmentManager fm = getSupportFragmentManager();\n\t\treturn (EditBuildInfoFragment) fm.findFragmentByTag(FragmentUtils.makeFragmentName(mPager.getId(), 0));\n\t}", "public JSONObject page() {\n\t\treturn null;\n\t}", "protected String getPageNavigation()\n {\n return \"\";\n }", "public Page getPage() {return page;}", "protected abstract Fragment getFragmentByPosition(int position);", "public ProgramFragment getFragment(String treeName, String name);", "public lanyotech.cn.park.protoc.CommonProtoc.PageHelper getPageHelper() {\n if (pageHelperBuilder_ == null) {\n return pageHelper_;\n } else {\n return pageHelperBuilder_.getMessage();\n }\n }", "public lanyotech.cn.park.protoc.CommonProtoc.PageHelper getPageHelper() {\n if (pageHelperBuilder_ == null) {\n return pageHelper_;\n } else {\n return pageHelperBuilder_.getMessage();\n }\n }", "public lanyotech.cn.park.protoc.CommonProtoc.PageHelper getPageHelper() {\n if (pageHelperBuilder_ == null) {\n return pageHelper_;\n } else {\n return pageHelperBuilder_.getMessage();\n }\n }", "public int getPage() {\n return page;\n }", "public int getPage() {\n return page;\n }", "public int getPage() {\n return page;\n }", "public int getPage() {\n return page;\n }", "public Integer getCurrentPage();", "public static EventPagePosterFragment getInstance() {\n EventPagePosterFragment fragment = new EventPagePosterFragment();\n return fragment;\n }", "@Override\n public Fragment getItem(int curent_page){\n switch (curent_page){\n case 0:\n WeatherAndForecastFragment fragment1 = new WeatherAndForecastFragment();\n return fragment1;\n case 1:\n WeatherAndForecastFragment fragment2 = new WeatherAndForecastFragment();\n return fragment2;\n case 2:\n WeatherAndForecastFragment fragment3 = new WeatherAndForecastFragment();\n return fragment3;\n\n default:\n return null;\n }\n }", "public io.dstore.values.StringValue getPage() {\n if (pageBuilder_ == null) {\n return page_ == null ? io.dstore.values.StringValue.getDefaultInstance() : page_;\n } else {\n return pageBuilder_.getMessage();\n }\n }", "private Fragment getLast() {\n Fragment last;\n switch (lastFragment) {\n case \"userHomeFragment\":\n last = userHomeFragment;\n break;\n case \"scheduleFragment\":\n last = scheduleFragment;\n break;\n case \"medicineFragment\":\n last = medicineFragment;\n break;\n default:\n last = calendarFragment;\n }\n return last;\n }", "@Override\r\n public String toString()\r\n {\r\n return \"Page \"+name;\r\n }", "public int getFragmentPlace()\r\n {\r\n int id = R.id.left_pane_body;\r\n if (DisplayUtils.hasCentralPane(this))\r\n {\r\n id = R.id.central_pane_body;\r\n }\r\n return id;\r\n }", "public lanyotech.cn.park.protoc.CommonProtoc.PageHelperOrBuilder getPageOrBuilder() {\n if (pageBuilder_ != null) {\n return pageBuilder_.getMessageOrBuilder();\n } else {\n return page_;\n }\n }", "private void displaySelectedFragment(Fragment fragment) {\n// if (fragmentName == null || !fragment.getClass().getSimpleName().equals(fragmentName)) {\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.replace(R.id.frame_container, fragment);\n fragmentTransaction.commit();\n fragmentName = fragment.getClass().getSimpleName();\n// }\n }", "protected View getDisplayView(final T field, Fragment frag){\n return null;\n }", "protected abstract String getInitialPageId();", "public final Process getFragmentProcess()\n\t{\n\t\treturn rProcess;\n\t}", "int getPage();", "public String getFragmentPath() {\n return fragmentPath;\n }", "public Page getPage() {\n return page;\n }", "public Page getPage() {\n return page;\n }", "public boolean getFragment()\n\t{\n\t\treturn mFragment;\n\t}", "@Override\n\tpublic int getLayoutId() {\n\t\treturn R.layout.fragment_home;\n\t}", "@Override\n protected int getLayoutId() {\n return R.layout.fragment_home;\n }", "@Override\n public Fragment getItem(int position) {\n return WebPageFragment.newInstance(position);\n }", "public Integer getPage() {\n return page;\n }", "@Override\n public String getPageTitle(int position) {\n switch (position) {\n case 0:\n return mContext.getString(R.string.current_fragment);\n case 1:\n return mContext.getString(R.string.past_fragment);\n default:\n return null;\n }\n }", "public H5Page getMainDOMPage() {\n H5Page mainDOMPage = (H5Page) this.mH5Page.get();\n Object obj = mainDOMPage.getExtra(WEB_VIEW_PAGE_TAG);\n if (obj instanceof H5Page) {\n return (H5Page) obj;\n }\n return mainDOMPage;\n }", "@Override\n public Fragment getItem(int position) {\n switch (position) {\n case 0:\n return pageHome;\n case 1:\n return pageJava;\n case 2:\n return pageAndroid;\n default:\n return pageHome;\n }\n }", "Integer getPage();", "private Fragment findNextFragment(int menuItemId) {\n int index = 0;\n while (index < NAVIGATION_OPTIONS.length && NAVIGATION_OPTIONS[index] != menuItemId) {\n ++index;\n }\n if (index!=0) {\n hideShareAppButton();\n }\n return getFragment(APPLICATION_FRAGMENTS[index]);\n }", "@Override\n public CharSequence getPageTitle(int position) {\n switch (position) {\n case 0: // Fragment # 0 - This will show FirstFragment\n return getResources().getString(R.string.mine);\n case 1: // Fragment # 0 - This will show FirstFragment different title\n return getResources().getString(R.string.all);\n default:\n return \"\";\n }\n }", "@Override\n public AbstractPage getPage() {\n if (this.page == null || page == AbstractPage.EMPTY)\n this.page = getPages().get(0);\n return this.page;\n }", "static String getPageViewId() {\n if (PAGEVIEW_ID == null) {\n PAGEVIEW_ID = generateRandomId();\n }\n return PAGEVIEW_ID;\n }", "public abstract int getFragmentLayout();", "public String getComponentPage() {\n\t\tLOGGER.info(\n\t\t\t\t\"Start of DataListTableBean:getComponentPage()\");\n\t\tString value = FacesContext.getCurrentInstance().\n\t\t\t\tgetExternalContext().getRequestParameterMap().get(\"datatable_selection\");\n\t\tif(value == \"\"){\n\t\t\treturn \"componentTable\";\n\t\t}\n\t\tString page = component.getPage();\n\t\tLOGGER.info(\n\t\t\t\t\"End of DataListTableBean:getComponentPage()\");\t\n\t\treturn page;\n\t}", "@Override\n public Pane getPage() {\n \t\treturn balancerPage;\n }", "int getPageNumber();", "@Override\n public Fragment getFragment() {\n ActionBar actionBar = getSupportActionBar();\n if (actionBar != null) {\n actionBar.setTitle(\"Athletes\");\n }\n\n return new AthleteListFragment();\n }", "@Override\n public Fragment getItem(int position) {\n switch (position) {\n case 0:\n return PageFragment.newInstance(0);\n case 1:\n return MentionFragment.newInstance(0);\n\n default:\n return null;\n }\n }", "@Override\n public Fragment getItem(int position) {\n switch (position) {\n case 0: // Fragment # 0 - This will show FirstFragment\n return FootprintMineFragment.newInstance();\n case 1: // Fragment # 0 - This will show FirstFragment different title\n return FootprintAllFragment.newInstance();\n default:\n return null;\n }\n }", "@Override\n\tpublic String getSameViewID() {\n\t\tif (this.movements.isEmpty()) {\n\t\t\treturn \"/index.html\";\n\t\t} else {\n\t\t\tfinal String lastId = this.movements.peek();\n\t\t\treturn \"/\" + lastId + \".xhtml\";\n\t\t}\n\t}", "@Override\n protected Fragment createFragment() {\n Intent intent = getIntent();\n\n long id = intent.getLongExtra(MovieDetailFragment.EXTRA_ID, -1);\n return MovieDetailFragment.newInstance(id);\n }", "public String getPageId() {\n return pageId;\n }", "public Page getPage() {\n\t\treturn page;\n\t}", "protected int getLayoutResId() {\n return R.layout.activity_fragment;\n }", "public CharSequence getCurrentPage() {\n return pages.get(currentIndex);\n }", "public boolean is_fragment() {\r\n\t\treturn is_fragment_;\r\n\t}", "PageAgent getPage();", "@Override // com.zhihu.android.app.p1311ui.fragment.BaseFragment\n public String onPb3PageUrl() {\n return C6969H.m41409d(\"G6F82DE1FAA22A773A9418447E2ECC0E86D86C11BB63CE43DE91E994BCD\") + this.f90220J;\n }", "public String get(@PAGE int page) {\n if (!mPageSummary.containsKey(page)) {\n return \"\";\n }\n return mPageSummary.get(page).toString();\n }", "public lanyotech.cn.park.protoc.CommonProtoc.PageHelper.Builder getPageBuilder() {\n bitField0_ |= 0x00000002;\n onChanged();\n return getPageFieldBuilder().getBuilder();\n }", "public abstract Fragment getSensorFragment();", "Page getFollowingPage();", "private void loadBookPageFragment() {\n\n FragmentManager manager = getFragmentManager();\n FragmentTransaction transaction = manager.beginTransaction();\n transaction.addToBackStack(\"ListView\"); // enables to press \"return\" and go back to the list view\n transaction.replace(R.id.main_fragment_container, new BookPageFragment());\n transaction.commit();\n }", "@Override\n\tpublic String getBackwardViewID() {\n\t\tif (this.movements.isEmpty()) {\n\t\t\treturn \"/index.html\";\n\t\t} else {\n\t\t\tString beforeLastId = this.movements.peek();\n\t\t\tif (this.movements.size() > 1) {\n\t\t\t\tbeforeLastId = this.movements.get(this.movements.size() - 2);\n\t\t\t}\n\t\t\treturn \"/\" + beforeLastId + \".xhtml\";\n\t\t}\n\t}", "protected abstract int getFragmentLayout();", "protected abstract int getFragmentLayout();", "protected abstract int getFragmentLayout();", "int getMinorFragmentId();", "void fragment(String fragment);" ]
[ "0.6543084", "0.6520935", "0.6365829", "0.6178564", "0.6148923", "0.6048764", "0.601362", "0.60135686", "0.5956785", "0.584006", "0.58135945", "0.58067", "0.5798896", "0.57979524", "0.5789065", "0.5773344", "0.5768405", "0.5729677", "0.5693581", "0.56873405", "0.5675193", "0.56533515", "0.5650337", "0.564821", "0.5635609", "0.5580953", "0.5558039", "0.5555808", "0.554453", "0.5523436", "0.5497291", "0.54820895", "0.5472489", "0.5470842", "0.5448231", "0.5430862", "0.54302347", "0.5427865", "0.5427865", "0.5427865", "0.5414815", "0.5414815", "0.5414815", "0.5414815", "0.541132", "0.5406158", "0.540528", "0.53862613", "0.5378122", "0.537222", "0.5353646", "0.5299768", "0.5281303", "0.5280879", "0.5263804", "0.5263102", "0.52620506", "0.5258169", "0.525303", "0.525303", "0.5250756", "0.524822", "0.523656", "0.52318525", "0.52287865", "0.52148366", "0.52012753", "0.52009434", "0.5199853", "0.51915514", "0.5187213", "0.5180255", "0.51787376", "0.5174609", "0.51607376", "0.5156377", "0.5153533", "0.5151735", "0.51477844", "0.5146401", "0.51412976", "0.5133678", "0.51333433", "0.51323885", "0.51242197", "0.51230353", "0.5120477", "0.51173586", "0.5115429", "0.5114311", "0.510794", "0.5106085", "0.51058555", "0.509106", "0.50832075", "0.5077635", "0.5077635", "0.5077635", "0.50699204", "0.5069338" ]
0.5103001
93
Returns the page title for the top indicator
@Override public CharSequence getPageTitle(int position) { return "Page " + position; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getTitle();", "java.lang.String getTitle();", "java.lang.String getTitle();", "java.lang.String getTitle();", "java.lang.String getTitle();", "public String getPageTitle()\n {\n return page == null ? StringUtils.EMPTY : page.getElementInfo().getTitle();\n }", "public static String getPageTitle() {\n\t\tLOG.info(\"Reading current page title.\");\n\t\treturn Constants.driver.getTitle();\n\n\t}", "public java.lang.String getTitle();", "public String getPageTitle() {\r\n\t\treturn this.pageTitle;\r\n\t}", "public String getWatchListPageTitle() {\n waitForLoadingScreen();\n return findVisibleElement(otherPageTitle).getText();\n\n }", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "public String homePageTitle() {\n\t\tString title=driver.getTitle();\n\t\treturn title;\n\t}", "public final String getPageTitle() {\n\t\treturn pageTitle;\n\t}", "public String getPageTitle() {\n\t\treturn pageTitle;\n\t}", "public String getPageTitle()\n\t{\n\t\treturn driver.getTitle();\n\t}", "public String getPageTitle() {\n\t\treturn driver.getTitle();\n\t}", "public String getPageTitle() {\n return driver.get().getTitle();\n }", "public String getPageTitle() {\n return driver.getTitle();\n }", "public String getTitle(){\n\t\tlog.debug(\"Getting title of Cruises page\");\n\t\tString title = driver.getTitle();\n\t\tlog.info(\"Title of Cruises page is: \"+title);\n\t\treturn title;\n\t}", "public String getTitle() {\n \t\treturn getWebDriver().getTitle();\n \t}", "public String getOtherPageTitle() {\n waitForLoadingScreen();\n return findVisibleElement(otherPageTitle).getText();\n }", "public String getpagetittle() {\n\t\t\n\t\tString tittle = elementutil.getTittleExplicit(Constants.Login_PAGE_TITLE, 15);\n\t\tSystem.out.println(\"Login page tittle : \"+ tittle);\n\t\treturn tittle;\t\n\t}", "public String getCurrentPageTitle() {\n return driver.getTitle();\n }", "public String getHomePageTitle() {\n\t\t//instantiate a web element and have the driver get it\n\t\t//WebElement homePageTitle = driver.findElement(By.xpath(\"//div[@id='bodyContent']//h1\"));\n\t\t//System.out.println(\"Home page title text \" + homePageTitle.getText());\n\t\tlogger.info(\"Home Page Title text is: \" + homePageTitle.getText());\n\t\treturn homePageTitle.getText();//homePageTitle is a PageFactory Element, see above. \n\t}", "public String getTitle()\r\n\t{\r\n\t\treturn TITLE;\r\n\t}", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getCurrentPageTitle() {\n return webDriver.getTitle();\n }", "protected String getPageHeader()\n {\n if (this.pageHeader == null) {\n String title = (this.privateLabel != null)? this.privateLabel.getPageTitle() : \"\";\n StringBuffer sb = new StringBuffer();\n sb.append(\"<center>\");\n sb.append(\"<span style='font-size:14pt;'><b>\" + title + \"</b></span>\");\n sb.append(\"<hr>\");\n sb.append(\"</center>\");\n this.pageHeader = sb.toString();\n }\n return this.pageHeader;\n }", "IDisplayString getTitle();", "public String getTitle() {\n return find(by.tagName(\"h1\")).getText();\n }", "public String getTitle() {\n \t\treturn title;\n \t}", "public String getTabTitle();", "public String getTitle() {\n\t\t\n\treturn driver.getTitle();\n\t\n\t}", "String title();", "String title();", "public String getTitle() {\n return bufTitle;\n }", "public String getModalPageTitle() {\n waitForLoadingScreen();\n return findVisibleElement(modalPageTitle).getText();\n }", "public String getTitle() {\n\t\treturn getDriver().getTitle().trim();\n\t}", "@Override\r\n\tpublic String getPageTitle() {\t\r\n\t\treturn getTranslation(Routes.getPageTitleKey(Routes.REPORT));\r\n\t}", "public String getHomePageTitle()\n\t{\n\t\treturn elementUtils.getWebPageTitle();\n\t}", "public String getTitle( ) {\n return null;\r\n }", "public IMobileSMTitle getTitle();", "public String getTitle()\n {\n return (this.title);\n }", "@Override\r\n\tpublic String getTitle() {\n\t\treturn title;\r\n\t}", "public String getTitle() \r\n\t{\r\n\t\treturn this.title;\r\n\t}", "public static String getTitle() {\r\n\t\tString titleStr = null;\r\n\t\ttry {\r\n\t\t\ttitleStr = driver.getTitle();\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(\"Unable to open the WebSite: \" + e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn titleStr;\r\n\t}", "public String getTitle()\n\t{\n\t\treturn title;\n\t}", "public String getTitle()\n\t{\n\t\treturn title;\n\t}", "public String getTitle()\r\n {\r\n return getSemanticObject().getProperty(swb_title);\r\n }", "public String getTitle() {\r\n\t\treturn title;\r\n\t}", "public String getTitle() {\r\n\t\treturn title;\r\n\t}", "public String getTitle() {\r\n\t\treturn title;\r\n\t}", "public String getTitle() {\r\n\t\treturn title;\r\n\t}", "public String getTitle() {\r\n\t\treturn title;\r\n\t}", "public String getTitle() {\r\n\t\treturn title;\r\n\t}", "public String getTitle() {\r\n\t\treturn title;\r\n\t}", "public String getTitle() {\r\n\t\treturn (String) getProperty(\"title\");\t\r\n\t}", "public String getTitle()\r\n {\r\n return title;\r\n }", "public String getTitle()\r\n {\r\n return title;\r\n }", "public String getTitle(){\n\n\t\treturn title;\n\t}", "public String getTitle() {\n return getProperty(Property.TITLE);\n }", "public String getTitle() {\n return \"\";\n }", "public String getTitle()\n {\n return title;\n }", "public java.lang.String getTitle() {\n return title;\n }", "public String getTitle() {\n return null;\n }", "public String getTitle() {\r\n return title;\r\n }", "public String getTitlePopup() {\n/* 136 */ return getCOSObject().getString(COSName.T);\n/* */ }", "public String getTitle() {\r\n return title;\r\n }", "public String getTitle() {\r\n return title;\r\n }", "public String getTitle() {\r\n return title;\r\n }" ]
[ "0.7533483", "0.7533483", "0.7533483", "0.7533483", "0.7533483", "0.74283767", "0.7384088", "0.7286544", "0.7284714", "0.72799945", "0.7278579", "0.7278579", "0.7278579", "0.7278579", "0.7278579", "0.7278579", "0.7278579", "0.7278579", "0.7278579", "0.7278579", "0.7278579", "0.7278579", "0.7278579", "0.7278579", "0.7278579", "0.727116", "0.7268129", "0.72514987", "0.7249417", "0.72082543", "0.7202404", "0.71766895", "0.71730053", "0.7152204", "0.71303076", "0.7127256", "0.71231115", "0.70987755", "0.7026653", "0.70211697", "0.70211697", "0.70211697", "0.70211697", "0.70211697", "0.70211697", "0.70211697", "0.70211697", "0.70211697", "0.70211697", "0.70211697", "0.70211697", "0.70211697", "0.70211697", "0.70211697", "0.70211697", "0.70211697", "0.70211697", "0.70069516", "0.69985855", "0.6984622", "0.69567484", "0.6953207", "0.69317085", "0.6912979", "0.69071096", "0.69071096", "0.6905105", "0.68980795", "0.68899924", "0.68767005", "0.6872835", "0.6866472", "0.6859135", "0.6858017", "0.6856215", "0.6842162", "0.6832076", "0.68129766", "0.68129766", "0.6808024", "0.68039244", "0.68039244", "0.68039244", "0.68039244", "0.68039244", "0.68039244", "0.68039244", "0.67939025", "0.6789676", "0.6789676", "0.6781007", "0.67779577", "0.6777734", "0.676052", "0.6759727", "0.67574126", "0.67485183", "0.67439383", "0.6738468", "0.6738468", "0.6738468" ]
0.0
-1
System.out.println("The lowerArg is " + lowerArg); System.out.println("The upperArg is " + upperArg);
private boolean checkHierarchy(String lowerArg, String upperArg) { if (lowerArg.equals(upperArg)) { return true; } List<String> primTypes = Arrays.asList("int", "int[]", "boolean"); if (primTypes.contains(lowerArg) || primTypes.contains(upperArg)) { return false; } SymbolTable table = null; for (ClassDecl classDecl : this.classesDeclrs) { if (classDecl.name().equals(lowerArg)) { table = ExtractTable(classDecl); } } while (table != null) { if (table.className != null && table.className.equals(upperArg)) { return true; } table = table.getParentSymbolTable(); } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args)\r\n\t\t\t{\n\t\t\t\tprintLowerAndUpperBound();\r\n\t\t\t}", "void test(int a ,int b){\n System.out.println(\"a and b: \"+a+\" \"+b);\n }", "public void printRange(AnyType lower, AnyType upper) {\r\n\t\tif (lower.compareTo(upper) > 0) {\r\n\t\t\tAnyType temp = lower;\r\n\t\t\tlower = upper;\r\n\t\t\tupper = temp;\r\n\t\t} // if (switches values to check and use them)\r\n\t\tif (root == null) {\r\n\t\t\treturn;\r\n\t\t} else {\r\n\t\t\tprintRange(root, lower, upper);\r\n\t\t} // else\r\n\t}", "java.lang.String getArg();", "public static void main(String[] args) {\n\t\t\n\t\tint x=5, y=10;\n\t\t\n\t\tx=x+y;\n\t\ty=x-y;\n\t\tx=x-y;\n\t\t\n\t\tSystem.out.println(\"x = \"+x+\" and y = \"+y);\n\t\t\n\t\t\n\t\tString a=\"Sabeen\", b=\"Sadiq\";\n\t\t\n\t\t\n\t\t\n\n\t}", "public static void main(String[] args) {\n String x = \"Hello \", y = \"World\"; \r\n\t\t\r\n\t\tSystem.out.println(\"x + y = \" + x + y);\r\n\r\n\r\n\t}", "public static void main(int a, int b){\n\n }", "public static void main(String[] args) {\n\t\t\n\t\tTest t=new Test();\n\t\tint a=50,b=20;\n\t\tSystem.out.println(a+\" \"+b);\n\n\t\tt.meth(a,b);\n\t\t\n\t\tSystem.out.println(a+\" \"+b);//doesn't change value of a nd b\n\t\n\n}", "public static void main(String[] args) {\n System.out.println(\"kkkjhhdjh\");\r\n System.out.println(\"pppppppppppppppp\");\r\n System.out.println(\"Overwriden\");\r\n\t}", "public static void main(String[] args) {\n\t\tint a=10;\n\t\tint b=20; \n\t\tString y=\"Hello\";\n\t\tString x=\"Bye\"; \n\t\tSystem.out.println(a+b+x+y); \n\t\tSystem.out.println(x+y+a+b);\n\t\tSystem.out.println(x+y+(a+b));\n\t\tSystem.out.println(a+\"\"+b+x+y);\n\t\t\t\t\n\n\n\t}", "@Test\n void getArgString() {\n }", "public static void main(String[] args) {\n\n\t\tString firstName=\"Bob\";\n\t String lastName=\"Jones\";\n\t \n\t System.out.println(\"Bob\");\n\t System.out.println(lastName);\n\t}", "public static void main (String args[]){\n\t\ta=add(a,b);\n\t\tSystem.out.println(add(a,b));\n\t\tSystem.out.println(a);\n\t\tSystem.out.println(a>b? a: b);\n\t\ta=a>b?a:b;\n\t\tSystem.out.println(a);\n\t\t\n\t}", "void dispay(int a, int b) // a, b method parameters or method variables\n\t{\n\t\tSystem.out.print(a);\n\t\tSystem.out.println(b);\n\t\t}", "public static void main(String[] args) {\r\n \t\t\r\n\t\tint x = 10;\r\n\t\tint y =20;\r\n\t\tSystem.out.println(x+y);\r\n\t\t \r\n\r\n\t}", "void concat(String a, int b) {\n System.out.println(\"First : \" + a + \" second : \" + b);\n }", "public static void main(String[] args) {\n\t\tint a=10;\r\n\t\tint b=20;\r\n\t\tswap(a,b);\r\n\t\tSystem.out.println(\"main:a=\"+a+\",b=\"+b);\t\t//==>변경X(call by value)-기본형,String\r\n\t\t\r\n\t\t\r\n\r\n\t}", "static void AddThemUP() { //defining a method to add 2 numbers\n int a = 4;\n int b = 5;\n\n System.out.println(\"The numbers add up to \" + (a + b));\n }", "public static void main(String[] args) {\n\t\tSecondUpper s=new SecondUpper();\r\n\t\tSystem.out.println(s.getSecondWordInUppercase(\"Hello \"));\r\n\r\n\t}", "public static void main(String[] args) {\n\t\t\tmeth(args);\r\n\t\t\targument_test:meth(args);\r\n\t}", "public static void main(String[] args) {\nString nameGraduate = \"Georgi Grozdev\";\nint yearGraduate = 2010;\nSystem.out.println(\"My name is \" + nameGraduate + \"and I'll graduate in \" +yearGraduate + \".\");\n\t}", "public static void main(String[] args) {\n\t\tString greeting = \"What up!\";\r\n\t\tString greeting2 = greeting;\r\n\t\tString greeting3 = \"What up?\";\r\n\t\t\r\n\t\tSystem.out.println(\"Test1\");\r\n\t\tSystem.out.println(greeting);\r\n\t\tSystem.out.println(greeting2);\r\n\t\tSystem.out.println(greeting3);\r\n\t\t\r\n\t\tString greeting2v2 = greeting2.toUpperCase();\r\n\t\tString greeting3v2 = greeting3.toUpperCase();\r\n\t\t\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"Test2\");\r\n\t\tSystem.out.println(greeting);\r\n\t\tSystem.out.println(greeting2v2);\r\n\t\tSystem.out.println(greeting3);\r\n\t}", "public static void main(String[] args) {\n one_two_four();\n /* result:\n world\n hello\n */\n\n }", "public static void main(String[] args) {\n\t\tString str=\"rahuul\";\n\t\tprintResult(str);\n\t\t\n\t}", "public static void main(String[] args) {\n System.out.println(variable);\n System.out.println(\"passed\");\n }", "public static void main(String[] args) {\n\t\tprint((a,b) -> System.out.println(a+\" \"+b), \"Hello\",\"Java\");\r\n\t\tprint((a,b) -> System.out.println(a+\"-\"+b), \"Hello\",\"Java\");\r\n\t}", "public static void main(String[] args) {\nSystem.out.println(\"second tricky\");\r\n\t}", "public static void main(String[] args) {\n\t\tint x = 2;\n\t\tdouble y = 2.5;\n\t\tString name = \"Aarav\";\n\t\t\t\t\n\t\tSystem.out.println(x);\n\t\tSystem.out.println(y);\n\t\tSystem.out.println(name);\n\t\t\n\t}", "public static void main(String arg[]) {\n\n }", "public static void main(String[] args) {\n int x=20;\r\n \r\n int y=30;\r\n if (x<\r\n y) {\r\n System.out.println(x);\r\n System.out.println(y);\r\n System.out.println(\"hi\");\r\n\t}\r\n else {\r\n \t System.out.println(\"xequaly\");\r\n }\r\n \r\n\t}", "public static void main(String[] args) {\nSystem.out.println(\"you passed...\"+args.length);\r\nfor(int i=0;i<args.length;i++)\r\n{\r\n\tSystem.out.println(\"data is\"+args[i]);\r\n}\r\n\t}", "public static void main (String[] args){\n System.out.println(\"What is your name?\");\n Scanner console = new Scanner(System.in);\n String first = console.next();\n String subfirst = first.substring(1);\n String last = console.next();\n String sublast = last.substring(1);\n\n name(first, subfirst);\n name(last, sublast);\n\n\n }", "public static void main(String[] args) {\n\t\tString first = \"coding\";\r\n\t\tSystem.out.println(first + \" \"+ \"everybody\");\r\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tSystem.out.println(foo(4, 2));\r\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tString name = \"hello\";\r\n\t\tRunnable r1 = () -> System.out.println(name);\r\n\t\t\r\n\t\t//String name2 = \"\";\r\n\t\t String name2 = name.toUpperCase();\r\n\t\tRunnable r2 = () -> System.out.println(name2);\r\n\t\tr1.run();\t\r\n\t\t\r\n\t\t//avergeOfPlayer();\r\n\t\t\r\n\t\t//topNumberinArray();\r\n\t\t\r\n\t\ttestSpiltIterator();\r\n\t\t\r\n\t}", "public static void main(String[] args) {\nint a=3;\nint b=4;\nSystem.out.println(a+b);\n\t}", "public static void main(String[] args) {\n\t\tMethodOverload m=new MethodOverload();\t\n\t\tint p=m.add(40,1);\n\t\t\t\tint q=m.add(10, 1);\n\t\tSystem.out.println(\"p=\" +p);\n\t\tSystem.out.println(\"q=\" +q);\n\t\t// TODO Auto-generated method stub\n\n\t}", "void test(int a){\n System.out.println(\"a: \"+a);\n }", "public static void main(String[] args) {\n\t\tint x=10;\n\t\tmodify(x);\n\t\tSystem.out.println(\"This is the value of x \" + x);\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tString theString = \"This IS a mix of UPPERcase and lowerCASE\";\n\n\t\tString uppercase = theString.toUpperCase();\n\t\tString lowercase = theString.toLowerCase();\n\t\tSystem.out.println(\"Uppercase string=\"+uppercase);\n\t\tSystem.out.println(\"Lowercase string=\"+lowercase);\n\n\t}", "public static void main(String[] args) {\n\t\tint a,b=4,c;\n\t\ta =1;\n\t\tc=11;\n\t\tSystem.out.printf(\"variable a is %d b is %d and c %d\\n\",a,b,c);\n\t}", "public static void main(String[] args){\n //how to print\n\n }", "public static void main(String[] args) {\n Person p = new Person();\n p.hello();\n int age = 19;\n Integer arg2 = 19;\n// arg2.intValue();\n char c = 'A';\n byte b = 120;\n float weight = 66.5f;\n boolean adult = true;\n boolean enroll = false;\n String name = \"Richard\";\n\n\n }", "public static void main(String[] args) {\n\t\t\n\t\tint myage = 30;\n\t\tint herage=myage; \n\t\tSystem.out.println(herage);\n\t}", "public static void main(String[] args) {\n\t\tPassParameters obj = new PassParameters();\r\n\t\tobj.add(100, 150);\r\n\t\tobj.sub(20.5, 50.6);\r\n\t\t\r\n\r\n\t}", "public static void main(String[] args) {\n System.out.println(\"Random Number is :\"+ Range());\n }", "public static void main(String[] args) {\n\n\t\tint age = 34;\n\t\tString firstName = \"Boris\";\n\t\tString lastName = \"Goetz\";\n\t\tString wholeName = firstName + \" \" + lastName;\n\t\tdouble accountBalance = 23.70;\n\t\tchar middleinitial = 'V';\n\t\t\t\t\n\t\tSystem.out.println(\"Hello, my name is wholeName\");\n\t\tSystem.out.println(age);\n\t\tSystem.out.println(\"Hello, my name is \" + wholeName );\n\t\tSystem.out.println(\"Halo, ich heibe \" + firstName +\" \"+ lastName); \n\t\tSystem.out.println(\"I am \" + age ); System.out.println(\". I am \" + age * 8);\n\t\tSystem.out.println(\"The definition of love and beauty and wierdness is \" + wholeName);\n\t\tSystem.out.println(\"Jason takes a bite out of crime and acts like he is \" + age/17);\n\t\tSystem.out.println(accountBalance / 12);\n\t\tSystem.out.println(firstName +\" \"+ lastName);\n\t\tSystem.out.println(firstName +\" \"+ middleinitial +\" \"+ lastName);\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\nSystem.out.println(\"Abxdefghijklmnopqrstuvwxyz\");\nint a =12;\nSystem.out.println(a);\n\t}", "public static void hi (String stuff){\n\t\tSystem.out.println(stuff);\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(getA());\r\n\r\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(test(7, 4, 8));\r\n\t\tSystem.out.println(test(7, 8, 4));\r\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tint x= 10 , y= 80 , sum ;\r\n\t\tsum = x + y ;\r\n\t\tSystem.out.println(\"sum of two numbers = \" + sum);\r\n\t}", "public static void main(String[] args) {\n System.out.println(super.x);\r\n }", "String getArguments();", "public static void main(String[] args) {\n \r\n int x;\r\n int y;\r\n x= 40;\r\n y= 60;\r\n if(x<y) {\r\n\t System.out.println(\"y is bigger\");\t\r\n\t\r\n\t} \r\n\t}", "public void showSir(String nom, String apell1, String apell2){\n System.out.println(\"Bienvenido \"+nom+\" \"+apell1+\" \"+apell2);\n System.out.println(\"\");\n}", "public static void main(String[] args) {\nSystem.out.println(b);\n\t}", "public static void main(String[]args) {\n\t\n\t\t\n\n}", "public static void main(String[] args) {\n\t\t\r\n\t\t\r\n\t\tint a,b,c;\r\n\t\ta=10;b=20;\r\n\t\t c=a-(-b);\r\n\t\t System.out.println(\"Addition: \"+c);\r\n\t\t\t\t \r\n\r\n\t}", "public static void main(String[] args) {\n\t\tint x = 10;\n\t\tint y = 20;\n\n\t\tx = y + x;//30\n\t\ty = x - y;//10\n\t\tx = x - y;//20\n\t\t\n\t\tSystem.out.println(\"Value of x =\" + x);\n\t\tSystem.out.println(\"Value of y =\" + y);\n\t}", "public static void main(String[] args) {\nSystem.out.println(\"hello\");\r\nSystem.out.println(\"world\");\r\nSystem.out.println(\"haaai\");\r\nSystem.out.println(\"hell\");\r\n\t}", "public static void main(String[] args) {\n\t\tnameAndAddress();\n\t\tSystem.out.println(\" \");\n\t\tSystem.out.println(\"This is the first method that I have ever created! Cool stuff!\");\n\t}", "public static void main(String[] args) {\r\n\t\tfor (int t = 0; t < args.length; t++){\r\n\t\t\tSystem.out.println(\"Argument \" + t + \" is \" + args[t]);\r\n\t\t}\r\n\r\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(\"456\");\n\t\tpailie(\"ABCD\", \"\");\n\t}", "public static void main(String args[]) {\n System.out.println(\"my name is lishuaishuai\");\n }", "public static void main(String[] args) {\n myName(\"jordan\");\n// System.out.println(addNums(4,5) );\n int finalResult = addNums(4,5) + 10;\n anotherMethod();\n System.out.println(fullName(\"jordan\", \"hiatt\") );\n System.out.println(finalResult);\n }", "public static void main(String[] args) {\n\t\tmysteryXY(3, 4);\r\n\t}", "public static void main(String[] math) {\n System.out.println(max - min); }", "public static void main(String[] args) {\n\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(\"test\");\n\n\t\tsb.insert(1, \"(\");\n\n\t\tSystem.out.println(sb.toString());\n\t}", "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\r\n\t\tSystem.out.println(\"enter the string1\");\r\n\t\tString str1 = scan.nextLine();\r\n\t\tSystem.out.println(\"enter the string2\");\r\n\t\tString str2 = scan.nextLine();\r\nconacting(str1,str2);\r\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\t\r\n\t\tint g = 15;\r\n\t\t\r\n\t\tint m = g++ + ++g - --g;\r\n\t\t\r\n\t\tSystem.out.println(m);\r\n\t\tSystem.out.println(g);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "public static void main (String[] args) {\n Scanner s = new Scanner(System.in);\n SecondGreatLow c = new SecondGreatLow();\n System.out.print(c.SecondGreatLow(new int[] {7, 7, 12, 98, 106}));\n }", "public static void main(String[] arg) {\r\n\t\tSystem.out.println(\"Nice to meet you,Java\");// prints Nice to meet you,Java\r\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tint a=Integer.parseInt(args[0]);\r\n\t\tint b=Integer.parseInt(args[1]);\r\n\t\tSystem.out.println(larger(a,b));\r\n\t}", "public static void main(String[] args) {\n\t\tProblem42 test=new Problem42();\n\t\ttest.reverseSentence(\" \");\n\t\tSystem.out.println(\n\t\t\t\t);\n\t}", "public static void main(String[] args) {\n String str = \"welcome to Programr!\";\n\n System.out.println(\"UpperCase: - \"+str.toUpperCase());\n }", "public static void main(String[] args) {\n int num1=10, num2=20;\n num1 += 5; // num1=num1+5;\n num2 -= 5; // num2=num2-5;\n System.out.println(num1);\n System.out.println(num2);\n\t}", "public static void main(String[] args) {\n\t\tString[] arr = {\"a\", \"b\", \"c\", \"d\"};\n\t\tprintArray(arr);\n\t\tSystem.out.println();\n\t\tprintBackwards(arr);\n\t\tSystem.out.println();\n\t\tprintOther(arr);\n\t\tSystem.out.println();\n\t\tprintRand(arr);\n\t\tSystem.out.println();\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tLL ll = new LL();\n\t\tll.add(5);\n\t\tll.add(1);\n\t\tll.add(2);\n\t\tll.add(4);\n\t\tSystem.out.println(ll);\n\n\n\t}", "public static void main(String... args){\n\n }", "public static void main(String[] args) {\n\t\tString source= \"bcd\";\n\t\tString target=\"bcde\";\n\t\tSystem.out.println(Str(source,target));\n\n\t}", "public static void main(String[] args) {\n\t\tString x,y,result;\r\n\t\tx = \"Hello \";\r\n\t\ty = \"Ricy\";\r\n\t\t\r\n\t\tresult = x + y;\r\n\t\t\r\n\t\tSystem.out.println(result + \"!\");\r\n\t}", "@Override\n public int getArgent() {\n return _argent;\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(\"This is subtraction\");\n\t}", "int upper();", "static public void main(String... va) {\n }", "public static void main (String[] args) \n\t{\n\t\tint x = 5;\n\t\tint y = 10;\n \n\t\tSystem.out.println(\"value x + y * 2 - \" + ( x + y * 2));\n\t\tSystem.out.println(\"value x - y * 2 - \" + ( x - y * 2));\n\t\tSystem.out.println(\"value (x + y) * 2 - \" + ( (x + y) * 2));\n\t\tSystem.out.println(\"value y % 2 - \" + ( y % 2));\n\t}", "class_1069 method_105(int var1, int var2);", "public static void main(String[] args) {\n\t\tint lo = 1;\n\t\tint hi = 1;\n\t\tString mark;\n\t\tint be = Integer.parseInt(args[0]);\n\t\tint en = Integer.parseInt(args[1]);\n\t\t//System.out.println(be);\n\t\t//System.out.println(en);\n\t\tif(be<0){\n\t\t\tSystem.out.println(\"First command line input must be positive\");\n\t\t\treturn;\n\t\t}\n\t\tif(en<0){\n\t\t\tSystem.out.println(\"Second command line input must be positive\");\n\t\t\treturn;\n\t\t}\n\t\tif(be>en){\n\t\t\tSystem.out.println(\"First command line input must less than second command line input\");\n\t\t\treturn;\n\t\t}\n\t\tif(be==1){\n\t\t\tSystem.out.println(\"1: \" + lo);\n\t\t}\n\t\tif(en >= 2){\n\t\t\tfor (int i = 2; i <= en; i++) {\n\t\t\t\tif (hi % 2 == 0)\n\t\t\t\t\tmark = \" *\";\n\t\t\t\telse\n\t\t\t\t\tmark = \"\";\n\t\t\tif(i >= be){\n\t\t\t\tSystem.out.println(i + \": \" + hi + mark);\n\t\t\t}\n\t\t\thi = lo + hi;\n\t\t\tlo = hi - lo;\n\t\t\t}\n\t\t}\n\t}", "public static void main(String[] args) {\n\n\t\tSystem.out.println(\"How much is 2+2?\");\n\t\tSystem.out.println(2+2);\n\t\t\n\t\tSystem.out.println(\"How much is 10-5?\");\n\t\tSystem.out.println(10-5);\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tdouble x= 3.0, y=4.0;\n\t\tnormalize(x,y);\n\t\tSystem.out.printf(\"%.2f, %.2f\\n\",x,y);\n\t\t\n\t\t\n//paso por valor\n\t\t\n\t\t\n\t\t\n\n\t}", "public static void main(String[] args) {\n\t\tint a = 10;\n\t\tint b = 20;\n\t\tint c = a + b;\n\t\tSystem.out.println(\"sum of two numbers \" + c);\n\n\t}", "public static void main(String args[]){\n\tSystem.out.println(\"hi hello hi.\");\n}", "public static void main(String[] args) {\n\t\tint x = 5;\n\t\tSystem.out.println(\"Hola Mundo \" + x);\n\t}", "public static void main(String[] args) {\n name = \"Izzat\";\n num = 200;\n\n System.out.println(name);\n System.out.println(num);\n\n }", "public static void main(String[] args) {\n IntStream.iterate(0, i -> i < args.length, i -> i + 2)\n .forEach(i -> System.out.printf(\"%s=%s\\n\", args[i], args[i + 1]));\n }", "public static void main(String[] args) {\n\t\t\n\t\tString str = \"Dilmurod\";\n\t\tSystem.out.print(\"Before method call: \");\n\t\tSystem.out.println(str);\n\t\t\n\t\tchangeName(str);\n\t\t\n\t\tSystem.out.print(\"After method call: \");\n\t\tSystem.out.println(str);\n\n\n\t}", "public static void p(String in) {\r\n\t\tSystem.out.println(in);\r\n\t}", "public static void main(String[] args) {\n\t\tString firstName = \"Piotr\";\r\n\t\tString lastName = \"Wojczynski\";\r\n\t\t\r\n\t\tSystem.out.println(\"Moe imie i nazwisko to: \" + firstName + \" \" + lastName);\r\n\r\n\t}", "public static void main(String[] args) {\n\n\n String ad=\"erdogan\";\n String soyad= \"HOZAN\";\n\n System.out.println(\"ad: \"+ ad.toUpperCase());\n System.out.println(\"soyad:\" + soyad.toLowerCase());\n\n }", "public static void main(String[] args) {\n\r\n\t\tString s1 = \"Tatyana\";\r\n\t\tString s2 = \"Tatyanat\";\r\n\t\tString s3 = \"Toneva\";\r\n\t\tString s4 = s1+ \" \" +s2 + \" \" +s3;\r\n\t\tSystem.out.println(s4);\r\n\t}" ]
[ "0.66182625", "0.65052456", "0.6124795", "0.60407627", "0.603874", "0.6005216", "0.59868896", "0.59322965", "0.5928339", "0.5885752", "0.58584607", "0.58342373", "0.5823679", "0.5820829", "0.58167684", "0.5789897", "0.57755405", "0.57731926", "0.57660437", "0.57657164", "0.5765588", "0.5751143", "0.5747535", "0.5740725", "0.57164544", "0.57087445", "0.5698221", "0.56980485", "0.5682252", "0.5681552", "0.56667805", "0.5664085", "0.5648733", "0.5642377", "0.56401217", "0.5629653", "0.5628475", "0.561021", "0.5607397", "0.5587459", "0.5571701", "0.5570613", "0.5560137", "0.5554694", "0.5541686", "0.55381536", "0.5537306", "0.55319434", "0.5529326", "0.55171716", "0.55139667", "0.5513727", "0.55077463", "0.5504454", "0.5499337", "0.54789764", "0.5470432", "0.54591435", "0.5452557", "0.5450801", "0.5438108", "0.5434234", "0.543345", "0.54324013", "0.5427962", "0.54248023", "0.54206586", "0.5420156", "0.54194134", "0.54177636", "0.5408467", "0.5402904", "0.5401936", "0.54002565", "0.5387441", "0.538714", "0.5385692", "0.5383206", "0.5380226", "0.5380005", "0.53706276", "0.5369999", "0.53693867", "0.53670716", "0.53642195", "0.5359878", "0.5356647", "0.5351022", "0.53502816", "0.53492904", "0.53482", "0.5345243", "0.5344173", "0.5342387", "0.5341871", "0.53402865", "0.53397775", "0.5338564", "0.53345054", "0.5328502", "0.5328414" ]
0.0
-1
Use this factory method to create a new instance of this fragment using the provided parameters.
public static FaceRecFragment newInstance(String param1, String param2) { FaceRecFragment fragment = new FaceRecFragment(); Bundle args = new Bundle(); args.putString(ARG_PARAM1, param1); args.putString(ARG_PARAM2, param2); fragment.setArguments(args); return fragment; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static FragmentTousWanted newInstance() {\n FragmentTousWanted fragment = new FragmentTousWanted();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "protected abstract Fragment createFragment();", "public void createFragment() {\n\n }", "@Override\n protected Fragment createFragment() {\n Intent intent = getIntent();\n\n long id = intent.getLongExtra(MovieDetailFragment.EXTRA_ID, -1);\n return MovieDetailFragment.newInstance(id);\n }", "public CuartoFragment() {\n }", "public StintFragment() {\n }", "public ExploreFragment() {\n\n }", "public RickAndMortyFragment() {\n }", "public FragmentMy() {\n }", "public LogFragment() {\n }", "public FeedFragment() {\n }", "public HistoryFragment() {\n }", "public HistoryFragment() {\n }", "public static MyFeedFragment newInstance() {\n return new MyFeedFragment();\n }", "public WkfFragment() {\n }", "public static ScheduleFragment newInstance() {\n ScheduleFragment fragment = new ScheduleFragment();\n Bundle args = new Bundle();\n //args.putString(ARG_PARAM1, param1);\n //args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public ProfileFragment(){}", "public WelcomeFragment() {}", "public static ForumFragment newInstance() {\n ForumFragment fragment = new ForumFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n\n return fragment;\n }", "public static NotificationFragment newInstance() {\n NotificationFragment fragment = new NotificationFragment();\n Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public progFragment() {\n }", "public HeaderFragment() {}", "public static RouteFragment newInstance() {\n RouteFragment fragment = new RouteFragment();\n Bundle args = new Bundle();\n //fragment.setArguments(args);\n return fragment;\n }", "public EmployeeFragment() {\n }", "public Fragment_Tutorial() {}", "public NewShopFragment() {\n }", "public FavoriteFragment() {\n }", "public static MyCourseFragment newInstance() {\n MyCourseFragment fragment = new MyCourseFragment();\r\n// fragment.setArguments(args);\r\n return fragment;\r\n }", "public static MessageFragment newInstance() {\n MessageFragment fragment = new MessageFragment();\n Bundle args = new Bundle();\n\n fragment.setArguments(args);\n return fragment;\n }", "public static ReservationFragment newInstance() {\n\n ReservationFragment _fragment = new ReservationFragment();\n// Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n// fragment.setArguments(args);\n return _fragment;\n }", "public CreateEventFragment() {\n // Required empty public constructor\n }", "public static RecipeListFragment newInstance() {\n RecipeListFragment fragment = new RecipeListFragment();\n// Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n// fragment.setArguments(args);\n return fragment;\n }", "public static Fragment newInstance() {\n\t\treturn new ScreenSlidePageFragment();\n\t}", "public NoteActivityFragment() {\n }", "public static WeekViewFragment newInstance(int param1, int param2) {\n WeekViewFragment fragment = new WeekViewFragment();\n //WeekViewFragment 객체 생성\n Bundle args = new Bundle();\n //Bundle 객체 생성\n args.putInt(ARG_PARAM1, param1);\n //ARG_PARAM1에 param1의 정수값 넣어서 args에 저장\n args.putInt(ARG_PARAM2, param2);\n //ARG_PARAM2에 param2의 정수값 넣어서 args에 저장\n fragment.setArguments(args);\n //args를 매개변수로 한 setArguments() 메소드 수행하여 fragment에 저장\n return fragment; //fragment 반환\n }", "public static Fragment0 newInstance(String param1, String param2) {\n Fragment0 fragment = new Fragment0();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public static QueenBEmbassyF newInstance() {\n QueenBEmbassyF fragment = new QueenBEmbassyF();\n //the way to pass arguments between fragments\n Bundle args = new Bundle();\n\n fragment.setArguments(args);\n return fragment;\n }", "public static Fragment newInstance() {\n StatisticsFragment fragment = new StatisticsFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "public EventHistoryFragment() {\n\t}", "public HomeFragment() {}", "public PeopleFragment() {\n // Required empty public constructor\n }", "public static FeedFragment newInstance() {\n FeedFragment fragment = new FeedFragment();\n return fragment;\n }", "public static MainFragment newInstance(String param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "public VantaggiFragment() {\n // Required empty public constructor\n }", "public AddressDetailFragment() {\n }", "public ArticleDetailFragment() { }", "public static DropboxMainFrag newInstance() {\n DropboxMainFrag fragment = new DropboxMainFrag();\n // set arguments in Bundle\n return fragment;\n }", "public RegisterFragment() {\n }", "public EmailFragment() {\n }", "public static CommentFragment newInstance() {\n CommentFragment fragment = new CommentFragment();\n\n return fragment;\n }", "public static FragmentComida newInstance(String param1) {\n FragmentComida fragment = new FragmentComida();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n fragment.setArguments(args);\n return fragment;\n\n\n }", "public static ParqueosFragment newInstance() {\n ParqueosFragment fragment = new ParqueosFragment();\n return fragment;\n }", "public ForecastFragment() {\n }", "public FExDetailFragment() {\n \t}", "public static AddressFragment newInstance(String param1) {\n AddressFragment fragment = new AddressFragment();\n\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n fragment.setArguments(args);\n\n return fragment;\n }", "public TripNoteFragment() {\n }", "public ItemFragment() {\n }", "public NoteListFragment() {\n }", "public CreatePatientFragment() {\n\n }", "public DisplayFragment() {\n\n }", "public static frag4_viewcompliment newInstance(String param1, String param2) {\r\n frag4_viewcompliment fragment = new frag4_viewcompliment();\r\n Bundle args = new Bundle();\r\n args.putString(ARG_PARAM1, param1);\r\n args.putString(ARG_PARAM2, param2);\r\n fragment.setArguments(args);\r\n return fragment;\r\n }", "public static fragment_profile newInstance(String param1, String param2) {\n fragment_profile fragment = new fragment_profile();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "@Override\n\tprotected Fragment createFragment() {\n\t\treturn new FormFragment();\n\t}", "public static MainFragment newInstance() {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "public ProfileFragment() {\n\n }", "public BackEndFragment() {\n }", "public CustomerFragment() {\n }", "public static FriendsFragment newInstance(int sectionNumber) {\n \tFriendsFragment fragment = new FriendsFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "public ArticleDetailFragment() {\n }", "public ArticleDetailFragment() {\n }", "public ArticleDetailFragment() {\n }", "public static Fragment newInstance() {\n return new SettingsFragment();\n }", "public SummaryFragment newInstance()\n {\n return new SummaryFragment();\n }", "public PeersFragment() {\n }", "public TagsFragment() {\n }", "public static ProfileFragment newInstance() {\n ProfileFragment fragment = new ProfileFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, \"\");\n args.putString(ARG_PARAM2, \"\");\n fragment.setArguments(args);\n return fragment;\n }", "public static FriendsFragment newInstance() {\n FriendsFragment fragment = new FriendsFragment();\n\n return fragment;\n }", "public HomeSectionFragment() {\n\t}", "public static FirstFragment newInstance(String text) {\n\n FirstFragment f = new FirstFragment();\n Bundle b = new Bundle();\n b.putString(\"msg\", text);\n\n f.setArguments(b);\n\n return f;\n }", "public PersonDetailFragment() {\r\n }", "public static LogFragment newInstance(Bundle params) {\n LogFragment fragment = new LogFragment();\n fragment.setArguments(params);\n return fragment;\n }", "public RegisterFragment() {\n // Required empty public constructor\n }", "public VehicleFragment() {\r\n }", "public static Fine newInstance(String param1, String param2) {\n Fine fragment = new Fine();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public static FriendsFragment newInstance(String param1, String param2) {\n FriendsFragment fragment = new FriendsFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "public static ChangesViewFragment newInstance() {\n\t\tChangesViewFragment fragment = new ChangesViewFragment();\n\t\tBundle args = new Bundle();\n\t\targs.putInt(HomeViewActivity.ARG_SECTION_NUMBER, 2);\n\t\tfragment.setArguments(args);\n\t\treturn fragment;\n\t}", "public static NoteFragment newInstance(String param1, String param2) {\n NoteFragment fragment = new NoteFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public static MainFragment newInstance(Context context) {\n MainFragment fragment = new MainFragment();\n if(context != null)\n fragment.setVariables(context);\n return fragment;\n }", "@Override\n\tprotected Fragment createFragment() {\n\t\treturn new CrimeListFragment();\n\t}", "public static MoneyLogFragment newInstance() {\n MoneyLogFragment fragment = new MoneyLogFragment();\n return fragment;\n }", "public static ForecastFragment newInstance() {\n\n //Create new fragment\n ForecastFragment frag = new ForecastFragment();\n return(frag);\n }", "public static MainFragment newInstance(String param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public static MainFragment newInstance(String param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public static MainFragment newInstance(String param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public static MyTaskFragment newInstance(String param1) {\n MyTaskFragment fragment = new MyTaskFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n fragment.setArguments(args);\n return fragment;\n }", "public static MyProfileFragment newInstance(String param1, String param2) {\n MyProfileFragment fragment = new MyProfileFragment();\n return fragment;\n }", "public static MainFragment newInstance(int param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_PARAM1, param1);\n\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public PlaylistFragment() {\n }", "public static HistoryFragment newInstance() {\n HistoryFragment fragment = new HistoryFragment();\n return fragment;\n }", "public static SurvivorIncidentFormFragment newInstance(String param1, String param2) {\n// SurvivorIncidentFormFragment fragment = new SurvivorIncidentFormFragment();\n// Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n// fragment.setArguments(args);\n// return fragment;\n\n SurvivorIncidentFormFragment fragment = new SurvivorIncidentFormFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n\n\n }", "public static PersonalFragment newInstance(String param1, String param2) {\n PersonalFragment fragment = new PersonalFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }" ]
[ "0.7259329", "0.72331375", "0.71140355", "0.69909847", "0.69902235", "0.6834592", "0.683074", "0.68134046", "0.6801526", "0.6801054", "0.67653185", "0.6739714", "0.6739714", "0.6727412", "0.6717231", "0.6705855", "0.6692112", "0.6691661", "0.66869426", "0.66606814", "0.6646188", "0.66410166", "0.6640725", "0.6634425", "0.66188246", "0.66140765", "0.6608169", "0.66045964", "0.65977716", "0.6592119", "0.659137", "0.65910816", "0.65830594", "0.65786606", "0.6562876", "0.65607685", "0.6557126", "0.65513307", "0.65510213", "0.65431285", "0.6540448", "0.65336084", "0.6532555", "0.6528302", "0.6524409", "0.652328", "0.6523149", "0.6516528", "0.65049976", "0.6497274", "0.6497235", "0.64949715", "0.64944136", "0.6484968", "0.6484214", "0.64805835", "0.64784926", "0.64755154", "0.64710265", "0.6466466", "0.6457089", "0.645606", "0.6454554", "0.6452161", "0.64520335", "0.6450325", "0.64488834", "0.6446765", "0.64430225", "0.64430225", "0.64430225", "0.64420956", "0.6441306", "0.64411277", "0.6438451", "0.64345145", "0.64289486", "0.64287597", "0.6423755", "0.64193285", "0.6418699", "0.6414679", "0.6412867", "0.6402168", "0.6400724", "0.6395624", "0.6395109", "0.6391252", "0.63891554", "0.63835025", "0.63788056", "0.63751805", "0.63751805", "0.63751805", "0.6374796", "0.63653135", "0.6364529", "0.6360922", "0.63538784", "0.6351111", "0.635067" ]
0.0
-1
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { super.onCreate(savedInstanceState); Log.i("FaceRecFragment", "onCreateView"); View view= inflater.inflate(R.layout.fragment_face_rec, container, false); visCameraView = view.findViewById(R.id.camera_view); returnButton = findViewByIdAndSetListener(R.id.return_button,view); livenessModeSpinner = findViewByIdAndSetListener(R.id.liveness_mode_spinner,view); livenessDetectModeArrayAdapter = new ArrayAdapter<LivenessDetectMode>(this.getActivity(), android.R.layout.simple_list_item_1, DemoUtils.getSupportLivenessModes(XsFaceSDKCameraHelper.getNirCamera() != null)); livenessModeSpinner.setAdapter(livenessDetectModeArrayAdapter); meteringCheckbox = findViewByIdAndSetListener(R.id.metering_checkbox,view); reRecCheckbox = findViewByIdAndSetListener(R.id.rerec_checkbox,view); repeatCloseOpenCamera=findViewByIdAndSetListener(R.id.repeat_checkbox,view); return view; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.wallpager_layout, null);\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_invit_friends, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_zhuye, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_posts, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.ilustration_fragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_sow_drug_cost_per_week, container, false);\n\n db = new DataBaseAdapter(getActivity());\n hc = new HelperClass();\n pop = new FeedSowsFragment();\n\n infltr = (LayoutInflater) getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n parent = (LinearLayout) v.findViewById(R.id.layout_for_add);\n tvTotalCost = (TextView) v.findViewById(R.id.totalCost);\n\n getData();\n setData();\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_stream_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_event, container, false);\n\n\n\n\n\n\n\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_feed, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.screen_select_list_student, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_overall, container, false);\n mNamesLayout = (LinearLayout) rootView.findViewById(R.id.fragment_overall_names_layout);\n mOverallView = (OverallView) rootView.findViewById(R.id.fragment_overall_view);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n\n\n view = inflater.inflate(R.layout.fragment_earning_fragmant, container, false);\n ini(view);\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n super.onCreateView(inflater, container, savedInstanceState);\n final View rootview = inflater.inflate(R.layout.activity_email_frag, container, false);\n ConfigInnerElements(rootview);\n return rootview;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\trootView = inflater.inflate(R.layout.fragment_attack_armor, container, false);\r\n\r\n\t\tfindInterfaceElements();\r\n\t\taddRangeSelector();\r\n\t\tupdateHeadings();\r\n\t\tsetListeners();\r\n\r\n\t\tsetFromData();\r\n\r\n\t\treturn rootView;\r\n\t}", "@SuppressLint(\"InflateParams\")\r\n\t@Override\r\n\tpublic View initLayout(LayoutInflater inflater) {\n\t\tView view = inflater.inflate(R.layout.frag_customer_all, null);\r\n\t\treturn view;\r\n\t}", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_fore_cast, container, false);\r\n initView();\r\n mainLayout.setVisibility(View.GONE);\r\n apiInterface = RestClinet.getClient().create(ApiInterface.class);\r\n loadData();\r\n return view;\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_friend, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_detail, container, false);\n image = rootView.findViewById(R.id.fr_image);\n name = rootView.findViewById(R.id.fr_name);\n phoneNumber = rootView.findViewById(R.id.fr_phone_number);\n email = rootView.findViewById(R.id.fr_email);\n street = rootView.findViewById(R.id.fr_street);\n city = rootView.findViewById(R.id.fr_city);\n state = rootView.findViewById(R.id.fr_state);\n zipcode = rootView.findViewById(R.id.fr_zipcode);\n dBrith = rootView.findViewById(R.id.date_brith);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_pm25, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_kkbox_playlist, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_feed_pager, container, false);\n\n// loadData();\n\n findViews(rootView);\n\n setViews();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n layout = (FrameLayout) inflater.inflate(R.layout.fragment_actualites, container, false);\n\n relLayout = (RelativeLayout) layout.findViewById(R.id.relLayoutActus);\n\n initListView();\n getXMLData();\n\n return layout;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.frag_post_prayer_video, container, false);\n setCustomDesign();\n setCustomClickListeners();\n return rootView;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.lf_em4305_fragment, container, false);\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_recordings, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_category, container, false);\n initView(view);\n bindRefreshListener();\n loadParams();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_cm_box_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_layout12, container, false);\n\n iniv();\n\n init();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_details, container, false);\n //return inflater.inflate(R.layout.fragment_details, container, false);\n getIntentValues();\n initViews();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_mem_body_blood, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_qiugouxiaoxi, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_coll_blank, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_attendance_divide, container, false);\n\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.show_program_fragment, parent, false);\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container,\n @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.visualization_fragment, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_category_details_page, container, false);\n initializeAll();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View v = inflater.inflate(R.layout.fragemnt_reserve, container, false);\n\n\n\n\n return v;\n }", "protected int getLayoutResId() {\n return R.layout.activity_fragment;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_quizs, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n role = getArguments().getInt(\"role\");\n rootview = inflater.inflate(R.layout.fragment_application, container, false);\n layout = rootview.findViewById(R.id.patentDetails);\n progressBar = rootview.findViewById(R.id.progressBar);\n try {\n run();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return rootview;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tview = inflater.inflate(R.layout.fragment_zhu, null);\n\t\tinitView();\n\t\tinitData();\n\t\treturn view;\n\t}", "@Override\n\t\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n\t\t{\n\t\t\tView rootView = inflater.inflate(R.layout.maimfragment, container, false);\n\t\t\treturn rootView;\n\t\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n return inflater.inflate(R.layout.fragment__record__week, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_porishongkhan, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_dashboard, container, false);\n resultsRv = view.findViewById(R.id.db_results_rv);\n resultText = view.findViewById(R.id.db_search_empty);\n progressBar = view.findViewById(R.id.db_progressbar);\n lastVisitText = view.findViewById(R.id.db_last_visit);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(getLayoutId(), container, false);\n init(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_feedback, container, false);\n self = getActivity();\n initUI(view);\n initControlUI();\n initData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_service_summery, container, false);\n tvVoiceMS = v.findViewById(R.id.tvVoiceValue);\n tvDataMS = v.findViewById(R.id.tvdataValue);\n tvSMSMS = v.findViewById(R.id.tvSMSValue);\n tvVoiceFL = v.findViewById(R.id.tvVoiceFLValue);\n tvDataBS = v.findViewById(R.id.tvDataBRValue);\n tvTotal = v.findViewById(R.id.tvTotalAccountvalue);\n return v;\n }", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_clan_rank_details, container, false);\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_star_wars_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_lei, container, false);\n\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_quotation, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_wode_ragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n\n\n\n\n\n return inflater.inflate(R.layout.fragment_appoint_list, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n if (rootView == null) {\n rootView = inflater.inflate(R.layout.fragment_ip_info, container, false);\n initView();\n }\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_offer, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_rooms, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.fragment_img_eva, container, false);\n\n getSendData();\n\n initView(view);\n\n initData();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_project_collection, container, false);\n ButterKnife.bind(this, view);\n fragment = this;\n initView();\n getCollectionType();\n // getCategoryList();\n initBroadcastReceiver();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_yzm, container, false);\n initView(view);\n return view;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tmainLayout = inflater.inflate(R.layout.fragment_play, container, false);\r\n\t\treturn mainLayout;\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_invite_request, container, false);\n initialiseVariables();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n getLocationPermission();\n return inflater.inflate(R.layout.centrum_fragment, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_habit_type_details, container, false);\n\n habitTitle = rootView.findViewById(R.id.textViewTitle);\n habitReason = rootView.findViewById(R.id.textViewReason);\n habitStartDate = rootView.findViewById(R.id.textViewStartDate);\n habitWeeklyPlan = rootView.findViewById(R.id.textViewWeeklyPlan);\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_information_friends4, container, false);\n\n if (getArguments() != null) {\n FriendsID = getArguments().getString(\"keyFriends\");\n }\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_post_details, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hotel, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_bus_inquiry, container, false);\n initView();\n initData();\n initDialog();\n getDataFromNet();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_weather, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_srgl, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_ground_detail_frgment, container, false);\n init();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_book_appointment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_wheretogo, container, false);\n ids();\n setup();\n click();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n binding = DataBindingUtil\n .inflate(inflater, R.layout.fragment_learning_leaders, container, false);\n init();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_end_game_tab, container, false);\n\n setupWidgets();\n setupTextFields(view);\n setupSpinners(view);\n\n // Inflate the layout for this fragment\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.memoir_fragment, container, false);\n\n getUserIdFromSharedPref();\n configureUI(view);\n configureSortSpinner();\n configureFilterSpinner();\n\n networkConnection = new NetworkConnection();\n new GetAllMemoirTask().execute();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_jadwal, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_delivery_detail, container, false);\n initialise();\n\n\n\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_4, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_product, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_group_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment06_7, container, false);\n initView(view);\n setLegend();\n setXAxis();\n setYAxis();\n setData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_downloadables, container, false);\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.movie_list_fragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_like, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hall, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_unit_main, container, false);\n TextView mTxvBusinessAassistant = (TextView) view.findViewById(R.id.txv_business_assistant);\n TextView mTxvCardINformation = (TextView) view.findViewById(R.id.txv_card_information);\n RelativeLayout mRelOfficialWebsite = (RelativeLayout) view.findViewById(R.id.rel_official_website);\n RelativeLayout mRelPictureAblum = (RelativeLayout) view.findViewById(R.id.rel_picture_album);\n TextView mTxvQrCodeCard = (TextView) view.findViewById(R.id.txv_qr_code_card);\n TextView mTxvShareCard = (TextView) view.findViewById(R.id.txv_share_card);\n mTxvBusinessAassistant.setOnClickListener(this.mOnClickListener);\n mTxvCardINformation.setOnClickListener(this.mOnClickListener);\n mRelOfficialWebsite.setOnClickListener(this.mOnClickListener);\n mRelPictureAblum.setOnClickListener(this.mOnClickListener);\n mTxvQrCodeCard.setOnClickListener(this.mOnClickListener);\n mTxvShareCard.setOnClickListener(this.mOnClickListener);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_moviespage, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_s, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_overview, container, false);\n\n initOverviewComponents(view);\n registerListeners();\n initTagListener();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_bahan_ajar, container, false);\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n root = (ViewGroup) inflater.inflate(R.layout.money_main, container, false);\n context = getActivity();\n initHeaderView(root);\n initView(root);\n\n getDate();\n initEvetn();\n return root;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_historical_event, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_event_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_video, container, false);\n unbinder = ButterKnife.bind(this, view);\n initView();\n initData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n v= inflater.inflate(R.layout.fragment_post_contacts, container, false);\n this.mapping(v);\n return v;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_measures, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_feed, container, false);\n findViews(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_surah_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_data_binded, container, false);\n }" ]
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.6625158", "0.66195583", "0.66164845", "0.6608733", "0.6596594", "0.65928894", "0.6585293", "0.65842897", "0.65730995", "0.6571248", "0.6569152", "0.65689117", "0.656853", "0.6566686", "0.65652984", "0.6553419", "0.65525705", "0.65432084", "0.6542382", "0.65411425", "0.6538022", "0.65366334", "0.65355957", "0.6535043", "0.65329415", "0.65311074", "0.65310687", "0.6528645", "0.65277404", "0.6525902", "0.6524516", "0.6524048", "0.65232015", "0.65224624", "0.65185034", "0.65130377", "0.6512968", "0.65122765", "0.65116245", "0.65106046", "0.65103024", "0.6509013", "0.65088093", "0.6508651", "0.6508225", "0.6504662", "0.650149", "0.65011525", "0.6500686", "0.64974767", "0.64935696", "0.6492234", "0.6490034", "0.6487609", "0.6487216", "0.64872116", "0.6486594", "0.64861935", "0.6486018", "0.6484269", "0.648366", "0.6481476", "0.6481086", "0.6480985", "0.6480396", "0.64797544", "0.647696", "0.64758915", "0.6475649", "0.6474114", "0.6474004", "0.6470706", "0.6470275", "0.64702207", "0.6470039", "0.6467449", "0.646602", "0.6462256", "0.64617974", "0.6461681", "0.6461214" ]
0.0
-1
TODO: Rename method, update argument and hook method into UI event
public void onButtonPressed(Uri uri) { if (mListener != null) { mListener.onFragmentInteraction(uri); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\n\t\t\t\t}", "@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t}", "public abstract void update(UIReader event);", "@Override\r\n\t\t\tpublic void handle(ActionEvent arg0) {\n\t\t\t}", "@Override\n\tpublic void handle(ActionEvent event) {\n\t\t\n\t}", "@Override\n\tpublic void handle(ActionEvent event) {\n\n\t}", "@Override\n\tpublic void handleUpdateUI(String text, int code) {\n\t\t\n\t}", "@Override\n\tpublic void update(Event e) {\n\t}", "public abstract void onInvoked(CommandSender sender, String[] args);", "@Override\r\n public void updateUI() {\r\n }", "@Override\r\n\tpublic void handle(ActionEvent arg0) {\n\t\t\r\n\t}", "@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}", "@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}", "@Override\n\tpublic void processEvent(Event e) {\n\n\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\t \n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\t \n\t\t\t}", "@Override\n\tpublic void processCommand(JMVCommandEvent arg0) {\n\t}", "@Override\n\tpublic void inputChanged( Viewer arg0, Object arg1, Object arg2 ) {\n\t}", "@Override\n\tpublic void handleEvent(Event arg0) {\n\t\t\n\t}", "@Override\r\n\tpublic void onCustomUpdate() {\n\t\t\r\n\t}", "public void updateUI(){}", "private synchronized void updateScreen(String arg){\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n setChanged();\n notifyObservers(arg);\n }\n });\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t\t\t}", "@Override\r\n public void actionPerformed( ActionEvent e )\r\n {\n }", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\r\n\tpublic void updateObjectListener(ActionEvent e) {\n\t\t\r\n\t}", "Event () {\n // Nothing to do here.\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t}", "void onArgumentsChanged();", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}", "void eventChanged();", "@Override\r\n\t\t\tpublic void execute(LiftEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void execute(LiftEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override public void handle(ActionEvent e)\n\t {\n\t }", "@Override\r\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\r\n\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}", "@Override //se repita\r\n public void actionPerformed(ActionEvent ae) {\r\n \r\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t}", "public abstract CommandResponse onCommand(CommandSender sender, String label, String[] args);", "@Override\n public void actionPerformed(ActionEvent actionEvent) {\n }", "@Override\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t}", "@Override\r\n public void actionPerformed(ActionEvent e) {\n \r\n }", "public abstract void onCommand(MessageEvent context) throws Exception;", "@Override\r\n\tpublic void onEvent(Event arg0) {\n\r\n\t}", "private void addParameterEventHandler(){\n\t\t\n\t\tgetParameterNameListBox().addDoubleClickHandler(new DoubleClickHandler() {\n\t\t\t@Override\n\t\t\tpublic void onDoubleClick(DoubleClickEvent event) {\n\t\t\t\tparameterAceEditor.clearAnnotations();\n\t\t\t\tparameterAceEditor.removeAllMarkers();\n\t\t\t\tparameterAceEditor.redisplay();\n\t\t\t\tSystem.out.println(\"In addParameterEventHandler on DoubleClick isPageDirty = \" + getIsPageDirty() + \" selectedIndex = \" + getParameterNameListBox().getSelectedIndex());\n\t\t\t\tsetIsDoubleClick(true);\n\t\t\t\tsetIsNavBarClick(false);\n\t\t\t\tif (getIsPageDirty()) {\n\t\t\t\t\tshowUnsavedChangesWarning();\n\t\t\t\t} else {\n\t\t\t\t\tint selectedIndex = getParameterNameListBox().getSelectedIndex();\n\t\t\t\t\tif (selectedIndex != -1) {\n\t\t\t\t\t\tfinal String selectedParamID = getParameterNameListBox().getValue(selectedIndex);\n\t\t\t\t\t\tcurrentSelectedParamerterObjId = selectedParamID;\n\t\t\t\t\t\tif(getParameterMap().get(selectedParamID) != null){\n\t\t\t\t\t\t\tgetParameterNameTxtArea().setText(getParameterMap().get(selectedParamID).getParameterName());\n\t\t\t\t\t\t\tgetParameterAceEditor().setText(getParameterMap().get(selectedParamID).getParameterLogic());\n\t\t\t\t\t\t\tSystem.out.println(\"In Parameter DoubleClickHandler, doing setText()\");\n\t\t\t\t\t\t\t//disable parameterName and Logic fields for Default Parameter\n\t\t\t\t\t\t\tboolean isReadOnly = getParameterMap().get(selectedParamID).isReadOnly();\n\t\t\t\t\t\t\tgetParameterButtonBar().getDeleteButton().setTitle(\"Delete\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(MatContext.get().getMeasureLockService()\n\t\t\t\t\t\t\t\t\t.checkForEditPermission()){\n\t\t\t\t\t\t\t\tsetParameterWidgetReadOnly(!isReadOnly);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// load most recent used cql artifacts\n\t\t\t\t\t\t\tMatContext.get().getMeasureService().getUsedCQLArtifacts(MatContext.get().getCurrentMeasureId(), new AsyncCallback<GetUsedCQLArtifactsResult>() {\n\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\t\t\t\t\tWindow.alert(MatContext.get().getMessageDelegate().getGenericErrorMessage());\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void onSuccess(GetUsedCQLArtifactsResult result) {\n\t\t\t\t\t\t\t\t\tif(result.getUsedCQLParameters().contains(getParameterMap().get(selectedParamID).getParameterName())) {\n\t\t\t\t\t\t\t\t\t\tgetParameterButtonBar().getDeleteButton().setEnabled(false);\n\t\t\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\t\t\t\t\t} \n\t\t\t\t\t\n\t\t\t\t\tsuccessMessageAlert.clearAlert();\n\t\t\t\t\terrorMessageAlert.clearAlert();\n\t\t\t\t\twarningMessageAlert.clearAlert();\n\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t}", "@Override\n\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n public void handle(Event event) {\n }", "@Override\n public void actionPerformed(AnActionEvent e) {\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n \n }", "@Override\n public void actionPerformed(ActionEvent e) {\n \n }", "@Override\n public void actionPerformed(ActionEvent e) {\n \n }", "@Override\n public void actionPerformed(ActionEvent e) {\n \n }", "@Override\r\n\tpublic void handleEvent(Event event) {\n\r\n\t}", "public void ImageView(ActionEvent event) {\n\t}", "@Override\n public void updateUi() {\n\n }", "@Override\n public void updateUi() {\n\n }", "@Override\n public void updateUi() {\n\n }", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "public void runInUi(ElexisEvent ev){}", "@Override\n public void delta() {\n \n }", "@Override\n\tpublic void onClick(ClickEvent arg0) {\n\t\t\n\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n }", "@Override\n\tprotected void OnClick() {\n\t\t\n\t}", "@Override\n public void actionPerformed(ActionEvent ev) {\n }", "@Override\n public void actionPerformed(ActionEvent e)\n {\n \n }", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n\n }", "@Override\n public void update(Observable o, Object arg)\n {\n \n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tupdate();\n\t\t\t}", "@Override\r\n public void processEvent(IAEvent e) {\n\r\n }" ]
[ "0.66202044", "0.65255916", "0.64743257", "0.64743257", "0.6436195", "0.6325417", "0.6237402", "0.61902404", "0.61594874", "0.61453", "0.61244947", "0.6106878", "0.61008215", "0.6093242", "0.60499597", "0.60499597", "0.6046236", "0.6041878", "0.6041878", "0.60084456", "0.5999695", "0.5985911", "0.5977926", "0.5957932", "0.59385085", "0.5927031", "0.5927031", "0.59231174", "0.591776", "0.59172964", "0.59172964", "0.59172964", "0.59172964", "0.59172964", "0.59102345", "0.5896684", "0.5894415", "0.5893606", "0.58901393", "0.58901393", "0.58901393", "0.5869268", "0.5869268", "0.5869268", "0.58651894", "0.5863583", "0.5863583", "0.5862221", "0.585783", "0.5848571", "0.5848571", "0.5848571", "0.5848571", "0.58394116", "0.5838907", "0.5819952", "0.58088523", "0.5804798", "0.5774366", "0.57736033", "0.5771678", "0.57670915", "0.5764854", "0.57557356", "0.57557356", "0.57553816", "0.5746736", "0.57461053", "0.57461053", "0.57461053", "0.57431304", "0.574202", "0.574018", "0.5736233", "0.5736233", "0.5736233", "0.5734627", "0.5734627", "0.5734627", "0.5734627", "0.5734627", "0.5734627", "0.5734627", "0.57245123", "0.5723948", "0.5722101", "0.57218266", "0.57218266", "0.5720643", "0.57197976", "0.5715483", "0.5712465", "0.5712465", "0.5712465", "0.5712465", "0.5712465", "0.5712465", "0.5709735", "0.57062143", "0.57052696", "0.57036126" ]
0.0
-1
This interface must be implemented by activities that contain this fragment to allow an interaction in this fragment to be communicated to the activity and potentially other fragments contained in that activity. See the Android Training lesson Communicating with Other Fragments for more information.
public interface OnFragmentInteractionListener { // TODO: Update argument type and name void onFragmentInteraction(Uri uri); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface OnFragmentInteractionListener {\n void onFragmentMessage(String TAG, Object data);\n}", "public interface FragmentInteraction {\n void switchToBoardView();\n void switchToPinsView();\n void switchToPins(PDKBoard pdkBoard);\n void switchToDescription(PDKPin pin);\n}", "public interface IFragmentView {\n public Activity getActivity();\n public void onItemClick(int position);\n}", "public interface OnFragmentInteractionListener {\n void onMainFragmentInteraction(String string);\n }", "@Override\n public void onAttach(Context context) {\n super.onAttach(context);\n if (context instanceof RequestFragmentInterface) {\n mInterface = (RequestFragmentInterface) context;\n } else {\n throw new RuntimeException(context.toString()\n + \" must implement OnFragmentInteractionListener\");\n }\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onCallBellPressed(MessageReason reason);\n }", "void onFragmentInteraction();", "void onFragmentInteraction();", "void onFragmentInteraction();", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n\n\n void onFragmentInteraction(String mId, String mProductName, String mItemRate, int minteger, int update);\n }", "public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction();\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onComidaSelected(int comidaId);\n }", "public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(Qualification q);\n }", "public interface OnFragmentInteractionListener {\n void onReceiverAcceptRequest(int nextState, String requestId);\n }", "public interface FragMainLife\n{\n\tpublic void onResumeFragMainLife();\n}", "public interface OnFragmentListener {\n\n void onAction(Intent intent);\n}", "public interface IBaseFragmentActivity {\n void onFragmentExit(BaseFragment fragment);\n\n void onFragmentStartLoading(BaseFragment fragment);\n\n void onFragmentFinishLoad(BaseFragment fragment);\n}", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction(String string);\n }", "void onFragmentInteraction(Object ref);", "public interface OnParametersFragmentInteractionListener {\n public void startTask();\n }", "public interface OnFragmentInteractionListener {\n // Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n void onFragmentInteraction(Parcelable selectedItem);\n }", "public interface FragmentInterface {\r\n void fragmentBecameVisible();\r\n}", "public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(String key);\n }", "public interface OnFragmentInteractionListener {\n void newList();\n\n void searchList();\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void pasarALista();\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n\n /**\n * This interface's single method. The hosting Activity must implement this interface and\n * provide an implementation of this method so that this Fragment can communicate with the\n * Activity.\n *\n * @param spotId\n */\n// void onFragmentInteraction(Uri uri);\n void onFragmentInteraction(int spotId);\n// void onFragmentInteraction(LatLng spotPosition);\n\n }", "public interface MainGameActivityCallBacks {\n public void onMsgFromFragmentToMainGame(String sender, String strValue);\n}", "public interface IFragment {\n void onFragmentRefresh();\n\n void onMenuClick();\n}", "public interface FragmentInterface {\n\n void onCreate();\n\n void initLayout();\n\n void updateLayout();\n\n void sendInitialRequest();\n}", "public interface OnFragmentInteractionListener {\n void onFragmentInteraction(String accessToken, String network);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction(View v);\n }", "public interface OnFragmentInteractionListener {\n void swapFragments(SetupActivity.SetupActivityFragmentType type);\n\n void addServer(String name, String ipAddress, String port);\n }", "public interface OnFragmentInteractionListener {\n\t\tvoid restUp(IGameState gameState);\n\t\tvoid restartGame();\n\t}", "public interface OnFragmentInteractionListener\n {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface PersonalFragmentView extends BaseMvpView {\n\n}", "public interface OnFragmentInteractionListener {\n void onFinishCreatingRequest();\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "void onFragmentInteraction(View v);", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction(ArrayList<Recepie> recepieList);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction(String id);\n }", "void onFragmentInteractionMain();", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void showRestaurantDetail(Map<String, Object> objectMap);\n\n public void showAddRestaurantFragment(String location);\n }", "public interface FragmentNavigator {\n\n void SwitchFragment(Fragment fragment);\n}", "public interface FragmentModellnt {\n void FragmentM(OnFinishListener onFinishListener,String dataId);\n}", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n //void onFragmentInteraction(Uri uri);\n }", "void onFragmentInteraction(String id);", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction(ArrayList naleznosci, String KLUCZ);\n }", "public interface OnFragmentInteractionListener {\r\n // TODO: Update argument type and name\r\n void onEditFragmentInteraction(Student student);\r\n }", "public interface OnFragmentInteractionListener {\n void onStartFragmentStarted();\n\n void onStartFragmentStartTracking();\n\n void onStartFragmentStopTracking();\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n Long onFragmentInteraction();\n }", "public interface OnFragmentInteractionListener {\n void onFragmentInteraction(Uri uri);\n void onFragmentInteraction(String id);\n}", "public interface IBaseFragment extends IBaseView {\n /**\n * 出栈到目标fragment\n * @param targetFragmentClass 目标fragment\n * @param includeTargetFragment 是否包涵目标fragment\n * true 目标fragment也出栈\n * false 出栈到目标fragment,目标fragment不出栈\n */\n void popToFragment(Class<?> targetFragmentClass, boolean includeTargetFragment);\n\n /**\n * 跳转到新的fragment\n * @param supportFragment 新的fragment继承SupportFragment\n */\n void startNewFragment(@NonNull SupportFragment supportFragment);\n\n /**\n * 跳转到新的fragment并出栈当前fragment\n * @param supportFragment\n */\n void startNewFragmentWithPop(@NonNull SupportFragment supportFragment);\n\n /**\n * 跳转到新的fragment并返回结果\n * @param supportFragment\n * @param requestCode\n */\n void startNewFragmentForResult(@NonNull SupportFragment supportFragment,int requestCode);\n\n /**\n * 设置fragment返回的result\n * @param requestCode\n * @param bundle\n */\n void setOnFragmentResult(int requestCode, Bundle bundle);\n\n /**\n * 跳转到新的Activity\n * @param clz\n */\n void startNewActivity(@NonNull Class<?> clz);\n\n /**\n * 携带数据跳转到新的Activity\n * @param clz\n * @param bundle\n */\n void startNewActivity(@NonNull Class<?> clz,Bundle bundle);\n\n /**\n * 携带数据跳转到新的Activity并返回结果\n * @param clz\n * @param bundle\n * @param requestCode\n */\n void startNewActivityForResult(@NonNull Class<?> clz,Bundle bundle,int requestCode);\n\n /**\n * 当前Fragment是否可见\n * @return true 可见,false 不可见\n */\n boolean isVisiable();\n\n /**\n * 获取当前fragment绑定的activity\n * @return\n */\n Activity getBindActivity();\n\n}", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onSocialLoginInteraction();\n }", "public interface OnFragmentInteractionListener {\n /**\n * On fragment interaction.\n *\n * @param uri the uri\n */\n// TODO: Update argument type and name\n public void onFragmentInteraction(Uri uri);\n }", "public interface OnFragmentListener {\n void onClick(Fragment fragment);\n}", "public interface OnFragmentInteractionListener {\n void playGame(Uri location);\n }", "public interface LoginFragmentListener {\n public void OnRegisterClicked();\n public void OnLoginClicked(String User, String Pass);\n}", "public interface MoveFragment {\n\n\n public void moveFragment(Fragment selectedFragment);\n\n}", "public interface ChangeFragmentListener {\n void changeFragment();\n}", "public interface FragmentInterface {\n public void fragmentResult(Fragment fragment, String title);\n}", "public interface OnProductItemFragmentInteraction{\r\n public void itemSelected(Producto product);\r\n }", "@Override\n public void onAttach(Context context) {\n super.onAttach(context);\n //this registers this fragment to recieve any EventBus\n EventBus.getDefault().register(this);\n }", "void onFragmentInteraction(int position);", "public interface AddFarmFragmentView extends BaseView {\n\n\n}", "void OpenFragmentInteraction();", "public interface OnFragmentInteractionListener {\n\t\t// TODO: Update argument type and name\n\t\tpublic void onFragmentInteraction(Uri uri);\n\t}", "public interface FragmentDataObserver {\n void getDataFromActivity(String data);\n\n}", "public interface OnFragInteractionListener {\n\n // replace top fragment with this fragment\n interface OnMainFragInteractionListener {\n void onWifiFragReplace();\n void onHistoryFragReplace();\n void onHistoryWithOsmMapFragReplace();\n void onMainFragReplace();\n }\n\n // interface for WifiPresenterFragment\n interface OnWifiScanFragInteractionListener {\n void onGetDataAfterScanWifi(ArrayList<WifiLocationModel> list);\n void onAllowToSaveWifiHotspotToDb(String ssid, String pass, String encryption, String bssid);\n }\n\n // interface for HistoryPresenterFragment\n interface OnHistoryFragInteractionListener {\n // get wifi info\n void onGetWifiHistoryCursor(Cursor cursor);\n // get mobile network generation\n void onGetMobileHistoryCursor(Cursor cursor);\n // get wifi state and date\n void onGetWifiStateAndDateCursor(Cursor cursor);\n }\n\n interface OnMapFragInteractionListerer {\n void onGetWifiLocationCursor(Cursor cursor);\n }\n}", "public interface PesonageFragmentView extends MvpView {\n\n}", "public interface OnUsersFragmentInteractionListener {\n void onListFragmentInteraction(User item);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onClickNextTurn();\n }", "public interface MainScreeInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteractionMain();\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction();\n\n void changeBottomNavSelection(int menuItem);\n }", "public interface OnFragmentInteractionListener {\n void onFragmentInteraction(Uri uri);\n}", "public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(Uri uri);\n }", "public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(Uri uri);\n }", "public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(Uri uri);\n }", "public interface OnFragmentInteractionListener {\n void onSignoutClicked();\n\n void onExtraScopeRequested();\n }", "interface OnMainFragInteractionListener {\n void onWifiFragReplace();\n void onHistoryFragReplace();\n void onHistoryWithOsmMapFragReplace();\n void onMainFragReplace();\n }", "public interface OnListFragmentInteractionListener {\n void onListFragmentInteraction(Note note);\n}" ]
[ "0.7325317", "0.7209285", "0.7136769", "0.7125", "0.71222794", "0.7015571", "0.6976405", "0.6976405", "0.6976405", "0.69750535", "0.69684756", "0.696636", "0.69612736", "0.6954515", "0.694358", "0.6934953", "0.69307446", "0.6928857", "0.69236445", "0.69108784", "0.69035834", "0.6897696", "0.6894794", "0.6883755", "0.6881693", "0.68762213", "0.6864976", "0.6861802", "0.6860837", "0.68601984", "0.685738", "0.6844361", "0.68402916", "0.6830564", "0.6818788", "0.68176484", "0.6810633", "0.67869633", "0.6770152", "0.6770152", "0.6770152", "0.6770152", "0.6770152", "0.6770152", "0.6770152", "0.6770152", "0.6770152", "0.6769278", "0.6766519", "0.67622006", "0.6755259", "0.6754422", "0.67000836", "0.6682742", "0.6674323", "0.667107", "0.66703165", "0.66625565", "0.666218", "0.6655887", "0.66529083", "0.6645084", "0.6644105", "0.6644105", "0.6644105", "0.6644105", "0.6644105", "0.6644105", "0.6644105", "0.6644105", "0.6644105", "0.6644105", "0.6644105", "0.6638883", "0.6636765", "0.6632825", "0.6626393", "0.6626087", "0.6619544", "0.66110307", "0.6610578", "0.66097426", "0.66045195", "0.659754", "0.6597511", "0.6587135", "0.6572878", "0.6570346", "0.65613157", "0.65607333", "0.6555527", "0.65499026", "0.65496886", "0.6543482", "0.6539677", "0.6534717", "0.6534717", "0.6534717", "0.65200627", "0.6517923", "0.6517733" ]
0.0
-1
TODO: Update argument type and name
void onFragmentInteraction(Uri uri);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public String getFirstArg() {\n return name;\r\n }", "@Override\n public int getNumberArguments() {\n return 1;\n }", "java.lang.String getArg();", "@Override\n public int getArgLength() {\n return 4;\n }", "Argument createArgument();", "@Override\r\n\tpublic String getFirstArg() {\n\t\treturn null;\r\n\t}", "@Override\n protected PacketArgs.ArgumentType[] getArgumentTypes() {\n return new PacketArgs.ArgumentType[] { PacketArgs.ArgumentType.String };\n }", "@Override\n\tpublic void traverseArg(UniArg node) {\n\t}", "@Override\n\t\t\t\t\tpublic Parameter handleParameter(Method parent,\n\t\t\t\t\t\t\tEParamType direction, FArgument src) {\n\t\t\t\t\t\treturn super.handleParameter(parent, direction, src);\n\t\t\t\t\t}", "Object[] getArguments();", "Object[] getArguments();", "String getArguments();", "@Override\n\tpublic void handleArgument(ArrayList<String> argument) {\n\t\t\n\t}", "@Override\n public final int parseArguments(Parameters params) {\n return 1;\n }", "ArgList createArgList();", "public Object[] getArguments() { return args;}", "@Override\n public String getInputArg(String argName) {\n Log.w(TAG, \"Test input args is not supported.\");\n return null;\n }", "@Override\n protected String getName() {return _parms.name;}", "private static AbstractType<?>[] argumentsType(@Nullable StringType algorithmArgumentType)\n {\n return algorithmArgumentType == null\n ? DEFAULT_ARGUMENTS\n : new AbstractType<?>[]{ algorithmArgumentType };\n }", "uicargs createuicargs();", "java.util.List<com.mwr.jdiesel.api.Protobuf.Message.Argument> \n getArgumentList();", "java.util.List<com.mwr.jdiesel.api.Protobuf.Message.Argument> \n getArgumentList();", "public static void main(String[] args) {\n\t\t\tmeth(args);\r\n\t\t\targument_test:meth(args);\r\n\t}", "@Override\r\n\tpublic int getSecondArg() {\n\t\treturn 0;\r\n\t}", "public getType_args(getType_args other) {\n }", "Object[] args();", "protected void validateArguments( Object[] args ) throws ActionExecutionException {\n\n Annotation[][] annotations = method.getParameterAnnotations();\n for (int i = 0; i < annotations.length; i++) {\n\n Annotation[] paramAnnotations = annotations[i];\n\n for (Annotation paramAnnotation : paramAnnotations) {\n if (paramAnnotation instanceof Parameter) {\n Parameter paramDescriptionAnnotation = (Parameter) paramAnnotation;\n ValidationType validationType = paramDescriptionAnnotation.validation();\n\n String[] validationArgs;\n\n // if we are checking for valid constants, then the\n // args array should contain\n // the name of the array holding the valid constants\n if (validationType == ValidationType.STRING_CONSTANT\n || validationType == ValidationType.NUMBER_CONSTANT) {\n try {\n String arrayName = paramDescriptionAnnotation.args()[0];\n\n // get the field and set access level if\n // necessary\n Field arrayField = method.getDeclaringClass().getDeclaredField(arrayName);\n if (!arrayField.isAccessible()) {\n arrayField.setAccessible(true);\n }\n Object arrayValidConstants = arrayField.get(null);\n\n // convert the object array to string array\n String[] arrayValidConstatnsStr = new String[Array.getLength(arrayValidConstants)];\n for (int j = 0; j < Array.getLength(arrayValidConstants); j++) {\n arrayValidConstatnsStr[j] = Array.get(arrayValidConstants, j).toString();\n }\n\n validationArgs = arrayValidConstatnsStr;\n\n } catch (IndexOutOfBoundsException iobe) {\n // this is a fatal error\n throw new ActionExecutionException(\"You need to specify the name of the array with valid constants in the 'args' field of the Parameter annotation\");\n } catch (Exception e) {\n // this is a fatal error\n throw new ActionExecutionException(\"Could not get array with valid constants - action annotations are incorrect\");\n }\n } else {\n validationArgs = paramDescriptionAnnotation.args();\n }\n\n List<BaseType> typeValidators = createBaseTypes(paramDescriptionAnnotation.validation(),\n paramDescriptionAnnotation.name(),\n args[i], validationArgs);\n //perform validation\n for (BaseType baseType : typeValidators) {\n if (baseType != null) {\n try {\n baseType.validate();\n } catch (TypeException e) {\n throw new InvalidInputArgumentsException(\"Validation failed while validating argument \"\n + paramDescriptionAnnotation.name()\n + e.getMessage());\n }\n } else {\n log.warn(\"Could not perform validation on argument \"\n + paramDescriptionAnnotation.name());\n }\n }\n }\n }\n }\n }", "@Test\n void getArgString() {\n }", "@Override\n\t\t\t\t\tpublic Parameter handleParameter(Method parent,\n\t\t\t\t\t\t\tEParamType direction, FEnumerator src) {\n\t\t\t\t\t\treturn super.handleParameter(parent, direction, src);\n\t\t\t\t\t}", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "int getArgIndex();", "@Override\n\tpublic void addArg(FormulaElement arg){\n\t}", "public Type[] getArgumentTypes() {\n/* 236 */ return Type.getArgumentTypes(this.desc);\n/* */ }", "@Override\n public Object[] getArguments() {\n return null;\n }", "public login_1_argument() {\n }", "Optional<String[]> arguments();", "private Main(String... arguments) {\n this.operations = new ArrayDeque<>(List.of(arguments));\n }", "@Override\n\tprotected GATKArgumentCollection getArgumentCollection() {\n\t\treturn argCollection;\n\t}", "protected void sequence_Argument(ISerializationContext context, Argument semanticObject) {\n\t\tif (errorAcceptor != null) {\n\t\t\tif (transientValues.isValueTransient(semanticObject, TdlPackage.Literals.ARGUMENT__NAME) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, TdlPackage.Literals.ARGUMENT__NAME));\n\t\t}\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\n\t\tfeeder.accept(grammarAccess.getArgumentAccess().getNameSTRINGTerminalRuleCall_0_0(), semanticObject.getName());\n\t\tfeeder.finish();\n\t}", "void setArguments(String arguments);", "@Override\n\tpublic List<String> getArgumentDesc() {\n\t\treturn desc;\n\t}", "OpFunctionArgAgregate createOpFunctionArgAgregate();", "protected abstract Feature<T,?> convertArgument(Class<?> parameterType, Feature<T,?> originalArgument);", "void visitArgument(Argument argument);", "public Thaw_args(Thaw_args other) {\r\n }", "@Override\r\n\tpublic List<String> getArguments()\r\n\t{\n\t\treturn null;\r\n\t}", "private static String getArgumentString(Object arg) {\n if (arg instanceof String) {\n return \"\\\\\\\"\"+arg+\"\\\\\\\"\";\n }\n else return arg.toString();\n }", "public interface Param {\n\n int[] args();\n String exec(ExecutePack pack);\n String label();\n}", "@Override\n public void verifyArgs(ArrayList<String> args) throws ArgumentFormatException {\n super.checkNumArgs(args);\n _args = true;\n }", "public abstract ValidationResults validArguments(String[] arguments);", "public ArgumentException() {\n super(\"Wrong arguments passed to function\");\n }", "public String getArgumentString() {\n\t\treturn null;\n\t}", "@Override\n public String kind() {\n return \"@param\";\n }", "@Override\n\t\t\t\t\tpublic Parameter handleParameter(Method parent,\n\t\t\t\t\t\t\tEParamType direction, FEnumerationType src) {\n\t\t\t\t\t\treturn super.handleParameter(parent, direction, src);\n\t\t\t\t\t}", "public void addArgumentTypeSerialization(String functionName, String argumentName, TensorType type) {\n wrappedSerializationContext.addArgumentTypeSerialization(functionName, argumentName, type);\n }", "void setArgument(int idx,int v) \t\t{ setArgument(idx,Integer.valueOf(v)); }", "@Override\n\tprotected byte[] getArgByte() {\n\t\treturn paramsJson.getBytes();\n\t}", "void onArgumentsChanged();", "com.google.protobuf.ByteString\n\t\tgetArgBytes();", "@Override public int getNumArguments()\t\t\t{ return arg_list.size(); }", "MyArg(int value){\n this.value = value;\n }", "public ArgList(Object arg1) {\n super(1);\n addElement(arg1);\n }", "public Clear_args(Clear_args other) {\r\n }", "private ParameterInformation processArgumentReference(Argument argument,\n List<NameDescriptionType> argTypeSet,\n SequenceEntryType seqEntry,\n int seqIndex)\n {\n ParameterInformation argumentInfo = null;\n\n // Initialize the argument's attributes\n String argName = argument.getName();\n String dataType = null;\n String arraySize = null;\n String bitLength = null;\n BigInteger argBitSize = null;\n String enumeration = null;\n String description = null;\n UnitSet unitSet = null;\n String units = null;\n String minimum = null;\n String maximum = null;\n\n // Step through each command argument type\n for (NameDescriptionType argType : argTypeSet)\n {\n // Check if this is the same command argument referenced in the argument list (by\n // matching the command and argument names between the two)\n if (argument.getArgumentTypeRef().equals(argType.getName()))\n {\n boolean isInteger = false;\n boolean isUnsigned = false;\n boolean isFloat = false;\n boolean isString = false;\n\n // Check if this is an array parameter\n if (seqEntry instanceof ArrayParameterRefEntryType)\n {\n arraySize = \"\";\n\n // Store the reference to the array parameter type\n ArrayDataTypeType arrayType = (ArrayDataTypeType) argType;\n argType = null;\n\n // Step through each dimension for the array variable\n for (Dimension dim : ((ArrayParameterRefEntryType) seqEntry).getDimensionList().getDimension())\n {\n // Check if the fixed value exists\n if (dim.getEndingIndex().getFixedValue() != null)\n {\n // Build the array size string\n arraySize += String.valueOf(Integer.valueOf(dim.getEndingIndex().getFixedValue()) + 1)\n + \",\";\n }\n }\n\n arraySize = CcddUtilities.removeTrailer(arraySize, \",\");\n\n // The array parameter type references a non-array parameter type that\n // describes the individual array members. Step through each data type in the\n // parameter type set in order to locate this data type entry\n for (NameDescriptionType type : argTypeSet)\n {\n // Check if the array parameter's array type reference matches the data\n // type name\n if (arrayType.getArrayTypeRef().equals(type.getName()))\n {\n // Store the reference to the array parameter's data type and stop\n // searching\n argType = type;\n break;\n }\n }\n }\n\n // Check if a data type entry for the parameter exists in the parameter type set\n // (note that if the parameter is an array the steps above locate the data type\n // entry for the individual array members)\n if (argType != null)\n {\n long dataTypeBitSize = 0;\n\n // Check if the argument is an integer data type\n if (argType instanceof IntegerArgumentType)\n {\n IntegerArgumentType icmd = (IntegerArgumentType) argType;\n\n // Get the number of bits occupied by the argument\n argBitSize = icmd.getSizeInBits();\n\n // Get the argument units reference\n unitSet = icmd.getUnitSet();\n\n // Check if integer encoding is set to 'unsigned'\n if (icmd.getIntegerDataEncoding().getEncoding().equalsIgnoreCase(\"unsigned\"))\n {\n isUnsigned = true;\n }\n\n // Determine the smallest integer size that contains the number of bits\n // occupied by the argument\n dataTypeBitSize = 8;\n\n while (argBitSize.longValue() > dataTypeBitSize)\n {\n dataTypeBitSize *= 2;\n }\n\n // Get the argument alarm\n IntegerArgumentType.ValidRangeSet alarmType = icmd.getValidRangeSet();\n\n // Check if the argument has an alarm\n if (alarmType != null)\n {\n // Get the alarm range\n List<IntegerRangeType> alarmRange = alarmType.getValidRange();\n\n // Check if the alarm range exists\n if (alarmRange != null)\n {\n // Store the minimum alarm value\n minimum = alarmRange.get(0).getMinInclusive();\n\n // Store the maximum alarm value\n maximum = alarmRange.get(0).getMaxInclusive();\n }\n }\n\n isInteger = true;\n }\n // Check if the argument is a floating point data type\n else if (argType instanceof FloatArgumentType)\n {\n // Get the float argument attributes\n FloatArgumentType fcmd = (FloatArgumentType) argType;\n dataTypeBitSize = fcmd.getSizeInBits().longValue();\n unitSet = fcmd.getUnitSet();\n\n // Get the argument alarm\n FloatArgumentType.ValidRangeSet alarmType = fcmd.getValidRangeSet();\n\n // Check if the argument has an alarm\n if (alarmType != null)\n {\n // Get the alarm range\n List<FloatRangeType> alarmRange = alarmType.getValidRange();\n\n // Check if the alarm range exists\n if (alarmRange != null)\n {\n // Get the minimum value\n Double min = alarmRange.get(0).getMinInclusive();\n\n // Check if a minimum value exists\n if (min != null)\n {\n // Get the minimum alarm value\n minimum = String.valueOf(min);\n }\n\n // Get the maximum value\n Double max = alarmRange.get(0).getMaxInclusive();\n\n // Check if a maximum value exists\n if (max != null)\n {\n // Get the maximum alarm value\n maximum = String.valueOf(max);\n }\n }\n }\n\n isFloat = true;\n }\n // Check if the argument is a string data type\n else if (argType instanceof StringDataType)\n {\n // Get the string argument attributes\n StringDataType scmd = (StringDataType) argType;\n dataTypeBitSize = Integer.valueOf(scmd.getStringDataEncoding()\n .getSizeInBits()\n .getFixed()\n .getFixedValue());\n unitSet = scmd.getUnitSet();\n isString = true;\n }\n // Check if the argument is an enumerated data type\n else if (argType instanceof EnumeratedDataType)\n {\n EnumeratedDataType ecmd = (EnumeratedDataType) argType;\n EnumerationList enumList = ecmd.getEnumerationList();\n\n // Check if any enumeration parameters are defined\n if (enumList != null)\n {\n // Step through each enumeration parameter\n for (ValueEnumerationType enumType : enumList.getEnumeration())\n {\n // Check if this is the first parameter\n if (enumeration == null)\n {\n // Initialize the enumeration string\n enumeration = \"\";\n }\n // Not the first parameter\n else\n {\n // Add the separator for the enumerations\n enumeration += \", \";\n }\n\n // Begin building this enumeration\n enumeration += enumType.getValue() + \" | \" + enumType.getLabel();\n }\n\n argBitSize = ecmd.getIntegerDataEncoding().getSizeInBits();\n unitSet = ecmd.getUnitSet();\n\n // Check if integer encoding is set to 'unsigned'\n if (ecmd.getIntegerDataEncoding().getEncoding().equalsIgnoreCase(\"unsigned\"))\n {\n isUnsigned = true;\n }\n\n // Determine the smallest integer size that contains the number of bits\n // occupied by the argument\n dataTypeBitSize = 8;\n\n while (argBitSize.longValue() > dataTypeBitSize)\n {\n dataTypeBitSize *= 2;\n }\n\n isInteger = true;\n }\n }\n\n // Get the name of the data type from the data type table that matches the base\n // type and size of the parameter\n dataType = getMatchingDataType(dataTypeBitSize / 8,\n isInteger,\n isUnsigned,\n isFloat,\n isString,\n dataTypeHandler);\n\n // Check if the description exists\n if (argType.getLongDescription() != null)\n {\n // Store the description\n description = argType.getLongDescription();\n }\n\n // Check if the argument bit size exists\n if (argBitSize != null && argBitSize.longValue() != dataTypeBitSize)\n {\n // Store the bit length\n bitLength = argBitSize.toString();\n }\n\n // Check if the units exists\n if (unitSet != null)\n {\n List<UnitType> unitType = unitSet.getUnit();\n\n // Check if the units is set\n if (!unitType.isEmpty())\n {\n // Store the units\n units = unitType.get(0).getContent();\n }\n }\n\n argumentInfo = new ParameterInformation(argName,\n dataType,\n arraySize,\n bitLength,\n enumeration,\n units,\n minimum,\n maximum,\n description,\n 0,\n seqIndex);\n }\n\n break;\n }\n }\n\n return argumentInfo;\n }", "public abstract interface QueryArgs {\n\n /** Return the catalog associated with this object */\n public Catalog getCatalog();\n\n /** Set the value for the ith parameter */\n public void setParamValue(int i, Object value);\n\n /** Set the value for the parameter with the given label */\n public void setParamValue(String label, Object value);\n\n /** Set the min and max values for the parameter with the given label */\n public void setParamValueRange(String label, Object minValue, Object maxValue);\n\n /** Set the int value for the parameter with the given label */\n public void setParamValue(String label, int value);\n\n /** Set the double value for the parameter with the given label */\n public void setParamValue(String label, double value);\n\n /** Set the double value for the parameter with the given label */\n public void setParamValueRange(String label, double minValue, double maxValue);\n\n /** Set the array of parameter values directly. */\n public void setParamValues(Object[] values);\n\n /** Get the value of the ith parameter */\n public Object getParamValue(int i);\n\n /** Get the value of the named parameter\n *\n * @param label the parameter name or id\n * @return the value of the parameter, or null if not specified\n */\n public Object getParamValue(String label);\n\n /**\n * Get the value of the named parameter as an integer.\n *\n * @param label the parameter label\n * @param defaultValue the default value, if the parameter was not specified\n * @return the value of the parameter\n */\n public int getParamValueAsInt(String label, int defaultValue);\n\n /**\n * Get the value of the named parameter as a double.\n *\n * @param label the parameter label\n * @param defaultValue the default value, if the parameter was not specified\n * @return the value of the parameter\n */\n public double getParamValueAsDouble(String label, double defaultValue);\n\n /**\n * Get the value of the named parameter as a String.\n *\n * @param label the parameter label\n * @param defaultValue the default value, if the parameter was not specified\n * @return the value of the parameter\n */\n public String getParamValueAsString(String label, String defaultValue);\n\n\n /**\n * Return the object id being searched for, or null if none was defined.\n */\n public String getId();\n\n /**\n * Set the object id to search for.\n */\n public void setId(String id);\n\n\n /**\n * Return an object describing the query region (center position and\n * radius range), or null if none was defined.\n */\n public CoordinateRadius getRegion();\n\n /**\n * Set the query region (center position and radius range) for\n * the search.\n */\n public void setRegion(CoordinateRadius region);\n\n\n /**\n * Return an array of SearchCondition objects indicating the\n * values or range of values to search for.\n */\n public SearchCondition[] getConditions();\n\n /** Returns the max number of rows to be returned from a table query */\n public int getMaxRows();\n\n /** Set the max number of rows to be returned from a table query */\n public void setMaxRows(int maxRows);\n\n\n /** Returns the query type (an optional string, which may be interpreted by some catalogs) */\n public String getQueryType();\n\n /** Set the query type (an optional string, which may be interpreted by some catalogs) */\n public void setQueryType(String queryType);\n\n /**\n * Returns a copy of this object\n */\n public QueryArgs copy();\n\n /**\n * Optional: If not null, use this object for displaying the progress of the background query\n */\n public StatusLogger getStatusLogger();\n}", "@Override\n public void doExeception(Map<String, Object> args)\n {\n \n }", "@Override\n public void doExeception(Map<String, Object> args)\n {\n \n }", "@Override\n\tprotected Collection<ArgumentTypeDescriptor> getArgumentTypeDescriptors() {\n\t\treturn Arrays.asList(new VCFWriterArgumentTypeDescriptor(engine, System.out, bisulfiteArgumentSources), new SAMReaderArgumentTypeDescriptor(engine),\n\t\t\t\tnew SAMFileWriterArgumentTypeDescriptor(engine, System.out), new OutputStreamArgumentTypeDescriptor(engine, System.out));\n\t}", "@Override\n public int getArgent() {\n return _argent;\n }", "private static @NonNull String resolveInputName(@NonNull Argument<?> argument) {\n String inputName = argument.getAnnotationMetadata().stringValue(Bindable.NAME).orElse(null);\n if (StringUtils.isEmpty(inputName)) {\n inputName = argument.getName();\n }\n return inputName;\n }", "private Object[] getArguments (String className, Object field)\n\t{\n\t\treturn ((field == null) ? new Object[]{className} : \n\t\t\tnew Object[]{className, field});\n\t}", "PermissionSerializer (GetArg arg) throws IOException, ClassNotFoundException {\n\tthis( \n\t create(\n\t\targ.get(\"targetType\", null, Class.class),\n\t\targ.get(\"type\", null, String.class),\n\t\targ.get(\"targetName\", null, String.class),\n\t\targ.get(\"targetActions\", null, String.class) \n\t )\n\t);\n }", "public Type getArgumentDirection() {\n return direction;\n }", "public String argTypes() {\n return \"I\";//NOI18N\n }", "public static void main(String arg[]) {\n\n }", "godot.wire.Wire.Value getArgs(int index);", "@Override\n protected String[] getArguments() {\n String[] args = new String[1];\n args[0] = _game_file_name;\n return args;\n }", "public void setArgs(java.lang.String value) {\n this.args = value;\n }", "private Argument(Builder builder) {\n super(builder);\n }", "@Override\n public void execute(String[] args) {\n\n }", "@Override\n\tprotected final void setFromArgument(CommandContext<ServerCommandSource> context, String name) {\n\t}", "UUID createArgument(ArgumentCreateRequest request);", "@Override\n public void initialise(String[] arguments) {\n\n }", "public static ParameterExpression parameter(Class type, String name) { throw Extensions.todo(); }", "protected abstract void parseArgs() throws IOException;" ]
[ "0.7164074", "0.6946075", "0.6714363", "0.65115863", "0.63969076", "0.6375468", "0.63481104", "0.63162106", "0.6260299", "0.6208487", "0.6208487", "0.62070644", "0.6197276", "0.61806154", "0.6177103", "0.61530507", "0.61472267", "0.61243707", "0.60771817", "0.6054482", "0.59906125", "0.59906125", "0.5984017", "0.59791875", "0.5977681", "0.59532714", "0.5946838", "0.59457266", "0.59452903", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.5909717", "0.5889277", "0.588111", "0.5871162", "0.5866624", "0.58613646", "0.58519953", "0.58381283", "0.58083445", "0.58059824", "0.5795826", "0.57816726", "0.57670826", "0.57556796", "0.57471323", "0.57418406", "0.5729463", "0.57291526", "0.5716928", "0.5713024", "0.56974274", "0.56782854", "0.56723106", "0.5664594", "0.5664104", "0.5660337", "0.5652865", "0.5647883", "0.5642134", "0.5635645", "0.5634968", "0.562251", "0.56210977", "0.56167537", "0.56138444", "0.56044126", "0.56044126", "0.5602371", "0.56012225", "0.55986875", "0.55893147", "0.5588273", "0.5583255", "0.5582767", "0.55681497", "0.55626017", "0.55577534", "0.55524325", "0.5549442", "0.55378276", "0.5536797", "0.5527675", "0.5511817", "0.55099154", "0.550257" ]
0.0
-1
/ solution: sort and compare /
public static int heightChecker(int[] heights) { int[] copy = heights.clone(); Arrays.sort(copy); int count = 0; for(int i = 0; i < copy.length; i++){ if(heights[i]!=copy[i]) { count++; } } return count; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void sort();", "void sort();", "public void sort() {\n ListNode start = head;\n ListNode position1;\n ListNode position2;\n\n // Going through each element of the array from the second element to the end\n while (start.next != null) {\n start = start.next;\n position1 = start;\n position2 = position1.previous;\n // Checks if previous is null and keeps swapping elements backwards till there\n // is an element that is bigger than the original element\n while (position2 != null && (position1.data < position2.data)) {\n swap(position1, position2);\n numberComparisons++;\n position1 = position2;\n position2 = position1.previous;\n }\n }\n }", "private void sort()\n {\n // This implements Shell sort.\n // Unfortunately we cannot use the sorting functions from the library\n // (e.g. java.util.Arrays.sort), since the ones that work on int\n // arrays do not accept a comparison function, but only allow\n // sorting into natural order.\n int jump = length;\n boolean done;\n \n while( jump>1 ){\n jump /= 2;\n \n do {\n done = true;\n \n for( int j = 0; j<(length-jump); j++ ){\n int i = j + jump;\n \n if( !areCorrectlyOrdered( indices[j], indices[i] ) ){\n // Things are in the wrong order, swap them and step back.\n int tmp = indices[i];\n indices[i] = indices[j];\n indices[j] = tmp;\n done = false;\n }\n }\n } while( !done );\n }\n \n // TODO: integrate this with the stuff above.\n for( int i=1; i<length; i++ ){\n commonality[i] = commonLength( indices[i-1], indices[i] );\n }\n commonality[0] = -1;\n }", "public void sortMatches();", "public void sort() {\r\n int k = start;\r\n for (int i = 0; i < size - 1; i++) {\r\n int p = (k + 1) % cir.length;\r\n for (int j = i + 1; j < size; j++) {\r\n if ((int) cir[p] < (int) cir[k % cir.length]) {\r\n Object temp = cir[k];\r\n cir[k] = cir[p];\r\n cir[p] = temp;\r\n }\r\n p = (p + 1) % cir.length;\r\n }\r\n k = (k + 1) % cir.length;\r\n }\r\n }", "public static void sort(Comparable[] a) {\n for (int i = 0 ; i < a.length ; i++) { // each position scan\n int min = i;\n for (int j = i+1; j < a.length; j++) { // each time we have to scan through remaining entry\n if (HelperFunctions.less(a[j], a[min])) {\n min = j ;\n }\n HelperFunctions.exch(a, i, min);\n }\n }\n }", "@Override\r\n\tpublic void sort() {\r\n\t\tint minpos;\r\n\t\tfor (int i = 0; i < elements.length-1; i++) {\r\n\t\t\tminpos=AuxMethods.minPos(elements, i);\r\n\t\t\telements=AuxMethods.swapElements(elements, i, minpos);\r\n\t\t\t\r\n\t\t}\r\n\t}", "public String doSort();", "void sortV();", "@Override\n \tpublic void sort() {\n \t\tArrays.sort(data);\n \t}", "private void sortEntities(){\n for (int i = 1; i < sorted.size; i++) {\n for(int j = i ; j > 0 ; j--){\n \tEntity e1 = sorted.get(j);\n \tEntity e2 = sorted.get(j-1);\n if(getRL(e1) < getRL(e2)){\n sorted.set(j, e2);\n sorted.set(j-1, e1);\n }\n }\n }\n }", "public static void main(String[] args) {\n String [] folge = {\"ab\",\"cd\", \"aa\"};\n new SortierenBeiEinfugen().sortiereAbsteigend(folge);\n System.out.println(Arrays.toString(folge));\n new SortierenBeiEinfugen().sortiereAufsteigend(folge);\n System.out.println(Arrays.toString(folge));\n\n\n\n\n\n\n int[] feld = {2,8,5,6,3,1,4,7};\n\n int countVergleich=0;\n int countTausch = 0;\n for (int i = 0; i < feld.length; i++) {\n for (int j = i; j > 0 ; j--) {\n countVergleich++;\n if (feld[j - 1]>(feld[j]) ) {\n int temp = feld[j];\n feld[j] = feld[j - 1];\n feld[j - 1] = temp;\n countTausch++;\n } else {\n System.out.println(countVergleich);\n System.out.println(countTausch);\n break;\n }\n }\n }\n }", "public void testSortAndDedup() {\n assertDeduped(List.<String>of(), Comparator.naturalOrder(), 0);\n // test no elements in an integer array\n assertDeduped(List.<Integer>of(), Comparator.naturalOrder(), 0);\n // test unsorted array\n assertDeduped(List.of(-1, 0, 2, 1, -1, 19, -1), Comparator.naturalOrder(), 5);\n // test sorted array\n assertDeduped(List.of(-1, 0, 1, 2, 19, 19), Comparator.naturalOrder(), 5);\n // test sorted\n }", "private static void sortByVerified( ArrayList<Volunteer> list)\n {\n // Find the string reference that should go in each cell of\n // the array, from cell 0 to the end\n for ( int j = 0; j < list.size();j++ )\n {\n // Find min: the index of the string reference that should go into cell j.\n // Look through the unsorted strings (those at j or higher) for the one that is first in lexicographic order\n int min = j;\n for ( int k=j+1; k < list.size(); k++ ) {\n if (list.get(k).compareTo(list.get(min)) > 0) {\n min = k;\n }\n\n }\n\n // Swap the reference at j with the reference at min\n Collections.swap(list, j, min);\n }\n }", "static void sort(int[] a)\n {\n for ( int j = 1; j<a.length; j++)\n {\n int i = j - 1;\n while(i>=0 && a[i]>a[i+1])\n {\n int temp = a[i];\n a[i] = a[i+1];\n a[i+1] = temp;\n i--;\n }\n }\n }", "@Override\n public void sort() {\n for (int i = 0; i < size; i++) {\n for (int j = i + 1; j < size; j++) {\n if (((Comparable) data[i]).compareTo(data[j]) > 0) {\n E c = data[i];\n data[i] = data[j];\n data[j] = c;\n\n }\n }\n }\n }", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int noOfElements = sc.nextInt();\n int[] arr = new int[noOfElements];\n int[] arr1 = new int[noOfElements];\n int diff = Integer.MAX_VALUE;\n int sIndex = 0;\n int j = 0;\n for (int i = 0; i < noOfElements; i++) {\n arr[i] = sc.nextInt();\n }\n for (int j1 = 1; j1 < noOfElements; j1++) {\n int i = j1 - 1;\n int key = arr[j1];\n while (i >= 0 && key < arr[i]) { // 1 2 3\n arr[i + 1] = arr[i];\n i--;\n }\n arr[i + 1] = key;\n }\n //Arrays.sort(arr);\n for (int i = 0; i < noOfElements - 1; i++) {\n int temp = Math.abs(arr[i] - arr[i + 1]);\n if (temp <= diff) {\n diff=temp;\n }\n\n }\n\n for (int i = 0; i < noOfElements - 1; i++) {\n if (Math.abs(arr[i] - arr[i+1]) == diff) {\n System.out.print(arr[i] + \" \" + arr[i+1] + \" \");\n }\n }\n// for (int a = 0; a < j; a++) {\n//\n// System.out.print(arr[arr1[a]] + \" \" + arr[arr1[a]+1] + \" \");\n// }\n\n }", "public void oldSort()\n\t{\n\t\tfor (int index = 0; index < arraySize; index++) {\n\t\t\tfor (int secondIndex = index + 1; secondIndex < arraySize; secondIndex++) {\n\t\t\t\tint temp = 0;\n\t\t\t\tif (array[index] > array[secondIndex]) {\n\t\t\t\t\ttemp = array[index];\n\t\t\t\t\tarray[index] = array[secondIndex];\n\t\t\t\t\tarray[secondIndex] = temp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public static void main(String arg[])\n {\n\tScanner sc=new Scanner(System.in);\n\tSystem.out.println(\"How many no you are goinig to enter?\");\n\tint value =sc.nextInt();\n\tString arr[]= new String[value];\n for(int k=0;k<value;k++)\n\t{\n \tarr[k]=sc.next();\n }\n int len=arr.length;\n\n //par2:sort compare\n \tfor(int i=0; i<len;i++)\n\t{\n \tfor(int k=0;k<len-1;k++)\n\t {\t \n\t if(arr[k].compareTo(arr[k+1]) > 0)\n\t {\n\n \t\tString temp=arr[k];\n \t\tarr[k]=arr[k+1];\n \t\tarr[k+1]=temp;\n }\n\t }\n }\n\n//print\n\t for(int l=0;l<len;l++)\n\t {\n\t System.out.println(\" after sort \"+arr[l]+\"\\n\");\n\t }\n\t}", "public void sortElements(){\n\t\tgetInput();\n\t\tPeople[] all = countAndSort(people, 0, people.length-1);\n\t\t//PrintArray(all);\n\t\tSystem.out.println(InversionCount);\n\t}", "void sort() {\n\t\tint n = array.length;\n\t\tint temp = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 1; j < (n - i); j++) {\n\t\t\t\tif (array[j - 1] > array[j]) { // if the first term is larger\n\t\t\t\t\t\t\t\t\t\t\t\t// than the last term, then the\n\t\t\t\t\t\t\t\t\t\t\t\t// temp holds the previous term\n\t\t\t\t\ttemp = array[j - 1];\n\t\t\t\t\tarray[j - 1] = array[j];// swaps places within the array\n\t\t\t\t\tarray[j] = temp;\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t}", "public static WordFrq[] sort(WordFrq b[]){\n WordFrq temp;\n int i=0;\n while (i < 3) {\n for (i = 1; i < 3; i++) {\n if (b[i-1].count > b[i].count) {\n temp = b[i];\n b[i] = b[i-1];\n b[i-1] = temp;\n break;\n }\n }\n }\n\n\n return b;\n\n\n\n\n\n }", "ArrayList<String> sortFiles(String[] allFiles){\n\n ArrayList<String> tempArrayList = new ArrayList<String>();\n ArrayList<String> returnArrayList = new ArrayList<String>();\n String[] tempArray = allFiles;\n String[] returnArray;\n\n int numOfFiles = tempArray.length;\n\n //delete nonneeded files\n for(int k = 0; k < numOfFiles; k++){\n if (tempArray[k].startsWith(\"G-\") || tempArray[k].startsWith(\"M-\") || tempArray[k].startsWith(\"I-\")){\n tempArrayList.add(tempArray[k]);\n }\n }\n\n returnArray = new String[tempArrayList.size()];\n for(int i = 0; i < tempArrayList.size(); i++){\n returnArray[i] = tempArrayList.get(i);\n }\n\n //if 0 return empty array\n if (returnArray.length < 2){\n return returnArrayList;\n }\n\n //bubble sort\n for (int i = 0; i < returnArray.length-1; i++){\n for (int j = 0; j < returnArray.length-i-1; j++){\n //get string of full number from file\n String tempFirst = returnArray[j].split(\"_\")[2] + returnArray[j].split(\"_\")[3];\n String tempSecond = returnArray[j+1].split(\"_\")[2] + returnArray[j+1].split(\"_\")[3];\n //take out csv if it is not a subgraph\n if (!tempFirst.contains(\"_subgraph_\")){\n tempFirst = tempFirst.substring(0,14);\n }\n if (!tempSecond.contains(\"_subgraph_\")){\n tempSecond = tempSecond.substring(0,14);\n }\n //get int of string\n long tempFirstNum = Long.parseLong(tempFirst);\n long tempSecondNum = Long.parseLong(tempSecond);\n //compare and swap if bigger\n if (tempFirstNum >= tempSecondNum)\n {\n String temp = returnArray[j];\n returnArray[j] = returnArray[j+1];\n returnArray[j+1] = temp;\n }\n }\n }\n\n //add elements to arraylist with newest date being first\n for(int k = returnArray.length-1; k >= 0; k--){\n returnArrayList.add(returnArray[k]);\n System.out.println(allFiles[k]);\n }\n\n return returnArrayList;\n }", "void sort (int [] items) {\r\n\tint length = items.length;\r\n\tfor (int gap=length/2; gap>0; gap/=2) {\r\n\t\tfor (int i=gap; i<length; i++) {\r\n\t\t\tfor (int j=i-gap; j>=0; j-=gap) {\r\n\t\t \t\tif (items [j] <= items [j + gap]) {\r\n\t\t\t\t\tint swap = items [j];\r\n\t\t\t\t\titems [j] = items [j + gap];\r\n\t\t\t\t\titems [j + gap] = swap;\r\n\t\t \t\t}\r\n\t \t}\r\n\t }\r\n\t}\r\n}", "@Override\n public void sort() {\n int cont = 0;\n int mov = 0;\n for (int i = 0; i < (100 - 1); i++) {\n int menor = i;\n for (int j = (i + 1); j < 100; j++){\n if (array[menor] > array[j]){\n cont= cont + 1;\n menor = j;\n mov = mov + 1;\n }\n }\n swap(menor, i);\n mov = mov + 3;\n }\n System.out.println(cont + \" comparações\");\n System.out.println(mov + \" Movimenteções\");\n }", "public static void main(String[] args) {\n\t\tint[] num = {12,327,9,4,3,2,12,34,21,67,544,32,12,12,23,43,76,11};\n\n\t\tfor(int i = 0; i<num.length; i++) {\n\t\t\tcount++; //18\n\t\t\tfor(int j = 0; j < num.length; j++) {\n\t\t\t\tcount1++; //324\n\t\t\t\tint temp;\n\n\t\t\t\tif(num[i] > num[j]) {\n\t\t\t\t\ttemp = num[j];\n\t\t\t\t\tnum[j] = num[i];\n\t\t\t\t\tnum[i] = temp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"===\"+num.length);\n\t\tfor(int i = 0; i< num.length; i++) {\n\t\t\tSystem.out.println(num[i]);\n\t\t}\n\n\t\t/** Sorting Array - Method 2 */\n\n\t\tint[] num1 = {12,327,9,4,3,2,12,34,21,67,544,32,12,12,23,43,76,11};\n\n\t\tfor(int i = 0; i< num1.length; i++) {\n\t\t\tSystem.out.print(num1[i]+\",\");\n\t\t}\n\t\tSystem.out.println(\"===\"+num1.length);\n\t\tfor(int i = 1; i< num1.length; i++) {\n\t\t\tcount++; //75\n\n\t\t\tint ch = num1 [i];\n\t\t\twhile (i > 0 && num1[i-1] > ch) {\n\t\t\t\tcount1++; //58\n\t\t\t\tnum1[i] = num1[i-1];\n\t\t\t\ti--;\n\t\t\t}\n\t\t\tnum1[i] = ch;\n\t\t}\n\t\tfor(int i = 0; i< num1.length; i++) {\n\t\t\tSystem.out.print(num1[i]+\",\");\n\t\t}\n\t}", "public void sortMarc()\r\n {\r\n\t/* Make sure each element in marc_out is a complete string with more than 4 characters */\r\n\tfor(int a = 0; a < marc_out.size(); a++)\r\n\t {\r\n\t\tif(marc_out.get(a).length() < 5){\r\n\t\t System.out.println(\"Warning (sortMarc): marc line \" + marc_out.get(a) + \" too short, must have least 4 characters.\");\r\n\t\t return;\r\n\t\t}\r\n\t }\r\n\r\n\tfor(int a = 0; a < (marc_out.size() - 1); a++)\r\n\t {\r\n\t\tint field_a = 0;\r\n\t\tString value_a = (marc_out.get(a)).substring(1, 4);\r\n\t\ttry{\r\n\t\t field_a = (Integer.valueOf(value_a)).intValue();\r\n\t\t}\r\n\t\tcatch(NumberFormatException nfe) { }\r\n\r\n\t\tfor(int b = a + 1; b < marc_out.size(); b++)\r\n\t\t {\r\n\t\t\tint field_b = 0;\r\n\t\t\tString value_b = (marc_out.get(b)).substring(1, 4);\r\n\t\t\ttry{\r\n\t\t\t field_b = (Integer.valueOf(value_b)).intValue();\r\n\t\t\t}\r\n\t\t\tcatch(NumberFormatException nfe){ }\r\n\r\n\t\t\tif(field_b < field_a)\r\n\t\t\t {\r\n\t\t\t\tString temp_field = marc_out.get(b);\r\n\t\t\t\tmarc_out.set(b, marc_out.get(a));\r\n\t\t\t\tmarc_out.set(a, temp_field);\r\n\r\n\t\t\t\tfield_a = field_b;\r\n\t\t\t }\r\n\t\t }\r\n \t }\r\n }", "public static void main(String[] args) {\n\t\t\n\t\tint [] arr= {3,43,2,320,143,4};\n\t\t\n\t\tint temp=0;\n\t\tint lenth=arr.length;\n\t\t\n\t\tfor(int i=0;i<lenth;i++) {\n\t\t\t\n\t\t\tfor(int j=1;j<(lenth-i);j++)\n\t\t\t{\n\t\t\t\t\n\t\t\t\tif(arr[j-1]>arr[j]) {\n\t\t\t\t\ttemp=arr[j-1];\n\t\t\t\t\tarr[j-1]=arr[j];\n\t\t\t\t\t\t\tarr[j]=temp;\n\t\t\t\t\tSystem.out.println(arr[j]);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\t\t\t\n\t\t\n\n\t}", "public static void main(String[] args) {\n\t\tint a1[] = new int[] {4,9,5};\n\t\tint a2[] = new int[] {9,4,9,8,4 }; \n//\t\tArrays.sort(a1);\n//\t\tArrays.sort(a2);\n\t\tList<Integer> list = new ArrayList<Integer>();\n\t\tfor(int i=0;i<a1.length;i++){\n\t\t\tfor(int j=i;j<a2.length;j++){\n\t\t\t\tif(a1[i]!=a2[j]){\n\t\t\t\t\tcontinue;\n\t\t\t\t}else{\n\t\t\t\t\tlist.add(a1[i]);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tfor(Integer l:list){\n\t\t\tSystem.out.print(l+\" \");\n\t\t}\n\n\t}", "private static void sort2(int[] a) {\n for(int i=0; i<a.length; i++){\n //find smallest from i to end \n int minIndex=i;\n for(int j=i ; j<a.length; j++)\n if(a[j]<a[minIndex])\n minIndex=j;\n //swap\n int t = a[i];\n a[i] = a[minIndex];\n a[minIndex] = t;\n }\n }", "public static void main(String[] args) {\n\t\tString[] abc = {\"abc\",\"aab\",\"bbc\",\"ccd\",\"eef\",\"efg\",\"hij\"};\r\n\t\tint length = abc.length;\r\n\t\tfor(int i=0;i<length;i++){\r\n\t\t\tfor(int j=i;j<length;j++){\r\n\t\t\t\tif(abc[i].compareTo(abc[j])>1){\r\n\t\t\t\t\tString temp = abc[i];\r\n\t\t\t\t\tabc[i] = abc[j];\r\n\t\t\t\t\tabc[j]= temp;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tList<String> xyz = new ArrayList<String>();\r\n\t\txyz.add(\"abc\");\r\n\t\txyz.add(\"aab\");\r\n\t\txyz.add(\"bbc\");\r\n\t\txyz.add(\"ccd\");\r\n\t\txyz.add(\"ccd\");\r\n\t\txyz.add(\"eef\");\r\n\t\txyz.add(\"efg\");\r\n\t\txyz.add(\"hij\");\r\n\t\tCollections.sort(xyz);\r\n\t\tfor(Iterator i = xyz.iterator();i.hasNext();){\r\n\t\t\tSystem.out.println(i.next());\r\n\t\t}\r\n\t\t\r\n\t}", "public void sort(int[] a) {\n\t\tint n = a.length;\n\t\tint temp;\n\t\tfor (int gap = n / 2; gap > 0; gap /= 2) {\n\t\t\tfor (int i = gap; i < n; i++) {\n\t\t\t\tfor (int j = i - gap; j >= 0; j -= gap) {\n\t\t\t\t ++totalValCmp;\n\t\t\t\t if (a[j] > a[j + gap]) {\n\t\t\t\t\t temp = a[j];\n\t\t\t\t\t a[j] = a[j + gap];\n\t\t\t\t\t a[j + gap] = temp;\n\t\t\t\t\t ++totalswaps;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void sort() {\n if(c==null) {\n int middle;\n\n Comparable[] left, right;\n\n\n if (unsorted.length <= 1) {\n\n sorted = unsorted;\n\n } else {\n\n middle = unsorted.length / 2;\n\n\n left = new Comparable[middle];\n\n right = new Comparable[unsorted.length - middle];\n\n\n System.arraycopy(unsorted, 0, left, 0, middle);\n\n System.arraycopy(unsorted, middle, right, 0, unsorted.length - middle);\n\n\n // Внимание! Опа, рекурсия :)\n\n SimpleMerger leftSort = new SimpleMerger(left, c);\n\n SimpleMerger rightSort = new SimpleMerger(right,c);\n\n\n leftSort.sort();\n\n rightSort.sort();\n\n\n sorted = merge(leftSort.getSorted(), rightSort.getSorted());\n\n }\n }else{\n\n int middle;\n\n Object[] left, right;\n\n\n if (unsorted2.length <= 1) {\n\n sorted2 = unsorted2;\n\n } else {\n\n middle = unsorted2.length / 2;\n\n\n left = new Object[middle];\n\n right = new Object[unsorted2.length - middle];\n System.arraycopy(unsorted2, 0, left, 0, middle);\n\n System.arraycopy(unsorted2, middle, right, 0, unsorted2.length - middle);\n\n\n\n\n SimpleMerger leftSort = new SimpleMerger(left,c);\n\n SimpleMerger rightSort = new SimpleMerger(right,c);\n\n\n leftSort.sort();\n\n rightSort.sort();\n\n\n\n sorted2 = merge2(leftSort.getSorted2(), rightSort.getSorted2());\n\n }\n\n }\n }", "public void sortGivenArray_popularity() { \n int i, j, k; \n for(i = movieList.size()/2; i > 0; i /= 2) {\n for(j = i; j < movieList.size(); j++) {\n Movie key = movieList.get(j);\n for(k = j; k >= i; k -= i) {\n if(key.rents > movieList.get(k-i).rents) {\n movieList.set(k, movieList.get(k-i));\n } else {\n break; \n }\n }\n movieList.set(k, key);\n }\n } \n }", "@Test\n\tpublic void testSortRepeatableNumbers() {\n\t\tint[] arrayBeforeSort = { 104, 104, 0, 9, 56, 0, 9, 77, 88 };\n\t\tint[] arrayAfterSort = { 104, 104, 0, 9, 56, 0, 9, 77, 88 };\n\t\tArrayQuickSort.sort(arrayAfterSort);\n\t\tif (!isSorted(arrayBeforeSort, arrayAfterSort)) {\n\t\t\tAssert.fail(\"The array is not sorted!\");\n\t\t}\n\t}", "private void sort() {\n ScoreComparator comparator = new ScoreComparator();\n Collections.sort(scores, comparator);\n }", "public void sort() {\n }", "private void sortResults(){\r\n this.sortedPlayers = new ArrayList<>();\r\n int size = players.size();\r\n while (size > 0) {\r\n Player lowestPointsPlayer = this.players.get(0);\r\n for(int i = 0; i<this.players.size(); i++){\r\n if(lowestPointsPlayer.getPoints() <= this.players.get(i).getPoints()){\r\n lowestPointsPlayer = this.players.get(i);\r\n }\r\n }\r\n this.sortedPlayers.add(lowestPointsPlayer);\r\n this.players.remove(lowestPointsPlayer);\r\n size--;\r\n }\r\n\r\n\r\n }", "private static <T,P> void sort1(List<T> x, List<P> a2, Comparator<T> comp, int off, int len) {\n\t\t// Insertion sort on smallest arrays\n\t\tif (len < 7) {\n\t\t\tfor (int i=off; i<len+off; i++)\n\t\t\t\tfor (int j=i; j>off && comp.compare(x.get(j-1),x.get(j))>0; j--)\n\t\t\t\t\tswap(x, a2, j, j-1);\n\t\t\treturn;\n\t\t}\n\n\t\t// Choose a partition element, v\n\t\tint m = off + (len >> 1); // Small arrays, middle element\n\t\tif (len > 7) {\n\t\t\tint l = off;\n\t\t\tint n = off + len - 1;\n\t\t\tif (len > 40) { // Big arrays, pseudomedian of 9\n\t\t\t\tint s = len/8;\n\t\t\t\tl = med3(x,comp, l, l+s, l+2*s);\n\t\t\t\tm = med3(x,comp, m-s, m, m+s);\n\t\t\t\tn = med3(x,comp, n-2*s, n-s, n);\n\t\t\t}\n\t\t\tm = med3(x,comp, l, m, n); // Mid-size, med of 3\n\t\t}\n\t\tT v = x.get(m);\n\n\t\t// Establish Invariant: v* (<v)* (>v)* v*\n\t\tint a = off, b = a, c = off + len - 1, d = c;\n\t\twhile(true) {\n\t\t\twhile (b <= c && comp.compare(x.get(b),v)<=0) {\n\t\t\t\tif (x.get(b) == v)\n\t\t\t\t\tswap(x,a2, a++, b);\n\t\t\t\tb++;\n\t\t\t}\n\t\t\twhile (c >= b && comp.compare(x.get(c),v)>=0) {\n\t\t\t\tif (x.get(c) == v)\n\t\t\t\t\tswap(x,a2, c, d--);\n\t\t\t\tc--;\n\t\t\t}\n\t\t\tif (b > c)\n\t\t\t\tbreak;\n\t\t\tswap(x,a2, b++, c--);\n\t\t}\n\n\t\t// Swap partition elements back to middle\n\t\tint s, n = off + len;\n\t\ts = Math.min(a-off, b-a ); vecswap(x,a2, off, b-s, s);\n\t\ts = Math.min(d-c, n-d-1); vecswap(x,a2, b, n-s, s);\n\n\t\t// Recursively sort non-partition-elements\n\t\tif ((s = b-a) > 1)\n\t\t\tsort1(x,a2,comp, off, s);\n\t\tif ((s = d-c) > 1)\n\t\t\tsort1(x,a2,comp, n-s, s);\n\t}", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }" ]
[ "0.7009674", "0.7009674", "0.691371", "0.67796344", "0.66553", "0.6639672", "0.6628865", "0.6628329", "0.66241235", "0.65866137", "0.6578354", "0.6519973", "0.6498284", "0.6471202", "0.6465848", "0.64343154", "0.6425364", "0.64113647", "0.64029294", "0.6401897", "0.639801", "0.63791746", "0.63573414", "0.6347486", "0.6320761", "0.631697", "0.6308692", "0.63070166", "0.62962466", "0.6283523", "0.6278459", "0.62588626", "0.62575215", "0.62518924", "0.6236568", "0.62289053", "0.6222973", "0.62187994", "0.6214521", "0.62096906", "0.61996835", "0.61996835", "0.61996835", "0.61996835", "0.61996835", "0.61996835", "0.61996835", "0.61996835", "0.61996835", "0.61996835", "0.61996835", "0.61996835", "0.61996835", "0.61996835", "0.61996835", "0.61996835", "0.61996835", "0.61996835", "0.61996835", "0.61996835", "0.61996835", "0.61996835", "0.61996835", "0.61996835", "0.61996835", "0.6199118", "0.6199118", "0.6199118", "0.6199118", "0.6199118", "0.6199118", "0.6199118", "0.6199118", "0.6199118", "0.6199118", "0.6199118", "0.6199118", "0.6199118", "0.6199118", "0.6199118", "0.6199118", "0.6199118", "0.6199118", "0.6199118", "0.6199118", "0.6199118", "0.6199118", "0.6199118", "0.6199118", "0.6199118", "0.6199118", "0.6199118", "0.6199118", "0.6199118", "0.6199118", "0.6199118", "0.6199118", "0.6199118", "0.6199118", "0.6199118", "0.6199118" ]
0.0
-1
Created by Sarah on 5/2/2017.
public interface MonsterStateTransitions { //state transitions void toVulnerableState(); void toProtectedState(); //actions void init(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "public final void mo51373a() {\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tprotected void interr() {\n\t}", "private void m50366E() {\n }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "protected boolean func_70814_o() { return true; }", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "public void mo38117a() {\n }", "private void poetries() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n public int describeContents() { return 0; }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n public void init() {\n }", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n void init() {\n }", "private void init() {\n\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\n public void init() {}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void init() {}", "public void mo4359a() {\n }", "@Override\n protected void init() {\n }", "@Override\n protected void initialize() \n {\n \n }", "private static void cajas() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n public int retroceder() {\n return 0;\n }", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "private void kk12() {\n\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tpublic void init() {\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "private MetallicityUtils() {\n\t\t\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void init()\n\t{\n\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n public void initialize() { \n }", "@Override\n\t\tpublic void init() {\n\t\t}", "protected MetadataUGWD() {/* intentionally empty block */}", "private void strin() {\n\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void m23075a() {\n }", "public void method_4270() {}", "public final void mo91715d() {\n }", "@Override public int describeContents() { return 0; }", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\r\n\tpublic final void init() {\r\n\r\n\t}" ]
[ "0.5977021", "0.5847734", "0.5837049", "0.57779163", "0.5736978", "0.5732907", "0.57013965", "0.56700003", "0.56700003", "0.5641489", "0.5578566", "0.55728245", "0.5569631", "0.55426276", "0.5517312", "0.5514957", "0.5514917", "0.5513724", "0.5510589", "0.5510589", "0.5510589", "0.5510589", "0.5510589", "0.5509794", "0.5508758", "0.55076706", "0.5478204", "0.5478204", "0.5478204", "0.5478204", "0.5478204", "0.5478204", "0.54774517", "0.5477377", "0.54721975", "0.54721975", "0.5470875", "0.5445925", "0.5440685", "0.54371095", "0.54339004", "0.5426046", "0.5422892", "0.5420777", "0.5417599", "0.54161", "0.54093283", "0.54084074", "0.5396699", "0.5384246", "0.5381752", "0.53786874", "0.5366879", "0.5366879", "0.5366879", "0.53567225", "0.5350228", "0.5350228", "0.5350228", "0.5341633", "0.5341633", "0.533609", "0.5334804", "0.5330391", "0.53298795", "0.53298795", "0.53298795", "0.5328278", "0.5323243", "0.5322849", "0.53158784", "0.53149354", "0.53050613", "0.5302469", "0.53000575", "0.52954215", "0.5286261", "0.5286261", "0.5285197", "0.5279893", "0.5279893", "0.52779555", "0.52723825", "0.5267784", "0.526531", "0.52623284", "0.52623284", "0.52623284", "0.52623284", "0.52623284", "0.52623284", "0.52623284", "0.52602744", "0.5259634", "0.52592814", "0.52575654", "0.5256359", "0.5244555", "0.52438587", "0.5240355", "0.52379256" ]
0.0
-1
TODO Autogenerated method stub
private static void SearchRowAndColwise(int[][] arr, int r, int c, int key) { int i = 0; int j = c - 1; while (i <= r && j >= 0) { int mid = arr[i][j]; if (key < mid) { j--; } else if (key > mid) { i++; } else if (key == mid) { System.out.println("key found at row" + i + "and at column" + j); return; } } System.out.println("not found"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
Create contents of the dialog.
private void createContents() { shell = new Shell(getParent(), getStyle()); shell.setSize(540, 297); shell.setLayout(new GridLayout(1, false)); Composite cmpTop = new Composite(shell, SWT.NONE); cmpTop.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1)); GridLayout gl_cmpTop = new GridLayout(4, false); gl_cmpTop.verticalSpacing = 0; cmpTop.setLayout(gl_cmpTop); Label lblBankAccountNumber = new Label(cmpTop, SWT.CENTER); lblBankAccountNumber.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1)); lblBankAccountNumber.setBounds(0, 0, 59, 14); lblBankAccountNumber.setText("Bank Account"); Label lblBranch = new Label(cmpTop, SWT.CENTER); lblBranch.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1)); lblBranch.setBounds(0, 0, 59, 14); lblBranch.setText("Branch"); Label lblBank = new Label(cmpTop, SWT.CENTER); lblBank.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1)); lblBank.setText("Bank"); new Label(cmpTop, SWT.NONE); txtBankAccountNumber = new Text(cmpTop, SWT.BORDER); txtBankAccountNumber.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1)); txtBankAccountNumber.setBounds(0, 0, 64, 19); txtBranch = new Text(cmpTop, SWT.BORDER); GridData gd_txtBranch = new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1); gd_txtBranch.widthHint = 50; txtBranch.setLayoutData(gd_txtBranch); txtBranch.setBounds(0, 0, 64, 19); txtBank = new Text(cmpTop, SWT.BORDER); GridData gd_txtBank = new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1); gd_txtBank.widthHint = 50; txtBank.setLayoutData(gd_txtBank); btnSearch = new Button(cmpTop, SWT.NONE); btnSearch.setAlignment(SWT.RIGHT); btnSearch.setText("Search"); btnSearch.setEnabled(false); Composite cmpResults = new Composite(shell, SWT.NONE); cmpResults.setLayout(new GridLayout(1, false)); GridData gd_cmpResults = new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1); gd_cmpResults.heightHint = 129; cmpResults.setLayoutData(gd_cmpResults); tblAccounts = new Table(cmpResults, SWT.BORDER); GridData gd_tblAccounts = new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1); gd_tblAccounts.heightHint = 71; tblAccounts.setLayoutData(gd_tblAccounts); tblAccounts.setHeaderVisible(true); tblAccounts.setLinesVisible(true); TableColumn tblclmnAccountNumber = new TableColumn(tblAccounts, SWT.NONE); tblclmnAccountNumber.setWidth(120); tblclmnAccountNumber.setText("Player Account"); TableColumn tblclmsFirstName = new TableColumn(tblAccounts, SWT.NONE); tblclmsFirstName.setWidth(100); tblclmsFirstName.setText("First Name"); TableColumn tblclmnLastName = new TableColumn(tblAccounts, SWT.NONE); tblclmnLastName.setWidth(100); tblclmnLastName.setText("Last Name"); TableColumn tblclmnActivated = new TableColumn(tblAccounts, SWT.NONE); tblclmnActivated.setWidth(95); tblclmnActivated.setText("From"); TableColumn tblclmnDeactivated = new TableColumn(tblAccounts, SWT.NONE); tblclmnDeactivated.setWidth(100); tblclmnDeactivated.setText("To"); Composite cmpFooter = new Composite(shell, SWT.NONE); cmpFooter.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1)); cmpFooter.setLayout(new GridLayout(2, false)); lblResultsMessage = new Label(cmpFooter, SWT.NONE); lblResultsMessage.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1)); Composite cmpButtons = new Composite(cmpFooter, SWT.NONE); cmpButtons.setLayout(new GridLayout(3, false)); cmpButtons.setLayoutData(new GridData(SWT.RIGHT, SWT.BOTTOM, true, false, 1, 1)); btnLoad = new Button(cmpButtons, SWT.NONE); btnLoad.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, true, false, 1, 1)); btnLoad.setText("Load Account"); btnLoad.setEnabled(false); btnCancel = new Button(cmpButtons, SWT.NONE); btnCancel.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, true, false, 1, 1)); btnCancel.setText("Cancel"); new Label(cmpButtons, SWT.NONE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createContents() {\n\t\tshell = new Shell(getParent(), getStyle());\n\n\t\tshell.setSize(379, 234);\n\t\tshell.setText(\"\\u0410\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\");\n\t\tshell.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tLabel dialogAccountHeader = new Label(shell, SWT.NONE);\n\t\tdialogAccountHeader.setAlignment(SWT.CENTER);\n\t\tdialogAccountHeader.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.BOLD));\n\t\tdialogAccountHeader.setLayoutData(BorderLayout.NORTH);\n\t\tif(!this.isNeedAdd)\n\t\t{\n\t\t\tdialogAccountHeader.setText(\"\\u0420\\u0435\\u0434\\u0430\\u043A\\u0442\\u0438\\u0440\\u043E\\u0432\\u0430\\u043D\\u0438\\u0435 \\u0430\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\\u0430\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tdialogAccountHeader.setText(\"\\u0414\\u043E\\u0431\\u0430\\u0432\\u043B\\u0435\\u043D\\u0438\\u0435 \\u0430\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\\u0430\");\n\t\t}\n\t\t\n\t\tComposite composite = new Composite(shell, SWT.NONE);\n\t\tcomposite.setFont(SWTResourceManager.getFont(\"Segoe UI\", 9, SWT.BOLD));\n\t\tcomposite.setLayoutData(BorderLayout.CENTER);\n\t\t\n\t\tLabel label = new Label(composite, SWT.NONE);\n\t\tlabel.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\tlabel.setBounds(10, 16, 106, 21);\n\t\tlabel.setText(\"\\u0418\\u043C\\u044F \\u0441\\u0435\\u0440\\u0432\\u0435\\u0440\\u0430\");\n\t\t\n\t\ttextServer = new Text(composite, SWT.BORDER);\n\t\ttextServer.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.NORMAL));\n\t\ttextServer.setBounds(122, 13, 241, 32);\n\t\t\n\t\n\t\tLabel label_1 = new Label(composite, SWT.NONE);\n\t\tlabel_1.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\tlabel_1.setText(\"\\u041B\\u043E\\u0433\\u0438\\u043D\");\n\t\tlabel_1.setBounds(10, 58, 55, 21);\n\t\t\n\t\ttextLogin = new Text(composite, SWT.BORDER);\n\t\ttextLogin.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.NORMAL));\n\t\ttextLogin.setBounds(122, 55, 241, 32);\n\t\ttextLogin.setFocus();\n\t\t\n\t\tLabel label_2 = new Label(composite, SWT.NONE);\n\t\tlabel_2.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\tlabel_2.setText(\"\\u041F\\u0430\\u0440\\u043E\\u043B\\u044C\");\n\t\tlabel_2.setBounds(10, 106, 55, 21);\n\t\t\n\t\ttextPass = new Text(composite, SWT.PASSWORD | SWT.BORDER);\n\t\ttextPass.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.NORMAL));\n\t\ttextPass.setBounds(122, 103, 241, 32);\n\t\t\n\t\tif(isNeedAdd){\n\t\t\ttextServer.setText(\"imap.mail.ru\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\ttextServer.setText(this.account.getServer());\n\t\t\ttextLogin.setText(account.getLogin());\n\t\t\ttextPass.setText(account.getPass());\n\t\t}\n\t\t\n\t\tComposite composite_1 = new Composite(shell, SWT.NONE);\n\t\tcomposite_1.setLayoutData(BorderLayout.SOUTH);\n\t\t\n\t\tButton btnSaveAccount = new Button(composite_1, SWT.NONE);\n\t\tbtnSaveAccount.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tString login = textLogin.getText();\n\t\t\t\tif(textServer.getText()==\"\")\n\t\t\t\t{\n\t\t\t\t\tMessageDialog.openError(shell, \"Ошибка\", \"Поле имя сервера не введен!\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif(textLogin.getText()==\"\")\n\t\t\t\t{\n\t\t\t\t\tMessageDialog.openError(shell, \"Ошибка\", \"Поле логин не введен!\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\telse if (!login.matches(\"^([_A-Za-z0-9-]+)@([A-Za-z0-9]+)\\\\.([A-Za-z]{2,})$\"))\n\t\t\t\t{\n\t\t\t\t\tMessageDialog.openError(shell, \"Ошибка\", \"Поле логин введен некорректно!\");\n\t\t\t\t\treturn;\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse if(Setting.Instance().AnyAccounts(textLogin.getText(), isNeedAdd))\n\t\t\t\t{\n\t\t\t\t\tMessageDialog.openError(shell, \"Ошибка\", \"такой логин уже существует!\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif(textPass.getText()==\"\")\n\t\t\t\t{\n\t\t\t\t\tMessageDialog.openError(shell, \"Ошибка\", \"Поле пароль не введен!\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif(isNeedAdd)\n\t\t\t\t{\n\t\t\t\t\tservice.AddAccount(textServer.getText(), textLogin.getText(), textPass.getText());\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\taccount.setLogin(textLogin.getText());\n\t\t\t\t\taccount.setPass(textPass.getText());\n\t\t\t\t\taccount.setServer(textServer.getText());\t\n\t\t\t\t\tservice.EditAccount(account);\n\t\t\t\t}\n\t\t\t\tservice.RepaintAccount(table);\n\t\t\t\tshell.close();\n\t\t\t}\n\t\t});\n\t\tbtnSaveAccount.setLocation(154, 0);\n\t\tbtnSaveAccount.setSize(96, 32);\n\t\tbtnSaveAccount.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\tbtnSaveAccount.setText(\"\\u0421\\u043E\\u0445\\u0440\\u0430\\u043D\\u0438\\u0442\\u044C\");\n\t\t\n\t\tButton btnCancel = new Button(composite_1, SWT.NONE);\n\t\tbtnCancel.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t}\n\t\t});\n\t\tbtnCancel.setLocation(267, 0);\n\t\tbtnCancel.setSize(96, 32);\n\t\tbtnCancel.setText(\"\\u041E\\u0442\\u043C\\u0435\\u043D\\u0430\");\n\t\tbtnCancel.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(340, 217);\n\t\tshell.setText(\"Benvenuto\");\n\t\tshell.setLayout(new FormLayout());\n\t\t\n\t\tComposite composite = new Composite(shell, SWT.NONE);\n\t\tFormData fd_composite = new FormData();\n\t\tfd_composite.bottom = new FormAttachment(100, -10);\n\t\tfd_composite.top = new FormAttachment(0, 10);\n\t\tfd_composite.right = new FormAttachment(100, -10);\n\t\tfd_composite.left = new FormAttachment(0, 10);\n\t\tcomposite.setLayoutData(fd_composite);\n\t\tcomposite.setLayout(new GridLayout(2, false));\n\t\t\n\t\tLabel lblUsername = new Label(composite, SWT.NONE);\n\t\tlblUsername.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tlblUsername.setText(\"Username\");\n\t\t\n\t\ttxtUsername = new Text(composite, SWT.BORDER);\n\t\ttxtUsername.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\t\tfinal String username = txtUsername.getText();\n\t\tSystem.out.println(username);\n\t\t\n\t\tLabel lblPeriodo = new Label(composite, SWT.NONE);\n\t\tlblPeriodo.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tlblPeriodo.setText(\"Periodo\");\n\t\t\n\t\tfinal CCombo combo_1 = new CCombo(composite, SWT.BORDER | SWT.READ_ONLY);\n\t\tcombo_1.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\n\t\tcombo_1.setVisibleItemCount(6);\n\t\tcombo_1.setItems(new String[] {\"1 settimana\", \"1 mese\", \"3 mesi\", \"6 mesi\", \"1 anno\", \"Overall\"});\n\t\t\n\t\tLabel lblNumeroCanzoni = new Label(composite, SWT.NONE);\n\t\tlblNumeroCanzoni.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tlblNumeroCanzoni.setText(\"Numero canzoni da analizzare\");\n\t\t\n\t\tfinal CCombo combo = new CCombo(composite, SWT.BORDER | SWT.READ_ONLY);\n\t\tcombo.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\n\t\tcombo.setItems(new String[] {\"25\", \"50\"});\n\t\tcombo.setVisibleItemCount(2);\n\t\tcombo.setToolTipText(\"Numero canzoni da analizzare\");\n\t\t\n\t\tLabel lblNumeroCanzoniDa = new Label(composite, SWT.NONE);\n\t\tlblNumeroCanzoniDa.setText(\"Numero canzoni da consigliare\");\n\t\t\n\t\tfinal CCombo combo_2 = new CCombo(composite, SWT.BORDER | SWT.READ_ONLY);\n\t\tcombo_2.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\n\t\tcombo_2.setVisibleItemCount(3);\n\t\tcombo_2.setToolTipText(\"Numero canzoni da consigliare\");\n\t\tcombo_2.setItems(new String[] {\"5\", \"10\", \"20\"});\n\t\t\n\t\tButton btnAvviaRicerca = new Button(composite, SWT.NONE);\n\t\tbtnAvviaRicerca.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tfinal String username = txtUsername.getText();\n\t\t\t\tfinal String numSong = combo.getText();\n\t\t\t\tfinal String period = combo_1.getText();\n\t\t\t\tfinal String numConsigli = combo_2.getText();\n\t\t\t\tif(username.isEmpty() || numSong.isEmpty() || period.isEmpty() || numConsigli.isEmpty()){\n\t\t\t\t\tSystem.out.println(\"si prega di compilare tutti i campi\");\n\t\t\t\t}\n\t\t\t\tif(!username.isEmpty() && !numSong.isEmpty() && !period.isEmpty() && !numConsigli.isEmpty()){\n\t\t\t\t\tSystem.out.println(\"tutto ok\");\n\t\t\t\t\t\n\t\t\t\t\tFileOutputStream out;\n\t\t\t\t\tPrintStream ps;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tout = new FileOutputStream(\"datiutente.txt\");\n\t\t\t\t\t\tps = new PrintStream(out);\n\t\t\t\t\t\tps.println(username);\n\t\t\t\t\t\tps.println(numSong);\n\t\t\t\t\t\tps.println(period);\n\t\t\t\t\t\tps.println(numConsigli);\n\t\t\t\t\t\tps.close();\n\t\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\t\tSystem.err.println(\"Errore nella scrittura del file\");\n\t\t\t\t\t}\n\t\t\t\t\ttry {\n\t\t\t\t\t\tPrincipaleParteA.main();\n\t\t\t\t\t} catch (FileNotFoundException e1) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t }\n\t\t\t\n\t\t});\n\t\tGridData gd_btnAvviaRicerca = new GridData(SWT.FILL, SWT.CENTER, false, false, 2, 1);\n\t\tgd_btnAvviaRicerca.heightHint = 31;\n\t\tbtnAvviaRicerca.setLayoutData(gd_btnAvviaRicerca);\n\t\tbtnAvviaRicerca.setText(\"Avvia Ricerca\");\n\t}", "protected void createContents() {\n\t\tsetText(\"Muokkaa asiakastietoja\");\n\t\tsetSize(800, 550);\n\n\t}", "private void createContents() {\r\n\t\tshell = new Shell(getParent(), SWT.TITLE);\r\n\r\n\t\tgetParent().setEnabled(false);\r\n\r\n\t\tshell.addShellListener(new ShellAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void shellClosed(ShellEvent e) {\r\n\t\t\t\tgetParent().setEnabled(true);\r\n\t\t\t}\r\n\t\t});\r\n\t\tshell.setImage(SWTResourceManager.getImage(LoginInfo.class, \"/javax/swing/plaf/metal/icons/ocean/warning.png\"));\r\n\r\n\t\tsetMidden(397, 197);\r\n\r\n\t\tshell.setText(this.windows_name);\r\n\t\tshell.setLayout(null);\r\n\r\n\t\tLabel label = new Label(shell, SWT.NONE);\r\n\t\tlabel.setFont(SWTResourceManager.getFont(\"Microsoft YaHei UI\", 11, SWT.NORMAL));\r\n\t\tlabel.setBounds(79, 45, 226, 30);\r\n\t\tlabel.setAlignment(SWT.CENTER);\r\n\t\tlabel.setText(this.label_show);\r\n\r\n\t\tButton button = new Button(shell, SWT.NONE);\r\n\t\tbutton.setBounds(150, 107, 86, 30);\r\n\t\tbutton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tshell.close();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton.setText(\"确定\");\r\n\r\n\t}", "protected void createContents() {\r\n\t\tsetText(Messages.getString(\"HMS.PatientManagementShell.title\"));\r\n\t\tsetSize(900, 700);\r\n\r\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(450, 300);\n\t\tshell.setText(\"SWT Application\");\n\t\t\n\t\tButton btnNewButton = new Button(shell, SWT.NONE);\n\t\tbtnNewButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\tbtnNewButton.setBounds(41, 226, 75, 25);\n\t\tbtnNewButton.setText(\"Limpiar\");\n\t\t\n\t\tButton btnGuardar = new Button(shell, SWT.NONE);\n\t\tbtnGuardar.setBounds(257, 226, 75, 25);\n\t\tbtnGuardar.setText(\"Guardar\");\n\t\t\n\t\ttext = new Text(shell, SWT.BORDER);\n\t\ttext.setBounds(25, 181, 130, 21);\n\t\t\n\t\ttext_1 = new Text(shell, SWT.BORDER);\n\t\ttext_1.setBounds(230, 181, 130, 21);\n\t\t\n\t\ttext_2 = new Text(shell, SWT.BORDER);\n\t\ttext_2.setBounds(25, 134, 130, 21);\n\t\t\n\t\ttext_3 = new Text(shell, SWT.BORDER);\n\t\ttext_3.setBounds(25, 86, 130, 21);\n\t\t\n\t\ttext_4 = new Text(shell, SWT.BORDER);\n\t\ttext_4.setBounds(25, 42, 130, 21);\n\t\t\n\t\tButton btnNewButton_1 = new Button(shell, SWT.NONE);\n\t\tbtnNewButton_1.setBounds(227, 130, 75, 25);\n\t\tbtnNewButton_1.setText(\"Buscar\");\n\t\t\n\t\tLabel label = new Label(shell, SWT.NONE);\n\t\tlabel.setBounds(25, 21, 55, 15);\n\t\tlabel.setText(\"#\");\n\t\t\n\t\tLabel lblFechaYHora = new Label(shell, SWT.NONE);\n\t\tlblFechaYHora.setBounds(25, 69, 75, 15);\n\t\tlblFechaYHora.setText(\"Fecha y Hora\");\n\t\t\n\t\tLabel lblPlaca = new Label(shell, SWT.NONE);\n\t\tlblPlaca.setBounds(25, 113, 55, 15);\n\t\tlblPlaca.setText(\"Placa\");\n\t\t\n\t\tLabel lblMarca = new Label(shell, SWT.NONE);\n\t\tlblMarca.setBounds(25, 161, 55, 15);\n\t\tlblMarca.setText(\"Marca\");\n\t\t\n\t\tLabel lblColor = new Label(shell, SWT.NONE);\n\t\tlblColor.setBounds(230, 161, 55, 15);\n\t\tlblColor.setText(\"Color\");\n\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.addShellListener(new ShellAdapter() {\n\t\t\t@Override\n\t\t\tpublic void shellActivated(ShellEvent e) {\n\t\t\t\tloadSettings();\n\t\t\t}\n\t\t});\n\t\tshell.setSize(450, 160);\n\t\tshell.setText(\"Settings\");\n\t\t\n\t\ttextUsername = new Text(shell, SWT.BORDER);\n\t\ttextUsername.setBounds(118, 10, 306, 21);\n\t\t\n\t\ttextPassword = new Text(shell, SWT.BORDER | SWT.PASSWORD);\n\t\ttextPassword.setBounds(118, 38, 306, 21);\n\t\t\n\t\tCLabel lblLogin = new CLabel(shell, SWT.NONE);\n\t\tlblLogin.setBounds(10, 10, 61, 21);\n\t\tlblLogin.setText(\"Login\");\n\t\t\n\t\tCLabel lblPassword = new CLabel(shell, SWT.NONE);\n\t\tlblPassword.setText(\"Password\");\n\t\tlblPassword.setBounds(10, 38, 61, 21);\n\t\t\n\t\tButton btnSave = new Button(shell, SWT.NONE);\n\t\tbtnSave.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tApplicationSettings as = new ApplicationSettings();\n\t\t as.savePassword(textPassword.getText());\n\t\t as.saveUsername(textUsername.getText());\n\t\t \n\t\t connectionOK = WSHandler.setAutoFillDailyReports(btnAutomaticDailyReport.getSelection());\n\t\t \n\t\t shell.close();\n\t\t if (!(parentDialog == null)) {\n\t\t \tparentDialog.reloadTable();\n\t\t }\n\t\t\t}\n\t\t});\n\t\tbtnSave.setBounds(10, 87, 414, 25);\n\t\tbtnSave.setText(\"Save\");\n\n\t}", "private void createContents(ArrayList<String> content) {\r\n\t\t// create ne whell for dialog window\r\n\t\tshell = new Shell(getParent(), SWT.APPLICATION_MODAL);\r\n\t\tshell.setSize(367, 348);\r\n\t\tshell.setText(getText());\r\n\t\t\r\n\t\tcenterDialog(shell);\r\n\r\n\t\t// create List component inside dialog window\r\n\t\tfinal List list = new List(shell, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL);\r\n\t\tlist.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\r\n\t\t\t\tselectedTopic = list.getSelection()[0];\r\n\t\t\t\tshell.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\t// fill list with documentation infElements\r\n\t\tfor (int i=0; i<content.size(); i++)\r\n\t\t\tlist.add(content.get(i));\r\n\t\t\r\n\t\t// set default selection\r\n\t\tlist.setSelection(0);\r\n\t\t\r\n\t\t// set position of List component\r\n\t\tlist.setBounds(10, 31, 341, 270);\r\n\t\t\r\n\t\t// create Label for the List component\r\n\t\tLabel lblSelectDocumentationTopic = new Label(shell, SWT.NONE);\r\n\t\tlblSelectDocumentationTopic.setBounds(10, 10, 173, 15);\r\n\t\tlblSelectDocumentationTopic.setText(\"Select Documentation Topic\");\r\n\r\n\t\t// create Cancel button\r\n\t\tButton btnCancel = new Button(shell, SWT.NONE);\r\n\t\tbtnCancel.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tselectedTopic = \"\";\r\n\t\t\t\tshell.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnCancel.setBounds(276, 307, 75, 25);\r\n\t\tbtnCancel.setText(\"Cancel\");\r\n\t\t\r\n\t\t// Create OK button\r\n\t\tButton btnOk = new Button(shell, SWT.NONE);\r\n\t\tbtnOk.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tselectedTopic = list.getSelection()[0];\r\n\t\t\t\tshell.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnOk.setBounds(183, 307, 75, 25);\r\n\t\tbtnOk.setText(\"OK\");\r\n\t\t\r\n\t}", "private void createContents() {\n\t\tshell = new Shell(getParent(), SWT.MIN |SWT.APPLICATION_MODAL);\n\t\tshell.setImage(SWTResourceManager.getImage(WordWatermarkDialog.class, \"/com/yc/ui/1.jpg\"));\n\t\tshell.setSize(436, 321);\n\t\tshell.setText(\"设置文字水印\");\n\t\t\n\t\tLabel label_font = new Label(shell, SWT.NONE);\n\t\tlabel_font.setBounds(38, 80, 61, 17);\n\t\tlabel_font.setText(\"字体名称:\");\n\t\t\n\t\tLabel label_style = new Label(shell, SWT.NONE);\n\t\tlabel_style.setBounds(232, 77, 61, 17);\n\t\tlabel_style.setText(\"字体样式:\");\n\t\t\n\t\tLabel label_size = new Label(shell, SWT.NONE);\n\t\tlabel_size.setBounds(38, 120, 68, 17);\n\t\tlabel_size.setText(\"字体大小:\");\n\t\t\n\t\tLabel label_color = new Label(shell, SWT.NONE);\n\t\tlabel_color.setBounds(232, 120, 68, 17);\n\t\tlabel_color.setText(\"字体颜色:\");\n\t\t\n\t\tLabel label_word = new Label(shell, SWT.NONE);\n\t\tlabel_word.setBounds(38, 38, 61, 17);\n\t\tlabel_word.setText(\"水印文字:\");\n\t\t\n\t\ttext = new Text(shell, SWT.BORDER);\n\t\ttext.setBounds(115, 35, 278, 23);\n\t\t\n\t\tButton button_confirm = new Button(shell, SWT.NONE);\n\t\t\n\t\tbutton_confirm.setBounds(313, 256, 80, 27);\n\t\tbutton_confirm.setText(\"确定\");\n\t\t\n\t\tCombo combo = new Combo(shell, SWT.NONE);\n\t\tcombo.setItems(new String[] {\"宋体\", \"黑体\", \"楷体\", \"微软雅黑\", \"仿宋\"});\n\t\tcombo.setBounds(115, 77, 93, 25);\n\t\tcombo.setText(\"黑体\");\n\t\t\n\t\tCombo combo_1 = new Combo(shell, SWT.NONE);\n\t\tcombo_1.setItems(new String[] {\"粗体\", \"斜体\"});\n\t\tcombo_1.setBounds(300, 74, 93, 25);\n\t\tcombo_1.setText(\"粗体\");\n\t\t\n\t\tCombo combo_2 = new Combo(shell, SWT.NONE);\n\t\tcombo_2.setItems(new String[] {\"1\", \"3\", \"5\", \"8\", \"10\", \"12\", \"16\", \"18\", \"20\", \"24\", \"30\", \"36\", \"48\", \"56\", \"66\", \"72\"});\n\t\tcombo_2.setBounds(115, 117, 93, 25);\n\t\tcombo_2.setText(\"24\");\n\t\t\n\t\tCombo combo_3 = new Combo(shell, SWT.NONE);\n\t\tcombo_3.setItems(new String[] {\"红色\", \"绿色\", \"蓝色\"});\n\t\tcombo_3.setBounds(300, 117, 93, 25);\n\t\tcombo_3.setText(\"红色\");\n\t\t\n\t\tButton button_cancle = new Button(shell, SWT.NONE);\n\t\t\n\t\tbutton_cancle.setBounds(182, 256, 80, 27);\n\t\tbutton_cancle.setText(\"取消\");\n\t\t\n\t\tLabel label_X = new Label(shell, SWT.NONE);\n\t\tlabel_X.setBounds(31, 161, 68, 17);\n\t\tlabel_X.setText(\"X轴偏移值:\");\n\t\t\n\t\tCombo combo_4 = new Combo(shell, SWT.NONE);\n\t\tcombo_4.setItems(new String[] {\"10\", \"20\", \"30\", \"40\", \"50\", \"80\", \"100\", \"160\", \"320\", \"640\"});\n\t\tcombo_4.setBounds(115, 158, 93, 25);\n\t\tcombo_4.setText(\"50\");\n\t\t\n\t\tLabel label_Y = new Label(shell, SWT.NONE);\n\t\tlabel_Y.setText(\"Y轴偏移值:\");\n\t\tlabel_Y.setBounds(225, 161, 68, 17);\n\t\t\n\t\tCombo combo_5 = new Combo(shell, SWT.NONE);\n\t\tcombo_5.setItems(new String[] {\"10\", \"20\", \"30\", \"40\", \"50\", \"80\", \"100\", \"160\", \"320\", \"640\"});\n\t\tcombo_5.setBounds(300, 158, 93, 25);\n\t\tcombo_5.setText(\"50\");\n\t\t\n\t\tLabel label_alpha = new Label(shell, SWT.NONE);\n\t\tlabel_alpha.setBounds(46, 204, 53, 17);\n\t\tlabel_alpha.setText(\"透明度:\");\n\t\t\n\t\tCombo combo_6 = new Combo(shell, SWT.NONE);\n\t\tcombo_6.setItems(new String[] {\"0\", \"0.1\", \"0.2\", \"0.3\", \"0.4\", \"0.5\", \"0.6\", \"0.7\", \"0.8\", \"0.9\", \"1.0\"});\n\t\tcombo_6.setBounds(115, 201, 93, 25);\n\t\tcombo_6.setText(\"0.8\");\n\t\t\n\t\t//取消按钮\n\t\tbutton_cancle.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tWordWatermarkDialog.this.shell.dispose();\n\t\t\t}\n\t\t});\n\t\t\n\t\t//确认按钮\n\t\tbutton_confirm.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\n\t\t\t\tif(text.getText().trim()==null || \"\".equals(text.getText().trim())\n\t\t\t\t\t\t||combo.getText().trim()==null || \"\".equals(combo.getText().trim()) \n\t\t\t\t\t\t\t||combo_1.getText().trim()==null || \"\".equals(combo_1.getText().trim())\n\t\t\t\t\t\t\t\t|| combo_2.getText().trim()==null || \"\".equals(combo_2.getText().trim())\n\t\t\t\t\t\t\t\t\t|| combo_3.getText().trim()==null || \"\".equals(combo_3.getText().trim())\n\t\t\t\t\t\t\t\t\t\t||combo_4.getText().trim()==null || \"\".equals(combo_4.getText().trim())\n\t\t\t\t\t\t\t\t\t\t\t||combo_5.getText().trim()==null || \"\".equals(combo_5.getText().trim())\n\t\t\t\t\t\t\t\t\t\t\t\t||combo_6.getText().trim()==null || \"\".equals(combo_6.getText().trim())){\n\t\t\t\t\tMessageDialog.openError(shell, \"错误\", \"输入框不能为空或输入空值,请确认后重新输入!\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tString word=text.getText().trim();\n\t\t\t\tString wordName=getFontName(combo.getText().trim());\n\t\t\t\tint wordStyle=getFonStyle(combo_1.getText().trim());\n\t\t\t\tint wordSize=Integer.parseInt(combo_2.getText().trim());\n\t\t\t\tColor wordColor=getFontColor(combo_3.getText().trim());\n\t\t\t\tint word_X=Integer.parseInt(combo_4.getText().trim());\n\t\t\t\tint word_Y=Integer.parseInt(combo_5.getText().trim());\n\t\t\t\tfloat word_Alpha=Float.parseFloat(combo_6.getText().trim());\n\t\t\t\t\n\t\t\t\tis=MeituUtils.waterMarkWord(EditorUi.filePath,word, wordName, wordStyle, wordSize, wordColor, word_X, word_Y,word_Alpha);\n\t\t\t\tCommon.image=new Image(display,is);\n\t\t\t\tWordWatermarkDialog.this.shell.dispose();\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\tcombo.addVerifyListener(new VerifyListener() { \n\t\t\t public void verifyText(VerifyEvent e) { \n\t\t\t Pattern pattern = Pattern.compile(\"[^0-9]*\"); \n\t\t\t Matcher matcher = pattern.matcher(e.text); \n\t\t\t if (matcher.matches()) // 处理数字 \n\t\t\t \t e.doit = true; \n\t\t\t else if (e.text.length() > 0) // 有字符情况,包含中文、空格 \n\t\t\t \t e.doit = false; \n\t\t\t else \n\t\t\t \t e.doit = false; \n\t\t\t } \n\t\t });\n\n\t\tcombo_1.addVerifyListener(new VerifyListener() { \n\t\t\t public void verifyText(VerifyEvent e) { \n\t\t\t Pattern pattern = Pattern.compile(\"[^0-9]*\"); \n\t\t\t Matcher matcher = pattern.matcher(e.text); \n\t\t\t if (matcher.matches()) // 处理数字 \n\t\t\t \t e.doit = true; \n\t\t\t else if (e.text.length() > 0) // 有字符情况,包含中文、空格 \n\t\t\t \t e.doit = false; \n\t\t\t else \n\t\t\t \t e.doit = false; \n\t\t\t } \n\t\t });\n\t\t\n\t\tcombo_2.addVerifyListener(new VerifyListener() { \n\t\t\t public void verifyText(VerifyEvent e) { \n\t\t\t Pattern pattern = Pattern.compile(\"[0-9]\\\\d*\"); \n\t\t\t Matcher matcher = pattern.matcher(e.text); \n\t\t\t if (matcher.matches()) // 处理数字 \n\t\t\t \t e.doit = true; \n\t\t\t else if (e.text.length() > 0) // 有字符情况,包含中文、空格 \n\t\t\t \t e.doit = false; \n\t\t\t else \n\t\t\t \t e.doit = false; \n\t\t\t } \n\t\t });\n\t\t\n\t\tcombo_3.addVerifyListener(new VerifyListener() { \n\t\t\t public void verifyText(VerifyEvent e) { \n\t\t\t Pattern pattern = Pattern.compile(\"[^0-9]*\"); \n\t\t\t Matcher matcher = pattern.matcher(e.text); \n\t\t\t if (matcher.matches()) // 处理数字 \n\t\t\t \t e.doit = true; \n\t\t\t else if (e.text.length() > 0) // 有字符情况,包含中文、空格 \n\t\t\t \t e.doit = false; \n\t\t\t else \n\t\t\t \t e.doit = false; \n\t\t\t } \n\t\t });\n\t\t\n\t\t\n\t\t\n\t\tcombo_4.addVerifyListener(new VerifyListener() { \n\t\t\t public void verifyText(VerifyEvent e) { \n\t\t\t Pattern pattern = Pattern.compile(\"[0-9]\\\\d*\"); \n\t\t\t Matcher matcher = pattern.matcher(e.text); \n\t\t\t if (matcher.matches()) // 处理数字 \n\t\t\t \t e.doit = true; \n\t\t\t else if (e.text.length() > 0) // 有字符情况,包含中文、空格 \n\t\t\t \t e.doit = false; \n\t\t\t else \n\t\t\t \t e.doit = false; \n\t\t\t } \n\t\t });\n\t\t\n\t\tcombo_5.addVerifyListener(new VerifyListener() { \n\t\t\t public void verifyText(VerifyEvent e) { \n\t\t\t Pattern pattern = Pattern.compile(\"[0-9]\\\\d*\"); \n\t\t\t Matcher matcher = pattern.matcher(e.text); \n\t\t\t if (matcher.matches()) // 处理数字 \n\t\t\t \t e.doit = true; \n\t\t\t else if (e.text.length() > 0) // 有字符情况,包含中文、空格 \n\t\t\t \t e.doit = false; \n\t\t\t else \n\t\t\t \t e.doit = false; \n\t\t\t } \n\t\t });\n\t\t\n\t\tcombo_6.addVerifyListener(new VerifyListener() { \n\t\t\t public void verifyText(VerifyEvent e) { \n\t\t\t Pattern pattern = Pattern.compile(\".[0-9]*\"); \n\t\t\t Matcher matcher = pattern.matcher(e.text); \n\t\t\t if (matcher.matches()) // 处理数字 \n\t\t\t \t e.doit = true; \n\t\t\t else if (e.text.length() > 0) // 有字符情况,包含中文、空格 \n\t\t\t \t e.doit = false; \n\t\t\t else \n\t\t\t \t e.doit = false; \n\t\t\t } \n\t\t });\n\n\t}", "protected void createContents() {\n\n\t}", "protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setSize(450, 300);\r\n\t\tshell.setText(\"SWT Application\");\r\n\r\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(764, 551);\n\t\tshell.setText(\"SWT Application\");\n\t\tshell.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tMenu menu = new Menu(shell, SWT.BAR);\n\t\tshell.setMenuBar(menu);\n\t\t\n\t\tMenuItem mntmFile = new MenuItem(menu, SWT.NONE);\n\t\tmntmFile.setText(\"File...\");\n\t\t\n\t\tMenuItem mntmEdit = new MenuItem(menu, SWT.NONE);\n\t\tmntmEdit.setText(\"Edit\");\n\t\t\n\t\tComposite composite = new Composite(shell, SWT.NONE);\n\t\tcomposite.setLayoutData(BorderLayout.CENTER);\n\t\tcomposite.setLayout(null);\n\t\t\n\t\tGroup grpDirectorio = new Group(composite, SWT.NONE);\n\t\tgrpDirectorio.setText(\"Directorio\");\n\t\tgrpDirectorio.setBounds(10, 86, 261, 387);\n\t\t\n\t\tGroup grpListadoDeAccesos = new Group(composite, SWT.NONE);\n\t\tgrpListadoDeAccesos.setText(\"Listado de Accesos\");\n\t\tgrpListadoDeAccesos.setBounds(277, 86, 477, 387);\n\t\t\n\t\tLabel label = new Label(composite, SWT.SEPARATOR | SWT.HORIZONTAL);\n\t\tlabel.setBounds(10, 479, 744, 2);\n\t\t\n\t\tButton btnNewButton = new Button(composite, SWT.NONE);\n\t\tbtnNewButton.setBounds(638, 491, 94, 28);\n\t\tbtnNewButton.setText(\"New Button\");\n\t\t\n\t\tButton btnNewButton_1 = new Button(composite, SWT.NONE);\n\t\tbtnNewButton_1.setBounds(538, 491, 94, 28);\n\t\tbtnNewButton_1.setText(\"New Button\");\n\t\t\n\t\tToolBar toolBar = new ToolBar(composite, SWT.FLAT | SWT.RIGHT);\n\t\ttoolBar.setBounds(10, 10, 744, 20);\n\t\t\n\t\tToolItem tltmAccion = new ToolItem(toolBar, SWT.NONE);\n\t\ttltmAccion.setText(\"Accion 1\");\n\t\t\n\t\tToolItem tltmAccion_1 = new ToolItem(toolBar, SWT.NONE);\n\t\ttltmAccion_1.setText(\"Accion 2\");\n\t\t\n\t\tToolItem tltmRadio = new ToolItem(toolBar, SWT.RADIO);\n\t\ttltmRadio.setText(\"Radio\");\n\t\t\n\t\tToolItem tltmItemDrop = new ToolItem(toolBar, SWT.DROP_DOWN);\n\t\ttltmItemDrop.setText(\"Item drop\");\n\t\t\n\t\tToolItem tltmCheckItem = new ToolItem(toolBar, SWT.CHECK);\n\t\ttltmCheckItem.setText(\"Check item\");\n\t\t\n\t\tCoolBar coolBar = new CoolBar(composite, SWT.FLAT);\n\t\tcoolBar.setBounds(10, 39, 744, 30);\n\t\t\n\t\tCoolItem coolItem_1 = new CoolItem(coolBar, SWT.NONE);\n\t\tcoolItem_1.setText(\"Accion 1\");\n\t\t\n\t\tCoolItem coolItem = new CoolItem(coolBar, SWT.NONE);\n\n\t}", "protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setSize(450, 300);\r\n\t\tshell.setText(\"SWT Application\");\r\n\t\t\r\n\t\tLabel label = new Label(shell, SWT.NONE);\r\n\t\tlabel.setBounds(44, 47, 90, 24);\r\n\t\tlabel.setText(\"充值金额:\");\r\n\t\t\r\n\t\ttext_balance = new Text(shell, SWT.BORDER);\r\n\t\ttext_balance.setBounds(156, 47, 198, 30);\r\n\t\t\r\n\t\tButton button = new Button(shell, SWT.NONE);\r\n\t\t//确认充值\r\n\t\tbutton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tString balance=text_balance.getText().trim();\r\n\t\t\t\ttry {\r\n\t\t\t\t\tint i=dao.add(balance);\r\n\t\t\t\t\tif(i>0){\r\n\t\t\t\t\t\tswtUtil.showMessage(shell, \"成功提示\", \"充值成功\");\r\n\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tswtUtil.showMessage(shell, \"错误提示\", \"所充值不能为零\");\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (SQLException e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton.setBounds(140, 131, 114, 34);\r\n\t\tbutton.setText(\"确认充值\");\r\n\r\n\t}", "private void createContents() {\r\n\t\tshlAjouterNouvelleEquation = new Shell(getParent(), SWT.DIALOG_TRIM | SWT.RESIZE | SWT.APPLICATION_MODAL);\r\n\t\tshlAjouterNouvelleEquation.setSize(363, 334);\r\n\t\tif(modification)\r\n\t\t\tshlAjouterNouvelleEquation.setText(\"Modifier Equation\");\r\n\t\telse\r\n\t\t\tshlAjouterNouvelleEquation.setText(\"Ajouter Nouvelle Equation\");\r\n\t\tshlAjouterNouvelleEquation.setLayout(new FormLayout());\r\n\r\n\r\n\t\tLabel lblContenuEquation = new Label(shlAjouterNouvelleEquation, SWT.NONE);\r\n\t\tFormData fd_lblContenuEquation = new FormData();\r\n\t\tfd_lblContenuEquation.top = new FormAttachment(0, 5);\r\n\t\tfd_lblContenuEquation.left = new FormAttachment(0, 5);\r\n\t\tlblContenuEquation.setLayoutData(fd_lblContenuEquation);\r\n\t\tlblContenuEquation.setText(\"Contenu Equation\");\r\n\r\n\r\n\t\tcontrainteButton = new Button(shlAjouterNouvelleEquation, SWT.CHECK);\r\n\t\tFormData fd_btnContrainte = new FormData();\r\n\t\tfd_btnContrainte.top = new FormAttachment(0, 27);\r\n\t\tfd_btnContrainte.right = new FormAttachment(100, -10);\r\n\t\tcontrainteButton.setLayoutData(fd_btnContrainte);\r\n\t\tcontrainteButton.setText(\"Contrainte\");\r\n\r\n\t\torientationButton = new Button(shlAjouterNouvelleEquation, SWT.CHECK);\r\n\t\tFormData fd_btnOrinet = new FormData();\r\n\t\tfd_btnOrinet.top = new FormAttachment(0, 27);\r\n\t\tfd_btnOrinet.right = new FormAttachment(contrainteButton, -10);\r\n\r\n\t\torientationButton.setLayoutData(fd_btnOrinet);\r\n\t\t\r\n\t\torientationButton.setText(\"Orient\\u00E9\");\r\n\r\n\t\tcontenuEquation = new Text(shlAjouterNouvelleEquation, SWT.BORDER|SWT.SINGLE);\r\n\t\tFormData fd_text = new FormData();\r\n\t\tfd_text.right = new FormAttachment(orientationButton, -10, SWT.LEFT);\r\n\t\tfd_text.top = new FormAttachment(0, 25);\r\n\t\tfd_text.left = new FormAttachment(0, 5);\r\n\t\tcontenuEquation.setLayoutData(fd_text);\r\n\r\n\t\tcontenuEquation.addListener(SWT.FocusOut, out->{\r\n\t\t\tSystem.out.println(\"Making list...\");\r\n\t\t\ttry {\r\n\t\t\t\tequation.getListeDeParametresEqn_DYNAMIC();\r\n\t\t\t\tif(!btnTerminer.isDisposed()){\r\n\t\t\t\t\tif(!btnTerminer.getEnabled())\r\n\t\t\t\t\t\t btnTerminer.setEnabled(true);\r\n\t\t\t\t}\r\n\t\t\t} catch (Exception e1) {\r\n\t\t\t\tthis.showError(shlAjouterNouvelleEquation, e1.toString());\r\n\t\t\t\t btnTerminer.setEnabled(false);\r\n\t\t\t\te1.printStackTrace();\r\n\t\t\t}\t\r\n\t\t});\r\n\r\n\t\tLabel lblNewLabel = new Label(shlAjouterNouvelleEquation, SWT.NONE);\r\n\t\tFormData fd_lblNewLabel = new FormData();\r\n\t\tfd_lblNewLabel.top = new FormAttachment(0, 51);\r\n\t\tfd_lblNewLabel.left = new FormAttachment(0, 5);\r\n\t\tlblNewLabel.setLayoutData(fd_lblNewLabel);\r\n\t\tlblNewLabel.setText(\"Param\\u00E8tre de Sortie\");\r\n\r\n\t\tparametreDeSortieCombo = new Combo(shlAjouterNouvelleEquation, SWT.DROP_DOWN |SWT.READ_ONLY);\r\n\t\tparametreDeSortieCombo.setEnabled(false);\r\n\r\n\t\tFormData fd_combo = new FormData();\r\n\t\tfd_combo.top = new FormAttachment(0, 71);\r\n\t\tfd_combo.left = new FormAttachment(0, 5);\r\n\t\tparametreDeSortieCombo.setLayoutData(fd_combo);\r\n\t\tparametreDeSortieCombo.addListener(SWT.FocusIn, in->{\r\n\t\t\tparametreDeSortieCombo.setItems(makeItems.apply(equation.getListeDeParametresEqn()));\r\n\t\t\tparametreDeSortieCombo.pack();\r\n\t\t\tparametreDeSortieCombo.update();\r\n\t\t});\r\n\r\n\t\tSashForm sashForm = new SashForm(shlAjouterNouvelleEquation, SWT.NONE);\r\n\t\tFormData fd_sashForm = new FormData();\r\n\t\tfd_sashForm.top = new FormAttachment(parametreDeSortieCombo, 6);\r\n\t\tfd_sashForm.bottom = new FormAttachment(100, -50);\r\n\t\tfd_sashForm.right = new FormAttachment(100);\r\n\t\tfd_sashForm.left = new FormAttachment(0, 5);\r\n\t\tsashForm.setLayoutData(fd_sashForm);\r\n\r\n\r\n\r\n\r\n\t\tGroup propertiesGroup = new Group(sashForm, SWT.NONE);\r\n\t\tpropertiesGroup.setLayout(new FormLayout());\r\n\r\n\t\tpropertiesGroup.setText(\"Propri\\u00E9t\\u00E9s\");\r\n\t\tFormData fd_propertiesGroup = new FormData();\r\n\t\tfd_propertiesGroup.top = new FormAttachment(0);\r\n\t\tfd_propertiesGroup.left = new FormAttachment(0);\r\n\t\tfd_propertiesGroup.bottom = new FormAttachment(100, 0);\r\n\t\tfd_propertiesGroup.right = new FormAttachment(100, 0);\r\n\t\tpropertiesGroup.setLayoutData(fd_propertiesGroup);\r\n\r\n\r\n\r\n\r\n\r\n\t\tproperties = new Text(propertiesGroup, SWT.BORDER | SWT.WRAP | SWT.V_SCROLL);\r\n\t\tFormData fd_grouptext = new FormData();\r\n\t\tfd_grouptext.top = new FormAttachment(0,0);\r\n\t\tfd_grouptext.left = new FormAttachment(0, 0);\r\n\t\tfd_grouptext.bottom = new FormAttachment(100, 0);\r\n\t\tfd_grouptext.right = new FormAttachment(100, 0);\r\n\t\tproperties.setLayoutData(fd_grouptext);\r\n\r\n\r\n\r\n\t\tGroup grpDescription = new Group(sashForm, SWT.NONE);\r\n\t\tgrpDescription.setText(\"Description\");\r\n\t\tgrpDescription.setLayout(new FormLayout());\r\n\t\tFormData fd_grpDescription = new FormData();\r\n\t\tfd_grpDescription.bottom = new FormAttachment(100, 0);\r\n\t\tfd_grpDescription.right = new FormAttachment(100,0);\r\n\t\tfd_grpDescription.top = new FormAttachment(0);\r\n\t\tfd_grpDescription.left = new FormAttachment(0);\r\n\t\tgrpDescription.setLayoutData(fd_grpDescription);\r\n\r\n\t\tdescription = new Text(grpDescription, SWT.BORDER | SWT.WRAP | SWT.V_SCROLL | SWT.MULTI);\r\n\t\tdescription.setParent(grpDescription);\r\n\r\n\t\tFormData fd_description = new FormData();\r\n\t\tfd_description.top = new FormAttachment(0,0);\r\n\t\tfd_description.left = new FormAttachment(0, 0);\r\n\t\tfd_description.bottom = new FormAttachment(100, 0);\r\n\t\tfd_description.right = new FormAttachment(100, 0);\r\n\r\n\t\tdescription.setLayoutData(fd_description);\r\n\r\n\r\n\t\tsashForm.setWeights(new int[] {50,50});\r\n\r\n\t\tbtnTerminer = new Button(shlAjouterNouvelleEquation, SWT.NONE);\r\n\t\tbtnTerminer.setEnabled(false);\r\n\t\tFormData fd_btnTerminer = new FormData();\r\n\t\tfd_btnTerminer.top = new FormAttachment(sashForm, 6);\r\n\t\tfd_btnTerminer.left = new FormAttachment(sashForm,0, SWT.CENTER);\r\n\t\tbtnTerminer.setLayoutData(fd_btnTerminer);\r\n\t\tbtnTerminer.setText(\"Terminer\");\r\n\t\tbtnTerminer.addListener(SWT.Selection, e->{\r\n\t\t\t\r\n\t\t\tboolean go = true;\r\n\t\t\tresult = null;\r\n\t\t\tif (status.equals(ValidationStatus.ok())) {\r\n\t\t\t\t//perform all the neccessary tests before validating the equation\t\t\t\t\t\r\n\t\t\t\tif(equation.isOriented()){\r\n\t\t\t\t\tif(!equation.getListeDeParametresEqn().contains(equation.getParametreDeSortie()) || equation.getParametreDeSortie() == null){\t\t\t\t\t\t\r\n\t\t\t\t\t\tString error = \"Erreur sur l'équation \"+equation.getContenuEqn();\r\n\t\t\t\t\t\tgo = false;\r\n\t\t\t\t\t\tshowError(shlAjouterNouvelleEquation, error);\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (go) {\r\n\t\t\t\t\t\tresult = Boolean.TRUE;\r\n\t\t\t\t\t\tshlAjouterNouvelleEquation.dispose();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tequation.setParametreDeSortie(null);\r\n\t\t\t\t\tresult = Boolean.TRUE;\r\n\t\t\t\t\t//Just some cleanup\r\n\t\t\t\t\tfor (Parametre par : equation.getListeDeParametresEqn()) {\r\n\t\t\t\t\t\tif (par.getTypeP().equals(TypeParametre.OUTPUT)) {\t\t\t\t\t\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\tpar.setTypeP(TypeParametre.UNDETERMINED);\r\n\t\t\t\t\t\t\t\tpar.setSousTypeP(SousTypeParametre.FREE);\r\n\t\t\t\t\t\t\t} catch (Exception e1) {\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tshlAjouterNouvelleEquation.dispose();\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t//\tSystem.out.println(equation.getContenuEqn() +\"\\n\"+equation.isConstraint()+\"\\n\"+equation.isOriented()+\"\\n\"+equation.getParametreDeSortie());\r\n\t\t});\r\n\r\n\t\t//In this sub routine I bind the values to the respective controls in order to observe changes \r\n\t\t//and verify the data insertion\r\n\t\tbindValues();\r\n\t}", "private void createContents() {\r\n\t\tshell = new Shell(getParent(), getStyle());\r\n\t\tshell.setSize(450, 300);\r\n\t\tshell.setText(getText());\r\n\t\tshell.setLayout(new FillLayout(SWT.HORIZONTAL));\r\n\t\t\r\n\t\tComposite composite = new Composite(shell, SWT.NONE);\r\n\t\tcomposite.setLayout(new FillLayout(SWT.HORIZONTAL));\r\n\t\t\r\n\t\tComposite composite_1 = new Composite(composite, SWT.NONE);\r\n\t\tRowLayout rl_composite_1 = new RowLayout(SWT.VERTICAL);\r\n\t\trl_composite_1.center = true;\r\n\t\trl_composite_1.fill = true;\r\n\t\tcomposite_1.setLayout(rl_composite_1);\r\n\t\t\r\n\t\tComposite composite_2 = new Composite(composite_1, SWT.NONE);\r\n\t\tcomposite_2.setLayout(new FillLayout(SWT.VERTICAL));\r\n\t\t\r\n\t\tButton btnNewButton = new Button(composite_2, SWT.NONE);\r\n\t\tbtnNewButton.setText(\"New Button\");\r\n\t\t\r\n\t\tButton btnRadioButton = new Button(composite_2, SWT.RADIO);\r\n\t\tbtnRadioButton.setText(\"Radio Button\");\r\n\t\t\r\n\t\tButton btnCheckButton = new Button(composite_2, SWT.CHECK);\r\n\t\tbtnCheckButton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnCheckButton.setText(\"Check Button\");\r\n\r\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(538, 450);\n\t\tshell.setText(\"SWT Application\");\n\n\t\tfinal DateTime dateTime = new DateTime(shell, SWT.BORDER | SWT.CALENDAR);\n\t\tdateTime.setBounds(10, 10, 514, 290);\n\n\t\tfinal DateTime dateTime_1 = new DateTime(shell, SWT.BORDER | SWT.TIME);\n\t\tdateTime_1.setBounds(10, 306, 135, 29);\n\t\tvideoPath = new Text(shell, SWT.BORDER);\n\t\tvideoPath.setBounds(220, 306, 207, 27);\n\n\t\tButton btnBrowseVideo = new Button(shell, SWT.NONE);\n\t\tbtnBrowseVideo.addListener(SWT.Selection, new Listener() {\n\t\t\t@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\tFileDialog fileDialog = new FileDialog(shell, SWT.MULTI);\n\t\t\t\tString fileFilterPath = \"\";\n\t\t\t\tfileDialog.setFilterPath(fileFilterPath);\n\t\t\t\tfileDialog.setFilterExtensions(new String[] { \"*.*\" });\n\t\t\t\tfileDialog.setFilterNames(new String[] { \"Any\" });\n\t\t\t\tString firstFile = fileDialog.open();\n\t\t\t\tif (firstFile != null) {\n\t\t\t\t\tvideoPath.setText(firstFile);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnBrowseVideo.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\n\t\t\t}\n\t\t});\n\t\tbtnBrowseVideo.setBounds(433, 306, 91, 29);\n\t\tbtnBrowseVideo.setText(\"browse\");\n\t\ttorrentPath = new Text(shell, SWT.BORDER);\n\t\ttorrentPath.setBounds(220, 341, 207, 27);\n\t\tButton btnBrowseTorrent = new Button(shell, SWT.NONE);\n\t\tbtnBrowseTorrent.setText(\"browse\");\n\t\tbtnBrowseTorrent.setBounds(433, 339, 91, 29);\n\t\tbtnBrowseTorrent.addListener(SWT.Selection, new Listener() {\n\t\t\t@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\tFileDialog fileDialog = new FileDialog(shell, SWT.MULTI);\n\t\t\t\tString fileFilterPath = \"\";\n\t\t\t\tfileDialog.setFilterPath(fileFilterPath);\n\t\t\t\tfileDialog.setFilterExtensions(new String[] { \"*.*\" });\n\t\t\t\tfileDialog.setFilterNames(new String[] { \"Any\" });\n\t\t\t\tString firstFile = fileDialog.open();\n\t\t\t\tif (firstFile != null) {\n\t\t\t\t\ttorrentPath.setText(firstFile);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tButton btnGenerateTorrent = new Button(shell, SWT.NONE);\n\t\tbtnGenerateTorrent.setBounds(10, 374, 516, 29);\n\t\tbtnGenerateTorrent.setText(\"Generate Torrent\");\n\n\t\tvideoLength = new Text(shell, SWT.BORDER);\n\t\tvideoLength.setBounds(10, 341, 135, 27);\n\t\t\n\t\tLabel lblNewLabel = new Label(shell, SWT.RIGHT);\n\t\tlblNewLabel.setAlignment(SWT.LEFT);\n\t\tlblNewLabel.setBounds(157, 315, 48, 18);\n\t\tlblNewLabel.setText(\"Video\");\n\t\t\n\t\tLabel lblTorrent = new Label(shell, SWT.RIGHT);\n\t\tlblTorrent.setText(\"Torrent\");\n\t\tlblTorrent.setBounds(157, 341, 48, 18);\n\t\tbtnGenerateTorrent.addListener(SWT.Selection, new Listener() {\n\t\t\t@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\tFile video = new File(videoPath.getText());\n\t\t\t\ttry {\n\t\t\t\t\tif (video.exists() && torrentPath.getText() != \"\") {\n\t\t\t\t\t\tMap parameters = new HashMap();\n\t\t\t\t\t\tparameters.put(\"start\", dateTime.getYear() + \"/\" + (dateTime.getMonth()+1) + \"/\" + dateTime.getDay() + \"-\" + dateTime_1.getHours() + \":\" + dateTime_1.getMinutes() + \":\" + dateTime_1.getSeconds());\n\t\t\t\t\t\tparameters.put(\"target\", torrentPath.getText());\n\t\t\t\t\t\tparameters.put(\"length\", videoLength.getText());\n\t\t\t\t\t\tSystem.out.println(\"start generating \"+parameters.get(\"length\"));\n\t\t\t\t\t\tnew MakeTorrent(videoPath.getText(), new URL(\"https://jomican.csie.org/~jimmy/tracker/announce.php\"), parameters);\n\t\t\t\t\t\tSystem.out.println(\"end generating\");\n\t\t\t\t\t\tFile var = new File(\"var.js\");\n\t\t\t\t\t\tPrintStream stream=new PrintStream(new FileOutputStream(var,false));\n\t\t\t\t\t\tstream.println(\"start_time = \"+(new SimpleDateFormat(\"yyyy/MM/dd-HH:mm:ss\").parse(dateTime.getYear() + \"/\" + (dateTime.getMonth()+1) + \"/\" + dateTime.getDay() + \"-\" + dateTime_1.getHours() + \":\" + dateTime_1.getMinutes() + \":\" + dateTime_1.getSeconds()).getTime() / 1000)+\";\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"jizz\");\n\t\t\t\t\t}\n\t\t\t\t} catch (MalformedURLException e) {\n\t\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t}", "private void createContents() {\n shell = new Shell(getParent(), SWT.BORDER | SWT.TITLE | SWT.APPLICATION_MODAL);\n shell.setSize(FORM_WIDTH, 700);\n shell.setText(getText());\n shell.setLayout(new GridLayout(1, false));\n\n TabFolder tabFolder = new TabFolder(shell, SWT.NONE);\n tabFolder.setLayoutData(TAB_GROUP_LAYOUT_DATA);\n\n // STRUCTURE PARAMETERS\n\n TabItem tbtmStructure = new TabItem(tabFolder, SWT.NONE);\n tbtmStructure.setText(\"Structure\");\n\n Composite grpStructure = new Composite(tabFolder, SWT.NONE);\n tbtmStructure.setControl(grpStructure);\n grpStructure.setLayout(TAB_GROUP_LAYOUT);\n grpStructure.setLayoutData(TAB_GROUP_LAYOUT_DATA);\n\n ParmDialogText.load(grpStructure, parms, \"meta\");\n ParmDialogText.load(grpStructure, parms, \"col\");\n ParmDialogText.load(grpStructure, parms, \"id\");\n ParmDialogChoices.load(grpStructure, parms, \"init\", Activation.values());\n ParmDialogChoices.load(grpStructure, parms, \"activation\", Activation.values());\n ParmDialogFlag.load(grpStructure, parms, \"raw\");\n ParmDialogFlag.load(grpStructure, parms, \"batch\");\n ParmDialogGroup cnn = ParmDialogText.load(grpStructure, parms, \"cnn\");\n ParmDialogGroup filters = ParmDialogText.load(grpStructure, parms, \"filters\");\n ParmDialogGroup strides = ParmDialogText.load(grpStructure, parms, \"strides\");\n ParmDialogGroup subs = ParmDialogText.load(grpStructure, parms, \"sub\");\n if (cnn != null) {\n if (filters != null) cnn.setGrouped(filters);\n if (strides != null) cnn.setGrouped(strides);\n if (subs != null) cnn.setGrouped(subs);\n }\n ParmDialogText.load(grpStructure, parms, \"lstm\");\n ParmDialogGroup wGroup = ParmDialogText.load(grpStructure, parms, \"widths\");\n ParmDialogGroup bGroup = ParmDialogText.load(grpStructure, parms, \"balanced\");\n if (bGroup != null && wGroup != null) {\n wGroup.setExclusive(bGroup);\n bGroup.setExclusive(wGroup);\n }\n\n // SEARCH CONTROL PARAMETERS\n\n TabItem tbtmSearch = new TabItem(tabFolder, SWT.NONE);\n tbtmSearch.setText(\"Training\");\n\n ScrolledComposite grpSearch0 = new ScrolledComposite(tabFolder, SWT.V_SCROLL);\n grpSearch0.setLayout(new FillLayout());\n grpSearch0.setLayoutData(TAB_GROUP_LAYOUT_DATA);\n tbtmSearch.setControl(grpSearch0);\n Composite grpSearch = new Composite(grpSearch0, SWT.NONE);\n grpSearch0.setContent(grpSearch);\n grpSearch.setLayout(TAB_GROUP_LAYOUT);\n grpSearch.setLayoutData(TAB_GROUP_LAYOUT_DATA);\n\n Enum<?>[] preferTypes = (this.modelType == TrainingProcessor.Type.CLASS ? RunStats.OptimizationType.values()\n : RunStats.RegressionType.values());\n ParmDialogChoices.load(grpSearch, parms, \"prefer\", preferTypes);\n ParmDialogChoices.load(grpSearch, parms, \"method\", Trainer.Type.values());\n ParmDialogText.load(grpSearch, parms, \"bound\");\n ParmDialogChoices.load(grpSearch, parms, \"lossFun\", LossFunctionType.values());\n ParmDialogText.load(grpSearch, parms, \"weights\");\n ParmDialogText.load(grpSearch, parms, \"iter\");\n ParmDialogText.load(grpSearch, parms, \"batchSize\");\n ParmDialogText.load(grpSearch, parms, \"testSize\");\n ParmDialogText.load(grpSearch, parms, \"maxBatches\");\n ParmDialogText.load(grpSearch, parms, \"earlyStop\");\n ParmDialogChoices.load(grpSearch, parms, \"regMode\", Regularization.Mode.values());\n ParmDialogText.load(grpSearch, parms, \"regFactor\");\n ParmDialogText.load(grpSearch, parms, \"seed\");\n ParmDialogChoices.load(grpSearch, parms, \"start\", WeightInit.values());\n ParmDialogChoices.load(grpSearch, parms, \"gradNorm\", GradientNormalization.values());\n ParmDialogChoices.load(grpSearch, parms, \"updater\", GradientUpdater.Type.values());\n ParmDialogText.load(grpSearch, parms, \"learnRate\");\n ParmDialogChoices.load(grpSearch, parms, \"bUpdater\", GradientUpdater.Type.values());\n ParmDialogText.load(grpSearch, parms, \"updateRate\");\n\n grpSearch.setSize(grpSearch.computeSize(FORM_WIDTH - 50, SWT.DEFAULT));\n\n // BOTTOM BUTTON BAR\n\n Composite grpButtonBar = new Composite(shell, SWT.NONE);\n grpButtonBar.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, true, false, 1, 1));\n grpButtonBar.setLayout(new FillLayout(SWT.HORIZONTAL));\n\n Button btnSave = new Button(grpButtonBar, SWT.NONE);\n btnSave.setText(\"Save\");\n btnSave.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent evt) {\n try {\n parms.save(parmFile);\n } catch (IOException e) {\n ShellUtils.showErrorBox(getParent(), \"Error Saving Parm File\", e.getMessage());\n }\n }\n });\n\n Button btnClose = new Button(grpButtonBar, SWT.NONE);\n btnClose.setText(\"Cancel\");\n btnClose.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent evt) {\n shell.close();\n }\n });\n\n Button btnOK = new Button(grpButtonBar, SWT.NONE);\n btnOK.setText(\"Save and Close\");\n btnOK.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent evt) {\n try {\n parms.save(parmFile);\n shell.close();\n } catch (IOException e) {\n ShellUtils.showErrorBox(getParent(), \"Error Saving Parm File\", e.getMessage());\n }\n }\n });\n\n }", "private void createContents() {\n\t\tshlEditionRussie = new Shell(getParent(), getStyle());\n\t\tshlEditionRussie.setSize(470, 262);\n\t\tshlEditionRussie.setText(\"Edition r\\u00E9ussie\");\n\t\t\n\t\tLabel lblLeFilm = new Label(shlEditionRussie, SWT.NONE);\n\t\tlblLeFilm.setBounds(153, 68, 36, 15);\n\t\tlblLeFilm.setText(\"Le film\");\n\t\t\n\t\tLabel lblXx = new Label(shlEditionRussie, SWT.NONE);\n\t\tlblXx.setBounds(195, 68, 21, 15);\n\t\tlblXx.setText(\"\" + getViewModel());\n\t\t\n\t\tLabel lblABient = new Label(shlEditionRussie, SWT.NONE);\n\t\tlblABient.setText(\"a bien \\u00E9t\\u00E9 modifi\\u00E9\");\n\t\tlblABient.setBounds(222, 68, 100, 15);\n\t\t\n\t\tButton btnRevenirLa = new Button(shlEditionRussie, SWT.NONE);\n\t\tbtnRevenirLa.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tm_Infrastructure.runController(shlEditionRussie, ListMoviesController.class);\n\t\t\t}\n\t\t});\n\t\tbtnRevenirLa.setBounds(153, 105, 149, 25);\n\t\tbtnRevenirLa.setText(\"Revenir \\u00E0 la liste des films\");\n\n\t}", "private void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\r\n\t\tshell.setSize(500, 400);\r\n\t\tshell.setText(\"SWT Application\");\r\n\t\tshell.setLayout(new FormLayout());\r\n\t\t\r\n\t\tSERVER_COUNTRY locale = SERVER_COUNTRY.DE;\r\n\t\tString username = JOptionPane.showInputDialog(\"Username\");\r\n\t\tString password = JOptionPane.showInputDialog(\"Password\");\r\n\t\tBot bot = new Bot(username, password, locale);\r\n\t\t\r\n\t\tGroup grpActions = new Group(shell, SWT.NONE);\r\n\t\tgrpActions.setText(\"Actions\");\r\n\t\tgrpActions.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\r\n\t\tgrpActions.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.NORMAL));\r\n\t\tgrpActions.setForeground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\r\n\t\tgrpActions.setLayout(new GridLayout(5, false));\r\n\t\tFormData fd_grpActions = new FormData();\r\n\t\tfd_grpActions.left = new FormAttachment(0, 203);\r\n\t\tfd_grpActions.right = new FormAttachment(100, -10);\r\n\t\tfd_grpActions.top = new FormAttachment(0, 10);\r\n\t\tfd_grpActions.bottom = new FormAttachment(0, 152);\r\n\t\tgrpActions.setLayoutData(fd_grpActions);\r\n\t\t\r\n\t\tConsole = new Text(shell, SWT.BORDER | SWT.READ_ONLY | SWT.V_SCROLL | SWT.MULTI);\r\n\t\tFormData fd_Console = new FormData();\r\n\t\tfd_Console.left = new FormAttachment(grpActions, 0, SWT.LEFT);\r\n\t\tfd_Console.right = new FormAttachment(100, -10);\r\n\t\tConsole.setLayoutData(fd_Console);\r\n\r\n\t\t\r\n\t\tButton Feed = new Button(grpActions, SWT.CHECK);\r\n\t\tFeed.setSelection(true);\r\n\t\tFeed.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tfeed = !feed;\r\n\t\t\t\tConsole.append(\"\\nTest\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tFeed.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tFeed.setText(\"Feed\");\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\tButton Drink = new Button(grpActions, SWT.CHECK);\r\n\t\tDrink.setSelection(true);\r\n\t\tDrink.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tdrink = !drink;\r\n\t\t\t}\r\n\t\t});\r\n\t\tDrink.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tDrink.setText(\"Drink\");\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\tButton Stroke = new Button(grpActions, SWT.CHECK);\r\n\t\tStroke.setSelection(true);\r\n\t\tStroke.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tstroke = !stroke;\r\n\t\t\t}\r\n\t\t});\r\n\t\tStroke.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tStroke.setText(\"Stroke\");\r\n\t\t\r\n\t\t\r\n\t\t//STATIC\r\n\t\tLabel lblNewLabel_0 = new Label(grpActions, SWT.NONE);\r\n\t\tlblNewLabel_0.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tlblNewLabel_0.setImage(SWTResourceManager.getImage(MainWindow.class, \"/PNGs/feed.png\"));\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\tLabel lblNewLabel_1 = new Label(grpActions, SWT.NONE);\r\n\t\tlblNewLabel_1.setImage(SWTResourceManager.getImage(MainWindow.class, \"/PNGs/drink.png\"));\r\n\t\tlblNewLabel_1.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\t\r\n\t\tGroup grpBreeds = new Group(shell, SWT.NONE);\r\n\t\tgrpBreeds.setText(\"Breeds\");\r\n\t\tgrpBreeds.setLayout(new GridLayout(1, false));\r\n\t\t\r\n\t\tFormData fd_grpBreeds = new FormData();\r\n\t\tfd_grpBreeds.top = new FormAttachment(0, 10);\r\n\t\tfd_grpBreeds.bottom = new FormAttachment(100, -10);\r\n\t\tfd_grpBreeds.right = new FormAttachment(0, 180);\r\n\t\tfd_grpBreeds.left = new FormAttachment(0, 10);\r\n\t\tgrpBreeds.setLayoutData(fd_grpBreeds);\r\n\t\t\r\n\t\tButton Defaults = new Button(grpBreeds, SWT.RADIO);\r\n\t\tDefaults.setText(\"Defaults\");\r\n\t\t//END STATIC\r\n\t\t\r\n\t\tbot.account.api.requests.setTimeout(200);\r\n\t\tbot.logger.printlevel = 1;\t\r\n\t\t\r\n\t\tReturn<HashMap<Integer,Breed>> b = bot.getBreeds();\t\t\r\n\t\tif(!b.sucess) {\r\n\t\t\tConsole.append(\"\\nERROR!\");\r\n\t\t\tSystem.exit(-1);\r\n\t\t}\t\t\r\n\t\t\r\n\t\t\r\n\r\n\t\tIterator<Breed> iterator = b.data.values().iterator();\r\n\t\tHashMap<String, java.awt.Button> buttons = new HashMap<String, Button>();\r\n\t\t\r\n\t\twhile(iterator.hasNext()) {\r\n\t\t\tBreed breed = iterator.next();\r\n\t\t\t\r\n\t\t\tString name = breed.name;\r\n\t\t\t\r\n\t\t\tButton btn = new Button(grpBreeds, SWT.RADIO);\r\n\t\t\tbtn.setText(name);\r\n\t\t\t\r\n\t\t\tbuttons.put(name, btn);\r\n\t\t\t\r\n\t\t\t//\tTODO - Für jeden Breed wird ein Button erstellt:\r\n\t\t\t//\tButton [HIER DER BREED NAME] = new Button(grpBreeds, SWT.RADIO); <-- Dass geht nicht so wirklich so\r\n\t\t\t//\tDefaults.setText(\"[BREED NAME]\");\r\n\t\t}\r\n\t\t\r\n\t\t// um ein button mit name <name> zu bekommen: Button whatever = buttons.get(<name>);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tButton btnStartBot = new Button(shell, SWT.NONE);\r\n\t\tfd_Console.top = new FormAttachment(0, 221);\r\n\t\tbtnStartBot.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tConsole.setText(\"Starting bot... \");\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t/*TODO\r\n\t\t\t\tBreed[] breeds = new Breed[b.data.size()];\r\n\t\t\t\t\r\n\t\t\t\tIterator<Breed> br = b.data.values().iterator();\r\n\t\t\t\t\r\n\t\t\t\tfor(int i = 0; i < b.data.size(); i++) {\r\n\t\t\t\t\tbreeds[i] = br.next();\r\n\t\t\t\t};\r\n\t\t\t\tBreed s = (Breed) JOptionPane.showInputDialog(null, \"Choose breed\", \"breed selector\", JOptionPane.PLAIN_MESSAGE, null, breeds, \"default\");\r\n\t\t\t\tEND TODO*/\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t//Breed breed, boolean drink, boolean stroke, boolean groom, boolean carrot, boolean mash, boolean suckle, boolean feed, boolean sleep, boolean centreMission, long timeout, Bot bot, Runnable onEnd\r\n\t\t\t\tReturn<BasicBreedTasksAsync> ret = bot.basicBreedTasks(0, drink, stroke, groom, carrot, mash, suckle, feed, sleep, mission, 500, new Runnable() {\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"FINISHED!\", \"Bot\", JOptionPane.PLAIN_MESSAGE);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\tbot.logout();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t});\r\n\t\t\t\t\r\n\t\t\t\tif(!ret.sucess) {\r\n\t\t\t\t\tConsole.append(\"ERROR\");\r\n\t\t\t\t\tSystem.exit(-1);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tret.data.start();\r\n\t\t\t\t\r\n\t\t\t\t//TODO\r\n\t\t\t\twhile(ret.data.running()) {\r\n\t\t\t\t\tSleeper.sleep(5000);\r\n\t\t\t\t\tif(ret.data.getProgress() == 1)\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tConsole.append(\"progress: \" + (ret.data.getProgress() * 100) + \"%\");\r\n\t\t\t\t\tConsole.append(\"ETA: \" + (ret.data.getEta() / 1000) + \"sec.\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\tFormData fd_btnStartBot = new FormData();\r\n\t\tfd_btnStartBot.left = new FormAttachment(grpActions, 0, SWT.LEFT);\r\n\t\tbtnStartBot.setLayoutData(fd_btnStartBot);\r\n\t\tbtnStartBot.setText(\"Start Bot\");\r\n\t\t\r\n\t\tButton btnStopBot = new Button(shell, SWT.NONE);\r\n\t\tfd_btnStartBot.top = new FormAttachment(btnStopBot, 0, SWT.TOP);\r\n\t\tbtnStopBot.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tConsole.append(\"Stopping bot...\");\r\n\t\t\t\tbot.logout();\r\n\t\t\t}\r\n\t\t});\r\n\t\tFormData fd_btnStopBot = new FormData();\r\n\t\tfd_btnStopBot.right = new FormAttachment(grpActions, 0, SWT.RIGHT);\r\n\t\tbtnStopBot.setLayoutData(fd_btnStopBot);\r\n\t\tbtnStopBot.setText(\"Stop Bot\");\r\n\t\t\t\r\n\t\t\r\n\t\tProgressBar progressBar = new ProgressBar(shell, SWT.NONE);\r\n\t\tfd_Console.bottom = new FormAttachment(progressBar, -6);\r\n\t\tfd_btnStopBot.bottom = new FormAttachment(progressBar, -119);\r\n\t\t\r\n\t\tFormData fd_progressBar = new FormData();\r\n\t\tfd_progressBar.left = new FormAttachment(grpBreeds, 23);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t//STATIC\r\n\t\tLabel lblNewLabel_2 = new Label(grpActions, SWT.NONE);\r\n\t\tlblNewLabel_2.setImage(SWTResourceManager.getImage(MainWindow.class, \"/PNGs/stroke.png\"));\r\n\t\tlblNewLabel_2.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\t\r\n\t\tButton Groom = new Button(grpActions, SWT.CHECK);\r\n\t\tGroom.setSelection(true);\r\n\t\tGroom.setSelection(true);\r\n\t\tGroom.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tgroom = !groom;\r\n\t\t\t}\r\n\t\t});\r\n\t\tGroom.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tGroom.setText(\"Groom\");\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\tButton Treat = new Button(grpActions, SWT.CHECK);\r\n\t\tTreat.setSelection(true);\r\n\t\tTreat.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tcarrot = !carrot;\r\n\t\t\t}\r\n\t\t});\r\n\t\tTreat.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tTreat.setText(\"Treat\");\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\tButton Mash = new Button(grpActions, SWT.CHECK);\r\n\t\tMash.setSelection(true);\r\n\t\tMash.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tmash = !mash;\r\n\t\t\t}\r\n\t\t});\r\n\t\tMash.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tMash.setText(\"Mash\");\r\n\t\t\r\n\t\tLabel lblNewLabel_3 = new Label(grpActions, SWT.NONE);\r\n\t\tlblNewLabel_3.setImage(SWTResourceManager.getImage(MainWindow.class, \"/PNGs/groom.png\"));\r\n\t\tlblNewLabel_3.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\tLabel lblNewLabel_4 = new Label(grpActions, SWT.NONE);\r\n\t\tlblNewLabel_4.setImage(SWTResourceManager.getImage(MainWindow.class, \"/PNGs/carotte.png\"));\r\n\t\tlblNewLabel_4.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\tLabel lblNewLabel_5 = new Label(grpActions, SWT.NONE);\r\n\t\tlblNewLabel_5.setImage(SWTResourceManager.getImage(MainWindow.class, \"/PNGs/mash.png\"));\r\n\t\tlblNewLabel_5.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\t\r\n\t\tButton btnSleep = new Button(grpActions, SWT.CHECK);\r\n\t\tbtnSleep.setSelection(true);\r\n\t\tbtnSleep.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tsleep = !sleep;\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnSleep.setText(\"Sleep\");\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\tButton btnMission = new Button(grpActions, SWT.CHECK);\r\n\t\tbtnMission.setSelection(true);\r\n\t\tbtnMission.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tmission = !mission;\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnMission.setText(\"Mission\");\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\r\n\t}", "protected void createContents() {\n\t\tshlCarbAndRemainder = new Shell(Display.getDefault(), SWT.TITLE|SWT.CLOSE|SWT.BORDER);\n\t\tshlCarbAndRemainder.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\tshlCarbAndRemainder.setSize(323, 262);\n\t\tshlCarbAndRemainder.setText(\"CARB and Remainder\");\n\t\t\n\t\tGroup grpCarbSetting = new Group(shlCarbAndRemainder, SWT.NONE);\n\t\tgrpCarbSetting.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\tgrpCarbSetting.setFont(SWTResourceManager.getFont(\"Calibri\", 12, SWT.BOLD));\n\t\tgrpCarbSetting.setText(\"CARB Setting\");\n\t\t\n\t\tgrpCarbSetting.setBounds(10, 0, 295, 106);\n\t\t\n\t\tLabel lblCARBValue = new Label(grpCarbSetting, SWT.NONE);\n\t\tlblCARBValue.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\tlblCARBValue.setBounds(10, 32, 149, 22);\n\t\tlblCARBValue.setText(\"CARB Value\");\n\t\t\n\t\tLabel lblAuthenticationPIN = new Label(grpCarbSetting, SWT.NONE);\n\t\tlblAuthenticationPIN.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\tlblAuthenticationPIN.setBounds(10, 68, 149, 22);\n\t\tlblAuthenticationPIN.setText(\"Authentication PIN\");\n\t\t\n\t\tSpinner spinnerCARBValue = new Spinner(grpCarbSetting, SWT.BORDER);\n\t\tspinnerCARBValue.setBounds(206, 29, 72, 22);\n\t\t\n\t\ttextAuthenticationPIN = new Text(grpCarbSetting, SWT.BORDER|SWT.PASSWORD);\n\t\ttextAuthenticationPIN.setBounds(206, 65, 72, 21);\n\t\t\t\t\n\t\tGroup grpRemainder = new Group(shlCarbAndRemainder, SWT.NONE);\n\t\tgrpRemainder.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\tgrpRemainder.setFont(SWTResourceManager.getFont(\"Calibri\", 12, SWT.BOLD));\n\t\tgrpRemainder.setText(\"Remainder\");\n\t\tgrpRemainder.setBounds(10, 112, 296, 106);\n\t\t\n\t\tButton btnInjectBolus = new Button(grpRemainder, SWT.NONE);\n\t\tbtnInjectBolus.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\tbtnInjectBolus.setBounds(183, 38, 103, 41);\n\t\tbtnInjectBolus.setText(\"INJECT BOLUS\");\n\t\t\n\t\tButton btnCancel = new Button(grpRemainder, SWT.NONE);\n\t\tbtnCancel.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshlCarbAndRemainder.close();\n\t\t\t}\n\t\t});\n\t\tbtnCancel.setBounds(10, 38, 80, 41);\n\t\tbtnCancel.setText(\"Cancel\");\n\t\t\n\t\tButton btnSnooze = new Button(grpRemainder, SWT.NONE);\n\t\tbtnSnooze.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\tbtnSnooze.setBounds(96, 38, 81, 41);\n\t\tbtnSnooze.setText(\"Snooze\");\n\n\t}", "protected void createContents() {\n\t\tshell = new Shell(SWT.TITLE | SWT.CLOSE | SWT.BORDER);\n\t\tshell.setSize(713, 226);\n\t\tshell.setText(\"ALT Planner\");\n\t\t\n\t\tCalendarPop calendarComp = new CalendarPop(shell, SWT.NONE);\n\t\tcalendarComp.setBounds(5, 5, 139, 148);\n\t\t\n\t\tComposite composite = new PlannerInterface(shell, SWT.NONE, calendarComp);\n\t\tcomposite.setBounds(0, 0, 713, 200);\n\t\t\n\t\tMenu menu = new Menu(shell, SWT.BAR);\n\t\tshell.setMenuBar(menu);\n\t\t\n\t\tMenuItem mntmFile = new MenuItem(menu, SWT.CASCADE);\n\t\tmntmFile.setText(\"File\");\n\t\t\n\t\tMenu menu_1 = new Menu(mntmFile);\n\t\tmntmFile.setMenu(menu_1);\n\t\t\n\t\tMenuItem mntmSettings = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmSettings.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tSettings settings = new Settings(Display.getDefault());\n\t\t\t\tsettings.open();\n\t\t\t}\n\t\t});\n\t\tmntmSettings.setText(\"Settings\");\n\t}", "protected void createContents() {\n\t\tshell = new Shell(shell,SWT.SHELL_TRIM|SWT.APPLICATION_MODAL);\n\t\tshell.setImage(SWTResourceManager.getImage(\"C:\\\\Users\\\\Administrator\\\\Desktop\\\\GupiaoNo4\\\\Project\\\\GupiaoNo4\\\\data\\\\chaogushenqi.png\"));\n\t\tshell.setSize(467, 398);\n\t\tshell.setText(\"\\u5356\\u7A7A\");\n\t\t\n\t\ttext_code = new Text(shell, SWT.BORDER);\n\t\ttext_code.setBounds(225, 88, 73, 23);\n\t\t\n\t\ttext_uprice = new Text(shell, SWT.BORDER | SWT.READ_ONLY);\n\t\ttext_uprice.setBounds(225, 117, 73, 23);\n\t\t\n\t\ttext_downprice = new Text(shell, SWT.BORDER | SWT.READ_ONLY);\n\t\ttext_downprice.setBounds(225, 146, 73, 23);\n\t\t\n\t\ttext_price = new Text(shell, SWT.BORDER);\n\t\ttext_price.setBounds(225, 178, 73, 23);\n\t\t\n\t\ttext_num = new Text(shell, SWT.BORDER);\n\t\ttext_num.setBounds(225, 207, 73, 23);\n\t\t\n\t\t//下单,取消按钮\n\t\tButton btnNewButton = new Button(shell, SWT.NONE);\n\t\tbtnNewButton.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\tpaceoder();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton.setBounds(116, 284, 58, 27);\n\t\tbtnNewButton.setText(\"\\u4E0B\\u5355\");\n\t\t\n\t\tButton btnNewButton_1 = new Button(shell, SWT.NONE);\n\t\tbtnNewButton_1.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\tshell.dispose();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton_1.setBounds(225, 284, 58, 27);\n\t\tbtnNewButton_1.setText(\"\\u53D6\\u6D88\");\n\t\t\n\t\tLabel lbl_code = new Label(shell, SWT.NONE);\n\t\tlbl_code.setBounds(116, 91, 60, 17);\n\t\tlbl_code.setText(\"股票代码:\");\n\t\t\n\t\tLabel lbl_upprice = new Label(shell, SWT.NONE);\n\t\tlbl_upprice.setBounds(116, 120, 60, 17);\n\t\tlbl_upprice.setText(\"涨停价格:\");\n\t\t\n\t\tLabel lbl_downprice = new Label(shell, SWT.NONE);\n\t\tlbl_downprice.setBounds(116, 152, 60, 17);\n\t\tlbl_downprice.setText(\"跌停价格:\");\n\t\t\n\t\tLabel lbl_price = new Label(shell, SWT.NONE);\n\t\tlbl_price.setBounds(116, 181, 60, 17);\n\t\tlbl_price.setText(\"委托价格:\");\n\t\t\n\t\tLabel lbl_num = new Label(shell, SWT.NONE);\n\t\tlbl_num.setBounds(116, 210, 60, 17);\n\t\tlbl_num.setText(\"委托数量:\");\n\t\t\n\t\tLabel lbl_date = new Label(shell, SWT.NONE);\n\t\tlbl_date.setBounds(116, 243, 61, 17);\n\t\tlbl_date.setText(\"日 期:\");\n\t\t\n\t\ttext_dateTime = new DateTime(shell, SWT.BORDER);\n\t\ttext_dateTime.setBounds(225, 237, 88, 24);\n\t\t\n\t\tlbl_notice = new Label(shell, SWT.BORDER);\n\t\tlbl_notice.setBounds(316, 333, 125, 17);\n\t\t\n\t\tif (information == null) {\n\n\t\t\tfinal Label lbl_search = new Label(shell, SWT.NONE);\n\t\t\tlbl_search.addMouseListener(new MouseAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void mouseDown(MouseEvent e) {\n\n\t\t\t\t\tlbl_searchEvent();\n\t\t\t\t}\n\t\t\t});\n\t\t\tlbl_search.addMouseTrackListener(new MouseTrackAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void mouseEnter(MouseEvent e) {\n\t\t\t\t\tlbl_search.setBackground(Display.getCurrent()\n\t\t\t\t\t\t\t.getSystemColor(SWT.COLOR_GREEN));\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void mouseExit(MouseEvent e) {\n\t\t\t\t\tlbl_search\n\t\t\t\t\t\t\t.setBackground(Display\n\t\t\t\t\t\t\t\t\t.getCurrent()\n\t\t\t\t\t\t\t\t\t.getSystemColor(\n\t\t\t\t\t\t\t\t\t\t\tSWT.COLOR_TITLE_INACTIVE_BACKGROUND_GRADIENT));\n\t\t\t\t}\n\t\t\t});\n\t\t\tlbl_search\n\t\t\t\t\t.setImage(SWTResourceManager\n\t\t\t\t\t\t\t.getImage(\"C:\\\\Users\\\\Administrator\\\\Desktop\\\\GupiaoNo4\\\\Project\\\\GupiaoNo4\\\\data\\\\检查.png\"));\n\t\t\tlbl_search.setBounds(354, 91, 18, 18);\n\n\t\t\ttext_place = new Text(shell, SWT.BORDER);\n\t\t\ttext_place.setBounds(304, 88, 32, 23);\n\n\t\t} else {\n\t\t\ttrade_shortsell();// 显示文本框内容\n\t\t}\n\t\t\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(450, 300);\n\t\tshell.setText(\"SWT Application\");\n\t\t\n\t\tnum1 = new Text(shell, SWT.BORDER);\n\t\tnum1.setBounds(32, 51, 112, 19);\n\t\t\n\t\tnum2 = new Text(shell, SWT.BORDER);\n\t\tnum2.setBounds(32, 120, 112, 19);\n\t\t\n\t\tLabel lblNewLabel = new Label(shell, SWT.NONE);\n\t\tlblNewLabel.setBounds(32, 31, 92, 14);\n\t\tlblNewLabel.setText(\"First Number:\");\n\t\t\n\t\tLabel lblNewLabel_1 = new Label(shell, SWT.NONE);\n\t\tlblNewLabel_1.setBounds(32, 100, 112, 14);\n\t\tlblNewLabel_1.setText(\"Second Number: \");\n\t\t\n\t\tfinal Label answer = new Label(shell, SWT.NONE);\n\t\tanswer.setBounds(35, 204, 60, 14);\n\t\tanswer.setText(\"Answer:\");\n\t\t\n\t\tButton plusButton = new Button(shell, SWT.NONE);\n\t\tplusButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tint number1, number2;\n\t\t\t\ttry {\n\t\t\t\t\tnumber1 = Integer.parseInt(num1.getText());\n\t\t\t\t}\n\t\t\t\tcatch (Exception exc) {\n\t\t\t\t\tMessageDialog.openError(shell, \"Error\", \"Bad number\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\tnumber2 = Integer.parseInt(num2.getText());\n\t\t\t\t}\n\t\t\t\tcatch (Exception exc) {\n\t\t\t\t\tMessageDialog.openError(shell, \"Error\", \"Bad number\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tint ans = number1 + number2;\n\t\t\t\tanswer.setText(\"Answer: \" + ans);\n\t\t\t}\n\t\t});\n\t\tplusButton.setBounds(29, 158, 56, 28);\n\t\tplusButton.setText(\"+\");\n\t\t\n\t\t\n\n\t}", "protected void createContents() {\r\n\t\tsetText(\"SWT Application\");\r\n\t\tsetSize(450, 300);\r\n\r\n\t}", "protected void createContents() {\n\t\tshell = new Shell(SWT.CLOSE | SWT.MIN);// 取消最大化与拖拽放大功能\n\t\tshell.setImage(SWTResourceManager.getImage(WelcomPart.class, \"/images/MC.ico\"));\n\t\tshell.setBackgroundImage(SWTResourceManager.getImage(WelcomPart.class, \"/images/back.jpg\"));\n\t\tshell.setBackgroundMode(SWT.INHERIT_DEFAULT);\n\t\tshell.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\tshell.setSize(1157, 720);\n\t\tshell.setText(\"\\u56FE\\u4E66\\u67E5\\u8BE2\");\n\t\tshell.setLocation(Display.getCurrent().getClientArea().width / 2 - shell.getShell().getSize().x / 2,\n\t\t\t\tDisplay.getCurrent().getClientArea().height / 2 - shell.getSize().y / 2);\n\n\t\tMenu menu = new Menu(shell, SWT.BAR);\n\t\tshell.setMenuBar(menu);\n\n\t\tMenuItem menuItem = new MenuItem(menu, SWT.CASCADE);\n\t\tmenuItem.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/base.png\"));\n\t\tmenuItem.setText(\"\\u7A0B\\u5E8F\");\n\n\t\tMenu menu_1 = new Menu(menuItem);\n\t\tmenuItem.setMenu(menu_1);\n\n\t\tMenuItem menuI_main = new MenuItem(menu_1, SWT.NONE);\n\t\tmenuI_main.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/about.png\"));\n\t\tmenuI_main.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tAdmin_BookShow window = new Admin_BookShow();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenuI_main.setText(\"\\u4E3B\\u9875\");\n\n\t\tMenuItem menu_exit = new MenuItem(menu_1, SWT.NONE);\n\t\tmenu_exit.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/reset.png\"));\n\t\tmenu_exit.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tWelcomPart window = new WelcomPart();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu_exit.setText(\"\\u9000\\u51FA\");\n\n\t\tMenuItem menubook = new MenuItem(menu, SWT.CASCADE);\n\t\tmenubook.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/bookTypeManager.png\"));\n\t\tmenubook.setText(\"\\u56FE\\u4E66\\u7BA1\\u7406\");\n\n\t\tMenu menu_2 = new Menu(menubook);\n\t\tmenubook.setMenu(menu_2);\n\n\t\tMenuItem menu1_add = new MenuItem(menu_2, SWT.NONE);\n\t\tmenu1_add.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/add.png\"));\n\t\tmenu1_add.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tBook_add window = new Book_add();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu1_add.setText(\"\\u6DFB\\u52A0\\u56FE\\u4E66\");\n\n\t\tMenuItem menu1_select = new MenuItem(menu_2, SWT.NONE);\n\t\tmenu1_select.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/search.png\"));\n\t\tmenu1_select.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t// 图书查询\n\t\t\t\tshell.close();\n\t\t\t\tBook_select window = new Book_select();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu1_select.setText(\"\\u67E5\\u8BE2\\u56FE\\u4E66\");\n\n\t\tMenuItem menu1_alter = new MenuItem(menu_2, SWT.NONE);\n\t\tmenu1_alter.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/modify.png\"));\n\t\tmenu1_alter.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tBook_alter window = new Book_alter();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu1_alter.setText(\"\\u4FEE\\u6539\\u56FE\\u4E66\");\n\n\t\tMenuItem menuI1_delete = new MenuItem(menu_2, SWT.NONE);\n\t\tmenuI1_delete.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/exit.png\"));\n\t\tmenuI1_delete.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tBook_del window = new Book_del();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenuI1_delete.setText(\"\\u5220\\u9664\\u56FE\\u4E66\");\n\n\t\tMenuItem menutype = new MenuItem(menu, SWT.CASCADE);\n\t\tmenutype.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/bookManager.png\"));\n\t\tmenutype.setText(\"\\u4E66\\u7C7B\\u7BA1\\u7406\");\n\n\t\tMenu menu_3 = new Menu(menutype);\n\t\tmenutype.setMenu(menu_3);\n\n\t\tMenuItem menu2_add = new MenuItem(menu_3, SWT.NONE);\n\t\tmenu2_add.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/add.png\"));\n\t\tmenu2_add.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tBooktype_add window = new Booktype_add();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu2_add.setText(\"\\u6DFB\\u52A0\\u4E66\\u7C7B\");\n\n\t\tMenuItem menu2_alter = new MenuItem(menu_3, SWT.NONE);\n\t\tmenu2_alter.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/modify.png\"));\n\t\tmenu2_alter.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tBooktype_alter window = new Booktype_alter();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu2_alter.setText(\"\\u4FEE\\u6539\\u4E66\\u7C7B\");\n\n\t\tMenuItem menu2_delete = new MenuItem(menu_3, SWT.NONE);\n\t\tmenu2_delete.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/exit.png\"));\n\t\tmenu2_delete.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tBooktype_delete window = new Booktype_delete();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu2_delete.setText(\"\\u5220\\u9664\\u4E66\\u7C7B\");\n\n\t\tMenuItem menumark = new MenuItem(menu, SWT.CASCADE);\n\t\tmenumark.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/student.png\"));\n\t\tmenumark.setText(\"\\u501F\\u8FD8\\u8BB0\\u5F55\");\n\n\t\tMenu menu_4 = new Menu(menumark);\n\t\tmenumark.setMenu(menu_4);\n\n\t\tMenuItem menu3_borrow = new MenuItem(menu_4, SWT.NONE);\n\t\tmenu3_borrow.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/edit.png\"));\n\t\tmenu3_borrow.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tAdmin_borrowmark window = new Admin_borrowmark();\n\t\t\t\twindow.open();// 借书记录\n\t\t\t}\n\t\t});\n\t\tmenu3_borrow.setText(\"\\u501F\\u4E66\\u8BB0\\u5F55\");\n\n\t\tMenuItem menu3_return = new MenuItem(menu_4, SWT.NONE);\n\t\tmenu3_return.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/search.png\"));\n\t\tmenu3_return.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tAdmin_returnmark window = new Admin_returnmark();\n\t\t\t\twindow.open();// 还书记录\n\t\t\t}\n\t\t});\n\t\tmenu3_return.setText(\"\\u8FD8\\u4E66\\u8BB0\\u5F55\");\n\n\t\tMenuItem mntmhelp = new MenuItem(menu, SWT.CASCADE);\n\t\tmntmhelp.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/about.png\"));\n\t\tmntmhelp.setText(\"\\u5173\\u4E8E\");\n\n\t\tMenu menu_5 = new Menu(mntmhelp);\n\t\tmntmhelp.setMenu(menu_5);\n\n\t\tMenuItem menu4_Info = new MenuItem(menu_5, SWT.NONE);\n\t\tmenu4_Info.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/me.png\"));\n\t\tmenu4_Info.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tAdmin_Info window = new Admin_Info();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu4_Info.setText(\"\\u8F6F\\u4EF6\\u4FE1\\u606F\");\n\n\t\ttable = new Table(shell, SWT.BORDER | SWT.FULL_SELECTION);\n\t\ttable.setFont(SWTResourceManager.getFont(\"黑体\", 10, SWT.NORMAL));\n\t\ttable.setLinesVisible(true);\n\t\ttable.setHeaderVisible(true);\n\t\ttable.setBounds(10, 191, 1119, 447);\n\n\t\tTableColumn tableColumn = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn.setWidth(29);\n\n\t\tTableColumn tableColumn_id = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn_id.setWidth(110);\n\t\ttableColumn_id.setText(\"\\u56FE\\u4E66\\u7F16\\u53F7\");\n\n\t\tTableColumn tableColumn_name = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn_name.setWidth(216);\n\t\ttableColumn_name.setText(\"\\u56FE\\u4E66\\u540D\\u79F0\");\n\n\t\tTableColumn tableColumn_author = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn_author.setWidth(117);\n\t\ttableColumn_author.setText(\"\\u56FE\\u4E66\\u79CD\\u7C7B\");\n\n\t\tTableColumn tableColumn_pub = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn_pub.setWidth(148);\n\t\ttableColumn_pub.setText(\"\\u4F5C\\u8005\");\n\n\t\tTableColumn tableColumn_stock = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn_stock.setWidth(167);\n\t\ttableColumn_stock.setText(\"\\u51FA\\u7248\\u793E\");\n\n\t\tTableColumn tableColumn_sortid = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn_sortid.setWidth(79);\n\t\ttableColumn_sortid.setText(\"\\u5E93\\u5B58\");\n\n\t\tTableColumn tableColumn_record = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn_record.setWidth(247);\n\t\ttableColumn_record.setText(\"\\u767B\\u8BB0\\u65F6\\u95F4\");\n\n\t\tCombo combo_way = new Combo(shell, SWT.NONE);\n\t\tcombo_way.add(\"图书编号\");\n\t\tcombo_way.add(\"图书名称\");\n\t\tcombo_way.add(\"图书作者\");\n\t\tcombo_way.setFont(SWTResourceManager.getFont(\"黑体\", 12, SWT.NORMAL));\n\t\tcombo_way.setBounds(314, 157, 131, 28);\n\n\t\t// 遍历查询book表\n\t\tButton btnButton_select = new Button(shell, SWT.NONE);\n\t\tbtnButton_select.setImage(SWTResourceManager.getImage(Book_select.class, \"/images/search.png\"));\n\t\tbtnButton_select.setFont(SWTResourceManager.getFont(\"黑体\", 12, SWT.NORMAL));\n\t\tbtnButton_select.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tBook book = new Book();\n\t\t\t\tSelectbook selectbook = new Selectbook();\n\t\t\t\ttable.removeAll();\n\t\t\t\tif (combo_way.getText().equals(\"图书编号\")) {\n\t\t\t\t\tbook.setBook_id(text_select.getText().trim());\n\t\t\t\t\tString str[][] = selectbook.ShowAidBook(book);\n\t\t\t\t\tfor (int i = 1; i < str.length; i++) {\n\t\t\t\t\t\tTableItem item = new TableItem(table, SWT.NONE);\n\t\t\t\t\t\titem.setText(i + \".\");\n\t\t\t\t\t\titem.setText(str[i]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (combo_way.getText().equals(\"图书名称\")) {\n\t\t\t\t\tbook.setBook_name(\"%\" + text_select.getText().trim() + \"%\");\n\t\t\t\t\tString str[][] = selectbook.ShowAnameBook(book);\n\t\t\t\t\tfor (int i = 1; i < str.length; i++) {\n\t\t\t\t\t\tTableItem item = new TableItem(table, SWT.NONE);\n\t\t\t\t\t\titem.setText(i + \".\");\n\t\t\t\t\t\titem.setText(str[i]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (combo_way.getText().equals(\"图书作者\")) {\n\t\t\t\t\tbook.setBook_author(\"%\" + text_select.getText().trim() + \"%\");\n\t\t\t\t\tString str[][] = selectbook.ShowAauthorBook(book);\n\t\t\t\t\tfor (int i = 1; i < str.length; i++) {\n\t\t\t\t\t\tTableItem item = new TableItem(table, SWT.NONE);\n\t\t\t\t\t\titem.setText(i + \".\");\n\t\t\t\t\t\titem.setText(str[i]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (combo_way.getText().length() == 0) {\n\t\t\t\t\tString str[][] = selectbook.ShowAllBook();\n\t\t\t\t\tfor (int i = 1; i < str.length; i++) {\n\t\t\t\t\t\tTableItem item = new TableItem(table, SWT.NONE);\n\t\t\t\t\t\titem.setText(i + \".\");\n\t\t\t\t\t\titem.setText(str[i]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnButton_select.setBounds(664, 155, 98, 30);\n\t\tbtnButton_select.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\tbtnButton_select.setText(\"查询\");\n\n\t\ttext_select = new Text(shell, SWT.BORDER);\n\t\ttext_select.setBounds(472, 155, 186, 30);\n\n\t\tLabel lblNewLabel_way = new Label(shell, SWT.NONE);\n\t\tlblNewLabel_way.setForeground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\tlblNewLabel_way.setFont(SWTResourceManager.getFont(\"黑体\", 12, SWT.NORMAL));\n\t\tlblNewLabel_way.setBounds(314, 128, 107, 30);\n\t\tlblNewLabel_way.setText(\"\\u67E5\\u8BE2\\u65B9\\u5F0F\\uFF1A\");\n\n\t\tLabel lblNewLabel_1 = new Label(shell, SWT.NONE);\n\t\tlblNewLabel_1.setText(\"\\u56FE\\u4E66\\u67E5\\u8BE2\");\n\t\tlblNewLabel_1.setForeground(SWTResourceManager.getColor(255, 255, 255));\n\t\tlblNewLabel_1.setFont(SWTResourceManager.getFont(\"黑体\", 25, SWT.BOLD));\n\t\tlblNewLabel_1.setAlignment(SWT.CENTER);\n\t\tlblNewLabel_1.setBounds(392, 54, 266, 48);\n\n\t\tLabel lblNewLabel = new Label(shell, SWT.NONE);\n\t\tlblNewLabel.setText(\"\\u8F93\\u5165\\uFF1A\");\n\t\tlblNewLabel.setForeground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\tlblNewLabel.setFont(SWTResourceManager.getFont(\"黑体\", 12, SWT.NORMAL));\n\t\tlblNewLabel.setBounds(472, 129, 76, 20);\n\n\t}", "protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setSize(450, 395);\r\n\t\tshell.setText(\"SWT Application\");\r\n\t\t\r\n\t\tnachname = new Text(shell, SWT.BORDER);\r\n\t\tnachname.setBounds(32, 27, 76, 21);\r\n\t\t\r\n\t\tvorname = new Text(shell, SWT.BORDER);\r\n\t\tvorname.setBounds(32, 66, 76, 21);\r\n\t\t\r\n\t\tLabel lblNachname = new Label(shell, SWT.NONE);\r\n\t\tlblNachname.setBounds(135, 33, 55, 15);\r\n\t\tlblNachname.setText(\"Nachname\");\r\n\t\t\r\n\t\tLabel lblVorname = new Label(shell, SWT.NONE);\r\n\t\tlblVorname.setBounds(135, 66, 55, 15);\r\n\t\tlblVorname.setText(\"Vorname\");\r\n\t\t\r\n\t\tButton btnFgeListeHinzu = new Button(shell, SWT.NONE);\r\n\t\tbtnFgeListeHinzu.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\t//\r\n\t\t\t\tPerson p = new Person();\r\n\t\t\t\tp.setNachname(getNachname().getText());\r\n\t\t\t\tp.setVorname(getVorname().getText());\r\n\t\t\t\t//\r\n\t\t\t\tPerson.getPersonenListe().add(p);\r\n\t\t\t\tgetGuiListe().add(p.toString());\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnFgeListeHinzu.setBounds(43, 127, 147, 25);\r\n\t\tbtnFgeListeHinzu.setText(\"f\\u00FCge liste hinzu\");\r\n\t\t\r\n\t\tButton btnWriteJson = new Button(shell, SWT.NONE);\r\n\t\tbtnWriteJson.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tPerson.write2JSON();\r\n\t\t\t\t\t//\r\n\t\t\t\t\tMessageBox mb = new MessageBox(shell, SWT.ICON_INFORMATION | SWT.OK);\r\n\t\t\t\t\tmb.setText(\"JSON geschrieben\");\r\n\t\t\t\t\tmb.setMessage(Person.getPersonenListe().size() + \" Einträge erfolgreich geschrieben\");\r\n\t\t\t\t\tmb.open();\r\n\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\tMessageBox mb = new MessageBox(shell, SWT.ICON_ERROR | SWT.OK);\r\n\t\t\t\t\tmb.setText(\"Fehler bei JSON\");\r\n\t\t\t\t\tmb.setMessage(e1.getMessage());\r\n\t\t\t\t\tmb.open();\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnWriteJson.setBounds(54, 171, 75, 25);\r\n\t\tbtnWriteJson.setText(\"write 2 json\");\r\n\t\t\r\n\t\tguiListe = new List(shell, SWT.BORDER);\r\n\t\tguiListe.setBounds(43, 221, 261, 125);\r\n\r\n\t}", "protected void createContents() {\n\t\tshlMenu = new Shell();\n\t\tshlMenu.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/File-delete-icon.png\"));\n\t\tshlMenu.setBackground(SWTResourceManager.getColor(255, 102, 0));\n\t\tshlMenu.setSize(899, 578);\n\t\tshlMenu.setText(\"MENU\");\n\t\t\n\t\tMenu menu = new Menu(shlMenu, SWT.BAR);\n\t\tshlMenu.setMenuBar(menu);\n\t\t\n\t\tMenuItem mnętmBookLists = new MenuItem(menu, SWT.NONE);\n\t\tmnętmBookLists.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call booklist frame \n\t\t\t\tBookListFrame window = new BookListFrame();\n\t\t\t\twindow.open();\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tmnętmBookLists.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Business-Todo-List-icon.png\"));\n\t\tmnętmBookLists.setText(\"Book Lists\");\n\t\t\n\t\tMenuItem mnętmMemberList = new MenuItem(menu, SWT.NONE);\n\t\tmnętmMemberList.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call memberlistframe\n\t\t\t\tMemberListFrame window = new MemberListFrame();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmnętmMemberList.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Misc-User-icon.png\"));\n\t\tmnętmMemberList.setText(\"Member List\");\n\t\t\n\t\tMenuItem mnętmNewItem = new MenuItem(menu, SWT.NONE);\n\t\tmnętmNewItem.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call rent list\n\t\t\t\tRentListFrame rlf=new RentListFrame();\n\t\t\t\trlf.open();\n\t\t\t}\n\t\t});\n\t\tmnętmNewItem.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Time-And-Date-Calendar-icon.png\"));\n\t\tmnętmNewItem.setText(\"Rent List\");\n\t\t\n\t\tButton btnNewButton = new Button(shlMenu, SWT.NONE);\n\t\tbtnNewButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call booksettingsframe\n\t\t\t\tBookSettingsFrame window = new BookSettingsFrame();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton.setForeground(SWTResourceManager.getColor(SWT.COLOR_INFO_BACKGROUND));\n\t\tbtnNewButton.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Printing-Books-icon.png\"));\n\t\tbtnNewButton.setBounds(160, 176, 114, 112);\n\t\t\n\t\tButton btnNewButton_1 = new Button(shlMenu, SWT.NONE);\n\t\tbtnNewButton_1.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call membersettingsframe\n\t\t\t\tMemberSettingsFrame window = new MemberSettingsFrame();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton_1.setForeground(SWTResourceManager.getColor(SWT.COLOR_INFO_BACKGROUND));\n\t\tbtnNewButton_1.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Add-User-icon.png\"));\n\t\tbtnNewButton_1.setBounds(367, 176, 114, 112);\n\t\t\n\t\tButton btnNewButton_2 = new Button(shlMenu, SWT.NONE);\n\t\tbtnNewButton_2.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tRentingFrame rf=new RentingFrame();\n\t\t\t\trf.open();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton_2.setForeground(SWTResourceManager.getColor(SWT.COLOR_INFO_BACKGROUND));\n\t\tbtnNewButton_2.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Business-Statistics-icon.png\"));\n\t\tbtnNewButton_2.setBounds(567, 176, 114, 112);\n\n\t}", "private void createContents() throws SQLException {\n\t\tshell = new Shell(getParent(), SWT.SHELL_TRIM);\n\t\tshell.setImage(user.getIcondata().BaoduongIcon);\n\t\tshell.setLayout(new GridLayout(2, false));\n\t\tsetText(\"Tạo Công việc (Đợt Bảo dưỡng)\");\n\t\tshell.setSize(777, 480);\n\t\tnew FormTemplate().setCenterScreen(shell);\n\n\t\tFill_ItemData fi = new Fill_ItemData();\n\n\t\tSashForm sashForm = new SashForm(shell, SWT.NONE);\n\t\tsashForm.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 2, 1));\n\n\t\tSashForm sashForm_3 = new SashForm(sashForm, SWT.VERTICAL);\n\n\t\tSashForm sashForm_2 = new SashForm(sashForm_3, SWT.NONE);\n\t\tComposite composite = new Composite(sashForm_2, SWT.NONE);\n\t\tcomposite.setLayout(new GridLayout(2, false));\n\n\t\tLabel label_2 = new Label(composite, SWT.NONE);\n\t\tlabel_2.setText(\"Tên đợt Bảo dưỡng*:\");\n\n\t\ttext_Tendot_Baoduong = new Text(composite, SWT.BORDER);\n\t\ttext_Tendot_Baoduong.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\n\n\t\tLabel label_3 = new Label(composite, SWT.NONE);\n\t\tGridData gd_label_3 = new GridData(SWT.LEFT, SWT.TOP, false, false, 1, 1);\n\t\tgd_label_3.verticalIndent = 3;\n\t\tlabel_3.setLayoutData(gd_label_3);\n\t\tlabel_3.setText(\"Loại phương tiện:\");\n\n\t\tcombo_Loaiphuongtien = new Combo(composite, SWT.READ_ONLY);\n\t\tcombo_Loaiphuongtien.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tif (ViewAndEdit_MODE_dsb != null) {\n\t\t\t\t\tFill_ItemData f = new Fill_ItemData();\n\t\t\t\t\tif ((int) combo_Loaiphuongtien.getData(combo_Loaiphuongtien.getText()) == f.getInt_Xemay()) {\n\t\t\t\t\t\tViewAndEdit_MODE_dsb.setLOAI_PHUONG_TIEN(f.getInt_Xemay());\n\t\t\t\t\t\ttree_PTTS.removeAll();\n\t\t\t\t\t} else if ((int) combo_Loaiphuongtien.getData(combo_Loaiphuongtien.getText()) == f.getInt_Oto()) {\n\t\t\t\t\t\tViewAndEdit_MODE_dsb.setLOAI_PHUONG_TIEN(f.getInt_Oto());\n\t\t\t\t\t\ttree_PTTS.removeAll();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tcombo_Loaiphuongtien.setLayoutData(new GridData(SWT.FILL, SWT.TOP, true, false, 1, 1));\n\t\tfi.setComboBox_LOAIPHUONGTIEN_Phuongtien_Giaothong(combo_Loaiphuongtien, 0);\n\n\t\tLabel label_4 = new Label(composite, SWT.NONE);\n\t\tGridData gd_label_4 = new GridData(SWT.LEFT, SWT.TOP, false, false, 1, 1);\n\t\tgd_label_4.verticalIndent = 3;\n\t\tlabel_4.setLayoutData(gd_label_4);\n\t\tlabel_4.setText(\"Mô tả:\");\n\n\t\ttext_Mota = new Text(composite, SWT.BORDER | SWT.WRAP | SWT.V_SCROLL | SWT.MULTI);\n\t\ttext_Mota.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, true, 1, 1));\n\t\tnew Label(composite, SWT.NONE);\n\n\t\tbtnNgunSaCha = new Button(composite, SWT.NONE);\n\t\tGridData gd_btnNgunSaCha = new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1);\n\t\tgd_btnNgunSaCha.widthHint = 85;\n\t\tbtnNgunSaCha.setLayoutData(gd_btnNgunSaCha);\n\t\tbtnNgunSaCha.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tChonNguonSuachua_Baoduong cnsb = new ChonNguonSuachua_Baoduong(shell, SWT.DIALOG_TRIM, user);\n\t\t\t\t\tcnsb.open();\n\t\t\t\t\tnsb = cnsb.getResult();\n\t\t\t\t\tif (ViewAndEdit_MODE_dsb == null) {\n\t\t\t\t\t\tfillNguonSuachuaBaoduong(nsb);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tif (nsb == null) {\n\t\t\t\t\t\tMessageBox m = new MessageBox(shell, SWT.ICON_QUESTION | SWT.YES | SWT.NO | SWT.CLOSE);\n\t\t\t\t\t\tm.setText(\"Xóa dữ liệu cũ?\");\n\t\t\t\t\t\tm.setMessage(\"Bạn muốn xóa dữ liệu cũ?\");\n\t\t\t\t\t\tint rc = m.open();\n\t\t\t\t\t\tswitch (rc) {\n\t\t\t\t\t\tcase SWT.CANCEL:\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase SWT.YES:\n\t\t\t\t\t\t\tViewAndEdit_MODE_dsb.setMA_NGUONSUACHUA_BAODUONG(-1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase SWT.NO:\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tViewAndEdit_MODE_dsb.setMA_NGUONSUACHUA_BAODUONG(nsb.getMA_NGUONSUACHUA_BAODUONG());\n\t\t\t\t\t}\n\t\t\t\t\tcontroler.getControl_DOT_THUCHIEN_SUACHUA_BAODUONG()\n\t\t\t\t\t\t\t.update_DOT_THUCHIEN_SUACHUA_BAODUONG(ViewAndEdit_MODE_dsb);\n\t\t\t\t\tfillNguonSuachuaBaoduong(ViewAndEdit_MODE_dsb);\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnNgunSaCha.setText(\"Liên hệ\");\n\t\tbtnNgunSaCha.setImage(user.getIcondata().PhoneIcon);\n\n\t\tComposite composite_1 = new Composite(sashForm_2, SWT.NONE);\n\t\tcomposite_1.setLayout(new GridLayout(2, false));\n\n\t\tLabel lblSXut = new Label(composite_1, SWT.NONE);\n\t\tlblSXut.setText(\"Số đề xuất: \");\n\n\t\ttext_Sodexuat = new Text(composite_1, SWT.NONE);\n\t\ttext_Sodexuat.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\ttext_Sodexuat.setEditable(false);\n\t\ttext_Sodexuat.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\n\t\tLabel lblNgyThng = new Label(composite_1, SWT.NONE);\n\t\tlblNgyThng.setText(\"Ngày tháng: \");\n\n\t\ttext_NgaythangVanban = new Text(composite_1, SWT.NONE);\n\t\ttext_NgaythangVanban.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\ttext_NgaythangVanban.setEditable(false);\n\t\ttext_NgaythangVanban.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\n\t\tLabel lblnV = new Label(composite_1, SWT.NONE);\n\t\tlblnV.setText(\"Đơn vị: \");\n\n\t\ttext_Donvi = new Text(composite_1, SWT.NONE);\n\t\ttext_Donvi.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\ttext_Donvi.setEditable(false);\n\t\ttext_Donvi.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\n\t\tLabel lblNgyXL = new Label(composite_1, SWT.NONE);\n\t\tlblNgyXL.setText(\"Ngày xử lý:\");\n\n\t\ttext_Ngaytiepnhan = new Text(composite_1, SWT.NONE);\n\t\ttext_Ngaytiepnhan.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\ttext_Ngaytiepnhan.setEditable(false);\n\t\ttext_Ngaytiepnhan.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\n\t\tLabel lblNgyGiao = new Label(composite_1, SWT.NONE);\n\t\tlblNgyGiao.setText(\"Ngày giao:\");\n\n\t\ttext_Ngaygiao = new Text(composite_1, SWT.NONE);\n\t\ttext_Ngaygiao.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\ttext_Ngaygiao.setEditable(false);\n\t\ttext_Ngaygiao.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\n\t\tLabel lblTrchYu = new Label(composite_1, SWT.NONE);\n\t\tGridData gd_lblTrchYu = new GridData(SWT.LEFT, SWT.TOP, false, false, 1, 1);\n\t\tgd_lblTrchYu.verticalIndent = 3;\n\t\tlblTrchYu.setLayoutData(gd_lblTrchYu);\n\t\tlblTrchYu.setText(\"Ghi chú: \");\n\n\t\ttext_Trichyeu = new Text(composite_1, SWT.NONE);\n\t\ttext_Trichyeu.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\ttext_Trichyeu.setEditable(false);\n\t\tGridData gd_text_Trichyeu = new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1);\n\t\tgd_text_Trichyeu.heightHint = 27;\n\t\ttext_Trichyeu.setLayoutData(gd_text_Trichyeu);\n\t\tnew Label(composite_1, SWT.NONE);\n\n\t\tbtnThemDexuat = new Button(composite_1, SWT.NONE);\n\t\tbtnThemDexuat.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tInsert_dx = null;\n\t\t\t\t\tif (ViewAndEdit_MODE_dsb != null\n\t\t\t\t\t\t\t&& ViewAndEdit_MODE_dsb.getMA_DOT_THUCHIEN_SUACHUA_BAODUONG() > 0) {\n\t\t\t\t\t\tInsert_dx = controler.getControl_DEXUAT().get_DEXUAT(ViewAndEdit_MODE_dsb);\n\t\t\t\t\t}\n\t\t\t\t\tif (Insert_dx != null) {\n\t\t\t\t\t\tTAPHOSO ths = controler.getControl_TAPHOSO().get_TAP_HO_SO(Insert_dx.getMA_TAPHOSO());\n\t\t\t\t\t\tTaphoso_View thsv = new Taphoso_View(shell, SWT.DIALOG_TRIM, user, ths, false);\n\t\t\t\t\t\tthsv.open();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tNhapDeXuat ndx = new NhapDeXuat(shell, SWT.DIALOG_TRIM, user);\n\t\t\t\t\t\tndx.open();\n\t\t\t\t\t\tInsert_dx = ndx.result;\n\t\t\t\t\t\tif (Insert_dx == null)\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tfillDexuat(Insert_dx);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (ViewAndEdit_MODE_dsb == null)\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\tif (ViewAndEdit_MODE_dsb.getMA_DOT_THUCHIEN_SUACHUA_BAODUONG() <= 0)\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\tint Ma_Quatrinh_Dexuat_thuchien = getMaQuantrinhDexuatThuchien(Insert_dx);\n\t\t\t\t\t\tif (Ma_Quatrinh_Dexuat_thuchien <= 0)\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\tboolean ict = controler.getControl_DOT_THUCHIEN_SUACHUA_BAODUONG()\n\t\t\t\t\t\t\t\t.update_DOT_THUCHIEN_SUACHUA_BAODUONG_Update_QUATRINH_DEXUAT_THUCHIEN(\n\t\t\t\t\t\t\t\t\t\tViewAndEdit_MODE_dsb, Ma_Quatrinh_Dexuat_thuchien);\n\t\t\t\t\t\tif (ict) {\n\t\t\t\t\t\t\tMessageBox m = new MessageBox(shell, SWT.ICON_WORKING);\n\t\t\t\t\t\t\tm.setText(\"Hoàn tất\");\n\t\t\t\t\t\t\tm.setMessage(\"Thêm Đề xuất Hoàn tất\");\n\t\t\t\t\t\t\tm.open();\n\t\t\t\t\t\t\tfillDexuat(Insert_dx);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} catch (NullPointerException | SQLException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnThemDexuat.setImage(user.getIcondata().DexuatIcon);\n\t\tbtnThemDexuat.setLayoutData(new GridData(SWT.FILL, SWT.BOTTOM, false, false, 1, 1));\n\t\tbtnThemDexuat.setText(\"Thêm Hồ sơ\");\n\t\tsashForm_2.setWeights(new int[] { 1000, 618 });\n\n\t\tSashForm sashForm_1 = new SashForm(sashForm_3, SWT.NONE);\n\t\ttree_PTTS = new Tree(sashForm_1, SWT.BORDER | SWT.FULL_SELECTION | SWT.MULTI);\n\t\ttree_PTTS.setLinesVisible(true);\n\t\ttree_PTTS.setHeaderVisible(true);\n\t\ttree_PTTS.addListener(SWT.Selection, new Listener() {\n\t\t\t@Override\n\t\t\tpublic void handleEvent(Event arg0) {\n\t\t\t\tTreeItem[] til = tree_PTTS.getSelection();\n\t\t\t\tif (til.length > 0) {\n\t\t\t\t\tRow_PTTSthamgia_Baoduong pttg = (Row_PTTSthamgia_Baoduong) til[0].getData();\n\t\t\t\t\tsetHinhthuc_Baoduong(pttg.getHtbd());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\ttree_PTTS.addListener(SWT.SetData, new Listener() {\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\tif (tree_PTTS.getItems().length > 0) {\n\t\t\t\t\tcombo_Loaiphuongtien.setEnabled(false);\n\t\t\t\t} else {\n\t\t\t\t\tcombo_Loaiphuongtien.setEnabled(true);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tTreeColumn trclmnStt = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnStt.setWidth(50);\n\t\ttrclmnStt.setText(\"Stt\");\n\n\t\tTreeColumn trclmnTnMT = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnTnMT.setWidth(100);\n\t\ttrclmnTnMT.setText(\"Tên, mô tả\");\n\n\t\tTreeColumn trclmnHngSnXut = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnHngSnXut.setWidth(100);\n\t\ttrclmnHngSnXut.setText(\"Hãng sản xuất\");\n\n\t\tTreeColumn trclmnDngXe = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnDngXe.setWidth(100);\n\t\ttrclmnDngXe.setText(\"Dòng xe\");\n\n\t\tTreeColumn trclmnBinS = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnBinS.setWidth(100);\n\t\ttrclmnBinS.setText(\"Biển số\");\n\n\t\tTreeColumn trclmnNgySDng = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnNgySDng.setWidth(100);\n\t\ttrclmnNgySDng.setText(\"Ngày sử dụng\");\n\n\t\tTreeColumn trclmnMPhngTin = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnMPhngTin.setWidth(90);\n\t\ttrclmnMPhngTin.setText(\"Mã PTTS\");\n\n\t\tMenu menu = new Menu(tree_PTTS);\n\t\ttree_PTTS.setMenu(menu);\n\n\t\tMenuItem mntmThmPhngTin = new MenuItem(menu, SWT.NONE);\n\t\tmntmThmPhngTin.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tThem_PTGT();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tmntmThmPhngTin.setText(\"Thêm phương tiện tài sản\");\n\n\t\tMenuItem mntmXoa = new MenuItem(menu, SWT.NONE);\n\t\tmntmXoa.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tdelete();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\n\t\t});\n\t\tmntmXoa.setText(\"Xóa\");\n\n\t\tTreeColumn trclmnThayNht = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayNht.setWidth(70);\n\t\ttrclmnThayNht.setText(\"Thay nhớt\");\n\n\t\tTreeColumn trclmnThayLcNht = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayLcNht.setWidth(100);\n\t\ttrclmnThayLcNht.setText(\"Thay lọc nhớt\");\n\n\t\tTreeColumn trclmnThayLcGi = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayLcGi.setWidth(100);\n\t\ttrclmnThayLcGi.setText(\"Thay lọc gió\");\n\n\t\tTreeColumn trclmnThayLcNhin = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayLcNhin.setWidth(100);\n\t\ttrclmnThayLcNhin.setText(\"Thay lọc nhiên liệu\");\n\n\t\tTreeColumn trclmnThayDuPhanh = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayDuPhanh.setWidth(100);\n\t\ttrclmnThayDuPhanh.setText(\"Thay Dầu phanh - ly hợp\");\n\n\t\tTreeColumn trclmnThayDuHp = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayDuHp.setWidth(100);\n\t\ttrclmnThayDuHp.setText(\"Thay Dầu hộp số\");\n\n\t\tTreeColumn trclmnThayDuVi = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayDuVi.setWidth(100);\n\t\ttrclmnThayDuVi.setText(\"Thay Dầu vi sai\");\n\n\t\tTreeColumn trclmnLcGiGin = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnLcGiGin.setWidth(100);\n\t\ttrclmnLcGiGin.setText(\"Lọc gió giàn lạnh\");\n\n\t\tTreeColumn trclmnThayDuTr = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayDuTr.setWidth(100);\n\t\ttrclmnThayDuTr.setText(\"Thay dầu trợ lực lái\");\n\n\t\tTreeColumn trclmnBoDngKhcs = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnBoDngKhcs.setWidth(100);\n\t\ttrclmnBoDngKhcs.setText(\"Bảo dưỡng khác\");\n\n\t\tExpandBar expandBar = new ExpandBar(sashForm_1, SWT.V_SCROLL);\n\t\texpandBar.setForeground(SWTResourceManager.getColor(SWT.COLOR_LIST_FOREGROUND));\n\n\t\tExpandItem xpndtmLoiHnhBo = new ExpandItem(expandBar, SWT.NONE);\n\t\txpndtmLoiHnhBo.setText(\"Loại hình bảo dưỡng\");\n\n\t\tComposite grpHnhThcBo = new Composite(expandBar, SWT.NONE);\n\t\txpndtmLoiHnhBo.setControl(grpHnhThcBo);\n\t\tgrpHnhThcBo.setLayout(new GridLayout(1, false));\n\n\t\tbtnDaudongco = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnDaudongco.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnDaudongco.setText(\"Dầu động cơ\");\n\n\t\tbtnLocdaudongco = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnLocdaudongco.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnLocdaudongco.setText(\"Lọc dầu động cơ\");\n\n\t\tbtnLocgio = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnLocgio.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnLocgio.setText(\"Lọc gió\");\n\n\t\tbtnLocnhienlieu = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnLocnhienlieu.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnLocnhienlieu.setText(\"Lọc nhiên liệu\");\n\n\t\tbtnDauphanh_lyhop = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnDauphanh_lyhop.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnDauphanh_lyhop.setText(\"Dầu phanh và dầu ly hợp\");\n\n\t\tbtnDauhopso = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnDauhopso.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnDauhopso.setText(\"Dầu hộp số\");\n\n\t\tbtnDauvisai = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnDauvisai.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnDauvisai.setText(\"Dầu vi sai\");\n\n\t\tbtnLocgiogianlanh = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnLocgiogianlanh.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnLocgiogianlanh.setText(\"Lọc gió giàn lạnh\");\n\n\t\tbtnDautroluclai = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnDautroluclai.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnDautroluclai.setText(\"Dầu trợ lực lái\");\n\n\t\tbtnBaoduongkhac = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnBaoduongkhac.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnBaoduongkhac.setText(\"Bảo dưỡng khác\");\n\t\txpndtmLoiHnhBo.setHeight(xpndtmLoiHnhBo.getControl().computeSize(SWT.DEFAULT, SWT.DEFAULT).y);\n\n\t\tExpandItem xpndtmLinH = new ExpandItem(expandBar, SWT.NONE);\n\t\txpndtmLinH.setText(\"Liên hệ\");\n\n\t\tComposite composite_2 = new Composite(expandBar, SWT.NONE);\n\t\txpndtmLinH.setControl(composite_2);\n\t\tcomposite_2.setLayout(new GridLayout(2, false));\n\n\t\tLabel lblTnLinH = new Label(composite_2, SWT.NONE);\n\t\tlblTnLinH.setText(\"Tên liên hệ: \");\n\n\t\ttext_Tenlienhe = new Text(composite_2, SWT.BORDER);\n\t\ttext_Tenlienhe.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\n\t\tLabel lblGiiThiu = new Label(composite_2, SWT.NONE);\n\t\tGridData gd_lblGiiThiu = new GridData(SWT.LEFT, SWT.TOP, false, false, 1, 1);\n\t\tgd_lblGiiThiu.verticalIndent = 3;\n\t\tlblGiiThiu.setLayoutData(gd_lblGiiThiu);\n\t\tlblGiiThiu.setText(\"Giới thiệu: \");\n\n\t\ttext_Gioithieu = new Text(composite_2, SWT.BORDER);\n\t\ttext_Gioithieu.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));\n\n\t\tLabel lblLinH = new Label(composite_2, SWT.NONE);\n\t\tGridData gd_lblLinH = new GridData(SWT.LEFT, SWT.TOP, false, false, 1, 1);\n\t\tgd_lblLinH.verticalIndent = 3;\n\t\tlblLinH.setLayoutData(gd_lblLinH);\n\t\tlblLinH.setText(\"Liên hệ: \");\n\n\t\ttext_Lienhe = new Text(composite_2, SWT.BORDER);\n\t\ttext_Lienhe.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));\n\t\txpndtmLinH.setHeight(120);\n\t\tsashForm_1.setWeights(new int[] { 543, 205 });\n\t\tsashForm_3.setWeights(new int[] { 170, 228 });\n\t\tsashForm.setWeights(new int[] { 1000 });\n\n\t\tbtnLuu = new Button(shell, SWT.NONE);\n\t\tbtnLuu.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tif (dataCreate != null) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tTaoMoi_DotSuachua_Baoduong();\n\t\t\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tupdateField();\n\t\t\t\t\t}\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tprivate void TaoMoi_DotSuachua_Baoduong() throws SQLException {\n\t\t\t\tif (checkTextNotNULL()) {\n\t\t\t\t\tDOT_THUCHIEN_SUACHUA_BAODUONG dsb = getDOT_SUACHUA_BAODUONG();\n\t\t\t\t\tint key = controler.getControl_DOT_THUCHIEN_SUACHUA_BAODUONG()\n\t\t\t\t\t\t\t.InsertDOT_THUCHIEN_SUACHUA_BAODUONG(dsb, null, null);\n\t\t\t\t\tdsb.setMA_DOT_THUCHIEN_SUACHUA_BAODUONG(key);\n\t\t\t\t\tif (key >= 0) {\n\t\t\t\t\t\tif (nsb != null)\n\t\t\t\t\t\t\tdsb.setMA_NGUONSUACHUA_BAODUONG(nsb.getMA_NGUONSUACHUA_BAODUONG());\n\t\t\t\t\t\tcontroler.getControl_DOT_THUCHIEN_SUACHUA_BAODUONG().update_DOT_THUCHIEN_SUACHUA_BAODUONG(dsb);\n\t\t\t\t\t\tint Ma_Quatrinh_Dexuat_thuchien = getMaQuantrinhDexuatThuchien(Insert_dx);\n\t\t\t\t\t\tif (Ma_Quatrinh_Dexuat_thuchien > 0)\n\t\t\t\t\t\t\tcontroler.getControl_DOT_THUCHIEN_SUACHUA_BAODUONG()\n\t\t\t\t\t\t\t\t\t.update_DOT_THUCHIEN_SUACHUA_BAODUONG_Update_QUATRINH_DEXUAT_THUCHIEN(dsb,\n\t\t\t\t\t\t\t\t\t\t\tMa_Quatrinh_Dexuat_thuchien);\n\t\t\t\t\t\tTreeItem[] til = tree_PTTS.getItems();\n\t\t\t\t\t\tif (til.length > 0) {\n\t\t\t\t\t\t\tfor (TreeItem ti : til) {\n\t\t\t\t\t\t\t\tdsb.setMA_DOT_THUCHIEN_SUACHUA_BAODUONG(key);\n\t\t\t\t\t\t\t\tRow_PTTSthamgia_Baoduong rp = (Row_PTTSthamgia_Baoduong) ti.getData();\n\t\t\t\t\t\t\t\tcontroler.getControl_DOT_THUCHIEN_SUACHUA_BAODUONG_TAISAN()\n\t\t\t\t\t\t\t\t\t\t.set_DOT_THUCHIEN_SUACHUA_TAISAN(dsb, rp);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tshowMessage_Succes();\n\t\t\t\t\t\tshell.dispose();\n\t\t\t\t\t\tGiaoViec gv = new GiaoViec(user);\n\t\t\t\t\t\tgv.open();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tshowMessage_Fail();\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tshowMessage_FillText();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tprivate DOT_THUCHIEN_SUACHUA_BAODUONG getDOT_SUACHUA_BAODUONG() {\n\t\t\t\tDOT_THUCHIEN_SUACHUA_BAODUONG dsb = new DOT_THUCHIEN_SUACHUA_BAODUONG();\n\t\t\t\tdsb.setTEN_DOT_THUCHIEN_SUACHUA_BAODUONG(text_Tendot_Baoduong.getText());\n\t\t\t\tdsb.setLOAI_PHUONG_TIEN(\n\t\t\t\t\t\tInteger.valueOf((int) combo_Loaiphuongtien.getData(combo_Loaiphuongtien.getText())));\n\t\t\t\tdsb.setSUACHUA_BAODUONG(fi.getInt_Baoduong());\n\t\t\t\tdsb.setMO_TA(text_Mota.getText());\n\t\t\t\treturn dsb;\n\t\t\t}\n\n\t\t});\n\t\tGridData gd_btnLu = new GridData(SWT.RIGHT, SWT.CENTER, true, false, 1, 1);\n\t\tgd_btnLu.widthHint = 75;\n\t\tbtnLuu.setLayoutData(gd_btnLu);\n\t\tbtnLuu.setText(\"Xong\");\n\n\t\tbtnDong = new Button(shell, SWT.NONE);\n\t\tbtnDong.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tif (ViewAndEdit_MODE_dsb != null) {\n\t\t\t\t\t\tupdateField();\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// if (Insert_dx != null)\n\t\t\t\t\t\t// controler.getControl_DEXUAT().delete_DEXUAT(Insert_dx);\n\t\t\t\t\t}\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\tshell.dispose();\n\t\t\t}\n\t\t});\n\t\tGridData gd_btnDong = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\n\t\tgd_btnDong.widthHint = 75;\n\t\tbtnDong.setLayoutData(gd_btnDong);\n\t\tbtnDong.setText(\"Đóng\");\n\t\tinit_loadMODE();\n\t\tinit_CreateMode();\n\t}", "private void createContents() {\n\t\tshell = new Shell(getParent(), SWT.SHELL_TRIM | SWT.BORDER | SWT.PRIMARY_MODAL);\n\t\tshell.setImage(SWTResourceManager.getImage(ThuocDlg.class, \"/png/list-2x.png\"));\n\t\tshell.setSize(610, 340);\n\t\tshell.setText(\"Thuoc List View\");\n\t\tshell.setLayout(new BorderLayout(0, 0));\n\t\tshell.addKeyListener(new KeyAdapter() {\n\t\t\t@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tif(e.keyCode==SWT.ESC){\n\t\t\t\t\tobjThuoc = null;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n \n Composite compositeInShellThuoc = new Composite(shell, SWT.NONE);\n\t\tcompositeInShellThuoc.setLayout(new BorderLayout(0, 0));\n\t\tcompositeInShellThuoc.setLayoutData(BorderLayout.CENTER);\n \n\t\tComposite compositeHeaderThuoc = new Composite(compositeInShellThuoc, SWT.NONE);\n\t\tcompositeHeaderThuoc.setLayoutData(BorderLayout.NORTH);\n\t\tcompositeHeaderThuoc.setLayout(new GridLayout(5, false));\n\n\t\ttextSearchThuoc = new Text(compositeHeaderThuoc, SWT.BORDER);\n\t\ttextSearchThuoc.setFont(SWTResourceManager.getFont(\"Tahoma\", 10, SWT.NORMAL));\n\t\ttextSearchThuoc.addKeyListener(new KeyAdapter() {\n\t\t\t@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tif(e.keyCode==13){\n\t\t\t\t\treloadTableThuoc();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tButton btnNewButtonSearchThuoc = new Button(compositeHeaderThuoc, SWT.NONE);\n\t\tbtnNewButtonSearchThuoc.setImage(SWTResourceManager.getImage(ThuocDlg.class, \"/png/media-play-2x.png\"));\n\t\tbtnNewButtonSearchThuoc.setFont(SWTResourceManager.getFont(\"Tahoma\", 10, SWT.NORMAL));\n\n\t\tbtnNewButtonSearchThuoc.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\treloadTableThuoc();\n\t\t\t}\n\t\t});\n\t\tButton btnNewButtonExportExcelThuoc = new Button(compositeHeaderThuoc, SWT.NONE);\n\t\tbtnNewButtonExportExcelThuoc.setText(\"Export Excel\");\n\t\tbtnNewButtonExportExcelThuoc.setImage(SWTResourceManager.getImage(KhamBenhListDlg.class, \"/png/spreadsheet-2x.png\"));\n\t\tbtnNewButtonExportExcelThuoc.setFont(SWTResourceManager.getFont(\"Tahoma\", 10, SWT.NORMAL));\n\t\tbtnNewButtonExportExcelThuoc.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\texportExcelTableThuoc();\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\tGridData gd_btnNewButtonThuoc = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\n\t\tgd_btnNewButtonThuoc.widthHint = 87;\n\t\tbtnNewButtonSearchThuoc.setLayoutData(gd_btnNewButtonThuoc);\n\t\tbtnNewButtonSearchThuoc.setText(\"Search\");\n \n\t\ttableViewerThuoc = new TableViewer(compositeInShellThuoc, SWT.BORDER | SWT.FULL_SELECTION);\n\t\ttableThuoc = tableViewerThuoc.getTable();\n\t\ttableThuoc.setFont(SWTResourceManager.getFont(\"Tahoma\", 10, SWT.NORMAL));\n\t\ttableThuoc.addKeyListener(new KeyAdapter() {\n\t\t\t@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tif(e.keyCode==SWT.F5){\n\t\t\t\t\treloadTableThuoc();\n }\n if(e.keyCode==SWT.F4){\n\t\t\t\t\teditTableThuoc();\n }\n\t\t\t\telse if(e.keyCode==13){\n\t\t\t\t\tselectTableThuoc();\n\t\t\t\t}\n else if(e.keyCode==SWT.DEL){\n\t\t\t\t\tdeleteTableThuoc();\n\t\t\t\t}\n else if(e.keyCode==SWT.F7){\n\t\t\t\t\tnewItemThuoc();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n tableThuoc.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\n\t\t\t\tselectTableThuoc();\n\t\t\t}\n\t\t});\n \n\t\ttableThuoc.setLinesVisible(true);\n\t\ttableThuoc.setHeaderVisible(true);\n\t\ttableThuoc.setLayoutData(BorderLayout.CENTER);\n\n\t\tTableColumn tbTableColumnThuocMA_HOAT_CHAT = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocMA_HOAT_CHAT.setWidth(100);\n\t\ttbTableColumnThuocMA_HOAT_CHAT.setText(\"MA_HOAT_CHAT\");\n\n\t\tTableColumn tbTableColumnThuocMA_AX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocMA_AX.setWidth(100);\n\t\ttbTableColumnThuocMA_AX.setText(\"MA_AX\");\n\n\t\tTableColumn tbTableColumnThuocHOAT_CHAT = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocHOAT_CHAT.setWidth(100);\n\t\ttbTableColumnThuocHOAT_CHAT.setText(\"HOAT_CHAT\");\n\n\t\tTableColumn tbTableColumnThuocHOATCHAT_AX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocHOATCHAT_AX.setWidth(100);\n\t\ttbTableColumnThuocHOATCHAT_AX.setText(\"HOATCHAT_AX\");\n\n\t\tTableColumn tbTableColumnThuocMA_DUONG_DUNG = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocMA_DUONG_DUNG.setWidth(100);\n\t\ttbTableColumnThuocMA_DUONG_DUNG.setText(\"MA_DUONG_DUNG\");\n\n\t\tTableColumn tbTableColumnThuocMA_DUONGDUNG_AX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocMA_DUONGDUNG_AX.setWidth(100);\n\t\ttbTableColumnThuocMA_DUONGDUNG_AX.setText(\"MA_DUONGDUNG_AX\");\n\n\t\tTableColumn tbTableColumnThuocDUONG_DUNG = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocDUONG_DUNG.setWidth(100);\n\t\ttbTableColumnThuocDUONG_DUNG.setText(\"DUONG_DUNG\");\n\n\t\tTableColumn tbTableColumnThuocDUONGDUNG_AX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocDUONGDUNG_AX.setWidth(100);\n\t\ttbTableColumnThuocDUONGDUNG_AX.setText(\"DUONGDUNG_AX\");\n\n\t\tTableColumn tbTableColumnThuocHAM_LUONG = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocHAM_LUONG.setWidth(100);\n\t\ttbTableColumnThuocHAM_LUONG.setText(\"HAM_LUONG\");\n\n\t\tTableColumn tbTableColumnThuocHAMLUONG_AX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocHAMLUONG_AX.setWidth(100);\n\t\ttbTableColumnThuocHAMLUONG_AX.setText(\"HAMLUONG_AX\");\n\n\t\tTableColumn tbTableColumnThuocTEN_THUOC = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocTEN_THUOC.setWidth(100);\n\t\ttbTableColumnThuocTEN_THUOC.setText(\"TEN_THUOC\");\n\n\t\tTableColumn tbTableColumnThuocTENTHUOC_AX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocTENTHUOC_AX.setWidth(100);\n\t\ttbTableColumnThuocTENTHUOC_AX.setText(\"TENTHUOC_AX\");\n\n\t\tTableColumn tbTableColumnThuocSO_DANG_KY = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocSO_DANG_KY.setWidth(100);\n\t\ttbTableColumnThuocSO_DANG_KY.setText(\"SO_DANG_KY\");\n\n\t\tTableColumn tbTableColumnThuocSODANGKY_AX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocSODANGKY_AX.setWidth(100);\n\t\ttbTableColumnThuocSODANGKY_AX.setText(\"SODANGKY_AX\");\n\n\t\tTableColumn tbTableColumnThuocDONG_GOI = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocDONG_GOI.setWidth(100);\n\t\ttbTableColumnThuocDONG_GOI.setText(\"DONG_GOI\");\n\n\t\tTableColumn tbTableColumnThuocDON_VI_TINH = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocDON_VI_TINH.setWidth(100);\n\t\ttbTableColumnThuocDON_VI_TINH.setText(\"DON_VI_TINH\");\n\n\n\t\tTableColumn tbTableColumnThuocDON_GIA = new TableColumn(tableThuoc, SWT.NONE);\n\t\ttbTableColumnThuocDON_GIA.setWidth(100);\n\t\ttbTableColumnThuocDON_GIA.setText(\"DON_GIA\");\n\n\n\t\tTableColumn tbTableColumnThuocDON_GIA_TT = new TableColumn(tableThuoc, SWT.NONE);\n\t\ttbTableColumnThuocDON_GIA_TT.setWidth(100);\n\t\ttbTableColumnThuocDON_GIA_TT.setText(\"DON_GIA_TT\");\n\n\t\tTableColumn tbTableColumnThuocSO_LUONG = new TableColumn(tableThuoc, SWT.RIGHT);\n\t\ttbTableColumnThuocSO_LUONG.setWidth(100);\n\t\ttbTableColumnThuocSO_LUONG.setText(\"SO_LUONG\");\n\n\t\tTableColumn tbTableColumnThuocMA_CSKCB = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocMA_CSKCB.setWidth(100);\n\t\ttbTableColumnThuocMA_CSKCB.setText(\"MA_CSKCB\");\n\n\t\tTableColumn tbTableColumnThuocHANG_SX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocHANG_SX.setWidth(100);\n\t\ttbTableColumnThuocHANG_SX.setText(\"HANG_SX\");\n\n\t\tTableColumn tbTableColumnThuocNUOC_SX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocNUOC_SX.setWidth(100);\n\t\ttbTableColumnThuocNUOC_SX.setText(\"NUOC_SX\");\n\n\t\tTableColumn tbTableColumnThuocNHA_THAU = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocNHA_THAU.setWidth(100);\n\t\ttbTableColumnThuocNHA_THAU.setText(\"NHA_THAU\");\n\n\t\tTableColumn tbTableColumnThuocQUYET_DINH = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocQUYET_DINH.setWidth(100);\n\t\ttbTableColumnThuocQUYET_DINH.setText(\"QUYET_DINH\");\n\n\t\tTableColumn tbTableColumnThuocCONG_BO = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocCONG_BO.setWidth(100);\n\t\ttbTableColumnThuocCONG_BO.setText(\"CONG_BO\");\n\n\t\tTableColumn tbTableColumnThuocMA_THUOC_BV = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocMA_THUOC_BV.setWidth(100);\n\t\ttbTableColumnThuocMA_THUOC_BV.setText(\"MA_THUOC_BV\");\n\n\t\tTableColumn tbTableColumnThuocLOAI_THUOC = new TableColumn(tableThuoc, SWT.RIGHT);\n\t\ttbTableColumnThuocLOAI_THUOC.setWidth(100);\n\t\ttbTableColumnThuocLOAI_THUOC.setText(\"LOAI_THUOC\");\n\n\t\tTableColumn tbTableColumnThuocLOAI_THAU = new TableColumn(tableThuoc, SWT.RIGHT);\n\t\ttbTableColumnThuocLOAI_THAU.setWidth(100);\n\t\ttbTableColumnThuocLOAI_THAU.setText(\"LOAI_THAU\");\n\n\t\tTableColumn tbTableColumnThuocNHOM_THAU = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocNHOM_THAU.setWidth(100);\n\t\ttbTableColumnThuocNHOM_THAU.setText(\"NHOM_THAU\");\n\n\t\tTableColumn tbTableColumnThuocMANHOM_9324 = new TableColumn(tableThuoc, SWT.RIGHT);\n\t\ttbTableColumnThuocMANHOM_9324.setWidth(100);\n\t\ttbTableColumnThuocMANHOM_9324.setText(\"MANHOM_9324\");\n\n\t\tTableColumn tbTableColumnThuocHIEULUC = new TableColumn(tableThuoc, SWT.RIGHT);\n\t\ttbTableColumnThuocHIEULUC.setWidth(100);\n\t\ttbTableColumnThuocHIEULUC.setText(\"HIEULUC\");\n\n\t\tTableColumn tbTableColumnThuocKETQUA = new TableColumn(tableThuoc, SWT.RIGHT);\n\t\ttbTableColumnThuocKETQUA.setWidth(100);\n\t\ttbTableColumnThuocKETQUA.setText(\"KETQUA\");\n\n\t\tTableColumn tbTableColumnThuocTYP = new TableColumn(tableThuoc, SWT.RIGHT);\n\t\ttbTableColumnThuocTYP.setWidth(100);\n\t\ttbTableColumnThuocTYP.setText(\"TYP\");\n\n\t\tTableColumn tbTableColumnThuocTHUOC_RANK = new TableColumn(tableThuoc, SWT.RIGHT);\n\t\ttbTableColumnThuocTHUOC_RANK.setWidth(100);\n\t\ttbTableColumnThuocTHUOC_RANK.setText(\"THUOC_RANK\");\n\n Menu menuThuoc = new Menu(tableThuoc);\n\t\ttableThuoc.setMenu(menuThuoc);\n\t\t\n\t\tMenuItem mntmNewItemThuoc = new MenuItem(menuThuoc, SWT.NONE);\n\t\tmntmNewItemThuoc.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tnewItemThuoc();\n\t\t\t}\n\t\t});\n\t\tmntmNewItemThuoc.setImage(SWTResourceManager.getImage(ThuocDlg.class, \"/png/arrow-circle-top-2x.png\"));\n\t\tmntmNewItemThuoc.setText(\"New\");\n\t\t\n\t\tMenuItem mntmEditItemThuoc = new MenuItem(menuThuoc, SWT.NONE);\n\t\tmntmEditItemThuoc.setImage(SWTResourceManager.getImage(ThuocDlg.class, \"/png/wrench-2x.png\"));\n\t\tmntmEditItemThuoc.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\teditTableThuoc();\n\t\t\t}\n\t\t});\n\t\tmntmEditItemThuoc.setText(\"Edit\");\n\t\t\n\t\tMenuItem mntmDeleteThuoc = new MenuItem(menuThuoc, SWT.NONE);\n\t\tmntmDeleteThuoc.setImage(SWTResourceManager.getImage(ThuocDlg.class, \"/png/circle-x-2x.png\"));\n\t\tmntmDeleteThuoc.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tdeleteTableThuoc();\n\t\t\t}\n\t\t});\n\t\tmntmDeleteThuoc.setText(\"Delete\");\n\t\t\n\t\tMenuItem mntmExportThuoc = new MenuItem(menuThuoc, SWT.NONE);\n\t\tmntmExportThuoc.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\texportExcelTableThuoc();\n\t\t\t}\n\t\t});\n\t\tmntmExportThuoc.setImage(SWTResourceManager.getImage(ThuocDlg.class, \"/png/spreadsheet-2x.png\"));\n\t\tmntmExportThuoc.setText(\"Export Excel\");\n\t\t\n\t\ttableViewerThuoc.setLabelProvider(new TableLabelProviderThuoc());\n\t\ttableViewerThuoc.setContentProvider(new ContentProviderThuoc());\n\t\ttableViewerThuoc.setInput(listDataThuoc);\n //\n //\n\t\tloadDataThuoc();\n\t\t//\n reloadTableThuoc();\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(1200, 1100);\n\t\tshell.setText(\"Zagreb Montaža d.o.o\");\n\n\t\tfinal Composite cmpMenu = new Composite(shell, SWT.NONE);\n\t\tcmpMenu.setBackground(SWTResourceManager.getColor(119, 136, 153));\n\t\tcmpMenu.setBounds(0, 0, 359, 1061);\n\t\t\n\t\tFormToolkit formToolkit = new FormToolkit(Display.getDefault());\n\t\tfinal Section sctnCalculator = formToolkit.createSection(cmpMenu, Section.TWISTIE | Section.TITLE_BAR);\n\t\tsctnCalculator.setExpanded(false);\n\t\tsctnCalculator.setBounds(10, 160, 339, 23);\n\t\tformToolkit.paintBordersFor(sctnCalculator);\n\t\tsctnCalculator.setText(\"Kalkulator temperature preddgrijavanja\");\n\n\t\tfinal Section sctn10112ce = formToolkit.createSection(cmpMenu, Section.TREE_NODE | Section.TITLE_BAR);\n\t\tsctn10112ce.setBounds(45, 189, 304, 23);\n\t\tformToolkit.paintBordersFor(sctn10112ce);\n\t\tsctn10112ce.setText(\"1011-2 CE\");\n\t\tsctn10112ce.setVisible(false);\n\n\t\tfinal Section sctn10112cet = formToolkit.createSection(cmpMenu, Section.TREE_NODE | Section.TITLE_BAR);\n\t\tsctn10112cet.setBounds(45, 218, 304, 23);\n\t\tformToolkit.paintBordersFor(sctn10112cet);\n\t\tsctn10112cet.setText(\"1011-2 CET\");\n\t\tsctn10112cet.setVisible(false);\n\n\t\tfinal Section sctnAws = formToolkit.createSection(cmpMenu, Section.TREE_NODE | Section.TITLE_BAR);\n\t\tsctnAws.setBounds(45, 247, 304, 23);\n\t\tformToolkit.paintBordersFor(sctnAws);\n\t\tsctnAws.setText(\"AWS\");\n\t\tsctnAws.setVisible(false);\n\t\t\n\t\tfinal Composite composite10112ce = new Composite(shell, SWT.COLOR_DARK_GRAY);\n\t\t//composite10112ce.setBackground(SWTResourceManager.getColor(255, 255, 255));\n\t\tcomposite10112ce.setBounds(365, 0, 829, 1061);\n\t\tcomposite10112ce.setVisible(false);\n\t\t\n\t\tfinal Composite composite10112cet = new Composite(shell, SWT.COLOR_DARK_GRAY);\n\t\t//composite10112ce.setBackground(SWTResourceManager.getColor(255, 255, 255));\n\t\tcomposite10112cet.setBounds(365, 0, 829, 1061);\n\t\tcomposite10112cet.setVisible(false);\n\t\t\n\t\tfinal Composite compositeAws = new Composite(shell, SWT.COLOR_DARK_GRAY);\n\t\t//composite10112ce.setBackground(SWTResourceManager.getColor(255, 255, 255));\n\t\tcompositeAws.setBounds(365, 0, 829, 1061);\n\t\tcompositeAws.setVisible(false);\n\t\t\n\t\tsctnCalculator.addExpansionListener(new IExpansionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void expansionStateChanged(ExpansionEvent arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void expansionStateChanging(ExpansionEvent arg0) {\n\n\t\t\t\tif (sctnCalculator.isExpanded() == false) {\n\t\t\t\t\tsctn10112ce.setVisible(true);\n\t\t\t\t\tsctn10112cet.setVisible(true);\n\t\t\t\t\tsctnAws.setVisible(true);\n\n\t\t\t\t} else {\n\t\t\t\t\tsctn10112ce.setVisible(false);\n\t\t\t\t\tsctn10112cet.setVisible(false);\n\t\t\t\t\tsctnAws.setVisible(false);\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t});\n\n\t\tsctn10112ce.addExpansionListener(new IExpansionListener() {\n\t\t\t@Override\n\t\t\tpublic void expansionStateChanging(ExpansionEvent arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void expansionStateChanged(ExpansionEvent arg0) {\n\t\t\t\tif (sctn10112ce.isExpanded() == true) {\n\t\t\t\t\tsctn10112cet.setVisible(false);\n\t\t\t\t\tcompositeAws.setVisible(false);\n\t\t\t\t\tnew F10112ce(composite10112ce, cmpMenu.getStyle());\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tcomposite10112ce.setVisible(false);\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\tsctn10112cet.addExpansionListener(new IExpansionListener() {\n\t\t\t@Override\n\t\t\tpublic void expansionStateChanging(ExpansionEvent arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void expansionStateChanged(ExpansionEvent arg0) {\n\t\t\t\tif (sctn10112cet.isExpanded() == true) {\n\t\t\t\t\tsctn10112ce.setVisible(false);\n\t\t\t\t\tcompositeAws.setVisible(false);\n\t\t\t\t\tnew F10112cet(composite10112cet, cmpMenu.getStyle());\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tcomposite10112ce.setVisible(false);\n\t\t\t}\n\t\t});\n\t\t\n\t\tsctnAws.addExpansionListener(new IExpansionListener() {\n\t\t\t@Override\n\t\t\tpublic void expansionStateChanging(ExpansionEvent arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void expansionStateChanged(ExpansionEvent arg0) {\n\t\t\t\tif (sctnAws.isExpanded() == true) {\n\t\t\t\t\tsctn10112ce.setVisible(false);\n\t\t\t\t\tsctn10112cet.setVisible(false);\n\t\t\t\t\tnew FAws(compositeAws, cmpMenu.getStyle());\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tcompositeAws.setVisible(false);\n\t\t\t}\n\t\t});\n\t}", "public InfoDialog() {\r\n\t\tcreateContents();\r\n\t}", "private void createContents() {\r\n\t\tshlOProgramie = new Shell(getParent().getDisplay(), SWT.DIALOG_TRIM\r\n\t\t\t\t| SWT.RESIZE);\r\n\t\tshlOProgramie.setBackground(SWTResourceManager.getColor(255, 255, 255));\r\n\t\tshlOProgramie.setText(\"O programie\");\r\n\t\tshlOProgramie.setSize(386, 221);\r\n\t\tint x = 386;\r\n\t\tint y = 221;\r\n\t\t// Get the resolution\r\n\t\tRectangle pDisplayBounds = shlOProgramie.getDisplay().getBounds();\r\n\r\n\t\t// This formulae calculate the shell's Left ant Top\r\n\t\tint nLeft = (pDisplayBounds.width - x) / 2;\r\n\t\tint nTop = (pDisplayBounds.height - y) / 2;\r\n\r\n\t\t// Set shell bounds,\r\n\t\tshlOProgramie.setBounds(nLeft, nTop, x, y);\r\n\t\tsetText(\"O programie\");\r\n\r\n\t\tbtnZamknij = new Button(shlOProgramie, SWT.PUSH | SWT.BORDER_SOLID);\r\n\t\tbtnZamknij.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseUp(MouseEvent e) {\r\n\t\t\t\tshlOProgramie.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnZamknij.setBounds(298, 164, 68, 23);\r\n\t\tbtnZamknij.setText(\"Zamknij\");\r\n\r\n\t\tText link = new Text(shlOProgramie, SWT.READ_ONLY);\r\n\t\tlink.setBackground(SWTResourceManager.getColor(230, 230, 250));\r\n\t\tlink.setBounds(121, 127, 178, 13);\r\n\t\tlink.setText(\"Kontakt: [email protected]\");\r\n\r\n\t\tCLabel lblNewLabel = new CLabel(shlOProgramie, SWT.BORDER\r\n\t\t\t\t| SWT.SHADOW_IN | SWT.SHADOW_OUT | SWT.SHADOW_NONE);\r\n\t\tlblNewLabel.setBackground(SWTResourceManager.getColor(230, 230, 250));\r\n\t\tlblNewLabel.setBounds(118, 20, 248, 138);\r\n\t\tlblNewLabel\r\n\t\t\t\t.setText(\" Kalkulator walut ver 0.0.2 \\r\\n -------------------------------\\r\\n Program umo\\u017Cliwiaj\\u0105cy pobieranie\\r\\n aktualnych kurs\\u00F3w walut ze strony nbp.pl\\r\\n\\r\\n Copyright by Wojciech Trocki.\\r\\n\");\r\n\r\n\t\tLabel lblNewLabel_1 = new Label(shlOProgramie, SWT.NONE);\r\n\t\tlblNewLabel_1.setBackground(SWTResourceManager.getColor(255, 255, 255));\r\n\t\tlblNewLabel_1.setImage(SWTResourceManager.getImage(\"images/about.gif\"));\r\n\t\tlblNewLabel_1.setBounds(10, 20, 100, 138);\r\n\t}", "protected void createContents() {\n\t\tsetText(\"SWT Application\");\n\t\tsetSize(656, 296);\n\n\t}", "private void createContents() {\r\n\t\tshlEventBlocker = new Shell(getParent(), getStyle());\r\n\t\tshlEventBlocker.setSize(167, 135);\r\n\t\tshlEventBlocker.setText(\"Event Blocker\");\r\n\t\t\r\n\t\tLabel lblRunningEvent = new Label(shlEventBlocker, SWT.NONE);\r\n\t\tlblRunningEvent.setBounds(10, 10, 100, 15);\r\n\t\tlblRunningEvent.setText(\"Running Event:\");\r\n\t\t\r\n\t\tLabel lblevent = new Label(shlEventBlocker, SWT.NONE);\r\n\t\tlblevent.setFont(SWTResourceManager.getFont(\"Segoe UI\", 15, SWT.BOLD));\r\n\t\tlblevent.setBounds(20, 31, 129, 35);\r\n\t\tlblevent.setText(eventName);\r\n\t\t\r\n\t\tButton btnFinish = new Button(shlEventBlocker, SWT.NONE);\r\n\t\tbtnFinish.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseUp(MouseEvent e) {\r\n\t\t\t\tshlEventBlocker.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnFinish.setBounds(10, 72, 75, 25);\r\n\t\tbtnFinish.setText(\"Finish\");\r\n\r\n\t}", "protected void createContents() {\n\t\tsetText(\"Account Settings\");\n\t\tsetSize(450, 225);\n\n\t}", "protected void createContents() throws Exception {\n\t\tshlGecco = new Shell();\n\t\tshlGecco.setImage(SWTResourceManager.getImage(jdView.class, \"/images/yc.ico\"));\n\t\tshlGecco.setSize(1366, 736);\n\t\tshlGecco.setText(\"gecco爬取京东信息\");\n\t\tshlGecco.setLocation(0, 0);\n\t\tshlGecco.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\tSashForm sashForm = new SashForm(shlGecco, SWT.NONE);\n\t\tsashForm.setOrientation(SWT.VERTICAL);\n\n\t\tGroup group = new Group(sashForm, SWT.NONE);\n\t\tgroup.setFont(SWTResourceManager.getFont(\"Microsoft YaHei UI\", 10, SWT.BOLD));\n\t\tgroup.setText(\"爬取查询条件\");\n\t\tgroup.setLayout(new FillLayout(SWT.HORIZONTAL));\n\n\t\tSashForm sashForm_2 = new SashForm(group, SWT.NONE);\n\n\t\tGroup group_2 = new Group(sashForm_2, SWT.NONE);\n\t\tgroup_2.setText(\"爬取条件\");\n\n\t\tLabel lblip = new Label(group_2, SWT.NONE);\n\t\tlblip.setLocation(34, 27);\n\t\tlblip.setSize(113, 21);\n\t\tlblip.setText(\"输入开始爬取地址:\");\n\n\t\ttxtSearchUrl = new Text(group_2, SWT.BORDER);\n\t\ttxtSearchUrl.setLocation(153, 23);\n\t\ttxtSearchUrl.setSize(243, 23);\n\t\ttxtSearchUrl.setText(\"https://www.jd.com/allSort.aspx\");\n\n\t\tbtnSearch = new Button(group_2, SWT.NONE);\n\t\tbtnSearch.setLocation(408, 23);\n\t\tbtnSearch.setSize(82, 25);\n\n\t\tbtnSearch.setEnabled(false);\n\t\tbtnSearch.setText(\"开始爬取\");\n\n\t\tGroup group_3 = new Group(sashForm_2, SWT.NONE);\n\t\tgroup_3.setText(\"查询条件\");\n\n\t\tLabel label_2 = new Label(group_3, SWT.NONE);\n\t\tlabel_2.setLocation(77, 25);\n\t\tlabel_2.setSize(86, 25);\n\t\tlabel_2.setText(\"选择查询条件:\");\n\n\t\tcombo = new Combo(group_3, SWT.NONE);\n\t\tcombo.setLocation(169, 23);\n\t\tcombo.setSize(140, 23);\n\t\tcombo.setItems(new String[] { \"全部\", \"商品总类别\", \"子类别名\", \"类别链接\" });\n\t\t// combo.setText(\"全部\");\n\n\t\tbutton = new Button(group_3, SWT.NONE);\n\t\tbutton.setLocation(524, 23);\n\t\tbutton.setSize(80, 25);\n\t\tbutton.setText(\"点击查询\");\n\t\tbutton.setEnabled(false);\n\n\t\tcombo_1 = new Combo(group_3, SWT.NONE);\n\t\tcombo_1.setEnabled(false);\n\t\tcombo_1.setLocation(332, 23);\n\t\tcombo_1.setSize(170, 23);\n\t\t// combo_1.setItems(new String[] { \"全部\" });\n\t\t// combo_1.setText(\"全部\");\n\t\tsashForm_2.setWeights(new int[] { 562, 779 });\n\t\tGroup group_1 = new Group(sashForm, SWT.NONE);\n\t\tgroup_1.setFont(SWTResourceManager.getFont(\"Microsoft YaHei UI\", 10, SWT.BOLD));\n\t\tgroup_1.setText(\"爬取结果\");\n\t\tgroup_1.setLayout(new FillLayout(SWT.HORIZONTAL));\n\n\t\tSashForm sashForm_1 = new SashForm(group_1, SWT.NONE);\n\n\t\tGroup group_Categorys = new Group(sashForm_1, SWT.NONE);\n\t\tgroup_Categorys.setText(\"商品分组\");\n\t\tgroup_Categorys.setLayout(new FillLayout(SWT.HORIZONTAL));\n\n\t\tcategorys = new Table(group_Categorys, SWT.BORDER | SWT.FULL_SELECTION);\n\t\tcategorys.setHeaderVisible(true);\n\t\tcategorys.setLinesVisible(true);\n\n\t\tTableColumn ParentName = new TableColumn(categorys, SWT.NONE);\n\t\tParentName.setWidth(87);\n\t\tParentName.setText(\"商品总类别\");\n\n\t\tTableColumn Title = new TableColumn(categorys, SWT.NONE);\n\t\tTitle.setWidth(87);\n\t\tTitle.setText(\"子类别名\");\n\n\t\tTableColumn Ip = new TableColumn(categorys, SWT.NONE);\n\t\tIp.setWidth(152);\n\t\tIp.setText(\"类别链接\");\n\n\t\tGroup group_ProductBrief = new Group(sashForm_1, SWT.NONE);\n\t\tgroup_ProductBrief.setText(\"商品简要信息列表\");\n\t\tgroup_ProductBrief.setLayout(new FillLayout(SWT.HORIZONTAL));\n\n\t\tproductBrief = new Table(group_ProductBrief, SWT.BORDER | SWT.FULL_SELECTION);\n\t\tproductBrief.setLinesVisible(true);\n\t\tproductBrief.setHeaderVisible(true);\n\n\t\tTableColumn Code = new TableColumn(productBrief, SWT.NONE);\n\t\tCode.setWidth(80);\n\t\tCode.setText(\"商品编号\");\n\n\t\tTableColumn Detailurl = new TableColumn(productBrief, SWT.NONE);\n\t\tDetailurl.setWidth(162);\n\t\tDetailurl.setText(\"商品详情链接\");\n\n\t\tTableColumn Preview = new TableColumn(productBrief, SWT.NONE);\n\t\tPreview.setWidth(170);\n\t\tPreview.setText(\"商品图片链接\");\n\n\t\tTableColumn Dtitle = new TableColumn(productBrief, SWT.NONE);\n\t\tDtitle.setWidth(150);\n\t\tDtitle.setText(\"商品标题\");\n\n\t\tGroup group_ProductDetail = new Group(sashForm_1, SWT.NONE);\n\t\tgroup_ProductDetail.setText(\"商品详细信息\");\n\t\tgroup_ProductDetail.setLayout(new FillLayout(SWT.HORIZONTAL));\n\n\t\tComposite composite = new Composite(group_ProductDetail, SWT.NONE);\n\n\t\tPDetail = new Text(composite,\n\t\t\t\tSWT.BORDER | SWT.READ_ONLY | SWT.WRAP | SWT.H_SCROLL | SWT.V_SCROLL | SWT.CANCEL | SWT.MULTI);\n\t\tPDetail.setLocation(55, 339);\n\t\tPDetail.setSize(360, 220);\n\n\t\tLabel Id = new Label(composite, SWT.NONE);\n\t\tId.setBounds(31, 28, 61, 15);\n\t\tId.setText(\"商品编号:\");\n\n\t\tLabel detail = new Label(composite, SWT.NONE);\n\t\tdetail.setText(\"商品详情:\");\n\t\tdetail.setBounds(31, 311, 61, 15);\n\n\t\tLabel title = new Label(composite, SWT.NONE);\n\t\ttitle.setText(\"商品标题:\");\n\t\ttitle.setBounds(31, 64, 61, 15);\n\n\t\tLabel jdAd = new Label(composite, SWT.NONE);\n\t\tjdAd.setText(\"商品广告:\");\n\t\tjdAd.setBounds(31, 201, 61, 15);\n\n\t\tLabel price = new Label(composite, SWT.NONE);\n\t\tprice.setBounds(31, 108, 61, 15);\n\t\tprice.setText(\"价格:\");\n\n\t\tdcode = new Text(composite, SWT.BORDER);\n\t\tdcode.setEditable(false);\n\t\tdcode.setBounds(98, 25, 217, 21);\n\n\t\tLabel jdprice = new Label(composite, SWT.NONE);\n\t\tjdprice.setBounds(75, 127, 48, 15);\n\t\tjdprice.setText(\"京东价:\");\n\n\t\tLabel srcPrice = new Label(composite, SWT.NONE);\n\t\tsrcPrice.setBounds(75, 166, 48, 15);\n\t\tsrcPrice.setText(\"原售价:\");\n\n\t\tdprice = new Text(composite, SWT.BORDER);\n\t\tdprice.setEditable(false);\n\t\tdprice.setBounds(128, 127, 187, 21);\n\n\t\tdsrcPrice = new Text(composite, SWT.BORDER);\n\t\tdsrcPrice.setEditable(false);\n\t\tdsrcPrice.setBounds(128, 166, 187, 21);\n\n\t\tdtitle = new Text(composite,\n\t\t\t\tSWT.BORDER | SWT.READ_ONLY | SWT.WRAP | SWT.H_SCROLL | SWT.V_SCROLL | SWT.CANCEL | SWT.MULTI);\n\t\tdtitle.setBounds(98, 62, 217, 42);\n\n\t\tLabel label = new Label(composite, SWT.NONE);\n\t\tlabel.setText(\"广告标题:\");\n\t\tlabel.setBounds(62, 233, 61, 15);\n\n\t\tLabel label_1 = new Label(composite, SWT.NONE);\n\t\tlabel_1.setText(\"广告链接:\");\n\t\tlabel_1.setBounds(62, 272, 61, 15);\n\n\t\tadtitle = new Text(composite, SWT.BORDER);\n\t\tadtitle.setEditable(false);\n\t\tadtitle.setBounds(128, 231, 187, 21);\n\n\t\tadUrl = new Text(composite, SWT.BORDER);\n\t\tadUrl.setEditable(false);\n\t\tadUrl.setBounds(128, 270, 187, 21);\n\t\tsashForm_1.setWeights(new int[] { 335, 573, 430 });\n\t\tsashForm.setWeights(new int[] { 85, 586 });\n\n\t\tdoEvent();// 组件的事件操作\n\n\t}", "protected void createContents() {\n\t\tsetText(\"SWT Application\");\n\t\tsetSize(437, 529);\n\n\t}", "private void createContents() {\r\n this.shell = new Shell(this.getParent(), this.getStyle());\r\n this.shell.setText(\"自動プロキシ構成スクリプトファイル生成\");\r\n this.shell.setLayout(new GridLayout(1, false));\r\n\r\n Composite composite = new Composite(this.shell, SWT.NONE);\r\n composite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\r\n composite.setLayout(new GridLayout(1, false));\r\n\r\n Label labelTitle = new Label(composite, SWT.NONE);\r\n labelTitle.setText(\"自動プロキシ構成スクリプトファイルを生成します\");\r\n\r\n String server = Filter.getServerName();\r\n if (server == null) {\r\n Group manualgroup = new Group(composite, SWT.NONE);\r\n manualgroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\r\n manualgroup.setLayout(new GridLayout(2, false));\r\n manualgroup.setText(\"鎮守府サーバーが未検出です。IPアドレスを入力して下さい。\");\r\n\r\n Label iplabel = new Label(manualgroup, SWT.NONE);\r\n iplabel.setText(\"IPアドレス:\");\r\n\r\n final Text text = new Text(manualgroup, SWT.BORDER);\r\n GridData gdip = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\r\n gdip.widthHint = SwtUtils.DPIAwareWidth(150);\r\n text.setLayoutData(gdip);\r\n text.setText(\"0.0.0.0\");\r\n text.addModifyListener(new ModifyListener() {\r\n @Override\r\n public void modifyText(ModifyEvent e) {\r\n CreatePacFileDialog.this.server = text.getText();\r\n }\r\n });\r\n\r\n this.server = \"0.0.0.0\";\r\n } else {\r\n this.server = server;\r\n }\r\n\r\n Button storeButton = new Button(composite, SWT.NONE);\r\n storeButton.setText(\"保存先を選択...\");\r\n storeButton.addSelectionListener(new FileSelectionAdapter(this));\r\n\r\n Group addrgroup = new Group(composite, SWT.NONE);\r\n addrgroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\r\n addrgroup.setLayout(new GridLayout(2, false));\r\n addrgroup.setText(\"アドレス(保存先のアドレスより生成されます)\");\r\n\r\n Label ieAddrLabel = new Label(addrgroup, SWT.NONE);\r\n ieAddrLabel.setText(\"IE用:\");\r\n\r\n this.iePath = new Text(addrgroup, SWT.BORDER);\r\n GridData gdIePath = new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1);\r\n gdIePath.widthHint = SwtUtils.DPIAwareWidth(380);\r\n this.iePath.setLayoutData(gdIePath);\r\n\r\n Label fxAddrLabel = new Label(addrgroup, SWT.NONE);\r\n fxAddrLabel.setText(\"Firefox用:\");\r\n\r\n this.firefoxPath = new Text(addrgroup, SWT.BORDER);\r\n GridData gdFxPath = new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1);\r\n gdFxPath.widthHint = SwtUtils.DPIAwareWidth(380);\r\n this.firefoxPath.setLayoutData(gdFxPath);\r\n\r\n this.shell.pack();\r\n }", "protected void createContents() {\n\t\tsetText(\"SWT Application\");\n\t\tsetSize(838, 649);\n\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(450, 300);\n\t\tshell.setText(\"SWT Application\");\n\t\t\n\t\tGroup group_1 = new Group(shell, SWT.NONE);\n\t\tgroup_1.setText(\"\\u65B0\\u4FE1\\u606F\\u586B\\u5199\");\n\t\tgroup_1.setBounds(0, 120, 434, 102);\n\t\t\n\t\tLabel label_4 = new Label(group_1, SWT.NONE);\n\t\tlabel_4.setBounds(10, 21, 61, 17);\n\t\tlabel_4.setText(\"\\u59D3\\u540D\");\n\t\t\n\t\tLabel label_5 = new Label(group_1, SWT.NONE);\n\t\tlabel_5.setText(\"\\u7528\\u6237\\u7535\\u8BDD\");\n\t\tlabel_5.setBounds(10, 46, 61, 17);\n\t\t\n\t\tLabel label_6 = new Label(group_1, SWT.NONE);\n\t\tlabel_6.setText(\"\\u5BC6\\u7801\");\n\t\tlabel_6.setBounds(10, 75, 61, 17);\n\t\t\n\t\ttext = new Text(group_1, SWT.BORDER);\n\t\ttext.setBounds(121, 21, 140, 17);\n\t\t\n\t\ttext_1 = new Text(group_1, SWT.BORDER);\n\t\ttext_1.setBounds(121, 46, 140, 17);\n\t\t\n\t\ttext_2 = new Text(group_1, SWT.BORDER);\n\t\ttext_2.setBounds(121, 75, 140, 17);\n\t\t\n\t\tButton btnNewButton = new Button(shell, SWT.NONE);\n\t\tbtnNewButton.setBounds(31, 228, 80, 27);\n\t\tbtnNewButton.setText(\"\\u63D0\\u4EA4\");\n\t\t\n\t\tButton btnNewButton_1 = new Button(shell, SWT.NONE);\n\t\tbtnNewButton_1.setBounds(288, 228, 80, 27);\n\t\tbtnNewButton_1.setText(\"\\u91CD\\u586B\");\n\t\t\n\t\tGroup group = new Group(shell, SWT.NONE);\n\t\tgroup.setText(\"\\u539F\\u5148\\u4FE1\\u606F\");\n\t\tgroup.setBounds(0, 10, 320, 102);\n\t\t\n\t\tLabel label = new Label(group, SWT.NONE);\n\t\tlabel.setBounds(10, 20, 61, 17);\n\t\tlabel.setText(\"\\u59D3\\u540D\");\n\t\t\n\t\tLabel lblNewLabel = new Label(group, SWT.NONE);\n\t\tlblNewLabel.setBounds(113, 20, 61, 17);\n\t\t\n\t\tLabel label_1 = new Label(group, SWT.NONE);\n\t\tlabel_1.setBounds(10, 43, 61, 17);\n\t\tlabel_1.setText(\"\\u6027\\u522B\");\n\t\t\n\t\tButton btnRadioButton = new Button(group, SWT.RADIO);\n\t\t\n\t\tbtnRadioButton.setBounds(90, 43, 97, 17);\n\t\tbtnRadioButton.setText(\"\\u7537\");\n\t\tButton btnRadioButton_1 = new Button(group, SWT.RADIO);\n\t\tbtnRadioButton_1.setBounds(208, 43, 97, 17);\n\t\tbtnRadioButton_1.setText(\"\\u5973\");\n\t\t\n\t\tLabel label_2 = new Label(group, SWT.NONE);\n\t\tlabel_2.setBounds(10, 66, 61, 17);\n\t\tlabel_2.setText(\"\\u7528\\u6237\\u7535\\u8BDD\");\n\t\t\n\t\tLabel lblNewLabel_1 = new Label(group, SWT.NONE);\n\t\tlblNewLabel_1.setBounds(113, 66, 61, 17);\n\t\t\n\t\tLabel label_3 = new Label(group, SWT.NONE);\n\t\tlabel_3.setBounds(10, 89, 61, 17);\n\t\tlabel_3.setText(\"\\u5BC6\\u7801\");\n\t\tLabel lblNewLabel_2 = new Label(group, SWT.NONE);\n\t\tlblNewLabel_2.setBounds(113, 89, 61, 17);\n\t\t\n\t\ttry {\n\t\t\tUserDao userDao=new UserDao();\n\t\t\tlblNewLabel_2.setText(User.getPassword());\n\t\t\tlblNewLabel.setText(User.getUserName());\n\t\t\n\t\t\t\n\n\t\t\n\t\t\ttry {\n\t\t\t\tList<User> userList=userDao.query();\n\t\t\t\tString results[][]=new String[userList.size()][5];\n\t\t\t\tlblNewLabel.setText(User.getUserName());\n\t\t\t\tlblNewLabel_1.setText(User.getSex());\n\t\t\t\tlblNewLabel_2.setText(User.getUserPhone());\n\t\t\t\tButton button = new Button(shell, SWT.NONE);\n\t\t\t\tbutton.setBounds(354, 0, 80, 27);\n\t\t\t\tbutton.setText(\"\\u8FD4\\u56DE\");\n\t\t\t\tbutton.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t\tpublic void widgetSelected(final SelectionEvent e){\n\t\t\t\t\t\tshell.dispose();\n\t\t\t\t\t\tbook book=new book();\n\t\t\t\t\t\tbook.open();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tfor(int i = 0; i < userList.size(); i++) {\n\t\t\t\t\t\tUser user1 = (User)userList.get(i);\t\n\t\t\t\t\tresults[i][0] = user1.getUserName();\n\t\t\t\t\tresults[i][1] = user1.getSex();\t\n\t\t\t\t\tresults[i][2] = user1.getPassword();\t\n\t\n\t\t\t\t\tif(user1.getSex().equals(\"男\"))\n\t\t\t\t\t\tbtnRadioButton.setSelection(true);\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tbtnRadioButton_1.setSelection(true);\n\t\t\t\t\tlblNewLabel_1.setText(user1.getUserPhone());\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\tif(!text_1.getText().equals(\"\")&&!text.getText().equals(\"\")&&!text_2.getText().equals(\"\"))\n\t\t\tuserDao.updateUser(text_1.getText(), text.getText(), text_2.getText());\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t\n\t\tbtnNewButton.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(final SelectionEvent e){\n\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tuserDao.updateUser(text_1.getText(), text.getText(), text_2.getText());\n\t\t\t\t\tif(!text_1.getText().equals(\"\")&&!text_2.getText().equals(\"\")&&!text.getText().equals(\"\"))\n\t\t\t\t\t{shell.dispose();\n\t\t\t\t\tbook book=new book();\n\t\t\t\t\tbook.open();\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{JOptionPane.showMessageDialog(null,\"用户名或密码不能为空\",\"错误\",JOptionPane.PLAIN_MESSAGE);}\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\t});\n\t\tbtnNewButton_1.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(final SelectionEvent e){\n\t\t\t\t\ttext.setText(\"\");\n\t\t\t\t\ttext_1.setText(\"\");\n\t\t\t\t\ttext_2.setText(\"\");\n\t\t\t\n\t\t\t}\n\t\t});\n\t}", "protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setSize(450, 300);\r\n\t\tshell.setText(\"SWT Application\");\r\n\t\tshell.setLayout(new FillLayout(SWT.HORIZONTAL));\r\n\t\t\r\n\t\tfinal TabFolder tabFolder = new TabFolder(shell, SWT.NONE);\r\n\t\ttabFolder.setToolTipText(\"\");\r\n\t\t\r\n\t\tTabItem tabItem = new TabItem(tabFolder, SWT.NONE);\r\n\t\ttabItem.setText(\"欢迎使用\");\r\n\t\t\r\n\t\tTabItem tabItem_1 = new TabItem(tabFolder, SWT.NONE);\r\n\t\ttabItem_1.setText(\"员工查询\");\r\n\t\t\r\n\t\tMenu menu = new Menu(shell, SWT.BAR);\r\n\t\tshell.setMenuBar(menu);\r\n\t\t\r\n\t\tMenuItem menuItem = new MenuItem(menu, SWT.NONE);\r\n\t\tmenuItem.setText(\"系统管理\");\r\n\t\t\r\n\t\tMenuItem menuItem_1 = new MenuItem(menu, SWT.CASCADE);\r\n\t\tmenuItem_1.setText(\"员工管理\");\r\n\t\t\r\n\t\tMenu menu_1 = new Menu(menuItem_1);\r\n\t\tmenuItem_1.setMenu(menu_1);\r\n\t\t\r\n\t\tMenuItem menuItem_2 = new MenuItem(menu_1, SWT.NONE);\r\n\t\tmenuItem_2.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tTabItem tbtmNewItem = new TabItem(tabFolder,SWT.NONE);\r\n\t\t\t\ttbtmNewItem.setText(\"员工查询\");\r\n\t\t\t\t//创建自定义组件\r\n\t\t\t\tEmpQueryCmp eqc = new EmpQueryCmp(tabFolder, SWT.NONE);\r\n\t\t\t\t//设置标签显示的自定义组件\r\n\t\t\t\ttbtmNewItem.setControl(eqc);\r\n\t\t\t\t\r\n\t\t\t\t//选中当前标签页\r\n\t\t\t\ttabFolder.setSelection(tbtmNewItem);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t\tmenuItem_2.setText(\"员工查询\");\r\n\r\n\t}", "protected void createContents() {\n\t\tregister Register = new register();\n\t\tRegisterDAOImpl RDI = new RegisterDAOImpl();\t\n\t\t\n\t\tload = new Shell();\n\t\tload.setSize(519, 370);\n\t\tload.setText(\"XX\\u533B\\u9662\\u6302\\u53F7\\u7CFB\\u7EDF\");\n\t\tload.setLayout(new FormLayout());\n\t\t\n\t\tLabel name = new Label(load, SWT.NONE);\n\t\tFormData fd_name = new FormData();\n\t\tfd_name.top = new FormAttachment(20);\n\t\tfd_name.left = new FormAttachment(45, -10);\n\t\tname.setLayoutData(fd_name);\n\t\tname.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tname.setText(\"\\u59D3\\u540D\");\n\t\t\n\t\tLabel subjet = new Label(load, SWT.NONE);\n\t\tFormData fd_subjet = new FormData();\n\t\tfd_subjet.left = new FormAttachment(44);\n\t\tfd_subjet.top = new FormAttachment(50);\n\t\tsubjet.setLayoutData(fd_subjet);\n\t\tsubjet.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tsubjet.setText(\"\\u79D1\\u5BA4\");\n\t\t\n\t\tLabel doctor = new Label(load, SWT.NONE);\n\t\tFormData fd_doctor = new FormData();\n\t\tfd_doctor.top = new FormAttachment(60);\n\t\tfd_doctor.left = new FormAttachment(45, -10);\n\t\tdoctor.setLayoutData(fd_doctor);\n\t\tdoctor.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tdoctor.setText(\"\\u533B\\u751F\");\n\t\t\n\t\tnametext = new Text(load, SWT.BORDER);\n\t\tnametext.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\n\t\tnametext.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tFormData fd_nametext = new FormData();\n\t\tfd_nametext.right = new FormAttachment(50, 94);\n\t\tfd_nametext.top = new FormAttachment(20);\n\t\tfd_nametext.left = new FormAttachment(50);\n\t\tnametext.setLayoutData(fd_nametext);\n\t\t\n\t\tLabel titlelabel = new Label(load, SWT.NONE);\n\t\tFormData fd_titlelabel = new FormData();\n\t\tfd_titlelabel.right = new FormAttachment(43, 176);\n\t\tfd_titlelabel.top = new FormAttachment(10);\n\t\tfd_titlelabel.left = new FormAttachment(43);\n\t\ttitlelabel.setLayoutData(fd_titlelabel);\n\t\ttitlelabel.setFont(SWTResourceManager.getFont(\"楷体\", 18, SWT.BOLD));\n\t\ttitlelabel.setText(\"XX\\u533B\\u9662\\u95E8\\u8BCA\\u6302\\u53F7\");\n\t\t\n\t\tLabel label = new Label(load, SWT.NONE);\n\t\tFormData fd_label = new FormData();\n\t\tfd_label.top = new FormAttachment(40);\n\t\tfd_label.left = new FormAttachment(44, -10);\n\t\tlabel.setLayoutData(fd_label);\n\t\tlabel.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tlabel.setText(\"\\u6302\\u53F7\\u8D39\");\n\t\t\n\t\tcosttext = new Text(load, SWT.BORDER);\n\t\tcosttext.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\n\t\tcosttext.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tFormData fd_costtext = new FormData();\n\t\tfd_costtext.right = new FormAttachment(nametext, 0, SWT.RIGHT);\n\t\tfd_costtext.top = new FormAttachment(40);\n\t\tfd_costtext.left = new FormAttachment(50);\n\t\tcosttext.setLayoutData(fd_costtext);\n\t\t\n\t\tLabel type = new Label(load, SWT.NONE);\n\t\tFormData fd_type = new FormData();\n\t\tfd_type.top = new FormAttachment(30);\n\t\tfd_type.left = new FormAttachment(45, -10);\n\t\ttype.setLayoutData(fd_type);\n\t\ttype.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\ttype.setText(\"\\u7C7B\\u578B\");\n\t\t\n\t\tCombo typecombo = new Combo(load, SWT.NONE);\n\t\ttypecombo.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\n\t\ttypecombo.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tFormData fd_typecombo = new FormData();\n\t\tfd_typecombo.right = new FormAttachment(nametext, 0, SWT.RIGHT);\n\t\tfd_typecombo.top = new FormAttachment(30);\n\t\tfd_typecombo.left = new FormAttachment(50);\n\t\ttypecombo.setLayoutData(fd_typecombo);\n\t\ttypecombo.setText(\"\\u95E8\\u8BCA\\u7C7B\\u578B\");\n\t\ttypecombo.add(\"普通门诊\",0);\n\t\ttypecombo.add(\"专家门诊\",1);\n\t\tMySelectionListener3 ms3 = new MySelectionListener3(typecombo,costtext);\n\t\ttypecombo.addSelectionListener(ms3);\n\t\t\n\t\tCombo doctorcombo = new Combo(load, SWT.NONE);\n\t\tdoctorcombo.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\n\t\tdoctorcombo.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tFormData fd_doctorcombo = new FormData();\n\t\tfd_doctorcombo.right = new FormAttachment(nametext, 0, SWT.RIGHT);\n\t\tfd_doctorcombo.top = new FormAttachment(60);\n\t\tfd_doctorcombo.left = new FormAttachment(50);\n\t\tdoctorcombo.setLayoutData(fd_doctorcombo);\n\t\tdoctorcombo.setText(\"\\u9009\\u62E9\\u533B\\u751F\");\n\t\t\n\t\tCombo subject = new Combo(load, SWT.NONE);\n\t\tsubject.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\n\t\tsubject.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tfd_subjet.right = new FormAttachment(subject, -6);\n\t\tfd_subjet.top = new FormAttachment(subject, -1, SWT.TOP);\n\t\tFormData fd_subject = new FormData();\n\t\tfd_subject.right = new FormAttachment(nametext, 0, SWT.RIGHT);\n\t\tfd_subject.top = new FormAttachment(50);\n\t\tfd_subject.left = new FormAttachment(50);\n\t\tsubject.setLayoutData(fd_subject);\n\t\tsubject.setText(\"\\u79D1\\u5BA4\\uFF1F\");\n\t\tsubject.add(\"神经内科\", 0);\n\t\tsubject.add(\"呼吸科\", 1);\n\t\tsubject.add(\"泌尿科\", 2);\n\t\tsubject.add(\"放射科\", 3);\n\t\tsubject.add(\"五官\", 4);\n\t\tMySelectionListener myselection = new MySelectionListener(i,subject,doctorcombo,pdtabledaoimpl);\n\t\tsubject.addSelectionListener(myselection);\n\t\t\n\t\tMySelectionListener2 ms2 = new MySelectionListener2(subject,doctorcombo,Register,nametext,RDI);\n\t\tdoctorcombo.addSelectionListener(ms2);\n\t\t\n\t\tButton surebutton = new Button(load, SWT.NONE);\n\t\tFormData fd_surebutton = new FormData();\n\t\tfd_surebutton.top = new FormAttachment(70);\n\t\tfd_surebutton.left = new FormAttachment(44);\n\t\tsurebutton.setLayoutData(fd_surebutton);\n\t\tsurebutton.setFont(SWTResourceManager.getFont(\"楷体\", 12, SWT.BOLD));\n\t\tsurebutton.setText(\"\\u786E\\u5B9A\");\n\t\tsurebutton.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n \t Register register = new Register();\n\t\t\t\tPatientDAOImpl patientdaoimpl = new PatientDAOImpl();\n\n/*\t\t\t\tregisterdaoimpl.Save(Register);*/\n\t\t\t\tPatientInfo patientinfo = null;\n\t\t\t\tpatientinfo = patientdaoimpl.findByname(nametext.getText());\n\t\t\t\tif(patientinfo.getId() > 0 ){\n\t\t\t\t\tMessageBox messagebox = new MessageBox(load);\n\t\t\t\t\tmessagebox.setMessage(\"挂号成功!\");\n\t\t\t\t\tmessagebox.open();\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tMessageBox messagebox = new MessageBox(load);\n\t\t\t\t\tmessagebox.setMessage(\"此用户不存在,请先注册\");\n\t\t\t\t\tmessagebox.open();\n\t\t\t\t\tload.dispose();\n\t\t\t\t\tregister.open();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tButton registerbutton = new Button(load, SWT.NONE);\n\t\tFormData fd_registerbutton = new FormData();\n\t\tfd_registerbutton.top = new FormAttachment(70);\n\t\tfd_registerbutton.left = new FormAttachment(53);\n\t\tregisterbutton.setLayoutData(fd_registerbutton);\n\t\tregisterbutton.setFont(SWTResourceManager.getFont(\"楷体\", 12, SWT.BOLD));\n\t\tregisterbutton.setText(\"\\u6CE8\\u518C\");\n\t\tregisterbutton.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\t\n\t\t\t\tRegister register = new Register();\n\t\t\t\tload.close();\n\t\t\t\tregister.open();\n\t\t\t}\n\t\t});\n\t}", "protected void createContents() {\n setText(BUNDLE.getString(\"TranslationManagerShell.Application.Name\"));\n setSize(599, 505);\n\n final Composite cmpMain = new Composite(this, SWT.NONE);\n cmpMain.setLayout(new FormLayout());\n\n final Composite cmpControls = new Composite(cmpMain, SWT.NONE);\n final FormData fd_cmpControls = new FormData();\n fd_cmpControls.right = new FormAttachment(100, -5);\n fd_cmpControls.top = new FormAttachment(0, 5);\n fd_cmpControls.left = new FormAttachment(0, 5);\n cmpControls.setLayoutData(fd_cmpControls);\n cmpControls.setLayout(new FormLayout());\n\n final ToolBar modifyToolBar = new ToolBar(cmpControls, SWT.FLAT);\n\n tiSave = new ToolItem(modifyToolBar, SWT.PUSH);\n tiSave.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Save\"));\n tiSave.setEnabled(false);\n tiSave.setDisabledImage(SWTResourceManager.getImage(TranslationManagerShell.class,\n \"/images/tools16x16/d_save.gif\"));\n tiSave.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/e_save.gif\"));\n\n tiUndo = new ToolItem(modifyToolBar, SWT.PUSH);\n tiUndo.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Undo\"));\n tiUndo.setEnabled(false);\n tiUndo.setDisabledImage(SWTResourceManager.getImage(TranslationManagerShell.class,\n \"/images/tools16x16/d_reset.gif\"));\n tiUndo.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/e_reset.gif\"));\n\n tiDeleteSelected = new ToolItem(modifyToolBar, SWT.PUSH);\n tiDeleteSelected.setDisabledImage(SWTResourceManager.getImage(TranslationManagerShell.class,\n \"/images/tools16x16/d_remove.gif\"));\n tiDeleteSelected.setEnabled(false);\n tiDeleteSelected.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Delete\"));\n tiDeleteSelected.setImage(SWTResourceManager.getImage(TranslationManagerShell.class,\n \"/images/tools16x16/e_remove.gif\"));\n\n txtFilter = new LVSText(cmpControls, SWT.BORDER);\n final FormData fd_txtFilter = new FormData();\n fd_txtFilter.right = new FormAttachment(25, 0);\n fd_txtFilter.top = new FormAttachment(modifyToolBar, 0, SWT.CENTER);\n fd_txtFilter.left = new FormAttachment(modifyToolBar, 25, SWT.RIGHT);\n txtFilter.setLayoutData(fd_txtFilter);\n\n final ToolBar filterToolBar = new ToolBar(cmpControls, SWT.FLAT);\n final FormData fd_filterToolBar = new FormData();\n fd_filterToolBar.top = new FormAttachment(modifyToolBar, 0, SWT.TOP);\n fd_filterToolBar.left = new FormAttachment(txtFilter, 5, SWT.RIGHT);\n filterToolBar.setLayoutData(fd_filterToolBar);\n\n tiFilter = new ToolItem(filterToolBar, SWT.NONE);\n tiFilter.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/e_find.gif\"));\n tiFilter.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Filter\"));\n\n tiLocale = new ToolItem(filterToolBar, SWT.DROP_DOWN);\n tiLocale.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Locale\"));\n tiLocale.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/e_globe.png\"));\n\n menuLocale = new Menu(filterToolBar);\n addDropDown(tiLocale, menuLocale);\n\n lblSearchResults = new Label(cmpControls, SWT.NONE);\n lblSearchResults.setVisible(false);\n final FormData fd_lblSearchResults = new FormData();\n fd_lblSearchResults.top = new FormAttachment(filterToolBar, 0, SWT.CENTER);\n fd_lblSearchResults.left = new FormAttachment(filterToolBar, 5, SWT.RIGHT);\n lblSearchResults.setLayoutData(fd_lblSearchResults);\n lblSearchResults.setText(BUNDLE.getString(\"TranslationManagerShell.Label.Results\"));\n\n final ToolBar translateToolBar = new ToolBar(cmpControls, SWT.NONE);\n final FormData fd_translateToolBar = new FormData();\n fd_translateToolBar.top = new FormAttachment(filterToolBar, 0, SWT.TOP);\n fd_translateToolBar.right = new FormAttachment(100, 0);\n translateToolBar.setLayoutData(fd_translateToolBar);\n\n tiDebug = new ToolItem(translateToolBar, SWT.PUSH);\n tiDebug.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Debug\"));\n tiDebug.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/debug.png\"));\n\n new ToolItem(translateToolBar, SWT.SEPARATOR);\n\n tiAddBase = new ToolItem(translateToolBar, SWT.PUSH);\n tiAddBase.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.AddBase\"));\n tiAddBase.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/e_add.gif\"));\n\n tiTranslate = new ToolItem(translateToolBar, SWT.CHECK);\n tiTranslate.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Translate\"));\n tiTranslate.setImage(SWTResourceManager\n .getImage(TranslationManagerShell.class, \"/images/tools16x16/target.png\"));\n\n cmpTable = new Composite(cmpMain, SWT.NONE);\n cmpTable.setLayout(new FillLayout());\n final FormData fd_cmpTable = new FormData();\n fd_cmpTable.bottom = new FormAttachment(100, -5);\n fd_cmpTable.right = new FormAttachment(cmpControls, 0, SWT.RIGHT);\n fd_cmpTable.left = new FormAttachment(cmpControls, 0, SWT.LEFT);\n fd_cmpTable.top = new FormAttachment(cmpControls, 5, SWT.BOTTOM);\n cmpTable.setLayoutData(fd_cmpTable);\n\n final Menu menu = new Menu(this, SWT.BAR);\n setMenuBar(menu);\n\n final MenuItem menuItemFile = new MenuItem(menu, SWT.CASCADE);\n menuItemFile.setText(BUNDLE.getString(\"TranslationManagerShell.Menu.File\"));\n\n final Menu menuFile = new Menu(menuItemFile);\n menuItemFile.setMenu(menuFile);\n\n menuItemExit = new MenuItem(menuFile, SWT.NONE);\n menuItemExit.setAccelerator(SWT.ALT | SWT.F4);\n menuItemExit.setText(BUNDLE.getString(\"TranslationManagerShell.Menu.File.Exit\"));\n\n final MenuItem menuItemHelp = new MenuItem(menu, SWT.CASCADE);\n menuItemHelp.setText(BUNDLE.getString(\"TranslationManagerShell.Menu.Help\"));\n\n final Menu menuHelp = new Menu(menuItemHelp);\n menuItemHelp.setMenu(menuHelp);\n\n menuItemDebug = new MenuItem(menuHelp, SWT.NONE);\n menuItemDebug.setText(BUNDLE.getString(\"TranslationManagerShell.Menu.Help.Debug\"));\n\n new MenuItem(menuHelp, SWT.SEPARATOR);\n\n menuItemAbout = new MenuItem(menuHelp, SWT.NONE);\n menuItemAbout.setText(BUNDLE.getString(\"TranslationManagerShell.Menu.Help.About\"));\n //\n }", "protected void createContents() throws Exception\n\t{\n\t\tshell = new Shell();\n\t\tshell.setSize(755, 592);\n\t\tshell.setText(\"Impresor - Documentos v1.2\");\n\t\t\n\t\tthis.commClass.centrarVentana(shell);\n\t\t\n\t\tlistComandos = new List(shell, SWT.BORDER | SWT.H_SCROLL | SWT.COLOR_WHITE);\n\t\tlistComandos.setBounds(72, 22, 628, 498);\n\t\tlistComandos.setVisible(false);\n\n//Boton que carga los documentos\t\t\n\t\tButton btnLoaddocs = new Button(shell, SWT.NONE);\n\t\tbtnLoaddocs.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\tbtnLoaddocs.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseUp(MouseEvent arg0) {\n\t\t\t\tloadDocs(false, false);\n\t\t\t}\n\t\t});\n\t\tbtnLoaddocs.setBounds(10, 20, 200, 26);\n\t\tbtnLoaddocs.setText(\"Cargar documentos a imprimir\");\n\t\t\n//Browser donde se muestra el documento descargado\n\t\tbrowser = new Browser(shell, SWT.BORDER);\n\t\tbrowser.setBounds(10, 289, 726, 231);\n\t\tbrowser.addProgressListener(new ProgressListener() \n\t\t{\n\t\t\tpublic void changed(ProgressEvent event) {\n\t\t\t\t// Cuando cambia.\t\n\t\t\t}\n\t\t\tpublic void completed(ProgressEvent event) {\n\t\t\t\t/* Cuando se completo \n\t\t\t\t Se usa para parsear el documento una vez cargado, el documento\n\t\t\t\t puede ser un doc xml que contiene un mensaje de error\n\t\t\t\t o un doc html que dara error de parseo Xml,es decir,\n\t\t\t\t ante este error entendemos que se cargo bien el doc HTML.\n\t\t\t\t Paradojico verdad? */\n\t\t\t\tleerDocumentoCargado();\n\t\t\t}\n\t\t });\n\n///Boton para iniciar impresion\t\t\n\t\tButton btnIniPrintW = new Button(shell, SWT.NONE);\n\t\tbtnIniPrintW.addKeyListener(new KeyAdapter() {\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tiniciarImpresion(null);\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnIniPrintW.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tiniciarImpresion(null);\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnIniPrintW.setBounds(337, 532, 144, 26);\n\t\tbtnIniPrintW.setText(\"Iniciar impresion\");\n\t\t\n\t\tLabel label = new Label(shell, SWT.SEPARATOR | SWT.HORIZONTAL);\n\t\tlabel.setBounds(10, 52, 885, 2);\n\t\t\n\t\tButton btnSalir = new Button(shell, SWT.NONE);\n\t\tbtnSalir.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\tshell.dispose();\n\t\t\t}\n\t\t});\n\t\tbtnSalir.addKeyListener(new KeyAdapter() {\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tshell.dispose();\n\t\t\t}\n\t\t});\n\t\tbtnSalir.setBounds(659, 532, 77, 26);\n\t\tbtnSalir.setText(\"Salir\");\n\t\t\n\t\tthreadLabel = new Label(shell, SWT.BORDER);\n\t\tthreadLabel.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\n\t\t\t\t//mostrar / ocultar el historial de mensajes\n\t\t\t\tMOCmsgHist();\n\t\t\t}\n\t\t});\n\t\tthreadLabel.setAlignment(SWT.CENTER);\n\t\tthreadLabel.setBackground(new Color(display, 255,255,255));\n\t\tthreadLabel.setBounds(10, 0, 891, 18);\n\t\tthreadLabel.setText(\"\");\n\t\t\n\t\tLabel label_1 = new Label(shell, SWT.SEPARATOR | SWT.HORIZONTAL);\n\t\tlabel_1.setBounds(10, 281, 726, 2);\n\n\t\ttablaDocs = new Table(shell, SWT.BORDER | SWT.FULL_SELECTION);\n\t\ttablaDocs.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t//PabloGo, 12 de julio de 2013\n\t\t\t\t//verifUltDocSelected(e);\n\t\t\t\tseleccionarItemMouse(e);\n\t\t\t}\n\t\t});\n\t\ttablaDocs.addKeyListener(new KeyAdapter() {\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tseleccionarItem(e);\n\t\t\t}\n\t\t});\n\t\ttablaDocs.setBounds(10, 52, 726, 215);\n\t\ttablaDocs.setHeaderVisible(true);\n\t\ttablaDocs.setLinesVisible(true);\n\t\tcrearColumnas(tablaDocs);\n\t\t\n//Label que muestra los mensajes\n\t\tmensajeTxt = new Label(shell, SWT.NONE);\n\t\tmensajeTxt.setAlignment(SWT.CENTER);\n\t\tmensajeTxt.setBounds(251, 146, 200, 26);\n\t\tmensajeTxt.setText(\"Espere...\");\n\t\t\n//Listado donde se muestran los documentos cargados\n\t\tlistaDocumentos = new List(shell, SWT.BORDER);\n\t\tlistaDocumentos.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t//PabloGo, 12 de julio de 2013\n\t\t\t\t//verifUltDocSelected(e);\n\t\t\t\tseleccionarItemMouse(e);\n\t\t\t}\n\t\t});\n\t\tlistaDocumentos.addKeyListener(new KeyAdapter() {\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tseleccionarItem(e);\n\t\t\t}\n\t\t});\n\t\tlistaDocumentos.setBounds(10, 82, 726, 77);\n\t\t\n\t\tButton btnShowPreview = new Button(shell, SWT.CHECK);\n\t\tbtnShowPreview.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseUp(MouseEvent e) {\n\t\t\t\tif (((Button)e.getSource()).getSelection()){\n\t\t\t\t\tmostrarPreview = true;\n\t\t\t\t}else{\n\t\t\t\t\tmostrarPreview = false;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnShowPreview.setBounds(215, 28, 118, 18);\n\t\tbtnShowPreview.setText(\"Mostrar preview\");\n\t\t\n\t\tButton btnAutoRefresh = new Button(shell, SWT.CHECK);\n\t\tbtnAutoRefresh.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseUp(MouseEvent e) {\n\t\t\t\tif (((Button)e.getSource()).getSelection()){\n\t\t\t\t\tautoRefresh = true;\n\t\t\t\t\tbeginTarea();\n\t\t\t\t}else{\n\t\t\t\t\tautoRefresh = false;\n\t\t\t\t\tponerMsg(\"Carga automática desactivada\");\n\t\t\t\t\tfinishTarea();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnAutoRefresh.setBounds(353, 28, 128, 18);\n\t\tbtnAutoRefresh.setText(\"Recarga Automática\");\n\t\t\n\t\ttareaBack(this, autoRefresh).start();\n\t\tloadDocs(false, false);\n\t}", "private void createContents() {\r\n shell = new Shell(getParent(), getStyle());\r\n shell.setSize(650, 300);\r\n shell.setText(getText());\r\n\r\n shell.setLayout(new FormLayout());\r\n\r\n lblSOName = new Label(shell, SWT.CENTER);\r\n lblSOName.setFont(SWTResourceManager.getFont(\"Segoe UI\", 11, SWT.NORMAL));\r\n FormData fd_lblSOName = new FormData();\r\n fd_lblSOName.bottom = new FormAttachment(0, 20);\r\n fd_lblSOName.right = new FormAttachment(100, -2);\r\n fd_lblSOName.top = new FormAttachment(0, 2);\r\n fd_lblSOName.left = new FormAttachment(0, 2);\r\n lblSOName.setLayoutData(fd_lblSOName);\r\n lblSOName.setText(soName);\r\n\r\n tableParams = new Table(shell, SWT.BORDER | SWT.FULL_SELECTION | SWT.H_SCROLL | SWT.V_SCROLL);\r\n tableParams.setFont(SWTResourceManager.getFont(\"Segoe UI\", 11, SWT.NORMAL));\r\n FormData fd_tableParams = new FormData();\r\n fd_tableParams.bottom = new FormAttachment(100, -40);\r\n fd_tableParams.right = new FormAttachment(100, -2);\r\n fd_tableParams.top = new FormAttachment(0, 22);\r\n fd_tableParams.left = new FormAttachment(0, 2);\r\n tableParams.setLayoutData(fd_tableParams);\r\n tableParams.setHeaderVisible(true);\r\n tableParams.setLinesVisible(true);\r\n fillInTable(tableParams);\r\n tableParams.addControlListener(new ControlAdapter() {\r\n\r\n @Override\r\n public void controlResized(ControlEvent e) {\r\n Table table = (Table)e.getSource();\r\n table.getColumn(0).setWidth((int)(table.getClientArea().width*nameSpace));\r\n table.getColumn(1).setWidth((int)(table.getClientArea().width*valueSpace));\r\n table.getColumn(2).setWidth((int)(table.getClientArea().width*hintSpace));\r\n }\r\n });\r\n tableParams.pack();\r\n //paramName.pack();\r\n //paramValue.pack();\r\n\r\n final TableEditor editor = new TableEditor(tableParams);\r\n //The editor must have the same size as the cell and must\r\n //not be any smaller than 50 pixels.\r\n editor.horizontalAlignment = SWT.LEFT;\r\n editor.grabHorizontal = true;\r\n editor.minimumWidth = 50;\r\n // editing the second column\r\n tableParams.addSelectionListener(new SelectionAdapter() {\r\n @Override\r\n public void widgetSelected(SelectionEvent e) {\r\n // Identify the selected row\r\n TableItem item = (TableItem) e.item;\r\n if (item == null) {\r\n return;\r\n }\r\n\r\n // The control that will be the editor must be a child of the Table\r\n IReplaceableParam<?> editedParam = (IReplaceableParam<?>)item.getData(DATA_VALUE_PARAM);\r\n if (editedParam != null) {\r\n // Clean up any previous editor control\r\n Control oldEditor = editor.getEditor();\r\n if (oldEditor != null) {\r\n oldEditor.dispose();\r\n }\r\n\r\n Control editControl = null;\r\n String cellText = item.getText(columnValueIndex);\r\n switch (editedParam.getType()) {\r\n case BOOLEAN:\r\n Combo cmb = new Combo(tableParams, SWT.READ_ONLY);\r\n String[] booleanItems = {Boolean.toString(true), Boolean.toString(false)};\r\n cmb.setItems(booleanItems);\r\n cmb.select(1);\r\n if (Boolean.parseBoolean(cellText)) {\r\n cmb.select(0);\r\n }\r\n editControl = cmb;\r\n cmb.addSelectionListener(new SelectionAdapter() {\r\n\r\n @Override\r\n public void widgetSelected(SelectionEvent se) {\r\n Combo text = (Combo) editor.getEditor();\r\n editor.getItem().setText(columnValueIndex, text.getText());\r\n }\r\n });\r\n break;\r\n case DATE:\r\n IReplaceableParam<LocalDateTime> calParam = (IReplaceableParam<LocalDateTime>)editedParam;\r\n LocalDateTime calToUse = calParam.getValue();\r\n Composite dateAndTime = new Composite(tableParams, SWT.NONE);\r\n RowLayout rl = new RowLayout();\r\n rl.wrap = false;\r\n dateAndTime.setLayout(rl);\r\n //Date cellDt;\r\n try {\r\n LocalDateTime locDT = LocalDateTime.parse(cellText, dtFmt);\r\n if (locDT != null) {\r\n calToUse = locDT;\r\n }\r\n /*cellDt = dateFmt.parse(cellText);\r\n if (cellDt != null) {\r\n calToUse.setTime(cellDt);\r\n }*/\r\n } catch (DateTimeParseException e1) {\r\n log.error(\"widgetSelected \", e1);\r\n }\r\n\r\n DateTime datePicker = new DateTime(dateAndTime, SWT.DATE | SWT.MEDIUM | SWT.DROP_DOWN);\r\n datePicker.setData(DATA_VALUE_PARAM, calParam);\r\n DateTime timePicker = new DateTime(dateAndTime, SWT.TIME | SWT.LONG);\r\n timePicker.setData(DATA_VALUE_PARAM, calParam);\r\n // for the date picker the months are zero-based, the first month is 0 the last is 11\r\n // for LocalDateTime the months range 1-12\r\n datePicker.setDate(calToUse.getYear(), calToUse.getMonthValue() - 1,\r\n calToUse.getDayOfMonth());\r\n timePicker.setTime(calToUse.getHour(), calToUse.getMinute(),\r\n calToUse.getSecond());\r\n\r\n datePicker.addSelectionListener(new SelectionAdapter() {\r\n\r\n @Override\r\n public void widgetSelected(SelectionEvent se) {\r\n DateTime source = (DateTime)se.getSource();\r\n IReplaceableParam<LocalDateTime> calParam1 = (IReplaceableParam<LocalDateTime>)source.getData(DATA_VALUE_PARAM);\r\n if (calParam1 != null) {\r\n LocalDateTime currDt = calParam1.getValue();\r\n // for the date picker the months are zero-based, the first month is 0 the last is 11\r\n // for LocalDateTime the months range 1-12\r\n calParam1.setValue(currDt.withYear(source.getYear()).withMonth(source.getMonth() + 1).withDayOfMonth(source.getDay()));\r\n String resultText = dtFmt.format(calParam1.getValue());\r\n log.debug(\"Result Text \" + resultText);\r\n editor.getItem().setText(columnValueIndex, resultText);\r\n } else {\r\n log.warn(\"widgetSelected param is null\");\r\n }\r\n }\r\n\r\n });\r\n timePicker.addSelectionListener(new SelectionAdapter() {\r\n\r\n @Override\r\n public void widgetSelected(SelectionEvent se) {\r\n DateTime source = (DateTime)se.getSource();\r\n IReplaceableParam<LocalDateTime> calParam1 = (IReplaceableParam<LocalDateTime>)source.getData(DATA_VALUE_PARAM);\r\n if (calParam1 != null) {\r\n LocalDateTime currDt = calParam1.getValue();\r\n calParam1.setValue(currDt.withHour(source.getHours()).withMinute(source.getMinutes()).withSecond(source.getSeconds()));\r\n String resultText = dtFmt.format(calParam1.getValue());\r\n log.debug(\"Result Text \" + resultText);\r\n editor.getItem().setText(columnValueIndex, resultText);\r\n } else {\r\n log.warn(\"widgetSelected param is null\");\r\n }\r\n }\r\n\r\n });\r\n dateAndTime.layout();\r\n editControl = dateAndTime;\r\n break;\r\n case INTEGER:\r\n Text intEditor = new Text(tableParams, SWT.NONE);\r\n intEditor.setText(item.getText(columnValueIndex));\r\n intEditor.selectAll();\r\n intEditor.addModifyListener(new ModifyListener() {\r\n @Override\r\n public void modifyText(ModifyEvent se) {\r\n Text text = (Text) editor.getEditor();\r\n Integer resultInt = null;\r\n try {\r\n resultInt = Integer.parseInt(text.getText());\r\n } catch (NumberFormatException nfe) {\r\n log.error(\"NFE \", nfe);\r\n }\r\n if (resultInt != null) {\r\n editor.getItem().setText(columnValueIndex, resultInt.toString());\r\n }\r\n }\r\n });\r\n editControl = intEditor;\r\n break;\r\n case STRING:\r\n default:\r\n Text newEditor = new Text(tableParams, SWT.NONE);\r\n newEditor.setText(item.getText(columnValueIndex));\r\n newEditor.setFont(tableParams.getFont());\r\n newEditor.selectAll();\r\n newEditor.addModifyListener(new ModifyListener() {\r\n @Override\r\n public void modifyText(ModifyEvent se) {\r\n Text text = (Text) editor.getEditor();\r\n editor.getItem().setText(columnValueIndex, text.getText());\r\n }\r\n });\r\n editControl = newEditor;\r\n break;\r\n }\r\n\r\n editControl.setFont(tableParams.getFont());\r\n editControl.setFocus();\r\n editor.setEditor(editControl, item, columnValueIndex);\r\n }\r\n }\r\n });\r\n\r\n\r\n btnOK = new Button(shell, SWT.NONE);\r\n btnOK.setFont(SWTResourceManager.getFont(\"Segoe UI\", 11, SWT.NORMAL));\r\n FormData fd_btnOK = new FormData();\r\n fd_btnOK.bottom = new FormAttachment(100, -7);\r\n fd_btnOK.right = new FormAttachment(40, 2);\r\n fd_btnOK.top = new FormAttachment(100, -35);\r\n fd_btnOK.left = new FormAttachment(15, 2);\r\n btnOK.setLayoutData(fd_btnOK);\r\n btnOK.setText(\"OK\");\r\n btnOK.addSelectionListener(new SelectionAdapter() {\r\n @Override\r\n public void widgetSelected(SelectionEvent e) {\r\n result = new DialogResult<>(SWT.OK, getParamMap());\r\n shell.close();\r\n }\r\n\r\n });\r\n shell.setDefaultButton(btnOK);\r\n\r\n btnCancel = new Button(shell, SWT.NONE);\r\n btnCancel.setFont(SWTResourceManager.getFont(\"Segoe UI\", 11, SWT.NORMAL));\r\n FormData fd_btnCancel = new FormData();\r\n fd_btnCancel.bottom = new FormAttachment(100, -7);\r\n fd_btnCancel.left = new FormAttachment(60, -2);\r\n fd_btnCancel.top = new FormAttachment(100, -35);\r\n fd_btnCancel.right = new FormAttachment(85, -2);\r\n btnCancel.setLayoutData(fd_btnCancel);\r\n btnCancel.setText(\"Cancel\");\r\n btnCancel.addSelectionListener(new SelectionAdapter() {\r\n @Override\r\n public void widgetSelected(SelectionEvent e) {\r\n result = new DialogResult<>(SWT.CANCEL, null);\r\n shell.close();\r\n }\r\n\r\n });\r\n tableParams.redraw();\r\n }", "public void createContents()\n\t{\n\t\tshell = new Shell();\n\t\tshell.setSize(450, 300);\n\t\tshell.setText(\"TTS - Task Tracker System\");\n\t\t\n\t\tbtnLogIn = new Button(shell, SWT.NONE);\n\t\tbtnLogIn.setBounds(349, 84, 75, 25);\n\t\tbtnLogIn.setText(\"Log In\");\n\t\tbtnLogIn.addSelectionListener(new SelectionAdapter()\n\t\t{\n\t\t\tpublic void widgetSelected(SelectionEvent arg0)\n\t\t\t{\n\t\t\t\tif (cboxUserDropDown.getText() != \"\"\n\t\t\t\t\t\t&& cboxUserDropDown.getSelectionIndex() >= 0)\n\t\t\t\t{\n\t\t\t\t\tString selectedUserName = cboxUserDropDown.getText();\n\t\t\t\t\tusers.setLoggedInUser(selectedUserName);\n\t\t\t\t\tshell.setVisible(false);\n\t\t\t\t\tdisplay.sleep();\n\t\t\t\t\tnew TaskMainViewWindow(AccessUsers.getLoggedInUser());\n\t\t\t\t\tdisplay.wake();\n\t\t\t\t\tshell.setVisible(true);\n\t\t\t\t\tshell.forceFocus();\n\t\t\t\t\tshell.setActive();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tbtnQuit = new Button(shell, SWT.CENTER);\n\t\tbtnQuit.setBounds(349, 227, 75, 25);\n\t\tbtnQuit.setText(\"Quit\");\n\t\tbtnQuit.addSelectionListener(new SelectionAdapter()\n\t\t{\n\t\t\tpublic void widgetSelected(SelectionEvent arg0)\n\t\t\t{\n\t\t\t\tshell.close();\n\t\t\t}\n\t\t});\n\t\t\n\t\tcboxUserDropDown = new Combo(shell, SWT.READ_ONLY);\n\t\tcboxUserDropDown.setBounds(146, 86, 195, 23);\n\t\t\n\t\tinitUserDropDown();\n\t\t\n\t\tlblNewLabel = new Label(shell, SWT.CENTER);\n\t\tlblNewLabel.setBounds(197, 21, 183, 25);\n\t\tlblNewLabel.setFont(new Font(display, \"Times\", 14, SWT.BOLD));\n\t\tlblNewLabel.setForeground(new Color(display, 200, 0, 0));\n\t\tlblNewLabel.setText(\"Task Tracker System\");\n\t\t\n\t\ticon = new Label(shell, SWT.BORDER);\n\t\ticon.setLocation(0, 0);\n\t\ticon.setSize(140, 111);\n\t\ticon.setImage(new Image(null, \"images/task.png\"));\n\t\t\n\t\tbtnCreateUser = new Button(shell, SWT.NONE);\n\t\tbtnCreateUser.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\n\t\t\t\tshell.setEnabled(false);\n\t\t\t\tnew CreateUserWindow(users);\n\t\t\t\tshell.setEnabled(true);\n\t\t\t\tinitUserDropDown();\n\t\t\t\tshell.forceFocus();\n\t\t\t\tshell.setActive();\n\t\t\t}\n\t\t});\n\t\tbtnCreateUser.setBounds(349, 115, 75, 25);\n\t\tbtnCreateUser.setText(\"Create User\");\n\t\t\n\t}", "protected void createContents() {\n\t\t\n\t\tshlMailview = new Shell();\n\t\tshlMailview.addShellListener(new ShellAdapter() {\n\t\t\t@Override\n\t\t\tpublic void shellClosed(ShellEvent e) {\n\t\t\t\tdispose();\n\t\t\t}\n\t\t});\n\t\tshlMailview.setBackground(SWTResourceManager.getColor(SWT.COLOR_GRAY));\n\t\tshlMailview.setSize(1124, 800);\n\t\tshlMailview.setText(\"MailView\");\n\t\tshlMailview.setLayout(new BorderLayout(0, 0));\t\t\n\t\t\n\t\tMenu menu = new Menu(shlMailview, SWT.BAR);\n\t\tshlMailview.setMenuBar(menu);\n\t\t\n\t\tMenuItem mntmNewSubmenu = new MenuItem(menu, SWT.CASCADE);\n\t\tmntmNewSubmenu.setText(\"\\u0413\\u043B\\u0430\\u0432\\u043D\\u0430\\u044F\");\n\t\t\n\t\tMenu mainMenu = new Menu(mntmNewSubmenu);\n\t\tmntmNewSubmenu.setMenu(mainMenu);\n\t\t\n\t\tMenuItem menuItem = new MenuItem(mainMenu, SWT.NONE);\n\t\tmenuItem.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tmyThready.stop();// interrupt();\n\t\t\t\tmyThready = new Thread(timer);\n\t\t\t\tmyThready.setDaemon(true);\n\t\t\t\tmyThready.start();\n\t\t\t}\n\t\t});\n\t\tmenuItem.setText(\"\\u041E\\u0431\\u043D\\u043E\\u0432\\u0438\\u0442\\u044C\");\n\t\t\n\t\tMenuItem exitMenu = new MenuItem(mainMenu, SWT.NONE);\n\t\texitMenu.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\t\t\t\t\n\t\t\t\tshlMailview.close();\n\t\t\t}\n\t\t});\n\t\texitMenu.setText(\"\\u0412\\u044B\\u0445\\u043E\\u0434\");\n\t\t\n\t\tMenuItem filtrMenu = new MenuItem(menu, SWT.NONE);\n\t\tfiltrMenu.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tfilterDialog fd = new filterDialog(shlMailview, 0);\n\t\t\t\tfd.open();\n\t\t\t}\n\t\t});\n\t\tfiltrMenu.setText(\"\\u0424\\u0438\\u043B\\u044C\\u0442\\u0440\");\n\t\t\n\t\tMenuItem settingsMenu = new MenuItem(menu, SWT.NONE);\n\t\tsettingsMenu.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tsettingDialog sd = new settingDialog(shlMailview, 0);\n\t\t\t\tsd.open();\n\t\t\t}\n\t\t});\n\t\tsettingsMenu.setText(\"\\u041D\\u0430\\u0441\\u0442\\u0440\\u043E\\u0439\\u043A\\u0438\");\n\t\t\n\t\tfinal TabFolder tabFolder = new TabFolder(shlMailview, SWT.NONE);\n\t\ttabFolder.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tif(tabFolder.getSelectionIndex() == 1)\n\t\t\t\t{\n\t\t\t\t\tservice.RepaintAccount(accountsTable);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\ttabFolder.setBackground(SWTResourceManager.getColor(SWT.COLOR_GRAY));\n\t\t\n\t\tTabItem lettersTab = new TabItem(tabFolder, SWT.NONE);\n\t\tlettersTab.setText(\"\\u041F\\u0438\\u0441\\u044C\\u043C\\u0430\");\n\t\t\n\t\tComposite composite_2 = new Composite(tabFolder, SWT.NONE);\n\t\tlettersTab.setControl(composite_2);\n\t\tcomposite_2.setLayout(new FormLayout());\n\t\t\n\t\tComposite composite_4 = new Composite(composite_2, SWT.NONE);\n\t\tFormData fd_composite_4 = new FormData();\n\t\tfd_composite_4.bottom = new FormAttachment(0, 81);\n\t\tfd_composite_4.top = new FormAttachment(0);\n\t\tfd_composite_4.left = new FormAttachment(0);\n\t\tfd_composite_4.right = new FormAttachment(0, 1100);\n\t\tcomposite_4.setLayoutData(fd_composite_4);\n\t\t\n\t\tComposite composite_5 = new Composite(composite_2, SWT.NONE);\n\t\tcomposite_5.setLayout(new BorderLayout(0, 0));\n\t\tFormData fd_composite_5 = new FormData();\n\t\tfd_composite_5.bottom = new FormAttachment(composite_4, 281, SWT.BOTTOM);\n\t\tfd_composite_5.left = new FormAttachment(composite_4, 0, SWT.LEFT);\n\t\tfd_composite_5.right = new FormAttachment(composite_4, 0, SWT.RIGHT);\n\t\tfd_composite_5.top = new FormAttachment(composite_4, 6);\n\t\tcomposite_5.setLayoutData(fd_composite_5);\n\t\t\n\t\tComposite composite_10 = new Composite(composite_2, SWT.NONE);\n\t\tFormData fd_composite_10 = new FormData();\n\t\tfd_composite_10.top = new FormAttachment(composite_5, 6);\n\t\tfd_composite_10.bottom = new FormAttachment(100, -10);\n\t\t\n\t\tlettersTable = new Table(composite_5, SWT.BORDER | SWT.FULL_SELECTION);\n\t\tlettersTable.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tif(lettersTable.getItems().length>0)\n\t\t\t\t{\t\t\t\t\t\n\t\t\t\t\tTableItem item = lettersTable.getSelection()[0];\n\t\t\t\t\titem.setFont(SWTResourceManager.getFont(\"Segoe UI\", 9, SWT.NONE));\n\t\t\t\t\tbox.Preview(Integer.parseInt(item.getText(0)));\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tlettersTable.setLinesVisible(true);\n\t\tlettersTable.setHeaderVisible(true);\n\t\tTableColumn msgId = new TableColumn(lettersTable, SWT.NONE);\n\t\tmsgId.setResizable(false);\n\t\tmsgId.setText(\"ID\");\n\t\t\n\t\tTableColumn from = new TableColumn(lettersTable, SWT.NONE);\n\t\tfrom.setWidth(105);\n\t\tfrom.setText(\"\\u041E\\u0442\");\n\t\tfrom.addListener(SWT.Selection, SortListenerFactory.getListener(SortListenerFactory.STRING_COMPARATOR));\n\t\t\n\t\tTableColumn to = new TableColumn(lettersTable, SWT.NONE);\n\t\tto.setWidth(111);\n\t\tto.setText(\"\\u041A\\u043E\\u043C\\u0443\");\n\t\tto.addListener(SWT.Selection, SortListenerFactory.getListener(SortListenerFactory.STRING_COMPARATOR));\n\t\t\n\t\tTableColumn subject = new TableColumn(lettersTable, SWT.NONE);\n\t\tsubject.setWidth(406);\n\t\tsubject.setText(\"\\u0422\\u0435\\u043C\\u0430\");\n\t\tsubject.addListener(SWT.Selection, SortListenerFactory.getListener(SortListenerFactory.STRING_COMPARATOR));\n\t\t\n\t\tTableColumn created = new TableColumn(lettersTable, SWT.NONE);\n\t\tcreated.setWidth(176);\n\t\tcreated.setText(\"\\u0421\\u043E\\u0437\\u0434\\u0430\\u043D\\u043E\");\n\t\tcreated.addListener(SWT.Selection, SortListenerFactory.getListener(SortListenerFactory.DATE_COMPARATOR));\n\t\t\n\t\tTableColumn received = new TableColumn(lettersTable, SWT.NONE);\n\t\treceived.setWidth(194);\n\t\treceived.setText(\"\\u041F\\u043E\\u043B\\u0443\\u0447\\u0435\\u043D\\u043E\");\n\t\treceived.addListener(SWT.Selection, SortListenerFactory.getListener(SortListenerFactory.DATE_COMPARATOR));\t\t\n\t\t\n\t\tMenu popupMenuLetter = new Menu(lettersTable);\n\t\tlettersTable.setMenu(popupMenuLetter);\n\t\t\n\t\tMenuItem miUpdate = new MenuItem(popupMenuLetter, SWT.NONE);\n\t\tmiUpdate.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tmyThready.stop();// interrupt();\n\t\t\t\tmyThready = new Thread(timer);\n\t\t\t\tmyThready.setDaemon(true);\n\t\t\t\tmyThready.start();\n\t\t\t}\n\t\t});\n\t\tmiUpdate.setText(\"\\u041E\\u0431\\u043D\\u043E\\u0432\\u0438\\u0442\\u044C\");\n\t\t\n\t\tfinal MenuItem miDelete = new MenuItem(popupMenuLetter, SWT.NONE);\n\t\tmiDelete.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tif(lettersTable.getItems().length>0)\n\t\t\t\t{\t\t\t\t\n\t\t\t\t\tTableItem item = lettersTable.getSelection()[0];\n\t\t\t\t\tbox.deleteMessage(Integer.parseInt(item.getText(0)), lettersTable.getSelectionIndex());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tmiDelete.setText(\"\\u0412 \\u043A\\u043E\\u0440\\u0437\\u0438\\u043D\\u0443\");\n\t\tfd_composite_10.right = new FormAttachment(composite_4, 0, SWT.RIGHT);\n\t\t\n\t\tfinal Button btnInbox = new Button(composite_4, SWT.NONE);\n\t\tfinal Button btnTrash = new Button(composite_4, SWT.NONE);\n\t\t\n\t\tbtnInbox.setBounds(10, 10, 146, 39);\n\t\tbtnInbox.setEnabled(false);\n\t\tbtnInbox.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tSetting.Instance().SetTab(false);\t\t\t\t\n\t\t\t\tbtnInbox.setEnabled(false);\n\t\t\t\tmiDelete.setText(\"\\u0412 \\u043A\\u043E\\u0440\\u0437\\u0438\\u043D\\u0443\");\n\t\t\t\tbtnTrash.setEnabled(true);\n\t\t\t\tbox.rePaint();\n\t\t\t}\n\t\t});\n\t\tbtnInbox.setText(\"\\u0412\\u0445\\u043E\\u0434\\u044F\\u0449\\u0438\\u0435\");\n\t\tbtnTrash.setLocation(170, 10);\n\t\tbtnTrash.setSize(146, 39);\n\t\tbtnTrash.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tSetting.Instance().SetTab(true);\n\t\t\t\tbtnInbox.setEnabled(true);\n\t\t\t\tmiDelete.setText(\"\\u0423\\u0434\\u0430\\u043B\\u0438\\u0442\\u044C\");\n\t\t\t\tbtnTrash.setEnabled(false);\n\t\t\t\tbox.rePaint();\n\t\t\t}\n\t\t});\n\t\tbtnTrash.setText(\"\\u041A\\u043E\\u0440\\u0437\\u0438\\u043D\\u0430\");\n\t\t\n\t\tButton deleteLetter = new Button(composite_4, SWT.NONE);\n\t\tdeleteLetter.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tif(lettersTable.getItems().length>0)\n\t\t\t\t{\t\t\t\t\n\t\t\t\t\tTableItem item = lettersTable.getSelection()[0];\n\t\t\t\t\tbox.deleteMessage(Integer.parseInt(item.getText(0)), lettersTable.getSelectionIndex());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tdeleteLetter.setLocation(327, 11);\n\t\tdeleteLetter.setSize(146, 37);\n\t\tdeleteLetter.setFont(SWTResourceManager.getFont(\"Segoe UI\", 9, SWT.BOLD));\n\t\tdeleteLetter.setText(\"\\u0423\\u0434\\u0430\\u043B\\u0438\\u0442\\u044C\");\n\t\t\n\t\tLabel label = new Label(composite_4, SWT.NONE);\n\t\tlabel.setLocation(501, 17);\n\t\tlabel.setSize(74, 27);\n\t\tlabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\tlabel.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.BOLD));\n\t\tlabel.setText(\"\\u0410\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\");\n\t\t\n\t\tCombo listAccounts = new Combo(composite_4, SWT.NONE);\n\t\tlistAccounts.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.NORMAL));\n\t\tlistAccounts.setLocation(583, 19);\n\t\tlistAccounts.setSize(180, 23);\n\t\tlistAccounts.setItems(new String[] {\"\\u0412\\u0441\\u0435\"});\n\t\tlistAccounts.select(0);\n\t\t\n\t\tprogressBar = new ProgressBar(composite_4, SWT.NONE);\n\t\tprogressBar.setBounds(10, 64, 263, 17);\n\t\tfd_composite_10.left = new FormAttachment(0);\n\t\tcomposite_10.setLayoutData(fd_composite_10);\n\t\t\n\t\theaderMessage = new Text(composite_10, SWT.BORDER);\n\t\theaderMessage.setFont(SWTResourceManager.getFont(\"Segoe UI\", 14, SWT.NORMAL));\n\t\theaderMessage.setBounds(0, 0, 1100, 79);\n\t\t\n\t\tsc = new ScrolledComposite(composite_10, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL);\n\t\tsc.setBounds(0, 85, 1100, 230);\n\t\tsc.setExpandHorizontal(true);\n\t\tsc.setExpandVertical(true);\t\t\n\t\t\n\t\tTabItem accountsTab = new TabItem(tabFolder, SWT.NONE);\n\t\taccountsTab.setText(\"\\u0410\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\\u044B\");\n\t\t\n\t\tComposite accountComposite = new Composite(tabFolder, SWT.NONE);\n\t\taccountsTab.setControl(accountComposite);\n\t\taccountComposite.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_LIGHT_SHADOW));\n\t\t\n\t\t\tLabel labelListAccounts = new Label(accountComposite, SWT.NONE);\n\t\t\tlabelListAccounts.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_LIGHT_SHADOW));\n\t\t\tlabelListAccounts.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.BOLD));\n\t\t\tlabelListAccounts.setBounds(10, 37, 148, 31);\n\t\t\tlabelListAccounts.setText(\"\\u0421\\u043F\\u0438\\u0441\\u043E\\u043A \\u0430\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\\u043E\\u0432\");\n\t\t\t\n\t\t\tComposite Actions = new Composite(accountComposite, SWT.NONE);\n\t\t\tActions.setBounds(412, 71, 163, 234);\n\t\t\t\n\t\t\tButton addAccount = new Button(Actions, SWT.NONE);\n\t\t\taddAccount.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\tAccountDialog ad = new AccountDialog(shlMailview, accountsTable, true);\n\t\t\t\t\tad.open();\n\t\t\t\t}\n\t\t\t});\n\t\t\taddAccount.setForeground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\t\taddAccount.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\t\taddAccount.setBounds(10, 68, 141, 47);\n\t\t\taddAccount.setText(\"\\u0414\\u043E\\u0431\\u0430\\u0432\\u0438\\u0442\\u044C\");\n\t\t\t\n\t\t\tButton editAccount = new Button(Actions, SWT.NONE);\n\t\t\teditAccount.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\tif(accountsTable.getItems().length>0)\n\t\t\t\t\t{\n\t\t\t\t\tAccountDialog ad = new AccountDialog(shlMailview, accountsTable, false);\n\t\t\t\t\tad.open();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\teditAccount.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\t\teditAccount.setBounds(10, 121, 141, 47);\n\t\t\teditAccount.setText(\"\\u0418\\u0437\\u043C\\u0435\\u043D\\u0438\\u0442\\u044C\");\n\t\t\t\n\t\t\tButton deleteAccount = new Button(Actions, SWT.NONE);\n\t\t\tdeleteAccount.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\tif(accountsTable.getItems().length>0)\n\t\t\t\t\t{\n\t\t\t\t\t\tTableItem item = accountsTable.getSelection()[0];\n\t\t\t\t\t\tif(MessageDialog.openConfirm(shlMailview, \"Удаление\", \"Вы хотите удалить учетную запись \" + item.getText(1)+\"?\"))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tservice.DeleteAccount(item.getText(0));\n\t\t\t\t\t\t\tservice.RepaintAccount(accountsTable);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\tdeleteAccount.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\t\t\t\n\t\t\tdeleteAccount.setBounds(10, 174, 141, 47);\n\t\t\tdeleteAccount.setText(\"\\u0423\\u0434\\u0430\\u043B\\u0438\\u0442\\u044C\");\n\t\t\t\n\t\t\tfinal Button Include = new Button(Actions, SWT.NONE);\n\t\t\tInclude.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\tif(accountsTable.getItems().length>0)\n\t\t\t\t\t{\n\t\t\t\t\t\tTableItem item = accountsTable.getSelection()[0];\n\t\t\t\t\t\tservice.toogleIncludeAccount(item.getText(0));\n\t\t\t\t\t\tservice.RepaintAccount(accountsTable);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\tInclude.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\t\tInclude.setBounds(10, 10, 141, 47);\n\t\t\tInclude.setText(\"\\u0412\\u043A\\u043B\\u044E\\u0447\\u0438\\u0442\\u044C\");\n\n\t\t\taccountsTable = new Table(accountComposite, SWT.SINGLE | SWT.BORDER | SWT.FULL_SELECTION);\n\t\t\taccountsTable.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\tif(accountsTable.getSelection()[0].getText(2)==\"Включен\")\n\t\t\t\t\t{\n\t\t\t\t\t\tInclude.setText(\"\\u0412\\u044B\\u043A\\u043B\\u044E\\u0447\\u0438\\u0442\\u044C\");\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tInclude.setText(\"\\u0412\\u043A\\u043B\\u044E\\u0447\\u0438\\u0442\\u044C\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\n\t\t\taccountsTable.setBounds(10, 74, 396, 296);\n\t\t\taccountsTable.setHeaderVisible(true);\n\t\t\taccountsTable.setLinesVisible(true);\n\t\t\t\n\t\t\tTableColumn tblclmnId = new TableColumn(accountsTable, SWT.NONE);\n\t\t\ttblclmnId.setWidth(35);\n\t\t\ttblclmnId.setText(\"ID\");\n\t\t\t//accountsTable.setRedraw(false);\n\t\t\t\n\t\t\tTableColumn columnLogin = new TableColumn(accountsTable, SWT.LEFT);\n\t\t\tcolumnLogin.setWidth(244);\n\t\t\tcolumnLogin.setText(\"\\u0410\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\");\n\t\t\t\n\t\t\tTableColumn columnState = new TableColumn(accountsTable, SWT.LEFT);\n\t\t\tcolumnState.setWidth(100);\n\t\t\tcolumnState.setText(\"\\u0421\\u043E\\u0441\\u0442\\u043E\\u044F\\u043D\\u0438\\u0435\");\n\t}", "protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tshell.setSize(599, 779);\r\n\t\tshell.setText(\"إضافة كتاب جديد\");\r\n\r\n\t\tButton logoBtn = new Button(shell, SWT.NONE);\r\n\t\tlogoBtn.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tMainMenuKaff mm = new MainMenuKaff();\r\n\t\t\t\tshell.close();\r\n\t\t\t\tmm.open();\r\n\t\t\t}\r\n\t\t});\r\n\t\tlogoBtn.setImage(SWTResourceManager\r\n\t\t\t\t.getImage(\"C:\\\\Users\\\\al5an\\\\git\\\\KaffPlatform\\\\KaffPlatformProject\\\\img\\\\logo for header button.png\"));\r\n\t\tlogoBtn.setBounds(497, 0, 64, 50);\r\n\r\n\t\tLabel headerLabel = new Label(shell, SWT.NONE);\r\n\t\theaderLabel.setImage(SWTResourceManager\r\n\t\t\t\t.getImage(\"C:\\\\Users\\\\al5an\\\\git\\\\KaffPlatform\\\\KaffPlatformProject\\\\img\\\\KaffPlatformheader.jpg\"));\r\n\t\theaderLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\theaderLabel.setBounds(0, 0, 607, 50);\r\n\r\n\t\tLabel bookInfoLabel = new Label(shell, SWT.NONE);\r\n\t\tbookInfoLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tbookInfoLabel.setForeground(SWTResourceManager.getColor(210, 105, 30));\r\n\t\tbookInfoLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.BOLD));\r\n\t\tbookInfoLabel.setAlignment(SWT.CENTER);\r\n\t\tbookInfoLabel.setBounds(177, 130, 192, 28);\r\n\t\tbookInfoLabel.setText(\"معلومات الكتاب\");\r\n\r\n\t\tLabel bookTitleLabel = new Label(shell, SWT.NONE);\r\n\t\tbookTitleLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tbookTitleLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\tbookTitleLabel.setBounds(415, 203, 119, 28);\r\n\t\tbookTitleLabel.setText(\"عنوان الكتاب\");\r\n\r\n\t\tBookTitleTxt = new Text(shell, SWT.BORDER);\r\n\t\tBookTitleTxt.setBounds(56, 206, 334, 24);\r\n\r\n\t\tLabel bookIDLabel = new Label(shell, SWT.NONE);\r\n\t\tbookIDLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tbookIDLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\tbookIDLabel.setBounds(415, 170, 119, 32);\r\n\t\tbookIDLabel.setText(\"رمز الكتاب\");\r\n\r\n\t\tLabel editionLabel = new Label(shell, SWT.NONE);\r\n\t\teditionLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\teditionLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\teditionLabel.setBounds(415, 235, 119, 28);\r\n\t\teditionLabel.setText(\"إصدار الكتاب\");\r\n\r\n\t\teditionTxt = new Text(shell, SWT.BORDER);\r\n\t\teditionTxt.setBounds(271, 240, 119, 24);\r\n\r\n\t\tLabel lvlLabel = new Label(shell, SWT.NONE);\r\n\t\tlvlLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tlvlLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\tlvlLabel.setText(\"المستوى\");\r\n\t\tlvlLabel.setBounds(415, 269, 119, 27);\r\n\r\n\t\tCombo lvlBookCombo = new Combo(shell, SWT.NONE);\r\n\t\tlvlBookCombo.setItems(new String[] { \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"10\" });\r\n\t\tlvlBookCombo.setBounds(326, 272, 64, 25);\r\n\t\tlvlBookCombo.select(0);\r\n\r\n\t\tLabel priceLabel = new Label(shell, SWT.NONE);\r\n\t\tpriceLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tpriceLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\tpriceLabel.setText(\"السعر\");\r\n\t\tpriceLabel.setBounds(415, 351, 119, 28);\r\n\r\n\t\tGroup groupType = new Group(shell, SWT.NONE);\r\n\t\tgroupType.setBounds(56, 320, 334, 24);\r\n\r\n\t\tButton button = new Button(groupType, SWT.RADIO);\r\n\t\tbutton.setSelection(true);\r\n\t\tbutton.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\tbutton.setBounds(21, 0, 73, 21);\r\n\t\tbutton.setText(\"مجاناً\");\r\n\r\n\t\tButton button_1 = new Button(groupType, SWT.RADIO);\r\n\t\tbutton_1.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\tbutton_1.setBounds(130, 0, 73, 21);\r\n\t\tbutton_1.setText(\"إعارة\");\r\n\r\n\t\tButton button_2 = new Button(groupType, SWT.RADIO);\r\n\t\tbutton_2.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\tbutton_2.setBounds(233, 0, 80, 21);\r\n\t\tbutton_2.setText(\"للبيع\");\r\n\r\n\t\tpriceTxtValue = new Text(shell, SWT.BORDER);\r\n\t\tpriceTxtValue.setBounds(326, 355, 64, 24);\r\n\r\n\t\tLabel ownerInfoLabel = new Label(shell, SWT.NONE);\r\n\t\townerInfoLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\townerInfoLabel.setForeground(SWTResourceManager.getColor(210, 105, 30));\r\n\t\townerInfoLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.BOLD));\r\n\t\townerInfoLabel.setText(\"معلومات صاحبة الكتاب\");\r\n\t\townerInfoLabel.setAlignment(SWT.CENTER);\r\n\t\townerInfoLabel.setBounds(147, 400, 242, 28);\r\n\r\n\t\tLabel ownerIDLabel = new Label(shell, SWT.NONE);\r\n\t\townerIDLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\townerIDLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\townerIDLabel.setBounds(415, 441, 119, 34);\r\n\t\townerIDLabel.setText(\"الرقم الأكاديمي\");\r\n\r\n\t\townerIDValue = new Text(shell, SWT.BORDER);\r\n\t\townerIDValue.setBounds(204, 444, 186, 24);\r\n\t\t// need to check if the owner is already in the database...\r\n\r\n\t\tLabel nameLabel = new Label(shell, SWT.NONE);\r\n\t\tnameLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tnameLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\tnameLabel.setBounds(415, 481, 119, 28);\r\n\t\tnameLabel.setText(\"الاسم الثلاثي\");\r\n\r\n\t\tnameTxt = new Text(shell, SWT.BORDER);\r\n\t\tnameTxt.setBounds(56, 485, 334, 24);\r\n\r\n\t\tLabel phoneLabel = new Label(shell, SWT.NONE);\r\n\t\tphoneLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tphoneLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\tphoneLabel.setText(\"رقم الجوال\");\r\n\t\tphoneLabel.setBounds(415, 515, 119, 27);\r\n\r\n\t\tphoneTxt = new Text(shell, SWT.BORDER);\r\n\t\tphoneTxt.setBounds(204, 521, 186, 24);\r\n\r\n\t\tLabel ownerLvlLabel = new Label(shell, SWT.NONE);\r\n\t\townerLvlLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\townerLvlLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\townerLvlLabel.setBounds(415, 548, 119, 31);\r\n\t\townerLvlLabel.setText(\"المستوى\");\r\n\r\n\t\tCombo owneLvlCombo = new Combo(shell, SWT.NONE);\r\n\t\towneLvlCombo.setItems(new String[] { \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"10\" });\r\n\t\towneLvlCombo.setBounds(326, 554, 64, 25);\r\n\t\towneLvlCombo.select(0);\r\n\r\n\t\tLabel emailLabel = new Label(shell, SWT.NONE);\r\n\t\temailLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\temailLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\temailLabel.setBounds(415, 583, 119, 38);\r\n\t\temailLabel.setText(\"البريد الإلكتروني\");\r\n\r\n\t\temailTxt = new Text(shell, SWT.BORDER);\r\n\t\temailTxt.setBounds(56, 586, 334, 24);\r\n\r\n\t\tButton addButton = new Button(shell, SWT.NONE);\r\n\t\taddButton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\r\n\t\t\t\ttry {\r\n\t\t\t\t\tString bookQuery = \"INSERT INTO kaff.BOOK(bookID, bookTitle, price, level,available, type) VALUES (?, ?, ?, ?, ?, ?, ?)\";\r\n\t\t\t\t\tString bookEdition = \"INSERT INTO kaff.bookEdition(bookID, edition, year) VALUES (?, ?, ?)\";\r\n\t\t\t\t\tString ownerQuery = \"INSERT INTO kaff.user(userID, fname, mname, lastname, phone, level, personalEmail, email) VALUES (?, ?, ?, ?, ?, ?, ?, ?)\";\r\n\r\n\t\t\t\t\tString bookID = bookIDTxt.getText();\r\n\t\t\t\t\tString bookTitle = BookTitleTxt.getText();\r\n\t\t\t\t\tint bookLevel = lvlBookCombo.getSelectionIndex();\r\n\t\t\t\t\tString type = groupType.getText();\r\n\t\t\t\t\tdouble price = Double.parseDouble(priceTxtValue.getText());\r\n\t\t\t\t\tboolean available = true;\r\n\r\n\t\t\t\t\t// must error handle\r\n\t\t\t\t\tString[] ed = editionTxt.getText().split(\" \");\r\n\t\t\t\t\tString edition = ed[0];\r\n\t\t\t\t\tString year = ed[1];\r\n\r\n\t\t\t\t\tString ownerID = ownerIDValue.getText();\r\n\r\n\t\t\t\t\t// error handle if the user enters two names or just first name\r\n\t\t\t\t\tString[] name = nameTxt.getText().split(\" \");\r\n\t\t\t\t\tString fname = \"\", mname = \"\", lname = \"\";\r\n\t\t\t\t\tSystem.out.println(\"name array\" + name);\r\n\t\t\t\t\tif (name.length > 2) {\r\n\t\t\t\t\t\tfname = name[0];\r\n\t\t\t\t\t\tmname = name[1];\r\n\t\t\t\t\t\tlname = name[2];\r\n\t\t\t\t\t}\r\n\t\t\t\t\tString phone = phoneTxt.getText();\r\n\t\t\t\t\tint userLevel = owneLvlCombo.getSelectionIndex();\r\n\t\t\t\t\tString email = emailTxt.getText();\r\n\r\n\t\t\t\t\tDatabase.openConnection();\r\n\t\t\t\t\tPreparedStatement bookStatement = Database.getConnection().prepareStatement(bookQuery);\r\n\r\n\t\t\t\t\tbookStatement.setString(1, bookID);\r\n\t\t\t\t\tbookStatement.setString(2, bookTitle);\r\n\t\t\t\t\tbookStatement.setInt(3, bookLevel);\r\n\t\t\t\t\tbookStatement.setString(4, type);\r\n\t\t\t\t\tbookStatement.setDouble(5, price);\r\n\t\t\t\t\tbookStatement.setBoolean(6, available);\r\n\r\n\t\t\t\t\tint bookre = bookStatement.executeUpdate();\r\n\r\n\t\t\t\t\tbookStatement = Database.getConnection().prepareStatement(bookEdition);\r\n\t\t\t\t\tbookStatement.setString(1, bookID);\r\n\t\t\t\t\tbookStatement.setString(2, edition);\r\n\t\t\t\t\tbookStatement.setString(3, year);\r\n\r\n\t\t\t\t\tint edResult = bookStatement.executeUpdate();\r\n\r\n\t\t\t\t\tPreparedStatement ownerStatement = Database.getConnection().prepareStatement(ownerQuery);\r\n\t\t\t\t\townerStatement.setString(1, ownerID);\r\n\t\t\t\t\townerStatement.setString(2, fname);\r\n\t\t\t\t\townerStatement.setString(3, mname);\r\n\t\t\t\t\townerStatement.setString(4, lname);\r\n\t\t\t\t\townerStatement.setString(5, phone);\r\n\t\t\t\t\townerStatement.setInt(6, userLevel);\r\n\t\t\t\t\townerStatement.setString(7, ownerID + \"iau.edu.sa\");\r\n\t\t\t\t\townerStatement.setString(8, email);\r\n\t\t\t\t\tint ownRes = ownerStatement.executeUpdate();\r\n\r\n\t\t\t\t\tSystem.out.println(\"results: \" + ownRes + \" \" + edResult + \" bookre\");\r\n\t\t\t\t\t// test result of excute Update\r\n\t\t\t\t\tif (ownRes != 0 && edResult != 0 && bookre != 0) {\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Data is updated\");\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Data is not updated\");\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tDatabase.closeConnection();\r\n\t\t\t\t} catch (SQLException sql) {\r\n\t\t\t\t\tSystem.out.println(sql);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\taddButton.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\taddButton.setBounds(54, 666, 85, 26);\r\n\t\taddButton.setText(\"إضافة\");\r\n\r\n\t\tButton backButton = new Button(shell, SWT.NONE);\r\n\t\tbackButton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tAdminMenu am = new AdminMenu();\r\n\t\t\t\tshell.close();\r\n\t\t\t\tam.open();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbackButton.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\tbackButton.setBounds(150, 666, 85, 26);\r\n\t\tbackButton.setText(\"رجوع\");\r\n\r\n\t\tLabel label = new Label(shell, SWT.NONE);\r\n\t\tlabel.setBounds(177, 72, 192, 21);\r\n\t\tlabel.setText(\"إضافة كتاب جديد\");\r\n\r\n\t\tLabel label_1 = new Label(shell, SWT.NONE);\r\n\t\tlabel_1.setBounds(22, 103, 167, 21);\r\n\t\t// get user name here to display\r\n\t\tString name = getUserName();\r\n\t\tlabel_1.setText(\"مرحباً ...\" + name);\r\n\r\n\t\tbookIDTxt = new Text(shell, SWT.BORDER);\r\n\t\tbookIDTxt.setBounds(271, 170, 119, 24);\r\n\r\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setModified(true);\n\t\tshell.setSize(512, 300);\n\t\tshell.setText(\"SWT Application\");\n\t\tshell.setLayout(null);\n\n\t\tLabel label = new Label(shell, SWT.SEPARATOR | SWT.VERTICAL);\n\t\tlabel.setBounds(253, 26, 2, 225);\n\n\t\tcomboCarBrandBuy = new Combo(shell, SWT.READ_ONLY);\n\t\tcomboCarBrandBuy.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tlabel_1.setText(\"Selected\");\n\t\t\t}\n\t\t});\n\t\tcomboCarBrandBuy.setItems(new String[] {\"Maruti\", \"Fiat\", \"Tata\", \"Ford\", \"Honda\", \"Hyundai\"});\n\t\tcomboCarBrandBuy.setBounds(87, 33, 123, 23);\n\t\tcomboCarBrandBuy.setText(\"--select--\");\n\n\t\tLabel lblCarBrand = new Label(shell, SWT.NONE);\n\t\tlblCarBrand.setAlignment(SWT.RIGHT);\n\t\tlblCarBrand.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.NORMAL));\n\t\tlblCarBrand.setBounds(12, 38, 71, 15);\n\t\tlblCarBrand.setText(\"Car Brand :\");\n\n\t\ttextCarNameBuy = new Text(shell, SWT.BORDER);\n\t\ttextCarNameBuy.setBounds(87, 67, 123, 21);\n\n\t\tLabel lblCarName = new Label(shell, SWT.NONE);\n\t\tlblCarName.setAlignment(SWT.RIGHT);\n\t\tlblCarName.setText(\"Car Name :\");\n\t\tlblCarName.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.NORMAL));\n\t\tlblCarName.setBounds(12, 70, 71, 15);\n\n\t\tcomboCarModelBuy = new Combo(shell, SWT.READ_ONLY);\n\t\tcomboCarModelBuy.setItems(new String[] {\"2015\", \"2014\", \"2013\", \"2012\", \"2011\", \"2010\", \"2009\", \"2008\", \"2007\", \"2006\", \"2005\", \"2004\", \"2003\", \"2002\", \"2001\", \"2000\"});\n\t\tcomboCarModelBuy.setBounds(87, 99, 91, 23);\n\t\tcomboCarModelBuy.setText(\"--select--\");\n\n\t\tLabel lblModelYear = new Label(shell, SWT.NONE);\n\t\tlblModelYear.setAlignment(SWT.RIGHT);\n\t\tlblModelYear.setText(\"Model :\");\n\t\tlblModelYear.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.NORMAL));\n\t\tlblModelYear.setBounds(12, 105, 71, 15);\n\n\t\tButton buttonBuy = new Button(shell, SWT.NONE);\n\t\tbuttonBuy.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\n\t\t\t\tString carName = textCarNameBuy.getText();\n\t\t\t\tString carModel = comboCarModelBuy.getText();\n\n\t\t\t\tif(comboCarBrandBuy.getText().equalsIgnoreCase(\"maruti\")){\n\t\t\t\t\tmarutiMap.put(carName, carModel);\n\t\t\t\t}\n\n\t\t\t\tlabel_1.setText(\"Added to Inventory\");\n\t\t\t\tSystem.out.println(marutiMap);\n\t\t\t}\n\t\t});\n\t\tbuttonBuy.setBounds(87, 138, 63, 25);\n\t\tbuttonBuy.setText(\"BUY\");\n\n\t\tlabel_1 = new Label(shell, SWT.BORDER | SWT.HORIZONTAL | SWT.CENTER);\n\t\tlabel_1.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n\t\tlabel_1.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_LIGHT_SHADOW));\n\t\tlabel_1.setBounds(73, 198, 137, 19);\n\n\t\tLabel lblStatus = new Label(shell, SWT.NONE);\n\t\tlblStatus.setBounds(22, 198, 45, 15);\n\t\tlblStatus.setText(\"Status :\");\n\n\t\tLabel label_2 = new Label(shell, SWT.NONE);\n\t\tlabel_2.setText(\"Car Brand :\");\n\t\tlabel_2.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.NORMAL));\n\t\tlabel_2.setAlignment(SWT.RIGHT);\n\t\tlabel_2.setBounds(280, 38, 71, 15);\n\n\t\tcomboCarBrandSell = new Combo(shell, SWT.READ_ONLY);\n\t\tcomboCarBrandSell.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\n\t\t\t\tString carBrand = comboCarBrandSell.getText();\n\t\t\t\tcomboCarNameSell.clearSelection();\n\t\t\t\t\n\t\t\t\tif(carBrand.equalsIgnoreCase(\"maruti\")){\n\t\t\t\t\tSet<String> keyList = marutiMap.keySet();\n\t\t\t\t\tint i=0;\n\t\t\t\t\tfor(String key : keyList){\n\t\t\t\t\t\tcarNames.add(key);\n\t\t\t\t\t\t//comboCarNameSell.setItem(i, key);\n\t\t\t\t\t\t//i++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tString[] strArray = (String[]) carNames.toArray(new String[0]);\n\t\t\t\tSystem.out.println();\n\t\t\t\tcomboCarNameSell.setItems(strArray);\n\n\t\t\t}\n\t\t});\n\t\tcomboCarBrandSell.setItems(new String[] {\"Maruti\", \"Fiat\", \"Tata\", \"Ford\", \"Honda\", \"Hyundai\"});\n\t\tcomboCarBrandSell.setBounds(355, 33, 123, 23);\n\t\tcomboCarBrandSell.setText(\"--select--\");\n\n\t\tLabel label_3 = new Label(shell, SWT.NONE);\n\t\tlabel_3.setText(\"Car Name :\");\n\t\tlabel_3.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.NORMAL));\n\t\tlabel_3.setAlignment(SWT.RIGHT);\n\t\tlabel_3.setBounds(280, 70, 71, 15);\n\n\t\tLabel label_4 = new Label(shell, SWT.NONE);\n\t\tlabel_4.setText(\"Model :\");\n\t\tlabel_4.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.NORMAL));\n\t\tlabel_4.setAlignment(SWT.RIGHT);\n\t\tlabel_4.setBounds(280, 105, 71, 15);\n\n\t\tCombo comboCarModelSell = new Combo(shell, SWT.READ_ONLY);\n\t\tcomboCarModelSell.setItems(new String[] {\"2015\", \"2014\", \"2013\", \"2012\", \"2011\", \"2010\", \"2009\", \"2008\", \"2007\", \"2006\", \"2005\", \"2004\", \"2003\", \"2002\", \"2001\", \"2000\"});\n\t\tcomboCarModelSell.setBounds(355, 99, 91, 23);\n\t\tcomboCarModelSell.setText(\"--select--\");\n\n\t\tButton buttonSell = new Button(shell, SWT.NONE);\n\t\tbuttonSell.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tlabel_5.setText(\"Sold Successfully\");\n\t\t\t}\n\t\t});\n\t\tbuttonSell.setText(\"SELL\");\n\t\tbuttonSell.setBounds(355, 138, 63, 25);\n\n\t\tlabel_5 = new Label(shell, SWT.BORDER | SWT.HORIZONTAL | SWT.CENTER);\n\t\tlabel_5.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n\t\tlabel_5.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_LIGHT_SHADOW));\n\t\tlabel_5.setBounds(341, 198, 137, 19);\n\n\t\tLabel label_6 = new Label(shell, SWT.NONE);\n\t\tlabel_6.setText(\"Status :\");\n\t\tlabel_6.setBounds(290, 198, 45, 15);\n\n\t\tcomboCarNameSell = new Combo(shell, SWT.READ_ONLY);\n\t\tcomboCarNameSell.setItems(new String[] {});\n\t\tcomboCarNameSell.setBounds(355, 65, 123, 23);\n\t\tcomboCarNameSell.setText(\"--select--\");\n\n\t}", "@Override\n\tprotected Control createDialogArea(Composite parent) {\n\t\tComposite container = (Composite) super.createDialogArea(parent);\n\n\t\tcreateContent(container);\n\n\t\treturn container;\n\t}", "private void createContents() {\n\t\tshlAbout = new Shell(getParent(), SWT.DIALOG_TRIM | SWT.RESIZE);\n\t\tshlAbout.setMinimumSize(new Point(800, 600));\n\t\tshlAbout.setSize(800, 688);\n\t\tshlAbout.setText(\"About\");\n\t\t\n\t\tLabel lblKelimetrikAPsycholinguistic = new Label(shlAbout, SWT.CENTER);\n\t\tlblKelimetrikAPsycholinguistic.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.BOLD));\n\t\tlblKelimetrikAPsycholinguistic.setBounds(0, 10, 784, 21);\n\t\tlblKelimetrikAPsycholinguistic.setText(\"KelimetriK: A psycholinguistic tool of Turkish\");\n\t\t\n\t\tScrolledComposite scrolledComposite = new ScrolledComposite(shlAbout, SWT.BORDER | SWT.V_SCROLL);\n\t\tscrolledComposite.setBounds(0, 37, 774, 602);\n\t\tscrolledComposite.setExpandHorizontal(true);\n\t\tscrolledComposite.setExpandVertical(true);\n\t\t\n\t\tComposite composite = new Composite(scrolledComposite, SWT.NONE);\n\t\t\n\t\tLabel label = new Label(composite, SWT.NONE);\n\t\tlabel.setSize(107, 21);\n\t\tlabel.setText(\"Introduction\");\n\t\tlabel.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n\t\tlabel.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.BOLD));\n\t\t\n\t\tLabel label_1 = new Label(composite, SWT.WRAP);\n\t\tlabel_1.setLocation(0, 27);\n\t\tlabel_1.setSize(753, 157);\n\t\tlabel_1.setText(\"Selection of appropriate words for a fully controlled word stimuli set is an essential component for conducting an effective psycholinguistic studies (Perea, & Polatsek, 1998; Bowers, Davis, & Hanley, 2004). For example, if the word stimuli set of a visual word recognition study is full of high frequency words, this may create a bias on the behavioral scores and would lead to incorrect inferences about the hypothesis. Thus, experimenters who are intended to work with any kind of verbal stimuli should consider such linguistic variables to obtain reliable results.\\r\\n\\r\\nKelimetriK is a query-based software program designed to demonstrate several lexical variables and orthographic statistics of words. As shown in Figure X, the user-friendly interface of KelimetriK is an easy-to-use software developed to be a helpful source experimenters who are preparing verbal stimuli sets for psycholinguistic studies. KelimetriK provides information about several lexical properties of word-frequency, neighborhood size, orthographic similarity and relatedness. KelimetriK\\u2019s counterparts in other language are N-watch in English (Davis, 2005) and BuscaPalabras in Spanish (Davis, & Perea, 2005).\");\n\t\t\n\t\tLabel label_2 = new Label(composite, SWT.NONE);\n\t\tlabel_2.setLocation(0, 190);\n\t\tlabel_2.setSize(753, 21);\n\t\tlabel_2.setText(\"The lexical variables in KelimetriK Software\");\n\t\tlabel_2.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n\t\tlabel_2.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.BOLD));\n\t\t\n\t\tLabel label_3 = new Label(composite, SWT.WRAP);\n\t\tlabel_3.setBounds(0, 228, 753, 546);\n\t\tlabel_3.setText(\"Output lexical variables (and orthographic statistics) in KelimetriK are word-frequency, bigram and tri-gram frequency and average frequency values, orthographic neighborhood size (Coltheart\\u2019s N), orthographic Levensthein distance 20 (OLD20) and transposed letter and subset/superset similarity.\\r\\n\\r\\nWord frequency is a value that describes of how many times a word occurred in a given text. Research shows that there is a consistent logarithmic relationship between reaction time and word\\u2019s frequency score; the impact of effect is higher for smaller frequencies words that the effect gets smaller on higher frequency scores (Davis, 2005).\\r\\n\\r\\nBi-grams and tri-grams are are obtained by decomposing a word (string of tokens) into sequences of two and three number of neighboring elements (Manning, & Sch\\u00FCtze, 1999). For example, the Turkish word \\u201Ckule\\u201D (tower in English) can be decomposed into three different bigram sets (\\u201Cku\\u201D, \\u201Cul\\u201D, \\u201Cle\\u201D). Bigram/trigram frequency values are obtained by counting how many same letter (four in this case) words will start with first bigram set (e.g. \\u201Cku\\u201D), how many words have second bigram set in the middle (e.g. \\u201Cul\\u201D) in the middle, and how many words will end with last bigram set (\\u201Cle\\u201D) in a given lexical word database. The trigrams for the word \\u201Ckule\\u201D are \\u201Ckul\\u201D and \\u201Cule\\u201D. Average bi-gram/tri-gram frequency is obtained by adding a word\\u2019s entire bi-gram/ tri-gram frequencies and then dividing it by number of bigrams (\\u201Ckule\\u201D consist of three bigrams).\\r\\n\\r\\nOrthographic neighborhood size (Coltheart\\u2019s N) refers to number of words that can be obtained from a given lexical database word list by substituting a single letter of a word (Coltheart et al, 1977). For example, orthographic neighborhood size of the word \\u201Ckule\\u201D is 9 if searched on KelimetriK (\\u201C\\u015Fule\\u201D, \\u201Ckula\\u201D, \\u201Ckulp\\u201D, \\u201Cfule\\u201D, \\u201Ckale\\u201D, \\u201Ck\\u00F6le\\u201D, \\u201Ckele\\u201D, \\u201Ckile\\u201D, \\u201Cku\\u015Fe\\u201D). A word\\u2019s orthographic neighborhood size could influence behavioral performance in visual word recognition tasks of lexical decision, naming, perceptual identification, and semantic categorization (Perea, & Polatsek, 1998).\\r\\n\\r\\nOrthographic Levensthein distance 20 (OLD20) of a word is the average of 20 most close words in the unit of Levensthein distance (Yarkoni, Balota, & Yap, 2008). Levensthein distance between the two strings of letters is obtained by counting the minimum number of operations (substitution, deletion or insertion) required while passing from one letter string to the other (Levenshthein, 1966). Behavioral studies show that, OLD20 is negatively correlated with orthographic neighborhood size (r=-561) and positively correlated with word-length (r=868) for English words (Yarkoni, Balota, & Yap, 2008). Moreover, OLD20 explains more variance on visual word recognition scores than orthographic neighborhood size and word length (Yarkoni, Balota, & Yap, 2008).\\r\\n\\r\\nOrthographic similarity between two words means they are the neighbors of each other like the words \\u201Cal\\u0131n\\u201D (forehead in English) and \\u201Calan\\u201D (area in English). Transposed letter (TL) and subset/superset are the two most common similarities in the existing literature (Davis, 2005). TL similiarity is the case when the two letters differ from each other based on a single pair of adjacent letters as in the Turkish words of \\u201Cesen\\u201D (blustery) and \\u201Cesne\\u201D (yawn). Studies have shown that TL similarity may facilitate detection performance on naming and lexical decision task (Andrews, 1996). Subset/Superset similarity occurs when there is an embedded word in a given input word such as \\u201Cs\\u00FCt\\u201D (subset: milk in Turkish) \\u201Cs\\u00FCtun\\u201D (superset: pillar in Turkish). Presence of a subset in a word in a stimuli set may influence the subject\\u2019s reading performance, hence may create a confounding factor on the behavioral results (Bowers, Davis, & Hanley, 2005).\");\n\t\t\n\t\tLabel lblAndrewsLexical = new Label(composite, SWT.NONE);\n\t\tlblAndrewsLexical.setLocation(0, 798);\n\t\tlblAndrewsLexical.setSize(753, 296);\n\t\tlblAndrewsLexical.setText(\"Andrews (1996). Lexical retrieval and selection processes: Effects of transposed-letter confusability, Journal of Memory and Language 35, 775\\u2013800\\r\\n\\r\\nBowers, J. S., Davis, C. J., & Hanley, D. A. (2005). References automatic semantic activation of embedded words: Is there a \\u2018\\u2018hat\\u2019\\u2019 in \\u2018\\u2018that\\u2019\\u2019? Journal of Memory and Language, 52, 131-143.\\r\\n\\r\\nColtheart, M., Davelaar, E., Jonasson, J. T., & Besner, D. (1977). Access to the internal lexicon. Attention and Performance, 6, 535-555.\\r\\n\\r\\nDavis, C. J. (2005). N-Watch: A program for deriving neighborhood size and other psycholinguistic statistics. Behavior Research Methods, 37, 65-70.\\r\\n\\r\\nDavis, C. J., & Parea, M. (2005). BuscaPalabras: A program for deriving orthographic and phonological neighborhood statistics and other psycholinguistic indices in Spanish. Behavior Research Methods, 37, 665-671.\\r\\n\\r\\nLevenshtein, V. I. (1966, February). Binary codes capable of correcting deletions, insertions and reversals. In Soviet physics doklady (Vol. 10, p. 707).\\r\\n\\r\\nManning, C. D., & Sch\\u00FCtze, H. (1999). Foundations of statistical natural language processing. MIT press.\\r\\n\\r\\nPerea, M., & Pollatsek, A. (1998). The effects of neighborhood frequency in reading and lexical decision. Journal of Experimental Psychology, 24, 767-779.\\r\\n\\r\\nYarkoni, T., Balota, D., & Yap, M. (2008). Moving beyond Coltheart\\u2019s N: A new measure of orthographic similarity. Psychonomic Bulletin & Review, 15(5), 971-979.\\r\\n\");\n\t\t\n\t\tLabel label_4 = new Label(composite, SWT.NONE);\n\t\tlabel_4.setBounds(0, 771, 753, 21);\n\t\tlabel_4.setText(\"References\");\n\t\tlabel_4.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n\t\tlabel_4.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.BOLD));\n\t\tscrolledComposite.setContent(composite);\n\t\tscrolledComposite.setMinSize(composite.computeSize(SWT.DEFAULT, SWT.DEFAULT));\n\n\t}", "private void createDialog() {\r\n final AlertDialog dialog = new AlertDialog.Builder(getActivity()).setView(R.layout.dialog_recorder_details)\r\n .setTitle(\"Recorder Info\").setPositiveButton(\"Start\", (dialog1, which) -> {\r\n EditText width = (EditText) ((AlertDialog) dialog1).findViewById(R.id.dialog_recorder_resolution_width);\r\n EditText height = (EditText) ((AlertDialog) dialog1).findViewById(R.id.dialog_recorder_resolution_height);\r\n CheckBox audio = (CheckBox) ((AlertDialog) dialog1).findViewById(R.id.dialog_recorder_audio_checkbox);\r\n EditText fileName = (EditText) ((AlertDialog) dialog1).findViewById(R.id.dialog_recorder_filename_name);\r\n mServiceHandle.start(new RecordingInfo(Integer.parseInt(width.getText().toString()), Integer.parseInt(height.getText().toString()),\r\n audio.isChecked(), fileName.getText().toString()));\r\n dialog1.dismiss();\r\n }).setNegativeButton(\"Cancel\", (dialog1, which) -> {\r\n dialog1.dismiss();\r\n }).show();\r\n Point size = new Point();\r\n getActivity().getWindowManager().getDefaultDisplay().getRealSize(size);\r\n ((EditText) dialog.findViewById(R.id.dialog_recorder_resolution_width)).setText(Integer.toString(size.x));\r\n ((EditText) dialog.findViewById(R.id.dialog_recorder_resolution_height)).setText(Integer.toString(size.y));\r\n }", "protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setImage(SWTResourceManager.getImage(mainFrame.class, \"/imgCompand/main/logo.png\"));\r\n\t\tshell.setSize(935, 650);\r\n\t\tshell.setMinimumSize(920, 650);\r\n\t\tcenter(shell);\r\n\t\tshell.setText(\"三合一\");\r\n\t\tshell.setLayout(new GridLayout(8, false));\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tLabel label = new Label(shell, SWT.NONE);\r\n\t\tlabel.setText(\"面单图片:\");\r\n\t\t\r\n\t\ttext_mdtp = new Text(shell, SWT.BORDER);\r\n\t\ttext_mdtp.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tButton btnNewButton = new Button(shell, SWT.NONE);\r\n\t\tbtnNewButton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tDirectoryDialog dd=new DirectoryDialog(shell); \r\n\t\t\t\tdd.setMessage(\"setMessage\"); \r\n\t\t\t\tdd.setText(\"选择保存面单图片的文件夹\"); \r\n\t\t\t\tdd.setFilterPath(\"C://\"); \r\n\t\t\t\tString mdtp=dd.open();\r\n\t\t\t\tif(mdtp!=null){\r\n\t\t\t\t\ttext_mdtp.setText(mdtp);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tGridData gd_btnNewButton = new GridData(SWT.LEFT, SWT.CENTER, false, false, 2, 1);\r\n\t\tgd_btnNewButton.widthHint = 95;\r\n\t\tbtnNewButton.setLayoutData(gd_btnNewButton);\r\n\t\tbtnNewButton.setText(\"浏览\");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tlblNewLabel = new Label(shell, SWT.NONE);\r\n\t\tGridData gd_lblNewLabel = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_lblNewLabel.widthHint = 87;\r\n\t\tlblNewLabel.setLayoutData(gd_lblNewLabel);\r\n\t\tlblNewLabel.setText(\"身份证图片:\");\r\n\t\t\r\n\t\ttext_sfztp = new Text(shell, SWT.BORDER);\r\n\t\ttext_sfztp.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tbtnNewButton_1 = new Button(shell, SWT.NONE);\r\n\t\tbtnNewButton_1.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tDirectoryDialog dd=new DirectoryDialog(shell); \r\n\t\t\t\tdd.setMessage(\"setMessage\"); \r\n\t\t\t\tdd.setText(\"选择保存身份证图片的文件夹\"); \r\n\t\t\t\tdd.setFilterPath(\"C://\"); \r\n\t\t\t\tString sfztp=dd.open();\r\n\t\t\t\tif(sfztp!=null){\r\n\t\t\t\t\ttext_sfztp.setText(sfztp);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tGridData gd_btnNewButton_1 = new GridData(SWT.LEFT, SWT.CENTER, false, false, 2, 1);\r\n\t\tgd_btnNewButton_1.widthHint = 95;\r\n\t\tbtnNewButton_1.setLayoutData(gd_btnNewButton_1);\r\n\t\tbtnNewButton_1.setText(\"浏览\");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tlabel_1 = new Label(shell, SWT.NONE);\r\n\t\tlabel_1.setText(\"小票图片:\");\r\n\t\t\r\n\t\ttext_xptp = new Text(shell, SWT.BORDER);\r\n\t\ttext_xptp.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tbutton = new Button(shell, SWT.NONE);\r\n\t\tbutton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tDirectoryDialog dd=new DirectoryDialog(shell); \r\n\t\t\t\tdd.setText(\"选择保存小票图片的文件夹\"); \r\n\t\t\t\tdd.setFilterPath(\"C://\"); \r\n\t\t\t\tString xptp=dd.open();\r\n\t\t\t\tif(xptp!=null){\r\n\t\t\t\t\ttext_xptp.setText(xptp);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tGridData gd_button = new GridData(SWT.LEFT, SWT.CENTER, false, false, 2, 1);\r\n\t\tgd_button.widthHint = 95;\r\n\t\tbutton.setLayoutData(gd_button);\r\n\t\tbutton.setText(\"浏览\");\r\n\t\t\r\n\t\tlabel_2 = new Label(shell, SWT.NONE);\r\n\t\tlabel_2.setText(\" \");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tlblNewLabel_1 = new Label(shell, SWT.NONE);\r\n\t\tlblNewLabel_1.setText(\" \");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tlabel_5 = new Label(shell, SWT.NONE);\r\n\t\tlabel_5.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));\r\n\t\tlabel_5.setText(\"三合一导入模板下载,请点击........\");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tbutton_1 = new Button(shell, SWT.NONE);\r\n\t\tGridData gd_button_1 = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_button_1.widthHint = 95;\r\n\t\tbutton_1.setLayoutData(gd_button_1);\r\n\t\tbutton_1.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\ttry{\r\n\t\t\t\t\tDirectoryDialog dd=new DirectoryDialog(shell); \r\n\t\t\t\t\tdd.setText(\"请选择文件保存的位置\"); \r\n\t\t\t\t\tdd.setFilterPath(\"C://\"); \r\n\t\t\t\t\tString saveFile=dd.open(); \r\n\t\t\t\t\tif(saveFile!=null){\r\n\t\t\t\t\t\tboolean flg = FileUtil.downloadLocal(saveFile, \"/template.xls\", \"三合一导入模板.xls\");\r\n\t\t\t\t\t\tif(flg){\r\n\t\t\t\t\t\t\tMessageDialog.openInformation(shell, \"系统提示\", \"模板下载成功!保存路径为:\"+saveFile+\"/三合一导入模板.xls\");\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\tMessageDialog.openError(shell, \"系统提示\", \"模板下载失败!\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t }catch(Exception ex){\r\n\t\t\t\t\t System.out.print(\"创建失败\");\r\n\t\t\t\t } \r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton_1.setText(\"导入模板\");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tlabel_4 = new Label(shell, SWT.NONE);\r\n\t\tlabel_4.setText(\"合成信息:\");\r\n\t\t\r\n\t\ttext = new Text(shell, SWT.BORDER);\r\n\t\ttext.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tbtnexecl = new Button(shell, SWT.NONE);\r\n\t\tbtnexecl.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tFileDialog filedia = new FileDialog(shell, SWT.SINGLE);\r\n\t\t\t\tString filepath = filedia.open()+\"\";\r\n\t\t\t\ttext.setText(filepath.replace(\"null\",\"\"));\r\n\t\t\t}\r\n\t\t});\r\n\t\tGridData gd_btnexecl = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_btnexecl.widthHint = 95;\r\n\t\tbtnexecl.setLayoutData(gd_btnexecl);\r\n\t\tbtnexecl.setText(\"导入execl\");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tlabel_3 = new Label(shell, SWT.NONE);\r\n\t\tlabel_3.setText(\"合成图片:\");\r\n\t\t\r\n\t\ttext_hctp = new Text(shell, SWT.BORDER);\r\n\t\ttext_hctp.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tbtnNewButton_2 = new Button(shell, SWT.NONE);\r\n\t\tbtnNewButton_2.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tDirectoryDialog dd=new DirectoryDialog(shell); \r\n\t\t\t\tdd.setText(\"选择合成图片将要保存的文件夹\"); \r\n\t\t\t\tdd.setFilterPath(\"C://\"); \r\n\t\t\t\tString hctp=dd.open();\r\n\t\t\t\tif(hctp!=null){\r\n\t\t\t\t\ttext_hctp.setText(hctp);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tGridData gd_btnNewButton_2 = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_btnNewButton_2.widthHint = 95;\r\n\t\tbtnNewButton_2.setLayoutData(gd_btnNewButton_2);\r\n\t\tbtnNewButton_2.setText(\"保存位置\");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tlabel_6 = new Label(shell, SWT.NONE);\r\n\t\tlabel_6.setText(\"进度:\");\r\n\t\t\r\n\t\tprogressBar = new ProgressBar(shell, SWT.NONE);\r\n\t\tGridData gd_progressBar = new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_progressBar.widthHint = 524;\r\n\t\tprogressBar.setMinimum(0);\r\n\t\tprogressBar.setMaximum(100);\r\n\t\tprogressBar.setLayoutData(gd_progressBar);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tbtn_doCompImg = new Button(shell, SWT.NONE);\r\n\t\tbtn_doCompImg.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\t//导入信息\r\n\t\t\t\tdrxx = text.getText();\r\n\t\t\t\t//保存路径\r\n\t\t\t\thctp = text_hctp.getText();\r\n\t\t\t\t//面单图片路径\r\n\t\t\t\tmdtp = text_mdtp.getText();\r\n\t\t\t\t//身份证图片路径\r\n\t\t\t\tsfztp = text_sfztp.getText();\r\n\t\t\t\t//小票图片路径\r\n\t\t\t\txptp = text_xptp.getText();\r\n\t\t\t\t//清空信息框\r\n\t\t\t\ttext_info.setText(\"\");\r\n\t\t\t\tif(!drxx.equals(\"\")&&!hctp.equals(\"\")&&!mdtp.equals(\"\")&&!sfztp.equals(\"\")&&!xptp.equals(\"\")){\r\n\t\t\t\t\t(new IncresingOperator()).start();\r\n\t\t\t\t}else{\r\n\t\t\t\t\tMessageDialog.openWarning(shell, \"系统提示\",\"各路径选项不能为空!\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tGridData gd_btn_doCompImg = new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_btn_doCompImg.widthHint = 95;\r\n\t\tbtn_doCompImg.setLayoutData(gd_btn_doCompImg);\r\n\t\tbtn_doCompImg.setText(\"立即合成\");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\ttext_info = new Text(shell, SWT.BORDER | SWT.V_SCROLL | SWT.MULTI);\r\n\t\tGridData gd_text_info = new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1);\r\n\t\tgd_text_info.heightHint = 217;\r\n\t\ttext_info.setLayoutData(gd_text_info);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\r\n\t}", "protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setLayout(new GridLayout(1, false));\r\n\t\tshell.setSize(450, 300);\r\n\t\tshell.setText(\"SWT Application\");\r\n\t\t{\r\n\t\t\tfinal Button btnShowTheFake = new Button(shell, SWT.TOGGLE);\r\n\t\t\tbtnShowTheFake.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\r\n\t\t\t\t\tif (btnShowTheFake.getSelection()) {\r\n\t\t\t\t\t\tRectangle bounds = btnShowTheFake.getBounds();\r\n\t\t\t\t\t\tPoint pos = shell.toDisplay(bounds.x + 5, bounds.y + bounds.height);\r\n\t\t\t\t\t\ttooltip = showTooltip(shell, pos.x, pos.y);\r\n\t\t\t\t\t\tbtnShowTheFake.setText(\"Hide it\");\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tif (tooltip != null && !tooltip.isDisposed())\r\n\t\t\t\t\t\t\ttooltip.dispose();\r\n\t\t\t\t\t\tbtnShowTheFake.setText(\"Show The Fake Tooltip\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tbtnShowTheFake.setText(\"Show The Fake Tooltip\");\r\n\t\t}\r\n\t}", "protected void createContents() {\n\t\tsetText(\"Termination\");\n\t\tsetSize(340, 101);\n\n\t}", "private void createContents() {\r\n\t\tshlAboutGoko = new Shell(getParent(), getStyle());\r\n\t\tshlAboutGoko.setSize(376, 248);\r\n\t\tshlAboutGoko.setText(\"About Goko\");\r\n\t\tshlAboutGoko.setLayout(new GridLayout(1, false));\r\n\r\n\t\tComposite composite_1 = new Composite(shlAboutGoko, SWT.NONE);\r\n\t\tcomposite_1.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));\r\n\t\tcomposite_1.setLayout(new GridLayout(1, false));\r\n\r\n\t\tLabel lblGokoIsA = new Label(composite_1, SWT.WRAP);\r\n\t\tGridData gd_lblGokoIsA = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_lblGokoIsA.widthHint = 350;\r\n\t\tlblGokoIsA.setLayoutData(gd_lblGokoIsA);\r\n\t\tlblGokoIsA.setText(\"Goko is an open source desktop application for CNC control and operation\");\r\n\r\n\t\tComposite composite_2 = new Composite(composite_1, SWT.NONE);\r\n\t\tcomposite_2.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\r\n\t\tcomposite_2.setLayout(new GridLayout(2, false));\r\n\r\n\t\tLabel lblAlphaVersion = new Label(composite_2, SWT.NONE);\r\n\t\tlblAlphaVersion.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));\r\n\t\tlblAlphaVersion.setFont(SWTResourceManager.getFont(\"Segoe UI\", 9, SWT.ITALIC));\r\n\t\tlblAlphaVersion.setText(\"Version\");\r\n\r\n\t\tLabel lblVersion = new Label(composite_2, SWT.NONE);\r\n\t\tlblVersion.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(composite_1, SWT.NONE);\r\n\r\n\t\tLabel lblDate = new Label(composite_2, SWT.NONE);\r\n\t\tlblDate.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));\r\n\t\tlblDate.setFont(SWTResourceManager.getFont(\"Segoe UI\", 9, SWT.ITALIC));\r\n\t\tlblDate.setText(\"Build\");\r\n\t\t\r\n\t\tLabel lblBuild = new Label(composite_2, SWT.NONE);\r\n\t\tlblBuild.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\r\n\t\t\t\t\r\n\t\tProperties prop = new Properties();\r\n\t\tClassLoader loader = Thread.currentThread().getContextClassLoader(); \r\n\t\tInputStream stream = loader.getResourceAsStream(\"/version.properties\");\r\n\t\ttry {\r\n\t\t\tprop.load(stream);\r\n\t\t\tString version = prop.getProperty(\"goko.version\");\r\n\t\t\tString build = prop.getProperty(\"goko.build.timestamp\");\r\n\t\t\tlblVersion.setText(version);\r\n\t\t\tlblBuild.setText(build);\t\r\n\t\t\t\r\n\t\t} catch (IOException e) {\r\n\t\t\tLOG.error(e);\r\n\t\t}\r\n\t\t\r\n\t\tComposite composite = new Composite(composite_1, SWT.NONE);\r\n\t\tcomposite.setLayout(new GridLayout(2, false));\r\n\r\n\t\tLabel lblMoreInformationOn = new Label(composite, SWT.NONE);\r\n\t\tGridData gd_lblMoreInformationOn = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_lblMoreInformationOn.widthHint = 60;\r\n\t\tlblMoreInformationOn.setLayoutData(gd_lblMoreInformationOn);\r\n\t\tlblMoreInformationOn.setText(\"Website :\");\r\n\r\n\t\tLink link = new Link(composite, SWT.NONE);\r\n\t\tlink.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseUp(MouseEvent event) {\r\n\t\t\t\tif (event.button == 1) { // Left button pressed & released\r\n\t\t Desktop desktop = Desktop.isDesktopSupported() ? Desktop.getDesktop() : null;\r\n\t\t if (desktop != null && desktop.isSupported(Desktop.Action.BROWSE)) {\r\n\t\t try {\r\n\t\t desktop.browse(URI.create(\"http://www.goko.fr\"));\r\n\t\t } catch (Exception e) {\r\n\t\t LOG.error(e);\r\n\t\t }\r\n\t\t }\r\n\t\t }\r\n\t\t\t}\r\n\t\t});\r\n\t\tlink.setText(\"<a>http://www.goko.fr</a>\");\r\n\t\t\r\n\t\tComposite composite_3 = new Composite(composite_1, SWT.NONE);\r\n\t\tcomposite_3.setLayout(new GridLayout(2, false));\r\n\t\t\r\n\t\tLabel lblForum = new Label(composite_3, SWT.NONE);\r\n\t\tGridData gd_lblForum = new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_lblForum.widthHint = 60;\r\n\t\tlblForum.setLayoutData(gd_lblForum);\r\n\t\tlblForum.setText(\"Forum :\");\r\n\t\t\r\n\t\tLink link_1 = new Link(composite_3, 0);\r\n\t\tlink_1.setText(\"<a>http://discuss.goko.fr</a>\");\r\n\t\tlink_1.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseUp(MouseEvent event) {\r\n\t\t\t\tif (event.button == 1) { // Left button pressed & released\r\n\t\t Desktop desktop = Desktop.isDesktopSupported() ? Desktop.getDesktop() : null;\r\n\t\t if (desktop != null && desktop.isSupported(Desktop.Action.BROWSE)) {\r\n\t\t try {\r\n\t\t desktop.browse(URI.create(\"http://discuss.goko.fr\"));\r\n\t\t } catch (Exception e) {\r\n\t\t LOG.error(e);\r\n\t\t }\r\n\t\t }\r\n\t\t }\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tComposite composite_4 = new Composite(composite_1, SWT.NONE);\r\n\t\tcomposite_4.setLayout(new GridLayout(2, false));\r\n\t\t\r\n\t\tLabel lblContact = new Label(composite_4, SWT.NONE);\r\n\t\tGridData gd_lblContact = new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_lblContact.widthHint = 60;\r\n\t\tlblContact.setLayoutData(gd_lblContact);\r\n\t\tlblContact.setText(\"Contact :\");\r\n\t\t\t \r\n\t\tLink link_2 = new Link(composite_4, 0);\r\n\t\tlink_2.setText(\"<a>\"+toAscii(\"636f6e7461637440676f6b6f2e6672\")+\"</a>\");\r\n\r\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(550, 400);\n\t\tshell.setText(\"Source A Antenna 1 Data\");\n\t\t\n\t\tButton btnNewButton_1 = new Button(shell, SWT.NONE);\n\t\tbtnNewButton_1.setFont(SWTResourceManager.getFont(\"Ubuntu\", 11, SWT.BOLD));\n\t\tbtnNewButton_1.setBounds(116, 10, 98, 30);\n\t\tbtnNewButton_1.setText(\"pol 1\");\n\t\t\n\t\tButton btnPol = new Button(shell, SWT.NONE);\n\t\tbtnPol.setText(\"pol 2\");\n\t\tbtnPol.setFont(SWTResourceManager.getFont(\"Ubuntu\", 11, SWT.BOLD));\n\t\tbtnPol.setBounds(220, 10, 98, 30);\n\t\t\n\t\tButton btnPol_1 = new Button(shell, SWT.NONE);\n\t\tbtnPol_1.setText(\"pol 3\");\n\t\tbtnPol_1.setFont(SWTResourceManager.getFont(\"Ubuntu\", 11, SWT.BOLD));\n\t\tbtnPol_1.setBounds(324, 10, 98, 30);\n\t\t\n\t\tButton btnPol_2 = new Button(shell, SWT.NONE);\n\t\tbtnPol_2.setText(\"pol 4\");\n\t\tbtnPol_2.setFont(SWTResourceManager.getFont(\"Ubuntu\", 11, SWT.BOLD));\n\t\tbtnPol_2.setBounds(428, 10, 98, 30);\n\t\t\n\t\tButton button_3 = new Button(shell, SWT.NONE);\n\t\tbutton_3.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\n\t\t\t\tPlot_graph nw = new Plot_graph();\n\t\t\t\tnw.GraphScreen();\n\t\t\t}\n\t\t});\n\t\tbutton_3.setBounds(116, 46, 98, 30);\n\t\t\n\t\tButton button_4 = new Button(shell, SWT.NONE);\n\t\tbutton_4.setBounds(116, 83, 98, 30);\n\t\t\n\t\tButton button_5 = new Button(shell, SWT.NONE);\n\t\tbutton_5.setBounds(116, 119, 98, 30);\n\t\t\n\t\tButton button_6 = new Button(shell, SWT.NONE);\n\t\tbutton_6.setBounds(116, 155, 98, 30);\n\t\t\n\t\tButton button_7 = new Button(shell, SWT.NONE);\n\t\tbutton_7.setBounds(220, 155, 98, 30);\n\t\t\n\t\tButton button_8 = new Button(shell, SWT.NONE);\n\t\tbutton_8.setBounds(220, 119, 98, 30);\n\t\t\n\t\tButton button_9 = new Button(shell, SWT.NONE);\n\t\tbutton_9.setBounds(220, 83, 98, 30);\n\t\t\n\t\tButton button_10 = new Button(shell, SWT.NONE);\n\t\tbutton_10.setBounds(220, 46, 98, 30);\n\t\t\n\t\tButton button_11 = new Button(shell, SWT.NONE);\n\t\tbutton_11.setBounds(428, 155, 98, 30);\n\t\t\n\t\tButton button_12 = new Button(shell, SWT.NONE);\n\t\tbutton_12.setBounds(428, 119, 98, 30);\n\t\t\n\t\tButton button_13 = new Button(shell, SWT.NONE);\n\t\tbutton_13.setBounds(428, 83, 98, 30);\n\t\t\n\t\tButton button_14 = new Button(shell, SWT.NONE);\n\t\tbutton_14.setBounds(428, 46, 98, 30);\n\t\t\n\t\tButton button_15 = new Button(shell, SWT.NONE);\n\t\tbutton_15.setBounds(324, 46, 98, 30);\n\t\t\n\t\tButton button_16 = new Button(shell, SWT.NONE);\n\t\tbutton_16.setBounds(324, 83, 98, 30);\n\t\t\n\t\tButton button_17 = new Button(shell, SWT.NONE);\n\t\tbutton_17.setBounds(324, 119, 98, 30);\n\t\t\n\t\tButton button_18 = new Button(shell, SWT.NONE);\n\t\tbutton_18.setBounds(324, 155, 98, 30);\n\n\t}", "protected void createContents() {\n\t\tshlFaststone = new Shell();\n\t\tshlFaststone.setImage(SWTResourceManager.getImage(Edit.class, \"/image/all1.png\"));\n\t\tshlFaststone.setToolTipText(\"\");\n\t\tshlFaststone.setSize(944, 479);\n\t\tshlFaststone.setText(\"kaca\");\n\t\tshlFaststone.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\t\n\t\tComposite composite = new Composite(shlFaststone, SWT.NONE);\n\t\tcomposite.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\t\n\t\tSashForm sashForm = new SashForm(composite, SWT.VERTICAL);\n\t\t//\n\t\tMenu menu = new Menu(shlFaststone, SWT.BAR);\n\t\tshlFaststone.setMenuBar(menu);\n\t\tMenuItem menuItem = new MenuItem(menu, SWT.CASCADE);\n\t\tmenuItem.setSelection(true);\n\t\tmenuItem.setText(\"\\u6587\\u4EF6\");\n\t\t\n\t\tMenu menu_1 = new Menu(menuItem);\n\t\tmenuItem.setMenu(menu_1);\n\t\t\n\t\tfinal Canvas down=new Canvas(shlFaststone,SWT.NONE|SWT.BORDER|SWT.DOUBLE_BUFFERED);\n\t\t\n\t\tComposite composite_4 = new Composite(sashForm, SWT.BORDER);\n\t\tcomposite_4.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\t\n\t\tSashForm sashForm_3 = new SashForm(composite_4, SWT.NONE);\n\t\tformToolkit.adapt(sashForm_3);\n\t\tformToolkit.paintBordersFor(sashForm_3);\n\t\t\n\t\tToolBar toolBar = new ToolBar(sashForm_3, SWT.BORDER | SWT.FLAT | SWT.WRAP | SWT.RIGHT);\n\t\ttoolBar.setToolTipText(\"\");\n\t\t\n\t\tToolItem toolItem_6 = new ToolItem(toolBar, SWT.NONE);\n\t\ttoolItem_6.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tmntmNewItem_2.notifyListeners(SWT.Selection,event1);\n\n\t\t\t}\n\t\t});\n\t\ttoolItem_6.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6253\\u5F00.jpg\"));\n\t\ttoolItem_6.setText(\"\\u6253\\u5F00\");\n\t\t\n\t\tToolItem tltmNewItem = new ToolItem(toolBar, SWT.NONE);\n\t\t\n\t\t\n\t\ttltmNewItem.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\n\n\t\t\t}\n\t\t});\n\t\t//\n\t\t\n\t\ttltmNewItem.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u53E6\\u5B58\\u4E3A.jpg\"));\n\t\ttltmNewItem.setText(\"\\u53E6\\u5B58\\u4E3A\");\n\t\t//关闭\n\t\tToolItem tltmNewItem_4 = new ToolItem(toolBar, SWT.NONE);\n\t\ttltmNewItem_4.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tmntmNewItem_5.notifyListeners(SWT.Selection, event2);\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\ttltmNewItem_4.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7ED3\\u675F.jpg\"));\n\t\ttltmNewItem_4.setText(\"\\u5173\\u95ED\");\n\t\t\n\t\t\n\t\t\n\t\tToolItem tltmNewItem_1 = new ToolItem(toolBar, SWT.NONE);\n\t\ttltmNewItem_1.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\t//缩放\n\t\t\n\t\t\n\t\ttltmNewItem_1.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u653E\\u5927.jpg\"));\n\t\t\n\t\t//工具栏:放大\n\t\t\n\t\ttltmNewItem_1.setText(\"\\u653E\\u5927\");\n\t\t\n\t\tToolItem tltmNewItem_2 = new ToolItem(toolBar, SWT.NONE);\n\t\t\n\t\t//工具栏:缩小\n\t\ttltmNewItem_2.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\t\n\t\ttltmNewItem_2.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F29\\u5C0F.jpg\"));\n\t\ttltmNewItem_2.setText(\"\\u7F29\\u5C0F\");\n\t\tToolItem toolItem_5 = new ToolItem(toolBar, SWT.NONE);\n\t\ttoolItem_5.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tmntmNewItem_5.notifyListeners(SWT.Selection, event2);\n\n\t\t\t}\n\t\t});\n\t\ttoolItem_5.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7ED3\\u675F.jpg\"));\n\t\ttoolItem_5.setText(\"\\u9000\\u51FA\");\n\t\t\n\t\tToolBar toolBar_1 = new ToolBar(sashForm_3, SWT.BORDER | SWT.FLAT | SWT.RIGHT);\n\t\tformToolkit.adapt(toolBar_1);\n\t\tformToolkit.paintBordersFor(toolBar_1);\n\t\t\n\t\tToolItem toolItem_7 = new ToolItem(toolBar_1, SWT.NONE);\n\t\t\n\t\t//工具栏:标题\n\t\ttoolItem_7.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\t//\n\t\t\n\t\ttoolItem_7.setText(\"\\u6807\\u9898\");\n\t\ttoolItem_7.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6807\\u9898.jpg\"));\n\t\t\n\t\tToolItem toolItem_1 = new ToolItem(toolBar_1, SWT.NONE);\n\t\t\n\t\t//工具栏:调整大小\n\t\ttoolItem_1.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\t//\n\t\t\n\t\ttoolItem_1.setText(\"\\u8C03\\u6574\\u5927\\u5C0F\");\n\t\ttoolItem_1.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u8C03\\u6574\\u5927\\u5C0F.jpg\"));\n\t\t\n\t\tToolBar toolBar_2 = new ToolBar(sashForm_3, SWT.BORDER | SWT.FLAT | SWT.RIGHT);\n\t\ttoolBar_2.setBackground(SWTResourceManager.getColor(SWT.COLOR_GRAY));\n\t\tformToolkit.adapt(toolBar_2);\n\t\tformToolkit.paintBordersFor(toolBar_2);\n\t\t\n\t\tToolItem toolItem_2 = new ToolItem(toolBar_2, SWT.NONE);\n\t\t\n\t\t//工具栏:裁剪\n\t\ttoolItem_2.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\t//\n\t\t\n\t\ttoolItem_2.setText(\"\\u88C1\\u526A\");\n\t\ttoolItem_2.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u88C1\\u526A.jpg\"));\n\t\t\n\t\tToolItem toolItem_3 = new ToolItem(toolBar_2, SWT.NONE);\n\t\t\n\t\t//工具栏:剪切\n\t\ttoolItem_3.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\t//\n\t\t\n\t\ttoolItem_3.setText(\"\\u526A\\u5207\");\n\t\ttoolItem_3.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u526A\\u5207.jpg\"));\n\t\t\n\t\tToolItem toolItem_4 = new ToolItem(toolBar_2, SWT.NONE);\n\t\t\n\n\t\t//工具栏:粘贴\n\t\ttoolItem_4.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\n\t\t\t\tcomposite_3.layout();\n\t\t\t\tFile f=new File(\"src/picture/beauty.jpg\");\n\t\t\t\tImageData imageData;\n\t\t\t\ttry {\n\t\t\t\t\timageData = new ImageData( new FileInputStream( f));\n\t\t\t\t\tImage image=new Image(shlFaststone.getDisplay(),imageData);\n\t\t\t\t\tButton lblNewLabel_3 = null;\n\t\t\t\t\tlblNewLabel_3.setImage(image);\n\t\t\t\t} catch (FileNotFoundException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\tcomposite_3.layout();\n\t\t\t}\n\t\t});\n\t\t//omposite;\n\t\t//\n\t\t\n\t\ttoolItem_4.setText(\"\\u590D\\u5236\");\n\t\ttoolItem_4.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u590D\\u5236.jpg\"));\n\t\t\n\t\tToolItem tltmNewItem_3 = new ToolItem(toolBar_2, SWT.NONE);\n\t\ttltmNewItem_3.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F16\\u8F91\\u5B50\\u56FE\\u6807/\\u7C98\\u8D34.jpg\"));\n\t\ttltmNewItem_3.setText(\"\\u7C98\\u8D34\");\n\t\tsashForm_3.setWeights(new int[] {486, 165, 267});\n\t\t\n\t\tComposite composite_1 = new Composite(sashForm, SWT.NONE);\n\t\tformToolkit.adapt(composite_1);\n\t\tformToolkit.paintBordersFor(composite_1);\n\t\tcomposite_1.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\t\n\t\tSashForm sashForm_1 = new SashForm(composite_1, SWT.VERTICAL);\n\t\tformToolkit.adapt(sashForm_1);\n\t\tformToolkit.paintBordersFor(sashForm_1);\n\t\t\n\t\tComposite composite_2 = new Composite(sashForm_1, SWT.NONE);\n\t\tformToolkit.adapt(composite_2);\n\t\tformToolkit.paintBordersFor(composite_2);\n\t\tcomposite_2.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\t\n\t\tTabFolder tabFolder = new TabFolder(composite_2, SWT.NONE);\n\t\ttabFolder.setTouchEnabled(true);\n\t\tformToolkit.adapt(tabFolder);\n\t\tformToolkit.paintBordersFor(tabFolder);\n\t\t\n\t\tTabItem tbtmNewItem = new TabItem(tabFolder, SWT.NONE);\n\t\ttbtmNewItem.setText(\"\\u65B0\\u5EFA\\u4E00\");\n\t\t\n\t\tTabItem tbtmNewItem_1 = new TabItem(tabFolder, SWT.NONE);\n\t\ttbtmNewItem_1.setText(\"\\u65B0\\u5EFA\\u4E8C\");\n\t\t\n\t\tTabItem tbtmNewItem_2 = new TabItem(tabFolder, SWT.NONE);\n\t\ttbtmNewItem_2.setText(\"\\u65B0\\u5EFA\\u4E09\");\n\t\t\n\t\tButton button = new Button(tabFolder, SWT.CHECK);\n\t\tbutton.setText(\"Check Button\");\n\t\t\n\t\tcomposite_3 = new Composite(sashForm_1, SWT.H_SCROLL | SWT.V_SCROLL);\n\t\t\n\t\tformToolkit.adapt(composite_3);\n\t\tformToolkit.paintBordersFor(composite_3);\n\t\tcomposite_3.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\t\n\t\tLabel lblNewLabel_3 = new Label(composite_3, SWT.NONE);\n\t\tformToolkit.adapt(lblNewLabel_3, true, true);\n\t\tlblNewLabel_3.setText(\"\");\n\t\tsashForm_1.setWeights(new int[] {19, 323});\n\t\t\n\t\tComposite composite_5 = new Composite(sashForm, SWT.NONE);\n\t\tcomposite_5.setToolTipText(\"\");\n\t\tcomposite_5.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\t\n\t\tSashForm sashForm_2 = new SashForm(composite_5, SWT.NONE);\n\t\tformToolkit.adapt(sashForm_2);\n\t\tformToolkit.paintBordersFor(sashForm_2);\n\t\t\n\t\tLabel lblNewLabel = new Label(sashForm_2, SWT.BORDER | SWT.CENTER);\n\t\tformToolkit.adapt(lblNewLabel, true, true);\n\t\tlblNewLabel.setText(\"1/1\");\n\t\t\n\t\tLabel lblNewLabel_2 = new Label(sashForm_2, SWT.BORDER | SWT.CENTER);\n\t\tformToolkit.adapt(lblNewLabel_2, true, true);\n\t\tlblNewLabel_2.setText(\"\\u5927\\u5C0F\\uFF1A1366*728\");\n\t\t\n\t\tLabel lblNewLabel_1 = new Label(sashForm_2, SWT.CENTER);\n\t\tformToolkit.adapt(lblNewLabel_1, true, true);\n\t\tlblNewLabel_1.setText(\"\\u7F29\\u653E\\uFF1A100%\");\n\t\t\n\t\tLabel label = new Label(sashForm_2, SWT.NONE);\n\t\tlabel.setAlignment(SWT.RIGHT);\n\t\tformToolkit.adapt(label, true, true);\n\t\tlabel.setText(\"\\u5494\\u5693\\u5DE5\\u4F5C\\u5BA4\\u7248\\u6743\\u6240\\u6709\");\n\t\tsashForm_2.setWeights(new int[] {127, 141, 161, 490});\n\t\tsashForm.setWeights(new int[] {50, 346, 22});\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tMenuItem mntmNewItem = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmNewItem.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6587\\u4EF6\\u5B50\\u56FE\\u6807/\\u6587\\u4EF6.\\u65B0\\u5EFA.jpg\"));\n\t\tmntmNewItem.setText(\"\\u65B0\\u5EFA\");\n\t\t\n\t\tmntmNewItem_2 = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmNewItem_2.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\n\t\t\t\t//Label lblNewLabel_3 = new Label(composite_1, SWT.NONE);\n\t\t\t\t//Canvas c=new Canvas(shlFaststone,SWT.BALLOON);\n\t\t\t\t\n\t\t\t\tFileDialog dialog = new FileDialog(shlFaststone,SWT.OPEN); \n\t\t\t\tdialog.setFilterPath(System.getProperty(\"user_home\"));//设置初始路径\n\t\t\t\tdialog.setFilterNames(new String[] {\"文本文档(*txt)\",\"所有文档\"}); \n\t\t\t\tdialog.setFilterExtensions(new String[]{\"*.exe\",\"*.xls\",\"*.*\"});\n\t\t\t\tString path=dialog.open();\n\t\t\t\tString s=null;\n\t\t\t\tFile f=null;\n\t\t\t\tif(path==null||\"\".equals(path)) {\n\t\t\t\t\treturn ;\n\t\t\t\t}\n\t\t\t\ttry{\n\t\t\t f=new File(path);\n\t\t\t\tbyte[] bs=Fileutil.readFile(f);\n\t\t\t s=new String(bs,\"UTF-8\");\n\t\t\t\t}catch (Exception e1) {\n\t\t\t\t\t// TODO: handle exception\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\tMessageDialog.openError(shlFaststone, \"出错了\", \"打开\"+path+\"出错了\");\n\t\t\t\t\treturn ;\n\t\t\t\t}\n\t\t\t \n\t\t\t\ttext = new Text(composite_4, SWT.BORDER | SWT.WRAP\n\t\t\t\t\t\t| SWT.H_SCROLL | SWT.V_SCROLL | SWT.CANCEL\n\t\t\t\t\t\t| SWT.MULTI);\n\t\t\t\ttext.setText(s);\n\t\t\t\tcomposite_1.layout();\n\t\t\t\tshlFaststone.setText(shlFaststone.getText()+\"\\t\"+f.getName());\n\t\t\t\t\t\n\t\t\t\tFile f1=new File(path);\n\t\t\t\tImageData imageData;\n\t\t\t\ttry {\n\t\t\t\t\timageData = new ImageData( new FileInputStream( f1));\n\t\t\t\t\tImage image=new Image(shlFaststone.getDisplay(),imageData);\n\t\t\t\t\tlblNewLabel_3.setImage(image);\n\t\t\t\t} catch (FileNotFoundException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\n\t\t\t}\n\t\t});\n\t\tmntmNewItem_2.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6587\\u4EF6\\u5B50\\u56FE\\u6807/\\u6587\\u4EF6.\\u6253\\u5F00.jpg\"));\n\t\tmntmNewItem_2.setText(\"\\u6253\\u5F00\");\n\t\t\n\t\tMenuItem mntmNewItem_1 = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmNewItem_1.setText(\"\\u4ECE\\u526A\\u8D34\\u677F\\u5BFC\\u5165\");\n\t\t\n\t\tMenuItem mntmNewItem_3 = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmNewItem_3.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6587\\u4EF6\\u5B50\\u56FE\\u6807/\\u6587\\u4EF6.\\u53E6\\u5B58\\u4E3A.jpg\"));\n\t\tmntmNewItem_3.setText(\"\\u53E6\\u5B58\\u4E3A\");\n\t\t\n\t\t mntmNewItem_5 = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmNewItem_5.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t boolean result=MessageDialog.openConfirm(shlFaststone,\"退出\",\"是否确认退出\");\n\t\t\t\t if(result) {\n\t\t\t\t\t System.exit(0);\n\t\t\t\t }\n\n\t\t\t}\n\t\t});\n\t\tmntmNewItem_5.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6587\\u4EF6\\u5B50\\u56FE\\u6807/\\u6587\\u4EF6.\\u4FDD\\u5B58.jpg\"));\n\t\tmntmNewItem_5.setText(\"\\u5173\\u95ED\");\n\t\tevent2=new Event();\n\t\tevent2.widget=mntmNewItem_5;\n\n\t\t\n\t\tMenuItem mntmNewSubmenu = new MenuItem(menu, SWT.CASCADE);\n\t\tmntmNewSubmenu.setText(\"\\u6355\\u6349\");\n\t\t\n\t\tMenu menu_2 = new Menu(mntmNewSubmenu);\n\t\tmntmNewSubmenu.setMenu(menu_2);\n\t\t\n\t\tMenuItem mntmNewItem_6 = new MenuItem(menu_2, SWT.NONE);\n\t\tmntmNewItem_6.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6355\\u6349/\\u6355\\u6349\\u6D3B\\u52A8\\u7A97\\u53E3.jpg\"));\n\t\tmntmNewItem_6.setText(\"\\u6355\\u6349\\u6D3B\\u52A8\\u7A97\\u53E3\");\n\t\t\n\t\tMenuItem mntmNewItem_7 = new MenuItem(menu_2, SWT.NONE);\n\t\tmntmNewItem_7.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6355\\u6349/\\u6355\\u6349.\\u6355\\u6349\\u7A97\\u53E3\\u6216\\u5BF9\\u8C61.jpg\"));\n\t\tmntmNewItem_7.setText(\"\\u6355\\u6349\\u7A97\\u53E3\\u5BF9\\u8C61\");\n\t\t\n\t\tMenuItem mntmNewItem_8 = new MenuItem(menu_2, SWT.NONE);\n\t\tmntmNewItem_8.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6355\\u6349/\\u6355\\u6349.jpg\"));\n\t\tmntmNewItem_8.setText(\"\\u6355\\u6349\\u77E9\\u5F62\\u533A\\u57DF\");\n\t\t\n\t\tMenuItem mntmNewItem_9 = new MenuItem(menu_2, SWT.NONE);\n\t\tmntmNewItem_9.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6355\\u6349/\\u6355\\u6349.\\u624B\\u7ED8\\u533A\\u57DF.jpg\"));\n\t\tmntmNewItem_9.setText(\"\\u6355\\u6349\\u624B\\u7ED8\\u533A\\u57DF\");\n\t\t\n\t\tMenuItem mntmNewItem_10 = new MenuItem(menu_2, SWT.NONE);\n\t\tmntmNewItem_10.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6355\\u6349/\\u6355\\u6349.\\u6574\\u4E2A\\u5C4F\\u5E55.jpg\"));\n\t\tmntmNewItem_10.setText(\"\\u6355\\u6349\\u6574\\u4E2A\\u5C4F\\u5E55\");\n\t\t\n\t\tMenuItem mntmNewItem_11 = new MenuItem(menu_2, SWT.NONE);\n\t\tmntmNewItem_11.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6355\\u6349/\\u6355\\u6349\\u6EDA\\u52A8\\u7A97\\u53E3.jpg\"));\n\t\tmntmNewItem_11.setText(\"\\u6355\\u6349\\u6EDA\\u52A8\\u7A97\\u53E3\");\n\t\t\n\t\tMenuItem mntmNewItem_12 = new MenuItem(menu_2, SWT.NONE);\n\t\tmntmNewItem_12.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6355\\u6349/\\u6355\\u6349.\\u56FA\\u5B9A\\u5927\\u5C0F\\u533A\\u57DF.jpg\"));\n\t\tmntmNewItem_12.setText(\"\\u6355\\u6349\\u56FA\\u5B9A\\u5927\\u5C0F\\u533A\\u57DF\");\n\t\t\n\t\tMenuItem menuItem_1 = new MenuItem(menu_2, SWT.NONE);\n\t\tmenuItem_1.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6355\\u6349/\\u6355\\u6349.\\u91CD\\u590D\\u4E0A\\u6B21\\u6355\\u6349.jpg\"));\n\t\tmenuItem_1.setText(\"\\u91CD\\u590D\\u4E0A\\u6B21\\u6355\\u6349\");\n\t\t\n\t\tMenuItem menuItem_2 = new MenuItem(menu, SWT.CASCADE);\n\t\tmenuItem_2.setText(\"\\u7F16\\u8F91\");\n\t\t\n\t\tMenu menu_3 = new Menu(menuItem_2);\n\t\tmenuItem_2.setMenu(menu_3);\n\t\t\n\t\tMenuItem mntmNewItem_14 = new MenuItem(menu_3, SWT.NONE);\n\t\tmntmNewItem_14.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F16\\u8F91\\u5B50\\u56FE\\u6807/\\u5DE6\\u64A4\\u9500.jpg\"));\n\t\tmntmNewItem_14.setText(\"\\u64A4\\u9500\");\n\t\t\n\t\tMenuItem mntmNewItem_13 = new MenuItem(menu_3, SWT.NONE);\n\t\tmntmNewItem_13.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F16\\u8F91\\u5B50\\u56FE\\u6807/\\u53F3\\u64A4\\u9500.jpg\"));\n\t\tmntmNewItem_13.setText(\"\\u91CD\\u505A\");\n\t\t\n\t\tMenuItem mntmNewItem_15 = new MenuItem(menu_3, SWT.NONE);\n\t\tmntmNewItem_15.setText(\"\\u9009\\u62E9\\u5168\\u90E8\");\n\t\t\n\t\tMenuItem mntmNewItem_16 = new MenuItem(menu_3, SWT.NONE);\n\t\tmntmNewItem_16.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F16\\u8F91\\u5B50\\u56FE\\u6807/\\u7F16\\u8F91.\\u88C1\\u526A.jpg\"));\n\t\tmntmNewItem_16.setText(\"\\u88C1\\u526A\");\n\t\t\n\t\tMenuItem mntmNewItem_17 = new MenuItem(menu_3, SWT.NONE);\n\t\tmntmNewItem_17.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F16\\u8F91\\u5B50\\u56FE\\u6807/\\u526A\\u5207.jpg\"));\n\t\tmntmNewItem_17.setText(\"\\u526A\\u5207\");\n\t\t\n\t\tMenuItem mntmNewItem_18 = new MenuItem(menu_3, SWT.NONE);\n\t\tmntmNewItem_18.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F16\\u8F91\\u5B50\\u56FE\\u6807/\\u590D\\u5236.jpg\"));\n\t\tmntmNewItem_18.setText(\"\\u590D\\u5236\");\n\t\t\n\t\tMenuItem menuItem_4 = new MenuItem(menu_3, SWT.NONE);\n\t\tmenuItem_4.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F16\\u8F91\\u5B50\\u56FE\\u6807/\\u7C98\\u8D34.jpg\"));\n\t\tmenuItem_4.setText(\"\\u7C98\\u8D34\");\n\t\t\n\t\tMenuItem mntmNewItem_19 = new MenuItem(menu_3, SWT.NONE);\n\t\tmntmNewItem_19.setText(\"\\u5220\\u9664\");\n\t\t\n\t\tMenuItem menuItem_3 = new MenuItem(menu, SWT.CASCADE);\n\t\tmenuItem_3.setText(\"\\u7279\\u6548\");\n\t\t\n\t\tMenu menu_4 = new Menu(menuItem_3);\n\t\tmenuItem_3.setMenu(menu_4);\n\t\t\n\t\tMenuItem mntmNewItem_20 = new MenuItem(menu_4, SWT.NONE);\n\t\tmntmNewItem_20.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7279\\u6548.\\u6C34\\u5370.jpg\"));\n\t\tmntmNewItem_20.setText(\"\\u6C34\\u5370\");\n\t\t\n\t\tPanelPic ppn = new PanelPic();\n\t\tMenuItem mntmNewItem_21 = new MenuItem(menu_4, SWT.NONE);\n\t\tmntmNewItem_21.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tflag[0]=true;\n\t\t\t\tflag[1]=false;\n\n\t\t\t}\n\n\t\t});\n\t\t\n\t\tdown.addMouseListener(new MouseAdapter(){\n\t\t\tpublic void mouseDown(MouseEvent e)\n\t\t\t{\n\t\t\t\tmouseDown=true;\n\t\t\t\tpt=new Point(e.x,e.y);\n\t\t\t\tif(flag[1])\n\t\t\t\t{\n\t\t\t\t\trect=new Composite(down,SWT.BORDER);\n\t\t\t\t\trect.setLocation(e.x, e.y);\n\t\t\t\t\tn++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tpublic void mouseUp(MouseEvent e)\n\t\t\t{\n\t\t\t\tmouseDown=false;\n\t\t\t\tif(flag[1]&&dirty)\n\t\t\t\t{\n\t\t\t\t\trexx[n-1]=rect.getBounds();\n\t\t\t\t\trect.dispose();\n\t\t\t\t\tdown.redraw();\n\t\t\t\t\tdirty=false;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tdown.addMouseMoveListener(new MouseMoveListener(){\n\t\t\t@Override\n\t\t\tpublic void mouseMove(MouseEvent e) {\n if(mouseDown)\n {\n \t dirty=true;\n\t\t\t\tif(flag[0])\n\t\t\t {\n \t GC gc=new GC(down);\n gc.drawLine(pt.x, pt.y, e.x, e.y);\n list.add(new int[]{pt.x,pt.y,e.x,e.y});\n pt.x=e.x;pt.y=e.y;\n\t\t\t }\n else if(flag[1])\n {\n \t if(rect!=null)\n \t rect.setSize(rect.getSize().x+e.x-pt.x, rect.getSize().y+e.y-pt.y);\n// \t down.redraw();\n \t pt.x=e.x;pt.y=e.y;\n }\n }\n\t\t\t}\n\t\t\t\n\t\t});\n\t\tdown.addPaintListener(new PaintListener(){\n\t\t\t@Override\n\t\t\tpublic void paintControl(PaintEvent e) {\n\t\t\t\tfor(int i=0;i<list.size();i++)\n\t\t\t\t{\n\t\t\t\t\tint a[]=list.get(i);\n\t\t\t\t\te.gc.drawLine(a[0], a[1], a[2], a[3]);\n\t\t\t\t}\n\t\t\t\tfor(int i=0;i<n;i++)\n\t\t\t\t{\n\t\t\t\t\tif(rexx[i]!=null)\n\t\t\t\t\t\te.gc.drawRectangle(rexx[i]);\n\t\t\t\t}\n\t\t\t}});\n\n\t\t\n\t\tmntmNewItem_21.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7279\\u6548.\\u6587\\u5B57.jpg\"));\n\t\tmntmNewItem_21.setText(\"\\u753B\\u7B14\");\n\t\t\n\t\tMenuItem mntmNewSubmenu_1 = new MenuItem(menu, SWT.CASCADE);\n\t\tmntmNewSubmenu_1.setText(\"\\u67E5\\u770B\");\n\t\t\n\t\tMenu menu_5 = new Menu(mntmNewSubmenu_1);\n\t\tmntmNewSubmenu_1.setMenu(menu_5);\n\t\t\n\t\tMenuItem mntmNewItem_24 = new MenuItem(menu_5, SWT.NONE);\n\t\tmntmNewItem_24.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u67E5\\u770B.\\u653E\\u5927.jpg\"));\n\t\tmntmNewItem_24.setText(\"\\u653E\\u5927\");\n\t\t\n\t\tMenuItem mntmNewItem_25 = new MenuItem(menu_5, SWT.NONE);\n\t\tmntmNewItem_25.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u67E5\\u770B.\\u7F29\\u5C0F.jpg\"));\n\t\tmntmNewItem_25.setText(\"\\u7F29\\u5C0F\");\n\t\t\n\t\tMenuItem mntmNewItem_26 = new MenuItem(menu_5, SWT.NONE);\n\t\tmntmNewItem_26.setText(\"\\u5B9E\\u9645\\u5C3A\\u5BF8\\uFF08100%\\uFF09\");\n\t\t\n\t\tMenuItem mntmNewItem_27 = new MenuItem(menu_5, SWT.NONE);\n\t\tmntmNewItem_27.setText(\"\\u9002\\u5408\\u7A97\\u53E3\");\n\t\t\n\t\tMenuItem mntmNewItem_28 = new MenuItem(menu_5, SWT.NONE);\n\t\tmntmNewItem_28.setText(\"100%\");\n\t\t\n\t\tMenuItem mntmNewItem_29 = new MenuItem(menu_5, SWT.NONE);\n\t\tmntmNewItem_29.setText(\"200%\");\n\t\t\n\t\tMenuItem mntmNewSubmenu_2 = new MenuItem(menu, SWT.CASCADE);\n\t\tmntmNewSubmenu_2.setText(\"\\u8BBE\\u7F6E\");\n\t\t\n\t\tMenu menu_6 = new Menu(mntmNewSubmenu_2);\n\t\tmntmNewSubmenu_2.setMenu(menu_6);\n\t\t\n\t\tMenuItem menuItem_5 = new MenuItem(menu, SWT.CASCADE);\n\t\tmenuItem_5.setText(\"\\u5E2E\\u52A9\");\n\t\t\n\t\tMenu menu_7 = new Menu(menuItem_5);\n\t\tmenuItem_5.setMenu(menu_7);\n\t\t\n\t\tMenuItem menuItem_6 = new MenuItem(menu_7, SWT.NONE);\n\t\tmenuItem_6.setText(\"\\u7248\\u672C\");\n\t\t\n\t\tMenuItem mntmNewItem_23 = new MenuItem(menu, SWT.NONE);\n\t\tmntmNewItem_23.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F16\\u8F91\\u5B50\\u56FE\\u6807/\\u5DE6\\u64A4\\u9500.jpg\"));\n\t\t\n\t\tMenuItem mntmNewItem_30 = new MenuItem(menu, SWT.NONE);\n\t\tmntmNewItem_30.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F16\\u8F91\\u5B50\\u56FE\\u6807/\\u53F3\\u64A4\\u9500.jpg\"));\n\n\t}", "protected void createContents() {\n\t\tMonitor primary = this.getDisplay().getPrimaryMonitor();\n\t\tRectangle bounds = primary.getBounds();\n\t\tRectangle rect = getBounds();\n\t\tint x = bounds.x + (bounds.width - rect.width) / 2;\n\t\tint y = bounds.y + (bounds.height - rect.height) / 2;\n\t\tsetLocation(x, y);\n\t}", "protected void createContents() {\n\t\tDelAllShell = new Shell(SWT.CLOSE | SWT.MIN);\n\t\tfinal int WIDTH=java.awt.Toolkit.getDefaultToolkit().getScreenSize().width;\n\t\tfinal int HEIGHT=java.awt.Toolkit.getDefaultToolkit().getScreenSize().height;\n\t\t\n\t\tDelAllShell.setBounds((WIDTH-441)/2,(HEIGHT-300)/2,441, 177);\n\t\tDelAllShell.setText(\"清空\");\n\t\t\n\t\tLabel messgLabel_1 = new Label(DelAllShell, SWT.CENTER);\n\t\tmessgLabel_1.setFont(SWTResourceManager.getFont(\"微软雅黑\", 13, SWT.NORMAL));\n\t\tmessgLabel_1.setBounds(10, 10, 405, 23);\n\t\tmessgLabel_1.setText(\"您所选择的分组为通讯录列表,确认删除时\");\n\t\t\n\t\tLabel messgLabel_2 = new Label(DelAllShell, SWT.CENTER);\n\t\tmessgLabel_2.setFont(SWTResourceManager.getFont(\"微软雅黑\", 13, SWT.NORMAL));\n\t\tmessgLabel_2.setBounds(62, 39, 272, 23);\n\t\tmessgLabel_2.setText(\"清空所有内容!\");\n\t\t\n\t\tButton yesButton = new Button(DelAllShell, SWT.NONE);\n\t\tyesButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry{\n\t\t\t\t\tTreeItem[] treeItem=mainTreeItem.getItems();\n\t\t\t\t\tfor(int i=0;i<treeItem.length;i++)\n\t\t\t\t\t{\n\t\t\t\t\t\ttreeItem[i].dispose();\n\t\t\t\t\t}\n\t\t\t\tGroups.getGroupList().clear();\n\t\t\t\tUsers.getUserList().clear();\n\t\t\t\tGroups.updateToFile();\n\t\t\t\tUsers.updateToFile();\n\t\t\t\t}catch(Exception ex){\n\t\t\t\t\tSystem.out.println(\"清空文件失败\");\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\tDelAllShell.close();\n\t\t\t\t//final Group mainTreeItem = new Group(tree, SWT.NONE);\n\t\t\t\t//mainTreeItem.setText(\"通讯录列表\");\n\t\t\t\t//mainShell.setVisible(true);\n\t\t\t}\n\t\t});\n\t\tyesButton.setBounds(86, 102, 80, 27);\n\t\tyesButton.setText(\"确定\");\n\t\t\n\t\tButton noButton = new Button(DelAllShell, SWT.NONE);\n\t\tnoButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e)\n\t\t\t{\n\t\t\t\tDelAllShell.close();\n\t\t\t}\n\t\t});\n\t\tnoButton.setText(\"取消\");\n\t\tnoButton.setBounds(254, 102, 80, 27);\n\n\t}", "void makeDialog()\n\t{\n\t\tfDialog = new ViewOptionsDialog(this.getTopLevelAncestor());\n\t}", "private void createContents() {\n\t\tshell = new Shell(getParent(), getStyle());\n\t\tshell.setSize(250, 150);\n\t\tshell.setText(getText());\n\t\tshell.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tComposite composite = new Composite(shell, SWT.NONE);\n\t\tcomposite.setLayoutData(BorderLayout.SOUTH);\n\t\tcomposite.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));\n\t\t\n\t\tComposite composite_1 = new Composite(shell, SWT.NONE);\n\t\tcomposite_1.setLayoutData(BorderLayout.CENTER);\n\t\tcomposite_1.setLayout(new GridLayout(4, false));\n\t\tnew Label(composite_1, SWT.NONE);\n\t\t\n\t\tLabel lblHour = new Label(composite_1, SWT.NONE);\n\t\tlblHour.setSize(0, 0);\n\t\tlblHour.setText(\"Hour\");\n\t\t\n\t\tLabel lblMin = new Label(composite_1, SWT.NONE);\n\t\tlblMin.setSize(0, 0);\n\t\tlblMin.setText(\"Min\");\n\t\t\n\t\tButton btnAm = new Button(composite_1, SWT.RADIO);\n\t\tbtnAm.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tampm=0;\n\t\t\t}\n\t\t});\n\t\tbtnAm.setSize(0, 0);\n\t\tbtnAm.setText(\"AM\");\n\t\t\n\t\tLabel lblStartTime = new Label(composite_1, SWT.NONE);\n\t\tlblStartTime.setSize(0, 0);\n\t\tlblStartTime.setText(\"Start Time:\");\n\t\t\n\t\tfinal Spinner hourSpinner = new Spinner(composite_1, SWT.BORDER);\n\t\thourSpinner.setSize(0, 0);\n\t\thourSpinner.setMaximum(12);\n\t\thourSpinner.setMinimum(1);\n\t\t\n\t\tfinal Spinner minSpinner = new Spinner(composite_1, SWT.BORDER);\n\t\tminSpinner.setSize(0, 0);\n\t\tminSpinner.setMaximum(59);\n\t\tminSpinner.setMinimum(0);\n\t\t\n\t\t\n\t\tButton btnPm = new Button(composite_1, SWT.RADIO);\n\t\tbtnPm.setSize(0, 0);\n\t\tbtnPm.setText(\"PM\");\n\t\t\n\t\tButton btnCancel = new Button(composite, SWT.NONE);\n\t\tbtnCancel.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t}\n\t\t});\n\t\tbtnCancel.setText(\"Cancel\");\n\t\t\n\t\tButton btnOk = new Button(composite, SWT.NONE);\n\t\tbtnOk.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\thour = Integer.valueOf(hourSpinner.getText());\n\t\t\t\tminute = Integer.valueOf(minSpinner.getText());\n\t\t\t\tparent.setHour(hour);\n\t\t\t\tSystem.out.println(\"print hour-->\"+hour+\". print parent.hour-->\"+parent.hour);\n\t\t\t\tSystem.out.println(parent.hour);\n\t\t\t\tparent.setMinute(minute);\n\t\t\t\tparent.setAmpm(ampm);\n\t\t\t\tshell.close();\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tbtnOk.setText(\"OK\");\n\t\t\n\t\t\n\n\t}", "protected void createContents() {\n shell = new Shell();\n shell.setSize(1024, 650);\n shell.setText(\"GMToolsTD\");\n shell.setLayout(new GridLayout());\n\n\n /* Création du menu principal */\n Menu menuPrincipal = new Menu(shell, SWT.BAR);\n shell.setMenuBar(menuPrincipal);\n\n MenuItem mntmModule = new MenuItem(menuPrincipal, SWT.CASCADE);\n mntmModule.setText(\"Module\");\n\n Menu menuModule = new Menu(mntmModule);\n mntmModule.setMenu(menuModule);\n\n mntmSpoolUsage = new MenuItem(menuModule, SWT.NONE);\n mntmSpoolUsage.setText(\"Spool Usage\");\n\n mntmUser = new MenuItem(menuModule, SWT.NONE);\n mntmUser.setText(\"User Information\");\n\n new MenuItem(menuModule, SWT.SEPARATOR);\n\n mntmConfig = new MenuItem(menuModule, SWT.NONE);\n mntmConfig.setText(\"Configuration\");\n\n new MenuItem(menuModule, SWT.SEPARATOR);\n\n mntmExit = new MenuItem(menuModule, SWT.NONE);\n mntmExit.setText(\"Exit\");\n\n MenuItem mntmHelp = new MenuItem(menuPrincipal, SWT.CASCADE);\n mntmHelp.setText(\"Help\");\n\n Menu menuAbout = new Menu(mntmHelp);\n mntmHelp.setMenu(menuAbout);\n\n mntmAbout = new MenuItem(menuAbout, SWT.NONE);\n mntmAbout.setText(\"About\");\n\n\n /* Creation main screen elements */\n pageComposite = new Composite(shell, SWT.NONE);\n pageComposite.setLayout(new GridLayout(2,false));\n gridData = new GridData();\n gridData.horizontalAlignment = SWT.FILL;\n gridData.grabExcessHorizontalSpace = true;\n gridData.verticalAlignment = SWT.FILL;\n gridData.grabExcessVerticalSpace = true;\n pageComposite.setLayoutData(gridData);\n\n\n grpConnexion = new Group(pageComposite, SWT.NONE );\n grpConnexion.setText(\"Connection\");\n grpConnexion.setLayout(new GridLayout(2,false));\n gridData = new GridData();\n gridData.heightHint = 110;\n grpConnexion.setLayoutData(gridData);\n\n\n Label lblServer = new Label(grpConnexion, SWT.NONE);\n lblServer.setText(\"Server :\");\n\n textServer = new Text(grpConnexion, SWT.NONE);\n textServer.setLayoutData(new GridData(110,20));\n\n Label lblUsername = new Label(grpConnexion, SWT.NONE);\n lblUsername.setSize(65, 20);\n lblUsername.setText(\"Username :\");\n\n textUsername = new Text(grpConnexion,SWT.NONE);\n textUsername.setLayoutData(new GridData(110,20));\n\n Label lblPassword = new Label(grpConnexion, SWT.NONE);\n lblPassword.setSize(65, 20);\n lblPassword.setText(\"Password :\");\n\n textPassword = new Text(grpConnexion, SWT.PASSWORD);\n textPassword.setLayoutData(new GridData(110,20));\n\n btnConnect = new Button(grpConnexion, SWT.NONE);\n btnConnect.setLayoutData(new GridData(SWT.RIGHT,SWT.CENTER, false, false));\n btnConnect.setText(\"Connect\");\n\n btnDisconnect = new Button(grpConnexion, SWT.NONE);\n btnDisconnect.setEnabled(false);\n btnDisconnect.setText(\"Disconnect\");\n\n\n\n groupInfo = new Group(pageComposite, SWT.NONE);\n groupInfo.setText(\"Information\");\n groupInfo.setLayout(new GridLayout(1, false));\n gridData = new GridData();\n gridData.horizontalAlignment = SWT.FILL;\n gridData.grabExcessHorizontalSpace = true;\n gridData.heightHint = 110;\n groupInfo.setLayoutData(gridData);\n\n textInformation = new Text(groupInfo, SWT.READ_ONLY | SWT.H_SCROLL | SWT.V_SCROLL | SWT.MULTI);\n gridData = new GridData();\n gridData.horizontalAlignment = SWT.FILL;\n gridData.grabExcessHorizontalSpace = true;\n gridData.verticalAlignment = SWT.FILL;\n gridData.grabExcessVerticalSpace = true;\n textInformation.setLayoutData(gridData);\n\n\n // renseignement des informations provenant de config\n textServer.setText(conf.getValueConf(conf.SERVER_TD));\n textUsername.setText(conf.getValueConf(conf.USERNAME_TD));\n textPassword.setText(\"\");\n\n\n mntmSpoolUsage.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent e) {\n majAffichage(AFFICHE_SPOOL);\n }\n });\n\n\n mntmUser.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent selectionEvent) {\n majAffichage(AFFICHE_USER);\n }\n });\n\n mntmConfig.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent selectionEvent) {\n majAffichage(AFFICHE_CONFIG);\n }\n });\n\n mntmAbout.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent selectionEvent) {\n MessageBox messageBox = new MessageBox(shell, SWT.ICON_INFORMATION);\n messageBox.setText(\"About...\");\n messageBox.setMessage(\"Not implemented yet ...\");\n messageBox.open();\n }\n });\n\n mntmExit.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent selectionEvent) {\n // afficher un message box avec du blabla\n shell.close();\n\n }\n });\n\n btnConnect.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent e) {\n // connexion Teradata\n btnConnect.setEnabled(false);\n entryServer = textServer.getText();\n entryUsername = textUsername.getText();\n entryPassword = textPassword.getText();\n\n new Thread(new Runnable() {\n public void run() {\n try {\n\n tdConnect = new TDConnexion(entryServer, entryUsername, entryPassword, conf);\n majInformation(MESSAGE_INFORMATION,nomModuleConnexion,\"Connexion OK\");\n connexionStatut = true;\n } catch ( SQLException err) {\n majInformation(MESSAGE_ERROR,nomModuleConnexion,\"Connexion KO : \"+err.getMessage());\n connexionStatut = false;\n } catch (ClassNotFoundException err) {\n majInformation(MESSAGE_ERROR,nomModuleConnexion,\"Error ClassNotFoundException : \"+err.getMessage());\n connexionStatut = false;\n }\n if (connexionStatut) {\n try {\n nbrAMP = tdConnect.requestNumberAMP();\n } catch (Exception err) {\n majInformation(MESSAGE_ERROR,nomModuleConnexion,\"Calculation of AMPs KO : \"+err.getMessage());\n connexionStatut = false;\n tdConnect.deconnexion();\n }\n }\n\n Display.getDefault().asyncExec(new Runnable() {\n public void run() {\n\n if (connexionStatut) {\n activationON();\n\n textServer.setEnabled(false);\n textUsername.setEnabled(false);\n textPassword.setEnabled(false);\n\n btnConnect.setEnabled(false);\n btnDisconnect.setEnabled(true);\n } else {\n btnConnect.setEnabled(true);\n }\n }\n });\n }\n }).start();\n\n\n\n\n }\n });\n\n\n btnDisconnect.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent e) {\n manageDisconnection();\n }\n });\n\n\n //creating secondary screen\n ecranUser = new EcranUser(this);\n ecranSpool = new EcranSpool(this);\n ecranConfig = new EcranConfig(this);\n\n\n // update of the information message (log)\n new Thread(new Runnable() {\n public void run() {\n try {\n while (true) {\n if (!listMessageInfo.isEmpty()) {\n Display.getDefault().asyncExec(new Runnable() {\n public void run() {\n refreshInformation();\n }\n });\n }\n try {\n Thread.sleep(500);\n } catch (Exception e) {\n //nothing to do\n }\n }\n } catch (Exception e) {\n //What to do when the while send an error ?\n }\n }\n }).start();\n\n }", "public Dialog<String> createDialog() {\n\t\t// Creating a dialog\n\t\tDialog<String> dialog = new Dialog<String>();\n\n\t\tButtonType type = new ButtonType(\"Ok\", ButtonData.OK_DONE);\n\t\tdialog.getDialogPane().getButtonTypes().add(type);\n\t\treturn dialog;\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(450, 300);\n\t\tshell.setText(\"SWT Application\");\n\t\t\n\t\tLabel lblUsername = new Label(shell, SWT.NONE);\n\t\tlblUsername.setBounds(73, 30, 55, 15);\n\t\tlblUsername.setText(\"Username\");\n\t\t\n\t\tLabel lblPassword = new Label(shell, SWT.NONE);\n\t\tlblPassword.setText(\"Password\");\n\t\tlblPassword.setBounds(73, 78, 55, 15);\n\t\t\n\t\ttxtUsername = new Text(shell, SWT.BORDER);\n\t\ttxtUsername.setText(\"lisa\");\n\t\ttxtUsername.setBounds(139, 24, 209, 21);\n\t\t\n\t\ttxtPassword = new Text(shell, SWT.BORDER);\n\t\ttxtPassword.setText(\"password1\");\n\t\ttxtPassword.setBounds(139, 72, 209, 21);\n\t\t\n\t\tButton btnLogin = new Button(shell, SWT.NONE);\n\t\tbtnLogin.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\tbtnLogin.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseUp(MouseEvent e) {\n\t\t\t\tString usrname = txtUsername.getText();\n\t\t\t\tString usrpass = txtPassword.getText();\n\t\t\t\t\n\t\t\t\t// Call authenticate user credentials through authentication RMI server\n\t\t\t\tLoginInterface login;\n\t\t\t\ttry{\n\t\t\t\t\tlogin = (LoginInterface)Naming.lookup(\"rmi://localhost/login\");\n\t\t\t\t\t\n\t\t\t\t\tboolean authenticated = login.authenticate(usrname, usrpass);\n\t\t\t\t\tif(authenticated){\n\t\t\t\t\t\tSystem.out.println(\"User authenticated.\");\n\t\t\t\t\t\tclose();\n\n\t\t\t\t\t\tevaluator.EvaluatorClient.main(null);\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"Username or password was incorrect. Please try again.\");\n\t\t\t\t\t\tlblMsgOut.setText(\"Username or password was incorrect. Please try again.\");\n\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t}catch(Exception e2){\n\t\t\t\t\tSystem.out.println(\"LoginClient authentication exception: \" + e2);\n\t\t\t\t\tlblMsgOut.setText(\"LoginClient authentication exception: \" + e2);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnLogin.setBounds(272, 118, 75, 25);\n\t\tbtnLogin.setText(\"Login\");\n\t\t\n\t\tlblMsgOut = new Label(shell, SWT.BORDER | SWT.WRAP);\n\t\tlblMsgOut.setBounds(10, 174, 414, 77);\n\t\tlblMsgOut.setText(\"Output:\");\n\n\t}", "protected void createContents() throws UnknownHostException, IOException, InterruptedException {\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tshlUser = new Shell();\r\n\t\tshlUser.setSize(450, 464);\r\n\t\tshlUser.setText(\"QQ聊天室\\r\\n\");\r\n\t\t\r\n\t\ttext = new Text(shlUser, SWT.BORDER);\r\n\t\ttext.setEnabled(false);\r\n\t\ttext.setBounds(0, 52, 424, 187);\r\n\t\t\r\n\t\t\r\n\t\ttext_1 = new Text(shlUser, SWT.BORDER);\t\t\r\n\t\ttext_1.setBounds(23, 263, 274, 23);\r\n\t\t\r\n\t\tButton button = new Button(shlUser, SWT.CENTER);\r\n\t\tbutton.setText(\"发送\");\r\n\t\tbutton.setBounds(321, 257, 80, 27);\r\n\t\t\r\n\t\ttext_2 = new Text(shlUser, SWT.BORDER);\r\n\t\ttext_2.setText(\"abc\");\r\n\t\ttext_2.setBounds(61, 7, 91, 23);\r\n\t\t\r\n\t\tLabel lblNewLabel = new Label(shlUser, SWT.NONE);\r\n\t\tlblNewLabel.setBounds(0, 10, 51, 17);\r\n\t\tlblNewLabel.setText(\"昵称:\");\r\n\t\t\r\n\t\tButton btnNewButton = new Button(shlUser, SWT.NONE);\r\n\t\tbtnNewButton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tnew Thread() {\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\t// 连接服务器\r\n\t\t\t\t\t\t\t\tsocket = new Socket(\"127.0.0.1\", 8888);\r\n\t\t\t\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t\t\t\t// 如果连不上服务器,说明服务器未启动,则启动服务器\r\n\t\t\t\t\t\t\t\tserver = new ServerSocket(8888);\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"服务器启动完成,监听端口:8888\");\r\n\t\t\t\t\t\t\t\tsocket = server.accept();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t/**\r\n\t\t\t\t\t\t\t * 注意:所有在自定义线程中修改图形控件属性,\r\n\t\t\t\t\t\t\t * 都必须使用 shell.getDisplay().asyncExec() 方法\r\n\t\t\t\t\t\t\t */\r\n\t\t\t\t\t\t\tshlUser.getDisplay().asyncExec(new Runnable() {\r\n\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\tMessageBox mb = new MessageBox(shlUser,SWT.OK);\r\n\t\t\t\t\t\t\t\t\tmb.setText(\"系统提示\");\r\n\t\t\t\t\t\t\t\t\tmb.setMessage(\"连接成功!现在你可以开始聊天了!\");\r\n\t\t\t\t\t\t\t\t\tmb.open();\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\t\ttalker = new Talker(socket, new MsgListener() {\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\tpublic void onMessage(String msg) {\r\n\t\t\t\t\t\t\t\t\t// 收到消息时,将消息更新到多行文本框\r\n\t\t\t\t\t\t\t\t\tshlUser.getDisplay().asyncExec(new Runnable() {\r\n\t\t\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\t\t\ttext.setText(text.getText() + msg + \"\\r\\n\");\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\tpublic void onConnect(InetAddress addr) {\r\n\t\t\t\t\t\t\t\t\t// 连接成功时,显示对方IP\r\n\t\t\t\t\t\t\t\t\tshlUser.getDisplay().asyncExec(new Runnable() {\r\n\t\t\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\t\t\tlblNewLabel.setText(\"好友IP:\" + addr.getHostAddress());\r\n\t\t\t\t\t\t\t\t\t\t\ttext.setEnabled(true);\r\n\t\t\t\t\t\t\t\t\t\t\tbutton.setEnabled(true);\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t\t\tthrow new RuntimeException(e);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}.start();\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\ttMsg = new Text(shlUser, SWT.BORDER);\r\n\t\ttMsg.setEnabled(false);\r\n\t\ttMsg.setBounds(10, 364, 414, 26);\r\n\r\n\t\t\r\n\t\tbtnNewButton.setBounds(324, 7, 80, 27);\r\n\t\tbtnNewButton.setText(\"连接服务器\");\r\n\t\tbutton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t\ttry {\r\n\t\t\t\t\tif (tMsg.getText().trim().isEmpty() == false) {\r\n\t\t\t\t\t\tString msg = talker.send(text_2.getText(), tMsg.getText());\r\n\t\t\t\t\t\ttext.setText(text.getText() + msg + \"\\r\\n\");\r\n\t\t\t\t\t\ttMsg.setText(\"\");\r\n\t\t\t\t\t\t// 设置焦点\r\n\t\t\t\t\t\ttMsg.setFocus();\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\r\n\t\t});\r\n\t\t\r\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(new Point(500, 360));\n\t\tshell.setMinimumSize(new Point(500, 360));\n\t\tshell.setText(\"SWT Application\");\n\t\tshell.setLayout(new GridLayout(2, false));\n\t\t\n\t\tLabel label = new Label(shell, SWT.NONE);\n\t\tlabel.setText(\"欢迎 \"+user.getName()+\" 同学使用学生成绩管理系统\");\n\t\tnew Label(shell, SWT.NONE);\n\t\t\n\t\tComposite compositeStdData = new Composite(shell, SWT.NONE);\n\t\tcompositeStdData.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));\n\t\tGridLayout gl_compositeStdData = new GridLayout(2, false);\n\t\tgl_compositeStdData.verticalSpacing = 15;\n\t\tcompositeStdData.setLayout(gl_compositeStdData);\n\t\t\n\t\tLabel labelStdData = new Label(compositeStdData, SWT.NONE);\n\t\tlabelStdData.setAlignment(SWT.CENTER);\n\t\tlabelStdData.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, true, 2, 1));\n\t\tlabelStdData.setText(\"成绩数据\");\n\t\t\n\t\tLabel labelStdDataNum = new Label(compositeStdData, SWT.NONE);\n\t\tlabelStdDataNum.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tlabelStdDataNum.setText(\"学号:\");\n\t\t\n\t\ttextStdDataNum = new Text(compositeStdData, SWT.BORDER);\n\t\ttextStdDataNum.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\n\t\t\n\t\tLabel labelStdDataName = new Label(compositeStdData, SWT.NONE);\n\t\tlabelStdDataName.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tlabelStdDataName.setText(\"姓名:\");\n\t\t\n\t\ttextStdDataName = new Text(compositeStdData, SWT.BORDER);\n\t\ttextStdDataName.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\n\t\t\n\t\tLabel labelStdDataLine = new Label(compositeStdData, SWT.SEPARATOR | SWT.HORIZONTAL);\n\t\tlabelStdDataLine.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, true, 2, 1));\n\t\tlabelStdDataLine.setText(\"New Label\");\n\t\t\n\t\tLabel labelCourseName = new Label(compositeStdData, SWT.NONE);\n\t\tlabelCourseName.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tlabelCourseName.setText(\"课程名\");\n\t\t\n\t\tLabel labelScore = new Label(compositeStdData, SWT.NONE);\n\t\tlabelScore.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tlabelScore.setText(\"成绩\");\n\t\t\n\t\ttextCourseName = new Text(compositeStdData, SWT.BORDER);\n\t\ttextCourseName.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\t\n\t\ttextScore = new Text(compositeStdData, SWT.BORDER);\n\t\ttextScore.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\t\n\t\tLabel labelStdDataFill = new Label(compositeStdData, SWT.NONE);\n\t\tlabelStdDataFill.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, true, 1, 1));\n\t\tnew Label(compositeStdData, SWT.NONE);\n\t\t\n\t\tComposite compositeStdOp = new Composite(shell, SWT.NONE);\n\t\tcompositeStdOp.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, true, 1, 1));\n\t\tGridLayout gl_compositeStdOp = new GridLayout(1, false);\n\t\tgl_compositeStdOp.verticalSpacing = 15;\n\t\tcompositeStdOp.setLayout(gl_compositeStdOp);\n\t\t\n\t\tLabel labelStdOP = new Label(compositeStdOp, SWT.NONE);\n\t\tlabelStdOP.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, true, 1, 1));\n\t\tlabelStdOP.setAlignment(SWT.CENTER);\n\t\tlabelStdOP.setText(\"操作菜单\");\n\t\t\n\t\tButton buttonStdOPFirst = new Button(compositeStdOp, SWT.NONE);\n\t\tbuttonStdOPFirst.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tbuttonStdOPFirst.setText(\"第一门课程\");\n\t\t\n\t\tButton buttonStdOPNext = new Button(compositeStdOp, SWT.NONE);\n\t\tbuttonStdOPNext.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tbuttonStdOPNext.setText(\"下一门课程\");\n\t\t\n\t\tButton buttonStdOPPrev = new Button(compositeStdOp, SWT.NONE);\n\t\tbuttonStdOPPrev.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tbuttonStdOPPrev.setText(\"上一门课程\");\n\t\t\n\t\tButton buttonStdOPLast = new Button(compositeStdOp, SWT.NONE);\n\t\tbuttonStdOPLast.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tbuttonStdOPLast.setText(\"最后一门课程\");\n\t\t\n\t\tCombo comboStdOPSele = new Combo(compositeStdOp, SWT.NONE);\n\t\tcomboStdOPSele.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, true, false, 1, 1));\n\t\tcomboStdOPSele.setText(\"课程名?\");\n\t\t\n\t\tLabel labelStdOPFill = new Label(compositeStdOp, SWT.NONE);\n\t\tlabelStdOPFill.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));\n\n\t}", "protected Control createContents(Composite parent) {\n\t\tgetOverlayStore().load();\r\n\t\tgetOverlayStore().start();\r\n Composite composite = createContainer(parent);\r\n \r\n // The layout info for the preference page\r\n GridLayout gridLayout = new GridLayout();\r\n gridLayout.marginHeight = 0;\r\n gridLayout.marginWidth = 0;\r\n composite.setLayout(gridLayout);\r\n \r\n // A panel for the preference page\r\n Composite defPanel = new Composite(composite, SWT.NONE);\r\n GridLayout layout = new GridLayout();\r\n int numColumns = 2;\r\n layout.numColumns = numColumns;\r\n defPanel.setLayout(layout);\r\n GridData gridData =\r\n new GridData(GridData.FILL_BOTH | GridData.GRAB_HORIZONTAL | GridData.GRAB_VERTICAL);\r\n defPanel.setLayoutData(gridData);\r\n \r\n\r\n // Browser options\r\n\t\tGroup wrappingGroup= createGroup(numColumns, defPanel, \"Web Browser\");\r\n\t\tString labelText= \"Use tabbed browsing\";\r\n\t\tlabelText= \"Used tabbed browsing\";\r\n\t\taddCheckBox(wrappingGroup, labelText, CFMLPreferenceConstants.P_TABBED_BROWSER, 1);\r\n \r\n // File paths\r\n createFilePathGroup(defPanel);\r\n \r\n // Images tooltips\r\n\t\tGroup imageGroup= createGroup(numColumns, defPanel, \"Images\");\r\n\t\tlabelText= \"Show Image Tooltips (restart required)\";\r\n\t\taddCheckBox(imageGroup, labelText, CFMLPreferenceConstants.P_IMAGE_TOOLTIPS, 1);\r\n \t\t\r\n\t\t// default help url\r\n\t\tGroup helpGroup= createGroup(numColumns, defPanel, \"External Help Documentation\");\r\n\t\tlabelText= \"Default URL:\";\r\n\t\taddTextField(helpGroup, labelText, CFMLPreferenceConstants.P_DEFAULT_HELP_URL, 50, 0, null);\r\n\t\tlabelText= \"Use external broswer\";\r\n\t\taddCheckBox(helpGroup, labelText, CFMLPreferenceConstants.P_HELP_URL_USE_EXTERNAL_BROWSER, 1);\r\n \r\n // Template Sites\r\n \r\n // createTemplateSitesPathGroup(defPanel);\r\n\r\n\t\tinitializeFields();\r\n\t\tapplyDialogFont(defPanel);\r\n\r\n\t\treturn composite;\r\n }", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(447, 310);\n\t\tshell.setText(\"Verisure ASCII Node\");\n\t\tshell.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tTabFolder tabFolder = new TabFolder(shell, SWT.NONE);\n\t\t\n\t\tTabItem basicItem = new TabItem(tabFolder, SWT.NONE);\n\t\tbasicItem.setText(\"Basic\");\n\t\t\n\t\tComposite basicComposite = new Composite(tabFolder, SWT.NONE);\n\t\tbasicItem.setControl(basicComposite);\n\t\tbasicComposite.setLayout(null);\n\t\t\n\t\tButton btnDelMeasurments = new Button(basicComposite, SWT.NONE);\n\t\t\n\t\tbtnDelMeasurments.setToolTipText(\"Delete the measurements from the device.\");\n\t\tbtnDelMeasurments.setBounds(269, 192, 159, 33);\n\t\tbtnDelMeasurments.setText(\"Delete measurements\");\n\t\t\n\t\tButton btnGetMeasurement = new Button(basicComposite, SWT.NONE);\n\t\tbtnGetMeasurement.setToolTipText(\"Get the latest measurement from the device.\");\n\t\t\n\t\tbtnGetMeasurement.setBounds(0, 36, 159, 33);\n\t\tbtnGetMeasurement.setText(\"Get new bloodvalue\");\n\t\t\n\t\tfinal StyledText receiveArea = new StyledText(basicComposite, SWT.BORDER | SWT.WRAP);\n\t\treceiveArea.setLocation(167, 30);\n\t\treceiveArea.setSize(259, 92);\n\t\treceiveArea.setToolTipText(\"This is where the measurement will be displayd.\");\n\t\t\n\t\tButton btnBase64 = new Button(basicComposite, SWT.RADIO);\n\t\tbtnBase64.setToolTipText(\"Show the latest blood value (base64 encoded).\");\n\t\tbtnBase64.setFont(SWTResourceManager.getFont(\"Cantarell\", 9, SWT.NORMAL));\n\t\t\n\t\tbtnDelMeasurments.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent arg0){\n\t\t\t\treceiveArea.setText(\"Deleting measurements, please wait...\");\n\n\t\t\t}\n\t\t\tpublic void mouseUp(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t\tRest rest = new Rest();\n\t\t\t\tXBNConnection db = new XBNConnection();\n\t\t\t\tString theText = \"DEL\";\n\t\t\t\tdo {\n\t\t\t\t\t// System.out.println(\"Längded på theText i restCallImpl \"+theText.length()\n\t\t\t\t\t// +\" och det står \" +theText);\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\t//System.out.println(\"Hej\");\n\n\t\t\t\t\t\t//rest.doPut(\"lol\");\n\t\t\t\t\t\trest.doPut(theText);\n\t\t\t\t\t\tSystem.out.println(\"Sov i tre sekunder.\");\n\t\t\t\t\t\tThread.sleep(3000);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\twhile (!db.getAck(theText, rest));\n\t\t\t\treceiveArea.setText(\"Deleted measurements from device.\");\n\t\t\t}\n\t\t});\n\t\tbtnBase64.setSelection(true);\n\t\tbtnBase64.setBounds(137, 130, 74, 25);\n\t\tbtnBase64.setText(\"base64\");\n\t\t\n\t\tButton btnHex = new Button(basicComposite, SWT.RADIO);\n\t\tbtnHex.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\n\n\t\t\t\ttype = 2;\n\t\t\t\tSystem.out.println(\"Bytte type till: \"+type);\n\n\t\t\t}\n\t\t});\n\t\tbtnHex.setToolTipText(\"Show the measurement in hex.\");\n\t\tbtnHex.setFont(SWTResourceManager.getFont(\"Cantarell\", 9, SWT.NORMAL));\n\t\tbtnHex.setBounds(217, 130, 50, 25);\n\t\tbtnHex.setText(\"hex\");\n\t\t\n\t\tButton btnAscii = new Button(basicComposite, SWT.RADIO);\n\t\t\n\t\tbtnAscii.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\n\t\t\t\ttype = 1;\n\t\t\t\tSystem.out.println(\"Bytte type till: \"+type);\n\n\t\t\t}\n\t\t});\n\t\t\n\t\t/*\n\t\t * Return that the value should be represented as base64.\n\t\t * \n\t\t */\n\t\t\n\t\tbtnBase64.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\n\t\t\t\ttype = 0;\n\t\t\t}\n\t\t});\n\t\t\n\t\tbtnAscii.setToolTipText(\"Show the measurement in ascii.\");\n\t\tbtnAscii.setFont(SWTResourceManager.getFont(\"Cantarell\", 9, SWT.NORMAL));\n\t\tbtnAscii.setBounds(269, 130, 53, 25);\n\t\tbtnAscii.setText(\"ascii\");\n\t\t\n\t\tLabel label = new Label(basicComposite, SWT.NONE);\n\t\tlabel.setText(\"A master thesis project by Pétur and David\");\n\t\tlabel.setFont(SWTResourceManager.getFont(\"Cantarell\", 7, SWT.NORMAL));\n\t\tlabel.setBounds(10, 204, 192, 21);\n\t\t\n\t\tButton btnGetDbValue = new Button(basicComposite, SWT.NONE);\n\t\tbtnGetDbValue.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseUp(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t\tXBNConnection db = new XBNConnection();\n\t\t\t\treceiveArea.setText(db.getNodeFaults(type));\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\t\t\t\treceiveArea.setText(\"Getting latest measurements from db, please wait...\");\n\t\t\t}\n\t\t});\n\t\tbtnGetDbValue.setBounds(0, 71, 159, 33);\n\t\tbtnGetDbValue.setText(\"Get latest bloodvalue\");\n\t\t\n\t\t/*\n\t\t *Get measurement from device event handler \n\t\t *\n\t\t *@param The Mouse Adapter\n\t\t * \n\t\t */\n\t\t\n\t\t\n\t\tbtnGetMeasurement.addMouseListener(new MouseAdapter() {\n\t\t\t\n\t\t\tpublic void MouseDown(MouseEvent arg0){\n\t\t\t\treceiveArea.setText(\"Getting measurement from device, please wait...\");\n\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void mouseUp(MouseEvent arg0) {\n\t\t\t\tRest rest = new Rest();\n\t\t\t\tXBNConnection db = new XBNConnection();\n\t\t\t\tString theText = \"LOG\";\n\t\t\t\t\n\t\t\t\tdo {\n\t\t\t\t\t// System.out.println(\"Längded på theText i restCallImpl \"+theText.length()\n\t\t\t\t\t// +\" och det står \" +theText);\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\t//System.out.println(\"Hej\");\n\n\t\t\t\t\t\t//rest.doPut(\"lol\");\n\t\t\t\t\t\trest.doPut(theText);\n\t\t\t\t\t\t\n\t\t\t\t\t\tThread.sleep(3000);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\twhile (!db.getAck(theText, rest));\n\t\t\t\ttry{\n\t\t\t\t\tThread.sleep(2000);\n\n\t\t\t\t}\n\t\t\t\tcatch(Exception e){\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} \n\t\t\t\treceiveArea.setText(db.getNodeFaults(type));\n\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\t\t\t\treceiveArea.setText(\"Getting measurements from device, please wait...\");\n\t\t\t}\n\t\t});\n\n\t\t\n\t\t/*\n\t\t * The advanced tab section\n\t\t */\n\t\t\n\t\tTabItem advancedItem = new TabItem(tabFolder, SWT.NONE);\n\t\tadvancedItem.setText(\"Advanced\");\n\t\t\n\t\tComposite advComposite = new Composite(tabFolder, SWT.NONE);\n\t\tadvancedItem.setControl(advComposite);\n\t\tadvComposite.setLayout(null);\n\t\t\n\t\tButton advSendButton = new Button(advComposite, SWT.NONE);\n\t\t\n\t\n\t\tadvSendButton.setToolTipText(\"Send arbitary data to the device.\");\n\t\n\t\tadvSendButton.setBounds(307, 31, 121, 33);\n\t\tadvSendButton.setText(\"Send Data\");\n\t\t\n\t\tLabel lblNewLabel = new Label(advComposite, SWT.NONE);\n\t\tlblNewLabel.setFont(SWTResourceManager.getFont(\"Cantarell\", 7, SWT.NORMAL));\n\t\tlblNewLabel.setBounds(10, 204, 192, 21);\n\t\tlblNewLabel.setText(\"A master thesis project by Pétur and David\");\n\t\t\n\t\tfinal StyledText advSendArea = new StyledText(advComposite, SWT.BORDER | SWT.WRAP);\n\t\tadvSendArea.setToolTipText(\"This is where you type your arbitary data to send to the device.\");\n\t\tadvSendArea.setBounds(10, 31, 291, 33);\n\t\t\n\t\tButton advReceiveButton = new Button(advComposite, SWT.NONE);\n\t\t\n\n\t\t\n\t\tadvReceiveButton.setToolTipText(\"Receive data from the database.\");\n\t\tadvReceiveButton.setBounds(10, 70, 99, 33);\n\t\tadvReceiveButton.setText(\"Receive Data\");\n\t\t\n\t\tfinal StyledText advReceiveArea = new StyledText(advComposite, SWT.BORDER | SWT.WRAP);\n\t\tadvReceiveArea.setToolTipText(\"This is where the receive data will be presented.\");\n\t\tadvReceiveArea.setBounds(115, 67, 313, 70);\n\t\t\n\t\tButton advAscii = new Button(advComposite, SWT.RADIO);\n\t\tadvAscii.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\t\t\t\tadvType = 1;\n\t\t\t}\n\t\t});\n\t\t\n\t\tadvReceiveButton.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseUp(MouseEvent arg0) {\n\t\t\t\tadvReceiveArea.setText(\"Receiving the data, please wait...\");\n\t\t\t\tXBNConnection xbn = new XBNConnection();\n\t\t\t\tString text = xbn.getNodeFaults(advType);\n\t\t\t\tadvReceiveArea.setText(text);\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\t\t\t\tadvReceiveArea.setText(\"Receivng data from device, please wait\");\n\t\t\t}\n\t\t});\n\t\tadvAscii.setSelection(true);\n\t\tadvAscii.setToolTipText(\"Show the database results as ascii.\");\n\t\tadvAscii.setFont(SWTResourceManager.getFont(\"Cantarell\", 9, SWT.NORMAL));\n\t\tadvAscii.setBounds(10, 109, 54, 25);\n\t\tadvAscii.setText(\"ascii\");\n\t\t\n\t\tButton advHex = new Button(advComposite, SWT.RADIO);\n\t\tadvHex.setToolTipText(\"Show the database results as hex.\");\n\t\tadvHex.setFont(SWTResourceManager.getFont(\"Cantarell\", 9, SWT.NORMAL));\n\t\tadvHex.setBounds(66, 109, 43, 25);\n\t\tadvHex.setText(\"hex\");\n\t\tadvHex.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\t\t\t\tadvType = 2;\n\t\t\t}\n\t\t});\n\t\t\n\t\tButton btnDeleteDatabase = new Button(advComposite, SWT.NONE);\n\t\tbtnDeleteDatabase.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseUp(MouseEvent arg0) {\n\t\t\t\tXBNConnection db = new XBNConnection();\n\t\t\t\tdb.deleteMessages();\n\t\t\t\tadvReceiveArea.setText(\"Deleted data from database\");\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tbtnDeleteDatabase.setToolTipText(\"Delete entries in the database.\");\n\t\tbtnDeleteDatabase.setText(\"Delete database\");\n\t\tbtnDeleteDatabase.setBounds(269, 192, 159, 33);\n\t\t\n\t\n\t\t\n\n\t\t/*\n\t\t * This is the advanced send button. Can send arbitary text to the device.\n\t\t */\n\t\t\n\t\tadvSendButton.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseUp(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t\t//advSendArea.setText(\"Sending: '\"+advSendArea.getText()+\"' to the device, please wait...\");\n\t\t\t\tString theText = advSendArea.getText();\n\t\t\t\tSystem.out.println(\"Texten som ska skickas är: \" + theText);\n\t\t\t\t\n\t\t\t\tRest rest = new Rest();\n\t\t\t\tString chunkText = \"\";\n\t\t\t\tXBNConnection db = new XBNConnection();\n\t\t\t\tStringBuilder sb = new StringBuilder(theText);\n\t\t\t\t// Add and @ to be sure that there will never be two strings that are\n\t\t\t\t// the same in a row.\n\t\t\t\t// for (int i = 3; i < sb.toString().length(); i += 6) {\n\t\t\t\t// sb.insert(i, \"@\");\n\t\t\t\t// }\n\t\t\t\t// theText = sb.toString();\n\t\t\t\tSystem.out.println(theText);\n\n\t\t\t\tdo {\n\t\t\t\t\t// System.out.println(\"Längded på theText i restCallImpl \"+theText.length()\n\t\t\t\t\t// +\" och det står \" +theText);\n\n\t\t\t\t\tif (theText.length() < 3) {\n\t\t\t\t\t\tchunkText = theText.substring(0, theText.length());\n\t\t\t\t\t\tint pad = theText.length() % 3;\n\t\t\t\t\t\tif (pad == 1) {\n\t\t\t\t\t\t\tchunkText = chunkText + \" \";\n\t\t\t\t\t\t\ttheText = theText + \" \";\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tchunkText = chunkText + \" \";\n\t\t\t\t\t\t\ttheText = theText + \" \";\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tchunkText = theText.substring(0, 3);\n\t\t\t\t\t}\n\n\t\t\t\t\ttheText = theText.substring(3);\n\t\t\t\t\ttry {\n\n\t\t\t\t\t\trest.doPut(chunkText);\n\t\t\t\t\t\tThread.sleep(3000);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\twhile (theText.length() > 0 && db.getAck(chunkText, rest));\n\t\t\t\tadvSendArea.setText(\"Data sent to the device.\");\n\t\t\t\t\n\t\t\t}\n\t\t\n\t\t\t\n\t\t});\n\n\t}", "protected void createContents() {\n\n\t\tfinal FileServeApplicationWindow appWindow = this;\n\n\t\tthis.shlFileServe = new Shell();\n\t\tthis.shlFileServe.setSize(450, 300);\n\t\tthis.shlFileServe.setText(\"File Serve - Server\");\n\t\tthis.shlFileServe.setLayout(new BorderLayout(0, 0));\n\n\t\tthis.composite = new Composite(this.shlFileServe, SWT.NONE);\n\t\tthis.composite.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n\t\tthis.composite.setLayoutData(BorderLayout.CENTER);\n\t\tthis.composite.setLayout(new FormLayout());\n\n\t\tthis.lblServerTcpPort = new Label(this.composite, SWT.NONE);\n\t\tFormData fd_lblServerTcpPort = new FormData();\n\t\tfd_lblServerTcpPort.top = new FormAttachment(0, 10);\n\t\tfd_lblServerTcpPort.left = new FormAttachment(0, 10);\n\t\tthis.lblServerTcpPort.setLayoutData(fd_lblServerTcpPort);\n\t\tthis.lblServerTcpPort.setText(\"Server TCP Port:\");\n\n\t\tthis.serverTCPPortField = new Text(this.composite, SWT.BORDER);\n\t\tthis.serverTCPPortField.setTextLimit(5);\n\t\tthis.serverTCPPortField.addVerifyListener(new VerifyListener() {\n\t\t\t@Override\n\t\t\tpublic void verifyText(VerifyEvent e) {\n\t\t\t\te.doit = true;\n\t\t\t\tfor(int i = 0; i < e.text.length(); i++) {\n\n\t\t\t\t\tchar c = e.text.charAt(i);\n\n\t\t\t\t\tboolean b = false;\n\n\t\t\t\t\tif(c >= '0' && c <= '9') {b = true;}\n\t\t\t\t\telse if(c == SWT.BS) {b = true;}\n\t\t\t\t\telse if(c == SWT.DEL) {b = true;}\n\n\t\t\t\t\tif(b == false) {\n\t\t\t\t\t\te.doit = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tFormData fd_serverTCPPortField = new FormData();\n\t\tfd_serverTCPPortField.top = new FormAttachment(0, 7);\n\t\tfd_serverTCPPortField.right = new FormAttachment(100, -54);\n\t\tfd_serverTCPPortField.left = new FormAttachment(this.lblServerTcpPort, 12);\n\t\tthis.serverTCPPortField.setLayoutData(fd_serverTCPPortField);\n\n\t\tthis.btnStartServer = new Button(this.composite, SWT.NONE);\n\t\tFormData fd_btnStartServer = new FormData();\n\t\tfd_btnStartServer.bottom = new FormAttachment(100, -10);\n\t\tfd_btnStartServer.right = new FormAttachment(100, -10);\n\t\tthis.btnStartServer.setLayoutData(fd_btnStartServer);\n\t\tthis.btnStartServer.setText(\"Start Server\");\n\n\t\tthis.lblServerStatus = new Label(this.composite, SWT.NONE);\n\t\tFormData fd_lblServerStatus = new FormData();\n\t\tfd_lblServerStatus.right = new FormAttachment(this.btnStartServer, -6);\n\t\tfd_lblServerStatus.top = new FormAttachment(this.btnStartServer, 5, SWT.TOP);\n\t\tfd_lblServerStatus.left = new FormAttachment(this.lblServerTcpPort, 0, SWT.LEFT);\n\t\tthis.lblServerStatus.setLayoutData(fd_lblServerStatus);\n\t\tthis.lblServerStatus.setText(\"Server Status: Stopped\");\n\n\t\tthis.text = new Text(this.composite, SWT.BORDER);\n\t\tFormData fd_text = new FormData();\n\t\tfd_text.top = new FormAttachment(this.serverTCPPortField, 6);\n\t\tthis.text.setLayoutData(fd_text);\n\n\t\tthis.lblHighestDirectory = new Label(this.composite, SWT.NONE);\n\t\tfd_text.left = new FormAttachment(this.lblHighestDirectory, 6);\n\t\tFormData fd_lblHighestDirectory = new FormData();\n\t\tfd_lblHighestDirectory.top = new FormAttachment(this.lblServerTcpPort, 12);\n\t\tfd_lblHighestDirectory.left = new FormAttachment(this.lblServerTcpPort, 0, SWT.LEFT);\n\t\tthis.lblHighestDirectory.setLayoutData(fd_lblHighestDirectory);\n\t\tthis.lblHighestDirectory.setText(\"Highest Directory:\");\n\n\t\tthis.button = new Button(this.composite, SWT.NONE);\n\n\t\tfd_text.right = new FormAttachment(100, -54);\n\t\tFormData fd_button = new FormData();\n\t\tfd_button.left = new FormAttachment(this.text, 6);\n\t\tthis.button.setLayoutData(fd_button);\n\t\tthis.button.setText(\"...\");\n\n\t\tthis.grpConnectionInformation = new Group(this.composite, SWT.NONE);\n\t\tfd_button.bottom = new FormAttachment(this.grpConnectionInformation, -1);\n\t\tthis.grpConnectionInformation.setText(\"Connection Information:\");\n\t\tthis.grpConnectionInformation.setLayout(new BorderLayout(0, 0));\n\t\tFormData fd_grpConnectionInformation = new FormData();\n\t\tfd_grpConnectionInformation.bottom = new FormAttachment(this.btnStartServer, -6);\n\t\tfd_grpConnectionInformation.right = new FormAttachment(this.btnStartServer, 0, SWT.RIGHT);\n\t\tfd_grpConnectionInformation.top = new FormAttachment(this.lblHighestDirectory, 6);\n\t\tfd_grpConnectionInformation.left = new FormAttachment(this.lblServerTcpPort, 0, SWT.LEFT);\n\t\tthis.grpConnectionInformation.setLayoutData(fd_grpConnectionInformation);\n\n\t\tthis.scrolledComposite = new ScrolledComposite(this.grpConnectionInformation, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL);\n\t\tthis.scrolledComposite.setLayoutData(BorderLayout.CENTER);\n\t\tthis.scrolledComposite.setExpandHorizontal(true);\n\t\tthis.scrolledComposite.setExpandVertical(true);\n\n\t\tthis.table = new Table(this.scrolledComposite, SWT.BORDER | SWT.FULL_SELECTION);\n\t\tthis.table.setLinesVisible(true);\n\t\tthis.table.setHeaderVisible(true);\n\t\tthis.scrolledComposite.setContent(this.table);\n\t\tthis.scrolledComposite.setMinSize(this.table.computeSize(SWT.DEFAULT, SWT.DEFAULT));\n\n\t}", "protected void createContents() {\n cmd.setBean(nodeProperties);\n cmd.setNode(node);\n shell = new Shell(getParent(), SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL);\n shell.setLayout(new FormLayout());\n shell.setSize(800, 500);\n shell.setText(\"详细信息属性\");\n\n final Composite composite_3 = new Composite(shell, SWT.NONE);\n final FormData fd_composite_3 = new FormData();\n fd_composite_3.top = new FormAttachment(0, 1);\n fd_composite_3.left = new FormAttachment(0, 5);\n fd_composite_3.height = 100;\n fd_composite_3.right = new FormAttachment(100, -5);\n composite_3.setLayoutData(fd_composite_3);\n composite_3.setLayout(new FormLayout());\n\n final Group basicGroup = new Group(composite_3, SWT.NONE);\n basicGroup.setLayout(new FormLayout());\n final FormData fd_basicGroup = new FormData();\n fd_basicGroup.bottom = new FormAttachment(100, -1);\n fd_basicGroup.top = new FormAttachment(0, -6);\n fd_basicGroup.right = new FormAttachment(100, 0);\n fd_basicGroup.left = new FormAttachment(0, 0);\n basicGroup.setLayoutData(fd_basicGroup);\n\n final Label label = new Label(basicGroup, SWT.RIGHT);\n final FormData fd_label = new FormData();\n fd_label.top = new FormAttachment(0, 0);\n fd_label.right = new FormAttachment(15, 0);\n fd_label.left = new FormAttachment(0, 0);\n label.setLayoutData(fd_label);\n label.setText(\"节点名称:\");\n\n txtName = new Text(basicGroup, SWT.BORDER);\n final FormData fd_txtName = new FormData();\n fd_txtName.top = new FormAttachment(0, 0);\n fd_txtName.right = new FormAttachment(40, 0);\n fd_txtName.left = new FormAttachment(label, 0);\n txtName.setLayoutData(fd_txtName);\n txtName.setEditable(true);\n\n final Label label_1 = new Label(basicGroup, SWT.RIGHT);\n final FormData fd_label_1 = new FormData();\n fd_label_1.top = new FormAttachment(0, 0);\n fd_label_1.right = new FormAttachment(55, 0);\n fd_label_1.left = new FormAttachment(txtName, 0);\n label_1.setLayoutData(fd_label_1);\n label_1.setText(\"数据表名:\");\n\n txtTableName = new Text(basicGroup, SWT.BORDER);\n txtTableName.setEditable(false);\n final FormData fd_txtTableName = new FormData();\n fd_txtTableName.top = new FormAttachment(0, 0);\n fd_txtTableName.right = new FormAttachment(90, 0);\n fd_txtTableName.left = new FormAttachment(label_1, 0);\n txtTableName.setLayoutData(fd_txtTableName);\n\n final Button btnSelectTable = new Button(basicGroup, SWT.NONE);\n final FormData fd_btnSelectTable = new FormData();\n fd_btnSelectTable.top = new FormAttachment(0, 0);\n fd_btnSelectTable.right = new FormAttachment(100, -1);\n fd_btnSelectTable.left = new FormAttachment(txtTableName, 0);\n fd_btnSelectTable.height = 23;\n btnSelectTable.setLayoutData(fd_btnSelectTable);\n btnSelectTable.addSelectionListener(new SelectionAdapter() {\n public void widgetSelected(final SelectionEvent e) {\n DataTableDialog dataSoruceDlg = new DataTableDialog(shell);\n DataTable dt = dataSoruceDlg.open();\n if (dt != null) {\n txtTableName.setText(dt.getCnName());\n nodeProperties.setTableName(dt.getCnName());\n nodeProperties.setName(dt.getName());\n loadFieldsInfo(dt);\n nodeProperties.setDataTable(dt);\n int res = MessageUtil.comfirm(shell, \"导入\", \"是否导入字段信息?\\r\\n注意:已有字段信息将被覆盖!\");\n if (res == SWT.YES) {\n dataFieldList.clear();\n for (DataField df : dt.getFields()) {\n dataFieldList.add(df);\n }\n tvDataField.refresh();\n }\n }\n }\n });\n btnSelectTable.setText(\"选择表\");\n\n final Label lblDescription = new Label(basicGroup, SWT.RIGHT);\n final FormData fd_lblDescription = new FormData();\n fd_lblDescription.top = new FormAttachment(label, 10);\n fd_lblDescription.bottom = new FormAttachment(100, -2);\n fd_lblDescription.left = new FormAttachment(0, 0);\n fd_lblDescription.right = new FormAttachment(15, 0);\n lblDescription.setLayoutData(fd_lblDescription);\n lblDescription.setText(\"说明:\");\n\n txtDes = new StyledText(basicGroup, SWT.BORDER);\n final FormData fd_txtDes = new FormData();\n fd_txtDes.top = new FormAttachment(txtName, 5);\n fd_txtDes.left = new FormAttachment(15, 0);\n fd_txtDes.right = new FormAttachment(100, -2);\n fd_txtDes.bottom = new FormAttachment(100, -2);\n txtDes.setLayoutData(fd_txtDes);\n\n final Button btnOk = new Button(shell, SWT.NONE);\n btnOk.setImage(ResourceManager.getPluginImage(Activator.getDefault(), \"icons/tick.png\"));\n final FormData fd_btnOk = new FormData();\n fd_btnOk.height = 28;\n fd_btnOk.width = 80;\n fd_btnOk.bottom = new FormAttachment(100, -5);\n fd_btnOk.right = new FormAttachment(50, -10);\n btnOk.setLayoutData(fd_btnOk);\n btnOk.setText(\"确定(&O)\");\n btnOk.addListener(SWT.Selection, new Listener() {\n public void handleEvent(Event e) {\n save();\n result = 1;\n close();\n }\n });\n\n final Button btnCancel = new Button(shell, SWT.NONE);\n btnCancel.setImage(ResourceManager.getPluginImage(Activator.getDefault(), \"icons/cross.png\"));\n final FormData fd_btnCancel = new FormData();\n fd_btnCancel.height = 28;\n fd_btnCancel.width = 80;\n fd_btnCancel.bottom = new FormAttachment(100, -5);\n fd_btnCancel.left = new FormAttachment(50, 10);\n btnCancel.setLayoutData(fd_btnCancel);\n btnCancel.setText(\"取消(&C)\");\n btnCancel.addListener(SWT.Selection, new Listener() {\n public void handleEvent(Event e) {\n close();\n }\n });\n\n final TabFolder tabFolder = new TabFolder(shell, SWT.NONE);\n tabFolder.addSelectionListener(new SelectionAdapter() {\n public void widgetSelected(final SelectionEvent e) {\n TabItem ti = (TabItem) e.item;\n if (ti.getText().startsWith(\"SQL\")) {\n DataNodeProperties d = new DataNodeProperties();\n d.setAdditionSql(txtOtherCondition.getText());\n // d.setTableName(nodeProperties.getTableName());\n d.setName(nodeProperties.getName());\n d.setFields(dataFieldList);\n d.setFilters(filterList);\n txtSQL.setText(d.getSQL(null));\n }\n else if (ti.getText().startsWith(\"过滤\")) {\n String[] fNames = null;\n if (dataFieldList != null && dataFieldList.size() > 0) {\n fNames = new String[dataFieldList.size()];\n for (int i = 0; i < dataFieldList.size(); i++) {\n fNames[i] = dataFieldList.get(i).getAliasName();\n }\n }\n else fNames = new String[] { \"\" };\n // filtersCellModifier.setAliasNames(fNames);\n tvFilter.setCellModifier(new FiltersCellModifier(tvFilter, fNames));\n tvFilter.getCellEditors()[0] = new ComboBoxCellEditor(tblFilter, fNames, SWT.READ_ONLY);\n }\n else if (ti.getText().startsWith(\"列表配置\")) {\n \tif (dataFieldList.size() > configList.size()) {\n \t\tint configLength = configList.size();\n \t\t//添加\n \tfor (int i = 0 ;i<dataFieldList.size();i++ ) {\n \t\tDataField dataField = dataFieldList.get(i);\n \t\tString cnName = dataField.getCnName();\n String aliasName = dataField.getAliasName();\n if (!\"\".equals(cnName) && !\"\".equals(aliasName)) {\n \tboolean haveFlg = false;\n \tfor (int j = 0 ;j< configLength;j++) {\n \t\tFieldConfig filedCfig = configList.get(j);\n \t\tif (!(filedCfig.getCnName().equals(cnName) &&filedCfig.getName().equals(aliasName))) {\n \t\t\tcontinue;\n \t\t} else {\n \t\t\thaveFlg = true;\n \t\t\tbreak;\n \t\t}\n \t}\n \tif (!haveFlg) {//原列表不存在此记录\n FieldConfig newFieldCfig = new FieldConfig();\n \t\t\tnewFieldCfig.setCnName(cnName);\n \t\t\tnewFieldCfig.setName(aliasName);\n \t\t\tconfigList.add(newFieldCfig);\n \t}\n }\n \t}\n \t//\n// \tfor (int k = 0;k< configLength;k++) {\n// \t\tFieldConfig filedCfig = configList.get(k);\n// \t\tString cnName = filedCfig.getCnName();\n// String aliasName = filedCfig.getName();\n// boolean haveFiledFlg = false;\n// for (int i = 0 ;i<dataFieldList.size();i++ ) {\n// \tDataField dataField = dataFieldList.get(i);\n// \tif (!(dataField.getAliasName().equals(aliasName) && dataField.getCnName().equals(cnName))) {\n// \t\tcontinue;\n// \t} else {\n// \t\thaveFiledFlg = true;\n// \t\tbreak;\n// \t}\n// }\n// if (!haveFiledFlg) {\n// \tconfigList.remove(k);\n// }\n// \n// \t}\n \t//刷新列表\n \ttvShowConfig.refresh();\n \t}\n }\n }\n });\n final FormData fd_tabFolder = new FormData();\n fd_tabFolder.bottom = new FormAttachment(100, -40);\n fd_tabFolder.top = new FormAttachment(composite_3, 3, SWT.BOTTOM);\n fd_tabFolder.right = new FormAttachment(100, -5);\n fd_tabFolder.left = new FormAttachment(0, 5);\n tabFolder.setLayoutData(fd_tabFolder);\n\n final TabItem tabFields = new TabItem(tabFolder, SWT.NONE);\n tabFields.setText(\"查询字段\");\n\n final Composite composite_1 = new Composite(tabFolder, SWT.NONE);\n composite_1.setLayout(new FormLayout());\n tabFields.setControl(composite_1);\n\n final Group group_1 = new Group(composite_1, SWT.NONE);\n final FormData fd_group_1 = new FormData();\n fd_group_1.left = new FormAttachment(0, 0);\n fd_group_1.bottom = new FormAttachment(100, 0);\n fd_group_1.right = new FormAttachment(100, 0);\n fd_group_1.top = new FormAttachment(0, -6);\n group_1.setLayoutData(fd_group_1);\n group_1.setLayout(new FormLayout());\n // tabFields.setControl(group_1);\n\n tvDataField = new TableViewer(group_1, SWT.MULTI | SWT.FULL_SELECTION | SWT.BORDER);\n tvDataField.setContentProvider(new ViewContentProvider());\n tvDataField.setLabelProvider(new DataFieldsLabelProvider0());\n tvDataField.setColumnProperties(DATAFIELDS0);\n tblDataField = tvDataField.getTable();\n\n CellEditor[] cellEditor = new CellEditor[7];\n cellEditor[0] = new TextCellEditor(tblDataField);\n cellEditor[1] = new TextCellEditor(tblDataField);\n cellEditor[2] = new TextCellEditor(tblDataField);\n cellEditor[3] = new ComboBoxCellEditor(tblDataField, Consts.DATATYPE_LABEL, SWT.READ_ONLY);\n cellEditor[4] = new TextCellEditor(tblDataField);\n cellEditor[5] = new ComboBoxCellEditor(tblDataField, Consts.SORTDIRECT_LABEL, SWT.READ_ONLY);\n// cellEditor[6] = new ComboBoxCellEditor(tblDataField, Consts.AGGREGATE_LABEL, SWT.READ_ONLY);\n// cellEditor[7] = new TextCellEditor(tblDataField);\n cellEditor[6] = new ComboBoxCellEditor(tblDataField, Consts.YESNO_LABEL, SWT.READ_ONLY);\n Text text1 = (Text) cellEditor[4].getControl();\n text1.addVerifyListener(new VerifyListener() {\n public void verifyText(VerifyEvent e) {\n String str = e.text;\n if (str != null && str.length() > 0) e.doit = StringUtil.isInteger(str);\n }\n });\n// Text text2 = (Text) cellEditor[7].getControl();\n// text2.addVerifyListener(new VerifyListener() {\n// public void verifyText(VerifyEvent e) {\n// String str = e.text;\n// if (str != null && str.length() > 0) e.doit = StringUtil.isInteger(str);\n// }\n// });\n\n tvDataField.setCellEditors(cellEditor);\n tvDataField.setCellModifier(new DataFieldsCellModifier2(tvDataField));\n\n final FormData fd_table_1 = new FormData();\n fd_table_1.bottom = new FormAttachment(100, -22);\n fd_table_1.top = new FormAttachment(0, -6);\n fd_table_1.right = new FormAttachment(100, 0);\n fd_table_1.left = new FormAttachment(0, 0);\n tblDataField.setLayoutData(fd_table_1);\n tblDataField.setLinesVisible(true);\n tblDataField.setHeaderVisible(true);\n\n final TableColumn colCnName = new TableColumn(tblDataField, SWT.NONE);\n colCnName.setWidth(100);\n colCnName.setText(\"中文名\");\n\n final TableColumn colFieldName = new TableColumn(tblDataField, SWT.NONE);\n colFieldName.setWidth(100);\n colFieldName.setText(\"字段名\");\n\n final TableColumn colAliasName = new TableColumn(tblDataField, SWT.NONE);\n colAliasName.setWidth(100);\n colAliasName.setText(\"别名\");\n\n final TableColumn colDataType = new TableColumn(tblDataField, SWT.NONE);\n colDataType.setWidth(80);\n colDataType.setText(\"数据类型\");\n\n final TableColumn colSortNo = new TableColumn(tblDataField, SWT.NONE);\n colSortNo.setWidth(60);\n colSortNo.setText(\"排序顺序\");\n\n final TableColumn colSortDirect = new TableColumn(tblDataField, SWT.NONE);\n colSortDirect.setWidth(80);\n colSortDirect.setText(\"排序方向\");\n\n final TableColumn colOutput = new TableColumn(tblDataField, SWT.NONE);\n colOutput.setWidth(80);\n colOutput.setText(\"是否输出\");\n\n final TabItem tabFilter = new TabItem(tabFolder, SWT.NONE);\n tabFilter.setText(\"过滤条件\");\n\n final Composite composite = new Composite(tabFolder, SWT.NONE);\n composite.setLayout(new FormLayout());\n tabFilter.setControl(composite);\n\n final Group group_2 = new Group(composite, SWT.NO_RADIO_GROUP);\n final FormData fd_group_2 = new FormData();\n fd_group_2.left = new FormAttachment(0, 0);\n fd_group_2.right = new FormAttachment(100, 0);\n fd_group_2.top = new FormAttachment(0, -6);\n fd_group_2.bottom = new FormAttachment(100, -80);\n group_2.setLayoutData(fd_group_2);\n group_2.setLayout(new FormLayout());\n\n tvFilter = new TableViewer(group_2, SWT.FULL_SELECTION | SWT.BORDER);\n tvFilter.setLabelProvider(new FiltersLabelProvider());\n tvFilter.setContentProvider(new ViewContentProvider());\n tvFilter.setColumnProperties(FiltersLabelProvider.DATAFIELDS);\n tblFilter = tvFilter.getTable();\n CellEditor[] cellEditor1 = new CellEditor[3];\n cellEditor1[0] = new TextCellEditor(tblFilter);\n String[] aliasNames = new String[] { \"\" };\n cellEditor1[0] = new ComboBoxCellEditor(tblFilter, aliasNames, SWT.READ_ONLY);\n cellEditor1[1] = new ComboBoxCellEditor(tblFilter, Consts.OPERATOR_LABEL, SWT.READ_ONLY);\n cellEditor1[2] = new TextCellEditor(tblFilter);\n tvFilter.setCellEditors(cellEditor1);\n // filtersCellModifier = new FiltersCellModifier(tvFilter, aliasNames);\n tvFilter.setCellModifier(new FiltersCellModifier(tvFilter, aliasNames));\n\n final FormData fd_table_2 = new FormData();\n fd_table_2.bottom = new FormAttachment(100, -21);\n fd_table_2.top = new FormAttachment(0, -5);\n fd_table_2.right = new FormAttachment(100, -1);\n fd_table_2.left = new FormAttachment(0, 1);\n tblFilter.setLayoutData(fd_table_2);\n tblFilter.setLinesVisible(true);\n tblFilter.setHeaderVisible(true);\n\n final TableColumn colFilterFieldName = new TableColumn(tblFilter, SWT.NONE);\n colFilterFieldName.setWidth(120);\n colFilterFieldName.setText(\"字段名称\");\n\n final TableColumn colOper = new TableColumn(tblFilter, SWT.NONE);\n colOper.setWidth(120);\n colOper.setText(\"操作符\");\n\n final TableColumn colFilterData = new TableColumn(tblFilter, SWT.NONE);\n colFilterData.setWidth(500);\n colFilterData.setText(\"操作数据\");\n\n final Button btnFilterAdd = new Button(group_2, SWT.NONE);\n btnFilterAdd.addSelectionListener(new SelectionAdapter() {\n public void widgetSelected(final SelectionEvent e) {\n Filter df = new Filter();\n df.setField(\"\");\n df.setOperator(\"=\");\n df.setExpression(\"\");\n filterList.add(df);\n tvFilter.refresh();\n }\n });\n btnFilterAdd.setImage(ResourceManager.getPluginImage(Activator.getDefault(), \"icons/plus.png\"));\n final FormData fd_btnFilterAdd = new FormData();\n fd_btnFilterAdd.bottom = new FormAttachment(100, -1);\n fd_btnFilterAdd.left = new FormAttachment(0, 1);\n fd_btnFilterAdd.height = 20;\n fd_btnFilterAdd.width = 20;\n btnFilterAdd.setLayoutData(fd_btnFilterAdd);\n\n final Button btnFilterDel = new Button(group_2, SWT.NONE);\n btnFilterDel.addSelectionListener(new SelectionAdapter() {\n public void widgetSelected(final SelectionEvent e) {\n TableItem[] selectItems = tblFilter.getSelection();\n if (selectItems != null && selectItems.length > 0) {\n for (TableItem ti : selectItems) {\n Filter o = (Filter) ti.getData();\n filterList.remove(o);\n }\n tvFilter.refresh();\n }\n }\n });\n btnFilterDel.setImage(ResourceManager.getPluginImage(Activator.getDefault(), \"icons/minus.png\"));\n final FormData fd_btnFilterDel = new FormData();\n fd_btnFilterDel.bottom = new FormAttachment(100, -1);\n fd_btnFilterDel.left = new FormAttachment(btnFilterAdd, 1, SWT.DEFAULT);\n fd_btnFilterDel.height = 20;\n fd_btnFilterDel.width = 20;\n btnFilterDel.setLayoutData(fd_btnFilterDel);\n\n final Button btnFilterUp = new Button(group_2, SWT.NONE);\n btnFilterUp.setImage(ResourceManager.getPluginImage(Activator.getDefault(), \"icons/arrow-090.png\"));\n final FormData fd_btnFilterUp = new FormData();\n fd_btnFilterUp.bottom = new FormAttachment(100, -1);\n fd_btnFilterUp.left = new FormAttachment(btnFilterDel, 1, SWT.DEFAULT);\n fd_btnFilterUp.height = 20;\n fd_btnFilterUp.width = 20;\n btnFilterUp.setLayoutData(fd_btnFilterUp);\n btnFilterUp.setVisible(false);\n\n final Button btnFilterDown = new Button(group_2, SWT.NONE);\n btnFilterDown.setImage(ResourceManager.getPluginImage(Activator.getDefault(), \"icons/arrow-270.png\"));\n final FormData fd_btnFilterDown = new FormData();\n fd_btnFilterDown.bottom = new FormAttachment(100, -1);\n fd_btnFilterDown.left = new FormAttachment(btnFilterUp, 1, SWT.DEFAULT);\n fd_btnFilterDown.height = 20;\n fd_btnFilterDown.width = 20;\n btnFilterDown.setLayoutData(fd_btnFilterDown);\n btnFilterDown.setVisible(false);\n\n final Label label_2 = new Label(composite, SWT.NONE);\n final FormData fd_label_2 = new FormData();\n fd_label_2.bottom = new FormAttachment(100, -60);\n fd_label_2.top = new FormAttachment(group_2, 1);\n fd_label_2.width = 70;\n fd_label_2.left = new FormAttachment(0, 0);\n label_2.setLayoutData(fd_label_2);\n label_2.setText(\"其他条件:\");\n\n txtOtherCondition = new StyledText(composite, SWT.BORDER);\n final FormData fd_txtOtherCondition = new FormData();\n fd_txtOtherCondition.bottom = new FormAttachment(100, -1);\n fd_txtOtherCondition.top = new FormAttachment(label_2, 1);\n fd_txtOtherCondition.right = new FormAttachment(100, -1);\n fd_txtOtherCondition.left = new FormAttachment(0, 1);\n txtOtherCondition.setLayoutData(fd_txtOtherCondition);\n\n final Button btnFieldAdd = new Button(group_1, SWT.NONE);\n btnFieldAdd.addSelectionListener(new SelectionAdapter() {\n public void widgetSelected(final SelectionEvent e) {\n DataField df = new DataField();\n df.setOutput(Consts.YES);\n df.setSortDirect(\"\");\n df.setSortNo(\"\");\n df.setAggregate(\"\");\n dataFieldList.add(df);\n tvDataField.refresh();\n }\n });\n btnFieldAdd.setImage(ResourceManager.getPluginImage(Activator.getDefault(), \"icons/plus.png\"));\n final FormData fd_btnFieldAdd = new FormData();\n fd_btnFieldAdd.bottom = new FormAttachment(100, 0);\n fd_btnFieldAdd.left = new FormAttachment(0, 0);\n fd_btnFieldAdd.height = 20;\n fd_btnFieldAdd.width = 20;\n btnFieldAdd.setLayoutData(fd_btnFieldAdd);\n\n final Button btnFieldDel = new Button(group_1, SWT.NONE);\n btnFieldDel.addSelectionListener(new SelectionAdapter() {\n public void widgetSelected(final SelectionEvent e) {\n TableItem[] selectItems = tblDataField.getSelection();\n if (selectItems != null && selectItems.length > 0) {\n for (TableItem ti : selectItems) {\n DataField o = (DataField) ti.getData();\n //\n String cnName = o.getCnName();\n String aliasName = o.getAliasName();\n for (int i = 0;i< configList.size();i++) {\n \tFieldConfig cfig = configList.get(i);\n \tif (cnName.equals(cfig.getCnName()) && aliasName.equals(cfig.getName())) {\n \t\tconfigList.remove(i);\n \t\tbreak;\n \t}\n }\n \n dataFieldList.remove(o);\n }\n tvDataField.refresh();\n tvShowConfig.refresh();\n }\n }\n });\n btnFieldDel.setImage(ResourceManager.getPluginImage(Activator.getDefault(), \"icons/minus.png\"));\n final FormData fd_btnFieldDel = new FormData();\n fd_btnFieldDel.bottom = new FormAttachment(100, 0);\n fd_btnFieldDel.left = new FormAttachment(0, 21);\n fd_btnFieldDel.height = 20;\n fd_btnFieldDel.width = 20;\n btnFieldDel.setLayoutData(fd_btnFieldDel);\n\n final TabItem tabSQL = new TabItem(tabFolder, SWT.NONE);\n tabSQL.setText(\"SQL语句\");\n\n final Composite composite_2 = new Composite(tabFolder, SWT.NONE);\n composite_2.setLayout(new FormLayout());\n tabSQL.setControl(composite_2);\n\n final Group group = new Group(composite_2, SWT.NONE);\n final FormData fd_group = new FormData();\n fd_group.top = new FormAttachment(0, -6);\n fd_group.right = new FormAttachment(100, 0);\n fd_group.left = new FormAttachment(0, 0);\n fd_group.bottom = new FormAttachment(100, 0);\n group.setLayoutData(fd_group);\n group.setLayout(new FormLayout());\n\n txtSQL = new StyledText(group, SWT.BORDER|SWT.WRAP|SWT.MULTI|SWT.V_SCROLL|SWT.H_SCROLL);\n final FormData fd_txtSQL = new FormData();\n fd_txtSQL.bottom = new FormAttachment(100, 0);\n fd_txtSQL.top = new FormAttachment(0, -6);\n fd_txtSQL.right = new FormAttachment(100, 0);\n fd_txtSQL.left = new FormAttachment(0, 0);\n txtSQL.setLayoutData(fd_txtSQL);\n txtSQL.setWordWrap(true);\n txtSQL.setFont(SWTResourceManager.getFont(\"Fixedsys\", 10, SWT.NONE));\n txtSQL.setEditable(false);\n\n final TabItem tabItem = new TabItem(tabFolder, SWT.NONE);\n tabItem.setText(\"列表配置\");\n\n final Composite composite_1_1 = new Composite(tabFolder, SWT.NONE);\n composite_1_1.setLayout(new FormLayout());\n tabItem.setControl(composite_1_1);\n\n final Group group_3 = new Group(composite_1_1, SWT.NONE);\n group_3.setLayout(new FormLayout());\n final FormData fd_group_3 = new FormData();\n fd_group_3.left = new FormAttachment(0, 0);\n fd_group_3.bottom = new FormAttachment(100, 0);\n fd_group_3.right = new FormAttachment(100, 0);\n fd_group_3.top = new FormAttachment(0, -6);\n group_3.setLayoutData(fd_group_3);\n\n tvShowConfig = new TableViewer(group_3, SWT.MULTI | SWT.FULL_SELECTION | SWT.BORDER);\n tvShowConfig.setContentProvider(new ViewContentProvider());\n tvShowConfig.setLabelProvider(new ShowConfigLabelProvider());\n tvShowConfig.setColumnProperties(DATAFIELDS);\n tblShowConfig = tvShowConfig.getTable();\n\n CellEditor[] cfigCellEditor = new CellEditor[8];\n cfigCellEditor[0] = new TextCellEditor(tblShowConfig);\n cfigCellEditor[1] = new TextCellEditor(tblShowConfig);\n cfigCellEditor[2] = new TextCellEditor(tblShowConfig);\n cfigCellEditor[3] = new ComboBoxCellEditor(tblShowConfig, Consts.ALIGN_LABEL, SWT.READ_ONLY);\n cfigCellEditor[4] = new TextCellEditor(tblShowConfig);\n cfigCellEditor[5] = new ComboBoxCellEditor(tblShowConfig, Consts.YESNO_LABEL, SWT.READ_ONLY);\n cfigCellEditor[6] = new ComboBoxCellEditor(tblShowConfig, codeSetNames, SWT.READ_ONLY);\n// cellEditor[7] = new DetailLinkCellEditor(tblShowConfig, configList, diagram.getNodes());\n Text text10 = (Text) cfigCellEditor[4].getControl();\n text10.addVerifyListener(new NumberVerifier());\n\n tvShowConfig.setCellEditors(cfigCellEditor);\n tvShowConfig.setCellModifier(new ShowConfigCellModifier(tvShowConfig));\n \n final FormData fd_table_1_1 = new FormData();\n fd_table_1_1.bottom = new FormAttachment(100, -21);\n fd_table_1_1.top = new FormAttachment(0, 1);\n fd_table_1_1.right = new FormAttachment(100, -1);\n fd_table_1_1.left = new FormAttachment(0, 0);\n tblShowConfig.setLayoutData(fd_table_1_1);\n tblShowConfig.setLinesVisible(true);\n tblShowConfig.setHeaderVisible(true);\n\n final TableColumn colCnName_1 = new TableColumn(tblShowConfig, SWT.NONE);\n colCnName_1.setWidth(120);\n colCnName_1.setText(\"中文名\");\n\n final TableColumn colFieldName_1 = new TableColumn(tblShowConfig, SWT.NONE);\n colFieldName_1.setWidth(120);\n colFieldName_1.setText(\"列名\");\n\n final TableColumn colDataType_1 = new TableColumn(tblShowConfig, SWT.NONE);\n colDataType_1.setWidth(60);\n colDataType_1.setText(\"数据格式\");\n\n final TableColumn colAlign = new TableColumn(tblShowConfig, SWT.NONE);\n colAlign.setWidth(70);\n colAlign.setText(\"对齐方式\");\n\n final TableColumn colWidth = new TableColumn(tblShowConfig, SWT.NONE);\n colWidth.setWidth(40);\n colWidth.setText(\"宽度\");\n\n final TableColumn colVisible = new TableColumn(tblShowConfig, SWT.NONE);\n colVisible.setWidth(70);\n colVisible.setText(\"是否显示\");\n\n final TableColumn colCodeSet = new TableColumn(tblShowConfig, SWT.NONE);\n colCodeSet.setWidth(100);\n colCodeSet.setText(\"代码集\");\n\n final Button btnUp = new Button(group_3, SWT.NONE);\n btnUp.addSelectionListener(new SelectionAdapter() {\n public void widgetSelected(final SelectionEvent e) {\n if (tblShowConfig.getSelectionCount() == 1) {\n int idx = tblShowConfig.getSelectionIndex();\n if (idx > 0) {\n FieldConfig o = (FieldConfig) tblShowConfig.getSelection()[0].getData();\n configList.remove(o);\n configList.add(idx - 1, o);\n tvShowConfig.refresh();\n }\n }\n }\n });\n btnUp.setImage(ResourceManager.getPluginImage(Activator.getDefault(), \"icons/arrow-090.png\"));\n final FormData fd_btnUp = new FormData();\n fd_btnUp.left = new FormAttachment(0,1);\n fd_btnUp.top = new FormAttachment(tblShowConfig, 1);\n fd_btnUp.width = 20;\n fd_btnUp.height = 20;\n btnUp.setLayoutData(fd_btnUp);\n btnUp.setText(\"button\");\n\n final Button btnDown = new Button(group_3, SWT.NONE);\n btnDown.addSelectionListener(new SelectionAdapter() {\n public void widgetSelected(final SelectionEvent e) {\n if (tblShowConfig.getSelectionCount() == 1) {\n int idx = tblShowConfig.getSelectionIndex();\n if (idx < tblShowConfig.getItemCount()) {\n FieldConfig o = (FieldConfig) tblShowConfig.getSelection()[0].getData();\n configList.remove(o);\n configList.add(idx + 1, o);\n tvShowConfig.refresh();\n }\n }\n }\n });\n btnDown.setImage(ResourceManager.getPluginImage(Activator.getDefault(), \"icons/arrow-270.png\"));\n final FormData fd_btnDown = new FormData();\n fd_btnDown.top = new FormAttachment(tblShowConfig, 1);\n fd_btnDown.width = 20;\n fd_btnDown.height = 20;\n fd_btnDown.left = new FormAttachment(btnUp, 1);\n btnDown.setLayoutData(fd_btnDown);\n btnDown.setText(\"button\");\n\n //\n init();\n }", "protected Control createContents(Composite parent) {\r\n noDefaultAndApplyButton();\r\n\r\n // The main composite\r\n Composite composite = new Composite(parent, SWT.NONE);\r\n GridLayout layout = new GridLayout(1, false);\r\n layout.marginWidth = 0;\r\n layout.marginHeight = 0;\r\n composite.setLayout(layout);\r\n\r\n // TODO change these labels later\r\n new Label(composite, SWT.NONE)\r\n .setText(\"Provided by Duke University Computer Science Department\");\r\n new Label(composite, SWT.NONE).setText(\"http://www.cs.duke.edu\");\r\n new Label(composite, SWT.NONE)\r\n .setText(\"Questions? Go to our website at http://www.cs.duke.edu/csed/ambient\");\r\n return composite;\r\n }", "private void createContents() {\n\t\tshell = new Shell(getParent(), SWT.DIALOG_TRIM | SWT.RESIZE);\n\t\tshell.setSize(750, 450);\n\t\tshell.setText(\"Sensitivity Analysis for: \" + parentNode.getName());\n\t\tshell.setLayout(new FillLayout(SWT.HORIZONTAL));\n\n\t\tsashForm = new SashForm(shell, SWT.NONE);\n\n\t\tscrolledComposite = new ScrolledComposite(sashForm, SWT.BORDER\n\t\t\t\t| SWT.H_SCROLL | SWT.V_SCROLL);\n\t\tscrolledComposite.setExpandHorizontal(true);\n\t\tscrolledComposite.setExpandVertical(true);\n\n\t\tSaCriterionListComp = new Composite(scrolledComposite, SWT.NONE);\n\t\tSaCriterionListComp.setLayout(new RowLayout(SWT.VERTICAL));\n\n\t\t// Create a criterion weighting SaCriterionListComp for every criterion\n\t\tweightingSelectComponents = new SaCriterionWeightingSelectComp[c.length];\n\n\t\tArrayList<Criterion> criteria = parentNode.getCriteria();\n\t\tfor (int i = 0; i < c.length; i++) {\n\n\t\t\tSaCriterionWeightingSelectComp scwsc = new SaCriterionWeightingSelectComp(\n\t\t\t\t\tSaCriterionListComp, SWT.None, criteria.get(i), c[i], i);\n\n\t\t\tscwsc.addWeightingChangedListener(new SaCriterionWeightingChangedListener() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void doCriterionWeightingChanged(\n\t\t\t\t\t\tSaCriterionWeightingChangedEvent e) {\n\t\t\t\t\tupdateCriteriaWeightings(e.getCriterionIndex(),\n\t\t\t\t\t\t\te.getNewValue());\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tweightingSelectComponents[i] = scwsc;\n\t\t}\n\n\t\tscrolledComposite.setContent(SaCriterionListComp);\n\t\tscrolledComposite.setMinSize(SaCriterionListComp.computeSize(\n\t\t\t\tSWT.DEFAULT, SWT.DEFAULT));\n\n\t\tscrolledComposite_1 = new ScrolledComposite(sashForm, SWT.BORDER\n\t\t\t\t| SWT.H_SCROLL | SWT.V_SCROLL);\n\t\tscrolledComposite_1.setExpandHorizontal(true);\n\t\tscrolledComposite_1.setExpandVertical(true);\n\n\t\tSaAlternativeWeighingComp = new Composite(scrolledComposite_1, SWT.NONE);\n\t\tSaAlternativeWeighingComp.setLayout(new RowLayout(SWT.VERTICAL));\n\n\t\t// Create a bar component for every alternative\n\t\talternativeBarComponents = new SaAlternativeWeightingBarComp[a.length];\n\n\t\tfor (int i = 0; i < alternatives.size(); i++) {\n\t\t\tSaAlternativeWeightingBarComp sawc = new SaAlternativeWeightingBarComp(\n\t\t\t\t\tSaAlternativeWeighingComp, SWT.NONE, alternatives.get(i)\n\t\t\t\t\t\t\t.getName(), a[i]);\n\n\t\t\talternativeBarComponents[i] = sawc;\n\t\t}\n\n\t\tscrolledComposite_1.setContent(SaAlternativeWeighingComp);\n\t\tscrolledComposite_1.setMinSize(SaAlternativeWeighingComp.computeSize(\n\t\t\t\tSWT.DEFAULT, SWT.DEFAULT));\n\n\t\tsashForm.setWeights(new int[] { 1, 1 });\n\n\t\tsetBarValues();\n\t}", "@Override\n public Control createDialogArea(Composite parent) {\n Composite top = (Composite) super.createDialogArea(parent);\n\n /*\n * Create the main layout for the shell.\n */\n GridLayout mainLayout = new GridLayout(1, false);\n mainLayout.verticalSpacing = 15;\n top.setLayout(mainLayout);\n GridData mainLayoutData = new GridData(SWT.FILL, SWT.FILL, true, true);\n top.setLayoutData(mainLayoutData);\n\n createStormTypeArea(top);\n createViewerArea(top);\n createTransmitArea(top);\n\n /*\n * Sets dialog title\n */\n getShell().setText(\"View/Send PSH\");\n\n // Update GUI from PshData.\n updateGui(pshData);\n\n return top;\n }", "private void initDialog() {\n Window subWindow = new Window(\"Sub-window\");\n \n FormLayout nameLayout = new FormLayout();\n TextField code = new TextField(\"Code\");\n code.setPlaceholder(\"Code\");\n \n TextField description = new TextField(\"Description\");\n description.setPlaceholder(\"Description\");\n \n Button confirm = new Button(\"Save\");\n confirm.addClickListener(listener -> insertRole(code.getValue(), description.getValue()));\n\n nameLayout.addComponent(code);\n nameLayout.addComponent(description);\n nameLayout.addComponent(confirm);\n \n subWindow.setContent(nameLayout);\n \n // Center it in the browser window\n subWindow.center();\n\n // Open it in the UI\n UI.getCurrent().addWindow(subWindow);\n\t}", "private void setup(){\n\t\t\n\t\t//set the dialog title\n\t\tsetText(LocaleText.get(\"createSPSSFileDialog\"));\n\t\t//create the status text\n\t\tstatusLabel = new Label();\n\t\t\n\t\t//create the buttons\n\t\tButton btnCancel = new Button(LocaleText.get(\"close\"), new ClickHandler(){\n\t\t\tpublic void onClick(ClickEvent event){\n\t\t\t\tcancel();\n\t\t\t}\n\t\t});\n\t\t\n\t\tButton btnCreate = new Button(LocaleText.get(\"createSPSSFileDialog\"), new ClickHandler(){\n\t\t\tpublic void onClick(ClickEvent event){\n\t\t\t\tcreateSPSSFile();\n\t\t\t}\n\t\t});\n\t\t\n\t\tButton btnSave = new Button(LocaleText.get(\"save\"), new ClickHandler(){\n\t\t\tpublic void onClick(ClickEvent event){\n\t\t\t\tsave();\n\t\t\t}\n\t\t});\n\t\t\n\t\t\t\t\n\t\t\n\t\t//update the languages in the form.\n\t\tFormHandler.updateLanguage(Context.getLocale(), Context.getLocale(), form);\n\t\t//add the languages to the language drop down\n\t\tfor(Locale l : form.getLocales())\n\t\t{\n\t\t\tlistBoxLanguages.addItem(l.getName());\n\t\t}\n\t\t\n\t\t//setup the text area\n\t\tspssText.setCharacterWidth(30);\n\t\tspssText.setPixelSize(300, 300);\n\t\t\n\t\t\n\t\tFlexCellFormatter formatter = table.getFlexCellFormatter();\n\t\t\n\t\t//now add stuff to the UI\n\t\tint row = 0;\n\t\ttable.setWidget(row, 0, new Label(LocaleText.get(\"language\")));\n\t\ttable.setWidget(row, 1, listBoxLanguages);\n\t\trow++;\n\t\ttable.setWidget(row, 0, spssText);\n\t\tformatter.setColSpan(row, 0, 2);\n\t\tformatter.setHeight(row, 0, \"300px\");\n\t\tformatter.setWidth(row, 0, \"300px\");\n\t\trow++;\n\t\ttable.setWidget(row, 0, statusLabel);\n\t\trow++;\n\t\ttable.setWidget(row, 0, btnCreate);\n\t\trow++;\n\t\ttable.setWidget(row, 0, btnSave);\n\t\ttable.setWidget(row, 1, btnCancel);\n\t\trow++;\n\t\ttable.setWidget(row, 0, appletHtml);\n\t\t\n\t\t\t\t\t\t\n\t\t//some random UI stuff to make everything nice and neat\n\t\tVerticalPanel panel = new VerticalPanel();\n\t\tFormUtil.maximizeWidget(panel);\n\t\tpanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE);\n\t\tpanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);\n\t\tpanel.add(table);\n\t\t\n\t\tsetWidget(panel);\n\t\t\n\t\tsetWidth(\"200px\");\t\t\n\t}", "protected Control createDialogArea(Composite parent) {\n\t\t\ttext = new Text(parent, SWT.READ_ONLY | SWT.NO_FOCUS);\n\n\t\t\t// Use the compact margins employed by PopupDialog.\n\t\t\tGridData gd = new GridData(GridData.BEGINNING | GridData.FILL_BOTH);\n\t\t\tgd.horizontalIndent = 5;\n\t\t\tgd.verticalAlignment = SWT.CENTER;\n\t\t\ttext.setLayoutData(gd);\n\t\t\ttext.setText(contents);\n\n\t\t\t// since SWT.NO_FOCUS is only a hint...\n\t\t\ttext.addFocusListener(new FocusAdapter() {\n\t\t\t\tpublic void focusGained(FocusEvent event) {\n\t\t\t\t\tContentProposalPopup.this.close();\n\t\t\t\t}\n\t\t\t});\n\t\t\treturn text;\n\t\t}", "public abstract Dialog createDialog(DialogDescriptor descriptor);", "protected void createContents(Display display) {\n\t\tshell = new Shell(display, SWT.CLOSE | SWT.TITLE | SWT.MIN);\n\t\tshell.setSize(539, 648);\n\t\tshell.setText(\"SiSi - Security-aware Event Log Generator\");\n\t\tshell.setImage(new Image(shell.getDisplay(), \"imgs/shell.png\"));\n\t\tshell.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\t\n\t\tMenu menu = new Menu(shell, SWT.BAR);\n\t\tshell.setMenuBar(menu);\n\t\t\n\t\tMenuItem mntmNewSubmenu = new MenuItem(menu, SWT.CASCADE);\n\t\tmntmNewSubmenu.setText(\"File\");\n\t\t\n\t\tMenu menu_1 = new Menu(mntmNewSubmenu);\n\t\tmntmNewSubmenu.setMenu(menu_1);\n\t\t\n\t\tMenuItem mntmOpenFile = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmOpenFile.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tFileDialog dialog = new FileDialog(shell, SWT.OPEN);\n\n\t\t\t\tString[] filterNames = new String[] { \"PNML\", \"All Files (*)\" };\n\t\t\t\tString[] filterExtensions = new String[] { \"*.pnml\", \"*\" };\n\t\t\t\tdialog.setFilterPath(System.getProperty(\"user.dir\"));\n\n\t\t\t\tdialog.setFilterNames(filterNames);\n\t\t\t\tdialog.setFilterExtensions(filterExtensions);\n\n\t\t\t\tString path = dialog.open();\n\t\t\t\tif( path != null ) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tgenerateConfigCompositeFor(path);\n\t\t\t\t\t} catch (ParserConfigurationException | SAXException | IOException exception) {\n\t\t\t\t\t\terrorMessageBox(\"Could not load File.\", exception);\n\t\t\t\t\t}\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tmntmOpenFile.setImage(new Image(shell.getDisplay(), \"imgs/open.png\"));\n\t\tmntmOpenFile.setText(\"Open File...\");\n\t\t\n\t\tMenuItem mntmOpenExample = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmOpenExample.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tgenerateConfigCompositeFor(\"examples/kbv.pnml\");\n\t\t\t\t\t} catch (ParserConfigurationException | SAXException | IOException exception) {\n\t\t\t\t\t\terrorMessageBox(\"Could not load Example.\", exception);\n\t\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tmntmOpenExample.setImage(new Image(shell.getDisplay(), \"imgs/example.png\"));\n\t\tmntmOpenExample.setText(\"Open Example\");\n\t\t\n\t\tMenuItem mntmNewItem = new MenuItem(menu_1, SWT.SEPARATOR);\n\t\tmntmNewItem.setText(\"Separator1\");\n\t\t\n\t\tMenuItem mntmExit = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmExit.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.getDisplay().dispose();\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t});\n\t\tmntmExit.setImage(new Image(shell.getDisplay(), \"imgs/exit.png\"));\n\t\tmntmExit.setText(\"Exit\");\n\t\t\n\t\tmainComposite = new ScrolledComposite(shell, SWT.H_SCROLL | SWT.V_SCROLL);\n\t\tmainComposite.setExpandHorizontal(true);\n\t\tmainComposite.setExpandVertical(true);\n\t\t\n\t\tactiveComposite = new Composite(mainComposite, SWT.NONE);\n\t\tGridLayout gl_activeComposite = new GridLayout(1, true);\n\t\tgl_activeComposite.marginWidth = 10;\n\t\tgl_activeComposite.marginHeight = 10;\n\t\tactiveComposite.setLayout(gl_activeComposite);\n\t\t\n\t\tLabel lblWelcomeToSisi = new Label(activeComposite, SWT.NONE);\n\t\tlblWelcomeToSisi.setFont(SWTResourceManager.getFont(\"Segoe UI\", 30, SWT.BOLD));\n\t\tGridData gd_lblWelcomeToSisi = new GridData(SWT.CENTER, SWT.CENTER, true, false, 1, 1);\n\t\tgd_lblWelcomeToSisi.verticalIndent = 50;\n\t\tlblWelcomeToSisi.setLayoutData(gd_lblWelcomeToSisi);\n\t\tlblWelcomeToSisi.setText(\"Welcome to SiSi!\");\n\t\t\n\t\tLabel lblSecurityawareEvent = new Label(activeComposite, SWT.NONE);\n\t\tlblSecurityawareEvent.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, true, false, 1, 1));\n\t\tlblSecurityawareEvent.setText(\"- A security-aware Event Log Generator -\");\n\t\t\n\t\tLabel lblToGetStarted = new Label(activeComposite, SWT.NONE);\n\t\tlblToGetStarted.setFont(SWTResourceManager.getFont(\"Segoe UI\", 11, SWT.ITALIC));\n\t\tGridData gd_lblToGetStarted = new GridData(SWT.CENTER, SWT.CENTER, true, false, 1, 1);\n\t\tgd_lblToGetStarted.verticalIndent = 150;\n\t\tlblToGetStarted.setLayoutData(gd_lblToGetStarted);\n\t\tlblToGetStarted.setText(\"To get started load a file or an example\");\n\t\t\n\t\tmainComposite.setContent(activeComposite);\n\t\tmainComposite.setMinSize(activeComposite.computeSize(SWT.DEFAULT, SWT.DEFAULT));\n\t}", "private void buildView() {\n this.setHeaderInfo(model.getHeaderInfo());\n\n CWButtonPanel buttonPanel = this.getButtonPanel();\n \n buttonPanel.add(saveButton);\n buttonPanel.add(saveAndCloseButton);\n buttonPanel.add(cancelButton);\n \n FormLayout layout = new FormLayout(\"pref, 4dlu, 200dlu, 4dlu, min\",\n \"pref, 2dlu, pref, 2dlu, pref, 2dlu, pref\"); // rows\n\n layout.setRowGroups(new int[][]{{1, 3, 5}});\n \n CellConstraints cc = new CellConstraints();\n this.getContentPanel().setLayout(layout);\n \n this.getContentPanel().add(nameLabel, cc.xy (1, 1));\n this.getContentPanel().add(nameTextField, cc.xy(3, 1));\n this.getContentPanel().add(descLabel, cc.xy(1, 3));\n this.getContentPanel().add(descTextField, cc.xy(3, 3));\n this.getContentPanel().add(amountLabel, cc.xy(1, 5));\n this.getContentPanel().add(amountTextField, cc.xy(3, 5));\n }", "private HorizontalPanel createContent() {\n\t\tfinal HorizontalPanel panel = new HorizontalPanel();\n\t\tfinal VerticalPanel form = new VerticalPanel();\n\t\tpanel.add(form);\n\t\t\n\t\tfinal Label titleLabel = new Label(CONSTANTS.actorLabel());\n\t\ttitleLabel.addStyleName(AbstractField.CSS.cbtAbstractPopupLabel());\n\t\tform.add(titleLabel);\n\t\t\n\t\tfinal Label closeButton = new Label();\n\t\tcloseButton.addClickHandler(new ClickHandler() {\n\t\t\t@Override\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tActorPopup.this.hide();\n\t\t\t}\n\t\t});\n\t\tcloseButton.addStyleName(AbstractField.CSS.cbtAbstractPopupClose());\n\t\tform.add(closeButton);\n\t\t\n\t\t//-----------------------------------------------\n\t\t// Party field\n\t\t//-----------------------------------------------\n\t\tpartyField = new SuggestField(this, null,\n\t\t\t\tnew NameIdAction(Service.PARTY),\n\t\t\t\tCONSTANTS.partynameLabel(),\n\t\t\t\t20,\n\t\t\t\ttab++);\n\t\tpartyField.setReadOption(Party.CREATED, true);\n\t\tpartyField.setDoubleclickable(true);\n\t\tpartyField.setHelpText(CONSTANTS.partynameHelp());\n\t\tform.add(partyField);\n\n\t\t//-----------------------------------------------\n\t\t// Email Address field\n\t\t//-----------------------------------------------\n\t\temailaddressField = new TextField(this, null,\n\t\t\t\tCONSTANTS.emailaddressLabel(),\n\t\t\t\ttab++);\n\t\temailaddressField.setMaxLength(100);\n\t\temailaddressField.setHelpText(CONSTANTS.emailaddressHelp());\n\t\tform.add(emailaddressField);\n\n\t\t//-----------------------------------------------\n\t\t// Password field\n\t\t//-----------------------------------------------\n\t\tpasswordField = new PasswordField(this, null,\n\t\t\t\tCONSTANTS.passwordLabel(),\n\t\t\t\ttab++);\n\t\tpasswordField.setSecure(true);\n\t\tpasswordField.setHelpText(CONSTANTS.passwordHelp());\n\t\tform.add(passwordField);\n\n\t\t//-----------------------------------------------\n\t\t// Check Password field\n\t\t//-----------------------------------------------\n\t\tcheckpasswordField = new PasswordField(this, null,\n\t\t\t\tCONSTANTS.checkpasswordLabel(),\n\t\t\t\ttab++);\n\t\tcheckpasswordField.setSecure(true);\n\t\tcheckpasswordField.setHelpText(CONSTANTS.checkpasswordHelp());\n\t\tform.add(checkpasswordField);\n\n\t\t//-----------------------------------------------\n\t\t// Date Format field\n\t\t//-----------------------------------------------\n\t\tformatdateField = new ListField(this, null,\n\t\t\t\tNameId.getList(Party.DATE_FORMATS, Party.DATE_FORMATS),\n\t\t\t\tCONSTANTS.formatdateLabel(),\n\t\t\t\tfalse,\n\t\t\t\ttab++);\n\t\tformatdateField.setDefaultValue(Party.MM_DD_YYYY);\n\t\tformatdateField.setFieldHalf();\n\t\tformatdateField.setHelpText(CONSTANTS.formatdateHelp());\n\t\t\n\t\t//-----------------------------------------------\n\t\t// Phone Format field\n\t\t//-----------------------------------------------\n\t\tformatphoneField = new TextField(this, null,\n\t\t\t\tCONSTANTS.formatphoneLabel(),\n\t\t\t\ttab++);\n\t\tformatphoneField.setMaxLength(25);\n\t\tformatphoneField.setFieldHalf();\n\t\tformatphoneField.setHelpText(CONSTANTS.formatphoneHelp());\n\n\t\tHorizontalPanel ff = new HorizontalPanel();\n\t\tff.add(formatdateField);\n\t\tff.add(formatphoneField);\n\t\tform.add(ff);\n\t\t\n\t\t//-----------------------------------------------\n\t\t// Roles option selector\n\t\t//-----------------------------------------------\n\t\trolesField = new OptionField(this, null,\n\t\t\t\tAbstractRoot.hasPermission(AccessControl.AGENCY) ? getAgentroles() : getOrganizationroles(),\n\t\t\t\tCONSTANTS.roleLabel(),\n\t\t\t\ttab++);\n\t\trolesField.setHelpText(CONSTANTS.roleHelp());\n\t\tform.add(rolesField);\n\n\t\tform.add(createCommands());\n\t\t\n\t\tonRefresh();\n\t\tonReset(Party.CREATED);\n\t\treturn panel;\n\t}", "protected abstract JDialog createDialog();", "private final void createContents() {\n\t\tthis.shell = new Shell(this.getParent(), getStyle());\n\t\tthis.shell.setSize(450, 140);\n\t\tthis.shell.addTraverseListener(new TraverseListener() {\n\t\t\t@Override\n\t\t\tpublic void keyTraversed(TraverseEvent e) {\n\t\t\t\tif(e.character == SWT.ESC) {\n\t\t\t\t\te.doit = false;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tthis.shell.setText(\"Rename file - \" + this.getParent().getText());\n\t\tthis.shell.addShellListener(new ShellAdapter() {\n\t\t\t@Override\n\t\t\tpublic void shellClosed(ShellEvent e) {\n\t\t\t\te.doit = false;\n\t\t\t\tRenameFileDialog.this.result = Response.CLOSE;\n\t\t\t}\n\t\t});\n\t\tFunctions.centerShell2OnShell1(getParent(), this.shell);\n\t\tthis.shell.setImages(Main.getShellImages());\n\t\t\n\t\tLabel lblPleaseChooseA = new Label(this.shell, SWT.BORDER | SWT.WRAP);\n\t\tlblPleaseChooseA.setBounds(10, 10, 424, 40);\n\t\tlblPleaseChooseA.setText(\"Please choose a new name for the file \\\"\" + this.originalName + \"\\\":\");\n\t\t\n\t\tButton btnDone = new Button(this.shell, SWT.NONE);\n\t\tbtnDone.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tRenameFileDialog.this.renameTo = RenameFileDialog.this.text.getText();\n\t\t\t\tRenameFileDialog.this.result = Response.DONE;\n\t\t\t}\n\t\t});\n\t\tbtnDone.setBounds(10, 81, 209, 23);\n\t\tbtnDone.setText(\"Done\");\n\t\t\n\t\tButton btnCancel = new Button(this.shell, SWT.NONE);\n\t\tbtnCancel.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tRenameFileDialog.this.renameTo = RenameFileDialog.this.originalName;\n\t\t\t\tRenameFileDialog.this.result = Response.CANCEL;\n\t\t\t}\n\t\t});\n\t\tbtnCancel.setBounds(225, 81, 209, 23);\n\t\tbtnCancel.setText(\"Cancel\");\n\t\t\n\t\tthis.text = new Text(this.shell, SWT.BORDER);\n\t\tthis.text.setBounds(10, 56, 424, 19);\n\t\tthis.text.setText(this.originalName);\n\t\tthis.text.selectAll();\n\t}", "public void createContents(Composite parent) {\n\t\tparent.setLayout(new FillLayout());\n\t\tfMainSection = fToolkit.createSection(parent, Section.TITLE_BAR);\n\n\t\tComposite mainComposite = fToolkit.createComposite(fMainSection, SWT.NONE);\n\t\tfToolkit.paintBordersFor(mainComposite);\n\t\tfMainSection.setClient(mainComposite);\n\t\tmainComposite.setLayout(new GridLayout(1, true));\n\t\t\n\t\tcreateClassListViewer(mainComposite);\n\t\tcreateBottomButtons(mainComposite);\n\t\tcreateTextClientComposite(fMainSection);\n\t}", "public void openDialogCreateVisual(){\n DataHeader[] tabHeader = dataset.getListDataHeaderDouble(true);\n TypeVisualization[] tabVis = getListTypeVisualization(tabHeader.length);\n DataHeader[] tabHeaderLabel = dataset.getListDataHeaderDouble(false);\n CreateDataVisualDialog dialog = new CreateDataVisualDialog(this, tabVis, tabHeader, tabHeaderLabel);\n dialog.setVisible(true);\n }", "protected void createContents() {\n\t\tmainShell = new Shell();\n\t\tmainShell.addDisposeListener(new DisposeListener() {\n\t\t\tpublic void widgetDisposed(DisposeEvent arg0) {\n\t\t\t\tLastValueManager manager = LastValueManager.getInstance();\n\t\t\t\tmanager.setLastAppEngineDirectory(mGAELocation.getText());\n\t\t\t\tmanager.setLastProjectDirectory(mAppRootDir.getText());\n\t\t\t\tmanager.setLastPythonBinDirectory(txtPythonLocation.getText());\n\t\t\t\tmanager.save();\n\t\t\t}\n\t\t});\n\t\tmainShell.setSize(460, 397);\n\t\tmainShell.setText(\"Google App Engine Launcher\");\n\t\tmainShell.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tComposite mainComposite = new Composite(mainShell, SWT.NONE);\n\t\tmainComposite.setLayout(new GridLayout(1, false));\n\t\t\n\t\tComposite northComposite = new Composite(mainComposite, SWT.NONE);\n\t\tnorthComposite.setLayoutData(new GridData(SWT.FILL, SWT.TOP, false, false, 1, 1));\n\t\tGridLayout gl_northComposite = new GridLayout(1, false);\n\t\tgl_northComposite.verticalSpacing = 1;\n\t\tnorthComposite.setLayout(gl_northComposite);\n\t\t\n\t\tComposite pythonComposite = new Composite(northComposite, SWT.NONE);\n\t\tpythonComposite.setLayout(new GridLayout(2, false));\n\t\t\n\t\tLabel lblPython = new Label(pythonComposite, SWT.NONE);\n\t\tlblPython.setText(\"Python : \");\n\t\t\n\t\ttxtPythonLocation = new Text(pythonComposite, SWT.BORDER);\n\t\ttxtPythonLocation.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\n\t\ttxtPythonLocation.setText(\"/usr/bin/python2.7\");\n\t\t\n\t\tLabel lblGaeLocation = new Label(pythonComposite, SWT.NONE);\n\t\tlblGaeLocation.setText(\"GAE Location :\");\n\t\t\n\t\tmGAELocation = new Text(pythonComposite, SWT.BORDER);\n\t\tmGAELocation.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\n\t\tmGAELocation.setText(\"/home/zelon/Programs/google_appengine\");\n\t\t\n\t\tLabel lblProject = new Label(pythonComposite, SWT.NONE);\n\t\tlblProject.setText(\"Project : \");\n\t\t\n\t\tmAppRootDir = new Text(pythonComposite, SWT.BORDER);\n\t\tmAppRootDir.setSize(322, 27);\n\t\tmAppRootDir.setText(\"/home/zelon/workspaceIndigo/box.wimy.com\");\n\t\t\n\t\tComposite ActionComposite = new Composite(northComposite, SWT.NONE);\n\t\tActionComposite.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));\n\t\tActionComposite.setLayout(new GridLayout(2, true));\n\t\t\n\t\tButton btnTestServer = new Button(ActionComposite, SWT.NONE);\n\t\tGridData gd_btnTestServer = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\n\t\tgd_btnTestServer.widthHint = 100;\n\t\tbtnTestServer.setLayoutData(gd_btnTestServer);\n\t\tbtnTestServer.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tmExecuter.startTestServer(getPythonLocation(), mGAELocation.getText(), mAppRootDir.getText(), 8080);\n\t\t\t}\n\t\t});\n\t\tbtnTestServer.setText(\"Test Server\");\n\t\t\n\t\tButton btnDeploy = new Button(ActionComposite, SWT.NONE);\n\t\tGridData gd_btnDeploy = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\n\t\tgd_btnDeploy.widthHint = 100;\n\t\tbtnDeploy.setLayoutData(gd_btnDeploy);\n\t\tbtnDeploy.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tmExecuter.deploy(getPythonLocation(), mGAELocation.getText(), mAppRootDir.getText());\n\t\t\t}\n\t\t});\n\t\tbtnDeploy.setText(\"Deploy\");\n\t\tActionComposite.setTabList(new Control[]{btnTestServer, btnDeploy});\n\t\tnorthComposite.setTabList(new Control[]{ActionComposite, pythonComposite});\n\t\t\n\t\tComposite centerComposite = new Composite(mainComposite, SWT.NONE);\n\t\tGridData gd_centerComposite = new GridData(SWT.FILL, SWT.FILL, false, false, 1, 1);\n\t\tgd_centerComposite.heightHint = 200;\n\t\tcenterComposite.setLayoutData(gd_centerComposite);\n\t\tcenterComposite.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tlog = new StyledText(centerComposite, SWT.BORDER | SWT.V_SCROLL);\n\t\tlog.setAlignment(SWT.CENTER);\n\t}", "public abstract void createContents(Panel mainPanel);", "protected void createContents(String value) {\n\t\tshlResult = new Shell(SWT.CLOSE | SWT.MIN | SWT.TITLE);\n\t\tshlResult.setSize(762, 532);\n\t\tshlResult.setText(title);\n\t\t\n\t\tComposite composite = new Composite(shlResult, SWT.NONE);\n\t\tcomposite.setBounds(0, 0, 746, 494);\n\t\t\n\t\ttext = new StyledText(composite, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL | SWT.MULTI);\n\t\ttext.setBounds(0, 0, 750, 500);\n\t\ttext.setText(value);\n\t\ttext.setKeyBinding('A'| SWT.CONTROL, ST.SELECT_ALL);\n\t\ttext.setKeyBinding('C' | SWT.CONTROL, ST.COPY);\n\t\ttext.setKeyBinding('V' | SWT.CONTROL, ST.PASTE);\n\t\ttext.setKeyBinding('X' | SWT.CONTROL, ST.CUT);\n\n\t}", "protected void createContents() {\r\n\t\tshell = new Shell(SWT.APPLICATION_MODAL|SWT.CLOSE);\r\n\t\tshell.setSize(800, 600);\r\n\t\tshell.setText(\"租借/归还车辆\");\r\n\t\tshell.setBackgroundMode(SWT.INHERIT_DEFAULT);\r\n\r\n\t\t/**换肤功能已经实现*/\r\n\t\tString bgpath = ChangeSkin.getCurrSkin();\r\n\t\tInputStream bg = this.getClass().getResourceAsStream(bgpath);\r\n\t\t\r\n\t\tInputStream reimg = this.getClass().getResourceAsStream(\"/Img/icon1.png\");\r\n\t\tshell.setBackgroundImage(new Image(display,bg));\r\n\t\tshell.setImage(new Image(display, reimg));\r\n\t\t\r\n\t\t\r\n\t\tLabel label = new Label(shell, SWT.NONE);\r\n\t\tlabel.setBounds(52, 48, 168, 20);\r\n\t\tlabel.setText(\"\\u8BF7\\u60A8\\u8BA4\\u771F\\u586B\\u5199\\u79DF\\u8D41\\u4FE1\\u606F:\");\r\n\t\t\r\n\t\tLabel lblid = new Label(shell, SWT.NONE);\r\n\t\tlblid.setBounds(158, 180, 61, 20);\r\n\t\tlblid.setText(\"\\u8F66\\u8F86ID\");\r\n\t\t\r\n\t\tui_car_id = new Text(shell, SWT.BORDER);\r\n\t\tui_car_id.setBounds(225, 177, 129, 26);\r\n\t\t\r\n\t\tui_renter = new Text(shell, SWT.BORDER);\r\n\t\tui_renter.setBounds(225, 228, 129, 26);\r\n\t\t\r\n\t\tLabel label_1 = new Label(shell, SWT.NONE);\r\n\t\tlabel_1.setBounds(159, 231, 61, 20);\r\n\t\tlabel_1.setText(\"\\u79DF\\u8D41\\u4EBA\");\r\n\t\t\r\n\t\tDateTime ui_start = new DateTime(shell, SWT.BORDER);\r\n\t\tui_start.setBounds(225, 271, 129, 28);\r\n\t\t\r\n\t\tLabel label_2 = new Label(shell, SWT.NONE);\r\n\t\tlabel_2.setBounds(144, 271, 76, 20);\r\n\t\tlabel_2.setText(\"\\u5F00\\u59CB\\u65F6\\u95F4\");\r\n\t\t\r\n\t\tLabel label_3 = new Label(shell, SWT.NONE);\r\n\t\tlabel_3.setBounds(144, 326, 76, 20);\r\n\t\tlabel_3.setText(\"\\u7ED3\\u675F\\u65F6\\u95F4\");\r\n\t\t\r\n\t\tLabel label_4 = new Label(shell, SWT.NONE);\r\n\t\tlabel_4.setBounds(559, 97, 76, 20);\r\n\t\tlabel_4.setText(\"\\u5F53\\u524D\\u8D39\\u7528:\");\r\n\t\t\r\n\t\tLabel ui_count_price = new Label(shell, SWT.BORDER | SWT.CENTER);\r\n\t\tui_count_price.setFont(SWTResourceManager.getFont(\"Microsoft YaHei UI\", 16, SWT.NORMAL));\r\n\t\tui_count_price.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\r\n\t\tui_count_price.setBounds(539, 205, 156, 77);\r\n\t\tui_count_price.setText(\"0.00\");\r\n\t\t\r\n\t\tDateTime ui_end = new DateTime(shell, SWT.BORDER);\r\n\t\tui_end.setBounds(225, 318, 129, 28);\r\n\t\t\r\n\t\tButton button = new Button(shell, SWT.NONE);\r\n\t\tbutton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tRentService rentser = new RentService();\r\n\t\t\t\tdouble day_pri = rentser.rentPrice(ui_car_id.getText());\r\n\t\t\t\t/*当前仅能计算一个月以内的租用情况\r\n\t\t\t\t * @Time 10/09/15.03\r\n\t\t\t\t * \r\n\t\t\t\t * **/\r\n\t\t\t\t//不管当月几天,都按照30天计算\r\n\t\t\t\tint month = ui_end.getMonth()-ui_start.getMonth();\r\n\t\t\t\tint day = (ui_end.getDay() - ui_start.getDay()) +\r\n\t\t\t\t\t\tmonth * 30\r\n\t\t\t\t\t\t;\r\n\t\t\t\tif(day_pri > 0) {\r\n\t\t\t\t\tui_count_price.setText(String.valueOf(day*day_pri));\r\n\t\t\t\t}else {\r\n\t\t\t\t\tui_count_price.setText(\"数据非法\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton.setBounds(122, 393, 141, 30);\r\n\t\tbutton.setText(\"\\u4F30\\u7B97\\u5F53\\u524D\\u79DF\\u8D41\\u4EF7\\u683C\");\r\n\t\t\r\n\t\tButton button_1 = new Button(shell, SWT.NONE);\r\n\t\tbutton_1.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tRentService rentService = new RentService();\r\n\t\t\t\tString sdate = ui_start.getDay()+\"-\"+ui_start.getMonth()+\"月-\"+ui_start.getYear();\r\n\t\t\t\tString edate = ui_end.getDay()+\"-\"+ui_end.getMonth()+\"月-\"+ui_end.getYear();\r\n\t\t\t\t/**这个地方可能有问题*/\r\n\t\t\t\tboolean rentCar = rentService.rentCar(ui_car_id.getText(),sdate , edate, ui_count_price.getText());\r\n\t\t\t\tif(rentCar) {\r\n\t\t\t\t\tui_count_price.setText(\"租借成功!\");\r\n\t\t\t\t\t/**租借成功,就该让信息表中的数据减1**/\r\n\t\t\t\t\tCarService cars = new CarService();\r\n\t\t\t\t\tcars.minusCar(ui_car_id.getText());\r\n\t\t\t\t}else {\r\n\t\t\t\t\tui_count_price.setText(\"租借失败!\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton_1.setBounds(292, 393, 98, 30);\r\n\t\tbutton_1.setText(\"\\u79DF\\u501F\");\r\n\t\t\r\n\t\r\n\r\n\t}", "private void createAndShowDialog(final String message, final String title) {\n final AlertDialog.Builder builder = new AlertDialog.Builder(getActivity ());\n\n builder.setMessage(message);\n builder.setTitle(title);\n builder.create().show();\n }", "public JComponent createContentPanel() {\n\t\tFormLayout layout = new FormLayout(\"p,3dlu,p,3dlu\", // cols //$NON-NLS-1$\n\t\t\t\t\"p,10dlu,p,10dlu\"); // rows //$NON-NLS-1$\n\n\t\t// Create a builder that assists in adding components to the container.\n\t\t// Wrap the panel with a standardized border.\n\t\tDefaultFormBuilder builder = new DefaultFormBuilder(layout);\n\t\tbuilder.setDefaultDialogBorder();\n\n\t\tCellConstraints cc = new CellConstraints();\n\t\tJEditorPane l=new JEditorPane(\"text/html\",Messages.getString(\"LicenseDialog.Email\"));\n\t\tl.setEditable(false);\n\t\tl.setOpaque(false);\n\t\tl.setFont(l.getFont().deriveFont(Font.PLAIN));\n\t\tJLabel emailLabel=new JLabel(Messages.getString(\"LicenseDialog.EmailLabel\")+\":\");\n\t\t//emailLabel.setFont(emailLabel.getFont().deriveFont(Font.PLAIN));\n\t\tbuilder.add(l,cc.xyw(1,1, 4));\n\t\tbuilder.nextLine(2);\n\t\tbuilder.append(emailLabel,email);\n\t\tbuilder.nextLine(2);\n\n\t\tJComponent result = builder.getPanel();\n\t\treturn result;\n\t}", "public JComponent createContentPanel() {\n\t\t// Separating the component initialization and configuration\n\t\t// from the layout code makes both parts easier to read.\n\t\tinitControls();\n\t\t//TODO set minimum size\n\t\tFormLayout layout = new FormLayout(\"default, 3dlu, default\", // cols\n\t\t\t\t\"p, 3dlu,p, 3dlu, p, 3dlu, p, 3dlu, p, 3dlu\"); // rows\n\t\tDefaultFormBuilder builder = new DefaultFormBuilder(layout);\n\t\tbuilder.setDefaultDialogBorder();\n\t\tCellConstraints cc = new CellConstraints();\n\t\t\n\t\tIterator l=labels.iterator();\n\t\tIterator c=valueComponents.iterator();\n\t\twhile (l.hasNext()){\n\t\t String name=(String)l.next();\n\t\t JComponent comp=(JComponent)c.next();\n\t\t builder.append(name,comp);\n\t\t builder.nextLine(2);\n\t\t}\n\t\treturn builder.getPanel();\n\t}", "protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setSize(450, 300);\r\n\t\tshell.setText(\"带进度条的表\");\r\n\t\tshell.setLayout(new FillLayout());\r\n\r\n\t\tTable table = new Table(shell, SWT.BORDER);\r\n\t\ttable.setHeaderVisible(true);\r\n\t\ttable.setLinesVisible(true);\r\n\r\n//\t\t两列\r\n\t\tfor (int i = 0; i < 2; i++) {\r\n\t\t\tnew TableColumn(table, SWT.NONE);\r\n\t\t}\r\n\t\ttable.getColumn(0).setText(\"Task\");\r\n\t\ttable.getColumn(1).setText(\"Progress\");\r\n\r\n//\t\t四十行\r\n\t\tfor (int i = 0; i < 40; i++) {\r\n\t\t\tTableItem item = new TableItem(table, SWT.NONE);\r\n\t\t\titem.setText(\"Task \" + i);\r\n//\t\t\t行数为5的倍数时添加进度条\r\n\t\t\tif (i % 5 == 0) {\r\n\t\t\t\tProgressBar bar = new ProgressBar(table, SWT.NONE);\r\n\t\t\t\tbar.setSelection(i); // 进度条显示的百分比\r\n\t\t\t\tTableEditor editor = new TableEditor(table);\r\n\t\t\t\teditor.grabHorizontal = editor.grabVertical = true; // 宽度高度同表格\r\n\t\t\t\teditor.setEditor(bar, item, 1); // 在表格上方显示进度条\r\n\t\t\t}\r\n\t\t}\r\n\t\ttable.getColumn(0).pack();\r\n\t\ttable.getColumn(1).setWidth(128);\r\n\r\n\t\tshell.pack();\r\n\t}", "protected Control createDialogArea(Composite parent) {\n\t\t//Composite composite = (Composite) super.createDialogArea(parent);\n\t\tComposite composite = new Composite(parent, SWT.NULL);\n\t\t\n\t\tGridLayout layout = new GridLayout(5, false);\n\t\tlayout.marginWidth = 15;\n\t\tlayout.marginHeight = 10;\n\t\tlayout.verticalSpacing = 8;\n\t\tcomposite.setLayout(layout);\n\t\t\n\t\tLabel l;\n\t\tGridData gridData;\n\t\t\n\t\tl = new Label(composite, SWT.NONE);\n\t\tl.setText(\"Fecha:\");\n\t\ttxtFecha = new Text(composite, SWT.BORDER);\n\t\tgridData = new GridData(60,15);\n\t\ttxtFecha.setLayoutData(gridData);\n\t\t//txtFecha.addKeyListener(this.crearKeyAdapter(txtFecha)); // calendar ya incluye esto\n\t\t\n\t\tbFecha = new Button(composite, SWT.NONE);\n\t\tgridData = new GridData(16,16);\n\t\t//gridData.horizontalSpan = 2;\n\t\tbFecha.setLayoutData(gridData);\n\t\timage = AbstractUIPlugin.imageDescriptorFromPlugin(pluginId, IImageKeys.CALENDARIO);\n\t\tbFecha.setImage(image.createImage());\n\t\tbFecha.addSelectionListener(this.crearCalendario(shell, txtFecha));\n\n\t\tfinal Label labelNoches = new Label(composite, SWT.NONE);\n\t\tlabelNoches.setText(\"Cantidad:\");\n\t\t\n\t\tComposite compQty = new Composite(composite, SWT.NONE);\n\t\tlayout = new GridLayout(3, false);\n\t\tlayout.marginWidth = 0;\n\t\tcompQty.setLayout(layout);\n\t\t\n\t\ttxtCantidad = new Text(compQty, SWT.BORDER);\n\t\tgridData = new GridData(25,15);\n\t\ttxtCantidad.setLayoutData(gridData);\n\t\t\n\t\tfinal Label labelEspacios = new Label(compQty, SWT.NONE);\n\t\tlabelEspacios.setText(\"PAX(s):\");\n\t\tlabelEspacios.setAlignment(SWT.RIGHT);\n\t\tgridData = new GridData(45, 15);\n\t\tgridData.horizontalIndent = 10;\n\t\tlabelEspacios.setLayoutData(gridData);\n\t\ttxtEspacios = new Text(compQty, SWT.BORDER);\n\t\ttxtEspacios.setLayoutData(new GridData(25,15));\n\t\t\n\t\tl = new Label(composite, SWT.NONE);\n\t\tl.setText(\"Tipo:\");\n\t\tcomboTipo = new Combo(composite, SWT.READ_ONLY);\n\t\tgridData = new GridData();\n\t\tgridData.widthHint = 120;\n\t\tgridData.horizontalSpan = 2;\n\t\tcomboTipo.setLayoutData(gridData);\n\t\tcdTipoProductos = cdController.getComboDataTipoProductos();\n\t\tcomboTipo.setItems(cdTipoProductos.getTexto());\n\t\tcomboTipo.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tint indice = comboTipo.getSelectionIndex();\n\t\t\t\tif (indice != -1) {\n\t\t\t\t\tLong seleccionado = cdTipoProductos.getKeyAsLongByIndex(indice);\n\t\t\t\t\tproductos.filtrarByTipo(seleccionado, true); // eliminamos cualquier filtro previo\n\t\t\t\t}\n\t\t\t\tcomboProducto.setItems(productos.getTexto());\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\tl = new Label(composite, SWT.NONE);\n\t\tl.setText(\"Actividad:\");\n\t\tcomboProducto = new Combo(composite, SWT.READ_ONLY);\n\t\tgridData = new GridData();\n\t\tgridData.widthHint = 150;\n\t\tcomboProducto.setLayoutData(gridData);\n\t\t/*\n\t\tcomboProducto.addSelectionListener(new SelectionListener() {\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent e) {\n\t\t\t\tSystem.out.println(\"widgetDefSel: \" + comboProducto.getText());\n\t\t\t}\n\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tSystem.out.println(\"widgetSelected: \" + comboProducto.getText());\t\n\t\t\t}\n\t\t});\n\t\tcomboProducto.addModifyListener(new ModifyListener() {\n\t\t\tpublic void modifyText(ModifyEvent e) {\n\t\t\t\tSystem.out.println(\"modifyText: \" + comboProducto.getText());\t\n\t\t\t}\n\t\t});\n\t\t*/\n\t\t\n\t\tcomboProducto.addModifyListener(new ModifyListener() {\n\t\t\tpublic void modifyText(ModifyEvent e) {\n\t\t\t\tif (!comboProducto.getText().equals(\"\")) {\n\t\t\t\t\tLong idProducto = productos.getIdProductoByName(comboProducto.getText());\n\t\t\t\t\tProducto p = productos.getProductoByIdProducto(idProducto);\n\t\t\t\t\tString tipoReserva = p.getTipoReserva();\n\t\t\t\t\tisRecursoAEP = p.isHotelAEP();\n\t\t\t\t\tisModificable = p.isModificable();\n\t\t\t\t\tprecioMinimo = p.getPrecioMinimo();\n\t\t\t\t\tSystem.out.println(\"Minimo: \" + precioMinimo);\n\t\t\t\t\tif (tipoReserva.equals(\"Hotel\") || tipoReserva.equals(\"Hospedaje\")) {\n\t\t\t\t\t\tlabelNoches.setText(\"Noche(s):\");\n\t\t\t\t\t\tlabelNoches.pack();\n\t\t\t\t\t\tlabelNoches.redraw();\n\t\t\t\t\t\tlabelEspacios.setText(\"Room(s):\");\n\t\t\t\t\t\tlabelEspacios.pack();\n\t\t\t\t\t\tlabelEspacios.redraw();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tlabelNoches.setText(\"Cantidad:\");\n\t\t\t\t\t\tlabelNoches.pack();\n\t\t\t\t\t\tlabelNoches.redraw();\n\t\t\t\t\t\tlabelEspacios.setText(\"PAX(s):\");\n\t\t\t\t\t\tlabelEspacios.setAlignment(SWT.RIGHT);\n\t\t\t\t\t\tlabelEspacios.pack();\n\t\t\t\t\t\tlabelEspacios.redraw();\n\t\t\t\t\t}\n\t\t\t\t\tlistaTipoPrecio.setEnabled(true);\n\t\t\t\t\tlistaTipoPrecio.deselectAll();\n\t\t\t\t\ttxtPrecio.setText(\"\");\n\t\t\t\t\ttxtPrecio.setEditable(isModificable == null ? false : isModificable.booleanValue());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\t/*\n\t\tcomboProducto.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tint idProducto = productos.getIdProductoByName(comboProducto.getText());\n\t\t\t\tProducto p = productos.getProductoByIdProducto(idProducto);\n\t\t\t\tString tipoReserva = p.getTipoReserva();\n\t\t\t\tif (tipoReserva.equals(\"Hotel\") || tipoReserva.equals(\"Hospedaje\")) {\n\t\t\t\t\tlabelNoches.setText(\"Noche(s):\");\n\t\t\t\t\tlabelNoches.pack();\n\t\t\t\t\tlabelNoches.redraw();\n\t\t\t\t\tlabelEspacios.setText(\"Room(s):\");\n\t\t\t\t\tlabelEspacios.pack();\n\t\t\t\t\tlabelEspacios.redraw();\n\t\t\t\t} else {\n\t\t\t\t\tlabelNoches.setText(\"Cantidad:\");\n\t\t\t\t\tlabelNoches.pack();\n\t\t\t\t\tlabelNoches.redraw();\n\t\t\t\t\tlabelEspacios.setText(\"PAXs:\");\n\t\t\t\t\tlabelEspacios.setAlignment(SWT.RIGHT);\n\t\t\t\t\tlabelEspacios.pack();\n\t\t\t\t\tlabelEspacios.redraw();\n\t\t\t\t}\n\t\t\t\tlistaTipoPrecio.setEnabled(true);\n\t\t\t\tlistaTipoPrecio.deselectAll();\n\t\t\t\ttxtPrecio.setText(\"\");\n\t\t\t}\n\t\t});\n\t\t*/\n\t\t\n\t\tl = new Label(composite, SWT.NONE);\n\t\tl.setText(\"Tipo de precio:\");\n\t\tgridData = new GridData();\n\t\tgridData.verticalAlignment = SWT.TOP;\n\t\tgridData.verticalIndent = 3;\n\t\tl.setLayoutData(gridData);\n\t\tgridData = new GridData();\n\t\tgridData.widthHint = 75;\n\t\tgridData.horizontalSpan = 2;\n\n\t\tlistaTipoPrecio = new List(composite, SWT.SINGLE | SWT.BORDER);\n\t\tlistaTipoPrecio.setLayoutData(gridData);\n\t\tlistaTipoPrecio.setItems(new String[] {\"Comisionable\", \"Operador\", \"Público\"});\n\t\tlistaTipoPrecio.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tobtenerPrecio(listaTipoPrecio.getSelection()[0]);\n\t\t\t}\n\t\t});\n\t\t\n\t\tl = new Label(composite, SWT.NONE);\n\t\tl.setText(\"Precio:\");\n\t\tgridData = new GridData();\n\t\tgridData.verticalAlignment = SWT.TOP;\n\t\tgridData.verticalIndent = 3;\n\t\tl.setLayoutData(gridData);\n\t\t\n\t\tComposite compPrecio = new Composite(composite, SWT.NONE);\n\t\tlayout = new GridLayout(3, false);\n\t\tlayout.marginWidth = 0;\n\t\tlayout.marginHeight = 0;\n\t\tcompPrecio.setLayout(layout);\n\t\tgridData = new GridData();\n\t\tgridData.verticalAlignment = SWT.TOP;\n\t\tcompPrecio.setLayoutData(gridData);\n\t\t\n\t\ttxtPrecio = new Text(compPrecio, SWT.BORDER);\n\t\ttxtPrecio.setEditable(false);\n\t\tgridData = new GridData(50,15);\n\t\tgridData.verticalAlignment = SWT.TOP;\n\t\ttxtPrecio.setLayoutData(gridData);\n\n\t\tButton bCuadrar = new Button(compPrecio, SWT.PUSH);\n\t\tgridData = new GridData(12,16);\n\t\tbCuadrar.setLayoutData(gridData);\n\t\timage = AbstractUIPlugin.imageDescriptorFromPlugin(pluginId, \"icons/cuadrar.gif\");\n\t\tbCuadrar.setImage(image.createImage());\n\t\tbCuadrar.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tSystem.out.println(\"Botón de cuadrar...\");\n\t\t\t\tcuadrarCotizacion();\n\t\t\t}\n\t\t});\t\n\t\t\n\t\tbVisible = new Button(compPrecio, SWT.CHECK);\n\t\tbVisible.setText(\"Visible\");\n\t\tgridData = new GridData();\n\t\tgridData.horizontalIndent = 15;\n\t\tbVisible.setLayoutData(gridData);\n\t\t\n\t\tl = new Label(composite, SWT.NONE);\n\t\tl.setText(\"Comentarios:\");\n\t\tgridData = new GridData();\n\t\tgridData.verticalAlignment = SWT.TOP;\n\t\tgridData.verticalIndent = 3;\n\t\tl.setLayoutData(gridData);\n\t\ttxtComentario = new Text(composite, SWT.BORDER | SWT.MULTI | SWT.V_SCROLL | SWT.WRAP);\n\t\tgridData = new GridData(GridData.FILL, GridData.CENTER, false, false);\n\t\tgridData.horizontalSpan = 4;\n\t\tgridData.heightHint = 40;\n\t\ttxtComentario.setLayoutData(gridData);\n\t\t\n\t\tl = new Label(composite, SWT.NONE);\n\t\t\n\t\tl = new Label(composite, SWT.NONE);\n\t\tl.setText(\"Un \\\"*\\\" al inicio del comentario mostrará el mismo en el PDF de la cotización.\");\n\t\tgridData = new GridData();\n\t\tgridData.horizontalSpan = 4;\n\t\tl.setLayoutData(gridData);\n\t\t\n\t\tl = new Label(composite, SWT.NONE);\n\t\t\n\t\tl = new Label(composite, SWT.SEPARATOR | SWT.HORIZONTAL);\n\t gridData = new GridData(GridData.FILL, GridData.CENTER, false, false);\n\t\tgridData.heightHint = 10;\n\t\tgridData.horizontalSpan = 5;\n\t\tl.setLayoutData(gridData);\n\n\t\tllenarCampos();\n\t\t\n\t\treturn composite;\n\t}", "public void addContent() {\n ScrollPane mySP = new ScrollPane();\n myContent = new SaveForm(myManager);\n mySP.setContent(myContent);\n mySP.setPrefSize(size, size);\n myRoot.getChildren().add(mySP);\n }", "@Override\r\n\tprotected Control createDialogArea(Composite parent) {\n\t\tComposite container = (Composite) super.createDialogArea(parent);\r\n\t\tGridData dGrid = new GridData();\r\n\t\tdGrid.horizontalSpan = 180;\r\n\t\tdGrid.horizontalAlignment = GridData.FILL;\r\n\t\tcontainer.setLayoutData(dGrid);\r\n\t\t\r\n\t\tnameLabel = new Label(container,SWT.LEFT);\r\n\t\tnameLabel = new Label(container,SWT.LEFT);\r\n\t\tString labelText = \"Most of the features for SimplifIDE require knowledge of the project structure.\\r\\n\";\r\n\t\tlabelText += \"Currently you are editting a file outside of the project where many features will not work properly.\\r\\n\";\r\n\t\tlabelText += \"Instructions for setting up your project can be found at http://simplifide.com/html2/project_structure/simplifide_structure.htm, or\\r\\n\";\r\n\t\tlabelText += \"for a simple project only containing rtl files at http://simplifide.com/html2/getting_started/simple_suite.htm.\\r\\n\";\r\n\t\tnameLabel.setText(labelText);\r\n\t\t\r\n\t\tthis.ONESHOT = true;\r\n\t\t\r\n\t\treturn container;\r\n\t}", "private void createContents() {\r\n\t\tshell = new Shell(getParent(), SWT.RESIZE | SWT.TITLE);\r\n\t\tshell.setSize(690, 436);\r\n\t\t\r\n\t\tDimension scrSize = Toolkit.getDefaultToolkit().getScreenSize();\r\n\t\tint w = 690;\r\n\t\tint h = 436;\r\n\t\tshell.setBounds((int)(scrSize.width-w)/2,(int)(scrSize.height-h)/2,w, h);\r\n\t\tshell.setText(getText());\r\n\r\n\t\t\r\n\t\tloadData();\r\n\t\t\r\n\t\tviewer = new TableViewer(shell,SWT.FULL_SELECTION |SWT.MULTI |SWT.BORDER);\r\n\t\t\r\n\t\tfinal Table table = viewer.getTable();\r\n\t\ttable.setBounds(23, 53, 638, 285);\r\n\t\ttable.setLinesVisible(true);\r\n\t\ttable.setHeaderVisible(true);\r\n\t\ttable.setRedraw(true);\r\n\t\t\r\n\t\tTableColumn tbCol_Time = new TableColumn(table, SWT.NONE);\r\n\t\ttbCol_Time.setWidth(69);\r\n\t\ttbCol_Time.setText(\"序号\");\t\t\r\n\t\t\r\n\t\tTableColumn tbCol_Path = new TableColumn(table, SWT.NONE);\r\n\t\ttbCol_Path.setWidth(127);\r\n\t\ttbCol_Path.setText(\"进程\");\t\r\n\t\t\r\n\t\tTableColumn tbCol_Info = new TableColumn(table, SWT.NONE);\r\n\t\ttbCol_Info.setWidth(123);\r\n\t\ttbCol_Info.setText(\"Hash值\");\r\n\t\t\r\n\t\tTableColumn tbCol_Type = new TableColumn(table, SWT.NONE);\r\n\t\ttbCol_Type.setWidth(92);\r\n\t\ttbCol_Type.setText(\"类型\");\r\n\t\t\r\n\t\tTableColumn tbCol_Hash = new TableColumn(table, SWT.NONE);\r\n\t\ttbCol_Hash.setWidth(196);\r\n\t\ttbCol_Hash.setText(\"描述信息\");\r\n\t\t\r\n\t\tviewer.setContentProvider(new TableViewerContentProvider());\r\n\t\tviewer.setLabelProvider(new TableViewerLabelProvider());\r\n\t\tviewer.setInput(white_list);\t\t\t\t//===== 设置数据源 ======\r\n\t\t\r\n\t\trefresh();\r\n\t\t\r\n\t\tlbl_ItemCount = new Label(shell, SWT.NONE);\r\n\t\tlbl_ItemCount.setBounds(43, 355, 194, 21);\r\n\t\tlbl_ItemCount.setText(\"未通过验证进程: \"+ table.getItemCount() +\"个\");\r\n\t\t\r\n\t\tButton button = new Button(shell, SWT.NONE);\r\n\t\tbutton.setBounds(309, 344, 88, 25);\r\n\t\tbutton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tcount--;\r\n\t\t\t\tshell.close();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton.setText(\"确定\");\r\n\t\t\r\n\t\tLabel label = new Label(shell, SWT.NONE);\r\n\t\tlabel.setFont(SWTResourceManager.getFont(\"楷体_GB2312\", 16, SWT.BOLD));\r\n\t\tlabel.setBounds(301, 10, 118, 21);\r\n\t\tlabel.setText(\"详细信息\");\r\n\t\t\r\n\t\tLabel label_1 = new Label(shell, SWT.SEPARATOR|SWT.HORIZONTAL);\r\n\t\tlabel_1.setBounds(10, 45, 664, 2);\r\n\r\n\t\t\r\n\t\t//添加窗体鼠标事件\r\n\t\tshell.addMouseListener(new MouseListener(){\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseDown(MouseEvent e) {\r\n\t\t\t\t// TODO Auto-generated method stub\t\t\t\t\r\n\t\t\t\tx=e.x;\r\n\t\t\t\ty=e.y;\t\t\t\t\r\n\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseUp(MouseEvent e) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tx=y=-1;\r\n\t\t\t}\r\n\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t});\r\n\t\t\r\n\t\t//鼠标移动事件\r\n\t\tshell.addMouseMoveListener(new MouseMoveListener(){\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseMove(MouseEvent e) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tif(x>0)\r\n\t\t\t\t{\r\n\t\t\t\t\tshell.setLocation(e.x-x + shell.getLocation().x,\r\n\t\t\t\t\t\te.y-y + shell.getLocation().y);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t}", "@Override\n protected Control createDialogArea(Composite parent) {\n Composite container = (Composite) super.createDialogArea(parent);\n container.setLayout(new FillLayout(SWT.HORIZONTAL));\n\n final SashForm hsashForm = new SashForm(container, SWT.HORIZONTAL);\n hsashForm.SASH_WIDTH = 1;\n\n hsashForm.setBackground(container.getDisplay().getSystemColor(SWT.COLOR_GREEN));\n\n // Create the buttons and their event handlers\n tree = new Tree(hsashForm, SWT.V_SCROLL);\n tree.setLinesVisible(true);\n tree.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent e) {\n AddDetailedInfo2Tables();\n }\n });\n tree.setLayout(new FillLayout());\n\n final Composite tabledock = new Composite(hsashForm, SWT.PUSH);\n tabledock.setLayout(new FillLayout(SWT.VERTICAL));\n\n final SashForm vsashForm = new SashForm(tabledock, SWT.VERTICAL);\n vsashForm.SASH_WIDTH = 1;\n vsashForm.setBackground(container.getDisplay().getSystemColor(SWT.COLOR_GREEN));\n\n ruletable = new Table(vsashForm, SWT.BORDER | SWT.FULL_SELECTION);\n ruletable.setHeaderVisible(true);\n ruletable.setLinesVisible(true);\n\n TableColumn col_entitysubject = new TableColumn(ruletable, SWT.CENTER);\n col_entitysubject.setWidth(87);\n col_entitysubject.setText(Messages.BaselineShowDialog_1);\n\n TableColumn col_relation = new TableColumn(ruletable, SWT.CENTER);\n col_relation.setWidth(88);\n col_relation.setText(Messages.BaselineShowDialog_2);\n\n TableColumn col_quantifier = new TableColumn(ruletable, SWT.CENTER);\n col_quantifier.setWidth(79);\n col_quantifier.setText(Messages.BaselineShowDialog_3);\n\n TableColumn col_number = new TableColumn(ruletable, SWT.CENTER);\n col_number.setWidth(80);\n col_number.setText(Messages.BaselineShowDialog_4);\n\n TableColumn col_entityguest = new TableColumn(ruletable, SWT.CENTER);\n col_entityguest.setWidth(88);\n col_entityguest.setText(Messages.BaselineShowDialog_5);\n\n requirementtable = new Table(vsashForm, SWT.BORDER | SWT.FULL_SELECTION);\n requirementtable.setHeaderVisible(true);\n requirementtable.setLinesVisible(true);\n\n TableColumn tblclmnFormaldesc = new TableColumn(requirementtable, SWT.CENTER);\n tblclmnFormaldesc.setWidth(234);\n tblclmnFormaldesc.setText(Messages.BaselineShowDialog_6);\n\n TableColumn tblclmnRelatedentity = new TableColumn(requirementtable, SWT.CENTER);\n tblclmnRelatedentity.setWidth(195);\n tblclmnRelatedentity.setText(Messages.BaselineShowDialog_7);\n\n\n hsashForm.setWeights(new int[] {2, 2});\n\n if (AddBaseline2Tree(tree, filepath)) {\n if (tree.getItemCount() > 0) {\n tree.getItem(0).setExpanded(true);\n }\n\n tree.pack();\n }\n\n return container;\n }", "private void createContents() {\n\t\tshell = new Shell(getParent(), getStyle());\n\t\tshell.setSize(720, 480);\n\t\tshell.setText(\"1FN Normalization\");\n\t\tshell.setLayout(new GridLayout(2, false));\n\t\tcomposite = new Composite(shell, SWT.NONE);\n\t\tcomposite.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 2, 1));\n\t\tcomposite.setLayout(new GridLayout(5, false));\n\t\tlblSeparators = new Label(composite, SWT.NONE);\n\t\tlblSeparators.setText(\"Separators:\");\n\t\tcomposite_1 = new Composite(composite, SWT.NONE);\n\t\tcomposite_1.setLayout(new GridLayout(5, false));\n\t\tcomposite_1.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, false, false, 2, 1));\n\t\tchk1 = new Button(composite_1, SWT.CHECK);\n\t\tchk1.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tdochk1widgetSelected(e);\n\t\t\t}\n\t\t});\n\t\tchk1.setSelection(true);\n\t\tchk1.setText(\";\");\n\t\tchk2 = new Button(composite_1, SWT.CHECK);\n\t\tchk2.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tdochk2widgetSelected(e);\n\t\t\t}\n\t\t});\n\t\tchk2.setSelection(true);\n\t\tchk2.setText(\"cr\");\n\t\tchk3 = new Button(composite_1, SWT.CHECK);\n\t\tchk3.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tdochk3widgetSelected(e);\n\t\t\t}\n\t\t});\n\t\tchk3.setText(\",\");\n\t\tchk4 = new Button(composite_1, SWT.CHECK);\n\t\tchk4.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tdochk4widgetSelected(e);\n\t\t\t}\n\t\t});\n\t\tchk4.setText(\"space\");\n\t\tchk5 = new Button(composite_1, SWT.CHECK);\n\t\tchk5.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tdochk5widgetSelected(e);\n\t\t\t}\n\t\t});\n\t\tchk5.setText(\".\");\n\t\tnew Label(composite, SWT.NONE);\n\t\tnew Label(composite, SWT.NONE);\n\t\tlblColumn = new Label(composite, SWT.NONE);\n\t\tlblColumn.setLayoutData(new GridData(SWT.RIGHT, SWT.TOP, false, false, 1, 1));\n\t\tlblColumn.setText(\"Column:\");\n\t\tlstColumn = new List(composite, SWT.BORDER | SWT.V_SCROLL | SWT.MULTI);\n\t\tlstColumn.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tdolstColumnwidgetSelected(e);\n\t\t\t}\n\t\t});\n\t\tGridData gd_lstColumn = new GridData(SWT.LEFT, SWT.FILL, false, true, 4, 1);\n\t\tgd_lstColumn.widthHint = 150;\n\t\tgd_lstColumn.heightHint = 80;\n\t\tlstColumn.setLayoutData(gd_lstColumn);\n\t\tlblMethod = new Label(composite, SWT.NONE);\n\t\tlblMethod.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));\n\t\tlblMethod.setText(\"Method:\");\n\t\tcheckSingle = new Button(composite, SWT.RADIO);\n\t\tcheckSingle.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tdocheckSinglewidgetSelected(e);\n\t\t\t}\n\t\t});\n\t\tcheckSingle.setText(\"Single Table (Recommended)\");\n\t\tchkMulti = new Button(composite, SWT.RADIO);\n\t\tchkMulti.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tdochkMultiwidgetSelected(e);\n\t\t\t}\n\t\t});\n\t\tchkMulti.setText(\"Multi table\");\n\t\tlblNewTableName = new Label(composite, SWT.NONE);\n\t\tlblNewTableName.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));\n\t\tlblNewTableName.setText(\"New table name: \");\n\t\ttxtNewTableName = new Text(composite, SWT.BORDER);\n\t\ttxtNewTableName.addModifyListener(new ModifyListener() {\n\t\t\tpublic void modifyText(ModifyEvent arg0) {\n\t\t\t\tdotxtNewTableNamemodifyText(arg0);\n\t\t\t}\n\t\t});\n\t\ttxtNewTableName.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\t\tlblActual = new Label(shell, SWT.NONE);\n\t\tlblActual.setText(\"Actual\");\n\t\tlblRefatored = new Label(shell, SWT.NONE);\n\t\tlblRefatored.setText(\"Refator\");\n\t\tmodelEditor1 = new CompModelEditorController(shell, SWT.BORDER, SWT.V_SCROLL | SWT.H_SCROLL);\n\t\tGridData gd_modelEditor1 = new GridData(SWT.LEFT, SWT.FILL, false, false, 1, 1);\n\t\tgd_modelEditor1.widthHint = 250;\n\t\tmodelEditor1.setLayoutData(gd_modelEditor1);\n\t\tmodelEditor2 = new CompModelEditorController(shell, SWT.BORDER, SWT.V_SCROLL | SWT.H_SCROLL);\n\t\tmodelEditor2.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));\n\t\tbtnConfirm = new Button(shell, SWT.NONE);\n\t\tbtnConfirm.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tdobtnConfirmwidgetSelected(e);\n\t\t\t}\n\t\t});\n\t\tbtnConfirm.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 2, 1));\n\t\tbtnConfirm.setText(\"Confirm\");\n\t\ttxtNewTableName.setEnabled(false);\n\t}", "private void createPageContent() \n\t{\n\t\tGridLayout gl = new GridLayout(4, true);\n gl.verticalSpacing = 10;\n\t\t\n\t\tGridData gd;\n\t\tfinal Label wiz1Label = new Label(shell, SWT.NONE);\n\t\twiz1Label.setText(\"Enter Fields\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 4;\n\t\twiz1Label.setLayoutData(gd);\n\t\twiz1Label.pack();\n\t\tText nameInput = new Text(shell, SWT.BORDER);\n\t\tnameInput.setMessage(\"Name\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 2;\n\t\tnameInput.setLayoutData(gd);\n\t\tnameInput.pack();\n\t\t//Component\n\t\tText componentInput = new Text(shell, SWT.BORDER);\n\t\tcomponentInput.setMessage(\"Component\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 2;\n\t\tcomponentInput.setLayoutData(gd);\n\t\tcomponentInput.pack();\n\t\t//school\n\t\tText schoolInput = new Text(shell, SWT.BORDER);\n\t\tschoolInput.setMessage(\"School\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 2;\n\t\tschoolInput.setLayoutData(gd);\n\t\tschoolInput.pack();\n\t\t//range\n\t\tText rangeInput = new Text(shell, SWT.BORDER);\n\t\trangeInput.setMessage(\"Range\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 2;\n\t\trangeInput.setLayoutData(gd);\n\t\trangeInput.pack();\n\t\t//Effect\n\t\tText effectInput = new Text(shell, SWT.BORDER);\n\t\teffectInput.setMessage(\"Effect\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 4;\n\t\teffectInput.setLayoutData(gd);\n\t\teffectInput.pack();\n\t\t//castingtime\n\t\tText castimeInput = new Text(shell, SWT.BORDER);\n\t\tcastimeInput.setMessage(\"Casting Time\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 2;\n\t\tcastimeInput.setLayoutData(gd);\n\t\tcastimeInput.pack();\n\t\t//materialcomponent\n\t\tText materialInput = new Text(shell, SWT.BORDER);\n\t\tmaterialInput.setMessage(\"Material Component\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 2;\n\t\tmaterialInput.setLayoutData(gd);\n\t\tmaterialInput.pack();\n\t\t//Savingthrow\n\t\tText savthrowInput = new Text(shell, SWT.BORDER);\n\t\tsavthrowInput.setMessage(\"Saving Throw\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 2;\n\t\tsavthrowInput.setLayoutData(gd);\n\t\tsavthrowInput.pack();\n\t\t//Focus\n\t\tText focusInput = new Text(shell, SWT.BORDER);\n\t\tfocusInput.setMessage(\"Focus\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 2;\n\t\tfocusInput.setLayoutData(gd);\n\t\tfocusInput.pack();\n\t\t//Duration\n\t\tText durationInput = new Text(shell, SWT.BORDER);\n\t\tdurationInput.setMessage(\"Duration\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 2;\n\t\tdurationInput.setLayoutData(gd);\n\t\tdurationInput.pack();\n\t\t//spellresistance\n\t\tLabel resistanceLabel = new Label(shell, SWT.NONE);\n\t\tresistanceLabel.setText(\"Can Spell Be Resisted\");\n\t\tgd = new GridData(GridData.CENTER, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 1;\n\t\tresistanceLabel.setLayoutData(gd);\n\t\tresistanceLabel.pack();\n\t\tButton resistanceInput = new Button(shell, SWT.CHECK);\n\t\tgd = new GridData(GridData.CENTER, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 1;\n\t\tresistanceInput.setLayoutData(gd);\n\t\tresistanceInput.pack();\n\t\t//level\n\t\tText levelInput = new Text(shell, SWT.BORDER);\n\t\tlevelInput.setMessage(\"Level\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tlevelInput.setLayoutData(gd);\n\t\tlevelInput.pack();\n\t\t//Damage\n\t\tText damageInput = new Text(shell, SWT.BORDER);\n\t\tdamageInput.setMessage(\"Damage\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 1;\n\t\tdamageInput.setLayoutData(gd);\n\t\tdamageInput.pack();\n\t\t//DamageAlternative\n\t\tText damagealterInput = new Text(shell, SWT.BORDER);\n\t\tdamagealterInput.setMessage(\"Damage Alternative\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 2;\n\t\tdamagealterInput.setLayoutData(gd);\n\t\tdamagealterInput.pack();\n\t\n\t\t//description\n\t\t\n\t\tText descriptionInput = new Text(shell, SWT.WRAP | SWT.V_SCROLL);\n\t\tdescriptionInput.setText(\"Description (Optional)\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 4;\n\t\tgd.verticalSpan = 15;\n\t\tdescriptionInput.setLayoutData(gd);\n\t\tdescriptionInput.pack();\n\t\tLabel blank = new Label(shell, SWT.NONE);\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, true);\n\t\tgd.horizontalSpan = 4;\n\t\tblank.setLayoutData(gd);\n\t\tblank.pack();\n\t\tButton save = new Button(shell, SWT.PUSH);\n\n\t\tsave.setText(\"Save\");\n\t\tsave.addListener(SWT.Selection, new Listener()\n\t\t{\n\t\t\tpublic void handleEvent(Event event)\n\t\t\t{\n\t\t\t\tBoolean checkfault = false;\n\t\t\t\tLinkedHashMap<String, String> a = new LinkedHashMap<String, String>();\n\t\t\t\tif(nameInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tcheckfault = true;\n\t\t\t\t\tnameInput.setBackground(display.getSystemColor(SWT.COLOR_RED));\n\t\t\t\t}\n\t\t\t\tif(componentInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tcheckfault = true;\n\t\t\t\t\tcomponentInput.setBackground(display.getSystemColor(SWT.COLOR_RED));\n\t\t\t\t}\n\t\t\t\tif(schoolInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tcheckfault = true;\n\t\t\t\t\tschoolInput.setBackground(display.getSystemColor(SWT.COLOR_RED));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(castimeInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tcheckfault = true;\n\t\t\t\t\tcastimeInput.setBackground(display.getSystemColor(SWT.COLOR_RED));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(levelInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tcheckfault = true;\n\t\t\t\t\tlevelInput.setBackground(display.getSystemColor(SWT.COLOR_RED));\n\t\t\t\t}\n\t\t\t\tif(checkfault)\n\t\t\t\t{\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\ta.put(\"NAME\", nameInput.getText());\n\t\t\t\ta.put(\"COMPONENTS\", componentInput.getText());\n\t\t\t\ta.put(\"SCHOOL\", schoolInput.getText());\n\t\t\t\ta.put(\"CASTINGTIME\", castimeInput.getText());\n\t\t\t\ta.put(\"LEVEL\", levelInput.getText());\n\t\t\t\tif(resistanceInput.getSelection())\n\t\t\t\t{\n\t\t\t\t\ta.put(\"SPELLRESISTANCE\", \"YES\");\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\ta.put(\"SPELLRESISTANCE\", \"NO\");\n\t\t\t\t}\n\t\t\t\tif(!materialInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"MATERIALCOMPONENT\", materialInput.getText());\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif(!savthrowInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"SAVINGTHROW\", savthrowInput.getText());\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif(!focusInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"FOCUS\", focusInput.getText());\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif(!durationInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"DURATION\", durationInput.getText());\n\t\t\t\t}\n\t\t\t\tif(!damageInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"DAMAGE\", damageInput.getText());\n\t\t\t\t}\n\t\t\t\tif(!damagealterInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"DAMAGEALTERNATE\", damagealterInput.getText());\n\t\t\t\t}\n\t\t\t\tif(!rangeInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"RANGE\", rangeInput.getText());\n\t\t\t\t}\n\t\t\t\tif(!effectInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"EFFECT\", effectInput.getText());\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\ta.put(\"DESCRIPTION\", descriptionInput.getText());\n\t\t\t\tnewspell = new SpellEntity(a);\n\t\t\t\tMain.gameState.abilities.put(newspell.getName(), newspell);\n\t\t\t\tMain.gameState.customContent.put(newspell.getName(), newspell);\n\t\t\t\tshell.close();\n\t\t\t}\n\t\t}\n\t\t);\n\t\tgd = new GridData(GridData.FILL, GridData.CENTER, false, false);\n\t\tgd.horizontalSpan = 1;\n\t\tsave.setLayoutData(gd);\n\t\tsave.pack();\n\t\tshell.setLayout(gl);\n\t\tshell.layout();\n\t\tshell.pack();\n//\t\t//wizard\n//\t\t\t\tfinal Composite wizPanel = new Composite(shell, SWT.BORDER);\n//\t\t\t\twizPanel.setBounds(0,0,WIDTH, HEIGHT);\n//\t\t\t\tfinal StackLayout wizLayout = new StackLayout();\n//\t\t\t\twizPanel.setLayout(wizLayout);\n//\t\t\t\t\n//\t\t\t\t//Page1 -- Name\n//\t\t\t\tfinal Composite wizpage1 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\twizpage1.setBounds(0,0,WIDTH,HEIGHT);\n//\t\t\t\t\n//\t\t\t\tfinal Label wiz1Label = new Label(wizpage1, SWT.NONE);\n//\t\t\t\twiz1Label.setText(\"Enter Name (required)\");\n//\t\t\t\twiz1Label.pack();\n//\t\t\t\tfinal Text wizpage1text = new Text(wizpage1, SWT.BORDER);\n//\t\t\t\twizpage1text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage1text.setText(\"FireBall\");\n//\t\t\t\tButton next1 = createNextButton(wizpage1);//TODO cancel and previous button\n//\t\t\t\tcreateBackButton(wizpage1, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage1, wizPanel, wizLayout);\n//\t\t\t\tnext1.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage1text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellname = wizpage1text.getText();\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tSystem.out.println(\"PANIC: ITEM WIZARD PAGE 1 OUT\");\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz1Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t\t);\n//\t\t\t\t\n//\t\t\t\twizPages.add(wizpage1);\n//\t\t\t\t//Page2 -- component\n//\t\t\t\tfinal Composite wizpage2 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz2Label = new Label(wizpage2, SWT.NONE);\n//\t\t\t\twiz2Label.setText(\"Enter Component: (required)\");\n//\t\t\t\twiz2Label.pack();\n//\t\t\t\tfinal Text wizpage2text = new Text(wizpage2, SWT.BORDER);\n//\t\t\t\twizpage2text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage2text.setText(\"Fire\");\n//\t\t\t\tButton next2 = createNextButton(wizpage2);\n//\t\t\t\tcreateBackButton(wizpage2, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage2, wizPanel, wizLayout);\n//\t\t\t\tnext2.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage2text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellcomp = wizpage2text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz2Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage2);\n//\t\t\t\t//Page3 -- School\n//\t\t\t\tfinal Composite wizpage3 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz3Label = new Label(wizpage3, SWT.NONE);\n//\t\t\t\twiz3Label.setText(\"Enter School: (required)\");\n//\t\t\t\twiz3Label.pack();\n//\t\t\t\tfinal Text wizpage3text = new Text(wizpage3, SWT.BORDER);\n//\t\t\t\twizpage3text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage3text.setText(\"Descruction\");\n//\t\t\t\tButton next3 = createNextButton(wizpage3);\n//\t\t\t\tcreateBackButton(wizpage3, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage3, wizPanel, wizLayout);\n//\t\t\t\tnext3.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage3text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellschool = wizpage3text.getText();\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz3Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage3);\n//\t\t\t\t//Page4 -- Range\n//\t\t\t\tfinal Composite wizpage4 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz4Label = new Label(wizpage4, SWT.NONE);\n//\t\t\t\twiz4Label.setText(\"Enter Range: (required)\");\n//\t\t\t\twiz4Label.pack();\n//\t\t\t\tfinal Text wizpage4text = new Text(wizpage4, SWT.BORDER);\n//\t\t\t\twizpage4text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage4text.setText(\"50 feet\");\n//\t\t\t\tButton next4 = createNextButton(wizpage4);\n//\t\t\t\tcreateBackButton(wizpage4, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage4, wizPanel, wizLayout);\n//\t\t\t\tnext4.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage4text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellrange = wizpage4text.getText();\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz4Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage4);\n//\t\t\t\t//Page5 -- effect\n//\t\t\t\tfinal Composite wizpage5 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz5Label = new Label(wizpage5, SWT.NONE);\n//\t\t\t\twiz5Label.setText(\"Enter Effect: (required)\");\n//\t\t\t\twiz5Label.pack();\n//\t\t\t\tfinal Text wizpage5text = new Text(wizpage5, SWT.BORDER);\n//\t\t\t\twizpage5text.setBounds(50, 50, 250, 150);\n//\t\t\t\twizpage5text.setText(\"No effect\");\n//\t\t\t\tButton next5 = createNextButton(wizpage5);\n//\t\t\t\tcreateBackButton(wizpage5, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage5, wizPanel, wizLayout);\n//\t\t\t\tnext5.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage5text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspelleffect = wizpage5text.getText();\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz5Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage5);\n//\t\t\t\t//Page6 -- casting time\n//\t\t\t\tfinal Composite wizpage6 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz6Label = new Label(wizpage6, SWT.NONE);\n//\t\t\t\twiz6Label.setText(\"Enter Casting Time: (required)\");\n//\t\t\t\twiz6Label.pack();\n//\t\t\t\tfinal Text wizpage6text = new Text(wizpage6, SWT.BORDER);\n//\t\t\t\twizpage6text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage6text.setText(\"1 turn\");\n//\t\t\t\tButton next6 = createNextButton(wizpage6);\n//\t\t\t\tcreateBackButton(wizpage6, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage6, wizPanel, wizLayout);\n//\t\t\t\tnext6.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage5text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellcastime = wizpage6text.getText();\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz6Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage6);\n//\t\t\t\t//Page7 -- Material Component\n//\t\t\t\tfinal Composite wizpage7 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz7Label = new Label(wizpage7, SWT.NONE);\n//\t\t\t\twiz7Label.setText(\"Enter Material Component: (required)\");\n//\t\t\t\twiz7Label.pack();\n//\t\t\t\tfinal Text wizpage7text = new Text(wizpage7, SWT.BORDER);\n//\t\t\t\twizpage7text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage7text.setText(\"None\");\n//\t\t\t\tButton next7 = createNextButton(wizpage7);\n//\t\t\t\tcreateBackButton(wizpage7, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage7, wizPanel, wizLayout);\n//\t\t\t\tnext7.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage7text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellmaterial = wizpage7text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz7Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage7);\n//\t\t\t\t//Page8 -- saving throw\n//\t\t\t\tfinal Composite wizpage8 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz8Label = new Label(wizpage8, SWT.NONE);\n//\t\t\t\twiz8Label.setText(\"Enter Saving Throw: (required)\");\n//\t\t\t\twiz8Label.pack();\n//\t\t\t\tfinal Text wizpage8text = new Text(wizpage8, SWT.BORDER);\n//\t\t\t\twizpage8text.setBounds(50, 50, 200, 100);\n//\t\t\t\twizpage8text.setText(\"Will negate XX\");\n//\t\t\t\tButton next8 = createNextButton(wizpage8);\n//\t\t\t\tcreateBackButton(wizpage8, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage8, wizPanel, wizLayout);\n//\t\t\t\tnext8.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage8text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellsaving = wizpage8text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz8Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage8);\n//\t\t\t\t//Page9 -- Focus\n//\t\t\t\tfinal Composite wizpage9 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz9Label = new Label(wizpage9, SWT.NONE);\n//\t\t\t\twiz9Label.setText(\"Enter Focus: (required)\");\n//\t\t\t\twiz9Label.pack();\n//\t\t\t\tfinal Text wizpage9text = new Text(wizpage9, SWT.BORDER);\n//\t\t\t\twizpage9text.setBounds(50, 50, 200, 100);\n//\t\t\t\twizpage9text.setText(\"A dart\");\n//\t\t\t\tButton next9 = createNextButton(wizpage9);\n//\t\t\t\tcreateBackButton(wizpage9, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage9, wizPanel, wizLayout);\n//\t\t\t\tnext9.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage9text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellfocus = wizpage9text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz9Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage9);\n//\t\t\t\t//Page10 -- Duration\n//\t\t\t\tfinal Composite wizpage10 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz10Label = new Label(wizpage10, SWT.NONE);\n//\t\t\t\twiz10Label.setText(\"Enter Duration: (required)\");\n//\t\t\t\twiz10Label.pack();\n//\t\t\t\tfinal Text wizpage10text = new Text(wizpage10, SWT.BORDER);\n//\t\t\t\twizpage10text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage10text.setText(\"5 Turns\");\n//\t\t\t\tButton next10 = createNextButton(wizpage10);\n//\t\t\t\tcreateBackButton(wizpage10, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage10, wizPanel, wizLayout);\n//\t\t\t\tnext10.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage10text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellduration = wizpage10text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz10Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage10);\n//\t\t\t\t//Page11 -- Level\n//\t\t\t\tfinal Composite wizpage11 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz11Label = new Label(wizpage11, SWT.NONE);\n//\t\t\t\twiz11Label.setText(\"Enter Level (required)\");\n//\t\t\t\twiz11Label.pack();\n//\t\t\t\tfinal Text wizpage11text = new Text(wizpage11, SWT.BORDER);\n//\t\t\t\twizpage11text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage11text.setText(\"1\");\n//\t\t\t\tButton next11 = createNextButton(wizpage11);\n//\t\t\t\tcreateBackButton(wizpage11, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage11, wizPanel, wizLayout);\n//\t\t\t\tnext11.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage11text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\ttry\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tif(Integer.parseInt(wizpage11text.getText()) >= 0)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspelllevel = String.valueOf(Integer.parseInt(wizpage11text.getText()));\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twiz11Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\tcatch(NumberFormatException a)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twiz11Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz11Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage11);\n//\t\t\t\t//Page12 -- resistance\n//\t\t\t\tfinal Composite wizpage12 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz12Label = new Label(wizpage12, SWT.NONE);\n//\t\t\t\twiz12Label.setText(\"Enter Spell resistance: (Yes/No)\");\n//\t\t\t\twiz12Label.pack();\n//\t\t\t\tfinal Text wizpage12text = new Text(wizpage12, SWT.BORDER);\n//\t\t\t\twizpage12text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage12text.setText(\"Yes\");\n//\t\t\t\tButton next12 = createNextButton(wizpage12);\n//\t\t\t\tcreateBackButton(wizpage12, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage12, wizPanel, wizLayout);\n//\t\t\t\tnext12.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage12text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellresistance = wizpage12text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz12Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage12);\n//\t\t\t\t//Page13 - Description\n//\t\t\t\tfinal Composite wizpage13 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tLabel wiz13Label = new Label(wizpage13, SWT.NONE);\n//\t\t\t\twiz13Label.setText(\"Enter Description (Optional)\");\n//\t\t\t\twiz13Label.pack(); \n//\t\t\t\tfinal Text wizpage13text = new Text(wizpage13, SWT.BORDER);\n//\t\t\t\twizpage13text.setBounds(50, 50, 300, 200);\n//\t\t\t\twizpage13text.setText(\"Description here\");\n//\t\t\t\tButton next13 = createNextButton(wizpage13);\n//\t\t\t\tcreateBackButton(wizpage13, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage13, wizPanel, wizLayout);\n//\t\t\t\tnext13.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage13text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellscript = wizpage13text.getText();\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellscript = \"<empty>\";\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\tCreateVerificationPage(wizPanel, wizLayout);\n//\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\n//\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\n//\t\t\t\t\t\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage13);\n//\t\t\t\t\n//\t\t\t\twizLayout.topControl = wizpage1;\n//\t\t\t\twizPanel.layout();\n\t}" ]
[ "0.7465564", "0.71213424", "0.70750844", "0.7056892", "0.7035284", "0.6982003", "0.6966167", "0.6853646", "0.68448454", "0.6811343", "0.68096405", "0.6801873", "0.67985934", "0.6798088", "0.679386", "0.6789257", "0.67799765", "0.6769032", "0.6748607", "0.67194223", "0.6717503", "0.67035323", "0.66828877", "0.6678451", "0.66759765", "0.6675277", "0.6666175", "0.6662871", "0.66587853", "0.665795", "0.66506565", "0.6635104", "0.65900564", "0.6588636", "0.6583689", "0.6574754", "0.65720886", "0.656907", "0.65508175", "0.65392804", "0.6516047", "0.6515943", "0.65151596", "0.651121", "0.6509662", "0.65088314", "0.65046996", "0.64980966", "0.6456817", "0.6452968", "0.64314914", "0.6408048", "0.63942474", "0.634836", "0.6324647", "0.63166547", "0.6313728", "0.6288747", "0.6273535", "0.62523174", "0.62443435", "0.62409055", "0.6212926", "0.62055504", "0.61921424", "0.61892045", "0.6176031", "0.6169341", "0.6168304", "0.60950315", "0.6090538", "0.60902613", "0.60856974", "0.60703", "0.60696167", "0.6065619", "0.6064933", "0.60549086", "0.60484904", "0.60410786", "0.60372114", "0.60363436", "0.60327744", "0.6002712", "0.59914464", "0.5956609", "0.5956531", "0.59552765", "0.59287804", "0.5926907", "0.59196913", "0.5904495", "0.5904013", "0.5893288", "0.58899236", "0.58865124", "0.5883632", "0.5872325", "0.58696645", "0.58542544" ]
0.6212883
63
Get the list of note names in the server
public static String[] getAllNotes(int tenantID) throws RegistryException { UserRegistry userRegistry = ServiceHolder.getRegistryService().getConfigSystemRegistry(tenantID); createNotesCollectionIfNotExists(userRegistry); Collection noteCollection = (Collection) userRegistry.get(NoteConstants.NOTE_LOCATION); String[] notes = noteCollection.getChildren(); if (notes == null) { notes = new String[0]; } else { for (int i = 0; i < notes.length; i++) { // Removing note registry path notes[i] = notes[i].replace(NoteConstants.NOTE_LOCATION, ""); notes[i] = notes[i].replace(RegistryConstants.PATH_SEPARATOR, ""); notes[i] = notes[i].replace(NoteConstants.NOTE_FILE_EXTENSION_SEPARATOR + NoteConstants.NOTE_FILE_EXTENSION, ""); } } return notes; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<String> nicknames();", "public String LIST(){\n String nameList = \"\";\n Enumeration keys = this.clientData.keys();\n while(keys.hasMoreElements()){\n nameList += keys.nextElement() + \" \";\n }\n return \"OK \" + nameList;\n }", "public String fetchNoteNames() {\n\t\treturn \"NoteNames from SubClass overridden meth.MinorScale\";\n\t}", "public List<String> getNote() {\n\t\treturn observationNotes;\n\t}", "@GetMapping(\"/notes\")\n public List<Note> getAllNotes() {\n List<Note> temp = noteService.getAllNotes();\n return temp;\n }", "public java.util.List getAnalyticalNotes();", "private List<String> allNotes() {\n List allNotes = new ArrayList();\n\n for (int i = 0; i < 10; i++) {\n Octave octave = getOctave(i);\n\n for (int x = 0; x < 12; x++) {\n Pitch pitch = getPitch(x);\n\n String note = pitch.getValue() + octave.getValue();\n allNotes.add(note);\n }\n }\n return allNotes;\n }", "public ArrayList<String> getNotes() {\n return notes;\n }", "@Override\n\tpublic List<Note> showNotes() {\n\t\t\n\t\treturn noterepository.findAll();\n\t}", "List<Note> list();", "public List<String> getDelegationNames(){\t\t\r\n\t\tConnection conn = DBConnect.getConnection();\r\n\t\tString sql = \"select delegation_name from delegation\";\r\n\t\tList<String> names = new ArrayList<String>();\r\n\t\ttry {\r\n\t\t\tPreparedStatement pst = conn.prepareStatement(sql);\r\n\t\t\tResultSet rst = pst.executeQuery();\r\n\t\t\twhile(rst.next()) {\r\n\t\t\t\tnames.add(rst.getString(\"delegation_name\"));\r\n\t\t\t}\r\n\t\t\trst.close();\r\n\t\t\tpst.close();\r\n\t\t}catch (SQLException e) {\r\n\t\t\t// TODO: handle exception\r\n e.printStackTrace();\t\t\t\r\n\t\t}\r\n\t\treturn names;\r\n\t}", "public Collection<String> getNotifyList() {\n Set<String> result;\n String list = getDbProperties().getProperty(Constants.NOTIFY_LIST);\n if (list != null) {\n result = Arrays.stream(list.split(\"[, ]+\"))\n .map(String::trim)\n .collect(Collectors.toSet());\n } else {\n result = new HashSet<>();\n }\n return result;\n }", "Collection<String> names();", "@JsonIgnore\n public List<Note> getNotes() {\n ArrayList<Note> ret = new ArrayList<Note>(noteIds != null ? noteIds.size() : 0);\n\n if (noteIds != null) {\n for (String id : noteIds) {\n ret.add(Note.get(id));\n }\n }\n \n // even if there were no notes, return an empty list\n return ret;\n }", "public Collection<FeatureNote> getNotes(String noteTypeName);", "public List<String> nameServers() {\n return this.nameServers;\n }", "String getNotes();", "@Override\n public List<Note> getNotes() {\n ArrayList<Note> listAllNotes = new ArrayList<>();\n\n ArrayList<Integer> keys = new ArrayList<>(this.notes.keySet());\n\n for (int i = 0; i < keys.size(); i++) {\n int currentKey = keys.get(i);\n\n List<Note> current = this.getNotesAtBeat(currentKey);\n\n listAllNotes.addAll(current);\n }\n return listAllNotes;\n }", "Collection<String> getUsernames();", "public List<String> getListOfClientNames() throws Exception {\n if (isNotAt()) {\n goTo();\n }\n return getTableDataByColumn(clientsTable, 0);\n }", "public LinkedList<String> getNames() {\r\n return names;\r\n }", "public static ArrayList<String> getReglesNoms() throws IOException{\n return ctrl_Persistencia.llistaFitxers(\"@../../Dades\",\"regles\");\n }", "public List<String> getLoggerNames();", "public Object[] getNameServers() {\n\t\treturn _nameservers.toArray();\n\t}", "public List<String> getFormattedNotes(){\n List formattedNotes = new ArrayList();\n for (int i = 0; i < notes.size(); i++) {\n Note n = notes.get(i);\n String noteInfo = \"Date Created: \" + n.getFormattedDate() + \" Content: \" + n.getContent();\n formattedNotes.add(noteInfo);\n }\n return formattedNotes;\n }", "public Map<Tone, Prefix> getNotes() {\n return notes;\n }", "@Nonnull List<String> getNameList();", "public List<Note> findAllNotes() {\n\n\t\tMap<String, Object> params = new HashMap<String, Object>();\n\n\t\tString sql = \"SELECT * FROM todo\";\n\n\t\tList<Note> result = getInstance().namedParameterJdbcTemplate.query(sql, params, new UserMapper());\n\t\tfor (Note project : result) {\n\t\t\tSystem.out.println(\"id:\" + project.getId() + \", name:\" + project.getName() + \", shortcut:\" + project.getAbbreviation() + \", description:\" + project.getDescription());\n\t\t}\n\n\t\tsetNotes(result);\n\n\t\treturn getNotes();\n\t\t// return\n\t\t// this.getHibernateTemplate().findByNamedQuery(\"project.findAllProjects\");\n\t}", "public ArrayList<String> getNameServerUrl() {\n\n if (nameListener.isServiceFound()) {\n return nameListener.getServiceURLs();\n }\n return new ArrayList<>();\n }", "public String[] getClientNames() {\n return clientNames;\n }", "java.lang.String getNotes();", "java.lang.String getNotes();", "java.util.List<java.lang.String> getContentsList();", "public String getNotes() {\n return notes.get();\n }", "void handle_note_list(LinkedList<Object> args) {\n args.clear();\n args.add(\"note_list\");\n try {\n rsl = sql.executeQuery(\"SELECT note_name FROM data \" +\n \"WHERE user_id=\" + userid);\n String note_name;\n args.add(\"yes\");\n while (rsl.next()) {\n note_name = rsl.getString(1);\n args.add(note_name);\n }\n } catch (Exception e) {\n e.printStackTrace();\n args.add(1, \"no\");\n args.add(2, e.toString());\n }\n }", "List<String> getNodeNames()\n {\n return allNodes.values().stream().map(CommunicationLink::getName).collect(Collectors.toList());\n }", "public String[] listObjectNames();", "public List<Note> getNotes(){\n return notes;\n }", "@Override\n\tpublic String getContactos(String nickName) throws RemoteException {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tList<String> lista = bbdd.loadContactos(nickName);\n\t\tfor(String nombre : lista){\n\t\t\tsb.append(nombre + \"\\n\");\n\t\t}\n\t\treturn sb.toString();\n\t}", "public List<String> getNames() {\n return names;\n }", "@Override\n\tpublic String[] GetFileServers() {\n\t\tString fservers[]=new String[list.size()];\n\t\tint i=0;\n\t\tfor(String s:list){\n\t\t\tfservers[i++]=s;\n\t\t}\n\t\treturn fservers;\n\t}", "public String getNotes();", "public final synchronized String list()\r\n { return a_info(true); }", "public String getNotes() {\n return notes;\n }", "public java.lang.String getNotes() {\r\n return localNotes;\r\n }", "public String getNotes() {\n\treturn notes;\n}", "public java.lang.String getNotes() {\n return notes;\n }", "@Override\r\n\tpublic String[] getClientNames() {\r\n\t\treturn initData.clientNames;\r\n\t}", "public List<String> getmanagers();", "public List<Server> getServerList() {\n return serverList;\n }", "public static List<NoteInfo> searchAllNotes() {\n\n ArrayList<Long> keywordIdList = new ArrayList<Long>();\n ArrayList<Long> finalIdList = new ArrayList<Long>();\n\n String email = Secured.getUser(ctx());\n List<NoteEntry> entryIdList = NoteEntry.find()\n .select(\"entryId\")\n .where()\n .eq(\"email\", email)\n .findList();\n for (NoteEntry entry : entryIdList) {\n finalIdList.add(entry.getEntryId());\n }\n\n List<NoteInfo> noteList = NoteInfo.find()\n .select(\"note\")\n .where()\n .in(\"noteEntryId\", finalIdList)\n .findList();\n\n return noteList;\n }", "public String getNotes() {\n return notes;\n }", "public String getNotes() {\n\t\treturn notes;\n\t}", "public String[] nombres(){\n return partida.nombres();\n }", "public String list() {\n final StringBuilder list = new StringBuilder(\"Here are the tasks in your list:\\n\\t\");\n records.forEach((el) -> list.append(\n String.format(\"%1$d. %2$s \\n\\t\",\n records.indexOf(el) + 1, el.toString())));\n return list.toString();\n }", "public ArrayList<String> getNames() {\n return names;\n }", "@Override\n\tpublic String getListTitle() {\n\t\treturn \"Saisir des notes\";\n\t}", "public static List<Nota>getAllNota(){\n List <Nota> l = new ArrayList<>();\n for(Nota n : repoNote.findAll()){\n l.add(n);\n }\n\n return l;\n }", "public ArrayList<String> GetListOfNames() {\n\t\tArrayList<String> nameList = new ArrayList<String>(); // List of names\n\n\t\tfor (Song song : songList)\n\t\t\tnameList.add(song.GetName());\n\t\treturn nameList;\n\t}", "public Wrapper listNames() {\n Wrapper<List<HashMap<String, String>>> wrapper = new Wrapper();\n try {\n List<String> userListIds = user.getWordLists();\n List<HashMap<String, String>> listNames = new ArrayList<HashMap<String, String>>();\n\n for (String stringId : userListIds) {\n ObjectId id = new ObjectId(stringId);\n WordList wl = mongoOperations.findById(id, WordList.class, \"entries\");\n\n HashMap<String, String> object = new HashMap<>();\n object.put(\"name\", wl.getName());\n object.put(\"id\", wl.getId());\n listNames.add(object);\n }\n\n wrapper.setData(listNames);\n wrapper.setSucces(true);\n } catch (Exception e) {\n wrapper.setSucces(false);\n wrapper.setMsg(e.toString());\n }\n\n return wrapper;\n }", "public List<String> getNotificationList() throws Exception {\r\n ArrayList<String> cache = new ArrayList<String>();\r\n for (DOMFace nr : getChildren(\"notification\", DOMFace.class)) {\r\n cache.add(nr.getAttribute(\"pagekey\"));\r\n }\r\n return cache;\r\n }", "public String[] getFilesOnServer() {\n Log.i(\"getFilesFor\", \"Getting all files on server available to \"\n + new KeyGenerator(context).getPublicKeyAsString());\n Cursor resultSet = database.rawQuery(\n \"SELECT DISTINCT File FROM FileKeys WHERE UserPublicKey = \" +\n \"'\" + new KeyGenerator(context).getPublicKeyAsString() + \"'\", null);\n String[] fileNames = new String[resultSet.getCount()];\n resultSet.moveToFirst();\n int i = 0;\n while (!resultSet.isAfterLast()) {\n Log.i(\"getFilesFor\", \"File namme: \" + resultSet.getString(0));\n fileNames[i++] = resultSet.getString(0);\n resultSet.moveToNext();\n }\n resultSet.close();\n return fileNames;\n }", "public String[] getRequestNames ()\n {\n org.omg.CORBA.portable.InputStream $in = null;\n try {\n org.omg.CORBA.portable.OutputStream $out = _request (\"getRequestNames\", true);\n $in = _invoke ($out);\n String $result[] = RTT.corba.CRequestNamesHelper.read ($in);\n return $result;\n } catch (org.omg.CORBA.portable.ApplicationException $ex) {\n $in = $ex.getInputStream ();\n String _id = $ex.getId ();\n throw new org.omg.CORBA.MARSHAL (_id);\n } catch (org.omg.CORBA.portable.RemarshalException $rm) {\n return getRequestNames ( );\n } finally {\n _releaseReply ($in);\n }\n }", "public static String getNotificaciones() {\n\t\treturn getServer()+\"wsagenda/v1/notificaciones\";//\"http://10.0.2.2/wsrest/v1/agenda\";//\"http://10.0.2.2/prueba/ahorro/obtener_gastos.php\";//\"http://10.0.2.2/wsrest/v1/agenda\";\n\t}", "private List<Note> getNotesFromPlayer(Player player) {\n return null;\n }", "public Stream<String> getNames() {\n return names.stream();\n }", "java.util.List<java.lang.String>\n getFileNamesList();", "public List<String > getNames(){\n List<String> names = new ArrayList<>();\n String fNameQuery = \"SELECT \" + _IDP + \",\" + COL_F_NAME + \",\" + COL_L_NAME + \" FROM \" + TPYTHONISTAS + \" ;\";\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor c = db.rawQuery(fNameQuery, null);\n String name;\n if (c.moveToFirst()) {\n do {\n // put together NameID#, period, Lastname, Firstname\n name = c.getString(0) + \". \" + c.getString(2) + \", \" + c.getString(1);\n names.add(name);\n } while (c.moveToNext());\n }\n c.close();\n db.close();\n return names;\n }", "java.util.List<java.lang.String>\n getMetadataList();", "java.util.List<java.lang.String>\n getMetadataList();", "public ArrayList<String> getAllStoreNames() {\n ArrayList<String> names = new ArrayList<String>();\n SQLiteDatabase db = DBHelper.getWritableDatabase();\n String query = \"SELECT \"+DBHelper.STORES_SNAME+\" FROM \"+DBHelper.TABLE_STORES;\n Cursor cursor =db.rawQuery(query, null);\n int count =0;\n while(cursor.moveToNext()) {\n String name = cursor.getString(count);\n names.add(name);\n }\n return names;\n }", "List<MyNoteDto> getAllMyNotes();", "java.util.List<java.lang.String>\n getFileNamesList();", "public final ArrayList<String> getNames() {\r\n\t\tArrayList<String> names = new ArrayList<String>();\r\n\r\n\t\t// for every workout in our workoutList\r\n\t\tfor (Workout i : workoutList) {\r\n\t\t\t// get the name and add it to our ArrayList names\r\n\t\t\tnames.add(i.getName());\r\n\t\t}\r\n\r\n\t\treturn names;\r\n\t}", "public java.lang.String getNotes() {\n java.lang.Object ref = notes_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n notes_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public Collection<String> listDevices();", "public List<String> getListe()\n\t\t\t{\n\t\t\t\treturn personnes;\n\t\t\t}", "public void getRecentNames() {\r\n try {\r\n URLConnection conn = new URL(\"http://example.com/recent?ssid=\" + session_slot_id).openConnection();\r\n conn.setConnectTimeout(5000);\r\n conn.setReadTimeout(5000);\r\n BufferedReader in = new BufferedReader(new InputStreamReader(conn.getInputStream()));\r\n String line;\r\n while ((line = in.readLine()) != null) {\r\n if (line.contains(\",\")) {\r\n names = line.split(\",\");\r\n }\r\n }\r\n in.close();\r\n } catch (MalformedURLException e) {\r\n System.out.println(\"MalformedURLException while fetching list\");\r\n } catch (SocketTimeoutException e) {\r\n System.out.println(\"SocketTimeoutException while fetching list\");\r\n } catch (IOException e) {\r\n System.out.println(\"IOException while fetching list\");\r\n e.printStackTrace();\r\n }\r\n }", "@Override\r\n\tpublic List<NoticeVO> recentNoticeList() {\n\t\treturn sqlSession.selectList(namespace + \".recentNoticeList\");\r\n\t}", "public String showPlayListNames(){\n String namePlayList = \"\";\n for(int i = 0; i<MAX_PLAYLIST; i++){\n if(thePlayLists[i] != null){\n namePlayList += \"[\"+(i+1)+\"]\"+thePlayLists[i].getNamePlayList()+\"\\n\";\n }\n }\n return namePlayList;\n }", "public java.lang.String getNotes() {\n java.lang.Object ref = notes_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n notes_ = s;\n return s;\n }\n }", "java.util.List<com.vine.vinemars.net.pb.SocialMessage.NoticeObj> \n getNoticeListList();", "public String memberList() {\n\treturn roomMembers.stream().map(id -> {\n\t try {\n\t\treturn api.getUserById(id).get().getNicknameMentionTag();\n\t } catch (InterruptedException | ExecutionException e) {\n\t\te.printStackTrace();\n\t }\n\t return \"\";\n\t}).collect(Collectors.joining(\"\\n\"));\n }", "public ArrayList<String> getListSongs() {\n\t\tArrayList<String> ret = new ArrayList<String>();\n\t\tList<Song> songs = controller.getSongs();\n\t\tfor (Iterator<Song> it = songs.iterator(); it.hasNext(); ) {\n\t\t\tSong song = it.next();\n\t\t\tret.add(song.getTitle() + \" - \" + song.getArtist());\n\t\t}\n\t\treturn ret;\n\t}", "public com.google.protobuf.ProtocolStringList\n getFileNamesList() {\n return fileNames_.getUnmodifiableView();\n }", "public List<String> allClients() throws IOException {\n String httpResponse = httpGet(baseUrl.resolve(\"/automation/v2/clients\"));\n return mapper.readValue(httpResponse, new TypeReference<List<String>>() {\n });\n }", "public List<String> getNicks()\n\t{\n\t\treturn nicks;\n\t}", "public String ls()\n\t{\n\t\tString toReturn = \"\";\n\t\tIterable<Position<FileElement>> kids = fileSystem.children(currentFileElement);\n\t\tif (kids == null) return \"Nothing to list\";\n\t\t{\n\t\t\tfor (Position<FileElement> fe : kids)\n\t\t\t{\n\t\t\t\ttoReturn += fe.toString() + \", \";\n\t\t\t}\n\t\t}\n\t\treturn toReturn;\n\t}", "public java.util.List<io.envoyproxy.envoy.type.matcher.v3.StringMatcher> getKnownSuffixesList() {\n if (knownSuffixesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(knownSuffixes_);\n } else {\n return knownSuffixesBuilder_.getMessageList();\n }\n }", "public List<Tone> getTones() {\n return new ArrayList<>(this.notes.keySet());\n }", "public List<BbsNotice> getNoticeList();", "@Override\n\tpublic String getMensajesOffline(String nickName) throws RemoteException {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tList<String> lista = bbdd.getMensajesOffline(nickName);\n\t\tfor(String nombre : lista){\n\t\t\tsb.append(nombre + \"\\n\");\n\t\t}\n\t\treturn sb.toString();\n\t\t\t\t\t\n\t}", "@Override public String toString(){\r\n StringBuilder output = new StringBuilder();\r\n for (Iterator<NoteToken> i = NotesList.iterator(); i.hasNext();){\r\n output.append(i.next().toString());\r\n output.append(\" \");\r\n \r\n }\r\n return output.toString();\r\n }", "@Override\n\tpublic StringList getNames() {\n\t\tStringList ss = new StringList();\n\t\tss.add(\"java\");\n\t\treturn ss;\n\t}", "public void afficherListeNoms(){\r\n\t\tfor (String nom: noms){\r\n\t\t\tSystem.out.println(nom);\r\n\t\t}\r\n\t}", "public ArrayList<String> getNotificaciones(){\n return notificaciones;\n }", "public String getLists(String name){\n return \"\";\n }", "public java.lang.String getNotes() {\n java.lang.Object ref = notes_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n notes_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "edu.usfca.cs.dfs.StorageMessages.List getList();", "public String[] listObjectNames(String path);" ]
[ "0.6602525", "0.64234984", "0.6385986", "0.63593626", "0.63082224", "0.6292168", "0.6265467", "0.6251164", "0.62253547", "0.6219535", "0.61632234", "0.61202955", "0.6103329", "0.61030656", "0.6080083", "0.60395366", "0.6028283", "0.6019476", "0.59850603", "0.5977606", "0.5941087", "0.5937132", "0.5931984", "0.5910496", "0.5909838", "0.59023684", "0.5898799", "0.5895229", "0.5889178", "0.5888062", "0.5885626", "0.5885626", "0.5879199", "0.5862742", "0.586121", "0.5846592", "0.58251894", "0.5798778", "0.57491225", "0.5735267", "0.57285494", "0.57259476", "0.5724543", "0.5724101", "0.5721852", "0.5716899", "0.571364", "0.5694862", "0.5672034", "0.5667512", "0.5666298", "0.56521964", "0.56515515", "0.56461436", "0.56457335", "0.5637904", "0.5636059", "0.56356704", "0.5635226", "0.5625246", "0.5620762", "0.5591539", "0.5575201", "0.55611503", "0.55593246", "0.5558029", "0.55494124", "0.5548913", "0.5544831", "0.5544831", "0.554031", "0.55387366", "0.5536151", "0.55171317", "0.5517086", "0.55157673", "0.5514794", "0.55111945", "0.5508804", "0.5501471", "0.54962087", "0.54947746", "0.5494555", "0.5492929", "0.54928666", "0.54904354", "0.54901713", "0.5475042", "0.54741246", "0.5471919", "0.5471761", "0.54650885", "0.54636407", "0.5461375", "0.54555184", "0.54521805", "0.5446889", "0.5442736", "0.5441376", "0.5439021" ]
0.5842731
36
Add a new note into the server and add content
public static void addNewNote(int tenantID, String noteName, String content) throws NotePersistenceException, RegistryException { UserRegistry userRegistry = ServiceHolder.getRegistryService().getConfigSystemRegistry(tenantID); createNotesCollectionIfNotExists(userRegistry); String noteLocation = getNoteLocation(noteName); if (content == null) { content = "[]"; } if (!userRegistry.resourceExists(noteLocation)) { Resource resource = userRegistry.newResource(); resource.setContent(content); resource.setMediaType(NoteConstants.NOTE_MEDIA_TYPE); userRegistry.put(noteLocation, resource); } else { log.error("Cannot create new note with name " + noteName + " for tenant with tenant ID " + tenantID + " because note already exists"); throw new NotePersistenceException("Already a note exists with same name : " + noteName + " for tenantId :" + tenantID); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createNote(NewNoteInput note, QueryService service) {\n if ((note.body() == null || note.body().isEmpty()) &&\n (note.title() == null || note.title().isEmpty())) {\n Log.i(LOG_TAG, \"skipped upload of note with empty body\");\n return;\n }\n\n service.createNote(note, (e, response) -> {\n runOnUiThread(() -> {\n if (e != null) {\n Log.e(LOG_TAG, e.getMessage());\n Toast.makeText(getApplicationContext(), getString(R.string.network_err),\n Toast.LENGTH_LONG).show();\n } else {\n Log.i(LOG_TAG, \"note created\");\n Toast.makeText(getApplicationContext(), getString(R.string.activity_note_ncreate),\n Toast.LENGTH_SHORT).show();\n\n finish();\n }\n });\n });\n }", "protected void createNewDocumentNote(NoteData newNote) {\n /**\n * get data from the server about tags\n */\n String url = globalVariable.getConfigurationData().getServerURL()\n + globalVariable.getConfigurationData().getApplicationInfixURL()\n + globalVariable.getConfigurationData().getRestDocumentAddNotesURL();\n Log.i(LOG_TAG, \"REST - create new doc notes - call: \" + url);\n\n String postBody = RESTUtils.getJSON(newNote);\n\n AppCompatActivity activity = (AppCompatActivity)getActivity();\n RESTUtils.executePOSTNoteCreationRequest(url, postBody, null, \"\", globalVariable, DocumentTaggingActivity.PROPERTY_BAG_KEY, activity);\n\n // mDataArray = TagItemDataHelper.getAlphabetData();\n }", "@Override\n public void add(Note note) {\n }", "public void addNote(Note n){\n notes.add(n);\n }", "void add(Note note);", "public void addNote(Note note) throws ChangeVetoException;", "private void addNote(){\n DatabaseReference noteRef = mDB.getReference(\"Notes\");\n\n Long time = System.currentTimeMillis();\n\n Bundle bundleNote = new Bundle();\n bundleNote.putString(\"notesDetail\", notes.getText().toString());\n bundleNote.putString(\"notesTime\", time.toString());\n\n Note note = new Note(bundleNote);\n String currNoteKey;\n currNoteKey = noteRef.push().getKey();\n noteRef.child(LoginActivity.currUserID).child(currNoteKey).setValue(note);\n\n }", "public void addNote(AdHocCommandNote note) {\n this.data.addNote(note);\n }", "@Override\n public void addNote(Note note) {\n\n List<Note> notes = new ArrayList<>();\n notes.add(note);\n\n if (this.notes.get(note.getBeat()) == null) {\n this.notes.put(note.getBeat(), notes);\n } else {\n List<Note> oldList = this.notes.remove(note.getBeat());\n oldList.addAll(notes);\n this.notes.put(note.getBeat(), oldList);\n }\n }", "public void addNote(@NonNull Note_Model newNote) {\n noteModelSection.add(0, newNote);\n if (noteModelSection.size() > 1) {\n noteScreenRecycler.smoothScrollToPosition(0);\n }\n for (int position = 0; position < noteModelSection.size(); position++) {\n noteModelSection.get(position).setActualPosition(position);\n }\n mainActivity.get().getNoteScreen().get().getAdapter().updateNotesAdapter(noteModelSection);\n // new Thread(() -> everDataBase.noteManagement().insert(transformNoteModelToNoteDatabase(newNote))).start();\n }", "public void setNote(String note) {\r\n this.note = note; \r\n }", "public void setNote(String note) {\r\n this.note = note;\r\n }", "public void setNote(String note) {\n this.note = note;\n }", "public void setNote(String note) {\n this.note = note;\n }", "public void setNote(String note) {\n this.note = note;\n }", "public void setNote(String note) {\n this.note = note;\n }", "public void setNote(String note) {\n this.note = note;\n }", "private void saveNote()\n\t{\n\t\tString text = ((EditText) findViewById(R.id.note_edittext)).getText().toString();\n\t\tNoteDbWorker worker = new NoteDbWorker(this);\n\t\tworker.updateNote(user.userName, text);\n\t\tworker.close();\n\t\tToast.makeText(this, getString(R.string.note_saved), Toast.LENGTH_LONG).show();\n\t}", "public void setNote(String note) {\r\n\r\n this.note = note;\r\n }", "public Note addNote(String title, String text) {\n Note newNote = new Note(title, text);\n notes.add(newNote); //add to ArrayList\n return newNote;\n }", "@PostMapping(\"/addnote\")\n private String saveNote(Note note, Idea idea) {\n noteService.save(note);\n // System.out.println(idea.getIdeaId());\n return \"notes\";\n\n }", "public void storeNote(String text) {\r\n\t\tTextNote note = new TextNote();\r\n\t\tnote.setText(text);\r\n\t\tthis.TextNoteList.add(note);\r\n\t}", "public void setNote(String note);", "public void setNotes(String notes) {\n this.notes = notes;\n }", "Update withNotes(String notes);", "public void addNote(Note note) {\n\t\tthis.notes.put(note,Idea.NON_PROMPT_NOTE);\n\t}", "public void insertNote(Note note) {\n ProgressTrackerDatabase.databaseWriteExecutor.execute(() -> {\n mNoteDao.insert(note);\n });\n }", "@RequestMapping(value = \"Notes\", method = RequestMethod.POST)\n public Note create(@RequestBody Note note) {\n //System.out.println(\"The inserted Note: \" + note.toString());\n //System.out.println(\"#################################################################################\\n\");\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(pattern);\n String date = simpleDateFormat.format(new Date());\n note.setCreated(date);\n return noteRepository.insert(note);\n }", "public void setNote(String note) {\n\t\tthis.note = note;\n\t}", "public void setNotes(java.lang.String notes) {\n this.notes = notes;\n }", "private void saveNote() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"E,MMM d, hh:mm a\");\n String lastSavedDate = sdf.format(new Date());\n String id;\n boolean isNew = true;\n if (oldNote != null && oldNote.getId() != null && !oldNote.getId().isEmpty()) {\n id = oldNote.getId();\n isNew = false;\n } else\n id = UUID.randomUUID().toString();\n Note note = new Note(id, etTitle.getText().toString().trim(), lastSavedDate, etNote.getText().toString().trim());\n note.setNew(isNew);\n Intent returnIntent = new Intent();\n returnIntent.putExtra(\"NEW_NOTE\", note);\n setResult(Activity.RESULT_OK, returnIntent);\n finish();\n }", "public void setNotes(String notes) {\n\tthis.notes = notes;\n}", "private void onSaveNote() {\n String text= inputNote.getText().toString();\n if(!text.isEmpty()){\n long date=new Date().getTime(); // get current time\n // Note note= new Note(text,date); because temp now has Note object\n\n // if note exits update else create new\n temp.setNoteText(text);\n temp.setNoteDate(date);\n\n if(temp.getId()==-1)\n dao.insertNote(temp); // insert and save note to database\n else{\n dao.updateNote(temp);\n }\n finish(); // return to the MainActivity\n }\n\n }", "public boolean addNotes(String newNote) {\n\t\tobservationNotes.add(newNote);\n\t\treturn true;\n\t}", "public static Note add(final Note noteToAdd) {\n try {\r\n // Simulate time for network request.\r\n Thread.sleep(5000);\r\n } catch (Exception e) {\r\n // Just for test purposes so handling error doesn't matter.\r\n }\r\n noteToAdd.setId(4);\r\n return noteToAdd;\r\n }", "public void setNote(String note) {\n\t\tthis._note = note;\n\t}", "WithCreate withNotes(String notes);", "@Override\n public void addNote(int startTime, int duration, Pitch pitch, Octave octave) {\n List<Note> notes = new ArrayList<>();\n Note newNote = new SimpleNote(pitch, octave, startTime, duration);\n notes.add(newNote);\n\n if (this.notes.get(startTime) == null) {\n this.notes.put(startTime, notes);\n } else {\n List<Note> oldList = this.notes.remove(startTime);\n oldList.addAll(notes);\n this.notes.put(startTime, oldList);\n }\n\n }", "public void setNotes(String notes) {\n\t\tthis.notes = notes;\r\n\t}", "void setNotes(String notes);", "public void setNotes(String notes);", "public void setNotes(String notes) {\n\t\tthis.notes = notes;\n\t}", "@RequestMapping(\"/note\")\r\n\tpublic ResponseEntity<Note> createNote(@RequestBody Note note,HttpSession session) {\r\n\t\tString userId = (String) session.getAttribute(\"loggedInUserId\");\r\n\t\tif(userId==null) {\r\n\t\t\treturn new ResponseEntity<Note>(HttpStatus.UNAUTHORIZED);\r\n\t\t}\r\n\t\tboolean bool = false;\r\n\t\ttry {\r\n\t\t\tnote.setCreatedBy(userId);\r\n\t\t\tbool = noteService.createNote(note);\r\n\t\t} catch (Exception e) {}\r\n\t\tif(bool==true) {\r\n\t\t\treturn new ResponseEntity<Note>(HttpStatus.CREATED);\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn new ResponseEntity<Note>(HttpStatus.CONFLICT);\r\n\t\t}\r\n\t}", "String saveNote(NoteModel noteModel) throws ManagerException ;", "public void insertNote(NewsModel data) {\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n // `id` and `timestamp` will be inserted automatically.\n // no need to add them\n values.put(NewsModel.COLUMN_SOURCE, data.getSourceName());\n values.put(NewsModel.COLUMN_AUTHOR, data.getAuthor());\n values.put(NewsModel.COLUMN_CONTENT, data.getContent());\n values.put(NewsModel.COLUMN_DESCRIPTION, data.getDescription());\n values.put(NewsModel.COLUMN_PUBLISHEDAT, data.getPublishedAt());\n values.put(NewsModel.COLUMN_TITLE, data.getTitle());\n values.put(NewsModel.COLUMN_URL, data.getUrl());\n values.put(NewsModel.COLUMN_URLTOIMAGE, data.getUrlToImage());\n // insert row\n long id = db.insert(NewsModel.TABLE_NAME, null, values);\n\n // close db connection\n db.close();\n }", "private boolean addNote(ProblemNote pn) {\n String s = VistAUtil.concatParams(problem.getId().getIdPart(), null, pn.getFacility().getIdElement().getIdPart(),\n null, pn.getNarrative());\n s = getBroker().callRPC(\"BGOPRBN SET\", s);\n \n if (PCC.errorCheck(s)) {\n return false;\n }\n \n // Problem IEN [1] ^ Note IEN [2] ^ Location IEN [3] ^ Note # [4] ^ Narrative [5] ^\n // Status [6] ^ Date Entered [7] ^ Author Name [8] ^ Note ID [9]\n \n String[] pcs = StrUtil.split(s, StrUtil.U, 9);\n \n pn.setId(pcs[1]);\n Organization org = new Organization();\n org.setId(pcs[2]);\n pn.setFacility(org);\n pn.setNumber(pcs[3]);\n pn.setNarrative(pcs[4]);\n pn.setStatus(pcs[5]);\n pn.setDateAdded(new FMDate(pcs[6]));\n pn.setAuthor(pcs[7]);\n return true;\n }", "void handle_push_note(LinkedList<Object> args) {\n try {\n String name = (String)args.get(1);\n String create = (String)args.get(2);\n String modify = (String)args.get(3);\n String content = (String)args.get(4);\n\n PreparedStatement pst =\n con.prepareStatement(\"SELECT user_id \" +\n \"FROM data WHERE note_name=? AND user_id=?\");\n pst.setString(1, name);\n pst.setInt(2, userid);\n rsl = pst.executeQuery();\n String state;\n if(rsl.next()) { //查询到结果\n state = \"UPDATE data SET \"+\n \"time_create=?,\" +\n \"time_modify=?,\" +\n \"note_content=? WHERE note_name=? AND user_id=?\";\n pst = con.prepareStatement(state);\n pst.setString(1, create);\n pst.setString(2, modify);\n pst.setString(3, content);\n pst.setString(4, name);\n pst.setInt(5, userid);\n System.out.println(username + \" updated \" + name + \":\" + content);\n } else {\n state = \"INSERT INTO \" +\n \"data(user_id,note_name,time_create,\" +\n \"time_modify,note_content) VALUES(?,?,?,?,?)\";\n pst = con.prepareStatement(state);\n pst.setInt(1, userid);\n pst.setString(2, name);\n pst.setString(3, create);\n pst.setString(4, modify);\n pst.setString(5, content);\n System.out.println(username + \" added \" + name + \":\" + content);\n }\n pst.executeUpdate();\n args.set(1, \"yes\");\n } catch (Exception e) {\n e.printStackTrace();\n args.set(1, \"no\");\n args.set(2, e.toString());\n }\n }", "boolean saveMyNoteText(String myNote);", "public void setDocumentNote (String DocumentNote);", "public void create(Note newNote) {\n\t\t// TODO generate unique ID\n\n\t\tnewNote.setId(Long.valueOf(getNotes().size()));\n\n\t\tString sql = \"INSERT INTO todo VALUES ('\" + newNote.getId() + \"','\" + newNote.getName() + \"','\" + newNote.getAbbreviation() + \"','\" + newNote.getDescription() + \"' );\";\n\n\t\tList<Note> todos = sqlUpdate(sql);\n\t\tsetNotes(todos);\n\n\t\t// this.getHibernateTemplate().delete(project);\n\t}", "@RequestMapping(\"/agent/enrollment/note\")\n @ResponseBody\n public StatusDTO saveNote(@RequestParam(\"id\") long ticketId, @RequestParam(\"note\") String note) {\n String signature = \"EnrollmentController#saveNote(long id, String note)\";\n LogUtil.traceEntry(getLog(), signature, new String[] { \"id\", \"note\" }, new Object[] { ticketId, note });\n\n if (note == null || note.trim().length() == 0) {\n throw new IllegalArgumentException(\"A note must be provided.\");\n }\n\n StatusDTO statusDTO = new StatusDTO();\n CMSUser user = ControllerHelper.getCurrentUser();\n try {\n enrollmentService.addNoteToTicket(user, ticketId, note);\n statusDTO.setSuccess(true);\n } catch (PortalServiceException ex) {\n LogUtil.traceError(getLog(), signature, ex);\n statusDTO.setMessage(USER_ERROR_MSG);\n }\n\n return LogUtil.traceExit(getLog(), signature, statusDTO);\n }", "public void addElts(NoteToken note){\r\n NotesList.add(note);\r\n }", "public void setNote(String note) {\n if(note==null){\n note=\"\";\n }\n this.note = note;\n }", "public void insertNotes(Notes notes) throws DaoException { \t\t\r\n\r\n\t\ttry {\r\n\t\t\t// insert notes\r\n\t\t \tString sql =\r\n\t\t\t\t \"INSERT INTO notes (notesId, userId, content, lastModified,creationDate) \" +\r\n\t\t\t\t \"VALUES (#notesId#, #userId#, #content#, #lastModified#,#creationDate#)\";\r\n\t\t\t\t \r\n\t\t\tsuper.update(sql, notes);\r\n\t\t\t\t\t\t\r\n\r\n\t \t}\r\n\t\tcatch(Exception e) {\t\t\t\r\n\t\t\tlog.error(e.getMessage(), e);\r\n\t\t\tthrow new DaoException(e.toString());\r\n\t\t}\r\n\t}", "void addNote(int duration, int octave, int beatNum, int instrument, int volume, String pitch)\n throws IllegalArgumentException;", "private void updateNote(NewNoteInput note, QueryService service) {\n boolean isTagListSame = new TreeSet<>(mNote.tags()).equals(mTags);\n\n if (note.body().equals(mNote.body()) && note.title().equals(mNote.title()) && isTagListSame) {\n Log.i(LOG_TAG, \"skipped update of unchanged note\");\n return;\n }\n\n // The single spaces are like clear commands. This is a hack around\n // the express graphql implementation.\n EditNoteInput.Builder builder = EditNoteInput.builder()\n .id(mNote.id())\n .title((note.title() == null || note.title().isEmpty()) && mNote.title() != null ? \" \" : note.title())\n .body((note.body() == null || note.body().isEmpty()) && !mNote.body().isEmpty() ? \" \" : note.body())\n .tags(isTagListSame ? null : note.tags());\n\n service.editNote(builder.build(), (e, response) -> {\n runOnUiThread(() -> {\n if (e != null) {\n Log.e(LOG_TAG, e.getMessage());\n Toast.makeText(getApplicationContext(), getString(R.string.network_err),\n Toast.LENGTH_LONG).show();\n } else {\n Log.i(LOG_TAG, \"note updated\");\n Toast.makeText(getApplicationContext(), getString(R.string.activity_note_nupdate),\n Toast.LENGTH_SHORT).show();\n\n finish();\n }\n });\n });\n }", "public void addNoteToFile(Note note) throws DaoException {\n\t\tFile notebookFile = new File(FILE_NAME);\n\t\ttry {\n\t\t\tif (notebookFile.exists()) {\n\t\t\t\twriteNoteInFile(note);\n\t\t\t} else {\n\t\t\t\tNoteBook noteBook = NoteBookProvider.getInstance()\n\t\t\t\t\t\t.getNoteBook();\n\n\t\t\t\tcreateNoteBookFile(noteBook);\n\t\t\t\taddNoteToFile(note);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tthrow new DaoException(\"Add note to file error\", e);\n\t\t}\n\t\tSystem.out.println(notebookFile.getAbsolutePath());\n\n\t}", "void addNote(int duration, int octave, int beatNum, String pitch)\n throws IllegalArgumentException;", "public void saveNote(String noteText, int courseId, boolean newNote) {\r\n CourseNoteEntity note = liveNote.getValue();\r\n\r\n if (note == null) {\r\n if (TextUtils.isEmpty(noteText.trim())) {\r\n return;\r\n }\r\n else if (newNote) {\r\n note = new CourseNoteEntity(noteText, courseId);\r\n noteRepository.insertNote(note);\r\n }\r\n }\r\n else {\r\n note.setNote(noteText);\r\n noteRepository.updateNote(note);\r\n }\r\n }", "public void addNewNote(MenuItem item){\n \t\tIntent intent = new Intent(this, ActivityNote.class);\n \t\tstartActivity(intent);\n \t}", "public long insertNota(String title, String body) {\n ContentValues initialValues = new ContentValues();\n initialValues.put(KEY_NOTES_TITLE, title);\n initialValues.put(KEY_NOTES_BODY, body);\n\n return database.insert(NOTES_TABLE, null, initialValues);\n }", "@Override\n\tpublic void insert(Note e) {\n\t\tString sql = \"insert into cn_note(cn_note_id,cn_user_id,cn_notebook_id,cn_note_title,cn_note_create_time)\"+\n\t\t\"values(?,?,?,?,?)\";\n\t\ttry {\n\t\t\tPreparedStatement pst = conn.prepareStatement(sql);\n\t\t\tpst.setString(1, e.getCn_note_id());\n\t\t\tpst.setString(2, e.getCn_user_id());\n\t\t\tpst.setString(3, e.getCn_notebook_id());\n\t\t\tpst.setString(4, e.getCn_note_title());\n\t\t\tpst.setLong(5, e.getCn_note_create_time());\n\t\t\tint count=pst.executeUpdate();\n\t\t\tSystem.out.println(\"成功插入\"+count+\"条语句\");\n\t\t} catch (SQLException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t}", "void setNote(int note) {\n\t\tthis.note = note;\n\t}", "public void add(@NonNull Context context, @NonNull Note newNote)\n {\n boolean closeDatabase = false;\n if (databaseClosed)\n {\n //the database will be opened by this call, set this to true to\n // ensure it is closed upon exit.\n closeDatabase = true;\n openDatabase(context);\n }\n addNewNoteQuery(newNote);\n if (closeDatabase)\n {\n noteDatabase.close();\n }\n }", "@Override\n public CompositionBuilder<MusicOperation> addNote(int start, int end, int instrument,\n int pitch, int volume) {\n this.listNotes.add(new SimpleNote(Pitch.values()[(pitch) % 12],\n Octave.values()[(pitch / 12) - 2 ], start, end - start, instrument, volume));\n return this;\n }", "@Override\n public boolean createDailyNote(String note) {\n dailyNotes.add(new DailyNote(note));\n return true;\n }", "public Note() {\n //uig = new UniqueIdGenerator();\n noteId = UUIDGenerator.getUUID();\n created_on = new Date();\n }", "public AddressEntry setNote(String note){\r\n\t\tthis.note=note;\r\n\t\treturn this;\r\n\t}", "public void addNote()\n {\n String stringNote;\n char actualNote;\n int beat;\n \n System.out.print(\"Enter the note > \"); //gets the note from user\n stringNote = in.nextLine();\n actualNote = stringNote.charAt(0);\n \n System.out.print(\"Enter the length of the note in beats > \"); //gets the beats from user\n beat = in.nextInt();\n \n Note note = new Note(actualNote, beat); //creates Note to be added\n \n score.add(note); //adds the note to the score\n \n in.nextLine();\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n //processRequest(request, response);\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n \r\n Note n = noteWrite(request);\r\n request.setAttribute(\"note\", n);\r\n getServletContext().getRequestDispatcher(\"/WEB-INF/viewnote.jsp\").forward(request, response);\r\n //System.out.println(\"POST Request:\");\r\n //System.out.println(\"doPost():\");\r\n \r\n \r\n }", "public void addNote(Note newNote) throws NotepadOverflowException {\n for (int i = 0; i < _notes.length; i++) {\n if (_notes[i] == null) {\n _notes[i] = newNote;\n return;\n }\n }\n if (DynamicNotepad) {\n enlargeNotepad(_notes.length);\n addNote(newNote);\n }\n throw new NotepadOverflowException(_notes.length);\n }", "@PostMapping(\"/updateNote\")\n public String updateNote(@ModelAttribute Note note){\n noteService.update(note);\n return \"redirect:/mods\";\n }", "@Test\n public void createNewNote() throws Exception{\n final CourseInfo course = sDataManager.getCourse(\"android_async\");\n final String noteTitle = \"Test note title\";\n final String noteText = \"This is the body test of my text note\";\n\n int noteIndex = sDataManager.createNewNote();\n NoteInfo newNote = sDataManager.getmNotes().get(noteIndex);\n newNote.setmCourses(course);\n newNote.setmTitle(noteTitle);\n newNote.setmText(noteText);\n\n NoteInfo compareNote = sDataManager.getmNotes().get(noteIndex);//contains the things that we put on the note at that point\n assertEquals(compareNote.getmCourses(), course);\n assertEquals(compareNote.getmTitle(), noteTitle);\n assertEquals(compareNote.getmText(), noteText);\n// assertSame(newNote, compareNote);//checks if two references point to the same object\n }", "public void addInABSTRACT_NOTES( String abstractUUID,\n\t\t\tString noteTitle, String NoteText ) {\n\n\t\tContentValues values = new ContentValues();\n\t\tvalues.put(\"ABSTRACT_UUID\", abstractUUID);\n\t\tvalues.put(\"NOTE_TITLE\", noteTitle);\n\t\tvalues.put(\"NOTE_TEXT\", NoteText);\n\t\tlong note_id;\n\t\tnote_id = getWritableDatabase().insert(TABLE_ABSTRACT_NOTES, null, \n\t\t\t\tvalues);\n\t\tLog.d(\"GCA-DB\", \"Note inserted: id = > \" + note_id);\n\t\t}", "public NotesData addNote(int charId, String subject, String desc) {\n\t\tSQLiteDatabase database = getWritableDatabase();\n\n\t\tContentValues notevals = new ContentValues();\n\t\tnotevals.put(\"character_id\", charId);\n\t\tnotevals.put(\"subject\", subject);\n\t\tnotevals.put(\"description\", desc);\n\n\t\tlong rowid = database.insert(\"notes_data\", null, notevals);\n\t\tString[] args = new String[] { \"\" + rowid };\n\n\t\tCursor c = database.rawQuery(\n\t\t\t\t\"SELECT * FROM notes_data WHERE notes_data.ROWID =?\", args);\n\t\tc.moveToFirst();\n\n\t\treturn new NotesData(c.getInt(c.getColumnIndex(\"_id\")),\n\t\t\t\tc.getString(c.getColumnIndex(\"subject\")), c.getString(c\n\t\t\t\t\t\t.getColumnIndex(\"description\")));\n\t}", "public final void setNote(java.lang.String note)\r\n\t{\r\n\t\tsetNote(getContext(), note);\r\n\t}", "public void setNote(Note newNote) {\n\t \n\t //stores newNote in the note field\n\t this.note = newNote;\n }", "public void setNote(Note note) {\n this.note = note;\n\n noteContent.setText(note.getNoteText().toString());\n noteContent.setPromptText(\"Enter note here.\");\n }", "public Builder setNotes(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000040;\n notes_ = value;\n onChanged();\n return this;\n }", "public void setNote(String note) {\r\n this.note = note == null ? null : note.trim();\r\n }", "public void setNote(String note) {\n this.note = note == null ? null : note.trim();\n }", "public void setNote(String note) {\n this.note = note == null ? null : note.trim();\n }", "public void setNote(String note) {\n this.note = note == null ? null : note.trim();\n }", "public void setNote(String note) {\n this.note = note == null ? null : note.trim();\n }", "public Note(String description) throws NoteException {\n if(description.equals(\"note\")) {\n throw new NoteException();\n }\n this.description = description;\n }", "private void createNewNote(Date date, Note.NoteType type) {\n Intent intent = new Intent(context, NoteActivity.class);\n Calendar calendar = Calendar.getInstance();\n calendar.setTime(date);\n\n intent.putExtra(\"date\", calendar);\n intent.putExtra(\"fullDay\", true);\n intent.putExtra(\"type\", type.ordinal());\n\n context.startActivity(intent);\n }", "public org.landxml.schema.landXML11.FieldNoteDocument.FieldNote addNewFieldNote()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.FieldNoteDocument.FieldNote target = null;\r\n target = (org.landxml.schema.landXML11.FieldNoteDocument.FieldNote)get_store().add_element_user(FIELDNOTE$4);\r\n return target;\r\n }\r\n }", "public final void setNotes(java.lang.String notes)\n\t{\n\t\tsetNotes(getContext(), notes);\n\t}", "public Note(String body, String title) {\n super(title, null);\n this.body = body;\n this.attachments = new HashMap<>();\n }", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent incomingNote) {\n if (requestCode ==CODE_FOR_NEW_NOTE){\n if (resultCode == RESULT_OK){\n Note blankNote = (Note) incomingNote.getSerializableExtra(EditActivity.newNote);\n noteList.add(0, blankNote);\n }\n }\n //Incoming note that is result of an edited note\n if (requestCode == CODE_FOR_EDIT_NOTE){\n if(resultCode == RESULT_OK){\n Note editedNote = (Note) incomingNote.getSerializableExtra(EditActivity.newNote);\n noteList.remove(pos);\n noteList.add(0, editedNote);\n\n }\n }\n\n try {\n doWrite();\n } catch (JSONException e) {\n Toast.makeText(this, \"Failed to save.\", Toast.LENGTH_LONG ).show();\n e.printStackTrace();\n } catch (IOException e) {\n Toast.makeText(this, \"Failed to save.\", Toast.LENGTH_LONG ).show();\n e.printStackTrace();\n }\n doRead();\n setCount();\n noteAdapter.notifyDataSetChanged();\n }", "void addNote(int x, int y);", "public String getNote() {\r\n return note;\r\n }", "public String getNote() {\r\n return note;\r\n }", "void handle_pull_note(LinkedList<Object> args) {\n try { //get all notes\n String name = (String) args.get(1);\n PreparedStatement pst =\n con.prepareStatement(\"SELECT note_content \" +\n \"FROM data WHERE note_name=? AND user_id=?\");\n pst.setString(1, name);\n pst.setInt(2, userid);\n rsl = pst.executeQuery();\n rsl.next();\n args.set(1, \"yes\");\n String content = rsl.getString(1);\n args.add(2, content);\n } catch (Exception e) {\n e.printStackTrace();\n args.set(1, \"no\");\n args.add(2, e.toString());\n }\n }", "@POST\n\t@Path(\"/addNote/{userid}\")\n\t@Consumes(\"application/json\")\n\tpublic Response addUserNote(@PathParam(\"userid\") String userid, Note note) {\n\t\tif (userid == null && note == null) {\n\t\t\treturn Response.ok().entity(\"user id or Note object is null\").build();\n\t\t}\n\t\ttry {\n\t\t\tInteger.parseInt(userid);\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn Response.ok().entity(\"user id is not a valid number\").build();\n\t\t}\n\n\t\tint userId = Integer.parseInt(userid);\n\t\tUser user = userService.findById(userId);\n\t\tif (user == null) {\n\t\t\treturn Response.ok().entity(\"Requested user is not available in Database\").build();\n\t\t} else {\n\t\t\tnote.setUser(user);\n\t\t\tnoteService.saveNote(note);\n\t\t\treturn Response.ok().entity(\"success\").build();\n\t\t}\n\n\t}", "public String getNote()\n {\n return note;\n }", "public String getNote() {\n return note;\n }", "public String getNote() {\n return note;\n }", "public String getNote() {\n return note;\n }", "public String getNote() {\n return note;\n }" ]
[ "0.727928", "0.709262", "0.70761734", "0.6985627", "0.69797814", "0.69731474", "0.68505186", "0.6764747", "0.6763474", "0.675932", "0.67495996", "0.6716789", "0.6686779", "0.6686779", "0.6686779", "0.6686779", "0.6686779", "0.66669893", "0.66639197", "0.66630995", "0.66372436", "0.6597044", "0.65933245", "0.65087616", "0.64910567", "0.6468483", "0.64661604", "0.64657414", "0.6417038", "0.6407425", "0.635773", "0.6354414", "0.63474596", "0.63047594", "0.6286555", "0.6282174", "0.628216", "0.62726045", "0.62633145", "0.62608016", "0.624508", "0.6239013", "0.6196797", "0.61911476", "0.6182529", "0.61812246", "0.61801624", "0.61769956", "0.61704093", "0.6158217", "0.6147797", "0.61436516", "0.61427903", "0.61093444", "0.6093798", "0.6074793", "0.6071688", "0.60575074", "0.6052991", "0.6051149", "0.60378635", "0.6008918", "0.6006768", "0.6002608", "0.59944755", "0.59934044", "0.59735984", "0.59485596", "0.5922905", "0.59172076", "0.5910531", "0.5890489", "0.5877173", "0.5862366", "0.5846126", "0.58172303", "0.5815844", "0.5810977", "0.58011484", "0.57972604", "0.57966465", "0.57966465", "0.57966465", "0.57966465", "0.5789945", "0.57733935", "0.57727146", "0.575591", "0.5736193", "0.57275873", "0.572436", "0.5711936", "0.5711936", "0.5702778", "0.56942374", "0.569361", "0.5693205", "0.5693205", "0.5693205", "0.5693205" ]
0.71163887
1
Update the contents of the given note
public static void updateNote(int tenantID, String noteName, String content) throws RegistryException, NotePersistenceException { UserRegistry userRegistry = ServiceHolder.getRegistryService().getConfigSystemRegistry(tenantID); String noteLocation = getNoteLocation(noteName); if (userRegistry.resourceExists(noteLocation)) { Resource resource = userRegistry.get(noteLocation); resource.setContent(content); resource.setMediaType(NoteConstants.NOTE_MEDIA_TYPE); userRegistry.put(noteLocation, resource); } else { log.warn("Cannot update note with name " + noteName + " for tenant with tenant ID " + tenantID + " because it does not exist. Creating new note and adding the content."); addNewNote(tenantID, noteName, content); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Update withNotes(String notes);", "@Test\n\tpublic void testUpdateNote() {\n//\t\tlog.trace(\"Testing updating note\");\n\t\tfinal short week = 2;\n\n\t\t// get the list of individual notes for week 2\n\t\tList<Note> notes = noteDao.findIndividualNotes(TEST_QCBATCH_ID, week);\n\n\t\tassertTrue(!notes.isEmpty());\n\n\t\tNote note = notes.get(1);\n\n\t\t// Old Content = Superstar. Great communication skill and good solid knowledge.\n\t\tString oldContent = note.getContent();\n\n\t\tnote.setContent(\"Hello\");\n\n\t\t// update note\n\t\tnoteDao.save(note);\n\n\t\t// Old Content should not equal new Content if updated\n\t\tnotes = noteDao.findIndividualNotes(TEST_QCBATCH_ID, week);\n\t\tString newContentSet = notes.get(1).getContent();\n\t\tassertNotEquals(oldContent, newContentSet);\n\t}", "private void updateNote(NewNoteInput note, QueryService service) {\n boolean isTagListSame = new TreeSet<>(mNote.tags()).equals(mTags);\n\n if (note.body().equals(mNote.body()) && note.title().equals(mNote.title()) && isTagListSame) {\n Log.i(LOG_TAG, \"skipped update of unchanged note\");\n return;\n }\n\n // The single spaces are like clear commands. This is a hack around\n // the express graphql implementation.\n EditNoteInput.Builder builder = EditNoteInput.builder()\n .id(mNote.id())\n .title((note.title() == null || note.title().isEmpty()) && mNote.title() != null ? \" \" : note.title())\n .body((note.body() == null || note.body().isEmpty()) && !mNote.body().isEmpty() ? \" \" : note.body())\n .tags(isTagListSame ? null : note.tags());\n\n service.editNote(builder.build(), (e, response) -> {\n runOnUiThread(() -> {\n if (e != null) {\n Log.e(LOG_TAG, e.getMessage());\n Toast.makeText(getApplicationContext(), getString(R.string.network_err),\n Toast.LENGTH_LONG).show();\n } else {\n Log.i(LOG_TAG, \"note updated\");\n Toast.makeText(getApplicationContext(), getString(R.string.activity_note_nupdate),\n Toast.LENGTH_SHORT).show();\n\n finish();\n }\n });\n });\n }", "public void setNote(String note);", "public void setNote(String note) {\r\n this.note = note; \r\n }", "public void setNote(Note note) {\n this.note = note;\n\n noteContent.setText(note.getNoteText().toString());\n noteContent.setPromptText(\"Enter note here.\");\n }", "public void setNote(String note) {\r\n\r\n this.note = note;\r\n }", "public void setNote(String note) {\r\n this.note = note;\r\n }", "public void setNote(String note) {\n this.note = note;\n }", "public void setNote(String note) {\n this.note = note;\n }", "public void setNote(String note) {\n this.note = note;\n }", "public void setNote(String note) {\n this.note = note;\n }", "public void setNote(String note) {\n this.note = note;\n }", "public void updateNoteABSTRACT_NOTES( String note_id, String noteTitle, \n\t\t\t\t\t\t\t\t\t\t String NoteText ) {\n\t\t\n\t\tContentValues values = new ContentValues();\n\t\tvalues.put(\"NOTE_TITLE\", noteTitle);\n\t\tvalues.put(\"NOTE_TEXT\", NoteText);\n\t\tlong rows_affected = getWritableDatabase().update(TABLE_ABSTRACT_NOTES, values,\n\t\t\t\t\"NOTE_ID = ?\", new String[] { note_id });\n\t\tLog.d(\"GCA-DB\", \"Updated Note from db - no: \" + rows_affected);\n\t\t}", "@Override\n\tpublic void update(Note e) {\n\t\tString sql = \"update cn_note set cn_note_title=?,\"\n\t\t+\"cn_note_body=?,\"\n\t\t+\"cn_note_last_modify_time=? where cn_note_id=?\";\n\t\ttry {\n\t\t\tPreparedStatement pst = conn.prepareStatement(sql);\n\t\t\tpst.setString(1, e.getCn_note_title());\n\t\t\tpst.setString(2, e.getCn_note_body());\n\t\t\tpst.setLong(3, e.getCn_note_last_modify_time());\n\t\t\tpst.setString(4, e.getCn_note_id());\n\t\t\tint count=pst.executeUpdate();\n\t\t\tSystem.out.println(\"成功更新了\"+count+\"条语句\");\n\t\t} catch (SQLException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\t\n\t}", "void setNote(int note) {\n\t\tthis.note = note;\n\t}", "private void updateNote(int noteId, final String noteTitle, final String noteDescription, final int position) {\n mDispose.add(\n AppConfig.getApiClient().updateNote(noteId, noteTitle, noteDescription)\n .subscribeOn(Schedulers.io())\n .observeOn(AndroidSchedulers.mainThread())\n .subscribeWith(new DisposableCompletableObserver() {\n @Override\n public void onComplete() {\n Toast.makeText(MainActivity.this, \"Updated\", Toast.LENGTH_SHORT).show();\n\n ToDo toDo = toDoList.get(position);\n toDo.setName(noteTitle);\n toDo.setDescription(noteDescription);\n\n mAdapterNote.notifyItemChanged(position);\n }\n\n @Override\n public void onError(Throwable e) {\n showError(e);\n }\n })\n );\n }", "public void changeNotes(String a) {\r\n notes = a;\r\n }", "public void setNote(String note) {\n\t\tthis.note = note;\n\t}", "public void setNote(Note newNote) {\n\t \n\t //stores newNote in the note field\n\t this.note = newNote;\n }", "@Override\n\tpublic void update(GalaxyNote galaxynote) {\n\t\t\n\t}", "public static Note update(Note note) {\n EntityManager em = GestionFactory.factory.createEntityManager();\n\n //\n em.getTransaction().begin();\n\n // Attacher une entité persistante (note) à l’EntityManager courant pour réaliser la modification\n em.merge(note);\n\n // Commit\n em.getTransaction().commit();\n\n // Close the entity manager\n em.close();\n\n return note;\n }", "void editNote(String editor, int beatNum, String pitch, int octave)\n throws IllegalArgumentException;", "public void setNote(String note) {\n\t\tthis._note = note;\n\t}", "public void updateNote(Note note) {\n\t\t\tSession session = sessionFactory.openSession();\n\t\t\tTransaction transaction = null;\n\t\t\ttry {\n\n\t\t\t\ttransaction = session.beginTransaction();\n\t\t\t\tsession.saveOrUpdate(note);\n\t\t\t\ttransaction.commit();\n\t\t\t} catch (Exception e) {\n\t\t\t\tif (transaction != null) {\n\t\t\t\t\ttransaction.rollback();\n\t\t\t\t}\n\t\t\t} finally {\n\t\t\t\tsession.close();\n\t\t\t}\n\t\t}", "public void setNote(String note) {\n if(note==null){\n note=\"\";\n }\n this.note = note;\n }", "public void setDocumentNote (String DocumentNote);", "public void editNote(int index, Note note) throws NotepadOutOfBoundsException {\n if (!isRightBounds(index))\n throw new NotepadOutOfBoundsException(index);\n _notes[index - 1] = null;\n _notes[index - 1] = note;\n }", "void setNotes(String notes);", "protected void editNote()\n\t{\n\t\tActivity rootActivity = process_.getRootActivity();\n\t\tActivityPanel rootActivityPanel = processPanel_.getChecklistPanel().getActivityPanel(rootActivity);\n\t\tActivityNoteDialog activityNoteDialog = new ActivityNoteDialog(rootActivityPanel);\n\t\tint dialogResult = activityNoteDialog.open();\n\t\tif (dialogResult == SWT.OK) {\n\t\t\t// Store the previous notes to determine below what note icon to use\n\t\t\tString previousNotes = rootActivity.getNotes();\n\t\t\t// If the new note is not empty, add it to the activity notes\n\t\t\tif (activityNoteDialog.getNewNote().trim().length() > 0)\n\t\t\t{\n\t\t\t\t// Get the current time\n\t\t\t\tString timeStamp = new SimpleDateFormat(\"d MMM yyyy HH:mm\").format(Calendar.getInstance().getTime());\n\t\t\t\t// Add the new notes (with time stamp) to the activity's notes.\n\t\t\t\t//TODO: The notes are currently a single String. Consider using some more sophisticated\n\t\t\t\t// data structure. E.g., the notes for an activity can be a List of Note objects. \n\t\t\t\trootActivity.setNotes(rootActivity.getNotes() + timeStamp + \n\t\t\t\t\t\t\" (\" + ActivityPanel.AGENT_NAME + \"):\\t\" + activityNoteDialog.getNewNote().trim() + \"\\n\");\n\t\t\t}\n\t\t\t\n\t\t\t// Determine whether the note icon should change.\n\t\t\tif (previousNotes.trim().isEmpty())\n\t\t\t{\n\t\t\t\t// There were no previous notes, but now there are -- switch to image of note with text \n\t\t\t\tif (!rootActivity.getNotes().trim().isEmpty())\n\t\t\t\t\tactivityNoteButton_.setCurrentImage(noteWithTextImage_);\n\t\t\t}\n\t\t\telse // There were previous notes, but now there aren't -- switch to blank note image\n\t\t\t\tif (rootActivity.getNotes().trim().isEmpty())\n\t\t\t\t\tactivityNoteButton_.setCurrentImage(noteWithoutTextImage_);\n\t\t\t// END of determine whether the note icon should change\n\t\t\t\n\t\t\t// Set the tooltip text of the activityNoteButton_ to the current notes associated with the activity. \n\t\t\tactivityNoteButton_.setToolTipText(rootActivity.getNotes());\n\t\t\t\n\t\t\tprocessHeaderComposite_.redraw();\t// Need to redraw the activityNoteButton_ since its image changed.\n\t\t\t// We redraw the entire activity panel, because redrawing just the activityNoteButton_ \n\t\t\t// causes it to have different background color from the activity panel's background color\n\t\t\tSystem.out.println(\"Activity Note is \\\"\" + rootActivity.getNotes() + \"\\\".\");\n\t\t}\n\t}", "public void update() {\r\n\t\t\tsetTextValue(updateNoteEnabled);\r\n\t\t}", "private void saveNote()\n\t{\n\t\tString text = ((EditText) findViewById(R.id.note_edittext)).getText().toString();\n\t\tNoteDbWorker worker = new NoteDbWorker(this);\n\t\tworker.updateNote(user.userName, text);\n\t\tworker.close();\n\t\tToast.makeText(this, getString(R.string.note_saved), Toast.LENGTH_LONG).show();\n\t}", "public static Note update(final Note note) {\n try {\r\n // Simulate time for network request.\r\n Thread.sleep(5000);\r\n } catch (Exception e) {\r\n // Just for test purposes so handling error doesn't matter.\r\n }\r\n return note;\r\n }", "public void getText(){\n\t\tnoteText.setText(note.getText());\n\t}", "public void setNotes(String notes);", "int updateByPrimaryKey(ComplainNoteDO record);", "public boolean updateNote(long rowId, String title, String body) {\n ContentValues args = new ContentValues();\n args.put(KEY_NOTES_TITLE, title);\n args.put(KEY_NOTES_BODY, body);\n\n return database.update(NOTES_TABLE, args, KEY_NOTES_ROWID + \"=\" + rowId, null) > 0;\n }", "public final void setNote(java.lang.String note)\r\n\t{\r\n\t\tsetNote(getContext(), note);\r\n\t}", "@Override\r\n\tpublic CustomResult updateNote(MaterialConsume materialConsume) throws Exception{\n\t\tint i = materialConsumeMapper.updateNote(materialConsume);\r\n\t\tif(i>0){\r\n\t\t\treturn CustomResult.ok();\r\n\t\t}else{\r\n\t\t\treturn CustomResult.build(101, \"修改物料消耗备注失败\");\r\n\t\t}\r\n\t}", "public AddressEntry setNote(String note){\r\n\t\tthis.note=note;\r\n\t\treturn this;\r\n\t}", "public void setNote(String note) {\r\n this.note = note == null ? null : note.trim();\r\n }", "public void setNote(String note) {\n this.note = note == null ? null : note.trim();\n }", "public void setNote(String note) {\n this.note = note == null ? null : note.trim();\n }", "public void setNote(String note) {\n this.note = note == null ? null : note.trim();\n }", "public void setNote(String note) {\n this.note = note == null ? null : note.trim();\n }", "@PostMapping(\"/updateNote\")\n public String updateNote(@ModelAttribute Note note){\n noteService.update(note);\n return \"redirect:/mods\";\n }", "public void setNotes(String v) \n {\n \n if (!ObjectUtils.equals(this.notes, v))\n {\n this.notes = v;\n setModified(true);\n }\n \n \n }", "public void setNotes(String notes) {\n this.notes = notes;\n }", "boolean saveMyNoteText(String myNote);", "public void setNotes(java.lang.String notes) {\n this.notes = notes;\n }", "int updateByExample(@Param(\"record\") ComplainNoteDO record, @Param(\"example\") ComplainNoteDOExample example);", "public final void setNote(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String note)\r\n\t{\r\n\t\tgetMendixObject().setValue(context, MemberNames.Note.toString(), note);\r\n\t}", "public void setNotes(String notes) {\n\t\tthis.notes = notes;\r\n\t}", "public void setNotes(String notes) {\n\tthis.notes = notes;\n}", "public void setNote( final Double note )\r\n {\r\n this.note = note;\r\n }", "@Override\n\tpublic void update(Serializable id) {\n\t\t\n\t\tNote n = this.findById(id);\n\t\tif(n==null){\n\t\t\tthrow new RuntimeException(\"笔记id为空\");\n\t\t}\n\t\tthis.update(n);\n\t}", "@Override\n public void addNote(Note note) {\n\n List<Note> notes = new ArrayList<>();\n notes.add(note);\n\n if (this.notes.get(note.getBeat()) == null) {\n this.notes.put(note.getBeat(), notes);\n } else {\n List<Note> oldList = this.notes.remove(note.getBeat());\n oldList.addAll(notes);\n this.notes.put(note.getBeat(), oldList);\n }\n }", "@Override\n\tpublic void loadNote() throws IOException {\n\n\t}", "void updateNotes(Note arr[]){\n\n }", "public void setNotes(String notes) {\n\t\tthis.notes = notes;\n\t}", "@Cacheable(value = \"UpdateNote\", key = \"#noteId\")\n\t@Override\n\tpublic Response updateNote(String noteId, String email, NoteDTO notedto) throws IOException {\n\t\t\n\t\tif(email != null) {\n\t\t\n\t\t\tNote noteupdate = noterepository.findById(noteId).get();\n\t\t\tif(noteupdate != null) {\n\t\t\t\tnoteupdate.setTitle(notedto.getTitle());\n\t\t\t\tnoteupdate.setDescription(notedto.getDescription());\n\t\t\t\t\n\t\t\t\tLocalDateTime now = LocalDateTime.now();\n\t\t\t\tDateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"dd/MM/yyyy HH:mm:ss\");\n\t\t\t\tString date = now.format(formatter);\n\t\t\t\t\n\t\t\t\tnoteupdate.setEditDate(date);\n\t\t\t\tnoterepository.save(noteupdate);\n\t\t\t\telasticSearchService.updateDocument(noteupdate, noteId);\n\t\t\t\t\n\t\t\t\treturn new Response(200, noteEnvironment.getProperty(\"Update_Note\"), noteEnvironment.getProperty(\"UPDATE_NOTE\"));\n\t\t\t}\n\t\t\treturn new Response(404, noteEnvironment.getProperty(\"UPDATE_NOTE_NULL\"), null);\n\t\t}\n\t\treturn new Response(404, noteEnvironment.getProperty(\"UNAUTHORIZED_USER_EXCEPTION\"), null);\n\t}", "public void setNotes(java.lang.String notes)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NOTES$14, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(NOTES$14);\n }\n target.setStringValue(notes);\n }\n }", "protected void changeContent() {\n byte[] data = Arrays.copyOf(content.getContent(),\n content.getContent().length + 1);\n data[content.getContent().length] = '2'; // append one byte\n content.setContent(data);\n LOG.info(\"document content changed\");\n }", "@Override\n void notesUpdated(int nSlideIndex) {\n }", "public void addNote(Note note) throws ChangeVetoException;", "void update(int id, int teacherid, int noteid );", "public void update(TheatreMashup todo) {\n\t\t\n\t}", "public void onChange(TextNoteDataChangeEvent event);", "private void onSaveNote() {\n String text= inputNote.getText().toString();\n if(!text.isEmpty()){\n long date=new Date().getTime(); // get current time\n // Note note= new Note(text,date); because temp now has Note object\n\n // if note exits update else create new\n temp.setNoteText(text);\n temp.setNoteDate(date);\n\n if(temp.getId()==-1)\n dao.insertNote(temp); // insert and save note to database\n else{\n dao.updateNote(temp);\n }\n finish(); // return to the MainActivity\n }\n\n }", "public void updateNote(NoteButton noteButton){\n\t\tButton note = noteButton.getNoteButton();\n\n\t\t//Grab the style classes for reuse\n\t\tObservableList<String> styleClasses = note.getStyleClass();\n\n\t\t//Grab the note buttons row/column in the gridpane\n\t\tint noteColumn = GridPane.getColumnIndex(note);\n\t\tint noteRow = GridPane.getRowIndex(note);\n\n\t\tif(!noteButton.selected) {\n\t\t\tstyleClasses.remove(\"selected\");\n\t\t\tselectedNotes[noteColumn] = null;\n\t\t\tnoteFrequencies[noteColumn] = -1.0;\n\n\t\t\t//Otherwise, check if there is already a selected note in the same column\n\t\t} else {\n\t\t\t// If there is, un-highlight the other note\n\t\t\tif(selectedNotes[noteColumn] != null) {\n\t\t\t\tselectedNotes[noteColumn].getStyleClass().remove(\"selected\");\n\t\t\t}\n\n\t\t\t//Set the values in the array\n\t\t\tstyleClasses.add(\"selected\");\n\t\t\tselectedNotes[noteColumn] = note;\n\t\t\tnoteFrequencies[noteColumn] = Utils.Math.getKeyFrequency(88 - noteRow);\n\t\t}\n\t}", "@Override\n\tpublic void setNote(java.lang.String note) {\n\t\t_esfShooterAffiliationChrono.setNote(note);\n\t}", "public void actionPerformed(ActionEvent e)\r\n {\r\n String text; // text for note\r\n \r\n // handle new note requests\r\n if ((e.getSource() == newNote) && (! snp.isFull()))\r\n {\r\n // get note contents from the user and add a new note to the note pad\r\n text=JOptionPane.showInputDialog(\"Enter description of note:\");\r\n if ((text!=null) && (text.length()!=0))\r\n {\r\n snp.addNote(text);\r\n }\r\n }\r\n \r\n // if pad is non-empty handle navigation and deletion\r\n if (! snp.isEmpty())\r\n {\r\n // handle delete note requests\r\n if (e.getSource() == delNote)\r\n {\r\n // request deletion of the current note from the note pad\r\n snp.deleteNote();\r\n }\r\n \r\n // handle navigation requests to the previous note\r\n if (e.getSource() == prevNote)\r\n {\r\n // request move to previous note in the note pad\r\n snp.previousNote();\r\n }\r\n \r\n // handle navigation requests to the next note\r\n if (e.getSource() == nextNote)\r\n {\r\n // request move to next note in the note pad\r\n snp.nextNote();\r\n } \r\n }\r\n //update GUI with contents of current note \r\n repaint();\r\n }", "@Test\n\tpublic void noteContentCallback() throws Exception {\n\t\tadd(\"test.txt\", \"abc\");\n\t\tfinal String note = \"this is a note\";\n\t\tnote(note);\n\n\t\tfinal AtomicReference<String> found = new AtomicReference<String>();\n\n\t\tCommitFinder finder = new CommitFinder(testRepo);\n\t\tfinder.setFilter(new NoteContentFilter() {\n\n\t\t\tprotected boolean include(RevCommit commit, Note note,\n\t\t\t\t\tString content) {\n\t\t\t\tfound.set(content);\n\t\t\t\treturn super.include(commit, note, content);\n\t\t\t}\n\n\t\t});\n\t\tfinder.find();\n\t\tassertEquals(note, found.get());\n\t}", "private void setNoteOnFirebaseManager(Note note, boolean isUpdate){\n firebase.setNoteOnDB(note, unused -> {\n Toast.makeText(this, isUpdate ? R.string.note_update_success : R.string.note_addition_success, Toast.LENGTH_LONG).show();\n finish();\n }, e -> {\n Toast.makeText(this, e.getMessage(), Toast.LENGTH_LONG).show();\n });\n }", "public void applyChanges(ActionEvent event){\n\t\tString text = noteText.getText();\n\t\tdouble x = Double.parseDouble(originX.getText()), y = Double.parseDouble(originY.getText());\n\n\t\tif((!text.equals(note.getText())) || x != note.getOriginX() || y != note.getOriginY()) {\n\t\t\tcontroller.UNDONE_ACTIONS.clear();\n\t\t\ttry {\n\t\t\t\tcontroller.ACTIONS.push(new UpdateNote(note, text, x, y, this));\n\t\t\t\tevent.consume();\n\t\t\t} catch (Exception e) {\n\t\t\t\tcontroller.ACTIONS.push(new ChangeNoteText(note, noteText.getText(), this));\n\t\t\t\tevent.consume();\n\t\t\t}\n\t\t}\n\t}", "OperationOutcome updateOrCreateCustomerNote(final Long id, final Note note);", "public void setNote(int note)\r\n {\r\n if (note >= 1 && note <= 5)\r\n this.note = note;\r\n else\r\n System.out.println(\"ungültige Note\");\r\n }", "@Override\n \t\t\tpublic void afterTextChanged(Editable s) {\n \t\t\t\tNoteEditView.this.mNoteItemModel.setContent(s.toString());\n \t\t\t}", "public void updateNoticeDetails(int docNoticeID, String docNoticenDetails, String docNoticenTitle) {\n\n\t\tConnection myConn = null;\n\t\tPreparedStatement preStmt = null;\n\t\tResultSet myRs = null;\n\n\t\ttry {\n\t\t\tString sql = \"UPDATE doctornotice SET content = ? , title = ? WHERE noteid = ? \";\n\t\t\tmyConn = dbConn.returnConn();\n\t\t\tpreStmt = myConn.prepareStatement(sql);\n\n\t\t\tpreStmt.setString(1, docNoticenDetails);\n\t\t\tpreStmt.setString(2, docNoticenTitle);\n\t\t\tpreStmt.setInt(3, docNoticeID);\n\n\t\t\tpreStmt.execute();\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tclose(myConn, preStmt, myRs);\n\t\t}\n\n\t}", "public void saveNote(String noteText, int courseId, boolean newNote) {\r\n CourseNoteEntity note = liveNote.getValue();\r\n\r\n if (note == null) {\r\n if (TextUtils.isEmpty(noteText.trim())) {\r\n return;\r\n }\r\n else if (newNote) {\r\n note = new CourseNoteEntity(noteText, courseId);\r\n noteRepository.insertNote(note);\r\n }\r\n }\r\n else {\r\n note.setNote(noteText);\r\n noteRepository.updateNote(note);\r\n }\r\n }", "@Override\n\tpublic void reportNote(String note) {\n\t\t//Sends data chunks(note) to the process method\n\t\tpublish(note);\n\t}", "public final void setNotes(java.lang.String notes)\n\t{\n\t\tsetNotes(getContext(), notes);\n\t}", "public void updateNotice(String noticename, String noticecontent, int empid, int noticeid) {\n\t\ttry {\n\t\t\tdao.updateNotice(noticename,noticecontent,empid,noticeid);\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}finally {\n\t\t\tdao.closeConnection();\n\t\t}\n\t}", "@Override\n\tpublic TextNote getTextNote(TextNote note) {\n\t\tif (note == null) return note;\n\t\t\n\t\tList<TextNote> noteList = repository.findAll();\n\t\tint listIndex = noteList.indexOf(note);\n\t\treturn noteList.get(listIndex);\n\t}", "interface WithNotes {\n /**\n * Specifies the notes property: Notes about the lock. Maximum of 512 characters..\n *\n * @param notes Notes about the lock. Maximum of 512 characters.\n * @return the next definition stage.\n */\n Update withNotes(String notes);\n }", "void openNote(Note note, int position);", "void update(Comment comment);", "public String getNote() {\r\n return note;\r\n }", "public String getNote() {\r\n return note;\r\n }", "@RequestMapping(\"/agent/enrollment/note\")\n @ResponseBody\n public StatusDTO saveNote(@RequestParam(\"id\") long ticketId, @RequestParam(\"note\") String note) {\n String signature = \"EnrollmentController#saveNote(long id, String note)\";\n LogUtil.traceEntry(getLog(), signature, new String[] { \"id\", \"note\" }, new Object[] { ticketId, note });\n\n if (note == null || note.trim().length() == 0) {\n throw new IllegalArgumentException(\"A note must be provided.\");\n }\n\n StatusDTO statusDTO = new StatusDTO();\n CMSUser user = ControllerHelper.getCurrentUser();\n try {\n enrollmentService.addNoteToTicket(user, ticketId, note);\n statusDTO.setSuccess(true);\n } catch (PortalServiceException ex) {\n LogUtil.traceError(getLog(), signature, ex);\n statusDTO.setMessage(USER_ERROR_MSG);\n }\n\n return LogUtil.traceExit(getLog(), signature, statusDTO);\n }", "public void setNoteEditModel(int mNoteId) {\n \t\tDBHelper dbHelper = DBHelper.getInstance(this.getContext());\n \t\tCursor cursor = dbHelper.query(DBHelper.TABLE.NOTES, null,\n \t\t\t\tNoteItemModel.ID + \" = \" + mNoteId, null, null);\n \t\tcursor.moveToFirst();\n \t\tthis.mNoteItemModel = new NoteItemModel(this.getContext(), cursor);\n \t\tthis.setContent(this.mNoteItemModel.getContent());\n \t\tthis.originLen = this.mNoteItemModel.getContent().length();// 保存原始内容长度\n \n \t\tif (this.mNoteItemModel.getAudio().length() != 0) {\n \t\t\tthis.mAudioPlay.setVisibility(View.VISIBLE);\n \t\t}\n \t\t// this.mModifyTime.setText(DateUtils.getRelativeTimeSpanString(this.mNoteItemModel.getModifyDate()));\n \t\t// this.mModifyTime.setText(this.getFormatModifyTime(this.mNoteItemModel.getModifyDate()));\n \t\tif (this.mNoteItemModel.isClock()) {\n \t\t\tClockModel mClock = this.mNoteItemModel.getClockModel();\n \t\t\tlong time = mClock.getTimeInMillis();\n \n \t\t\tthis.mClockTime.setText(this.getFormatClockTime(time));\n \n \t\t\tthis.mClock.setOnClickListener(null);\n \t\t}\n \t\tthis.status = STATUS_EDIT;\n \t}", "public String getNote()\n {\n return note;\n }", "public String getNote(){\r\n\t\treturn note;\r\n\t}", "public void noteEvent(Note note)\r\n {\r\n byte noteValue = note.getValue();\r\n if (voiceValue != 9) // added D G Gray 5th Feb 2017\r\n {\r\n noteValue += this.interval;\r\n note.setValue(noteValue);\r\n\t }\r\n\r\n getReturnPattern().addElement(note);\r\n }", "public void sendMessage(final int note) {\n final ShortMessage myMsg = new ShortMessage();\n final long timeStamp = -1;\n\n // hard-coded a moderate velocity of 93 because there is no way of tracking speed of finger movement\n try {\n myMsg.setMessage(ShortMessage.NOTE_ON, 0, note, 93);\n } catch (final InvalidMidiDataException e) {\n System.err.println(\"Could not send midi message! \");\n System.err.println(e.getMessage());\n }\n this.midiReceiver.send(myMsg, timeStamp);\n\n// turn the note off after one second of playing\n final ExecutorService service = Executors.newFixedThreadPool(1);\n service.submit(() -> {\n try {\n Thread.sleep(1000);\n //stop old note from playing\n myMsg.setMessage(ShortMessage.NOTE_OFF, 0, note, 0);\n this.midiReceiver.send(myMsg, timeStamp);\n } catch (final InterruptedException | InvalidMidiDataException e) {\n e.printStackTrace();\n }\n });\n }", "public void setNotes(com.sforce.soap.enterprise.QueryResult notes) {\r\n this.notes = notes;\r\n }", "@Override\n public void onClick(View v) {\n if (TextUtils.isEmpty(editText.getText().toString())){\n Toast.makeText(getContext(), \"Enter note!\", Toast.LENGTH_SHORT).show();\n return;\n } else {\n alertDialog.dismiss();\n }\n\n // check if user updating note\n\n if (shouldUpdate && note != null){\n // update note by it's id\n note.setNote(editText.getText().toString());\n updateNote(note, position);\n } else {\n // create new note\n //createNote(editText.getText().toString());\n }\n }", "public void xsetNotes(org.apache.xmlbeans.XmlString notes)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(NOTES$14, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(NOTES$14);\n }\n target.set(notes);\n }\n }", "public String getNote() {\n return note;\n }", "public String getNote() {\n return note;\n }" ]
[ "0.7183007", "0.71422935", "0.7120517", "0.6717649", "0.6650423", "0.6637983", "0.66262025", "0.66186255", "0.65729254", "0.65729254", "0.65729254", "0.65729254", "0.65729254", "0.6547573", "0.6538301", "0.64602125", "0.64279383", "0.64261144", "0.6397275", "0.6394687", "0.6390761", "0.63860714", "0.63773", "0.63654345", "0.6361229", "0.63444877", "0.629002", "0.6274703", "0.62574464", "0.6229005", "0.62192595", "0.61787045", "0.6172241", "0.61326075", "0.6127112", "0.6100558", "0.60969466", "0.6075678", "0.60714304", "0.60701996", "0.6029327", "0.6020559", "0.6020559", "0.6020559", "0.6020559", "0.6016423", "0.60105765", "0.5972207", "0.5933475", "0.5914093", "0.5901436", "0.58883256", "0.5878542", "0.58768016", "0.58725303", "0.58613175", "0.5843907", "0.5833114", "0.58262795", "0.5823414", "0.58205336", "0.58171904", "0.5810659", "0.5806373", "0.5790114", "0.5765688", "0.5714436", "0.570664", "0.56574714", "0.5652732", "0.56473404", "0.5645206", "0.5638994", "0.5621134", "0.561995", "0.5611544", "0.56033784", "0.5601286", "0.559854", "0.5594526", "0.5584987", "0.55709916", "0.5554986", "0.5552429", "0.5546124", "0.5541159", "0.55282366", "0.5513358", "0.5513358", "0.55122095", "0.5508942", "0.5506786", "0.55056053", "0.5501999", "0.5494243", "0.54931897", "0.54904276", "0.5483657", "0.5481525", "0.5481525" ]
0.6498714
15
Get the contents of the note as a JSON string
public static String getNote(int tenantID, String noteName) throws RegistryException, NotePersistenceException { UserRegistry userRegistry = ServiceHolder.getRegistryService().getConfigSystemRegistry(tenantID); String noteLocation = getNoteLocation(noteName); if (userRegistry.resourceExists(noteLocation)) { return RegistryUtils.decodeBytes((byte[]) userRegistry.get(noteLocation).getContent()); } else { log.error("Cannot retrieve note because a note with name " + noteName + " for tenant with tenant ID " + tenantID + " does not exist"); throw new NotePersistenceException("Cannot get note with name : " + noteName + " for tenantId : " + tenantID + " beacause it does not exist"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "com.google.protobuf.ByteString\n getNotesBytes();", "com.google.protobuf.ByteString\n getNotesBytes();", "public java.lang.String getNotes() {\n java.lang.Object ref = notes_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n notes_ = s;\n }\n return s;\n }\n }", "public java.lang.String getNotes() {\n java.lang.Object ref = notes_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n notes_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getSnippetsAsJson() throws NotesException, IOException {\n\t\tRootNode root = readSnippetsNodes();\n\t\tJsonTreeRenderer r = new JsonTreeRenderer();\n\t\treturn r.generateAsStringHier(root,true);\n\t}", "public java.lang.String getNotes() {\n java.lang.Object ref = notes_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n notes_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "java.lang.String getNotes();", "java.lang.String getNotes();", "public java.lang.String getNotes() {\n java.lang.Object ref = notes_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n notes_ = s;\n return s;\n }\n }", "protected JSONObject getJsonRepresentation() throws Exception {\r\n\r\n JSONObject jsonObj = new JSONObject();\r\n jsonObj.put(\"note\", note);\r\n return jsonObj;\r\n }", "String getNotes();", "public com.google.protobuf.ByteString\n getNotesBytes() {\n java.lang.Object ref = notes_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n notes_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getNotesBytes() {\n java.lang.Object ref = notes_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n notes_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getNotesBytes() {\n java.lang.Object ref = notes_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n notes_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getNotesBytes() {\n java.lang.Object ref = notes_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n notes_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getNotes();", "@Override\n public String toJson() {\n return \"{'content':'\" + this.content + \"'}\";\n }", "public String getNotes() {\n return notes.get();\n }", "public String getDocumentNote();", "@JsonProperty(\"note\")\n\tpublic String getNote() {\n\t\treturn note;\n\t}", "public String getNotes() {\n return notes;\n }", "public String getNotes() {\n return notes;\n }", "String get_note()\n {\n return note;\n }", "@Override\n\tpublic String getNotes() {\n\t\treturn text;\n\t}", "public String getNotes() {\n\treturn notes;\n}", "@javax.annotation.Nullable\n @ApiModelProperty(value = \"Extra notes about this deposit transaction\")\n @JsonProperty(JSON_PROPERTY_NOTES)\n @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)\n\n public String getNotes() {\n return notes;\n }", "public String getNote() {\r\n return note;\r\n }", "public String getNote() {\r\n return note;\r\n }", "public String getNote() {\n return note;\n }", "public String getNote() {\n return note;\n }", "public String getNote() {\n return note;\n }", "public String getNote() {\n return note;\n }", "public String getNote() {\n return note;\n }", "public String getNote() {\n return note;\n }", "public String getNote() {\n return note;\n }", "public String getNote() {\n return note;\n }", "public String getNote() {\n return note;\n }", "public String getNote() {\n return note;\n }", "public String getNote() {\n return note;\n }", "public String getNote() {\r\n return note; \r\n }", "public List<String> getFormattedNotes(){\n List formattedNotes = new ArrayList();\n for (int i = 0; i < notes.size(); i++) {\n Note n = notes.get(i);\n String noteInfo = \"Date Created: \" + n.getFormattedDate() + \" Content: \" + n.getContent();\n formattedNotes.add(noteInfo);\n }\n return formattedNotes;\n }", "public java.lang.String getNotes() {\n return notes;\n }", "String getJSON();", "public static String getReleaseNotes() {\n\n try {\n //Open file\n ClassLoader classLoader = new ResourceLoader().getClass().getClassLoader();\n File file = new File(classLoader.getResource(RELEASE_NOTES).getFile());\n //Read File Content\n String content = new String(Files.readAllBytes(file.toPath()));\n return content;\n } catch (IOException ex) {\n Logger.getLogger(ResourceLoader.class.getName()).log(Level.SEVERE, null, ex);\n return null;\n }\n\n }", "public String getNote()\n {\n return note;\n }", "private NewNoteInput serializeContent() {\n String title = ((EditText) findViewById(R.id.edit_note_title)).getText().toString();\n String body = ((EditText) findViewById(R.id.edit_note_body)).getText().toString();\n String notebookId = getIntent().getStringExtra(NOTEBOOK_ID_EXTRA);\n\n return NewNoteInput.builder()\n .title(title).body(body).notebook(notebookId)\n .tags(new ArrayList<>(mTags))\n .build();\n }", "@AutoEscape\n\tpublic String getNote();", "public String getStringRepresentation() {\n JSONObject obj = new JSONObject();\n obj.put(\"title\", title);\n obj.put(\"authors\", authors);\n return obj.toString();\n }", "public String getNote(){\r\n\t\treturn note;\r\n\t}", "public String getNotes() {\n\t\treturn notes;\n\t}", "public String getNote() {\n\t\treturn _note;\n\t}", "public String getJson();", "String notes();", "java.lang.String getMetadataJson();", "public String getNote()\n\t{\n\t\treturn note;\n\t}", "public String getSpecialNotes() {\n return specialNotes;\n }", "public Note getNote() {\n\t \n\t //returns the objected stored in the note field\n\t return this.note;\n }", "String getJson();", "String getJson();", "String getJson();", "public String getNote() {\n\t\treturn note;\n\t}", "public String getStringContent() throws IOException;", "String toJSON();", "@Column(name = \"publish_notes\", columnDefinition = \"TEXT\")\n\tpublic String getNotes() {\n\t\treturn notes;\n\t}", "public String toString() {\n return (\"\\\"\" + contents + \"\\\"\");\n }", "public List<String> getNote() {\n\t\treturn observationNotes;\n\t}", "String getContents();", "public String getNote() {\n if (MetadataUGWD_Type.featOkTst && ((MetadataUGWD_Type)jcasType).casFeat_note == null)\n jcasType.jcas.throwFeatMissing(\"note\", \"de.aitools.ie.uima.type.argumentation.MetadataUGWD\");\n return jcasType.ll_cas.ll_getStringValue(addr, ((MetadataUGWD_Type)jcasType).casFeatCode_note);}", "java.lang.String getContents();", "java.lang.String getContents();", "String getContent();", "String getContent();", "String getContent();", "String getContent();", "String getContent();", "String getContent();", "String getContent();", "String getContent();", "public String getContents() {\n return this.contents;\n }", "public String getContents() { return contents; }", "@Override\n\tpublic String getContents() {\n\t\treturn this.contents;\n\t}", "public ArrayList<String> getNotes() {\n return notes;\n }", "public synchronized String getJSONString() {\n\n return getJSONObject().toString();\n }", "public String getContent();", "public String getContents() {\n return contents;\n }", "public String getContents() {\n\treturn this.contents;\n }", "public java.lang.String getNotes() {\r\n return localNotes;\r\n }", "java.lang.String getContent();", "java.lang.String getContent();", "java.lang.String getContent();", "java.lang.String getContent();", "java.lang.String getContent();", "java.lang.String getContent();", "public String toJSON() throws JSONException;", "public String toString() {\n StringBuffer result = new StringBuffer(this.m_content.length() + 2);\n result.append('\"');\n if (this.m_content != null) result.append(escape(this.m_content));\n result.append('\"');\n return result.toString();\n }", "Map<String, Object> getContent();", "String getMyNoteTextByKey(Key verse);", "@Override\n public String toTxt() {\n return this.content;\n }", "@SuppressWarnings(\"unchecked\")\n public String convertToMetadataString() {\n JSONObject meta = new JSONObject();\n // TODO: check if this still works under json.simple\n meta.put(\"meta\", mJSONObject);\n\n return meta.toString();\n }", "public java.lang.String getNotes()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NOTES$14, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "public String notes() {\n return this.innerProperties() == null ? null : this.innerProperties().notes();\n }" ]
[ "0.68084115", "0.68084115", "0.68033534", "0.6788124", "0.6757535", "0.6756424", "0.67493474", "0.67493474", "0.67152613", "0.6620042", "0.6615689", "0.6585305", "0.6585305", "0.6559954", "0.6559954", "0.6538576", "0.64490134", "0.6434525", "0.64320356", "0.64307934", "0.6270664", "0.6243829", "0.6212355", "0.6187604", "0.618627", "0.61705977", "0.61634225", "0.61634225", "0.61632615", "0.61632615", "0.61632615", "0.61632615", "0.61632615", "0.61632615", "0.61632615", "0.61632615", "0.61632615", "0.61632615", "0.61632615", "0.61406827", "0.61327827", "0.6098902", "0.60901475", "0.6089915", "0.608277", "0.60778767", "0.60724103", "0.6059387", "0.6056663", "0.6015944", "0.5954823", "0.5951896", "0.5951782", "0.5949702", "0.5938717", "0.5928283", "0.5915176", "0.58805037", "0.58805037", "0.58805037", "0.5873366", "0.58020914", "0.57929206", "0.57836324", "0.57737964", "0.5760011", "0.5752279", "0.5746907", "0.57120824", "0.57120824", "0.57036537", "0.57036537", "0.57036537", "0.57036537", "0.57036537", "0.57036537", "0.57036537", "0.57036537", "0.567672", "0.56701803", "0.56614363", "0.5658686", "0.5648686", "0.5648415", "0.56267554", "0.56259304", "0.56240606", "0.56229895", "0.56229895", "0.56229895", "0.56229895", "0.56229895", "0.56229895", "0.5618801", "0.5614591", "0.5610719", "0.5601997", "0.5585806", "0.5571556", "0.5561294", "0.55582494" ]
0.0
-1
Delete a note in the server
public static void deleteNote(int tenantID, String noteName) throws RegistryException { UserRegistry userRegistry = ServiceHolder.getRegistryService().getConfigSystemRegistry(tenantID); String noteLocation = getNoteLocation(noteName); if (userRegistry.resourceExists(noteLocation)) { userRegistry.delete(noteLocation); } else { log.error("Cannot to delete note note with name " + noteName + " for tenant with tenant ID " + tenantID + " because it does not exist"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean deleteMyNote(MyNoteDto usernote);", "@Override\n\tpublic void delete(Note e) {\n\t\t\n\t}", "int deleteByExample(ComplainNoteDOExample example);", "@Override\n\tpublic void delete(GalaxyNote galaxynote) {\n\t\t\n\t}", "private void deleteNoteOnFirebaseManager(Note note){\n firebase.deleteNoteOnDB(note, unused -> {\n Toast.makeText(this, R.string.note_deletion_success, Toast.LENGTH_LONG).show();\n finish();\n }, e -> {\n Toast.makeText(this, e.getMessage(), Toast.LENGTH_LONG).show();\n });\n }", "public void deleteNote() {\n if (cursor == 0) {\n JOptionPane.showMessageDialog(null, \"There's no note to delete!\", \"Invalid Delete\", JOptionPane.WARNING_MESSAGE);\n } else {\n if (sequence.getNote(cursor) == REST) {\n cursor--;\n controller.setSelected(cursor);\n\n sequence = sequence.withNote(REST, cursor);\n controller.setMidiSequence(sequence);\n } else {\n sequence = sequence.withNote(REST, cursor);\n controller.setMidiSequence(sequence);\n }\n }\n }", "@DeleteMapping(\"/notes/{id}\")\n public boolean deleteNote(@PathVariable(\"id\") UUID id) {\n return noteService.deleteNote(id);\n }", "private void deleteNote(QueryService service, String noteId) {\n service.removeNote(noteId, (e, didSucceed) -> {\n runOnUiThread(() -> {\n if (e != null || didSucceed == null || !didSucceed) {\n Toast.makeText(getApplicationContext(), \"could not delete note\",\n Toast.LENGTH_LONG).show();\n } else {\n Toast.makeText(getApplicationContext(), getString(R.string.activity_note_ndelete),\n Toast.LENGTH_SHORT).show();\n finish();\n }\n });\n });\n }", "@Cacheable(value = \"DeleteNote\", key = \"#noteId\")\n\t@Override\n\tpublic Response deleteNote(String noteId, String token) throws IOException {\n\t\t\n\t\tString email = jwt.getEmailId(token);\n\t\t\n\t\tif(email != null) {\n\t\t\tnoterepository.deleteById(noteId);\n\t\t\telasticSearchService.deleteDocument(noteId);\n\t\t\treturn new Response(200, noteEnvironment.getProperty(\"Delete_Note\"), noteEnvironment.getProperty(\"DELETE_NOTE\"));\n\t\t}\n\t\treturn new Response(404, noteEnvironment.getProperty(\"UNAUTHORIZED_USER_EXCEPTION\"), null);\n\t}", "public void removeNote(Note note) throws ChangeVetoException;", "@POST\n\t@Path(\"/deleteNote/{noteId}\")\n\tpublic Response deleteNote(@PathParam(\"noteId\") String noteid) {\n\n\t\tif (noteid == null) {\n\t\t\treturn Response.ok().entity(\"note id is null\").build();\n\t\t}\n\t\ttry {\n\t\t\tInteger.parseInt(noteid);\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn Response.ok().entity(\"note id is not a valid number\").build();\n\t\t}\n\n\t\tint noteId = Integer.parseInt(noteid);\n\t\tNote note = noteService.findById(noteId);\n\t\tif (note == null) {\n\t\t\treturn Response.ok().entity(\"Requested note is not available in Database\").build();\n\t\t} else {\n\t\t\tnoteService.deleteNote(note);\n\t\t\treturn Response.ok().entity(\"success\").build();\n\t\t}\n\t}", "@Override\n public void remove(Note note) {\n }", "public void removeNote(Note note) {\n notes.remove(note);\n }", "@Override\n\tpublic void deleteNoteById(int noteId) {\n\n\t\tSession session = sessionFactory.openSession();\n\t\tTransaction transaction = null;\n\t\ttry {\n\t\ttransaction=session.beginTransaction();\n\t\t\t\tString sql=\"delete Note where noteId =:noteId\";\n\t\t\t\tQuery query=session.createQuery(sql);\n\t\t\t\tquery.setParameter(\"noteId\", noteId);\n\t\t\t\tquery.executeUpdate();\n\t\t\t\ttransaction.commit();\n\t\t\t\tSystem.out.println(\"deleted\");\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tif(transaction!=null)\n\t\t\t\t\ttransaction.rollback();\n\t\t\t\t\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tsession.close();\n\t\t\t}\n\t }", "void deleteNotes(ActionEvent event){\n cm.hide();\n Alert alert = new Alert(Alert.AlertType.NONE, \"Delete notes for \"+this.podcast.getTitle()+\"?\", ButtonType.YES, ButtonType.NO, ButtonType.CANCEL);\n alert.showAndWait();\n\n if(alert.getResult() == ButtonType.YES){\n if(model.DEBUG)\n System.err.println(\"[LibCell] Deleting \"+this.podcast.getTitle()+\"\\'s notes\");\n\n this.podcast.setNotes(Main.model.DEFAULT_NOTES);\n } else {\n alert.hide();\n }\n\n }", "public void delete(int singerId);", "private void deleteNote(Integer noteId) {\n notesRepository.markDeleted(noteId, true);\n\n broadcastManager.sendBroadcast(new Intent(ACTION_DELETE));\n getActivity().sendBroadcast(new Intent(ACTION_DELETE));\n\n showDeleteUndoBar(noteId);\n }", "public boolean delete(Reminder reminder);", "private void clearNote()\n\t{\n\t\t((EditText) findViewById(R.id.note_edittext)).setText(\"\");\n\t\tNoteDbWorker worker = new NoteDbWorker(this);\n\t\tworker.deleteNote(user.userName);\n\t\tworker.close();\n\t\tToast.makeText(this, getString(R.string.note_cleared), Toast.LENGTH_LONG).show();\n\t}", "@Test\n void deleteNoteSuccess() {\n noteDao.delete(noteDao.getById(2));\n assertNull(noteDao.getById(2));\n }", "public boolean deleteAllOfNote(Integer idn);", "int deleteByExample(trackcommentExample example);", "public void delete(long setId) throws ServerException;", "int deleteByExample(SysNoticeExample example);", "@Override\n protected Void doInBackground(Void... params) {\n DataManager dataManager = DataManager.getInstance(weakReference.get());\n dataManager.deleteNote(noteId);\n return null;\n }", "private void noticedelete(String postid){\n reference2 = FirebaseDatabase.getInstance().getReference(\"Notice\").child(postid);\n reference2.removeValue();\n }", "WriteRequest delete(PiHandle handle);", "public void delete(String so_cd);", "INote removeNote(int beatNum, String pitch, int octave) throws IllegalArgumentException;", "public void deleteTopic(String nume) throws RemoteException;", "public void deleteFromABSTRACT_NOTES( long id ) {\n\t\tlong rows_affected = getWritableDatabase().delete(TABLE_ABSTRACT_NOTES,\n\t\t\t\t\"NOTE_ID = ?\", new String[] { String.valueOf(id) });\n\t\tLog.d(\"GCA-DB\", \"deleted Note from db - no: \" + rows_affected);\n\t\t}", "void delete(String identifier) throws IOException;", "void delete() throws ClientException;", "void delete(int commentId);", "CustDataNotesResponseDTO deleteCustDataNotes(String id) throws Exception;", "public void delete(TopicComment comment) {\n\t\t\n\t}", "int deleteByExample(FeiWenCommentExample example);", "int deleteByExample(TerminalInfoExample example);", "int deleteByExample(NotifictionExample example);", "int deleteByExample(TempletLinkExample example);", "int deleteByExample(NewsInfoExample example);", "public void deleteReply() {\n\r\n\t}", "public void deleteTopic(String nume, Object data) throws RemoteException;", "int delete(String clientId);", "@Query(\"DELETE FROM note_table\")\n void deleteAllNotes();", "public HttpStatus deleteById(Long postId);", "@DELETE\n\t@Path(\"/{exerciseId}\")\n\t@Nonnull\n\tString deleteExerciseById(@Nonnull @PathParam(\"exerciseId\") Long exerciseId);", "@Test\r\n\tpublic void testDeleteNote() throws Exception {\r\n\t\tyakshaAssert(currentTest(), \"true\", exceptionTestFile);\r\n\t}", "public final void delete( ) throws Exception\n\t{\n\t\tDatastore.getInstance( ).deleteOnServer( this );\n\t}", "int deleteByExample(PublicDoctorNoticeExample example);", "int deleteByExample(TSubjectInfoExample example);", "boolean notifyDelete(InetAddress address, ContentEntry recording);", "@Override\n\tpublic void delete(Client obj) {\n\t\t\n\t}", "void delete(String id);", "void delete(String id);", "void delete(String id);", "void delete(String id);", "void delete(String id);", "void delete(String id);", "public void deleteTagForNote(Tag t, Note n) {\n\t\tdatabase.delete(DbHelper.LINKS_TABLE_NAME, DbHelper.LINK_NOTE_ID + \" = \" + n.getId() + \r\n\t\t\t\t\" AND \" + DbHelper.LINK_TAG_ID + \" = \" + t.getId(), null);\r\n\t}", "public void delete(String id);", "public void delete(String id);", "public void delete(String id);", "public void delete(String id);", "public void delete(String id);", "public void removeNote()\n { \n System.out.print(\"\\nWould you like to remove any of these notes? (y or n) \");\n String stringAnswer = in.nextLine();\n char answer = stringAnswer.charAt(0);\n \n if (answer == 'y')\n {\n System.out.print(\"Enter the note number of the note you would like to remove > \");\n int noteToRemove = in.nextInt();\n \n score.remove(noteToRemove - 1);\n in.nextLine();\n }\n }", "int deleteByPrimaryKey(String noticeId);", "void delete(String receiptHandle);", "String delete(String request) throws RemoteException;", "public void delete()\n {\n call(\"Delete\");\n }", "public void delete();", "public void delete();", "public void delete();", "public void delete();", "public void delete();", "public void delete();", "public abstract void delete(int msg);", "public void deleteNotes(String notesId) throws DaoException {\r\n\t\ttry {\r\n\t\t\t// delete notes\r\n\t\t \tNotes notes = new Notes();\r\n\t\t notes.setNotesId(notesId);\r\n\t\t String sql = \"DELETE FROM notes WHERE notesId=#notesId#\";\r\n\t\t super.update(sql, notes);\r\n\r\n\t\t}\r\n\t\tcatch(DaoException e) {\r\n\t\t\tlog.error(e.getMessage(), e);\r\n\t\t\tthrow new DaoException(e.toString());\r\n\t\t}\r\n\t}", "@DELETE\n\t@Path(\"/{exerciseId}\")\n\t@Nonnull\n\tResponse deleteExerciseById(@Nonnull @PathParam(\"exerciseId\") Long exerciseId);", "void delete( Long id );", "int deleteByExample(CommentLikeExample example);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);" ]
[ "0.75897753", "0.7565793", "0.754117", "0.75046474", "0.74789554", "0.743396", "0.73022634", "0.7268977", "0.7257399", "0.7198605", "0.7162805", "0.69590557", "0.67221045", "0.6691279", "0.6690282", "0.66702586", "0.6632803", "0.6630539", "0.6598033", "0.6596885", "0.65697557", "0.65622944", "0.65546304", "0.65365326", "0.6468651", "0.64375716", "0.6433265", "0.6431601", "0.6417984", "0.6417402", "0.63908064", "0.6383746", "0.63757265", "0.6351966", "0.62805915", "0.6264057", "0.6260404", "0.62555426", "0.62415236", "0.6233238", "0.6228747", "0.62229425", "0.62226844", "0.62219256", "0.6212971", "0.6205406", "0.6178441", "0.6176499", "0.61755145", "0.61726266", "0.61721694", "0.6149311", "0.6146547", "0.6143645", "0.6143645", "0.6143645", "0.6143645", "0.6143645", "0.6143645", "0.6130046", "0.61195767", "0.61195767", "0.61195767", "0.61195767", "0.61195767", "0.6118098", "0.6114391", "0.6113997", "0.6113638", "0.61040056", "0.6089772", "0.6089772", "0.6089772", "0.6089772", "0.6089772", "0.6089772", "0.6087939", "0.60811514", "0.6074817", "0.60729724", "0.6071259", "0.6068233", "0.6068233", "0.6068233", "0.6068233", "0.6068233", "0.6068233", "0.6068233", "0.6068233", "0.6068233", "0.6068233", "0.6068233", "0.6068233", "0.6068233", "0.6068233", "0.6068233", "0.6068233", "0.6068233", "0.6068233", "0.6068233" ]
0.6433629
26
Create the note directory if it does not exist
private static void createNotesCollectionIfNotExists(UserRegistry registry) throws RegistryException { if (!registry.resourceExists(NoteConstants.NOTE_LOCATION)) { Collection collection = registry.newCollection(); registry.put(NoteConstants.NOTE_LOCATION, collection); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void createSaveDirIfNotExisting() {\n\t\tFile dir = new File(\"save\");\n\t\tif (!dir.exists()) {\n\t\t\t// directory does not exist => create!\n\t\t\tdir.mkdir();\n\t\t}\n\t}", "public void createDirectory() {\r\n\t\tpath = env.getProperty(\"resources\") + \"/\" + Year.now().getValue() + \"/\";\r\n\t\tFile file = new File(path);\r\n\t\tif (!file.exists())\r\n\t\t\tfile.mkdirs();\r\n\t}", "public void createNoteBookFile(NoteBook myNoteBook) throws DaoException {\n\t\tFile notebookFile = new File(FILE_NAME);\n\t\tif (notebookFile.exists()) {\n\t\t\tnotebookFile.delete();\n\t\t}\n\t\ttry {\n\t\t\tnotebookFile.createNewFile();\n\t\t} catch (IOException e) {\n\t\t\tthrow new DaoException(\"Create NoteBook file error\", e);\n\t\t}\n\t}", "private void createDir(){\n\t\tPath path = Path.of(this.dir);\n\t\ttry {\n\t\t\tFiles.createDirectories(path);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void createEssentialDirs() throws TNotFoundEx{\n\t\tFileUtil fT = new FileUtil();\n\t\tfT.createDirOnDevice(TicklerVars.sdCardPath);\n\t\tif (!fT.isExistOnDevice(TicklerVars.sdCardPath))\n\t\t\tthrow new TNotFoundEx(\"Cannot create Tickler directory \"+TicklerVars.sdCardPath+\". Check your configurations in Tickler.conf file\");\n\t\tfT.createDirOnHost(TicklerVars.appTickDir);\n\t\tif (!fT.isExist(TicklerVars.appTickDir))\n\t\t\tthrow new TNotFoundEx(\"Cannot create Tickler directory \"+TicklerVars.appTickDir+\". Check your configurations in Tickler.conf file\");\n\t\t\n\t}", "private void createFolders() {\n File f = new File(System.getProperty(\"user.dir\") + \"/chatimages/\");\n if (!f.exists()){\n f.mkdir();\n }\n }", "private static void checkHistoryDirectory()\n throws FileNotFoundException {\n Path path = Paths.get(HISTORY_FILE_PATH); //creates Path instance\n try {\n Files.createDirectories(Paths.get(DIRECTORY));\n Files.createFile(path); //creates file at specified location\n } catch (IOException e) {\n readHistoryData();\n }\n }", "private static void doCreateDir() {\n String newDir = \"new_dir\";\n boolean success = (new File(newDir)).mkdir();\n\n if (success) {\n System.out.println(\"Successfully created directory: \" + newDir);\n } else {\n System.out.println(\"Failed to create directory: \" + newDir);\n }\n\n // Create a directory; all non-existent ancestor directories are\n // automatically created.\n newDir = \"c:/export/home/jeffreyh/new_dir1/new_dir2/new_dir3\";\n success = (new File(newDir)).mkdirs();\n\n if (success) {\n System.out.println(\"Successfully created directory: \" + newDir);\n } else {\n System.out.println(\"Failed to create directory: \" + newDir);\n }\n\n }", "private void createDirectory(String path) throws IOException {\n\t\tfinal Path p = Paths.get(path);\n\t\tif (!fileExists(p)) {\n\t\t\tFiles.createDirectory(p);\n\t\t}\n\t}", "private void makeDirectory() {\n String userHome = System.getProperty(\"user.home\");\n wnwData = new File(userHome + \"/.wnwdata\");\n wnwData.mkdirs();\n\n makeCampaignChallengesFile();\n makeCustomChallengesFile();\n makeProgressFile();\n makeSettingsFile();\n }", "@TaskAction\n public void create() {\n dir.mkdirs();\n getChmod().chmod(dir, dirMode);\n }", "private static void checkFilePath(String filePath) {\n File file = new File(filePath);\n try {\n if (!file.getParentFile().exists()) {\n file.getParentFile().mkdirs();\n }\n if (!file.exists()) {\n file.createNewFile();\n }\n file.createNewFile();\n } catch (IOException e) {\n System.err.println(e.getMessage());\n }\n }", "public boolean makeDirectory(){\n File root = new File(Environment.getExternalStorageDirectory(),\"OQPS\");\n if(!root.exists()){\n return root.mkdir();\n }\n return true; //folder already exists\n }", "private File createDirectoryIfNotExisting( String dirName ) throws HarvesterIOException\n {\n \tFile path = FileHandler.getFile( dirName );\n \tif ( !path.exists() )\n \t{\n \t log.info( String.format( \"Creating directory: %s\", dirName ) );\n \t // create path:\n \t if ( !path.mkdir() )\n \t {\n \t\tString errMsg = String.format( \"Could not create necessary directory: %s\", dirName );\n \t\tlog.error( errMsg );\n \t\tthrow new HarvesterIOException( errMsg );\n \t }\n \t}\n \t\n \treturn path;\n }", "private void setUpDirectories() {\r\n\t\tFile creation = new File(\"Creations\");\r\n\t\tFile audio = new File(\"Audio\");\r\n\t\tFile quiz = new File(\"Quiz\");\r\n\t\tFile temp = new File(\"Temp\");\r\n\r\n\t\tif (!creation.isDirectory()) {\r\n\t\t\tcreation.mkdir();\r\n\t\t}\r\n\t\tif (!audio.isDirectory()) {\r\n\t\t\taudio.mkdir();\r\n\t\t}\r\n\t\tif (!quiz.isDirectory()) {\r\n\t\t\tquiz.mkdir();\r\n\t\t}\r\n\t\tif (!temp.isDirectory()) {\r\n\t\t\ttemp.mkdir();\r\n\t\t}\r\n\r\n\t}", "private void ensureCoverageNotesFileExists(ActionExecutionContext actionExecutionContext)\n throws ActionExecutionException {\n if (gcnoFile == null) {\n return;\n }\n if (!gcnoFile.isFileType(CppFileTypes.COVERAGE_NOTES)) {\n BugReport.sendBugReport(\n new IllegalStateException(\n \"In coverage mode but gcno artifact is not correct type: \" + gcnoFile + \", \" + this));\n return;\n }\n Path outputPath = actionExecutionContext.getInputPath(gcnoFile);\n if (outputPath.exists()) {\n return;\n }\n try {\n FileSystemUtils.createEmptyFile(outputPath);\n } catch (IOException e) {\n String message = \"Error creating file '\" + outputPath + \"': \" + e.getMessage();\n DetailedExitCode code = createDetailedExitCode(message, Code.COVERAGE_NOTES_CREATION_FAILURE);\n throw new ActionExecutionException(message, e, this, false, code);\n }\n }", "private void createDirectories()\r\n\t{\r\n\t\t// TODO: Do some checks here\r\n\t\tFile toCreate = new File(Lunar.OUT_DIR + Lunar.PIXEL_DIR\r\n\t\t\t\t\t\t\t\t\t+ Lunar.PROCESSED_DIR);\r\n\t\ttoCreate.mkdirs();\r\n\t\ttoCreate = null;\r\n\t\ttoCreate = new File(Lunar.OUT_DIR + Lunar.ROW_DIR + Lunar.PROCESSED_DIR);\r\n\t\ttoCreate.mkdirs();\r\n\t\ttoCreate = null;\r\n\t}", "@Override\n public void createDirectory(File storageName) throws IOException {\n }", "@Override\n\tpublic void generateDirectories() {\n\t\tFile file = new File(\"Data/My Contacts/\");\n\n\t\tif (!file.exists()) {\n\t\t\tfile.mkdirs();\n\t\t}\n\t}", "@Override\n protected NodeInfo createDirectoryEntry(NodeInfo parentEntry, Path dir) throws IOException {\n return drive.createFolder(parentEntry.getId(), toFilenameString(dir));\n }", "@Override\n public boolean createDailyNote(String note) {\n dailyNotes.add(new DailyNote(note));\n return true;\n }", "public static void CreateFile(){\n try{\n new File(\"wipimages\").mkdir();\n logscommissions.createNewFile();\n }catch(Exception e){\n e.printStackTrace();\n System.out.println(\"CreateFile Failed\\n\");\n }\n }", "@Override\r\n\tpublic boolean createFolder(String filePath) throws FileSystemUtilException {\r\n\t\ttry{\r\n\t\t\tString userHome = getUserHome();\r\n\t\t\t//if given file path doesnot start with user home\r\n\t\t\tif(filePath == null && filePath.trim().length() < 1 && !filePath.startsWith(userHome)){\r\n\t\t\t\tthrow new FileSystemUtilException(\"EL0701\");\r\n\t\t\t}\r\n\t\t\tconnect();\r\n\t\t\tString mkDirCmd = \"mkdir -p \"+filePath;\t\t\t\r\n\t\t\tint x = executeSimpleCommand(mkDirCmd);\r\n\t\t\tif(x!=0)\r\n\t\t\t{\r\n\t\t\t\tlogger.info(\"Folder creation failed, may be file path is not correct or privileges are not there\");\r\n\t\t\t\tthrow new FileSystemUtilException(\"EL0699\");\r\n\t\t\t}\r\n\t\t\treturn true;\r\n\t\t}catch(FileSystemUtilException e)\r\n\t\t{\r\n\t\t disconnect();\r\n\t\t\tthrow new FileSystemUtilException(e.getErrorCode(),e.getException());\r\n\t\t}catch(Exception e)\r\n\t\t{\r\n\t\t\tthrow new FileSystemUtilException(\"F00002\",e);\r\n\t\t}\r\n\r\n\t}", "static void initContacts(){\n String directory = \"contacts\";\n String filename = \"contacts.txt\";\n Path contactsDirectory= Paths.get(directory);\n Path contactsFile = Paths.get(directory, filename);\n try {\n if (Files.notExists(contactsDirectory)) {\n Files.createDirectories((contactsDirectory));\n System.out.println(\"Created directory\");\n }\n if (!Files.exists(contactsFile)) {\n Files.createFile(contactsFile);\n System.out.println(\"Created file\");\n }\n } catch(IOException ioe){\n ioe.printStackTrace();\n }\n }", "public void createSubDirData() {\n\t\tFile f = new File(getPFDataPath());\n\t\tf.mkdirs();\n\t}", "Folder createFolder();", "private void createScratchDirectory(Path rootpath) {\n\t\tprintMsg(\"running createScratchDirectory() in \\\"\" + this.getClass().getName() + \"\\\" class.\");\n\t\t\n\t\tif (Files.isDirectory(rootpath)) {\n\t\t\tprintMsg(\"The \" + theRootPath + \" exists...\");\n\t\t} else {\n\t\t\tprintMsg(\"Creating \" + theRootPath);\n\t\t\ttry {\n\t\t\t\tFiles.createDirectories(rootpath);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "private static void createDirectory(Path path) throws IOException {\n\t\ttry {\n\t\t\tFiles.createDirectory(path);\n\t\t} catch (FileAlreadyExistsException e) {\n\t\t\tif (!Files.isDirectory(path)) {\n\t\t\t\tthrow e;\n\t\t\t}\n\t\t}\n\t}", "@Override\n protected void createRootDir() {\n }", "private final void directory() {\n\t\tif (!this.plugin.getDataFolder().isDirectory()) {\n\t\t\tif (!this.plugin.getDataFolder().mkdirs()) {\n\t\t\t\tMain.SEVERE(\"Failed to create directory\");\n\t\t\t} else {\n\t\t\t\tMain.INFO(\"Created directory sucessfully!\");\n\t\t\t}\n\t\t}\n\t}", "protected static void createDirectory(MasterProcedureEnv env, NamespaceDescriptor nsDescriptor)\n throws IOException {\n createDirectory(env.getMasterServices().getMasterFileSystem(), nsDescriptor);\n }", "public void mkdir(String path) throws SystemException;", "public void createDir(File file) {\n if (!file.exists()) {\n file.mkdir();\n }\n }", "WithCreate withFolderPath(String folderPath);", "public void createSubDirCameraTaken() {\n\t\tFile f = new File(getPFCameraTakenPath());\n\t\tf.mkdirs();\n\t}", "private void createFolder(String myFilesystemDirectory) {\n\r\n File file = new File(myFilesystemDirectory);\r\n try {\r\n if (!file.exists()) {\r\n //modified \r\n file.mkdirs();\r\n }\r\n } catch (SecurityException e) {\r\n Utilidades.escribeLog(\"Error al crear carpeta: \" + e.getMessage());\r\n }\r\n }", "public void createDir(File file){\n\t\tif (!file.exists()) {\n\t\t\tif (file.mkdir()) {\n\t\t\t\tlogger.debug(\"Directory is created!\");\n\t\t\t} else {\n\t\t\t\tlogger.debug(\"Failed to create directory!\");\n\t\t\t}\n\t\t}\n\t}", "void createIndexDir(String indexDirPath) throws IOException {\n File indexDir = new File(indexDirPath);\n if (!indexDir.exists())\n indexDir.mkdir();\n else {\n removeIndexDir(indexDirPath);\n indexDir.mkdir(); \n }\n }", "private void createDirectoryIfNeeded(String directoryName)\n\t{\n\t\tFile theDir = new File(directoryName);\n\n\t\t// if the directory does not exist, create it\n\t\tif (!theDir.exists())\n\t\t{\n\t\t\t//System.out.println(\"creating directory: \" + directoryName);\n\t\t\ttheDir.mkdir();\n\t\t}\n\t}", "private File createEmptyDirectory() throws IOException {\n File emptyDirectory = findNonExistentDirectory();\n if (emptyDirectory.mkdir() == false) {\n throw new IOException(\"Can't create \" + emptyDirectory);\n }\n\n return emptyDirectory;\n }", "private boolean createGitletDirectory(){\n File dir = new File(Utils.GITLET_DIR);\n\n if(!dir.exists()){\n dir.mkdir();\n\n } else {\n System.out.println(\"A gitlet version-control system already exists in the current directory.\");\n return false;\n }\n\n File commitDir = Utils.join(Utils.GITLET_DIR, Utils.COMMIT_DIR);\n\n if(!commitDir.exists()){\n commitDir.mkdir();\n }\n\n File blobDir = Utils.join(Utils.GITLET_DIR, Utils.BLOBS_DIR);\n\n if (!blobDir.exists()){\n blobDir.mkdir();\n }\n return true;\n }", "private void checkIfLocationExists() {\n try {\n File file = new File(saveLocation);\n if(!file.exists()) file.mkdirs();\n } catch (Exception e) {\n log.error(e.getMessage(), e);\n }\n }", "private File createNewFile(String prefix){\n if(prefix==null || \"\".equalsIgnoreCase(prefix)){\n prefix=\"IMG_\";\n }\n File newDirectory = new File(Environment.getExternalStorageDirectory()+\"/mypics/\");\n if(!newDirectory.exists()){\n if(newDirectory.mkdir()){\n Log.d(mContex.getClass().getName(), newDirectory.getAbsolutePath()+\" directory created\");\n }\n }\n File file = new File(newDirectory,(prefix+ System.currentTimeMillis()+\".jpg\"));\n if(file.exists()){\n //this wont be executed\n file.delete();\n try {\n file.createNewFile();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n return file;\n }", "@Override\n protected void createFile(String directoryName, String fileNamePrefix) {\n }", "public static void createDirectories() \r\n\t{\r\n\t\tif(!fCertificatesDir().exists()) \r\n\t\t{\r\n\t\t\tfCertificatesDir().mkdir();\r\n\t\t}\r\n\t\t\r\n\t\tif(!fDbDir().exists()) \r\n\t\t{\r\n\t\t\tfDbDir().mkdir();\r\n\t\t}\r\n\t\t\r\n\t\tif(!fMibsDir().exists())\r\n\t\t{\r\n\t\t\tfMibsDir().mkdir();\r\n\t\t}\r\n\t\t\r\n\t\tif(!fMibsBinaryDir().exists()) \r\n\t\t{\r\n\t\t\tfMibsBinaryDir().mkdir();\r\n\t\t}\r\n\t\t\r\n\t\tif(!fMibsTextDir().exists()) \r\n\t\t{\r\n\t\t\tfMibsTextDir().mkdir();\r\n\t\t}\r\n\t}", "public void createPatient() throws IOException\n {\n addPatientToList();\n \n //creates the patient's empty folders and files\n File userFolder = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB); \n File patientEvaluation = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm\");\n File patientProgressReports = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/ProgressNotes\"); \n \n try\n \t{\n \tuserFolder.mkdir();\n patientEvaluation.mkdir();\n patientProgressReports.mkdir();\n \t//result = true;\n \t} \n \tcatch(SecurityException se)\n \t{\n \t//handle it\n \t} \n \t\n File listOfProgressReports = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/ProgressReports.txt\");\n FileWriter writer = new FileWriter(listOfProgressReports, true);\t \n BufferedWriter bufferedreader = new BufferedWriter(writer);\n writer.append(\"\");\n bufferedreader.close();\n writer.close();\n \n \n /*if(result) \n \t{ \n \t\tSystem.out.println(\"DIR created\"); \n \t}*/\n \n //creates the patient's empty evaluation form files\n File signedStatus = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/signed.txt\");\n FileWriter w = new FileWriter(signedStatus, true);\t \n BufferedWriter b = new BufferedWriter(w);\n w.append(\"false\");\n b.close();\n w.close();\n \n File firstName = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/first.txt\");\n FileWriter writ = new FileWriter(firstName, true);\t \n BufferedWriter bw = new BufferedWriter(writ);\n writ.append(currentPatientFirstName);\n bw.close();\n writ.close();\n \n File lastName = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/last.txt\");\n FileWriter writ1 = new FileWriter(lastName, true);\t \n BufferedWriter bw1 = new BufferedWriter(writ1);\n writ1.append(currentPatientLastName);\n bw1.close();\n writ1.close();\n \n File age = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/age.txt\");\n FileWriter writ2 = new FileWriter(age, true);\t \n BufferedWriter bw2 = new BufferedWriter(writ2);\n writ2.append(\"\");\n bw2.close();\n writ2.close();\n \n File dob = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/dateofbirth.txt\");\n FileWriter writ3 = new FileWriter(dob, true);\t \n BufferedWriter bw3 = new BufferedWriter(writ3);\n writ3.append(\"\");\n bw3.close();\n writ3.close();\n \n File maritalstatus = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/maritalstatus.txt\");\n FileWriter writ4 = new FileWriter(maritalstatus, true);\t \n BufferedWriter bw4 = new BufferedWriter(writ4);\n writ4.append(\"\");\n bw4.close();\n writ4.close();\n \n File ethnicity = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/ethnicity.txt\");\n FileWriter writ5 = new FileWriter(ethnicity, true);\t \n BufferedWriter bw5 = new BufferedWriter(writ5);\n writ5.append(\"\");\n bw5.close();\n writ5.close();\n\n File ethnicityother = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/ethnicity-other.txt\");\n FileWriter writt = new FileWriter(ethnicityother, true);\t \n BufferedWriter bww = new BufferedWriter(writt);\n writt.append(\"\");\n bww.close();\n writt.close();\n \n File sex = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/sex.txt\");\n FileWriter writ6 = new FileWriter(sex, true);\t \n BufferedWriter bw6 = new BufferedWriter(writ6);\n writ6.append(\"\");\n bw6.close();\n writ6.close();\n \n File referredBy = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/referredby.txt\");\n FileWriter writ7 = new FileWriter(referredBy, true);\t \n BufferedWriter bw7 = new BufferedWriter(writ7);\n writ7.append(\"\");\n bw7.close();\n writ7.close();\n \n File referredByTherapist = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/referredby-therapist.txt\");\n FileWriter writ8 = new FileWriter(referredByTherapist, true);\t \n BufferedWriter bw8 = new BufferedWriter(writ8);\n writ8.append(\"\");\n bw8.close();\n writ8.close();\n \n File referredByOther = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/referredby-other.txt\");\n FileWriter writ9 = new FileWriter(referredByOther, true);\t \n BufferedWriter bw9 = new BufferedWriter(writ9);\n writ9.append(\"\");\n bw9.close();\n writ9.close();\n \n //dr. prince\n File reasonForReferral = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/reasonforreferral.txt\");\n FileWriter writ10 = new FileWriter(reasonForReferral, true);\t \n BufferedWriter bw10 = new BufferedWriter(writ10);\n writ10.append(\"\");\n bw10.close();\n writ10.close();\n \n File sourceOfInformation = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/sourceofinformation.txt\");\n FileWriter writ11 = new FileWriter(sourceOfInformation, true);\t \n BufferedWriter bw11 = new BufferedWriter(writ11);\n writ11.append(\"\");\n bw11.close();\n writ11.close();\n \n File sourceOfInformationOther = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/sourceofinformation-other.txt\");\n FileWriter writ12 = new FileWriter(sourceOfInformationOther, true);\t \n BufferedWriter bw12 = new BufferedWriter(writ12);\n writ12.append(\"\");\n bw12.close();\n writ12.close();\n \n File reliabilityOfInformation = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/reliabilityofinformation.txt\");\n FileWriter writ13 = new FileWriter(reliabilityOfInformation, true);\t \n BufferedWriter bw13 = new BufferedWriter(writ13);\n writ13.append(\"\");\n bw13.close();\n writ13.close();\n \n File reliabilityOfInformationOther = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/reliabilityofinformation-other.txt\");\n FileWriter writ14 = new FileWriter(reliabilityOfInformationOther, true);\t \n BufferedWriter bw14 = new BufferedWriter(writ14);\n writ14.append(\"\");\n bw14.close();\n writ14.close();\n \n File historyOfPresentIllness = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/historyofpresentillness.txt\");\n FileWriter writ15 = new FileWriter(historyOfPresentIllness, true);\t \n BufferedWriter bw15 = new BufferedWriter(writ15);\n writ15.append(\"\");\n bw15.close();\n writ15.close();\n \n File signsSymptoms = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/signsandsymptoms.txt\");\n FileWriter writ16 = new FileWriter(signsSymptoms, true);\t \n BufferedWriter bw16 = new BufferedWriter(writ16);\n writ16.append(\"\");\n bw16.close();\n writ16.close();\n \n File currentMedications = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/currentmedications.txt\");\n FileWriter writ17 = new FileWriter(currentMedications, true);\t \n BufferedWriter bw17 = new BufferedWriter(writ17);\n writ17.append(\"\");\n bw17.close();\n writ17.close();\n \n File pastHistoryOf = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/pasthistoryof.txt\");\n FileWriter writ18 = new FileWriter(pastHistoryOf, true);\t \n BufferedWriter bw18 = new BufferedWriter(writ18);\n writ18.append(\"\");\n bw18.close();\n writ18.close();\n \n File pastHistoryOfText = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/pasthistoryoftext.txt\");\n FileWriter writ19 = new FileWriter(pastHistoryOfText, true);\t \n BufferedWriter bw19 = new BufferedWriter(writ19);\n writ19.append(\"\");\n bw19.close();\n writ19.close();\n \n File medicationTrialsTable = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/medicationtrialstable.txt\");\n FileWriter writ20 = new FileWriter(medicationTrialsTable, true);\t \n BufferedWriter bw20 = new BufferedWriter(writ20);\n writ20.append(\"\");\n bw20.close();\n writ20.close();\n \n File medicationTrialsComments = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/medicationtrialscomments.txt\");\n FileWriter writ21 = new FileWriter(medicationTrialsComments, true);\t \n BufferedWriter bw21 = new BufferedWriter(writ21);\n writ21.append(\"\");\n bw21.close();\n writ21.close();\n \n File substanceUseHistory = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/substanceusehistory.txt\");\n FileWriter writ22 = new FileWriter(substanceUseHistory, true);\t \n BufferedWriter bw22 = new BufferedWriter(writ22);\n writ22.append(\"\");\n bw22.close();\n writ22.close();\n \n File deniesHistoryOf = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/denieshistoryof.txt\");\n FileWriter writ23 = new FileWriter(deniesHistoryOf, true);\t \n BufferedWriter bw23 = new BufferedWriter(writ23);\n writ23.append(\"\");\n bw23.close();\n writ23.close();\n \n File deniesHistoryOfText = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/denieshistoryoftext.txt\");\n FileWriter writ24 = new FileWriter(deniesHistoryOfText, true);\t \n BufferedWriter bw24 = new BufferedWriter(writ24);\n writ24.append(\"\");\n bw24.close();\n writ24.close();\n \n File socialHistoryText = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/socialhistorytext.txt\");\n FileWriter writ25 = new FileWriter(socialHistoryText, true);\t \n BufferedWriter bw25 = new BufferedWriter(writ25);\n writ25.append(\"\");\n bw25.close();\n writ25.close();\n \n File socialHistoryParents = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/socialhistoryparents.txt\");\n FileWriter writ26 = new FileWriter(socialHistoryParents, true);\t \n BufferedWriter bw26 = new BufferedWriter(writ26);\n writ26.append(\"\");\n bw26.close();\n writ26.close();\n \n File socialHistorySiblings = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/socialhistorysiblings.txt\");\n FileWriter writ27 = new FileWriter(socialHistorySiblings, true);\t \n BufferedWriter bw27 = new BufferedWriter(writ27);\n writ27.append(\"\");\n bw27.close();\n writ27.close();\n \n File socialHistoryChildren = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/socialhistorychildren.txt\");\n FileWriter writ28 = new FileWriter(socialHistoryChildren, true);\t \n BufferedWriter bw28 = new BufferedWriter(writ28);\n writ28.append(\"\");\n bw28.close();\n writ28.close();\n \n File familyHistoryOfMentalIllness = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/familyhistoryofmentalillness.txt\");\n FileWriter writ29 = new FileWriter(familyHistoryOfMentalIllness, true);\t \n BufferedWriter bw29 = new BufferedWriter(writ29);\n writ29.append(\"\");\n bw29.close();\n writ29.close();\n \n }", "public boolean make() {\n File file = new File(parent);\n if(!file.exists())\n return file.mkdirs();\n return true;\n }", "void createFile()\n {\n //Check if file already exists\n try {\n File myObj = new File(\"src/main/java/ex45/exercise45_output.txt\");\n if (myObj.createNewFile()) {\n System.out.println(\"File created: \" + myObj.getName());// created\n } else {\n System.out.println(\"File already exists.\"); //exists\n }\n //Error check\n } catch (IOException e) {\n System.out.println(\"An error occurred.\");\n e.printStackTrace();\n }\n }", "@BeforeClass\n public static void createOutputDir() throws OfficeException {\n\n // Ensure we start with a fresh output directory\n final File outputDir = new File(OUTPUT_DIR);\n FileUtils.deleteQuietly(outputDir);\n outputDir.mkdirs();\n }", "public static void createDocumentDirectory( Path docDir,\n FileSystem fs )\n throws IOException {\n FileSystemHandler fsHandler = new FileSystemHandler( fs );\n\n\n // Create original.txt file\n String original = \"Hello, I'm an original.txt file.\"\n + \"\\n\\nLorem ipsum dolor sit amet, consectetur adipiscing \"\n + \"elit. Nullam eu mauris odio. Vivamus id fermentum\"\n + \"elit. Quisque placerat arcu in nibh tincidunt \"\n + \"consectetur.\\n\\n\"\n + getRandomString() + \"\\n\\n\" + getRandomString();\n Path originalPath = new Path( docDir, \"original.txt\" );\n fsHandler.writeFileToHDFS( original, originalPath );\n\n // Create annotation files\n for( AnnotationMode mode : AnnotationMode.values() ) {\n String annotation = \"Hello, I'm an annotation of type \"\n + mode.toString()\n + \"\\n\\nLorem ipsum dolor sit amet, consectetur \"\n + \"adipiscing elit. Nullam eu mauris odio. Vivamus id \"\n + \"fermentum elit. Quisque placerat arcu in nibh tincidunt \"\n + \"consectetur.\\n\";\n Path annotationPath = new Path( docDir,\n mode.toString() + \".txt\" );\n fsHandler.writeFileToHDFS( annotation, annotationPath );\n }\n }", "private static void makeDirPath(String targetAddr) {\n\t\tString parentPath = PathUtil.getImgBasePath() + targetAddr;\r\n\t\tFile dirPath = new File(parentPath);\r\n\t\tif (!dirPath.exists()) {\r\n\t\t\tdirPath.mkdirs();\r\n\t\t}\r\n\t}", "@Test\n public void testStorageLocationMkdirs() throws Exception {\n MemoryBackendCheckpointStorageAccess storage =\n new MemoryBackendCheckpointStorageAccess(\n new JobID(), randomTempPath(), null, DEFAULT_MAX_STATE_SIZE);\n\n File baseDir = new File(storage.getCheckpointsDirectory().getPath());\n assertFalse(baseDir.exists());\n\n // mkdirs only be called when initializeLocationForCheckpoint\n storage.initializeLocationForCheckpoint(177L);\n assertTrue(baseDir.exists());\n }", "public static void mkdirs(String owner, Path path) throws CWLException {\r\n File dir = path.toFile();\r\n if (!dir.exists() && !dir.mkdirs()) {\r\n throw new CWLException(ResourceLoader.getMessage(\"cwl.io.mkdir.failed\", path.toString(), owner), 255);\r\n }\r\n }", "@Override\n public synchronized boolean create(Path file)\n {\n File f = file.toFile(root);\n if (file.isRoot()) {\n return false;\n }\n File parent = file.parent().toFile(root);\n parent.mkdirs();\n\n try {\n return f.createNewFile();\n } catch (IOException e) {\n \te.printStackTrace();\n return false;\n }\n }", "@Override\n\tpublic void afterPropertiesSet() throws Exception { Make sure the directory exists.\n\t\t//\n\t\tFileUtils.forceMkdir(inboxDirectory);\n\t}", "public void handleMissingDirectory(String path_string) throws PersistBlobException {\n\t\tPath path = Paths.get(path_string);\n\t\tSet<PosixFilePermission> perms = PosixFilePermissions.fromString(directoryPerms);\n\t\tFileAttribute<Set<PosixFilePermission>> attr =\tPosixFilePermissions.asFileAttribute(perms);\n\t\ttry {\n\t\t\tFiles.createDirectories(path, attr);\n\t\t} catch (IOException e) {\n\t\t\tthrow new PersistBlobException(\"Unable to create path: [\"+path+\"]\",e);\n\t\t}\n\t\tlog.info(\"PersistBlobImpl: created directory: {}\",path_string);\n\t}", "public static void mkdir(String path)\n\t{\n\t\tif(!new File(path).exists())\n\t\t\tnew File(path).mkdirs();\n\t}", "public static void main(String[] args) {\n\t\tFile file = new File(\"test/a.txt\");\r\n\t\tFileUtil.createFile(file);\r\n\t\t/*if(! file.exists()){\r\n\t\t\ttry {\r\n\t\t\t\tSystem.out.println(file.getAbsolutePath());\r\n\t\t\t\tfile.createNewFile();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\t*/\r\n\t}", "private static void judeDirExists(String myPath) {\n \tFile myDir = new File(Paths.get(myPath).getParent().toString());\n if (!myDir.exists()) {\n \tmyDir.mkdirs(); \n System.out.println(\"Create path:\"+ myDir.getPath());\n }\n }", "public static void main(String[] args) {\n\n\t\tFile fi = new File(\"C:/test_io\");\n\t\tif(fi.exists()) {\n\t\t\t\n\t\t\tSystem.out.println(\"exists!\");\n\t\t}else {\n\t\t\tSystem.out.println(\"new\");\n\t\t\tfi.mkdir();\n\t\t}\n\t\t\n\t\tFile fic1 = new File(fi, \"AA\");\n\t\tfic1.mkdir();\n\t\t\n\t\tFile fic2 = new File(\"C:/test_io\", \"BB\");\n\t\tfic2.mkdir();\n\t\t\n\t\tFile fitxt = new File(fic1,\"a.txt\");\n\t\t\n\t\ttry {//checked exception\n\t\t\tfitxt.createNewFile();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public boolean createDir(String userName) {\n\t\tString path = userName;\n\n\t\tboolean success = true;\n\t\ttry{\n\t\t\tsuccess = (new File(path)).mkdirs();\n\t\t\tSystem.out.println(success);\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t}\n\t\treturn success;\n\n\t}", "public OutputResponse mkdir(String path){\n String command = \"mkdir \" + path;\n return jobTarget.runCommand( command );\n }", "public void createFolder (String folderName, long parentFolderId, Long userId) throws BookMarkException;", "private String createTestTargetFolder(Long targetId, Long userId) {\r\n\t\t// create user folder if not existing\r\n\t\tString path = mFileStorePath + userId + \"//tt-\" + targetId;\r\n\t\tif (new File(path).mkdirs()) {\r\n\t\t\tmLogger.info(\"New folder created:\" + path);\r\n\t\t\treturn path;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "static Path createBackupDirectory(Path savegame) {\r\n\t\tPath backupDirectory = Paths.get(savegame.getParent() + \"\\\\Backups\");\r\n\t\tif (!Files.isDirectory(backupDirectory)) {\r\n\t\t\ttry {\r\n\t\t\t\tFiles.createDirectory(backupDirectory);\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tSystem.out.println(\"Error: couldn't create Backup directory\");\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\tif (Files.isDirectory(backupDirectory)) {\r\n\t\t\tSystem.out.println(\"Created Backup Directory..\");\r\n\t\t}\r\n\t\treturn backupDirectory;\r\n\t}", "public static void CrearDirectorio (String args){\n File directorio = new File(args);\n \n if (!directorio.exists()) {\n if (directorio.mkdirs()) {\n //System.out.println(\"Directorio creado\\n\");\n } else {\n //System.out.println(\"Error al crear directorio\\n\");\n }\n }\n }", "public static void mkdir(String path) {\n File directory = new File(path);\n if (directory.exists())\n return;\n directory.mkdir();\n }", "private File createWorkingDir( final String path )\n {\n File workDir = new File( path );\n workDir.mkdirs();\n return workDir;\n }", "private boolean createFolder (Path path) {\n if (Files.notExists(path)) {\n // If the folder doesn't already exists we create it\n File f = new File(path.toString());\n try {\n // Create the folder\n f.mkdir();\n // Create an empty flow.json file\n f = new File(path + \"/flow.json\");\n f.createNewFile();\n return true;\n } catch (Exception e) {\n e.printStackTrace();\n return false;\n }\n } else {\n return false;\n }\n }", "private static void createTempFolder(String folderName) throws IOException {\n Path tempFolderPath = Paths.get(folderName);\n if (Files.notExists(tempFolderPath) || !Files.isDirectory(tempFolderPath)) {\n Files.createDirectory(tempFolderPath);\n }\n }", "private void createNote(NewNoteInput note, QueryService service) {\n if ((note.body() == null || note.body().isEmpty()) &&\n (note.title() == null || note.title().isEmpty())) {\n Log.i(LOG_TAG, \"skipped upload of note with empty body\");\n return;\n }\n\n service.createNote(note, (e, response) -> {\n runOnUiThread(() -> {\n if (e != null) {\n Log.e(LOG_TAG, e.getMessage());\n Toast.makeText(getApplicationContext(), getString(R.string.network_err),\n Toast.LENGTH_LONG).show();\n } else {\n Log.i(LOG_TAG, \"note created\");\n Toast.makeText(getApplicationContext(), getString(R.string.activity_note_ncreate),\n Toast.LENGTH_SHORT).show();\n\n finish();\n }\n });\n });\n }", "public boolean mkdirs()\n\t{\n\t\treturn file.mkdirs() ;\n\t}", "private void createFile(PonsFileFactory ponsFileFactory, Profile profile){\n moveX(profile);\n ponsFileFactory.setProfile(profile);\n String text = ponsFileFactory.createPonsFile();\n String profileName = profile.getName();\n WriteFile.write(text,pathTextField.getText() + \"/\" + profileName.substring(0,profileName.indexOf(\".\")));\n }", "private void createRootDirectory(String rootDirectoryPath) throws Exception {\n\t\tlogger.traceEntry();\n\n\t\trootDirectory = new Path(rootDirectoryPath);\n\t\tif (!hadoopFileSystem.exists(rootDirectory)) {\n\t\t\tlogger.warn(\"Directory \" + rootDirectoryPath + \" does not exist, creating\");\n\t\t\thadoopFileSystem.mkdirs(rootDirectory);\n\t\t}\n\t\tlogger.traceExit();\n\t}", "@Override\n\tpublic String createDirectory(AuthenticationToken authenticationToken, String filePath, String idealFolderName, boolean force) \n\t\t\tthrows PermissionDeniedException, CreateDirectoryFailedException { \n\t\tif(idealFolderName.trim().isEmpty()) \n\t\t\tthrow new CreateDirectoryFailedException(\"Directory name is empty. The directory was not created.\");\n\t\t\n\t\tidealFolderName = fileNameNormalizer.normalize(idealFolderName);\n\t\t\n\t\tFile dir = new File(filePath);\n if(dir.isFile()) {\n \tdir = dir.getParentFile();\n \tfilePath = dir.getAbsolutePath();\n }\n dir.mkdirs();\n\t\t\n\t\tboolean permissionResult = filePermissionService.hasWritePermission(authenticationToken, filePath);\n\t\tif(!permissionResult)\n\t\t\tthrow new PermissionDeniedException();\n\t\telse {\n\t\t\tboolean inUseResult = this.isInUse(authenticationToken, filePath);\n\t\t\tif(inUseResult)\n\t\t\t\t//throw new CreateDirectoryFailedException(\"Can't create directory. Parent directory is currently in use.\");\n\t\t\t\tthrow new CreateDirectoryFailedException(\"Can't create directory. Parent directory \"+this.createMessageFileInUse(authenticationToken, filePath)+\". Delete the tasks using Task Manager, then try again.\");\n\t\t\telse {\n\t\t\t\tFile file = new File(filePath + File.separator + idealFolderName);\n\t\t\t\tboolean resultMkDir = file.mkdir();\n\t\t\t\tif(!resultMkDir && force) {\n\t\t\t\t\tString date = dateTimeFormat.format(new Date());\n\t\t\t\t\tidealFolderName = idealFolderName + \"_\" + date;\n\t\t\t\t\tfile = new File(filePath + File.separator + idealFolderName);\n\t\t\t\t\tresultMkDir = file.mkdir();\n\t\t\t\t\tint i = 1;\n\t\t\t\t\twhile(!resultMkDir) {\n\t\t\t\t\t\tfile = new File(filePath + File.separator + idealFolderName + \"_\" + i++);\n\t\t\t\t\t\tresultMkDir = file.mkdir();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(!resultMkDir){ \n\t\t\t\t\tif(file.isDirectory() && file.exists())\n\t\t\t\t\t\tthrow new CreateDirectoryFailedException(\"Directory \"+file.getName()+\" already exists. You can try again with another name.\");\n\t\t\t\t\telse\n\t\t\t\t\t\tthrow new CreateDirectoryFailedException(\"Network or server errors\");\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\treturn file.getAbsolutePath();\n\t\t\t}\n\t\t}\n\t}", "private void createFolderHelper(final IFolder folder,final IProgressMonitor monitor)\n throws CoreException\n {\n if(!folder.exists())\n {\n IContainer parent = folder.getParent();\n if(parent instanceof IFolder\n && (!((IFolder)parent).exists())) {\n createFolderHelper((IFolder)parent,monitor);\n }\n folder.create(false,true,monitor);\n }\n }", "public static boolean createDirIfNotExists(SourceFile sourceFile) throws IOException {\n return createDirIfNotExists(sourceFile.getPath(), sourceFile.getSourceType());\n }", "public static void initializeOutputFolder() {\n\t\tString default_folder = PropertiesFile.getInstance().getProperty(\"default_folder\");\n\t\t\n\t\t// The file has to exist and is a directory (Not just a child file)\n\t\tString fullQualifiedFolderName = getFullyQualifiedFileName(default_folder);\n\t\tFile defaultDir = new File(fullQualifiedFolderName);\n\t\tif (!checkFolder(fullQualifiedFolderName)) {\n\t\t\tboolean dirCreated = defaultDir.mkdir();\n\t\t\tif(dirCreated == false) {\n\t\t\t\tlog.error(\"Could not create generation folder\");\n\t\t\t}\n\t\t} else\n\t\t\tdeleteFolderRecursively(defaultDir);\n\t}", "private FilePath ensureWorkspaceExists(WorkflowJob job) throws Exception {\n FilePath path = remote.getWorkspaceFor(job);\n path.mkdirs();\n return path;\n }", "public void execute_notesFilesCreated() {\n DownloadSelectNotesCommand command = new DownloadSelectNotesCommand(INCORRECT_USERNAME,\n INCORRECT_PASSWORD, INCORRECT_MODULE_CODE, CORRECT_FILE_INDEX);\n String intendedFileLocation = System.getProperty(\"user.dir\") + DownloadAllNotesCommand.DOWNLOAD_FILE_PATH;\n File notesFile = new File(intendedFileLocation);\n assertCommandFailure(command, model, commandHistory, Messages.MESSAGE_USERNAME_PASSWORD_ERROR\n + DownloadSelectNotesCommand.NEWLINE_SEPARATOR + DownloadSelectNotesCommand.MESSAGE_USAGE);\n assertTrue(notesFile.exists());\n }", "private static void createParents(String path) {\n\n File file = new File(path);\n if (!file.exists()) {\n file.mkdirs();\n }\n }", "protected void ensureExistence() {\n if (folder.exists()) return;\n\n Base.showWarning(_(\"Sketch Disappeared\"),\n _(\"The sketch folder has disappeared.\\n \" +\n \"Will attempt to re-save in the same location,\\n\" +\n \"but anything besides the code will be lost.\"), null);\n try {\n folder.mkdirs();\n modified = true;\n\n for (int i = 0; i < codeCount; i++) {\n code[i].save(); // this will force a save\n }\n calcModified();\n\n } catch (Exception e) {\n Base.showWarning(_(\"Could not re-save sketch\"),\n _(\"Could not properly re-save the sketch. \" +\n \"You may be in trouble at this point,\\n\" +\n \"and it might be time to copy and paste \" +\n \"your code to another text editor.\"), e);\n }\n }", "public static boolean createRootFile(String parentPath, String name) {\n File dir = new File(parentPath + File.separator + name);\n\n if (dir.exists())\n return false;\n\n try {\n if (!readReadWriteFile())\n RootTools.remount(parentPath, \"rw\");\n\n execute(\"touch \" + getCommandLineString(dir.getAbsolutePath()));\n return true;\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n return false;\n }", "public void checkFolder() {\n String mPath = Environment.getExternalStorageDirectory().getAbsolutePath() + \"/ExoTest/\";\n mDir = new File(mPath);\n boolean isDirectoryCreated = mDir.exists();\n if (!isDirectoryCreated) {\n isDirectoryCreated = mDir.mkdir();\n }\n if (isDirectoryCreated) {\n // do something\\\n Log.d(\"Folder\", \"Already Created\");\n }\n }", "public OutputResponse mkdirs(String path){\n String command = \"mkdir -p \" + path;\n return jobTarget.runCommand( command);\n }", "public static boolean createDBDir() {\n return (new File(path)).mkdirs();\n }", "public static void main(String[] args) {\n doCreateDir();\n }", "private static void createProjectsFolders() throws IOException {\n /*\n * .sagrada/\n * logs/\n */\n File logFolder = new File(Constants.Paths.LOG_FOLDER.getAbsolutePath());\n\n if (!logFolder.isDirectory() && !logFolder.mkdirs()) {\n throw new IOException(\"Could not directory structure: \" + (Constants.Paths.LOG_FOLDER.getAbsolutePath()));\n }\n }", "private void createNewDirectory() {\n getMainWindow().addWindow(\n new TextInputDialog(\n \"Create Directory\",\n \"Create Directory\",\n \"New Folder\",\n new TextInputDialog.Callback() {\n public void onDialogResult(boolean happy, String newDirectory) {\n if ( happy\n && isValidFile(newDirectory)) {\n try {\n // Verzeichnis anlegen\n File newDir = getFile(newDirectory);\n if (!newDir.exists()) {\n newDir.mkdir(0755);\n }\n // Prüfen, ob das Verzeichnis angelegt wurde\n if (newDir.exists()) {\n loadXtreemFSData();\n showNotification(\"Success\", \"Directory \" + newDirectory + \" created.\", Notification.TYPE_TRAY_NOTIFICATION, null);\n }\n else {\n showNotification(\"Error\", \"Directory \" + newDirectory + \" could not be created.\", Notification.TYPE_WARNING_MESSAGE, null);\n }\n } catch (IOException e) {\n showNotification(\"Error\", e.toString(), Notification.TYPE_ERROR_MESSAGE, e);\n }\n }\n }\n }));\n }", "public static void createRequiredDirectories()\n\t{\n\n\t\t/*Input_Files dir creation */\n\t\tFile inpDir = new File(INPUT_DIR_NAME);\n\n\t\t// if the directory does not exist, create it\n\t\tif (!inpDir.exists())\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tinpDir.mkdir();\n\t\t\t} catch (Exception e)\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tLOG_WRITER.write(DIR_CREATION_ERROR + INPUT_DIR_NAME + \"\\nError : \"\n\t\t\t\t\t\t\t+ e.getMessage());\n\t\t\t\t\tSystem.out.println(DIR_CREATION_ERROR + INPUT_DIR_NAME + \"\\nError : \"\n\t\t\t\t\t\t\t+ e.getMessage());\n\t\t\t\t} catch (IOException e1)\n\t\t\t\t{\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\t\t}\n\n\t\t/*Logs dir creation */\n\t\tFile logsDir = new File(LOGS_DIR_NAME);\n\n\t\t// if the directory does not exist, create it\n\t\tif (!logsDir.exists())\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tlogsDir.mkdir();\n\t\t\t} catch (Exception e)\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tLOG_WRITER.write(DIR_CREATION_ERROR + LOGS_DIR_NAME + \"\\nError : \"\n\t\t\t\t\t\t\t+ e.getMessage());\n\t\t\t\t\tSystem.out.println(DIR_CREATION_ERROR + LOGS_DIR_NAME + \"\\nError : \"\n\t\t\t\t\t\t\t+ e.getMessage());\n\t\t\t\t} catch (IOException e1)\n\t\t\t\t{\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\t\t}\n\t}", "public static void insurePathToFileExists(File f) {\r\n File p = f.getParentFile();\r\n //System.out.println(\"uu.iPE: parent of \"+filename+\" is \"+parent);\r\n\r\n if (!p.exists()) {\r\n // parent doesn't exist, create it:\r\n if (!p.mkdirs()) {\r\n throw new IllegalStateException(\"Unable to make directory \" + p.getPath());\r\n } // endif -- second mkdir unsuc\r\n } // endif -- parent exists\r\n }", "public static boolean create(String dirName)\r\n {\r\n Path p = Paths.get(dirName);\r\n if (Files.notExists(p))\r\n {\r\n try\r\n {\r\n Files.createDirectory(p);\r\n } catch (Exception ex)\r\n {\r\n return false;\r\n }\r\n }\r\n return true;\r\n }", "private String createFileName(){\n \t\n \tString state = Environment.getExternalStorageState();\n \tif(state.equals(Environment.MEDIA_MOUNTED)){ \t\t\n \t\tFile folder = new File(Environment.getExternalStorageDirectory() + \"/ArtCameraPro\");\n \t\tboolean success = true;\n \t\tif (!folder.exists()) {\n \t\t success = folder.mkdir();\n \t\t} \n \t\tString sFileName = Environment.getExternalStorageDirectory() + \"/ArtCameraPro\" + File.separator + System.currentTimeMillis() + \".jpg\";\n \t\treturn sFileName;\n \t\t\n \t}\n \treturn \"\";\n }", "public static boolean createRootdir(String parentPath, String name) {\n File dir = new File(parentPath + File.separator + name);\n if (dir.exists())\n return false;\n\n try {\n if (!readReadWriteFile())\n RootTools.remount(parentPath, \"rw\");\n\n execute(\"mkdir \" + getCommandLineString(dir.getAbsolutePath()));\n return true;\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n return false;\n }", "@BeforeEach\n void before() {\n if (Files.notExists(path)) path.toFile().mkdirs();\n }", "@Test\n\tpublic void Directories() {\n\t\t\n\t\tString dirs = \"test/one/two/\";\n\t\tFile d = new File(dirs);\n\t\td.mkdirs();\n\t\tAssert.assertTrue(d.exists());\n\t\t\n\t\t//Cleanup\n\t\tif(d.delete()) {\n\t\t\td = new File(\"test/one\");\n\t\t\tif(d.delete()) {\n\t\t\t\td = new File(\"test\");\n\t\t\t\td.delete();\n\t\t\t}\n\t\t}\n\t\t\n\t}", "protected static void autoCreate(File dataDir) throws Exception {\n\r\n if ( ! dataDir.exists() && ! dataDir.mkdirs() ) {\r\n Object[] args = new Object[] { Convert.fromFile(dataDir) };\r\n throw new ThreadStopException(Text.get(Format.class,\"e9\",args)).setHint(Text.get(Format.class,\"h9\",args));\r\n }\r\n }", "public void mkdir(String name) throws FileExistsException\n\t{\n\t\tcheckMakeFile(name);\n\t\tFileElement add = new FileElement(name, true);\n\t\tfileSystem.addChild(currentFileElement, add);\n\t}", "public static void creator(Website websiteInfo){\n //creates folder using info on current directory\n File newFolder = new File(websiteInfo.currentPath);\n boolean websiteTest = newFolder.mkdir();\n\n if(websiteTest){\n System.out.println(\"Created ./website/\"+ websiteInfo.name);\n htmlFile(websiteInfo);\n createCSSJava(websiteInfo);\n }else{\n System.out.println(\"Could not create website\");\n }\n }", "public static void createSaveFile( )\n {\n try\n {\n new File( \"data\" ).mkdirs( );\n PrintWriter writer = new PrintWriter( \"data/\" + Game.instance.getCurrentSaveFile( ).SAVEFILENAME + \".txt\", \"UTF-8\" );\n writer.println( \"dkeys: \" + Game.START_DIAMOND_KEY_COUNT );\n writer.close( );\n }\n catch ( IOException e )\n {\n e.printStackTrace( );\n System.exit( 1 );\n }\n }", "static void mkdirs(File f) {\n f.mkdirs();\n }" ]
[ "0.6574705", "0.6401804", "0.6210872", "0.6201304", "0.6083168", "0.6013945", "0.59581757", "0.59329736", "0.59326357", "0.58697593", "0.58635986", "0.58489615", "0.57765234", "0.5776449", "0.57728916", "0.5763165", "0.57447624", "0.5743963", "0.5716088", "0.5711628", "0.56925", "0.5678149", "0.5677219", "0.5672085", "0.56713116", "0.56605834", "0.56448394", "0.5639676", "0.5635311", "0.5627215", "0.5627157", "0.56152844", "0.56089526", "0.5598421", "0.55887586", "0.5582904", "0.5582623", "0.5559881", "0.55546385", "0.55536103", "0.55479807", "0.5547899", "0.55419624", "0.5539079", "0.5526492", "0.5512508", "0.55057836", "0.5496734", "0.54903525", "0.5459114", "0.54511636", "0.54336596", "0.54302955", "0.54121953", "0.54019725", "0.5400005", "0.5399066", "0.5382021", "0.53771305", "0.53713393", "0.536106", "0.53582007", "0.53570634", "0.5356876", "0.5352363", "0.53443766", "0.5342376", "0.533609", "0.53264624", "0.5324697", "0.5324506", "0.53206974", "0.5312858", "0.530041", "0.52934676", "0.5293166", "0.5287856", "0.52812153", "0.52537775", "0.5246748", "0.5246655", "0.5243299", "0.5242839", "0.5238949", "0.5233186", "0.5226359", "0.52241594", "0.521899", "0.5214746", "0.5206593", "0.520643", "0.5204807", "0.5196897", "0.5190695", "0.51869786", "0.5181945", "0.5172519", "0.51718843", "0.5161643", "0.5155993", "0.5155363" ]
0.0
-1
Get the location of the note Including the note file name and extension
private static String getNoteLocation(String noteName) { return NoteConstants.NOTE_LOCATION + RegistryConstants.PATH_SEPARATOR + noteName + NoteConstants.NOTE_FILE_EXTENSION_SEPARATOR + NoteConstants.NOTE_FILE_EXTENSION; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getFileLoc();", "public L getDocumentLocation();", "public abstract String getFileLocation();", "public String getLocationPath();", "public String getLocationOfFiles() {\n\t\ttry {\n\t\t\tFile f = new File(\n\t\t\t\t\tgetRepositoryManager().getMetadataRecordsLocation() + \"/\" + getFormatOfRecords() + \"/\" + getKey());\n\t\t\treturn f.getAbsolutePath();\n\t\t} catch (Throwable e) {\n\t\t\tprtlnErr(\"Unable to get location of files: \" + e);\n\t\t\treturn \"\";\n\t\t}\n\t}", "public String getFilePath(Extension extension) {\n\t\treturn extension.eResource().getURI().toString();\n\t}", "public String getNote() {\n if (MetadataUGWD_Type.featOkTst && ((MetadataUGWD_Type)jcasType).casFeat_note == null)\n jcasType.jcas.throwFeatMissing(\"note\", \"de.aitools.ie.uima.type.argumentation.MetadataUGWD\");\n return jcasType.ll_cas.ll_getStringValue(addr, ((MetadataUGWD_Type)jcasType).casFeatCode_note);}", "public String getDocumentNote();", "java.lang.String getFilePath();", "edu.usfca.cs.dfs.StorageMessages.FileLocation getFileLocation();", "private Point getHeadLocation (Note note)\r\n {\r\n return new Point(tailLocation.x, note.getReferencePoint().y);\r\n }", "Path getModBookFilePath();", "public String getFilePath() {\n return getSourceLocation().getFilePath();\n }", "String getFilePath();", "String getFilepath();", "public String getOpenFilePath() {\n\t\treturn filePath.getText();\n\t}", "public final String getFilePath() {\n\t\treturn m_info.getPath();\n\t}", "private String getFullPath()\n\t{\n\t\tif (libraryName.equals(\"\"))\n\t\t{\n\t\t\treturn fileName;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn libraryName + \"/\" + fileName;\n\t\t}\n\t}", "final public String getExtension()\n\t{\n\t\treturn this.getLocation().getExtension(); \n\t}", "Path getLocation();", "public String getMainFilePath() {\n return primaryFile.getAbsolutePath();\n //return code[0].file.getAbsolutePath();\n }", "public java.lang.String getFileLoc() {\n java.lang.Object ref = fileLoc_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n fileLoc_ = s;\n }\n return s;\n }\n }", "public static String getReleaseNotes() {\n\n try {\n //Open file\n ClassLoader classLoader = new ResourceLoader().getClass().getClassLoader();\n File file = new File(classLoader.getResource(RELEASE_NOTES).getFile());\n //Read File Content\n String content = new String(Files.readAllBytes(file.toPath()));\n return content;\n } catch (IOException ex) {\n Logger.getLogger(ResourceLoader.class.getName()).log(Level.SEVERE, null, ex);\n return null;\n }\n\n }", "public String getPath() throws Exception {\n\t\t/*\n\t\t * return \"/news-oppsRecord\" + doc.selectSingleNode\n\t\t * (\"/metadataFieldInfo/field/@path\").getText();\n\t\t */\n\t\treturn doc.selectSingleNode(\"/metadataFieldInfo/field/@path\").getText();\n\t}", "String getNoticeFileUrl();", "private String getDatabaseFilePath(NotesDatabase db) {\n try {\n return db.getFilePath();\n } catch (RepositoryException ex) {\n LOGGER.log(Level.WARNING, \"Unable to retrieve database's file path\", ex);\n return null;\n }\n }", "public java.lang.String getFileLoc() {\n java.lang.Object ref = fileLoc_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n fileLoc_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getFileName(){\r\n\t\treturn linfo != null ? linfo.getFileName() : \"\";\r\n\t}", "@Nullable public String getFileName() {\n return getSourceLocation().getFileName();\n }", "public static String[] getNote(String eventName) throws Exception {\n // generate note name from event name\n StringBuffer tmp = new StringBuffer();\n for (int i=0; i < eventName.length(); i++) {\n char c = eventName.charAt(i);\n if ((c != ' ') & (c != '*')) tmp.append(c);\n }\n String noteName = tmp.toString().toLowerCase() + \".html\";\n String noteText;\n\n try {\n // open file\n BufferedReader fileReader = new BufferedReader(new InputStreamReader(ConsoleWindow.class.getResourceAsStream(\"/\" + noteName)));\n\n // read in each line in the sql file\n StringBuffer tmpSQL = new StringBuffer();\n for (String line; (line = fileReader.readLine()) != null;) {\n tmpSQL.append(line);\n tmpSQL.append(\"\\n\");\n }\n noteText = tmpSQL.toString();\n\n // close file\n fileReader.close();\n }\n catch (Exception NullPointerException) {\n throw new NoSuchNoteException(\"The note \" + noteName + \" was not found in jar file\");\n }\n\n String [] note = new String[2];\n note[0] = noteName;\n note[1] = noteText;\n\n return note;\n }", "String getNotesArgument() throws Exception {\n String output = \"\";\n String line = this.readLine().trim();\n\n while (!line.contains(\"[/event]\")) {\n output += line;\n line = this.readLine().trim();\n }\n\n return output;\n }", "private String fileName(ModuleReference mref) {\n URI uri = mref.location().orElse(null);\n if (uri != null) {\n if (uri.getScheme().equalsIgnoreCase(\"file\")) {\n Path file = Path.of(uri);\n return file.getFileName().toString();\n } else {\n return uri.toString();\n }\n } else {\n return \"<unknown>\";\n }\n }", "Path getFilePath();", "File getSaveLocation();", "public String extension() {\n int dot = fullPath.lastIndexOf(extensionSeparator);\n return fullPath.substring(dot + 1);\n }", "public abstract String getFullPath();", "public String filename() {\n int dot = fullPath.lastIndexOf(extensionSeparator);\n int sep = fullPath.lastIndexOf(pathSeparator);\n return fullPath.substring(sep + 1, dot);\n }", "public java.lang.String getFilepath()\n {\n return filepath;\n }", "public String getNote() {\n\t\treturn _note;\n\t}", "String get_note()\n {\n return note;\n }", "public String getPath() {\n if (foundNemo) {\n return path;\n } else {\n path = \"Uh Oh!! Could not find Nemo!!\";\n return path;\n }\n }", "public static String getHelpContentFilePath() {\n\t\tFile jarPath = SX3Manager.getInstance().getInstallLocation();\n\t\tString sx3helpContentPath = jarPath.getParentFile().getAbsolutePath() + \"/SX3_CONFIGURATION_HELP_CONTENT.json\";\n\t\treturn sx3helpContentPath;\n\t}", "public String getNote()\n {\n return note;\n }", "String location();", "String location();", "String location();", "String location();", "String location();", "String location();", "String location();", "String location();", "public String getFilepath() {\n\t\treturn this.filepath;\n\t}", "String getAnnotationFile() {\n File imgFile = photos[fileIndex];\n String parentDir = imgFile.getParent();\n String fileName = imgFile.getName();\n String annotationName = fileName.replace(fileName.substring(fileName.lastIndexOf('.') + 1), \"xml\");\n File annotationDir = new File(parentDir.replace(\"images\", \"annotations\"));\n if (!annotationDir.exists()) {\n annotationDir.mkdirs();//create dir if none\n }\n return annotationDir.getAbsolutePath() + File.separator + annotationName;\n }", "public String getNote()\n\t{\n\t\treturn note;\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn getFullPath();\n\t}", "private void getDetailsOfFiles(){\n\t\tString path = tfile.getAbsolutePath();\n\t\t\n\t\ttype = path.substring(path.lastIndexOf('.')+1);\n\t\t\n\t\tif(path.contains(\"/\")){\n\t\t\tfileName = path.substring(path.lastIndexOf(\"/\")+1);\n\t\t}else if(path.contains(\"\\\\\")){\n\t\t\tfileName = path.substring(path.lastIndexOf(\"\\\\\")+1);\n\t\t}\n\t}", "String getFullWorkfileName();", "public String getFullPath()\n {\n return( fullPath );\n }", "public String getNote() {\n\t\treturn note;\n\t}", "public String getNote() {\r\n return note;\r\n }", "public String getNote() {\r\n return note;\r\n }", "public String filename() {\n\t int sep = fullPath.lastIndexOf(pathSeparator);\n\t return fullPath.substring(sep + 1);\n\t }", "public String getFilepath()\n\t{\n\t\treturn filepath;\n\t}", "public String getNote(){\r\n\t\treturn note;\r\n\t}", "public String getNote() {\n return note;\n }", "public String getNote() {\n return note;\n }", "public String getNote() {\n return note;\n }", "public String getNote() {\n return note;\n }", "public String getNote() {\n return note;\n }", "public String getNote() {\n return note;\n }", "public String getNote() {\n return note;\n }", "public String getNote() {\n return note;\n }", "public String getNote() {\n return note;\n }", "public String getNote() {\n return note;\n }", "public String getNote() {\n return note;\n }", "public String getStorageLocation() {\n\t\treturn io.getFile();\n\t}", "String note();", "@Override\n public String getAbsolutePathImpl() {\n return file.getAbsolutePath();\n }", "SourceFilePath getFilePath();", "public String getFilePath() {\n return getString(CommandProperties.FILE_PATH);\n }", "public String getFileSource(int index) {\n\t\tFile f = openFiles.get(index); \n\t\tString path = f.getAbsolutePath();\n\t\tint last = path.lastIndexOf('/');\n\t\tString pathSimple = path.substring(0, last+1);\n\t\t\n\t\treturn pathSimple;\t\n\t}", "public String getArtworkFilename(MediaFileType type) {\n List<MediaFile> artworks = getMediaFiles(type);\n if (!artworks.isEmpty()) {\n return artworks.get(0).getFile().toString();\n }\n return \"\";\n }", "public String getContentLocation() {\n\n String as[] = getMimeHeader(\"Content-Location\");\n\n if (as != null && as.length > 0) {\n return as[0];\n } else {\n return null;\n }\n }", "public String getAbsPath();", "private File getIOFile() {\n \t\tIPath location = resource.getLocation();\n \t\tif(location!=null) {\n \t\t\treturn location.toFile();\n \t\t}\n \t\treturn null;\n \t}", "public String getPath() {\n\t\treturn file.getPath();\n\t}", "public static String getNote(int tenantID, String noteName) throws RegistryException, NotePersistenceException {\n UserRegistry userRegistry = ServiceHolder.getRegistryService().getConfigSystemRegistry(tenantID);\n String noteLocation = getNoteLocation(noteName);\n\n if (userRegistry.resourceExists(noteLocation)) {\n return RegistryUtils.decodeBytes((byte[]) userRegistry.get(noteLocation).getContent());\n } else {\n log.error(\"Cannot retrieve note because a note with name \" + noteName +\n \" for tenant with tenant ID \" + tenantID + \" does not exist\");\n throw new NotePersistenceException(\"Cannot get note with name : \"\n + noteName + \" for tenantId : \" + tenantID + \" beacause it does not exist\");\n }\n }", "public String getFile() {\n return \"null\"; // getFileTopic().getCompositeValue().getTopic(FILE_PATH);\n }", "public Note getNote() {\n\t \n\t //returns the objected stored in the note field\n\t return this.note;\n }", "public String getFileNoPath() {\n if (fileType == HTTP) {\n return fileName.substring(fileName.lastIndexOf(\"/\") + 1);\n } else {\n return fileName.substring(fileName.lastIndexOf(File.separator) + 1);\n }\n }", "java.lang.String getFilename();", "java.lang.String getFilename();", "public String getFilepath() {\n\t\treturn filepath;\n\t}", "public String getNote() {\r\n return note; \r\n }", "public void addNoteToFile(Note note) throws DaoException {\n\t\tFile notebookFile = new File(FILE_NAME);\n\t\ttry {\n\t\t\tif (notebookFile.exists()) {\n\t\t\t\twriteNoteInFile(note);\n\t\t\t} else {\n\t\t\t\tNoteBook noteBook = NoteBookProvider.getInstance()\n\t\t\t\t\t\t.getNoteBook();\n\n\t\t\t\tcreateNoteBookFile(noteBook);\n\t\t\t\taddNoteToFile(note);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tthrow new DaoException(\"Add note to file error\", e);\n\t\t}\n\t\tSystem.out.println(notebookFile.getAbsolutePath());\n\n\t}", "public String getPath() {\n if (fileType == HTTP) {\n return fileName.substring(0, fileName.lastIndexOf(\"/\"));\n } else {\n return fileName.substring(0, fileName.lastIndexOf(File.separator));\n }\n }", "public File getJobFilePath() {\n Preferences prefs = Preferences.userNodeForPackage(MainApp.class);\n String filePath = prefs.get(powerdropshipDir, null);\n if (filePath != null) {\n return new File(filePath);\n } else {\n return null;\n }\n }", "private String getSelectedFile() {\r\n\t\tString file = \"\";\r\n\t\tIFile selectedFile = fileResource.getSelectedIFile();\r\n\t\tif (selectedFile != null) {\r\n\t\t\tIPath selectedPath = selectedFile.getLocation();\r\n\t\t\tif (selectedPath != null) {\r\n\t\t\t\tfile = selectedPath.toFile().toString();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn file;\r\n\t}", "public static String sourceExtension()\n {\n read_if_needed_();\n \n return _ext; \n }", "String getPath();" ]
[ "0.67196834", "0.6535028", "0.6371853", "0.63462275", "0.6272504", "0.61886925", "0.61691153", "0.61579305", "0.6119762", "0.6089598", "0.6011699", "0.5983951", "0.59690446", "0.59473574", "0.5945871", "0.593528", "0.5911847", "0.590668", "0.5889607", "0.5870356", "0.58271456", "0.57814455", "0.57435703", "0.5730905", "0.56953245", "0.56949437", "0.56900436", "0.56829107", "0.56730276", "0.566276", "0.5660343", "0.56566846", "0.5655508", "0.5630236", "0.56287575", "0.5625706", "0.5625197", "0.56203556", "0.56128794", "0.5602379", "0.55838156", "0.5578113", "0.5578032", "0.5576681", "0.5576681", "0.5576681", "0.5576681", "0.5576681", "0.5576681", "0.5576681", "0.5576681", "0.5553281", "0.55520463", "0.5546649", "0.55432326", "0.5537734", "0.55368334", "0.55324095", "0.55307573", "0.5508218", "0.5508218", "0.550787", "0.55050004", "0.55048025", "0.5494919", "0.5494919", "0.5494919", "0.5494919", "0.5494919", "0.5494919", "0.5494919", "0.5494919", "0.5494919", "0.5494919", "0.5494919", "0.54855996", "0.54849565", "0.5472114", "0.5469486", "0.5469057", "0.5464112", "0.5451075", "0.5450947", "0.5448028", "0.5446147", "0.5438948", "0.5436608", "0.54339683", "0.5429627", "0.5425625", "0.5418779", "0.5418779", "0.5415422", "0.5414357", "0.54012036", "0.5396478", "0.53889674", "0.53795797", "0.5360115", "0.53579" ]
0.7554991
0
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { pPainel = new javax.swing.JPanel(); lNomeCliente = new javax.swing.JLabel(); lDataInicial = new javax.swing.JLabel(); lDataFinal = new javax.swing.JLabel(); tfNomeCliente = new javax.swing.JTextField(); spClientePedidos = new javax.swing.JScrollPane(); tRelatorio = new javax.swing.JTable(); sSeparador = new javax.swing.JSeparator(); bProcurar = new javax.swing.JButton(); dcInicial = new com.toedter.calendar.JDateChooser(); dcFinal = new com.toedter.calendar.JDateChooser(); bSair = new javax.swing.JButton(); bSalvar = new javax.swing.JButton(); setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); setTitle("Relatórios"); setMinimumSize(new java.awt.Dimension(650, 400)); setPreferredSize(new java.awt.Dimension(650, 400)); addWindowListener(new java.awt.event.WindowAdapter() { public void windowClosed(java.awt.event.WindowEvent evt) { formWindowClosed(evt); } }); pPainel.setPreferredSize(new java.awt.Dimension(650, 550)); lNomeCliente.setText("Nome do Cliente:"); lDataInicial.setText("Data inicial:"); lDataFinal.setText("Data final:"); tRelatorio.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { }, new String [] { "ID", "Data", "Cliente", "Valor" } ) { boolean[] canEdit = new boolean [] { false, false, false, false }; public boolean isCellEditable(int rowIndex, int columnIndex) { return canEdit [columnIndex]; } }); spClientePedidos.setViewportView(tRelatorio); bProcurar.setText("Procurar"); bProcurar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { bProcurarActionPerformed(evt); } }); dcInicial.setDateFormatString("dd/MM/yy"); dcFinal.setDateFormatString("dd/MM/yy"); bSair.setText("Sair"); bSair.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { bSairActionPerformed(evt); } }); bSalvar.setText("Salvar"); bSalvar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { bSalvarActionPerformed(evt); } }); javax.swing.GroupLayout pPainelLayout = new javax.swing.GroupLayout(pPainel); pPainel.setLayout(pPainelLayout); pPainelLayout.setHorizontalGroup( pPainelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(pPainelLayout.createSequentialGroup() .addContainerGap() .addGroup(pPainelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(sSeparador) .addGroup(pPainelLayout.createSequentialGroup() .addComponent(lNomeCliente) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(tfNomeCliente)) .addComponent(spClientePedidos, javax.swing.GroupLayout.DEFAULT_SIZE, 611, Short.MAX_VALUE) .addGroup(pPainelLayout.createSequentialGroup() .addGroup(pPainelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(lDataInicial) .addComponent(dcInicial, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(40, 40, 40) .addGroup(pPainelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(pPainelLayout.createSequentialGroup() .addComponent(dcFinal, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(bProcurar) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(bSalvar) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(bSair)) .addGroup(pPainelLayout.createSequentialGroup() .addComponent(lDataFinal) .addGap(79, 79, 79))))) .addContainerGap()) ); pPainelLayout.setVerticalGroup( pPainelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(pPainelLayout.createSequentialGroup() .addContainerGap() .addGroup(pPainelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(lNomeCliente) .addComponent(tfNomeCliente, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(18, 18, 18) .addComponent(spClientePedidos, javax.swing.GroupLayout.PREFERRED_SIZE, 211, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addComponent(sSeparador, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(pPainelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(pPainelLayout.createSequentialGroup() .addGap(22, 22, 22) .addGroup(pPainelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(bProcurar) .addComponent(bSair) .addComponent(bSalvar))) .addGroup(pPainelLayout.createSequentialGroup() .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(pPainelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(lDataInicial) .addComponent(lDataFinal)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(pPainelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(dcInicial, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(dcFinal, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); getContentPane().add(pPainel, java.awt.BorderLayout.CENTER); pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n initComponents();\n }", "public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "public FormListRemarking() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n \n }", "public FormPemilihan() {\n initComponents();\n }", "public GUIForm() { \n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "public TorneoForm() {\n initComponents();\n }", "public FormCompra() {\n initComponents();\n }", "public muveletek() {\n initComponents();\n }", "public Interfax_D() {\n initComponents();\n }", "public quanlixe_form() {\n initComponents();\n }", "public SettingsForm() {\n initComponents();\n }", "public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public Soru1() {\n initComponents();\n }", "public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }", "public soal2GUI() {\n initComponents();\n }", "public EindopdrachtGUI() {\n initComponents();\n }", "public MechanicForm() {\n initComponents();\n }", "public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }", "public BloodDonationGUI() {\n initComponents();\n }", "public quotaGUI() {\n initComponents();\n }", "public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }", "public PatientUI() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "public Oddeven() {\n initComponents();\n }", "public intrebarea() {\n initComponents();\n }", "public Magasin() {\n initComponents();\n }", "public RadioUI()\n {\n initComponents();\n }", "public NewCustomerGUI() {\n initComponents();\n }", "public ZobrazUdalost() {\n initComponents();\n }", "public FormUtama() {\n initComponents();\n }", "public p0() {\n initComponents();\n }", "public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }", "public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }", "public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }", "public form2() {\n initComponents();\n }", "public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}", "public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public kunde() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }", "public MusteriEkle() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public DESHBORDPANAL() {\n initComponents();\n }", "public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }", "public frmVenda() {\n initComponents();\n }", "public Botonera() {\n initComponents();\n }", "public FrmMenu() {\n initComponents();\n }", "public OffertoryGUI() {\n initComponents();\n setTypes();\n }", "public JFFornecedores() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }", "public EnterDetailsGUI() {\n initComponents();\n }", "public vpemesanan1() {\n initComponents();\n }", "public Kost() {\n initComponents();\n }", "public FormHorarioSSE() {\n initComponents();\n }", "public UploadForm() {\n initComponents();\n }", "public frmacceso() {\n initComponents();\n }", "public HW3() {\n initComponents();\n }", "public Managing_Staff_Main_Form() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "public sinavlar2() {\n initComponents();\n }", "public P0405() {\n initComponents();\n }", "public IssueBookForm() {\n initComponents();\n }", "public MiFrame2() {\n initComponents();\n }", "public Choose1() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }", "public GUI_StudentInfo() {\n initComponents();\n }", "public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }", "public JFrmPrincipal() {\n initComponents();\n }", "public bt526() {\n initComponents();\n }", "public Pemilihan_Dokter() {\n initComponents();\n }", "public Ablak() {\n initComponents();\n }", "@Override\n\tprotected void initUi() {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}", "public Pregunta23() {\n initComponents();\n }", "public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }", "public AvtekOkno() {\n initComponents();\n }", "public busdet() {\n initComponents();\n }", "public ViewPrescriptionForm() {\n initComponents();\n }", "public Ventaform() {\n initComponents();\n }", "public Kuis2() {\n initComponents();\n }", "public CreateAccount_GUI() {\n initComponents();\n }", "public POS1() {\n initComponents();\n }", "public Carrera() {\n initComponents();\n }", "public EqGUI() {\n initComponents();\n }", "public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }", "public nokno() {\n initComponents();\n }", "public dokter() {\n initComponents();\n }", "public ConverterGUI() {\n initComponents();\n }", "public hitungan() {\n initComponents();\n }", "public Modify() {\n initComponents();\n }", "public frmAddIncidencias() {\n initComponents();\n }", "public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }" ]
[ "0.73191476", "0.72906625", "0.72906625", "0.72906625", "0.72860986", "0.7248112", "0.7213479", "0.72078276", "0.7195841", "0.71899796", "0.71840525", "0.7158498", "0.71477973", "0.7092748", "0.70800966", "0.70558053", "0.69871384", "0.69773406", "0.69548076", "0.69533914", "0.6944929", "0.6942576", "0.69355655", "0.6931378", "0.6927896", "0.69248974", "0.6924723", "0.69116884", "0.6910487", "0.6892381", "0.68921053", "0.6890637", "0.68896896", "0.68881863", "0.68826133", "0.68815064", "0.6881078", "0.68771756", "0.6875212", "0.68744373", "0.68711984", "0.6858978", "0.68558776", "0.6855172", "0.6854685", "0.685434", "0.68525875", "0.6851834", "0.6851834", "0.684266", "0.6836586", "0.6836431", "0.6828333", "0.68276715", "0.68262815", "0.6823921", "0.682295", "0.68167603", "0.68164384", "0.6809564", "0.68086857", "0.6807804", "0.6807734", "0.68067646", "0.6802192", "0.67943805", "0.67934304", "0.6791657", "0.6789546", "0.6789006", "0.67878324", "0.67877173", "0.6781847", "0.6765398", "0.6765197", "0.6764246", "0.6756036", "0.6755023", "0.6751404", "0.67508715", "0.6743043", "0.67387456", "0.6736752", "0.67356426", "0.6732893", "0.6726715", "0.6726464", "0.67196447", "0.67157453", "0.6714399", "0.67140275", "0.6708251", "0.6707117", "0.670393", "0.6700697", "0.66995865", "0.66989213", "0.6697588", "0.66939527", "0.66908985", "0.668935" ]
0.0
-1
End of variables declaration//GENEND:variables
public void popularTabela() { try { RelatorioRN relatorioRN = new RelatorioRN(); ArrayList<PedidoVO> pedidos = relatorioRN.buscarPedidos(); javax.swing.table.DefaultTableModel dtm = (javax.swing.table.DefaultTableModel) tRelatorio.getModel(); dtm.fireTableDataChanged(); dtm.setRowCount(0); for (PedidoVO pedidoVO : pedidos) { String[] linha = {"" + pedidoVO.getIdpedido(), "" + pedidoVO.getData(), "" + pedidoVO.getCliente(), "" + pedidoVO.getValor()}; dtm.addRow(linha); } } catch (SQLException sqle) { JOptionPane.showMessageDialog(null, "Erro: " + sqle.getMessage(), "Bordas", JOptionPane.ERROR_MESSAGE); } catch (Exception e) { JOptionPane.showMessageDialog(null, "Erro: " + e.getMessage(), "Bordas", JOptionPane.ERROR_MESSAGE); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void lavar() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "public void mo38117a() {\n }", "@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}", "private void assignment() {\n\n\t\t\t}", "private void kk12() {\n\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "public void mo21779D() {\n }", "public final void mo51373a() {\n }", "protected boolean func_70041_e_() { return false; }", "public void mo4359a() {\n }", "public void mo21782G() {\n }", "private void m50366E() {\n }", "public void mo12930a() {\n }", "public void mo115190b() {\n }", "public void method_4270() {}", "public void mo1403c() {\n }", "public void mo3376r() {\n }", "public void mo3749d() {\n }", "public void mo21793R() {\n }", "protected boolean func_70814_o() { return true; }", "public void mo21787L() {\n }", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo21780E() {\n }", "public void mo21792Q() {\n }", "public void mo21791P() {\n }", "public void mo12628c() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void mo97908d() {\n }", "public void mo21878t() {\n }", "public void mo9848a() {\n }", "public void mo21825b() {\n }", "public void mo23813b() {\n }", "public void mo3370l() {\n }", "public void mo21879u() {\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void mo21785J() {\n }", "public void mo21795T() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void m23075a() {\n }", "public void mo21789N() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "public void mo21794S() {\n }", "public final void mo12688e_() {\n }", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "private Rekenhulp()\n\t{\n\t}", "public void mo6944a() {\n }", "public static void listing5_14() {\n }", "public void mo1405e() {\n }", "public final void mo91715d() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public void mo9137b() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public void func_70295_k_() {}", "void mo57277b();", "public void mo21877s() {\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void Tyre() {\n\t\t\r\n\t}", "void berechneFlaeche() {\n\t}", "public void mo115188a() {\n }", "public void mo21880v() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void mo21784I() {\n }", "private stendhal() {\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "public void mo56167c() {\n }", "public void mo44053a() {\n }", "public void mo21781F() {\n }", "public void mo2740a() {\n }", "public void mo21783H() {\n }", "public void mo1531a() {\n }", "double defendre();", "private zzfl$zzg$zzc() {\n void var3_1;\n void var2_-1;\n void var1_-1;\n this.value = var3_1;\n }", "public void stg() {\n\n\t}", "void m1864a() {\r\n }", "private void poetries() {\n\n\t}", "public void skystonePos4() {\n }", "public void mo2471e() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "private void yy() {\n\n\t}", "@Override\n\tpublic void verkaufen() {\n\t}", "@AnyLogicInternalCodegenAPI\n private void setupPlainVariables_Main_xjal() {\n }", "static void feladat4() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public void init() { \r\n\t\t// TODO Auto-generated method\r\n\t }", "public void furyo ()\t{\n }", "public void verliesLeven() {\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "protected void mo6255a() {\n }" ]
[ "0.6359434", "0.6280371", "0.61868024", "0.6094568", "0.60925734", "0.6071678", "0.6052686", "0.60522056", "0.6003249", "0.59887564", "0.59705925", "0.59680873", "0.5967989", "0.5965816", "0.5962006", "0.5942372", "0.5909877", "0.5896588", "0.5891321", "0.5882983", "0.58814824", "0.5854075", "0.5851759", "0.58514243", "0.58418584", "0.58395296", "0.5835063", "0.582234", "0.58090156", "0.5802706", "0.5793836", "0.57862717", "0.5784062", "0.5783567", "0.5782131", "0.57758564", "0.5762871", "0.5759349", "0.5745087", "0.57427835", "0.573309", "0.573309", "0.573309", "0.573309", "0.573309", "0.573309", "0.573309", "0.57326084", "0.57301426", "0.57266665", "0.57229686", "0.57175463", "0.5705802", "0.5698347", "0.5697827", "0.569054", "0.5689405", "0.5686434", "0.56738997", "0.5662217", "0.56531453", "0.5645255", "0.5644223", "0.5642628", "0.5642476", "0.5640595", "0.56317437", "0.56294966", "0.56289655", "0.56220204", "0.56180173", "0.56134313", "0.5611337", "0.56112075", "0.56058615", "0.5604383", "0.5602629", "0.56002104", "0.5591573", "0.55856615", "0.5576992", "0.55707216", "0.5569681", "0.55570376", "0.55531484", "0.5551123", "0.5550893", "0.55482954", "0.5547471", "0.55469507", "0.5545719", "0.5543553", "0.55424106", "0.5542057", "0.55410767", "0.5537739", "0.55269134", "0.55236584", "0.55170715", "0.55035424", "0.55020875" ]
0.0
-1
This class was generated by the JAXWS RI. JAXWS RI 2.2.11b150120.1832 Generated source version: 2.2
@WebService(name = "OrderPortType", targetNamespace = "http://www.ttu.ee/idu0075/2017/ws/restaurant2") @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) @XmlSeeAlso({ ObjectFactory.class }) public interface OrderPortType { /** * * @param parameter * @return * returns ee.ttu.idu0075._2017.ws.restaurant2.DishType */ @WebMethod @WebResult(name = "getDishResponse", targetNamespace = "http://www.ttu.ee/idu0075/2017/ws/restaurant2", partName = "parameter") public DishType getDish( @WebParam(name = "getDishRequest", targetNamespace = "http://www.ttu.ee/idu0075/2017/ws/restaurant2", partName = "parameter") GetDishRequest parameter); /** * * @param parameter * @return * returns ee.ttu.idu0075._2017.ws.restaurant2.DishType */ @WebMethod @WebResult(name = "addDishResponse", targetNamespace = "http://www.ttu.ee/idu0075/2017/ws/restaurant2", partName = "parameter") public DishType addDish( @WebParam(name = "addDishRequest", targetNamespace = "http://www.ttu.ee/idu0075/2017/ws/restaurant2", partName = "parameter") AddDishRequest parameter); /** * * @param parameter * @return * returns ee.ttu.idu0075._2017.ws.restaurant2.GetDishListResponse */ @WebMethod @WebResult(name = "getDishListResponse", targetNamespace = "http://www.ttu.ee/idu0075/2017/ws/restaurant2", partName = "parameter") public GetDishListResponse getDishList( @WebParam(name = "getDishListRequest", targetNamespace = "http://www.ttu.ee/idu0075/2017/ws/restaurant2", partName = "parameter") GetDishListRequest parameter); /** * * @param parameter * @return * returns ee.ttu.idu0075._2017.ws.restaurant2.OrderType */ @WebMethod @WebResult(name = "getOrderResponse", targetNamespace = "http://www.ttu.ee/idu0075/2017/ws/restaurant2", partName = "parameter") public OrderType getOrder( @WebParam(name = "getOrderRequest", targetNamespace = "http://www.ttu.ee/idu0075/2017/ws/restaurant2", partName = "parameter") GetOrderRequest parameter); /** * * @param parameter * @return * returns ee.ttu.idu0075._2017.ws.restaurant2.OrderType */ @WebMethod @WebResult(name = "addOrderResponse", targetNamespace = "http://www.ttu.ee/idu0075/2017/ws/restaurant2", partName = "parameter") public OrderType addOrder( @WebParam(name = "addOrderRequest", targetNamespace = "http://www.ttu.ee/idu0075/2017/ws/restaurant2", partName = "parameter") AddOrderRequest parameter); /** * * @param parameter * @return * returns ee.ttu.idu0075._2017.ws.restaurant2.GetOrderListResponse */ @WebMethod @WebResult(name = "getOrderListResponse", targetNamespace = "http://www.ttu.ee/idu0075/2017/ws/restaurant2", partName = "parameter") public GetOrderListResponse getOrderList( @WebParam(name = "getOrderListRequest", targetNamespace = "http://www.ttu.ee/idu0075/2017/ws/restaurant2", partName = "parameter") GetOrderListRequest parameter); /** * * @param parameter * @return * returns ee.ttu.idu0075._2017.ws.restaurant2.OrderDishListType */ @WebMethod @WebResult(name = "getOrderDishListResponse", targetNamespace = "http://www.ttu.ee/idu0075/2017/ws/restaurant2", partName = "parameter") public OrderDishListType getOrderDishList( @WebParam(name = "getOrderDishListRequest", targetNamespace = "http://www.ttu.ee/idu0075/2017/ws/restaurant2", partName = "parameter") GetOrderDishListRequest parameter); /** * * @param parameter * @return * returns ee.ttu.idu0075._2017.ws.restaurant2.OrderDishType */ @WebMethod @WebResult(name = "addOrderDishResponse", targetNamespace = "http://www.ttu.ee/idu0075/2017/ws/restaurant2", partName = "parameter") public OrderDishType addOrderDish( @WebParam(name = "addOrderDishRequest", targetNamespace = "http://www.ttu.ee/idu0075/2017/ws/restaurant2", partName = "parameter") AddOrderDishRequest parameter); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@WebService(name = \"ZWSVUR_UPDSTATUS\", targetNamespace = \"urn:sap-com:document:sap:rfc:functions\")\r\npublic interface ZWSVURUPDSTATUS {\r\n\r\n\r\n /**\r\n * \r\n * @param iNROLIQ\r\n * @param eRETURN\r\n * @param iESTADO\r\n * @param eMESSAGE\r\n */\r\n @WebMethod(operationName = \"ZPSCDFM_VUR_UPDSTATUS\")\r\n @RequestWrapper(localName = \"ZPSCDFM_VUR_UPDSTATUS\", targetNamespace = \"urn:sap-com:document:sap:rfc:functions\", className = \"co.com.realtech.mariner.model.ejb.ws.sap.mappers.vur_updstatus.ZPSCDFMVURUPDSTATUS\")\r\n @ResponseWrapper(localName = \"ZPSCDFM_VUR_UPDSTATUSResponse\", targetNamespace = \"urn:sap-com:document:sap:rfc:functions\", className = \"co.com.realtech.mariner.model.ejb.ws.sap.mappers.vur_updstatus.ZPSCDFMVURUPDSTATUSResponse\")\r\n public void zpscdfmVURUPDSTATUS(\r\n @WebParam(name = \"I_ESTADO\", targetNamespace = \"\")\r\n String iESTADO,\r\n @WebParam(name = \"I_NROLIQ\", targetNamespace = \"\")\r\n String iNROLIQ,\r\n @WebParam(name = \"E_MESSAGE\", targetNamespace = \"\", mode = WebParam.Mode.OUT)\r\n Holder<String> eMESSAGE,\r\n @WebParam(name = \"E_RETURN\", targetNamespace = \"\", mode = WebParam.Mode.OUT)\r\n Holder<Integer> eRETURN);\r\n\r\n}", "@WebService(name = \"ListSubscriptions\", targetNamespace = \"http://soap/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface ListSubscriptions {\n\n\n /**\n * \n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getList\", targetNamespace = \"http://soap/\", className = \"artifact_list.GetList\")\n @ResponseWrapper(localName = \"getListResponse\", targetNamespace = \"http://soap/\", className = \"artifact_list.GetListResponse\")\n public String getList();\n\n}", "@WebService(targetNamespace = \"http://xmlns.oracle.com/Interface/MDMTableConditionDataNew/MDMTableConditionDataNew\", name = \"MDMTableConditionDataNew\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface MDMTableConditionDataNew {\n\n @WebMethod(action = \"process\")\n @RequestWrapper(localName = \"process\", targetNamespace = \"http://xmlns.oracle.com/Interface/MDMTableConditionDataNew/MDMTableConditionDataNew\", className = \"com.microfar.Process\")\n @ResponseWrapper(localName = \"processResponse\", targetNamespace = \"http://xmlns.oracle.com/Interface/MDMTableConditionDataNew/MDMTableConditionDataNew\", className = \"com.microfar.ProcessResponse\")\n public void process(\n\n @WebParam(name = \"IN_SYS_NAME\", targetNamespace = \"http://xmlns.oracle.com/Interface/MDMTableConditionDataNew/MDMTableConditionDataNew\")\n String inSYSNAME,\n @WebParam(name = \"IN_MASTER_TYPE\", targetNamespace = \"http://xmlns.oracle.com/Interface/MDMTableConditionDataNew/MDMTableConditionDataNew\")\n String inMASTERTYPE,\n @WebParam(name = \"IN_TABLE_NAME\", targetNamespace = \"http://xmlns.oracle.com/Interface/MDMTableConditionDataNew/MDMTableConditionDataNew\")\n String inTABLENAME,\n @WebParam(name = \"IN_FIELDS_VALUE_TABLE\", targetNamespace = \"http://xmlns.oracle.com/Interface/MDMTableConditionDataNew/MDMTableConditionDataNew\")\n HAIERMDMFIELDSVALUETABLE inFIELDSVALUETABLE,\n @WebParam(mode = WebParam.Mode.OUT, name = \"OUT_RESULT\", targetNamespace = \"http://xmlns.oracle.com/Interface/MDMTableConditionDataNew/MDMTableConditionDataNew\")\n javax.xml.ws.Holder<String> outRESULT,\n @WebParam(mode = WebParam.Mode.OUT, name = \"OUT_RETMSG\", targetNamespace = \"http://xmlns.oracle.com/Interface/MDMTableConditionDataNew/MDMTableConditionDataNew\")\n javax.xml.ws.Holder<String> outRETMSG,\n @WebParam(mode = WebParam.Mode.OUT, name = \"OUT_RETCODE\", targetNamespace = \"http://xmlns.oracle.com/Interface/MDMTableConditionDataNew/MDMTableConditionDataNew\")\n javax.xml.ws.Holder<String> outRETCODE\n );\n}", "@WebService(name = \"AgendarReservasWS\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\")\npublic interface AgendarReservasWS {\n\n\n /**\n * \n * @param reserva\n * @return\n * returns uy.gub.imm.sae.common.factories.ws.client.agendar.Reserva\n * @throws ApplicationException_Exception\n * @throws AccesoMultipleException_Exception\n * @throws BusinessException_Exception\n * @throws ValidacionException_Exception\n * @throws ErrorValidacionException_Exception\n * @throws WarningValidacionCommitException_Exception\n * @throws WarningValidacionException_Exception\n * @throws ErrorValidacionCommitException_Exception\n * @throws UserException_Exception\n * @throws ValidacionClaveUnicaException_Exception\n * @throws ValidacionPorCampoException_Exception\n */\n @WebMethod\n @WebResult(name = \"confirmarReservaResult\", targetNamespace = \"\")\n @RequestWrapper(localName = \"confirmarReserva\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ConfirmarReserva\")\n @ResponseWrapper(localName = \"confirmarReservaResponse\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ConfirmarReservaResponse\")\n public Reserva confirmarReserva(\n @WebParam(name = \"reserva\", targetNamespace = \"\")\n Reserva reserva)\n throws AccesoMultipleException_Exception, ApplicationException_Exception, BusinessException_Exception, ErrorValidacionCommitException_Exception, ErrorValidacionException_Exception, UserException_Exception, ValidacionClaveUnicaException_Exception, ValidacionException_Exception, ValidacionPorCampoException_Exception\n ;\n\n// /**\n// * \n// * @param nombre\n// * @return\n// * returns uy.gub.imm.sae.common.factories.ws.client.agendar.Agenda\n// * @throws ApplicationException_Exception\n// * @throws BusinessException_Exception\n// */\n// @WebMethod\n// @WebResult(name = \"consultarAgendaPorNombreResult\", targetNamespace = \"\")\n// @RequestWrapper(localName = \"consultarAgendaPorNombre\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ConsultarAgendaPorNombre\")\n// @ResponseWrapper(localName = \"consultarAgendaPorNombreResponse\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ConsultarAgendaPorNombreResponse\")\n// public Agenda consultarAgendaPorNombre(\n// @WebParam(name = \"nombre\", targetNamespace = \"\")\n// String nombre)\n// throws ApplicationException_Exception, BusinessException_Exception\n// ;\n\n /**\n * \n * @param nombre\n * @return\n * returns uy.gub.imm.sae.common.factories.ws.client.agendar.Agenda\n * @throws ApplicationException_Exception\n * @throws BusinessException_Exception\n */\n @WebMethod\n @WebResult(name = \"consultarAgendaPorIdResult\", targetNamespace = \"\")\n @RequestWrapper(localName = \"consultarAgendaPorId\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ConsultarAgendaPorId\")\n @ResponseWrapper(localName = \"consultarAgendaPorIdResponse\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ConsultarAgendaPorIdResponse\")\n public Agenda consultarAgendaPorId(\n @WebParam(name = \"id\", targetNamespace = \"\")\n Integer id)\n throws ApplicationException_Exception, BusinessException_Exception\n ;\n \n /**\n * \n * @param agenda\n * @return\n * returns java.util.List<uy.gub.imm.sae.common.factories.ws.client.agendar.Recurso>\n * @throws ApplicationException_Exception\n * @throws BusinessException_Exception\n */\n @WebMethod\n @WebResult(name = \"consultarRecursosResult\", targetNamespace = \"\")\n @RequestWrapper(localName = \"consultarRecursos\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ConsultarRecursos\")\n @ResponseWrapper(localName = \"consultarRecursosResponse\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ConsultarRecursosResponse\")\n public List<Recurso> consultarRecursos(\n @WebParam(name = \"agenda\", targetNamespace = \"\")\n Agenda agenda)\n throws ApplicationException_Exception, BusinessException_Exception\n ;\n\n /**\n * \n * @param datos\n * @param recurso\n * @return\n * returns uy.gub.imm.sae.common.factories.ws.client.agendar.Reserva\n * @throws ApplicationException_Exception\n */\n @WebMethod\n @WebResult(name = \"consultarReservaPorDatosClaveResult\", targetNamespace = \"\")\n @RequestWrapper(localName = \"consultarReservaPorDatosClave\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ConsultarReservaPorDatosClave\")\n @ResponseWrapper(localName = \"consultarReservaPorDatosClaveResponse\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ConsultarReservaPorDatosClaveResponse\")\n public Reserva consultarReservaPorDatosClave(\n @WebParam(name = \"recurso\", targetNamespace = \"\")\n Recurso recurso,\n @WebParam(name = \"datos\", targetNamespace = \"\")\n HashMap<DatoASolicitar, DatoReserva> datos)\n throws ApplicationException_Exception\n ;\n\n /**\n * \n * @param reserva\n * @throws BusinessException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"desmarcarReserva\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.DesmarcarReserva\")\n @ResponseWrapper(localName = \"desmarcarReservaResponse\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.DesmarcarReservaResponse\")\n public void desmarcarReserva(\n @WebParam(name = \"reserva\", targetNamespace = \"\")\n Reserva reserva)\n throws BusinessException_Exception\n ;\n\n /**\n * \n * @param disponibilidad\n * @return\n * returns uy.gub.imm.sae.common.factories.ws.client.agendar.Reserva\n * @throws BusinessException_Exception\n * @throws UserException_Exception\n * @throws UserCommitException_Exception\n */\n @WebMethod\n @WebResult(name = \"marcarReservaDisponibleResult\", targetNamespace = \"\")\n @RequestWrapper(localName = \"marcarReservaDisponible\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.MarcarReservaDisponible\")\n @ResponseWrapper(localName = \"marcarReservaDisponibleResponse\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.MarcarReservaDisponibleResponse\")\n public Reserva marcarReservaDisponible(\n @WebParam(name = \"disponibilidad\", targetNamespace = \"\")\n Disponibilidad disponibilidad)\n throws BusinessException_Exception, UserException_Exception\n ;\n\n /**\n * \n * @param ventanaDeTiempo\n * @param recurso\n * @return\n * returns java.util.List<java.lang.Integer>\n * @throws BusinessException_Exception\n */\n @WebMethod\n @WebResult(name = \"obtenerCuposPorDiaResult\", targetNamespace = \"\")\n @RequestWrapper(localName = \"obtenerCuposPorDia\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ObtenerCuposPorDia\")\n @ResponseWrapper(localName = \"obtenerCuposPorDiaResponse\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ObtenerCuposPorDiaResponse\")\n public List<Integer> obtenerCuposPorDia(\n @WebParam(name = \"recurso\", targetNamespace = \"\")\n Recurso recurso,\n @WebParam(name = \"ventanaDeTiempo\", targetNamespace = \"\")\n VentanaDeTiempo ventanaDeTiempo,\n @WebParam(name = \"timezone\", targetNamespace = \"\")\n TimeZone timezone\n )\n throws BusinessException_Exception\n ;\n\n /**\n * \n * @param ventanaDeTiempo\n * @param recurso\n * @return\n * returns java.util.List<uy.gub.imm.sae.common.factories.ws.client.agendar.Disponibilidad>\n * @throws BusinessException_Exception\n */\n @WebMethod\n @WebResult(name = \"obtenerDisponibilidadesResult\", targetNamespace = \"\")\n @RequestWrapper(localName = \"obtenerDisponibilidades\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ObtenerDisponibilidades\")\n @ResponseWrapper(localName = \"obtenerDisponibilidadesResponse\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ObtenerDisponibilidadesResponse\")\n public List<Disponibilidad> obtenerDisponibilidades(\n @WebParam(name = \"recurso\", targetNamespace = \"\")\n Recurso recurso,\n @WebParam(name = \"ventanaDeTiempo\", targetNamespace = \"\")\n VentanaDeTiempo ventanaDeTiempo)\n throws BusinessException_Exception\n ;\n\n /**\n * \n * @param recurso\n * @return\n * returns uy.gub.imm.sae.common.factories.ws.client.agendar.VentanaDeTiempo\n * @throws BusinessException_Exception\n */\n @WebMethod\n @WebResult(name = \"obtenerVentanaCalendarioInternetResult\", targetNamespace = \"\")\n @RequestWrapper(localName = \"obtenerVentanaCalendarioInternet\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ObtenerVentanaCalendarioInternet\")\n @ResponseWrapper(localName = \"obtenerVentanaCalendarioInternetResponse\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ObtenerVentanaCalendarioInternetResponse\")\n public VentanaDeTiempo obtenerVentanaCalendarioInternet(\n @WebParam(name = \"recurso\", targetNamespace = \"\")\n Recurso recurso)\n throws BusinessException_Exception\n ;\n\n /**\n * \n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(name = \"pingResult\", targetNamespace = \"\")\n @RequestWrapper(localName = \"ping\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.Ping\")\n @ResponseWrapper(localName = \"pingResponse\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.PingResponse\")\n public String ping();\n\n}", "@WebService(targetNamespace = \"http://soap.sforce.com/2005/09/outbound\", name = \"NotificationPort\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface NotificationPort {\n\n /**\n * Process a number of notifications.\n */\n @WebResult(name = \"Ack\", targetNamespace = \"http://soap.sforce.com/2005/09/outbound\")\n @RequestWrapper(localName = \"notifications\", targetNamespace = \"http://soap.sforce.com/2005/09/outbound\", className = \"com.barryku.cloud.cxf.Notifications\")\n @WebMethod\n @ResponseWrapper(localName = \"notificationsResponse\", targetNamespace = \"http://soap.sforce.com/2005/09/outbound\", className = \"com.barryku.cloud.cxf.NotificationsResponse\")\n public boolean notifications(\n @WebParam(name = \"OrganizationId\", targetNamespace = \"http://soap.sforce.com/2005/09/outbound\")\n java.lang.String organizationId,\n @WebParam(name = \"ActionId\", targetNamespace = \"http://soap.sforce.com/2005/09/outbound\")\n java.lang.String actionId,\n @WebParam(name = \"SessionId\", targetNamespace = \"http://soap.sforce.com/2005/09/outbound\")\n java.lang.String sessionId,\n @WebParam(name = \"EnterpriseUrl\", targetNamespace = \"http://soap.sforce.com/2005/09/outbound\")\n java.lang.String enterpriseUrl,\n @WebParam(name = \"PartnerUrl\", targetNamespace = \"http://soap.sforce.com/2005/09/outbound\")\n java.lang.String partnerUrl,\n @WebParam(name = \"Notification\", targetNamespace = \"http://soap.sforce.com/2005/09/outbound\")\n java.util.List<com.barryku.cloud.cxf.BookCNotification> notification\n );\n}", "@WebService(name = \"CustomerSoapType\", targetNamespace = \"http://test.co.id/ws/customer/\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface CustomerSoapType {\n\n\n /**\n * Request All Customer\n * \n * @return\n * returns id.co.bca.ws.mbs.soap.customer.ListOfCustomerType\n */\n @WebMethod(operationName = \"GetAllCustomer\")\n @WebResult(name = \"GetAllCustomerResponse\", targetNamespace = \"http://test.co.id/ws/customer/\", partName = \"parameters\")\n public ListOfCustomerType getAllCustomer();\n\n /**\n * Insert Customer\n * \n * @param parameters\n * @return\n * returns java.lang.String\n */\n @WebMethod(operationName = \"InsertCustomer\")\n @WebResult(name = \"InsertCustomerResponse\", targetNamespace = \"http://test.co.id/ws/customer/\", partName = \"parameters\")\n public String insertCustomer(\n @WebParam(name = \"InsertCustomer\", targetNamespace = \"http://test.co.id/ws/customer/\", partName = \"parameters\")\n CustomerType parameters);\n\n}", "@WebService(targetNamespace = \"urn:sap-com:document:sap:rfc:functions\", name = \"ZSDRFC_AMC_CONTRACT_VALIDATION\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface ZSDRFCAMCCONTRACTVALIDATION {\n\n @WebMethod(operationName = \"ZSDRFC_AMC_CONTRACT_VALIDATION\", action = \"urn:sap-com:document:sap:rfc:functions:ZSDRFC_AMC_CONTRACT_VALIDATION:ZSDRFC_AMC_CONTRACT_VALIDATIONRequest\")\n @RequestWrapper(localName = \"ZSDRFC_AMC_CONTRACT_VALIDATION\", targetNamespace = \"urn:sap-com:document:sap:rfc:functions\", className = \"com.sap.document.sap.rfc.functions.ZSDRFCAMCCONTRACTVALIDATION_Type\")\n @ResponseWrapper(localName = \"ZSDRFC_AMC_CONTRACT_VALIDATIONResponse\", targetNamespace = \"urn:sap-com:document:sap:rfc:functions\", className = \"com.sap.document.sap.rfc.functions.ZSDRFCAMCCONTRACTVALIDATIONResponse\")\n public void zsdrfcAMCCONTRACTVALIDATION(\n @WebParam(name = \"CHASSIS_NO\", targetNamespace = \"\")\n java.lang.String chassisNO,\n @WebParam(name = \"CHASSIS_PL\", targetNamespace = \"\")\n java.lang.String chassisPL,\n @WebParam(name = \"CONTRACT_NO\", targetNamespace = \"\")\n java.lang.String contractNO,\n @WebParam(name = \"CRM_SALE_DATE\", targetNamespace = \"\")\n java.lang.String crmSALEDATE,\n @WebParam(mode = WebParam.Mode.INOUT, name = \"IT_AMC\", targetNamespace = \"\")\n javax.xml.ws.Holder<TABLEOFZSDAMCLINEITEM> itAMC,\n @WebParam(name = \"KMS\", targetNamespace = \"\")\n int kms,\n @WebParam(mode = WebParam.Mode.OUT, name = \"REMARKS\", targetNamespace = \"\")\n javax.xml.ws.Holder<java.lang.String> remarks\n );\n}", "@WebService(name = \"memberWs\", targetNamespace = \"http://webservice.cereme.org/\")\r\n@XmlSeeAlso({\r\n ObjectFactory.class\r\n})\r\npublic interface MemberWs {\r\n\r\n\r\n /**\r\n * \r\n */\r\n @WebMethod\r\n @RequestWrapper(localName = \"init\", targetNamespace = \"http://webservice.cereme.org/\", className = \"org.cereme.digital.library.clientws.Init\")\r\n @ResponseWrapper(localName = \"initResponse\", targetNamespace = \"http://webservice.cereme.org/\", className = \"org.cereme.digital.library.clientws.InitResponse\")\r\n public void init();\r\n\r\n /**\r\n * \r\n * @return\r\n * returns java.util.List<org.cereme.digital.library.clientws.Member>\r\n */\r\n @WebMethod\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"findAll\", targetNamespace = \"http://webservice.cereme.org/\", className = \"org.cereme.digital.library.clientws.FindAll\")\r\n @ResponseWrapper(localName = \"findAllResponse\", targetNamespace = \"http://webservice.cereme.org/\", className = \"org.cereme.digital.library.clientws.FindAllResponse\")\r\n public List<Member> findAll();\r\n\r\n /**\r\n * \r\n * @param arg0\r\n * @return\r\n * returns org.cereme.digital.library.clientws.Member\r\n */\r\n @WebMethod\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"findByUsername\", targetNamespace = \"http://webservice.cereme.org/\", className = \"org.cereme.digital.library.clientws.FindByUsername\")\r\n @ResponseWrapper(localName = \"findByUsernameResponse\", targetNamespace = \"http://webservice.cereme.org/\", className = \"org.cereme.digital.library.clientws.FindByUsernameResponse\")\r\n public Member findByUsername(\r\n @WebParam(name = \"arg0\", targetNamespace = \"\")\r\n String arg0);\r\n\r\n /**\r\n * \r\n * @param arg0\r\n * @return\r\n * returns java.lang.String\r\n */\r\n @WebMethod\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"updateMember\", targetNamespace = \"http://webservice.cereme.org/\", className = \"org.cereme.digital.library.clientws.UpdateMember\")\r\n @ResponseWrapper(localName = \"updateMemberResponse\", targetNamespace = \"http://webservice.cereme.org/\", className = \"org.cereme.digital.library.clientws.UpdateMemberResponse\")\r\n public String updateMember(\r\n @WebParam(name = \"arg0\", targetNamespace = \"\")\r\n Member arg0);\r\n\r\n /**\r\n * \r\n * @param arg1\r\n * @param arg0\r\n * @return\r\n * returns boolean\r\n */\r\n @WebMethod\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"isValidUser\", targetNamespace = \"http://webservice.cereme.org/\", className = \"org.cereme.digital.library.clientws.IsValidUser\")\r\n @ResponseWrapper(localName = \"isValidUserResponse\", targetNamespace = \"http://webservice.cereme.org/\", className = \"org.cereme.digital.library.clientws.IsValidUserResponse\")\r\n public boolean isValidUser(\r\n @WebParam(name = \"arg0\", targetNamespace = \"\")\r\n String arg0,\r\n @WebParam(name = \"arg1\", targetNamespace = \"\")\r\n String arg1);\r\n\r\n}", "@WebService(targetNamespace = \"http://endpoint.apachecxf.soap.demo.uwefuchs.com/\", name = \"Baeldung\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface Baeldung {\n\n @WebMethod\n @RequestWrapper(localName = \"helloStudent\", targetNamespace = \"http://endpoint.apachecxf.soap.demo.uwefuchs.com/\", className = \"com.uwefuchs.demo.soap.apachecxf.endpoint.HelloStudent\")\n @ResponseWrapper(localName = \"helloStudentResponse\", targetNamespace = \"http://endpoint.apachecxf.soap.demo.uwefuchs.com/\", className = \"com.uwefuchs.demo.soap.apachecxf.endpoint.HelloStudentResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public java.lang.String helloStudent(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n com.uwefuchs.demo.soap.apachecxf.endpoint.Student arg0\n );\n\n @WebMethod\n @RequestWrapper(localName = \"hello\", targetNamespace = \"http://endpoint.apachecxf.soap.demo.uwefuchs.com/\", className = \"com.uwefuchs.demo.soap.apachecxf.endpoint.Hello\")\n @ResponseWrapper(localName = \"helloResponse\", targetNamespace = \"http://endpoint.apachecxf.soap.demo.uwefuchs.com/\", className = \"com.uwefuchs.demo.soap.apachecxf.endpoint.HelloResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public java.lang.String hello(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n java.lang.String arg0\n );\n\n @WebMethod\n @RequestWrapper(localName = \"getStudents\", targetNamespace = \"http://endpoint.apachecxf.soap.demo.uwefuchs.com/\", className = \"com.uwefuchs.demo.soap.apachecxf.endpoint.GetStudents\")\n @ResponseWrapper(localName = \"getStudentsResponse\", targetNamespace = \"http://endpoint.apachecxf.soap.demo.uwefuchs.com/\", className = \"com.uwefuchs.demo.soap.apachecxf.endpoint.GetStudentsResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public com.uwefuchs.demo.soap.apachecxf.endpoint.StudentMap getStudents();\n}", "@WebService(targetNamespace = \"http://esb.z-t-z.ru/Integration/SAP\", name = \"TestJaxWs\")\n@XmlSeeAlso({ObjectFactory.class})\n//@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.WRAPPED)\n@SOAPBinding(style = SOAPBinding.Style.DOCUMENT, use = SOAPBinding.Use.LITERAL, parameterStyle = SOAPBinding.ParameterStyle.WRAPPED) //28.12.2018 forum advice\npublic interface TestJaxWs {\n\n @WebMethod(operationName = \"jaxWsTest1\", action = \"http://sap.com/xi/WebService/soap1.1\")\n @RequestWrapper(localName = \"jaxWsTest1\", targetNamespace = \"http://esb.z-t-z.ru/Integration/SAP\", className = \"com.example.sample.JaxWsTest1\")\n @ResponseWrapper(localName = \"jaxWsTest1Response\", targetNamespace = \"http://esb.z-t-z.ru/Integration/SAP\", className = \"com.example.sample.JaxWsTest1Response\")\n //@WebResult(name = \"return\", targetNamespace = \"\")\n public java.lang.String jaxWsTest1(\n @WebParam(name = \"information\", targetNamespace = \"\")\n java.lang.String information,\n @WebParam(name = \"count\", targetNamespace = \"\")\n int count\n //@WebParam(name=\"jaxWsTest1\", targetNamespace = \"\")\n //JaxWsTest1 jaxWsTest1\n ) throws UserDefinedException;\n}", "@WebService(name = \"zperson_communic\", targetNamespace = \"urn:sap-com:document:sap:soap:functions:mc-style\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface ZpersonCommunic {\n\n\n /**\n * \n * @param employeeId\n * @param lastnameM\n * @param fstnameM\n * @param telAts\n * @param orgtxt\n * @param job\n * @param orgUnit\n * @param jobtxt\n * @param checkCommunities\n * @param outTab\n * @return\n * returns test.Bapireturn\n */\n @WebMethod(operationName = \"ZPersonalSearch\")\n @WebResult(name = \"Return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"ZPersonalSearch\", targetNamespace = \"urn:sap-com:document:sap:soap:functions:mc-style\", className = \"test.ZPersonalSearch\")\n @ResponseWrapper(localName = \"ZPersonalSearchResponse\", targetNamespace = \"urn:sap-com:document:sap:soap:functions:mc-style\", className = \"test.ZPersonalSearchResponse\")\n public Bapireturn zPersonalSearch(\n @WebParam(name = \"CheckCommunities\", targetNamespace = \"\")\n String checkCommunities,\n @WebParam(name = \"EmployeeId\", targetNamespace = \"\")\n String employeeId,\n @WebParam(name = \"FstnameM\", targetNamespace = \"\")\n String fstnameM,\n @WebParam(name = \"Job\", targetNamespace = \"\")\n String job,\n @WebParam(name = \"Jobtxt\", targetNamespace = \"\")\n String jobtxt,\n @WebParam(name = \"LastnameM\", targetNamespace = \"\")\n String lastnameM,\n @WebParam(name = \"OrgUnit\", targetNamespace = \"\")\n String orgUnit,\n @WebParam(name = \"Orgtxt\", targetNamespace = \"\")\n String orgtxt,\n @WebParam(name = \"OutTab\", targetNamespace = \"\", mode = WebParam.Mode.INOUT)\n Holder<TableOfZpernComm> outTab,\n @WebParam(name = \"TelAts\", targetNamespace = \"\")\n String telAts);\n\n}", "@WebService(name = \"ZBC_EVENT_RAISE_WEB\", targetNamespace = \"urn:sap-com:document:sap:rfc:functions\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface ZBCEVENTRAISEWEB {\n\n\n /**\n * \n * @param eventparm\n * @param eventid\n * @param targetINSTANCE\n * @return\n * returns java.lang.String\n * @throws ZBCEVENTRAISEException\n */\n @WebMethod(operationName = \"ZBC_EVENT_RAISE\", action = \"urn:sap-com:document:sap:rfc:functions:ZBC_EVENT_RAISE_WEB:ZBC_EVENT_RAISERequest\")\n @WebResult(name = \"EV_SUCCESS\", targetNamespace = \"\")\n @RequestWrapper(localName = \"ZBC_EVENT_RAISE\", targetNamespace = \"urn:sap-com:document:sap:rfc:functions\", className = \"com.sap.document.sap.rfc.functions.ZBCEVENTRAISE\")\n @ResponseWrapper(localName = \"ZBC_EVENT_RAISEResponse\", targetNamespace = \"urn:sap-com:document:sap:rfc:functions\", className = \"com.sap.document.sap.rfc.functions.ZBCEVENTRAISEResponse\")\n public String zbcEVENTRAISE(\n @WebParam(name = \"EVENTID\", targetNamespace = \"\")\n String eventid,\n @WebParam(name = \"EVENTPARM\", targetNamespace = \"\")\n String eventparm,\n @WebParam(name = \"TARGET_INSTANCE\", targetNamespace = \"\")\n String targetINSTANCE)\n throws ZBCEVENTRAISEException\n ;\n\n}", "@WebService(name = \"HelloWS\", targetNamespace = \"http://ws.proxy.devwithimagination.com/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface HelloWS {\n\n\n /**\n * \n * @param arg0\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getHello\", targetNamespace = \"http://ws.proxy.devwithimagination.com/\", className = \"com.devwithimagination.proxy.ws.one.GetHello\")\n @ResponseWrapper(localName = \"getHelloResponse\", targetNamespace = \"http://ws.proxy.devwithimagination.com/\", className = \"com.devwithimagination.proxy.ws.one.GetHelloResponse\")\n @Action(input = \"http://ws.proxy.devwithimagination.com/HelloWS/getHelloRequest\", output = \"http://ws.proxy.devwithimagination.com/HelloWS/getHelloResponse\")\n public String getHello(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0);\n\n /**\n * \n * @param arg0\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getHelloWithAuth\", targetNamespace = \"http://ws.proxy.devwithimagination.com/\", className = \"com.devwithimagination.proxy.ws.one.GetHelloWithAuth\")\n @ResponseWrapper(localName = \"getHelloWithAuthResponse\", targetNamespace = \"http://ws.proxy.devwithimagination.com/\", className = \"com.devwithimagination.proxy.ws.one.GetHelloWithAuthResponse\")\n @Action(input = \"http://ws.proxy.devwithimagination.com/HelloWS/getHelloWithAuthRequest\", output = \"http://ws.proxy.devwithimagination.com/HelloWS/getHelloWithAuthResponse\")\n public String getHelloWithAuth(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0);\n\n}", "@WebService(targetNamespace = \"http://www.z2systems.com/schemas/neonws/\", name = \"MembershipService\")\n@XmlSeeAlso({com.z2systems.schemas.membership.ObjectFactory.class, com.z2systems.schemas.common.ObjectFactory.class, com.z2systems.schemas.account.ObjectFactory.class, com.z2systems.schemas.donation.ObjectFactory.class, com.z2systems.schemas.store.ObjectFactory.class, ObjectFactory.class, com.z2systems.schemas.event.ObjectFactory.class})\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\npublic interface MembershipService {\n\n @WebResult(name = \"listMembershipsResponse\", targetNamespace = \"http://www.z2systems.com/schemas/neonws/\", partName = \"response\")\n @WebMethod\n public com.z2systems.schemas.membership.ListMembershipsResponse listMemberships(\n @WebParam(partName = \"request\", name = \"listMembershipsRequest\", targetNamespace = \"http://www.z2systems.com/schemas/neonws/\")\n com.z2systems.schemas.membership.ListMembershipsRequest request\n );\n\n @WebResult(name = \"retrieveMembershipStatsResponse\", targetNamespace = \"http://www.z2systems.com/schemas/neonws/\", partName = \"response\")\n @WebMethod\n public com.z2systems.schemas.membership.RetrieveMembershipStatsResponse retrieveMembershipStats(\n @WebParam(partName = \"request\", name = \"retrieveMembershipStatsRequest\", targetNamespace = \"http://www.z2systems.com/schemas/neonws/\")\n com.z2systems.schemas.membership.RetrieveMembershipStatsRequest request\n );\n\n @WebResult(name = \"listMembershipHistoryResponse\", targetNamespace = \"http://www.z2systems.com/schemas/neonws/\", partName = \"response\")\n @WebMethod\n public com.z2systems.schemas.membership.ListMembershipHistoryResponse listMembershipHistory(\n @WebParam(partName = \"request\", name = \"listMembershipHistoryRequest\", targetNamespace = \"http://www.z2systems.com/schemas/neonws/\")\n com.z2systems.schemas.membership.ListMembershipHistoryRequest request\n );\n\n @WebResult(name = \"listMembershipTermsResponse\", targetNamespace = \"http://www.z2systems.com/schemas/neonws/\", partName = \"response\")\n @WebMethod\n public com.z2systems.schemas.membership.ListMembershipTermsResponse listMembershipTerms(\n @WebParam(partName = \"request\", name = \"listMembershipTermsRequest\", targetNamespace = \"http://www.z2systems.com/schemas/neonws/\")\n com.z2systems.schemas.membership.ListMembershipTermsRequest request\n );\n\n @WebResult(name = \"addMembershipToAccountResponse\", targetNamespace = \"http://www.z2systems.com/schemas/neonws/\", partName = \"response\")\n @WebMethod\n public com.z2systems.schemas.membership.AddMembershipToAccountResponse addMembershipToAccount(\n @WebParam(partName = \"request\", name = \"addMembershipToAccountRequest\", targetNamespace = \"http://www.z2systems.com/schemas/neonws/\")\n com.z2systems.schemas.membership.AddMembershipToAccountRequest request\n );\n}", "@WebService(name = \"DocumentValidationSchemaService\", targetNamespace = \"http://schema.validation.doc.jaxws.invoice.samples.integ.softfly.pl/\")\n@XmlSeeAlso({\n pl.softfly.integ.doc.entity.ObjectFactory.class,\n pl.softfly.integ.endpoint.entity.ObjectFactory.class,\n pl.softfly.integ.entity.ObjectFactory.class,\n pl.softfly.integ.samples.invoice.jaxws.doc.validation.schema.ObjectFactory.class,\n pl.softfly.integ.shipment.entity.ObjectFactory.class\n})\npublic interface DocumentValidationSchemaService {\n\n\n /**\n * @param arg0\n * @return returns pl.softfly.integ.doc.entity.DocumentHeader\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"validate\", targetNamespace = \"http://schema.validation.doc.jaxws.invoice.samples.integ.softfly.pl/\", className = \"pl.softfly.integ.samples.invoice.jaxws.doc.validation.schema.Validate\")\n @ResponseWrapper(localName = \"validateResponse\", targetNamespace = \"http://schema.validation.doc.jaxws.invoice.samples.integ.softfly.pl/\", className = \"pl.softfly.integ.samples.invoice.jaxws.doc.validation.schema.ValidateResponse\")\n public DocumentHeader validate(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n DocumentHeader arg0);\n\n}", "@WebService(name = \"RPCLitSWA\", targetNamespace = \"http://org/apache/axis2/jaxws/proxy/rpclitswa\", wsdlLocation = \"RPCLitSWA.wsdl\")\r\n@SOAPBinding(style = Style.RPC)\r\npublic interface RPCLitSWA {\r\n\r\n\r\n /**\r\n * \r\n * @param request\r\n * @param dummyAttachmentINOUT\r\n * @param dummyAttachmentOUT\r\n * @param response\r\n * @param dummyAttachmentIN\r\n */\r\n @WebMethod\r\n public void echo(\r\n @WebParam(name = \"request\", partName = \"request\")\r\n String request,\r\n @WebParam(name = \"dummyAttachmentIN\", partName = \"dummyAttachmentIN\")\r\n String dummyAttachmentIN,\r\n @WebParam(name = \"dummyAttachmentINOUT\", mode = Mode.INOUT, partName = \"dummyAttachmentINOUT\")\r\n Holder<DataHandler> dummyAttachmentINOUT,\r\n @WebParam(name = \"response\", mode = Mode.OUT, partName = \"response\")\r\n Holder<String> response,\r\n @WebParam(name = \"dummyAttachmentOUT\", mode = Mode.OUT, partName = \"dummyAttachmentOUT\")\r\n Holder<String> dummyAttachmentOUT);\r\n\r\n}", "@WebService(targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/requester\", name = \"ConnectionRequesterPort\")\n@XmlSeeAlso({net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.ObjectFactory.class, net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.ObjectFactory.class, net.es.nsi.lib.soap.gen.saml.assertion.ObjectFactory.class, net.es.nsi.lib.soap.gen.xmlenc.ObjectFactory.class, net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.types.ObjectFactory.class, net.es.nsi.lib.soap.gen.xmldsig.ObjectFactory.class})\npublic interface ConnectionRequesterPort {\n\n /**\n * This reserveFailed message is sent from a Provider NSA to\n * Requester NSA as an indication of a reserve failure. This\n * is in response to an original reserve request from the\n * associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/reserveFailed\")\n @RequestWrapper(localName = \"reserveFailed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericFailedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void reserveFailed(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"connectionStates\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.ConnectionStatesType connectionStates,\n @WebParam(name = \"serviceException\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.types.ServiceExceptionType serviceException,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This querySummaryConfirmed message is sent from the target NSA to\n * requesting NSA as an indication of a successful querySummary\n * operation. This is in response to an original querySummary request\n * from the associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/querySummaryConfirmed\")\n @RequestWrapper(localName = \"querySummaryConfirmed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.QuerySummaryConfirmedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void querySummaryConfirmed(\n @WebParam(name = \"reservation\", targetNamespace = \"\")\n java.util.List<net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.QuerySummaryResultType> reservation,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This provisionConfirmed message is sent from a Provider NSA to\n * Requester NSA as an indication of a successful provision operation.\n * This is in response to an original provision request from the\n * associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/provisionConfirmed\")\n @RequestWrapper(localName = \"provisionConfirmed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericConfirmedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void provisionConfirmed(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * The error message is sent from a Provider NSA to Requester\n * NSA as an indication of the occurence of an error condition.\n * This is in response to an original request from the associated\n * Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/error\")\n @RequestWrapper(localName = \"error\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericErrorType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void error(\n @WebParam(name = \"serviceException\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.types.ServiceExceptionType serviceException,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This terminateConfirmed message is sent from a Provider NSA to\n * Requester NSA as an indication of a successful terminate operation.\n * This is in response to an original terminate request from the\n * associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/terminateConfirmed\")\n @RequestWrapper(localName = \"terminateConfirmed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericConfirmedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void terminateConfirmed(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This releaseConfirmed message is sent from a Provider NSA to\n * Requester NSA as an indication of a successful release operation.\n * This is in response to an original release request from the\n * associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/releaseConfirmed\")\n @RequestWrapper(localName = \"releaseConfirmed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericConfirmedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void releaseConfirmed(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * An autonomous error message issued from a Provider NSA to Requester\n * NSA. The acknowledgment indicates that the Requester NSA has\n * accepted the notification request for processing. There are no\n * associated confirmed or failed messages.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/errorEvent\")\n @RequestWrapper(localName = \"errorEvent\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.ErrorEventType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void errorEvent(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"notificationId\", targetNamespace = \"\")\n long notificationId,\n @WebParam(name = \"timeStamp\", targetNamespace = \"\")\n javax.xml.datatype.XMLGregorianCalendar timeStamp,\n @WebParam(name = \"event\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.EventEnumType event,\n @WebParam(name = \"originatingConnectionId\", targetNamespace = \"\")\n java.lang.String originatingConnectionId,\n @WebParam(name = \"originatingNSA\", targetNamespace = \"\")\n java.lang.String originatingNSA,\n @WebParam(name = \"additionalInfo\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.types.TypeValuePairListType additionalInfo,\n @WebParam(name = \"serviceException\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.types.ServiceExceptionType serviceException,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * An autonomous message issued from a Provider NSA to Requester\n * NSA. The acknowledgment indicates that the Requester NSA has\n * accepted the notification request for processing. There are no\n * associated confirmed or failed messages.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/dataPlaneStateChange\")\n @RequestWrapper(localName = \"dataPlaneStateChange\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.DataPlaneStateChangeRequestType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void dataPlaneStateChange(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"notificationId\", targetNamespace = \"\")\n long notificationId,\n @WebParam(name = \"timeStamp\", targetNamespace = \"\")\n javax.xml.datatype.XMLGregorianCalendar timeStamp,\n @WebParam(name = \"dataPlaneStatus\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.DataPlaneStatusType dataPlaneStatus,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This reserveAbortConfirmed message is sent from a Provider NSA to\n * Requester NSA as an indication of a successful reserveAbort.\n * This is in response to an original reserveAbort request from the\n * associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/reserveAbortConfirmed\")\n @RequestWrapper(localName = \"reserveAbortConfirmed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericConfirmedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void reserveAbortConfirmed(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * An autonomous message issued from a Provider NSA to Requester\n * NSA. The acknowledgment indicates that the Requester NSA has\n * accepted the notification request for processing. There are no\n * associated confirmed or failed messages.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/messageDeliveryTimeout\")\n @RequestWrapper(localName = \"messageDeliveryTimeout\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.MessageDeliveryTimeoutRequestType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void messageDeliveryTimeout(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"notificationId\", targetNamespace = \"\")\n long notificationId,\n @WebParam(name = \"timeStamp\", targetNamespace = \"\")\n javax.xml.datatype.XMLGregorianCalendar timeStamp,\n @WebParam(name = \"correlationId\", targetNamespace = \"\")\n java.lang.String correlationId,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This reserveCommitFailed message is sent from a Provider NSA to\n * Requester NSA as an indication of a modify failure. This\n * is in response to an original modify request from the\n * associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/reserveCommitFailed\")\n @RequestWrapper(localName = \"reserveCommitFailed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericFailedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void reserveCommitFailed(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"connectionStates\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.ConnectionStatesType connectionStates,\n @WebParam(name = \"serviceException\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.types.ServiceExceptionType serviceException,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This queryNotificationConfirmed message is sent from the Provider NSA to\n * Requester NSA as an indication of a successful queryNotification\n * operation. This is in response to an original queryNotification request\n * from the associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/queryNotificationConfirmed\")\n @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n @WebResult(name = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", partName = \"acknowledgment\")\n public net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType queryNotificationConfirmed(\n @WebParam(partName = \"queryNotificationConfirmed\", name = \"queryNotificationConfirmed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.QueryNotificationConfirmedType queryNotificationConfirmed,\n @WebParam(partName = \"header\", mode = WebParam.Mode.INOUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This queryResultConfirmed message is sent from the Provider NSA to\n * Requester NSA as an indication of a successful queryResult operation.\n * This is in response to an original queryResult request from the\n * associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/queryResultConfirmed\")\n @RequestWrapper(localName = \"queryResultConfirmed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.QueryResultConfirmedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void queryResultConfirmed(\n @WebParam(name = \"result\", targetNamespace = \"\")\n java.util.List<net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.QueryResultResponseType> result,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This reserveCommitConfirmed message is sent from a Provider NSA to\n * Requester NSA as an indication of a successful reserveCommit request.\n * This is in response to an original reserveCommit request from the\n * associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/reserveCommitConfirmed\")\n @RequestWrapper(localName = \"reserveCommitConfirmed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericConfirmedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void reserveCommitConfirmed(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * An autonomous message issued from a Provider NSA to Requester\n * NSA. The acknowledgment indicates that the Requester NSA has\n * accepted the notification request for processing. There are no\n * associated confirmed or failed messages.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/reserveTimeout\")\n @RequestWrapper(localName = \"reserveTimeout\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.ReserveTimeoutRequestType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void reserveTimeout(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"notificationId\", targetNamespace = \"\")\n long notificationId,\n @WebParam(name = \"timeStamp\", targetNamespace = \"\")\n javax.xml.datatype.XMLGregorianCalendar timeStamp,\n @WebParam(name = \"timeoutValue\", targetNamespace = \"\")\n int timeoutValue,\n @WebParam(name = \"originatingConnectionId\", targetNamespace = \"\")\n java.lang.String originatingConnectionId,\n @WebParam(name = \"originatingNSA\", targetNamespace = \"\")\n java.lang.String originatingNSA,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This reserveConfirmed message is sent from a Provider NSA to\n * Requester NSA as an indication of a successful reservation. This\n * is in response to an original reserve request from the\n * associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/reserveConfirmed\")\n @RequestWrapper(localName = \"reserveConfirmed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.ReserveConfirmedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void reserveConfirmed(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"globalReservationId\", targetNamespace = \"\")\n java.lang.String globalReservationId,\n @WebParam(name = \"description\", targetNamespace = \"\")\n java.lang.String description,\n @WebParam(name = \"criteria\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.ReservationConfirmCriteriaType criteria,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This queryRecursiveConfirmed message is sent from the Provider NSA to\n * Requester NSA as an indication of a successful queryRecursive\n * operation. This is in response to an original queryRecursive request\n * from the associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/queryRecursiveConfirmed\")\n @RequestWrapper(localName = \"queryRecursiveConfirmed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.QueryRecursiveConfirmedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void queryRecursiveConfirmed(\n @WebParam(name = \"reservation\", targetNamespace = \"\")\n java.util.List<net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.QueryRecursiveResultType> reservation,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n}", "@WebService(name = \"SendMTPortType\", targetNamespace = \"http://sms.neo\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface SendMTPortType {\n\n\n /**\n * \n * @param rtype\n * @param timeend\n * @param password\n * @param receiver\n * @param repeat\n * @param brandname\n * @param timestart\n * @param loaisp\n * @param content\n * @param timesend\n * @param username\n * @param target\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"urn:sendMessage\")\n @WebResult(targetNamespace = \"http://sms.neo\")\n @RequestWrapper(localName = \"sendMessage\", targetNamespace = \"http://sms.neo\", className = \"neo.sms.SendMessage\")\n @ResponseWrapper(localName = \"sendMessageResponse\", targetNamespace = \"http://sms.neo\", className = \"neo.sms.SendMessageResponse\")\n public String sendMessage(\n @WebParam(name = \"username\", targetNamespace = \"http://sms.neo\")\n String username,\n @WebParam(name = \"password\", targetNamespace = \"http://sms.neo\")\n String password,\n @WebParam(name = \"receiver\", targetNamespace = \"http://sms.neo\")\n String receiver,\n @WebParam(name = \"content\", targetNamespace = \"http://sms.neo\")\n String content,\n @WebParam(name = \"repeat\", targetNamespace = \"http://sms.neo\")\n Integer repeat,\n @WebParam(name = \"rtype\", targetNamespace = \"http://sms.neo\")\n Integer rtype,\n @WebParam(name = \"loaisp\", targetNamespace = \"http://sms.neo\")\n Integer loaisp,\n @WebParam(name = \"brandname\", targetNamespace = \"http://sms.neo\")\n String brandname,\n @WebParam(name = \"timestart\", targetNamespace = \"http://sms.neo\")\n String timestart,\n @WebParam(name = \"timeend\", targetNamespace = \"http://sms.neo\")\n String timeend,\n @WebParam(name = \"timesend\", targetNamespace = \"http://sms.neo\")\n String timesend,\n @WebParam(name = \"target\", targetNamespace = \"http://sms.neo\")\n String target);\n\n /**\n * \n * @param password\n * @param receiver\n * @param content\n * @param username\n * @param target\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"urn:sendFromServiceNumber\")\n @WebResult(targetNamespace = \"http://sms.neo\")\n @RequestWrapper(localName = \"sendFromServiceNumber\", targetNamespace = \"http://sms.neo\", className = \"neo.sms.SendFromServiceNumber\")\n @ResponseWrapper(localName = \"sendFromServiceNumberResponse\", targetNamespace = \"http://sms.neo\", className = \"neo.sms.SendFromServiceNumberResponse\")\n public String sendFromServiceNumber(\n @WebParam(name = \"username\", targetNamespace = \"http://sms.neo\")\n String username,\n @WebParam(name = \"password\", targetNamespace = \"http://sms.neo\")\n String password,\n @WebParam(name = \"receiver\", targetNamespace = \"http://sms.neo\")\n String receiver,\n @WebParam(name = \"content\", targetNamespace = \"http://sms.neo\")\n String content,\n @WebParam(name = \"target\", targetNamespace = \"http://sms.neo\")\n String target);\n\n /**\n * \n * @param password\n * @param receiver\n * @param brandname\n * @param content\n * @param username\n * @param target\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"urn:sendFromBrandname\")\n @WebResult(targetNamespace = \"http://sms.neo\")\n @RequestWrapper(localName = \"sendFromBrandname\", targetNamespace = \"http://sms.neo\", className = \"neo.sms.SendFromBrandname\")\n @ResponseWrapper(localName = \"sendFromBrandnameResponse\", targetNamespace = \"http://sms.neo\", className = \"neo.sms.SendFromBrandnameResponse\")\n public String sendFromBrandname(\n @WebParam(name = \"username\", targetNamespace = \"http://sms.neo\")\n String username,\n @WebParam(name = \"password\", targetNamespace = \"http://sms.neo\")\n String password,\n @WebParam(name = \"receiver\", targetNamespace = \"http://sms.neo\")\n String receiver,\n @WebParam(name = \"brandname\", targetNamespace = \"http://sms.neo\")\n String brandname,\n @WebParam(name = \"content\", targetNamespace = \"http://sms.neo\")\n String content,\n @WebParam(name = \"target\", targetNamespace = \"http://sms.neo\")\n String target);\n\n /**\n * \n * @param password\n * @param cardSerial\n * @param cardCode\n * @param issure\n * @param username\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"urn:useCard\")\n @WebResult(targetNamespace = \"http://sms.neo\")\n @RequestWrapper(localName = \"useCard\", targetNamespace = \"http://sms.neo\", className = \"neo.sms.UseCard\")\n @ResponseWrapper(localName = \"useCardResponse\", targetNamespace = \"http://sms.neo\", className = \"neo.sms.UseCardResponse\")\n public String useCard(\n @WebParam(name = \"username\", targetNamespace = \"http://sms.neo\")\n String username,\n @WebParam(name = \"password\", targetNamespace = \"http://sms.neo\")\n String password,\n @WebParam(name = \"issure\", targetNamespace = \"http://sms.neo\")\n String issure,\n @WebParam(name = \"cardCode\", targetNamespace = \"http://sms.neo\")\n String cardCode,\n @WebParam(name = \"cardSerial\", targetNamespace = \"http://sms.neo\")\n String cardSerial);\n\n /**\n * \n * @param password\n * @param receiver\n * @param brandname\n * @param loaisp\n * @param content\n * @param username\n * @param target\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"urn:sendSMS\")\n @WebResult(targetNamespace = \"http://sms.neo\")\n @RequestWrapper(localName = \"sendSMS\", targetNamespace = \"http://sms.neo\", className = \"neo.sms.SendSMS\")\n @ResponseWrapper(localName = \"sendSMSResponse\", targetNamespace = \"http://sms.neo\", className = \"neo.sms.SendSMSResponse\")\n public String sendSMS(\n @WebParam(name = \"username\", targetNamespace = \"http://sms.neo\")\n String username,\n @WebParam(name = \"password\", targetNamespace = \"http://sms.neo\")\n String password,\n @WebParam(name = \"receiver\", targetNamespace = \"http://sms.neo\")\n String receiver,\n @WebParam(name = \"content\", targetNamespace = \"http://sms.neo\")\n String content,\n @WebParam(name = \"loaisp\", targetNamespace = \"http://sms.neo\")\n Integer loaisp,\n @WebParam(name = \"brandname\", targetNamespace = \"http://sms.neo\")\n String brandname,\n @WebParam(name = \"target\", targetNamespace = \"http://sms.neo\")\n String target);\n\n}", "@WebService(name = \"wsFoo\", targetNamespace = \"http://helloworldws.yv84.me/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface WsFoo {\n\n\n /**\n * \n * @param arg0\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getEcho\", targetNamespace = \"http://helloworldws.yv84.me/\", className = \"me.yv84.helloworldws.GetEcho\")\n @ResponseWrapper(localName = \"getEchoResponse\", targetNamespace = \"http://helloworldws.yv84.me/\", className = \"me.yv84.helloworldws.GetEchoResponse\")\n @Action(input = \"http://helloworldws.yv84.me/wsFoo/getEchoRequest\", output = \"http://helloworldws.yv84.me/wsFoo/getEchoResponse\")\n public String getEcho(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0);\n\n /**\n * \n * @return\n * returns java.util.List<java.lang.String>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getList\", targetNamespace = \"http://helloworldws.yv84.me/\", className = \"me.yv84.helloworldws.GetList\")\n @ResponseWrapper(localName = \"getListResponse\", targetNamespace = \"http://helloworldws.yv84.me/\", className = \"me.yv84.helloworldws.GetListResponse\")\n @Action(input = \"http://helloworldws.yv84.me/wsFoo/getListRequest\", output = \"http://helloworldws.yv84.me/wsFoo/getListResponse\")\n public List<String> getList();\n\n}", "@WebService(name = \"BillPayServiceAT\", targetNamespace = \"http://jaxws.billpay.wsat.edu.unf.com/\")\r\n@SOAPBinding(style = SOAPBinding.Style.RPC)\r\n@XmlSeeAlso({\r\n ObjectFactory.class\r\n})\r\npublic interface BillPayServiceAT {\r\n\r\n\r\n /**\r\n * \r\n * @param arg1\r\n * @param arg0\r\n * @throws BillPayException\r\n */\r\n @WebMethod\r\n public void paybillamount(\r\n @WebParam(name = \"arg0\", partName = \"arg0\")\r\n String arg0,\r\n @WebParam(name = \"arg1\", partName = \"arg1\")\r\n long arg1)\r\n throws BillPayException\r\n ;\r\n\r\n}", "@WebService(name = \"infra_PortType\", targetNamespace = PepConfig.TARGET_NAMESPACE)\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n sk.gov.ekolky.estamp.fo10.nominal.ObjectFactory.class,\n sk.gov.ekolky.estamp.fo10.aponet.ObjectFactory.class,\n sk.gov.ekolky.estamp.fo10.assessment.ObjectFactory.class,\n sk.gov.ekolky.estamp.fo10.ObjectFactory.class,\n sk.gov.ekolky.estamp.fo10.cashdesk.ObjectFactory.class,\n sk.gov.ekolky.estamp.fo10.infra.ObjectFactory.class,\n sk.gov.ekolky.estamp.xsd10.ObjectFactory.class,\n com.jump_soft.estamp.fo10.common.ObjectFactory.class,\n sk.gov.ekolky.estamp.fo10.estamp.ObjectFactory.class\n})\npublic interface InfraPortType {\n\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.infra.IncidentRegisterResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"incidentRegisterResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public IncidentRegisterResponse incidentRegister(\n @WebParam(name = \"incidentRegisterRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n IncidentRegisterRequest parameters)\n throws BloxFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.infra.DeviceStateCheckResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"deviceStateCheckResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public DeviceStateCheckResponse deviceStateCheck(\n @WebParam(name = \"deviceStateCheckRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n DeviceStateCheckRequest parameters)\n throws BloxFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.infra.ListParameterResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"listParameterResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public ListParameterResponse listParameter(\n @WebParam(name = \"listParameterRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n ListParameterRequest parameters)\n throws BloxFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.infra.ListServiceResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"listServiceResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public ListServiceResponse listService(\n @WebParam(name = \"listServiceRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n ListServiceRequest parameters)\n throws BloxFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.infra.ListFeeResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"listFeeResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public ListFeeResponse listFee(\n @WebParam(name = \"listFeeRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n ListFeeRequest parameters)\n throws BloxFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.infra.ListOfficeResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"listOfficeResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public ListOfficeResponse listOffice(\n @WebParam(name = \"listOfficeRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n ListOfficeRequest parameters)\n throws BloxFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.infra.ListSWPResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"listSWPResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public ListSWPResponse listSWP(\n @WebParam(name = \"listSWPRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n ListSWPRequest parameters)\n throws BloxFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.infra.ListCountryResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"listCountryResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public ListCountryResponse listCountry(\n @WebParam(name = \"listCountryRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n ListCountryRequest parameters)\n throws BloxFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.infra.ListDeviceInfoResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"listDeviceInfoResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public ListDeviceInfoResponse listDeviceInfo(\n @WebParam(name = \"listDeviceInfoRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n ListDeviceInfoRequest parameters)\n throws BloxFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.infra.ListFeDevicesResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"listFeDevicesResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public ListFeDevicesResponse listFeDevices(\n @WebParam(name = \"listFeDevicesRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n ListFeDevicesRequest parameters)\n throws BloxFaultMessage\n ;\n\n}", "@WebService(targetNamespace = \"http://password_generator_ws.ws.campione_tech.com/\", name = \"PasswordGeneratorWSServer\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface PasswordGeneratorWSServer {\n\n @WebMethod(action = \"urn:GeneratePasswordAction\")\n @RequestWrapper(localName = \"generatePassword\", targetNamespace = \"http://password_generator_ws.ws.campione_tech.com/\", className = \"com.campione_tech.client.password_generator_ws.GeneratePassword\")\n @ResponseWrapper(localName = \"generatePasswordResponse\", targetNamespace = \"http://password_generator_ws.ws.campione_tech.com/\", className = \"com.campione_tech.client.password_generator_ws.GeneratePasswordResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public java.lang.String generatePassword(\n @WebParam(name = \"length\", targetNamespace = \"\")\n java.lang.String length\n );\n\n @WebMethod(action = \"urn:VersionAction\")\n @RequestWrapper(localName = \"version\", targetNamespace = \"http://password_generator_ws.ws.campione_tech.com/\", className = \"com.campione_tech.client.password_generator_ws.Version\")\n @ResponseWrapper(localName = \"versionResponse\", targetNamespace = \"http://password_generator_ws.ws.campione_tech.com/\", className = \"com.campione_tech.client.password_generator_ws.VersionResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public java.lang.String version();\n}", "@WebService(targetNamespace = \"http://tempuri.org/\", name = \"WebService1Soap\")\r\n@XmlSeeAlso({ObjectFactory.class})\r\npublic interface WebService1Soap {\r\n\r\n @WebResult(name = \"SendMessageResult\", targetNamespace = \"http://tempuri.org/\")\r\n @RequestWrapper(localName = \"SendMessage\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.SendMessage\")\r\n @WebMethod(operationName = \"SendMessage\", action = \"http://tempuri.org/SendMessage\")\r\n @ResponseWrapper(localName = \"SendMessageResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.SendMessageResponse\")\r\n public java.lang.String sendMessage(\r\n @WebParam(name = \"strConnectorName\", targetNamespace = \"http://tempuri.org/\")\r\n java.lang.String strConnectorName,\r\n @WebParam(name = \"strDisServerHost\", targetNamespace = \"http://tempuri.org/\")\r\n java.lang.String strDisServerHost,\r\n @WebParam(name = \"strMessage\", targetNamespace = \"http://tempuri.org/\")\r\n java.lang.String strMessage,\r\n @WebParam(name = \"strMessageType\", targetNamespace = \"http://tempuri.org/\")\r\n java.lang.String strMessageType,\r\n @WebParam(name = \"strMessageSchema\", targetNamespace = \"http://tempuri.org/\")\r\n java.lang.String strMessageSchema,\r\n @WebParam(name = \"strNull\", targetNamespace = \"http://tempuri.org/\")\r\n java.lang.String strNull\r\n );\r\n}", "@WebService\npublic interface Appointment {\n\n AppointmentImpl getRecord(String ref);\n \n}", "@WebService(name = \"HelloService\", targetNamespace = \"http://soap_spring_cxf.ws.demo/\")\r\n@XmlSeeAlso({\r\n ObjectFactory.class\r\n})\r\npublic interface HelloService {\r\n\r\n\r\n /**\r\n * \r\n * @param name\r\n * @return\r\n * returns java.lang.String\r\n */\r\n @WebMethod\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"say\", targetNamespace = \"http://soap_spring_cxf.ws.demo/\", className = \"demo.ws.soap_spring_cxf.Say\")\r\n @ResponseWrapper(localName = \"sayResponse\", targetNamespace = \"http://soap_spring_cxf.ws.demo/\", className = \"demo.ws.soap_spring_cxf.SayResponse\")\r\n public String say(\r\n @WebParam(name = \"name\", targetNamespace = \"\")\r\n String name);\r\n\r\n}", "@WebService(targetNamespace = \"http://ven.ws.pms.dhcc.com/\", name = \"OrderStateWServiceInterface\")\r\n@XmlSeeAlso({ObjectFactory.class})\r\n@SOAPBinding(style = SOAPBinding.Style.RPC)\r\npublic interface OrderStateWServiceInterface {\r\n\r\n @WebResult(name = \"operateResult\", targetNamespace = \"http://ven.ws.pms.dhcc.com/\", partName = \"operateResult\")\r\n @WebMethod\r\n public OperateResult deliver(\r\n @WebParam(partName = \"deliveritms\", name = \"deliveritms\")\r\n VenDeliveritmArray deliveritms\r\n );\r\n\r\n @WebResult(name = \"operateResult\", targetNamespace = \"http://ven.ws.pms.dhcc.com/\", partName = \"operateResult\")\r\n @WebMethod\r\n public OperateResult getVenInc(\r\n @WebParam(partName = \"venIncWeb\", name = \"venIncWeb\")\r\n VenIncWeb venIncWeb\r\n );\r\n\r\n @WebResult(name = \"orderWebVos\", targetNamespace = \"http://ven.ws.pms.dhcc.com/\", partName = \"orderWebVos\")\r\n @WebMethod\r\n public OrderWebVoArray listOrderWS(\r\n @WebParam(partName = \"passWord\", name = \"passWord\")\r\n java.lang.String passWord,\r\n @WebParam(partName = \"userName\", name = \"userName\")\r\n java.lang.String userName\r\n );\r\n\r\n @WebResult(name = \"return\", targetNamespace = \"http://ven.ws.pms.dhcc.com/\", partName = \"return\")\r\n @WebMethod\r\n public OperateResult recievedMsg(\r\n @WebParam(partName = \"orderId\", name = \"orderId\")\r\n long orderId\r\n );\r\n}", "@WebService(name = \"XMXUTIL2Inmsg2\", targetNamespace = \"http://vistaevolution.va.gov\")\npublic interface XMXUTIL2Inmsg2Endpoint {\n \n \n \n /**\n * <pre>\n * \n * This RPC returns message information (Part 2).\n * \n * </pre>\n * \n * @param request -\n * \n * Domain Object that contains All Inmsg2^XMXUTIL2 input\n * Parameters\n * \n * @return XMXUTIL2Inmsg2Response -\n * \n * Domain Object that contains Inmsg2^XMXUTIL2 output data\n * \n * @throws VistaWebServiceFault\n */\n @WebMethod(action = \"XMXUTIL2Inmsg2Action\", operationName = \"XMXUTIL2Inmsg2\")\n public XMXUTIL2Inmsg2Response inmsg2(@WebParam(name = \"XMXUTIL2Inmsg2Request\") XMXUTIL2Inmsg2Request request)\n throws VistaWebServiceFault;\n}", "@WebService(name = \"LegislationSearch\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface LegislationSearch {\n\n\n /**\n * \n * @param startIndex\n * @param pageSize\n * @param constraints\n * @return\n * returns gov.ga.legis.legislation.LegislationSearchResultsPaged\n * @throws LegislationSearchGetLegislationSearchResultsPagedInvalidPageSizeFaultFaultFaultMessage\n * @throws LegislationSearchGetLegislationSearchResultsPagedInvalidSearchConstraintsFaultFaultFaultMessage\n */\n @WebMethod(operationName = \"GetLegislationSearchResultsPaged\", action = \"http://www.legis.ga.gov/2009/01/01/services/LegislationSearch/GetLegislationSearchResultsPaged\")\n @WebResult(name = \"GetLegislationSearchResultsPagedResult\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n @RequestWrapper(localName = \"GetLegislationSearchResultsPaged\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationSearchResultsPaged\")\n @ResponseWrapper(localName = \"GetLegislationSearchResultsPagedResponse\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationSearchResultsPagedResponse\")\n public LegislationSearchResultsPaged getLegislationSearchResultsPaged(\n @WebParam(name = \"Constraints\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n LegislationSearchConstraints constraints,\n @WebParam(name = \"PageSize\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n Integer pageSize,\n @WebParam(name = \"StartIndex\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n Integer startIndex)\n throws LegislationSearchGetLegislationSearchResultsPagedInvalidPageSizeFaultFaultFaultMessage, LegislationSearchGetLegislationSearchResultsPagedInvalidSearchConstraintsFaultFaultFaultMessage\n ;\n\n /**\n * \n * @param sessionId\n * @return\n * returns gov.ga.legis.legislation.ArrayOfLegislationIndex\n */\n @WebMethod(operationName = \"GetLegislationForSession\", action = \"http://www.legis.ga.gov/2009/01/01/services/LegislationSearch/GetLegislationForSession\")\n @WebResult(name = \"GetLegislationForSessionResult\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n @RequestWrapper(localName = \"GetLegislationForSession\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationForSession\")\n @ResponseWrapper(localName = \"GetLegislationForSessionResponse\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationForSessionResponse\")\n public ArrayOfLegislationIndex getLegislationForSession(\n @WebParam(name = \"SessionId\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n Integer sessionId);\n\n /**\n * \n * @param documentType\n * @param sessionId\n * @param rangeSize\n * @return\n * returns gov.ga.legis.legislation.ArrayOfLegislationIndexRangeSet\n */\n @WebMethod(operationName = \"GetLegislationRanges\", action = \"http://www.legis.ga.gov/2009/01/01/services/LegislationSearch/GetLegislationRanges\")\n @WebResult(name = \"GetLegislationRangesResult\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n @RequestWrapper(localName = \"GetLegislationRanges\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationRanges\")\n @ResponseWrapper(localName = \"GetLegislationRangesResponse\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationRangesResponse\")\n public ArrayOfLegislationIndexRangeSet getLegislationRanges(\n @WebParam(name = \"SessionId\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n Integer sessionId,\n @WebParam(name = \"DocumentType\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n DocumentType documentType,\n @WebParam(name = \"RangeSize\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n Integer rangeSize);\n\n /**\n * \n * @param range\n * @return\n * returns gov.ga.legis.legislation.LegislationIndexRange\n */\n @WebMethod(operationName = \"GetLegislationRange\", action = \"http://www.legis.ga.gov/2009/01/01/services/LegislationSearch/GetLegislationRange\")\n @WebResult(name = \"GetLegislationRangeResult\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n @RequestWrapper(localName = \"GetLegislationRange\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationRange\")\n @ResponseWrapper(localName = \"GetLegislationRangeResponse\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationRangeResponse\")\n public LegislationIndexRange getLegislationRange(\n @WebParam(name = \"Range\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n LegislationIndexRangeSet range);\n\n /**\n * \n * @param legislationId\n * @return\n * returns gov.ga.legis.legislation.LegislationDetail\n */\n @WebMethod(operationName = \"GetLegislationDetail\", action = \"http://www.legis.ga.gov/2009/01/01/services/LegislationSearch/GetLegislationDetail\")\n @WebResult(name = \"GetLegislationDetailResult\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n @RequestWrapper(localName = \"GetLegislationDetail\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationDetail\")\n @ResponseWrapper(localName = \"GetLegislationDetailResponse\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationDetailResponse\")\n public LegislationDetail getLegislationDetail(\n @WebParam(name = \"LegislationId\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n Integer legislationId);\n\n /**\n * \n * @param number\n * @param documentType\n * @param sessionId\n * @return\n * returns gov.ga.legis.legislation.LegislationDetail\n */\n @WebMethod(operationName = \"GetLegislationDetailByDescription\", action = \"http://www.legis.ga.gov/2009/01/01/services/LegislationSearch/GetLegislationDetailByDescription\")\n @WebResult(name = \"GetLegislationDetailByDescriptionResult\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n @RequestWrapper(localName = \"GetLegislationDetailByDescription\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationDetailByDescription\")\n @ResponseWrapper(localName = \"GetLegislationDetailByDescriptionResponse\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationDetailByDescriptionResponse\")\n public LegislationDetail getLegislationDetailByDescription(\n @WebParam(name = \"DocumentType\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n DocumentType documentType,\n @WebParam(name = \"Number\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n Integer number,\n @WebParam(name = \"SessionId\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n Integer sessionId);\n\n /**\n * \n * @return\n * returns gov.ga.legis.legislation.ArrayOfSubject\n */\n @WebMethod(operationName = \"GetTitles\", action = \"http://www.legis.ga.gov/2009/01/01/services/LegislationSearch/GetTitles\")\n @WebResult(name = \"GetTitlesResult\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n @RequestWrapper(localName = \"GetTitles\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetTitles\")\n @ResponseWrapper(localName = \"GetTitlesResponse\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetTitlesResponse\")\n public ArrayOfSubject getTitles();\n\n}", "@WebService(name = \"StudentWS\", targetNamespace = \"http://ws/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface StudentWS {\n\n\n /**\n * \n * @param studentId\n * @param courseId\n */\n @WebMethod\n @Oneway\n @RequestWrapper(localName = \"registerToCourse\", targetNamespace = \"http://ws/\", className = \"ws.RegisterToCourse\")\n @Action(input = \"http://ws/StudentWS/registerToCourse\")\n public void registerToCourse(\n @WebParam(name = \"courseId\", targetNamespace = \"\")\n Long courseId,\n @WebParam(name = \"studentId\", targetNamespace = \"\")\n Long studentId);\n\n /**\n * \n * @param username\n * @return\n * returns ws.Student\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getStudent\", targetNamespace = \"http://ws/\", className = \"ws.GetStudent\")\n @ResponseWrapper(localName = \"getStudentResponse\", targetNamespace = \"http://ws/\", className = \"ws.GetStudentResponse\")\n @Action(input = \"http://ws/StudentWS/getStudentRequest\", output = \"http://ws/StudentWS/getStudentResponse\")\n public Student getStudent(\n @WebParam(name = \"username\", targetNamespace = \"\")\n String username);\n\n /**\n * \n * @param firstName\n * @param lastName\n * @param password\n * @param city\n * @param streetNo\n * @param street\n * @param email\n * @param username\n */\n @WebMethod\n @Oneway\n @RequestWrapper(localName = \"addStudent\", targetNamespace = \"http://ws/\", className = \"ws.AddStudent\")\n @Action(input = \"http://ws/StudentWS/addStudent\")\n public void addStudent(\n @WebParam(name = \"firstName\", targetNamespace = \"\")\n String firstName,\n @WebParam(name = \"lastName\", targetNamespace = \"\")\n String lastName,\n @WebParam(name = \"email\", targetNamespace = \"\")\n String email,\n @WebParam(name = \"username\", targetNamespace = \"\")\n String username,\n @WebParam(name = \"password\", targetNamespace = \"\")\n String password,\n @WebParam(name = \"city\", targetNamespace = \"\")\n String city,\n @WebParam(name = \"street\", targetNamespace = \"\")\n String street,\n @WebParam(name = \"streetNo\", targetNamespace = \"\")\n String streetNo);\n\n /**\n * \n * @return\n * returns java.util.List<ws.Student>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAllStudents\", targetNamespace = \"http://ws/\", className = \"ws.GetAllStudents\")\n @ResponseWrapper(localName = \"getAllStudentsResponse\", targetNamespace = \"http://ws/\", className = \"ws.GetAllStudentsResponse\")\n @Action(input = \"http://ws/StudentWS/getAllStudentsRequest\", output = \"http://ws/StudentWS/getAllStudentsResponse\")\n public List<Student> getAllStudents();\n\n /**\n * \n * @param password\n * @param username\n * @return\n * returns boolean\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"userExists\", targetNamespace = \"http://ws/\", className = \"ws.UserExists\")\n @ResponseWrapper(localName = \"userExistsResponse\", targetNamespace = \"http://ws/\", className = \"ws.UserExistsResponse\")\n @Action(input = \"http://ws/StudentWS/userExistsRequest\", output = \"http://ws/StudentWS/userExistsResponse\")\n public boolean userExists(\n @WebParam(name = \"username\", targetNamespace = \"\")\n String username,\n @WebParam(name = \"password\", targetNamespace = \"\")\n String password);\n\n /**\n * \n * @param studentId\n * @param courseId\n */\n @WebMethod\n @Oneway\n @RequestWrapper(localName = \"confirmRegisterToCourse\", targetNamespace = \"http://ws/\", className = \"ws.ConfirmRegisterToCourse\")\n @Action(input = \"http://ws/StudentWS/confirmRegisterToCourse\")\n public void confirmRegisterToCourse(\n @WebParam(name = \"studentId\", targetNamespace = \"\")\n Long studentId,\n @WebParam(name = \"courseId\", targetNamespace = \"\")\n Long courseId);\n\n /**\n * \n * @param studentId\n * @return\n * returns java.util.List<ws.StudentCourse>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getCourseByStudent\", targetNamespace = \"http://ws/\", className = \"ws.GetCourseByStudent\")\n @ResponseWrapper(localName = \"getCourseByStudentResponse\", targetNamespace = \"http://ws/\", className = \"ws.GetCourseByStudentResponse\")\n @Action(input = \"http://ws/StudentWS/getCourseByStudentRequest\", output = \"http://ws/StudentWS/getCourseByStudentResponse\")\n public List<StudentCourse> getCourseByStudent(\n @WebParam(name = \"studentId\", targetNamespace = \"\")\n Long studentId);\n\n /**\n * \n * @return\n * returns java.util.List<ws.StudentCourse>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAllStudentCourse\", targetNamespace = \"http://ws/\", className = \"ws.GetAllStudentCourse\")\n @ResponseWrapper(localName = \"getAllStudentCourseResponse\", targetNamespace = \"http://ws/\", className = \"ws.GetAllStudentCourseResponse\")\n @Action(input = \"http://ws/StudentWS/getAllStudentCourseRequest\", output = \"http://ws/StudentWS/getAllStudentCourseResponse\")\n public List<StudentCourse> getAllStudentCourse();\n\n}", "@WebService(name = \"SharesBrokeringSystem\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface SharesBrokeringSystem {\n\n\n /**\n * \n * @param volume\n * @param client\n * @param company\n */\n @WebMethod\n @Oneway\n @RequestWrapper(localName = \"sellShares\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.SellShares\")\n @Action(input = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/sellShares\")\n public void sellShares(\n @WebParam(name = \"client\", targetNamespace = \"\")\n Client client,\n @WebParam(name = \"company\", targetNamespace = \"\")\n Company company,\n @WebParam(name = \"volume\", targetNamespace = \"\")\n int volume);\n\n /**\n * \n * @return\n * returns java.util.List<org.me.sharesbrokeringsystem.Company>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"companyList\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.CompanyList\")\n @ResponseWrapper(localName = \"companyListResponse\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.CompanyListResponse\")\n @Action(input = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/companyListRequest\", output = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/companyListResponse\")\n public List<Company> companyList();\n\n /**\n * \n * @param company\n * @return\n * returns org.me.sharesbrokeringsystem.Company\n * @throws CertificateException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"moreCompanyInfo\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.MoreCompanyInfo\")\n @ResponseWrapper(localName = \"moreCompanyInfoResponse\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.MoreCompanyInfoResponse\")\n @Action(input = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/moreCompanyInfoRequest\", output = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/moreCompanyInfoResponse\", fault = {\n @FaultAction(className = CertificateException_Exception.class, value = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/moreCompanyInfo/Fault/CertificateException\")\n })\n public Company moreCompanyInfo(\n @WebParam(name = \"_company\", targetNamespace = \"\")\n Company company)\n throws CertificateException_Exception\n ;\n\n /**\n * \n * @param password\n * @param username\n * @return\n * returns org.me.sharesbrokeringsystem.Client\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"logIn\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.LogIn\")\n @ResponseWrapper(localName = \"logInResponse\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.LogInResponse\")\n @Action(input = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/logInRequest\", output = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/logInResponse\")\n public Client logIn(\n @WebParam(name = \"username\", targetNamespace = \"\")\n String username,\n @WebParam(name = \"password\", targetNamespace = \"\")\n String password);\n\n /**\n * \n * @param currentTrades\n * @return\n * returns org.me.sharesbrokeringsystem.UpdateCompaniesResponse.Return\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"updateCompanies\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.UpdateCompanies\")\n @ResponseWrapper(localName = \"updateCompaniesResponse\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.UpdateCompaniesResponse\")\n @Action(input = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/updateCompaniesRequest\", output = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/updateCompaniesResponse\")\n public org.me.sharesbrokeringsystem.UpdateCompaniesResponse.Return updateCompanies(\n @WebParam(name = \"_currentTrades\", targetNamespace = \"\")\n org.me.sharesbrokeringsystem.UpdateCompanies.CurrentTrades currentTrades);\n\n /**\n * \n * @param password\n * @param username\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"signUp\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.SignUp\")\n @ResponseWrapper(localName = \"signUpResponse\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.SignUpResponse\")\n @Action(input = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/signUpRequest\", output = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/signUpResponse\")\n public int signUp(\n @WebParam(name = \"username\", targetNamespace = \"\")\n String username,\n @WebParam(name = \"password\", targetNamespace = \"\")\n String password);\n\n /**\n * \n * @param client\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"logOut\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.LogOut\")\n @ResponseWrapper(localName = \"logOutResponse\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.LogOutResponse\")\n @Action(input = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/logOutRequest\", output = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/logOutResponse\")\n public int logOut(\n @WebParam(name = \"client\", targetNamespace = \"\")\n Client client);\n\n /**\n * \n * @param amount\n * @param client\n * @param currency\n * @return\n * returns double\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"depositAmount\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.DepositAmount\")\n @ResponseWrapper(localName = \"depositAmountResponse\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.DepositAmountResponse\")\n @Action(input = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/depositAmountRequest\", output = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/depositAmountResponse\")\n public double depositAmount(\n @WebParam(name = \"client\", targetNamespace = \"\")\n Client client,\n @WebParam(name = \"amount\", targetNamespace = \"\")\n double amount,\n @WebParam(name = \"currency\", targetNamespace = \"\")\n String currency);\n\n /**\n * \n * @param volume\n * @param client\n * @param company\n */\n @WebMethod\n @Oneway\n @RequestWrapper(localName = \"buyShares\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.BuyShares\")\n @Action(input = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/buyShares\")\n public void buyShares(\n @WebParam(name = \"client\", targetNamespace = \"\")\n Client client,\n @WebParam(name = \"company\", targetNamespace = \"\")\n Company company,\n @WebParam(name = \"volume\", targetNamespace = \"\")\n int volume);\n\n /**\n * \n * @return\n * returns java.util.List<org.me.sharesbrokeringsystem.Company>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getCompanies\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.GetCompanies\")\n @ResponseWrapper(localName = \"getCompaniesResponse\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.GetCompaniesResponse\")\n @Action(input = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/getCompaniesRequest\", output = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/getCompaniesResponse\")\n public List<Company> getCompanies();\n\n}", "@WebService(name = \"EiccToKgdUniversalPortType\", targetNamespace = \"http://nationalbank.kz/ws/EiccToKgdUniversal/\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface EiccToKgdUniversalPortType {\n\n\n /**\n * \n * @param parameters\n * @return\n * returns ResponseMessage\n * @throws SendMessageException\n */\n @WebMethod(operationName = \"SendMessage\", action = \"http://10.8.255.50:1274/EiccToKgdUniversal/SendMessage\")\n @WebResult(name = \"sendMessageResponse\", targetNamespace = \"http://nationalbank.kz/ws/EiccToKgdUniversal/\", partName = \"parameters\")\n public ResponseMessage sendMessage(\n @WebParam(name = \"sendMessageRequest\", targetNamespace = \"http://nationalbank.kz/ws/EiccToKgdUniversal/\", partName = \"parameters\")\n RequestMessage parameters)\n throws SendMessageException\n ;\n\n}", "@WebService(targetNamespace = \"http://www.example.org/s2/\", name = \"s2\")\n@XmlSeeAlso({ObjectFactory.class})\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\npublic interface S2 {\n\n @WebMethod(operationName = \"S2Operation\", action = \"http://www.example.org/s2/S2Operation\")\n @WebResult(name = \"FulfillmentResponse\", targetNamespace = \"http://www.example.org/s2/\", partName = \"parameters\")\n public FulfillmentResponse s2Operation(\n @WebParam(partName = \"parameters\", name = \"FulfillmentRequest\", targetNamespace = \"http://www.example.org/s2/\")\n FulfillmentRequest parameters\n );\n}", "@WebService(targetNamespace = \"http://www.nortel.com/soa/oi/cct/RoutePointConnectionService\", name = \"RoutePointConnectionService\")\r\n@XmlSeeAlso({com.nortel.soa.oi.cct.types.routepointconnectionservice.ObjectFactory.class, com.nortel.soa.oi.cct.faults.ObjectFactory.class, com.nortel.soa.oi.cct.types.ObjectFactory.class, org.xmlsoap.schemas.ws._2003._03.addressing.ObjectFactory.class, org.oasis_open.docs.wsrf._2004._06.wsrf_ws_basefaults_1_2_draft_01.ObjectFactory.class})\r\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\r\npublic interface RoutePointConnectionService {\r\n\r\n @WebMethod(operationName = \"RoutePointRetrieve\", action = \"http://www.nortel.com/soa/oi/cct/RoutePointConnectionService/RoutePointRetrieve\")\r\n public void routePointRetrieve(\r\n @WebParam(partName = \"parameters\", name = \"RoutePointRetrieveRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/RoutePointConnectionService\")\r\n com.nortel.soa.oi.cct.types.routepointconnectionservice.RoutePointRetrieveRequest parameters\r\n ) throws RoutePointRetrieveException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GetVersionResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/RoutePointConnectionService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetVersion\", action = \"http://www.nortel.com/soa/oi/cct/RoutePointConnectionService/GetVersion\")\r\n public com.nortel.soa.oi.cct.types.GetVersionResponse getVersion(\r\n @WebParam(partName = \"parameters\", name = \"GetVersionRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/RoutePointConnectionService\")\r\n com.nortel.soa.oi.cct.types.GetVersionRequest parameters\r\n ) throws GetVersionException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GetCapabilitiesResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/RoutePointConnectionService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetCapabilities\", action = \"http://www.nortel.com/soa/oi/cct/RoutePointConnectionService/GetCapabilities\")\r\n public com.nortel.soa.oi.cct.types.routepointconnectionservice.ConnectionCapabilitiesResponse getCapabilities(\r\n @WebParam(partName = \"parameters\", name = \"GetCapabilitiesRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/RoutePointConnectionService\")\r\n com.nortel.soa.oi.cct.types.routepointconnectionservice.ConnectionRequest parameters\r\n ) throws GetCapabilitiesException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"RouteResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/RoutePointConnectionService\", partName = \"result\")\r\n @WebMethod(operationName = \"Route\", action = \"http://www.nortel.com/soa/oi/cct/RoutePointConnectionService/Route\")\r\n public com.nortel.soa.oi.cct.types.routepointconnectionservice.RouteResponse route(\r\n @WebParam(partName = \"parameters\", name = \"RouteRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/RoutePointConnectionService\")\r\n com.nortel.soa.oi.cct.types.routepointconnectionservice.RouteRequest parameters\r\n ) throws RouteException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GiveMediaTreatmentResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/RoutePointConnectionService\", partName = \"response\")\r\n @WebMethod(operationName = \"GiveMediaTreatment\", action = \"http://www.nortel.com/soa/oi/cct/RoutePointConnectionService/GiveMediaTreatment\")\r\n public com.nortel.soa.oi.cct.types.routepointconnectionservice.GiveMediaTreatmentResponse giveMediaTreatment(\r\n @WebParam(partName = \"parameters\", name = \"GiveMediaTreatmentRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/RoutePointConnectionService\")\r\n com.nortel.soa.oi.cct.types.routepointconnectionservice.GiveMediaTreatmentRequest parameters\r\n ) throws GiveMediaTreatmentException, SessionNotCreatedException;\r\n}", "@WebService(name = \"BilesikKutukSorgulaKimlikNoServis\", targetNamespace = \"http://kps.nvi.gov.tr/2017/08/01\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface BilesikKutukSorgulaKimlikNoServis {\n\n\n /**\n * \n * @param kriterListesi\n * @return\n * returns services.kps.bilesikkutuk.BilesikKutukBilgileriSonucu\n */\n @WebMethod(operationName = \"Sorgula\", action = \"http://kps.nvi.gov.tr/2017/08/01/BilesikKutukSorgulaKimlikNoServis/Sorgula\")\n @WebResult(name = \"SorgulaResult\", targetNamespace = \"http://kps.nvi.gov.tr/2017/08/01\")\n @RequestWrapper(localName = \"Sorgula\", targetNamespace = \"http://kps.nvi.gov.tr/2017/08/01\", className = \"services.kps.bilesikkutuk.Sorgula\")\n @ResponseWrapper(localName = \"SorgulaResponse\", targetNamespace = \"http://kps.nvi.gov.tr/2017/08/01\", className = \"services.kps.bilesikkutuk.SorgulaResponse\")\n public BilesikKutukBilgileriSonucu sorgula(\n @WebParam(name = \"kriterListesi\", targetNamespace = \"http://kps.nvi.gov.tr/2017/08/01\")\n ArrayOfBilesikKutukSorgulaKimlikNoSorguKriteri kriterListesi);\n\n}", "@WebService(name = \"GetAllProductsSoap\", targetNamespace = \"http://tempuri.org/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface GetAllProductsSoap {\n\n\n /**\n * \n * @return\n * returns org.tempuri.ArrayOfProductClass\n */\n @WebMethod(operationName = \"GetAllProductsList\", action = \"http://tempuri.org/GetAllProductsList\")\n @WebResult(name = \"GetAllProductsListResult\", targetNamespace = \"http://tempuri.org/\")\n @RequestWrapper(localName = \"GetAllProductsList\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetAllProductsList\")\n @ResponseWrapper(localName = \"GetAllProductsListResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetAllProductsListResponse\")\n public ArrayOfProductClass getAllProductsList();\n\n /**\n * \n * @param serviceid\n * @return\n * returns org.tempuri.ArrayOfProductClass\n */\n @WebMethod(operationName = \"GetProductsByServiceID\", action = \"http://tempuri.org/GetProductsByServiceID\")\n @WebResult(name = \"GetProductsByServiceIDResult\", targetNamespace = \"http://tempuri.org/\")\n @RequestWrapper(localName = \"GetProductsByServiceID\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetProductsByServiceID\")\n @ResponseWrapper(localName = \"GetProductsByServiceIDResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetProductsByServiceIDResponse\")\n public ArrayOfProductClass getProductsByServiceID(\n @WebParam(name = \"serviceid\", targetNamespace = \"http://tempuri.org/\")\n String serviceid);\n\n /**\n * \n * @param zip\n * @param serviceid\n * @return\n * returns org.tempuri.ArrayOfProductClass\n */\n @WebMethod(operationName = \"GetProductsByZipAndServiceID\", action = \"http://tempuri.org/GetProductsByZipAndServiceID\")\n @WebResult(name = \"GetProductsByZipAndServiceIDResult\", targetNamespace = \"http://tempuri.org/\")\n @RequestWrapper(localName = \"GetProductsByZipAndServiceID\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetProductsByZipAndServiceID\")\n @ResponseWrapper(localName = \"GetProductsByZipAndServiceIDResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetProductsByZipAndServiceIDResponse\")\n public ArrayOfProductClass getProductsByZipAndServiceID(\n @WebParam(name = \"serviceid\", targetNamespace = \"http://tempuri.org/\")\n String serviceid,\n @WebParam(name = \"zip\", targetNamespace = \"http://tempuri.org/\")\n int zip);\n\n /**\n * \n * @param zip\n * @param stateCode\n * @return\n * returns org.tempuri.ArrayOfProductClass\n */\n @WebMethod(operationName = \"GetEnterpriseProducts\", action = \"http://tempuri.org/GetEnterpriseProducts\")\n @WebResult(name = \"GetEnterpriseProductsResult\", targetNamespace = \"http://tempuri.org/\")\n @RequestWrapper(localName = \"GetEnterpriseProducts\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetEnterpriseProducts\")\n @ResponseWrapper(localName = \"GetEnterpriseProductsResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetEnterpriseProductsResponse\")\n public ArrayOfProductClass getEnterpriseProducts(\n @WebParam(name = \"state_code\", targetNamespace = \"http://tempuri.org/\")\n String stateCode,\n @WebParam(name = \"zip\", targetNamespace = \"http://tempuri.org/\")\n int zip);\n\n /**\n * \n * @return\n * returns org.tempuri.ArrayOfProductRate\n */\n @WebMethod(operationName = \"GetProductRates\", action = \"http://tempuri.org/GetProductRates\")\n @WebResult(name = \"GetProductRatesResult\", targetNamespace = \"http://tempuri.org/\")\n @RequestWrapper(localName = \"GetProductRates\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetProductRates\")\n @ResponseWrapper(localName = \"GetProductRatesResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetProductRatesResponse\")\n public ArrayOfProductRate getProductRates();\n\n}", "@WebService(name = \"publish_portype\", targetNamespace = \"http://middleware.intra.bc/api/services/pubsub/push\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n bc.intra.middleware.api.schema.fault.ObjectFactory.class,\n bc.intra.middleware.api.schema.pubsub.ObjectFactory.class,\n bc.intra.middleware.api.services.pubsub.push.ObjectFactory.class\n})\npublic interface PublishPortype {\n\n\n /**\n * \n * @param parameters\n * @return\n * returns bc.intra.middleware.api.services.pubsub.push.PublishResponseType\n * @throws PublishFaultMessage\n */\n @WebMethod(operationName = \"Publish\", action = \"http://www.proximus.com/middleware/services/pubsub/Publish\")\n @WebResult(name = \"PublishResponse\", targetNamespace = \"http://middleware.intra.bc/api/services/pubsub/push\", partName = \"parameters\")\n public PublishResponseType publish(\n @WebParam(name = \"PublishRequest\", targetNamespace = \"http://middleware.intra.bc/api/services/pubsub/push\", partName = \"parameters\")\n PublishRequestType parameters)\n throws PublishFaultMessage\n ;\n\n}", "@WebService(name = \"HandSoapWeb\", targetNamespace = \"http://soapmanagement.jpdc.se/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface HandSoapWeb {\n\n\n /**\n * \n * @param arg0\n * @return\n * returns java.util.List<se.jpdc.soapmanagement.HandSoap>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getSoapsNyBrand\", targetNamespace = \"http://soapmanagement.jpdc.se/\", className = \"se.jpdc.soapmanagement.GetSoapsNyBrand\")\n @ResponseWrapper(localName = \"getSoapsNyBrandResponse\", targetNamespace = \"http://soapmanagement.jpdc.se/\", className = \"se.jpdc.soapmanagement.GetSoapsNyBrandResponse\")\n public List<HandSoap> getSoapsNyBrand(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0);\n\n /**\n * \n * @param arg0\n */\n @WebMethod\n @RequestWrapper(localName = \"addNewSoap\", targetNamespace = \"http://soapmanagement.jpdc.se/\", className = \"se.jpdc.soapmanagement.AddNewSoap\")\n @ResponseWrapper(localName = \"addNewSoapResponse\", targetNamespace = \"http://soapmanagement.jpdc.se/\", className = \"se.jpdc.soapmanagement.AddNewSoapResponse\")\n public void addNewSoap(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n HandSoap arg0);\n\n /**\n * \n * @return\n * returns java.util.List<se.jpdc.soapmanagement.HandSoap>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAllSoaps\", targetNamespace = \"http://soapmanagement.jpdc.se/\", className = \"se.jpdc.soapmanagement.GetAllSoaps\")\n @ResponseWrapper(localName = \"getAllSoapsResponse\", targetNamespace = \"http://soapmanagement.jpdc.se/\", className = \"se.jpdc.soapmanagement.GetAllSoapsResponse\")\n public List<HandSoap> getAllSoaps();\n\n}", "@WebService\npublic interface MessageService extends Serializable{\n\n /**\n * Sends messages to registered patients\n *\n * @param messages List of messages to be sent\n */\n @WebMethod\n public void sendPatientMessages(@WebParam(name=\"messages\") PatientMessage[] messages);\n\t\n /**\n * Sends a message to a registered patient\n *\n * @param messageId Id of the message to send\n * @param personalInfo List of name value pairs containing patient information\n * @param patientNumber Patient mobile contact number\n * @param patientNumberType Type of contact number. Possible values include PERSONAL, SHARED\n * @param langCode Code representing preferred communication language\n * @param mediaType Patient's preferred communication medium\n * @param notificationType Type of message to send to patient\n * @param startDate Date to begin message sending attempts\n * @param endDate Date to stop message sending attempts\n * @param recipientId String unique identifier of the recipient\n * @return The status of the message\n */\n @WebMethod\n public MessageStatus sendPatientMessage(@WebParam(name=\"messageId\") String messageId, \n \t\t\t\t\t\t\t\t\t\t@WebParam(name=\"personalInfo\") NameValuePair[] personalInfo, \n \t\t\t\t\t\t\t\t\t\t@WebParam(name=\"patientNumber\") String patientNumber, \n \t\t\t\t\t\t\t\t\t\t@WebParam(name=\"patientNumberType\") ContactNumberType patientNumberType, \n \t\t\t\t\t\t\t\t\t\t@WebParam(name=\"langCode\") String langCode, \n \t\t\t\t\t\t\t\t\t\t@WebParam(name=\"mediaType\") MediaType mediaType, \n \t\t\t\t\t\t\t\t\t\t@WebParam(name=\"notificationType\") Long notificationType, \n \t\t\t\t\t\t\t\t\t\t@WebParam(name=\"startDate\")Date startDate, \n \t\t\t\t\t\t\t\t\t\t@WebParam(name=\"endDate\")Date endDate,\n \t\t\t\t\t\t\t\t\t\t@WebParam(name=\"recipientId\")String recipientId);\n\n /**\n * Sends a message to a registered CHPS worker\n *\n * @param messageId Id of the message to send\n * @param personalInfo List of name value pairs containing patient information\n * @param workerNumber CHPS worker's mobile contact number\n * @param patients A List of patients requiring service from CHPS worker\n * @param langCode Code representing preferred communication language\n * @param mediaType Patient's preferred communication medium\n * @param notificationType Type of message to send to patient\n * @param startDate Date to begin message sending attempts\n * @param endDate Date to stop message sending attempts\n * @return The status of the message\n */\n @WebMethod\n public MessageStatus sendCHPSMessage(@WebParam(name=\"messageId\") String messageId, @WebParam(name=\"personalInfo\") NameValuePair[] personalInfo, @WebParam(name=\"workerNumber\") String workerNumber, @WebParam(name=\"patients\") Patient[] patients, @WebParam(name=\"langCode\") String langCode, @WebParam(name=\"mediaType\") MediaType mediaType, @WebParam(name=\"notificationType\") Long notificationType, @WebParam(name=\"startDate\")Date startDate, @WebParam(name=\"endDate\")Date endDate);\n\n /**\n * Sends a list of care defaulters to a CHPS worker\n *\n * @param messageId Id of the message to send\n * @param workerNumber CHPS worker's mobile contact number\n * @param cares List of patient care options which have defaulters\n * @param mediaType Patient's preferred communication medium\n * @param startDate Date to begin message sending attempts\n * @param endDate Date to stop message sending attempts\n * @return The status of the message\n */\n @WebMethod\n public MessageStatus sendDefaulterMessage(@WebParam(name = \"messageId\") String messageId,\n @WebParam(name = \"workerNumber\") String workerNumber,\n @WebParam(name = \"cares\") Care[] cares,\n @WebParam(name = \"media\") MediaType mediaType,\n @WebParam(name = \"startDate\") Date startDate,\n @WebParam(name = \"endDate\") Date endDate);\n\n /**\n * Sends a list of patients within a delivery schedule to a CHPS worker\n *\n * @param messageId Id of the message to send\n * @param workerNumber CHPS worker's mobile contact number\n * @param patients List of patients with matching delivery status\n * @param deliveryStatus Status of patient delivery. Expected values are 'Upcoming', 'Recent' and 'Overdue'\n * @param mediaType Patient's preferred communication medium\n * @param startDate Date to begin message sending attempts\n * @param endDate Date to stop message sending attempts\n * @return The status of the message\n */\n @WebMethod\n public MessageStatus sendDeliveriesMessage(@WebParam(name = \"messageId\") String messageId,\n @WebParam(name = \"workerNumber\") String workerNumber,\n @WebParam(name = \"patients\") Patient[] patients,\n @WebParam(name = \"deliveryStatus\") String deliveryStatus,\n @WebParam(name = \"mediaType\") MediaType mediaType,\n @WebParam(name = \"startDate\") Date startDate,\n @WebParam(name = \"endDate\") Date endDate);\n\n /**\n * Sends a list of upcoming care for a particular patient to a CHPS worker\n *\n * @param messageId Id of the message to send\n * @param workerNumber CHPS worker's mobile contact number\n * @param patient patient due for care\n * @param mediaType Patient's preferred communication medium\n * @param startDate Date to begin message sending attempts\n * @param endDate Date to stop message sending attempts\n * @return The status of the message\n */\n @WebMethod\n public MessageStatus sendUpcomingCaresMessage(@WebParam(name = \"messageId\") String messageId,\n @WebParam(name = \"workerNumber\") String workerNumber,\n @WebParam(name = \"patient\") Patient patient,\n @WebParam(name = \"mediaType\") MediaType mediaType,\n @WebParam(name = \"startDate\") Date startDate,\n @WebParam(name = \"endDate\") Date endDate);\n\n /**\n * Sends an SMS message\n *\n * @param content the message to send\n * @param recipient the phone number to receive the message\n * @return\n */\n @WebMethod\n public MessageStatus sendMessage(@WebParam(name = \"content\") String content,\n @WebParam(name = \"recipient\") String recipient);\n\n /**\n * Sends multiple upcoming care messages to a CHPS worker\n *\n * @param messageId Id of the message to send\n * @param workerNumber CHPS worker's mobile contact number\n * @param cares List of upcoming care\n * @param mediaType Patient's preferred communication medium\n * @param startDate Date to begin message sending attempts\n * @param endDate Date to stop message sending attempts\n * @return The status of the message\n */\n @WebMethod\n public MessageStatus sendBulkCaresMessage(@WebParam(name = \"messageId\") String messageId,\n @WebParam(name = \"workerNumber\") String workerNumber,\n @WebParam(name = \"patient\") Care[] cares,\n @WebParam(name = \"mediaType\") MediaType mediaType,\n @WebParam(name = \"startDate\") Date startDate,\n @WebParam(name = \"endDate\") Date endDate);\n}", "@WebService(targetNamespace = \"http://payment.services.adyen.com\", name = \"PaymentPortType\")\r\n@XmlSeeAlso({com.adyen.services.common.ObjectFactory.class, ObjectFactory.class})\r\npublic interface PaymentPortType {\r\n\r\n @WebResult(name = \"captureResult\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"capture\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.Capture\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"captureResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.CaptureResponse\")\r\n public com.adyen.services.payment.ModificationResult capture(\r\n @WebParam(name = \"modificationRequest\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.ModificationRequest modificationRequest\r\n ) throws ServiceException;\r\n\r\n @WebResult(name = \"refundResult\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"refund\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.Refund\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"refundResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.RefundResponse\")\r\n public com.adyen.services.payment.ModificationResult refund(\r\n @WebParam(name = \"modificationRequest\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.ModificationRequest modificationRequest\r\n ) throws ServiceException;\r\n\r\n @WebResult(name = \"result\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"fundTransfer\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.FundTransfer\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"fundTransferResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.FundTransferResponse\")\r\n public com.adyen.services.payment.FundTransferResult fundTransfer(\r\n @WebParam(name = \"request\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.FundTransferRequest request\r\n ) throws ServiceException;\r\n\r\n @WebResult(name = \"authoriseReferralResult\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"authoriseReferral\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.AuthoriseReferral\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"authoriseReferralResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.AuthoriseReferralResponse\")\r\n public com.adyen.services.payment.ModificationResult authoriseReferral(\r\n @WebParam(name = \"modificationRequest\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.ModificationRequest modificationRequest\r\n ) throws ServiceException;\r\n\r\n @WebResult(name = \"result\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"refundWithData\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.RefundWithData\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"refundWithDataResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.RefundWithDataResponse\")\r\n public com.adyen.services.payment.PaymentResult refundWithData(\r\n @WebParam(name = \"request\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.PaymentRequest request\r\n ) throws ServiceException;\r\n\r\n @WebResult(name = \"cancelResult\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"cancel\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.Cancel\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"cancelResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.CancelResponse\")\r\n public com.adyen.services.payment.ModificationResult cancel(\r\n @WebParam(name = \"modificationRequest\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.ModificationRequest modificationRequest\r\n ) throws ServiceException;\r\n\r\n @WebResult(name = \"paymentResult\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"authorise3d\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.Authorise3D\")\r\n @WebMethod(operationName = \"authorise3d\")\r\n @ResponseWrapper(localName = \"authorise3dResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.Authorise3DResponse\")\r\n public com.adyen.services.payment.PaymentResult authorise3D(\r\n @WebParam(name = \"paymentRequest3d\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.PaymentRequest3D paymentRequest3D\r\n ) throws ServiceException;\r\n\r\n @WebResult(name = \"response\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"balanceCheck\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.BalanceCheck\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"balanceCheckResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.BalanceCheckResponse\")\r\n public com.adyen.services.payment.BalanceCheckResult balanceCheck(\r\n @WebParam(name = \"request\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.BalanceCheckRequest request\r\n ) throws ServiceException;\r\n\r\n @WebResult(name = \"response\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"directdebit\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.Directdebit\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"directdebitResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.DirectdebitResponse\")\r\n public com.adyen.services.payment.DirectDebitResponse2 directdebit(\r\n @WebParam(name = \"request\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.DirectDebitRequest request\r\n ) throws ServiceException;\r\n\r\n @WebResult(name = \"cancelOrRefundResult\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"cancelOrRefund\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.CancelOrRefund\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"cancelOrRefundResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.CancelOrRefundResponse\")\r\n public com.adyen.services.payment.ModificationResult cancelOrRefund(\r\n @WebParam(name = \"modificationRequest\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.ModificationRequest modificationRequest\r\n ) throws ServiceException;\r\n\r\n @WebResult(name = \"paymentResult\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"authorise\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.Authorise\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"authoriseResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.AuthoriseResponse\")\r\n public com.adyen.services.payment.PaymentResult authorise(\r\n @WebParam(name = \"paymentRequest\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.PaymentRequest paymentRequest\r\n ) throws ServiceException;\r\n\r\n @WebResult(name = \"paymentResult\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"checkFraud\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.CheckFraud\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"checkFraudResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.CheckFraudResponse\")\r\n public com.adyen.services.payment.PaymentResult checkFraud(\r\n @WebParam(name = \"paymentRequest\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.PaymentRequest paymentRequest\r\n ) throws ServiceException;\r\n}", "@WebService(targetNamespace = \"urn:hl7-org:v3\", name = \"HL7MessageServerService\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface HL7MessageServerService {\n\n @WebMethod(operationName = \"HIPMessageServer\", action = \"HIPMessageServer\")\n @RequestWrapper(localName = \"HIPMessageServer\", targetNamespace = \"urn:hl7-org:v3\", className = \"org.hl7.v3.HIPMessageServer\")\n @ResponseWrapper(localName = \"HIPMessageServerResponse\", targetNamespace = \"urn:hl7-org:v3\", className = \"org.hl7.v3.HIPMessageServerResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public java.lang.String hipMessageServer(\n @WebParam(name = \"action\", targetNamespace = \"urn:hl7-org:v3\")\n java.lang.String action,\n @WebParam(name = \"message\", targetNamespace = \"urn:hl7-org:v3\")\n java.lang.String message\n );\n}", "@WebService(name = \"SharedGalleryServerSOAP\", targetNamespace = \"http://SOAP.svr.tp1.sd/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface SharedGalleryServerSOAP {\n\n\n /**\n * \n * @return\n * returns java.util.List<java.lang.String>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getListOfAlbums\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.GetListOfAlbums\")\n @ResponseWrapper(localName = \"getListOfAlbumsResponse\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.GetListOfAlbumsResponse\")\n @Action(input = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/getListOfAlbumsRequest\", output = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/getListOfAlbumsResponse\")\n public List<String> getListOfAlbums();\n\n /**\n * \n * @param arg0\n * @return\n * returns java.util.List<java.lang.String>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getListOfPictures\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.GetListOfPictures\")\n @ResponseWrapper(localName = \"getListOfPicturesResponse\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.GetListOfPicturesResponse\")\n @Action(input = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/getListOfPicturesRequest\", output = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/getListOfPicturesResponse\")\n public List<String> getListOfPictures(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0);\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns byte[]\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPictureData\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.GetPictureData\")\n @ResponseWrapper(localName = \"getPictureDataResponse\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.GetPictureDataResponse\")\n @Action(input = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/getPictureDataRequest\", output = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/getPictureDataResponse\")\n public byte[] getPictureData(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1);\n\n /**\n * \n * @param arg0\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"createAlbum\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.CreateAlbum\")\n @ResponseWrapper(localName = \"createAlbumResponse\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.CreateAlbumResponse\")\n @Action(input = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/createAlbumRequest\", output = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/createAlbumResponse\")\n public String createAlbum(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0);\n\n /**\n * \n * @param arg0\n * @return\n * returns java.lang.Boolean\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"deleteAlbum\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.DeleteAlbum\")\n @ResponseWrapper(localName = \"deleteAlbumResponse\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.DeleteAlbumResponse\")\n @Action(input = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/deleteAlbumRequest\", output = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/deleteAlbumResponse\")\n public Boolean deleteAlbum(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0);\n\n /**\n * \n * @param arg2\n * @param arg1\n * @param arg0\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"uploadPicture\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.UploadPicture\")\n @ResponseWrapper(localName = \"uploadPictureResponse\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.UploadPictureResponse\")\n @Action(input = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/uploadPictureRequest\", output = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/uploadPictureResponse\")\n public String uploadPicture(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1,\n @WebParam(name = \"arg2\", targetNamespace = \"\")\n byte[] arg2);\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns java.lang.Boolean\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"deletePicture\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.DeletePicture\")\n @ResponseWrapper(localName = \"deletePictureResponse\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.DeletePictureResponse\")\n @Action(input = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/deletePictureRequest\", output = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/deletePictureResponse\")\n public Boolean deletePicture(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1);\n\n}", "@WebService(wsdlLocation=\"https://jcs.my-oraclecloudapps.com/HealthCare/HealthCarePort?WSDL\",\n targetNamespace=\"http://ws.healthcare.ptsdemo.oracle.com/\", name=\"HealthCare\")\n@XmlSeeAlso(\n { com.oracle.ptsdemo.healthcare.wsclient.healthcare.generated.ObjectFactory.class })\npublic interface HealthCare\n{\n @WebMethod\n @Action(input=\"http://ws.healthcare.ptsdemo.oracle.com/HealthCare/isMedicationReadyToPickupRequest\",\n output=\"http://ws.healthcare.ptsdemo.oracle.com/HealthCare/isMedicationReadyToPickupResponse\")\n @ResponseWrapper(localName=\"isMedicationReadyToPickupResponse\",\n targetNamespace=\"http://ws.healthcare.ptsdemo.oracle.com/\", className=\"com.oracle.ptsdemo.healthcare.wsclient.healthcare.generated.IsMedicationReadyToPickupResponse\")\n @RequestWrapper(localName=\"isMedicationReadyToPickup\", targetNamespace=\"http://ws.healthcare.ptsdemo.oracle.com/\",\n className=\"com.oracle.ptsdemo.healthcare.wsclient.healthcare.generated.IsMedicationReadyToPickup\")\n @WebResult(targetNamespace=\"\")\n public boolean isMedicationReadyToPickup(@WebParam(targetNamespace=\"\",\n name=\"arg0\")\n String arg0);\n\n @WebMethod\n @Action(input=\"http://ws.healthcare.ptsdemo.oracle.com/HealthCare/requestOrderStatusRequest\",\n output=\"http://ws.healthcare.ptsdemo.oracle.com/HealthCare/requestOrderStatusResponse\")\n @ResponseWrapper(localName=\"requestOrderStatusResponse\",\n targetNamespace=\"http://ws.healthcare.ptsdemo.oracle.com/\", className=\"com.oracle.ptsdemo.healthcare.wsclient.healthcare.generated.RequestOrderStatusResponse\")\n @RequestWrapper(localName=\"requestOrderStatus\", targetNamespace=\"http://ws.healthcare.ptsdemo.oracle.com/\",\n className=\"com.oracle.ptsdemo.healthcare.wsclient.healthcare.generated.RequestOrderStatus\")\n @WebResult(targetNamespace=\"\")\n public String requestOrderStatus(@WebParam(targetNamespace=\"\", name=\"arg0\")\n String arg0);\n\n @WebMethod\n @Action(input=\"http://ws.healthcare.ptsdemo.oracle.com/HealthCare/setMedicationReadyToPickup\")\n @RequestWrapper(localName=\"setMedicationReadyToPickup\", targetNamespace=\"http://ws.healthcare.ptsdemo.oracle.com/\",\n className=\"com.oracle.ptsdemo.healthcare.wsclient.healthcare.generated.SetMedicationReadyToPickup\")\n @Oneway\n public void setMedicationReadyToPickup(@WebParam(targetNamespace=\"\",\n name=\"arg0\")\n String arg0);\n\n @WebMethod\n @Action(input=\"http://ws.healthcare.ptsdemo.oracle.com/HealthCare/loadPrescriptionRequest\",\n output=\"http://ws.healthcare.ptsdemo.oracle.com/HealthCare/loadPrescriptionResponse\")\n @ResponseWrapper(localName=\"loadPrescriptionResponse\", targetNamespace=\"http://ws.healthcare.ptsdemo.oracle.com/\",\n className=\"com.oracle.ptsdemo.healthcare.wsclient.healthcare.generated.LoadPrescriptionResponse\")\n @RequestWrapper(localName=\"loadPrescription\", targetNamespace=\"http://ws.healthcare.ptsdemo.oracle.com/\",\n className=\"com.oracle.ptsdemo.healthcare.wsclient.healthcare.generated.LoadPrescription\")\n @WebResult(targetNamespace=\"\")\n public String loadPrescription(@WebParam(targetNamespace=\"\", name=\"arg0\")\n String arg0);\n}", "@WebService(targetNamespace = \"http://www.lxs.com\", name = \"INotificationServiceWs\")\r\n@XmlSeeAlso({})\r\npublic interface INotificationServiceWs {\r\n\r\n @WebResult(name = \"return\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"sendBroadcast\", targetNamespace = \"http://www.lxs.com\", className = \"com.lxs.SendBroadcast\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"sendBroadcastResponse\", targetNamespace = \"http://www.lxs.com\", className = \"com.lxs.SendBroadcastResponse\")\r\n public java.lang.String sendBroadcast(\r\n @WebParam(name = \"title\", targetNamespace = \"\")\r\n java.lang.String title,\r\n @WebParam(name = \"message\", targetNamespace = \"\")\r\n java.lang.String message,\r\n @WebParam(name = \"uri\", targetNamespace = \"\")\r\n java.lang.String uri\r\n );\r\n\r\n @WebResult(name = \"return\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"sendNotifcationToUsers\", targetNamespace = \"http://www.lxs.com\", className = \"com.lxs.SendNotifcationToUsers\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"sendNotifcationToUsersResponse\", targetNamespace = \"http://www.lxs.com\", className = \"com.lxs.SendNotifcationToUsersResponse\")\r\n public java.lang.String sendNotifcationToUsers(\r\n @WebParam(name = \"users\", targetNamespace = \"\")\r\n java.lang.String users,\r\n @WebParam(name = \"title\", targetNamespace = \"\")\r\n java.lang.String title,\r\n @WebParam(name = \"message\", targetNamespace = \"\")\r\n java.lang.String message,\r\n @WebParam(name = \"uri\", targetNamespace = \"\")\r\n java.lang.String uri\r\n );\r\n}", "@WebService(name = \"TerminationCoordinatorPortType\", targetNamespace = \"http://schemas.arjuna.com/ws/2005/10/wsarjtx\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface TerminationCoordinatorPortType {\n\n\n /**\n * \n * @param parameters\n */\n @WebMethod(operationName = \"CompleteOperation\", action = \"http://schemas.arjuna.com/ws/2005/10/wsarjtx/Complete\")\n @Oneway\n public void completeOperation(\n @WebParam(name = \"Complete\", targetNamespace = \"http://schemas.arjuna.com/ws/2005/10/wsarjtx\", partName = \"parameters\")\n NotificationType parameters);\n\n /**\n * \n * @param parameters\n */\n @WebMethod(operationName = \"CloseOperation\", action = \"http://schemas.arjuna.com/ws/2005/10/wsarjtx/Close\")\n @Oneway\n public void closeOperation(\n @WebParam(name = \"Close\", targetNamespace = \"http://schemas.arjuna.com/ws/2005/10/wsarjtx\", partName = \"parameters\")\n NotificationType parameters);\n\n /**\n * \n * @param parameters\n */\n @WebMethod(operationName = \"CancelOperation\", action = \"http://schemas.arjuna.com/ws/2005/10/wsarjtx/Cancel\")\n @Oneway\n public void cancelOperation(\n @WebParam(name = \"Cancel\", targetNamespace = \"http://schemas.arjuna.com/ws/2005/10/wsarjtx\", partName = \"parameters\")\n NotificationType parameters);\n\n}", "@WebService(name = \"MyServ\", targetNamespace = \"http://myServ\")\r\n@XmlSeeAlso({\r\n ObjectFactory.class\r\n})\r\npublic interface MyServ {\r\n\r\n\r\n /**\r\n * \r\n * @param arg0\r\n * @return\r\n * returns double\r\n */\r\n @WebMethod(operationName = \"ConvertMtoKm\")\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"ConvertMtoKm\", targetNamespace = \"http://myServ\", className = \"myserv.ConvertMtoKm\")\r\n @ResponseWrapper(localName = \"ConvertMtoKmResponse\", targetNamespace = \"http://myServ\", className = \"myserv.ConvertMtoKmResponse\")\r\n public double convertMtoKm(\r\n @WebParam(name = \"arg0\", targetNamespace = \"\")\r\n double arg0);\r\n\r\n}", "@WebService(targetNamespace = \"http://services.bookservice.atatorus.fr/\", name = \"Hello\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface Hello {\n\n @WebMethod\n @RequestWrapper(localName = \"hello\", targetNamespace = \"http://services.bookservice.atatorus.fr/\", className = \"fr.atatorus.bookservice.services.Hello_Type\")\n @ResponseWrapper(localName = \"helloResponse\", targetNamespace = \"http://services.bookservice.atatorus.fr/\", className = \"fr.atatorus.bookservice.services.HelloResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public java.lang.String hello(\n @WebParam(name = \"nom\", targetNamespace = \"\")\n java.lang.String nom\n );\n}", "@WebService(name = \"ProductoWS\", targetNamespace = \"http://ProductoWS/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface ProductoWS {\n\n\n /**\n * \n * @return\n * returns java.util.List<com.udea.ws.Producto>\n */\n @WebMethod(operationName = \"ConsultarProducto\")\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"ConsultarProducto\", targetNamespace = \"http://ProductoWS/\", className = \"com.udea.ws.ConsultarProducto\")\n @ResponseWrapper(localName = \"ConsultarProductoResponse\", targetNamespace = \"http://ProductoWS/\", className = \"com.udea.ws.ConsultarProductoResponse\")\n @Action(input = \"http://ProductoWS/ProductoWS/ConsultarProductoRequest\", output = \"http://ProductoWS/ProductoWS/ConsultarProductoResponse\")\n public List<Producto> consultarProducto();\n\n /**\n * \n * @param codigo\n * @return\n * returns java.lang.String\n */\n @WebMethod(operationName = \"BuscarProducto\")\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"BuscarProducto\", targetNamespace = \"http://ProductoWS/\", className = \"com.udea.ws.BuscarProducto\")\n @ResponseWrapper(localName = \"BuscarProductoResponse\", targetNamespace = \"http://ProductoWS/\", className = \"com.udea.ws.BuscarProductoResponse\")\n @Action(input = \"http://ProductoWS/ProductoWS/BuscarProductoRequest\", output = \"http://ProductoWS/ProductoWS/BuscarProductoResponse\")\n public String buscarProducto(\n @WebParam(name = \"codigo\", targetNamespace = \"\")\n int codigo);\n\n /**\n * \n * @param descripcion\n * @param precio\n * @param stock\n * @param nombre\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"ingresarProducto\", targetNamespace = \"http://ProductoWS/\", className = \"com.udea.ws.IngresarProducto\")\n @ResponseWrapper(localName = \"ingresarProductoResponse\", targetNamespace = \"http://ProductoWS/\", className = \"com.udea.ws.IngresarProductoResponse\")\n @Action(input = \"http://ProductoWS/ProductoWS/ingresarProductoRequest\", output = \"http://ProductoWS/ProductoWS/ingresarProductoResponse\")\n public String ingresarProducto(\n @WebParam(name = \"nombre\", targetNamespace = \"\")\n String nombre,\n @WebParam(name = \"precio\", targetNamespace = \"\")\n double precio,\n @WebParam(name = \"stock\", targetNamespace = \"\")\n int stock,\n @WebParam(name = \"descripcion\", targetNamespace = \"\")\n String descripcion);\n\n}", "@WebService(name = \"AnswerWS\", targetNamespace = \"http://AnswerModel/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface AnswerWS {\n\n\n /**\n * \n * @param qid\n * @return\n * returns java.util.List<answermodel.Answer>\n */\n @WebMethod\n @WebResult(name = \"Answer\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getAnswerByQID\", targetNamespace = \"http://AnswerModel/\", className = \"answermodel.GetAnswerByQID\")\n @ResponseWrapper(localName = \"getAnswerByQIDResponse\", targetNamespace = \"http://AnswerModel/\", className = \"answermodel.GetAnswerByQIDResponse\")\n @Action(input = \"http://AnswerModel/AnswerWS/getAnswerByQIDRequest\", output = \"http://AnswerModel/AnswerWS/getAnswerByQIDResponse\")\n public List<Answer> getAnswerByQID(\n @WebParam(name = \"qid\", targetNamespace = \"\")\n int qid);\n\n /**\n * \n * @param questionId\n * @param content\n * @param token\n * @return\n * returns int\n * @throws ParseException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"createAnswer\", targetNamespace = \"http://AnswerModel/\", className = \"answermodel.CreateAnswer\")\n @ResponseWrapper(localName = \"createAnswerResponse\", targetNamespace = \"http://AnswerModel/\", className = \"answermodel.CreateAnswerResponse\")\n @Action(input = \"http://AnswerModel/AnswerWS/createAnswerRequest\", output = \"http://AnswerModel/AnswerWS/createAnswerResponse\", fault = {\n @FaultAction(className = ParseException_Exception.class, value = \"http://AnswerModel/AnswerWS/createAnswer/Fault/ParseException\")\n })\n public int createAnswer(\n @WebParam(name = \"token\", targetNamespace = \"\")\n String token,\n @WebParam(name = \"question_id\", targetNamespace = \"\")\n int questionId,\n @WebParam(name = \"content\", targetNamespace = \"\")\n String content)\n throws ParseException_Exception\n ;\n\n /**\n * \n * @param stat\n * @param userid\n * @param aid\n * @param token\n * @return\n * returns int\n * @throws ParseException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"voteAnswer\", targetNamespace = \"http://AnswerModel/\", className = \"answermodel.VoteAnswer\")\n @ResponseWrapper(localName = \"voteAnswerResponse\", targetNamespace = \"http://AnswerModel/\", className = \"answermodel.VoteAnswerResponse\")\n @Action(input = \"http://AnswerModel/AnswerWS/voteAnswerRequest\", output = \"http://AnswerModel/AnswerWS/voteAnswerResponse\", fault = {\n @FaultAction(className = ParseException_Exception.class, value = \"http://AnswerModel/AnswerWS/voteAnswer/Fault/ParseException\")\n })\n public int voteAnswer(\n @WebParam(name = \"userid\", targetNamespace = \"\")\n int userid,\n @WebParam(name = \"aid\", targetNamespace = \"\")\n int aid,\n @WebParam(name = \"stat\", targetNamespace = \"\")\n int stat,\n @WebParam(name = \"token\", targetNamespace = \"\")\n String token)\n throws ParseException_Exception\n ;\n\n}", "@WebService(targetNamespace = \"http://cxf.poc.ideo.com/\", name = \"OperationService\")\n@XmlSeeAlso({ObjectFactory.class})\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\npublic interface OperationService {\n\n @WebResult(name = \"additionResponse\", targetNamespace = \"http://cxf.poc.ideo.com/\", partName = \"additionResponse\")\n @WebMethod\n public AdditionResponse addition(\n @WebParam(partName = \"additionRequest\", name = \"additionRequest\", targetNamespace = \"http://cxf.poc.ideo.com/\")\n AdditionRequest additionRequest\n );\n}", "@WebService(name = \"Authentication\", targetNamespace = \"urn:authws.services.ecm.opentext.com\")\r\n@XmlSeeAlso({\r\n com.opentext.ecm.api.ObjectFactory.class,\r\n com.opentext.ecm.services.authws.ObjectFactory.class\r\n})\r\npublic interface Authentication {\r\n\r\n\r\n /**\r\n * \r\n * @return\r\n * returns java.lang.String\r\n * @throws AuthenticationException_Exception\r\n */\r\n @WebMethod(operationName = \"GetResourceId\")\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"GetResourceId\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.GetResourceId\")\r\n @ResponseWrapper(localName = \"GetResourceIdResponse\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.GetResourceIdResponse\")\r\n public String getResourceId()\r\n throws AuthenticationException_Exception\r\n ;\r\n\r\n /**\r\n * \r\n * @param resourceId\r\n * @param username\r\n * @return\r\n * returns java.lang.String\r\n * @throws AuthenticationException_Exception\r\n */\r\n @WebMethod(operationName = \"GetTicketForUser\")\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"GetTicketForUser\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.GetTicketForUser\")\r\n @ResponseWrapper(localName = \"GetTicketForUserResponse\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.GetTicketForUserResponse\")\r\n public String getTicketForUser(\r\n @WebParam(name = \"username\", targetNamespace = \"\")\r\n String username,\r\n @WebParam(name = \"resourceId\", targetNamespace = \"\")\r\n String resourceId)\r\n throws AuthenticationException_Exception\r\n ;\r\n\r\n /**\r\n * \r\n * @param username\r\n * @param password\r\n * @return\r\n * returns java.lang.String\r\n * @throws AuthenticationException_Exception\r\n */\r\n @WebMethod(operationName = \"Authenticate\")\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"Authenticate\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.Authenticate\")\r\n @ResponseWrapper(localName = \"AuthenticateResponse\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.AuthenticateResponse\")\r\n public String authenticate(\r\n @WebParam(name = \"username\", targetNamespace = \"\")\r\n String username,\r\n @WebParam(name = \"password\", targetNamespace = \"\")\r\n String password)\r\n throws AuthenticationException_Exception\r\n ;\r\n\r\n /**\r\n * \r\n * @return\r\n * returns java.lang.String\r\n * @throws AuthenticationException_Exception\r\n */\r\n @WebMethod(operationName = \"AuthenticateCurrentUser\")\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"AuthenticateCurrentUser\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.AuthenticateCurrentUser\")\r\n @ResponseWrapper(localName = \"AuthenticateCurrentUserResponse\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.AuthenticateCurrentUserResponse\")\r\n public String authenticateCurrentUser()\r\n throws AuthenticationException_Exception\r\n ;\r\n\r\n /**\r\n * \r\n * @param code\r\n * @return\r\n * returns java.lang.String\r\n * @throws AuthenticationException_Exception\r\n */\r\n @WebMethod(operationName = \"AuthenticateCurrentUserWithCode\")\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"AuthenticateCurrentUserWithCode\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.AuthenticateCurrentUserWithCode\")\r\n @ResponseWrapper(localName = \"AuthenticateCurrentUserWithCodeResponse\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.AuthenticateCurrentUserWithCodeResponse\")\r\n public String authenticateCurrentUserWithCode(\r\n @WebParam(name = \"code\", targetNamespace = \"\")\r\n String code)\r\n throws AuthenticationException_Exception\r\n ;\r\n\r\n /**\r\n * \r\n * @param username\r\n * @param code\r\n * @param password\r\n * @return\r\n * returns java.lang.String\r\n * @throws AuthenticationException_Exception\r\n */\r\n @WebMethod(operationName = \"AuthenticateWithPasswordAndCode\")\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"AuthenticateWithPasswordAndCode\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.AuthenticateWithPasswordAndCode\")\r\n @ResponseWrapper(localName = \"AuthenticateWithPasswordAndCodeResponse\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.AuthenticateWithPasswordAndCodeResponse\")\r\n public String authenticateWithPasswordAndCode(\r\n @WebParam(name = \"username\", targetNamespace = \"\")\r\n String username,\r\n @WebParam(name = \"password\", targetNamespace = \"\")\r\n String password,\r\n @WebParam(name = \"code\", targetNamespace = \"\")\r\n String code)\r\n throws AuthenticationException_Exception\r\n ;\r\n\r\n /**\r\n * \r\n * @param username\r\n * @param token\r\n * @return\r\n * returns java.lang.String\r\n * @throws AuthenticationException_Exception\r\n */\r\n @WebMethod(operationName = \"AuthenticateWithToken\")\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"AuthenticateWithToken\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.AuthenticateWithToken\")\r\n @ResponseWrapper(localName = \"AuthenticateWithTokenResponse\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.AuthenticateWithTokenResponse\")\r\n public String authenticateWithToken(\r\n @WebParam(name = \"username\", targetNamespace = \"\")\r\n String username,\r\n @WebParam(name = \"token\", targetNamespace = \"\")\r\n byte[] token)\r\n throws AuthenticationException_Exception\r\n ;\r\n\r\n /**\r\n * \r\n * @param username\r\n * @param token\r\n * @param code\r\n * @return\r\n * returns java.lang.String\r\n * @throws AuthenticationException_Exception\r\n */\r\n @WebMethod(operationName = \"AuthenticateWithTokenAndCode\")\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"AuthenticateWithTokenAndCode\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.AuthenticateWithTokenAndCode\")\r\n @ResponseWrapper(localName = \"AuthenticateWithTokenAndCodeResponse\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.AuthenticateWithTokenAndCodeResponse\")\r\n public String authenticateWithTokenAndCode(\r\n @WebParam(name = \"username\", targetNamespace = \"\")\r\n String username,\r\n @WebParam(name = \"token\", targetNamespace = \"\")\r\n byte[] token,\r\n @WebParam(name = \"code\", targetNamespace = \"\")\r\n String code)\r\n throws AuthenticationException_Exception\r\n ;\r\n\r\n}", "@WebService(name = \"ProductoService\", targetNamespace = \"http://ws.jwsclase2_2_1/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface ProductoService {\n\n\n /**\n * \n * @return\n * returns jwsclase2_2_2.wsresponse.Producto\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getProducto\", targetNamespace = \"http://ws.jwsclase2_2_1/\", className = \"jwsclase2_2_2.wsresponse.GetProducto\")\n @ResponseWrapper(localName = \"getProductoResponse\", targetNamespace = \"http://ws.jwsclase2_2_1/\", className = \"jwsclase2_2_2.wsresponse.GetProductoResponse\")\n @Action(input = \"http://ws.jwsclase2_2_1/ProductoService/getProductoRequest\", output = \"http://ws.jwsclase2_2_1/ProductoService/getProductoResponse\")\n public Producto getProducto();\n\n}", "@WebService(targetNamespace = \"http://www.pm.company.com/service/Pawel/\", name = \"Pawel\")\n@XmlSeeAlso({com.company.pm.schema.pawelschema.ObjectFactory.class})\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\npublic interface Pawel {\n\n @WebResult(name = \"firstOperationResponse\", targetNamespace = \"http://www.pm.company.com/schema/PawelSchema\", partName = \"firstOperationResponse\")\n @WebMethod(operationName = \"FirstOperation\", action = \"http://www.pm.company.com/service/Pawel/FirstOperation\")\n public com.company.pm.schema.pawelschema.FirstOperationResponseType firstOperation(\n @WebParam(partName = \"firstOperationRequest\", name = \"firstOperationRequest\", targetNamespace = \"http://www.pm.company.com/schema/PawelSchema\")\n com.company.pm.schema.pawelschema.FirstOperationRequestType firstOperationRequest\n );\n}", "@WebService(name = \"NumberGeneratorServiceSoap\", targetNamespace = \"NS_NumGen\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface NumberGeneratorServiceSoap {\n\n\n /**\n * \n * @param high\n * @param low\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"NS_NumGen/primeRange\")\n @WebResult(name = \"primeRangeResult\", targetNamespace = \"NS_NumGen\")\n @RequestWrapper(localName = \"primeRange\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.PrimeRange\")\n @ResponseWrapper(localName = \"primeRangeResponse\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.PrimeRangeResponse\")\n public String primeRange(\n @WebParam(name = \"low\", targetNamespace = \"NS_NumGen\")\n int low,\n @WebParam(name = \"high\", targetNamespace = \"NS_NumGen\")\n int high);\n\n /**\n * \n * @param high\n * @param low\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"NS_NumGen/compositeRange\")\n @WebResult(name = \"compositeRangeResult\", targetNamespace = \"NS_NumGen\")\n @RequestWrapper(localName = \"compositeRange\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.CompositeRange\")\n @ResponseWrapper(localName = \"compositeRangeResponse\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.CompositeRangeResponse\")\n public String compositeRange(\n @WebParam(name = \"low\", targetNamespace = \"NS_NumGen\")\n int low,\n @WebParam(name = \"high\", targetNamespace = \"NS_NumGen\")\n int high);\n\n /**\n * \n * @param high\n * @param low\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"NS_NumGen/perfectSquaresRange\")\n @WebResult(name = \"perfectSquaresRangeResult\", targetNamespace = \"NS_NumGen\")\n @RequestWrapper(localName = \"perfectSquaresRange\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.PerfectSquaresRange\")\n @ResponseWrapper(localName = \"perfectSquaresRangeResponse\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.PerfectSquaresRangeResponse\")\n public String perfectSquaresRange(\n @WebParam(name = \"low\", targetNamespace = \"NS_NumGen\")\n int low,\n @WebParam(name = \"high\", targetNamespace = \"NS_NumGen\")\n int high);\n\n /**\n * \n * @param high\n * @param low\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"NS_NumGen/fibonacciRange\")\n @WebResult(name = \"fibonacciRangeResult\", targetNamespace = \"NS_NumGen\")\n @RequestWrapper(localName = \"fibonacciRange\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.FibonacciRange\")\n @ResponseWrapper(localName = \"fibonacciRangeResponse\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.FibonacciRangeResponse\")\n public String fibonacciRange(\n @WebParam(name = \"low\", targetNamespace = \"NS_NumGen\")\n int low,\n @WebParam(name = \"high\", targetNamespace = \"NS_NumGen\")\n int high);\n\n /**\n * \n * @param high\n * @param low\n * @param n\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"NS_NumGen/randomNumbers\")\n @WebResult(name = \"randomNumbersResult\", targetNamespace = \"NS_NumGen\")\n @RequestWrapper(localName = \"randomNumbers\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.RandomNumbers\")\n @ResponseWrapper(localName = \"randomNumbersResponse\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.RandomNumbersResponse\")\n public String randomNumbers(\n @WebParam(name = \"low\", targetNamespace = \"NS_NumGen\")\n int low,\n @WebParam(name = \"high\", targetNamespace = \"NS_NumGen\")\n int high,\n @WebParam(name = \"n\", targetNamespace = \"NS_NumGen\")\n int n);\n\n /**\n * \n * @param high\n * @param low\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"NS_NumGen/powersofTwo\")\n @WebResult(name = \"powersofTwoResult\", targetNamespace = \"NS_NumGen\")\n @RequestWrapper(localName = \"powersofTwo\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.PowersofTwo\")\n @ResponseWrapper(localName = \"powersofTwoResponse\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.PowersofTwoResponse\")\n public String powersofTwo(\n @WebParam(name = \"low\", targetNamespace = \"NS_NumGen\")\n int low,\n @WebParam(name = \"high\", targetNamespace = \"NS_NumGen\")\n int high);\n\n /**\n * \n * @param high\n * @param low\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"NS_NumGen/evenRange\")\n @WebResult(name = \"evenRangeResult\", targetNamespace = \"NS_NumGen\")\n @RequestWrapper(localName = \"evenRange\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.EvenRange\")\n @ResponseWrapper(localName = \"evenRangeResponse\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.EvenRangeResponse\")\n public String evenRange(\n @WebParam(name = \"low\", targetNamespace = \"NS_NumGen\")\n int low,\n @WebParam(name = \"high\", targetNamespace = \"NS_NumGen\")\n int high);\n\n /**\n * \n * @param high\n * @param low\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"NS_NumGen/oddRange\")\n @WebResult(name = \"oddRangeResult\", targetNamespace = \"NS_NumGen\")\n @RequestWrapper(localName = \"oddRange\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.OddRange\")\n @ResponseWrapper(localName = \"oddRangeResponse\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.OddRangeResponse\")\n public String oddRange(\n @WebParam(name = \"low\", targetNamespace = \"NS_NumGen\")\n int low,\n @WebParam(name = \"high\", targetNamespace = \"NS_NumGen\")\n int high);\n\n /**\n * \n * @param high\n * @param low\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"NS_NumGen/palindromeRange\")\n @WebResult(name = \"palindromeRangeResult\", targetNamespace = \"NS_NumGen\")\n @RequestWrapper(localName = \"palindromeRange\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.PalindromeRange\")\n @ResponseWrapper(localName = \"palindromeRangeResponse\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.PalindromeRangeResponse\")\n public String palindromeRange(\n @WebParam(name = \"low\", targetNamespace = \"NS_NumGen\")\n int low,\n @WebParam(name = \"high\", targetNamespace = \"NS_NumGen\")\n int high);\n\n}", "@WebService(name = \"BonusOperationWebService\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface BonusOperationWebService {\n\n\n /**\n * \n * @param body\n * @param header\n * @return\n * returns com.sgm.dms.service.agent.ws.bonus.TranformFrznBonusFundResponse\n * @throws SgmErrorFault\n */\n @WebMethod\n @WebResult(name = \"tranformFrznBonusFundResponse\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n public TranformFrznBonusFundResponse tranformFrznBonusFund(\n @WebParam(name = \"tranformFrznBonusFund\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n TranformFrznBonusFund body,\n @WebParam(name = \"SGMCommonHeader\", targetNamespace = \"http://www.saic-gm.com/esb/schemas/common/SGMCommonHeader/v1\", header = true, mode = WebParam.Mode.INOUT, partName = \"header\")\n Holder<SGMCommonHeaderType> header)\n throws SgmErrorFault\n ;\n\n /**\n * \n * @param body\n * @param header\n * @return\n * returns com.sgm.dms.service.agent.ws.bonus.TranformBonusFundCompensationResponse\n * @throws SgmErrorFault\n */\n @WebMethod\n @WebResult(name = \"tranformBonusFundCompensationResponse\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n public TranformBonusFundCompensationResponse tranformBonusFundCompensation(\n @WebParam(name = \"tranformBonusFundCompensation\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n TranformBonusFundCompensation body,\n @WebParam(name = \"SGMCommonHeader\", targetNamespace = \"http://www.saic-gm.com/esb/schemas/common/SGMCommonHeader/v1\", header = true, mode = WebParam.Mode.INOUT, partName = \"header\")\n Holder<SGMCommonHeaderType> header)\n throws SgmErrorFault\n ;\n\n /**\n * \n * @param body\n * @param header\n * @return\n * returns com.sgm.dms.service.agent.ws.bonus.TranformBonusFundResponse\n * @throws SgmErrorFault\n */\n @WebMethod\n @WebResult(name = \"tranformBonusFundResponse\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n public TranformBonusFundResponse tranformBonusFund(\n @WebParam(name = \"tranformBonusFund\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n TranformBonusFund body,\n @WebParam(name = \"SGMCommonHeader\", targetNamespace = \"http://www.saic-gm.com/esb/schemas/common/SGMCommonHeader/v1\", header = true, mode = WebParam.Mode.INOUT, partName = \"header\")\n Holder<SGMCommonHeaderType> header)\n throws SgmErrorFault\n ;\n\n /**\n * \n * @param body\n * @param header\n * @return\n * returns com.sgm.dms.service.agent.ws.bonus.TranformUnFrznBonusFundResponse\n * @throws SgmErrorFault\n */\n @WebMethod\n @WebResult(name = \"tranformUnFrznBonusFundResponse\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n public TranformUnFrznBonusFundResponse tranformUnFrznBonusFund(\n @WebParam(name = \"tranformUnFrznBonusFund\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n TranformUnFrznBonusFund body,\n @WebParam(name = \"SGMCommonHeader\", targetNamespace = \"http://www.saic-gm.com/esb/schemas/common/SGMCommonHeader/v1\", header = true, mode = WebParam.Mode.INOUT, partName = \"header\")\n Holder<SGMCommonHeaderType> header)\n throws SgmErrorFault\n ;\n\n /**\n * \n * @param body\n * @param header\n * @return\n * returns com.sgm.dms.service.agent.ws.bonus.TranformUnFrznBonusFundCompensationResponse\n * @throws SgmErrorFault\n */\n @WebMethod\n @WebResult(name = \"tranformUnFrznBonusFundCompensationResponse\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n public TranformUnFrznBonusFundCompensationResponse tranformUnFrznBonusFundCompensation(\n @WebParam(name = \"tranformUnFrznBonusFundCompensation\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n TranformUnFrznBonusFundCompensation body,\n @WebParam(name = \"SGMCommonHeader\", targetNamespace = \"http://www.saic-gm.com/esb/schemas/common/SGMCommonHeader/v1\", header = true, mode = WebParam.Mode.INOUT, partName = \"header\")\n Holder<SGMCommonHeaderType> header)\n throws SgmErrorFault\n ;\n\n /**\n * \n * @param body\n * @param header\n * @return\n * returns com.sgm.dms.service.agent.ws.bonus.TranformFrznBonusFundCompensationResponse\n * @throws SgmErrorFault\n */\n @WebMethod\n @WebResult(name = \"tranformFrznBonusFundCompensationResponse\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n public TranformFrznBonusFundCompensationResponse tranformFrznBonusFundCompensation(\n @WebParam(name = \"tranformFrznBonusFundCompensation\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n TranformFrznBonusFundCompensation body,\n @WebParam(name = \"SGMCommonHeader\", targetNamespace = \"http://www.saic-gm.com/esb/schemas/common/SGMCommonHeader/v1\", header = true, mode = WebParam.Mode.INOUT, partName = \"header\")\n Holder<SGMCommonHeaderType> header)\n throws SgmErrorFault\n ;\n\n}", "@WebService(targetNamespace = \"http://demo.cxf.com/\", name = \"SampleService\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface SampleService {\n\n @WebMethod\n @RequestWrapper(localName = \"serviceMethod\", targetNamespace = \"http://demo.cxf.com/\", className = \"com.cxf.demo.sample.client.ServiceMethod\")\n @ResponseWrapper(localName = \"serviceMethodResponse\", targetNamespace = \"http://demo.cxf.com/\", className = \"com.cxf.demo.sample.client.ServiceMethodResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public java.lang.String serviceMethod();\n}", "@WebService(name = \"WebServiceEntry\", targetNamespace = \"http://ws.adapter.bsoft.com/\")\n@SOAPBinding(style = SOAPBinding.Style.RPC)\npublic interface WebServiceEntry {\n\n\t/**\n\t * \n\t * @param arg4\n\t * @param arg3\n\t * @param arg2\n\t * @param arg1\n\t * @param arg0\n\t * @return returns java.lang.String\n\t * @throws Exception_Exception\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic String invoke(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1,\n\t\t\t@WebParam(name = \"arg2\", partName = \"arg2\") String arg2,\n\t\t\t@WebParam(name = \"arg3\", partName = \"arg3\") String arg3,\n\t\t\t@WebParam(name = \"arg4\", partName = \"arg4\") StringArray arg4)\n\t\t\tthrows Exception_Exception;\n\n\t/**\n * \n */\n\t@WebMethod\n\tpublic void startWs();\n\n\t/**\n\t * \n\t * @param arg3\n\t * @param arg2\n\t * @param arg1\n\t * @param arg0\n\t * @return returns java.lang.String\n\t * @throws Exception_Exception\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic String transportData(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1,\n\t\t\t@WebParam(name = \"arg2\", partName = \"arg2\") int arg2,\n\t\t\t@WebParam(name = \"arg3\", partName = \"arg3\") String arg3)\n\t\t\tthrows Exception_Exception;\n\n}", "@WebService(name = \"PopuplistDtoServicewsEndpoint\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\")\n@XmlSeeAlso({\n ObjectFactoryPopuplist.class\n})\npublic interface PopuplistDtoServicewsEndpoint {\n\n\n /**\n * \n * @param popuplistDto\n * @return\n * returns org.sepro.parameterweb.serviceapi.PopuplistDto\n */\n @WebMethod\n @WebResult(targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\")\n @RequestWrapper(localName = \"updatePopuplistDtoServicews\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\", className = \"org.sepro.parameterweb.serviceapi.UpdatePopuplistDtoServicews\")\n @ResponseWrapper(localName = \"updatePopuplistDtoServicewsResponse\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\", className = \"org.sepro.parameterweb.serviceapi.UpdatePopuplistDtoServicewsResponse\")\n public PopuplistDto updatePopuplistDtoServicews(\n @WebParam(name = \"popuplistDto\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\")\n PopuplistDto popuplistDto);\n\n /**\n * \n * @param entite\n * @return\n * returns java.util.List<org.sepro.parameterweb.serviceapi.PopuplistDto>\n */\n @WebMethod\n @WebResult(targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\")\n @RequestWrapper(localName = \"searchPopuplistDtoServicews\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\", className = \"org.sepro.parameterweb.serviceapi.SearchPopuplistDtoServicews\")\n @ResponseWrapper(localName = \"searchPopuplistDtoServicewsResponse\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\", className = \"org.sepro.parameterweb.serviceapi.SearchPopuplistDtoServicewsResponse\")\n public List<PopuplistDto> searchPopuplistDtoServicews(\n @WebParam(name = \"entite\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\")\n String entite);\n\n /**\n * \n * @return\n * returns java.util.List<org.sepro.parameterweb.serviceapi.PopuplistDto>\n */\n @WebMethod\n @WebResult(targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\")\n @RequestWrapper(localName = \"getAllPopuplistDtoServicews\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\", className = \"org.sepro.parameterweb.serviceapi.GetAllPopuplistDtoServicews\")\n @ResponseWrapper(localName = \"getAllPopuplistDtoServicewsResponse\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\", className = \"org.sepro.parameterweb.serviceapi.GetAllPopuplistDtoServicewsResponse\")\n public List<PopuplistDto> getAllPopuplistDtoServicews();\n\n /**\n * \n * @param popuplistDto\n * @return\n * returns org.sepro.parameterweb.serviceapi.PopuplistDto\n */\n @WebMethod\n @WebResult(targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\")\n @RequestWrapper(localName = \"createPopuplistDtoServicews\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\", className = \"org.sepro.parameterweb.serviceapi.CreatePopuplistDtoServicews\")\n @ResponseWrapper(localName = \"createPopuplistDtoServicewsResponse\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\", className = \"org.sepro.parameterweb.serviceapi.CreatePopuplistDtoServicewsResponse\")\n public PopuplistDto createPopuplistDtoServicews(\n @WebParam(name = \"popuplistDto\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\")\n PopuplistDto popuplistDto);\n\n /**\n * \n * @param popuplistDto\n */\n @WebMethod\n @RequestWrapper(localName = \"deletePopuplistDtoServicews\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\", className = \"org.sepro.parameterweb.serviceapi.DeletePopuplistDtoServicews\")\n @ResponseWrapper(localName = \"deletePopuplistDtoServicewsResponse\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\", className = \"org.sepro.parameterweb.serviceapi.DeletePopuplistDtoServicewsResponse\")\n public void deletePopuplistDtoServicews(\n @WebParam(name = \"popuplistDto\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\")\n PopuplistDto popuplistDto);\n\n}", "@WebService(name = \"AppWebService\", targetNamespace = \"http://pingan.cn/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface AppWebService {\n\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n * @throws JBOException_Exception\n */\n @WebMethod(action = \"http://pingan.cn/getOrder\")\n @WebResult(name = \"faceCompareResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"faceCompare\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.FaceCompare\")\n @ResponseWrapper(localName = \"faceCompareResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.FaceCompareResponse\")\n public String faceCompare(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception, JBOException_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n * @throws JBOException_Exception\n */\n @WebMethod(action = \"http://pingan.cn/getOrder\")\n @WebResult(name = \"getReturngoodsResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"getReturngoods\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.GetReturngoods\")\n @ResponseWrapper(localName = \"getReturngoodsResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.GetReturngoodsResponse\")\n public String getReturngoods(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception, JBOException_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n */\n @WebMethod(action = \"http://pingan.cn/boundBankcard\")\n @WebResult(name = \"boundBankcardResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"boundBankcard\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.BoundBankcard\")\n @ResponseWrapper(localName = \"boundBankcardResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.BoundBankcardResponse\")\n public String boundBankcard(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n */\n @WebMethod(action = \"http://pingan.cn/returnBtvOrder\")\n @WebResult(name = \"returnBtvOrderResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"returnBtvOrder\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.ReturnBtvOrder\")\n @ResponseWrapper(localName = \"returnBtvOrderResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.ReturnBtvOrderResponse\")\n public String returnBtvOrder(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n * @throws JBOException_Exception\n */\n @WebMethod(action = \"http://pingan.cn/getOrder\")\n @WebResult(name = \"bankcardResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"bankcard\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.Bankcard\")\n @ResponseWrapper(localName = \"bankcardResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.BankcardResponse\")\n public String bankcard(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception, JBOException_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n */\n @WebMethod(action = \"http://pingan.cn/updateLogisticsinfo\")\n @WebResult(name = \"updateLogisticsinfoResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"updateLogisticsinfo\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.UpdateLogisticsinfo\")\n @ResponseWrapper(localName = \"updateLogisticsinfoResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.UpdateLogisticsinfoResponse\")\n public String updateLogisticsinfo(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n * @throws JBOException_Exception\n */\n @WebMethod(action = \"http://pingan.cn/getOrder\")\n @WebResult(name = \"faceDetectResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"faceDetect\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.FaceDetect\")\n @ResponseWrapper(localName = \"faceDetectResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.FaceDetectResponse\")\n public String faceDetect(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception, JBOException_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws SQLException_Exception\n */\n @WebMethod(action = \"http://pingan.cn/getCreditline\")\n @WebResult(name = \"getCreditlineResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"getCreditline\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.GetCreditline\")\n @ResponseWrapper(localName = \"getCreditlineResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.GetCreditlineResponse\")\n public String getCreditline(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws SQLException_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n * @throws JBOException_Exception\n */\n @WebMethod(action = \"http://pingan.cn/getOrder\")\n @WebResult(name = \"signCheckResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"signCheck\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.SignCheck\")\n @ResponseWrapper(localName = \"signCheckResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.SignCheckResponse\")\n public String signCheck(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception, JBOException_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n */\n @WebMethod(action = \"http://pingan.cn/repayPlansSelect\")\n @WebResult(name = \"repayPlansSelectResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"repayPlansSelect\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.RepayPlansSelect\")\n @ResponseWrapper(localName = \"repayPlansSelectResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.RepayPlansSelectResponse\")\n public String repayPlansSelect(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n */\n @WebMethod(action = \"http://pingan.cn/repayPlansQuery\")\n @WebResult(name = \"repayPlansQueryResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"repayPlansQuery\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.RepayPlansQuery\")\n @ResponseWrapper(localName = \"repayPlansQueryResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.RepayPlansQueryResponse\")\n public String repayPlansQuery(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n * @throws JBOException_Exception\n */\n @WebMethod(action = \"http://pingan.cn/getOrder\")\n @WebResult(name = \"queryPhoneZHHSResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"queryPhoneZHHS\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.QueryPhoneZHHS\")\n @ResponseWrapper(localName = \"queryPhoneZHHSResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.QueryPhoneZHHSResponse\")\n public String queryPhoneZHHS(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception, JBOException_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n */\n @WebMethod(action = \"http://pingan.cn/repayPlansTrialResult\")\n @WebResult(name = \"repayPlansTrialResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"repayPlansTrial\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.RepayPlansTrial\")\n @ResponseWrapper(localName = \"repayPlansTrialResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.RepayPlansTrialResponse\")\n public String repayPlansTrial(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n * @throws JBOException_Exception\n */\n @WebMethod(operationName = \"Idcard\", action = \"http://pingan.cn/getOrder\")\n @WebResult(name = \"IdcardResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"Idcard\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.Idcard\")\n @ResponseWrapper(localName = \"IdcardResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.IdcardResponse\")\n public String idcard(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception, JBOException_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n * @throws JBOException_Exception\n */\n @WebMethod(action = \"http://pingan.cn/getOrder\")\n @WebResult(name = \"getOrderResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"getOrder\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.GetOrder\")\n @ResponseWrapper(localName = \"getOrderResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.GetOrderResponse\")\n public String getOrder(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception, JBOException_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n */\n @WebMethod(action = \"http://pingan.cn/registerBtvOrder\")\n @WebResult(name = \"registerBtvOrderResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"registerBtvOrder\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.RegisterBtvOrder\")\n @ResponseWrapper(localName = \"registerBtvOrderResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.RegisterBtvOrderResponse\")\n public String registerBtvOrder(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception\n ;\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n * @throws JBOException_Exception\n */\n @WebMethod(action = \"http://pingan.cn/pubTransLog\")\n @WebResult(name = \"pubTransLogResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"pubTransLog\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.PubTransLog\")\n @ResponseWrapper(localName = \"pubTransLogResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.PubTransLogResponse\")\n public String pubTransLog(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception, JBOException_Exception\n ;\n\n}", "@WebService(name = \"CardWS\", targetNamespace = \"http://service.cbp.ws.cbp1.com/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface CardWS {\n\n\n /**\n * \n * @param plastic\n * @param fechaCorte\n * @param fechaAsignacion\n * @param client\n * @param canal\n * @return\n * returns com.cbp1.ws.cbp.service.RespuestaDTO\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"assignCardToClientWS\", targetNamespace = \"http://service.cbp.ws.cbp1.com/\", className = \"com.cbp1.ws.cbp.service.AssignCardToClientWS\")\n @ResponseWrapper(localName = \"assignCardToClientWSResponse\", targetNamespace = \"http://service.cbp.ws.cbp1.com/\", className = \"com.cbp1.ws.cbp.service.AssignCardToClientWSResponse\")\n @Action(input = \"http://service.cbp.ws.cbp1.com/CardWS/assignCardToClientWSRequest\", output = \"http://service.cbp.ws.cbp1.com/CardWS/assignCardToClientWSResponse\")\n public RespuestaDTO assignCardToClientWS(\n @WebParam(name = \"client\", targetNamespace = \"\")\n Client client,\n @WebParam(name = \"plastic\", targetNamespace = \"\")\n Plastic plastic,\n @WebParam(name = \"fechaCorte\", targetNamespace = \"\")\n String fechaCorte,\n @WebParam(name = \"fechaAsignacion\", targetNamespace = \"\")\n String fechaAsignacion,\n @WebParam(name = \"canal\", targetNamespace = \"\")\n String canal);\n\n /**\n * \n * @param client\n * @param canal\n * @param status\n * @return\n * returns com.cbp1.ws.cbp.service.RespuestaDTO\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"cancelCardWS\", targetNamespace = \"http://service.cbp.ws.cbp1.com/\", className = \"com.cbp1.ws.cbp.service.CancelCardWS\")\n @ResponseWrapper(localName = \"cancelCardWSResponse\", targetNamespace = \"http://service.cbp.ws.cbp1.com/\", className = \"com.cbp1.ws.cbp.service.CancelCardWSResponse\")\n @Action(input = \"http://service.cbp.ws.cbp1.com/CardWS/cancelCardWSRequest\", output = \"http://service.cbp.ws.cbp1.com/CardWS/cancelCardWSResponse\")\n public RespuestaDTO cancelCardWS(\n @WebParam(name = \"client\", targetNamespace = \"\")\n Client client,\n @WebParam(name = \"status\", targetNamespace = \"\")\n String status,\n @WebParam(name = \"canal\", targetNamespace = \"\")\n String canal);\n\n /**\n * \n * @param plasticNumber\n * @return\n * returns com.cbp1.ws.cbp.service.Plastic\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"consultPlasticByNumberWS\", targetNamespace = \"http://service.cbp.ws.cbp1.com/\", className = \"com.cbp1.ws.cbp.service.ConsultPlasticByNumberWS\")\n @ResponseWrapper(localName = \"consultPlasticByNumberWSResponse\", targetNamespace = \"http://service.cbp.ws.cbp1.com/\", className = \"com.cbp1.ws.cbp.service.ConsultPlasticByNumberWSResponse\")\n @Action(input = \"http://service.cbp.ws.cbp1.com/CardWS/consultPlasticByNumberWSRequest\", output = \"http://service.cbp.ws.cbp1.com/CardWS/consultPlasticByNumberWSResponse\")\n public Plastic consultPlasticByNumberWS(\n @WebParam(name = \"plasticNumber\", targetNamespace = \"\")\n String plasticNumber);\n\n}", "@WebService(targetNamespace = \"http://ws.jinouts.org/\", name = \"AndProxyClientRespTestWS\")\r\n@XmlSeeAlso({ObjectFactory.class})\r\npublic interface AndProxyClientRespTestWS {\r\n\r\n @WebResult(name = \"return\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"testPrimitiveResponse\", targetNamespace = \"http://ws.jinouts.org/\", className = \"org.jinouts.ws.TestPrimitiveResponse\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"testPrimitiveResponseResponse\", targetNamespace = \"http://ws.jinouts.org/\", className = \"org.jinouts.ws.TestPrimitiveResponseResponse\")\r\n public java.lang.String testPrimitiveResponse(\r\n @WebParam(name = \"user\", targetNamespace = \"\")\r\n java.lang.String user,\r\n @WebParam(name = \"pass\", targetNamespace = \"\")\r\n java.lang.String pass\r\n );\r\n\r\n @WebResult(name = \"return\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"testComplexResponseObject\", targetNamespace = \"http://ws.jinouts.org/\", className = \"org.jinouts.ws.TestComplexResponseObject\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"testComplexResponseObjectResponse\", targetNamespace = \"http://ws.jinouts.org/\", className = \"org.jinouts.ws.TestComplexResponseObjectResponse\")\r\n public org.jinouts.ws.TestComplexResponse testComplexResponseObject(\r\n @WebParam(name = \"user\", targetNamespace = \"\")\r\n java.lang.String user\r\n );\r\n\r\n @WebResult(name = \"return\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"testListResponse\", targetNamespace = \"http://ws.jinouts.org/\", className = \"org.jinouts.ws.TestListResponse\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"testListResponseResponse\", targetNamespace = \"http://ws.jinouts.org/\", className = \"org.jinouts.ws.TestListResponseResponse\")\r\n public java.util.List<java.lang.String> testListResponse(\r\n @WebParam(name = \"user\", targetNamespace = \"\")\r\n java.lang.String user\r\n );\r\n\r\n @WebResult(name = \"return\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"testDateResponse\", targetNamespace = \"http://ws.jinouts.org/\", className = \"org.jinouts.ws.TestDateResponse\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"testDateResponseResponse\", targetNamespace = \"http://ws.jinouts.org/\", className = \"org.jinouts.ws.TestDateResponseResponse\")\r\n public javax.xml.datatype.XMLGregorianCalendar testDateResponse(\r\n @WebParam(name = \"user\", targetNamespace = \"\")\r\n java.lang.String user\r\n );\r\n\r\n @WebResult(name = \"return\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"testListOfComplexResponseObject\", targetNamespace = \"http://ws.jinouts.org/\", className = \"org.jinouts.ws.TestListOfComplexResponseObject\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"testListOfComplexResponseObjectResponse\", targetNamespace = \"http://ws.jinouts.org/\", className = \"org.jinouts.ws.TestListOfComplexResponseObjectResponse\")\r\n public java.util.List<org.jinouts.ws.TestComplexResponse> testListOfComplexResponseObject(\r\n @WebParam(name = \"user\", targetNamespace = \"\")\r\n java.lang.String user\r\n );\r\n\r\n @WebResult(name = \"return\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"testArrayResponse\", targetNamespace = \"http://ws.jinouts.org/\", className = \"org.jinouts.ws.TestArrayResponse\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"testArrayResponseResponse\", targetNamespace = \"http://ws.jinouts.org/\", className = \"org.jinouts.ws.TestArrayResponseResponse\")\r\n public java.util.List<java.lang.String> testArrayResponse(\r\n @WebParam(name = \"user\", targetNamespace = \"\")\r\n java.lang.String user\r\n );\r\n\r\n @WebResult(name = \"return\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"testListOfObjResponse\", targetNamespace = \"http://ws.jinouts.org/\", className = \"org.jinouts.ws.TestListOfObjResponse\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"testListOfObjResponseResponse\", targetNamespace = \"http://ws.jinouts.org/\", className = \"org.jinouts.ws.TestListOfObjResponseResponse\")\r\n public java.util.List<org.jinouts.ws.MbrDetail> testListOfObjResponse(\r\n @WebParam(name = \"user\", targetNamespace = \"\")\r\n java.lang.String user\r\n );\r\n}", "@WebService(name = \"GetUser\", targetNamespace = \"http://Eshan/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface GetUser {\n\n\n /**\n * \n * @param userID\n * @return\n * returns java.util.List<java.lang.Object>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getUser\", targetNamespace = \"http://Eshan/\", className = \"eshan.GetUser_Type\")\n @ResponseWrapper(localName = \"getUserResponse\", targetNamespace = \"http://Eshan/\", className = \"eshan.GetUserResponse\")\n @Action(input = \"http://Eshan/GetUser/getUserRequest\", output = \"http://Eshan/GetUser/getUserResponse\")\n public List<Object> getUser(\n @WebParam(name = \"UserID\", targetNamespace = \"\")\n int userID);\n\n}", "@WebService(name = \"PaymentMgmtService\",\n targetNamespace = \"http://assessor.lacounty.gov/amp/wsdl/ao/PaymentMgmtService\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({ ObjectFactory.class })\npublic interface PaymentMgmtService {\n\n\n /**\n *\n * @param request\n * @return\n * returns gov.laca.amp.proxy.soap.pmtmgmtservice.client.gen.RetrievePaymentHistoryResponse\n * @throws FaultMessage\n */\n @WebMethod(operationName = \"RetrievePaymentHistory\", action = \"RetrievePaymentHistory\")\n @WebResult(name = \"RetrievePaymentHistoryResponse\",\n targetNamespace = \"http://assessor.lacounty.gov/amp/xsd/ao/RetrievePaymentHistory\", partName = \"reply\")\n public RetrievePaymentHistoryResponse retrievePaymentHistory(@WebParam(name = \"RetrievePaymentHistoryRequest\",\n targetNamespace =\n \"http://assessor.lacounty.gov/amp/xsd/ao/RetrievePaymentHistory\",\n partName = \"request\")\n RetrievePaymentHistoryRequest request) throws FaultMessage;\n\n /**\n *\n * @param request\n * @return\n * returns gov.laca.amp.proxy.soap.pmtmgmtservice.client.gen.RetrieveSTRSummaryResponse\n * @throws FaultMessage\n */\n @WebMethod(operationName = \"RetrieveSTRSummary\", action = \"RetrieveSTRSummary\")\n @WebResult(name = \"RetrieveSTRSummaryResponse\",\n targetNamespace = \"http://assessor.lacounty.gov/amp/xsd/ao/RetrieveSTRSummary\", partName = \"reply\")\n public RetrieveSTRSummaryResponse retrieveSTRSummary(@WebParam(name = \"RetrieveSTRSummaryRequest\",\n targetNamespace =\n \"http://assessor.lacounty.gov/amp/xsd/ao/RetrieveSTRSummary\",\n partName = \"request\")\n RetrieveSTRSummaryRequest request) throws FaultMessage;\n\n /**\n *\n * @param request\n * @return\n * returns gov.laca.amp.proxy.soap.pmtmgmtservice.client.gen.RetrieveSTRChangeHistoryResponse\n * @throws FaultMessage\n */\n @WebMethod(operationName = \"RetrieveSTRChangeHistory\", action = \"RetrieveSTRChangeHistory\")\n @WebResult(name = \"RetrieveSTRChangeHistoryResponse\",\n targetNamespace = \"http://assessor.lacounty.gov/amp/xsd/ao/RetrieveSTRChangeHistory\", partName = \"reply\")\n public RetrieveSTRChangeHistoryResponse retrieveSTRChangeHistory(@WebParam(name = \"RetrieveSTRChangeHistoryRequest\",\n targetNamespace =\n \"http://assessor.lacounty.gov/amp/xsd/ao/RetrieveSTRChangeHistory\",\n partName = \"request\")\n RetrieveSTRChangeHistoryRequest request) throws FaultMessage;\n\n}", "@WebService(name = \"People\", targetNamespace = \"http://ws.soap.finalproject.introsde/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface People {\n\n\n /**\n * \n * @param person\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"personId\", targetNamespace = \"\")\n @RequestWrapper(localName = \"createPerson\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreatePerson\")\n @ResponseWrapper(localName = \"createPersonResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreatePersonResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/createPersonRequest\", output = \"http://ws.soap.finalproject.introsde/People/createPersonResponse\")\n public int createPerson(\n @WebParam(name = \"person\", targetNamespace = \"\")\n Person person);\n\n /**\n * \n * @param personId\n * @return\n * returns introsde.finalproject.soap.ws.Person\n */\n @WebMethod\n @WebResult(name = \"person\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getPerson\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetPerson\")\n @ResponseWrapper(localName = \"getPersonResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetPersonResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getPersonRequest\", output = \"http://ws.soap.finalproject.introsde/People/getPersonResponse\")\n public Person getPerson(\n @WebParam(name = \"personId\", targetNamespace = \"\")\n int personId);\n\n /**\n * \n * @param person\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"personId\", targetNamespace = \"\")\n @RequestWrapper(localName = \"updatePerson\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdatePerson\")\n @ResponseWrapper(localName = \"updatePersonResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdatePersonResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/updatePersonRequest\", output = \"http://ws.soap.finalproject.introsde/People/updatePersonResponse\")\n public int updatePerson(\n @WebParam(name = \"person\", targetNamespace = \"\")\n Person person);\n\n /**\n * \n * @param personId\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"responsePersonCode\", targetNamespace = \"\")\n @RequestWrapper(localName = \"deletePerson\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeletePerson\")\n @ResponseWrapper(localName = \"deletePersonResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeletePersonResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/deletePersonRequest\", output = \"http://ws.soap.finalproject.introsde/People/deletePersonResponse\")\n public int deletePerson(\n @WebParam(name = \"personId\", targetNamespace = \"\")\n int personId);\n\n /**\n * \n * @return\n * returns introsde.finalproject.soap.ws.ListPersonWrapper\n */\n @WebMethod\n @WebResult(name = \"people\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getPeopleList\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetPeopleList\")\n @ResponseWrapper(localName = \"getPeopleListResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetPeopleListResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getPeopleListRequest\", output = \"http://ws.soap.finalproject.introsde/People/getPeopleListResponse\")\n public ListPersonWrapper getPeopleList();\n\n /**\n * \n * @param personId\n * @return\n * returns introsde.finalproject.soap.ws.ListMeasureWrapper\n */\n @WebMethod\n @WebResult(name = \"currentHealth\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getCurrentHealth\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetCurrentHealth\")\n @ResponseWrapper(localName = \"getCurrentHealthResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetCurrentHealthResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getCurrentHealthRequest\", output = \"http://ws.soap.finalproject.introsde/People/getCurrentHealthResponse\")\n public ListMeasureWrapper getCurrentHealth(\n @WebParam(name = \"personId\", targetNamespace = \"\")\n int personId);\n\n /**\n * \n * @param personId\n * @return\n * returns introsde.finalproject.soap.ws.ListMeasureWrapper\n */\n @WebMethod\n @WebResult(name = \"vitalSigns\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getVitalSigns\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetVitalSigns\")\n @ResponseWrapper(localName = \"getVitalSignsResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetVitalSignsResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getVitalSignsRequest\", output = \"http://ws.soap.finalproject.introsde/People/getVitalSignsResponse\")\n public ListMeasureWrapper getVitalSigns(\n @WebParam(name = \"personId\", targetNamespace = \"\")\n int personId);\n\n /**\n * \n * @param doctor\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"doctorId\", targetNamespace = \"\")\n @RequestWrapper(localName = \"createDoctor\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreateDoctor\")\n @ResponseWrapper(localName = \"createDoctorResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreateDoctorResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/createDoctorRequest\", output = \"http://ws.soap.finalproject.introsde/People/createDoctorResponse\")\n public int createDoctor(\n @WebParam(name = \"doctor\", targetNamespace = \"\")\n Doctor doctor);\n\n /**\n * \n * @param doctorId\n * @return\n * returns introsde.finalproject.soap.ws.Doctor\n */\n @WebMethod\n @WebResult(name = \"doctor\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getDoctor\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetDoctor\")\n @ResponseWrapper(localName = \"getDoctorResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetDoctorResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getDoctorRequest\", output = \"http://ws.soap.finalproject.introsde/People/getDoctorResponse\")\n public Doctor getDoctor(\n @WebParam(name = \"doctorId\", targetNamespace = \"\")\n int doctorId);\n\n /**\n * \n * @param doctor\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"doctorId\", targetNamespace = \"\")\n @RequestWrapper(localName = \"updateDoctor\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdateDoctor\")\n @ResponseWrapper(localName = \"updateDoctorResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdateDoctorResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/updateDoctorRequest\", output = \"http://ws.soap.finalproject.introsde/People/updateDoctorResponse\")\n public int updateDoctor(\n @WebParam(name = \"doctor\", targetNamespace = \"\")\n Doctor doctor);\n\n /**\n * \n * @param doctorId\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"responseDoctorCode\", targetNamespace = \"\")\n @RequestWrapper(localName = \"deleteDoctor\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeleteDoctor\")\n @ResponseWrapper(localName = \"deleteDoctorResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeleteDoctorResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/deleteDoctorRequest\", output = \"http://ws.soap.finalproject.introsde/People/deleteDoctorResponse\")\n public int deleteDoctor(\n @WebParam(name = \"doctorId\", targetNamespace = \"\")\n int doctorId);\n\n /**\n * \n * @param idDoctor\n * @return\n * returns introsde.finalproject.soap.ws.ListPersonWrapper\n */\n @WebMethod\n @WebResult(name = \"patientList\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getPersonByDoctor\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetPersonByDoctor\")\n @ResponseWrapper(localName = \"getPersonByDoctorResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetPersonByDoctorResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getPersonByDoctorRequest\", output = \"http://ws.soap.finalproject.introsde/People/getPersonByDoctorResponse\")\n public ListPersonWrapper getPersonByDoctor(\n @WebParam(name = \"idDoctor\", targetNamespace = \"\")\n int idDoctor);\n\n /**\n * \n * @param familyId\n * @return\n * returns introsde.finalproject.soap.ws.Family\n */\n @WebMethod\n @WebResult(name = \"family\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getFamily\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetFamily\")\n @ResponseWrapper(localName = \"getFamilyResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetFamilyResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getFamilyRequest\", output = \"http://ws.soap.finalproject.introsde/People/getFamilyResponse\")\n public Family getFamily(\n @WebParam(name = \"familyId\", targetNamespace = \"\")\n int familyId);\n\n /**\n * \n * @param idPerson\n * @param reminder\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"reminder\", targetNamespace = \"\")\n @RequestWrapper(localName = \"createReminder\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreateReminder\")\n @ResponseWrapper(localName = \"createReminderResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreateReminderResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/createReminderRequest\", output = \"http://ws.soap.finalproject.introsde/People/createReminderResponse\")\n public int createReminder(\n @WebParam(name = \"reminder\", targetNamespace = \"\")\n Reminder reminder,\n @WebParam(name = \"idPerson\", targetNamespace = \"\")\n int idPerson);\n\n /**\n * \n * @param personId\n * @return\n * returns introsde.finalproject.soap.ws.ListReminderWrapper\n */\n @WebMethod\n @WebResult(name = \"reminder\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getReminder\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetReminder\")\n @ResponseWrapper(localName = \"getReminderResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetReminderResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getReminderRequest\", output = \"http://ws.soap.finalproject.introsde/People/getReminderResponse\")\n public ListReminderWrapper getReminder(\n @WebParam(name = \"personId\", targetNamespace = \"\")\n int personId);\n\n /**\n * \n * @param reminder\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"updateReminder\", targetNamespace = \"\")\n @RequestWrapper(localName = \"updateReminder\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdateReminder\")\n @ResponseWrapper(localName = \"updateReminderResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdateReminderResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/updateReminderRequest\", output = \"http://ws.soap.finalproject.introsde/People/updateReminderResponse\")\n public int updateReminder(\n @WebParam(name = \"reminder\", targetNamespace = \"\")\n Reminder reminder);\n\n /**\n * \n * @param idReminder\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"responseReminderCode\", targetNamespace = \"\")\n @RequestWrapper(localName = \"deleteReminder\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeleteReminder\")\n @ResponseWrapper(localName = \"deleteReminderResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeleteReminderResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/deleteReminderRequest\", output = \"http://ws.soap.finalproject.introsde/People/deleteReminderResponse\")\n public int deleteReminder(\n @WebParam(name = \"idReminder\", targetNamespace = \"\")\n int idReminder);\n\n /**\n * \n * @param idPerson\n * @param target\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"targets\", targetNamespace = \"\")\n @RequestWrapper(localName = \"createTarget\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreateTarget\")\n @ResponseWrapper(localName = \"createTargetResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreateTargetResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/createTargetRequest\", output = \"http://ws.soap.finalproject.introsde/People/createTargetResponse\")\n public int createTarget(\n @WebParam(name = \"target\", targetNamespace = \"\")\n Target target,\n @WebParam(name = \"idPerson\", targetNamespace = \"\")\n int idPerson);\n\n /**\n * \n * @param personId\n * @return\n * returns introsde.finalproject.soap.ws.ListTargetWrapper\n */\n @WebMethod\n @WebResult(name = \"targets\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getTargetList\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetTargetList\")\n @ResponseWrapper(localName = \"getTargetListResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetTargetListResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getTargetListRequest\", output = \"http://ws.soap.finalproject.introsde/People/getTargetListResponse\")\n public ListTargetWrapper getTargetList(\n @WebParam(name = \"personId\", targetNamespace = \"\")\n int personId);\n\n /**\n * \n * @param target\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"targetId\", targetNamespace = \"\")\n @RequestWrapper(localName = \"updateTarget\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdateTarget\")\n @ResponseWrapper(localName = \"updateTargetResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdateTargetResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/updateTargetRequest\", output = \"http://ws.soap.finalproject.introsde/People/updateTargetResponse\")\n public int updateTarget(\n @WebParam(name = \"target\", targetNamespace = \"\")\n Target target);\n\n /**\n * \n * @param idTarget\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"responseTargetCode\", targetNamespace = \"\")\n @RequestWrapper(localName = \"deleteTarget\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeleteTarget\")\n @ResponseWrapper(localName = \"deleteTargetResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeleteTargetResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/deleteTargetRequest\", output = \"http://ws.soap.finalproject.introsde/People/deleteTargetResponse\")\n public int deleteTarget(\n @WebParam(name = \"idTarget\", targetNamespace = \"\")\n int idTarget);\n\n /**\n * \n * @param idMeasureDef\n * @param personId\n * @return\n * returns introsde.finalproject.soap.ws.ListTargetWrapper\n */\n @WebMethod\n @WebResult(name = \"targets\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getTarget\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetTarget\")\n @ResponseWrapper(localName = \"getTargetResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetTargetResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getTargetRequest\", output = \"http://ws.soap.finalproject.introsde/People/getTargetResponse\")\n public ListTargetWrapper getTarget(\n @WebParam(name = \"personId\", targetNamespace = \"\")\n int personId,\n @WebParam(name = \"idMeasureDef\", targetNamespace = \"\")\n int idMeasureDef);\n\n /**\n * \n * @param measure\n * @param idPerson\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"measure\", targetNamespace = \"\")\n @RequestWrapper(localName = \"createMeasure\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreateMeasure\")\n @ResponseWrapper(localName = \"createMeasureResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreateMeasureResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/createMeasureRequest\", output = \"http://ws.soap.finalproject.introsde/People/createMeasureResponse\")\n public int createMeasure(\n @WebParam(name = \"measure\", targetNamespace = \"\")\n Measure measure,\n @WebParam(name = \"idPerson\", targetNamespace = \"\")\n int idPerson);\n\n /**\n * \n * @param personId\n * @return\n * returns introsde.finalproject.soap.ws.ListMeasureWrapper\n */\n @WebMethod\n @WebResult(name = \"measure\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getMeasure\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetMeasure\")\n @ResponseWrapper(localName = \"getMeasureResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetMeasureResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getMeasureRequest\", output = \"http://ws.soap.finalproject.introsde/People/getMeasureResponse\")\n public ListMeasureWrapper getMeasure(\n @WebParam(name = \"personId\", targetNamespace = \"\")\n int personId);\n\n /**\n * \n * @param measure\n * @return\n * returns int\n * @throws ParseException_Exception\n */\n @WebMethod\n @WebResult(name = \"idUpdatedMeasure\", targetNamespace = \"\")\n @RequestWrapper(localName = \"updateMeasure\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdateMeasure\")\n @ResponseWrapper(localName = \"updateMeasureResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdateMeasureResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/updateMeasureRequest\", output = \"http://ws.soap.finalproject.introsde/People/updateMeasureResponse\", fault = {\n @FaultAction(className = ParseException_Exception.class, value = \"http://ws.soap.finalproject.introsde/People/updateMeasure/Fault/ParseException\")\n })\n public int updateMeasure(\n @WebParam(name = \"measure\", targetNamespace = \"\")\n Measure measure)\n throws ParseException_Exception\n ;\n\n /**\n * \n * @param idMeasure\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"responseMeasureCode\", targetNamespace = \"\")\n @RequestWrapper(localName = \"deleteMeasure\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeleteMeasure\")\n @ResponseWrapper(localName = \"deleteMeasureResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeleteMeasureResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/deleteMeasureRequest\", output = \"http://ws.soap.finalproject.introsde/People/deleteMeasureResponse\")\n public int deleteMeasure(\n @WebParam(name = \"idMeasure\", targetNamespace = \"\")\n int idMeasure);\n\n /**\n * \n * @return\n * returns introsde.finalproject.soap.ws.ListMeasureDefinitionWrapper\n */\n @WebMethod\n @WebResult(name = \"measureDefinition\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getMeasureDefinition\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetMeasureDefinition\")\n @ResponseWrapper(localName = \"getMeasureDefinitionResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetMeasureDefinitionResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getMeasureDefinitionRequest\", output = \"http://ws.soap.finalproject.introsde/People/getMeasureDefinitionResponse\")\n public ListMeasureDefinitionWrapper getMeasureDefinition();\n\n}", "@WebService(name = \"GodinezLunchPort\", targetNamespace = \"http://www.xmlns.udev.com/GodinezLunch/GL/wsdl/1.0/GodinezLunchWS\")\r\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\r\n@XmlSeeAlso({\r\n ObjectFactory.class\r\n})\r\npublic interface GodinezLunchWS {\r\n\r\n\r\n /**\r\n * \r\n * @param calculateDistanceRequest\r\n * @return\r\n * returns com.mx.udev.godinez.web.types.CalculateDistanceResponse\r\n */\r\n @WebMethod(action = \"http://www.udev.com/GodinezLunchWS/calculateDistance\")\r\n @WebResult(name = \"calculateDistanceResponse\", targetNamespace = \"http://www.xmlns.udev.com/GodinezLunch/GL/datatypes/1.0\", partName = \"calculateDistanceResponse\")\r\n public CalculateDistanceResponse calculateDistance(\r\n @WebParam(name = \"calculateDistanceRequest\", targetNamespace = \"http://www.xmlns.udev.com/GodinezLunch/GL/datatypes/1.0\", partName = \"calculateDistanceRequest\")\r\n CalculateDistanceRequest calculateDistanceRequest);\r\n\r\n /**\r\n * \r\n * @param getNearbyPlacesRequest\r\n * @return\r\n * returns com.mx.udev.godinez.web.types.GetNearbyPlacesResponse\r\n */\r\n @WebMethod(action = \"http://www.udev.com/GodinezLunchWS/getNearbyPlaces\")\r\n @WebResult(name = \"getNearbyPlacesResponse\", targetNamespace = \"http://www.xmlns.udev.com/GodinezLunch/GL/datatypes/1.0\", partName = \"getNearbyPlacesResponse\")\r\n public GetNearbyPlacesResponse getNearbyPlaces(\r\n @WebParam(name = \"getNearbyPlacesRequest\", targetNamespace = \"http://www.xmlns.udev.com/GodinezLunch/GL/datatypes/1.0\", partName = \"getNearbyPlacesRequest\")\r\n GetNearbyPlacesRequest getNearbyPlacesRequest);\r\n\r\n /**\r\n * \r\n * @param getAllCategoriesRequest\r\n * @return\r\n * returns com.mx.udev.godinez.web.types.GetAllCategoriesResponse\r\n */\r\n @WebMethod(action = \"http://www.udev.com/GodinezLunchWS/getAllCategories\")\r\n @WebResult(name = \"getAllCategoriesResponse\", targetNamespace = \"http://www.xmlns.udev.com/GodinezLunch/GL/datatypes/1.0\", partName = \"getAllCategoriesResponse\")\r\n public GetAllCategoriesResponse getAllCategories(\r\n @WebParam(name = \"getAllCategoriesRequest\", targetNamespace = \"http://www.xmlns.udev.com/GodinezLunch/GL/datatypes/1.0\", partName = \"getAllCategoriesRequest\")\r\n GetAllCategoriesRequest getAllCategoriesRequest);\r\n\r\n /**\r\n * \r\n * @param getMyFavoritesRequest\r\n * @return\r\n * returns com.mx.udev.godinez.web.types.GetMyFavoritesResponse\r\n */\r\n @WebMethod(action = \"http://www.udev.com/GodinezLunchWS/getMyFavorites\")\r\n @WebResult(name = \"getMyFavoritesResponse\", targetNamespace = \"http://www.xmlns.udev.com/GodinezLunch/GL/datatypes/1.0\", partName = \"getMyFavoritesResponse\")\r\n public GetMyFavoritesResponse getMyFavorites(\r\n @WebParam(name = \"getMyFavoritesRequest\", targetNamespace = \"http://www.xmlns.udev.com/GodinezLunch/GL/datatypes/1.0\", partName = \"getMyFavoritesRequest\")\r\n GetMyFavoritesRequest getMyFavoritesRequest);\r\n\r\n}", "@WebService(targetNamespace = \"http://www.nortel.com/soa/oi/cct/AddressService\", name = \"AddressService\")\r\n@XmlSeeAlso({com.nortel.soa.oi.cct.types.addressservice.ObjectFactory.class, com.nortel.soa.oi.cct.faults.ObjectFactory.class, com.nortel.soa.oi.cct.types.ObjectFactory.class, org.xmlsoap.schemas.ws._2003._03.addressing.ObjectFactory.class, org.oasis_open.docs.wsrf._2004._06.wsrf_ws_basefaults_1_2_draft_01.ObjectFactory.class})\r\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\r\npublic interface AddressService {\r\n\r\n @WebResult(name = \"GetDoNotDisturbResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetDoNotDisturb\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetDoNotDisturb\")\r\n public com.nortel.soa.oi.cct.types.addressservice.GetDoNotDisturbResponse getDoNotDisturb(\r\n @WebParam(partName = \"parameters\", name = \"GetDoNotDisturbRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws GetDoNotDisturbException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GetCapabilitiesResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetCapabilities\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetCapabilities\")\r\n public com.nortel.soa.oi.cct.types.addressservice.GetAddressCapabilitiesResponse getCapabilities(\r\n @WebParam(partName = \"parameters\", name = \"GetCapabilitiesRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws GetCapabilitiesException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"OriginateResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"Originate\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/Originate\")\r\n public com.nortel.soa.oi.cct.types.addressservice.ContactResponse originate(\r\n @WebParam(partName = \"parameters\", name = \"OriginateRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressOriginateRequest parameters\r\n ) throws OriginateException, SessionNotCreatedException;\r\n\r\n @WebMethod(operationName = \"SetDoNotDisturb\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/SetDoNotDisturb\")\r\n public void setDoNotDisturb(\r\n @WebParam(partName = \"parameters\", name = \"SetDoNotDisturbRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.SetDoNotDisturbRequest parameters\r\n ) throws SessionNotCreatedException, SetDoNotDisturbException;\r\n\r\n @WebResult(name = \"IsForwardedResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"IsForwarded\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/IsForwarded\")\r\n public com.nortel.soa.oi.cct.types.addressservice.IsForwardedResponse isForwarded(\r\n @WebParam(partName = \"parameters\", name = \"IsForwardedRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws IsForwardedException, SessionNotCreatedException;\r\n\r\n @WebMethod(operationName = \"SetForwarding\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/SetForwarding\")\r\n public void setForwarding(\r\n @WebParam(partName = \"parameters\", name = \"SetForwardingRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.SetForwardingRequest parameters\r\n ) throws SetForwardingException, SessionNotCreatedException;\r\n\r\n @WebMethod(operationName = \"CancelForwarding\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/CancelForwarding\")\r\n public void cancelForwarding(\r\n @WebParam(partName = \"parameters\", name = \"CancelForwardingRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws SessionNotCreatedException, CancelForwardingException;\r\n\r\n @WebResult(name = \"GetStateResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetState\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetState\")\r\n public com.nortel.soa.oi.cct.types.addressservice.GetStateResponse getState(\r\n @WebParam(partName = \"parameters\", name = \"GetStateRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws GetStateException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GetTerminalsResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetTerminals\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetTerminals\")\r\n public com.nortel.soa.oi.cct.types.addressservice.GetTerminalsResponse getTerminals(\r\n @WebParam(partName = \"parameters\", name = \"GetTerminalsRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws GetTerminalsException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GetPresenceResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetPresence\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetPresence\")\r\n public com.nortel.soa.oi.cct.types.addressservice.GetPresenceResponse getPresence(\r\n @WebParam(partName = \"parameters\", name = \"GetPresenceRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws GetPresenceException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GetConnectionResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetConnection\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetConnection\")\r\n public com.nortel.soa.oi.cct.types.addressservice.ConnectionResponse getConnection(\r\n @WebParam(partName = \"parameters\", name = \"GetConnectionRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.ConnectionRequest parameters\r\n ) throws GetConnectionException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GetMessageWaitingResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetMessageWaiting\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetMessageWaiting\")\r\n public com.nortel.soa.oi.cct.types.addressservice.GetMessageWaitingResponse getMessageWaiting(\r\n @WebParam(partName = \"parameters\", name = \"GetMessageWaitingRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws GetMessageWaitingException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GetTerminalStatusResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetTerminalStatus\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetTerminalStatus\")\r\n public com.nortel.soa.oi.cct.types.addressservice.GetTerminalStatusResponse getTerminalStatus(\r\n @WebParam(partName = \"parameters\", name = \"GetTerminalStatusRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws SessionNotCreatedException, GetTerminalStatusException;\r\n\r\n @WebMethod(operationName = \"PresenceSubscribe\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/PresenceSubscribe\")\r\n public void presenceSubscribe(\r\n @WebParam(partName = \"parameters\", name = \"PresenceSubscribeRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.PresenceSubscribeRequest parameters\r\n ) throws PresenceSubscribeException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GetConnectionsResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetConnections\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetConnections\")\r\n public com.nortel.soa.oi.cct.types.addressservice.GetConnectionsResponse getConnections(\r\n @WebParam(partName = \"parameters\", name = \"GetConnectionsRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws SessionNotCreatedException, GetConnectionsException;\r\n\r\n @WebResult(name = \"GetVersionResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetVersion\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetVersion\")\r\n public com.nortel.soa.oi.cct.types.GetVersionResponse getVersion(\r\n @WebParam(partName = \"parameters\", name = \"GetVersionRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.GetVersionRequest parameters\r\n ) throws GetVersionException, SessionNotCreatedException;\r\n\r\n @WebMethod(operationName = \"SendInstantMessage\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/SendInstantMessage\")\r\n public void sendInstantMessage(\r\n @WebParam(partName = \"parameters\", name = \"SendInstantMessage\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.InstantMessageRequest parameters\r\n ) throws SessionNotCreatedException, SendInstantMessageException;\r\n\r\n @WebResult(name = \"GetUriResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetUri\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetUri\")\r\n public com.nortel.soa.oi.cct.types.addressservice.GetUriResponse getUri(\r\n @WebParam(partName = \"parameters\", name = \"GetUriRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws GetUriException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GetForwardingResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetForwarding\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetForwarding\")\r\n public com.nortel.soa.oi.cct.types.addressservice.GetForwardingResponse getForwarding(\r\n @WebParam(partName = \"parameters\", name = \"GetForwardingRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws SessionNotCreatedException, GetForwardingException;\r\n\r\n @WebMethod(operationName = \"PresenceUnsubscribe\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/PresenceUnsubscribe\")\r\n public void presenceUnsubscribe(\r\n @WebParam(partName = \"parameters\", name = \"PresenceUnsubscribeRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws PresenceUnsubscribeException, SessionNotCreatedException;\r\n\r\n @WebMethod(operationName = \"SetMessageWaiting\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/SetMessageWaiting\")\r\n public void setMessageWaiting(\r\n @WebParam(partName = \"parameters\", name = \"SetMessageWaitingRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.SetMessageWaitingRequest parameters\r\n ) throws SetMessageWaitingException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"IsMessageWaitingResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"IsMessageWaiting\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/IsMessageWaiting\")\r\n public com.nortel.soa.oi.cct.types.addressservice.IsMessageWaitingResponse isMessageWaiting(\r\n @WebParam(partName = \"parameters\", name = \"IsMessageWaitingRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws IsMessageWaitingException, SessionNotCreatedException;\r\n}", "@WebService(name = \"ConfigurationService\", targetNamespace = \"http://ws.coverity.com/v7\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface ConfigurationService {\n\n\n /**\n * \n * @param message\n * @param usernames\n * @param subject\n * @return\n * returns java.util.List<java.lang.String>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"notify\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.Notify\")\n @ResponseWrapper(localName = \"notifyResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.NotifyResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/notifyRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/notifyResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/notify/Fault/CovRemoteServiceException\")\n })\n public List<String> notify(\n @WebParam(name = \"usernames\", targetNamespace = \"\")\n List<String> usernames,\n @WebParam(name = \"subject\", targetNamespace = \"\")\n String subject,\n @WebParam(name = \"message\", targetNamespace = \"\")\n String message)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @return\n * returns java.util.List<com.coverity.ws.v7.AttributeDefinitionDataObj>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAttributes\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAttributes\")\n @ResponseWrapper(localName = \"getAttributesResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAttributesResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getAttributesRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getAttributesResponse\")\n public List<AttributeDefinitionDataObj> getAttributes();\n\n /**\n * \n * @param attributeDefinitionId\n * @return\n * returns com.coverity.ws.v7.AttributeDefinitionDataObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAttribute\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAttribute\")\n @ResponseWrapper(localName = \"getAttributeResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAttributeResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getAttributeRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getAttributeResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getAttribute/Fault/CovRemoteServiceException\")\n })\n public AttributeDefinitionDataObj getAttribute(\n @WebParam(name = \"attributeDefinitionId\", targetNamespace = \"\")\n AttributeDefinitionIdDataObj attributeDefinitionId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @return\n * returns com.coverity.ws.v7.VersionDataObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getVersion\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetVersion\")\n @ResponseWrapper(localName = \"getVersionResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetVersionResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getVersionRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getVersionResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getVersion/Fault/CovRemoteServiceException\")\n })\n public VersionDataObj getVersion()\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param filterSpec\n * @param pageSpec\n * @return\n * returns com.coverity.ws.v7.GroupsPageDataObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getGroups\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetGroups\")\n @ResponseWrapper(localName = \"getGroupsResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetGroupsResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getGroupsRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getGroupsResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getGroups/Fault/CovRemoteServiceException\")\n })\n public GroupsPageDataObj getGroups(\n @WebParam(name = \"filterSpec\", targetNamespace = \"\")\n GroupFilterSpecDataObj filterSpec,\n @WebParam(name = \"pageSpec\", targetNamespace = \"\")\n PageSpecDataObj pageSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param filterSpec\n * @param pageSpec\n * @return\n * returns com.coverity.ws.v7.UsersPageDataObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getUsers\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetUsers\")\n @ResponseWrapper(localName = \"getUsersResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetUsersResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getUsersRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getUsersResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getUsers/Fault/CovRemoteServiceException\")\n })\n public UsersPageDataObj getUsers(\n @WebParam(name = \"filterSpec\", targetNamespace = \"\")\n UserFilterSpecDataObj filterSpec,\n @WebParam(name = \"pageSpec\", targetNamespace = \"\")\n PageSpecDataObj pageSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param groupId\n * @return\n * returns com.coverity.ws.v7.GroupDataObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getGroup\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetGroup\")\n @ResponseWrapper(localName = \"getGroupResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetGroupResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getGroupRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getGroupResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getGroup/Fault/CovRemoteServiceException\")\n })\n public GroupDataObj getGroup(\n @WebParam(name = \"groupId\", targetNamespace = \"\")\n GroupIdDataObj groupId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param roleId\n * @return\n * returns com.coverity.ws.v7.RoleDataObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getRole\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetRole\")\n @ResponseWrapper(localName = \"getRoleResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetRoleResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getRoleRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getRoleResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getRole/Fault/CovRemoteServiceException\")\n })\n public RoleDataObj getRole(\n @WebParam(name = \"roleId\", targetNamespace = \"\")\n RoleIdDataObj roleId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param attributeDefinitionSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"createAttribute\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateAttribute\")\n @ResponseWrapper(localName = \"createAttributeResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateAttributeResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/createAttributeRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/createAttributeResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/createAttribute/Fault/CovRemoteServiceException\")\n })\n public void createAttribute(\n @WebParam(name = \"attributeDefinitionSpec\", targetNamespace = \"\")\n AttributeDefinitionSpecDataObj attributeDefinitionSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @return\n * returns java.util.List<com.coverity.ws.v7.RoleDataObj>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAllRoles\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAllRoles\")\n @ResponseWrapper(localName = \"getAllRolesResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAllRolesResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getAllRolesRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getAllRolesResponse\")\n public List<RoleDataObj> getAllRoles();\n\n /**\n * \n * @param groupSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"createGroup\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateGroup\")\n @ResponseWrapper(localName = \"createGroupResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateGroupResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/createGroupRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/createGroupResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/createGroup/Fault/CovRemoteServiceException\")\n })\n public void createGroup(\n @WebParam(name = \"groupSpec\", targetNamespace = \"\")\n GroupSpecDataObj groupSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param roleSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"createRole\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateRole\")\n @ResponseWrapper(localName = \"createRoleResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateRoleResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/createRoleRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/createRoleResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/createRole/Fault/CovRemoteServiceException\")\n })\n public void createRole(\n @WebParam(name = \"roleSpec\", targetNamespace = \"\")\n RoleSpecDataObj roleSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param groupId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"deleteGroup\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteGroup\")\n @ResponseWrapper(localName = \"deleteGroupResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteGroupResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/deleteGroupRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/deleteGroupResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/deleteGroup/Fault/CovRemoteServiceException\")\n })\n public void deleteGroup(\n @WebParam(name = \"groupId\", targetNamespace = \"\")\n GroupIdDataObj groupId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param groupSpec\n * @param groupId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"updateGroup\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateGroup\")\n @ResponseWrapper(localName = \"updateGroupResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateGroupResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/updateGroupRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/updateGroupResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/updateGroup/Fault/CovRemoteServiceException\")\n })\n public void updateGroup(\n @WebParam(name = \"groupId\", targetNamespace = \"\")\n GroupIdDataObj groupId,\n @WebParam(name = \"groupSpec\", targetNamespace = \"\")\n GroupSpecDataObj groupSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param roleSpec\n * @param roleId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"updateRole\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateRole\")\n @ResponseWrapper(localName = \"updateRoleResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateRoleResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/updateRoleRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/updateRoleResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/updateRole/Fault/CovRemoteServiceException\")\n })\n public void updateRole(\n @WebParam(name = \"roleId\", targetNamespace = \"\")\n RoleIdDataObj roleId,\n @WebParam(name = \"roleSpec\", targetNamespace = \"\")\n RoleSpecDataObj roleSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param roleId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"deleteRole\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteRole\")\n @ResponseWrapper(localName = \"deleteRoleResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteRoleResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/deleteRoleRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/deleteRoleResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/deleteRole/Fault/CovRemoteServiceException\")\n })\n public void deleteRole(\n @WebParam(name = \"roleId\", targetNamespace = \"\")\n RoleIdDataObj roleId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param streamSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"createStream\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateStream\")\n @ResponseWrapper(localName = \"createStreamResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateStreamResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/createStreamRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/createStreamResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/createStream/Fault/CovRemoteServiceException\")\n })\n public void createStream(\n @WebParam(name = \"streamSpec\", targetNamespace = \"\")\n StreamSpecDataObj streamSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param streamId\n * @param streamSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"updateStream\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateStream\")\n @ResponseWrapper(localName = \"updateStreamResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateStreamResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/updateStreamRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/updateStreamResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/updateStream/Fault/CovRemoteServiceException\")\n })\n public void updateStream(\n @WebParam(name = \"streamId\", targetNamespace = \"\")\n StreamIdDataObj streamId,\n @WebParam(name = \"streamSpec\", targetNamespace = \"\")\n StreamSpecDataObj streamSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param streamId\n * @param onlyIfEmpty\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"deleteStream\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteStream\")\n @ResponseWrapper(localName = \"deleteStreamResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteStreamResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/deleteStreamRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/deleteStreamResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/deleteStream/Fault/CovRemoteServiceException\")\n })\n public void deleteStream(\n @WebParam(name = \"streamId\", targetNamespace = \"\")\n StreamIdDataObj streamId,\n @WebParam(name = \"onlyIfEmpty\", targetNamespace = \"\")\n boolean onlyIfEmpty)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param userSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"createUser\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateUser\")\n @ResponseWrapper(localName = \"createUserResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateUserResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/createUserRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/createUserResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/createUser/Fault/CovRemoteServiceException\")\n })\n public void createUser(\n @WebParam(name = \"userSpec\", targetNamespace = \"\")\n UserSpecDataObj userSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param username\n * @param userSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"updateUser\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateUser\")\n @ResponseWrapper(localName = \"updateUserResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateUserResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/updateUserRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/updateUserResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/updateUser/Fault/CovRemoteServiceException\")\n })\n public void updateUser(\n @WebParam(name = \"username\", targetNamespace = \"\")\n String username,\n @WebParam(name = \"userSpec\", targetNamespace = \"\")\n UserSpecDataObj userSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param username\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"deleteUser\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteUser\")\n @ResponseWrapper(localName = \"deleteUserResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteUserResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/deleteUserRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/deleteUserResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/deleteUser/Fault/CovRemoteServiceException\")\n })\n public void deleteUser(\n @WebParam(name = \"username\", targetNamespace = \"\")\n String username)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param username\n * @return\n * returns java.util.List<com.coverity.ws.v7.PermissionDataObj>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAllIntegrityControlPermissions\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAllIntegrityControlPermissions\")\n @ResponseWrapper(localName = \"getAllIntegrityControlPermissionsResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAllIntegrityControlPermissionsResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getAllIntegrityControlPermissionsRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getAllIntegrityControlPermissionsResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getAllIntegrityControlPermissions/Fault/CovRemoteServiceException\")\n })\n public List<PermissionDataObj> getAllIntegrityControlPermissions(\n @WebParam(name = \"username\", targetNamespace = \"\")\n String username)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param attributeDefinitionId\n * @param attributeDefinitionSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"updateAttribute\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateAttribute\")\n @ResponseWrapper(localName = \"updateAttributeResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateAttributeResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/updateAttributeRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/updateAttributeResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/updateAttribute/Fault/CovRemoteServiceException\")\n })\n public void updateAttribute(\n @WebParam(name = \"attributeDefinitionId\", targetNamespace = \"\")\n AttributeDefinitionIdDataObj attributeDefinitionId,\n @WebParam(name = \"attributeDefinitionSpec\", targetNamespace = \"\")\n AttributeDefinitionSpecDataObj attributeDefinitionSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param attributeDefinitionId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"deleteAttribute\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteAttribute\")\n @ResponseWrapper(localName = \"deleteAttributeResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteAttributeResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/deleteAttributeRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/deleteAttributeResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/deleteAttribute/Fault/CovRemoteServiceException\")\n })\n public void deleteAttribute(\n @WebParam(name = \"attributeDefinitionId\", targetNamespace = \"\")\n AttributeDefinitionIdDataObj attributeDefinitionId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param componentMapSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"createComponentMap\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateComponentMap\")\n @ResponseWrapper(localName = \"createComponentMapResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateComponentMapResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/createComponentMapRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/createComponentMapResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/createComponentMap/Fault/CovRemoteServiceException\")\n })\n public void createComponentMap(\n @WebParam(name = \"componentMapSpec\", targetNamespace = \"\")\n ComponentMapSpecDataObj componentMapSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param componentMapSpec\n * @param componentMapId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"updateComponentMap\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateComponentMap\")\n @ResponseWrapper(localName = \"updateComponentMapResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateComponentMapResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/updateComponentMapRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/updateComponentMapResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/updateComponentMap/Fault/CovRemoteServiceException\")\n })\n public void updateComponentMap(\n @WebParam(name = \"componentMapId\", targetNamespace = \"\")\n ComponentMapIdDataObj componentMapId,\n @WebParam(name = \"componentMapSpec\", targetNamespace = \"\")\n ComponentMapSpecDataObj componentMapSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param componentMapId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"deleteComponentMap\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteComponentMap\")\n @ResponseWrapper(localName = \"deleteComponentMapResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteComponentMapResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/deleteComponentMapRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/deleteComponentMapResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/deleteComponentMap/Fault/CovRemoteServiceException\")\n })\n public void deleteComponentMap(\n @WebParam(name = \"componentMapId\", targetNamespace = \"\")\n ComponentMapIdDataObj componentMapId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param projectSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"createProject\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateProject\")\n @ResponseWrapper(localName = \"createProjectResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateProjectResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/createProjectRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/createProjectResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/createProject/Fault/CovRemoteServiceException\")\n })\n public void createProject(\n @WebParam(name = \"projectSpec\", targetNamespace = \"\")\n ProjectSpecDataObj projectSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param projectSpec\n * @param projectId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"updateProject\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateProject\")\n @ResponseWrapper(localName = \"updateProjectResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateProjectResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/updateProjectRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/updateProjectResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/updateProject/Fault/CovRemoteServiceException\")\n })\n public void updateProject(\n @WebParam(name = \"projectId\", targetNamespace = \"\")\n ProjectIdDataObj projectId,\n @WebParam(name = \"projectSpec\", targetNamespace = \"\")\n ProjectSpecDataObj projectSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param projectId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"deleteProject\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteProject\")\n @ResponseWrapper(localName = \"deleteProjectResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteProjectResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/deleteProjectRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/deleteProjectResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/deleteProject/Fault/CovRemoteServiceException\")\n })\n public void deleteProject(\n @WebParam(name = \"projectId\", targetNamespace = \"\")\n ProjectIdDataObj projectId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param triageStoreSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"createTriageStore\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateTriageStore\")\n @ResponseWrapper(localName = \"createTriageStoreResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateTriageStoreResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/createTriageStoreRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/createTriageStoreResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/createTriageStore/Fault/CovRemoteServiceException\")\n })\n public void createTriageStore(\n @WebParam(name = \"triageStoreSpec\", targetNamespace = \"\")\n TriageStoreSpecDataObj triageStoreSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param triageStoreSpec\n * @param triageStoreId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"updateTriageStore\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateTriageStore\")\n @ResponseWrapper(localName = \"updateTriageStoreResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateTriageStoreResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/updateTriageStoreRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/updateTriageStoreResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/updateTriageStore/Fault/CovRemoteServiceException\")\n })\n public void updateTriageStore(\n @WebParam(name = \"triageStoreId\", targetNamespace = \"\")\n TriageStoreIdDataObj triageStoreId,\n @WebParam(name = \"triageStoreSpec\", targetNamespace = \"\")\n TriageStoreSpecDataObj triageStoreSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param triageStoreId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"deleteTriageStore\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteTriageStore\")\n @ResponseWrapper(localName = \"deleteTriageStoreResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteTriageStoreResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/deleteTriageStoreRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/deleteTriageStoreResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/deleteTriageStore/Fault/CovRemoteServiceException\")\n })\n public void deleteTriageStore(\n @WebParam(name = \"triageStoreId\", targetNamespace = \"\")\n TriageStoreIdDataObj triageStoreId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param componentId\n * @return\n * returns com.coverity.ws.v7.ComponentDataObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getComponent\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetComponent\")\n @ResponseWrapper(localName = \"getComponentResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetComponentResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getComponentRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getComponentResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getComponent/Fault/CovRemoteServiceException\")\n })\n public ComponentDataObj getComponent(\n @WebParam(name = \"componentId\", targetNamespace = \"\")\n ComponentIdDataObj componentId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param username\n * @return\n * returns com.coverity.ws.v7.UserDataObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getUser\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetUser\")\n @ResponseWrapper(localName = \"getUserResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetUserResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getUserRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getUserResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getUser/Fault/CovRemoteServiceException\")\n })\n public UserDataObj getUser(\n @WebParam(name = \"username\", targetNamespace = \"\")\n String username)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param filterSpec\n * @return\n * returns java.util.List<com.coverity.ws.v7.StreamDataObj>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getStreams\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetStreams\")\n @ResponseWrapper(localName = \"getStreamsResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetStreamsResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getStreamsRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getStreamsResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getStreams/Fault/CovRemoteServiceException\")\n })\n public List<StreamDataObj> getStreams(\n @WebParam(name = \"filterSpec\", targetNamespace = \"\")\n StreamFilterSpecDataObj filterSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param filterSpec\n * @return\n * returns java.util.List<com.coverity.ws.v7.CheckerPropertyDataObj>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getCheckerProperties\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetCheckerProperties\")\n @ResponseWrapper(localName = \"getCheckerPropertiesResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetCheckerPropertiesResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getCheckerPropertiesRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getCheckerPropertiesResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getCheckerProperties/Fault/CovRemoteServiceException\")\n })\n public List<CheckerPropertyDataObj> getCheckerProperties(\n @WebParam(name = \"filterSpec\", targetNamespace = \"\")\n CheckerPropertyFilterSpecDataObj filterSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param snapshotId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"deleteSnapshot\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteSnapshot\")\n @ResponseWrapper(localName = \"deleteSnapshotResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteSnapshotResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/deleteSnapshotRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/deleteSnapshotResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/deleteSnapshot/Fault/CovRemoteServiceException\")\n })\n public void deleteSnapshot(\n @WebParam(name = \"snapshotId\", targetNamespace = \"\")\n List<SnapshotIdDataObj> snapshotId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param viewname\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"executeNotification\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.ExecuteNotification\")\n @ResponseWrapper(localName = \"executeNotificationResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.ExecuteNotificationResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/executeNotificationRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/executeNotificationResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/executeNotification/Fault/CovRemoteServiceException\")\n })\n public void executeNotification(\n @WebParam(name = \"viewname\", targetNamespace = \"\")\n String viewname)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param filterSpec\n * @return\n * returns java.util.List<com.coverity.ws.v7.ProjectDataObj>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getProjects\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetProjects\")\n @ResponseWrapper(localName = \"getProjectsResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetProjectsResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getProjectsRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getProjectsResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getProjects/Fault/CovRemoteServiceException\")\n })\n public List<ProjectDataObj> getProjects(\n @WebParam(name = \"filterSpec\", targetNamespace = \"\")\n ProjectFilterSpecDataObj filterSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param projectId\n * @param sourceStreamId\n * @return\n * returns com.coverity.ws.v7.StreamDataObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"copyStream\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CopyStream\")\n @ResponseWrapper(localName = \"copyStreamResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CopyStreamResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/copyStreamRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/copyStreamResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/copyStream/Fault/CovRemoteServiceException\")\n })\n public StreamDataObj copyStream(\n @WebParam(name = \"projectId\", targetNamespace = \"\")\n ProjectIdDataObj projectId,\n @WebParam(name = \"sourceStreamId\", targetNamespace = \"\")\n StreamIdDataObj sourceStreamId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param streamSpec\n * @param projectId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"createStreamInProject\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateStreamInProject\")\n @ResponseWrapper(localName = \"createStreamInProjectResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateStreamInProjectResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/createStreamInProjectRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/createStreamInProjectResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/createStreamInProject/Fault/CovRemoteServiceException\")\n })\n public void createStreamInProject(\n @WebParam(name = \"projectId\", targetNamespace = \"\")\n ProjectIdDataObj projectId,\n @WebParam(name = \"streamSpec\", targetNamespace = \"\")\n StreamSpecDataObj streamSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param arg0\n */\n @WebMethod\n @RequestWrapper(localName = \"setAcceptingNewCommits\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.SetAcceptingNewCommits\")\n @ResponseWrapper(localName = \"setAcceptingNewCommitsResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.SetAcceptingNewCommitsResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/setAcceptingNewCommitsRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/setAcceptingNewCommitsResponse\")\n public void setAcceptingNewCommits(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n boolean arg0);\n\n /**\n * \n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getMessageOfTheDay\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetMessageOfTheDay\")\n @ResponseWrapper(localName = \"getMessageOfTheDayResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetMessageOfTheDayResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getMessageOfTheDayRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getMessageOfTheDayResponse\")\n public String getMessageOfTheDay();\n\n /**\n * \n * @param message\n */\n @WebMethod\n @RequestWrapper(localName = \"setMessageOfTheDay\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.SetMessageOfTheDay\")\n @ResponseWrapper(localName = \"setMessageOfTheDayResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.SetMessageOfTheDayResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/setMessageOfTheDayRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/setMessageOfTheDayResponse\")\n public void setMessageOfTheDay(\n @WebParam(name = \"message\", targetNamespace = \"\")\n String message);\n\n /**\n * \n * @param filterSpec\n * @return\n * returns java.util.List<com.coverity.ws.v7.TriageStoreDataObj>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getTriageStores\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetTriageStores\")\n @ResponseWrapper(localName = \"getTriageStoresResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetTriageStoresResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getTriageStoresRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getTriageStoresResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getTriageStores/Fault/CovRemoteServiceException\")\n })\n public List<TriageStoreDataObj> getTriageStores(\n @WebParam(name = \"filterSpec\", targetNamespace = \"\")\n TriageStoreFilterSpecDataObj filterSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @return\n * returns com.coverity.ws.v7.CommitStateDataObj\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getCommitState\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetCommitState\")\n @ResponseWrapper(localName = \"getCommitStateResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetCommitStateResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getCommitStateRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getCommitStateResponse\")\n public CommitStateDataObj getCommitState();\n\n /**\n * \n * @return\n * returns java.util.List<com.coverity.ws.v7.ServerDomainIdDataObj>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getLdapServerDomains\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetLdapServerDomains\")\n @ResponseWrapper(localName = \"getLdapServerDomainsResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetLdapServerDomainsResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getLdapServerDomainsRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getLdapServerDomainsResponse\")\n public List<ServerDomainIdDataObj> getLdapServerDomains();\n\n /**\n * \n * @return\n * returns com.coverity.ws.v7.LicenseStateDataObj\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getLicenseState\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetLicenseState\")\n @ResponseWrapper(localName = \"getLicenseStateResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetLicenseStateResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getLicenseStateRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getLicenseStateResponse\")\n public LicenseStateDataObj getLicenseState();\n\n /**\n * \n * @param snapshotId\n * @param snapshotData\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"updateSnapshotInfo\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateSnapshotInfo\")\n @ResponseWrapper(localName = \"updateSnapshotInfoResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateSnapshotInfoResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/updateSnapshotInfoRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/updateSnapshotInfoResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/updateSnapshotInfo/Fault/CovRemoteServiceException\")\n })\n public void updateSnapshotInfo(\n @WebParam(name = \"snapshotId\", targetNamespace = \"\")\n SnapshotIdDataObj snapshotId,\n @WebParam(name = \"snapshotData\", targetNamespace = \"\")\n SnapshotInfoDataObj snapshotData)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @return\n * returns java.util.List<com.coverity.ws.v7.FeatureUpdateTimeDataObj>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getLastUpdateTimes\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetLastUpdateTimes\")\n @ResponseWrapper(localName = \"getLastUpdateTimesResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetLastUpdateTimesResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getLastUpdateTimesRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getLastUpdateTimesResponse\")\n public List<FeatureUpdateTimeDataObj> getLastUpdateTimes();\n\n /**\n * \n * @param ldapConfigurationSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"createLdapConfiguration\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateLdapConfiguration\")\n @ResponseWrapper(localName = \"createLdapConfigurationResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateLdapConfigurationResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/createLdapConfigurationRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/createLdapConfigurationResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/createLdapConfiguration/Fault/CovRemoteServiceException\")\n })\n public void createLdapConfiguration(\n @WebParam(name = \"ldapConfigurationSpec\", targetNamespace = \"\")\n LdapConfigurationSpecDataObj ldapConfigurationSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param ldapConfigurationSpec\n * @param serverDomainIdDataObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"updateLdapConfiguration\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateLdapConfiguration\")\n @ResponseWrapper(localName = \"updateLdapConfigurationResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateLdapConfigurationResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/updateLdapConfigurationRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/updateLdapConfigurationResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/updateLdapConfiguration/Fault/CovRemoteServiceException\")\n })\n public void updateLdapConfiguration(\n @WebParam(name = \"serverDomainIdDataObj\", targetNamespace = \"\")\n ServerDomainIdDataObj serverDomainIdDataObj,\n @WebParam(name = \"ldapConfigurationSpec\", targetNamespace = \"\")\n LdapConfigurationSpecDataObj ldapConfigurationSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @return\n * returns com.coverity.ws.v7.SnapshotPurgeDetailsObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getSnapshotPurgeDetails\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetSnapshotPurgeDetails\")\n @ResponseWrapper(localName = \"getSnapshotPurgeDetailsResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetSnapshotPurgeDetailsResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getSnapshotPurgeDetailsRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getSnapshotPurgeDetailsResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getSnapshotPurgeDetails/Fault/CovRemoteServiceException\")\n })\n public SnapshotPurgeDetailsObj getSnapshotPurgeDetails()\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param purgeDetailsSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"setSnapshotPurgeDetails\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.SetSnapshotPurgeDetails\")\n @ResponseWrapper(localName = \"setSnapshotPurgeDetailsResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.SetSnapshotPurgeDetailsResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/setSnapshotPurgeDetailsRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/setSnapshotPurgeDetailsResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/setSnapshotPurgeDetails/Fault/CovRemoteServiceException\")\n })\n public void setSnapshotPurgeDetails(\n @WebParam(name = \"purgeDetailsSpec\", targetNamespace = \"\")\n SnapshotPurgeDetailsObj purgeDetailsSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param srcTriageStoreIds\n * @param triageStoreId\n * @param deleteSourceStores\n * @param assignStreamsToTargetStore\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"mergeTriageStores\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.MergeTriageStores\")\n @ResponseWrapper(localName = \"mergeTriageStoresResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.MergeTriageStoresResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/mergeTriageStoresRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/mergeTriageStoresResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/mergeTriageStores/Fault/CovRemoteServiceException\")\n })\n public void mergeTriageStores(\n @WebParam(name = \"srcTriageStoreIds\", targetNamespace = \"\")\n List<TriageStoreIdDataObj> srcTriageStoreIds,\n @WebParam(name = \"triageStoreId\", targetNamespace = \"\")\n TriageStoreIdDataObj triageStoreId,\n @WebParam(name = \"deleteSourceStores\", targetNamespace = \"\")\n boolean deleteSourceStores,\n @WebParam(name = \"assignStreamsToTargetStore\", targetNamespace = \"\")\n boolean assignStreamsToTargetStore)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @return\n * returns java.util.List<com.coverity.ws.v7.PermissionDataObj>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAllPermissions\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAllPermissions\")\n @ResponseWrapper(localName = \"getAllPermissionsResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAllPermissionsResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getAllPermissionsRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getAllPermissionsResponse\")\n public List<PermissionDataObj> getAllPermissions();\n\n /**\n * \n * @return\n * returns java.util.List<com.coverity.ws.v7.LdapConfigurationDataObj>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAllLdapConfigurations\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAllLdapConfigurations\")\n @ResponseWrapper(localName = \"getAllLdapConfigurationsResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAllLdapConfigurationsResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getAllLdapConfigurationsRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getAllLdapConfigurationsResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getAllLdapConfigurations/Fault/CovRemoteServiceException\")\n })\n public List<LdapConfigurationDataObj> getAllLdapConfigurations()\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param snapshotId\n * @return\n * returns java.util.List<com.coverity.ws.v7.DeleteSnapshotJobInfoDataObj>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getDeleteSnapshotJobInfo\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetDeleteSnapshotJobInfo\")\n @ResponseWrapper(localName = \"getDeleteSnapshotJobInfoResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetDeleteSnapshotJobInfoResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getDeleteSnapshotJobInfoRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getDeleteSnapshotJobInfoResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getDeleteSnapshotJobInfo/Fault/CovRemoteServiceException\")\n })\n public List<DeleteSnapshotJobInfoDataObj> getDeleteSnapshotJobInfo(\n @WebParam(name = \"snapshotId\", targetNamespace = \"\")\n List<SnapshotIdDataObj> snapshotId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param streamId\n * @param filterSpec\n * @return\n * returns java.util.List<com.coverity.ws.v7.SnapshotIdDataObj>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getSnapshotsForStream\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetSnapshotsForStream\")\n @ResponseWrapper(localName = \"getSnapshotsForStreamResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetSnapshotsForStreamResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getSnapshotsForStreamRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getSnapshotsForStreamResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getSnapshotsForStream/Fault/CovRemoteServiceException\")\n })\n public List<SnapshotIdDataObj> getSnapshotsForStream(\n @WebParam(name = \"streamId\", targetNamespace = \"\")\n StreamIdDataObj streamId,\n @WebParam(name = \"filterSpec\", targetNamespace = \"\")\n SnapshotFilterSpecDataObj filterSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param serverDomainIdDataObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"deleteLdapConfiguration\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteLdapConfiguration\")\n @ResponseWrapper(localName = \"deleteLdapConfigurationResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteLdapConfigurationResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/deleteLdapConfigurationRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/deleteLdapConfigurationResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/deleteLdapConfiguration/Fault/CovRemoteServiceException\")\n })\n public void deleteLdapConfiguration(\n @WebParam(name = \"serverDomainIdDataObj\", targetNamespace = \"\")\n ServerDomainIdDataObj serverDomainIdDataObj)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param filterSpec\n * @return\n * returns java.util.List<com.coverity.ws.v7.ComponentMapDataObj>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getComponentMaps\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetComponentMaps\")\n @ResponseWrapper(localName = \"getComponentMapsResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetComponentMapsResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getComponentMapsRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getComponentMapsResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getComponentMaps/Fault/CovRemoteServiceException\")\n })\n public List<ComponentMapDataObj> getComponentMaps(\n @WebParam(name = \"filterSpec\", targetNamespace = \"\")\n ComponentMapFilterSpecDataObj filterSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @return\n * returns java.util.List<java.lang.String>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getDefectStatuses\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetDefectStatuses\")\n @ResponseWrapper(localName = \"getDefectStatusesResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetDefectStatusesResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getDefectStatusesRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getDefectStatusesResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getDefectStatuses/Fault/CovRemoteServiceException\")\n })\n public List<String> getDefectStatuses()\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param snapshotIds\n * @return\n * returns java.util.List<com.coverity.ws.v7.SnapshotInfoDataObj>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getSnapshotInformation\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetSnapshotInformation\")\n @ResponseWrapper(localName = \"getSnapshotInformationResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetSnapshotInformationResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getSnapshotInformationRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getSnapshotInformationResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getSnapshotInformation/Fault/CovRemoteServiceException\")\n })\n public List<SnapshotInfoDataObj> getSnapshotInformation(\n @WebParam(name = \"snapshotIds\", targetNamespace = \"\")\n List<SnapshotIdDataObj> snapshotIds)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @return\n * returns javax.xml.datatype.XMLGregorianCalendar\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getServerTime\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetServerTime\")\n @ResponseWrapper(localName = \"getServerTimeResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetServerTimeResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getServerTimeRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getServerTimeResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getServerTime/Fault/CovRemoteServiceException\")\n })\n public XMLGregorianCalendar getServerTime()\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @return\n * returns com.coverity.ws.v7.ConfigurationDataObj\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getSystemConfig\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetSystemConfig\")\n @ResponseWrapper(localName = \"getSystemConfigResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetSystemConfigResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getSystemConfigRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getSystemConfigResponse\")\n public ConfigurationDataObj getSystemConfig();\n\n}", "@WebService(targetNamespace = \"http://jaxws.intergrupo.com.co/\", name = \"InterfaceWebService\")\r\n@XmlSeeAlso({ObjectFactory.class})\r\npublic interface InterfaceWebService {\r\n\r\n @WebResult(name = \"return\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"vehiculoReportado\", targetNamespace = \"http://jaxws.intergrupo.com.co/\", className = \"co.com.intergrupo.cxf.VehiculoReportado\")\r\n @WebMethod(action = \"urn:vehiculoReportado\")\r\n @ResponseWrapper(localName = \"vehiculoReportadoResponse\", targetNamespace = \"http://jaxws.intergrupo.com.co/\", className = \"co.com.intergrupo.cxf.VehiculoReportadoResponse\")\r\n public boolean vehiculoReportado(\r\n @WebParam(name = \"placa\", targetNamespace = \"\")\r\n java.lang.String placa\r\n );\r\n\r\n @WebResult(name = \"return\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"saludo\", targetNamespace = \"http://jaxws.intergrupo.com.co/\", className = \"co.com.intergrupo.cxf.Saludo\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"saludoResponse\", targetNamespace = \"http://jaxws.intergrupo.com.co/\", className = \"co.com.intergrupo.cxf.SaludoResponse\")\r\n public java.lang.String saludo(\r\n @WebParam(name = \"nombre\", targetNamespace = \"\")\r\n java.lang.String nombre\r\n );\r\n\r\n @WebResult(name = \"vehiculo\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"consultarVehiculo\", targetNamespace = \"http://jaxws.intergrupo.com.co/\", className = \"co.com.intergrupo.cxf.ConsultarVehiculo\")\r\n @WebMethod(action = \"urn:consultarVehiculo\")\r\n @ResponseWrapper(localName = \"consultarVehiculoResponse\", targetNamespace = \"http://jaxws.intergrupo.com.co/\", className = \"co.com.intergrupo.cxf.ConsultarVehiculoResponse\")\r\n public co.com.intergrupo.cxf.Vehiculo consultarVehiculo(\r\n @WebParam(name = \"placa\", targetNamespace = \"\")\r\n java.lang.String placa\r\n );\r\n\r\n @WebResult(name = \"return\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"vehiculoAlDiaConImpuesto\", targetNamespace = \"http://jaxws.intergrupo.com.co/\", className = \"co.com.intergrupo.cxf.VehiculoAlDiaConImpuesto\")\r\n @WebMethod(action = \"urn:vehiculoAlDiaConImpuesto\")\r\n @ResponseWrapper(localName = \"vehiculoAlDiaConImpuestoResponse\", targetNamespace = \"http://jaxws.intergrupo.com.co/\", className = \"co.com.intergrupo.cxf.VehiculoAlDiaConImpuestoResponse\")\r\n public boolean vehiculoAlDiaConImpuesto(\r\n @WebParam(name = \"placa\", targetNamespace = \"\")\r\n java.lang.String placa\r\n );\r\n\r\n @WebResult(name = \"return\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"registradoRunt\", targetNamespace = \"http://jaxws.intergrupo.com.co/\", className = \"co.com.intergrupo.cxf.RegistradoRunt\")\r\n @WebMethod(action = \"urn:registradoRunt\")\r\n @ResponseWrapper(localName = \"registradoRuntResponse\", targetNamespace = \"http://jaxws.intergrupo.com.co/\", className = \"co.com.intergrupo.cxf.RegistradoRuntResponse\")\r\n public boolean registradoRunt(\r\n @WebParam(name = \"placa\", targetNamespace = \"\")\r\n java.lang.String placa\r\n );\r\n}", "@WebService(name = \"IPartnerIntegrationService\", targetNamespace = \"http://tempuri.org/\")\r\n@XmlSeeAlso({\r\n ObjectFactory.class\r\n})\r\npublic interface IPartnerIntegrationService {\r\n\r\n\r\n /**\r\n * \r\n * @param partnerIntegrationXML\r\n * @return\r\n * returns java.lang.String\r\n */\r\n @WebMethod(operationName = \"SavePartner_integration\", action = \"http://tempuri.org/IPartnerIntegrationService/SavePartner_integration\")\r\n @WebResult(name = \"SavePartner_integrationResult\", targetNamespace = \"http://tempuri.org/\")\r\n @RequestWrapper(localName = \"SavePartner_integration\", targetNamespace = \"http://tempuri.org/\", className = \"com.kotak.SavePartnerIntegration\")\r\n @ResponseWrapper(localName = \"SavePartner_integrationResponse\", targetNamespace = \"http://tempuri.org/\", className = \"com.kotak.SavePartnerIntegrationResponse\")\r\n public String savePartnerIntegration(\r\n @WebParam(name = \"Partner_integrationXML\", targetNamespace = \"http://tempuri.org/\")\r\n String partnerIntegrationXML);\r\n\r\n /**\r\n * \r\n * @param strPolicyIssueTime\r\n * @param strTransactionID\r\n * @param strCustomerName\r\n * @param strTransactionRef\r\n * @param strProdType\r\n * @param strPolicyNo\r\n * @param strPassword\r\n * @param strUserId\r\n * @param strPolicyPDF\r\n * @return\r\n * returns com.kotak.ClsSignPDF\r\n */\r\n @WebMethod(operationName = \"GetSignPolicyPDF\", action = \"http://tempuri.org/IPartnerIntegrationService/GetSignPolicyPDF\")\r\n @WebResult(name = \"GetSignPolicyPDFResult\", targetNamespace = \"http://tempuri.org/\")\r\n @RequestWrapper(localName = \"GetSignPolicyPDF\", targetNamespace = \"http://tempuri.org/\", className = \"com.kotak.GetSignPolicyPDF\")\r\n @ResponseWrapper(localName = \"GetSignPolicyPDFResponse\", targetNamespace = \"http://tempuri.org/\", className = \"com.kotak.GetSignPolicyPDFResponse\")\r\n public ClsSignPDF getSignPolicyPDF(\r\n @WebParam(name = \"strUserId\", targetNamespace = \"http://tempuri.org/\")\r\n String strUserId,\r\n @WebParam(name = \"strPassword\", targetNamespace = \"http://tempuri.org/\")\r\n String strPassword,\r\n @WebParam(name = \"strProdType\", targetNamespace = \"http://tempuri.org/\")\r\n String strProdType,\r\n @WebParam(name = \"strPolicyNo\", targetNamespace = \"http://tempuri.org/\")\r\n String strPolicyNo,\r\n @WebParam(name = \"strPolicyIssueTime\", targetNamespace = \"http://tempuri.org/\")\r\n String strPolicyIssueTime,\r\n @WebParam(name = \"strTransactionID\", targetNamespace = \"http://tempuri.org/\")\r\n String strTransactionID,\r\n @WebParam(name = \"strTransactionRef\", targetNamespace = \"http://tempuri.org/\")\r\n String strTransactionRef,\r\n @WebParam(name = \"strCustomerName\", targetNamespace = \"http://tempuri.org/\")\r\n String strCustomerName,\r\n @WebParam(name = \"strPolicyPDF\", targetNamespace = \"http://tempuri.org/\")\r\n byte[] strPolicyPDF);\r\n\r\n}", "@WebService(targetNamespace = \"http://interfaces.webService.xxdai.com/\", name = \"BaseInfoCXFService\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface BaseInfoCXFService {\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"alterBaseInfo\", targetNamespace = \"http://interfaces.webService.xxdai.com/\", className = \"com.xxdai.person.ws.baseinfo.AlterBaseInfo\")\n @WebMethod\n @ResponseWrapper(localName = \"alterBaseInfoResponse\", targetNamespace = \"http://interfaces.webService.xxdai.com/\", className = \"com.xxdai.person.ws.baseinfo.AlterBaseInfoResponse\")\n public java.lang.String alterBaseInfo(\n @WebParam(name = \"alterBaseInfoJson\", targetNamespace = \"\")\n java.lang.String alterBaseInfoJson\n );\n}", "@WebService(name = \"iTmsLogisticsOrderWsService\", targetNamespace = \"http://www.aurora-framework.org/schema\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface ITmsLogisticsOrderWsService {\n\n\n /**\n *\n * @param tmsLogisticsOrderRequestPart\n * @return\n * returns org.aurora_framework.schema.SoapResponse\n */\n @WebMethod(action = \"execute\")\n @WebResult(name = \"soapResponse\", targetNamespace = \"http://www.aurora-framework.org/schema\", partName = \"tmsLogisticsOrderResponse_part\")\n public SoapResponse execute(\n @WebParam(name = \"logisticsOrderRequest\", targetNamespace = \"http://www.aurora-framework.org/schema\", partName = \"tmsLogisticsOrderRequest_part\")\n LogisticsOrderRequest tmsLogisticsOrderRequestPart);\n\n}", "@WebService(name = \"EmployeeManagementWebService\", targetNamespace = \"http://employeemanagement.virtualpairprogrammers.com/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface EmployeeManagementWebService {\n\n\n /**\n * \n * @param arg0\n * @return\n * returns com.virtualpairprogrammers.employeemanagement.Employee\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getEmployeeById\", targetNamespace = \"http://employeemanagement.virtualpairprogrammers.com/\", className = \"com.virtualpairprogrammers.employeemanagement.GetEmployeeById\")\n @ResponseWrapper(localName = \"getEmployeeByIdResponse\", targetNamespace = \"http://employeemanagement.virtualpairprogrammers.com/\", className = \"com.virtualpairprogrammers.employeemanagement.GetEmployeeByIdResponse\")\n public Employee getEmployeeById(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @return\n * returns java.util.List<com.virtualpairprogrammers.employeemanagement.Employee>\n * @throws ServiceUnavailableException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAllEmployees\", targetNamespace = \"http://employeemanagement.virtualpairprogrammers.com/\", className = \"com.virtualpairprogrammers.employeemanagement.GetAllEmployees\")\n @ResponseWrapper(localName = \"getAllEmployeesResponse\", targetNamespace = \"http://employeemanagement.virtualpairprogrammers.com/\", className = \"com.virtualpairprogrammers.employeemanagement.GetAllEmployeesResponse\")\n public List<Employee> getAllEmployees()\n throws ServiceUnavailableException_Exception\n ;\n\n /**\n * \n * @param arg0\n */\n @WebMethod\n @RequestWrapper(localName = \"registerEmployee\", targetNamespace = \"http://employeemanagement.virtualpairprogrammers.com/\", className = \"com.virtualpairprogrammers.employeemanagement.RegisterEmployee\")\n @ResponseWrapper(localName = \"registerEmployeeResponse\", targetNamespace = \"http://employeemanagement.virtualpairprogrammers.com/\", className = \"com.virtualpairprogrammers.employeemanagement.RegisterEmployeeResponse\")\n public void registerEmployee(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n Employee arg0);\n\n}", "@WebService(targetNamespace = \"http://soa.agh.edu.pl/\", name = \"HelloWorld\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface HelloWorld {\n\n @WebMethod(operationName = \"Hi\")\n @RequestWrapper(localName = \"Hi\", targetNamespace = \"http://soa.agh.edu.pl/\", className = \"pl.edu.agh.soa.Hi\")\n @ResponseWrapper(localName = \"HiResponse\", targetNamespace = \"http://soa.agh.edu.pl/\", className = \"pl.edu.agh.soa.HiResponse\")\n @WebResult(name = \"ElementsWraper\", targetNamespace = \"\")\n public pl.edu.agh.soa.HiResponse.ElementsWraper hi(\n @WebParam(name = \"name\", targetNamespace = \"\")\n java.lang.String name\n );\n\n @WebMethod(action = \"Hello\")\n @RequestWrapper(localName = \"hello\", targetNamespace = \"http://soa.agh.edu.pl/\", className = \"pl.edu.agh.soa.Hello\")\n @ResponseWrapper(localName = \"helloResponse\", targetNamespace = \"http://soa.agh.edu.pl/\", className = \"pl.edu.agh.soa.HelloResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public java.lang.String hello(\n @WebParam(name = \"name\", targetNamespace = \"\")\n java.lang.String name\n );\n}", "@WebService(targetNamespace = \"http://iso8583.org/payload\", name = \"CoreServicePortType\")\n@XmlSeeAlso({ObjectFactory.class, org.team5.bank.core.server.service.model.xsd.ObjectFactory.class})\npublic interface CoreServicePortType {\n\n @WebResult(name = \"return\", targetNamespace = \"http://iso8583.org/payload\")\n @Action(input = \"urn:getTransactionHistory\", output = \"urn:getTransactionHistoryResponse\")\n @RequestWrapper(localName = \"getTransactionHistory\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.GetTransactionHistory\")\n @WebMethod(action = \"urn:getTransactionHistory\")\n @ResponseWrapper(localName = \"getTransactionHistoryResponse\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.GetTransactionHistoryResponse\")\n public java.util.List<org.team5.bank.core.server.service.model.xsd.Transaction> getTransactionHistory(\n @WebParam(name = \"accountNo\", targetNamespace = \"http://iso8583.org/payload\")\n java.lang.String accountNo\n );\n\n @WebResult(name = \"return\", targetNamespace = \"http://iso8583.org/payload\")\n @Action(input = \"urn:getBalance\", output = \"urn:getBalanceResponse\")\n @RequestWrapper(localName = \"getBalance\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.GetBalance\")\n @WebMethod(action = \"urn:getBalance\")\n @ResponseWrapper(localName = \"getBalanceResponse\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.GetBalanceResponse\")\n public java.lang.String getBalance(\n @WebParam(name = \"accountNo\", targetNamespace = \"http://iso8583.org/payload\")\n java.lang.String accountNo\n );\n\n @WebResult(name = \"return\", targetNamespace = \"http://iso8583.org/payload\")\n @Action(input = \"urn:getAccount\", output = \"urn:getAccountResponse\")\n @RequestWrapper(localName = \"getAccount\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.GetAccount\")\n @WebMethod(action = \"urn:getAccount\")\n @ResponseWrapper(localName = \"getAccountResponse\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.GetAccountResponse\")\n public org.team5.bank.core.server.service.model.xsd.Account getAccount(\n @WebParam(name = \"userId\", targetNamespace = \"http://iso8583.org/payload\")\n java.lang.Long userId\n );\n\n @WebResult(name = \"return\", targetNamespace = \"http://iso8583.org/payload\")\n @Action(input = \"urn:withdraw\", output = \"urn:withdrawResponse\")\n @RequestWrapper(localName = \"withdraw\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.Withdraw\")\n @WebMethod(action = \"urn:withdraw\")\n @ResponseWrapper(localName = \"withdrawResponse\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.WithdrawResponse\")\n public org.team5.bank.core.server.service.model.xsd.TransactionResponse withdraw(\n @WebParam(name = \"accountNo\", targetNamespace = \"http://iso8583.org/payload\")\n java.lang.String accountNo,\n @WebParam(name = \"amount\", targetNamespace = \"http://iso8583.org/payload\")\n java.lang.Double amount\n );\n\n @WebResult(name = \"return\", targetNamespace = \"http://iso8583.org/payload\")\n @Action(input = \"urn:fundTransfer\", output = \"urn:fundTransferResponse\")\n @RequestWrapper(localName = \"fundTransfer\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.FundTransfer\")\n @WebMethod(action = \"urn:fundTransfer\")\n @ResponseWrapper(localName = \"fundTransferResponse\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.FundTransferResponse\")\n public org.team5.bank.core.server.service.model.xsd.TransactionResponse fundTransfer(\n @WebParam(name = \"from\", targetNamespace = \"http://iso8583.org/payload\")\n java.lang.String from,\n @WebParam(name = \"to\", targetNamespace = \"http://iso8583.org/payload\")\n java.lang.String to,\n @WebParam(name = \"amount\", targetNamespace = \"http://iso8583.org/payload\")\n java.lang.Double amount\n );\n\n @WebResult(name = \"return\", targetNamespace = \"http://iso8583.org/payload\")\n @Action(input = \"urn:deposit\", output = \"urn:depositResponse\")\n @RequestWrapper(localName = \"deposit\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.Deposit\")\n @WebMethod(action = \"urn:deposit\")\n @ResponseWrapper(localName = \"depositResponse\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.DepositResponse\")\n public org.team5.bank.core.server.service.model.xsd.TransactionResponse deposit(\n @WebParam(name = \"accountNo\", targetNamespace = \"http://iso8583.org/payload\")\n java.lang.String accountNo,\n @WebParam(name = \"amount\", targetNamespace = \"http://iso8583.org/payload\")\n java.lang.Double amount\n );\n}", "@WebService(targetNamespace = \"http://ws.integration.pizzashack.nz.co/\", name = \"BillingProcessWebServices\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface BillingProcessWebServices {\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"billingProcess\", targetNamespace = \"http://ws.integration.pizzashack.nz.co/\", className = \"co.nz.pizzashack.client.integration.ws.client.stub.BillingProcess\")\n @WebMethod\n @ResponseWrapper(localName = \"billingProcessResponse\", targetNamespace = \"http://ws.integration.pizzashack.nz.co/\", className = \"co.nz.pizzashack.client.integration.ws.client.stub.BillingProcessResponse\")\n public co.nz.pizzashack.client.integration.ws.client.stub.BillingResponse billingProcess(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n co.nz.pizzashack.client.integration.ws.client.stub.BillingDto arg0\n ) throws FaultMessage;\n}", "@WebService(name = \"TempWs\", targetNamespace = \"http://temperature.ws.com\")\r\npublic interface TempWs {\r\n\r\n\r\n /**\r\n * \r\n * @param fahrenheit\r\n * @return\r\n * returns float\r\n */\r\n @WebMethod(action = \"http://temperature.ws.com/toCelsius\")\r\n @WebResult(name = \"returnFahrenheit\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"toCelsius\", targetNamespace = \"http://temperature.ws.com\", className = \"com.ws.temperature.ToCelsius\")\r\n @ResponseWrapper(localName = \"toCelsiusResponse\", targetNamespace = \"http://temperature.ws.com\", className = \"com.ws.temperature.ToCelsiusResponse\")\r\n public float toCelsius(\r\n @WebParam(name = \"fahrenheit\", targetNamespace = \"\")\r\n float fahrenheit);\r\n\r\n /**\r\n * \r\n * @param celsius\r\n * @return\r\n * returns float\r\n */\r\n @WebMethod(action = \"http://temperature.ws.com/toFahrenheit\")\r\n @WebResult(name = \"returnCelsius\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"toFahrenheit\", targetNamespace = \"http://temperature.ws.com\", className = \"com.ws.temperature.ToFahrenheit\")\r\n @ResponseWrapper(localName = \"toFahrenheitResponse\", targetNamespace = \"http://temperature.ws.com\", className = \"com.ws.temperature.ToFahrenheitResponse\")\r\n public float toFahrenheit(\r\n @WebParam(name = \"celsius\", targetNamespace = \"\")\r\n float celsius);\r\n\r\n}", "@WebService(name = \"SafeImpl\", targetNamespace = \"http://webservices.safe.woolpert.com/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface SafeImpl {\n\n\n /**\n * \n * @return\n * returns java.util.List<com.woolpert.safe.webservices.Collection>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getCollections\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.GetCollections\")\n @ResponseWrapper(localName = \"getCollectionsResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.GetCollectionsResponse\")\n public List<Collection> getCollections();\n\n /**\n * \n * @param arg5\n * @param arg4\n * @param arg3\n * @param arg2\n * @param arg1\n * @param arg0\n * @param arg6\n * @param arg7\n * @param arg8\n * @param arg9\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"insertCollection\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.InsertCollection\")\n @ResponseWrapper(localName = \"insertCollectionResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.InsertCollectionResponse\")\n public ReturnStatus insertCollection(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1,\n @WebParam(name = \"arg2\", targetNamespace = \"\")\n double arg2,\n @WebParam(name = \"arg3\", targetNamespace = \"\")\n double arg3,\n @WebParam(name = \"arg4\", targetNamespace = \"\")\n double arg4,\n @WebParam(name = \"arg5\", targetNamespace = \"\")\n double arg5,\n @WebParam(name = \"arg6\", targetNamespace = \"\")\n long arg6,\n @WebParam(name = \"arg7\", targetNamespace = \"\")\n long arg7,\n @WebParam(name = \"arg8\", targetNamespace = \"\")\n int arg8,\n @WebParam(name = \"arg9\", targetNamespace = \"\")\n int arg9);\n\n /**\n * \n * @param arg5\n * @param arg4\n * @param arg3\n * @param arg2\n * @param arg1\n * @param arg0\n * @param arg10\n * @param arg6\n * @param arg7\n * @param arg8\n * @param arg9\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"updateCollection\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.UpdateCollection\")\n @ResponseWrapper(localName = \"updateCollectionResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.UpdateCollectionResponse\")\n public ReturnStatus updateCollection(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1,\n @WebParam(name = \"arg2\", targetNamespace = \"\")\n String arg2,\n @WebParam(name = \"arg3\", targetNamespace = \"\")\n double arg3,\n @WebParam(name = \"arg4\", targetNamespace = \"\")\n double arg4,\n @WebParam(name = \"arg5\", targetNamespace = \"\")\n double arg5,\n @WebParam(name = \"arg6\", targetNamespace = \"\")\n double arg6,\n @WebParam(name = \"arg7\", targetNamespace = \"\")\n long arg7,\n @WebParam(name = \"arg8\", targetNamespace = \"\")\n long arg8,\n @WebParam(name = \"arg9\", targetNamespace = \"\")\n int arg9,\n @WebParam(name = \"arg10\", targetNamespace = \"\")\n int arg10);\n\n /**\n * \n * @param arg0\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"deleteCollections\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.DeleteCollections\")\n @ResponseWrapper(localName = \"deleteCollectionsResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.DeleteCollectionsResponse\")\n public ReturnStatus deleteCollections(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @return\n * returns java.util.List<com.woolpert.safe.webservices.Asset>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAssets\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.GetAssets\")\n @ResponseWrapper(localName = \"getAssetsResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.GetAssetsResponse\")\n public List<Asset> getAssets();\n\n /**\n * \n * @param arg5\n * @param arg4\n * @param arg3\n * @param arg2\n * @param arg1\n * @param arg0\n * @param arg6\n * @param arg7\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"insertAsset\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.InsertAsset\")\n @ResponseWrapper(localName = \"insertAssetResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.InsertAssetResponse\")\n public ReturnStatus insertAsset(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1,\n @WebParam(name = \"arg2\", targetNamespace = \"\")\n int arg2,\n @WebParam(name = \"arg3\", targetNamespace = \"\")\n double arg3,\n @WebParam(name = \"arg4\", targetNamespace = \"\")\n double arg4,\n @WebParam(name = \"arg5\", targetNamespace = \"\")\n double arg5,\n @WebParam(name = \"arg6\", targetNamespace = \"\")\n int arg6,\n @WebParam(name = \"arg7\", targetNamespace = \"\")\n long arg7);\n\n /**\n * \n * @param arg5\n * @param arg4\n * @param arg3\n * @param arg2\n * @param arg1\n * @param arg0\n * @param arg6\n * @param arg7\n * @param arg8\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"updateAsset\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.UpdateAsset\")\n @ResponseWrapper(localName = \"updateAssetResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.UpdateAssetResponse\")\n public ReturnStatus updateAsset(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1,\n @WebParam(name = \"arg2\", targetNamespace = \"\")\n String arg2,\n @WebParam(name = \"arg3\", targetNamespace = \"\")\n int arg3,\n @WebParam(name = \"arg4\", targetNamespace = \"\")\n double arg4,\n @WebParam(name = \"arg5\", targetNamespace = \"\")\n double arg5,\n @WebParam(name = \"arg6\", targetNamespace = \"\")\n double arg6,\n @WebParam(name = \"arg7\", targetNamespace = \"\")\n int arg7,\n @WebParam(name = \"arg8\", targetNamespace = \"\")\n long arg8);\n\n /**\n * \n * @param arg0\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"deleteAsset\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.DeleteAsset\")\n @ResponseWrapper(localName = \"deleteAssetResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.DeleteAssetResponse\")\n public ReturnStatus deleteAsset(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @return\n * returns java.util.List<com.woolpert.safe.webservices.Platform>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPlatforms\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.GetPlatforms\")\n @ResponseWrapper(localName = \"getPlatformsResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.GetPlatformsResponse\")\n public List<Platform> getPlatforms();\n\n /**\n * \n * @param arg3\n * @param arg2\n * @param arg1\n * @param arg0\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"updatePlatform\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.UpdatePlatform\")\n @ResponseWrapper(localName = \"updatePlatformResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.UpdatePlatformResponse\")\n public ReturnStatus updatePlatform(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1,\n @WebParam(name = \"arg2\", targetNamespace = \"\")\n String arg2,\n @WebParam(name = \"arg3\", targetNamespace = \"\")\n Boolean arg3);\n\n /**\n * \n * @param arg0\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"deletePlatform\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.DeletePlatform\")\n @ResponseWrapper(localName = \"deletePlatformResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.DeletePlatformResponse\")\n public ReturnStatus deletePlatform(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @param arg2\n * @param arg1\n * @param arg0\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"insertPlatform\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.InsertPlatform\")\n @ResponseWrapper(localName = \"insertPlatformResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.InsertPlatformResponse\")\n public ReturnStatus insertPlatform(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1,\n @WebParam(name = \"arg2\", targetNamespace = \"\")\n Boolean arg2);\n\n /**\n * \n * @return\n * returns java.util.List<com.woolpert.safe.webservices.Poc>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPOCs\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.GetPOCs\")\n @ResponseWrapper(localName = \"getPOCsResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.GetPOCsResponse\")\n public List<Poc> getPOCs();\n\n /**\n * \n * @param arg5\n * @param arg4\n * @param arg3\n * @param arg2\n * @param arg1\n * @param arg0\n * @param arg6\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"insertPOC\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.InsertPOC\")\n @ResponseWrapper(localName = \"insertPOCResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.InsertPOCResponse\")\n public ReturnStatus insertPOC(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1,\n @WebParam(name = \"arg2\", targetNamespace = \"\")\n int arg2,\n @WebParam(name = \"arg3\", targetNamespace = \"\")\n String arg3,\n @WebParam(name = \"arg4\", targetNamespace = \"\")\n String arg4,\n @WebParam(name = \"arg5\", targetNamespace = \"\")\n String arg5,\n @WebParam(name = \"arg6\", targetNamespace = \"\")\n String arg6);\n\n /**\n * \n * @param arg5\n * @param arg4\n * @param arg3\n * @param arg2\n * @param arg1\n * @param arg0\n * @param arg6\n * @param arg7\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"updatePOC\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.UpdatePOC\")\n @ResponseWrapper(localName = \"updatePOCResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.UpdatePOCResponse\")\n public ReturnStatus updatePOC(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1,\n @WebParam(name = \"arg2\", targetNamespace = \"\")\n String arg2,\n @WebParam(name = \"arg3\", targetNamespace = \"\")\n int arg3,\n @WebParam(name = \"arg4\", targetNamespace = \"\")\n String arg4,\n @WebParam(name = \"arg5\", targetNamespace = \"\")\n String arg5,\n @WebParam(name = \"arg6\", targetNamespace = \"\")\n String arg6,\n @WebParam(name = \"arg7\", targetNamespace = \"\")\n String arg7);\n\n /**\n * \n * @param arg0\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"deletePOC\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.DeletePOC\")\n @ResponseWrapper(localName = \"deletePOCResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.DeletePOCResponse\")\n public ReturnStatus deletePOC(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @return\n * returns java.util.List<com.woolpert.safe.webservices.Organization>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getOrganizations\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.GetOrganizations\")\n @ResponseWrapper(localName = \"getOrganizationsResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.GetOrganizationsResponse\")\n public List<Organization> getOrganizations();\n\n /**\n * \n * @param arg2\n * @param arg1\n * @param arg0\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"insertOrganization\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.InsertOrganization\")\n @ResponseWrapper(localName = \"insertOrganizationResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.InsertOrganizationResponse\")\n public ReturnStatus insertOrganization(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1,\n @WebParam(name = \"arg2\", targetNamespace = \"\")\n String arg2);\n\n /**\n * \n * @param arg3\n * @param arg2\n * @param arg1\n * @param arg0\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"updateOrganization\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.UpdateOrganization\")\n @ResponseWrapper(localName = \"updateOrganizationResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.UpdateOrganizationResponse\")\n public ReturnStatus updateOrganization(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1,\n @WebParam(name = \"arg2\", targetNamespace = \"\")\n String arg2,\n @WebParam(name = \"arg3\", targetNamespace = \"\")\n String arg3);\n\n /**\n * \n * @param arg0\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"deleteOrganization\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.DeleteOrganization\")\n @ResponseWrapper(localName = \"deleteOrganizationResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.DeleteOrganizationResponse\")\n public ReturnStatus deleteOrganization(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @return\n * returns java.util.List<com.woolpert.safe.webservices.SensorMFR>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getSensorMFRs\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.GetSensorMFRs\")\n @ResponseWrapper(localName = \"getSensorMFRsResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.GetSensorMFRsResponse\")\n public List<SensorMFR> getSensorMFRs();\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"insertSensorMFR\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.InsertSensorMFR\")\n @ResponseWrapper(localName = \"insertSensorMFRResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.InsertSensorMFRResponse\")\n public ReturnStatus insertSensorMFR(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1);\n\n /**\n * \n * @param arg2\n * @param arg1\n * @param arg0\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"updateSensorMFR\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.UpdateSensorMFR\")\n @ResponseWrapper(localName = \"updateSensorMFRResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.UpdateSensorMFRResponse\")\n public ReturnStatus updateSensorMFR(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1,\n @WebParam(name = \"arg2\", targetNamespace = \"\")\n String arg2);\n\n /**\n * \n * @param arg0\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"deleteSensorMFR\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.DeleteSensorMFR\")\n @ResponseWrapper(localName = \"deleteSensorMFRResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.DeleteSensorMFRResponse\")\n public ReturnStatus deleteSensorMFR(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @return\n * returns java.util.List<com.woolpert.safe.webservices.Sensor>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getSensors\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.GetSensors\")\n @ResponseWrapper(localName = \"getSensorsResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.GetSensorsResponse\")\n public List<Sensor> getSensors();\n\n /**\n * \n * @param arg5\n * @param arg4\n * @param arg3\n * @param arg2\n * @param arg1\n * @param arg0\n * @param arg6\n * @param arg7\n * @param arg8\n * @param arg9\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"insertSensor\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.InsertSensor\")\n @ResponseWrapper(localName = \"insertSensorResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.InsertSensorResponse\")\n public ReturnStatus insertSensor(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1,\n @WebParam(name = \"arg2\", targetNamespace = \"\")\n String arg2,\n @WebParam(name = \"arg3\", targetNamespace = \"\")\n int arg3,\n @WebParam(name = \"arg4\", targetNamespace = \"\")\n int arg4,\n @WebParam(name = \"arg5\", targetNamespace = \"\")\n double arg5,\n @WebParam(name = \"arg6\", targetNamespace = \"\")\n double arg6,\n @WebParam(name = \"arg7\", targetNamespace = \"\")\n double arg7,\n @WebParam(name = \"arg8\", targetNamespace = \"\")\n int arg8,\n @WebParam(name = \"arg9\", targetNamespace = \"\")\n long arg9);\n\n /**\n * \n * @param arg0\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"deleteSensor\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.DeleteSensor\")\n @ResponseWrapper(localName = \"deleteSensorResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.DeleteSensorResponse\")\n public ReturnStatus deleteSensor(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @param arg5\n * @param arg4\n * @param arg3\n * @param arg2\n * @param arg1\n * @param arg0\n * @param arg10\n * @param arg6\n * @param arg7\n * @param arg8\n * @param arg9\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"updateSensor\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.UpdateSensor\")\n @ResponseWrapper(localName = \"updateSensorResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.UpdateSensorResponse\")\n public ReturnStatus updateSensor(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n int arg1,\n @WebParam(name = \"arg2\", targetNamespace = \"\")\n String arg2,\n @WebParam(name = \"arg3\", targetNamespace = \"\")\n String arg3,\n @WebParam(name = \"arg4\", targetNamespace = \"\")\n int arg4,\n @WebParam(name = \"arg5\", targetNamespace = \"\")\n int arg5,\n @WebParam(name = \"arg6\", targetNamespace = \"\")\n double arg6,\n @WebParam(name = \"arg7\", targetNamespace = \"\")\n double arg7,\n @WebParam(name = \"arg8\", targetNamespace = \"\")\n double arg8,\n @WebParam(name = \"arg9\", targetNamespace = \"\")\n int arg9,\n @WebParam(name = \"arg10\", targetNamespace = \"\")\n long arg10);\n\n /**\n * \n * @return\n * returns java.util.List<com.woolpert.safe.webservices.Spectrum>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getSpectrums\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.GetSpectrums\")\n @ResponseWrapper(localName = \"getSpectrumsResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.GetSpectrumsResponse\")\n public List<Spectrum> getSpectrums();\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"insertSpectrum\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.InsertSpectrum\")\n @ResponseWrapper(localName = \"insertSpectrumResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.InsertSpectrumResponse\")\n public ReturnStatus insertSpectrum(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1);\n\n /**\n * \n * @param arg2\n * @param arg1\n * @param arg0\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"updateSpectrum\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.UpdateSpectrum\")\n @ResponseWrapper(localName = \"updateSpectrumResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.UpdateSpectrumResponse\")\n public ReturnStatus updateSpectrum(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1,\n @WebParam(name = \"arg2\", targetNamespace = \"\")\n String arg2);\n\n /**\n * \n * @param arg0\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"deleteSpectrum\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.DeleteSpectrum\")\n @ResponseWrapper(localName = \"deleteSpectrumResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.DeleteSpectrumResponse\")\n public ReturnStatus deleteSpectrum(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @return\n * returns java.util.List<com.woolpert.safe.webservices.SensorMetadata>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAllSensorMetadata\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.GetAllSensorMetadata\")\n @ResponseWrapper(localName = \"getAllSensorMetadataResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.GetAllSensorMetadataResponse\")\n public List<SensorMetadata> getAllSensorMetadata();\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"insertSensorMetadata\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.InsertSensorMetadata\")\n @ResponseWrapper(localName = \"insertSensorMetadataResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.InsertSensorMetadataResponse\")\n public ReturnStatus insertSensorMetadata(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1);\n\n /**\n * \n * @param arg2\n * @param arg1\n * @param arg0\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"updateSensorMetadata\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.UpdateSensorMetadata\")\n @ResponseWrapper(localName = \"updateSensorMetadataResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.UpdateSensorMetadataResponse\")\n public ReturnStatus updateSensorMetadata(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1,\n @WebParam(name = \"arg2\", targetNamespace = \"\")\n String arg2);\n\n /**\n * \n * @param arg0\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"deleteSensorMetadata\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.DeleteSensorMetadata\")\n @ResponseWrapper(localName = \"deleteSensorMetadataResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.DeleteSensorMetadataResponse\")\n public ReturnStatus deleteSensorMetadata(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"addSensorToAsset\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.AddSensorToAsset\")\n @ResponseWrapper(localName = \"addSensorToAssetResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.AddSensorToAssetResponse\")\n public ReturnStatus addSensorToAsset(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n int arg1);\n\n /**\n * \n * @param arg0\n * @return\n * returns java.util.List<com.woolpert.safe.webservices.Sensor>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getSensorsForAsset\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.GetSensorsForAsset\")\n @ResponseWrapper(localName = \"getSensorsForAssetResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.GetSensorsForAssetResponse\")\n public List<Sensor> getSensorsForAsset(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"addAssetToSensor\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.AddAssetToSensor\")\n @ResponseWrapper(localName = \"addAssetToSensorResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.AddAssetToSensorResponse\")\n public ReturnStatus addAssetToSensor(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n int arg1);\n\n /**\n * \n * @param arg0\n * @return\n * returns java.util.List<com.woolpert.safe.webservices.Asset>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAssetsForSensor\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.GetAssetsForSensor\")\n @ResponseWrapper(localName = \"getAssetsForSensorResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.GetAssetsForSensorResponse\")\n public List<Asset> getAssetsForSensor(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n}", "@WebService(name = \"EntityServer\", targetNamespace=\"http://activitiderbysoapservice.spqr.de/\")\n@SOAPBinding(style = SOAPBinding.Style.RPC)\npublic interface EntityServer {\n @WebMethod @WebResult(partName = \"return\")String getTimeAsString();\n @WebMethod @WebResult(partName = \"return\")long getTimeAsElapsed();\n @WebMethod @WebResult(partName = \"return\")long orderParts(String part);\n @WebMethod @WebResult(partName = \"return\")boolean changeBackWindowAmount(int amount);\n @WebMethod @WebResult(partName = \"return\")boolean changeDoorAmount(int amount);\n @WebMethod @WebResult(partName = \"return\")boolean changeFronWindowAmount(int amount);\n @WebMethod @WebResult(partName = \"return\")boolean changeEngineAmount(int amount);\n @WebMethod @WebResult(partName = \"return\")boolean changeTireAmount(int amount);\n @WebMethod @WebResult(partName = \"return\")boolean changeWheelAmount(int amount);\n @WebMethod @WebResult(partName = \"return\")long amountOfParts(String part);\n \n}", "@WebService(name = \"BankInterface\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface BankInterface {\n\n\n /**\n * \n * @param arg0\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getOperationByID\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetOperationByID\")\n @ResponseWrapper(localName = \"getOperationByIDResponse\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetOperationByIDResponse\")\n public String getOperationByID(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @return\n * returns com.mycompany.ws_bank.SET\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getConti\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetConti\")\n @ResponseWrapper(localName = \"getContiResponse\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetContiResponse\")\n public SET getConti();\n\n /**\n * \n * @param arg0\n * @return\n * returns java.util.List<java.lang.String>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getOperationsByClientID\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetOperationsByClientID\")\n @ResponseWrapper(localName = \"getOperationsByClientIDResponse\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetOperationsByClientIDResponse\")\n public List<String> getOperationsByClientID(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @return\n * returns java.util.List<java.lang.String>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getClientIDs\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetClientIDs\")\n @ResponseWrapper(localName = \"getClientIDsResponse\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetClientIDsResponse\")\n public List<String> getClientIDs();\n\n /**\n * \n * @return\n * returns com.mycompany.ws_bank.MAP\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getDbop\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetDbop\")\n @ResponseWrapper(localName = \"getDbopResponse\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetDbopResponse\")\n public MAP getDbop();\n\n /**\n * \n * @param arg0\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getClientByID\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetClientByID\")\n @ResponseWrapper(localName = \"getClientByIDResponse\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetClientByIDResponse\")\n public String getClientByID(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n}", "@WebService(targetNamespace = \"http://www.polytech.unice.fr/si/4a/isa/tcf/cart\", name = \"CartWebService\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface CartWebService {\n\n @WebMethod\n @RequestWrapper(localName = \"validate\", targetNamespace = \"http://www.polytech.unice.fr/si/4a/isa/tcf/cart\", className = \"stubs.cart.Validate\")\n @ResponseWrapper(localName = \"validateResponse\", targetNamespace = \"http://www.polytech.unice.fr/si/4a/isa/tcf/cart\", className = \"stubs.cart.ValidateResponse\")\n @WebResult(name = \"order_id\", targetNamespace = \"\")\n public java.lang.String validate(\n @WebParam(name = \"customer_name\", targetNamespace = \"\")\n java.lang.String customerName\n ) throws PaymentException_Exception, UnknownCustomerException_Exception, EmptyCartException_Exception;\n\n @WebMethod\n @RequestWrapper(localName = \"removeItemToCustomerCart\", targetNamespace = \"http://www.polytech.unice.fr/si/4a/isa/tcf/cart\", className = \"stubs.cart.RemoveItemToCustomerCart\")\n @ResponseWrapper(localName = \"removeItemToCustomerCartResponse\", targetNamespace = \"http://www.polytech.unice.fr/si/4a/isa/tcf/cart\", className = \"stubs.cart.RemoveItemToCustomerCartResponse\")\n public void removeItemToCustomerCart(\n @WebParam(name = \"customer_name\", targetNamespace = \"\")\n java.lang.String customerName,\n @WebParam(name = \"item\", targetNamespace = \"\")\n stubs.cart.Item item\n ) throws UnknownCustomerException_Exception;\n\n @WebMethod\n @RequestWrapper(localName = \"addItemToCustomerCart\", targetNamespace = \"http://www.polytech.unice.fr/si/4a/isa/tcf/cart\", className = \"stubs.cart.AddItemToCustomerCart\")\n @ResponseWrapper(localName = \"addItemToCustomerCartResponse\", targetNamespace = \"http://www.polytech.unice.fr/si/4a/isa/tcf/cart\", className = \"stubs.cart.AddItemToCustomerCartResponse\")\n public void addItemToCustomerCart(\n @WebParam(name = \"customer_name\", targetNamespace = \"\")\n java.lang.String customerName,\n @WebParam(name = \"item\", targetNamespace = \"\")\n stubs.cart.Item item\n ) throws UnknownCustomerException_Exception;\n\n @WebMethod\n @RequestWrapper(localName = \"getCustomerCartContents\", targetNamespace = \"http://www.polytech.unice.fr/si/4a/isa/tcf/cart\", className = \"stubs.cart.GetCustomerCartContents\")\n @ResponseWrapper(localName = \"getCustomerCartContentsResponse\", targetNamespace = \"http://www.polytech.unice.fr/si/4a/isa/tcf/cart\", className = \"stubs.cart.GetCustomerCartContentsResponse\")\n @WebResult(name = \"cart_contents\", targetNamespace = \"\")\n public java.util.List<stubs.cart.Item> getCustomerCartContents(\n @WebParam(name = \"customer_name\", targetNamespace = \"\")\n java.lang.String customerName\n ) throws UnknownCustomerException_Exception;\n}", "@WebService(targetNamespace = \"http://hr.ibm.fmis.gw.BudgetUserLibrary/interfaces/BankManagementInterface\", name = \"BankManagementInterface\")\r\n@XmlSeeAlso({budgetuserlibrary.gw.fmis.ibm.hr.infotypes.ObjectFactory.class, ObjectFactory.class, budgetuserlibrary.gw.fmis.ibm.hr.messages.ObjectFactory.class})\r\npublic interface BankManagementInterface {\r\n\r\n @WebResult(name = \"bankResponseMsg\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"retrieveBank\", targetNamespace = \"http://hr.ibm.fmis.gw.BudgetUserLibrary/interfaces/BankManagementInterface\", className = \"budgetuserlibrary.gw.fmis.ibm.hr.interfaces.bankmanagementinterface.RetrieveBank\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"retrieveBankResponse\", targetNamespace = \"http://hr.ibm.fmis.gw.BudgetUserLibrary/interfaces/BankManagementInterface\", className = \"budgetuserlibrary.gw.fmis.ibm.hr.interfaces.bankmanagementinterface.RetrieveBankResponse\")\r\n public budgetuserlibrary.gw.fmis.ibm.hr.messages.BankResponseMsg retrieveBank(\r\n @WebParam(name = \"bankRetrieveRequestMsg\", targetNamespace = \"\")\r\n budgetuserlibrary.gw.fmis.ibm.hr.messages.BankRetrieveRequestMsg bankRetrieveRequestMsg\r\n );\r\n\r\n @WebResult(name = \"bankResponseMsg\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"changeBank\", targetNamespace = \"http://hr.ibm.fmis.gw.BudgetUserLibrary/interfaces/BankManagementInterface\", className = \"budgetuserlibrary.gw.fmis.ibm.hr.interfaces.bankmanagementinterface.ChangeBank\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"changeBankResponse\", targetNamespace = \"http://hr.ibm.fmis.gw.BudgetUserLibrary/interfaces/BankManagementInterface\", className = \"budgetuserlibrary.gw.fmis.ibm.hr.interfaces.bankmanagementinterface.ChangeBankResponse\")\r\n public budgetuserlibrary.gw.fmis.ibm.hr.messages.BankResponseMsg changeBank(\r\n @WebParam(name = \"bankChangeRequestMsg\", targetNamespace = \"\")\r\n budgetuserlibrary.gw.fmis.ibm.hr.messages.BankChangeRequestMsg bankChangeRequestMsg\r\n );\r\n\r\n @WebResult(name = \"bankResponseMsg\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"createBank\", targetNamespace = \"http://hr.ibm.fmis.gw.BudgetUserLibrary/interfaces/BankManagementInterface\", className = \"budgetuserlibrary.gw.fmis.ibm.hr.interfaces.bankmanagementinterface.CreateBank\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"createBankResponse\", targetNamespace = \"http://hr.ibm.fmis.gw.BudgetUserLibrary/interfaces/BankManagementInterface\", className = \"budgetuserlibrary.gw.fmis.ibm.hr.interfaces.bankmanagementinterface.CreateBankResponse\")\r\n public budgetuserlibrary.gw.fmis.ibm.hr.messages.BankResponseMsg createBank(\r\n @WebParam(name = \"bankCreationRequestMsg\", targetNamespace = \"\")\r\n budgetuserlibrary.gw.fmis.ibm.hr.messages.BankCreationRequestMsg bankCreationRequestMsg\r\n );\r\n}", "@WebService(name = \"databaseInfoService\", targetNamespace = \"urn:Vidal\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface DatabaseInfoService {\n\n\n /**\n * \n * @param lapVersion\n * @param codeAdeli\n * @param userType\n * @param codeRpps\n * @param codeUserLap\n * @param codeLap\n * @return\n * returns com.whatever.DatabaseInfoService.VIDALAuthStatus\n */\n @WebMethod\n @WebResult(name = \"checkUser\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"checkUser\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.CheckUser\")\n @ResponseWrapper(localName = \"checkUserResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.CheckUserResponse\")\n public VIDALAuthStatus checkUser(\n @WebParam(name = \"codeUserLap\", targetNamespace = \"urn:Vidal\")\n String codeUserLap,\n @WebParam(name = \"codeLap\", targetNamespace = \"urn:Vidal\")\n String codeLap,\n @WebParam(name = \"lapVersion\", targetNamespace = \"urn:Vidal\")\n String lapVersion,\n @WebParam(name = \"userType\", targetNamespace = \"urn:Vidal\")\n String userType,\n @WebParam(name = \"codeRpps\", targetNamespace = \"urn:Vidal\")\n String codeRpps,\n @WebParam(name = \"codeAdeli\", targetNamespace = \"urn:Vidal\")\n String codeAdeli);\n\n /**\n * \n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(name = \"CeMarkingLabel\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"getCEMarkingLabel\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetCEMarkingLabel\")\n @ResponseWrapper(localName = \"getCEMarkingLabelResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetCEMarkingLabelResponse\")\n public String getCEMarkingLabel();\n\n /**\n * \n * @return\n * returns javax.xml.datatype.XMLGregorianCalendar\n */\n @WebMethod\n @WebResult(name = \"expiryDate\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"getDataExpiryDate\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetDataExpiryDate\")\n @ResponseWrapper(localName = \"getDataExpiryDateResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetDataExpiryDateResponse\")\n public XMLGregorianCalendar getDataExpiryDate();\n\n /**\n * \n * @return\n * returns javax.xml.datatype.XMLGregorianCalendar\n */\n @WebMethod\n @WebResult(name = \"extractionDate\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"getExtractionDate\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetExtractionDate\")\n @ResponseWrapper(localName = \"getExtractionDateResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetExtractionDateResponse\")\n public XMLGregorianCalendar getExtractionDate();\n\n /**\n * \n * @return\n * returns javax.xml.datatype.XMLGregorianCalendar\n */\n @WebMethod\n @WebResult(name = \"graceEndDate\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"getGraceEndDate\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetGraceEndDate\")\n @ResponseWrapper(localName = \"getGraceEndDateResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetGraceEndDateResponse\")\n public XMLGregorianCalendar getGraceEndDate();\n\n /**\n * \n * @return\n * returns javax.xml.datatype.XMLGregorianCalendar\n */\n @WebMethod\n @WebResult(name = \"licenceEndDate\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"getLicenceEndDate\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetLicenceEndDate\")\n @ResponseWrapper(localName = \"getLicenceEndDateResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetLicenceEndDateResponse\")\n public XMLGregorianCalendar getLicenceEndDate();\n\n /**\n * \n * @return\n * returns com.whatever.DatabaseInfoService.LicencingStatus\n */\n @WebMethod\n @WebResult(name = \"licenceOrGraceStatus\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"getLicenceOrGraceStatus\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetLicenceOrGraceStatus\")\n @ResponseWrapper(localName = \"getLicenceOrGraceStatusResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetLicenceOrGraceStatusResponse\")\n public LicencingStatus getLicenceOrGraceStatus();\n\n /**\n * \n * @return\n * returns javax.xml.datatype.XMLGregorianCalendar\n */\n @WebMethod\n @WebResult(name = \"licenceStartDate\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"getLicenceStartDate\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetLicenceStartDate\")\n @ResponseWrapper(localName = \"getLicenceStartDateResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetLicenceStartDateResponse\")\n public XMLGregorianCalendar getLicenceStartDate();\n\n /**\n * \n * @return\n * returns com.whatever.DatabaseInfoService.ProductLineType\n */\n @WebMethod\n @WebResult(name = \"productLine\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"getProductLine\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetProductLine\")\n @ResponseWrapper(localName = \"getProductLineResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetProductLineResponse\")\n public ProductLineType getProductLine();\n\n /**\n * \n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(name = \"version\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"getVersion\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetVersion\")\n @ResponseWrapper(localName = \"getVersionResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetVersionResponse\")\n public String getVersion();\n\n /**\n * \n * @return\n * returns javax.xml.datatype.XMLGregorianCalendar\n */\n @WebMethod\n @WebResult(name = \"warningDate\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"getWarningDate\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetWarningDate\")\n @ResponseWrapper(localName = \"getWarningDateResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetWarningDateResponse\")\n public XMLGregorianCalendar getWarningDate();\n\n}", "public interface AcSentEdiInterchangeDomesticCandidateRouteMessageServiceIF\n extends AcModelServiceIF\n{\n AcSentEdiInterchangeDomesticCandidateRouteMessage getSentEdiInterchangeDomesticCandidateRouteMessage(Integer sentEdiInterchangeId, Integer domesticCandidateRouteMessageId);\n AcSentEdiInterchangeDomesticCandidateRouteMessage getSentEdiInterchangeDomesticCandidateRouteMessage(AcSentEdiInterchangeDomesticCandidateRouteMessagePkIF pk);\n boolean sentEdiInterchangeDomesticCandidateRouteMessageExists(Integer sentEdiInterchangeId, Integer domesticCandidateRouteMessageId);\n boolean sentEdiInterchangeDomesticCandidateRouteMessageExists(AcSentEdiInterchangeDomesticCandidateRouteMessagePkIF pk);\n AcSentEdiInterchangeDomesticCandidateRouteMessage getSentEdiInterchangeDomesticCandidateRouteMessageByWebKey(String webKey);\n JwList<AcSentEdiInterchangeDomesticCandidateRouteMessage> getAll();\n JwList<AcSentEdiInterchangeDomesticCandidateRouteMessage> getAllAvailable();\n JwList<AcSentEdiInterchangeDomesticCandidateRouteMessage> getAllWhere(String whereClause, Integer rowLimit);\n void insert(AcSentEdiInterchangeDomesticCandidateRouteMessage sentEdiInterchangeDomesticCandidateRouteMessage);\n void update(AcSentEdiInterchangeDomesticCandidateRouteMessage sentEdiInterchangeDomesticCandidateRouteMessage);\n void delete(Integer sentEdiInterchangeId, Integer domesticCandidateRouteMessageId);\n}", "@WebService(name = \"UserWebService\", targetNamespace = \"http://webservice.openmeetings.apache.org/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface UserWebService {\n\n\n /**\n * \n * @param confirm\n * @param user\n * @param sid\n * @return\n * returns cn.edu.service.userwebService.UserDTO\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"add\", targetNamespace = \"http://webservice.openmeetings.apache.org/\", className = \"cn.edu.service.userwebService.Add\")\n @ResponseWrapper(localName = \"addResponse\", targetNamespace = \"http://webservice.openmeetings.apache.org/\", className = \"cn.edu.service.userwebService.AddResponse\")\n public UserDTO add(\n @WebParam(name = \"sid\", targetNamespace = \"\")\n String sid,\n @WebParam(name = \"user\", targetNamespace = \"\")\n UserDTO user,\n @WebParam(name = \"confirm\", targetNamespace = \"\")\n Boolean confirm);\n\n /**\n * \n * @param sid\n * @return\n * returns java.util.List<cn.edu.service.userwebService.UserDTO>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"get\", targetNamespace = \"http://webservice.openmeetings.apache.org/\", className = \"cn.edu.service.userwebService.Get\")\n @ResponseWrapper(localName = \"getResponse\", targetNamespace = \"http://webservice.openmeetings.apache.org/\", className = \"cn.edu.service.userwebService.GetResponse\")\n public List<UserDTO> get(\n @WebParam(name = \"sid\", targetNamespace = \"\")\n String sid);\n\n /**\n * \n * @param options\n * @param user\n * @param sid\n * @return\n * returns cn.edu.service.userwebService.ServiceResult\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getRoomHash\", targetNamespace = \"http://webservice.openmeetings.apache.org/\", className = \"cn.edu.service.userwebService.GetRoomHash\")\n @ResponseWrapper(localName = \"getRoomHashResponse\", targetNamespace = \"http://webservice.openmeetings.apache.org/\", className = \"cn.edu.service.userwebService.GetRoomHashResponse\")\n public ServiceResult getRoomHash(\n @WebParam(name = \"sid\", targetNamespace = \"\")\n String sid,\n @WebParam(name = \"user\", targetNamespace = \"\")\n ExternalUserDTO user,\n @WebParam(name = \"options\", targetNamespace = \"\")\n RoomOptionsDTO options);\n\n /**\n * \n * @param id\n * @param sid\n * @return\n * returns cn.edu.service.userwebService.ServiceResult\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"delete\", targetNamespace = \"http://webservice.openmeetings.apache.org/\", className = \"cn.edu.service.userwebService.Delete\")\n @ResponseWrapper(localName = \"deleteResponse\", targetNamespace = \"http://webservice.openmeetings.apache.org/\", className = \"cn.edu.service.userwebService.DeleteResponse\")\n public ServiceResult delete(\n @WebParam(name = \"sid\", targetNamespace = \"\")\n String sid,\n @WebParam(name = \"id\", targetNamespace = \"\")\n long id);\n\n /**\n * \n * @param externaltype\n * @param externalid\n * @param sid\n * @return\n * returns cn.edu.service.userwebService.ServiceResult\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"deleteExternal\", targetNamespace = \"http://webservice.openmeetings.apache.org/\", className = \"cn.edu.service.userwebService.DeleteExternal\")\n @ResponseWrapper(localName = \"deleteExternalResponse\", targetNamespace = \"http://webservice.openmeetings.apache.org/\", className = \"cn.edu.service.userwebService.DeleteExternalResponse\")\n public ServiceResult deleteExternal(\n @WebParam(name = \"sid\", targetNamespace = \"\")\n String sid,\n @WebParam(name = \"externaltype\", targetNamespace = \"\")\n String externaltype,\n @WebParam(name = \"externalid\", targetNamespace = \"\")\n String externalid);\n\n /**\n * \n * @param pass\n * @param user\n * @return\n * returns cn.edu.service.userwebService.ServiceResult\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"login\", targetNamespace = \"http://webservice.openmeetings.apache.org/\", className = \"cn.edu.service.userwebService.Login\")\n @ResponseWrapper(localName = \"loginResponse\", targetNamespace = \"http://webservice.openmeetings.apache.org/\", className = \"cn.edu.service.userwebService.LoginResponse\")\n public ServiceResult login(\n @WebParam(name = \"user\", targetNamespace = \"\")\n String user,\n @WebParam(name = \"pass\", targetNamespace = \"\")\n String pass);\n\n}", "@WebService(name = \"DomesticRemittanceByPartnerService\", targetNamespace = \"http://www.quantiguous.com/services\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface DomesticRemittanceByPartnerService {\n\n\n /**\n * \n * @param beneficiaryAccountNo\n * @param remitterToBeneficiaryInfo\n * @param remitterAddress\n * @param remitterIFSC\n * @param partnerCode\n * @param transactionStatus\n * @param transferAmount\n * @param remitterName\n * @param beneficiaryAddress\n * @param uniqueResponseNo\n * @param version\n * @param requestReferenceNo\n * @param beneficiaryIFSC\n * @param debitAccountNo\n * @param uniqueRequestNo\n * @param beneficiaryName\n * @param customerID\n * @param beneficiaryContact\n * @param transferType\n * @param attemptNo\n * @param transferCurrencyCode\n * @param remitterContact\n * @param remitterAccountNo\n * @param lowBalanceAlert\n */\n @WebMethod(action = \"http://www.quantiguous.com/services/DomesticRemittanceByPartnerService/remit\")\n @RequestWrapper(localName = \"remit\", targetNamespace = \"http://www.quantiguous.com/services\", className = \"com.quantiguous.services.Remit\")\n @ResponseWrapper(localName = \"remitResponse\", targetNamespace = \"http://www.quantiguous.com/services\", className = \"com.quantiguous.services.RemitResponse\")\n public void remit(\n @WebParam(name = \"version\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.INOUT)\n Holder<String> version,\n @WebParam(name = \"uniqueRequestNo\", targetNamespace = \"http://www.quantiguous.com/services\")\n String uniqueRequestNo,\n @WebParam(name = \"partnerCode\", targetNamespace = \"http://www.quantiguous.com/services\")\n String partnerCode,\n @WebParam(name = \"customerID\", targetNamespace = \"http://www.quantiguous.com/services\")\n String customerID,\n @WebParam(name = \"debitAccountNo\", targetNamespace = \"http://www.quantiguous.com/services\")\n String debitAccountNo,\n @WebParam(name = \"remitterAccountNo\", targetNamespace = \"http://www.quantiguous.com/services\")\n String remitterAccountNo,\n @WebParam(name = \"remitterIFSC\", targetNamespace = \"http://www.quantiguous.com/services\")\n String remitterIFSC,\n @WebParam(name = \"remitterName\", targetNamespace = \"http://www.quantiguous.com/services\")\n String remitterName,\n @WebParam(name = \"remitterAddress\", targetNamespace = \"http://www.quantiguous.com/services\")\n AddressType remitterAddress,\n @WebParam(name = \"remitterContact\", targetNamespace = \"http://www.quantiguous.com/services\")\n ContactType remitterContact,\n @WebParam(name = \"beneficiaryName\", targetNamespace = \"http://www.quantiguous.com/services\")\n String beneficiaryName,\n @WebParam(name = \"beneficiaryAddress\", targetNamespace = \"http://www.quantiguous.com/services\")\n AddressType beneficiaryAddress,\n @WebParam(name = \"beneficiaryContact\", targetNamespace = \"http://www.quantiguous.com/services\")\n ContactType beneficiaryContact,\n @WebParam(name = \"beneficiaryAccountNo\", targetNamespace = \"http://www.quantiguous.com/services\")\n String beneficiaryAccountNo,\n @WebParam(name = \"beneficiaryIFSC\", targetNamespace = \"http://www.quantiguous.com/services\")\n String beneficiaryIFSC,\n @WebParam(name = \"transferType\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.INOUT)\n Holder<TransferTypeType> transferType,\n @WebParam(name = \"transferCurrencyCode\", targetNamespace = \"http://www.quantiguous.com/services\")\n CurrencyCodeType transferCurrencyCode,\n @WebParam(name = \"transferAmount\", targetNamespace = \"http://www.quantiguous.com/services\")\n BigDecimal transferAmount,\n @WebParam(name = \"remitterToBeneficiaryInfo\", targetNamespace = \"http://www.quantiguous.com/services\")\n String remitterToBeneficiaryInfo,\n @WebParam(name = \"uniqueResponseNo\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<String> uniqueResponseNo,\n @WebParam(name = \"attemptNo\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<BigInteger> attemptNo,\n @WebParam(name = \"requestReferenceNo\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<String> requestReferenceNo,\n @WebParam(name = \"lowBalanceAlert\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<Boolean> lowBalanceAlert,\n @WebParam(name = \"transactionStatus\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<TransactionStatusType> transactionStatus);\n\n /**\n * \n * @param accountCurrencyCode\n * @param partnerCode\n * @param accountNo\n * @param accountBalanceAmount\n * @param customerID\n * @param version\n * @param lowBalanceAlert\n */\n @WebMethod(action = \"http://www.quantiguous.com/services/DomesticRemittanceByPartnerService/getBalance\")\n @RequestWrapper(localName = \"getBalance\", targetNamespace = \"http://www.quantiguous.com/services\", className = \"com.quantiguous.services.GetBalance\")\n @ResponseWrapper(localName = \"getBalanceResponse\", targetNamespace = \"http://www.quantiguous.com/services\", className = \"com.quantiguous.services.GetBalanceResponse\")\n public void getBalance(\n @WebParam(name = \"version\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.INOUT)\n Holder<String> version,\n @WebParam(name = \"partnerCode\", targetNamespace = \"http://www.quantiguous.com/services\")\n String partnerCode,\n @WebParam(name = \"customerID\", targetNamespace = \"http://www.quantiguous.com/services\")\n String customerID,\n @WebParam(name = \"accountNo\", targetNamespace = \"http://www.quantiguous.com/services\")\n String accountNo,\n @WebParam(name = \"accountCurrencyCode\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<CurrencyCodeType> accountCurrencyCode,\n @WebParam(name = \"accountBalanceAmount\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<BigDecimal> accountBalanceAmount,\n @WebParam(name = \"lowBalanceAlert\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<Boolean> lowBalanceAlert);\n\n /**\n * \n * @param reqTransferType\n * @param partnerCode\n * @param transactionStatus\n * @param transferAmount\n * @param transferType\n * @param transactionDate\n * @param version\n * @param transferCurrencyCode\n * @param requestReferenceNo\n */\n @WebMethod(action = \"http://www.quantiguous.com/services/DomesticRemittanceByPartnerService/getRemittanceStatus\")\n @RequestWrapper(localName = \"getRemittanceStatus\", targetNamespace = \"http://www.quantiguous.com/services\", className = \"com.quantiguous.services.GetRemittanceStatus\")\n @ResponseWrapper(localName = \"getRemittanceStatusResponse\", targetNamespace = \"http://www.quantiguous.com/services\", className = \"com.quantiguous.services.GetRemittanceStatusResponse\")\n public void getRemittanceStatus(\n @WebParam(name = \"version\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.INOUT)\n Holder<String> version,\n @WebParam(name = \"partnerCode\", targetNamespace = \"http://www.quantiguous.com/services\")\n String partnerCode,\n @WebParam(name = \"requestReferenceNo\", targetNamespace = \"http://www.quantiguous.com/services\")\n String requestReferenceNo,\n @WebParam(name = \"transferType\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<TransferTypeType> transferType,\n @WebParam(name = \"reqTransferType\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<TransferTypeType> reqTransferType,\n @WebParam(name = \"transactionDate\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<XMLGregorianCalendar> transactionDate,\n @WebParam(name = \"transferAmount\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<BigDecimal> transferAmount,\n @WebParam(name = \"transferCurrencyCode\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<CurrencyCodeType> transferCurrencyCode,\n @WebParam(name = \"transactionStatus\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<TransactionStatusType> transactionStatus);\n\n /**\n * \n * @param numDebits\n * @param partnerCode\n * @param dateRange\n * @param accountNo\n * @param customerID\n * @param closingBalance\n * @param numTransactions\n * @param numCredits\n * @param version\n * @param openingBalance\n * @param transactionsArray\n */\n @WebMethod(action = \"http://www.quantiguous.com/services/DomesticRemittanceByPartnerService/getTransactions\")\n @RequestWrapper(localName = \"getTransactions\", targetNamespace = \"http://www.quantiguous.com/services\", className = \"com.quantiguous.services.GetTransactions\")\n @ResponseWrapper(localName = \"getTransactionsResponse\", targetNamespace = \"http://www.quantiguous.com/services\", className = \"com.quantiguous.services.GetTransactionsResponse\")\n public void getTransactions(\n @WebParam(name = \"version\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.INOUT)\n Holder<String> version,\n @WebParam(name = \"partnerCode\", targetNamespace = \"http://www.quantiguous.com/services\")\n String partnerCode,\n @WebParam(name = \"customerID\", targetNamespace = \"http://www.quantiguous.com/services\")\n String customerID,\n @WebParam(name = \"accountNo\", targetNamespace = \"http://www.quantiguous.com/services\")\n String accountNo,\n @WebParam(name = \"dateRange\", targetNamespace = \"http://www.quantiguous.com/services\")\n DateRangeType dateRange,\n @WebParam(name = \"openingBalance\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<BigDecimal> openingBalance,\n @WebParam(name = \"numDebits\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<BigInteger> numDebits,\n @WebParam(name = \"numCredits\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<BigInteger> numCredits,\n @WebParam(name = \"closingBalance\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<BigDecimal> closingBalance,\n @WebParam(name = \"numTransactions\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<BigInteger> numTransactions,\n @WebParam(name = \"transactionsArray\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<TransactionsArrayType> transactionsArray);\n\n}", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, sample.ws.HelloWorldWSStub.HelloAuthenticated param, boolean optimizeContent)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(sample.ws.HelloWorldWSStub.HelloAuthenticated.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "@WebService(name = \"UsersTraining\", targetNamespace = \"http://SOAPService.BusinessLogic/\")\r\n@XmlSeeAlso({\r\n ObjectFactory.class\r\n})\r\npublic interface UsersTraining {\r\n\r\n\r\n /**\r\n * \r\n * @param monthFilter\r\n * @param eventName\r\n * @return\r\n * returns BusinessLogic.SOAPServiceClient.RobWS\r\n */\r\n @WebMethod(operationName = \"UsuariosACapacitar\")\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"UsuariosACapacitar\", targetNamespace = \"http://SOAPService.BusinessLogic/\", className = \"BusinessLogic.SOAPServiceClient.UsuariosACapacitar\")\r\n @ResponseWrapper(localName = \"UsuariosACapacitarResponse\", targetNamespace = \"http://SOAPService.BusinessLogic/\", className = \"BusinessLogic.SOAPServiceClient.UsuariosACapacitarResponse\")\r\n @Action(input = \"http://SOAPService.BusinessLogic/UsersTraining/UsuariosACapacitarRequest\", output = \"http://SOAPService.BusinessLogic/UsersTraining/UsuariosACapacitarResponse\")\r\n public RobWS usuariosACapacitar(\r\n @WebParam(name = \"EventName\", targetNamespace = \"\")\r\n String eventName,\r\n @WebParam(name = \"MonthFilter\", targetNamespace = \"\")\r\n int monthFilter);\r\n\r\n}", "@WebService(name = \"LDBSVServiceSoap\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\")\r\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\r\n@XmlSeeAlso({\r\n com.thalesgroup.rtti._2017_10_01.ldbsv.types.ObjectFactory.class,\r\n com.thalesgroup.rtti._2017_10_01.ldbsv.ObjectFactory.class,\r\n com.thalesgroup.rtti._2015_05_14.ldbsv_ref.types.ObjectFactory.class,\r\n com.thalesgroup.rtti._2012_01_13.ldbsv.types.ObjectFactory.class,\r\n com.thalesgroup.rtti._2013_11_28.token.types.ObjectFactory.class,\r\n com.thalesgroup.rtti._2014_02_20.ldbsv.types.ObjectFactory.class,\r\n com.thalesgroup.rtti._2015_05_14.ldbsv_ref.ObjectFactory.class,\r\n com.thalesgroup.rtti._2015_11_27.ldbsv.commontypes.ObjectFactory.class,\r\n com.thalesgroup.rtti._2015_11_27.ldbsv.types.ObjectFactory.class,\r\n com.thalesgroup.rtti._2016_02_16.ldbsv.types.ObjectFactory.class,\r\n com.thalesgroup.rtti._2017_10_01.ldbsv.commontypes.ObjectFactory.class,\r\n com.thalesgroup.rtti._2007_10_10.ldb.commontypes.ObjectFactory.class\r\n})\r\npublic interface LDBSVServiceSoap {\r\n\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetBoardResponseType\r\n */\r\n @WebMethod(operationName = \"GetArrivalDepartureBoardByCRS\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetArrivalDepartureBoardByCRS\")\r\n @WebResult(name = \"GetArrivalDepartureBoardByCRSResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetBoardResponseType getArrivalDepartureBoardByCRS(\r\n @WebParam(name = \"GetArrivalDepartureBoardByCRSRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetBoardByCRSParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetBoardResponseType\r\n */\r\n @WebMethod(operationName = \"GetArrivalDepartureBoardByTIPLOC\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetArrivalDepartureBoardByTIPLOC\")\r\n @WebResult(name = \"GetArrivalDepartureBoardByTIPLOCResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetBoardResponseType getArrivalDepartureBoardByTIPLOC(\r\n @WebParam(name = \"GetArrivalDepartureBoardByTIPLOCRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetBoardByTIPLOCParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetBoardResponseType\r\n */\r\n @WebMethod(operationName = \"GetArrivalBoardByCRS\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetArrivalBoardByCRS\")\r\n @WebResult(name = \"GetArrivalBoardByCRSResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetBoardResponseType getArrivalBoardByCRS(\r\n @WebParam(name = \"GetArrivalBoardByCRSRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetBoardByCRSParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetBoardResponseType\r\n */\r\n @WebMethod(operationName = \"GetArrivalBoardByTIPLOC\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetArrivalBoardByTIPLOC\")\r\n @WebResult(name = \"GetArrivalBoardByTIPLOCResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetBoardResponseType getArrivalBoardByTIPLOC(\r\n @WebParam(name = \"GetArrivalBoardByTIPLOCRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetBoardByTIPLOCParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetBoardResponseType\r\n */\r\n @WebMethod(operationName = \"GetDepartureBoardByCRS\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetDepartureBoardByCRS\")\r\n @WebResult(name = \"GetDepartureBoardByCRSResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetBoardResponseType getDepartureBoardByCRS(\r\n @WebParam(name = \"GetDepartureBoardByCRSRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetBoardByCRSParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetBoardResponseType\r\n */\r\n @WebMethod(operationName = \"GetDepartureBoardByTIPLOC\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetDepartureBoardByTIPLOC\")\r\n @WebResult(name = \"GetDepartureBoardByTIPLOCResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetBoardResponseType getDepartureBoardByTIPLOC(\r\n @WebParam(name = \"GetDepartureBoardByTIPLOCRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetBoardByTIPLOCParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetServiceDetailsResponseType\r\n */\r\n @WebMethod(operationName = \"GetServiceDetailsByRID\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetServiceDetailsByRID\")\r\n @WebResult(name = \"GetServiceDetailsByRIDResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetServiceDetailsResponseType getServiceDetailsByRID(\r\n @WebParam(name = \"GetServiceDetailsByRIDRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetServiceDetailsByRIDParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.QueryServicesResponseType\r\n */\r\n @WebMethod(operationName = \"QueryServices\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/QueryServices\")\r\n @WebResult(name = \"QueryServicesResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public QueryServicesResponseType queryServices(\r\n @WebParam(name = \"QueryServicesRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n QueryServicesRequestParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetReasonCodeResponseType\r\n */\r\n @WebMethod(operationName = \"GetReasonCode\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetReasonCode\")\r\n @WebResult(name = \"GetReasonCodeResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetReasonCodeResponseType getReasonCode(\r\n @WebParam(name = \"GetReasonCodeRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetReasonCodeRequestParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetReasonCodeListResponseType\r\n */\r\n @WebMethod(operationName = \"GetReasonCodeList\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetReasonCodeList\")\r\n @WebResult(name = \"GetReasonCodeListResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetReasonCodeListResponseType getReasonCodeList(\r\n @WebParam(name = \"GetReasonCodeListRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n VoidParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetDisruptionListResponseType\r\n */\r\n @WebMethod(operationName = \"GetDisruptionList\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetDisruptionList\")\r\n @WebResult(name = \"GetDisruptionListResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetDisruptionListResponseType getDisruptionList(\r\n @WebParam(name = \"GetDisruptionListRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetDisruptionListRequestParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetSourceInstanceNamesResponseType\r\n */\r\n @WebMethod(operationName = \"GetSourceInstanceNames\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetSourceInstanceNames\")\r\n @WebResult(name = \"GetSourceInstanceNamesResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetSourceInstanceNamesResponseType getSourceInstanceNames(\r\n @WebParam(name = \"GetSourceInstanceNamesRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n VoidParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetHistoricDepartureBoardResponseType\r\n */\r\n @WebMethod(operationName = \"GetHistoricDepartureBoard\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetHistoricDepartureBoard\")\r\n @WebResult(name = \"GetHistoricDepartureBoardResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetHistoricDepartureBoardResponseType getHistoricDepartureBoard(\r\n @WebParam(name = \"GetHistoricDepartureBoardRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetHistoricDepartureBoardRequestParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetHistoricServiceDetailsResponseType\r\n */\r\n @WebMethod(operationName = \"GetHistoricServiceDetails\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetHistoricServiceDetails\")\r\n @WebResult(name = \"GetHistoricServiceDetailsResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetHistoricServiceDetailsResponseType getHistoricServiceDetails(\r\n @WebParam(name = \"GetHistoricServiceDetailsRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetHistoricServiceDetailsRequestParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetHistoricTimeLineResponseType\r\n */\r\n @WebMethod(operationName = \"GetHistoricTimeLine\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetHistoricTimeLine\")\r\n @WebResult(name = \"GetHistoricTimeLineResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetHistoricTimeLineResponseType getHistoricTimeLine(\r\n @WebParam(name = \"GetHistoricTimeLineRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetHistoricTimeLineRequestParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.QueryHistoricServicesResponseType\r\n */\r\n @WebMethod(operationName = \"QueryHistoricServices\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/QueryHistoricServices\")\r\n @WebResult(name = \"QueryHistoricServicesResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public QueryHistoricServicesResponseType queryHistoricServices(\r\n @WebParam(name = \"QueryHistoricServicesRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n QueryHistoricServicesRequestParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetStationBoardWithDetailsResponseType\r\n */\r\n @WebMethod(operationName = \"GetArrDepBoardWithDetails\", action = \"http://thalesgroup.com/RTTI/2015-05-14/ldbsv/GetArrDepBoardWithDetails\")\r\n @WebResult(name = \"GetArrDepBoardWithDetailsResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetStationBoardWithDetailsResponseType getArrDepBoardWithDetails(\r\n @WebParam(name = \"GetArrDepBoardWithDetailsRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetBoardByCRSParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetStationBoardWithDetailsResponseType\r\n */\r\n @WebMethod(operationName = \"GetArrBoardWithDetails\", action = \"http://thalesgroup.com/RTTI/2015-05-14/ldbsv/GetArrBoardWithDetails\")\r\n @WebResult(name = \"GetArrBoardWithDetailsResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetStationBoardWithDetailsResponseType getArrBoardWithDetails(\r\n @WebParam(name = \"GetArrBoardWithDetailsRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetBoardByCRSParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetStationBoardWithDetailsResponseType\r\n */\r\n @WebMethod(operationName = \"GetDepBoardWithDetails\", action = \"http://thalesgroup.com/RTTI/2015-05-14/ldbsv/GetDepBoardWithDetails\")\r\n @WebResult(name = \"GetDepBoardWithDetailsResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetStationBoardWithDetailsResponseType getDepBoardWithDetails(\r\n @WebParam(name = \"GetDepBoardWithDetailsRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetBoardByCRSParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.DeparturesBoardResponseType\r\n */\r\n @WebMethod(operationName = \"GetNextDepartures\", action = \"http://thalesgroup.com/RTTI/2015-05-14/ldbsv/GetNextDepartures\")\r\n @WebResult(name = \"GetNextDeparturesResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public DeparturesBoardResponseType getNextDepartures(\r\n @WebParam(name = \"GetNextDeparturesRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetDeparturesParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.DeparturesBoardResponseType\r\n */\r\n @WebMethod(operationName = \"GetFastestDepartures\", action = \"http://thalesgroup.com/RTTI/2015-05-14/ldbsv/GetFastestDepartures\")\r\n @WebResult(name = \"GetFastestDeparturesResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public DeparturesBoardResponseType getFastestDepartures(\r\n @WebParam(name = \"GetFastestDeparturesRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetDeparturesParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.DeparturesBoardWithDetailsResponseType\r\n */\r\n @WebMethod(operationName = \"GetNextDeparturesWithDetails\", action = \"http://thalesgroup.com/RTTI/2015-05-14/ldbsv/GetNextDeparturesWithDetails\")\r\n @WebResult(name = \"GetNextDeparturesWithDetailsResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public DeparturesBoardWithDetailsResponseType getNextDeparturesWithDetails(\r\n @WebParam(name = \"GetNextDeparturesWithDetailsRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetDeparturesParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.DeparturesBoardWithDetailsResponseType\r\n */\r\n @WebMethod(operationName = \"GetFastestDeparturesWithDetails\", action = \"http://thalesgroup.com/RTTI/2015-05-14/ldbsv/GetFastestDeparturesWithDetails\")\r\n @WebResult(name = \"GetFastestDeparturesWithDetailsResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public DeparturesBoardWithDetailsResponseType getFastestDeparturesWithDetails(\r\n @WebParam(name = \"GetFastestDeparturesWithDetailsRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetDeparturesParams parameters);\r\n\r\n}", "@WebService(name = \"StudentWebService\", targetNamespace = \"http://jaxws.ws.ifmo.wishmaster.com/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface StudentWebService {\n\n\n /**\n * \n * @param entity\n * @return\n * returns com.wishmaster.ifmo.ws.jaxws.client.generated.Student\n * @throws InternalException\n * @throws IllegalRequestException\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"update\", targetNamespace = \"http://jaxws.ws.ifmo.wishmaster.com/\", className = \"com.wishmaster.ifmo.ws.jaxws.client.generated.Update\")\n @ResponseWrapper(localName = \"updateResponse\", targetNamespace = \"http://jaxws.ws.ifmo.wishmaster.com/\", className = \"com.wishmaster.ifmo.ws.jaxws.client.generated.UpdateResponse\")\n @Action(input = \"http://jaxws.ws.ifmo.wishmaster.com/StudentWebService/updateRequest\", output = \"http://jaxws.ws.ifmo.wishmaster.com/StudentWebService/updateResponse\", fault = {\n @FaultAction(className = IllegalRequestException.class, value = \"http://jaxws.ws.ifmo.wishmaster.com/StudentWebService/update/Fault/IllegalRequestException\"),\n @FaultAction(className = InternalException.class, value = \"http://jaxws.ws.ifmo.wishmaster.com/StudentWebService/update/Fault/InternalException\")\n })\n public Student update(\n @WebParam(name = \"entity\", targetNamespace = \"\")\n Student entity)\n throws IllegalRequestException, InternalException\n ;\n\n /**\n *\n * @param id\n * @throws InternalException\n */\n @WebMethod\n @RequestWrapper(localName = \"delete\", targetNamespace = \"http://jaxws.ws.ifmo.wishmaster.com/\", className = \"com.wishmaster.ifmo.ws.jaxws.client.generated.Delete\")\n @ResponseWrapper(localName = \"deleteResponse\", targetNamespace = \"http://jaxws.ws.ifmo.wishmaster.com/\", className = \"com.wishmaster.ifmo.ws.jaxws.client.generated.DeleteResponse\")\n @Action(input = \"http://jaxws.ws.ifmo.wishmaster.com/StudentWebService/deleteRequest\", output = \"http://jaxws.ws.ifmo.wishmaster.com/StudentWebService/deleteResponse\", fault = {\n @FaultAction(className = InternalException.class, value = \"http://jaxws.ws.ifmo.wishmaster.com/StudentWebService/delete/Fault/InternalException\")\n })\n public void delete(\n @WebParam(name = \"id\", targetNamespace = \"\")\n int id)\n throws InternalException\n ;\n\n /**\n *\n * @param entity\n * @return\n * returns java.lang.Integer\n * @throws InternalException\n * @throws IllegalRequestException\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"create\", targetNamespace = \"http://jaxws.ws.ifmo.wishmaster.com/\", className = \"com.wishmaster.ifmo.ws.jaxws.client.generated.Create\")\n @ResponseWrapper(localName = \"createResponse\", targetNamespace = \"http://jaxws.ws.ifmo.wishmaster.com/\", className = \"com.wishmaster.ifmo.ws.jaxws.client.generated.CreateResponse\")\n @Action(input = \"http://jaxws.ws.ifmo.wishmaster.com/StudentWebService/createRequest\", output = \"http://jaxws.ws.ifmo.wishmaster.com/StudentWebService/createResponse\", fault = {\n @FaultAction(className = IllegalRequestException.class, value = \"http://jaxws.ws.ifmo.wishmaster.com/StudentWebService/create/Fault/IllegalRequestException\"),\n @FaultAction(className = InternalException.class, value = \"http://jaxws.ws.ifmo.wishmaster.com/StudentWebService/create/Fault/InternalException\")\n })\n public Integer create(\n @WebParam(name = \"entity\", targetNamespace = \"\")\n Student entity)\n throws IllegalRequestException, InternalException\n ;\n\n /**\n *\n * @param filter\n * @return\n * returns java.util.List<com.wishmaster.ifmo.ws.jaxws.client.generated.Student>\n * @throws InternalException\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"search\", targetNamespace = \"http://jaxws.ws.ifmo.wishmaster.com/\", className = \"com.wishmaster.ifmo.ws.jaxws.client.generated.Search\")\n @ResponseWrapper(localName = \"searchResponse\", targetNamespace = \"http://jaxws.ws.ifmo.wishmaster.com/\", className = \"com.wishmaster.ifmo.ws.jaxws.client.generated.SearchResponse\")\n @Action(input = \"http://jaxws.ws.ifmo.wishmaster.com/StudentWebService/searchRequest\", output = \"http://jaxws.ws.ifmo.wishmaster.com/StudentWebService/searchResponse\", fault = {\n @FaultAction(className = InternalException.class, value = \"http://jaxws.ws.ifmo.wishmaster.com/StudentWebService/search/Fault/InternalException\")\n })\n public List<Student> search(\n @WebParam(name = \"filter\", targetNamespace = \"\")\n StudentsFilter filter)\n throws InternalException\n ;\n\n}", "@WebService(name = \"JMeadowsData\", targetNamespace = \"http://webservice.jmeadows.DNS /\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface JMeadowsData {\n\n\n /**\n * \n * @param siteCode\n * @param verifyCode\n * @param accessCode\n * @param requestingApp\n * @return\n * returns gov.va.med.jmeadows_2_3_1.webservice.User\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"login\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.Login\")\n @ResponseWrapper(localName = \"loginResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.LoginResponse\")\n public User login(\n @WebParam(name = \"siteCode\", targetNamespace = \"\")\n String siteCode,\n @WebParam(name = \"accessCode\", targetNamespace = \"\")\n String accessCode,\n @WebParam(name = \"verifyCode\", targetNamespace = \"\")\n String verifyCode,\n @WebParam(name = \"requestingApp\", targetNamespace = \"\")\n String requestingApp)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param authUserInfoQuery\n * @return\n * returns boolean\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"updateUserSubjectDN\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.UpdateUserSubjectDN\")\n @ResponseWrapper(localName = \"updateUserSubjectDNResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.UpdateUserSubjectDNResponse\")\n public boolean updateUserSubjectDN(\n @WebParam(name = \"authUserInfoQuery\", targetNamespace = \"\")\n AuthUserInfo authUserInfoQuery)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param siteCode\n * @param verifyCode\n * @param cardID\n * @param accessCode\n * @param ipAddress\n * @param requestingApp\n * @param subjectDN\n * @return\n * returns gov.va.med.jmeadows_2_3_1.webservice.User\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"loginEnterprise\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.LoginEnterprise\")\n @ResponseWrapper(localName = \"loginEnterpriseResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.LoginEnterpriseResponse\")\n public User loginEnterprise(\n @WebParam(name = \"cardID\", targetNamespace = \"\")\n String cardID,\n @WebParam(name = \"siteCode\", targetNamespace = \"\")\n String siteCode,\n @WebParam(name = \"accessCode\", targetNamespace = \"\")\n String accessCode,\n @WebParam(name = \"verifyCode\", targetNamespace = \"\")\n String verifyCode,\n @WebParam(name = \"requestingApp\", targetNamespace = \"\")\n String requestingApp,\n @WebParam(name = \"ipAddress\", targetNamespace = \"\")\n String ipAddress,\n @WebParam(name = \"subjectDN\", targetNamespace = \"\")\n String subjectDN)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.Patient>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"lookupPatient\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.LookupPatient\")\n @ResponseWrapper(localName = \"lookupPatientResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.LookupPatientResponse\")\n public List<Patient> lookupPatient(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns gov.va.med.jmeadows_2_3_1.webservice.ResponsePatientQuery\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"lookupPatientPDWS\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.LookupPatientPDWS\")\n @ResponseWrapper(localName = \"lookupPatientPDWSResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.LookupPatientPDWSResponse\")\n public ResponsePatientQuery lookupPatientPDWS(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n PdwsQueryBean queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns gov.va.med.jmeadows_2_3_1.webservice.Patient\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"selectPatient\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.SelectPatient\")\n @ResponseWrapper(localName = \"selectPatientResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.SelectPatientResponse\")\n public Patient selectPatient(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns gov.va.med.jmeadows_2_3_1.webservice.ResponsePatientSelect\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"selectPatientMVI\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.SelectPatientMVI\")\n @ResponseWrapper(localName = \"selectPatientMVIResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.SelectPatientMVIResponse\")\n public ResponsePatientSelect selectPatientMVI(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"selectPatientForVASensitive\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.SelectPatientForVASensitive\")\n @ResponseWrapper(localName = \"selectPatientForVASensitiveResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.SelectPatientForVASensitiveResponse\")\n public void selectPatientForVASensitive(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"auditVARestrictedAccess\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.AuditVARestrictedAccess\")\n @ResponseWrapper(localName = \"auditVARestrictedAccessResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.AuditVARestrictedAccessResponse\")\n public void auditVARestrictedAccess(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"auditSensitiveRecordAccess\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.AuditSensitiveRecordAccess\")\n @ResponseWrapper(localName = \"auditSensitiveRecordAccessResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.AuditSensitiveRecordAccessResponse\")\n public void auditSensitiveRecordAccess(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.PatientAdmission>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPatientAdmissions\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientAdmissions\")\n @ResponseWrapper(localName = \"getPatientAdmissionsResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientAdmissionsResponse\")\n public List<PatientAdmission> getPatientAdmissions(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.PatientHistory>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPatientHistory\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientHistory\")\n @ResponseWrapper(localName = \"getPatientHistoryResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientHistoryResponse\")\n public List<PatientHistory> getPatientHistory(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.Allergy>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPatientAllergies\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientAllergies\")\n @ResponseWrapper(localName = \"getPatientAllergiesResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientAllergiesResponse\")\n public List<Allergy> getPatientAllergies(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.Allergy>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getDODVLERPatientAllergies\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetDODVLERPatientAllergies\")\n @ResponseWrapper(localName = \"getDODVLERPatientAllergiesResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetDODVLERPatientAllergiesResponse\")\n public List<Allergy> getDODVLERPatientAllergies(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns gov.va.med.jmeadows_2_3_1.webservice.AllergyDetail\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAllergyDetail\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetAllergyDetail\")\n @ResponseWrapper(localName = \"getAllergyDetailResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetAllergyDetailResponse\")\n public AllergyDetail getAllergyDetail(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns gov.va.med.jmeadows_2_3_1.webservice.FreeTextReport\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPatientEncountersReport\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientEncountersReport\")\n @ResponseWrapper(localName = \"getPatientEncountersReportResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientEncountersReportResponse\")\n public FreeTextReport getPatientEncountersReport(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.PatientAppointments>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPatientAppointments\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientAppointments\")\n @ResponseWrapper(localName = \"getPatientAppointmentsResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientAppointmentsResponse\")\n public List<PatientAppointments> getPatientAppointments(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.Encounter>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPatientEncounters\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientEncounters\")\n @ResponseWrapper(localName = \"getPatientEncountersResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientEncountersResponse\")\n public List<Encounter> getPatientEncounters(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.ClinicalReminder>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPatientClinicalReminders\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientClinicalReminders\")\n @ResponseWrapper(localName = \"getPatientClinicalRemindersResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientClinicalRemindersResponse\")\n public List<ClinicalReminder> getPatientClinicalReminders(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns gov.va.med.jmeadows_2_3_1.webservice.FreeTextReport\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getClinicalReminderDetail\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetClinicalReminderDetail\")\n @ResponseWrapper(localName = \"getClinicalReminderDetailResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetClinicalReminderDetailResponse\")\n public FreeTextReport getClinicalReminderDetail(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.PatientDemographics>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPatientDemographics\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientDemographics\")\n @ResponseWrapper(localName = \"getPatientDemographicsResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientDemographicsResponse\")\n public List<PatientDemographics> getPatientDemographics(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.PatientDemographicsDetail>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPatientDemographicsDetail\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientDemographicsDetail\")\n @ResponseWrapper(localName = \"getPatientDemographicsDetailResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientDemographicsDetailResponse\")\n public List<PatientDemographicsDetail> getPatientDemographicsDetail(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.Immunization>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPatientImmunizations\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientImmunizations\")\n @ResponseWrapper(localName = \"getPatientImmunizationsResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientImmunizationsResponse\")\n public List<Immunization> getPatientImmunizations(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.LabOrder>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPatientLabs\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientLabs\")\n @ResponseWrapper(localName = \"getPatientLabsResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientLabsResponse\")\n public List<LabOrder> getPatientLabs(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.LabResult>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPatientLabResults\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientLabResults\")\n @ResponseWrapper(localName = \"getPatientLabResultsResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientLabResultsResponse\")\n public List<LabResult> getPatientLabResults(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns gov.va.med.jmeadows_2_3_1.webservice.FreeTextReport\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPatientLabReport\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientLabReport\")\n @ResponseWrapper(localName = \"getPatientLabReportResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientLabReportResponse\")\n public FreeTextReport getPatientLabReport(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.Medication>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPatientMedications\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientMedications\")\n @ResponseWrapper(localName = \"getPatientMedicationsResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientMedicationsResponse\")\n public List<Medication> getPatientMedications(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.Form>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPatientForms\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientForms\")\n @ResponseWrapper(localName = \"getPatientFormsResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientFormsResponse\")\n public List<Form> getPatientForms(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.ProgressNote>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPatientProgressNotes\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientProgressNotes\")\n @ResponseWrapper(localName = \"getPatientProgressNotesResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientProgressNotesResponse\")\n public List<ProgressNote> getPatientProgressNotes(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns gov.va.med.jmeadows_2_3_1.webservice.NoteImage\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getBHIENoteImage\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetBHIENoteImage\")\n @ResponseWrapper(localName = \"getBHIENoteImageResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetBHIENoteImageResponse\")\n public NoteImage getBHIENoteImage(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.ProgressNote>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPatientDischargeSummaries\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientDischargeSummaries\")\n @ResponseWrapper(localName = \"getPatientDischargeSummariesResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientDischargeSummariesResponse\")\n public List<ProgressNote> getPatientDischargeSummaries(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.Consult>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPatientConsultRequests\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientConsultRequests\")\n @ResponseWrapper(localName = \"getPatientConsultRequestsResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientConsultRequestsResponse\")\n public List<Consult> getPatientConsultRequests(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.Order>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPatientOrders\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientOrders\")\n @ResponseWrapper(localName = \"getPatientOrdersResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientOrdersResponse\")\n public List<Order> getPatientOrders(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.Problem>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPatientProblemList\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientProblemList\")\n @ResponseWrapper(localName = \"getPatientProblemListResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientProblemListResponse\")\n public List<Problem> getPatientProblemList(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.RadiologyReport>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPatientRads\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientRads\")\n @ResponseWrapper(localName = \"getPatientRadsResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientRadsResponse\")\n public List<RadiologyReport> getPatientRads(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.Vitals>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPatientVitals\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientVitals\")\n @ResponseWrapper(localName = \"getPatientVitalsResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientVitalsResponse\")\n public List<Vitals> getPatientVitals(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.LabResult>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPatientLabTestResults\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientLabTestResults\")\n @ResponseWrapper(localName = \"getPatientLabTestResultsResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientLabTestResultsResponse\")\n public List<LabResult> getPatientLabTestResults(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.LabResult>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getLabOrderResult\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetLabOrderResult\")\n @ResponseWrapper(localName = \"getLabOrderResultResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetLabOrderResultResponse\")\n public List<LabResult> getLabOrderResult(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns gov.va.med.jmeadows_2_3_1.webservice.AdmissionDetail\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAdmissionDetails\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetAdmissionDetails\")\n @ResponseWrapper(localName = \"getAdmissionDetailsResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetAdmissionDetailsResponse\")\n public AdmissionDetail getAdmissionDetails(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.Diagnosis>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAdmissionDiagnosis\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetAdmissionDiagnosis\")\n @ResponseWrapper(localName = \"getAdmissionDiagnosisResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetAdmissionDiagnosisResponse\")\n public List<Diagnosis> getAdmissionDiagnosis(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.Procedure>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAdmissionProcedures\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetAdmissionProcedures\")\n @ResponseWrapper(localName = \"getAdmissionProceduresResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetAdmissionProceduresResponse\")\n public List<Procedure> getAdmissionProcedures(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.FreeTextReport>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getConsultReport\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetConsultReport\")\n @ResponseWrapper(localName = \"getConsultReportResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetConsultReportResponse\")\n public List<FreeTextReport> getConsultReport(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns gov.va.med.jmeadows_2_3_1.webservice.User\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getProviderProfile\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetProviderProfile\")\n @ResponseWrapper(localName = \"getProviderProfileResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetProviderProfileResponse\")\n public User getProviderProfile(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns gov.va.med.jmeadows_2_3_1.webservice.FreeTextReport\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getMedicationDetail\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetMedicationDetail\")\n @ResponseWrapper(localName = \"getMedicationDetailResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetMedicationDetailResponse\")\n public FreeTextReport getMedicationDetail(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns gov.va.med.jmeadows_2_3_1.webservice.FreeTextReport\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getOrderDetail\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetOrderDetail\")\n @ResponseWrapper(localName = \"getOrderDetailResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetOrderDetailResponse\")\n public FreeTextReport getOrderDetail(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.Vitals>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPatientCurrentVitals\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientCurrentVitals\")\n @ResponseWrapper(localName = \"getPatientCurrentVitalsResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientCurrentVitalsResponse\")\n public List<Vitals> getPatientCurrentVitals(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.InsuranceBean>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPatientInsurances\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientInsurances\")\n @ResponseWrapper(localName = \"getPatientInsurancesResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientInsurancesResponse\")\n public List<InsuranceBean> getPatientInsurances(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.Procedure>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getOutpatientProcedures\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetOutpatientProcedures\")\n @ResponseWrapper(localName = \"getOutpatientProceduresResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetOutpatientProceduresResponse\")\n public List<Procedure> getOutpatientProcedures(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns gov.va.med.jmeadows_2_3_1.webservice.ProblemDetail\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getProblemDetail\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetProblemDetail\")\n @ResponseWrapper(localName = \"getProblemDetailResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetProblemDetailResponse\")\n public ProblemDetail getProblemDetail(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns gov.va.med.jmeadows_2_3_1.webservice.FreeTextReport\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getProgressNote\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetProgressNote\")\n @ResponseWrapper(localName = \"getProgressNoteResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetProgressNoteResponse\")\n public FreeTextReport getProgressNote(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns gov.va.med.jmeadows_2_3_1.webservice.RadiologyReport\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getRadiologyReport\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetRadiologyReport\")\n @ResponseWrapper(localName = \"getRadiologyReportResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetRadiologyReportResponse\")\n public RadiologyReport getRadiologyReport(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.VlerDocument>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getVLERDocumentList\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetVLERDocumentList\")\n @ResponseWrapper(localName = \"getVLERDocumentListResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetVLERDocumentListResponse\")\n public List<VlerDocument> getVLERDocumentList(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param vDoc\n * @param queryBean\n * @return\n * returns gov.va.med.jmeadows_2_3_1.webservice.VlerDocument\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getVLERDocument\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetVLERDocument\")\n @ResponseWrapper(localName = \"getVLERDocumentResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetVLERDocumentResponse\")\n public VlerDocument getVLERDocument(\n @WebParam(name = \"vDoc\", targetNamespace = \"\")\n VlerDocument vDoc,\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.Vlerccda>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getDODVLERPatientCCDA\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetDODVLERPatientCCDA\")\n @ResponseWrapper(localName = \"getDODVLERPatientCCDAResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetDODVLERPatientCCDAResponse\")\n public List<Vlerccda> getDODVLERPatientCCDA(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.Alert>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getUserAlerts\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetUserAlerts\")\n @ResponseWrapper(localName = \"getUserAlertsResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetUserAlertsResponse\")\n public List<Alert> getUserAlerts(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns gov.va.med.jmeadows_2_3_1.webservice.FreeTextReport\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getVisitNotes\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetVisitNotes\")\n @ResponseWrapper(localName = \"getVisitNotesResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetVisitNotesResponse\")\n public FreeTextReport getVisitNotes(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param providerIen\n * @param siteCode\n * @param endDate\n * @param userNPI\n * @param patId\n * @param requestingApp\n * @param userName\n * @param category\n * @param userIen\n * @param startDate\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"logAudit\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.LogAudit\")\n @ResponseWrapper(localName = \"logAuditResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.LogAuditResponse\")\n public void logAudit(\n @WebParam(name = \"siteCode\", targetNamespace = \"\")\n String siteCode,\n @WebParam(name = \"userIen\", targetNamespace = \"\")\n String userIen,\n @WebParam(name = \"providerIen\", targetNamespace = \"\")\n String providerIen,\n @WebParam(name = \"userNPI\", targetNamespace = \"\")\n String userNPI,\n @WebParam(name = \"userName\", targetNamespace = \"\")\n String userName,\n @WebParam(name = \"patId\", targetNamespace = \"\")\n String patId,\n @WebParam(name = \"category\", targetNamespace = \"\")\n String category,\n @WebParam(name = \"requestingApp\", targetNamespace = \"\")\n String requestingApp,\n @WebParam(name = \"startDate\", targetNamespace = \"\")\n String startDate,\n @WebParam(name = \"endDate\", targetNamespace = \"\")\n String endDate)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.PatientAppointments>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getProviderAppointments\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetProviderAppointments\")\n @ResponseWrapper(localName = \"getProviderAppointmentsResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetProviderAppointmentsResponse\")\n public List<PatientAppointments> getProviderAppointments(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.PatientAdmission>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getProviderAdmissions\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetProviderAdmissions\")\n @ResponseWrapper(localName = \"getProviderAdmissionsResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetProviderAdmissionsResponse\")\n public List<PatientAdmission> getProviderAdmissions(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.PatientAdmission>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getWardAdmissions\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetWardAdmissions\")\n @ResponseWrapper(localName = \"getWardAdmissionsResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetWardAdmissionsResponse\")\n public List<PatientAdmission> getWardAdmissions(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.ProgressNote>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getProviderUnsignedNotes\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetProviderUnsignedNotes\")\n @ResponseWrapper(localName = \"getProviderUnsignedNotesResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetProviderUnsignedNotesResponse\")\n public List<ProgressNote> getProviderUnsignedNotes(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.Consult>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getProviderConsultsRequested\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetProviderConsultsRequested\")\n @ResponseWrapper(localName = \"getProviderConsultsRequestedResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetProviderConsultsRequestedResponse\")\n public List<Consult> getProviderConsultsRequested(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.Consult>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getProviderConsultsReceived\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetProviderConsultsReceived\")\n @ResponseWrapper(localName = \"getProviderConsultsReceivedResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetProviderConsultsReceivedResponse\")\n public List<Consult> getProviderConsultsReceived(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.Order>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getProviderOrdersPending\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetProviderOrdersPending\")\n @ResponseWrapper(localName = \"getProviderOrdersPendingResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetProviderOrdersPendingResponse\")\n public List<Order> getProviderOrdersPending(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.Order>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getProviderOrdersResulted\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetProviderOrdersResulted\")\n @ResponseWrapper(localName = \"getProviderOrdersResultedResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetProviderOrdersResultedResponse\")\n public List<Order> getProviderOrdersResulted(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.LabResult>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getProviderLabAbnormalResults\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetProviderLabAbnormalResults\")\n @ResponseWrapper(localName = \"getProviderLabAbnormalResultsResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetProviderLabAbnormalResultsResponse\")\n public List<LabResult> getProviderLabAbnormalResults(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.lang.String\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getJanusGUIConfig\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetJanusGUIConfig\")\n @ResponseWrapper(localName = \"getJanusGUIConfigResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetJanusGUIConfigResponse\")\n public String getJanusGUIConfig(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param cfg\n * @param queryBean\n * @return\n * returns boolean\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"setJanusGUIConfig\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.SetJanusGUIConfig\")\n @ResponseWrapper(localName = \"setJanusGUIConfigResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.SetJanusGUIConfigResponse\")\n public boolean setJanusGUIConfig(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean,\n @WebParam(name = \"cfg\", targetNamespace = \"\")\n String cfg)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.lang.String\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getProviderFlags\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetProviderFlags\")\n @ResponseWrapper(localName = \"getProviderFlagsResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetProviderFlagsResponse\")\n public String getProviderFlags(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param flags\n * @param queryBean\n * @return\n * returns boolean\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"setProviderFlags\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.SetProviderFlags\")\n @ResponseWrapper(localName = \"setProviderFlagsResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.SetProviderFlagsResponse\")\n public boolean setProviderFlags(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean,\n @WebParam(name = \"flags\", targetNamespace = \"\")\n String flags)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param smartCardID\n * @param smartCardAgency\n * @return\n * returns gov.va.med.jmeadows_2_3_1.webservice.IehrUserProfile\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getIehrUserProfile\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetIehrUserProfile\")\n @ResponseWrapper(localName = \"getIehrUserProfileResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetIehrUserProfileResponse\")\n public IehrUserProfile getIehrUserProfile(\n @WebParam(name = \"smartCardID\", targetNamespace = \"\")\n String smartCardID,\n @WebParam(name = \"smartCardAgency\", targetNamespace = \"\")\n String smartCardAgency)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param iehrUserProfile\n * @return\n * returns boolean\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"setIehrUserProfile\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.SetIehrUserProfile\")\n @ResponseWrapper(localName = \"setIehrUserProfileResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.SetIehrUserProfileResponse\")\n public boolean setIehrUserProfile(\n @WebParam(name = \"iehrUserProfile\", targetNamespace = \"\")\n IehrUserProfile iehrUserProfile)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.Site>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getSites\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetSites\")\n @ResponseWrapper(localName = \"getSitesResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetSitesResponse\")\n public List<Site> getSites();\n\n /**\n * \n * @param cardID\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.AuditEntry>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getLoginInfo\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetLoginInfo\")\n @ResponseWrapper(localName = \"getLoginInfoResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetLoginInfoResponse\")\n public List<AuditEntry> getLoginInfo(\n @WebParam(name = \"cardID\", targetNamespace = \"\")\n String cardID)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getServiceErrors\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetServiceErrors\")\n @ResponseWrapper(localName = \"getServiceErrorsResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetServiceErrorsResponse\")\n public String getServiceErrors();\n\n /**\n * \n * @param authUserInfoQuery\n * @return\n * returns gov.va.med.jmeadows_2_3_1.webservice.AuthUserInfo\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAuthUser\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetAuthUser\")\n @ResponseWrapper(localName = \"getAuthUserResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetAuthUserResponse\")\n public AuthUserInfo getAuthUser(\n @WebParam(name = \"authUserInfoQuery\", targetNamespace = \"\")\n AuthUserInfo authUserInfoQuery)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n */\n @WebMethod\n @RequestWrapper(localName = \"resetStatus\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.ResetStatus\")\n @ResponseWrapper(localName = \"resetStatusResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.ResetStatusResponse\")\n public void resetStatus();\n\n /**\n * \n * @param userId\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.Patient>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getRecentlyViewedPatients\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetRecentlyViewedPatients\")\n @ResponseWrapper(localName = \"getRecentlyViewedPatientsResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetRecentlyViewedPatientsResponse\")\n public List<Patient> getRecentlyViewedPatients(\n @WebParam(name = \"userId\", targetNamespace = \"\")\n String userId)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getVersion\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetVersion\")\n @ResponseWrapper(localName = \"getVersionResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetVersionResponse\")\n public String getVersion();\n\n /**\n * \n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getStatus\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetStatus\")\n @ResponseWrapper(localName = \"getStatusResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetStatusResponse\")\n public String getStatus();\n\n}", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, sample.ws.HelloWorldWSStub.HelloAuthenticatedWithEntitlements param, boolean optimizeContent)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(sample.ws.HelloWorldWSStub.HelloAuthenticatedWithEntitlements.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "@WebService\npublic interface HelloWorld {\n String sayHi(String name);\n\n}", "@WebService(name = \"ProfilePort\", targetNamespace = \"http://ws.clkio.com\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n com.clkio.schemas.ObjectFactory.class,\n com.clkio.schemas.adjusting.ObjectFactory.class,\n com.clkio.schemas.clockinclockout.ObjectFactory.class,\n com.clkio.schemas.common.ObjectFactory.class,\n com.clkio.schemas.day.ObjectFactory.class,\n com.clkio.schemas.email.ObjectFactory.class,\n com.clkio.schemas.login.ObjectFactory.class,\n com.clkio.schemas.manualentering.ObjectFactory.class,\n com.clkio.schemas.profile.ObjectFactory.class,\n com.clkio.schemas.reason.ObjectFactory.class,\n com.clkio.schemas.resetpassword.ObjectFactory.class,\n com.clkio.schemas.timecard.ObjectFactory.class,\n com.clkio.schemas.user.ObjectFactory.class\n})\npublic interface ProfilePort {\n\n\n /**\n * \n * @param request\n * @param clkioLoginCode\n * @return\n * returns com.clkio.schemas.profile.ListProfileResponse\n * @throws ResponseException\n */\n @WebMethod\n @WebResult(name = \"listProfileResponse\", targetNamespace = \"http://schemas.clkio.com\", partName = \"result\")\n public ListProfileResponse list(\n @WebParam(name = \"clkioLoginCode\", targetNamespace = \"http://schemas.clkio.com\", header = true, partName = \"clkioLoginCode\")\n String clkioLoginCode,\n @WebParam(name = \"listProfileRequest\", targetNamespace = \"http://schemas.clkio.com\", partName = \"request\")\n ListProfileRequest request)\n throws ResponseException\n ;\n\n /**\n * \n * @param request\n * @param clkioLoginCode\n * @return\n * returns com.clkio.schemas.common.ResponseCreated\n * @throws ResponseException\n */\n @WebMethod\n @WebResult(name = \"responseCreated\", targetNamespace = \"http://schemas.clkio.com\", partName = \"result\")\n public ResponseCreated insert(\n @WebParam(name = \"clkioLoginCode\", targetNamespace = \"http://schemas.clkio.com\", header = true, partName = \"clkioLoginCode\")\n String clkioLoginCode,\n @WebParam(name = \"insertProfileRequest\", targetNamespace = \"http://schemas.clkio.com\", partName = \"request\")\n InsertProfileRequest request)\n throws ResponseException\n ;\n\n /**\n * \n * @param request\n * @param clkioLoginCode\n * @return\n * returns com.clkio.schemas.common.Response\n * @throws ResponseException\n */\n @WebMethod\n @WebResult(name = \"response\", targetNamespace = \"http://schemas.clkio.com\", partName = \"result\")\n public Response update(\n @WebParam(name = \"clkioLoginCode\", targetNamespace = \"http://schemas.clkio.com\", header = true, partName = \"clkioLoginCode\")\n String clkioLoginCode,\n @WebParam(name = \"updateProfileRequest\", targetNamespace = \"http://schemas.clkio.com\", partName = \"request\")\n UpdateProfileRequest request)\n throws ResponseException\n ;\n\n /**\n * \n * @param request\n * @param clkioLoginCode\n * @return\n * returns com.clkio.schemas.common.Response\n * @throws ResponseException\n */\n @WebMethod\n @WebResult(name = \"response\", targetNamespace = \"http://schemas.clkio.com\", partName = \"result\")\n public Response delete(\n @WebParam(name = \"clkioLoginCode\", targetNamespace = \"http://schemas.clkio.com\", header = true, partName = \"clkioLoginCode\")\n String clkioLoginCode,\n @WebParam(name = \"deleteProfileRequest\", targetNamespace = \"http://schemas.clkio.com\", partName = \"request\")\n DeleteProfileRequest request)\n throws ResponseException\n ;\n\n}", "@WebService(name = \"SoapService\", targetNamespace = \"http://test/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface SoapService {\n\n\n /**\n * \n * @param fileName\n * @return\n * returns java.lang.Integer\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getResult\", targetNamespace = \"http://test/\", className = \"test.GetResult\")\n @ResponseWrapper(localName = \"getResultResponse\", targetNamespace = \"http://test/\", className = \"test.GetResultResponse\")\n @Action(input = \"http://test/SoapService/getResultRequest\", output = \"http://test/SoapService/getResultResponse\")\n public Integer getResult(\n @WebParam(name = \"fileName\", targetNamespace = \"\")\n String fileName);\n\n /**\n * \n * @param path\n */\n @WebMethod\n @Oneway\n @RequestWrapper(localName = \"getFilePath\", targetNamespace = \"http://test/\", className = \"test.GetFilePath\")\n @Action(input = \"http://test/SoapService/getFilePath\")\n public void getFilePath(\n @WebParam(name = \"path\", targetNamespace = \"\")\n String path);\n\n}", "@WebService(name = \"InformacionClientePort\", targetNamespace = \"http://www.soaint.com/InformacionCliente/\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({ ObjectFactory.class })\npublic interface InformacionClientePort {\n\n\n /**\n *\n * @param parameters\n * @return\n * returns com.soaint.informacioncliente.ListaCLienteType\n */\n @WebMethod(action = \"http://www.soaint.com/InformacionCliente/consultarClientes\")\n @WebResult(name = \"consultarClientesRs\", targetNamespace = \"http://www.soaint.com/InformacionCliente/\",\n partName = \"parameters\")\n public ListaCLienteType consultarClientes(@WebParam(name = \"consultarClientesRq\",\n targetNamespace = \"http://www.soaint.com/InformacionCliente/\",\n partName = \"parameters\") ClienteType parameters);\n\n /**\n *\n * @param parameters\n * @return\n * returns com.soaint.informacioncliente.MoraType\n */\n @WebMethod(action = \"http://www.soaint.com/InformacionCliente/clientePoseeMora\")\n @WebResult(name = \"clientePoseeMoraRs\", targetNamespace = \"http://www.soaint.com/InformacionCliente/\",\n partName = \"parameters\")\n public MoraType clientePoseeMora(@WebParam(name = \"clientePoseeMoraRq\",\n targetNamespace = \"http://www.soaint.com/InformacionCliente/\",\n partName = \"parameters\") ClienteType parameters);\n\n}", "@WebService\r\n@SOAPBinding(style = Style.RPC)\r\n// @SOAPBinding(style = Style.DOCUMENT, use = Use.LITERAL) // optional\r\npublic interface DiaryWebService {\r\n\t@WebMethod\r\n\tString getAllRecord();\r\n}", "@WebService(targetNamespace = \"http://example.org/signature\", name = \"SignatureDocumentLiteral\")\n@XmlSeeAlso({ ObjectFactory.class })\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\npublic interface SignatureDocumentLiteral\n{\n\n @WebResult(name = \"SignatureOut\", targetNamespace = \"http://example.org/signature\", partName = \"SignatureOut\")\n @Action(input = \"http://example.org/action/SignatureInAlternate\", output = \"http://example.org/action/SignatureOutAlternate\")\n @WebMethod(operationName = \"Sign2\", action = \"http://example.org/action/SignatureInAlternate\")\n public java.lang.String sign2(@WebParam(partName = \"SignatureIn\", name = \"SignatureIn\", targetNamespace = \"http://example.org/signature\")\n java.lang.String signatureIn);\n\n @WebResult(name = \"SignatureOut\", targetNamespace = \"http://example.org/signature\", partName = \"SignatureOut\")\n @Action(input = \"http://example.org/action/SignatureInEmpty\", output = \"http://example.org/action/SignatureOutEmpty\")\n @WebMethod(operationName = \"Sign3\", action = \"http://example.org/action/SignatureInEmpty\")\n public java.lang.String sign3();\n\n @WebResult(name = \"SignatureOut\", targetNamespace = \"http://example.org/signature\", partName = \"SignatureOut\")\n @Action(input = \"http://example.org/action/SignatureInAlternateEmpty\", output = \"http://example.org/action/SignatureOutAlternateEmpty\")\n @WebMethod(operationName = \"Sign4\", action = \"http://example.org/action/SignatureInAlternateEmpty\")\n public java.lang.String sign4();\n\n @WebResult(name = \"SignatureOut\", targetNamespace = \"http://example.org/signature\", partName = \"SignatureOut\")\n @Action(input = \"http://example.org/action/SignatureInMultipart\", output = \"http://example.org/action/SignatureOutMultipart\")\n @WebMethod(operationName = \"Sign6\", action = \"http://example.org/action/SignatureInMultipart\")\n public java.lang.String sign6(@WebParam(partName = \"parameters\", name = \"SignatureInMultipartMessage\", targetNamespace = \"http://example.org/signature\")\n SignatureInMultipartMessage parameters);\n\n @WebResult(name = \"SignatureOut\", targetNamespace = \"http://example.org/signature\", partName = \"SignatureOut\")\n @Action(input = \"http://example.org/action/SignatureIn\", output = \"http://example.org/action/SignatureOut\")\n @WebMethod(operationName = \"Sign1\", action = \"http://example.org/action/SignatureIn\")\n public java.lang.String sign1(@WebParam(partName = \"SignatureIn\", name = \"SignatureIn\", targetNamespace = \"http://example.org/signature\")\n java.lang.String signatureIn);\n\n @Action(input = \"http://example.org/action/SignatureEmptyPartIn\", output = \"http://example.org/action/SignatureEmptyPartOut\")\n @WebMethod(operationName = \"Sign5\", action = \"http://example.org/action/SignatureEmptyPartIn\")\n public void sign5();\n\n @WebResult(name = \"SignatureOutHeaderMember\", targetNamespace = \"http://example.org/signature\", partName = \"SignatureOutHeaderMember\")\n @Action(input = \"http://example.org/action/SignatureHeaderIn\", output = \"http://example.org/action/SignatureHeaderReply\", fault = { @FaultAction(className = SignatureDocumentLiteralSign7SignatureHeaderFaultFaultMessage.class, value = \"http://example.org/action/SignatureHeaderFault\") })\n @WebMethod(operationName = \"Sign7\", action = \"http://example.org/action/SignatureHeaderIn\")\n public java.lang.String sign7(@WebParam(partName = \"SignatureInHeaderMember\", name = \"SignatureInHeaderMember\", targetNamespace = \"http://example.org/signature\")\n java.lang.String signatureInHeaderMember,\n @WebParam(partName = \"HeaderText\", mode = WebParam.Mode.INOUT, name = \"SignatureOutHeader\", targetNamespace = \"http://example.org/signature\", header = true)\n javax.xml.ws.Holder<java.lang.String> headerText) throws SignatureDocumentLiteralSign7SignatureHeaderFaultFaultMessage;\n\n}", "@WebService(targetNamespace = \"http://server.gameco.com/\", name = \"IGameExchangeService\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface IGameExchangeService {\n\n @WebMethod(action = \"urn:SetMoves\")\n @RequestWrapper(localName = \"setMoves\", targetNamespace = \"http://server.gameco.com/\", className = \"com.gameco.server.SetMoves\")\n @ResponseWrapper(localName = \"setMovesResponse\", targetNamespace = \"http://server.gameco.com/\", className = \"com.gameco.server.SetMovesResponse\")\n public void setMoves(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n com.gameco.server.GameHistory arg0\n );\n\n @WebMethod(action = \"urn:SetMove\")\n @RequestWrapper(localName = \"setMove\", targetNamespace = \"http://server.gameco.com/\", className = \"com.gameco.server.SetMove\")\n @ResponseWrapper(localName = \"setMoveResponse\", targetNamespace = \"http://server.gameco.com/\", className = \"com.gameco.server.SetMoveResponse\")\n public void setMove(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n com.gameco.server.GameMove arg0\n );\n\n @WebMethod(action = \"urn:GetGames\")\n @RequestWrapper(localName = \"getGames\", targetNamespace = \"http://server.gameco.com/\", className = \"com.gameco.server.GetGames\")\n @ResponseWrapper(localName = \"getGamesResponse\", targetNamespace = \"http://server.gameco.com/\", className = \"com.gameco.server.GetGamesResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public java.util.List<com.gameco.server.PlayingGame> getGames();\n\n @WebMethod(action = \"urn:Invite\")\n @RequestWrapper(localName = \"invite\", targetNamespace = \"http://server.gameco.com/\", className = \"com.gameco.server.Invite\")\n @ResponseWrapper(localName = \"inviteResponse\", targetNamespace = \"http://server.gameco.com/\", className = \"com.gameco.server.InviteResponse\")\n public void invite(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n java.util.List<java.lang.String> arg0\n );\n\n @WebMethod(action = \"urn:Join\")\n @RequestWrapper(localName = \"join\", targetNamespace = \"http://server.gameco.com/\", className = \"com.gameco.server.Join\")\n @ResponseWrapper(localName = \"joinResponse\", targetNamespace = \"http://server.gameco.com/\", className = \"com.gameco.server.JoinResponse\")\n public void join(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n java.lang.String arg0\n );\n\n @WebMethod(action = \"urn:GetUsers\")\n @RequestWrapper(localName = \"getUsers\", targetNamespace = \"http://server.gameco.com/\", className = \"com.gameco.server.GetUsers\")\n @ResponseWrapper(localName = \"getUsersResponse\", targetNamespace = \"http://server.gameco.com/\", className = \"com.gameco.server.GetUsersResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public java.util.List<com.gameco.server.User> getUsers();\n\n @WebMethod(action = \"urn:Logout\")\n @RequestWrapper(localName = \"logout\", targetNamespace = \"http://server.gameco.com/\", className = \"com.gameco.server.Logout\")\n @ResponseWrapper(localName = \"logoutResponse\", targetNamespace = \"http://server.gameco.com/\", className = \"com.gameco.server.LogoutResponse\")\n public void logout();\n\n @WebMethod(action = \"urn:AddCallback\")\n @RequestWrapper(localName = \"addCallback\", targetNamespace = \"http://server.gameco.com/\", className = \"com.gameco.server.AddCallback\")\n @ResponseWrapper(localName = \"addCallbackResponse\", targetNamespace = \"http://server.gameco.com/\", className = \"com.gameco.server.AddCallbackResponse\")\n public void addCallback(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n javax.xml.ws.wsaddressing.W3CEndpointReference arg0\n );\n\n @WebMethod(action = \"urn:Accept\")\n @RequestWrapper(localName = \"accept\", targetNamespace = \"http://server.gameco.com/\", className = \"com.gameco.server.Accept\")\n @ResponseWrapper(localName = \"acceptResponse\", targetNamespace = \"http://server.gameco.com/\", className = \"com.gameco.server.AcceptResponse\")\n public void accept(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n java.lang.String arg0\n );\n\n @WebMethod(action = \"urn:GetAvaibleGames\")\n @RequestWrapper(localName = \"getAvaibleGames\", targetNamespace = \"http://server.gameco.com/\", className = \"com.gameco.server.GetAvaibleGames\")\n @ResponseWrapper(localName = \"getAvaibleGamesResponse\", targetNamespace = \"http://server.gameco.com/\", className = \"com.gameco.server.GetAvaibleGamesResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public java.util.List<java.lang.String> getAvaibleGames();\n\n @WebMethod(action = \"urn:Login\")\n @RequestWrapper(localName = \"login\", targetNamespace = \"http://server.gameco.com/\", className = \"com.gameco.server.Login\")\n @ResponseWrapper(localName = \"loginResponse\", targetNamespace = \"http://server.gameco.com/\", className = \"com.gameco.server.LoginResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public com.gameco.server.User login(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n java.lang.String arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n java.lang.String arg1\n ) throws CredentialException_Exception;\n\n @WebMethod(action = \"urn:Cancel\")\n @RequestWrapper(localName = \"cancel\", targetNamespace = \"http://server.gameco.com/\", className = \"com.gameco.server.Cancel\")\n @ResponseWrapper(localName = \"cancelResponse\", targetNamespace = \"http://server.gameco.com/\", className = \"com.gameco.server.CancelResponse\")\n public void cancel(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n java.lang.String arg0\n );\n}", "@Override\n\tprotected String getWebServiceUri() {\n\t\treturn this.uri;\n\t}", "@WebService(targetNamespace = \"http://keyinfoServices.services.web.iSignatureServer.kg.com/\", name = \"KeyInfoService\")\r\n@XmlSeeAlso({ObjectFactory.class})\r\npublic interface KeyInfoService {\r\n\r\n @WebResult(name = \"isOk\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"modifyPwdByUserCode\", targetNamespace = \"http://keyinfoServices.services.web.iSignatureServer.kg.com/\", className = \"com.kg.isignatureserver.web.services.keyinfoservices.ModifyPwdByUserCode\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"modifyPwdByUserCodeResponse\", targetNamespace = \"http://keyinfoServices.services.web.iSignatureServer.kg.com/\", className = \"com.kg.isignatureserver.web.services.keyinfoservices.ModifyPwdByUserCodeResponse\")\r\n public boolean modifyPwdByUserCode(\r\n @WebParam(name = \"userCode\", targetNamespace = \"\")\r\n java.lang.String userCode,\r\n @WebParam(name = \"newPwd\", targetNamespace = \"\")\r\n java.lang.String newPwd\r\n );\r\n\r\n @WebResult(name = \"isOk\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"modifyPwdByKeySn\", targetNamespace = \"http://keyinfoServices.services.web.iSignatureServer.kg.com/\", className = \"com.kg.isignatureserver.web.services.keyinfoservices.ModifyPwdByKeySn\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"modifyPwdByKeySnResponse\", targetNamespace = \"http://keyinfoServices.services.web.iSignatureServer.kg.com/\", className = \"com.kg.isignatureserver.web.services.keyinfoservices.ModifyPwdByKeySnResponse\")\r\n public boolean modifyPwdByKeySn(\r\n @WebParam(name = \"keysn\", targetNamespace = \"\")\r\n java.lang.String keysn,\r\n @WebParam(name = \"newPwd\", targetNamespace = \"\")\r\n java.lang.String newPwd\r\n );\r\n\r\n @WebResult(name = \"result\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"addKeyinfo\", targetNamespace = \"http://keyinfoServices.services.web.iSignatureServer.kg.com/\", className = \"com.kg.isignatureserver.web.services.keyinfoservices.AddKeyinfo\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"addKeyinfoResponse\", targetNamespace = \"http://keyinfoServices.services.web.iSignatureServer.kg.com/\", className = \"com.kg.isignatureserver.web.services.keyinfoservices.AddKeyinfoResponse\")\r\n public com.kg.isignatureserver.web.services.keyinfoservices.JsonBean addKeyinfo(\r\n @WebParam(name = \"keyinfo\", targetNamespace = \"\")\r\n com.kg.isignatureserver.web.services.keyinfoservices.Keyinfo keyinfo\r\n );\r\n\r\n @WebResult(name = \"result\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"modifyKeyStatusByKeysn\", targetNamespace = \"http://keyinfoServices.services.web.iSignatureServer.kg.com/\", className = \"com.kg.isignatureserver.web.services.keyinfoservices.ModifyKeyStatusByKeysn\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"modifyKeyStatusByKeysnResponse\", targetNamespace = \"http://keyinfoServices.services.web.iSignatureServer.kg.com/\", className = \"com.kg.isignatureserver.web.services.keyinfoservices.ModifyKeyStatusByKeysnResponse\")\r\n public boolean modifyKeyStatusByKeysn(\r\n @WebParam(name = \"keySN\", targetNamespace = \"\")\r\n java.lang.String keySN,\r\n @WebParam(name = \"keystatus\", targetNamespace = \"\")\r\n java.lang.String keystatus\r\n );\r\n\r\n @WebResult(name = \"result\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"addKey\", targetNamespace = \"http://keyinfoServices.services.web.iSignatureServer.kg.com/\", className = \"com.kg.isignatureserver.web.services.keyinfoservices.AddKey\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"addKeyResponse\", targetNamespace = \"http://keyinfoServices.services.web.iSignatureServer.kg.com/\", className = \"com.kg.isignatureserver.web.services.keyinfoservices.AddKeyResponse\")\r\n public com.kg.isignatureserver.web.services.keyinfoservices.JsonBean addKey(\r\n @WebParam(name = \"keySn\", targetNamespace = \"\")\r\n java.lang.String keySn,\r\n @WebParam(name = \"userCode\", targetNamespace = \"\")\r\n java.lang.String userCode,\r\n @WebParam(name = \"userName\", targetNamespace = \"\")\r\n java.lang.String userName,\r\n @WebParam(name = \"overDate\", targetNamespace = \"\")\r\n java.lang.String overDate,\r\n @WebParam(name = \"password\", targetNamespace = \"\")\r\n java.lang.String password\r\n );\r\n\r\n @WebResult(name = \"result\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"modifyKeyinfo\", targetNamespace = \"http://keyinfoServices.services.web.iSignatureServer.kg.com/\", className = \"com.kg.isignatureserver.web.services.keyinfoservices.ModifyKeyinfo\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"modifyKeyinfoResponse\", targetNamespace = \"http://keyinfoServices.services.web.iSignatureServer.kg.com/\", className = \"com.kg.isignatureserver.web.services.keyinfoservices.ModifyKeyinfoResponse\")\r\n public com.kg.isignatureserver.web.services.keyinfoservices.JsonBean modifyKeyinfo(\r\n @WebParam(name = \"keyinfo\", targetNamespace = \"\")\r\n com.kg.isignatureserver.web.services.keyinfoservices.Keyinfo keyinfo\r\n );\r\n\r\n @WebResult(name = \"keyinfo\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"getKeyinfoByKeySN\", targetNamespace = \"http://keyinfoServices.services.web.iSignatureServer.kg.com/\", className = \"com.kg.isignatureserver.web.services.keyinfoservices.GetKeyinfoByKeySN\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"getKeyinfoByKeySNResponse\", targetNamespace = \"http://keyinfoServices.services.web.iSignatureServer.kg.com/\", className = \"com.kg.isignatureserver.web.services.keyinfoservices.GetKeyinfoByKeySNResponse\")\r\n public com.kg.isignatureserver.web.services.keyinfoservices.Keyinfo getKeyinfoByKeySN(\r\n @WebParam(name = \"keySN\", targetNamespace = \"\")\r\n java.lang.String keySN\r\n );\r\n\r\n @WebResult(name = \"keyinfo\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"getKeyinfoByUserCode\", targetNamespace = \"http://keyinfoServices.services.web.iSignatureServer.kg.com/\", className = \"com.kg.isignatureserver.web.services.keyinfoservices.GetKeyinfoByUserCode\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"getKeyinfoByUserCodeResponse\", targetNamespace = \"http://keyinfoServices.services.web.iSignatureServer.kg.com/\", className = \"com.kg.isignatureserver.web.services.keyinfoservices.GetKeyinfoByUserCodeResponse\")\r\n public com.kg.isignatureserver.web.services.keyinfoservices.Keyinfo getKeyinfoByUserCode(\r\n @WebParam(name = \"userCode\", targetNamespace = \"\")\r\n java.lang.String userCode\r\n );\r\n}", "@WebService\n@SOAPBinding (style = SOAPBinding.Style.RPC)\npublic interface SystemeAmendes {\n\n @WebMethod\n void enregistrer (Voiture car);\n\n @WebMethod\n int signaler(String immatriculation, String modele, int tarif);\n\n @WebMethod\n String lister(String immatriculation);\n\n @WebMethod\n int payer(int numero, String nom, String prenom);\n\n\n}" ]
[ "0.66070825", "0.64775544", "0.630916", "0.6291267", "0.6277317", "0.6257862", "0.6248848", "0.62480336", "0.623558", "0.6233331", "0.62311953", "0.6223949", "0.6223049", "0.62143505", "0.6206468", "0.6201611", "0.619187", "0.61884725", "0.6186561", "0.61825", "0.6180536", "0.6175172", "0.6168658", "0.615892", "0.6157777", "0.614083", "0.61403143", "0.61388636", "0.613638", "0.6132279", "0.61292255", "0.6125308", "0.61244076", "0.6120309", "0.61121315", "0.6109051", "0.6108194", "0.61012703", "0.60990113", "0.60889757", "0.60769683", "0.6072955", "0.6066138", "0.6057969", "0.60566586", "0.60472494", "0.6035951", "0.6032972", "0.6031086", "0.603015", "0.6018242", "0.60180396", "0.6014042", "0.60117805", "0.600842", "0.59987074", "0.598445", "0.5979948", "0.59726393", "0.59653044", "0.59578186", "0.5954775", "0.59460783", "0.5941626", "0.5940598", "0.5939603", "0.5938335", "0.5935491", "0.5934042", "0.5930904", "0.5929583", "0.5922847", "0.59145516", "0.5909768", "0.5908797", "0.5908072", "0.58926016", "0.589182", "0.5889662", "0.5861926", "0.5861766", "0.58566517", "0.58559346", "0.58523536", "0.58468914", "0.5823656", "0.5818337", "0.5813751", "0.5813744", "0.5810851", "0.5810198", "0.58063126", "0.5804401", "0.58040696", "0.5803692", "0.5803098", "0.5791612", "0.57879394", "0.57871664", "0.5783722" ]
0.594007
65
Strip qualifier of a fully qualified class name,
public static String stripQualifier(String className) { String qual = getQualifier(className); if (qual == null) return className; int len = className.length(); return className.substring(qual.length() + 1, len); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String getQualifier(String className) {\n \tString name = className;\n \tif (name.indexOf('<') >= 0) {//is generic class?\n \t\tname = erase(name);\n \t}\n int index = name.lastIndexOf('.');\n return (index < 0) ? null : name.substring(0, index);\n }", "String qualifiedName();", "public static String removeClassUriPrefix(final String classURI) {\n\n\t\tString unprefixed = classURI.replace(\"jar:\", \"\");\n\n\t\tfinal String osname = System.getProperty(\"os.name\");\n\t\t// Detect Mac OS X from Java:\n\t\t// http://developer.apple.com/library/mac/#technotes/tn2002/tn2110.html\n\t\tif (osname.toLowerCase().contains(\"linux\")\n\t\t\t\t|| osname.startsWith(\"Mac OS X\")) {\n\t\t\tunprefixed = unprefixed.replace(\"file:\", \"\");\n\t\t} else {\n\t\t\tunprefixed = unprefixed.replace(\"file:/\", \"\");\n\t\t}\n\n\t\treturn unprefixed;\n\t}", "public String getFullyQualifiedName();", "public void testFullyQualified(){ \n // when I do this, I need to change the regex as EITHER\n // \n $anno $a = $anno.of(R.class);\n \n @draft.java.proto.SannoTest.R\n class C{} \n _class _c = _class.of(C.class); \n assertNotNull( $a.firstIn(_c) );\n \n @R\n class D{} \n _class _d = _class.of(D.class); \n assertNotNull( $a.firstIn(_d) ); \n }", "public static String convertQualifiedClassNameToInternalForm(final String qualifiedClassName) {\n String out = qualifiedClassName.replaceAll(\"\\\\.\", \"/\");\n // Doesn't attempt to deal with inner classes etc yet...\n return out;\n }", "private static String extractClassName(String classNameWithExtension) {\n\n\t\treturn classNameWithExtension.replace(classExtension, \"\");\n\t}", "protected String getFullyQualifiedClassName(String classname)\n {\n return classname.contains(\".\") ? classname : \"org.apache.cassandra.hadoop.\" + classname;\n }", "private String getClassname() {\r\n\t\tString classname = this.getClass().getName();\r\n\t\tint index = classname.lastIndexOf('.');\r\n\t\tif (index >= 0)\r\n\t\t\tclassname = classname.substring(index + 1);\r\n\t\treturn classname;\r\n\t}", "private String fixClassName(String strClassName) {\r\n\t\tstrClassName = strClassName.replace('\\\\', '.');\r\n\t\tstrClassName = strClassName.replace('/', '.');\r\n\t\tstrClassName = strClassName.substring(0, strClassName.length() - 6);\r\n\t\t// remove \".class\"\r\n\t\treturn strClassName;\r\n\t}", "private static String getFQClassName(final String root, final String path) {\r\n\t\t//Remove root from front of path and \".class\" from end of path\r\n\t\tString trimmed = path.substring(path.indexOf(root) + root.length(), path.indexOf(\".class\"));\r\n\t\t\r\n\t\t//Replace backslashes with periods\r\n\t\treturn trimmed.replaceAll(Matcher.quoteReplacement(\"\\\\\"), \".\");\r\n\t}", "public static final String getUnqualifiedClassName(ClassFile cf, short cpIndex) {\n ClassInfo ci = (ClassInfo) cf.getCpInfo(cpIndex);\n short nameIndex = ci.nameIndex;\n String className = getUtf8(cf, nameIndex);\n /*if (className != null) {\n int i = className.lastIndexOf('.');\n return i != -1 ? className.substring(i + 1) : className;\n } else {\n return null;\n }*/\n int i;\n return className != null && (i = className.lastIndexOf('/')) >= 0 ? className.substring(i + 1) : className;\n }", "public static String removeJavaPackageName(String className) {\n int idx = className.lastIndexOf('.');\n if (idx >= 0) {\n return className.substring(idx + 1);\n } else {\n return className;\n }\n }", "private String trimClassPaths (String s) {\n int idx = 0;\n for (int i = s.length() - 1; i >= 0; i--) {\n if (s.charAt(i) == '.') {\n idx = i;\n break;\n }\n }\n String trimmed = s.substring(idx + 1);\n return trimmed;\n }", "private static String convertToQualifiedName(final String fileName) {\n final String replacedSeparators = fileName.replace(File.separatorChar, '.');\n return replacedSeparators.substring(0, replacedSeparators.length() - \".class\".length());\n }", "void removeClass(final String name);", "public static void setQualifier(String qual) {\n\tif (qual == null) _qualifier = \"\";\n\telse if (qual.equals(\"\")) _qualifier = qual;\n\telse if (!qual.endsWith(\".\")) _qualifier = qual + \".\";\n\telse _qualifier = qual;\n }", "private String getClassName( Class c ) {\n\treturn c.getName().substring(c.getName().lastIndexOf('.')+1);\n }", "public static String getClassNameNoPackage(Class<?> aClass) {\n \t\n String fullClassName = aClass.getName();\n int index = fullClassName.lastIndexOf('.');\n String className = null;\n \n //in this case, there is no package name\n if(index==-1) {\n \treturn fullClassName;\n }\n else {\n className = fullClassName.substring(index+1);\n return className;\n } \n }", "java.lang.String getClassName();", "String getQualifiedName();", "public String getTypeName() {\n if (isStatic()) {\n JavaType.FullyQualified fq = TypeUtils.asFullyQualified(qualid.getType());\n\n // the compiler doesn't type attribute static imports of classes\n if (fq == null) {\n String possibleInnerClassFqn = getTypeName(qualid);\n String possibleInnerClassName = possibleInnerClassFqn.substring(possibleInnerClassFqn.lastIndexOf('$') + 1);\n if (\"*\".equals(possibleInnerClassName)) {\n return possibleInnerClassFqn.substring(0, possibleInnerClassFqn.lastIndexOf('$'));\n }\n while (possibleInnerClassName.indexOf('$') >= 0) {\n possibleInnerClassName = possibleInnerClassName.substring(possibleInnerClassName.indexOf('$') + 1);\n }\n\n JavaType.Class owner = TypeUtils.asClass(qualid.getTarget().getType());\n if (owner != null && !(qualid.getTarget().getType() instanceof JavaType.ShallowClass)) {\n Iterator<JavaType.Method> visibleMethods = owner.getVisibleMethods();\n while (visibleMethods.hasNext()) {\n JavaType.Method method = visibleMethods.next();\n if (method.getName().equals(possibleInnerClassName)) {\n return possibleInnerClassFqn.substring(0, possibleInnerClassFqn.lastIndexOf('$'));\n }\n }\n\n Iterator<JavaType.Variable> visibleMembers = owner.getVisibleMembers();\n while (visibleMembers.hasNext()) {\n JavaType.Variable member = visibleMembers.next();\n if (member.getName().equals(possibleInnerClassName)) {\n return possibleInnerClassFqn.substring(0, possibleInnerClassFqn.lastIndexOf('$'));\n }\n }\n\n return possibleInnerClassFqn;\n }\n }\n\n return getTypeName((FieldAccess) qualid.getTarget());\n }\n\n return getTypeName(qualid);\n }", "String getClassName(Element e) {\n // e has to be a TypeElement\n TypeElement te = (TypeElement)e;\n String packageName = elementUtils.getPackageOf(te).getQualifiedName().toString();\n String className = te.getQualifiedName().toString();\n if (className.startsWith(packageName + \".\")) {\n String classAndInners = className.substring(packageName.length() + 1);\n className = packageName + \".\" + classAndInners.replace('.', '$');\n }\n return className;\n }", "public static String erase(String className) {\n int index = className.indexOf('<');\n if(index < 0)\n return className;\n return (index > 0)?className.substring(0, index):className;\n }", "private String getClassNameWithoutRequestSuffix(final String simpleSsmRequestClassName) {\n final String classNameSuffixToRemove = \"Request\";\n\n if (simpleSsmRequestClassName.endsWith(classNameSuffixToRemove)) {\n return simpleSsmRequestClassName.substring(0, simpleSsmRequestClassName.length() - classNameSuffixToRemove.length());\n }\n\n return simpleSsmRequestClassName;\n }", "public String getFullyQualifiedOuterClassName() {\n String outerClassNameWithInner = remove(getFullyQualifiedClassName(), getPackageName() + \".\");\n // get the outer class part only : Outer\n String outerClassNameOnly = substringBefore(outerClassNameWithInner, \".\");\n return getPackageName() + \".\" + outerClassNameOnly;\n }", "public String getClazzName();", "protected static String getSimpleName(Class<?> c) {\n String name = c.getName();\n return name.substring(name.lastIndexOf(\".\") + 1);\n }", "public abstract String getQualifiedName();", "public static String stripGenerics(String className) {\n String name = className;\n \n if (name.contains(\"<\")) {\n name = name.substring(0, name.indexOf('<'));\n }\n \n if (name.contains(\"[\")) {\n name = name.substring(0, name.indexOf('['));\n }\n \n return name;\n }", "public static String removePostJarSuffix(final String classURI) {\n\t\tint seperator = classURI.length();\n\t\tif (classURI.contains(\"!\")) {\n\t\t\tseperator = classURI.lastIndexOf('!');\n\t\t}\n\t\treturn classURI.substring(0, seperator);\n\t}", "public String getClassname(Class<?> aClass) {\n\t\tString result = aClass.getCanonicalName();\n\t\tif (result.endsWith(\"[]\")) {\n\t\t\tresult = result.substring(0, result.length() - 2);\n\t\t}\n\t\treturn result;\n\t}", "public String getUnqualifiedName() { return unqualifiedName; }", "String getClassName();", "String getClassName();", "String getClassName();", "public String getQualifiedName();", "protected abstract String getQualifier();", "public String getClassName() {\n\t\tString tmp = methodBase();\n\t\treturn tmp.substring(0, 1).toUpperCase()+tmp.substring(1);\n\t}", "private static String p(Class n) {\n return n.getName().replace('.','/');\n }", "public final String toStringClassName() {\r\n \t\tString str = this.getClass().getName();\r\n \t\tint lastIx = str.lastIndexOf('.');\r\n \t\treturn str.substring(lastIx+1);\r\n \t}", "public static String unmungeNamespace (String name) {\r\n\t\treturn name.replaceFirst(\"^_([^_]*)_\", \"$1:\");\r\n\t}", "java.lang.String getClass_();", "java.lang.String getClass_();", "public static String shortName(Class<?> someClass) {\r\n String fullName = someClass.getName();\r\n return fullName.substring(fullName.lastIndexOf('.') + 1);\r\n }", "public String getFullyQualifiedName() {\n\t\treturn this.getPackageName() + \".\" + this.getClassName();\n\t}", "public static String getClass(String element) {\n return element.substring(element.lastIndexOf('.') + 1);\n }", "public String getClassName();", "public String getClassName(final String fullClassName) {\r\n\t\tint lastIndexPoint = fullClassName.lastIndexOf(\".\");\r\n\t\tString resultClassName = fullClassName.substring(lastIndexPoint + 1,\r\n\t\t\t\tfullClassName.length());\r\n\t\treturn resultClassName;\r\n\t}", "boolean removeClass(String name);", "private static String parseName(String line) {\n if (null == line || !line.startsWith(QUALIFIER_TOKEN)) {\n throw new RuntimeException(\n \"Expected one line naming a qualifier. Line found was: \" + line);\n }\n\n String name = line.substring(QUALIFIER_TOKEN.length());\n LOG.debug(\"Found qualifier: \" + name);\n return name;\n }", "public String getPackageName() {\n JavaType.FullyQualified fq = TypeUtils.asFullyQualified(qualid.getType());\n if (fq != null) {\n return fq.getPackageName();\n }\n String typeName = getTypeName();\n int lastDot = typeName.lastIndexOf('.');\n return lastDot < 0 ? \"\" : typeName.substring(0, lastDot);\n }", "@DISPID(-2147417111)\n @PropGet\n java.lang.String className();", "private static String removePrefix(String aType)\n {\n return aType.replace(\"_(\" + AnnotationState.AGREE.name() + \")\", \"\")\n .replace(\"_(\" + AnnotationState.USE.name() + \")\", \"\")\n .replace(\"_(\" + AnnotationState.DISAGREE.name() + \")\", \"\")\n .replace(\"_(\" + AnnotationState.DO_NOT_USE.name() + \")\", \"\")\n .replace(\"_(\" + AnnotationState.NOT_SUPPORTED.name() + \")\", \"\");\n }", "private static String resolveName(@Nonnull final Class<?> clazz) {\n\t\tfinal String n = clazz.getName();\n\t\tfinal int i = n.lastIndexOf('.');\n\t\treturn i > 0 ? n.substring(i + 1) : n;\n\t}", "abstract String getClassName();", "private String m56637b(Class cls) {\n return cls.getName();\n }", "public abstract String getClassName();", "default String getClassName() {\n return declaringType().getClassName();\n }", "default String getQualifiedName() {\n return declaringType().getQualifiedName() + \".\" + this.getName();\n }", "private static String getSimpleClassName(String className) {\n\n\n\t\tString[] names = className.split(\"\\\\.\");\n\n\t\tfor (int i = 0; i < names.length; i++) {\n\t\t\tLog.d(\"\", \"names =\" + names[i]);\n\t\t}\n\n\t\treturn names[names.length - 1];\n\t}", "public static String getClassName(Class<?> objectClass) {\n RemoteClass annotation = objectClass.getAnnotation(RemoteClass.class);\n if (annotation != null) {\n return annotation.alias();\n }\n String className = objectClass.getName();\n if (className.startsWith(\"org.red5.compatibility.\")) {\n // Strip compatibility prefix from classname\n className = className.substring(23);\n if (\"flex.messaging.messages.AsyncMessageExt\".equals(className)) {\n className = \"DSA\";\n } else if (\"flex.messaging.messages.CommandMessageExt\".equals(className)) {\n className = \"DSC\";\n } else if (\"flex.messaging.messages.AcknowledgeMessageExt\".equals(className)) {\n className = \"DSK\";\n }\n }\n log.debug(\"Classname: {}\", className);\n return className;\n }", "public String getBinaryClassName() {\n\t\tString bcn = classQName.dotSeparated();\n\t\t// Inner classes not supported yet\n\t\tassert(!bcn.contains(\"$\"));\n\t\treturn bcn;\n\t}", "@Override\n public String toString() {\n if (this == UNREFERENCED_EXTERNAL) {\n return \"Unreferenced external class name\";\n } else {\n return method.getSimpleName().toString() + \"=\" + obfuscatedClassName;\n }\n }", "char[] getSuperclassName();", "private String getClassName(String fileName){\n String className = FilenameUtils.getBaseName(fileName);\n return className;\n }", "public static boolean removeQualifiers (ITextUnit textUnit,\r\n \t\tString qualifier)\r\n \t{\r\n \t\treturn removeQualifiers(textUnit, qualifier, qualifier);\r\n \t}", "@Override\r\n\t\tpublic String getClassName()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "private String cleanLine(String line) {\n line = line.replace(\"class\", \"class\");\n line = line.replace(\"abstract class\", \"abstract class\");\n line = line.replace(\"enum\", \"enum\");\n return line;\n }", "public static String trimNamespace(Rdf2GoCore core, String string) {\n\t\tif (string.startsWith(\":\")) return string.substring(1);\n\t\tfor (Entry<String, String> namespaceEntry : core.getNamespaces().entrySet()) {\n\t\t\tString ns = namespaceEntry.getValue();\n\t\t\tif (string.startsWith(ns)) {\n\t\t\t\tstring = string.substring(ns.length());\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString nsAbbreviationPrefix = toNamespacePrefix(namespaceEntry.getKey());\n\t\t\tif (string.startsWith(nsAbbreviationPrefix)) {\n\t\t\t\tstring = string.substring(nsAbbreviationPrefix.length());\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn string;\n\t}", "@objid (\"f3f8fb41-47e8-4136-9889-fc34aac3d3f9\")\n String getReferencedClassName();", "private static String resolveQualifierFromTypeName(IType sigInterfaceType, String typeName) {\n\n\t\ttry {\n\n\t\t\tString[][] types = sigInterfaceType.resolveType(typeName);\n\t\t\tif (types != null) {\n\t\t\t\t// Returns the first candidate\n\t\t\t\tString qualifier = types[0][0];\n\t\t\t\t//\t\t\t\tString name = types[0][1];\n\t\t\t\treturn qualifier;\n\t\t\t}\n\t\t}\n\t\tcatch (JavaModelException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn null;\n\t}", "@Override\n public String getName() {\n final String name = getClass().getName();\n final int lastDollar = name.lastIndexOf('$');\n return name.substring(lastDollar + 1);\n }", "public void removeAuxClass(IJavaClassFile auxClassToRemove);", "@Override\n public String getQualifiedName() {\n if (specClassDecl != null && specClassDecl.getDeclarationModel() != null) {\n// return specClassDecl.getDeclarationModel().getQualifiedNameString();\n } else if (stub != null) {\n return stub.getQualifiedName();\n }\n\n // bad workaround for the previous to do\n return getName();\n }", "public static QualifiedName createUnqualifiedNameInClassContext(String name, ClassScope clsScope) {\n if (clsScope != null) {\n switch (name) {\n case \"self\": //NOI18N\n name = clsScope.getName();\n break;\n case \"parent\": //NOI18N\n String superClsName = ModelUtils.getFirst(clsScope.getSuperClassNames());\n if (superClsName != null) {\n name = superClsName;\n }\n break;\n default:\n // no-op\n }\n }\n return createUnqualifiedName(name);\n }", "public static String removeNamespace(String name) {\r\n\t\tString returnValue;\r\n\t\t\r\n\t\treturnValue = name.replaceFirst(\".*#\",\"\");\r\n\t\treturn returnValue;\r\n\t}", "public String getBaseClassName() {\n return className;\n }", "protected static String getSimpleNodeName(String aNodeName)\n {\n // Get index of last '$' or '.'\n int sepIndex = aNodeName.lastIndexOf('$');\n if (sepIndex < 0)\n sepIndex = aNodeName.lastIndexOf('.');\n\n // Return ClassName stripped of package and/or parent-class\n return aNodeName.substring(sepIndex + 1);\n }", "public static String getPackageName(String className) {\n String packageName = getQualifier(className);\n return packageName != null ? packageName : \"\";\n }", "private String derivePrefixFromClassName(String className) {\n int prefixIdx = 0;\n int lastUpperIndex = 0;\n char[] prefix = new char[PREFIX_LENGTH];\n char[] src = className.toCharArray();\n\n prefix[prefixIdx++] = Character.toLowerCase(src[0]);\n\n for (int i = 1; i < src.length; i++) {\n char c = src[i];\n if (Character.isUpperCase(c)) {\n prefix[prefixIdx++] = Character.toLowerCase(c);\n if (prefixIdx == PREFIX_LENGTH) {\n return new String(prefix);\n }\n lastUpperIndex = i;\n }\n }\n\n while (prefixIdx < PREFIX_LENGTH) {\n prefix[prefixIdx++] = Character.toLowerCase(src[++lastUpperIndex]);\n }\n\n return new String(prefix);\n }", "public String getQualifiedName()\n {\n return name + \".\" + type;\n }", "protected static String getResourceName(final String classname) {\n return classname.replace('.', '/') + \".class\";\n }", "@Override\n public String simpleName() {\n if (this == class_) {\n return \"class\";\n }\n return name();\n }", "protected String getClassName(Object o) {\n\t\tString classString = o.getClass().getName();\n\t\tint dotIndex = classString.lastIndexOf(\".\");\n\n\t\treturn classString.substring(dotIndex + 1);\n\t}", "private static String getClassName() {\n\n\t\tThrowable t = new Throwable();\n\n\t\ttry {\n\t\t\tStackTraceElement[] elements = t.getStackTrace();\n\n\t\t\t// for (int i = 0; i < elements.length; i++) {\n\t\t\t//\n\t\t\t// }\n\n\t\t\treturn elements[2].getClass().getSimpleName();\n\n\t\t} finally {\n\t\t\tt = null;\n\t\t}\n\n\t}", "static Identifier makeTypeClass(final QualifiedName name) {\r\n if (name == null) {\r\n return null;\r\n } else {\r\n return new Identifier(Category.TYPE_CLASS, name);\r\n }\r\n }", "@DISPID(-2147417111)\n @PropPut\n void className(\n java.lang.String rhs);", "public final String getOwnerNameWithoutPackage() {\n return ElementUtils.getDeclaringClassNameWithoutPackage(node);\n }", "public static String flattenedTableName(String className) {\n\t\tif (className==null) throw new NullPointerException();\n\t\tString fixed=className.replace('.','_');\n\t\treturn fixed;\n\t}", "public static Class<?> lenientClassForName(String className) throws ClassNotFoundException {\n try {\n return loadClass(className);\n } catch (ClassNotFoundException ignored) {\n // try replacing the last dot with a $, in case that helps\n // example: tutorial.Tutorial.Benchmark1 becomes tutorial.Tutorial$Benchmark1\n // amusingly, the $ character means three different things in this one line alone\n String newName = className.replaceFirst(\"\\\\.([^.]+)$\", \"\\\\$$1\");\n return loadClass(newName);\n }\n }", "private String derivePrefixFromAnnotation(Class<?> clazz) {\n if (clazz.isAnnotationPresent(TypeDefinition.class)) {\n TypeDefinition td = clazz.getAnnotation(TypeDefinition.class);\n if (td != null && !TypeDefinition.UNDEFINED_PREFIX.equals(td.prefix())) {\n return td.prefix();\n }\n }\n return null;\n }", "@Deprecated\n String getMainClassName();", "public static String convertInternalFormToQualifiedClassName(final String classInternalName) {\n String out = classInternalName.replaceAll(\"/\", \"\\\\.\");\n // Doesn't attempt to deal with inner classes etc yet...\n return out;\n }", "String getMetadataClassName();", "String getClazz();", "public String getClassName() { return className; }", "private String getClassName(final Class<?> clazz) {\n return EntityType.getEntityType(clazz).map(e -> e.getEntityName(clazz)).orElse(clazz.getSimpleName());\n }", "public static final String getFullyQualifiedClassName(ClassFile cf, short cpIndex) {\n ClassInfo ci = (ClassInfo) cf.getCpInfo(cpIndex);\n short nameIndex = ci.nameIndex;\n String className = getUtf8(cf, nameIndex);\n return className != null ? className.replace('/', '.') : null;\n }", "public CWE removeSubstanceManufacturerName(int rep) throws HL7Exception { \r\n return (CWE) super.removeRepetition(17, rep);\r\n }" ]
[ "0.7134868", "0.62324566", "0.61597866", "0.5954948", "0.593095", "0.58893216", "0.5887988", "0.58613235", "0.5805727", "0.577948", "0.5775639", "0.5775372", "0.5763971", "0.57588726", "0.574515", "0.5742235", "0.569749", "0.56698805", "0.56426245", "0.56423914", "0.5617899", "0.561136", "0.5597664", "0.55951667", "0.5588368", "0.557723", "0.55672693", "0.55584025", "0.5557117", "0.55349874", "0.55078024", "0.54899997", "0.5484477", "0.5483136", "0.5483136", "0.5483136", "0.5478671", "0.5475288", "0.54582953", "0.5455518", "0.5432035", "0.5429255", "0.5424223", "0.5424223", "0.54090786", "0.54074347", "0.53864163", "0.53682727", "0.53629225", "0.53558534", "0.53425556", "0.534049", "0.53357995", "0.5326601", "0.5313827", "0.5313053", "0.5306002", "0.5300016", "0.5284677", "0.52379", "0.52286863", "0.520592", "0.5194412", "0.51665616", "0.5156267", "0.5151769", "0.51453286", "0.51429474", "0.51335317", "0.5132394", "0.51165736", "0.51044697", "0.50955254", "0.50941736", "0.5093669", "0.5067267", "0.5060843", "0.5038107", "0.5036709", "0.50264984", "0.50163877", "0.5013251", "0.5012631", "0.49975052", "0.49962845", "0.49897864", "0.4981898", "0.4981608", "0.49776697", "0.49767", "0.49636304", "0.49563405", "0.4938288", "0.49324405", "0.49293154", "0.4919239", "0.49173757", "0.49146762", "0.4913385", "0.4911831" ]
0.81295514
0
Get package name a fully qualified class name
public static String getPackageName(String className) { String packageName = getQualifier(className); return packageName != null ? packageName : ""; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getFullyQualifiedName() {\n\t\treturn this.getPackageName() + \".\" + this.getClassName();\n\t}", "java.lang.String getClassName();", "private String getClassname() {\r\n\t\tString classname = this.getClass().getName();\r\n\t\tint index = classname.lastIndexOf('.');\r\n\t\tif (index >= 0)\r\n\t\t\tclassname = classname.substring(index + 1);\r\n\t\treturn classname;\r\n\t}", "String qualifiedName();", "public static String getPackageName(Class<?> c) {\n\t\tString fullyQualifiedName = c.getName();\n\t\tint lastDot = fullyQualifiedName.lastIndexOf('.');\n\t\tif (lastDot == -1)\n\t\t\treturn \"\";\n\t\t\n\t\treturn fullyQualifiedName.substring(0, lastDot);\n\t}", "public String getFullyQualifiedOuterClassName() {\n String outerClassNameWithInner = remove(getFullyQualifiedClassName(), getPackageName() + \".\");\n // get the outer class part only : Outer\n String outerClassNameOnly = substringBefore(outerClassNameWithInner, \".\");\n return getPackageName() + \".\" + outerClassNameOnly;\n }", "public String getClassName() {\n\t\tString tmp = methodBase();\n\t\treturn tmp.substring(0, 1).toUpperCase()+tmp.substring(1);\n\t}", "public String getPackageName() {\n JavaType.FullyQualified fq = TypeUtils.asFullyQualified(qualid.getType());\n if (fq != null) {\n return fq.getPackageName();\n }\n String typeName = getTypeName();\n int lastDot = typeName.lastIndexOf('.');\n return lastDot < 0 ? \"\" : typeName.substring(0, lastDot);\n }", "public final String toStringClassName() {\r\n \t\tString str = this.getClass().getName();\r\n \t\tint lastIx = str.lastIndexOf('.');\r\n \t\treturn str.substring(lastIx+1);\r\n \t}", "String getClassName();", "String getClassName();", "String getClassName();", "public String getFullyQualifiedName();", "public static String getPackageName(String longClassName) {\r\n\t\tfinal StringTokenizer tk = new StringTokenizer(longClassName, \".\");\r\n\t\tfinal StringBuilder sb = new StringBuilder();\r\n\t\tString last = longClassName;\r\n\t\twhile (tk.hasMoreTokens()) {\r\n\t\t\tlast = tk.nextToken();\r\n\t\t\tif (tk.hasMoreTokens()) {\r\n\t\t\t\tsb.append(last);\r\n\t\t\t\tsb.append(\".\");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn sb.toString().substring(0, sb.toString().length() - 1);\r\n\t}", "public static String getClassNameNoPackage(Class<?> aClass) {\n \t\n String fullClassName = aClass.getName();\n int index = fullClassName.lastIndexOf('.');\n String className = null;\n \n //in this case, there is no package name\n if(index==-1) {\n \treturn fullClassName;\n }\n else {\n className = fullClassName.substring(index+1);\n return className;\n } \n }", "public String getClassName(final String fullClassName) {\r\n\t\tint lastIndexPoint = fullClassName.lastIndexOf(\".\");\r\n\t\tString resultClassName = fullClassName.substring(lastIndexPoint + 1,\r\n\t\t\t\tfullClassName.length());\r\n\t\treturn resultClassName;\r\n\t}", "private static String getFQClassName(final String root, final String path) {\r\n\t\t//Remove root from front of path and \".class\" from end of path\r\n\t\tString trimmed = path.substring(path.indexOf(root) + root.length(), path.indexOf(\".class\"));\r\n\t\t\r\n\t\t//Replace backslashes with periods\r\n\t\treturn trimmed.replaceAll(Matcher.quoteReplacement(\"\\\\\"), \".\");\r\n\t}", "public String getClassName();", "String getClassName(Element e) {\n // e has to be a TypeElement\n TypeElement te = (TypeElement)e;\n String packageName = elementUtils.getPackageOf(te).getQualifiedName().toString();\n String className = te.getQualifiedName().toString();\n if (className.startsWith(packageName + \".\")) {\n String classAndInners = className.substring(packageName.length() + 1);\n className = packageName + \".\" + classAndInners.replace('.', '$');\n }\n return className;\n }", "protected String getFullyQualifiedClassName(String classname)\n {\n return classname.contains(\".\") ? classname : \"org.apache.cassandra.hadoop.\" + classname;\n }", "java.lang.String getPackage();", "private String getClassName( Class c ) {\n\treturn c.getName().substring(c.getName().lastIndexOf('.')+1);\n }", "public String getClazzName();", "public static String removeJavaPackageName(String className) {\n int idx = className.lastIndexOf('.');\n if (idx >= 0) {\n return className.substring(idx + 1);\n } else {\n return className;\n }\n }", "private static String getClassName() {\n\n\t\tThrowable t = new Throwable();\n\n\t\ttry {\n\t\t\tStackTraceElement[] elements = t.getStackTrace();\n\n\t\t\t// for (int i = 0; i < elements.length; i++) {\n\t\t\t//\n\t\t\t// }\n\n\t\t\treturn elements[2].getClass().getSimpleName();\n\n\t\t} finally {\n\t\t\tt = null;\n\t\t}\n\n\t}", "public String getName() {\n // defaults to class name\n String className = getClass().getName();\n return className.substring(className.lastIndexOf(\".\")+1);\n }", "public String getClassname() {\n return classname;\n }", "protected static String getSimpleName(Class<?> c) {\n String name = c.getName();\n return name.substring(name.lastIndexOf(\".\") + 1);\n }", "private static String resolveName(@Nonnull final Class<?> clazz) {\n\t\tfinal String n = clazz.getName();\n\t\tfinal int i = n.lastIndexOf('.');\n\t\treturn i > 0 ? n.substring(i + 1) : n;\n\t}", "public abstract String getClassName();", "String getPackageName() {\n final int lastSlash = name.lastIndexOf('/');\n final String parentPath = name.substring(0, lastSlash);\n return parentPath.replace('/', '.');\n }", "abstract String getClassName();", "public static String shortName(Class<?> someClass) {\r\n String fullName = someClass.getName();\r\n return fullName.substring(fullName.lastIndexOf('.') + 1);\r\n }", "protected String getClassName() {\n return getDescriptedClass().getName();\n }", "private String getClassName(String fileName){\n String className = FilenameUtils.getBaseName(fileName);\n return className;\n }", "public static String getClassName() {\n return CLASS_NAME;\n }", "String getClassName() {\n final StringBuilder builder = new StringBuilder();\n final String shortName = getShortName();\n boolean upperCaseNextChar = true;\n for (final char c : shortName.toCharArray()) {\n if (c == '_' || c == '-') {\n upperCaseNextChar = true;\n continue;\n }\n\n if (upperCaseNextChar) {\n builder.append(Character.toUpperCase(c));\n upperCaseNextChar = false;\n } else {\n builder.append(c);\n }\n }\n builder.append(\"Messages\");\n return builder.toString();\n }", "public static String getAbsoluteName(AClass c) {\n\t\tString res = \"\";\n\t\tPackage p = c.getPackage();\n\t\tif (p != null)\n\t\t\twhile (p.parent != null) {\n\t\t\t\tres = p.name + \"_\" + res;\n\t\t\t\tp = p.parent;\n\t\t\t}\n\t\tres += c.getName();\n\t\treturn res;\n\t}", "public String getClassName(String path);", "public String getClassname() {\n\t\treturn classname;\n\t}", "private String jarName(){\n // determine the name of this class\n String className=\"/\"+this.getClass().getName().replace('.','/')+\".class\";\n // find out where the class is on the filesystem\n String classFile=this.getClass().getResource(className).toString();\n\n if( (classFile==null) || !(classFile.startsWith(\"jar:\")) ) return null;\n \n // trim out parts and set this to be forwardslash\n classFile=classFile.substring(5,classFile.indexOf(className));\n classFile=FilenameUtil.setForwardSlash(classFile);\n\n // chop off a little bit more\n classFile=classFile.substring(4,classFile.length()-1);\n \n return FilenameUtil.URLSpacetoSpace(classFile);\n }", "private static String getPackage(final String fullName) {\n \t\treturn fullName.substring(0, fullName.lastIndexOf(\".\"));\n \t}", "default String getClassName() {\n return declaringType().getClassName();\n }", "protected String getPackageName(Class<?> type) {\n return type.getPackage().getName();\n }", "protected String getClassName(Object o) {\n\t\tString classString = o.getClass().getName();\n\t\tint dotIndex = classString.lastIndexOf(\".\");\n\n\t\treturn classString.substring(dotIndex + 1);\n\t}", "public ApexQualifiedName getClassName() {\n if (isClass()) {\n return this;\n }\n\n return new ApexQualifiedName(this.nameSpace, this.classes, null);\n }", "public String getJavaClassName(final QName qname) {\n if (qnameToJava != null) {\n final String answer = qnameToJava.get(qname);\n if (answer != null) {\n return answer;\n }\n }\n return qname.getLocalPart();\n }", "public String getName() {\n return className;\n }", "public String getFullName() {\n return getAndroidPackage() + \"/\" + getInstrumentationClass();\n }", "private static String packageName(String cn) {\n int index = cn.lastIndexOf('.');\n return (index == -1) ? \"\" : cn.substring(0, index);\n }", "java.lang.String getClass_();", "java.lang.String getClass_();", "public String getClassName() {\n return super.getClassName();\n }", "public final void packageOrTypeName() throws RecognitionException {\n int packageOrTypeName_StartIndex = input.index();\n try { dbg.enterRule(getGrammarFileName(), \"packageOrTypeName\");\n if ( getRuleLevel()==0 ) {dbg.commence();}\n incRuleLevel();\n dbg.location(424, 1);\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 50) ) { return ; }\n // Java.g:425:5: ( qualifiedName )\n dbg.enterAlt(1);\n\n // Java.g:425:9: qualifiedName\n {\n dbg.location(425,9);\n pushFollow(FOLLOW_qualifiedName_in_packageOrTypeName2001);\n qualifiedName();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 50, packageOrTypeName_StartIndex); }\n }\n dbg.location(426, 5);\n\n }\n finally {\n dbg.exitRule(getGrammarFileName(), \"packageOrTypeName\");\n decRuleLevel();\n if ( getRuleLevel()==0 ) {dbg.terminate();}\n }\n\n return ;\n }", "@Override\n public String simpleName() {\n if (this == class_) {\n return \"class\";\n }\n return name();\n }", "public String getClassname(Class<?> aClass) {\n\t\tString result = aClass.getCanonicalName();\n\t\tif (result.endsWith(\"[]\")) {\n\t\t\tresult = result.substring(0, result.length() - 2);\n\t\t}\n\t\treturn result;\n\t}", "public String getBaseClassName() {\n return className;\n }", "default String getQualifiedName() {\n return declaringType().getQualifiedName() + \".\" + this.getName();\n }", "public String getName_Class() {\n\t\treturn name;\n\t}", "private static String convertToQualifiedName(final String fileName) {\n final String replacedSeparators = fileName.replace(File.separatorChar, '.');\n return replacedSeparators.substring(0, replacedSeparators.length() - \".class\".length());\n }", "public String findPackageForTest(String testClassName);", "public abstract String packageName();", "public static final String getFullyQualifiedClassName(ClassFile cf, short cpIndex) {\n ClassInfo ci = (ClassInfo) cf.getCpInfo(cpIndex);\n short nameIndex = ci.nameIndex;\n String className = getUtf8(cf, nameIndex);\n return className != null ? className.replace('/', '.') : null;\n }", "String getQualifiedName();", "private String getClass( String format )\n {\n final Class clazz = StackIntrospector.getCallerClass( Logger.class );\n\n if( null == clazz )\n {\n return \"Unknown-class\";\n }\n else\n {\n // Found : the caller is the previous stack element\n String className = clazz.getName();\n\n // Handle optional format\n if( TYPE_CLASS_SHORT_STR.equalsIgnoreCase( format ) )\n {\n int pos = className.lastIndexOf( '.' );\n\n if( pos >= 0 )\n {\n className = className.substring( pos + 1 );\n }\n }\n\n return className;\n }\n }", "public String getTypeName() {\n if (isStatic()) {\n JavaType.FullyQualified fq = TypeUtils.asFullyQualified(qualid.getType());\n\n // the compiler doesn't type attribute static imports of classes\n if (fq == null) {\n String possibleInnerClassFqn = getTypeName(qualid);\n String possibleInnerClassName = possibleInnerClassFqn.substring(possibleInnerClassFqn.lastIndexOf('$') + 1);\n if (\"*\".equals(possibleInnerClassName)) {\n return possibleInnerClassFqn.substring(0, possibleInnerClassFqn.lastIndexOf('$'));\n }\n while (possibleInnerClassName.indexOf('$') >= 0) {\n possibleInnerClassName = possibleInnerClassName.substring(possibleInnerClassName.indexOf('$') + 1);\n }\n\n JavaType.Class owner = TypeUtils.asClass(qualid.getTarget().getType());\n if (owner != null && !(qualid.getTarget().getType() instanceof JavaType.ShallowClass)) {\n Iterator<JavaType.Method> visibleMethods = owner.getVisibleMethods();\n while (visibleMethods.hasNext()) {\n JavaType.Method method = visibleMethods.next();\n if (method.getName().equals(possibleInnerClassName)) {\n return possibleInnerClassFqn.substring(0, possibleInnerClassFqn.lastIndexOf('$'));\n }\n }\n\n Iterator<JavaType.Variable> visibleMembers = owner.getVisibleMembers();\n while (visibleMembers.hasNext()) {\n JavaType.Variable member = visibleMembers.next();\n if (member.getName().equals(possibleInnerClassName)) {\n return possibleInnerClassFqn.substring(0, possibleInnerClassFqn.lastIndexOf('$'));\n }\n }\n\n return possibleInnerClassFqn;\n }\n }\n\n return getTypeName((FieldAccess) qualid.getTarget());\n }\n\n return getTypeName(qualid);\n }", "private static String getSimpleClassName(String className) {\n\n\n\t\tString[] names = className.split(\"\\\\.\");\n\n\t\tfor (int i = 0; i < names.length; i++) {\n\t\t\tLog.d(\"\", \"names =\" + names[i]);\n\t\t}\n\n\t\treturn names[names.length - 1];\n\t}", "public static String getClass(String element) {\n return element.substring(element.lastIndexOf('.') + 1);\n }", "public String getClassName() { return className; }", "public String getPackageName() {\n final var lastDotIdx = name.lastIndexOf('.');\n\n if (lastDotIdx > 0) {\n return name.substring(0, lastDotIdx);\n } else {\n throw new CodeGenException(String.format(\"Couldn't determine package name of '%s'\", name));\n }\n }", "public String getClassName() {\n return className;\n }", "public String getClassname()\r\n {\r\n return m_classname;\r\n }", "public String getQualifiedName();", "public String getFullyQualifiedPackageName(final Object object) {\r\n\t\treturn (String) super.invokeCorrectMethod(object);\r\n\t}", "public String getClassName(){\n\t\treturn targetClass.name;\n\t}", "public void testClassName() {\n\t\tClassName name = this.compiler.createClassName(\"test.Example\");\n\t\tassertEquals(\"Incorrect package\", \"generated.officefloor.test\", name.getPackageName());\n\t\tassertTrue(\"Incorrect class\", name.getClassName().startsWith(\"Example\"));\n\t\tassertEquals(\"Incorrect qualified name\", name.getPackageName() + \".\" + name.getClassName(), name.getName());\n\t}", "public static String getClassName(Class<?> objectClass) {\n RemoteClass annotation = objectClass.getAnnotation(RemoteClass.class);\n if (annotation != null) {\n return annotation.alias();\n }\n String className = objectClass.getName();\n if (className.startsWith(\"org.red5.compatibility.\")) {\n // Strip compatibility prefix from classname\n className = className.substring(23);\n if (\"flex.messaging.messages.AsyncMessageExt\".equals(className)) {\n className = \"DSA\";\n } else if (\"flex.messaging.messages.CommandMessageExt\".equals(className)) {\n className = \"DSC\";\n } else if (\"flex.messaging.messages.AcknowledgeMessageExt\".equals(className)) {\n className = \"DSK\";\n }\n }\n log.debug(\"Classname: {}\", className);\n return className;\n }", "public String getClassName() {\n Object ref = className_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n className_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "public String getQualifiedName()\n {\n return name + \".\" + type;\n }", "public String getBinaryClassName() {\n\t\tString bcn = classQName.dotSeparated();\n\t\t// Inner classes not supported yet\n\t\tassert(!bcn.contains(\"$\"));\n\t\treturn bcn;\n\t}", "public String getClassName()\n {\n return className;\n }", "@Override\n public String getClassName() {\n Object ref = className_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n className_ = s;\n return s;\n }\n }", "public static String convertQualifiedClassNameToInternalForm(final String qualifiedClassName) {\n String out = qualifiedClassName.replaceAll(\"\\\\.\", \"/\");\n // Doesn't attempt to deal with inner classes etc yet...\n return out;\n }", "public static String getQualifier(String className) {\n \tString name = className;\n \tif (name.indexOf('<') >= 0) {//is generic class?\n \t\tname = erase(name);\n \t}\n int index = name.lastIndexOf('.');\n return (index < 0) ? null : name.substring(0, index);\n }", "public String getCurrentClassName () {\n String currentClass = getCurrentElement(ElementKind.CLASS);\n if (currentClass == null) return \"\";\n else return currentClass;\n }", "@objid (\"f3f8fb41-47e8-4136-9889-fc34aac3d3f9\")\n String getReferencedClassName();", "public static String getCurrentClassName(){\n\t\tString s2 = Thread.currentThread().getStackTrace()[2].getClassName();\n// System.out.println(\"s0=\"+s0+\" s1=\"+s1+\" s2=\"+s2);\n\t\t//s0=java.lang.Thread s1=g1.tool.Tool s2=g1.TRocketmq1Application\n\t\treturn s2;\n\t}", "java.lang.String getNamespace();", "public String getRuntimeName() {\r\n\t\tfinal StringBuffer runtimeName = new StringBuffer();\r\n\t\tfinal String name = this.getName();\r\n\t\tfinal Package packagee = this.getPackage();\r\n\t\tfinal String packageName = null == packagee ? null : packagee.getName();\r\n\t\tString nameLessPackageName = name;\r\n\r\n\t\tif (false == Tester.isNullOrEmpty(packageName)) {\r\n\t\t\truntimeName.append(packageName);\r\n\t\t\truntimeName.append('.');\r\n\r\n\t\t\tnameLessPackageName = name.substring(packageName.length() + 1);\r\n\t\t}\r\n\r\n\t\tnameLessPackageName = nameLessPackageName.replace('.', '$');\r\n\t\truntimeName.append(nameLessPackageName);\r\n\r\n\t\treturn runtimeName.toString();\r\n\t}", "java.lang.String getPackageName();", "public String getName() {\n\t\treturn className;\n\t}", "public String getClassName() {\r\n return className;\r\n }", "public String getClassName() {\n return className;\n }", "public String getClassName() {\n return className;\n }", "public String getClassName() {\n return className;\n }", "public String getClassName() {\n return className;\n }", "public String getClassName() {\n return className;\n }", "public String getClassName() {\n return className;\n }", "@Override\n public String getName() {\n return getDeclaringClass().getName();\n }", "default String getPackageName() {\n return declaringType().getPackageName();\n }" ]
[ "0.7600532", "0.7510499", "0.7420464", "0.72951466", "0.72788286", "0.72446346", "0.7209079", "0.71999633", "0.7148601", "0.71456635", "0.71456635", "0.71456635", "0.7131622", "0.70659506", "0.7053803", "0.69946414", "0.6921327", "0.6910148", "0.68701065", "0.684076", "0.67700166", "0.67147535", "0.66406405", "0.6624422", "0.66014403", "0.65912443", "0.6586937", "0.65833354", "0.6576431", "0.65315676", "0.6497585", "0.6486893", "0.6478315", "0.6467045", "0.6457954", "0.64142823", "0.64105535", "0.6409892", "0.64047205", "0.63898134", "0.63801795", "0.637868", "0.6366568", "0.6363796", "0.63620734", "0.631978", "0.6319303", "0.6308809", "0.62785137", "0.6270863", "0.6243622", "0.6243622", "0.6242391", "0.62144464", "0.6211596", "0.6209072", "0.62076724", "0.6207428", "0.6207327", "0.61999816", "0.6182407", "0.617654", "0.6173315", "0.616883", "0.6166318", "0.6131769", "0.61240697", "0.61225927", "0.61187017", "0.61107427", "0.6100877", "0.6099445", "0.6090081", "0.60892844", "0.6085298", "0.6084627", "0.6084022", "0.60820776", "0.60812473", "0.6072689", "0.6072066", "0.6066606", "0.606061", "0.6053648", "0.60463357", "0.6040634", "0.60183233", "0.60131526", "0.60088265", "0.6004096", "0.5997815", "0.59904504", "0.5989323", "0.5989323", "0.5989323", "0.5989323", "0.5989323", "0.5989323", "0.5984597", "0.59824616" ]
0.7034742
15
Get qualifier of a class name
public static String getQualifier(String className) { String name = className; if (name.indexOf('<') >= 0) {//is generic class? name = erase(name); } int index = name.lastIndexOf('.'); return (index < 0) ? null : name.substring(0, index); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract String getQualifier();", "public String getQualifier() {\n return mQualifier;\n }", "java.lang.String getClassName();", "String getClassName();", "String getClassName();", "String getClassName();", "public PosSymbol getQualifier() {\n return qualifier;\n }", "public String getClazzName();", "Exp getQualifierExp();", "private String getClassname() {\r\n\t\tString classname = this.getClass().getName();\r\n\t\tint index = classname.lastIndexOf('.');\r\n\t\tif (index >= 0)\r\n\t\t\tclassname = classname.substring(index + 1);\r\n\t\treturn classname;\r\n\t}", "java.lang.String getClass_();", "java.lang.String getClass_();", "public static String stripQualifier(String className) {\n String qual = getQualifier(className);\n if (qual == null) return className;\n int len = className.length();\n return className.substring(qual.length() + 1, len);\n }", "public String getClassName();", "public abstract String getClassName();", "abstract String getClassName();", "String getInstanceOfClass();", "public String getName_Class() {\n\t\treturn name;\n\t}", "String getClazz();", "private static String resolveQualifierFromTypeName(IType sigInterfaceType, String typeName) {\n\n\t\ttry {\n\n\t\t\tString[][] types = sigInterfaceType.resolveType(typeName);\n\t\t\tif (types != null) {\n\t\t\t\t// Returns the first candidate\n\t\t\t\tString qualifier = types[0][0];\n\t\t\t\t//\t\t\t\tString name = types[0][1];\n\t\t\t\treturn qualifier;\n\t\t\t}\n\t\t}\n\t\tcatch (JavaModelException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn null;\n\t}", "public static String getClass(String element) {\n return element.substring(element.lastIndexOf('.') + 1);\n }", "default String getClassName() {\n return declaringType().getClassName();\n }", "IArenaClass getClass(final String name);", "public String getClassname() {\n return classname;\n }", "public String getClassName() {\n\t\tString tmp = methodBase();\n\t\treturn tmp.substring(0, 1).toUpperCase()+tmp.substring(1);\n\t}", "public String getClassname() {\n\t\treturn classname;\n\t}", "public String getClassname()\r\n {\r\n return m_classname;\r\n }", "String getStringClass();", "public java.lang.Short getCriterionQualifier() {\r\n return criterionQualifier;\r\n }", "public abstract Class getDescriptedClass();", "String getMetadataClassName();", "public static void setQualifier(String qual) {\n\tif (qual == null) _qualifier = \"\";\n\telse if (qual.equals(\"\")) _qualifier = qual;\n\telse if (!qual.endsWith(\".\")) _qualifier = qual + \".\";\n\telse _qualifier = qual;\n }", "private String getClassName( Class c ) {\n\treturn c.getName().substring(c.getName().lastIndexOf('.')+1);\n }", "public String getClazz();", "private ClassName getClassName(String rClass, String resourceType) {\n ClassName className = rClassNameMap.get(rClass);\n\n if (className == null) {\n Element rClassElement = getElementByName(rClass, elementUtils, typeUtils);\n\n String rClassPackageName =\n elementUtils.getPackageOf(rClassElement).getQualifiedName().toString();\n className = ClassName.get(rClassPackageName, \"R\", resourceType);\n\n rClassNameMap.put(rClass, className);\n }\n\n return className;\n }", "@DISPID(-2147417111)\n @PropGet\n java.lang.String className();", "private static String parseName(String line) {\n if (null == line || !line.startsWith(QUALIFIER_TOKEN)) {\n throw new RuntimeException(\n \"Expected one line naming a qualifier. Line found was: \" + line);\n }\n\n String name = line.substring(QUALIFIER_TOKEN.length());\n LOG.debug(\"Found qualifier: \" + name);\n return name;\n }", "public String getCurrentClassName () {\n String currentClass = getCurrentElement(ElementKind.CLASS);\n if (currentClass == null) return \"\";\n else return currentClass;\n }", "public String getTypeName() {\n if (isStatic()) {\n JavaType.FullyQualified fq = TypeUtils.asFullyQualified(qualid.getType());\n\n // the compiler doesn't type attribute static imports of classes\n if (fq == null) {\n String possibleInnerClassFqn = getTypeName(qualid);\n String possibleInnerClassName = possibleInnerClassFqn.substring(possibleInnerClassFqn.lastIndexOf('$') + 1);\n if (\"*\".equals(possibleInnerClassName)) {\n return possibleInnerClassFqn.substring(0, possibleInnerClassFqn.lastIndexOf('$'));\n }\n while (possibleInnerClassName.indexOf('$') >= 0) {\n possibleInnerClassName = possibleInnerClassName.substring(possibleInnerClassName.indexOf('$') + 1);\n }\n\n JavaType.Class owner = TypeUtils.asClass(qualid.getTarget().getType());\n if (owner != null && !(qualid.getTarget().getType() instanceof JavaType.ShallowClass)) {\n Iterator<JavaType.Method> visibleMethods = owner.getVisibleMethods();\n while (visibleMethods.hasNext()) {\n JavaType.Method method = visibleMethods.next();\n if (method.getName().equals(possibleInnerClassName)) {\n return possibleInnerClassFqn.substring(0, possibleInnerClassFqn.lastIndexOf('$'));\n }\n }\n\n Iterator<JavaType.Variable> visibleMembers = owner.getVisibleMembers();\n while (visibleMembers.hasNext()) {\n JavaType.Variable member = visibleMembers.next();\n if (member.getName().equals(possibleInnerClassName)) {\n return possibleInnerClassFqn.substring(0, possibleInnerClassFqn.lastIndexOf('$'));\n }\n }\n\n return possibleInnerClassFqn;\n }\n }\n\n return getTypeName((FieldAccess) qualid.getTarget());\n }\n\n return getTypeName(qualid);\n }", "public String getClassname(Class<?> aClass) {\n\t\tString result = aClass.getCanonicalName();\n\t\tif (result.endsWith(\"[]\")) {\n\t\t\tresult = result.substring(0, result.length() - 2);\n\t\t}\n\t\treturn result;\n\t}", "char[] getSuperclassName();", "int getClassID();", "public String getClassificatioName() {\n return classificatioName;\n }", "String getClassName(Element e) {\n // e has to be a TypeElement\n TypeElement te = (TypeElement)e;\n String packageName = elementUtils.getPackageOf(te).getQualifiedName().toString();\n String className = te.getQualifiedName().toString();\n if (className.startsWith(packageName + \".\")) {\n String classAndInners = className.substring(packageName.length() + 1);\n className = packageName + \".\" + classAndInners.replace('.', '$');\n }\n return className;\n }", "String qualifiedName();", "public ClassConstant getClassConstant()\n {\n ensureLoaded();\n return m_clzName;\n }", "IdentifierReferenceQualifier createIdentifierReferenceQualifier();", "public String getPackageName() {\n JavaType.FullyQualified fq = TypeUtils.asFullyQualified(qualid.getType());\n if (fq != null) {\n return fq.getPackageName();\n }\n String typeName = getTypeName();\n int lastDot = typeName.lastIndexOf('.');\n return lastDot < 0 ? \"\" : typeName.substring(0, lastDot);\n }", "AnnotationProvider getClassAnnotationProvider();", "public abstract boolean useQualifier();", "public abstract char getTextQualifier();", "public String KindOf(String name) {\n\t\tValues tmp = currScope.get(name);\n\t\tString kind = null;\n\t\t\n\t\tif(tmp != null)\n\t\t\treturn tmp.getKind();\n\t\t\n\t\tif(currScope != classScope) {\n\t\t\ttmp = classScope.get(name);\n\t\t\tif(tmp != null)\n\t\t\t\treturn tmp.getKind();\n\t\t}\n\t\t\n\t\treturn \"NONE\";\n\t}", "public final String toStringClassName() {\r\n \t\tString str = this.getClass().getName();\r\n \t\tint lastIx = str.lastIndexOf('.');\r\n \t\treturn str.substring(lastIx+1);\r\n \t}", "public String getName() {\n return className;\n }", "protected String getFullyQualifiedClassName(String classname)\n {\n return classname.contains(\".\") ? classname : \"org.apache.cassandra.hadoop.\" + classname;\n }", "public String getName()\n {\n return underlyingClass.getName();\n }", "private String m56637b(Class cls) {\n return cls.getName();\n }", "@Override\n public String getName() {\n final String name = getClass().getName();\n final int lastDollar = name.lastIndexOf('$');\n return name.substring(lastDollar + 1);\n }", "public String getClassificationName()\n {\n return classificationName;\n }", "public static String getClassName(Class<?> objectClass) {\n RemoteClass annotation = objectClass.getAnnotation(RemoteClass.class);\n if (annotation != null) {\n return annotation.alias();\n }\n String className = objectClass.getName();\n if (className.startsWith(\"org.red5.compatibility.\")) {\n // Strip compatibility prefix from classname\n className = className.substring(23);\n if (\"flex.messaging.messages.AsyncMessageExt\".equals(className)) {\n className = \"DSA\";\n } else if (\"flex.messaging.messages.CommandMessageExt\".equals(className)) {\n className = \"DSC\";\n } else if (\"flex.messaging.messages.AcknowledgeMessageExt\".equals(className)) {\n className = \"DSK\";\n }\n }\n log.debug(\"Classname: {}\", className);\n return className;\n }", "protected String getClassName() {\n return getDescriptedClass().getName();\n }", "public String getName() {\n // defaults to class name\n String className = getClass().getName();\n return className.substring(className.lastIndexOf(\".\")+1);\n }", "String getConvention(String type) {\n\t\tfor (int i = scopeStack.size() - 1; i >= 0; i--) {\n\t\t\tScope scope = scopeStack.elementAt(i);\n\t\t\tString prefix = scope.getConvention(type);\n\t\t\tif (prefix != null) return prefix;\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "private static String getClassName() {\n\n\t\tThrowable t = new Throwable();\n\n\t\ttry {\n\t\t\tStackTraceElement[] elements = t.getStackTrace();\n\n\t\t\t// for (int i = 0; i < elements.length; i++) {\n\t\t\t//\n\t\t\t// }\n\n\t\t\treturn elements[2].getClass().getSimpleName();\n\n\t\t} finally {\n\t\t\tt = null;\n\t\t}\n\n\t}", "String kind();", "String kind();", "private String getClassName(String fileName){\n String className = FilenameUtils.getBaseName(fileName);\n return className;\n }", "public java.lang.CharSequence getQclassname() {\n return qclassname;\n }", "public String getName() {\n\t\treturn className;\n\t}", "@Override\n public String getName() {\n return getDeclaringClass().getName();\n }", "public String getclassname(String strtofind, String classname) {\n\t\tif(classname==null){\n\t\t\tSystem.out.println(\"See assignment helper function getclassname\");\n\t\t\tSystem.exit(1);\n\t\t}\n\t\tTable t=finaltable.symboltable.get(classname);\n\t\tif(t.varmap.containsKey(strtofind)){\n\t\t\treturn classname;\n\t\t}\n\t\telse{\n\t\t\treturn getclassname(strtofind,t.parent);\n\t\t}\n\t}", "public AssetClass findAssetClassByName(String name_);", "String getQualifiedName();", "public java.lang.CharSequence getQclassname() {\n return qclassname;\n }", "public ClassInfo declaringClass();", "List<Constraint> getQualifier();", "public String getQual() {\r\n return (String) getAttributeInternal(QUAL);\r\n }", "public String getResourceClassName()\r\n {\r\n return getSemanticObject().getProperty(swb_resourceClassName);\r\n }", "public String getClassName(){\n\t\treturn targetClass.name;\n\t}", "public String getClassName(){\n\t\treturn classname;\n\t}", "public String getClassification() {\n return classification;\n }", "public String getClassification() {\n return classification;\n }", "public String getFullyQualifiedName() {\n\t\treturn this.getPackageName() + \".\" + this.getClassName();\n\t}", "public static String getPackageName(String className) {\n String packageName = getQualifier(className);\n return packageName != null ? packageName : \"\";\n }", "public String getIdName(Class<?> clazz);", "public RubyClass getClass(String name) {\n return objectClass.getClass(name);\n }", "Object getClass_();", "Object getClass_();", "Class<?> getDeclaringClass();", "public String getFullyQualifiedName();", "public String getProviderClassName();", "@objid (\"f3f8fb41-47e8-4136-9889-fc34aac3d3f9\")\n String getReferencedClassName();", "private String getClass( String format )\n {\n final Class clazz = StackIntrospector.getCallerClass( Logger.class );\n\n if( null == clazz )\n {\n return \"Unknown-class\";\n }\n else\n {\n // Found : the caller is the previous stack element\n String className = clazz.getName();\n\n // Handle optional format\n if( TYPE_CLASS_SHORT_STR.equalsIgnoreCase( format ) )\n {\n int pos = className.lastIndexOf( '.' );\n\n if( pos >= 0 )\n {\n className = className.substring( pos + 1 );\n }\n }\n\n return className;\n }\n }", "public JvmType getClassx();", "public static String getCurrentClassName(){\n\t\tString s2 = Thread.currentThread().getStackTrace()[2].getClassName();\n// System.out.println(\"s0=\"+s0+\" s1=\"+s1+\" s2=\"+s2);\n\t\t//s0=java.lang.Thread s1=g1.tool.Tool s2=g1.TRocketmq1Application\n\t\treturn s2;\n\t}", "public String TypeOf(String name) {\n\t\tValues tmp = currScope.get(name);\n\t\t\n\t\tif(tmp != null)\n\t\t\treturn tmp.getType();\n\t\t\n\t\tif(currScope != classScope) {\n\t\t\ttmp = classScope.get(name);\n\t\t\tif(tmp != null)\n\t\t\t\treturn tmp.getType();\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "public String getClassification() {\n return classification;\n }", "public T caseQualifier(Qualifier object)\n {\n return null;\n }", "public String getQualifiedName()\n {\n return name + \".\" + type;\n }", "default String getQualifiedName() {\n return declaringType().getQualifiedName() + \".\" + this.getName();\n }" ]
[ "0.71075654", "0.65895736", "0.6448515", "0.64221174", "0.64221174", "0.64221174", "0.63831323", "0.63517386", "0.63428867", "0.61816216", "0.61703503", "0.61703503", "0.61376363", "0.6119847", "0.60372037", "0.6031879", "0.60061276", "0.5950197", "0.5949016", "0.59221244", "0.5917481", "0.5915597", "0.58766896", "0.5862691", "0.5824539", "0.58242255", "0.5793003", "0.5789478", "0.5759529", "0.5755134", "0.57272327", "0.57162845", "0.57009196", "0.5665742", "0.5663475", "0.56553596", "0.5650174", "0.5650061", "0.56490076", "0.561998", "0.55981624", "0.5593656", "0.55932415", "0.5537876", "0.5534328", "0.5517674", "0.55084604", "0.55049026", "0.54981905", "0.54979455", "0.54974115", "0.54964226", "0.54929644", "0.5489288", "0.54875934", "0.54850584", "0.54835933", "0.54680896", "0.5458539", "0.5447019", "0.543031", "0.54110503", "0.5410586", "0.5384208", "0.5381575", "0.5381575", "0.5379598", "0.53742534", "0.53683734", "0.5365238", "0.53635406", "0.5360517", "0.53586805", "0.5350328", "0.5338292", "0.533585", "0.53331953", "0.53320235", "0.53307635", "0.532851", "0.53251225", "0.53251225", "0.5314008", "0.53061604", "0.5302166", "0.5300146", "0.52991134", "0.52991134", "0.52959394", "0.5287843", "0.52769965", "0.5263126", "0.5258249", "0.52571076", "0.52548456", "0.5250352", "0.5248279", "0.52410173", "0.523291", "0.5221298" ]
0.7492738
0
Erase type parameters of a generic class
public static String erase(String className) { int index = className.indexOf('<'); if(index < 0) return className; return (index > 0)?className.substring(0, index):className; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void clearTypedParameters();", "void unsetType();", "boolean removeTypedParameter(Parameter typedParameter);", "public static String stripGenerics(String className) {\n String name = className;\n \n if (name.contains(\"<\")) {\n name = name.substring(0, name.indexOf('<'));\n }\n \n if (name.contains(\"[\")) {\n name = name.substring(0, name.indexOf('['));\n }\n \n return name;\n }", "private static void stripAllMembers(TypeDeclaration tyDecl) {\n if (TypeDeclaration.kind(tyDecl.modifiers) == TypeDeclaration.ANNOTATION_TYPE_DECL) {\n // Do not modify annotations at all.\n return;\n }\n tyDecl.superclass = null;\n tyDecl.superInterfaces = null;\n tyDecl.annotations = null;\n tyDecl.methods = null;\n tyDecl.memberTypes = null;\n tyDecl.fields = null;\n if (TypeDeclaration.kind(tyDecl.modifiers) == TypeDeclaration.CLASS_DECL) {\n // Create a default constructor so that the class is proper.\n ConstructorDeclaration constructor = tyDecl.createDefaultConstructor(true, true);\n // Mark only constructor as private so that it can not be instantiated.\n constructor.modifiers = ClassFileConstants.AccPrivate;\n // Clear a bit that is used for marking the constructor as default as it makes JDT\n // assume that the constructor is public.\n constructor.bits &= ~ASTNode.IsDefaultConstructor;\n // Mark the class as final so that it can not be extended.\n tyDecl.modifiers |= ClassFileConstants.AccFinal;\n tyDecl.modifiers &= ~ClassFileConstants.AccAbstract;\n }\n }", "public void clearAuxClasss();", "public void removeOutputType(IOutputType type);", "public void removeInputType(IInputType type);", "public void removeByType(long typeId);", "TypeConstraintMappingContext<C> ignoreAllAnnotations();", "void clearTypedFeatures();", "@Override\n public boolean isGeneric() { \n return false;\n }", "public AnnotatedTypeBuilder<X> removeFromAll(Class<? extends Annotation> annotationType) {\n\t\tif (annotationType == null) {\n\t\t\tthrow new IllegalArgumentException(String.format(\"%s parameter must not be null\", \"annotationType\"));\n\t\t}\n\t\tremoveFromClass(annotationType);\n\t\tfor (Map.Entry<Field, AnnotationBuilder> field : fields.entrySet()) {\n\t\t\tfield.getValue().remove(annotationType);\n\t\t}\n\t\tfor (Map.Entry<Method, AnnotationBuilder> method : methods.entrySet()) {\n\t\t\tmethod.getValue().remove(annotationType);\n\t\t\tif (methodParameters.get(method.getKey()) != null) {\n\t\t\t\tfor (Map.Entry<Integer, AnnotationBuilder> parameter : methodParameters.get(method.getKey())\n\t\t\t\t\t\t.entrySet()) {\n\t\t\t\t\tparameter.getValue().remove(annotationType);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (Map.Entry<Constructor<?>, AnnotationBuilder> constructor : constructors.entrySet()) {\n\t\t\tconstructor.getValue().remove(annotationType);\n\t\t\tif (constructorParameters.get(constructor.getKey()) != null) {\n\t\t\t\tfor (Map.Entry<Integer, AnnotationBuilder> parameter : constructorParameters.get(constructor.getKey())\n\t\t\t\t\t\t.entrySet()) {\n\t\t\t\t\tparameter.getValue().remove(annotationType);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn this;\n\t}", "public void removeAuxClasss(Collection auxClasss);", "<KEY extends MetadataKey<VALUE>, VALUE> void removeMetadata(Class<KEY> keyClass);", "public void unsetTypeId()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(TYPEID$2, 0);\n }\n }", "@SuppressWarnings(\"unchecked\")\n protected TypeToken() {\n this.type = getSuperclassTypeParameter(getClass());\n this.rawType = (Class<? super T>) $Gson$Types.getRawType(type);\n this.hashCode = type.hashCode();\n }", "@SuppressWarnings(\"unchecked\")\n protected GenericType() {\n final Type superclass = getClass().getGenericSuperclass();\n if (!(superclass instanceof ParameterizedType)) {\n throw new RuntimeException(\"Missing type parameter.\");\n }\n final ParameterizedType parameterized = (ParameterizedType) superclass;\n _genericType = parameterized.getActualTypeArguments()[0];\n _type = (Class<T>) Types.getRawType(_genericType);\n }", "private void clearTypeId() {\n \n typeId_ = 0;\n }", "public static void clearTypes() {\n OBJECT = null;\n METHOD = null;\n METHOD_TABLE = null;\n CAST_EXCEPTION = null;\n INDEX_OUT_OF_BOUNDS_EXCEPTION = null;\n UNEXPECTED_NULL_EXCEPTION = null;\n INTERFACE_CREATE_EXCEPTION = null;\n ASSERT_EXCEPTION = null;\n CLASS = null;\n ARRAY = null;\n ARRAY_NULLABLE = null;\n ENUM = null;\n ATTRIBUTE = null;\n EXCEPTION = null;\n GENERIC_CLASS = null;\n BOOLEAN = null;\n BYTE = null;\n CODE = null;\n DOUBLE = null;\n FLOAT = null;\n INT = null;\n LONG = null;\n SHORT = null;\n UBYTE = null;\n UINT = null;\n ULONG = null;\n USHORT = null;\n STRING = null;\n ADDRESS_MAP = null;\n CAN_COMPARE = null;\n CAN_EQUAL = null;\n CAN_INDEX = null;\n CAN_INDEX_NULLABLE = null;\n CAN_INDEX_STORE = null;\n CAN_INDEX_STORE_NULLABLE = null;\n CAN_ITERATE = null;\n CAN_ITERATE_NULLABLE = null;\n ITERATOR = null;\n ITERATOR_NULLABLE = null;\n NUMBER = null;\n INTEGER = null;\n CAN_ADD = null;\n CAN_SUBTRACT = null;\n CAN_MULTIPLY = null;\n CAN_DIVIDE = null;\n CAN_MODULUS = null;\n CAN_NEGATE = null;\n\n POINTER = null;\n CAN_RUN = null;\n THREAD = null;\n\n THREAD_CURRENT = null;\n\n exceptionType = null;\n\n AttributeType.clearTypes();\n }", "void discard(T1XTemplateTag tag) {\n final int listLength = methodStatusList.size();\n MethodStatus ms = methodStatusList.get(listLength - 1);\n // ok to destroy ms.asSet\n ms.atSet.retainAll(generating);\n // throw it away if we generated advice type that was not wanted.\n if (ms.atSet.isEmpty()) {\n ms.output = false;\n // Checkstyle: resume Indentation check\n int index = listLength - 2;\n while (index >= 0) {\n ms = methodStatusList.get(index);\n if (ms.tag == null) {\n ms.output = false;\n } else if (ms.tag != tag) {\n return;\n }\n index--;\n }\n }\n }", "public boolean remove(Type t);", "public Builder clearType() {\n bitField0_ = (bitField0_ & ~0x00000008);\n type_ = 1;\n onChanged();\n return this;\n }", "public void removeAllAnnotationTypes() {\n \t\tfConfiguredAnnotationTypes.clear();\n \t\tfAllowedAnnotationTypes.clear();\n \t\tfConfiguredHighlightAnnotationTypes.clear();\n \t\tfAllowedHighlightAnnotationTypes.clear();\n \t\tif (fTextInputListener != null) {\n \t\t\tfSourceViewer.removeTextInputListener(fTextInputListener);\n \t\t\tfTextInputListener= null;\n \t\t}\n \t}", "public Builder clearType() {\n bitField0_ = (bitField0_ & ~0x00000004);\n type_ = 1;\n onChanged();\n return this;\n }", "public void unCache(Class<?> type) {\n reflectorCache.remove(type);\n }", "public Builder clearType() {\n bitField0_ = (bitField0_ & ~0x00000004);\n type_ = 0;\n onChanged();\n return this;\n }", "public Builder clearType() {\n bitField0_ = (bitField0_ & ~0x00000001);\n type_ = 1;\n onChanged();\n return this;\n }", "public Builder clearType() {\n bitField0_ = (bitField0_ & ~0x00000001);\n type_ = 1;\n onChanged();\n return this;\n }", "public Builder clearType() {\n bitField0_ = (bitField0_ & ~0x00000002);\n type_ = 1;\n onChanged();\n return this;\n }", "public Builder clearType() {\n bitField0_ = (bitField0_ & ~0x00000001);\n type_ = 0;\n onChanged();\n return this;\n }", "void removeAllParameterViews();", "public final void removeAllCompositeTypes()\n {\n listModel.removeAllElements();\n\tallTypes.removeAllElements();\n }", "void unsetControlType();", "protected void clearData() {\n any.type(any.type());\n }", "@Override\n\tpublic <T> void drop(Class<T> entityClass) throws Exception {\n\t\t\n\t}", "public Builder clearType() {\n bitField0_ = (bitField0_ & ~0x00000020);\n type_ = 0;\n onChanged();\n return this;\n }", "public Builder clearType() {\n bitField0_ = (bitField0_ & ~0x00000001);\n type_ = 0;\n onChanged();\n return this;\n }", "public Builder clearType() {\n bitField0_ = (bitField0_ & ~0x00000001);\n type_ = 0;\n onChanged();\n return this;\n }", "public Builder clearType() {\n bitField0_ = (bitField0_ & ~0x00000001);\n type_ = 0;\n onChanged();\n return this;\n }", "public Builder clearType() {\n bitField0_ = (bitField0_ & ~0x00000001);\n type_ = 0;\n onChanged();\n return this;\n }", "public Builder clearType() {\n bitField0_ = (bitField0_ & ~0x00000001);\n type_ = 0;\n onChanged();\n return this;\n }", "public Builder clearType() {\n bitField0_ = (bitField0_ & ~0x00000001);\n type_ = 0;\n onChanged();\n return this;\n }", "public Builder clearType() {\n bitField0_ = (bitField0_ & ~0x00000008);\n type_ = getDefaultInstance().getType();\n onChanged();\n return this;\n }", "public Builder clearType() {\n bitField0_ = (bitField0_ & ~0x00000002);\n type_ = 0;\n onChanged();\n return this;\n }", "public Builder clearType() {\n bitField0_ = (bitField0_ & ~0x00000002);\n type_ = 0;\n onChanged();\n return this;\n }", "public Builder clearType() {\n\n\t\t\t\t\ttype_ = 0;\n\t\t\t\t\tonChanged();\n\t\t\t\t\treturn this;\n\t\t\t\t}", "@Override\n\t\tpublic Object getTypedParams(Object params) {\n\t\t\treturn null;\n\t\t}", "@Override\n\t\tpublic Object getTypedParams(Object params) {\n\t\t\treturn null;\n\t\t}", "public static <T> T unboxAllAs(Object src, Class<T> type) {\n return (T) unboxAll(type, src, 0, -1);\n }", "void remove(T instance);", "ExcludeType createExcludeType();", "public Builder clearType() {\n\n\t\t\t\ttype_ = 0;\n\t\t\t\tonChanged();\n\t\t\t\treturn this;\n\t\t\t}", "Form removeDefaultDecoratorsForElementClass(Class<? extends Element> clazz);", "public Builder clearType() {\n bitField0_ = (bitField0_ & ~0x00000001);\n type_ = getDefaultInstance().getType();\n onChanged();\n return this;\n }", "public Builder clearType() {\n bitField0_ = (bitField0_ & ~0x00000001);\n type_ = getDefaultInstance().getType();\n onChanged();\n return this;\n }", "public Builder clearType() {\n bitField0_ = (bitField0_ & ~0x00000001);\n type_ = getDefaultInstance().getType();\n onChanged();\n return this;\n }", "public Builder clearType() {\n bitField0_ = (bitField0_ & ~0x00000001);\n type_ = getDefaultInstance().getType();\n onChanged();\n return this;\n }", "public Builder clearType() {\n bitField0_ = (bitField0_ & ~0x00000002);\n type_ = getDefaultInstance().getType();\n onChanged();\n return this;\n }", "void unsetCryptProviderTypeExt();", "<T extends Component> Optional<T> removeComponent(Class<T> type);", "public void clearPolymorphismType() {\n // Override in proxy if lazily loaded; otherwise does nothing\n }", "public Builder clearType() {\n\n type_ = getDefaultInstance().getType();\n onChanged();\n return this;\n }", "public Builder clearType() {\n\n type_ = getDefaultInstance().getType();\n onChanged();\n return this;\n }", "@Override\n public TypeParameterNode deepCopy(BsjNodeFactory factory);", "public static void destroyType() {\n\t\t\n\t}", "public Builder clearType() {\n\n type_ = 0;\n onChanged();\n return this;\n }", "@Override\n\tpublic void clearIndex(Class<? extends ModelKey> clazz) {\n\t\t\n\t}", "public Builder clearType() {\n \n type_ = getDefaultInstance().getType();\n onChanged();\n return this;\n }", "public Builder clearType() {\n \n type_ = getDefaultInstance().getType();\n onChanged();\n return this;\n }", "public Builder clearType() {\n \n type_ = getDefaultInstance().getType();\n onChanged();\n return this;\n }", "public Builder clearType() {\n \n type_ = getDefaultInstance().getType();\n onChanged();\n return this;\n }", "public Builder clearType() {\n \n type_ = getDefaultInstance().getType();\n onChanged();\n return this;\n }", "Form removeDefaultRendererForElementClass(Class<? extends Element> clazz);", "public Builder clearType() {\n\n type_ = 0;\n onChanged();\n return this;\n }", "public Builder clearType() {\n\n type_ = 0;\n onChanged();\n return this;\n }", "public Builder clearType() {\n\n type_ = 0;\n onChanged();\n return this;\n }", "public static Object unboxAll(Class<?> type, Object src) {\n return unboxAll(type, src, 0, -1);\n }", "public void setTypeParameters(TypeParameterListNode typeParameters);", "public static void clearAllTileTypes(){\n\t\tTileType.allTileTypes.clear();\n\t}", "void unsetCryptProviderTypeExtSource();", "public Builder clearType() {\n\n type_ = 0;\n onChanged();\n return this;\n }", "public abstract Type treeCopyNoTransform();", "public Builder clearParameters() {\n parameters_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000800);\n\n return this;\n }", "public QueryMethodType<T> removeMethodParams()\n {\n childNode.remove(\"method-params\");\n return this;\n }", "public void clear_type(String type) {\n\t\t/* Iterate through draw list */\n\t\tIterator<ArrayList<Drawable>> iter = this.drawlist.iterator();\n\t\twhile(iter.hasNext()) {\n\t\t\tArrayList<Drawable> layer = iter.next();\n\t\t\t/* Iterate through the layer. */\n\t\t\tIterator<Drawable> jter = layer.iterator();\n\t\t\twhile(jter.hasNext()) {\n\t\t\t\tif(jter.next().getType().equals(type)) {\n\t\t\t\t\tjter.remove();\n\t\t\t\t}//fi\n\t\t\t}//elihw\n\t\t}//elihw\n\t}", "public abstract void remove(Class<?> entity, Object paramObject);", "@Override\r\n\tpublic void supprimerTVA(TVA t) {\n\t\t\r\n\t}", "private void clearPkiType() {\n bitField0_ = (bitField0_ & ~0x00000002);\n pkiType_ = getDefaultInstance().getPkiType();\n }", "YangType<T> clone();", "public Builder clearType() {\n \n type_ = 0;\n onChanged();\n return this;\n }", "private void clearFields(){\r\n fields.forEach(e -> e.clear());\r\n }", "public Builder clearType() {\n \n type_ = 0;\n onChanged();\n return this;\n }", "public Builder clearType() {\n \n type_ = 0;\n onChanged();\n return this;\n }", "public Builder clearType() {\n \n type_ = 0;\n onChanged();\n return this;\n }", "public Builder clearType() {\n \n type_ = 0;\n onChanged();\n return this;\n }", "public Builder clearType() {\n \n type_ = 0;\n onChanged();\n return this;\n }", "public Builder clearType() {\n \n type_ = 0;\n onChanged();\n return this;\n }", "public Builder clearType() {\n \n type_ = 0;\n onChanged();\n return this;\n }", "void modelType(Class<?> modelType);", "private <T extends IEntity> void clearRetrieveValues(T entity) {\n Key pk = entity.getPrimaryKey();\n entity.clear();\n entity.setPrimaryKey(pk);\n }" ]
[ "0.6597609", "0.61777127", "0.5776954", "0.5591764", "0.54831696", "0.5466357", "0.5375058", "0.53108025", "0.5279478", "0.52656007", "0.51882565", "0.5183541", "0.51435274", "0.51167136", "0.5104388", "0.5099316", "0.5078611", "0.50731516", "0.507085", "0.50428253", "0.50396967", "0.5014249", "0.50126815", "0.49960017", "0.49895504", "0.49756837", "0.49740168", "0.49634418", "0.49634418", "0.49524924", "0.49432707", "0.49414703", "0.4929273", "0.4925151", "0.49250713", "0.4914301", "0.49056482", "0.4901598", "0.4901598", "0.4901598", "0.4901598", "0.4901598", "0.4901598", "0.4901375", "0.48912048", "0.48903143", "0.48851994", "0.48786995", "0.48786995", "0.48770565", "0.48622918", "0.48503152", "0.48483858", "0.48458284", "0.48432845", "0.48432845", "0.48432845", "0.48432845", "0.48388875", "0.48353228", "0.48343197", "0.4831186", "0.48258686", "0.48258686", "0.48128158", "0.4809857", "0.48036486", "0.48012534", "0.4798398", "0.4798398", "0.4798398", "0.4798398", "0.4798398", "0.47982213", "0.47949573", "0.47949573", "0.47949573", "0.47930348", "0.4786909", "0.47847056", "0.4776036", "0.47582233", "0.47492236", "0.4748522", "0.47447088", "0.4744375", "0.47384778", "0.47372678", "0.47334218", "0.4727392", "0.47252536", "0.4724342", "0.47146308", "0.47146308", "0.47146308", "0.47146308", "0.47146308", "0.47146308", "0.47146308", "0.46982527", "0.46908236" ]
0.0
-1
change package name into a relative file path
public static String packageNameToPath(String pkgName) { if (pkgName == null) return null; String path = pkgName.replace('.', File.separatorChar); return path; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static String getPackageNameForPackageDirFile(WebFile aFile)\n {\n String filePath = aFile.getPath();\n return filePath.substring(1).replace('/', '.');\n }", "static String translatePackageNameToFilePath(final String packageName) {\n if (packageName == null) {\n throw new IllegalArgumentException(\"input package name could not be null\");\n } else {\n return packageName.replace('.', File.separatorChar);\n }\n }", "String getPackageName() {\n final int lastSlash = name.lastIndexOf('/');\n final String parentPath = name.substring(0, lastSlash);\n return parentPath.replace('/', '.');\n }", "public static String getPackageFromName(String name)\n \t{\n \t\tif (name.lastIndexOf('/') != -1)\n \t\t\tname = name.substring(0, name.lastIndexOf('/'));\n \t\tif (name.startsWith(\"/\"))\n \t\t\tname = name.substring(1);\n \t\treturn name.replace('/', '.');\t\t\n \t}", "public String resolvePath();", "public static String getResourceName(Package pkg, String name) {\n if (name.charAt(0) == '/') {\r\n return name;\r\n } else {\r\n StringBuffer resourceName = new StringBuffer(\"/\");\r\n resourceName.append(pkg.getName().replace('.', '/'));\r\n resourceName.append(\"/\").append(name);\r\n return resourceName.toString();\r\n }\r\n }", "private Path makeFilePath(String name) {\n Path baseFilePath = Paths.get(portManager.getBfp());\n if (name.length() > 4 && name.substring(name.length() - 5).equals(\".json\")) {\n return baseFilePath.resolve(name);\n } else {\n return baseFilePath.resolve(name + \".json\");\n }\n }", "private static String getPackage(final String fullName) {\n \t\treturn fullName.substring(0, fullName.lastIndexOf(\".\"));\n \t}", "private static String packageName(String cn) {\n int index = cn.lastIndexOf('.');\n return (index == -1) ? \"\" : cn.substring(0, index);\n }", "private String entryName(String name) {\n name = name.replace(File.separatorChar, '/');\n String matchPath = \"\";\n /* Need to add code to consolidate paths\n for (String path : paths) {\n if (name.startsWith(path)\n && (path.length() > matchPath.length())) {\n matchPath = path;\n }\n }\n */\n name = name.substring(matchPath.length());\n \n if (name.startsWith(\"/\")) {\n name = name.substring(1);\n } else if (name.startsWith(\"./\")) {\n name = name.substring(2);\n }\n return name;\n }", "public abstract String packageName();", "private String getFullPath()\n\t{\n\t\tif (libraryName.equals(\"\"))\n\t\t{\n\t\t\treturn fileName;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn libraryName + \"/\" + fileName;\n\t\t}\n\t}", "private String relativize(String p) {\n return Paths.get(\"\").toAbsolutePath().relativize(Paths.get(p).toAbsolutePath()).toString();\n }", "public static String getAbsoluteName(Package p) {\n\t\tString res = \"\";\n\t\twhile (p.parent.parent != null) {\n\t\t\tres = p.parent.name + \"_\" + res;\n\t\t\tp = p.parent;\n\t\t}\n\t\treturn res;\n\t}", "@Override\n \tprotected File deriveLocalFileCodeBase(Class<?> baseClass)\n \t{\n \t\t// setup codeBase\n \t\tif (baseClass == null)\n \t\t\tbaseClass = this.getClass();\n \n \t\tPackage basePackage = baseClass.getPackage();\n \t\tString packageName = basePackage.getName();\n \t\tString packageNameAsPath = packageName.replace('.', Files.sep);\n \n \t\tString pathName = System.getProperty(\"user.dir\") + Files.sep;\n \t\tFile path = new File(pathName);\n \t\tString pathString = path.getAbsolutePath();\n \n \t\t// println(\"looking for \" + packageNameAsPath +\" in \" + pathString);\n \n \t\tint packageIndex = pathString.lastIndexOf(packageNameAsPath);\n \t\tif (packageIndex != -1)\n \t\t{\n \t\t\tpathString = pathString.substring(0, packageIndex);\n \t\t\tpath = new File(pathString + Files.sep);\n \t\t}\n \n \t\tcodeBase = new ParsedURL(path);\n \t\tprintln(\"codeBase=\" + codeBase);\n \t\treturn path;\n \t}", "private String javaFileToPackageDotClass(File java)\n\t{\n\t\tStringBuilder bob = new StringBuilder();\n\t\tbob.append(java.getParentFile().getName());\n\t\tbob.append('.');\n\t\tbob.append(java.getName().subSequence(0, java.getName().lastIndexOf('.')));\n\t\treturn bob.toString();\n\t}", "public String normalizePathName( final String name );", "java.lang.String getPackage();", "private static String convertToQualifiedName(final String fileName) {\n final String replacedSeparators = fileName.replace(File.separatorChar, '.');\n return replacedSeparators.substring(0, replacedSeparators.length() - \".class\".length());\n }", "private String getDesignPath() {\n Class<?> clazz = getClass();\n String designFilePath = null;\n if (clazz.getAnnotation(DeclarativeUI.class).absolutePath()) {\n designFilePath = \"\";\n } else {\n // This is rather nasty.. but it works well enough for now.\n String userDir = System.getProperty(\"user.dir\");\n designFilePath = userDir + \"/uitest/src/\"\n + clazz.getPackage().getName().replace('.', '/') + \"/\";\n }\n\n String designFileName = clazz.getAnnotation(DeclarativeUI.class)\n .value();\n\n return designFilePath + designFileName;\n }", "String pkg();", "private String fileName(ModuleReference mref) {\n URI uri = mref.location().orElse(null);\n if (uri != null) {\n if (uri.getScheme().equalsIgnoreCase(\"file\")) {\n Path file = Path.of(uri);\n return file.getFileName().toString();\n } else {\n return uri.toString();\n }\n } else {\n return \"<unknown>\";\n }\n }", "public static String getFileName() {\n File base = new File(\"C:/Users/Steve/IdeaProjects/MiniJavaCompiler/samples/clean/\");\n File file = new File(inputFile);\n String relativePath = base.toURI().relativize(file.toURI()).getPath();\n return relativePath;\n }", "public String getAppPathname();", "public PackageName(CodebaseElementName elementName) {\n char separator = '/';\n String path = \"\";\n switch (elementName.CodebaseElementType) {\n case File:\n // the directory location is just the String before the last / in the FQN\n // eg dir1/dir2/file.ext\n separator = '/';\n path = elementName.getFullyQualified();\n break;\n case Class:\n // the package location is after | and before the last . in the FQN\n // eg dir1/dir2/file.ext|package1.package2.class\n separator = '.';\n path = elementName.getFullyQualified().substring(elementName.getFullyQualified().indexOf('|') + 1);\n break;\n case Method:\n case Field:\n case Package:\n case Unknown:\n }\n\n if (path.indexOf(separator) > -1) {\n setFullyQualified(path\n .substring(0, path.lastIndexOf(separator)));\n\n setShortName(getFullyQualified().indexOf(separator) > -1\n ? getFullyQualified().substring(getFullyQualified().lastIndexOf(separator) + 1)\n : getFullyQualified());\n\n ParentPackage = CreateParentPackage();\n } else {\n // Class or file does not have a package, default to 'zero' package\n setFullyQualified(\"\");\n setShortName(\"\");\n }\n }", "protected final String getProjectName(final String fileName) {\n int startIndex = fileName.indexOf('/');\n int endIndex = fileName.indexOf('/', startIndex + 1);\n return fileName.substring(0, endIndex);\n }", "private static String namespace(File file) {\r\n File parent = file.getParentFile();\r\n\r\n return (parent == null) ? \"\" : (parent.getName() + \".\");\r\n }", "private String getFullJavaName(String contents, String fileName) throws AspireException{\n \n BufferedReader reader = new BufferedReader(new StringReader(contents));\n String line = null;\n String fullname = null;\n\n try{\n while ((line = reader.readLine()) != null){\n String newLine = line.trim();\n \n if (newLine.startsWith(\"package \")){\n String packageSplited[] = newLine.split(\"\\\\s+\");\n return packageSplited[1].substring(0, (packageSplited[1].length() - 1)) + \".\" + fileName;\n }\n }\n }\n catch (IOException e){\n throw new AspireException(\"SubversionJavaParser.getFullJavaName\", e, \"Could not get java full name for file: %s\", fileName);\n }\n\n return fullname;\n }", "public static String getAbsoluteName(AClass c) {\n\t\tString res = \"\";\n\t\tPackage p = c.getPackage();\n\t\tif (p != null)\n\t\t\twhile (p.parent != null) {\n\t\t\t\tres = p.name + \"_\" + res;\n\t\t\t\tp = p.parent;\n\t\t\t}\n\t\tres += c.getName();\n\t\treturn res;\n\t}", "protected String retrieveRbFile() {\r\n\t\tString className = this.getClass().getName();\r\n\t\tString packageName = this.getClass().getPackage().getName() + \".\";\r\n\t\treturn className.replaceFirst(packageName, \"\");\r\n\t}", "protected String getRelativePackageForClass(String argDAOPackage,\r\n\t\t\tString argPackageKey) {\r\n\t\treturn CodeGenUtils.getRelativePackageForClass(argDAOPackage,\r\n\t\t\t\targPackageKey);\r\n\t}", "@Override\n\tpublic String resolve(EObject from) {\n\t\tString resolvename = super.resolve(from);\n\t\tif (null == resolvename) {\n\t\t\treturn resolvename;\n\t\t}\n\t\t\n\t\tif (!resolvename.endsWith(\".sats\") && !resolvename.endsWith(\".dats\")) {\n\t\t\t// todo didn't check whether path is valid\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\t// System.out.println(\"resolve: \" + resolvename);\n\t\t\n\t\tResource resource = from.eResource();\n\t\tURI importUri = URI.createURI(resolvename);\n\t\t// is already valid uri\n\t\tif (EcoreUtil2.isValidUri(resource, importUri)) {\n\t\t\treturn resolvename;\n\t\t}\n\n\t\t// get the name of the project\n\t\tString projname = null;\n\t\tString path = from.eResource().getURI().toString();\n\t\tfinal String platform = \"platform:/resource/\";\n\t\t// final String filesys = \"file://\";\n\t\tif (path.startsWith(platform)) {\n\t\t\tprojname = path.substring(platform.length()).split(\"/\")[0];\n\t\t\t// System.out.println(\"projname is \" + projname);\n\t\t resolvename = platform + projname + \"/\" + resolvename;\n\t\t}\n\n\t\treturn resolvename;\n\n\t}", "java.lang.String getSrcPath();", "private String jarName(){\n // determine the name of this class\n String className=\"/\"+this.getClass().getName().replace('.','/')+\".class\";\n // find out where the class is on the filesystem\n String classFile=this.getClass().getResource(className).toString();\n\n if( (classFile==null) || !(classFile.startsWith(\"jar:\")) ) return null;\n \n // trim out parts and set this to be forwardslash\n classFile=classFile.substring(5,classFile.indexOf(className));\n classFile=FilenameUtil.setForwardSlash(classFile);\n\n // chop off a little bit more\n classFile=classFile.substring(4,classFile.length()-1);\n \n return FilenameUtil.URLSpacetoSpace(classFile);\n }", "private static String getFileName(String graphFileName) {\n\t\t// the folder of the workspace\n\t\tString userDir = System.getProperty(\"user.dir\");\n\t\t// the graphs are in the resources folder\n\t\tString resourcesFolder = \"\\\\src\\\\test\\\\resources\\\\\";\n\t\tuserDir = userDir.concat(resourcesFolder);\n\t\t\n\t\t// the name of the file containing the graph, eg: examplegraph.gv\n\t\t// The graph can be selected here!\n\t\tuserDir = userDir.concat(graphFileName);\n\n\t\treturn userDir;\n\t}", "public abstract String getTargetPackage();", "public abstract String getTargetPackage();", "private String translateCodebase() {\n if(codebase==null)\n return(codebase);\n if(System.getProperty(\"os.name\").startsWith(\"Win\") && codebase.startsWith(\"file://\")) {\n codebase = \"file:/\"+codebase.substring(7);\n }\n return(codebase);\n }", "private String getPackagePath(ClassDoc jvdType)\r\n {\r\n JspTagContext context = getContext();\r\n String packagePath = null;\r\n PackageDoc jvdContainingPackage = jvdType.containingPackage();\r\n if (jvdContainingPackage != null)\r\n {\r\n String packageName = jvdContainingPackage.name();\r\n if (context.isItemExternal(packageName))\r\n {\r\n packagePath = context.getExternalLinkPath(packageName);\r\n if (!context.isItemAbsolute(packageName))\r\n {\r\n String currentJspUri = context.getCurrentTagDetail()\r\n .getTagLibUri();\r\n packagePath = buildDocRoot(currentJspUri) + '/' + packagePath;\r\n }\r\n }\r\n }\r\n return packagePath;\r\n }", "public abstract String getFullPath();", "public static String filenameRelativeTo(String filename, String relativeTo) {\n\t\tFile f = new File(filename);\n\t\tif (f.isAbsolute()) {\n\t\t\treturn filename;\n\t\t}\n\t\treturn getPath(relativeTo) + File.separator + filename;\n\t}", "public static String getFullyQualifiedFileName(String FileName) {\n\t\tString systemRoot = PropertiesFile.getSystemRoot();\n\t\treturn systemRoot + FileName;\n\t}", "protected abstract String getResourcePath();", "public String getPath (Class<?> cn) {\n return PATH + cn.getSimpleName().toLowerCase() + FILE_EXTENSION;\n }", "Path getMainCatalogueFilePath();", "public static String getShortPath(Project project, VirtualFile file) {\n String shortPath = file.getPresentableUrl().replace(project.getBasePath(), \"\")\n .replace(\"/src/\", \"\")\n .replace(\"/test/\", \"\")\n .replace(\".\" + file.getExtension(), \"\");\n return shortPath;\n }", "@Override\n public String getLocalPackageName() {\n return Name.from(getApiWrapperModuleName().split(\"[^a-zA-Z0-9']+\")).toLowerCamel();\n }", "public String getNamespaceSourcePath(String ns) {\r\n \t\treturn getSourceFolderNames().iterator().next() + File.separator + \r\n \t\t\t\tns.replace('.', File.separatorChar) + \".tql\";\r\n \t}", "public abstract VFolder locatePackage(final String pkg_name);", "public URL getResourceLocation( String name );", "public String fullpath(String path, Args namespace) {\n return path;\n }", "@Override\n public String resolve(String path)\n {\n\n // strip classname\n path = path.substring(path.lastIndexOf(\"/\") + 1);\n\n return path;\n }", "String getPathName();", "String getPathName();", "@Nullable\n public static String getRelativePath(String filepath) {\n return StringUtils.replace(StringUtils.substringAfter(filepath, StringUtils.substringBefore(\n filepath, \"\\\\\" + DEF_LOC_ARTIFACT)), \"\\\\\", \"/\");\n }", "private String filePathToClassname(File file) {\n return file.getPath().replace(\".class\", \"\")\n .replace(\"/\", \".\")\n .replace(\"\\\\\", \".\");\n }", "private String cutPrefixFromFilePath(String path) {\n return path.replace(mainFolder, \"\");\n }", "public String getPathForPrefix(String prefix) {\r\n String ns = this.getNamespaceURI(prefix);\r\n if (ns != null) {\r\n for (Import imp : getDefinitions().getImports()) {\r\n if (ns.equals(imp.getNamespace())) {\r\n // TODO: Also check that imp.getType() is BPMN\r\n return imp.getLocation();\r\n }\r\n }\r\n }\r\n return \"\";\r\n }", "@Override\n public String getServiceFileName(Interface service, String packageName) {\n String[] names = packageName.split(\"::\");\n List<String> newNames = new ArrayList<>();\n for (String name : names) {\n newNames.add(packageFilePathPiece(Name.upperCamel(name)));\n }\n newNames.add(classFileNameBase(Name.upperCamel(getApiWrapperClassName(service))));\n return Joiner.on(\"/\").join(newNames.toArray());\n }", "public static String makeResourceFromURI(String uri) {\n String path = uri.substring(MagicNames.ANTLIB_PREFIX.length());\n String resource;\n if (path.startsWith(\"//\")) {\n //handle new style full paths to an antlib, in which\n //all but the forward slashes are allowed.\n resource = path.substring(\"//\".length());\n if (!resource.endsWith(\".xml\")) {\n //if we haven't already named an XML file, it gets antlib.xml\n resource += ANTLIB_XML;\n }\n } else {\n //convert from a package to a path\n resource = path.replace('.', '/') + ANTLIB_XML;\n }\n return resource;\n }", "public static String removeJavaPackageName(String className) {\n int idx = className.lastIndexOf('.');\n if (idx >= 0) {\n return className.substring(idx + 1);\n } else {\n return className;\n }\n }", "@NotNull\n public static String dropFirstPackage(@NotNull String packageName) {\n int idx = packageName.indexOf('.');\n return idx >= 0 ? packageName.substring(idx + 1) : \"\";\n }", "String getRealPath(String path);", "@Override\r\n public String getRelativeName(final FileName name) throws FileSystemException {\r\n final String path = name.getPath();\r\n\r\n // Calculate the common prefix\r\n final int basePathLen = getPath().length();\r\n final int pathLen = path.length();\r\n\r\n // Deal with root\r\n if (basePathLen == 1 && pathLen == 1) {\r\n return \".\";\r\n }\r\n if (basePathLen == 1) {\r\n return path.substring(1);\r\n }\r\n\r\n final int maxlen = Math.min(basePathLen, pathLen);\r\n int pos = 0;\r\n while (pos < maxlen && getPath().charAt(pos) == path.charAt(pos)) {\r\n pos++;\r\n }\r\n\r\n if (pos == basePathLen && pos == pathLen) {\r\n // Same names\r\n return \".\";\r\n }\r\n if (pos == basePathLen && pos < pathLen && path.charAt(pos) == SEPARATOR_CHAR) {\r\n // A descendent of the base path\r\n return path.substring(pos + 1);\r\n }\r\n\r\n // Strip the common prefix off the path\r\n final StringBuilder buffer = new StringBuilder();\r\n if (pathLen > 1 && (pos < pathLen || getPath().charAt(pos) != SEPARATOR_CHAR)) {\r\n // Not a direct ancestor, need to back up\r\n pos = getPath().lastIndexOf(SEPARATOR_CHAR, pos);\r\n buffer.append(path.substring(pos));\r\n }\r\n\r\n // Prepend a '../' for each element in the base path past the common\r\n // prefix\r\n buffer.insert(0, \"..\");\r\n pos = getPath().indexOf(SEPARATOR_CHAR, pos + 1);\r\n while (pos != -1) {\r\n buffer.insert(0, \"../\");\r\n pos = getPath().indexOf(SEPARATOR_CHAR, pos + 1);\r\n }\r\n\r\n return buffer.toString();\r\n }", "private static String getFileRoot(String file) {\r\n \treturn file.substring(0, file.indexOf('.'));\r\n }", "private String getPackageAlias(SymbolEnv env) {\n return env.enclPkg.imports.stream()\n .filter(imports -> imports.symbol.pkgID.toString().equals(ORG_NAME + ORG_SEPARATOR + PACKAGE_NAME))\n .map(importPackage -> importPackage.alias.value).findFirst().orElse(PACKAGE_NAME);\n }", "public static String relativeUrlTo(\n @SuppressWarnings(\"unused\") ModuleVersionIdentifier from,\n ModuleVersionIdentifier to\n ) {\n StringBuilder path = new StringBuilder();\n path.append(\"../../\");\n path.append(to.getName());\n path.append(\"/\");\n path.append(to.getVersion());\n path.append(\"/\");\n path.append(to.getName());\n path.append(\"-\");\n path.append(to.getVersion());\n path.append(\".module\");\n return path.toString();\n }", "private Optional<String> toPackageName(String name) {\n assert !name.endsWith(\"/\");\n int index = name.lastIndexOf(\"/\");\n if (index == -1) {\n if (name.endsWith(\".class\") && !name.equals(MODULE_INFO)) {\n String msg = name + \" found in top-level directory\"\n + \" (unnamed package not allowed in module)\";\n throw new InvalidModuleDescriptorException(msg);\n }\n return Optional.empty();\n }\n\n String pn = name.substring(0, index).replace('/', '.');\n if (Checks.isPackageName(pn)) {\n return Optional.of(pn);\n } else {\n // not a valid package name\n return Optional.empty();\n }\n }", "String getRepositoryPath(String name);", "java.lang.String getPackageName();", "private static String getFullyQualifiedImport(\n\t\t\tImportDeclaration importDeclaration) {\n\t\tNameExpr nameExpr = importDeclaration.getName();\n\n\t\tString buf = nameExpr.getName();\n\n\t\twhile (nameExpr instanceof QualifiedNameExpr) {\n\t\t\tnameExpr = ((QualifiedNameExpr) nameExpr).getQualifier();\n\t\t\tbuf = nameExpr.getName() + \".\" + buf;\n\t\t}\n\n\t\treturn buf;\n\t}", "private static String getEntryName(File source, File file) throws IOException {\n\t\tint index = source.getAbsolutePath().length() + 1;\n\t\tString path = file.getCanonicalPath();\n\n\t\treturn path.substring(index);\n\t}", "@Override\n public void uri(String s) {\n\n int startOfFile = s.lastIndexOf(DIRECTORY_SEPARATOR);\n if (startOfFile == -1) {\n //not in package\n testedFeature.setFeatureMetadata(new FeatureMetadata(\"\", s, glue));\n } else {\n String module = s.substring(0, startOfFile);\n String filename = s.substring(startOfFile + 1, s.length());\n testedFeature.setFeatureMetadata(new FeatureMetadata(module, filename, glue));\n }\n }", "@Override\r\n public String getProjectPath() {\r\n \treturn String.format(\":%s\", getArtifactId());\r\n }", "@NotNull\n public static String getFirstPackage(@NotNull String packageName) {\n int idx = packageName.indexOf('.');\n return idx >= 0 ? packageName.substring(0, idx) : packageName;\n }", "private String beautiplyFileNameReferer() {\r\n\r\n\t\tif (checkBeautiplyImagesExixtence()) {\r\n\t\t\ttry {\r\n\t\t\t\tString fname = beautiplyFileNameGenerator();\r\n\t\t\t\tFileInputStream fis = context.openFileInput(fname);\r\n\t\t\t\treturn fname;\r\n\t\t\t} catch (FileNotFoundException e4) {\r\n\t\t\t\treturn beautiplyFileNameReferer();\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\r\n\t}", "private String getPackageAlias(SymbolEnv env, BLangNode node) {\n String compUnitName = node.pos.getSource().getCompilationUnitName();\n for (BLangImportPackage importStmt : env.enclPkg.imports) {\n if (!ORG_NAME.equals(importStmt.symbol.pkgID.orgName.value) ||\n !PACKAGE_NAME.equals(importStmt.symbol.pkgID.name.value)) {\n continue;\n }\n\n if (importStmt.compUnit.value.equals(compUnitName)) {\n return importStmt.alias.value;\n }\n\n }\n\n return PACKAGE_NAME;\n }", "public String getModuleName() {\n if (repository == null) {\n return baseName;\n } else {\n StringBuffer b = new StringBuffer();\n repository.getRelativePath(b);\n b.append(baseName);\n return b.toString();\n }\n }", "public static String resolveRelativePath(String relPath, String absPath) {\r\n\t\t// if relative path is really absolute, then ignore absPath (eInnovation\r\n\t\t// change)\r\n\t\tif (relPath.startsWith(\"/\")) {\r\n\t\t\tabsPath = \"\";\r\n\t\t}\r\n\r\n\t\tString newAbsPath = absPath;\r\n\t\tString newRelPath = relPath;\r\n\t\tif (relPath.startsWith(\"$\")) {\r\n\t\t\treturn relPath;\r\n\t\t} else if (absPath.endsWith(\"/\")) {\r\n\t\t\tnewAbsPath = absPath.substring(0, absPath.length() - 1);\r\n\t\t} else {\r\n\t\t\t// absPath ends with a filename, remove it (eInnovation change)\r\n\t\t\tint lastSlashIndex = absPath.lastIndexOf('/');\r\n\t\t\tif (lastSlashIndex >= 0) {\r\n\t\t\t\tnewAbsPath = absPath.substring(0, lastSlashIndex);\r\n\t\t\t} else {\r\n\t\t\t\tnewAbsPath = \"\";\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tint relPos = newRelPath.indexOf(\"../\");\r\n\t\twhile (relPos > -1) {\r\n\t\t\tnewRelPath = newRelPath.substring(relPos + 3);\r\n\t\t\tint lastSlashInAbsPath = newAbsPath.lastIndexOf(\"/\");\r\n\t\t\tif (lastSlashInAbsPath >= 0) {\r\n\t\t\t\tnewAbsPath = newAbsPath.substring(0,\r\n\t\t\t\t\t\tnewAbsPath.lastIndexOf(\"/\"));\r\n\t\t\t} else {\r\n\t\t\t\t// eInnovation change: fix potential exception\r\n\t\t\t\tnewAbsPath = \"\";\r\n\t\t\t}\r\n\t\t\trelPos = newRelPath.indexOf(\"../\");\r\n\t\t}\r\n\t\tString returnedPath;\r\n\t\tif (newRelPath.startsWith(\"/\")) {\r\n\t\t\treturnedPath = newAbsPath + newRelPath;\r\n\t\t} else {\r\n\t\t\treturnedPath = newAbsPath + \"/\" + newRelPath;\r\n\t\t}\r\n\r\n\t\t// remove any \".\" references to current directory (eInnovation change)\r\n\t\t// For example:\r\n\t\t// \"./junk\" becomes \"junk\"\r\n\t\t// \"/./junk\" becomes \"/junk\"\r\n\t\t// \"junk/.\" becomes \"junk\"\r\n\t\twhile (returnedPath.endsWith(\"/.\")) {\r\n\t\t\treturnedPath = returnedPath.substring(0, returnedPath.length() - 2);\r\n\t\t}\r\n\t\tdo {\r\n\t\t\tint dotSlashIndex = returnedPath.lastIndexOf(\"./\");\r\n\t\t\tif (dotSlashIndex < 0) {\r\n\t\t\t\tbreak;\r\n\t\t\t} else if (dotSlashIndex == 0\r\n\t\t\t\t\t|| returnedPath.charAt(dotSlashIndex - 1) != '.') {\r\n\t\t\t\tString firstSubstring;\r\n\t\t\t\tif (dotSlashIndex > 0) {\r\n\t\t\t\t\tfirstSubstring = returnedPath.substring(0, dotSlashIndex);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tfirstSubstring = \"\";\r\n\t\t\t\t}\r\n\t\t\t\tString secondSubstring;\r\n\t\t\t\tif (dotSlashIndex + 2 < returnedPath.length()) {\r\n\t\t\t\t\tsecondSubstring = returnedPath.substring(dotSlashIndex + 2,\r\n\t\t\t\t\t\t\treturnedPath.length());\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsecondSubstring = \"\";\r\n\t\t\t\t}\r\n\t\t\t\treturnedPath = firstSubstring + secondSubstring;\r\n\t\t\t}\r\n\t\t} while (true);\r\n\r\n\t\treturn returnedPath;\r\n\t}", "String getExternalPath(String path);", "@Override\n\tpublic String getName() {\n\t\treturn new File(relativePath).getName();\n\t}", "protected String buildResourceName(String name) {\n // Strip the starting slash to prevent empty directories in CloudFiles as well as required references by // in the\n if (name.startsWith(\"/\")) {\n name = name.substring(1);\n }\n\n String baseDirectory = googleStorageConfigurationService.lookupGoogleStorageConfiguration().getContainerSubdirectory();\n if (StringUtils.isNotEmpty(baseDirectory)) {\n if (baseDirectory.startsWith(\"/\")) {\n baseDirectory = baseDirectory.substring(1);\n }\n } else {\n // ensure subDirectory is non-null\n baseDirectory = \"\";\n }\n\n String siteSpecificResourceName = getSiteSpecificResourceName(name);\n return FilenameUtils.concat(baseDirectory, siteSpecificResourceName);\n }", "private String filenameHelper(String withFolder) {\n\t\tint pos = -1;\n\t\tfor (int k = 0; k < withFolder.length() - 1; k++) {\n\t\t\tif (withFolder.charAt(k) == '/') {\n\t\t\t\tpos = k;\n\t\t\t}\n\t\t}\n\t\tif (pos < 0)\n\t\t\treturn withFolder;\n\t\telse\n\t\t\treturn withFolder.substring(pos + 1);\n\t}", "public String getProjectRelativeFileName(URI resourceURI, IFileSystemAccess fsa) {\r\n\t\t// @see http://www.eclipse.org/forums/index.php/m/1230878/#msg_1230878\r\n\t\tif (!resourceURI.isPlatformResource())\r\n\t\t\tthrow new IllegalArgumentException(\"Not a Platform Resource URI: \" + resourceURI.toString());\r\n\t\t// This is bit of a hack, but it works...\r\n\t\tString sURI = resourceURI.toPlatformString(true);\r\n\t\tString withoutProject = sURI.substring(sURI.indexOf('/', 1) + 1);\r\n\t\treturn withoutProject;\r\n\t\t// Something like this may be a better use of the API, but is much more difficult to unit test in EFactoryJSONGeneratorTest, so not pursued: \r\n\t\t// URI projectRootURI = ((IFileSystemAccessExtension2)fsa).getURI(\".\");\r\n\t\t// URI resourceWithoutProjectURI = resourceURI.deresolve(projectRootURI);\r\n\t\t// return resourceWithoutProjectURI.toString();\r\n\t}", "public String formatFilePath(){\n StringBuilder returnResult = new StringBuilder();\n String temp;\n temp = StringUtil.removeHttpPrefix(uri);\n returnResult.append(DEFAULT_DIRECTORY).append(\"\\\\\").append(temp);\n return returnResult.toString();\n }", "public String geraPath(String fileName) {\n\t\treturn env.get(\"path.anexo\")+\"/\"+fileName;\n\t}", "private Optional<String> toPackageName(Path file, String separator) {\n assert file.getRoot() == null;\n\n Path parent = file.getParent();\n if (parent == null) {\n String name = file.toString();\n if (name.endsWith(\".class\") && !name.equals(MODULE_INFO)) {\n String msg = name + \" found in top-level directory\"\n + \" (unnamed package not allowed in module)\";\n throw new InvalidModuleDescriptorException(msg);\n }\n return Optional.empty();\n }\n\n String pn = parent.toString().replace(separator, \".\");\n if (Checks.isPackageName(pn)) {\n return Optional.of(pn);\n } else {\n // not a valid package name\n return Optional.empty();\n }\n }", "abstract File getResourceDirectory();", "public String getXsdFileName();", "private String buildDeployFileName(final String originalFileName) {\n String tempDir = System.getProperty(\"java.io.tmpdir\");\n StringBuilder builder = new StringBuilder();\n builder.append(tempDir);\n builder.append(\"/\");\n builder.append(originalFileName);\n return builder.toString();\n }", "FsPath baseDir();", "abstract protected String getWrapperFileNameBase();", "public String getNsPrefix(String filePath) {\r\n String ns = null;\r\n String prefix = \"\";\r\n for (Import imp : getDefinitions().getImports()) {\r\n if (filePath.equals(imp.getLocation())) {\r\n // TODO: Also check that imp.getType() is BPMN\r\n ns = imp.getNamespace();\r\n break;\r\n }\r\n }\r\n if (ns != null) {\r\n prefix = getPrefixDuringSave(ns);\r\n }\r\n return prefix;\r\n }", "public String getResourcePath();", "private static String getFQClassName(final String root, final String path) {\r\n\t\t//Remove root from front of path and \".class\" from end of path\r\n\t\tString trimmed = path.substring(path.indexOf(root) + root.length(), path.indexOf(\".class\"));\r\n\t\t\r\n\t\t//Replace backslashes with periods\r\n\t\treturn trimmed.replaceAll(Matcher.quoteReplacement(\"\\\\\"), \".\");\r\n\t}", "private static File resolveMetaFile(String path) {\n return new File(StringUtils.substringBefore(path, DEF_LOC_ARTIFACT) + DEF_REL_META + File.separator + \"project.tms.json\");\n }", "String getPackageName();", "private static URL classToUrl(Class c) {\n final String fullName = c.getName();\n final String pkg = c.getPackage().getName();\n final String className = fullName.substring(pkg.length() + 1, fullName.length()).replace('$', '.');\n return c.getResource(className + \".sql.stg\");\n }", "public String getAbsoluteName() {\n\t\tint index = this.getName().indexOf(\".\");\n\t\tif (index == -1)\n\t\t\treturn this.getName();\n\t\telse\n\t\t\treturn this.getName().substring(0, index);\n\t}", "public PackageName(String packageName) {\n setFullyQualified(packageName);\n\n if (packageName != null && !packageName.trim().isEmpty()) {\n // root\n setShortName(\"\");\n } else {\n assert packageName != null;\n if (packageName.indexOf('.') == -1 && packageName.indexOf('/') == -1) {\n // top\n setShortName(packageName);\n } else if (packageName.indexOf('.') > -1) {\n // a compiler FQN\n setShortName(packageName.substring(packageName.lastIndexOf('.') + 1));\n } else {\n // a path FQN\n setShortName(packageName.substring(packageName.lastIndexOf('/') + 1));\n }\n }\n\n ParentPackage = CreateParentPackage();\n }" ]
[ "0.6858932", "0.6848906", "0.66871417", "0.6594786", "0.63313144", "0.6329854", "0.63196564", "0.62243235", "0.6174847", "0.6120408", "0.611607", "0.6110693", "0.6071775", "0.6054257", "0.6024013", "0.5960982", "0.5951802", "0.5941356", "0.5920623", "0.5902262", "0.58896095", "0.5858111", "0.58421683", "0.5841457", "0.5821549", "0.57992", "0.57920825", "0.5761088", "0.5751563", "0.5750865", "0.57368934", "0.56979984", "0.56969", "0.56893575", "0.5682581", "0.56808174", "0.56808174", "0.5660408", "0.5612766", "0.560875", "0.55709255", "0.5566666", "0.55616707", "0.5543896", "0.55358803", "0.552838", "0.55130446", "0.5512354", "0.5511724", "0.54990125", "0.549161", "0.54890317", "0.5472155", "0.5472155", "0.546764", "0.5461545", "0.5457382", "0.5451966", "0.54514104", "0.5440974", "0.54223686", "0.5416746", "0.5415202", "0.5406818", "0.53996956", "0.5398373", "0.5375996", "0.5374261", "0.5369139", "0.53678524", "0.5366378", "0.53597707", "0.5348312", "0.53472835", "0.53222114", "0.5321498", "0.53018045", "0.5297823", "0.5297387", "0.529633", "0.52888083", "0.5287154", "0.5284278", "0.5278888", "0.527501", "0.5273124", "0.52682096", "0.5267164", "0.52667576", "0.5257224", "0.52487904", "0.5246849", "0.5245814", "0.52256876", "0.5225471", "0.52203304", "0.5211455", "0.5203258", "0.51936394", "0.519144" ]
0.6428731
4
Returns a map with the total sales of each pricelist used in an order
public Map<Pricelist, Double> getSalesPrPricelist() { Map<Pricelist, Double> sales = new HashMap<>(); for (Order o : orders) { Double currentTotal = sales.get(o.getPricelist()); if (currentTotal == null) { currentTotal = 0.0; } currentTotal += o.totalPrice(); sales.put(o.getPricelist(), currentTotal); } return sales; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Map<String, Double> getSalesPrBeer() {\n\t\tMap<String, Double> sales = new HashMap<>();\n\n\t\tfor (Order o : orders) {\n\t\t\tfor (ProductOrder po : o.getAllProducts()) {\n\t\t\t\tProduct p = po.getProduct();\n\t\t\t\tString category = po.getProduct().getCategory();\n\n\t\t\t\tif (category.equals(\"fadøl\") || category.equals(\"flaske\")\n\t\t\t\t\t\t|| category.equals(\"fustage\")) {\n\n\t\t\t\t\tString name = p.getName().split(\",\")[0].trim();\n\t\t\t\t\tDouble currentTotal = sales.get(name);\n\n\t\t\t\t\tif (currentTotal == null) {\n\t\t\t\t\t\tcurrentTotal = 0.0;\n\t\t\t\t\t}\n\n\t\t\t\t\tcurrentTotal += po.price();\n\n\t\t\t\t\tsales.put(name, currentTotal);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn sales;\n\t}", "public HashMap<String, ArrayList[]> determineSale() {\n HashMap<String, ArrayList[]> ordersMap = new HashMap<>();\n ordersMap.put(\"ms\", new ArrayList<Integer>[2]);\n ordersMap.put(\"gs\", new ArrayList<Integer>[2]);\n ordersMap.put(\"xlf\", new ArrayList<Integer>[2]);\n ordersMap.put(\"wfc\", new ArrayList<Integer>[2]);\n ordersMap.put(\"bond\", new ArrayList<Integer>[2]);\n\n Integer temp;\n int ind = 0;\n ArrayList<Integer> prices = ordersMap.get(\"bond\")[0];\n ArrayList<Integer> quantities = ordersMap.get(\"bond\")[1];\n for (int i = 0; i < 3; i++) {\n temp = bondsBuy.poll();\n if (prices.get(ind).equals(temp)) {\n quantities.set(ind, quantities.get(ind) + 1);\n } else {\n prices.add(temp);\n quantities.add(1);\n ind++;\n }\n }\n ind = 0;\n prices = ordersMap.get(\"gs\")[0];\n quantities = ordersMap.get(\"gs\")[1];\n for (int i = 0; i < 2; i++) {\n temp = bondsBuy.poll();\n if (prices.get(ind).equals(temp)) {\n quantities.set(ind, quantities.get(ind) + 1);\n } else {\n prices.add(temp);\n quantities.add(1);\n ind++;\n }\n } \n ind = 0;\n prices = ordersMap.get(\"ms\")[0];\n quantities = ordersMap.get(\"ms\")[1]; \n for (int i = 0; i < 3; i++) {\n temp = bondsBuy.poll();\n if (prices.get(ind).equals(temp)) {\n quantities.set(ind, quantities.get(ind) + 1);\n } else {\n prices.add(temp);\n quantities.add(1);\n ind++;\n }\n }\n ind = 0;\n prices = ordersMap.get(\"wfc\")[0];\n quantities = ordersMap.get(\"wfc\")[1]; \n for (int i = 0; i < 2; i++) {\n temp = bondsBuy.poll();\n if (prices.get(ind).equals(temp)) {\n quantities.set(ind, quantities.get(ind) + 1);;\n } else {\n prices.add(temp);\n quantities.add(1);\n ind++;\n }\n }\n ind = 0;\n prices = ordersMap.get(\"xlf\")[0];\n quantities = ordersMap.get(\"xlf\")[1]; \n for (int i = 0; i < 10; i++) {\n temp = bondsBuy.poll();\n if (prices.get(ind).equals(temp)) {\n quantities.set(ind, quantities.get(ind) + 1);\n } else {\n prices.add(temp);\n quantities.add(1);\n ind++;\n }\n }\n return ordersMap;\n }", "public Map<String, Double> getSalesPrCategory() {\n\t\tMap<String, Double> sales = new HashMap<>();\n\n\t\tfor (Order o : orders) {\n\t\t\tfor (ProductOrder po : o.getProductOrders()) {\n\t\t\t\tString category = po.getProduct().getCategory();\n\t\t\t\tDouble currentTotal = sales.get(category);\n\n\t\t\t\tif (currentTotal == null) {\n\t\t\t\t\tcurrentTotal = 0.0;\n\t\t\t\t}\n\n\t\t\t\tcurrentTotal += po.price();\n\n\t\t\t\tsales.put(category, currentTotal);\n\t\t\t}\n\t\t}\n\n\t\treturn sales;\n\t}", "double calculateTotalPrice(Map<String, Item> itemMap, List<String> itemList);", "public Map<User, Double> getSalesPrUser() {\n\t\tMap<User, Double> sales = new HashMap<>();\n\n\t\tfor (Order o : orders) {\n\t\t\tDouble currentTotal = sales.get(o.getUser());\n\n\t\t\tif (currentTotal == null) {\n\t\t\t\tcurrentTotal = 0.0;\n\t\t\t}\n\n\t\t\tcurrentTotal += o.totalPrice();\n\n\t\t\tsales.put(o.getUser(), currentTotal);\n\t\t}\n\n\t\treturn sales;\n\t}", "private double calculateTotal(){\r\n double total = 0;\r\n for(int i = 0; i < orderList.size(); i++){\r\n total += orderList.getOrder(i).calculatePrice();\r\n }\r\n return total;\r\n }", "public double calculate(Map<String, Order> orders) {\n\n\t\t// This is the fix to avoid null pointer exception if Cart has null\n\t\t// orders\n\t\tif (orders == null) {\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"Orders are invalid. Input is null\");\n\t\t}\n\t\t// GrandTotal is initialized outside the loop to have the grand total\n\t\tdouble grandTotal = 0;\n\n\t\t// Iterate through the orders\n\t\tfor (Map.Entry<String, Order> entry : orders.entrySet()) {\n\t\t\tSystem.out.println(\"*******\" + entry.getKey() + \"*******\");\n\t\t\tOrder order = entry.getValue();\n\t\t\tdouble totalTax = 0;\n\t\t\tdouble total = 0;\n\n\t\t\t// Iterate through the items in the order\n\t\t\t/*\n\t\t\t * In lists indexes starts with 0 and ends with its size-1. We\n\t\t\t * should not include indexes which are not exist,it will leads to\n\t\t\t * ArrayIndexOutofBoundException. Hence logical operator = is\n\t\t\t * removed\n\t\t\t */\n\t\t\tfor (int i = 0; i < order.size(); i++) {\n\n\t\t\t\t// Calculate the taxes\n\t\t\t\tdouble tax = 0;\n\n\t\t\t\tItem item = order.get(i).getItem();\n\n\t\t\t\ttax = calculateTax(item);\n\n\t\t\t\t// Calculate the total price\n\t\t\t\tdouble totalPrice = item.getPrice() + tax;\n\n\t\t\t\t// Print out the item's total price\n\t\t\t\t// Wrong way of rounding off here it is fixed with the help of\n\t\t\t\t// BigDecimal\n\t\t\t\tSystem.out.println(item.getDescription() + \": \"\n\t\t\t\t\t\t+ roundToTwoDecimal(totalPrice));\n\n\t\t\t\t// Keep a running total\n\t\t\t\ttotalTax += tax;\n\t\t\t\ttotal += item.getPrice();\n\t\t\t}\n\n\t\t\t// Print out the total taxes\n\t\t\t// Wrong way of rounding off here it is fixed with the help of\n\t\t\t// BigDecimal\n\t\t\tSystem.out\n\t\t\t\t\t.println(\"Sales Tax: \" + roundToTwoDecimal(totalTax) /*\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * Math.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * floor\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * (\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * totalTax\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * )\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t */);\n\n\t\t\t// Fix to Total. Total should not include Tax\n\t\t\t// total = total + totalTax;\n\n\t\t\t// Print out the total amount\n\t\t\t// Wrong way of rounding off here it is fixed with the help of\n\t\t\t// BigDecimal\n\t\t\tSystem.out.println(\"Total: \" + roundToTwoDecimal(total) /*\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * Math.floor\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * (total *\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * 100) /\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * 100\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t */);\n\t\t\tgrandTotal += total;\n\t\t}\n\n\t\t// grandtotal = Math.floor(grandtotal * 100) / 100;\n\t\t// Bug Fix: 10 (Wrong way of rounding. To meet the requirements, we\n\t\t// should be using BigDecimal.)\n\t\tSystem.out.println(\"Sum of orders: \" + roundToTwoDecimal(grandTotal));\n\n\t\treturn grandTotal;\n\t}", "public double getTotalSales() {\n\t\tdouble total = 0;\n\n\t\tfor (Order o : orders) {\n\t\t\ttotal += o.totalPrice();\n\t\t}\n\n\t\treturn total;\n\t}", "private double calculateTotal(){\r\n double total = 0;\r\n\r\n for(Restaurant restaurant: restaurantMap.getRestaurantMap().values()){\r\n total += restaurant.getRevenue();\r\n }\r\n\r\n return total;\r\n }", "Map<Item, List<Double>> calculateDiscountPriceList(Map<String, Item> itemMap, List<String> itemList);", "public float calculateTotalPrice(ArrayList<Food> totalOrder) {\n totalPrice = 0.0f;\n for (Food itemOfFood : totalOrder) {\n totalPrice = totalPrice + itemOfFood.getPrice();\n }\n return totalPrice;\n }", "public Map<String, Object> countOrdersByFood() {\n Map<String, Object> foodCount = new HashMap<String, Object>();\n for(Map.Entry<String, List<Order>> order : this.orders.entrySet()){\n foodCount.put(order.getKey(),order.getValue().size());\n }\n return foodCount;\n }", "public void calculateOrderTotals() {\n NumberFormat formatter = NumberFormat.getCurrencyInstance();\n\n //order number increases for each order\n orderNo++;\n System.out.println(\"- \" + \"OrderNo: \" + orderNo + \" -\");\n\n //cycle through the items in the order and add to the totals\n for(Item i : items) {\n\n incrementOrderTotal(i.getNumOfItems() * i.getPriceWithTax());\n incrementOrderSalesTax(i.getNumOfItems() * i.getTaxOnItem());\n\n System.out.println(i.getDescrip() + formatter.format(i.getPriceWithTax()));\n }\n\n //print out totals\n System.out.println(\"Sales taxes: \" + formatter.format(Math.round(getOrderSalesTax() * 100.0) / 100.0));\n System.out.println(\"Order total: \" + formatter.format(Math.round(getOrderTotal() * 100.0) / 100.0));\n System.out.println(\"\\n\");\n }", "@Transient\n public Double getTotalOrderPrice() {\n double sum = 0;\n for (OrderItem oi : getOrderItems()) {\n sum += oi.getTotalPrice();\n }\n return sum;\n }", "@Override\r\n\tpublic List<SalesAnalysis> getSalesAnalysis(Date fromDate, Date toDate) {\r\n\t\t\r\n\t\tList<SalesAnalysis> salesAnalysisDetails=new ArrayList<>();\r\n\t\tSalesAnalysis salesAnalysis=new SalesAnalysis();\r\n\t\t\r\n\t\t//get orders placed in the given period\r\n\t\tList<Order> orderDetails=orderService.getOrdersBetween(fromDate, toDate);\r\n\t\t\r\n\t\tHashMap<String, Double> purchasePriceDetails=new HashMap<>();\r\n\t\tHashMap<String, Double> salesPriceDetails=new HashMap<>();\r\n\t\tint qty=0;\r\n\t\tdouble salesPrice=0;\r\n\t\tdouble purchasePrice=0;\r\n\t\t\r\n\t\t//get total revenue for period\r\n\t\tdouble totalRevenue=getTotalRevenueBetween(fromDate, toDate);\r\n\t\t\r\n\t\t//get best seller details for the products, category-wise(from PRODUCT table)\r\n\t\tList<Object[]> bestSellerDetails=productService.getBestSellerId();\r\n\t\tSystem.out.println(bestSellerDetails);\r\n\t\t\r\n\t\t\r\n\t\t//for each product category, check sales details\r\n\t\tfor(Object[] object:bestSellerDetails)\t{\r\n\t\t\tString productCategory=(String)object[0];\r\n\t\t\tsalesPrice=0;\r\n\t\t\tpurchasePrice=0;\r\n\t\t\tpurchasePriceDetails.put(productCategory, purchasePrice);\r\n\t\t\tsalesPriceDetails.put(productCategory, salesPrice);\r\n\t\t\t\r\n\t\t\t//for each order, check product category and add details to maps\r\n\t\t\tfor(Order order:orderDetails)\t{\r\n\t\t\t\t\r\n\t\t\t\t//get products in this order\r\n\t\t\t\tList<CartProduct> products=order.getCart().getCartProducts();\r\n\t\t\t\t\r\n\t\t\t\t//getting purchase price details for each product ordered\r\n\t\t\t\tfor(CartProduct product:products)\t{\r\n\t\t\t\t\tif(product.getProduct().getProductCategory().equals(productCategory))\t{\r\n\t\t\t\t\t\tpurchasePrice=purchasePriceDetails.get(productCategory)+\r\n\t\t\t\t\t\t\t\t(product.getProduct().getQuantity()*product.getProduct().getProductPrice());\r\n\t\t\t\t\t\tpurchasePriceDetails.put(productCategory, purchasePrice);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//getting sales price details for each product ordered\r\n\t\t\t\tfor(CartProduct product:products)\t{\r\n\t\t\t\t\tif(product.getProduct().getProductCategory().equals(productCategory))\t{\r\n\t\t\t\t\t\tqty=product.getQuantity();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tsalesPrice=salesPriceDetails.get(productCategory)+\r\n\t\t\t\t\t\t\t\t(qty*(100-product.getProduct().getDiscount())*product.getProduct().getProductPrice())/100;\r\n\t\t\t\t\t\tsalesPriceDetails.put(productCategory, salesPrice);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t//make SalesAnalysis object using obtained data\r\n\t\t\tsalesAnalysis.setProductCategory(productCategory);\r\n\t\t\tsalesAnalysis.setMerchant(merchantService.getMerchantName((Integer)object[1]));\r\n\t\t\tsalesAnalysis.setProductQuantity(purchasePriceDetails.get(productCategory));\r\n\t\t\tsalesAnalysis.setProductSales(salesPriceDetails.get(productCategory));\r\n\t\t\tsalesAnalysis.setSalesPercent((salesAnalysis.getProductSales()*100)/salesAnalysis.getProductQuantity());\r\n\t\t\tsalesAnalysis.setTotalRevenue(totalRevenue);\r\n\t\t\t\r\n\t\t\t//make a list of sales analysis performed\r\n\t\t\tsalesAnalysisDetails.add(salesAnalysis);\r\n\t\t}\r\n\t\t\r\n\t\treturn salesAnalysisDetails;\r\n\t}", "public static void main(String[] args) {\n\t\tList<Map<String, Object>> dataList = new ArrayList<>();\n\t\tMap<String, Object> apple = new TreeMap<>();\n\t\tapple.put(\"Items\", \"Apple\");\n\t\tapple.put(\"Price\", 20.00);\n\t\tapple.put(\"Quantity\", 10);\n\n\t\tdataList.add(apple);\n\n\t\tMap<String, Object> orange = new TreeMap<String, Object>();\n\t\torange.put(\"Items\", \"Orange\");\n\t\torange.put(\"Price\", 21.99);\n\t\torange.put(\"Quantity\", 10);\n\n\t\tdataList.add(orange);\n\n\t\tSet<String> appleEntry = apple.keySet();\n\n\t\tIterator<String> appleIt = appleEntry.iterator();\n\n\t\tObject t = 0;\n\t\twhile (appleIt.hasNext()) {\n\t\t\tString key = appleIt.next();\n\t\t\tObject value = apple.get(key);\n\n\t\t\tdouble p = (double) apple.get(\"Price\");\n\t\t\tInteger q = (Integer) apple.get(\"Quantity\");\n\t\t\tt = p * q;\n\n\t\t\tSystem.out.print(key + \": \" + value + \" \");\n\t\t}\n\t\tSystem.out.println(\"SubTotal: \" + t);\n\n\t\tSet<String> orangeEntry = orange.keySet();\n\n\t\tObject t1 = 0;\n\t\tfor (String forLoop : orangeEntry) {\n\t\t\tString key = forLoop;\n\t\t\tObject value = orange.get(forLoop);\n\n\t\t\tDouble p = (Double) orange.get(\"Price\");\n\t\t\tInteger q = (Integer) orange.get(\"Quantity\");\n\t\t\tt1 = p * q;\n\n\t\t\tSystem.out.print(key + \": \" + value + \" \");\n\t\t}\n\t\tSystem.out.println(\"SubTotal: \" + t1);\n\n\t\tdouble appleTotal = (double) t;\n\t\tdouble orangeTotal = (double) t1;\n\t\tdouble totalPurchase = appleTotal + orangeTotal;\n\n\t\tSystem.out.println(\"Your Purchase is: \" + totalPurchase);\n\n\t\tSystem.out.println(\"- - - A N O T H E R - W A Y - - -\");\n\n\t\tList<Map<String, Object>> dataList1 = new ArrayList<Map<String, Object>>();\n\n\t\tMap<String, Object> appleMap = new HashMap<String, Object>();\n\t\tappleMap.put(\"Items\", \"Apple\");\n\t\tappleMap.put(\"Price\", 20.00);\n\t\tappleMap.put(\"Quantity\", 10);\n\t\tdataList1.add(appleMap);\n\n\t\tMap<String, Object> orangeMap = new HashMap<String, Object>();\n\t\torangeMap.put(\"Items\", \"Orange\");\n\t\torangeMap.put(\"Price\", 21.99);\n\t\torangeMap.put(\"Quantity\", 10);\n\n\t\tdataList1.add(orangeMap);\n\n\t\t// find purchase total Price.\n\t\tdouble purchaseTotalPrice = 0;\n\n\t\tfor (Map<String, Object> map : dataList1) {\n\t\t\tString items = map.get(\"Items\").toString();\n\t\t\tdouble price = Double.parseDouble(map.get(\"Price\").toString());\n\t\t\tdouble quantity = Double.parseDouble(map.get(\"Quantity\").toString());\n\t\t\tdouble lineTotal = price * quantity;\n\n\t\t\tSystem.out.println(\n\t\t\t\t\t\"Items: \" + items + \" Price: \" + price + \" Quantity: \" + quantity + \" SubTotal: \" + lineTotal);\n\t\t\tpurchaseTotalPrice += lineTotal;\n\t\t}\n\t\tSystem.out.println(\"Your Purchase total : \" + purchaseTotalPrice);\n\t}", "@Transactional\n @Override\n public StringBuffer addSalesOrder(String customerID, String cartIDs, String addressID, String paymentType,\n String orderAmount, String scoreAll, String memo, String itemCount, String itemID,\n String supplierID, String itemType, String orderType, String objID, String invoiceType,\n String invoiceTitle, String generateType, String orderID, String allFreight, String supplierFreightStr) throws Exception {\n \t\n String ids[] = cartIDs.split(\",\");\n List<ShoppingCartVO> shopCartList = new ArrayList<ShoppingCartVO>();\n for (String id : ids) {\n ShoppingCartVO shoppingCartVO = shoppingCartDAO.findShoppingCartByID(Long.valueOf(id));\n shopCartList.add(shoppingCartVO);\n }\n Map<String,List<ShoppingCartVO>> maps = new HashMap<String,List<ShoppingCartVO>>();\n for(ShoppingCartVO s:shopCartList){\n \tList<ShoppingCartVO> temp = new ArrayList<ShoppingCartVO>();\n \t String sid1= s.getSupplierID();\n String siname1= s.getSupplierName();\n for(ShoppingCartVO shoppingCartVO1 : shopCartList){\n \t//当前店铺对应的购物车集合\n \tString sid2 = shoppingCartVO1.getSupplierID();\n \tif(sid1.equals(sid2)){\n \t\ttemp.add(shoppingCartVO1);\n \t}\n }\n maps.put(sid1+\"_\"+siname1, temp);\n }\n \n //根据物流模板计算运费\n Map<String, Double> supplierFreightMap = new HashMap<String, Double>();\n String[] supplierFreightAll = supplierFreightStr.split(\"\\\\|\");\n for (int i = 0; i < supplierFreightAll.length; i++) {\n \tString[] supplierFreight = supplierFreightAll[i].split(\":\");\n \tsupplierFreightMap.put(supplierFreight[0], Double.parseDouble(supplierFreight[1]));\n\t\t} \n \n StringBuffer ordersList = new StringBuffer();\n// cachedClient.delete(customerID + orderID);\n Set<String> set = maps.keySet();\n\t\tfor(String string : set){\n\t\t List<ShoppingCartVO> temp1= maps.get(string);\n\t\t double supplierFreight = supplierFreightMap.get(string);\n\t\t Double amount = 0d;\n\t\t Integer count = 0;\n Integer score = 0;\n Double weight = 0d;\n\t\t for (ShoppingCartVO shoppingCartVO : temp1) {\n ItemVO itemVO = itemDAO.findItemById(shoppingCartVO.getItemID());\n count += shoppingCartVO.getItemCount();\n // weight += itemVO.getWeight();\n if (shoppingCartVO.getType() == 1) {\n amount += shoppingCartVO.getItemCount() * shoppingCartVO.getSalesPrice();\n } else if (shoppingCartVO.getType() == 2) {\n score += shoppingCartVO.getItemCount() * itemVO.getScore();\n } else if (shoppingCartVO.getType() == 3) {\n amount += shoppingCartVO.getItemCount() * itemVO.getScorePrice();\n score += shoppingCartVO.getItemCount() * shoppingCartVO.getSalesScore();\n }\n }\n\t\t //SalesOrderVO tempOrder = new SalesOrderVO();\n\t /*if (tempOrder == null) {\n\t throw new Exception(\"参数错误\");\n\t }\n\t if (\"012\".indexOf(invoiceType) == -1) {\n\t throw new Exception(\"参数错误\");\n\t }*/\n\t SalesOrderDTO salesOrderDTO = new SalesOrderDTO();\n\t salesOrderDTO.setMainID(randomNumeric());\n\t salesOrderDTO.setCustomerID(customerID);\n\t salesOrderDTO.setPaymentType(Integer.valueOf(paymentType));\n\t salesOrderDTO.setPaymentStatus(0);\n\n\t // salesOrderDTO.setExpressFee(tempOrder.getExpressFee());//运费\n\t salesOrderDTO.setProductAmount(amount);\n\t salesOrderDTO.setTotalAmount(amount + supplierFreight);\n\t salesOrderDTO.setPayableAmount(amount);\n\n\t salesOrderDTO.setOrderType(Integer.valueOf(orderType));\n\t salesOrderDTO.setMemo(memo);\n\t salesOrderDTO.setInvoiceType(Integer.parseInt(invoiceType));\n\t salesOrderDTO.setInvoiceTitle(invoiceTitle);\n\t salesOrderDTO.setSupplierID(string);\n\t salesOrderDTO.setExpressFee(supplierFreight);\n\t salesOrderDAO.addSalesOrder(salesOrderDTO);\n\t ordersList.append(salesOrderDTO.getMainID()+\",\");\n\t if(!paymentType.equals(\"3\")){\n\t \t CustomerDeliveryAddressVO customerDeliveryAddressVO = customerDeliveryAddressDAO.findAddressByID(Long.valueOf(addressID));\n\t \t if (customerDeliveryAddressVO != null) {\n\t \t SalesOrderDeliveryAddressDTO salesOrderDeliveryAddressDTO = new SalesOrderDeliveryAddressDTO();\n\t \t salesOrderDeliveryAddressDTO.setSalesOrderID(salesOrderDTO.getMainID());\n\t \t salesOrderDeliveryAddressDTO.setName(customerDeliveryAddressVO.getName());\n\t \t salesOrderDeliveryAddressDTO.setCountryID(customerDeliveryAddressVO.getCountryID());\n\t \t salesOrderDeliveryAddressDTO.setProvinceID(customerDeliveryAddressVO.getProvinceID());\n\t \t salesOrderDeliveryAddressDTO.setCityID(customerDeliveryAddressVO.getCityID());\n\t \t salesOrderDeliveryAddressDTO.setDisctrictID(customerDeliveryAddressVO.getDisctrictID());\n\t \t salesOrderDeliveryAddressDTO.setAddress(customerDeliveryAddressVO.getAddress());\n\t \t salesOrderDeliveryAddressDTO.setMobile(customerDeliveryAddressVO.getMobile());\n\t \t salesOrderDeliveryAddressDTO.setTelephone(customerDeliveryAddressVO.getTelephone());\n\t \t if (customerDeliveryAddressVO.getZip() != null) {\n\t \t salesOrderDeliveryAddressDTO.setZip(customerDeliveryAddressVO.getZip());\n\t \t }\n\t \t salesOrderDeliveryAddressDAO.insertSalesOrderDeliveryAddress(salesOrderDeliveryAddressDTO);\n\t \t }\n\t \t ShippingAddressVO shippingAddressVO = shippingAddressDAO.findDefaultShippingAddress();\n\t \t if (shippingAddressVO != null) {\n\t \t SalesOrderShippingAddressDTO salesOrderShippingAddressDTO = new SalesOrderShippingAddressDTO();\n\t \t salesOrderShippingAddressDTO.setSalesOrderID(salesOrderDTO.getMainID());\n\t \t salesOrderShippingAddressDTO.setName(shippingAddressVO.getName());\n\t \t salesOrderShippingAddressDTO.setCountryID(shippingAddressVO.getCountryID());\n\t \t salesOrderShippingAddressDTO.setProvinceID(shippingAddressVO.getProvinceID());\n\t \t salesOrderShippingAddressDTO.setCityID(shippingAddressVO.getCityID());\n\t \t salesOrderShippingAddressDTO.setDisctrictID(shippingAddressVO.getDisctrictID());\n\t \t salesOrderShippingAddressDTO.setAddress(shippingAddressVO.getAddress());\n\t \t salesOrderShippingAddressDTO.setMobile(shippingAddressVO.getMobile());\n\t \t salesOrderShippingAddressDTO.setTelephone(shippingAddressVO.getTelephone());\n\t \t salesOrderShippingAddressDTO.setZip(shippingAddressVO.getZip());\n\t \t salesOrderShippingAddressDAO.insertSalesOrderShippingAddress(salesOrderShippingAddressDTO);\n\t \t }\n\t }\n\t \n\t ItemDTO itemDTO = new ItemDTO();\n\t SupplierItemDTO supplierItemDTO = new SupplierItemDTO();\n\t SalesOrderLineDTO salesOrderLineDTO = new SalesOrderLineDTO();\n\t if (generateType.equals(\"quickBuy\")) {\n\t generateQuickBuyOrder(itemCount,cartIDs, itemID, supplierID, objID, salesOrderDTO, itemDTO, supplierItemDTO,\n\t salesOrderLineDTO);\n\n\t } else if (generateType.equals(\"oneKey\")) {\n\t generateOneKeyOrder(customerID, itemCount, itemType, objID, salesOrderDTO, itemDTO, supplierItemDTO,\n\t salesOrderLineDTO);\n\n\t } else if (generateType.equals(\"shoppingcart\")) {\n\t genarateShoppingCartOrder(customerID, cartIDs, itemCount, itemType, objID, salesOrderDTO, itemDTO,\n\t supplierItemDTO, salesOrderLineDTO);\n\t } else {\n\t throw new Exception(\"订单类型无法确定\");\n\t }\n\t\t}\n return ordersList;\n }", "private double getOrderTotal() {\n double d = 0;\n\n for (Pizza p : pizzas) {\n d += p.calcTotalCost();\n }\n\n return d;\n }", "private Map<Integer, Integer> getShoppingCartBookQtyMap(List<Book> bookList, int userId) {\n Map<Integer, Integer> shoppingCartBookQty = new HashMap<Integer, Integer>();\n for(Book book : bookList) {\n int bookId = book.getBookId();\n DAOShoppingCart daoShoppingCart = new DAOShoppingCart();\n ShoppingCart shoppingCart = daoShoppingCart.getShoppingCartByBookIdCustomerId(userId, bookId);\n if(shoppingCart != null) {\n shoppingCartBookQty.put(bookId, shoppingCart.getQuantity());\n }\n }\n return shoppingCartBookQty;\n }", "public static void main(String[] args) {\n\t\tMap<BigDecimal, String> result3 = items.stream()\r\n\t\t\t\t.collect(Collectors.toMap(Item::getPrice, Item::getName, (s, a) -> s + \", \" + a));\r\n\t\tresult3.forEach((k, v) -> System.out.println(k + \" \" + v));\r\n\r\n\t\tMap<Integer, String> map = items.stream()\r\n\t\t\t\t.collect(Collectors.toMap(Item::getQuantity, Item::getName, (x, y) -> x + \", \" + y));\r\n\t\tmap.forEach((x, y) -> System.out.println(\"Key: \" + x + \", value: \" + y));\r\n\t\tMap<Integer, String> map1 = items.stream().collect(\r\n\t\t\t\tCollectors.toMap(Item::getQuantity, Item::getName, (x, y) -> x + \", \" + y, LinkedHashMap::new));\r\n\t\tmap.forEach((x, y) -> System.out.println(\"Key: \" + x + \", value: \" + y));\r\n\r\n\t\t/*\r\n\t\t * Map<BigDecimal, List<Item>> result1 =\r\n\t\t * items.stream().collect(Collectors.groupingBy(Item::getPrice));\r\n\t\t * Map<BigDecimal, List<Item>> result2 = items.stream()\r\n\t\t * .collect(Collectors.groupingBy(Item::getPrice, Collectors.toList()));\r\n\t\t * Map<BigDecimal, Item> result4 =\r\n\t\t * items.stream().collect(Collectors.toMap(Item::getPrice, Item -> Item));\r\n\t\t * Map<BigDecimal, String> toMapuse = items.stream()\r\n\t\t * .collect(Collectors.toMap(Item::getPrice, Item::getName, (s, a) -> s + \", \" +\r\n\t\t * a)); ///toMapuse.forEach((k, v) -> System.out.print(k + \" \" + v));\r\n\t\t */\r\n\t}", "public List<OrderReport> getAllOrdersAcrossStores();", "Map<Item, List<Double>> calculateDiscountRule1PriceList(Map<String, Item> itemMap, List<String> itemList);", "private void extractDataFromOrders(List<Order> orders) {\n ArrayList<LocalDate> orderedListOfMapDays = new ArrayList<LocalDate>();\n HashMap<LocalDate, Integer> dateToCoffeeCaffeineMap = new HashMap<LocalDate, Integer>(), dateToTeaCaffeineMap = new HashMap<LocalDate, Integer>();\n HashMap<LocalDate, Double> dateToCoffeeExpenditureMap = new HashMap<LocalDate, Double>(), dateToTeaExpenditureMap = new HashMap<LocalDate, Double>();\n for (int i = 0; i < 8; i++) {\n LocalDate date = ONE_WEEK_AGO.plusDays(i);\n dateToCoffeeCaffeineMap.put(date, 0);\n dateToTeaCaffeineMap.put(date, 0);\n dateToCoffeeExpenditureMap.put(date, 0.0);\n dateToTeaExpenditureMap.put(date, 0.0);\n orderedListOfMapDays.add(date);\n }\n\n // loop through orders, comparing their days and adding values accordingly\n for (Order order : orders) {\n if (order == null) continue;\n // dates (in milliseconds) from orders are clocked to start of day and converted to dates\n LocalDateTime tempDateResetTime = order.getDate().toInstant()\n .atZone(ZoneId.systemDefault())\n .toLocalDate().atStartOfDay();\n LocalDate tempDate = tempDateResetTime.toLocalDate();\n Log.d(TAG, \"ORDER ON DAY: \" + tempDate);\n\n if (ONE_WEEK_AGO.isBefore(tempDate) || ONE_WEEK_AGO.isEqual(tempDate)) {\n // CAFFEINE\n // coffee caffeine\n int dailyCaffeineFromCoffee = 0;\n dailyCaffeineFromCoffee += (order.getTotalCaffeineFromCoffee(true) > 0 ? order.getTotalCaffeineFromCoffee(true) :\n order.getTotalCaffeineFromCoffee(false) > 0 ? order.getTotalCaffeineFromCoffee(false) : 0);\n dateToCoffeeCaffeineMap.put(tempDate, dateToCoffeeCaffeineMap.get(tempDate) + dailyCaffeineFromCoffee);\n // tea caffeine\n int dailyCaffeineFromTea = 0;\n dailyCaffeineFromTea += (order.getTotalCaffeineFromTea(true) > 0 ? order.getTotalCaffeineFromTea(true) :\n order.getTotalCaffeineFromTea(false) > 0 ? order.getTotalCaffeineFromTea(false) : 0);\n dateToTeaCaffeineMap.put(tempDate, dateToTeaCaffeineMap.get(tempDate) + dailyCaffeineFromTea);\n\n // EXPENDITURES\n // coffee cost\n double dailyExpenditureFromCoffee = 0.0;\n dailyExpenditureFromCoffee += (order.getTotalCostFromCoffee(true) > 0 ? order.getTotalCostFromCoffee(true) :\n order.getTotalCostFromCoffee(false) > 0 ? order.getTotalCostFromCoffee(false) : 0.0);\n dateToCoffeeExpenditureMap.put(tempDate, dateToCoffeeExpenditureMap.get(tempDate) + dailyExpenditureFromCoffee);\n // tea cost\n double dailyExpenditureFromTea = 0.0;\n dailyExpenditureFromTea += (order.getTotalCostFromTea(true) > 0 ? order.getTotalCostFromTea(true) :\n order.getTotalCostFromTea(false) > 0 ? order.getTotalCostFromTea(false) : 0.0);\n dateToTeaExpenditureMap.put(tempDate, dateToTeaExpenditureMap.get(tempDate) + dailyExpenditureFromTea);\n }\n }\n\n // CAFFEINE SERIES\n coffeeCaffeineSeries = new DateIntegerSeries(\"Coffee\");\n teaCaffeineSeries = new DateIntegerSeries(\"Tea\");\n // for formatting, add an empty value at FRONT of series\n coffeeCaffeineSeries.add(Date.from(ONE_WEEK_AGO.minusDays(1).atStartOfDay().atZone(ZoneId.systemDefault()).toInstant()).getTime(), 0);\n teaCaffeineSeries.add(Date.from(ONE_WEEK_AGO.minusDays(1).atStartOfDay().atZone(ZoneId.systemDefault()).toInstant()).getTime(), 0);\n for (int i = 0; i < orderedListOfMapDays.size(); i++) {\n LocalDate localDate = orderedListOfMapDays.get(i);\n Integer coffeeCaffeine = dateToCoffeeCaffeineMap.get(localDate);\n Integer teaCaffeine = dateToTeaCaffeineMap.get(localDate);\n\n Long date = Date.from(localDate.atStartOfDay().atZone(ZoneId.systemDefault()).toInstant()).getTime();\n\n coffeeCaffeineSeries.add(date, coffeeCaffeine);\n teaCaffeineSeries.add(date, teaCaffeine);\n }\n // for formatting, add an empty value to BACK of series\n coffeeCaffeineSeries.add(Date.from(ONE_WEEK_AGO.plusDays(8).atStartOfDay().atZone(ZoneId.systemDefault()).toInstant()).getTime(), 0);\n teaCaffeineSeries.add(Date.from(ONE_WEEK_AGO.plusDays(8).atStartOfDay().atZone(ZoneId.systemDefault()).toInstant()).getTime(), 0);\n\n // EXPENDITURE SERIES\n coffeeExpenditureSeries = new DateDoubleSeries(\"Coffee\");\n teaExpenditureSeries = new DateDoubleSeries(\"Tea\");\n // for formatting, add an empty value at FRONT of series\n coffeeExpenditureSeries.add(Date.from(ONE_WEEK_AGO.minusDays(1).atStartOfDay().atZone(ZoneId.systemDefault()).toInstant()).getTime(), 0.0);\n teaExpenditureSeries.add(Date.from(ONE_WEEK_AGO.minusDays(1).atStartOfDay().atZone(ZoneId.systemDefault()).toInstant()).getTime(), 0.0);\n for (int i = 0; i < orderedListOfMapDays.size(); i++) {\n LocalDate localDate = orderedListOfMapDays.get(i);\n Double coffeeExpenditure = dateToCoffeeExpenditureMap.get(localDate);\n Double teaExpenditure = dateToTeaExpenditureMap.get(localDate);\n\n Long date = Date.from(localDate.atStartOfDay().atZone(ZoneId.systemDefault()).toInstant()).getTime();\n\n coffeeExpenditureSeries.add(date, coffeeExpenditure);\n teaExpenditureSeries.add(date, teaExpenditure);\n }\n // for formatting, add an empty value to BACK of series\n coffeeExpenditureSeries.add(Date.from(ONE_WEEK_AGO.plusDays(8).atStartOfDay().atZone(ZoneId.systemDefault()).toInstant()).getTime(), 0.0);\n teaExpenditureSeries.add(Date.from(ONE_WEEK_AGO.plusDays(8).atStartOfDay().atZone(ZoneId.systemDefault()).toInstant()).getTime(), 0.0);\n }", "public float calcOrderTotal()\r\n\t{\r\n\t\tOrderItem temp;\r\n\t\tfloat total = 0;\r\n\t\t\r\n\t\t//iterate through list and get quantity and unit price of each item\r\n\t\t//then multiply together and add to running total\r\n\t\tfor (int x = 0; x < orderItemList.size(); x++)\r\n\t\t{\r\n\t\t\ttemp = orderItemList.get(x);\r\n\t\t\ttotal = total + (temp.getProductQuant() * temp.getProductPrice());\r\n\t\t}\r\n\t\t\r\n\t\treturn total;\r\n\t}", "Map<Goods, Integer> getQuantityByBrand(Brand brand) throws StoreKeeperWorkException;", "public void calculateOrderCost(){\n int tmpCost=0;\n for (Vehicle v : vehicleList){\n tmpCost+=v.getCost();\n }\n totalCost=tmpCost;\n }", "List<List<Order>> getAllOrdersByPrice() throws OrderBookOrderException;", "public Long getTotal(Map map) {\n\t\treturn orderDAO.getTotal(map);\n\t}", "private Map<String, Double> getMarketPriceMap() {\n String marketData = Utils.readFile(marketFile);\n MarketResponse[] marketDetails = gson.fromJson(marketData, MarketResponse[].class);\n return Arrays.stream(marketDetails)\n .collect(Collectors.toMap(MarketResponse::getIsin, MarketResponse::getPrice));\n }", "@Override\n public List<OrderSummary> summary() throws EmptyOrderListException {\n logger.info(\"Displaying Order Summary\");\n if(registeredOrders.size() > 0) {\n return registeredOrders.stream().\n collect(groupingBy(Bid::forOrder, mapping(Order::quantity, toList()))).\n entrySet().stream().\n map(toOrderSummary()).\n sorted(byTypeAndPrice).\n collect(toList());\n }\n else {\n throw new EmptyOrderListException(\"Empty Order List. Size: \" + registeredOrders.size());\n }\n }", "public void calculatePriceOrder() {\n log.info(\"OrdersBean : calculatePriceOrder!\");\n this.priceOrder = 0;\n for (ContractsEntity c : contractsBean.getContractsEntities()\n ) {\n this.priceOrder += c.getFinalPrice();\n }\n }", "@Transactional\n @Override\n public StringBuffer addSalesOrderTparts(String customerID, String cartIDs, String addressID, String paymentType,\n String orderAmount, String scoreAll, String memo, String itemCount, String itemID,\n String supplierID, String itemType, String orderType, String objID, String invoiceType,\n String invoiceTitle, String generateType, String orderID,String memoIDs,String allFreight, String supplierFreightStr) throws Exception {\n \t\n String ids[] = cartIDs.split(\",\");\n String memos[] = memoIDs.split(\",\");\n List<ShoppingCartVO> shopCartList = new ArrayList<ShoppingCartVO>();\n for (String id : ids) {\n ShoppingCartVO shoppingCartVO = shoppingCartDAO.findShoppingCartByID(Long.valueOf(id));\n shopCartList.add(shoppingCartVO);\n }\n Map<String,List<ShoppingCartVO>> maps = new HashMap<String,List<ShoppingCartVO>>();\n for(ShoppingCartVO s:shopCartList){\n \tList<ShoppingCartVO> temp = new ArrayList<ShoppingCartVO>();\n \t String sid1= s.getSupplierID();\n String siname1= s.getSupplierName();\n for(ShoppingCartVO shoppingCartVO1 : shopCartList){\n \t//当前店铺对应的购物车集合\n \tString sid2 = shoppingCartVO1.getSupplierID();\n \tif(sid1.equals(sid2)){\n \t\ttemp.add(shoppingCartVO1);\n \t}\n }\n maps.put(sid1+\"_\"+siname1, temp);\n }\n \n //根据物流模板计算运费\n Map<String, Double> supplierFreightMap = new HashMap<String, Double>();\n String[] supplierFreightAll = null;\n if(StringUtil.isNotEmpty(supplierFreightStr))\n {\n \tsupplierFreightAll = supplierFreightStr.split(\"\\\\|\");\n for (int i = 0; i < supplierFreightAll.length; i++) {\n \tString[] supplierFreight = supplierFreightAll[i].split(\":\");\n \tsupplierFreightMap.put(supplierFreight[0], Double.parseDouble(supplierFreight[1]));\n \t\t} \t\n }\n \n \n StringBuffer ordersList = new StringBuffer();\n int num = 0;\n// cachedClient.delete(customerID + orderID);\n Set<String> set = maps.keySet();\n\t\tfor(String string : set){\n\t\t List<ShoppingCartVO> temp1= maps.get(string);\n\t\t double supplierFreight = 0d;\n\t\t if(supplierFreightMap.size()>0)\n\t\t {\n\t\t\t supplierFreight = supplierFreightMap.get(string);\n\t\t }\n\t\t Double amount = 0d;\n\t\t Integer count = 0;\n Integer score = 0;\n Double weight = 0d;\n\t\t for (ShoppingCartVO shoppingCartVO : temp1) {\n ItemVO itemVO = itemDAO.findItemById(shoppingCartVO.getItemID());\n count += shoppingCartVO.getItemCount();\n // weight += itemVO.getWeight();\n if (shoppingCartVO.getType() == 1) {\n amount += shoppingCartVO.getItemCount() * shoppingCartVO.getSalesPrice();\n } else if (shoppingCartVO.getType() == 2) {\n score += shoppingCartVO.getItemCount() * itemVO.getScore();\n } else if (shoppingCartVO.getType() == 3) {\n amount += shoppingCartVO.getItemCount() * itemVO.getScorePrice();\n score += shoppingCartVO.getItemCount() * shoppingCartVO.getSalesScore();\n }\n }\n\t\t //SalesOrderVO tempOrder = new SalesOrderVO();\n\t /*if (tempOrder == null) {\n\t throw new Exception(\"参数错误\");\n\t }\n\t if (\"012\".indexOf(invoiceType) == -1) {\n\t throw new Exception(\"参数错误\");\n\t }*/\n\t SalesOrderDTO salesOrderDTO = new SalesOrderDTO();\n\t salesOrderDTO.setMainID(randomNumeric());\n\t salesOrderDTO.setCustomerID(customerID);\n\t salesOrderDTO.setPaymentType(Integer.valueOf(paymentType));\n\t salesOrderDTO.setPaymentStatus(0);\n\n\t // salesOrderDTO.setExpressFee(tempOrder.getExpressFee());//运费\n\t salesOrderDTO.setProductAmount(amount);\n\t salesOrderDTO.setTotalAmount(amount + supplierFreight);\n\t salesOrderDTO.setPayableAmount(amount);\n\n\t salesOrderDTO.setOrderType(Integer.valueOf(orderType));\n\t salesOrderDTO.setMemo(getMemoBySupplier(memos,string.split(\"_\")[0]));\n\t salesOrderDTO.setInvoiceType(Integer.parseInt(invoiceType));\n\t salesOrderDTO.setInvoiceTitle(invoiceTitle);\n\t salesOrderDTO.setSupplierID(string);\n\t salesOrderDTO.setExpressFee(supplierFreight);\n\t salesOrderDAO.addSalesOrder(salesOrderDTO);\n\t ordersList.append(salesOrderDTO.getMainID()+\",\");\n\t // 支付方式1:余额支付2:货到付款3:在线支付4:积分礼品5:线下汇款\n\t if(!paymentType.equals(\"3\")){\n\t \t//3:在线支付\n\t \t CustomerDeliveryAddressVO customerDeliveryAddressVO = customerDeliveryAddressDAO.findAddressByID(Long.valueOf(addressID));\n\t \t if (customerDeliveryAddressVO != null) {\n\t \t SalesOrderDeliveryAddressDTO salesOrderDeliveryAddressDTO = new SalesOrderDeliveryAddressDTO();\n\t \t salesOrderDeliveryAddressDTO.setSalesOrderID(salesOrderDTO.getMainID());\n\t \t salesOrderDeliveryAddressDTO.setName(customerDeliveryAddressVO.getName());\n\t \t salesOrderDeliveryAddressDTO.setCountryID(customerDeliveryAddressVO.getCountryID());\n\t \t salesOrderDeliveryAddressDTO.setProvinceID(customerDeliveryAddressVO.getProvinceID());\n\t \t salesOrderDeliveryAddressDTO.setCityID(customerDeliveryAddressVO.getCityID());\n\t \t salesOrderDeliveryAddressDTO.setDisctrictID(customerDeliveryAddressVO.getDisctrictID());\n\t \t salesOrderDeliveryAddressDTO.setAddress(customerDeliveryAddressVO.getAddress());\n\t \t salesOrderDeliveryAddressDTO.setMobile(customerDeliveryAddressVO.getMobile());\n\t \t salesOrderDeliveryAddressDTO.setTelephone(customerDeliveryAddressVO.getTelephone());\n\t \t if (customerDeliveryAddressVO.getZip() != null) {\n\t \t salesOrderDeliveryAddressDTO.setZip(customerDeliveryAddressVO.getZip());\n\t \t }\n\t \t salesOrderDeliveryAddressDAO.insertSalesOrderDeliveryAddress(salesOrderDeliveryAddressDTO);\n\t \t }\n\t \t ShippingAddressVO shippingAddressVO = shippingAddressDAO.findDefaultShippingAddress();\n\t \t if (shippingAddressVO != null) {\n\t \t SalesOrderShippingAddressDTO salesOrderShippingAddressDTO = new SalesOrderShippingAddressDTO();\n\t \t salesOrderShippingAddressDTO.setSalesOrderID(salesOrderDTO.getMainID());\n\t \t salesOrderShippingAddressDTO.setName(shippingAddressVO.getName());\n\t \t salesOrderShippingAddressDTO.setCountryID(shippingAddressVO.getCountryID());\n\t \t salesOrderShippingAddressDTO.setProvinceID(shippingAddressVO.getProvinceID());\n\t \t salesOrderShippingAddressDTO.setCityID(shippingAddressVO.getCityID());\n\t \t salesOrderShippingAddressDTO.setDisctrictID(shippingAddressVO.getDisctrictID());\n\t \t salesOrderShippingAddressDTO.setAddress(shippingAddressVO.getAddress());\n\t \t salesOrderShippingAddressDTO.setMobile(shippingAddressVO.getMobile());\n\t \t salesOrderShippingAddressDTO.setTelephone(shippingAddressVO.getTelephone());\n\t \t salesOrderShippingAddressDTO.setZip(shippingAddressVO.getZip());\n\t \t salesOrderShippingAddressDAO.insertSalesOrderShippingAddress(salesOrderShippingAddressDTO);\n\t \t }\n\t }\n\t \n\t ItemDTO itemDTO = new ItemDTO();\n\t SupplierItemDTO supplierItemDTO = new SupplierItemDTO();\n\t SalesOrderLineDTO salesOrderLineDTO = new SalesOrderLineDTO();\n\t if (generateType.equals(\"quickBuy\")) {\n\t generateQuickBuyOrder(itemCount,cartIDs, itemID, supplierID, objID, salesOrderDTO, itemDTO, supplierItemDTO,\n\t salesOrderLineDTO);\n\n\t } else if (generateType.equals(\"oneKey\")) {\n\t generateOneKeyOrder(customerID, itemCount, itemType, objID, salesOrderDTO, itemDTO, supplierItemDTO,\n\t salesOrderLineDTO);\n\n\t } else if (generateType.equals(\"shoppingcart\")) {\n\t \tgenarateShoppingCartOrderTparts(customerID, cartIDs, itemCount, itemType, objID, salesOrderDTO, itemDTO,\n\t supplierItemDTO, salesOrderLineDTO);\n\t } else {\n\t throw new Exception(\"订单类型无法确定\");\n\t }\n\t num++;\n\t\t}\n return ordersList;\n }", "BigDecimal calculateTotalPrice(Order order);", "public double getTotal(){\n\t\tBigDecimal total =BigDecimal.valueOf(0);\n\t\tfor(CartItem cartItem : map.values()){\n\t\t\ttotal = total.add(BigDecimal.valueOf(cartItem.getSubtotal())) ;\n\t\t}\t\t\n\t\treturn total.doubleValue();\n\t}", "List<List<Order>> getAllOrdersByQuantity() throws OrderBookOrderException;", "void calculateTotalPrice(){\n totalPrice = 0;\n cartContents.forEach(Product-> this.totalPrice = totalPrice + Product.getSellPrice());\n }", "public List<Pair<Integer, String>> getPurchaseStats() throws Exception {\n String query = \"SELECT p.uid, a.zip, SUM(pi.price) AS total_spent FROM POItem pi INNER JOIN PO p ON pi.id=p.id INNER JOIN Address a ON p.address=a.id WHERE p.status='ORDERED' GROUP BY p.uid, a.zip\";\n try (Connection con = this.ds.getConnection();\n PreparedStatement p = con.prepareStatement(query);\n ResultSet r = p.executeQuery()) {\n List<Pair<Integer, String>> results = new LinkedList<>();\n while (r.next()) {\n String uid = r.getString(\"uid\");\n String zip = r.getString(\"zip\");\n int totalSpent = r.getInt(\"total_spent\");\n Pair<Integer, String> data = new Pair<Integer, String>(totalSpent, zip);\n results.add(data);\n }\n r.close();\n return results;\n }\n }", "public double getOrderTotalWithoutDiscount(String[] order) {\n\t\t//TODO\n\t\t\n\t\tdouble all=0.0;\n\t\tfor(String item:order) {\n\t\t\t\n\t\t\tall+=findItemPrice(item);\n\t\t}return all;\n\t\t\t\n\t\t\t\n\t\t}", "public Map getTotalItemByVoucherNoForEditGRHelper(String voucherNo)\r\n\t{\n\t\t\tSystem.out.println(\"====HELPER====\");\r\n\t\t\tSystem.out.println(\"voucherNo :: \" + voucherNo);\r\n\t\t\tlong k = 0l;\r\n\t\t\tDouble grossTotal = 0.0;\r\n\t\t\tDouble totalTaxAmt = 0.0;\r\n\t\t\tDecimalFormat df = new DecimalFormat(\"#.##\");\r\n\t\t\t//Map<Long, PurchaseReturnGetItems> map = new HashMap<Long, PurchaseReturnGetItems>();\r\n\t\t\t\r\n\t\t\tSupplierDetailDao dao = new SupplierDetailDao();\r\n\t\t\tList productList = dao.getTotalItemByVoucherNoForEditGRDao(voucherNo);\r\n\t\t\tMap map = new HashMap();\r\n\t\t\tPurchaseReturnGetItems cs = null;\r\n\t\t\t\r\n\t\t\tfor (int i = 0; i < productList.size(); i++)\r\n\t\t\t{\r\n\t\t\t\tk++;\r\n\t\t\t\tObject[] o = (Object[]) productList.get(i);\r\n\t\t\t\tEditPurchase bean = new EditPurchase();\r\n\t\t\t\tbean.setPkGoodRecId(Long.parseLong(o[0].toString()));\r\n\t\t\t\tbean.setCatName(o[1].toString());\r\n\t\t\t\tbean.setItemName(o[2].toString());\r\n\t\t\t\tbean.setQuantity(Double.parseDouble(o[3].toString()));\r\n\t\t\t\tbean.setOriQuantity(o[3].toString());\r\n\t\t\t\tbean.setBuyPrice(Double.parseDouble(o[4].toString()));\r\n\t\t\t\tbean.setFinalBuyPrice(o[4].toString());\r\n\t\t\t\tbean.setVat(Double.parseDouble(o[5].toString()));\r\n\t\t\t\tbean.setIgst(Double.parseDouble(o[11].toString()));\r\n\t\t\t\tbean.setFinalVat(Double.parseDouble(o[5].toString()));\r\n\t\t\t\tbean.setFinalIgst(Double.parseDouble(o[11].toString()));\r\n\t\t\t\tbean.setDiscount(Double.parseDouble(o[12].toString()));\r\n\t\t\t\tbean.setFinalDisPer(o[12].toString());\r\n\t\t\t\tbean.setRollsize(Double.parseDouble(o[13].toString()));\r\n\t\t\t\tbean.setTotal(Double.parseDouble(o[6].toString()));\r\n\t\t\t\tbean.setContactPerson(o[7].toString());\r\n\t\t\t\tbean.setBarcodeNo(Long.parseLong(o[8].toString()));\r\n\t\t\t\tbean.setOndate(o[9].toString());\r\n\t\t\t\tbean.setAvailquantity(Double.parseDouble(o[10].toString()));\r\n\t\t\t\tbean.setSize(o[14].toString());\r\n\t\t\t\tbean.setSupplierId(o[15].toString());\r\n\t\t\t\tbean.setBillNo(o[16].toString());\r\n\t\t\t\tbean.setSupplierName2(o[17].toString());\r\n\t\t\t\tbean.setGrossTotal(Double.parseDouble(o[18].toString()));\r\n\t\t\t\tDouble d = 0d;\r\n\t\t\t\tbean.setReturnTotal(d);\r\n\t\t\t\tLong editQuan = 0l;\r\n\t\t\t\tbean.setEditQuantity(editQuan);\r\n\t\t\t\tbean.setTotalQuantity(k);\r\n\t\t\t\tgrossTotal = grossTotal + Double.parseDouble(o[6].toString());\r\n\t\t\t\tbean.setFinalGrossTotal(o[18].toString());\r\n\t\t\t\tbean.setSubcatName(o[19].toString());\r\n\t\t\t\tbean.setHsnSac(o[20].toString());\r\n\t\t\t\tbean.setColor(o[21].toString());\r\n\t\t\t\tbean.setStyle(o[22].toString());\r\n\t\t\t\tif(o[23] == null)\r\n\t\t\t\t{\r\n\t\t\t\t\tbean.setPurchaseCode(\"\");\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tbean.setPurchaseCode(o[23].toString());\r\n\t\t\t\t}\r\n\t\t\t\tbean.setContactPerson(o[24].toString());\r\n\t\t\t\tbean.setTaxAmount(o[25].toString());\r\n\t\t\t\tbean.setReturnedQty(o[26].toString());\r\n\t\t\t\tint rQtyInInt = (int)(Double.parseDouble(o[26].toString()));\r\n\t\t\t\tbean.setReturnedQty(String.valueOf(rQtyInInt));\r\n\t\t\t\tbean.setSalePrice(Double.parseDouble(o[27].toString()));\r\n\t\t\t\tbean.setFinalSalePrice(o[27].toString());\r\n\t\t\t\tbean.setPkSuppId(o[28].toString());\r\n\t\t\t\tbean.setProductId(o[29].toString());\r\n\t\t\t\tbean.setSubCatId(o[30].toString());\r\n\t\t\t\tbean.setCatId(o[31].toString());\r\n\t\t\t\tbean.setSuppCode(o[32].toString());\r\n\t\t\t\tbean.setSoldQty(o[33].toString());\r\n\t\t\t\tbean.setPendingBillPayment(o[34].toString());\r\n\t\t\t\tbean.setBarQtyTotalPuchaseQty(o[35].toString());\r\n\t\t\t\tSystem.out.println(\"BarQtyTotalPuchaseQty ====> \"+bean.getBarQtyTotalPuchaseQty());\r\n\t\t\t\tSystem.out.println(\"grossTotal =====> \"+grossTotal);\r\n\t\t\t\tSystem.out.println(\"***************\" + o[0]);\r\n\t\t\t\tmap.put(bean.getPkGoodRecId(), bean);\t\r\n\t\t\t/*if (catList != null && catList.size() > 0)\r\n\t\t\t{\r\n\t\t\t\tcs = (PurchaseReturnGetItems) catList.get(0);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"TOTAL ITEMLIST Helper \"+catList.size());\r\n\t\t\t\r\n\t\t\treturn cs;*/\r\n\t\t}\r\n\t\t\t\r\n\t\t\treturn map;\r\n\t}", "public static int[] totalCost(ArrayList<Medicine> list){\n int x[] = new int[3];// to save all (cost and sales)\n for(int i = 0; i<list.size(); i++){\n x[0] += list.get(i).getUnitCost();// save total cost in here\n x[1] += list.get(i).getSalesPrice(); // save total sale in here\n }\n x[2] = x[0]-x[1]; // calculate net cost\n return x;\n }", "Map<Goods, Integer> getQuantityByDepartment(Department department) throws StoreKeeperWorkException;", "public double total(){\n\tdouble total=0;\n\tfor(Map.Entry<String, Integer> pro:proScan.getProducts().entrySet()){\n\t\tString proName=pro.getKey();\n\t\tint quantity=pro.getValue();\n\t\tProductCalculator proCal=priceRule.get(proName);\n\t\tif(proCal==null)\n\t\t\tthrow new MissingProduct(proName);\n\t\t\n\t\tProductCalculator cal=priceRule.get(proName);\n\t\tdouble subtotal=cal.getTotal(quantity);\n\t\ttotal+=subtotal;\n\t\t//System.out.println(total);\n\t}\n\t//round the total price to two digit\n\treturn round(total, 2);\n}", "private double totalPrice(){\n\n double sum = 0;\n\n for (CarComponent carComponent : componentsCart) {\n sum += (carComponent.getCompPrice() * carComponent.getCompQuantity()) ;\n }\n return sum;\n }", "public double totalPrices()\r\n {\r\n double total = 0;\r\n //Write a loop here to total the book prices. Each object in the ArrayList bookList is a Book, so you can\r\n //use the getter as you loop through and add the price to total\r\n if(bookList != null){\r\n for(Book book: bookList){\r\n total += book.getPrice();\r\n }\r\n }\r\n return total;\r\n }", "public float getValueOfSales(String product) {\n float totalValue = 0;\n LinkedList<Sale> temp = storageSale.get(product);\n Iterator<Sale> it = temp.iterator();\n while (it.hasNext()) {\n totalValue = totalValue + it.next().getValue();\n }\n return totalValue;\n }", "private double calculateTotalPrice(Order order) {\n int nights = (int)(order.getVaucher().getDateTo().getTime() - order.getVaucher().getDateFrom().getTime())/(24 * 60 * 60 * 1000);\n double totalPrice = (nights * order.getVaucher().getHotel().getPricePerDay() + order.getVaucher().getTour().getPrice()) * (100 - order.getUser().getDiscount())/100;\n return totalPrice;\n }", "public BigDecimal countTotalOrderPrice(Order order) {\n BigDecimal totalSum = new BigDecimal(0);\n\n\n // iterate through all products and count total price of them -\n // TODO: can be speeded up by adding the order_total_price parameter to the order object/table\n if (order != null && order.getOrderProducts().size() > 0) {\n Set<Product> orderProducts = order.getOrderProducts();\n for (Product product : orderProducts) {\n totalSum = totalSum.add(product.getProduct_price());\n }\n\n }\n return totalSum;\n }", "public double getClipCardSales() {\n\t\tdouble d = 0;\n\n\t\tfor (Order o : orders) {\n\t\t\tfor (ProductOrder po : o.getProductOrders()) {\n\t\t\t\tif (po.getProduct().getName().startsWith(\"Klippekort\")) {\n\t\t\t\t\td += po.price();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn d;\n\t}", "public double getTotal() {\n double total = 0.0;\n for (OrderItem i : getOrderItems()) {\n total += i.getOrderQuantity() * i.getPrice();\n }\n return total;\n }", "private double returnOrderTotalAmount(List<ProductVariation> productVariationList, long customerId)\n {\n double totalAmount = 0;\n\n for (ProductVariation productVariation: productVariationList) {\n\n int quantityFromCart = cartRepository.getQuantityForCustomerIdAndVariationId(customerId\n , productVariation.getId());\n totalAmount+=(productVariation.getPrice()*quantityFromCart);\n }\n return totalAmount;\n }", "@Override\n\tpublic Map<String, Double> calculate(List<Map<String, Object>> houses,\n\t\t\tdouble usage) {\n\t\tSystem.err.println(houses.toString());\n\t\tresult = new HashMap<String, Double>();\n\t\tlogicArea = new HashMap<String, Double>();\n\t\t// calculate each logic Area\n\t\t/*\n\t\t * house.put(\"room-id\", \"01010101\"); house.put(\"water-usage\", \"1\");\n\t\t * house.put(\"electric-usage\", \"5\"); house.put(\"area\", \"100.9\");\n\t\t */\n\t\tcalculateTotalFee(usage);\n\t\tif (isAreaWeight) {\n\t\t\tdouble sum = 0;\n\t\t\tfor (Map<String, Object> map : houses) {\n\t\t\t\tdouble areaOfRoom = (double)(map.get(\"area\"));\n\t\t\t\tlogicArea.put((String) map.get(\"room-id\"), areaOfRoom);\n\t\t\t\tsum += areaOfRoom;\n\t\t\t}\n\t\t\tfor (Entry<String, Double> aLogicArea : logicArea.entrySet()) {\n\t\t\t\tdouble shareOfRoom = aLogicArea.getValue() / sum * totalFee;\n\t\t\t\tdouble round = (double) (Math.round(shareOfRoom * 100) / 100.0);\n\t\t\t\tresult.put(aLogicArea.getKey(), round);\n\t\t\t}\n\t\t}// area Weight\n\t\telse {\n\t\t\tint sum = houses.size();\n\t\t\tfor (Map<String, Object> map : houses) {\n\t\t\t\tdouble shareOfRoom = 1.0 / sum * totalFee;\n\t\t\t\tdouble round = (double) (Math.round(shareOfRoom * 100) / 100.0);\n\t\t\t\tresult.put((String) map.get(\"room-id\"), round);\n\t\t\t}\n\t\t}\n\t\t// sum=?\n\t\t// calculate %\n\t\t// multi with total\n\t\t// put into result\n\t\treturn result;\n\n\t}", "public static LinkedHashMap<String, ArrayList<Object>> getSalePhones()\n\t{\n\t\tLinkedHashMap<String, ArrayList<Object>> salePhones = new LinkedHashMap<String, ArrayList<Object>>();\n\t\t\n\t\ttry\n\t\t{\n\t\t\tConnection conn = null;\n\t\t\t\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\").newInstance();\n\t\t\tconn = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/techLobbydatabase?autoReconnect=true&useSSL=false\", \"root\", \"admin\");\n\t\t\t\n\t\t\tStatement s = conn.createStatement ();\n\t\t\ts.executeQuery (\"SELECT phoneName, phonePrice, phoneCompany,phoneOriginal FROM phones WHERE phoneSale = 'Yes';\");\n\t\t\tResultSet rs = s.getResultSet();\n\t\t\t\n\t\t\twhile (rs.next ())\n\t\t\t{\n\t\t\t\tString phoneName = rs.getString(\"phoneName\");\n\t\t\t\tFloat phonePrice = rs.getFloat (\"phonePrice\");\n\t\t\t\tString phoneCompany = rs.getString (\"phoneCompany\");\n\t\t\t\tFloat phoneOriginal = rs.getFloat(\"phoneOriginal\");\n\t\t\t \n\t\t\t\tArrayList<Object> itemArray = new ArrayList<Object>();\n\t\t\t\titemArray.add(phoneName);\n\t\t\t\titemArray.add(phonePrice);\n\t\t\t\titemArray.add(phoneCompany);\n\t\t\t\titemArray.add(phoneOriginal);\n\t\t\t\t//itemArray.add(totalSales);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tsalePhones.put(phoneName, itemArray);\n\t\t\t}\n\t\t\t//System.out.println(\"Top 5 sold items: \"+top5SoldProducts);\n\t\t\trs.close ();\n\t\t\ts.close ();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn salePhones;\n\t\t\n\t}", "public List<Product> getSales() {\n return sales;\n }", "public void calculateSale()\n {\n double total = 0.00;\n int numTimbits = 0;\n int numDoughnuts = 0;\n int smallCoffee = 0;\n int mediumCoffee = 0;\n int largeCoffee = 0;\n String order;\n \n for(int i = 0; salesItem[i] != null && i < salesItem.length; i++)\n {\n if(salesItem[i] instanceof Timbit) \n {\n numTimbits = numTimbits + salesItem[i].getNumOfItems();\n }\n else if(salesItem[i] instanceof Doughnut)\n {\n numDoughnuts = numDoughnuts + salesItem[i].getNumOfItems();\n }\n else if(salesItem[i] instanceof Coffee)\n {\n if(salesItem[i].getNumOfItems()==1)\n {\n smallCoffee ++;\n }\n else if(salesItem[i].getNumOfItems()==2)\n {\n mediumCoffee ++;\n }\n else\n {\n largeCoffee ++;\n }\n }\n \n total += salesItem[i].getFinalPrice();\n }\n \n order = \"Timbits: \" + numTimbits + \"\\nDoughnuts: \" + numDoughnuts + \"\\nSmall Coffees: \" + smallCoffee + \"\\nMedium Coffees: \" + mediumCoffee + \"\\nLarge Coffees: \" + largeCoffee ; \n showText(order + String.format(\"\\nTotal Price: $%5.2f\", total), 150, 175);\n }", "public Map<LocalDate,Double> getTradeValuesByDate(List<Trade> tradeList,String tradeType) {\n\t\t\r\n\t\tMap<LocalDate,Double> tradesValueMap= new TreeMap();\r\n\t\tfor(Trade t: tradeList){\r\n\t\t\tif (t.getInstructionType().equalsIgnoreCase(tradeType)) {\r\n\t\t\t\tLocalDate dateKey = t.getSettlementDate();\r\n\t\t\t\tdouble tradeAmount = t.getTotalAmount();\r\n\t\t\t\tif (tradesValueMap.get(dateKey) != null) {\r\n\t\t\t\t\ttradeAmount += tradesValueMap.get(dateKey);\r\n\t\t\t\t}else{\r\n\t\t\t\t\ttradesValueMap.put(dateKey, tradeAmount);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn tradesValueMap;\r\n\t}", "public Map<String, Object> countSalesEvents(String startDate, String endDate);", "private ArrayList<Integer> GetAllServiceQuantity(List<Services> services){\n // Create new empty arrayList of service quantity\n ArrayList<Integer> tmp = new ArrayList<Integer>();\n\n // Loop though services list and add service quantity to tmp arraylist\n for(Services service : services){\n tmp.add(service.getServiceQuantity());\n }\n\n return tmp;\n }", "@Override\n public BigDecimal calculate(List<String> skuIds) {\n Collection<PricingRule> items = pricingRulesReader.fetchPricingRules();\n Map<String, PricingRule> pricingRuleMap = items.stream().collect(Collectors.toMap(PricingRule::getSkuId, Function.identity()));\n\n // Step 2: Map of SKUID and number of items for the SKUID\n Map<String, Long> itemsSkuAndQuantity = skuIds.stream().collect(Collectors.groupingBy(Function.identity(), Collectors.counting()));\n\n // Step 3: Calculate total price of items based on pricing rule and the number of items in the list\n return itemsSkuAndQuantity.entrySet().stream().reduce(BigDecimal.ZERO, (currentSum, entry) ->\n currentSum.add(pricingRuleMap.get(entry.getKey()).calculatePriceFor(entry.getValue())), BigDecimal::add);\n }", "public void addTotal() {\n for (int i = 0; i < itemsInOrder.size(); i++) {\n this.dblTotal += itemsInOrder.get(i).getPrice();\n }\n }", "public void totalPrice(){\n int total = 0;\n\n if (list_order.isEmpty()) {\n totalHarga.setText(\"Rp. \" + 0);\n }\n else {\n for (int i = 0; i < list_order.size(); i++) {\n total += list_order.get(i).getHarga();\n }\n totalHarga.setText(\"Rp. \" + total);\n }\n }", "private List<Map<String, Object>> calcProfit(List<Map<String, Object>> revenue,\n List<Map<String, Object>> dep,\n List<Map<String, Object>> maintenance\n ) {\n int index = 0;\n List<Map<String, Object>> profit = new ArrayList<>();\n\n for (Map<String, Object> item : revenue) {\n \n String key = item.get(\"key\")!=null ? item.get(\"key\").toString() : \"\";\n\n HashMap<String, Object> node = new HashMap<>();\n\n double value = (Double) item.get(\"value\");\n if ((value > -0.00001) && (value < 0.00001)) {\n // revenue equals zero, it should be data input error, therefore, profit will be zero too\n node.put(\"value\", 0.0);\n } else {\n // revenue did not equal to zero, let us calculate profit\n if (dep.get(index).get(\"key\") != null) {\n value = value - (Double) dep.get(index).get(\"value\");\n }\n\n if (maintenance.get(index).get(\"key\") != null) {\n value = value - (Double) maintenance.get(index).get(\"value\");\n }\n node.put(\"value\", value);\n }\n\n node.put(\"key\", key);\n profit.add(node);\n index++;\n }\n\n return profit;\n }", "private Map<String,MyTargetsBean> getALOrderVal(ArrayList<MyTargetsBean> alMyTargets){\n Map<String,MyTargetsBean> mapMyTargetBean=new HashMap<>();\n if(alMyTargets!=null && alMyTargets.size()>0){\n\n for(MyTargetsBean bean:alMyTargets)\n if(mapOrderValAch.containsKey(bean.getOrderMaterialGroupID())) {\n double mDoubMonthAchived = Double.parseDouble(bean.getMTDA()) + mapOrderValAch.get(bean.getOrderMaterialGroupID());\n mapOrderValAch.put(bean.getOrderMaterialGroupID(), mDoubMonthAchived);\n mapMyTargetBean.put(bean.getOrderMaterialGroupID(),bean);\n }else {\n double mDoubMonthAchived = Double.parseDouble(bean.getMTDA()) ;\n mapOrderValAch.put(bean.getOrderMaterialGroupID(), mDoubMonthAchived);\n mapMyTargetBean.put(bean.getOrderMaterialGroupID(),bean);\n }\n }\n\n\n return mapMyTargetBean;\n }", "public double getTotalCostOfOrder() {\n double total = 0;\n for (AbstractProduct item :\n this.itemsReceived) {\n total += item.getPrice();\n }\n return total;\n }", "private static void totalItemsPerMonth(List<Inventory> inventoryList) {\n System.out.println(\"\\nTotal items per month\\n\");\n inventoryList.stream()\n .collect(Collectors.groupingBy(Inventory::getDateUploadMonth, TreeMap::new,Collectors.summingInt(Inventory::getQuantity)))\n .entrySet()\n .stream()\n .forEach(System.out::println);\n }", "public int calculateTotalOrderPriceWithoutDiscount(Map<Pizza, Integer> pizzas) {\n\t\t\n\t\tvalidatePizzas(pizzas);\n\t\t\n\t\tint orderPrice = 0;\n\t\tfor(Entry<Pizza, Integer> entry : pizzas.entrySet()) {\n\t\t\tPizza pizza = entry.getKey();\n\t\t\tInteger pizzaCount = entry.getValue();\n\t\t\torderPrice += pizza.getPrice() * pizzaCount;\n\t\t}\n\t\t\n\t\treturn orderPrice;\n\t}", "private double getProductsTotal() {\n\t\t\n\t\tdouble total = 0;\n\t\t\n\t\tif(!soldProducts.isEmpty()) {\n\t\t\t\n\t\t\tfor(Sellable product : soldProducts) {\n\t\t\t\t\n\t\t\t\ttotal += (product.getPrice() * product.getQuantitySold());\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\treturn total;\n\t}", "private List<Transaction> getTransactionInformation(Map<Integer, CartLine> map) {\n\n\t\tlong subtotal = 0;\n\n\t\tfor (CartLine line : map.values()) {\n\n\t\t\tsubtotal += line.getUnitPrice() * line.getQuantity();\n\t\t}\n\n\t\tDetails details = new Details();\n\n\t\tdetails.setShipping(\"30000\");\n\t\tdetails.setSubtotal(\"\" + subtotal);\n\t\tdetails.setTax(\"0\");\n\n\t\tAmount amount = new Amount();\n\n\t\tamount.setCurrency(\"USD\");\n\t\tamount.setTotal(\"\" + (subtotal + 30000));\n\n\t\tamount.setDetails(details);\n\n\t\tTransaction transaction = new Transaction();\n\t\ttransaction.setAmount(amount);\n\t\ttransaction.setDescription(\"A\");\n\n\t\tItemList itemList = new ItemList();\n\n\t\tList<Item> items = new ArrayList<Item>();\n\n\t\tfor (CartLine line : map.values()) {\n\t\t\tItem item = new Item();\n\t\t\titem.setCurrency(\"USD\");\n\t\t\titem.setName(line.getProduct().getProductName());\n\t\t\titem.setPrice(\"\" + (line.getQuantity() * line.getUnitPrice()));\n\t\t\titem.setQuantity(\"\" + line.getQuantity());\n\n\t\t\titems.add(item);\n\t\t}\n\n\t\titemList.setItems(items);\n\t\ttransaction.setItemList(itemList);\n\n\t\tList<Transaction> transactions = new ArrayList<Transaction>();\n\t\ttransactions.add(transaction);\n\n\t\treturn transactions;\n\n\t}", "Map<Goods, Integer> getQuantityByGroup(GoodsGroup group) throws StoreKeeperWorkException;", "public HashMap<Long, Integer> getProductsToBeOrdered(int totalEntries) {\n HashMap<Long, Integer> listOfProducts = new HashMap<>();\n for (int i = 0; i < totalEntries; i++) {\n listOfProducts.put((long) getRandomNumber(0, 9999), getRandomNumber(1, 10));\n }\n return listOfProducts;\n }", "private static Map<String, List<String>> mapCustomerProductsPurchased(\r\n Map<String, List<String>> sessionsFromCustomers,\r\n List<String> sessionsWithPurchases\r\n ){\r\n Map<String, List<String>> newCustomerMap = new HashMap<>();\r\n // Initializes new map.\r\n for (String customer: sessionsFromCustomers.keySet()) {\r\n newCustomerMap.put(customer, new LinkedList<>());\r\n }\r\n\r\n for (Map.Entry<String, List<String>> customer: sessionsFromCustomers.entrySet()) {\r\n for (String session: sessionsWithPurchases) {\r\n if (customer.getValue().contains(session)) {\r\n newCustomerMap.get(customer.getKey()).add(session);\r\n }\r\n }\r\n\r\n }\r\n return newCustomerMap;\r\n }", "public int totalprice() {\n\t\tint totalPrice=0;\r\n\t\tfor (int i=0; i<arlist.size();i++) {\r\n\t\t\t totalPrice+=arlist.get(i).price;\r\n\t\t}\r\n\t\treturn totalPrice;\r\n\t}", "public void addOrder(HashMap<Integer, Integer> orders, int manager_id, int orderMethod, Object userObject) {\n HashMap<Integer, Product> products = new HashMap<Integer, Product>();\n double order_totalprice = 0;\n double order_price = 0;\n try {\n DBConnect connectionTester = new DBConnect();\n connectionTester.testConnection();\n\n for (int product_id : orders.keySet()) {\n\n String sql = \"select * from product where idproduct = ?\";\n PreparedStatement prpStmt = connectionTester.connection.prepareStatement(sql);\n prpStmt.setInt(1, product_id);\n\n // Not only is information requested, information like the total price is also processed\n ResultSet result = prpStmt.executeQuery();\n while (result.next()) {\n int id_product = result.getInt(\"idproduct\");\n String product_name = result.getString(\"product_name\");\n double price = result.getDouble(\"price\");\n int in_stock = result.getInt(\"in_stock\");\n String amount = result.getString(\"amount\");\n int ordered_amount = orders.get(product_id);\n if (orderMethod == 2 || orderMethod == 3) {\n order_price = result.getDouble(\"price\") * ordered_amount;\n } else if (orderMethod == 1) {\n order_price = result.getDouble(\"price\") * ordered_amount - 0.10;\n }\n\n // Calling the builder to store the information in a class\n products.put(id_product, new Product.Builder(id_product)\n .productName(product_name)\n .productPrice(price)\n .productInStock(in_stock)\n .productAmount(amount)\n .productOrderedAmount(ordered_amount)\n .productOrderPrice(order_price)\n .build());\n order_totalprice = order_totalprice + order_price;\n }\n }\n\n } catch (SQLException err) {\n System.out.println(err.getMessage());\n }\n\n reviewOrder(products, order_totalprice, manager_id, orderMethod, userObject);\n }", "void getMarketOrders();", "private void getSum() {\n\t\tint sum =0;\r\n\t\t\r\n\t\tfor(int i=0; i<index; i++) {\r\n\t\t\tif(products[i] != null)\r\n\t\t\t\tsum += products[i].getPrice();\r\n\t\t}\r\n\t\tSystem.out.println(sum);\r\n\t}", "public BigDecimal getPriceList();", "public BigDecimal calculateTotal() {\r\n BigDecimal orderTotal = BigDecimal.ZERO;\r\n \r\n final Iterator<Item> iterator = myShoppingCart.keySet().iterator();\r\n \r\n while (iterator.hasNext()) {\r\n final BigDecimal currentOrderPrice = myShoppingCart.get(iterator.next());\r\n \r\n orderTotal = orderTotal.add(currentOrderPrice);\r\n }\r\n \r\n //if membership take %10 off the total cost\r\n if (myMembership) {\r\n if (orderTotal.compareTo(new BigDecimal(\"25.00\")) == 1) { //myOrderTotal > $25\r\n final BigDecimal discount = DISCOUNT_RATE.multiply(orderTotal); \r\n orderTotal = orderTotal.subtract(discount);\r\n }\r\n }\r\n \r\n return orderTotal.setScale(2, RoundingMode.HALF_EVEN);\r\n }", "public void reportNoOfSalesMessage(Map<String, List<Message>> msgMap);", "@Override\n public Map.Entry<Order, Integer> process(int resultOrder, Map<String, Order> orderMap) {\n Order answerValuableOrder = null;\n Integer answerOrderValue =(resultOrder == OrderMetric.HIGHEST? -1 : Integer.MAX_VALUE);\n Integer orderValue;\n\n for(Order order : orderMap.values()){\n Integer counter;\n\n orderValue=0;\n //For each order item\n for(OrderItem item : order.getItems()) {\n orderValue += item.getPrice_cents()*item.getQuantity();\n }\n if(resultOrder == OrderMetric.HIGHEST) {\n if (orderValue > answerOrderValue) {\n answerValuableOrder = order;\n answerOrderValue = orderValue;\n }\n }else\n if(orderValue < answerOrderValue) {\n answerValuableOrder = order;\n answerOrderValue = orderValue;\n }\n }\n return new HashMap.SimpleEntry<>(answerValuableOrder, answerOrderValue);\n }", "public double calculateOrderTotalWithDiscountsAndShipping(String[] order, boolean isMember){\n\t\t//TODO\n\t\t\n\t\tint a=discountByItemPrice(order,isMember);\n\t\tint b=discountByItemCount(order,isMember);\n\t\tdouble price=getOrderTotalWithoutDiscount(order);\n\t\t\n\t\tint discount= a>b ? a:b;\n\t\t\n\t\tif(isShippingFree(order,isMember)) {\n\t\t\t\n\t\t\tprice=price-(price*discount/100);\n\t\t}else {\n\t\t\tprice=price-(price*discount/100)+SHIPPING_CHARGE;\n\t\t}return price;\n\t\t\n\t}", "Map<String, Map<String, Double>> getElementCosts();", "public static List<InvoiceDto> createRevenueFinancialSummary(List<InvoiceDto> dtos)\n {\n HashMap<String, InvoiceDto> map = new HashMap<String, InvoiceDto>();\n List<InvoiceDto> retList = new ArrayList<InvoiceDto>();\n\n for (InvoiceDto dto : dtos) {\n\n String key = String.valueOf(dto.getMonthYear().getYear()) + \"01\";\n\n InvoiceDto entry = null;\n if (map.containsKey(key)) {\n entry = map.get(key);\n } else {\n entry = new InvoiceDto();\n entry.setMonthYear(new MonthYear(key));\n\n entry.setHours(0.0);\n entry.setTotalGross(0.0);\n entry.setTotalRecvGross(0.0);\n map.put(key, entry);\n }\n\n entry.setHours(entry.getHours() + dto.getHours());\n\n entry.setTotalGross(entry.getTotalGross() + dto.getTotalGross());\n if (!DateTimeUtils.isNullDate(dto.getReceivedDate()))\n {\n entry.setTotalRecvGross(entry.getTotalRecvGross() + dto.getTotalGross());\n }\n }\n\n for (String key : map.keySet())\n {\n retList.add(map.get(key));\n }\n\n SortUtils.sortFinancialDto(retList, false);\n\n return retList;\n }", "public synchronized double getTotal(){\n double totalPrice=0;\n \n for(ShoppingCartItem item : getItems()){\n totalPrice += item.getTotal();\n }\n \n return totalPrice;\n }", "public static double calculateTotals(double[] money) {\n int element = 0; //The element to add\n double total = 0; //The total sales/commissions\n \n while (element < money.length) { //Add each element\n total += money[element];\n element++;\n }\n \n //Return total\n return total;\n }", "public int getTotalPriceOfSoldBeanBags() {\n int salesTotal = 0;\r\n // Loop through every object in the \"stockList\" object array list.\r\n for (int i = 0; i < stockList.size(); i++) {\r\n // If the current \"stockList\" beanBag boolean state \"isSold()\" is true.\r\n if (((BeanBag) stockList.get(i)).isSold()) {\r\n // Increment the \"salesTotal\" variable by the beanBag price.\r\n salesTotal += ((BeanBag) stockList.get(i)).getPrice();\r\n }\r\n }\r\n // Return the value of the integer \"salesTotal\".\r\n return salesTotal;\r\n }", "public Map<String, Stock> getStocks();", "public int totalAllocatedOrders();", "List<Product> getProducts(Order order);", "@Override\n\tpublic List<ProfitResult> profitStatistic(Request staticRequest) {\n\t\tList<ProfitResult> result = new ArrayList<>();\n\t\tMap<String, int[]> buySellMap = new TreeMap<String, int[]>();\n\t\tIterator<Map.Entry<String, Map<LocalDate, List <Transaction>>>> iterator = this.result.entrySet().iterator();\n\t\twhile (iterator.hasNext()) {\n\t\t\tMap.Entry<String, Map<LocalDate, List <Transaction>>> entry = iterator.next();\n\t\t\tIterator<Map.Entry<LocalDate, List <Transaction>>> iterator2 = entry.getValue().entrySet().iterator();\n\t\t\twhile (iterator2.hasNext()) {\n\t\t\t\tMap.Entry<LocalDate, List <Transaction>> entry2 = iterator2.next();\n\t\t\t\tfor (Transaction Tra : entry2.getValue()) {\n\t\t\t\t\tint buySellAmount [] = new int [] {0,0};\n\t\t\t\t\tif( Tra.getMode().equals(TransactionMode.BUY)) {\n\t\t\t\t\t\tif (buySellMap.containsKey(Tra.getCurrencyCode())) {\n\t\t\t\t\t\t\tbuySellAmount[1] = buySellMap.get(Tra.getCurrencyCode())[1];\n\t\t\t\t\t\t\tbuySellAmount[0] = buySellMap.get(Tra.getCurrencyCode())[0] + (int)(Tra.getAmount()*this.currencyMap.get(entry2.getKey()).get(Tra.getCurrencyCode())*1.005d);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tbuySellAmount[0] = (int)(Tra.getAmount()*this.currencyMap.get(entry2.getKey()).get(Tra.getCurrencyCode())*1.005d);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif( Tra.getMode().equals(TransactionMode.SELL)) {\n\t\t\t\t\t\tif (buySellMap.containsKey(Tra.getCurrencyCode())) {\n\t\t\t\t\t\t\tbuySellAmount[0] = buySellMap.get(Tra.getCurrencyCode())[0];\n\t\t\t\t\t\t\tbuySellAmount[1] = buySellMap.get(Tra.getCurrencyCode())[1] + (int)(Tra.getAmount()*this.currencyMap.get(entry2.getKey()).get(Tra.getCurrencyCode())*0.995d);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tbuySellAmount[1] = (int)(Tra.getAmount()*this.currencyMap.get(entry2.getKey()).get(Tra.getCurrencyCode())*0.995d);\n\n\t\t\t\t\t\t}\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tbuySellMap.put(Tra.getCurrencyCode(), buySellAmount);\n\n\t\t\t\t\t}\n\t\t\t\tIterator<Map.Entry<String, int []>> iterator3 = buySellMap.entrySet().iterator();\n\t\t\t\twhile (iterator3.hasNext()) {\n\t\t\t\t\tMap.Entry<String, int []> entry3 = iterator3.next();\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tresult.add(new ProfitResult(entry3.getValue()[0], entry3.getValue()[1], entry2.getKey(), entry.getKey(), entry3.getKey()));\n\t\t\t\t}\n\t\t\t\tbuySellMap.clear();\n\t\t\t}\n\t\t}\n\t\treturn result;\n\n\t}", "public void printOrder(){\n System.out.println(count);\n \n double price=0;\n for (product object : this.pro_o) {\n System.out.println(object.getName() + \" quantity : \" + object.getQuantity()+\" price : \" + object.getPrice());\n price+=object.getQuantity()*object.getPrice();\n }\n System.out.println(\"total : \" + price );\n }", "void getOrders();", "private static Map<String, Double> findAveragePriceViewedAllSessions(\r\n List<String> sessionsWithPurchases, Map<String, List<View>> viewsFromSessions\r\n ) {\r\n // Initializes the list of doubles (averages) we're going to return.\r\n Map<String, Double> averageMap = new HashMap<>();\r\n\r\n // Calculates the average price of viewed items in each session.\r\n for (String session : sessionsWithPurchases) {\r\n int viewPriceTot = 0;\r\n int viewedItems = 0;\r\n for (View viewItem : viewsFromSessions.get(session)) {\r\n viewPriceTot += viewItem.getPrice();\r\n viewedItems += 1;\r\n }\r\n averageMap.put(session, ((double) viewPriceTot) / viewedItems);\r\n }\r\n\r\n return averageMap;\r\n }", "public void initSalesList() {\n\n String sql = \"SELECT menu.id_product, menu.name, menu.price,size.size, COUNT(orders_menu.id_order) \"\n + \"FROM menu, orders_menu, orders, size WHERE menu.id_product=orders_menu.id_product \"\n + \"AND orders.id_order=orders_menu.id_order AND orders.id_status=4 \"\n + \"AND size.id_size=menu.id_size GROUP BY menu.id_product\";\n\n Session session = HibernateUtil.getSessionFactory().getCurrentSession();\n\n session.beginTransaction();\n List<Object[]> empDepts = session.createNativeQuery(sql).list();\n\n salesFxObservableList.clear();\n for (Object[] objects : empDepts) {\n SalesFx salesFx = new SalesFx();\n salesFx.setIdProduct((Integer) objects[0]);\n salesFx.setName((String) objects[1]);\n salesFx.setPrice((Integer) objects[2]);\n salesFx.setSize((String) objects[3]);\n BigInteger bigInteger = (BigInteger) objects[4];\n salesFx.setSale(bigInteger.intValue());\n salesFxObservableList.add(salesFx);\n }\n\n session.getTransaction().commit();\n }", "public Map<Integer, Integer> getBalanceQuantityForOrder(ReturnDocument rdoc, boolean isRouted) {\r\n return this.returnOrderDAO.getBalanceQuantityForOrder(rdoc, isRouted);\r\n }", "public Integer getSales() {\n return sales;\n }", "public BigDecimal getTotal() {\n BigDecimal total = new BigDecimal(0);\n for (Item item : items){\n int quantity = item.getQuantity();\n BigDecimal subtotal = item.getPrice().multiply(new BigDecimal(quantity));\n total = total.add(subtotal);\n }\n return total;\n }", "private static List<String> getItemsPurchasedByCustomer(\r\n List<String> sessionListForCustomer,\r\n Map<String, List<Buy>> buysFromSessions\r\n ){\r\n // Initializes list of products.\r\n List<String> listProduct = new LinkedList<>();\r\n\r\n // Goes through every session in the session list\r\n // and adds every product that was bought within those\r\n // sessions to listProduct.\r\n for (String session: sessionListForCustomer) {\r\n for (Buy purchase: buysFromSessions.get(session)) {\r\n if (!listProduct.contains(purchase)) {\r\n listProduct.add(purchase.getProduct());\r\n }\r\n }\r\n }\r\n return listProduct;\r\n }", "@Override\n\tpublic Integer getTotal(Map<String, Object> queryMap) {\n\t\treturn orderInDao.getTotal(queryMap);\n\t}", "@Override\n\tpublic int getTotal(Map<String, Object> map) {\n\t\treturn this.mapper.getTotal(map);\n\t}", "public void salesTotal(){\n\t\tif (unitsSold<10){\n\t\t\tsetTotalCost(basePrice);\n\t\t\tsetDiscount(basePrice - this.getCost());\n\t\t}\n\t\telse if (unitsSold<20){\n\t\t\tsetTotalCost((RETAIL_PRICE*.8)*unitsSold);\n\t\t\tsetDiscount(basePrice - this.getCost());\n\t\t\t\n\t\t}\n\t\telse if (unitsSold<50){\n\t\t\tsetTotalCost((RETAIL_PRICE*.7)*unitsSold);\n\t\t\tsetDiscount(basePrice - this.getCost());\n\t\t}\n\t\telse if (unitsSold<100){\n\t\t\tsetTotalCost((RETAIL_PRICE*.6)*unitsSold);\n\t\t\tsetDiscount(basePrice - this.getCost());\n\t\t}\n\t\telse {\n\t\t\tsetTotalCost((RETAIL_PRICE*.5)*unitsSold);\n\t\t\tsetDiscount(basePrice - this.getCost());\n\t\t}\n\t}", "public int getTotalPriceOfReservedBeanBags() {\n int TotalReservedPrice = 0;\r\n // Loop through every object in the \"stockList\" object array list.\r\n for (int i = 0; i < stockList.size(); i++) {\r\n // Define int \"CurrentPrice\" and set to value in the \"stockList\" object array list.\r\n int CurrentPrice = ((BeanBag) stockList.get(i)).getPrice();\r\n // If the beanbag in \"stockList\" is reserved.\r\n if (((BeanBag) stockList.get(i)).getReserved()) {\r\n // Increment the value of \"TotalReservedPrice\" by int \"CurrentPrice\".\r\n TotalReservedPrice = TotalReservedPrice + CurrentPrice;\r\n }\r\n }\r\n // Once all value's examined, return the value of \"TotalReservedPrice\" int.\r\n return TotalReservedPrice;\r\n }" ]
[ "0.737918", "0.6881436", "0.66810787", "0.66436654", "0.6601821", "0.65245026", "0.63999754", "0.62804025", "0.62216127", "0.61162674", "0.6097479", "0.60589844", "0.5992434", "0.5977349", "0.59311026", "0.58918357", "0.5874281", "0.5854757", "0.5808338", "0.5789616", "0.57521087", "0.57376164", "0.57374173", "0.57201993", "0.5707719", "0.5700555", "0.570003", "0.56689787", "0.5636806", "0.56073266", "0.55859256", "0.5577806", "0.55618304", "0.55490327", "0.554629", "0.5542049", "0.5530218", "0.5501587", "0.54464895", "0.5437524", "0.5415315", "0.54042095", "0.54031205", "0.5395707", "0.5394851", "0.53877395", "0.5380051", "0.53627545", "0.5360655", "0.53491604", "0.5348003", "0.53272796", "0.5325918", "0.5325448", "0.53103703", "0.529235", "0.5291541", "0.528952", "0.52882683", "0.52701944", "0.52592105", "0.52508616", "0.5222155", "0.5207018", "0.52042264", "0.51991683", "0.5197769", "0.5187596", "0.51793957", "0.51663953", "0.51660895", "0.5153112", "0.514824", "0.51456517", "0.51328415", "0.513031", "0.5127167", "0.51259756", "0.51250494", "0.5120197", "0.51185733", "0.511388", "0.5108016", "0.5095653", "0.50750124", "0.5066653", "0.5059819", "0.5055749", "0.50512457", "0.5050826", "0.504799", "0.5045855", "0.5040864", "0.50405174", "0.5035531", "0.5030468", "0.5026972", "0.50179696", "0.5011397", "0.5003885" ]
0.8053448
0
Returns a map with the total price spent on each 'beer' product, if used in an order NOTE: Products not sold will not show up in the map
public Map<String, Double> getSalesPrBeer() { Map<String, Double> sales = new HashMap<>(); for (Order o : orders) { for (ProductOrder po : o.getAllProducts()) { Product p = po.getProduct(); String category = po.getProduct().getCategory(); if (category.equals("fadøl") || category.equals("flaske") || category.equals("fustage")) { String name = p.getName().split(",")[0].trim(); Double currentTotal = sales.get(name); if (currentTotal == null) { currentTotal = 0.0; } currentTotal += po.price(); sales.put(name, currentTotal); } } } return sales; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public HashMap<String, ArrayList[]> determineSale() {\n HashMap<String, ArrayList[]> ordersMap = new HashMap<>();\n ordersMap.put(\"ms\", new ArrayList<Integer>[2]);\n ordersMap.put(\"gs\", new ArrayList<Integer>[2]);\n ordersMap.put(\"xlf\", new ArrayList<Integer>[2]);\n ordersMap.put(\"wfc\", new ArrayList<Integer>[2]);\n ordersMap.put(\"bond\", new ArrayList<Integer>[2]);\n\n Integer temp;\n int ind = 0;\n ArrayList<Integer> prices = ordersMap.get(\"bond\")[0];\n ArrayList<Integer> quantities = ordersMap.get(\"bond\")[1];\n for (int i = 0; i < 3; i++) {\n temp = bondsBuy.poll();\n if (prices.get(ind).equals(temp)) {\n quantities.set(ind, quantities.get(ind) + 1);\n } else {\n prices.add(temp);\n quantities.add(1);\n ind++;\n }\n }\n ind = 0;\n prices = ordersMap.get(\"gs\")[0];\n quantities = ordersMap.get(\"gs\")[1];\n for (int i = 0; i < 2; i++) {\n temp = bondsBuy.poll();\n if (prices.get(ind).equals(temp)) {\n quantities.set(ind, quantities.get(ind) + 1);\n } else {\n prices.add(temp);\n quantities.add(1);\n ind++;\n }\n } \n ind = 0;\n prices = ordersMap.get(\"ms\")[0];\n quantities = ordersMap.get(\"ms\")[1]; \n for (int i = 0; i < 3; i++) {\n temp = bondsBuy.poll();\n if (prices.get(ind).equals(temp)) {\n quantities.set(ind, quantities.get(ind) + 1);\n } else {\n prices.add(temp);\n quantities.add(1);\n ind++;\n }\n }\n ind = 0;\n prices = ordersMap.get(\"wfc\")[0];\n quantities = ordersMap.get(\"wfc\")[1]; \n for (int i = 0; i < 2; i++) {\n temp = bondsBuy.poll();\n if (prices.get(ind).equals(temp)) {\n quantities.set(ind, quantities.get(ind) + 1);;\n } else {\n prices.add(temp);\n quantities.add(1);\n ind++;\n }\n }\n ind = 0;\n prices = ordersMap.get(\"xlf\")[0];\n quantities = ordersMap.get(\"xlf\")[1]; \n for (int i = 0; i < 10; i++) {\n temp = bondsBuy.poll();\n if (prices.get(ind).equals(temp)) {\n quantities.set(ind, quantities.get(ind) + 1);\n } else {\n prices.add(temp);\n quantities.add(1);\n ind++;\n }\n }\n return ordersMap;\n }", "public Map<Pricelist, Double> getSalesPrPricelist() {\n\t\tMap<Pricelist, Double> sales = new HashMap<>();\n\n\t\tfor (Order o : orders) {\n\t\t\tDouble currentTotal = sales.get(o.getPricelist());\n\n\t\t\tif (currentTotal == null) {\n\t\t\t\tcurrentTotal = 0.0;\n\t\t\t}\n\n\t\t\tcurrentTotal += o.totalPrice();\n\n\t\t\tsales.put(o.getPricelist(), currentTotal);\n\t\t}\n\n\t\treturn sales;\n\t}", "Map<Goods, Integer> getQuantityByBrand(Brand brand) throws StoreKeeperWorkException;", "double calculateTotalPrice(Map<String, Item> itemMap, List<String> itemList);", "private Map<String, Double> getMarketPriceMap() {\n String marketData = Utils.readFile(marketFile);\n MarketResponse[] marketDetails = gson.fromJson(marketData, MarketResponse[].class);\n return Arrays.stream(marketDetails)\n .collect(Collectors.toMap(MarketResponse::getIsin, MarketResponse::getPrice));\n }", "private double calculateTotal(){\r\n double total = 0;\r\n\r\n for(Restaurant restaurant: restaurantMap.getRestaurantMap().values()){\r\n total += restaurant.getRevenue();\r\n }\r\n\r\n return total;\r\n }", "public static void main(String[] args) {\n\t\tMap<BigDecimal, String> result3 = items.stream()\r\n\t\t\t\t.collect(Collectors.toMap(Item::getPrice, Item::getName, (s, a) -> s + \", \" + a));\r\n\t\tresult3.forEach((k, v) -> System.out.println(k + \" \" + v));\r\n\r\n\t\tMap<Integer, String> map = items.stream()\r\n\t\t\t\t.collect(Collectors.toMap(Item::getQuantity, Item::getName, (x, y) -> x + \", \" + y));\r\n\t\tmap.forEach((x, y) -> System.out.println(\"Key: \" + x + \", value: \" + y));\r\n\t\tMap<Integer, String> map1 = items.stream().collect(\r\n\t\t\t\tCollectors.toMap(Item::getQuantity, Item::getName, (x, y) -> x + \", \" + y, LinkedHashMap::new));\r\n\t\tmap.forEach((x, y) -> System.out.println(\"Key: \" + x + \", value: \" + y));\r\n\r\n\t\t/*\r\n\t\t * Map<BigDecimal, List<Item>> result1 =\r\n\t\t * items.stream().collect(Collectors.groupingBy(Item::getPrice));\r\n\t\t * Map<BigDecimal, List<Item>> result2 = items.stream()\r\n\t\t * .collect(Collectors.groupingBy(Item::getPrice, Collectors.toList()));\r\n\t\t * Map<BigDecimal, Item> result4 =\r\n\t\t * items.stream().collect(Collectors.toMap(Item::getPrice, Item -> Item));\r\n\t\t * Map<BigDecimal, String> toMapuse = items.stream()\r\n\t\t * .collect(Collectors.toMap(Item::getPrice, Item::getName, (s, a) -> s + \", \" +\r\n\t\t * a)); ///toMapuse.forEach((k, v) -> System.out.print(k + \" \" + v));\r\n\t\t */\r\n\t}", "public static void main(String[] args) {\n\t\tList<Map<String, Object>> dataList = new ArrayList<>();\n\t\tMap<String, Object> apple = new TreeMap<>();\n\t\tapple.put(\"Items\", \"Apple\");\n\t\tapple.put(\"Price\", 20.00);\n\t\tapple.put(\"Quantity\", 10);\n\n\t\tdataList.add(apple);\n\n\t\tMap<String, Object> orange = new TreeMap<String, Object>();\n\t\torange.put(\"Items\", \"Orange\");\n\t\torange.put(\"Price\", 21.99);\n\t\torange.put(\"Quantity\", 10);\n\n\t\tdataList.add(orange);\n\n\t\tSet<String> appleEntry = apple.keySet();\n\n\t\tIterator<String> appleIt = appleEntry.iterator();\n\n\t\tObject t = 0;\n\t\twhile (appleIt.hasNext()) {\n\t\t\tString key = appleIt.next();\n\t\t\tObject value = apple.get(key);\n\n\t\t\tdouble p = (double) apple.get(\"Price\");\n\t\t\tInteger q = (Integer) apple.get(\"Quantity\");\n\t\t\tt = p * q;\n\n\t\t\tSystem.out.print(key + \": \" + value + \" \");\n\t\t}\n\t\tSystem.out.println(\"SubTotal: \" + t);\n\n\t\tSet<String> orangeEntry = orange.keySet();\n\n\t\tObject t1 = 0;\n\t\tfor (String forLoop : orangeEntry) {\n\t\t\tString key = forLoop;\n\t\t\tObject value = orange.get(forLoop);\n\n\t\t\tDouble p = (Double) orange.get(\"Price\");\n\t\t\tInteger q = (Integer) orange.get(\"Quantity\");\n\t\t\tt1 = p * q;\n\n\t\t\tSystem.out.print(key + \": \" + value + \" \");\n\t\t}\n\t\tSystem.out.println(\"SubTotal: \" + t1);\n\n\t\tdouble appleTotal = (double) t;\n\t\tdouble orangeTotal = (double) t1;\n\t\tdouble totalPurchase = appleTotal + orangeTotal;\n\n\t\tSystem.out.println(\"Your Purchase is: \" + totalPurchase);\n\n\t\tSystem.out.println(\"- - - A N O T H E R - W A Y - - -\");\n\n\t\tList<Map<String, Object>> dataList1 = new ArrayList<Map<String, Object>>();\n\n\t\tMap<String, Object> appleMap = new HashMap<String, Object>();\n\t\tappleMap.put(\"Items\", \"Apple\");\n\t\tappleMap.put(\"Price\", 20.00);\n\t\tappleMap.put(\"Quantity\", 10);\n\t\tdataList1.add(appleMap);\n\n\t\tMap<String, Object> orangeMap = new HashMap<String, Object>();\n\t\torangeMap.put(\"Items\", \"Orange\");\n\t\torangeMap.put(\"Price\", 21.99);\n\t\torangeMap.put(\"Quantity\", 10);\n\n\t\tdataList1.add(orangeMap);\n\n\t\t// find purchase total Price.\n\t\tdouble purchaseTotalPrice = 0;\n\n\t\tfor (Map<String, Object> map : dataList1) {\n\t\t\tString items = map.get(\"Items\").toString();\n\t\t\tdouble price = Double.parseDouble(map.get(\"Price\").toString());\n\t\t\tdouble quantity = Double.parseDouble(map.get(\"Quantity\").toString());\n\t\t\tdouble lineTotal = price * quantity;\n\n\t\t\tSystem.out.println(\n\t\t\t\t\t\"Items: \" + items + \" Price: \" + price + \" Quantity: \" + quantity + \" SubTotal: \" + lineTotal);\n\t\t\tpurchaseTotalPrice += lineTotal;\n\t\t}\n\t\tSystem.out.println(\"Your Purchase total : \" + purchaseTotalPrice);\n\t}", "private Map<Integer, Integer> getShoppingCartBookQtyMap(List<Book> bookList, int userId) {\n Map<Integer, Integer> shoppingCartBookQty = new HashMap<Integer, Integer>();\n for(Book book : bookList) {\n int bookId = book.getBookId();\n DAOShoppingCart daoShoppingCart = new DAOShoppingCart();\n ShoppingCart shoppingCart = daoShoppingCart.getShoppingCartByBookIdCustomerId(userId, bookId);\n if(shoppingCart != null) {\n shoppingCartBookQty.put(bookId, shoppingCart.getQuantity());\n }\n }\n return shoppingCartBookQty;\n }", "public Map<User, Double> getSalesPrUser() {\n\t\tMap<User, Double> sales = new HashMap<>();\n\n\t\tfor (Order o : orders) {\n\t\t\tDouble currentTotal = sales.get(o.getUser());\n\n\t\t\tif (currentTotal == null) {\n\t\t\t\tcurrentTotal = 0.0;\n\t\t\t}\n\n\t\t\tcurrentTotal += o.totalPrice();\n\n\t\t\tsales.put(o.getUser(), currentTotal);\n\t\t}\n\n\t\treturn sales;\n\t}", "@Override\n public USMoney calculatePrice() {\n USMoney sumPrice = new USMoney();\n for (int i = 0; i < curArrayIndex; i++) {\n sumPrice = sumPrice.add(items[i].getPrice());\n if (items[i].isFragile()) {\n sumPrice.addTo(10, 0);\n }\n }\n sumPrice.addTo(100, 0);\n return sumPrice;\n }", "Map<Goods, Integer> getQuantityByDepartment(Department department) throws StoreKeeperWorkException;", "public static HashMap<Integer, Item> storeItems(){\n\t\tItem prod1 = new Item(\"Candy\",40);\n\t\tItem prod2 = new Item(\"Bread\",30);\n\t\tItem prod3 = new Item(\"Butter\",50);\n\t\tItem prod4 = new Item(\"Milk\",43);\n\t\tItem prod5 = new Item(\"Toast\",60);\n\t\tItem prod6 = new Item(\"Curd\",20);\n\t\tItem prod7 = new Item(\"Cream\",80);\n\t\tItem prod8 = new Item(\"Pastry\",45);\n\t\tItem prod9 = new Item(\"Cake\",300);\n\t\tItem prod10 = new Item(\"Panner\",200);\n\t\tItem prod11 = new Item(\"Egg\",8);\n\t\tproducts.put(1,prod1);\n\t\tproducts.put(2,prod2);\n\t\tproducts.put(3,prod3);\n\t\tproducts.put(4,prod4);\n\t\tproducts.put(5,prod5);\n\t\tproducts.put(6,prod6);\n\t\tproducts.put(7,prod7);\n\t\tproducts.put(8,prod8);\n\t\tproducts.put(9,prod9);\n\t\tproducts.put(10,prod10);\n\t\tproducts.put(11,prod11);\n\t\treturn products;\n\t}", "Map<Goods, Integer> getQuantityByGroup(GoodsGroup group) throws StoreKeeperWorkException;", "public double total(){\n\tdouble total=0;\n\tfor(Map.Entry<String, Integer> pro:proScan.getProducts().entrySet()){\n\t\tString proName=pro.getKey();\n\t\tint quantity=pro.getValue();\n\t\tProductCalculator proCal=priceRule.get(proName);\n\t\tif(proCal==null)\n\t\t\tthrow new MissingProduct(proName);\n\t\t\n\t\tProductCalculator cal=priceRule.get(proName);\n\t\tdouble subtotal=cal.getTotal(quantity);\n\t\ttotal+=subtotal;\n\t\t//System.out.println(total);\n\t}\n\t//round the total price to two digit\n\treturn round(total, 2);\n}", "public Map<String, Double> getSalesPrCategory() {\n\t\tMap<String, Double> sales = new HashMap<>();\n\n\t\tfor (Order o : orders) {\n\t\t\tfor (ProductOrder po : o.getProductOrders()) {\n\t\t\t\tString category = po.getProduct().getCategory();\n\t\t\t\tDouble currentTotal = sales.get(category);\n\n\t\t\t\tif (currentTotal == null) {\n\t\t\t\t\tcurrentTotal = 0.0;\n\t\t\t\t}\n\n\t\t\t\tcurrentTotal += po.price();\n\n\t\t\t\tsales.put(category, currentTotal);\n\t\t\t}\n\t\t}\n\n\t\treturn sales;\n\t}", "public void addOrder(HashMap<Integer, Integer> orders, int manager_id, int orderMethod, Object userObject) {\n HashMap<Integer, Product> products = new HashMap<Integer, Product>();\n double order_totalprice = 0;\n double order_price = 0;\n try {\n DBConnect connectionTester = new DBConnect();\n connectionTester.testConnection();\n\n for (int product_id : orders.keySet()) {\n\n String sql = \"select * from product where idproduct = ?\";\n PreparedStatement prpStmt = connectionTester.connection.prepareStatement(sql);\n prpStmt.setInt(1, product_id);\n\n // Not only is information requested, information like the total price is also processed\n ResultSet result = prpStmt.executeQuery();\n while (result.next()) {\n int id_product = result.getInt(\"idproduct\");\n String product_name = result.getString(\"product_name\");\n double price = result.getDouble(\"price\");\n int in_stock = result.getInt(\"in_stock\");\n String amount = result.getString(\"amount\");\n int ordered_amount = orders.get(product_id);\n if (orderMethod == 2 || orderMethod == 3) {\n order_price = result.getDouble(\"price\") * ordered_amount;\n } else if (orderMethod == 1) {\n order_price = result.getDouble(\"price\") * ordered_amount - 0.10;\n }\n\n // Calling the builder to store the information in a class\n products.put(id_product, new Product.Builder(id_product)\n .productName(product_name)\n .productPrice(price)\n .productInStock(in_stock)\n .productAmount(amount)\n .productOrderedAmount(ordered_amount)\n .productOrderPrice(order_price)\n .build());\n order_totalprice = order_totalprice + order_price;\n }\n }\n\n } catch (SQLException err) {\n System.out.println(err.getMessage());\n }\n\n reviewOrder(products, order_totalprice, manager_id, orderMethod, userObject);\n }", "private double totalPrice(){\n\n double sum = 0;\n\n for (CarComponent carComponent : componentsCart) {\n sum += (carComponent.getCompPrice() * carComponent.getCompQuantity()) ;\n }\n return sum;\n }", "public double calculate(Map<String, Order> orders) {\n\n\t\t// This is the fix to avoid null pointer exception if Cart has null\n\t\t// orders\n\t\tif (orders == null) {\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"Orders are invalid. Input is null\");\n\t\t}\n\t\t// GrandTotal is initialized outside the loop to have the grand total\n\t\tdouble grandTotal = 0;\n\n\t\t// Iterate through the orders\n\t\tfor (Map.Entry<String, Order> entry : orders.entrySet()) {\n\t\t\tSystem.out.println(\"*******\" + entry.getKey() + \"*******\");\n\t\t\tOrder order = entry.getValue();\n\t\t\tdouble totalTax = 0;\n\t\t\tdouble total = 0;\n\n\t\t\t// Iterate through the items in the order\n\t\t\t/*\n\t\t\t * In lists indexes starts with 0 and ends with its size-1. We\n\t\t\t * should not include indexes which are not exist,it will leads to\n\t\t\t * ArrayIndexOutofBoundException. Hence logical operator = is\n\t\t\t * removed\n\t\t\t */\n\t\t\tfor (int i = 0; i < order.size(); i++) {\n\n\t\t\t\t// Calculate the taxes\n\t\t\t\tdouble tax = 0;\n\n\t\t\t\tItem item = order.get(i).getItem();\n\n\t\t\t\ttax = calculateTax(item);\n\n\t\t\t\t// Calculate the total price\n\t\t\t\tdouble totalPrice = item.getPrice() + tax;\n\n\t\t\t\t// Print out the item's total price\n\t\t\t\t// Wrong way of rounding off here it is fixed with the help of\n\t\t\t\t// BigDecimal\n\t\t\t\tSystem.out.println(item.getDescription() + \": \"\n\t\t\t\t\t\t+ roundToTwoDecimal(totalPrice));\n\n\t\t\t\t// Keep a running total\n\t\t\t\ttotalTax += tax;\n\t\t\t\ttotal += item.getPrice();\n\t\t\t}\n\n\t\t\t// Print out the total taxes\n\t\t\t// Wrong way of rounding off here it is fixed with the help of\n\t\t\t// BigDecimal\n\t\t\tSystem.out\n\t\t\t\t\t.println(\"Sales Tax: \" + roundToTwoDecimal(totalTax) /*\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * Math.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * floor\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * (\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * totalTax\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * )\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t */);\n\n\t\t\t// Fix to Total. Total should not include Tax\n\t\t\t// total = total + totalTax;\n\n\t\t\t// Print out the total amount\n\t\t\t// Wrong way of rounding off here it is fixed with the help of\n\t\t\t// BigDecimal\n\t\t\tSystem.out.println(\"Total: \" + roundToTwoDecimal(total) /*\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * Math.floor\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * (total *\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * 100) /\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * 100\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t */);\n\t\t\tgrandTotal += total;\n\t\t}\n\n\t\t// grandtotal = Math.floor(grandtotal * 100) / 100;\n\t\t// Bug Fix: 10 (Wrong way of rounding. To meet the requirements, we\n\t\t// should be using BigDecimal.)\n\t\tSystem.out.println(\"Sum of orders: \" + roundToTwoDecimal(grandTotal));\n\n\t\treturn grandTotal;\n\t}", "List<PriceInformation> getPriceForProduct(ProductModel product);", "@Override\n public double getPrice() {\n return components.stream().mapToDouble(Component::getPrice).sum();\n }", "public Map getTotalItemByVoucherNoForEditGRHelper(String voucherNo)\r\n\t{\n\t\t\tSystem.out.println(\"====HELPER====\");\r\n\t\t\tSystem.out.println(\"voucherNo :: \" + voucherNo);\r\n\t\t\tlong k = 0l;\r\n\t\t\tDouble grossTotal = 0.0;\r\n\t\t\tDouble totalTaxAmt = 0.0;\r\n\t\t\tDecimalFormat df = new DecimalFormat(\"#.##\");\r\n\t\t\t//Map<Long, PurchaseReturnGetItems> map = new HashMap<Long, PurchaseReturnGetItems>();\r\n\t\t\t\r\n\t\t\tSupplierDetailDao dao = new SupplierDetailDao();\r\n\t\t\tList productList = dao.getTotalItemByVoucherNoForEditGRDao(voucherNo);\r\n\t\t\tMap map = new HashMap();\r\n\t\t\tPurchaseReturnGetItems cs = null;\r\n\t\t\t\r\n\t\t\tfor (int i = 0; i < productList.size(); i++)\r\n\t\t\t{\r\n\t\t\t\tk++;\r\n\t\t\t\tObject[] o = (Object[]) productList.get(i);\r\n\t\t\t\tEditPurchase bean = new EditPurchase();\r\n\t\t\t\tbean.setPkGoodRecId(Long.parseLong(o[0].toString()));\r\n\t\t\t\tbean.setCatName(o[1].toString());\r\n\t\t\t\tbean.setItemName(o[2].toString());\r\n\t\t\t\tbean.setQuantity(Double.parseDouble(o[3].toString()));\r\n\t\t\t\tbean.setOriQuantity(o[3].toString());\r\n\t\t\t\tbean.setBuyPrice(Double.parseDouble(o[4].toString()));\r\n\t\t\t\tbean.setFinalBuyPrice(o[4].toString());\r\n\t\t\t\tbean.setVat(Double.parseDouble(o[5].toString()));\r\n\t\t\t\tbean.setIgst(Double.parseDouble(o[11].toString()));\r\n\t\t\t\tbean.setFinalVat(Double.parseDouble(o[5].toString()));\r\n\t\t\t\tbean.setFinalIgst(Double.parseDouble(o[11].toString()));\r\n\t\t\t\tbean.setDiscount(Double.parseDouble(o[12].toString()));\r\n\t\t\t\tbean.setFinalDisPer(o[12].toString());\r\n\t\t\t\tbean.setRollsize(Double.parseDouble(o[13].toString()));\r\n\t\t\t\tbean.setTotal(Double.parseDouble(o[6].toString()));\r\n\t\t\t\tbean.setContactPerson(o[7].toString());\r\n\t\t\t\tbean.setBarcodeNo(Long.parseLong(o[8].toString()));\r\n\t\t\t\tbean.setOndate(o[9].toString());\r\n\t\t\t\tbean.setAvailquantity(Double.parseDouble(o[10].toString()));\r\n\t\t\t\tbean.setSize(o[14].toString());\r\n\t\t\t\tbean.setSupplierId(o[15].toString());\r\n\t\t\t\tbean.setBillNo(o[16].toString());\r\n\t\t\t\tbean.setSupplierName2(o[17].toString());\r\n\t\t\t\tbean.setGrossTotal(Double.parseDouble(o[18].toString()));\r\n\t\t\t\tDouble d = 0d;\r\n\t\t\t\tbean.setReturnTotal(d);\r\n\t\t\t\tLong editQuan = 0l;\r\n\t\t\t\tbean.setEditQuantity(editQuan);\r\n\t\t\t\tbean.setTotalQuantity(k);\r\n\t\t\t\tgrossTotal = grossTotal + Double.parseDouble(o[6].toString());\r\n\t\t\t\tbean.setFinalGrossTotal(o[18].toString());\r\n\t\t\t\tbean.setSubcatName(o[19].toString());\r\n\t\t\t\tbean.setHsnSac(o[20].toString());\r\n\t\t\t\tbean.setColor(o[21].toString());\r\n\t\t\t\tbean.setStyle(o[22].toString());\r\n\t\t\t\tif(o[23] == null)\r\n\t\t\t\t{\r\n\t\t\t\t\tbean.setPurchaseCode(\"\");\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tbean.setPurchaseCode(o[23].toString());\r\n\t\t\t\t}\r\n\t\t\t\tbean.setContactPerson(o[24].toString());\r\n\t\t\t\tbean.setTaxAmount(o[25].toString());\r\n\t\t\t\tbean.setReturnedQty(o[26].toString());\r\n\t\t\t\tint rQtyInInt = (int)(Double.parseDouble(o[26].toString()));\r\n\t\t\t\tbean.setReturnedQty(String.valueOf(rQtyInInt));\r\n\t\t\t\tbean.setSalePrice(Double.parseDouble(o[27].toString()));\r\n\t\t\t\tbean.setFinalSalePrice(o[27].toString());\r\n\t\t\t\tbean.setPkSuppId(o[28].toString());\r\n\t\t\t\tbean.setProductId(o[29].toString());\r\n\t\t\t\tbean.setSubCatId(o[30].toString());\r\n\t\t\t\tbean.setCatId(o[31].toString());\r\n\t\t\t\tbean.setSuppCode(o[32].toString());\r\n\t\t\t\tbean.setSoldQty(o[33].toString());\r\n\t\t\t\tbean.setPendingBillPayment(o[34].toString());\r\n\t\t\t\tbean.setBarQtyTotalPuchaseQty(o[35].toString());\r\n\t\t\t\tSystem.out.println(\"BarQtyTotalPuchaseQty ====> \"+bean.getBarQtyTotalPuchaseQty());\r\n\t\t\t\tSystem.out.println(\"grossTotal =====> \"+grossTotal);\r\n\t\t\t\tSystem.out.println(\"***************\" + o[0]);\r\n\t\t\t\tmap.put(bean.getPkGoodRecId(), bean);\t\r\n\t\t\t/*if (catList != null && catList.size() > 0)\r\n\t\t\t{\r\n\t\t\t\tcs = (PurchaseReturnGetItems) catList.get(0);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"TOTAL ITEMLIST Helper \"+catList.size());\r\n\t\t\t\r\n\t\t\treturn cs;*/\r\n\t\t}\r\n\t\t\t\r\n\t\t\treturn map;\r\n\t}", "private double getProductsTotal() {\n\t\t\n\t\tdouble total = 0;\n\t\t\n\t\tif(!soldProducts.isEmpty()) {\n\t\t\t\n\t\t\tfor(Sellable product : soldProducts) {\n\t\t\t\t\n\t\t\t\ttotal += (product.getPrice() * product.getQuantitySold());\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\treturn total;\n\t}", "int computeNutritionalScore(Map<String, Object> product);", "public double getGesamtwert(){\n double total = 0;\n for (int i = 0; i < key; i++){\n total += getArtikel(i).getGesamt();\n }\n return total;\n }", "private double getOrderTotal() {\n double d = 0;\n\n for (Pizza p : pizzas) {\n d += p.calcTotalCost();\n }\n\n return d;\n }", "private String getBillPrice() {\n double cost = 0.00;\n\n for (MenuItem item : bill.getItems()) {\n cost += (item.getPrice() * item.getQuantity());\n cost += item.getExtraIngredientPrice();\n cost -= item.getRemovedIngredientsPrice();\n }\n\n return String.format(\"%.2f\", cost);\n }", "void calculateTotalPrice(){\n totalPrice = 0;\n cartContents.forEach(Product-> this.totalPrice = totalPrice + Product.getSellPrice());\n }", "@Override\r\n\tpublic Map<Character, Double> SetUnitPrice() {\r\n\t\tPricePerUnit.put('A', 1.25);\r\n\t\tPricePerUnit.put('B', 4.25);\r\n\t\tPricePerUnit.put('C', 1.00);\r\n\t\tPricePerUnit.put('D', 0.75);\r\n\t\treturn PricePerUnit;\r\n\t}", "public BigDecimal getTotalPrice() {\n\t\tBigDecimal total = new BigDecimal(\"0.00\");\n\t\tfor (Map.Entry<Integer, DishGeneral> entry : this.getOrderedDishes().entrySet()){\n\t\t\ttotal = total.add(new BigDecimal(entry.getValue().getAmount()).multiply(entry.getValue().getPrice()));\n\t\t}\n\t\tfor (Map.Entry<String, DishGeneral> entry : this.getOrderedTeppanyakiDishes().entrySet()){\n\t\t\tfor(Map.Entry<Integer, IngredientGeneral> ent : entry.getValue().getIngredients().entrySet()){\n\t\t\t\tBigDecimal p = new BigDecimal(ent.getValue().getGrams()).multiply(ent.getValue().getPricePerHundredGrams())\n\t\t\t\t\t\t.divide(new BigDecimal(100));\n\t\t\t\ttotal = total.add(p);\n\t\t\t}\n\t\t}\n\t\treturn total.setScale(2, RoundingMode.CEILING);\n\t}", "public int getTotalPriceOfReservedBeanBags() {\n int TotalReservedPrice = 0;\r\n // Loop through every object in the \"stockList\" object array list.\r\n for (int i = 0; i < stockList.size(); i++) {\r\n // Define int \"CurrentPrice\" and set to value in the \"stockList\" object array list.\r\n int CurrentPrice = ((BeanBag) stockList.get(i)).getPrice();\r\n // If the beanbag in \"stockList\" is reserved.\r\n if (((BeanBag) stockList.get(i)).getReserved()) {\r\n // Increment the value of \"TotalReservedPrice\" by int \"CurrentPrice\".\r\n TotalReservedPrice = TotalReservedPrice + CurrentPrice;\r\n }\r\n }\r\n // Once all value's examined, return the value of \"TotalReservedPrice\" int.\r\n return TotalReservedPrice;\r\n }", "private double calculateTotal(){\r\n double total = 0;\r\n for(int i = 0; i < orderList.size(); i++){\r\n total += orderList.getOrder(i).calculatePrice();\r\n }\r\n return total;\r\n }", "public double getTotal(){\n\t\tBigDecimal total =BigDecimal.valueOf(0);\n\t\tfor(CartItem cartItem : map.values()){\n\t\t\ttotal = total.add(BigDecimal.valueOf(cartItem.getSubtotal())) ;\n\t\t}\t\t\n\t\treturn total.doubleValue();\n\t}", "Map<String, Map<String, Double>> getElementCosts();", "private Map<Good, Integer> initiateMarketplace() {\n Random noise = new Random();\n Map<Good, Integer> map = Collections.synchronizedMap(\n new EnumMap<Good, Integer>(Good.class));\n for (Good item : Good.values()) {\n if (item.getMinTech() <= techLevel) {\n Integer price = Math.max(item.getBasePrice()\n - (techLevel - item.getMinTech()) + alignment.getPriceChange()\n + noise.nextInt(5),\n 5);\n map.put(item, price);\n }\n }\n return map;\n }", "public int sumEquipmentPrice(){\n int sum = 0;\n for (Equipment e: equipment){\n sum += e.getPrice();\n }\n return sum;\n }", "Map<Item, List<Double>> calculateDiscountPriceList(Map<String, Item> itemMap, List<String> itemList);", "@Override\r\n\tpublic double getCost() {\r\n\t\tdouble total = 0;\r\n\t\t\r\n\t\tfor(Product p: parts) {\r\n\t\t\ttotal += p.getCost();\r\n\t\t}\r\n\t\t\r\n\t\treturn total;\r\n\t}", "@Test\n public void verifyOffersApplied() {\n \tProduct product = new Product(\"Watermelon\", 0.8);\n \tProduct product2 = new Product(\"Apple\", 0.2);\n \tProduct product3 = new Product(\"Orange\", 0.5);\n \tBasket basket = new Basket();\n \tbasket.getProducts().put(product, 6);\n \tbasket.getProducts().put(product2, 4);\n \tbasket.getProducts().put(product3, 5);\n \tassertTrue(\"Have to get the price of 15 items = 6.1 ==> \", (calculator.calculatePrice(basket) - 6.1) < 0.0001);\n }", "public HashMap<Long, Integer> getProductsToBeOrdered(int totalEntries) {\n HashMap<Long, Integer> listOfProducts = new HashMap<>();\n for (int i = 0; i < totalEntries; i++) {\n listOfProducts.put((long) getRandomNumber(0, 9999), getRandomNumber(1, 10));\n }\n return listOfProducts;\n }", "public Map<String, Object> countOrdersByFood() {\n Map<String, Object> foodCount = new HashMap<String, Object>();\n for(Map.Entry<String, List<Order>> order : this.orders.entrySet()){\n foodCount.put(order.getKey(),order.getValue().size());\n }\n return foodCount;\n }", "public static LinkedHashMap<String, ArrayList<Object>> getSalePhones()\n\t{\n\t\tLinkedHashMap<String, ArrayList<Object>> salePhones = new LinkedHashMap<String, ArrayList<Object>>();\n\t\t\n\t\ttry\n\t\t{\n\t\t\tConnection conn = null;\n\t\t\t\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\").newInstance();\n\t\t\tconn = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/techLobbydatabase?autoReconnect=true&useSSL=false\", \"root\", \"admin\");\n\t\t\t\n\t\t\tStatement s = conn.createStatement ();\n\t\t\ts.executeQuery (\"SELECT phoneName, phonePrice, phoneCompany,phoneOriginal FROM phones WHERE phoneSale = 'Yes';\");\n\t\t\tResultSet rs = s.getResultSet();\n\t\t\t\n\t\t\twhile (rs.next ())\n\t\t\t{\n\t\t\t\tString phoneName = rs.getString(\"phoneName\");\n\t\t\t\tFloat phonePrice = rs.getFloat (\"phonePrice\");\n\t\t\t\tString phoneCompany = rs.getString (\"phoneCompany\");\n\t\t\t\tFloat phoneOriginal = rs.getFloat(\"phoneOriginal\");\n\t\t\t \n\t\t\t\tArrayList<Object> itemArray = new ArrayList<Object>();\n\t\t\t\titemArray.add(phoneName);\n\t\t\t\titemArray.add(phonePrice);\n\t\t\t\titemArray.add(phoneCompany);\n\t\t\t\titemArray.add(phoneOriginal);\n\t\t\t\t//itemArray.add(totalSales);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tsalePhones.put(phoneName, itemArray);\n\t\t\t}\n\t\t\t//System.out.println(\"Top 5 sold items: \"+top5SoldProducts);\n\t\t\trs.close ();\n\t\t\ts.close ();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn salePhones;\n\t\t\n\t}", "@Transient\n public Double getTotalOrderPrice() {\n double sum = 0;\n for (OrderItem oi : getOrderItems()) {\n sum += oi.getTotalPrice();\n }\n return sum;\n }", "static int calculateTotalOf(Set<Fruit> basket) {\n\t\tint totalPrice = 0;\n\t\tint Qty = 0;\n\t\tfor (Fruit fruit : basket) {\n\t\t\tQty = getQuantityOf(fruit);\n\t\t\tQty = Qty <= 0 ? 1 : Qty;\n\t\t\ttotalPrice = totalPrice + (fruit.price * Qty);\n\t\t}\n\t\tSystem.out.println(\"Total Price = \" + totalPrice);\n\t\treturn totalPrice;\n\t}", "private void getSum() {\n\t\tint sum =0;\r\n\t\t\r\n\t\tfor(int i=0; i<index; i++) {\r\n\t\t\tif(products[i] != null)\r\n\t\t\t\tsum += products[i].getPrice();\r\n\t\t}\r\n\t\tSystem.out.println(sum);\r\n\t}", "public void calculateSale()\n {\n double total = 0.00;\n int numTimbits = 0;\n int numDoughnuts = 0;\n int smallCoffee = 0;\n int mediumCoffee = 0;\n int largeCoffee = 0;\n String order;\n \n for(int i = 0; salesItem[i] != null && i < salesItem.length; i++)\n {\n if(salesItem[i] instanceof Timbit) \n {\n numTimbits = numTimbits + salesItem[i].getNumOfItems();\n }\n else if(salesItem[i] instanceof Doughnut)\n {\n numDoughnuts = numDoughnuts + salesItem[i].getNumOfItems();\n }\n else if(salesItem[i] instanceof Coffee)\n {\n if(salesItem[i].getNumOfItems()==1)\n {\n smallCoffee ++;\n }\n else if(salesItem[i].getNumOfItems()==2)\n {\n mediumCoffee ++;\n }\n else\n {\n largeCoffee ++;\n }\n }\n \n total += salesItem[i].getFinalPrice();\n }\n \n order = \"Timbits: \" + numTimbits + \"\\nDoughnuts: \" + numDoughnuts + \"\\nSmall Coffees: \" + smallCoffee + \"\\nMedium Coffees: \" + mediumCoffee + \"\\nLarge Coffees: \" + largeCoffee ; \n showText(order + String.format(\"\\nTotal Price: $%5.2f\", total), 150, 175);\n }", "public Double getProductPrice(String product){\n return services.get(product);\n }", "public BigDecimal summaryPrice() {\n BigDecimal result = basePrice;\n if (options == null) {\n return result == null ? BigDecimal.ZERO : result;\n } else {\n\n for (int i = 0; i < options.length; i++) { // to jest opcja napisania metody w klasie Car zeby od razu tam sie znajdywala i dawala nam jaka jest cena , zeby cena byla od razu elementem klasy CAR\n result = result.add(options[i].getOptionPrice());\n }\n return result;\n }\n }", "float calculatePrice () \n\t{\n\t\tfloat final_price = 0;\n\t\tfinal_price = (float)(price * quantity); // price * number of items\n\t\tfinal_price += final_price*(.10); // add tax\n\t\tif(perishable.equals(\"P\"))\n\t\t{\n\t\t\tfloat ship = (float)(20* weight)*quantity; // add shipping\n\t\t\tship += ship*.20;\n\t\t\tfinal_price += ship;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfinal_price += (20* weight)*quantity; // add shipping\n\t\t}\n\t\treturn final_price;\n\t}", "public double totalPrices()\r\n {\r\n double total = 0;\r\n //Write a loop here to total the book prices. Each object in the ArrayList bookList is a Book, so you can\r\n //use the getter as you loop through and add the price to total\r\n if(bookList != null){\r\n for(Book book: bookList){\r\n total += book.getPrice();\r\n }\r\n }\r\n return total;\r\n }", "public double getTotalCostOfOrder() {\n double total = 0;\n for (AbstractProduct item :\n this.itemsReceived) {\n total += item.getPrice();\n }\n return total;\n }", "public double getPrice() {\n double price = BASE_PRICE;\n for (Topping topping : toppings) {\n if (topping.isPremium()) {\n price += 1.25;\n } else {\n price += 0.75;\n }\n }\n return price;\n }", "public Products(){\n services = new LinkedHashMap<>();\n\n //Setting up products\n services.put(\"Consultation\", 30.0);\n services.put(\"Special Acupuncture Treatment\", 80.0);\n services.put(\"Medical Machine Therapy\", 30.0);\n services.put(\"Tapping Treatment\", 25.0);\n\n //Initializing the counter\n numCounter = services.size()+1;\n }", "public int getTotalPriceOfSoldBeanBags() {\n int salesTotal = 0;\r\n // Loop through every object in the \"stockList\" object array list.\r\n for (int i = 0; i < stockList.size(); i++) {\r\n // If the current \"stockList\" beanBag boolean state \"isSold()\" is true.\r\n if (((BeanBag) stockList.get(i)).isSold()) {\r\n // Increment the \"salesTotal\" variable by the beanBag price.\r\n salesTotal += ((BeanBag) stockList.get(i)).getPrice();\r\n }\r\n }\r\n // Return the value of the integer \"salesTotal\".\r\n return salesTotal;\r\n }", "public List<ParProdutoQuantidade> produtosMaisComprados(String cliente){\r\n Map<String, Integer> m = new HashMap<>();\r\n for (int i = 0; i < this.numFiliais; i++){\r\n Map<String, Integer> m2 = this.filial.get(i).produtosMaisComprados(cliente);\r\n for (String produto: m2.keySet()){\r\n Integer quantidade = m.get(produto);\r\n if (quantidade == null){\r\n m.put(produto, m2.get(produto));\r\n }\r\n else {\r\n m.put(produto, quantidade + m2.get(produto));\r\n }\r\n }\r\n }\r\n Set<ParProdutoQuantidade> s = new TreeSet<>();\r\n for (String produto: m.keySet()){\r\n s.add(new ParProdutoQuantidade (produto, m.get(produto)));\r\n }\r\n List<ParProdutoQuantidade> l = new ArrayList<>();\r\n for (ParProdutoQuantidade p: s){\r\n l.add(p);\r\n }\r\n return l;\r\n }", "@Test\n public void verifyWatermelonOfferApplied() {\n \tProduct product = new Product(\"Watermelon\", 0.8);\n \tBasket basket = new Basket();\n \tbasket.getProducts().put(product, 7);\n \tassertTrue(\"Have to get the price of 7 items = 4 ==> \", \n \t\t\tDouble.compare(calculator.calculatePrice(basket), 4) == 0);\n }", "public void calculatePriceOrder() {\n log.info(\"OrdersBean : calculatePriceOrder!\");\n this.priceOrder = 0;\n for (ContractsEntity c : contractsBean.getContractsEntities()\n ) {\n this.priceOrder += c.getFinalPrice();\n }\n }", "public Map<String, Stock> getStocks();", "public double getMarketTotal(double kilos) {\n double total;\n total = kilos * potatoesPrice;\n return total;\n }", "private List<Transaction> getTransactionInformation(Map<Integer, CartLine> map) {\n\n\t\tlong subtotal = 0;\n\n\t\tfor (CartLine line : map.values()) {\n\n\t\t\tsubtotal += line.getUnitPrice() * line.getQuantity();\n\t\t}\n\n\t\tDetails details = new Details();\n\n\t\tdetails.setShipping(\"30000\");\n\t\tdetails.setSubtotal(\"\" + subtotal);\n\t\tdetails.setTax(\"0\");\n\n\t\tAmount amount = new Amount();\n\n\t\tamount.setCurrency(\"USD\");\n\t\tamount.setTotal(\"\" + (subtotal + 30000));\n\n\t\tamount.setDetails(details);\n\n\t\tTransaction transaction = new Transaction();\n\t\ttransaction.setAmount(amount);\n\t\ttransaction.setDescription(\"A\");\n\n\t\tItemList itemList = new ItemList();\n\n\t\tList<Item> items = new ArrayList<Item>();\n\n\t\tfor (CartLine line : map.values()) {\n\t\t\tItem item = new Item();\n\t\t\titem.setCurrency(\"USD\");\n\t\t\titem.setName(line.getProduct().getProductName());\n\t\t\titem.setPrice(\"\" + (line.getQuantity() * line.getUnitPrice()));\n\t\t\titem.setQuantity(\"\" + line.getQuantity());\n\n\t\t\titems.add(item);\n\t\t}\n\n\t\titemList.setItems(items);\n\t\ttransaction.setItemList(itemList);\n\n\t\tList<Transaction> transactions = new ArrayList<Transaction>();\n\t\ttransactions.add(transaction);\n\n\t\treturn transactions;\n\n\t}", "public void calculateOrderCost(){\n int tmpCost=0;\n for (Vehicle v : vehicleList){\n tmpCost+=v.getCost();\n }\n totalCost=tmpCost;\n }", "@Override\n public void sell(double limitPrice, int quantity) {\n Boolean allSold = false;\n Iterator iter1 = buyOrders.entrySet().iterator();\n while(iter1.hasNext()) {\n HashMap.Entry entry = (HashMap.Entry)iter1.next();\n if(limitPrice <= (Double)entry.getKey()) {\n if(quantity < (Integer)entry.getValue()) {\n allSold = true;\n buyOrders.put((Double)entry.getKey(),(Integer)entry.getValue()-quantity) ;\n quantity =0;\n break;\n }\n }\n }\n if(!allSold){\n if(sellOrders.containsKey(limitPrice)) sellOrders.put(limitPrice,sellOrders.get(limitPrice) + quantity);\n else sellOrders.put(limitPrice,quantity);\n }\n cleanUp();\n\n\n }", "public float getValueOfSales(String product) {\n float totalValue = 0;\n LinkedList<Sale> temp = storageSale.get(product);\n Iterator<Sale> it = temp.iterator();\n while (it.hasNext()) {\n totalValue = totalValue + it.next().getValue();\n }\n return totalValue;\n }", "public int getPrice() {\n for (Item item : items) {\n price +=item.getPrice();\n }\n return price;\n }", "@Test\n public void TestABBACBBABABBACBBAB() {\n HashMap<Character, Product> productList = new HashMap<Character, Product>();\n Product product = new Product('A', 20);\n productList.put(product.getName(), product);\n\n product = new Product('B', 50, 5, 3);\n productList.put(product.getName(), product);\n\n product = new Product('C', 30);\n productList.put(product.getName(), product);\n\n com.jama.domain.Supermarket supermarket = new com.jama.domain.Supermarket(productList);\n\n try {\n int totalPrice = supermarket.checkout(\"ABBACBBABABBACBBAB\");\n assertEquals(\"Total prices does not equal.\", new Integer(480), new Integer(totalPrice));\n }\n catch (Exception e)\n {\n fail(e.getMessage());\n }\n }", "double getPricePerPerson();", "private int getPrice(HardwareSet hws, boolean used){\n if(isNull(hws)) return 0;\n return used ? hws.getTotalSellPrice() : hws.getTotalPrice();\n }", "@Override\n\tpublic Map<Tag, Double> report() {\n\t\tMap<Tag,Double> result = new HashMap<>();\n\t\tbudget.getTags().stream()\n\t\t\t\t.forEach(t->result.put(t,ledger.getSingleTag(t.getID()).getTotalAmount()-budget.getExpected(t)));\n\t\treturn result;\n\t}", "public TransationRecords sellProduct(String species, int number) {\n HashMap<String , List<HashMap<String,String >>> productInfo = new HashMap<>();\n productInfo = productList.getProductInfo();\n if (species.equals(\"CHICKEN\")) {\n int numberBeSold = 0;\n for (int i = 0; i < productList.chickenList.size(); i++) {\n if (productList.chickenList.get(i).getLifestage() == Animal.LifeStage.ADULT) {\n numberBeSold++;\n }\n }\n if (numberBeSold < number) {\n System.out.println(\"Exceeding the maximum quantity available for sale!\");\n return emptyRecords;\n }\n int hasSoldNumber = 0;\n for (int i = 0; i < productList.chickenList.size(); i++) {\n int value = new Chicken().getSellValue();\n if (productList.chickenList.get(i).getLifestage() == Animal.LifeStage.ADULT) {\n hasSoldNumber++;\n productList.chickenList.remove(i);\n this.farmOwner.addMoney(value);\n }\n if (hasSoldNumber == number) {\n return new TransationRecords(\"CHICKEN\", TransationRecords.SellOrBuy.SELL,\n number, value, (int) this.farmOwner.getMoney(), productInfo);\n }\n }\n } else if (species.equals(\"DOG\")) {\n int numberBeSold = 0;\n for (int i = 0; i < productList.dogList.size(); i++) {\n if (productList.dogList.get(i).getLifestage() == Animal.LifeStage.ADULT) {\n numberBeSold++;\n }\n }\n if (numberBeSold < number) {\n System.out.println(\"Exceeding the maximum quantity available for sale!\");\n return emptyRecords;\n }\n int hasSoldNumber = 0;\n for (int i = 0; i < productList.dogList.size(); i++) {\n int value = new Dog().getSellValue();\n if (productList.dogList.get(i).getLifestage() == Animal.LifeStage.ADULT) {\n hasSoldNumber++;\n productList.dogList.remove(i);\n this.farmOwner.addMoney(value);\n }\n if (hasSoldNumber == number) {\n return new TransationRecords(\"DOG\", TransationRecords.SellOrBuy.SELL,\n number, value, (int) this.farmOwner.getMoney(), productInfo);\n }\n }\n } else if (species.equals(\"PERCH\")) {\n int numberBeSold = 0;\n for (int i = 0; i < productList.perchList.size(); i++) {\n if (productList.perchList.get(number).getLifestage() == Animal.LifeStage.ADULT) {\n numberBeSold++;\n }\n }\n if (numberBeSold < number) {\n System.out.println(\"Exceeding the maximum quantity available for sale!\");\n return emptyRecords;\n }\n int hasSoldNumber = 0;\n for (int i = 0; i < productList.perchList.size(); i++) {\n int value = new Perch().getSellValue();\n if (productList.perchList.get(i).getLifestage() == Animal.LifeStage.ADULT) {\n hasSoldNumber++;\n productList.perchList.remove(i);\n this.farmOwner.addMoney(value);\n }\n if (hasSoldNumber == number) {\n return new TransationRecords(\"PERCH\", TransationRecords.SellOrBuy.SELL,\n number, value, (int) this.farmOwner.getMoney(), productInfo);\n }\n }\n } else if (species.equals(\"APPLE\")) {\n int numberBeSold = 0;\n for (int i = 0; i < productList.appleList.size(); i++) {\n if (productList.appleList.get(i).getPlantState().equals(\"Harvestable\")) {\n numberBeSold++;\n }\n }\n if (numberBeSold < number) {\n System.out.println(\"Exceeding the maximum quantity available for sale!\");\n return emptyRecords;\n }\n int hasSoldNumber = 0;\n for (int i = 0; i < productList.appleList.size(); i++) {\n int value = new Apple().getSellValue();\n if (productList.appleList.get(i).getPlantState().equals(\"Harvestable\")) {\n hasSoldNumber++;\n productList.appleList.remove(i);\n this.farmOwner.addMoney(value);\n }\n if (hasSoldNumber == number) {\n return new TransationRecords(\"APPLE\", TransationRecords.SellOrBuy.SELL,\n number, value, (int) this.farmOwner.getMoney(), productInfo);\n }\n }\n } else if (species.equals(\"CHERRY\")) {\n int numberBeSold = 0;\n for (int i = 0; i < productList.cherryList.size(); i++) {\n if (productList.cherryList.get(i).getPlantState().equals(\"Harvestable\")) {\n numberBeSold++;\n }\n }\n if (numberBeSold < number) {\n System.out.println(\"Exceeding the maximum quantity available for sale!\");\n return emptyRecords;\n }\n int hasSoldNumber = 0;\n for (int i = 0; i < productList.cherryList.size(); i++) {\n int value = new Cherry().getSellValue();\n if (productList.cherryList.get(i).getPlantState().equals(\"Harvestable\")) {\n hasSoldNumber++;\n productList.cherryList.remove(i);\n this.farmOwner.addMoney(value);\n }\n if (hasSoldNumber == number) {\n return new TransationRecords(\"CHERRY\", TransationRecords.SellOrBuy.SELL,\n number, value, (int) this.farmOwner.getMoney(), productInfo);\n }\n }\n } else if (species.equals(\"POTATO\")) {\n int numberBeSold = 0;\n for (int i = 0; i < productList.potatoList.size(); i++) {\n if (productList.potatoList.get(i).getPlantState().equals(\"Harvestable\")) {\n numberBeSold++;\n }\n }\n if (numberBeSold < number) {\n System.out.println(\"Exceeding the maximum quantity available for sale!\");\n return emptyRecords;\n }\n int hasSoldNumber = 0;\n for (int i = 0; i < productList.potatoList.size(); i++) {\n int value = new Potato().getSellValue();\n if (productList.potatoList.get(i).getPlantState().equals(\"Harvestable\")) {\n hasSoldNumber++;\n productList.potatoList.remove(i);\n this.farmOwner.addMoney(value);\n }\n if (hasSoldNumber == number) {\n return new TransationRecords(\"POTATO\", TransationRecords.SellOrBuy.SELL,\n number, value, (int) this.farmOwner.getMoney(), productInfo);\n }\n }\n } else if (species.equals(\"TOMATO\")) {\n int numberBeSold = 0;\n for (int i = 0; i < productList.tomatoList.size(); i++) {\n if (productList.tomatoList.get(i).getPlantState().equals(\"Harvestable\")) {\n numberBeSold++;\n }\n }\n if (numberBeSold < number) {\n System.out.println(\"Exceeding the maximum quantity available for sale!\");\n return emptyRecords;\n }\n int hasSoldNumber = 0;\n for (int i = 0; i < productList.tomatoList.size(); i++) {\n int value = new Tomato().getSellValue();\n if (productList.tomatoList.get(i).getPlantState().equals(\"Harvestable\")) {\n hasSoldNumber++;\n productList.tomatoList.remove(i);\n this.farmOwner.addMoney(value);\n }\n if (hasSoldNumber == number) {\n return new TransationRecords(\"TOMATO\", TransationRecords.SellOrBuy.SELL,\n number, value, (int) this.farmOwner.getMoney(), productInfo);\n }\n }\n }\n return emptyRecords;\n }", "private String marketPrices() {\r\n\t\tdouble[] prices=market.getPrices();\r\n\t\tString out = \"Prices Are: \";\r\n\t\tfor(int i=0; i<prices.length;i++) {\r\n\t\t\tout=out.concat(i+\": \"+String.format(\"%.2f\", prices[i])+\" || \");\r\n\t\t}\r\n\t\treturn out;\r\n\t}", "@Override\n public float getProductPrice() {\n return ProductPrice.REFLECTIONS_II_BOOSTER_PACK;\n }", "BigDecimal calculateTotalPrice(Order order);", "public Map<String, Integer> getOrderBookTotalVolume() {\n\t\treturn null;\n\t}", "@Override\n public Map.Entry<Order, Integer> process(int resultOrder, Map<String, Order> orderMap) {\n Order answerValuableOrder = null;\n Integer answerOrderValue =(resultOrder == OrderMetric.HIGHEST? -1 : Integer.MAX_VALUE);\n Integer orderValue;\n\n for(Order order : orderMap.values()){\n Integer counter;\n\n orderValue=0;\n //For each order item\n for(OrderItem item : order.getItems()) {\n orderValue += item.getPrice_cents()*item.getQuantity();\n }\n if(resultOrder == OrderMetric.HIGHEST) {\n if (orderValue > answerOrderValue) {\n answerValuableOrder = order;\n answerOrderValue = orderValue;\n }\n }else\n if(orderValue < answerOrderValue) {\n answerValuableOrder = order;\n answerOrderValue = orderValue;\n }\n }\n return new HashMap.SimpleEntry<>(answerValuableOrder, answerOrderValue);\n }", "public interface ShoppingBasketCalculator {\n\n\n /**\n * Calculate total basket price\n * @param itemMap All the items\n * @param itemList shopping list\n * @return total price\n */\n double calculateTotalPrice(Map<String, Item> itemMap, List<String> itemList);\n\n /**\n * Get list of discounted items\n * @param itemMap All the items\n * @param itemList shopping list\n * @return discounted items\n */\n Map<Item, List<Double>> calculateDiscountPriceList(Map<String, Item> itemMap, List<String> itemList);\n\n /**\n * Gets total discount\n * @param discountedList discounted list\n * @return total discounted price\n */\n double calculateDiscountedPrice(Map<Item, List<Double>> discountedList);\n\n /**\n * Get list of discounted items based on the rule\n * @param itemMap All the items\n * @param itemList shopping list\n * @return discounted items\n */\n Map<Item, List<Double>> calculateDiscountRule1PriceList(Map<String, Item> itemMap, List<String> itemList);\n}", "public Map<FruitType, Integer> groupByTypeWithQuantitySum() {\n\t\treturn fruits.stream()\n\t\t\t\t.collect(Collectors.groupingBy(Fruit::getType, Collectors.summingInt(Fruit::getQuantity)));\n\t}", "private int getTotalPrice() {\n int unitPrice = 0;\n if (((CheckBox) findViewById(R.id.whipped_cream_checkbox)).isChecked()) {\n unitPrice += Constants.PRICE_TOPPING_WHIPPED_CREAM;\n }\n\n if (((CheckBox) findViewById(R.id.chocolate_checkbox)).isChecked()) {\n unitPrice += Constants.PRICE_TOPPING_CHOCOLATE;\n }\n\n unitPrice += Constants.PRICE_PER_COFFEE;\n return getNumberOfCoffees() * unitPrice;\n }", "@Transactional\n @Override\n public StringBuffer addSalesOrderTparts(String customerID, String cartIDs, String addressID, String paymentType,\n String orderAmount, String scoreAll, String memo, String itemCount, String itemID,\n String supplierID, String itemType, String orderType, String objID, String invoiceType,\n String invoiceTitle, String generateType, String orderID,String memoIDs,String allFreight, String supplierFreightStr) throws Exception {\n \t\n String ids[] = cartIDs.split(\",\");\n String memos[] = memoIDs.split(\",\");\n List<ShoppingCartVO> shopCartList = new ArrayList<ShoppingCartVO>();\n for (String id : ids) {\n ShoppingCartVO shoppingCartVO = shoppingCartDAO.findShoppingCartByID(Long.valueOf(id));\n shopCartList.add(shoppingCartVO);\n }\n Map<String,List<ShoppingCartVO>> maps = new HashMap<String,List<ShoppingCartVO>>();\n for(ShoppingCartVO s:shopCartList){\n \tList<ShoppingCartVO> temp = new ArrayList<ShoppingCartVO>();\n \t String sid1= s.getSupplierID();\n String siname1= s.getSupplierName();\n for(ShoppingCartVO shoppingCartVO1 : shopCartList){\n \t//当前店铺对应的购物车集合\n \tString sid2 = shoppingCartVO1.getSupplierID();\n \tif(sid1.equals(sid2)){\n \t\ttemp.add(shoppingCartVO1);\n \t}\n }\n maps.put(sid1+\"_\"+siname1, temp);\n }\n \n //根据物流模板计算运费\n Map<String, Double> supplierFreightMap = new HashMap<String, Double>();\n String[] supplierFreightAll = null;\n if(StringUtil.isNotEmpty(supplierFreightStr))\n {\n \tsupplierFreightAll = supplierFreightStr.split(\"\\\\|\");\n for (int i = 0; i < supplierFreightAll.length; i++) {\n \tString[] supplierFreight = supplierFreightAll[i].split(\":\");\n \tsupplierFreightMap.put(supplierFreight[0], Double.parseDouble(supplierFreight[1]));\n \t\t} \t\n }\n \n \n StringBuffer ordersList = new StringBuffer();\n int num = 0;\n// cachedClient.delete(customerID + orderID);\n Set<String> set = maps.keySet();\n\t\tfor(String string : set){\n\t\t List<ShoppingCartVO> temp1= maps.get(string);\n\t\t double supplierFreight = 0d;\n\t\t if(supplierFreightMap.size()>0)\n\t\t {\n\t\t\t supplierFreight = supplierFreightMap.get(string);\n\t\t }\n\t\t Double amount = 0d;\n\t\t Integer count = 0;\n Integer score = 0;\n Double weight = 0d;\n\t\t for (ShoppingCartVO shoppingCartVO : temp1) {\n ItemVO itemVO = itemDAO.findItemById(shoppingCartVO.getItemID());\n count += shoppingCartVO.getItemCount();\n // weight += itemVO.getWeight();\n if (shoppingCartVO.getType() == 1) {\n amount += shoppingCartVO.getItemCount() * shoppingCartVO.getSalesPrice();\n } else if (shoppingCartVO.getType() == 2) {\n score += shoppingCartVO.getItemCount() * itemVO.getScore();\n } else if (shoppingCartVO.getType() == 3) {\n amount += shoppingCartVO.getItemCount() * itemVO.getScorePrice();\n score += shoppingCartVO.getItemCount() * shoppingCartVO.getSalesScore();\n }\n }\n\t\t //SalesOrderVO tempOrder = new SalesOrderVO();\n\t /*if (tempOrder == null) {\n\t throw new Exception(\"参数错误\");\n\t }\n\t if (\"012\".indexOf(invoiceType) == -1) {\n\t throw new Exception(\"参数错误\");\n\t }*/\n\t SalesOrderDTO salesOrderDTO = new SalesOrderDTO();\n\t salesOrderDTO.setMainID(randomNumeric());\n\t salesOrderDTO.setCustomerID(customerID);\n\t salesOrderDTO.setPaymentType(Integer.valueOf(paymentType));\n\t salesOrderDTO.setPaymentStatus(0);\n\n\t // salesOrderDTO.setExpressFee(tempOrder.getExpressFee());//运费\n\t salesOrderDTO.setProductAmount(amount);\n\t salesOrderDTO.setTotalAmount(amount + supplierFreight);\n\t salesOrderDTO.setPayableAmount(amount);\n\n\t salesOrderDTO.setOrderType(Integer.valueOf(orderType));\n\t salesOrderDTO.setMemo(getMemoBySupplier(memos,string.split(\"_\")[0]));\n\t salesOrderDTO.setInvoiceType(Integer.parseInt(invoiceType));\n\t salesOrderDTO.setInvoiceTitle(invoiceTitle);\n\t salesOrderDTO.setSupplierID(string);\n\t salesOrderDTO.setExpressFee(supplierFreight);\n\t salesOrderDAO.addSalesOrder(salesOrderDTO);\n\t ordersList.append(salesOrderDTO.getMainID()+\",\");\n\t // 支付方式1:余额支付2:货到付款3:在线支付4:积分礼品5:线下汇款\n\t if(!paymentType.equals(\"3\")){\n\t \t//3:在线支付\n\t \t CustomerDeliveryAddressVO customerDeliveryAddressVO = customerDeliveryAddressDAO.findAddressByID(Long.valueOf(addressID));\n\t \t if (customerDeliveryAddressVO != null) {\n\t \t SalesOrderDeliveryAddressDTO salesOrderDeliveryAddressDTO = new SalesOrderDeliveryAddressDTO();\n\t \t salesOrderDeliveryAddressDTO.setSalesOrderID(salesOrderDTO.getMainID());\n\t \t salesOrderDeliveryAddressDTO.setName(customerDeliveryAddressVO.getName());\n\t \t salesOrderDeliveryAddressDTO.setCountryID(customerDeliveryAddressVO.getCountryID());\n\t \t salesOrderDeliveryAddressDTO.setProvinceID(customerDeliveryAddressVO.getProvinceID());\n\t \t salesOrderDeliveryAddressDTO.setCityID(customerDeliveryAddressVO.getCityID());\n\t \t salesOrderDeliveryAddressDTO.setDisctrictID(customerDeliveryAddressVO.getDisctrictID());\n\t \t salesOrderDeliveryAddressDTO.setAddress(customerDeliveryAddressVO.getAddress());\n\t \t salesOrderDeliveryAddressDTO.setMobile(customerDeliveryAddressVO.getMobile());\n\t \t salesOrderDeliveryAddressDTO.setTelephone(customerDeliveryAddressVO.getTelephone());\n\t \t if (customerDeliveryAddressVO.getZip() != null) {\n\t \t salesOrderDeliveryAddressDTO.setZip(customerDeliveryAddressVO.getZip());\n\t \t }\n\t \t salesOrderDeliveryAddressDAO.insertSalesOrderDeliveryAddress(salesOrderDeliveryAddressDTO);\n\t \t }\n\t \t ShippingAddressVO shippingAddressVO = shippingAddressDAO.findDefaultShippingAddress();\n\t \t if (shippingAddressVO != null) {\n\t \t SalesOrderShippingAddressDTO salesOrderShippingAddressDTO = new SalesOrderShippingAddressDTO();\n\t \t salesOrderShippingAddressDTO.setSalesOrderID(salesOrderDTO.getMainID());\n\t \t salesOrderShippingAddressDTO.setName(shippingAddressVO.getName());\n\t \t salesOrderShippingAddressDTO.setCountryID(shippingAddressVO.getCountryID());\n\t \t salesOrderShippingAddressDTO.setProvinceID(shippingAddressVO.getProvinceID());\n\t \t salesOrderShippingAddressDTO.setCityID(shippingAddressVO.getCityID());\n\t \t salesOrderShippingAddressDTO.setDisctrictID(shippingAddressVO.getDisctrictID());\n\t \t salesOrderShippingAddressDTO.setAddress(shippingAddressVO.getAddress());\n\t \t salesOrderShippingAddressDTO.setMobile(shippingAddressVO.getMobile());\n\t \t salesOrderShippingAddressDTO.setTelephone(shippingAddressVO.getTelephone());\n\t \t salesOrderShippingAddressDTO.setZip(shippingAddressVO.getZip());\n\t \t salesOrderShippingAddressDAO.insertSalesOrderShippingAddress(salesOrderShippingAddressDTO);\n\t \t }\n\t }\n\t \n\t ItemDTO itemDTO = new ItemDTO();\n\t SupplierItemDTO supplierItemDTO = new SupplierItemDTO();\n\t SalesOrderLineDTO salesOrderLineDTO = new SalesOrderLineDTO();\n\t if (generateType.equals(\"quickBuy\")) {\n\t generateQuickBuyOrder(itemCount,cartIDs, itemID, supplierID, objID, salesOrderDTO, itemDTO, supplierItemDTO,\n\t salesOrderLineDTO);\n\n\t } else if (generateType.equals(\"oneKey\")) {\n\t generateOneKeyOrder(customerID, itemCount, itemType, objID, salesOrderDTO, itemDTO, supplierItemDTO,\n\t salesOrderLineDTO);\n\n\t } else if (generateType.equals(\"shoppingcart\")) {\n\t \tgenarateShoppingCartOrderTparts(customerID, cartIDs, itemCount, itemType, objID, salesOrderDTO, itemDTO,\n\t supplierItemDTO, salesOrderLineDTO);\n\t } else {\n\t throw new Exception(\"订单类型无法确定\");\n\t }\n\t num++;\n\t\t}\n return ordersList;\n }", "private Map<String,Double> getPromedioHabilidades(Cuadrilla cuadrilla){\n\t\tSystem.out.println(\"#### getPromedioHabilidades ######\");\n\t\tdouble proprod= 0, protrae= 0, prodorm = 0, prodcaa = 0;\n\t\tint cantper = 0;\n\t\tfor (CuadrillasDetalle cd : cuadrilla.getCuadrillasDetalles()) {\n\t\t\t\n\t\t\tList<TecnicoCompetenciaDetalle> tcds = \tcd.getTecnico().getTecnicoCompetenciaDetalles();\n\t\t\tfor (TecnicoCompetenciaDetalle tcd : tcds) {\n\t\t\t\tInteger codigoComp = tcd.getCompetencia().getCodigoCompetencia();\n\t\t\t\tswitch(codigoComp){\n\t\t\t\t\tcase COMPETENCIA_PRODUCTIVIDAD:\n\t\t\t\t\t\tproprod = proprod+ tcd.getGradoCompetencia().doubleValue();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase COMPETENCIA_TRABAJO_EQUIPO:\n\t\t\t\t\t\tprotrae = protrae + tcd.getGradoCompetencia().doubleValue();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase COMPETENCIA_ORIENTACION_METAS:\n\t\t\t\t\t\tprodorm = prodorm + tcd.getGradoCompetencia().doubleValue();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase COMPETENCIA_CALIDAD_ATENCION:\n\t\t\t\t\t\tprodcaa = prodcaa +tcd.getGradoCompetencia().doubleValue();\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tcantper++;\t\t\t\n\t\t}\n\t\t\t\t\t\n\t\t// promedio de las competencias de los tenicos de cada cuadrilla\n\t\tproprod = proprod/cantper; \n\t\tprotrae = protrae/cantper;\n\t\tprodorm = prodorm/cantper;\n\t\tprodcaa = prodcaa/cantper;\n\n\t\tMap<String, Double> mpproms = new LinkedHashMap<String,Double>();\n\t\tmpproms.put(\"proprod\", proprod);\n\t\tmpproms.put(\"protrae\", protrae);\n\t\tmpproms.put(\"prodorm\", prodorm);\n\t\tmpproms.put(\"prodcaa\", prodcaa);\n\t\n\t\treturn mpproms;\n\t\t\n\t}", "@Override\n\tpublic List<ProfitResult> profitStatistic(Request staticRequest) {\n\t\tList<ProfitResult> result = new ArrayList<>();\n\t\tMap<String, int[]> buySellMap = new TreeMap<String, int[]>();\n\t\tIterator<Map.Entry<String, Map<LocalDate, List <Transaction>>>> iterator = this.result.entrySet().iterator();\n\t\twhile (iterator.hasNext()) {\n\t\t\tMap.Entry<String, Map<LocalDate, List <Transaction>>> entry = iterator.next();\n\t\t\tIterator<Map.Entry<LocalDate, List <Transaction>>> iterator2 = entry.getValue().entrySet().iterator();\n\t\t\twhile (iterator2.hasNext()) {\n\t\t\t\tMap.Entry<LocalDate, List <Transaction>> entry2 = iterator2.next();\n\t\t\t\tfor (Transaction Tra : entry2.getValue()) {\n\t\t\t\t\tint buySellAmount [] = new int [] {0,0};\n\t\t\t\t\tif( Tra.getMode().equals(TransactionMode.BUY)) {\n\t\t\t\t\t\tif (buySellMap.containsKey(Tra.getCurrencyCode())) {\n\t\t\t\t\t\t\tbuySellAmount[1] = buySellMap.get(Tra.getCurrencyCode())[1];\n\t\t\t\t\t\t\tbuySellAmount[0] = buySellMap.get(Tra.getCurrencyCode())[0] + (int)(Tra.getAmount()*this.currencyMap.get(entry2.getKey()).get(Tra.getCurrencyCode())*1.005d);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tbuySellAmount[0] = (int)(Tra.getAmount()*this.currencyMap.get(entry2.getKey()).get(Tra.getCurrencyCode())*1.005d);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif( Tra.getMode().equals(TransactionMode.SELL)) {\n\t\t\t\t\t\tif (buySellMap.containsKey(Tra.getCurrencyCode())) {\n\t\t\t\t\t\t\tbuySellAmount[0] = buySellMap.get(Tra.getCurrencyCode())[0];\n\t\t\t\t\t\t\tbuySellAmount[1] = buySellMap.get(Tra.getCurrencyCode())[1] + (int)(Tra.getAmount()*this.currencyMap.get(entry2.getKey()).get(Tra.getCurrencyCode())*0.995d);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tbuySellAmount[1] = (int)(Tra.getAmount()*this.currencyMap.get(entry2.getKey()).get(Tra.getCurrencyCode())*0.995d);\n\n\t\t\t\t\t\t}\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tbuySellMap.put(Tra.getCurrencyCode(), buySellAmount);\n\n\t\t\t\t\t}\n\t\t\t\tIterator<Map.Entry<String, int []>> iterator3 = buySellMap.entrySet().iterator();\n\t\t\t\twhile (iterator3.hasNext()) {\n\t\t\t\t\tMap.Entry<String, int []> entry3 = iterator3.next();\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tresult.add(new ProfitResult(entry3.getValue()[0], entry3.getValue()[1], entry2.getKey(), entry.getKey(), entry3.getKey()));\n\t\t\t\t}\n\t\t\t\tbuySellMap.clear();\n\t\t\t}\n\t\t}\n\t\treturn result;\n\n\t}", "public double getPotatoesPrice();", "List<PriceRow> getPriceInformationsForProduct(ProductModel model);", "public float getCartPrice() {\n float totalSum = 0.0F;\n for(Publication book : shoppingCart){\n totalSum += book.getPrice();\n }\n\n return totalSum;\n }", "public void caltotalprice(){\n \tthis.mTotalPrice = 0;\n \tif (this.isCoachSeat) {\n \t\tfor (Flight f: this.mLegs) {\n \t\t\tthis.mTotalPrice += f.coachprice();\n \t\t}\n \t}else {\n \t\tfor (Flight f: this.mLegs) {\n \t\t\tthis.mTotalPrice += f.firstclassprice();\n \t\t}\n \t}\n }", "public double getClipCardSales() {\n\t\tdouble d = 0;\n\n\t\tfor (Order o : orders) {\n\t\t\tfor (ProductOrder po : o.getProductOrders()) {\n\t\t\t\tif (po.getProduct().getName().startsWith(\"Klippekort\")) {\n\t\t\t\t\td += po.price();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn d;\n\t}", "public ItemPrice getItemsPriceByCartons(Item itm) {\n ItemPrice itmPrice = new ItemPrice();\n itmPrice.calculateTotalByCarton(itm);\n return itmPrice;\n }", "public static void main(String[] args) {\n\t\tMap<String,Integer>grocery=new HashMap<>();\n\t\tgrocery.put(\"milk\",1);\n\t\tgrocery.put(\"cucumber\",3);\n\t\tgrocery.put(\"banana\",12);\n\t\tgrocery.put(\"cheese\",2);\n\t\t\n\t\tSystem.out.println(grocery);\n//create a map of items to buy, we want to save order\n\t\tMap<String,Integer>household=new LinkedHashMap<>();\n\t\thousehold.put(\"lysol\",2);\n\t\thousehold.put(\"sanitizer\",4);\n\t\thousehold.put(\"papertowel\",2);\n\t\thousehold.put(\"facemask\",20);\n\t\tSystem.out.println(household);\n\t\t\n\t\t//create a map in which we store all previous items in ascending order\n\t\tMap<String,Integer>shopping=new TreeMap<>();\n\t\tshopping.putAll(household);\n\t\tSystem.out.println(shopping);\n\t\t\n\t\t//get all keys using loop\n\t\tfor(String key:shopping.keySet()) {\n\t\t\tSystem.out.println(\"Key: \"+key);\t\n\t\t}\n\t\t//get all keys using iterator\n\t\tIterator<String> it=shopping.keySet().iterator();\n\t\twhile(it.hasNext()) {\n\t\tSystem.out.println(\"Key=\"+it.next());\n\t\t\n\t}\n\t\t//get all values using loop\n\t\tfor(int val:shopping.values()) {\n\t\t\tSystem.out.println(\"Values: \"+val);\n\t\t}\n\t\t//get all values using iterator\n\t\tIterator<Integer>iterator=shopping.values().iterator();\n\t\twhile(iterator.hasNext()) {\n\t\t\tSystem.out.println(\"Key=\"+iterator.next());\n\t\t\t\t\n}\n}", "private Map<User, Double> calcUsersProfit(Car carWinner, BetsMap map) {\n\t\tint totalAmountBets = map.getSumBets();\n\t\tList<Bet> betsForCarWinner = map.forCar(carWinner);\n\t\tMap<User, Double> usersProfit = new HashMap<>();\n\t\t\n\t\tMap<User, Double> profitForWinners = caclProfitForWinners(betsForCarWinner, totalAmountBets);\n\t\t\n\t\tmap.forEachCar((car, bets) -> {\n\t\t\tif (!car.equals(carWinner)) {\n\t\t\t\tbets.forEach(bet -> {\n\t\t\t\t\tif (!profitForWinners.containsKey(bet.getUser())) {\n\t\t\t\t\t\tdouble amount = -bet.getAmount();\n\t\t\t\t\t\tif (usersProfit.containsKey(bet.getUser())) {\n\t\t\t\t\t\t\tamount += usersProfit.get(bet.getUser());\n\t\t\t\t\t\t}\n\t\t\t\t\t\tusersProfit.put(bet.getUser(), amount);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\t\tusersProfit.putAll(profitForWinners);\n\t\t\n\t\treturn usersProfit;\n\t}", "public BigDecimal calculateTotal() {\r\n BigDecimal orderTotal = BigDecimal.ZERO;\r\n \r\n final Iterator<Item> iterator = myShoppingCart.keySet().iterator();\r\n \r\n while (iterator.hasNext()) {\r\n final BigDecimal currentOrderPrice = myShoppingCart.get(iterator.next());\r\n \r\n orderTotal = orderTotal.add(currentOrderPrice);\r\n }\r\n \r\n //if membership take %10 off the total cost\r\n if (myMembership) {\r\n if (orderTotal.compareTo(new BigDecimal(\"25.00\")) == 1) { //myOrderTotal > $25\r\n final BigDecimal discount = DISCOUNT_RATE.multiply(orderTotal); \r\n orderTotal = orderTotal.subtract(discount);\r\n }\r\n }\r\n \r\n return orderTotal.setScale(2, RoundingMode.HALF_EVEN);\r\n }", "public double getPricePerItem()\r\n {\r\n return pricePerItem;\r\n }", "public BigDecimal getShopPrice() {\n return shopPrice;\n }", "public double getBeveragePrice() {\n return beveragePrice;\n }", "@Override\n\tpublic int getPrice() {\n\t\treturn product.getPrice();\n\t}", "static BigDecimal PriceHike(String l,String h, String r) {\n\n\t\tLong lowerRangeId=Long.parseLong(l);\n\t\tLong higherRangeId=Long.parseLong(h);\n\t\tBigDecimal hike=new BigDecimal(0);\n\n\t\tSortedMap<Long, dxm116130Product> range = new TreeMap<Long, dxm116130Product>();\n\t\trange=productListOnID.subMap(lowerRangeId,true,higherRangeId,true);\n\n\t\tSet<Long> keys = range.keySet();\n\n\t\t//System.out.println(\"Found PriceHike keyset: \"+keys);\n\t\tfor(Long key: keys){\n\t\t\t\n\t\t\t//System.out.println(\"Found PriceHike key: \"+key);\n\t\t\tdxm116130Product currProduct=productListOnID.get(key);\n\t\t\thike=hike.add(currProduct.hikePrice(r));\n\t\t\tInsert(currProduct.getProductId(),currProduct.getProductPrice(),currProduct.getProductNames());\n\t\t}\n\n\n\t\treturn hike;\n\n\t}", "private void extractDataFromOrders(List<Order> orders) {\n ArrayList<LocalDate> orderedListOfMapDays = new ArrayList<LocalDate>();\n HashMap<LocalDate, Integer> dateToCoffeeCaffeineMap = new HashMap<LocalDate, Integer>(), dateToTeaCaffeineMap = new HashMap<LocalDate, Integer>();\n HashMap<LocalDate, Double> dateToCoffeeExpenditureMap = new HashMap<LocalDate, Double>(), dateToTeaExpenditureMap = new HashMap<LocalDate, Double>();\n for (int i = 0; i < 8; i++) {\n LocalDate date = ONE_WEEK_AGO.plusDays(i);\n dateToCoffeeCaffeineMap.put(date, 0);\n dateToTeaCaffeineMap.put(date, 0);\n dateToCoffeeExpenditureMap.put(date, 0.0);\n dateToTeaExpenditureMap.put(date, 0.0);\n orderedListOfMapDays.add(date);\n }\n\n // loop through orders, comparing their days and adding values accordingly\n for (Order order : orders) {\n if (order == null) continue;\n // dates (in milliseconds) from orders are clocked to start of day and converted to dates\n LocalDateTime tempDateResetTime = order.getDate().toInstant()\n .atZone(ZoneId.systemDefault())\n .toLocalDate().atStartOfDay();\n LocalDate tempDate = tempDateResetTime.toLocalDate();\n Log.d(TAG, \"ORDER ON DAY: \" + tempDate);\n\n if (ONE_WEEK_AGO.isBefore(tempDate) || ONE_WEEK_AGO.isEqual(tempDate)) {\n // CAFFEINE\n // coffee caffeine\n int dailyCaffeineFromCoffee = 0;\n dailyCaffeineFromCoffee += (order.getTotalCaffeineFromCoffee(true) > 0 ? order.getTotalCaffeineFromCoffee(true) :\n order.getTotalCaffeineFromCoffee(false) > 0 ? order.getTotalCaffeineFromCoffee(false) : 0);\n dateToCoffeeCaffeineMap.put(tempDate, dateToCoffeeCaffeineMap.get(tempDate) + dailyCaffeineFromCoffee);\n // tea caffeine\n int dailyCaffeineFromTea = 0;\n dailyCaffeineFromTea += (order.getTotalCaffeineFromTea(true) > 0 ? order.getTotalCaffeineFromTea(true) :\n order.getTotalCaffeineFromTea(false) > 0 ? order.getTotalCaffeineFromTea(false) : 0);\n dateToTeaCaffeineMap.put(tempDate, dateToTeaCaffeineMap.get(tempDate) + dailyCaffeineFromTea);\n\n // EXPENDITURES\n // coffee cost\n double dailyExpenditureFromCoffee = 0.0;\n dailyExpenditureFromCoffee += (order.getTotalCostFromCoffee(true) > 0 ? order.getTotalCostFromCoffee(true) :\n order.getTotalCostFromCoffee(false) > 0 ? order.getTotalCostFromCoffee(false) : 0.0);\n dateToCoffeeExpenditureMap.put(tempDate, dateToCoffeeExpenditureMap.get(tempDate) + dailyExpenditureFromCoffee);\n // tea cost\n double dailyExpenditureFromTea = 0.0;\n dailyExpenditureFromTea += (order.getTotalCostFromTea(true) > 0 ? order.getTotalCostFromTea(true) :\n order.getTotalCostFromTea(false) > 0 ? order.getTotalCostFromTea(false) : 0.0);\n dateToTeaExpenditureMap.put(tempDate, dateToTeaExpenditureMap.get(tempDate) + dailyExpenditureFromTea);\n }\n }\n\n // CAFFEINE SERIES\n coffeeCaffeineSeries = new DateIntegerSeries(\"Coffee\");\n teaCaffeineSeries = new DateIntegerSeries(\"Tea\");\n // for formatting, add an empty value at FRONT of series\n coffeeCaffeineSeries.add(Date.from(ONE_WEEK_AGO.minusDays(1).atStartOfDay().atZone(ZoneId.systemDefault()).toInstant()).getTime(), 0);\n teaCaffeineSeries.add(Date.from(ONE_WEEK_AGO.minusDays(1).atStartOfDay().atZone(ZoneId.systemDefault()).toInstant()).getTime(), 0);\n for (int i = 0; i < orderedListOfMapDays.size(); i++) {\n LocalDate localDate = orderedListOfMapDays.get(i);\n Integer coffeeCaffeine = dateToCoffeeCaffeineMap.get(localDate);\n Integer teaCaffeine = dateToTeaCaffeineMap.get(localDate);\n\n Long date = Date.from(localDate.atStartOfDay().atZone(ZoneId.systemDefault()).toInstant()).getTime();\n\n coffeeCaffeineSeries.add(date, coffeeCaffeine);\n teaCaffeineSeries.add(date, teaCaffeine);\n }\n // for formatting, add an empty value to BACK of series\n coffeeCaffeineSeries.add(Date.from(ONE_WEEK_AGO.plusDays(8).atStartOfDay().atZone(ZoneId.systemDefault()).toInstant()).getTime(), 0);\n teaCaffeineSeries.add(Date.from(ONE_WEEK_AGO.plusDays(8).atStartOfDay().atZone(ZoneId.systemDefault()).toInstant()).getTime(), 0);\n\n // EXPENDITURE SERIES\n coffeeExpenditureSeries = new DateDoubleSeries(\"Coffee\");\n teaExpenditureSeries = new DateDoubleSeries(\"Tea\");\n // for formatting, add an empty value at FRONT of series\n coffeeExpenditureSeries.add(Date.from(ONE_WEEK_AGO.minusDays(1).atStartOfDay().atZone(ZoneId.systemDefault()).toInstant()).getTime(), 0.0);\n teaExpenditureSeries.add(Date.from(ONE_WEEK_AGO.minusDays(1).atStartOfDay().atZone(ZoneId.systemDefault()).toInstant()).getTime(), 0.0);\n for (int i = 0; i < orderedListOfMapDays.size(); i++) {\n LocalDate localDate = orderedListOfMapDays.get(i);\n Double coffeeExpenditure = dateToCoffeeExpenditureMap.get(localDate);\n Double teaExpenditure = dateToTeaExpenditureMap.get(localDate);\n\n Long date = Date.from(localDate.atStartOfDay().atZone(ZoneId.systemDefault()).toInstant()).getTime();\n\n coffeeExpenditureSeries.add(date, coffeeExpenditure);\n teaExpenditureSeries.add(date, teaExpenditure);\n }\n // for formatting, add an empty value to BACK of series\n coffeeExpenditureSeries.add(Date.from(ONE_WEEK_AGO.plusDays(8).atStartOfDay().atZone(ZoneId.systemDefault()).toInstant()).getTime(), 0.0);\n teaExpenditureSeries.add(Date.from(ONE_WEEK_AGO.plusDays(8).atStartOfDay().atZone(ZoneId.systemDefault()).toInstant()).getTime(), 0.0);\n }", "@Override\n\tpublic Map<String, Double> calculate(List<Map<String, Object>> houses,\n\t\t\tdouble usage) {\n\t\tSystem.err.println(houses.toString());\n\t\tresult = new HashMap<String, Double>();\n\t\tlogicArea = new HashMap<String, Double>();\n\t\t// calculate each logic Area\n\t\t/*\n\t\t * house.put(\"room-id\", \"01010101\"); house.put(\"water-usage\", \"1\");\n\t\t * house.put(\"electric-usage\", \"5\"); house.put(\"area\", \"100.9\");\n\t\t */\n\t\tcalculateTotalFee(usage);\n\t\tif (isAreaWeight) {\n\t\t\tdouble sum = 0;\n\t\t\tfor (Map<String, Object> map : houses) {\n\t\t\t\tdouble areaOfRoom = (double)(map.get(\"area\"));\n\t\t\t\tlogicArea.put((String) map.get(\"room-id\"), areaOfRoom);\n\t\t\t\tsum += areaOfRoom;\n\t\t\t}\n\t\t\tfor (Entry<String, Double> aLogicArea : logicArea.entrySet()) {\n\t\t\t\tdouble shareOfRoom = aLogicArea.getValue() / sum * totalFee;\n\t\t\t\tdouble round = (double) (Math.round(shareOfRoom * 100) / 100.0);\n\t\t\t\tresult.put(aLogicArea.getKey(), round);\n\t\t\t}\n\t\t}// area Weight\n\t\telse {\n\t\t\tint sum = houses.size();\n\t\t\tfor (Map<String, Object> map : houses) {\n\t\t\t\tdouble shareOfRoom = 1.0 / sum * totalFee;\n\t\t\t\tdouble round = (double) (Math.round(shareOfRoom * 100) / 100.0);\n\t\t\t\tresult.put((String) map.get(\"room-id\"), round);\n\t\t\t}\n\t\t}\n\t\t// sum=?\n\t\t// calculate %\n\t\t// multi with total\n\t\t// put into result\n\t\treturn result;\n\n\t}", "public static void main(String[] args) {\n Apple appleRp = new Apple(new BigDecimal(150.5), \"red\", Ripeness.RIPE, false);\n Banana bananaRp = new Banana(new BigDecimal(175.4), \"yellow\", Ripeness.RIPE, false);\n Orange orangeVerd = new Orange(new BigDecimal(200.0), \"yellow\", Ripeness.VERDANT, false);\n Orange orangeRp = new Orange(new BigDecimal(210.2), \"orange\", Ripeness.RIPE, false);\n Pear pearVerd = new Pear(new BigDecimal(180.9), \"green\", Ripeness.VERDANT, false);\n\n Carrot carrotRp = new Carrot(new BigDecimal(100.9), \"orange\", Ripeness.RIPE, false);\n Celery celeryVerd = new Celery(new BigDecimal(200.0), \"green\", Ripeness.VERDANT, false);\n Onion onionRp = new Onion(new BigDecimal(90.9), \"white\", Ripeness.RIPE, true);\n Potato potatoRp = new Potato(new BigDecimal(105.8), \"brown\", Ripeness.RIPE, false);\n\n // Main array of plants creation\n Plant[] basketContent = {carrotRp, orangeVerd, bananaRp, celeryVerd};\n\n // Extra array of plants creation\n Plant[] additionalBasketContent = {onionRp, appleRp, orangeRp, pearVerd, potatoRp};\n\n // Food processor creation\n FoodProcessor foodProcessor = new FoodProcessor();\n\n System.out.println(\" FRUITS&VEGETABLES\\n\\n\");\n\n // Total basket creation\n Basket basket = new Basket();\n\n // Filling the total basket by the main array of plants\n basket.put(basketContent);\n\n System.out.println(\"Basket contains:\");\n basket.printContent();\n System.out.println(\"\\nBasket weight: \" + basket.getBasketWeight() + \" g.\");\n\n // Extra basket creation\n Basket additionalBasket = new Basket();\n\n // Filling the extra basket by the extra array of plants\n additionalBasket.put(additionalBasketContent);\n\n // Combining total and extra baskets\n basket.put(additionalBasket);\n\n System.out.println(\"\\nBasket contains:\");\n basket.printContent();\n System.out.println(\"\\nBasket weight: \" + basket.getBasketWeight() + \" g.\");\n\n System.out.println(\"\\n\\n PEELING FRUITS:\\n\");\n\n // Weight of total basket\n BigDecimal oldBasketWeight = basket.getBasketWeight();\n System.out.println(\"Basket weight before fruits peeling: \" + oldBasketWeight.round(MathContext.DECIMAL32) + \" g.\");\n\n // Weight of all fruits in total basket\n BigDecimal oldFruitsWeight = basket.getFruitsWeight();\n System.out.println(\"Fruits weight before peeling: \" + oldFruitsWeight.round(MathContext.DECIMAL32) + \" g.\");\n\n // Extracting of all fruits from total basket\n Fruit[] fruitsToProcess = basket.extractAllFruits();\n\n // Weight of fruits after peeling\n BigDecimal newFruitsWeight = foodProcessor.peelItems(fruitsToProcess);\n System.out.println(\"Fruits weight after peeling: \" + newFruitsWeight.round(MathContext.DECIMAL32) + \" g.\");\n\n // Insertion of peeled fruits back to total basket\n basket.put(fruitsToProcess);\n BigDecimal newBasketWeight = basket.getBasketWeight();\n System.out.println(\"Basket weight after fruits peeling: \" + newBasketWeight.round(MathContext.DECIMAL32) + \" g.\");\n\n // Weight difference\n System.out.println(\"Weight difference: \" + (oldBasketWeight.subtract(newBasketWeight)).round(MathContext.DECIMAL32) + \" g.\");\n\n System.out.println(\"\\n\\n PEELING VEGETABLES:\\n\");\n\n // Current weight of total basket\n oldBasketWeight = basket.getBasketWeight();\n System.out.println(\"Basket weight before vegetables peeling: \" + oldBasketWeight.round(MathContext.DECIMAL32) + \" g.\");\n\n // Weight of all vegetables in total basket\n BigDecimal oldVegetablesWeight = basket.getVegetablesWeight();\n System.out.println(\"Vegetables weight before peeling: \" + oldVegetablesWeight.round(MathContext.DECIMAL32) + \" g.\");\n\n // Extracting of all vegetables from total basket\n Vegetable[] vegetablesToProcess = basket.extractAllVegetables();\n\n // Weight of vegetables after peeling\n BigDecimal newVegetablesWeight = new BigDecimal(0.0);\n\n try {\n newVegetablesWeight = foodProcessor.peelItems(vegetablesToProcess);\n } catch (IllegalArgumentException e) {\n System.out.println(e.getMessage());\n }\n\n System.out.println(\"Vegetables weight after peeling: \" + newVegetablesWeight.round(MathContext.DECIMAL32) + \" g.\");\n\n // Insertion of peeled vegetables back to total basket\n basket.put(vegetablesToProcess);\n newBasketWeight = basket.getBasketWeight();\n System.out.println(\"Basket weight after vegetables peeling: \" + newBasketWeight.round(MathContext.DECIMAL32) + \" g.\");\n\n // Weight difference\n System.out.println(\"Weight difference: \" + (oldBasketWeight.subtract(newBasketWeight)).round(MathContext.DECIMAL32) + \" g.\");\n\n System.out.println(\"\\n\\n CUTTING VEGETABLES:\\n\");\n\n // Current weight of total basket\n oldBasketWeight = basket.getBasketWeight();\n System.out.println(\"Basket weight before vegetables cutting: \" + oldBasketWeight.round(MathContext.DECIMAL32) + \" g.\");\n\n // Current weight of vegetables in total basket\n oldVegetablesWeight = basket.getVegetablesWeight();\n System.out.println(\"Vegetables weight before cutting: \" + oldVegetablesWeight.round(MathContext.DECIMAL32) + \" g.\");\n\n // Extracting of all vegetables from total basket\n vegetablesToProcess = basket.extractAllVegetables();\n\n try {\n // Weight of vegetables after cutting\n newVegetablesWeight = foodProcessor.cutAll(vegetablesToProcess);\n } catch (IllegalArgumentException e) {\n System.out.println(e.getMessage());\n }\n\n System.out.println(\"Vegetables weight after cutting: \" + newVegetablesWeight.round(MathContext.DECIMAL32) + \" g.\");\n\n // Insertion of cuted vegetables back to total basket\n basket.put(vegetablesToProcess);\n newBasketWeight = basket.getBasketWeight();\n System.out.println(\"Basket weight after vegetables cutting: \" + newBasketWeight.round(MathContext.DECIMAL32) + \" g.\");\n\n // Weight difference\n System.out.println(\"Weight difference: \" + (oldBasketWeight.subtract(newBasketWeight)).round(MathContext.DECIMAL32) + \" g.\");\n\n System.out.println(\"\\n\\n SLICING FRUITS:\\n\");\n\n // Current weight of total basket\n oldBasketWeight = basket.getBasketWeight();\n System.out.println(\"Basket weight before fruits slicing: \" + oldBasketWeight.round(MathContext.DECIMAL32) + \" g.\");\n\n // Current weight of fruits in total basket\n oldFruitsWeight = basket.getFruitsWeight();\n System.out.println(\"Fruits weight before slicing: \" + oldFruitsWeight.round(MathContext.DECIMAL32) + \" g.\");\n\n // Extracting of all fruits from total basket\n fruitsToProcess = basket.extractAllFruits();\n\n try {\n // Weight of fruits after slicing\n newFruitsWeight = foodProcessor.sliceAll(fruitsToProcess);\n } catch (IllegalArgumentException e) {\n System.out.println(e.getMessage());\n }\n\n System.out.println(\"Fruits weight after slicing: \" + newFruitsWeight.round(MathContext.DECIMAL32) + \" g.\");\n\n // Insertion of sliced fruits back to total basket\n basket.put(fruitsToProcess);\n newBasketWeight = basket.getBasketWeight();\n System.out.println(\"Basket weight after fruits slicing: \" + newBasketWeight.round(MathContext.DECIMAL32) + \" g.\");\n\n // Weight difference\n System.out.println(\"Weight difference: \" + (oldBasketWeight.subtract(newBasketWeight)).round(MathContext.DECIMAL32) + \" g.\");\n\n System.out.println(\"\\n\\n NEW PLANT SLICING\\n\");\n\n // New plant creation\n Potato potatoRpPink = new Potato(new BigDecimal(120.9), \"pink\", Ripeness.RIPE, false);\n\n // Insertion to the end of total basket\n basket.put(potatoRpPink);\n System.out.println(\"Basket contains:\");\n basket.printContent();\n System.out.println(\"\\nBasket weight: \" + basket.getBasketWeight() + \" g.\\n\");\n\n // Current weight of total basket\n oldBasketWeight = basket.getBasketWeight();\n\n // Extraction element from the end of total basket\n Plant lastInBasket = basket.extract(basket.getBasketContent().length - 1);\n\n // Weight of plant before slicing\n BigDecimal oldlastInBasketWeight = lastInBasket.getWeight();\n BigDecimal newLastInBasketWeight = new BigDecimal(0.0);\n\n System.out.println(lastInBasket);\n\n try {\n // Weight of plant after slicing\n newLastInBasketWeight = foodProcessor.slice(lastInBasket);\n } catch (IllegalArgumentException e) {\n newLastInBasketWeight = lastInBasket.getWeight();\n System.out.println(e.getMessage());\n }\n\n System.out.println(\"Plant weight after slicing: \" + newLastInBasketWeight + \" g.\");\n\n // Weight difference\n System.out.println(\"Weight difference: \" + (oldlastInBasketWeight.subtract(newLastInBasketWeight)).round(MathContext.DECIMAL32) + \" g.\");\n\n // Insertion of sliced plant back to total basket\n basket.put(lastInBasket);\n newBasketWeight = basket.getBasketWeight();\n System.out.println(\"Basket weight after last element slicing: \" + newBasketWeight.round(MathContext.DECIMAL32) + \" g.\");\n\n // Weight difference\n System.out.println(\"Weight difference: \" + (oldBasketWeight.subtract(newBasketWeight)).round(MathContext.DECIMAL32) + \" g.\");\n\n\n }", "@Override\r\n\tpublic List<SalesAnalysis> getSalesAnalysis(Date fromDate, Date toDate) {\r\n\t\t\r\n\t\tList<SalesAnalysis> salesAnalysisDetails=new ArrayList<>();\r\n\t\tSalesAnalysis salesAnalysis=new SalesAnalysis();\r\n\t\t\r\n\t\t//get orders placed in the given period\r\n\t\tList<Order> orderDetails=orderService.getOrdersBetween(fromDate, toDate);\r\n\t\t\r\n\t\tHashMap<String, Double> purchasePriceDetails=new HashMap<>();\r\n\t\tHashMap<String, Double> salesPriceDetails=new HashMap<>();\r\n\t\tint qty=0;\r\n\t\tdouble salesPrice=0;\r\n\t\tdouble purchasePrice=0;\r\n\t\t\r\n\t\t//get total revenue for period\r\n\t\tdouble totalRevenue=getTotalRevenueBetween(fromDate, toDate);\r\n\t\t\r\n\t\t//get best seller details for the products, category-wise(from PRODUCT table)\r\n\t\tList<Object[]> bestSellerDetails=productService.getBestSellerId();\r\n\t\tSystem.out.println(bestSellerDetails);\r\n\t\t\r\n\t\t\r\n\t\t//for each product category, check sales details\r\n\t\tfor(Object[] object:bestSellerDetails)\t{\r\n\t\t\tString productCategory=(String)object[0];\r\n\t\t\tsalesPrice=0;\r\n\t\t\tpurchasePrice=0;\r\n\t\t\tpurchasePriceDetails.put(productCategory, purchasePrice);\r\n\t\t\tsalesPriceDetails.put(productCategory, salesPrice);\r\n\t\t\t\r\n\t\t\t//for each order, check product category and add details to maps\r\n\t\t\tfor(Order order:orderDetails)\t{\r\n\t\t\t\t\r\n\t\t\t\t//get products in this order\r\n\t\t\t\tList<CartProduct> products=order.getCart().getCartProducts();\r\n\t\t\t\t\r\n\t\t\t\t//getting purchase price details for each product ordered\r\n\t\t\t\tfor(CartProduct product:products)\t{\r\n\t\t\t\t\tif(product.getProduct().getProductCategory().equals(productCategory))\t{\r\n\t\t\t\t\t\tpurchasePrice=purchasePriceDetails.get(productCategory)+\r\n\t\t\t\t\t\t\t\t(product.getProduct().getQuantity()*product.getProduct().getProductPrice());\r\n\t\t\t\t\t\tpurchasePriceDetails.put(productCategory, purchasePrice);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//getting sales price details for each product ordered\r\n\t\t\t\tfor(CartProduct product:products)\t{\r\n\t\t\t\t\tif(product.getProduct().getProductCategory().equals(productCategory))\t{\r\n\t\t\t\t\t\tqty=product.getQuantity();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tsalesPrice=salesPriceDetails.get(productCategory)+\r\n\t\t\t\t\t\t\t\t(qty*(100-product.getProduct().getDiscount())*product.getProduct().getProductPrice())/100;\r\n\t\t\t\t\t\tsalesPriceDetails.put(productCategory, salesPrice);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t//make SalesAnalysis object using obtained data\r\n\t\t\tsalesAnalysis.setProductCategory(productCategory);\r\n\t\t\tsalesAnalysis.setMerchant(merchantService.getMerchantName((Integer)object[1]));\r\n\t\t\tsalesAnalysis.setProductQuantity(purchasePriceDetails.get(productCategory));\r\n\t\t\tsalesAnalysis.setProductSales(salesPriceDetails.get(productCategory));\r\n\t\t\tsalesAnalysis.setSalesPercent((salesAnalysis.getProductSales()*100)/salesAnalysis.getProductQuantity());\r\n\t\t\tsalesAnalysis.setTotalRevenue(totalRevenue);\r\n\t\t\t\r\n\t\t\t//make a list of sales analysis performed\r\n\t\t\tsalesAnalysisDetails.add(salesAnalysis);\r\n\t\t}\r\n\t\t\r\n\t\treturn salesAnalysisDetails;\r\n\t}", "public static Map<String,String> getPrice() throws MalformedURLException, IOException {\n Map<String,String>priceMap = new HashMap();\n String price;\n URL url = new URL(\"https://api.independentreserve.com/Public/GetMarketSummary?primaryCurrencyCode=xbt&secondaryCurrencyCode=aud\");\n try (InputStream is = url.openStream();\n JsonParser parser = Json.createParser(is)) {\n while (parser.hasNext()) {\n JsonParser.Event e = parser.next();\n if (e == JsonParser.Event.KEY_NAME) {\n switch (parser.getString()) {\n case \"DayHighestPrice\":\n parser.next();\n price=parser.getString();\n priceMap.put(\"DayHighestPrice\",price);\n break;\n case \"DayLowestPrice\":\n parser.next();\n System.out.print(\"DayLowestPrice: \");\n price=parser.getString();\n System.out.println(price);\n System.out.println(\"---------\");\n priceMap.put(\"DayLowestPrice\", price);\n break;\n case \"CurrentLowestOfferPrice\":\n parser.next();\n System.out.print(\"CurrentLowestOfferPrice: \");\n price=parser.getString();\n System.out.println(price);\n System.out.println(\"---------\");\n priceMap.put(\"CurrentLowestOfferPrice\", price);\n break;\n case \"CurrentHighestBidPrice\":\n parser.next();\n price=parser.getString();\n System.out.print(\"CurrentHighestBidPrice: \");\n System.out.println(price);\n priceMap.put(\"CurrentHighestBidPrice\", price);\n break;\n case \"LastPrice\":\n parser.next();\n System.out.print(\"LastPrice: \");\n price=parser.getString();\n System.out.println(price);\n System.out.println(\"---------\");\n priceMap.put(\"LastPrice\", price);\n break;\n }\n }\n }\n }\n \n return priceMap; \n}", "@JsonIgnore\n public ArrayList<Ingredient> getShoppingList() {\n ArrayList<Ingredient> results = new ArrayList<>();\n for (Location location : route) {\n for (PreOrder preOrder : location.getPreOrders()) {\n for (DishWrapper dishWrapper : preOrder.getItems()) {\n for (Ingredient ingredient : dishWrapper.getDish().getIngredients()) {\n if (results.contains(ingredient)) {\n results.get(results.indexOf(ingredient)).addAmount(ingredient.getAmount() * dishWrapper.getAmount());\n } else {\n ingredient.setAmount(ingredient.getAmount() * dishWrapper.getAmount());\n }\n results.add(ingredient);\n }\n }\n }\n }\n return results;\n }" ]
[ "0.66902936", "0.64028865", "0.6250713", "0.6237476", "0.62079966", "0.61778724", "0.6097361", "0.5899986", "0.5865614", "0.5840851", "0.5827435", "0.57906", "0.5765667", "0.57488394", "0.57402307", "0.56928116", "0.5665251", "0.56585956", "0.56525815", "0.56435686", "0.56334645", "0.5628427", "0.5614668", "0.5604747", "0.5602127", "0.5578774", "0.5575983", "0.5549829", "0.5542864", "0.5528131", "0.55171496", "0.5496652", "0.54885566", "0.5470037", "0.5468108", "0.544812", "0.54355407", "0.5427386", "0.5405711", "0.53477275", "0.5344577", "0.53381115", "0.53330594", "0.53260624", "0.53256816", "0.5321519", "0.5319767", "0.53180236", "0.5300534", "0.53004366", "0.5297026", "0.52879524", "0.5283585", "0.52713746", "0.5254183", "0.5242206", "0.52319103", "0.52311397", "0.52296406", "0.5216735", "0.52149045", "0.5214162", "0.52054685", "0.51991045", "0.51944214", "0.5189791", "0.5183637", "0.5183632", "0.5177859", "0.5174434", "0.5173774", "0.5173156", "0.51675004", "0.51627016", "0.5161707", "0.5156972", "0.515221", "0.51507515", "0.5149268", "0.51452315", "0.51417005", "0.5139815", "0.5136329", "0.513284", "0.51164377", "0.51097673", "0.51054764", "0.5101836", "0.5100546", "0.50946534", "0.5090823", "0.5090263", "0.5087275", "0.5086278", "0.50833225", "0.5079906", "0.5079329", "0.5075947", "0.50742227", "0.50737315" ]
0.72889006
0
Returns the total sales price if all clip cards sold
public double getClipCardSales() { double d = 0; for (Order o : orders) { for (ProductOrder po : o.getProductOrders()) { if (po.getProduct().getName().startsWith("Klippekort")) { d += po.price(); } } } return d; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void salesTotal(){\n\t\tif (unitsSold<10){\n\t\t\tsetTotalCost(basePrice);\n\t\t\tsetDiscount(basePrice - this.getCost());\n\t\t}\n\t\telse if (unitsSold<20){\n\t\t\tsetTotalCost((RETAIL_PRICE*.8)*unitsSold);\n\t\t\tsetDiscount(basePrice - this.getCost());\n\t\t\t\n\t\t}\n\t\telse if (unitsSold<50){\n\t\t\tsetTotalCost((RETAIL_PRICE*.7)*unitsSold);\n\t\t\tsetDiscount(basePrice - this.getCost());\n\t\t}\n\t\telse if (unitsSold<100){\n\t\t\tsetTotalCost((RETAIL_PRICE*.6)*unitsSold);\n\t\t\tsetDiscount(basePrice - this.getCost());\n\t\t}\n\t\telse {\n\t\t\tsetTotalCost((RETAIL_PRICE*.5)*unitsSold);\n\t\t\tsetDiscount(basePrice - this.getCost());\n\t\t}\n\t}", "private double totalPrice(){\n\n double sum = 0;\n\n for (CarComponent carComponent : componentsCart) {\n sum += (carComponent.getCompPrice() * carComponent.getCompQuantity()) ;\n }\n return sum;\n }", "public int getTotalPriceOfSoldBeanBags() {\n int salesTotal = 0;\r\n // Loop through every object in the \"stockList\" object array list.\r\n for (int i = 0; i < stockList.size(); i++) {\r\n // If the current \"stockList\" beanBag boolean state \"isSold()\" is true.\r\n if (((BeanBag) stockList.get(i)).isSold()) {\r\n // Increment the \"salesTotal\" variable by the beanBag price.\r\n salesTotal += ((BeanBag) stockList.get(i)).getPrice();\r\n }\r\n }\r\n // Return the value of the integer \"salesTotal\".\r\n return salesTotal;\r\n }", "private double getProductsTotal() {\n\t\t\n\t\tdouble total = 0;\n\t\t\n\t\tif(!soldProducts.isEmpty()) {\n\t\t\t\n\t\t\tfor(Sellable product : soldProducts) {\n\t\t\t\t\n\t\t\t\ttotal += (product.getPrice() * product.getQuantitySold());\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\treturn total;\n\t}", "void calculateTotalPrice(){\n totalPrice = 0;\n cartContents.forEach(Product-> this.totalPrice = totalPrice + Product.getSellPrice());\n }", "public float getCartPrice() {\n float totalSum = 0.0F;\n for(Publication book : shoppingCart){\n totalSum += book.getPrice();\n }\n\n return totalSum;\n }", "private int getTotalPrice() {\n int unitPrice = 0;\n if (((CheckBox) findViewById(R.id.whipped_cream_checkbox)).isChecked()) {\n unitPrice += Constants.PRICE_TOPPING_WHIPPED_CREAM;\n }\n\n if (((CheckBox) findViewById(R.id.chocolate_checkbox)).isChecked()) {\n unitPrice += Constants.PRICE_TOPPING_CHOCOLATE;\n }\n\n unitPrice += Constants.PRICE_PER_COFFEE;\n return getNumberOfCoffees() * unitPrice;\n }", "public double calcTotal(){\n\t\tdouble total; // amount to be returned\n\t\t\n\t\t// add .50 cents for any milk that isn't whole or skim, and .35 cents for flavoring\n\t\tif ((milk != \"whole\" && milk != \"skim\") && flavor != \"no\"){\n\t\t\tcost += 0.85;\t\n\t\t}\n\t\t\n\t\t// add .35 cents for flavoring\n\t\telse if (flavor != \"no\"){\n\t\t\tcost += 0.35;\t\n\t\t}\n\t\t\n\t\t// add .50 cents for milk that isn't whole or skim\n\t\telse if (milk != \"whole\" && milk != \"skim\"){\n\t\t\tcost += 0.50;\n\t\t}\n\t\t\n\t\telse{\n\t\t}\n\t\t\n\t\t// add .50 cents for extra shot of espresso\n\t\tif (extraShot != false){\n\t\t\ttotal = cost + 0.50;\n\t\t}\n\t\telse\n\t\t\ttotal = cost;\n\t\t\n\t\treturn total;\n\t}", "public double total(){\n\tdouble total=0;\n\tfor(Map.Entry<String, Integer> pro:proScan.getProducts().entrySet()){\n\t\tString proName=pro.getKey();\n\t\tint quantity=pro.getValue();\n\t\tProductCalculator proCal=priceRule.get(proName);\n\t\tif(proCal==null)\n\t\t\tthrow new MissingProduct(proName);\n\t\t\n\t\tProductCalculator cal=priceRule.get(proName);\n\t\tdouble subtotal=cal.getTotal(quantity);\n\t\ttotal+=subtotal;\n\t\t//System.out.println(total);\n\t}\n\t//round the total price to two digit\n\treturn round(total, 2);\n}", "public void caltotalprice(){\n \tthis.mTotalPrice = 0;\n \tif (this.isCoachSeat) {\n \t\tfor (Flight f: this.mLegs) {\n \t\t\tthis.mTotalPrice += f.coachprice();\n \t\t}\n \t}else {\n \t\tfor (Flight f: this.mLegs) {\n \t\t\tthis.mTotalPrice += f.firstclassprice();\n \t\t}\n \t}\n }", "private CharSequence calculateTotalPrice() {\n float totalPrice = 0.0f;\n totalPrice += UserScreen.fishingRodQuantity * 25.50;\n totalPrice += UserScreen.hockeyStickQuantity * 99.99;\n totalPrice += UserScreen.runningShoesQuantity * 85.99;\n totalPrice += UserScreen.proteinBarQuantity * 5.25;\n totalPrice += UserScreen.skatesQuantity * 50.79;\n return Float.toString(totalPrice);\n }", "public int getTotalPrice() {\n int total = 0;\n for (Scholar s : this.scholars) {\n Calendar start = (Calendar) s.getStartDate().clone();\n while (start.before(s.getEndDate())) {\n if (start.after(this.startDate) && start.before(this.estimatedEnd)) { //Only lists scholar within the the time frame the project is active\n total += s.getSalary();\n }\n start.add(Calendar.MONTH, 1);\n }\n }\n return total;\n }", "public int getClipCardUses() {\n\t\tint d = 0;\n\n\t\tfor (Order o : orders) {\n\t\t\tfor (Payment p : o.getPayments()) {\n\t\t\t\tif (p.getPaymentType() == PaymentType.CLIP_CARD) {\n\t\t\t\t\td += p.getAmount();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn d;\n\t}", "@Override\n public double calcSalesFee() {\n return getCost() + getSalesPurchase();\n }", "Optional<BigDecimal> getDiscountedTotalPrice(List<Item> items) throws CheckoutProcessingException;", "private void calculatePrice() {\r\n int price = 0;\r\n int day = show.getDateTime().getDayOfMonth();\r\n int month = show.getDateTime().getMonthValue();\r\n \r\n for (int i = 0; i < seats.size(); i++) {\r\n String option = seats.get(i);\r\n \r\n if (Arrays.stream(sectionNames).parallel().anyMatch(option::contains)) {\r\n String section = option.replaceAll(\"\\\\d\",\"\");\r\n int number = Integer.parseInt(option.replaceAll(\"\\\\D+\",\"\"));\r\n \r\n if (section.equals(\"m\")) {\r\n if (number <= 100) {\r\n price += mainFloorPrice;\r\n } else {\r\n price += mainFloorPremium;\r\n }\r\n } else if (section.equals(\"sb\")) {\r\n if (number <= 25) {\r\n price += southBalconyPrice;\r\n } else {\r\n price += southBalconyPremium;\r\n }\r\n } else if (section.equals(\"wb\")) {\r\n price += westBalconyPrice;\r\n } else if (section.equals(\"eb\")) {\r\n price += eastBalconyPrice;\r\n }\r\n }\r\n }\r\n \r\n if (seats.size() >= 5 && seats.size() <= 10 && !(month == 12 && (day == 26 || day == 27))) {\r\n price -= (2 * seats.size());\r\n }\r\n \r\n if (seats.size() >= 11 && seats.size() <= 20 && !(month == 12 && (day == 26 || day == 27))) {\r\n price -= (5 * seats.size());\r\n }\r\n \r\n if (month == 12 && (day == 26 || day == 27)) {\r\n price = seats.size() * 20;\r\n }\r\n \r\n totalPrice = price;\r\n }", "public double getTotalCartValue();", "public KualiDecimal getCurrencyTotal(CashDrawer drawer);", "@Override\n public USMoney calculatePrice() {\n USMoney sumPrice = new USMoney();\n for (int i = 0; i < curArrayIndex; i++) {\n sumPrice = sumPrice.add(items[i].getPrice());\n if (items[i].isFragile()) {\n sumPrice.addTo(10, 0);\n }\n }\n sumPrice.addTo(100, 0);\n return sumPrice;\n }", "public void calculateSale()\n {\n double total = 0.00;\n int numTimbits = 0;\n int numDoughnuts = 0;\n int smallCoffee = 0;\n int mediumCoffee = 0;\n int largeCoffee = 0;\n String order;\n \n for(int i = 0; salesItem[i] != null && i < salesItem.length; i++)\n {\n if(salesItem[i] instanceof Timbit) \n {\n numTimbits = numTimbits + salesItem[i].getNumOfItems();\n }\n else if(salesItem[i] instanceof Doughnut)\n {\n numDoughnuts = numDoughnuts + salesItem[i].getNumOfItems();\n }\n else if(salesItem[i] instanceof Coffee)\n {\n if(salesItem[i].getNumOfItems()==1)\n {\n smallCoffee ++;\n }\n else if(salesItem[i].getNumOfItems()==2)\n {\n mediumCoffee ++;\n }\n else\n {\n largeCoffee ++;\n }\n }\n \n total += salesItem[i].getFinalPrice();\n }\n \n order = \"Timbits: \" + numTimbits + \"\\nDoughnuts: \" + numDoughnuts + \"\\nSmall Coffees: \" + smallCoffee + \"\\nMedium Coffees: \" + mediumCoffee + \"\\nLarge Coffees: \" + largeCoffee ; \n showText(order + String.format(\"\\nTotal Price: $%5.2f\", total), 150, 175);\n }", "private double calculateTotal() {\n Log.d(\"Method\", \"calculateTotal()\");\n\n double extras = 0;\n CheckBox cb = (CheckBox) findViewById(R.id.whipped_checkbox_view);\n\n if (cb.isChecked()) {\n extras = coffeeCount * 0.75;\n }\n return (coffeeCount * coffeePrice) + extras;\n }", "public double calTotalAmount(){\n\t\tdouble result=0;\n\t\tfor (int i = 0; i < this.cd.size(); i++) {\n\t\t\tresult += this.cd.get(i).getPrice();\n\t\t}\n\t\treturn result;\n\t}", "private double calculateTotal(){\r\n double total = 0;\r\n for(int i = 0; i < orderList.size(); i++){\r\n total += orderList.getOrder(i).calculatePrice();\r\n }\r\n return total;\r\n }", "public double totalPrices()\r\n {\r\n double total = 0;\r\n //Write a loop here to total the book prices. Each object in the ArrayList bookList is a Book, so you can\r\n //use the getter as you loop through and add the price to total\r\n if(bookList != null){\r\n for(Book book: bookList){\r\n total += book.getPrice();\r\n }\r\n }\r\n return total;\r\n }", "public synchronized double getTotal(){\n double totalPrice=0;\n \n for(ShoppingCartItem item : getItems()){\n totalPrice += item.getTotal();\n }\n \n return totalPrice;\n }", "double getTotalPortfolioValue(){\n double total = 0.0;\n for (Listing<P, C> l : this.collectionOfCurrentListings) {\n total += l.getContract().getTotalPrice() * this.commissionRate;\n }\n return total;\n }", "public double calculateTotalCost() {\n finalTotal = (saleAmount + taxSubtotal + SHIPPINGCOST);\n\n return finalTotal;\n }", "public float totalCost() {\r\n float total = 0;\r\n for (int i=0; i<numItems; i++) {\r\n total += cart[i].getPrice();\r\n }\r\n return total;\r\n }", "@Test\r\n\tpublic void getTotal_oh_sk(){\n\t\tcart = new TourShoppingCart(MockRules.getRules());\r\n\t\t\r\n\t\tcart.add(new Item(ItemType.OH, BigDecimal.valueOf(300.00)) );\r\n\t\t\r\n\t\tcart.add(new Item(ItemType.SK, BigDecimal.valueOf(30.00)) );\r\n\t\t\r\n\t\tassert cart.total().equals(BigDecimal.valueOf(300.00));\r\n\t\tSystem.out.println(cart.total());\r\n\t}", "public int totalprice() {\n\t\tint totalPrice=0;\r\n\t\tfor (int i=0; i<arlist.size();i++) {\r\n\t\t\t totalPrice+=arlist.get(i).price;\r\n\t\t}\r\n\t\treturn totalPrice;\r\n\t}", "private void updateTotal()\n {\n if(saleItems != null)\n {\n double tempVal = 0;\n\n for(int i = 0; i < saleItems.size(); i++)\n {\n if(saleItems.get(i) != null)\n {\n tempVal += saleItems.get(i).getPrice() * saleItems.get(i).getQuantity();\n }\n }\n totalText.setText(moneyFormat(String.valueOf(tempVal)));\n }\n }", "public KualiDecimal getCoinTotal(CashDrawer drawer);", "public BigDecimal calculateTotal() {\r\n BigDecimal orderTotal = BigDecimal.ZERO;\r\n \r\n final Iterator<Item> iterator = myShoppingCart.keySet().iterator();\r\n \r\n while (iterator.hasNext()) {\r\n final BigDecimal currentOrderPrice = myShoppingCart.get(iterator.next());\r\n \r\n orderTotal = orderTotal.add(currentOrderPrice);\r\n }\r\n \r\n //if membership take %10 off the total cost\r\n if (myMembership) {\r\n if (orderTotal.compareTo(new BigDecimal(\"25.00\")) == 1) { //myOrderTotal > $25\r\n final BigDecimal discount = DISCOUNT_RATE.multiply(orderTotal); \r\n orderTotal = orderTotal.subtract(discount);\r\n }\r\n }\r\n \r\n return orderTotal.setScale(2, RoundingMode.HALF_EVEN);\r\n }", "private double culcSystemProfit(BetsMap bets, Car winner) {\n\t\tdouble sumBets = bets.getSumBets();\n\t\tif (bets.forCar(winner).isEmpty()) {\n\t\t\treturn sumBets;\n\t\t}\n\t\treturn sumBets * PERCENT / 100;\n\t}", "public int sumofPrice(){\n\t\tSQLiteDatabase db = this.getReadableDatabase();\n\t\tString selectQuery = \"SELECT SUM(price) FROM \" + TABLE_SHOP;\n\t\tCursor cur = db.rawQuery(selectQuery, null);\n\t\tint total=0;\n\t\tif(cur.moveToFirst())\n\t\t{\n\t\t\ttotal = cur.getInt(0);\n\t\t}\n\t\treturn total;\n\t}", "public double calculateSubTotal() {\n return candy.getPrice() * quantity;\n\n }", "public double applyDiscount(){\n SaleDTO saleDTO = sale.createSaleDTO();\n List<DiscountDTO> itemDiscounts=dc.findDiscounts(saleDTO,new ItemDiscount());\n List<DiscountDTO> saleDiscounts=dc.findDiscounts(saleDTO,new SaleDiscount());\n \n sale.applyItemDiscounts(itemDiscounts);\n sale.applyDiscounts(saleDiscounts);\n return sale.getTotalPrice();\n }", "public static double totalPaint(double area){\n double paint = area / 350;\n \n //caculate price\n double price = paint * 32.0;\n //return price;\n return price; \n }", "private static String getTotal(ArrayList<CatalogItem> items) {\n double dTotal = 0.0;\n for (CatalogItem item : items) {\n dTotal += item.getPrice();\n }\n\n dTotal += dTotal*0.0825;\n return \"$\" + df.format(dTotal);\n }", "double calculateDeliveryCost(Cart cart);", "private int calculatePrice() {\n int price = numberOfCoffees * 5;\n\n return price;\n\n\n }", "public static int calculateTotal(SQLiteDatabase db){\n // Retrieve only items with positive quantity\n Cursor c = db.query(StoreItems.TABLE_NAME, new String[] {StoreItems._ID, StoreItems.COLUMN_NAME_PRICE, StoreItems.COLUMN_NAME_QUANTITY}, StoreItems.COLUMN_NAME_QUANTITY + \">0\", null, null, null, null);\n \n // Add all items to total\n c.moveToFirst();\n int sum = 0;\n while(!c.isAfterLast())\n {\n sum += c.getInt(c.getColumnIndex(StoreItems.COLUMN_NAME_QUANTITY)) * c.getInt(c.getColumnIndex(StoreItems.COLUMN_NAME_PRICE));\n c.moveToNext();\n }\n return sum;\n }", "public int getTotalPriceOfReservedBeanBags() {\n int TotalReservedPrice = 0;\r\n // Loop through every object in the \"stockList\" object array list.\r\n for (int i = 0; i < stockList.size(); i++) {\r\n // Define int \"CurrentPrice\" and set to value in the \"stockList\" object array list.\r\n int CurrentPrice = ((BeanBag) stockList.get(i)).getPrice();\r\n // If the beanbag in \"stockList\" is reserved.\r\n if (((BeanBag) stockList.get(i)).getReserved()) {\r\n // Increment the value of \"TotalReservedPrice\" by int \"CurrentPrice\".\r\n TotalReservedPrice = TotalReservedPrice + CurrentPrice;\r\n }\r\n }\r\n // Once all value's examined, return the value of \"TotalReservedPrice\" int.\r\n return TotalReservedPrice;\r\n }", "public static void calculateTotal(){\n int i=0;\n total=0;\n while(i<CustomAdapter.selecteditems.size()){\n total+= CustomAdapter.selecteditems.get(i).getPrice() * CustomAdapter.selecteditems.get(i).getQuantity();\n i++;\n }\n String s=\"Rs \"+String.valueOf(total);\n tv_total.setText(s);\n }", "public float getTotal(Sale s) {\n\t\tfloat lowestTotal = Integer.MAX_VALUE;\n\t\t\n\t\tfor(ISalePricingStrategy strat : strategies) {\n\t\t\tfloat total = strat.getTotal(s);\n\t\t\tif (total < lowestTotal) {\n\t\t\t\tlowestTotal = total;\n\t\t\t\tbestStrategy = strat.discountDesc();\n\t\t\t}\t\n\t\t}\n\t\treturn lowestTotal;\n\t}", "static int calculateTotalOf(Set<Fruit> basket) {\n\t\tint totalPrice = 0;\n\t\tint Qty = 0;\n\t\tfor (Fruit fruit : basket) {\n\t\t\tQty = getQuantityOf(fruit);\n\t\t\tQty = Qty <= 0 ? 1 : Qty;\n\t\t\ttotalPrice = totalPrice + (fruit.price * Qty);\n\t\t}\n\t\tSystem.out.println(\"Total Price = \" + totalPrice);\n\t\treturn totalPrice;\n\t}", "@Override\n public double getTotalPrice() {\n return getTotalPrice(0);\n }", "public double getTotalSales() {\n\t\tdouble total = 0;\n\n\t\tfor (Order o : orders) {\n\t\t\ttotal += o.totalPrice();\n\t\t}\n\n\t\treturn total;\n\t}", "public BigDecimal getTotal() {\n BigDecimal total = new BigDecimal(0);\n for (Item item : items){\n int quantity = item.getQuantity();\n BigDecimal subtotal = item.getPrice().multiply(new BigDecimal(quantity));\n total = total.add(subtotal);\n }\n return total;\n }", "private double prixTotal() \r\n\t{\r\n\t\tdouble pt = getPrix() ; \r\n\t\t\r\n\t\tfor(Option o : option) \r\n\t\t\tpt += o.getPrix();\t\r\n\t\treturn pt;\r\n\t}", "@Override\r\n\tpublic int getTotalPrice() {\n\t\treturn totalPrice;\r\n\t}", "public double getMarketTotal(double kilos) {\n double total;\n total = kilos * potatoesPrice;\n return total;\n }", "public double calculate_total_sales_of_transaction() {\n char ismember = 'n';\n discounts = 1;\n String member_typ = \"null\";\n ismember = order.getIsMember();\n member_typ = order_member.getMemberType();\n\n total_sales_of_transaction = order.getBike().getPrice();\n\n if (Character.toUpperCase(ismember) == 'Y') {\n if (member_typ == \"Premium\") {\n discounts = 0.85;\n } else {\n discounts = 0.9;\n }\n }\n double price = total_sales_of_transaction * discounts;\n return price;\n }", "public static String getSells() {\n if(DatabaseMethods.sales_analaysis()){\r\n return DatabaseMethods.get_total_sales();\r\n }\r\n else{\r\n return null; \r\n }\r\n \r\n\t}", "public float calculateTotalPrice(ArrayList<Food> totalOrder) {\n totalPrice = 0.0f;\n for (Food itemOfFood : totalOrder) {\n totalPrice = totalPrice + itemOfFood.getPrice();\n }\n return totalPrice;\n }", "public BigDecimal summaryPrice() {\n BigDecimal result = basePrice;\n if (options == null) {\n return result == null ? BigDecimal.ZERO : result;\n } else {\n\n for (int i = 0; i < options.length; i++) { // to jest opcja napisania metody w klasie Car zeby od razu tam sie znajdywala i dawala nam jaka jest cena , zeby cena byla od razu elementem klasy CAR\n result = result.add(options[i].getOptionPrice());\n }\n return result;\n }\n }", "public double totalPrice() {\n\t\tdouble result = 0.0;\n\t\tfor (ItemCart itemCart : listItemcart) {\n\t\t\tresult += itemCart.getQuantity() * itemCart.getP().getPrice();\n\t\t}\n\t\treturn result;\n\t}", "private int getTotalSaleCost(String saleCodeS)\r\n\t{\r\n\t\tResultSet rs = null;\r\n\t\tArrayList<String> arr = new ArrayList<>();\r\n\t\tint sum = 0;\r\n\t\t\r\n\t\tString query = \"select sum(cost) FROM salesReport where saleCode = ?\";\r\n\t\tarr.add(saleCodeS);\r\n\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\tClientUI.chat.accept(\"\");\r\n\t\t\trs = ChatClient.selectWithParameters(query, arr);\r\n\t\t\t\r\n\t\t\twhile(rs.next())\r\n\t\t\t{\r\n\t\t\t\tsum = rs.getInt(\"sum(cost)\");\r\n\t\t\t}\r\n\t\t} \r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\tSystem.err.println(\"Error : MarketingManagerReports : client server problem\");\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\treturn sum;\r\n\t}", "public int getTotalSales()\n {\n int sales = totalSales;\n totalSales = 0;\n return sales;\n }", "public double calculateSalesTest() {\n\t\tCommission commission = new Commission(lockPrice, stockPrice, barrelPrice);\n\t\tcommission.processNewSale(locks, stocks, barrels);\n\t\treturn commission.calculateSales();\n\t}", "public double getTotal(){\n\t\tBigDecimal total =BigDecimal.valueOf(0);\n\t\tfor(CartItem cartItem : map.values()){\n\t\t\ttotal = total.add(BigDecimal.valueOf(cartItem.getSubtotal())) ;\n\t\t}\t\t\n\t\treturn total.doubleValue();\n\t}", "private void getSum() {\n\t\tint sum =0;\r\n\t\t\r\n\t\tfor(int i=0; i<index; i++) {\r\n\t\t\tif(products[i] != null)\r\n\t\t\t\tsum += products[i].getPrice();\r\n\t\t}\r\n\t\tSystem.out.println(sum);\r\n\t}", "float calculatePrice () \n\t{\n\t\tfloat final_price = 0;\n\t\tfinal_price = (float)(price * quantity); // price * number of items\n\t\tfinal_price += final_price*(.10); // add tax\n\t\tif(perishable.equals(\"P\"))\n\t\t{\n\t\t\tfloat ship = (float)(20* weight)*quantity; // add shipping\n\t\t\tship += ship*.20;\n\t\t\tfinal_price += ship;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfinal_price += (20* weight)*quantity; // add shipping\n\t\t}\n\t\treturn final_price;\n\t}", "public static double totalcommision(int salesman_id) {\r\n\r\n\t\tResultSet rs = null;\r\n\r\n\t\tdouble total_amount = 0;\r\n\r\n\t\tString query = \"SELECT DISTINCT(appliance_name) AS apname ,(SELECT CountNumberAppliance(apname,\"\r\n\t\t\t\t+ salesman_id + \")) FROM appliance\";\r\n\t\tint count;\r\n\t\tString name;\r\n\t\ttry (Connection con = Connect.getConnection()) {\r\n\r\n\t\t\tPreparedStatement stmt = (PreparedStatement) con\r\n\t\t\t\t\t.prepareStatement(query);\r\n\t\t\trs = stmt.executeQuery();\r\n\t\t\tSystem.out.println(query);\r\n\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tname = rs.getString(1);\r\n\t\t\t\tif (name.equalsIgnoreCase(\"5 wott\")) {\r\n\t\t\t\t\tcount = rs.getInt(2);\r\n\r\n\t\t\t\t\tif ((count >= 10) && (count <= 20)) {\r\n\t\t\t\t\t\ttotal_amount = count * 5;\r\n\t\t\t\t\t} else if ((count >= 21) && (count <= 35)) {\r\n\t\t\t\t\t\ttotal_amount = count * 10;\r\n\t\t\t\t\t} else if ((count >= 36) && (count <= 50)) {\r\n\t\t\t\t\t\ttotal_amount = count * 20;\r\n\t\t\t\t\t} else if ((count >= 51)) {\r\n\t\t\t\t\t\ttotal_amount = count * 30;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t} else if (name.equalsIgnoreCase(\"10 wott\")) {\r\n\t\t\t\t\tcount = rs.getInt(2);\r\n\r\n\t\t\t\t\tif ((count >= 10) && (count <= 20)) {\r\n\t\t\t\t\t\ttotal_amount = count * 15;\r\n\t\t\t\t\t} else if ((count >= 21) && (count <= 35)) {\r\n\t\t\t\t\t\ttotal_amount = count * 10;\r\n\t\t\t\t\t} else if ((count >= 36) && (count <= 50)) {\r\n\t\t\t\t\t\ttotal_amount = count * 20;\r\n\t\t\t\t\t} else if ((count >= 51)) {\r\n\t\t\t\t\t\ttotal_amount = count * 30;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t} else if (name.equalsIgnoreCase(\"15 wott\")) {\r\n\t\t\t\t\tcount = rs.getInt(2);\r\n\r\n\t\t\t\t\tif ((count >= 10) && (count <= 20)) {\r\n\t\t\t\t\t\ttotal_amount = count * 35;\r\n\t\t\t\t\t} else if ((count >= 21) && (count <= 35)) {\r\n\t\t\t\t\t\ttotal_amount = count * 45;\r\n\t\t\t\t\t} else if ((count <= 36) && (count <= 50)) {\r\n\t\t\t\t\t\ttotal_amount = count * 55;\r\n\t\t\t\t\t} else if ((count <= 51)) {\r\n\t\t\t\t\t\ttotal_amount = count * 65;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t} else if (name.equalsIgnoreCase(\"20 wott\")) {\r\n\t\t\t\t\tcount = rs.getInt(2);\r\n\r\n\t\t\t\t\tif ((count >= 10) && (count <= 20)) {\r\n\t\t\t\t\t\ttotal_amount = count * 45;\r\n\t\t\t\t\t} else if ((count >= 21) && (count <= 35)) {\r\n\t\t\t\t\t\ttotal_amount = count * 55;\r\n\t\t\t\t\t} else if ((count >= 36) && (count <= 50)) {\r\n\t\t\t\t\t\ttotal_amount = count * 65;\r\n\t\t\t\t\t} else if ((count >= 51)) {\r\n\t\t\t\t\t\ttotal_amount = count * 75;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn total_amount;\r\n\t}", "private BigDecimal calculateSubtotal(List<CartItem> cartItems) {\n BigDecimal total = BigDecimal.ZERO;\n for (CartItem cartItem : cartItems) {\n total = total.add(cartItem.getSalePrice().multiply(new BigDecimal(cartItem.getQuantity())));\n }\n return total;\n }", "private int calculatePrice(boolean hasWhipped, boolean hasChocolate){\n return quantity * (5 + (hasWhipped ? 1 : 0) + (hasChocolate ? 2 : 0));\n }", "public int calculatePrice() {\n int price = 5;\n if(hasWhippedCream) {\n price += 1;\n }\n if(hasChocolate) {\n price += 2;\n }\n return quantity * price;\n }", "public int calcTotalPrice(){\r\n\t\tint flightPrice = flight.getFlightPrice();\r\n\t\tint bagPrice = nrBag*LUGGAGE_PRICE;\r\n\t\tthis.totalPrice = bagPrice + nrAdult*flightPrice + nrChildren*1/2*flightPrice;\r\n\t\treturn this.totalPrice;\r\n\t}", "public double returnBoxCost(double cardGradeCost, double colourOptPercent, double reinfPercent, double sealablePercent){\n\t\tdouble sum = cardGradeCost + ((cardGradeCost * colourOptPercent) / 100) + ((cardGradeCost * reinfPercent) / 100)\n\t\t\t\t+ ((cardGradeCost * sealablePercent) / 100); \n\t\tdouble computeTotal = 0.00;\n\t\t\n\t\tDecimalFormat df = new DecimalFormat(\"##.##\");\t\n\t\t\n\t\ttry{\n\t\t\tcomputeTotal = Double.valueOf(df.format(sum));\n\t\t\t}catch(NumberFormatException nme){\n\t\t\t\t\n\t\t\t}\n\t\treturn computeTotal;\n\t}", "public BigDecimal getValorTotal() {\n\t\treturn itens.stream()\n\t\t\t\t.map(ItemDieta::getValorTotal)\n\t\t\t\t.reduce(BigDecimal::add)\n\t\t\t\t.orElse(BigDecimal.ZERO);\n\t}", "public BigDecimal getTotalPrice() {\n\t\t// the current total cost which the customer owes in the transaction\n\t\tBigDecimal total = new BigDecimal(0);\n\n\t\tArrayList<Item> currentPurchases = purchaseList.getCurrentPurchases(); \n\n\t\tfor (Item item : currentPurchases) {\n\t\t\ttotal = total.add(this.getItemPrice(item));\n\t\t}\n\n\t\treturn total;\n\t}", "private int getTotalShareValue(Player player){\n return player.getShares().get(0) * game.apple.getSharePrice() + player.getShares().get(1) * game.bp.getSharePrice() +\n player.getShares().get(2) * game.cisco.getSharePrice() + player.getShares().get(3) * game.dell.getSharePrice() +\n player.getShares().get(4) * game.ericsson.getSharePrice();\n }", "private int getPrice(HardwareSet hws, boolean used){\n if(isNull(hws)) return 0;\n return used ? hws.getTotalSellPrice() : hws.getTotalPrice();\n }", "@Override\n public double calculatePrice() {\n return getVolume() * (1.0 + (getAlcoholPercent() / 100.0)) * this.liquids.size();\n }", "public double calcTotalCaloriesBurned() {\n double sum = 0.0;\n for (ExerciseModel exercise : exercises) {\n sum += exercise.getCalories();\n }\n\n return sum;\n }", "public BigDecimal getTotalPrice() {\n\t\tBigDecimal total = new BigDecimal(\"0.00\");\n\t\tfor (Map.Entry<Integer, DishGeneral> entry : this.getOrderedDishes().entrySet()){\n\t\t\ttotal = total.add(new BigDecimal(entry.getValue().getAmount()).multiply(entry.getValue().getPrice()));\n\t\t}\n\t\tfor (Map.Entry<String, DishGeneral> entry : this.getOrderedTeppanyakiDishes().entrySet()){\n\t\t\tfor(Map.Entry<Integer, IngredientGeneral> ent : entry.getValue().getIngredients().entrySet()){\n\t\t\t\tBigDecimal p = new BigDecimal(ent.getValue().getGrams()).multiply(ent.getValue().getPricePerHundredGrams())\n\t\t\t\t\t\t.divide(new BigDecimal(100));\n\t\t\t\ttotal = total.add(p);\n\t\t\t}\n\t\t}\n\t\treturn total.setScale(2, RoundingMode.CEILING);\n\t}", "public float getPurchasedListSum()\r\n\t{\r\n\t\tfloat fTempSum = 0;\r\n\t\tfor(int i = 0 ; i < m_purechaseList.size() ; i++)\r\n\t\t{\r\n\t\t\tfTempSum += m_purechaseList.get(i).getPurchasItemCost();\r\n\t\t}\r\n\t\treturn fTempSum;\t\t\r\n\t}", "public int getAmountSold() { return amountSold; }", "public float getTotalPrice(){\n return price * amount;\n }", "org.adscale.format.opertb.AmountMessage.Amount getCampaignprice();", "public int totalRevenue() {\r\n int revenue = 0;\r\n Map<Integer, List<Event>> events = this.getShow().getEventsPerSeason();\r\n int numseasons = events.size();\r\n for (int i = 1; i <= numseasons; i++) {\r\n Boolean addedthisseason = false;\r\n List<Event> seasoneventlist = events.get(i);\r\n\r\n // Check if the character said something this season\r\n if (this.getQuotes().size() > 0) {\r\n for (int j = 0; j < this.getQuotes().size() && !addedthisseason; j++)\r\n if (this.getQuotes().get(j).getSeason() == i) {\r\n revenue += this.costPerSeason;\r\n addedthisseason = true;\r\n }\r\n }\r\n\r\n // Check if the character is in an event this season\r\n if (seasoneventlist.size() == 0)\r\n continue;\r\n for (int j = 0; j < seasoneventlist.size() && !addedthisseason; j++) {\r\n if (seasoneventlist.get(j).getCharacters().containsKey(this.getName())) {\r\n revenue += this.costPerSeason;\r\n addedthisseason = true;\r\n }\r\n }\r\n\r\n }\r\n\r\n return revenue;\r\n }", "public void updateTotals(ShoppingCartModel shoppingCart)\n {\n Global.CURRENT_ORDER.updateAllPriceTotals();\n }", "@Override\n public BigDecimal calculate(List<String> skuIds) {\n Collection<PricingRule> items = pricingRulesReader.fetchPricingRules();\n Map<String, PricingRule> pricingRuleMap = items.stream().collect(Collectors.toMap(PricingRule::getSkuId, Function.identity()));\n\n // Step 2: Map of SKUID and number of items for the SKUID\n Map<String, Long> itemsSkuAndQuantity = skuIds.stream().collect(Collectors.groupingBy(Function.identity(), Collectors.counting()));\n\n // Step 3: Calculate total price of items based on pricing rule and the number of items in the list\n return itemsSkuAndQuantity.entrySet().stream().reduce(BigDecimal.ZERO, (currentSum, entry) ->\n currentSum.add(pricingRuleMap.get(entry.getKey()).calculatePriceFor(entry.getValue())), BigDecimal::add);\n }", "public void displayTotal() {\r\n\t\tSystem.out.println(\"Total sales: \" + String.format(\"$%.2f.%n\", (float) store.getTotalSales()));\r\n\t}", "public double totalprice()\n {\n \tthis.caltotalprice();\n \tdouble res = Math.round(mTotalPrice);\n \t return res;\n }", "private double getOrderTotal() {\n double d = 0;\n\n for (Pizza p : pizzas) {\n d += p.calcTotalCost();\n }\n\n return d;\n }", "public void showTotalValue() {\n double totalValue = 0;\n for (Row row : rows) { // Iterate over the ArrayList.\n totalValue += row.getSeatTotal(); // Get the total for the seats from each row and add all the rows them together.\n }\n System.out.println(\"The total value of seats sold is $\" + df.format(totalValue));\n }", "public static void setPrice() {\n double summe = 0.0;\n for (Object obj : dlm.getDisplayedArtikel()) {\n if (obj instanceof Article) {\n Article art = (Article) obj;\n if (!art.isIsAbfrage()) {\n if (((art.isJugendSchutz() && art.isJugendSchutzOk())) || !art.isJugendSchutz()) {\n if (art.isEloadingAmmountOk() && !art.isPriceZero()) {\n summe += ((Article) ((obj))).getPreis() * ((Article) ((obj))).getAmount();\n }\n }\n }\n } else if (obj instanceof Karte) {\n Karte card = (Karte) obj;\n summe += card.getAufladung() / 100;\n }\n }\n for (Object obj : dlm.getRemovedObjects()) {\n if (obj instanceof Article) {\n if (!((Article) ((obj))).isStorno_error()) {\n summe -= ((Article) ((obj))).getPreis() * ((Article) ((obj))).getAmount();\n }\n } else if (obj instanceof Karte) {\n Karte card = (Karte) obj;\n summe -= card.getAufladung() / 100;\n }\n }\n if (Math.round(summe) == 0) {\n summe = 0;\n }\n if (GUIOperations.isTraining()) {\n summe += 1000;\n }\n tfSumme.setText(String.format(\"%.2f\", summe));\n }", "public double getTotalSalesProfit(){\n return totalSaleProfit;\n }", "public int getSold() {\n\t\treturn sold_;\n\t}", "public double sumMoney(){\n\t\tdouble result = 0;\n\t\tfor(DetailOrder detail : m_DetailOrder){\n\t\t\tresult += detail.calMoney();\n\t\t}\n\t\tif(exportOrder == true){\n\t\t\tresult = result * 1.1;\n\t\t}\n\t\treturn result;\n\t}", "public double getTotalPrice(){\n return totalPrice;\n }", "public BigDecimal getShopPrice() {\n return shopPrice;\n }", "private static BigDecimal summaryPrice(Car car) {\n BigDecimal result = car.getBasePrice(); // najpierw dajemy cene poczatkowa auta to co mamy i znamy\n CarOption[] carOptions = car.getOptions(); // wyciagamy za pomoca getOptions z Obiektu CAR(Car) , tablice z wyposazeniem czyli skora i radiem bo potrzebujemy ich ceny znac zeby potem dodac do ceny basePrice\n for (int i = 0; i < carOptions.length; i++) { // musimy kazdy indeks po kolei sumowac za pomoca petli\n result = result.add(carOptions[i].getOptionPrice());\n }\n return result;\n }", "public BigDecimal getValorTotal(){\r\n\t\r\n\t\t// percorre a lista de ItemVenda - stream especie de interator do java 8\r\n\t\treturn itens.stream()\r\n\t .map(ItemVenda::getValorTotal) // para cada um dos itens, obtem o valor total do item\t\r\n\t .reduce(BigDecimal::add) // soma todos os valores total \r\n\t .orElse(BigDecimal.ZERO); // caso não tenha nenhum item retorna zeo\r\n\t}", "private double calculateTotal(){\r\n double total = 0;\r\n\r\n for(Restaurant restaurant: restaurantMap.getRestaurantMap().values()){\r\n total += restaurant.getRevenue();\r\n }\r\n\r\n return total;\r\n }", "public double discountPrice() {\n double tot = 0;\n for (Equipment e : equipments) {\n tot += e.discountPrice();\n }\n\n return tot;\n }", "public static Total total(Player player) {\r\n Deck hand = player.getHand();\r\n int min, max, value = 0, nbAces = 0;\r\n\r\n // ajout des cartes qui ne sont pas des as et comptage des as\r\n for (int i = 0; i < hand.getSize(); i++) {\r\n if(hand.get(i).isVisible()) {\r\n if(hand.get(i).getHeight() == 1) {\r\n nbAces++;\r\n value += 1;\r\n }\r\n else if(hand.get(i).getHeight() > 9) {\r\n value += 10;\r\n }\r\n else {\r\n value += hand.get(i).getHeight();\r\n }\r\n }\r\n }\r\n\r\n min = value;\r\n\r\n // ajout de dix points si on peut pour avoir le max\r\n if(value <= 11 && nbAces >= 1) {\r\n value += 10;\r\n max = value;\r\n } else {\r\n max = min;\r\n }\r\n\r\n // cas particulier : le joueur a un blackjack\r\n if(hand.getSize() == 2 && max == 21 && min == 11) {\r\n min = max = 32;\r\n }\r\n\r\n return new Total(min, max);\r\n }", "private double getShoppingCartSubTotal(List<Book> bookList, int userId) {\n DecimalFormat decFormat = new DecimalFormat(\"#.##\");\n double subTotal = 0;\n for(Book book : bookList) {\n int bookId = book.getBookId();\n DAOShoppingCart daoShoppingCart = new DAOShoppingCart();\n ShoppingCart shoppingCart = daoShoppingCart.getShoppingCartByBookIdCustomerId(userId, bookId);\n if(shoppingCart != null) {\n subTotal += shoppingCart.getQuantity() * book.getPrice();\n }\n }\n return Double.parseDouble(decFormat.format(subTotal));\n }", "private Double getTotalBillCost(List<OnlineShoppingCartItem> onlineShoppingItemsList) {\n\t\tdouble cost = 0.0;\n\n\t\tfor (OnlineShoppingCartItem shoppingItem : onlineShoppingItemsList) {\n\t\t\tcost += shoppingItem.getItemCost();\n\t\t}\n\t\treturn cost;\n\t}" ]
[ "0.69636583", "0.6779059", "0.6741468", "0.6647582", "0.6622994", "0.6483441", "0.6444646", "0.6432279", "0.6397033", "0.63552475", "0.63350004", "0.62389743", "0.62237096", "0.6210624", "0.62063104", "0.6205841", "0.61851704", "0.6184676", "0.616575", "0.6140047", "0.6135116", "0.6129636", "0.6098629", "0.60798883", "0.6071226", "0.60659367", "0.60598284", "0.60580987", "0.6036928", "0.5997173", "0.59714866", "0.59607816", "0.5956228", "0.5951376", "0.59481514", "0.5920561", "0.5903968", "0.5901409", "0.5897207", "0.5874061", "0.5839976", "0.5830441", "0.58230126", "0.58201766", "0.5803473", "0.5794178", "0.57753485", "0.57715416", "0.57637876", "0.57588404", "0.5756521", "0.57532585", "0.57501054", "0.5735959", "0.5735544", "0.5731785", "0.5731235", "0.57307816", "0.5719518", "0.5717698", "0.5713263", "0.57047224", "0.5699932", "0.5696896", "0.5695293", "0.56806546", "0.5676015", "0.56722075", "0.5661981", "0.56606466", "0.5655593", "0.5653025", "0.56509185", "0.5645911", "0.5638355", "0.56346655", "0.5630604", "0.56180274", "0.5611776", "0.56074786", "0.5605614", "0.5603221", "0.5601691", "0.55963695", "0.5595246", "0.55913013", "0.55854076", "0.5582458", "0.55791086", "0.5570938", "0.5567106", "0.55653733", "0.55596364", "0.5557876", "0.5555218", "0.5547644", "0.55462706", "0.5537296", "0.5534964", "0.55326986" ]
0.748882
0
Returns the total amount of clips used for all orders
public int getClipCardUses() { int d = 0; for (Order o : orders) { for (Payment p : o.getPayments()) { if (p.getPaymentType() == PaymentType.CLIP_CARD) { d += p.getAmount(); } } } return d; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int totalAllocatedOrders();", "private double getOrderTotal() {\n double d = 0;\n\n for (Pizza p : pizzas) {\n d += p.calcTotalCost();\n }\n\n return d;\n }", "public int totalOrdersTaken();", "public double getClipCardSales() {\n\t\tdouble d = 0;\n\n\t\tfor (Order o : orders) {\n\t\t\tfor (ProductOrder po : o.getProductOrders()) {\n\t\t\t\tif (po.getProduct().getName().startsWith(\"Klippekort\")) {\n\t\t\t\t\td += po.price();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn d;\n\t}", "@Override\n\tpublic int getClipsCount() {\n\t\treturn _clipLocalService.getClipsCount();\n\t}", "public void calculateOrderCost(){\n int tmpCost=0;\n for (Vehicle v : vehicleList){\n tmpCost+=v.getCost();\n }\n totalCost=tmpCost;\n }", "public double getTotalCostOfOrder() {\n double total = 0;\n for (AbstractProduct item :\n this.itemsReceived) {\n total += item.getPrice();\n }\n return total;\n }", "int getNumOfSellOrders();", "int getNumOfBuyOrders();", "public int getTotalCoins() {\r\n\t\treturn goods.get(Resource.COIN);\r\n\t}", "long countUnprocessedOrders();", "public float totalCost() {\n\t\tttCost = 0;\n\t\tfor (int i = 0; i < itemsOrdered.size(); i++) {\n\t\t\tttCost += itemsOrdered.get(i).getCost();\n\t\t}\n\t\treturn ttCost;\n\t}", "public int countNumberClientsTotal() {\n\t\tint counter = 0;\n\t\tfor(int number : numberClients.values())\n\t\t\tcounter += number;\n\t\treturn counter;\n\t}", "private int getNumberOfBoxesOfAllShips() {\r\n int count = 30;\r\n return count;\r\n }", "private double calculateTotal(){\r\n double total = 0;\r\n for(int i = 0; i < orderList.size(); i++){\r\n total += orderList.getOrder(i).calculatePrice();\r\n }\r\n return total;\r\n }", "public int getShipPartsNeededCount() {\n return (maxDays * 2) / 3;\n }", "int getTrucksCount();", "private static void calculateTotalHitsRequired()\n {\n totalHitsRequired = 0;\n \n // add all the ship lengths together to get\n // the total number of hits required\n for (int length : SHIP_LENGTHS)\n {\n totalHitsRequired += length;\n }\n }", "public int totalCostOfComponents( ){\n\t\tint total=0;\n\t\tfor (Component temp : components){\n\t\t\ttotal+=temp.getCost();\n\t\t}\n\t\treturn total;\n\t}", "private int totalCount(Piece side) {\n int sum = 0;\n for (int i = 0; i < M; i++) {\n for (int j = 0; j < M; j++) {\n if (boardArr[i][j].abbrev().equals(sideAbbrev)) {\n sum++;\n }\n }\n }\n return sum;\n }", "int getTotal(){\n\t\treturn this.orderTotal;\n\t}", "public int getCoins() {\r\n\t\treturn collectionManager.getCoins();\r\n\t}", "@Override\n public double getTotalCommission() {\n double cost = 0.0;\n //increase cost for each report in the order\n for (Report report : reports.keySet()) {\n //report cost depends on the WorkType\n //audits are not capped by max employee count\n //regular orders are limited by max employee count\n int employeeCount = reports.get(report);\n cost += workType.calculateReportCost(report, employeeCount);\n }\n //increase cost of order based on priority\n //critical orders increase based on their critical loading\n //regular orders don't have an effect\n cost = priorityType.loadCost(cost);\n return cost;\n }", "public float totalCost() {\r\n float total = 0;\r\n for (int i=0; i<numItems; i++) {\r\n total += cart[i].getPrice();\r\n }\r\n return total;\r\n }", "public double getTotal() {\n double total = 0.0;\n for (OrderItem i : getOrderItems()) {\n total += i.getOrderQuantity() * i.getPrice();\n }\n return total;\n }", "public int getTotalRouteCost() {\n return totalRouteCost;\n }", "double getOrderSize();", "public double calcCost(){\n double cost = 0;\n cost += pMap.get(size);\n cost += cMap.get(crust);\n //Toppings are priced at 3.00 for 3-4 topppings, and 4.0 for 5+ toppings\n \n if(toppings !=null)\n {\n if((toppings.length == 3) || (toppings.length == 4)){\n cost += 3.0;\n }\n if (toppings.length > 4){\n cost += 4.0;\n }\n }\n \n return cost;\n }", "public synchronized int getNumberOfItems(){\n int totalItems=0;\n \n for(ShoppingCartItem item : getItems()){\n //we sum the quantity of products for each item\n totalItems += item.getQuantity();\n }\n \n return totalItems;\n }", "@Transient\n public Double getTotalOrderPrice() {\n double sum = 0;\n for (OrderItem oi : getOrderItems()) {\n sum += oi.getTotalPrice();\n }\n return sum;\n }", "public double countCalories() {\n double count = 0;\n\n for (VegetablePortion vegetablePortion : list) {\n count += vegetablePortion.getVegetable().getCalories() * vegetablePortion.getWeight();\n }\n\n return count;\n }", "public int getActiveRunwaysCount();", "public static void printOrderTotals() {\r\n System.out.println(\"\");\r\n System.out.println(\"********ORDER TOTALS********\");\r\n System.out.println(\"Total Pizza Sliders Ordered: \" + pizzaOrdered);\r\n System.out.println(\"Total Roast Beef Sliders Ordered: \" + roastOrdered);\r\n System.out.println(\"***************************\");\r\n System.out.println(\"\");\r\n }", "public int getNumTrials() \n {\n return cumulativeTrials; \n }", "int getDeliveriesCount();", "public int getCents()\r\n {\r\n return cents;\r\n }", "public int totalCostOfComponents()\n\t{\n\t\tint total = 0;\n\t\tfor (Component comp: configuration.values())\n\t\t{\n\t\t\ttotal += comp.getCost();\n\t\t}\n\t\treturn total;\n\t}", "@Test\n\tpublic void countOrderLines() {\n\t\tInteger response = null;\n\t\tresponse = service.countOrderLines();\n\t\t// TODO: JUnit - Add assertions to test outputs of operation: countOrderLines\n\t}", "public int totalGames() {\n return wins + losses + draws;\n }", "public int sumCalories() {\n int calories = 0;\n\n for (Food f : units) {\n calories += f.getCalories();\n }\n\n return calories;\n }", "private double totalPrice(){\n\n double sum = 0;\n\n for (CarComponent carComponent : componentsCart) {\n sum += (carComponent.getCompPrice() * carComponent.getCompQuantity()) ;\n }\n return sum;\n }", "public int get_podsActuels() {\r\n\t\tint pods = 0;\r\n\t\tfor(Objet value : _items.values())\r\n\t\t{\r\n\t\t\tpods = value.getTemplate().getPod() * value.getQuantity(); \r\n\t\t}\r\n\t\treturn pods;\r\n\t}", "@Override\n public int getRemainingMines() {\n int numPlacedFlags = cells.stream()\n .mapToInt(b -> (int) b.stream().filter(c -> c.getFlagState() == 1).count()).sum();\n return numMines - numPlacedFlags;\n }", "public int getRemainingPcs()\n\t{\n\t\treturn pieces.length - existing.cardinality();\n\t}", "public double calcTotalCaloriesBurned() {\n double sum = 0.0;\n for (ExerciseModel exercise : exercises) {\n sum += exercise.getCalories();\n }\n\n return sum;\n }", "public float calcOrderTotal()\r\n\t{\r\n\t\tOrderItem temp;\r\n\t\tfloat total = 0;\r\n\t\t\r\n\t\t//iterate through list and get quantity and unit price of each item\r\n\t\t//then multiply together and add to running total\r\n\t\tfor (int x = 0; x < orderItemList.size(); x++)\r\n\t\t{\r\n\t\t\ttemp = orderItemList.get(x);\r\n\t\t\ttotal = total + (temp.getProductQuant() * temp.getProductPrice());\r\n\t\t}\r\n\t\t\r\n\t\treturn total;\r\n\t}", "public int calculateTotalOrderPrice(Map<Pizza, Integer> pizzas) {\n\t\t\n\t\tint totalOrderPrice = calculateTotalOrderPriceWithoutDiscount(pizzas);\n\t\t\n\t\tint totalOrderPriceWithDiscount = totalOrderPrice - calculateTotalDiscount(pizzas); \n\t\t\n\t\tif (totalOrderPriceWithDiscount < 0) {\n\t\t\tthrow new RuntimeException(\"Total order price < 0\");\n\t\t}\n\t\t\n\t\treturn totalOrderPriceWithDiscount;\n\t}", "public int precioTotalRepuestos() {\n int sumaTotal = 0;\n for (Dispositivo dispositivo : dispositivos) {\n sumaTotal += dispositivo.getPrecioRepuesto();\n }\n return sumaTotal;\n }", "public int getToalCoins()\n\t{\n\t\treturn CoinCount;\n\t}", "public void calculateCost() {\n \tdouble costToShipPack;\n \tint numOfPacks = 1;\n \t\n \tfor(Package p: this.packages) {\n \t\tcostToShipPack = 3 + (p.calcVolume() - 1);\n \t\tthis.totalAmounts.put(\"Package \"+numOfPacks, costToShipPack);\n \t\tnumOfPacks++;\n \t}\n \t\n }", "private int obstaculos() {\n\t\treturn this.quadricula.length * this.quadricula[0].length - \n\t\t\t\tthis.ardiveis();\n\t}", "public int calculateTotalOrderPriceWithoutDiscount(Map<Pizza, Integer> pizzas) {\n\t\t\n\t\tvalidatePizzas(pizzas);\n\t\t\n\t\tint orderPrice = 0;\n\t\tfor(Entry<Pizza, Integer> entry : pizzas.entrySet()) {\n\t\t\tPizza pizza = entry.getKey();\n\t\t\tInteger pizzaCount = entry.getValue();\n\t\t\torderPrice += pizza.getPrice() * pizzaCount;\n\t\t}\n\t\t\n\t\treturn orderPrice;\n\t}", "public int calculateTotalDiscount(Map<Pizza, Integer> pizzas) {\n\t\tint totalOrderPrice = calculateTotalOrderPriceWithoutDiscount(pizzas);\n\t\tint maxPizzaPriceDiscount = calculateMaxPizzaPriceDiscount(pizzas);\n\t\tint orderPriceWithMaxPizzaPriceDiscount = totalOrderPrice - maxPizzaPriceDiscount;\n\t\t\n\t\treturn maxPizzaPriceDiscount \n\t\t\t\t+ discountCalculator.calculateDiscount(orderPriceWithMaxPizzaPriceDiscount,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\taccumulativeCardSum);\n\t}", "int getMetricCostsCount();", "public BigDecimal getTotal() {\n BigDecimal total = new BigDecimal(0);\n for (Item item : items){\n int quantity = item.getQuantity();\n BigDecimal subtotal = item.getPrice().multiply(new BigDecimal(quantity));\n total = total.add(subtotal);\n }\n return total;\n }", "public int numShippings( EAIMMCtxtIfc theCtxt) throws EAIException;", "public void calcTroops() {\r\n\t\t//Based on how many troops the player owns this will add to their spendage with a minimum of 2\r\n\t\ttroopSpendage = (players.get(turnCounter).getCountries().size()) / 3;\r\n\t\tif (troopSpendage < 3) {\r\n\t\t\ttroopSpendage = 3;\r\n\t\t}\r\n\t\t//If a player owns an entire continent, they will get a continent bonus to their spendage\r\n\t\t//these counters record how much of a continent the player owns\r\n\t\tint Kjersia = 0;\r\n\t\tint Estoveria = 0;\r\n\t\tint Moa = 0;\r\n\t\tint Shilov = 0;\r\n\t\tint Tormudd = 0;\r\n\t\tint Eschilles = 0;\r\n\t\t\r\n\t\t//increment the corresponding continent counter based on the continent value stored in the country objects the player owns\r\n\t\tfor (Country c:players.get(turnCounter).getCountries()) {\r\n\t\t\tswitch (c.getContinent()) {\r\n\t\t\tcase \"Kjersia\": Kjersia++;\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"Estoveria\": Estoveria++;\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"Moa\": Moa++;\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"Shilov\": Shilov ++;\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"Tormudd\": Tormudd++;\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"Eschilles\": Eschilles++;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//If the player owns all countries in a continent (each continent has different numbers of countries), give them a corresponding troop bonus as decided by the rules of the game\r\n\t\tif (Kjersia == 4) {\r\n\t\t\ttroopSpendage += 2;\r\n\t\t}\r\n\t\tif (Estoveria == 8) {\r\n\t\t\ttroopSpendage += 5;\r\n\t\t}\r\n\t\tif (Moa == 9) {\r\n\t\t\ttroopSpendage += 6;\r\n\t\t}\r\n\t\tif (Shilov == 4) {\r\n\t\t\ttroopSpendage += 3;\r\n\t\t}\r\n\t\tif (Tormudd == 5) {\r\n\t\t\ttroopSpendage += 3;\r\n\t\t}\r\n\t\tif (Eschilles == 12) {\r\n\t\t\ttroopSpendage += 7;\r\n\t\t}\r\n\r\n\t\t//If a player owns the card and owns the coresponding country on that card they get one extra troop\r\n\t\tfor(Card C: players.get(turnCounter).getCards()) \r\n\t\t\tfor(Country co: players.get(turnCounter).getCountries())\r\n\t\t\t\tif (C.getCountry().equals(co.getName()))\r\n\t\t\t\t\ttroopSpendage++;\t\t\r\n\t\t\r\n\t\t//Updates the display of how many troops the player has to deploy\r\n\t\ttroopsToDeploy.setText(\"Troops to Deploy: \" + troopSpendage);\r\n\t}", "private int currentCapacity(){\n int total = 0;\n \n for(int i = Elevator.MIN_FLOOR; i <= Elevator.MAX_FLOOR; i++){\n total += destinedPassengers[i];\n }\n \n return total;\n }", "public int getTotalRegularCards() {\n return StatisticsHelper.sumMapValueIntegers(statistics.getCardsByWins());\n }", "public int getTotalChips() {\n int size1 = stackA.getNumChips();\n int size2 = stackB.getNumChips();\n int size3 = stackC.getNumChips();\n return size1 + size2 + size3 ;\n }", "protected double getNumWithdrawals() {\n return numWithdrawals;\n }", "public int getCents() {\n return cents;\n }", "public int getCents() {\n return cents;\n }", "public void caltotalprice(){\n \tthis.mTotalPrice = 0;\n \tif (this.isCoachSeat) {\n \t\tfor (Flight f: this.mLegs) {\n \t\t\tthis.mTotalPrice += f.coachprice();\n \t\t}\n \t}else {\n \t\tfor (Flight f: this.mLegs) {\n \t\t\tthis.mTotalPrice += f.firstclassprice();\n \t\t}\n \t}\n }", "public static int totalClicks() {\n return counterClicks;\n }", "public static int totalSupply() {\n return totalSupplyGet();\n }", "public int getNumberOfCoins() {\n return coins;\n }", "public double totalQuantity() {\r\n\t\tdouble t = 0;\r\n\t\tfor(int i=0;i<boxes[0];i++)\r\n\t\t\tfor(int j=0;j<boxes[1];j++)\r\n\t\t\t\tfor(int k=0;k<boxes[2];k++) t += quantity[i][j][k];\r\n\t\treturn t;\r\n\t}", "int getWayCount();", "int getPurchasableOffersCount();", "int getActAmountCount();", "public int getCosts() {\n return costs.get(level);\n }", "public int howManyPieces() {\n int totalPieces = 0;\n // for each item in stock\n for (int i = 0; i < this._noOfItems; i++) {\n // add the quantity of the item to the sum\n totalPieces += this._stock[i].getQuantity();\n }\n // and return the total of quantities\n return totalPieces;\n }", "public int getTotalPriceOfReservedBeanBags() {\n int TotalReservedPrice = 0;\r\n // Loop through every object in the \"stockList\" object array list.\r\n for (int i = 0; i < stockList.size(); i++) {\r\n // Define int \"CurrentPrice\" and set to value in the \"stockList\" object array list.\r\n int CurrentPrice = ((BeanBag) stockList.get(i)).getPrice();\r\n // If the beanbag in \"stockList\" is reserved.\r\n if (((BeanBag) stockList.get(i)).getReserved()) {\r\n // Increment the value of \"TotalReservedPrice\" by int \"CurrentPrice\".\r\n TotalReservedPrice = TotalReservedPrice + CurrentPrice;\r\n }\r\n }\r\n // Once all value's examined, return the value of \"TotalReservedPrice\" int.\r\n return TotalReservedPrice;\r\n }", "public int getTotalWins() {\n int sum = 0;\n for (int i = 0; i < 13; i++) {\n sum += i * this.statistics.getDecksByWins().get(i);\n }\n return sum;\n }", "@Override\r\n\tpublic int precioTotal() {\n\t\treturn this.precio;\r\n\t}", "public long getTotalItems(@NonNull ReplayStrategy replayStrategy) {\n return checkpoints.values().stream().mapToLong(replayStrategy::getTotalItems).sum();\n }", "public int averageOrderQuantity() {\n\t\tint orderQuantity = 0;\n\n\t\tfor (CustomerWithGoods customerWithGoods : allCustomers) {\n\t\t\torderQuantity += customerWithGoods.getGoods().size();\n\t\t}\n\t\treturn orderQuantity / allCustomers.size();\n\t}", "public int totalCost()\n {\n int cost = 0;\n for (DessertItem item : dessertList) {\n cost += item.getCost();\n }\n return cost;\n }", "public int getPopsCount() {\n return pops_.size();\n }", "@Override\r\n\tpublic double getCost() {\r\n\t\tdouble total = 0;\r\n\t\t\r\n\t\tfor(Product p: parts) {\r\n\t\t\ttotal += p.getCost();\r\n\t\t}\r\n\t\t\r\n\t\treturn total;\r\n\t}", "public double getTotalControlCount(){\n\t\tdouble total=0;\n\t\tfor(Sample s: controlSamples)\n\t\t\ttotal += s.getHitCount();\n\t\treturn total;\n\t}", "@Override\n public int summarizeQuantity() {\n int sum = 0;\n\n for ( AbstractItem element : this.getComponents() ) {\n sum += element.summarizeQuantity();\n }\n\n return sum;\n }", "public int getPopsCount() {\n if (popsBuilder_ == null) {\n return pops_.size();\n } else {\n return popsBuilder_.getCount();\n }\n }", "public BigDecimal total() {\n return executor.calculateTotal(basket);\n }", "public void calculateOrderTotals() {\n NumberFormat formatter = NumberFormat.getCurrencyInstance();\n\n //order number increases for each order\n orderNo++;\n System.out.println(\"- \" + \"OrderNo: \" + orderNo + \" -\");\n\n //cycle through the items in the order and add to the totals\n for(Item i : items) {\n\n incrementOrderTotal(i.getNumOfItems() * i.getPriceWithTax());\n incrementOrderSalesTax(i.getNumOfItems() * i.getTaxOnItem());\n\n System.out.println(i.getDescrip() + formatter.format(i.getPriceWithTax()));\n }\n\n //print out totals\n System.out.println(\"Sales taxes: \" + formatter.format(Math.round(getOrderSalesTax() * 100.0) / 100.0));\n System.out.println(\"Order total: \" + formatter.format(Math.round(getOrderTotal() * 100.0) / 100.0));\n System.out.println(\"\\n\");\n }", "public BigDecimal calculateTotal() {\r\n BigDecimal orderTotal = BigDecimal.ZERO;\r\n \r\n final Iterator<Item> iterator = myShoppingCart.keySet().iterator();\r\n \r\n while (iterator.hasNext()) {\r\n final BigDecimal currentOrderPrice = myShoppingCart.get(iterator.next());\r\n \r\n orderTotal = orderTotal.add(currentOrderPrice);\r\n }\r\n \r\n //if membership take %10 off the total cost\r\n if (myMembership) {\r\n if (orderTotal.compareTo(new BigDecimal(\"25.00\")) == 1) { //myOrderTotal > $25\r\n final BigDecimal discount = DISCOUNT_RATE.multiply(orderTotal); \r\n orderTotal = orderTotal.subtract(discount);\r\n }\r\n }\r\n \r\n return orderTotal.setScale(2, RoundingMode.HALF_EVEN);\r\n }", "public int getCalories() {\n return this.calories += ((this.protein * 4) + (this.carbohydrates * 4) + (this.fats * 9));\n }", "public int totalWorth() {\n\t\tint val = 0;\n\t\tfor (Card c : cards) {\n\t\t\tval += c.value();\n\t\t}\n\t\treturn val;\n\t}", "public int size() {\n return trips.size();\n }", "public double getP2TotalChips(){\n\t\treturn p2TotalChips;\n\t}", "int getAcksCount();", "int getAcksCount();", "public BigDecimal countTotalOrderPriceDiscount(Order order) {\n\n return order.getTotalOrderPrice().multiply(\n new BigDecimal(order.getOrder_discount())).divide(new BigDecimal(100));\n }", "public double totalSurfaceArea() {\n int index = 0;\n double total = 0.0;\n while (index < icosList.size()) {\n total += icosList.get(index).surfaceArea();\n index++; \n }\n return total;\n }", "int getPriceCount();", "public double getTotal(){\n\t\tdouble Total = 0;\n\t\t\n\t\tfor(LineItem lineItem : lineItems){\n\t\t\tTotal += lineItem.getTotal();\t\n\t\t}\n\t\treturn Total;\n\t}", "public double getTotal(){\n\t\tBigDecimal total =BigDecimal.valueOf(0);\n\t\tfor(CartItem cartItem : map.values()){\n\t\t\ttotal = total.add(BigDecimal.valueOf(cartItem.getSubtotal())) ;\n\t\t}\t\t\n\t\treturn total.doubleValue();\n\t}", "public int getTotalExtraPacks() {\n return StatisticsHelper.sumMapValueIntegers(statistics.getExtraPacksByWins());\n }", "public synchronized double getTotal(){\n double totalPrice=0;\n \n for(ShoppingCartItem item : getItems()){\n totalPrice += item.getTotal();\n }\n \n return totalPrice;\n }" ]
[ "0.66640526", "0.6269817", "0.62594736", "0.6225796", "0.6090008", "0.59525746", "0.59422654", "0.5780096", "0.5755203", "0.5742436", "0.5699746", "0.5629488", "0.5611979", "0.56092215", "0.5596171", "0.55761653", "0.55505013", "0.5543934", "0.5534387", "0.55184865", "0.547424", "0.54691184", "0.5451363", "0.5415785", "0.5413108", "0.5401418", "0.5400169", "0.53901994", "0.5368216", "0.53682095", "0.53545624", "0.53377753", "0.5335964", "0.5330256", "0.53172714", "0.53106695", "0.53084826", "0.52913815", "0.52864647", "0.5277324", "0.52683794", "0.5267616", "0.5263983", "0.5262919", "0.5253045", "0.5240897", "0.5237333", "0.52342415", "0.52331245", "0.5230112", "0.5229728", "0.5221903", "0.52217376", "0.5217996", "0.5214184", "0.5211349", "0.52075034", "0.5196187", "0.51900864", "0.51889443", "0.51836914", "0.5181506", "0.5181506", "0.51766044", "0.51695263", "0.5168402", "0.5160441", "0.5151539", "0.51470095", "0.51435906", "0.51348", "0.5133654", "0.51288855", "0.51278985", "0.5127827", "0.51277095", "0.51273155", "0.51239425", "0.51170355", "0.51127887", "0.51105237", "0.5107544", "0.5106901", "0.5105867", "0.5105661", "0.5105618", "0.51043487", "0.5095819", "0.50825065", "0.50781965", "0.50753707", "0.5075075", "0.5075075", "0.5070218", "0.50672054", "0.50654536", "0.5064714", "0.5056824", "0.50539947", "0.5050314" ]
0.74066967
0
Returns a map with the total price of all sales for each category used in an order NOTE: Categories with no sale will not show up
public Map<String, Double> getSalesPrCategory() { Map<String, Double> sales = new HashMap<>(); for (Order o : orders) { for (ProductOrder po : o.getProductOrders()) { String category = po.getProduct().getCategory(); Double currentTotal = sales.get(category); if (currentTotal == null) { currentTotal = 0.0; } currentTotal += po.price(); sales.put(category, currentTotal); } } return sales; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Map<String, Double> getSalesPrBeer() {\n\t\tMap<String, Double> sales = new HashMap<>();\n\n\t\tfor (Order o : orders) {\n\t\t\tfor (ProductOrder po : o.getAllProducts()) {\n\t\t\t\tProduct p = po.getProduct();\n\t\t\t\tString category = po.getProduct().getCategory();\n\n\t\t\t\tif (category.equals(\"fadøl\") || category.equals(\"flaske\")\n\t\t\t\t\t\t|| category.equals(\"fustage\")) {\n\n\t\t\t\t\tString name = p.getName().split(\",\")[0].trim();\n\t\t\t\t\tDouble currentTotal = sales.get(name);\n\n\t\t\t\t\tif (currentTotal == null) {\n\t\t\t\t\t\tcurrentTotal = 0.0;\n\t\t\t\t\t}\n\n\t\t\t\t\tcurrentTotal += po.price();\n\n\t\t\t\t\tsales.put(name, currentTotal);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn sales;\n\t}", "public Map<Pricelist, Double> getSalesPrPricelist() {\n\t\tMap<Pricelist, Double> sales = new HashMap<>();\n\n\t\tfor (Order o : orders) {\n\t\t\tDouble currentTotal = sales.get(o.getPricelist());\n\n\t\t\tif (currentTotal == null) {\n\t\t\t\tcurrentTotal = 0.0;\n\t\t\t}\n\n\t\t\tcurrentTotal += o.totalPrice();\n\n\t\t\tsales.put(o.getPricelist(), currentTotal);\n\t\t}\n\n\t\treturn sales;\n\t}", "public HashMap<String, ArrayList[]> determineSale() {\n HashMap<String, ArrayList[]> ordersMap = new HashMap<>();\n ordersMap.put(\"ms\", new ArrayList<Integer>[2]);\n ordersMap.put(\"gs\", new ArrayList<Integer>[2]);\n ordersMap.put(\"xlf\", new ArrayList<Integer>[2]);\n ordersMap.put(\"wfc\", new ArrayList<Integer>[2]);\n ordersMap.put(\"bond\", new ArrayList<Integer>[2]);\n\n Integer temp;\n int ind = 0;\n ArrayList<Integer> prices = ordersMap.get(\"bond\")[0];\n ArrayList<Integer> quantities = ordersMap.get(\"bond\")[1];\n for (int i = 0; i < 3; i++) {\n temp = bondsBuy.poll();\n if (prices.get(ind).equals(temp)) {\n quantities.set(ind, quantities.get(ind) + 1);\n } else {\n prices.add(temp);\n quantities.add(1);\n ind++;\n }\n }\n ind = 0;\n prices = ordersMap.get(\"gs\")[0];\n quantities = ordersMap.get(\"gs\")[1];\n for (int i = 0; i < 2; i++) {\n temp = bondsBuy.poll();\n if (prices.get(ind).equals(temp)) {\n quantities.set(ind, quantities.get(ind) + 1);\n } else {\n prices.add(temp);\n quantities.add(1);\n ind++;\n }\n } \n ind = 0;\n prices = ordersMap.get(\"ms\")[0];\n quantities = ordersMap.get(\"ms\")[1]; \n for (int i = 0; i < 3; i++) {\n temp = bondsBuy.poll();\n if (prices.get(ind).equals(temp)) {\n quantities.set(ind, quantities.get(ind) + 1);\n } else {\n prices.add(temp);\n quantities.add(1);\n ind++;\n }\n }\n ind = 0;\n prices = ordersMap.get(\"wfc\")[0];\n quantities = ordersMap.get(\"wfc\")[1]; \n for (int i = 0; i < 2; i++) {\n temp = bondsBuy.poll();\n if (prices.get(ind).equals(temp)) {\n quantities.set(ind, quantities.get(ind) + 1);;\n } else {\n prices.add(temp);\n quantities.add(1);\n ind++;\n }\n }\n ind = 0;\n prices = ordersMap.get(\"xlf\")[0];\n quantities = ordersMap.get(\"xlf\")[1]; \n for (int i = 0; i < 10; i++) {\n temp = bondsBuy.poll();\n if (prices.get(ind).equals(temp)) {\n quantities.set(ind, quantities.get(ind) + 1);\n } else {\n prices.add(temp);\n quantities.add(1);\n ind++;\n }\n }\n return ordersMap;\n }", "private double calculateTotal(){\r\n double total = 0;\r\n\r\n for(Restaurant restaurant: restaurantMap.getRestaurantMap().values()){\r\n total += restaurant.getRevenue();\r\n }\r\n\r\n return total;\r\n }", "@Override\r\n\tpublic List<SalesAnalysis> getSalesAnalysis(Date fromDate, Date toDate) {\r\n\t\t\r\n\t\tList<SalesAnalysis> salesAnalysisDetails=new ArrayList<>();\r\n\t\tSalesAnalysis salesAnalysis=new SalesAnalysis();\r\n\t\t\r\n\t\t//get orders placed in the given period\r\n\t\tList<Order> orderDetails=orderService.getOrdersBetween(fromDate, toDate);\r\n\t\t\r\n\t\tHashMap<String, Double> purchasePriceDetails=new HashMap<>();\r\n\t\tHashMap<String, Double> salesPriceDetails=new HashMap<>();\r\n\t\tint qty=0;\r\n\t\tdouble salesPrice=0;\r\n\t\tdouble purchasePrice=0;\r\n\t\t\r\n\t\t//get total revenue for period\r\n\t\tdouble totalRevenue=getTotalRevenueBetween(fromDate, toDate);\r\n\t\t\r\n\t\t//get best seller details for the products, category-wise(from PRODUCT table)\r\n\t\tList<Object[]> bestSellerDetails=productService.getBestSellerId();\r\n\t\tSystem.out.println(bestSellerDetails);\r\n\t\t\r\n\t\t\r\n\t\t//for each product category, check sales details\r\n\t\tfor(Object[] object:bestSellerDetails)\t{\r\n\t\t\tString productCategory=(String)object[0];\r\n\t\t\tsalesPrice=0;\r\n\t\t\tpurchasePrice=0;\r\n\t\t\tpurchasePriceDetails.put(productCategory, purchasePrice);\r\n\t\t\tsalesPriceDetails.put(productCategory, salesPrice);\r\n\t\t\t\r\n\t\t\t//for each order, check product category and add details to maps\r\n\t\t\tfor(Order order:orderDetails)\t{\r\n\t\t\t\t\r\n\t\t\t\t//get products in this order\r\n\t\t\t\tList<CartProduct> products=order.getCart().getCartProducts();\r\n\t\t\t\t\r\n\t\t\t\t//getting purchase price details for each product ordered\r\n\t\t\t\tfor(CartProduct product:products)\t{\r\n\t\t\t\t\tif(product.getProduct().getProductCategory().equals(productCategory))\t{\r\n\t\t\t\t\t\tpurchasePrice=purchasePriceDetails.get(productCategory)+\r\n\t\t\t\t\t\t\t\t(product.getProduct().getQuantity()*product.getProduct().getProductPrice());\r\n\t\t\t\t\t\tpurchasePriceDetails.put(productCategory, purchasePrice);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//getting sales price details for each product ordered\r\n\t\t\t\tfor(CartProduct product:products)\t{\r\n\t\t\t\t\tif(product.getProduct().getProductCategory().equals(productCategory))\t{\r\n\t\t\t\t\t\tqty=product.getQuantity();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tsalesPrice=salesPriceDetails.get(productCategory)+\r\n\t\t\t\t\t\t\t\t(qty*(100-product.getProduct().getDiscount())*product.getProduct().getProductPrice())/100;\r\n\t\t\t\t\t\tsalesPriceDetails.put(productCategory, salesPrice);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t//make SalesAnalysis object using obtained data\r\n\t\t\tsalesAnalysis.setProductCategory(productCategory);\r\n\t\t\tsalesAnalysis.setMerchant(merchantService.getMerchantName((Integer)object[1]));\r\n\t\t\tsalesAnalysis.setProductQuantity(purchasePriceDetails.get(productCategory));\r\n\t\t\tsalesAnalysis.setProductSales(salesPriceDetails.get(productCategory));\r\n\t\t\tsalesAnalysis.setSalesPercent((salesAnalysis.getProductSales()*100)/salesAnalysis.getProductQuantity());\r\n\t\t\tsalesAnalysis.setTotalRevenue(totalRevenue);\r\n\t\t\t\r\n\t\t\t//make a list of sales analysis performed\r\n\t\t\tsalesAnalysisDetails.add(salesAnalysis);\r\n\t\t}\r\n\t\t\r\n\t\treturn salesAnalysisDetails;\r\n\t}", "public Map<String, Object> countOrdersByFood() {\n Map<String, Object> foodCount = new HashMap<String, Object>();\n for(Map.Entry<String, List<Order>> order : this.orders.entrySet()){\n foodCount.put(order.getKey(),order.getValue().size());\n }\n return foodCount;\n }", "public static Map<Integer, TaxCategory> federal() {\n\n\t\t\tHashMap<Integer, TaxCategory> categories = new HashMap<Integer, TaxCategory>();\n\t\t\ttry {\n\t\t\t\t//INSERT YOUR CODE HERE - Using the specification given on Federal\n\t\t\t\t//You will need to study how Manitoba is being implemented\n\t\t\t\tTaxCategory cat1 = new TaxCategory(15, 0, 49020); //Tax Category 1 for federal\n\t\t\t\tcategories.put( 1, cat1 );//puts both the key and the Taxcategory(value) into the hashmap for category 1\n\t\t\t\tTaxCategory cat2 = new TaxCategory( 20.5, 49020.01, 98040); //Tax Category 2 for federal\n\t\t\t\tcategories.put( 2, cat2 );//puts both the key and the Taxcategory(value) into the hashmap for category 2\n\t\t\t\tTaxCategory cat3 = new TaxCategory(26, 98040.01, 151978); //Tax Category 3 for federal\n\t\t\t\tcategories.put( 3, cat3 );//puts both the key and the Taxcategory(value) into the hashmap for category 3\n\t\t\t\tTaxCategory cat4 = new TaxCategory(29, 151978.01, 216511); //Tax Category 4 for federal\n\t\t\t\tcategories.put( 4, cat4 );//puts both the key and the Taxcategory(value) into the hashmap for category 4\n\t\t\t\tTaxCategory cat5 = new TaxCategory(33, 216511.01, 10000000); //Tax Category 5 for federal\n\t\t\t\tcategories.put( 5, cat5 );//puts both the key and the Taxcategory(value) into the hashmap for category 5\n\n\t\t\t} catch( Exception e ) {}\n\n\t\t\treturn categories;\n\t\t}", "public static Map<Integer, TaxCategory> novaScotia() {\n\n\t\t\tHashMap<Integer, TaxCategory> categories = new HashMap<Integer, TaxCategory>();\n\t\t\ttry {\n\t\t\t\t//INSERT YOUR CODE HERE - Using the specification given on Federal\n\t\t\t\t//You will need to study how Manitoba is being implemented\n\t\t\t\tTaxCategory cat1 = new TaxCategory(8.79, 0, 29590.00); //Tax Category 1 for NS\n\t\t\t\tcategories.put( 1, cat1 ); //puts both the key and the Taxcategory(value) into the hashmap for category 1\n\t\t\t\tTaxCategory cat2 = new TaxCategory(14.95, 29590.01, 59180.00); //Tax Category 2 for NS\n\t\t\t\tcategories.put( 2, cat2 ); //puts both the key and the Taxcategory(value) into the hashmap for category 2\n\t\t\t\tTaxCategory cat3 = new TaxCategory(16.67, 59180.01, 93000.00); //Tax Category 3 for NS\n\t\t\t\tcategories.put( 3, cat3 ); //puts both the key and the Taxcategory(value) into the hashmap for category 3\n\t\t\t\tTaxCategory cat4 = new TaxCategory(17.50, 93000.01, 150000.00); //Tax Category 4 for NS\n\t\t\t\tcategories.put( 4, cat4 ); //puts both the key and the Taxcategory(value) into the hashmap for category 4\n\t\t\t\tTaxCategory cat5 = new TaxCategory(21.00, 150000.01, 10000000); //Tax Category 15for NS\n\t\t\t\tcategories.put( 5, cat5 ); //puts both the key and the Taxcategory(value) into the hashmap for category 5\n\n\t\t\t} catch( Exception e ) {}\n\n\t\t\treturn categories;\n\t\t}", "public void categoryTotal()\n {\n attiretra=c+c2+c3;\n audibitytra=d+d2+d3;\n emphasistra=e+e2+e3;\n gesturetra=f+f2+f3;\n contenttra=g+g2+g3;\n dikomatra=at+at2+at3;\n diagelotra=bt+bt2+bt3;\n humantra=ct+ct2+ct3;\n womenabusetra=dt+dt2+dt3;\n killingtra=ht+ht2+ht3;\n rapetra=et+et2+et3;\n xenophobiatra=gt+gt2+gt3;\n albinismtra=ft+ft2+ft3;\n }", "double calculateTotalPrice(Map<String, Item> itemMap, List<String> itemList);", "public static Map<Integer, TaxCategory> manitoba() {\n\n\t\t\tHashMap<Integer, TaxCategory> categories = new HashMap<Integer, TaxCategory>();\n\t\t\ttry {\n\t\t\t\tTaxCategory cat1 = new TaxCategory(10.8, 0, 33723);\n\t\t\t\tcategories.put( 1, cat1 );\n\t\t\t\tTaxCategory cat2 = new TaxCategory(12.75, 33723.01, 72885);\n\t\t\t\tcategories.put( 2, cat2 );\n\t\t\t\tTaxCategory cat3 = new TaxCategory(17.4, 72885.01, 100000000);\n\t\t\t\tcategories.put( 3, cat3 );\n\t\t\t} catch( Exception e ) {}\n\n\t\t\treturn categories;\n\t\t}", "public static Map<Integer, TaxCategory> ontario() {\n\n\t\t\tHashMap<Integer, TaxCategory> categories = new HashMap<Integer, TaxCategory>();\n\t\t\ttry {\n\t\t\t\t//INSERT YOUR CODE HERE - Using the specification given on Federal\n\t\t\t\t//You will need to study how Manitoba is being implemented\n\t\t\t\tTaxCategory cat1 = new TaxCategory(5.05, 0, 44740); //Tax Category 1 for ON\n\t\t\t\tcategories.put( 1, cat1 ); //puts both the key and the Taxcategory(value) into the hashmap for category 1\n\t\t\t\tTaxCategory cat2 = new TaxCategory(9.15, 44740.01, 89482);//Tax Category 2 for ON\n\t\t\t\tcategories.put( 2, cat2 );//puts both the key and the Taxcategory(value) into the hashmap for category 2\n\t\t\t\tTaxCategory cat3 = new TaxCategory(11.16, 89482.01, 150000);//Tax Category 3 for ON\n\t\t\t\tcategories.put( 3, cat3 );//puts both the key and the Taxcategory(value) into the hashmap for category 3\n\t\t\t\tTaxCategory cat4 = new TaxCategory(12.16, 150000.01, 220000);//Tax Category 4 for ON\n\t\t\t\tcategories.put( 4, cat4 );//puts both the key and the Taxcategory(value) into the hashmap for category 4\n\t\t\t\tTaxCategory cat5 = new TaxCategory(13.16, 220000.01, 10000000);//Tax Category 5 for ON\n\t\t\t\tcategories.put( 5, cat5 ); //puts both the key and the Taxcategory(value) into the hashmap for category 5\n\n\t\t\t} catch( Exception e ) {}\n\n\t\t\treturn categories;\n\t\t}", "public Map<User, Double> getSalesPrUser() {\n\t\tMap<User, Double> sales = new HashMap<>();\n\n\t\tfor (Order o : orders) {\n\t\t\tDouble currentTotal = sales.get(o.getUser());\n\n\t\t\tif (currentTotal == null) {\n\t\t\t\tcurrentTotal = 0.0;\n\t\t\t}\n\n\t\t\tcurrentTotal += o.totalPrice();\n\n\t\t\tsales.put(o.getUser(), currentTotal);\n\t\t}\n\n\t\treturn sales;\n\t}", "public static Map<Integer, TaxCategory> saskatchewan() {\n\n\t\t\tHashMap<Integer, TaxCategory> categories = new HashMap<Integer, TaxCategory>();\n\t\t\ttry {\n\t\t\t\t//INSERT YOUR CODE HERE - Using the specification given on Federal\n\t\t\t\t//You will need to study how Manitoba is being implemented\n\t\t\t\tTaxCategory cat1 = new TaxCategory(10.5, 0, 45677.00); //Tax Category 1 for SK\n\t\t\t\tcategories.put( 1, cat1 );//puts both the key and the Taxcategory(value) into the hashmap for category 1\n\t\t\t\tTaxCategory cat2 = new TaxCategory(12.50, 45677.01, 130506.00);//Tax Category 2 for SK\n\t\t\t\tcategories.put( 2, cat2 );//puts both the key and the Taxcategory(value) into the hashmap for category 2\n\t\t\t\tTaxCategory cat3 = new TaxCategory(13.16, 130506.01, 10000000);//Tax Category 3 for SK\n\t\t\t\tcategories.put( 3, cat3 );//puts both the key and the Taxcategory(value) into the hashmap for category 3\n\n\t\t\t} catch( Exception e ) {}\n\n\t\t\treturn categories;\n\t\t}", "public double calculate(Map<String, Order> orders) {\n\n\t\t// This is the fix to avoid null pointer exception if Cart has null\n\t\t// orders\n\t\tif (orders == null) {\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"Orders are invalid. Input is null\");\n\t\t}\n\t\t// GrandTotal is initialized outside the loop to have the grand total\n\t\tdouble grandTotal = 0;\n\n\t\t// Iterate through the orders\n\t\tfor (Map.Entry<String, Order> entry : orders.entrySet()) {\n\t\t\tSystem.out.println(\"*******\" + entry.getKey() + \"*******\");\n\t\t\tOrder order = entry.getValue();\n\t\t\tdouble totalTax = 0;\n\t\t\tdouble total = 0;\n\n\t\t\t// Iterate through the items in the order\n\t\t\t/*\n\t\t\t * In lists indexes starts with 0 and ends with its size-1. We\n\t\t\t * should not include indexes which are not exist,it will leads to\n\t\t\t * ArrayIndexOutofBoundException. Hence logical operator = is\n\t\t\t * removed\n\t\t\t */\n\t\t\tfor (int i = 0; i < order.size(); i++) {\n\n\t\t\t\t// Calculate the taxes\n\t\t\t\tdouble tax = 0;\n\n\t\t\t\tItem item = order.get(i).getItem();\n\n\t\t\t\ttax = calculateTax(item);\n\n\t\t\t\t// Calculate the total price\n\t\t\t\tdouble totalPrice = item.getPrice() + tax;\n\n\t\t\t\t// Print out the item's total price\n\t\t\t\t// Wrong way of rounding off here it is fixed with the help of\n\t\t\t\t// BigDecimal\n\t\t\t\tSystem.out.println(item.getDescription() + \": \"\n\t\t\t\t\t\t+ roundToTwoDecimal(totalPrice));\n\n\t\t\t\t// Keep a running total\n\t\t\t\ttotalTax += tax;\n\t\t\t\ttotal += item.getPrice();\n\t\t\t}\n\n\t\t\t// Print out the total taxes\n\t\t\t// Wrong way of rounding off here it is fixed with the help of\n\t\t\t// BigDecimal\n\t\t\tSystem.out\n\t\t\t\t\t.println(\"Sales Tax: \" + roundToTwoDecimal(totalTax) /*\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * Math.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * floor\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * (\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * totalTax\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * )\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t */);\n\n\t\t\t// Fix to Total. Total should not include Tax\n\t\t\t// total = total + totalTax;\n\n\t\t\t// Print out the total amount\n\t\t\t// Wrong way of rounding off here it is fixed with the help of\n\t\t\t// BigDecimal\n\t\t\tSystem.out.println(\"Total: \" + roundToTwoDecimal(total) /*\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * Math.floor\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * (total *\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * 100) /\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * 100\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t */);\n\t\t\tgrandTotal += total;\n\t\t}\n\n\t\t// grandtotal = Math.floor(grandtotal * 100) / 100;\n\t\t// Bug Fix: 10 (Wrong way of rounding. To meet the requirements, we\n\t\t// should be using BigDecimal.)\n\t\tSystem.out.println(\"Sum of orders: \" + roundToTwoDecimal(grandTotal));\n\n\t\treturn grandTotal;\n\t}", "Map<Item, List<Double>> calculateDiscountPriceList(Map<String, Item> itemMap, List<String> itemList);", "public static void main(String[] args) {\n\t\tList<Map<String, Object>> dataList = new ArrayList<>();\n\t\tMap<String, Object> apple = new TreeMap<>();\n\t\tapple.put(\"Items\", \"Apple\");\n\t\tapple.put(\"Price\", 20.00);\n\t\tapple.put(\"Quantity\", 10);\n\n\t\tdataList.add(apple);\n\n\t\tMap<String, Object> orange = new TreeMap<String, Object>();\n\t\torange.put(\"Items\", \"Orange\");\n\t\torange.put(\"Price\", 21.99);\n\t\torange.put(\"Quantity\", 10);\n\n\t\tdataList.add(orange);\n\n\t\tSet<String> appleEntry = apple.keySet();\n\n\t\tIterator<String> appleIt = appleEntry.iterator();\n\n\t\tObject t = 0;\n\t\twhile (appleIt.hasNext()) {\n\t\t\tString key = appleIt.next();\n\t\t\tObject value = apple.get(key);\n\n\t\t\tdouble p = (double) apple.get(\"Price\");\n\t\t\tInteger q = (Integer) apple.get(\"Quantity\");\n\t\t\tt = p * q;\n\n\t\t\tSystem.out.print(key + \": \" + value + \" \");\n\t\t}\n\t\tSystem.out.println(\"SubTotal: \" + t);\n\n\t\tSet<String> orangeEntry = orange.keySet();\n\n\t\tObject t1 = 0;\n\t\tfor (String forLoop : orangeEntry) {\n\t\t\tString key = forLoop;\n\t\t\tObject value = orange.get(forLoop);\n\n\t\t\tDouble p = (Double) orange.get(\"Price\");\n\t\t\tInteger q = (Integer) orange.get(\"Quantity\");\n\t\t\tt1 = p * q;\n\n\t\t\tSystem.out.print(key + \": \" + value + \" \");\n\t\t}\n\t\tSystem.out.println(\"SubTotal: \" + t1);\n\n\t\tdouble appleTotal = (double) t;\n\t\tdouble orangeTotal = (double) t1;\n\t\tdouble totalPurchase = appleTotal + orangeTotal;\n\n\t\tSystem.out.println(\"Your Purchase is: \" + totalPurchase);\n\n\t\tSystem.out.println(\"- - - A N O T H E R - W A Y - - -\");\n\n\t\tList<Map<String, Object>> dataList1 = new ArrayList<Map<String, Object>>();\n\n\t\tMap<String, Object> appleMap = new HashMap<String, Object>();\n\t\tappleMap.put(\"Items\", \"Apple\");\n\t\tappleMap.put(\"Price\", 20.00);\n\t\tappleMap.put(\"Quantity\", 10);\n\t\tdataList1.add(appleMap);\n\n\t\tMap<String, Object> orangeMap = new HashMap<String, Object>();\n\t\torangeMap.put(\"Items\", \"Orange\");\n\t\torangeMap.put(\"Price\", 21.99);\n\t\torangeMap.put(\"Quantity\", 10);\n\n\t\tdataList1.add(orangeMap);\n\n\t\t// find purchase total Price.\n\t\tdouble purchaseTotalPrice = 0;\n\n\t\tfor (Map<String, Object> map : dataList1) {\n\t\t\tString items = map.get(\"Items\").toString();\n\t\t\tdouble price = Double.parseDouble(map.get(\"Price\").toString());\n\t\t\tdouble quantity = Double.parseDouble(map.get(\"Quantity\").toString());\n\t\t\tdouble lineTotal = price * quantity;\n\n\t\t\tSystem.out.println(\n\t\t\t\t\t\"Items: \" + items + \" Price: \" + price + \" Quantity: \" + quantity + \" SubTotal: \" + lineTotal);\n\t\t\tpurchaseTotalPrice += lineTotal;\n\t\t}\n\t\tSystem.out.println(\"Your Purchase total : \" + purchaseTotalPrice);\n\t}", "@Override\n\tpublic Integer getTotal(Map<String, Object> queryMap) {\n\t\treturn foodCategoryDao.getTotal(queryMap);\n\t}", "public double getTotalSales() {\n\t\tdouble total = 0;\n\n\t\tfor (Order o : orders) {\n\t\t\ttotal += o.totalPrice();\n\t\t}\n\n\t\treturn total;\n\t}", "public Map<Category, Long> countProductsPerCategory(List<Product> products) {\n // TODO: Group the products by category and count the number of products in each category.\n //\n // Hint: Remember how grouping works. It splits the input stream into multiple streams.\n // You can use a downstream collector to process the output streams of the grouping operation further.\n // For counting the number of products, look at the API documentation of class Collectors - there's a factory method that you can use.\n\n// return products.stream()...;\n\n throw new UnsupportedOperationException(\"Not yet implemented\"); // Remove this line\n }", "public float calculateTotalPrice(ArrayList<Food> totalOrder) {\n totalPrice = 0.0f;\n for (Food itemOfFood : totalOrder) {\n totalPrice = totalPrice + itemOfFood.getPrice();\n }\n return totalPrice;\n }", "public double getTotal(){\n\t\tBigDecimal total =BigDecimal.valueOf(0);\n\t\tfor(CartItem cartItem : map.values()){\n\t\t\ttotal = total.add(BigDecimal.valueOf(cartItem.getSubtotal())) ;\n\t\t}\t\t\n\t\treturn total.doubleValue();\n\t}", "public double total(){\n\tdouble total=0;\n\tfor(Map.Entry<String, Integer> pro:proScan.getProducts().entrySet()){\n\t\tString proName=pro.getKey();\n\t\tint quantity=pro.getValue();\n\t\tProductCalculator proCal=priceRule.get(proName);\n\t\tif(proCal==null)\n\t\t\tthrow new MissingProduct(proName);\n\t\t\n\t\tProductCalculator cal=priceRule.get(proName);\n\t\tdouble subtotal=cal.getTotal(quantity);\n\t\ttotal+=subtotal;\n\t\t//System.out.println(total);\n\t}\n\t//round the total price to two digit\n\treturn round(total, 2);\n}", "private double calculateTotal(){\r\n double total = 0;\r\n for(int i = 0; i < orderList.size(); i++){\r\n total += orderList.getOrder(i).calculatePrice();\r\n }\r\n return total;\r\n }", "public double getClipCardSales() {\n\t\tdouble d = 0;\n\n\t\tfor (Order o : orders) {\n\t\t\tfor (ProductOrder po : o.getProductOrders()) {\n\t\t\t\tif (po.getProduct().getName().startsWith(\"Klippekort\")) {\n\t\t\t\t\td += po.price();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn d;\n\t}", "private double totalPrice(){\n\n double sum = 0;\n\n for (CarComponent carComponent : componentsCart) {\n sum += (carComponent.getCompPrice() * carComponent.getCompQuantity()) ;\n }\n return sum;\n }", "public void calculateSale()\n {\n double total = 0.00;\n int numTimbits = 0;\n int numDoughnuts = 0;\n int smallCoffee = 0;\n int mediumCoffee = 0;\n int largeCoffee = 0;\n String order;\n \n for(int i = 0; salesItem[i] != null && i < salesItem.length; i++)\n {\n if(salesItem[i] instanceof Timbit) \n {\n numTimbits = numTimbits + salesItem[i].getNumOfItems();\n }\n else if(salesItem[i] instanceof Doughnut)\n {\n numDoughnuts = numDoughnuts + salesItem[i].getNumOfItems();\n }\n else if(salesItem[i] instanceof Coffee)\n {\n if(salesItem[i].getNumOfItems()==1)\n {\n smallCoffee ++;\n }\n else if(salesItem[i].getNumOfItems()==2)\n {\n mediumCoffee ++;\n }\n else\n {\n largeCoffee ++;\n }\n }\n \n total += salesItem[i].getFinalPrice();\n }\n \n order = \"Timbits: \" + numTimbits + \"\\nDoughnuts: \" + numDoughnuts + \"\\nSmall Coffees: \" + smallCoffee + \"\\nMedium Coffees: \" + mediumCoffee + \"\\nLarge Coffees: \" + largeCoffee ; \n showText(order + String.format(\"\\nTotal Price: $%5.2f\", total), 150, 175);\n }", "public Map<String, List<Fee>> getFeesByCategories(){\r\n\t\tMap<String, List<Fee>> res = new HashMap<String, List<Fee>>();\r\n\t\tString req=\"select f.id, f.date, f.amount, f.label, c.label as catlab \"\r\n\t\t\t\t\t+ \"from fee f, category c \"\r\n\t\t\t\t\t+ \"where c.id = f.categoryid \"\r\n\t\t\t\t\t+ \"and strftime('%m%Y', f.date) = strftime('%m%Y', date('now')) \"\r\n\t\t\t\t\t+ \"order by f.date desc;\";\r\n\t\t\r\n\t\tCursor cursor = database.rawQuery(req, null);\t\t\t\t\r\n\t\tif (cursor.moveToFirst()) {\r\n\t\t\tdo {\r\n\t\t\t\tFee fee = new Fee();\r\n\t\t\t\tfee.setId(cursor.getString(0));\r\n\t\t\t\tfee.setDate(cursor.getString(1));\r\n\t\t\t\tfee.setAmount(cursor.getString(2));\r\n\t\t\t\tfee.setLabel(cursor.getString(3));\t\r\n\t\t\t\tif(res.containsKey(cursor.getString(4))){\r\n\t\t\t\t\t res.get(cursor.getString(4)).add(fee);\r\n\t\t\t\t}else{\r\n\t\t\t\t\tList<Fee> list = new ArrayList<Fee>();\r\n\t\t\t\t\tlist.add(fee);\r\n\t\t\t\t\tres.put(cursor.getString(4), list);\r\n\t\t\t\t}\r\n\t\t\t} while (cursor.moveToNext());\r\n\t\t}\r\n\t\tif (cursor != null && !cursor.isClosed()) {\r\n\t\t\tcursor.close();\r\n\t\t}\r\n\t\t\r\n\t\treturn res;\r\n\t}", "Map<Goods, Integer> getQuantityByDepartment(Department department) throws StoreKeeperWorkException;", "Map<Goods, Integer> getQuantityByBrand(Brand brand) throws StoreKeeperWorkException;", "private Set<Product> payloadToProductSet(LinkedHashMap body) { //throws Exception {\n //System.out.println(\"body: \" + body.toString());\n ArrayList arrayListProducts = (ArrayList) body.get(\"product\");\n //System.out.println(\"arrayList: \" + arrayListProducts);\n Set<Product> productSet = new HashSet<>();\n// try {\n arrayListProducts.forEach(\n productIndex -> {\n ((HashMap) productIndex).values().forEach(\n productValue -> {\n Product product = new Product();\n TreeMap<Tab, TreeMap<Category, TreeMap<Item, TreeSet<Tag>>>> tabMap = new TreeMap();\n //System.out.println(\"productValue: \" + productValue);\n ((HashMap) productValue).forEach(\n (substanceKey, substanceValue) -> {\n //System.out.println(\"substanceKey: \" + substanceKey);\n //System.out.println(\"substanceValue: \" + substanceValue);\n ((HashMap) substanceValue).values().forEach(\n tabArrayWrapped -> {\n //System.out.println(\"tabArrayWrapped: \" + tabArrayWrapped);\n ((ArrayList) tabArrayWrapped).forEach(\n tabArrayUnwrapped -> {\n //System.out.println(\"tabArrayUnwrapped: \" + tabArrayUnwrapped);\n ((HashMap) tabArrayUnwrapped).forEach(\n (tabKey, tabValue) -> {\n TreeMap<Category, TreeMap<Item, TreeSet<Tag>>> categoryMap = new TreeMap<>();\n //System.out.println(\"tabValue: \" + tabValue);\n ((HashMap) tabValue).values().forEach(\n categoryWrapped -> {\n //System.out.println(\"categoryWrapped: \" + categoryWrapped);\n ((ArrayList) categoryWrapped).forEach(\n categoryUnwrapped -> {\n //System.out.println(\"categoryUnwrapped: \" + categoryUnwrapped);\n ((HashMap) categoryUnwrapped).forEach(\n (categoryKey, categoryValue) -> {\n TreeMap<Item, TreeSet<Tag>> itemMap = new TreeMap();\n //System.out.println(\"categoryValue: \" + categoryValue);\n ((HashMap) categoryValue).values().forEach(\n itemWrapped -> {\n //System.out.println(\"itemWrapped: \" + itemWrapped);\n ((ArrayList) itemWrapped).forEach(\n itemUnwrapped -> {\n\n Item item = new Item();\n //System.out.println(\"itemUnwrapped: \" + itemUnwrapped);\n ((HashMap) itemUnwrapped).forEach(\n (itemKey, itemValue) -> {\n //System.out.println(\"itemKey: \" + itemKey + \" itemValue: \" + itemValue);\n if (itemKey.equals(\"Title\")) {\n item.setName(itemValue.toString());\n }\n if (itemKey.equals(\"Description\")) {\n item.setDescription(itemValue.toString());\n }\n if (itemKey.equals(\"Tag\")) {\n TreeSet<Tag> tagSet = new TreeSet();\n ((ArrayList) itemValue).forEach(tagName -> tagSet.add(new Tag(tagName.toString())));\n itemMap.put(item, tagSet);\n categoryMap.put(new Category(categoryKey.toString()), itemMap);\n tabMap.put(new Tab(tabKey.toString()), categoryMap);\n product.getProduct().put(new Substance(substanceKey.toString()), tabMap);\n productSet.add(product);\n }\n });\n });\n });\n });\n });\n });\n });\n });\n });\n });\n });\n });\n// }\n// catch (Exception ex){\n// System.out.println(\"Ex: \" + ex.getMessage());\n// }\n\n return productSet;\n }", "public static Map<Integer, TaxCategory> britishColumbia() {\n\n\t\t\tHashMap<Integer, TaxCategory> categories = new HashMap<Integer, TaxCategory>();\n\t\t\ttry {\n\t\t\t\t//INSERT YOUR CODE HERE - Using the specification given on Federal\n\t\t\t\t//You will need to study how Manitoba is being implemented\n\t\t\t\tTaxCategory cat1 = new TaxCategory(5.06, 0, 42184.00); // Tax Category 1 for BC\n\t\t\t\tcategories.put( 1, cat1 );//puts both the key and the Taxcategory(value) into the hashmap for category 1\n\t\t\t\tTaxCategory cat2 = new TaxCategory(7.70, 42184.01, 84369.00); // Tax Category 2 for BC\n\t\t\t\tcategories.put( 2, cat2 );//puts both the key and the Taxcategory(value) into the hashmap for category 2\n\t\t\t\tTaxCategory cat3 = new TaxCategory(10.50, 84369.01, 96866.00); // Tax Category 3 for BC\n\t\t\t\tcategories.put( 3, cat3 );//puts both the key and the Taxcategory(value) into the hashmap for category 3\n\t\t\t\tTaxCategory cat4 = new TaxCategory(12.29, 96866.01, 117623.00); // Tax Category 4 for BC\n\t\t\t\tcategories.put( 4, cat4 );//puts both the key and the Taxcategory(value) into the hashmap for category 4\n\t\t\t\tTaxCategory cat5 = new TaxCategory(14.70, 117623.01, 159483.00); // Tax Category 5 for BC\n\t\t\t\tcategories.put( 5, cat5 );//puts both the key and the Taxcategory(value) into the hashmap for category 5\n\t\t\t\tTaxCategory cat6 = new TaxCategory(16.80, 159483.01, 222420.00); // Tax Category 6 for BC\n\t\t\t\tcategories.put( 6, cat6 );//puts both the key and the Taxcategory(value) into the hashmap for category 6\n\t\t\t\tTaxCategory cat7 = new TaxCategory(20.50, 222420.01, 10000000); // Tax Category 7 for BC\n\t\t\t\tcategories.put( 7, cat7 );//puts both the key and the Taxcategory(value) into the hashmap for category 7\n\n\t\t\t} catch( Exception e ) {}\n\n\t\t\treturn categories;\n\t\t}", "@Override\n\tpublic Long getTotalCat() {\n\t\treturn categoriesDAO.getTotalCat();\n\t}", "public int calculateTotalOrderPriceWithoutDiscount(Map<Pizza, Integer> pizzas) {\n\t\t\n\t\tvalidatePizzas(pizzas);\n\t\t\n\t\tint orderPrice = 0;\n\t\tfor(Entry<Pizza, Integer> entry : pizzas.entrySet()) {\n\t\t\tPizza pizza = entry.getKey();\n\t\t\tInteger pizzaCount = entry.getValue();\n\t\t\torderPrice += pizza.getPrice() * pizzaCount;\n\t\t}\n\t\t\n\t\treturn orderPrice;\n\t}", "@Transactional\n @Override\n public StringBuffer addSalesOrder(String customerID, String cartIDs, String addressID, String paymentType,\n String orderAmount, String scoreAll, String memo, String itemCount, String itemID,\n String supplierID, String itemType, String orderType, String objID, String invoiceType,\n String invoiceTitle, String generateType, String orderID, String allFreight, String supplierFreightStr) throws Exception {\n \t\n String ids[] = cartIDs.split(\",\");\n List<ShoppingCartVO> shopCartList = new ArrayList<ShoppingCartVO>();\n for (String id : ids) {\n ShoppingCartVO shoppingCartVO = shoppingCartDAO.findShoppingCartByID(Long.valueOf(id));\n shopCartList.add(shoppingCartVO);\n }\n Map<String,List<ShoppingCartVO>> maps = new HashMap<String,List<ShoppingCartVO>>();\n for(ShoppingCartVO s:shopCartList){\n \tList<ShoppingCartVO> temp = new ArrayList<ShoppingCartVO>();\n \t String sid1= s.getSupplierID();\n String siname1= s.getSupplierName();\n for(ShoppingCartVO shoppingCartVO1 : shopCartList){\n \t//当前店铺对应的购物车集合\n \tString sid2 = shoppingCartVO1.getSupplierID();\n \tif(sid1.equals(sid2)){\n \t\ttemp.add(shoppingCartVO1);\n \t}\n }\n maps.put(sid1+\"_\"+siname1, temp);\n }\n \n //根据物流模板计算运费\n Map<String, Double> supplierFreightMap = new HashMap<String, Double>();\n String[] supplierFreightAll = supplierFreightStr.split(\"\\\\|\");\n for (int i = 0; i < supplierFreightAll.length; i++) {\n \tString[] supplierFreight = supplierFreightAll[i].split(\":\");\n \tsupplierFreightMap.put(supplierFreight[0], Double.parseDouble(supplierFreight[1]));\n\t\t} \n \n StringBuffer ordersList = new StringBuffer();\n// cachedClient.delete(customerID + orderID);\n Set<String> set = maps.keySet();\n\t\tfor(String string : set){\n\t\t List<ShoppingCartVO> temp1= maps.get(string);\n\t\t double supplierFreight = supplierFreightMap.get(string);\n\t\t Double amount = 0d;\n\t\t Integer count = 0;\n Integer score = 0;\n Double weight = 0d;\n\t\t for (ShoppingCartVO shoppingCartVO : temp1) {\n ItemVO itemVO = itemDAO.findItemById(shoppingCartVO.getItemID());\n count += shoppingCartVO.getItemCount();\n // weight += itemVO.getWeight();\n if (shoppingCartVO.getType() == 1) {\n amount += shoppingCartVO.getItemCount() * shoppingCartVO.getSalesPrice();\n } else if (shoppingCartVO.getType() == 2) {\n score += shoppingCartVO.getItemCount() * itemVO.getScore();\n } else if (shoppingCartVO.getType() == 3) {\n amount += shoppingCartVO.getItemCount() * itemVO.getScorePrice();\n score += shoppingCartVO.getItemCount() * shoppingCartVO.getSalesScore();\n }\n }\n\t\t //SalesOrderVO tempOrder = new SalesOrderVO();\n\t /*if (tempOrder == null) {\n\t throw new Exception(\"参数错误\");\n\t }\n\t if (\"012\".indexOf(invoiceType) == -1) {\n\t throw new Exception(\"参数错误\");\n\t }*/\n\t SalesOrderDTO salesOrderDTO = new SalesOrderDTO();\n\t salesOrderDTO.setMainID(randomNumeric());\n\t salesOrderDTO.setCustomerID(customerID);\n\t salesOrderDTO.setPaymentType(Integer.valueOf(paymentType));\n\t salesOrderDTO.setPaymentStatus(0);\n\n\t // salesOrderDTO.setExpressFee(tempOrder.getExpressFee());//运费\n\t salesOrderDTO.setProductAmount(amount);\n\t salesOrderDTO.setTotalAmount(amount + supplierFreight);\n\t salesOrderDTO.setPayableAmount(amount);\n\n\t salesOrderDTO.setOrderType(Integer.valueOf(orderType));\n\t salesOrderDTO.setMemo(memo);\n\t salesOrderDTO.setInvoiceType(Integer.parseInt(invoiceType));\n\t salesOrderDTO.setInvoiceTitle(invoiceTitle);\n\t salesOrderDTO.setSupplierID(string);\n\t salesOrderDTO.setExpressFee(supplierFreight);\n\t salesOrderDAO.addSalesOrder(salesOrderDTO);\n\t ordersList.append(salesOrderDTO.getMainID()+\",\");\n\t if(!paymentType.equals(\"3\")){\n\t \t CustomerDeliveryAddressVO customerDeliveryAddressVO = customerDeliveryAddressDAO.findAddressByID(Long.valueOf(addressID));\n\t \t if (customerDeliveryAddressVO != null) {\n\t \t SalesOrderDeliveryAddressDTO salesOrderDeliveryAddressDTO = new SalesOrderDeliveryAddressDTO();\n\t \t salesOrderDeliveryAddressDTO.setSalesOrderID(salesOrderDTO.getMainID());\n\t \t salesOrderDeliveryAddressDTO.setName(customerDeliveryAddressVO.getName());\n\t \t salesOrderDeliveryAddressDTO.setCountryID(customerDeliveryAddressVO.getCountryID());\n\t \t salesOrderDeliveryAddressDTO.setProvinceID(customerDeliveryAddressVO.getProvinceID());\n\t \t salesOrderDeliveryAddressDTO.setCityID(customerDeliveryAddressVO.getCityID());\n\t \t salesOrderDeliveryAddressDTO.setDisctrictID(customerDeliveryAddressVO.getDisctrictID());\n\t \t salesOrderDeliveryAddressDTO.setAddress(customerDeliveryAddressVO.getAddress());\n\t \t salesOrderDeliveryAddressDTO.setMobile(customerDeliveryAddressVO.getMobile());\n\t \t salesOrderDeliveryAddressDTO.setTelephone(customerDeliveryAddressVO.getTelephone());\n\t \t if (customerDeliveryAddressVO.getZip() != null) {\n\t \t salesOrderDeliveryAddressDTO.setZip(customerDeliveryAddressVO.getZip());\n\t \t }\n\t \t salesOrderDeliveryAddressDAO.insertSalesOrderDeliveryAddress(salesOrderDeliveryAddressDTO);\n\t \t }\n\t \t ShippingAddressVO shippingAddressVO = shippingAddressDAO.findDefaultShippingAddress();\n\t \t if (shippingAddressVO != null) {\n\t \t SalesOrderShippingAddressDTO salesOrderShippingAddressDTO = new SalesOrderShippingAddressDTO();\n\t \t salesOrderShippingAddressDTO.setSalesOrderID(salesOrderDTO.getMainID());\n\t \t salesOrderShippingAddressDTO.setName(shippingAddressVO.getName());\n\t \t salesOrderShippingAddressDTO.setCountryID(shippingAddressVO.getCountryID());\n\t \t salesOrderShippingAddressDTO.setProvinceID(shippingAddressVO.getProvinceID());\n\t \t salesOrderShippingAddressDTO.setCityID(shippingAddressVO.getCityID());\n\t \t salesOrderShippingAddressDTO.setDisctrictID(shippingAddressVO.getDisctrictID());\n\t \t salesOrderShippingAddressDTO.setAddress(shippingAddressVO.getAddress());\n\t \t salesOrderShippingAddressDTO.setMobile(shippingAddressVO.getMobile());\n\t \t salesOrderShippingAddressDTO.setTelephone(shippingAddressVO.getTelephone());\n\t \t salesOrderShippingAddressDTO.setZip(shippingAddressVO.getZip());\n\t \t salesOrderShippingAddressDAO.insertSalesOrderShippingAddress(salesOrderShippingAddressDTO);\n\t \t }\n\t }\n\t \n\t ItemDTO itemDTO = new ItemDTO();\n\t SupplierItemDTO supplierItemDTO = new SupplierItemDTO();\n\t SalesOrderLineDTO salesOrderLineDTO = new SalesOrderLineDTO();\n\t if (generateType.equals(\"quickBuy\")) {\n\t generateQuickBuyOrder(itemCount,cartIDs, itemID, supplierID, objID, salesOrderDTO, itemDTO, supplierItemDTO,\n\t salesOrderLineDTO);\n\n\t } else if (generateType.equals(\"oneKey\")) {\n\t generateOneKeyOrder(customerID, itemCount, itemType, objID, salesOrderDTO, itemDTO, supplierItemDTO,\n\t salesOrderLineDTO);\n\n\t } else if (generateType.equals(\"shoppingcart\")) {\n\t genarateShoppingCartOrder(customerID, cartIDs, itemCount, itemType, objID, salesOrderDTO, itemDTO,\n\t supplierItemDTO, salesOrderLineDTO);\n\t } else {\n\t throw new Exception(\"订单类型无法确定\");\n\t }\n\t\t}\n return ordersList;\n }", "private Map<String, Double> getMarketPriceMap() {\n String marketData = Utils.readFile(marketFile);\n MarketResponse[] marketDetails = gson.fromJson(marketData, MarketResponse[].class);\n return Arrays.stream(marketDetails)\n .collect(Collectors.toMap(MarketResponse::getIsin, MarketResponse::getPrice));\n }", "@Override\n public List<ProductResponse> getAllProducts(String category, String priceLessThan) {\n\n List<Product> productsWithDiscounts = repository.getAllProducts().stream()\n .filter(product -> category.isEmpty() || category.equals(product.getCategory()))\n .filter(product -> priceLessThan.isEmpty() || product.getPrice().getPrice() <= Integer\n .parseInt(priceLessThan))\n .map(discountsService::applyDiscounts)\n .collect(toList());\n return converter.convert(productsWithDiscounts);\n }", "public List<Category> getCategoriesDetails(){\r\n\t\tList<Category> res = new ArrayList<Category>();\r\n\t\tString req = \"select c.label, sum(f.amount) as total, sum(f.amount)/tmp.totmonth as percent, c.color \"\r\n\t\t\t\t\t+ \"from fee f, category c, (select sum(amount) as totmonth \"\r\n\t\t\t\t\t+ \"from fee \"\r\n\t\t\t\t\t+ \"where strftime('%m%Y', date) = strftime('%m%Y', date('now'))) as tmp \"\r\n\t\t\t\t\t+ \"where c.id = f.categoryid \"\r\n\t\t\t\t\t+ \"and strftime('%m%Y', f.date) = strftime('%m%Y', date('now')) \"\r\n\t\t\t\t\t+ \"group by c.id \"\r\n\t\t\t\t\t+ \"order by total desc;\";\r\n\t\t\r\n\t\tCursor cursor = database.rawQuery(req, null);\t\t\t\t\r\n\t\tif (cursor.moveToFirst()) {\r\n\t\t\tdo {\r\n\t\t\t\tCategory cat = new Category();\r\n\t\t\t\tcat.setLabel(cursor.getString(0));\r\n\t\t\t\tcat.setTotal(cursor.getString(1));\r\n\t\t\t\tcat.setPercent(cursor.getString(2));\r\n\t\t\t\tcat.setColor(cursor.getString(3));\r\n\t\t\t\tres.add(cat);\r\n\t\t\t} while (cursor.moveToNext());\r\n\t\t}\r\n\t\tif (cursor != null && !cursor.isClosed()) {\r\n\t\t\tcursor.close();\r\n\t\t}\r\n\t\t\r\n\t\treturn res;\r\n\t}", "public HashMap<Long, Integer> getProductsToBeOrdered(int totalEntries) {\n HashMap<Long, Integer> listOfProducts = new HashMap<>();\n for (int i = 0; i < totalEntries; i++) {\n listOfProducts.put((long) getRandomNumber(0, 9999), getRandomNumber(1, 10));\n }\n return listOfProducts;\n }", "public List<ProductCatagory> getAllCategory() throws BusinessException;", "Map<Item, List<Double>> calculateDiscountRule1PriceList(Map<String, Item> itemMap, List<String> itemList);", "@Transient\n public Double getTotalOrderPrice() {\n double sum = 0;\n for (OrderItem oi : getOrderItems()) {\n sum += oi.getTotalPrice();\n }\n return sum;\n }", "public double getOrderTotalWithoutDiscount(String[] order) {\n\t\t//TODO\n\t\t\n\t\tdouble all=0.0;\n\t\tfor(String item:order) {\n\t\t\t\n\t\t\tall+=findItemPrice(item);\n\t\t}return all;\n\t\t\t\n\t\t\t\n\t\t}", "private void calculatePrice() {\r\n int price = 0;\r\n int day = show.getDateTime().getDayOfMonth();\r\n int month = show.getDateTime().getMonthValue();\r\n \r\n for (int i = 0; i < seats.size(); i++) {\r\n String option = seats.get(i);\r\n \r\n if (Arrays.stream(sectionNames).parallel().anyMatch(option::contains)) {\r\n String section = option.replaceAll(\"\\\\d\",\"\");\r\n int number = Integer.parseInt(option.replaceAll(\"\\\\D+\",\"\"));\r\n \r\n if (section.equals(\"m\")) {\r\n if (number <= 100) {\r\n price += mainFloorPrice;\r\n } else {\r\n price += mainFloorPremium;\r\n }\r\n } else if (section.equals(\"sb\")) {\r\n if (number <= 25) {\r\n price += southBalconyPrice;\r\n } else {\r\n price += southBalconyPremium;\r\n }\r\n } else if (section.equals(\"wb\")) {\r\n price += westBalconyPrice;\r\n } else if (section.equals(\"eb\")) {\r\n price += eastBalconyPrice;\r\n }\r\n }\r\n }\r\n \r\n if (seats.size() >= 5 && seats.size() <= 10 && !(month == 12 && (day == 26 || day == 27))) {\r\n price -= (2 * seats.size());\r\n }\r\n \r\n if (seats.size() >= 11 && seats.size() <= 20 && !(month == 12 && (day == 26 || day == 27))) {\r\n price -= (5 * seats.size());\r\n }\r\n \r\n if (month == 12 && (day == 26 || day == 27)) {\r\n price = seats.size() * 20;\r\n }\r\n \r\n totalPrice = price;\r\n }", "public Map<String, Object> countSalesEvents(String startDate, String endDate);", "private double getProductsTotal() {\n\t\t\n\t\tdouble total = 0;\n\t\t\n\t\tif(!soldProducts.isEmpty()) {\n\t\t\t\n\t\t\tfor(Sellable product : soldProducts) {\n\t\t\t\t\n\t\t\t\ttotal += (product.getPrice() * product.getQuantitySold());\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\treturn total;\n\t}", "public Map<String, ArrayList<Category>> getCategories() {\n int mainParentId = 0;\n\n Map<String, ArrayList<Category>> allCategories = new HashMap<String, ArrayList<Category>>();\n\n//get main categories\n\n Set<Category> mainCategories = new HashSet<Category>(categoryDAO.getCategoriesByParentId(mainParentId));\n// get sub categories\n\n System.out.println(mainCategories);\n for (Category mainCategory : mainCategories) {\n allCategories.put(mainCategory.getName(), categoryDAO.getCategoriesByParentId(mainCategory.getId()));\n }\n return allCategories;\n }", "private double getOrderTotal() {\n double d = 0;\n\n for (Pizza p : pizzas) {\n d += p.calcTotalCost();\n }\n\n return d;\n }", "Map<String, Map<String, Double>> getElementCosts();", "public static void main(String[] args) {\n\t\tMap<BigDecimal, String> result3 = items.stream()\r\n\t\t\t\t.collect(Collectors.toMap(Item::getPrice, Item::getName, (s, a) -> s + \", \" + a));\r\n\t\tresult3.forEach((k, v) -> System.out.println(k + \" \" + v));\r\n\r\n\t\tMap<Integer, String> map = items.stream()\r\n\t\t\t\t.collect(Collectors.toMap(Item::getQuantity, Item::getName, (x, y) -> x + \", \" + y));\r\n\t\tmap.forEach((x, y) -> System.out.println(\"Key: \" + x + \", value: \" + y));\r\n\t\tMap<Integer, String> map1 = items.stream().collect(\r\n\t\t\t\tCollectors.toMap(Item::getQuantity, Item::getName, (x, y) -> x + \", \" + y, LinkedHashMap::new));\r\n\t\tmap.forEach((x, y) -> System.out.println(\"Key: \" + x + \", value: \" + y));\r\n\r\n\t\t/*\r\n\t\t * Map<BigDecimal, List<Item>> result1 =\r\n\t\t * items.stream().collect(Collectors.groupingBy(Item::getPrice));\r\n\t\t * Map<BigDecimal, List<Item>> result2 = items.stream()\r\n\t\t * .collect(Collectors.groupingBy(Item::getPrice, Collectors.toList()));\r\n\t\t * Map<BigDecimal, Item> result4 =\r\n\t\t * items.stream().collect(Collectors.toMap(Item::getPrice, Item -> Item));\r\n\t\t * Map<BigDecimal, String> toMapuse = items.stream()\r\n\t\t * .collect(Collectors.toMap(Item::getPrice, Item::getName, (s, a) -> s + \", \" +\r\n\t\t * a)); ///toMapuse.forEach((k, v) -> System.out.print(k + \" \" + v));\r\n\t\t */\r\n\t}", "public void salesTotal(){\n\t\tif (unitsSold<10){\n\t\t\tsetTotalCost(basePrice);\n\t\t\tsetDiscount(basePrice - this.getCost());\n\t\t}\n\t\telse if (unitsSold<20){\n\t\t\tsetTotalCost((RETAIL_PRICE*.8)*unitsSold);\n\t\t\tsetDiscount(basePrice - this.getCost());\n\t\t\t\n\t\t}\n\t\telse if (unitsSold<50){\n\t\t\tsetTotalCost((RETAIL_PRICE*.7)*unitsSold);\n\t\t\tsetDiscount(basePrice - this.getCost());\n\t\t}\n\t\telse if (unitsSold<100){\n\t\t\tsetTotalCost((RETAIL_PRICE*.6)*unitsSold);\n\t\t\tsetDiscount(basePrice - this.getCost());\n\t\t}\n\t\telse {\n\t\t\tsetTotalCost((RETAIL_PRICE*.5)*unitsSold);\n\t\t\tsetDiscount(basePrice - this.getCost());\n\t\t}\n\t}", "Set<Category> getShopCategories(Shop shop);", "public BigDecimal getTotalPrice() {\n\t\tBigDecimal total = new BigDecimal(\"0.00\");\n\t\tfor (Map.Entry<Integer, DishGeneral> entry : this.getOrderedDishes().entrySet()){\n\t\t\ttotal = total.add(new BigDecimal(entry.getValue().getAmount()).multiply(entry.getValue().getPrice()));\n\t\t}\n\t\tfor (Map.Entry<String, DishGeneral> entry : this.getOrderedTeppanyakiDishes().entrySet()){\n\t\t\tfor(Map.Entry<Integer, IngredientGeneral> ent : entry.getValue().getIngredients().entrySet()){\n\t\t\t\tBigDecimal p = new BigDecimal(ent.getValue().getGrams()).multiply(ent.getValue().getPricePerHundredGrams())\n\t\t\t\t\t\t.divide(new BigDecimal(100));\n\t\t\t\ttotal = total.add(p);\n\t\t\t}\n\t\t}\n\t\treturn total.setScale(2, RoundingMode.CEILING);\n\t}", "@Override\n\tpublic java.lang.String getPrice() {\n\t\treturn _lineaGastoCategoria.getPrice();\n\t}", "public Map<String, Stock> getStocks();", "private void extractDataFromOrders(List<Order> orders) {\n ArrayList<LocalDate> orderedListOfMapDays = new ArrayList<LocalDate>();\n HashMap<LocalDate, Integer> dateToCoffeeCaffeineMap = new HashMap<LocalDate, Integer>(), dateToTeaCaffeineMap = new HashMap<LocalDate, Integer>();\n HashMap<LocalDate, Double> dateToCoffeeExpenditureMap = new HashMap<LocalDate, Double>(), dateToTeaExpenditureMap = new HashMap<LocalDate, Double>();\n for (int i = 0; i < 8; i++) {\n LocalDate date = ONE_WEEK_AGO.plusDays(i);\n dateToCoffeeCaffeineMap.put(date, 0);\n dateToTeaCaffeineMap.put(date, 0);\n dateToCoffeeExpenditureMap.put(date, 0.0);\n dateToTeaExpenditureMap.put(date, 0.0);\n orderedListOfMapDays.add(date);\n }\n\n // loop through orders, comparing their days and adding values accordingly\n for (Order order : orders) {\n if (order == null) continue;\n // dates (in milliseconds) from orders are clocked to start of day and converted to dates\n LocalDateTime tempDateResetTime = order.getDate().toInstant()\n .atZone(ZoneId.systemDefault())\n .toLocalDate().atStartOfDay();\n LocalDate tempDate = tempDateResetTime.toLocalDate();\n Log.d(TAG, \"ORDER ON DAY: \" + tempDate);\n\n if (ONE_WEEK_AGO.isBefore(tempDate) || ONE_WEEK_AGO.isEqual(tempDate)) {\n // CAFFEINE\n // coffee caffeine\n int dailyCaffeineFromCoffee = 0;\n dailyCaffeineFromCoffee += (order.getTotalCaffeineFromCoffee(true) > 0 ? order.getTotalCaffeineFromCoffee(true) :\n order.getTotalCaffeineFromCoffee(false) > 0 ? order.getTotalCaffeineFromCoffee(false) : 0);\n dateToCoffeeCaffeineMap.put(tempDate, dateToCoffeeCaffeineMap.get(tempDate) + dailyCaffeineFromCoffee);\n // tea caffeine\n int dailyCaffeineFromTea = 0;\n dailyCaffeineFromTea += (order.getTotalCaffeineFromTea(true) > 0 ? order.getTotalCaffeineFromTea(true) :\n order.getTotalCaffeineFromTea(false) > 0 ? order.getTotalCaffeineFromTea(false) : 0);\n dateToTeaCaffeineMap.put(tempDate, dateToTeaCaffeineMap.get(tempDate) + dailyCaffeineFromTea);\n\n // EXPENDITURES\n // coffee cost\n double dailyExpenditureFromCoffee = 0.0;\n dailyExpenditureFromCoffee += (order.getTotalCostFromCoffee(true) > 0 ? order.getTotalCostFromCoffee(true) :\n order.getTotalCostFromCoffee(false) > 0 ? order.getTotalCostFromCoffee(false) : 0.0);\n dateToCoffeeExpenditureMap.put(tempDate, dateToCoffeeExpenditureMap.get(tempDate) + dailyExpenditureFromCoffee);\n // tea cost\n double dailyExpenditureFromTea = 0.0;\n dailyExpenditureFromTea += (order.getTotalCostFromTea(true) > 0 ? order.getTotalCostFromTea(true) :\n order.getTotalCostFromTea(false) > 0 ? order.getTotalCostFromTea(false) : 0.0);\n dateToTeaExpenditureMap.put(tempDate, dateToTeaExpenditureMap.get(tempDate) + dailyExpenditureFromTea);\n }\n }\n\n // CAFFEINE SERIES\n coffeeCaffeineSeries = new DateIntegerSeries(\"Coffee\");\n teaCaffeineSeries = new DateIntegerSeries(\"Tea\");\n // for formatting, add an empty value at FRONT of series\n coffeeCaffeineSeries.add(Date.from(ONE_WEEK_AGO.minusDays(1).atStartOfDay().atZone(ZoneId.systemDefault()).toInstant()).getTime(), 0);\n teaCaffeineSeries.add(Date.from(ONE_WEEK_AGO.minusDays(1).atStartOfDay().atZone(ZoneId.systemDefault()).toInstant()).getTime(), 0);\n for (int i = 0; i < orderedListOfMapDays.size(); i++) {\n LocalDate localDate = orderedListOfMapDays.get(i);\n Integer coffeeCaffeine = dateToCoffeeCaffeineMap.get(localDate);\n Integer teaCaffeine = dateToTeaCaffeineMap.get(localDate);\n\n Long date = Date.from(localDate.atStartOfDay().atZone(ZoneId.systemDefault()).toInstant()).getTime();\n\n coffeeCaffeineSeries.add(date, coffeeCaffeine);\n teaCaffeineSeries.add(date, teaCaffeine);\n }\n // for formatting, add an empty value to BACK of series\n coffeeCaffeineSeries.add(Date.from(ONE_WEEK_AGO.plusDays(8).atStartOfDay().atZone(ZoneId.systemDefault()).toInstant()).getTime(), 0);\n teaCaffeineSeries.add(Date.from(ONE_WEEK_AGO.plusDays(8).atStartOfDay().atZone(ZoneId.systemDefault()).toInstant()).getTime(), 0);\n\n // EXPENDITURE SERIES\n coffeeExpenditureSeries = new DateDoubleSeries(\"Coffee\");\n teaExpenditureSeries = new DateDoubleSeries(\"Tea\");\n // for formatting, add an empty value at FRONT of series\n coffeeExpenditureSeries.add(Date.from(ONE_WEEK_AGO.minusDays(1).atStartOfDay().atZone(ZoneId.systemDefault()).toInstant()).getTime(), 0.0);\n teaExpenditureSeries.add(Date.from(ONE_WEEK_AGO.minusDays(1).atStartOfDay().atZone(ZoneId.systemDefault()).toInstant()).getTime(), 0.0);\n for (int i = 0; i < orderedListOfMapDays.size(); i++) {\n LocalDate localDate = orderedListOfMapDays.get(i);\n Double coffeeExpenditure = dateToCoffeeExpenditureMap.get(localDate);\n Double teaExpenditure = dateToTeaExpenditureMap.get(localDate);\n\n Long date = Date.from(localDate.atStartOfDay().atZone(ZoneId.systemDefault()).toInstant()).getTime();\n\n coffeeExpenditureSeries.add(date, coffeeExpenditure);\n teaExpenditureSeries.add(date, teaExpenditure);\n }\n // for formatting, add an empty value to BACK of series\n coffeeExpenditureSeries.add(Date.from(ONE_WEEK_AGO.plusDays(8).atStartOfDay().atZone(ZoneId.systemDefault()).toInstant()).getTime(), 0.0);\n teaExpenditureSeries.add(Date.from(ONE_WEEK_AGO.plusDays(8).atStartOfDay().atZone(ZoneId.systemDefault()).toInstant()).getTime(), 0.0);\n }", "public BigDecimal summaryPrice() {\n BigDecimal result = basePrice;\n if (options == null) {\n return result == null ? BigDecimal.ZERO : result;\n } else {\n\n for (int i = 0; i < options.length; i++) { // to jest opcja napisania metody w klasie Car zeby od razu tam sie znajdywala i dawala nam jaka jest cena , zeby cena byla od razu elementem klasy CAR\n result = result.add(options[i].getOptionPrice());\n }\n return result;\n }\n }", "public void calculateOrderTotals() {\n NumberFormat formatter = NumberFormat.getCurrencyInstance();\n\n //order number increases for each order\n orderNo++;\n System.out.println(\"- \" + \"OrderNo: \" + orderNo + \" -\");\n\n //cycle through the items in the order and add to the totals\n for(Item i : items) {\n\n incrementOrderTotal(i.getNumOfItems() * i.getPriceWithTax());\n incrementOrderSalesTax(i.getNumOfItems() * i.getTaxOnItem());\n\n System.out.println(i.getDescrip() + formatter.format(i.getPriceWithTax()));\n }\n\n //print out totals\n System.out.println(\"Sales taxes: \" + formatter.format(Math.round(getOrderSalesTax() * 100.0) / 100.0));\n System.out.println(\"Order total: \" + formatter.format(Math.round(getOrderTotal() * 100.0) / 100.0));\n System.out.println(\"\\n\");\n }", "public static HashMap<Integer, Item> storeItems(){\n\t\tItem prod1 = new Item(\"Candy\",40);\n\t\tItem prod2 = new Item(\"Bread\",30);\n\t\tItem prod3 = new Item(\"Butter\",50);\n\t\tItem prod4 = new Item(\"Milk\",43);\n\t\tItem prod5 = new Item(\"Toast\",60);\n\t\tItem prod6 = new Item(\"Curd\",20);\n\t\tItem prod7 = new Item(\"Cream\",80);\n\t\tItem prod8 = new Item(\"Pastry\",45);\n\t\tItem prod9 = new Item(\"Cake\",300);\n\t\tItem prod10 = new Item(\"Panner\",200);\n\t\tItem prod11 = new Item(\"Egg\",8);\n\t\tproducts.put(1,prod1);\n\t\tproducts.put(2,prod2);\n\t\tproducts.put(3,prod3);\n\t\tproducts.put(4,prod4);\n\t\tproducts.put(5,prod5);\n\t\tproducts.put(6,prod6);\n\t\tproducts.put(7,prod7);\n\t\tproducts.put(8,prod8);\n\t\tproducts.put(9,prod9);\n\t\tproducts.put(10,prod10);\n\t\tproducts.put(11,prod11);\n\t\treturn products;\n\t}", "public BigDecimal calculateTotal() {\r\n BigDecimal orderTotal = BigDecimal.ZERO;\r\n \r\n final Iterator<Item> iterator = myShoppingCart.keySet().iterator();\r\n \r\n while (iterator.hasNext()) {\r\n final BigDecimal currentOrderPrice = myShoppingCart.get(iterator.next());\r\n \r\n orderTotal = orderTotal.add(currentOrderPrice);\r\n }\r\n \r\n //if membership take %10 off the total cost\r\n if (myMembership) {\r\n if (orderTotal.compareTo(new BigDecimal(\"25.00\")) == 1) { //myOrderTotal > $25\r\n final BigDecimal discount = DISCOUNT_RATE.multiply(orderTotal); \r\n orderTotal = orderTotal.subtract(discount);\r\n }\r\n }\r\n \r\n return orderTotal.setScale(2, RoundingMode.HALF_EVEN);\r\n }", "private static Map<String, List<String>> mapCustomerProductsPurchased(\r\n Map<String, List<String>> sessionsFromCustomers,\r\n List<String> sessionsWithPurchases\r\n ){\r\n Map<String, List<String>> newCustomerMap = new HashMap<>();\r\n // Initializes new map.\r\n for (String customer: sessionsFromCustomers.keySet()) {\r\n newCustomerMap.put(customer, new LinkedList<>());\r\n }\r\n\r\n for (Map.Entry<String, List<String>> customer: sessionsFromCustomers.entrySet()) {\r\n for (String session: sessionsWithPurchases) {\r\n if (customer.getValue().contains(session)) {\r\n newCustomerMap.get(customer.getKey()).add(session);\r\n }\r\n }\r\n\r\n }\r\n return newCustomerMap;\r\n }", "void calculateTotalPrice(){\n totalPrice = 0;\n cartContents.forEach(Product-> this.totalPrice = totalPrice + Product.getSellPrice());\n }", "public Products(){\n services = new LinkedHashMap<>();\n\n //Setting up products\n services.put(\"Consultation\", 30.0);\n services.put(\"Special Acupuncture Treatment\", 80.0);\n services.put(\"Medical Machine Therapy\", 30.0);\n services.put(\"Tapping Treatment\", 25.0);\n\n //Initializing the counter\n numCounter = services.size()+1;\n }", "BigDecimal calculateTotalPrice(Order order);", "public List<BudgetTotals> getBudgetTotals() throws SQLException{\n BudgetTotals found = null;\n List<BudgetTotals> allBT = new ArrayList<BudgetTotals>();\n DatabaseConnection dbaInfo = new DatabaseConnection();\n Connection conn = dbaInfo.getConnection();\n PreparedStatement stmt = conn.prepareCall(\"SELECT bud_category, sum(bud_budgeted_amount) AS budgetTotal, sum(bud_actual_amount) AS actualTotal FROM finance.budget GROUP BY bud_category\");\n ResultSet rs = stmt.executeQuery();\n while (rs.next()){\n found = new BudgetTotals();\n found.setCategory(rs.getString(\"bud_category\"));\n found.setBudgetTotal(rs.getDouble(\"budgetTotal\"));\n found.setActualTotal(rs.getDouble(\"actualTotal\"));\n allBT.add(found);\n }\n return allBT;\n }", "@Override\n public double getPrice() {\n return components.stream().mapToDouble(Component::getPrice).sum();\n }", "public BigDecimal countTotalOrderPrice(Order order) {\n BigDecimal totalSum = new BigDecimal(0);\n\n\n // iterate through all products and count total price of them -\n // TODO: can be speeded up by adding the order_total_price parameter to the order object/table\n if (order != null && order.getOrderProducts().size() > 0) {\n Set<Product> orderProducts = order.getOrderProducts();\n for (Product product : orderProducts) {\n totalSum = totalSum.add(product.getProduct_price());\n }\n\n }\n return totalSum;\n }", "Map<Goods, Integer> getQuantityByGroup(GoodsGroup group) throws StoreKeeperWorkException;", "public float getValueOfSales(String product) {\n float totalValue = 0;\n LinkedList<Sale> temp = storageSale.get(product);\n Iterator<Sale> it = temp.iterator();\n while (it.hasNext()) {\n totalValue = totalValue + it.next().getValue();\n }\n return totalValue;\n }", "private double calculateTotalPrice(Order order) {\n int nights = (int)(order.getVaucher().getDateTo().getTime() - order.getVaucher().getDateFrom().getTime())/(24 * 60 * 60 * 1000);\n double totalPrice = (nights * order.getVaucher().getHotel().getPricePerDay() + order.getVaucher().getTour().getPrice()) * (100 - order.getUser().getDiscount())/100;\n return totalPrice;\n }", "public float getCartPrice() {\n float totalSum = 0.0F;\n for(Publication book : shoppingCart){\n totalSum += book.getPrice();\n }\n\n return totalSum;\n }", "@Override\r\n\tpublic Map<Character, Double> SetUnitPrice() {\r\n\t\tPricePerUnit.put('A', 1.25);\r\n\t\tPricePerUnit.put('B', 4.25);\r\n\t\tPricePerUnit.put('C', 1.00);\r\n\t\tPricePerUnit.put('D', 0.75);\r\n\t\treturn PricePerUnit;\r\n\t}", "private Map<String,MyTargetsBean> getALOrderVal(ArrayList<MyTargetsBean> alMyTargets){\n Map<String,MyTargetsBean> mapMyTargetBean=new HashMap<>();\n if(alMyTargets!=null && alMyTargets.size()>0){\n\n for(MyTargetsBean bean:alMyTargets)\n if(mapOrderValAch.containsKey(bean.getOrderMaterialGroupID())) {\n double mDoubMonthAchived = Double.parseDouble(bean.getMTDA()) + mapOrderValAch.get(bean.getOrderMaterialGroupID());\n mapOrderValAch.put(bean.getOrderMaterialGroupID(), mDoubMonthAchived);\n mapMyTargetBean.put(bean.getOrderMaterialGroupID(),bean);\n }else {\n double mDoubMonthAchived = Double.parseDouble(bean.getMTDA()) ;\n mapOrderValAch.put(bean.getOrderMaterialGroupID(), mDoubMonthAchived);\n mapMyTargetBean.put(bean.getOrderMaterialGroupID(),bean);\n }\n }\n\n\n return mapMyTargetBean;\n }", "public List<Product> getSales() {\n return sales;\n }", "@Override\n\tpublic List<Object[]> categoriesDataForDates(LocalDate date) { \n\t\tHashMap<Integer, Category> map = new HashMap<>();\n\t\tList<Category> categories = getAllCategories(); \n\t\tcategories.forEach(c -> {\n\t\t\tmap.put(c.getId(), c); \n\t\t});\n\n\t\tfinal String sql = \"SELECT DATE_FORMAT(dateIncurred,'%Y-%m') as date, \"\n\t\t\t\t+ \"category as cat, Count(*) as count, ROUND(SUM(amount),2) as sum \"\n\t\t\t\t+ \"FROM Transaction \"\n\t\t\t\t+ \"WHERE amount < 0 and (dateIncurred between ? and ?)\"\n\t\t\t\t+ \"GROUP BY Year(dateIncurred) , Month(dateIncurred), category \"\n\t\t\t\t+ \"ORDER BY dateIncurred DESC\";\n\n\t\t/* begin transaction */ \n\t\tSession session = getCurrentSession();\n\t\tsession.beginTransaction();\n\t\tSQLQuery query = session.createSQLQuery(sql);\n\n\t\t// TODO: simplify\n\t\tLocalDate from \t\t= date; \n\t\tLocalDate to\t\t= from.plusDays(from.lengthOfMonth() - 1);\n\t\tTimestamp from1 = Timestamp.valueOf(from.atStartOfDay());\n\t\tTimestamp to1\t= Timestamp.valueOf(to.atStartOfDay());\n\t\t\n\t\tquery.setTimestamp(0, from1);\n\t\tquery.setTimestamp(1, to1);\n\t\t\n\t\t/* replace Category_id with the actual category object by fetching the objects from db */ \n\t\tList<Object[]> results = query.list();\n\t\tresults.forEach(o -> {\n\t\t\tif (o[1] != null) { \n\t\t\t\t/* get category id */ \n\t\t\t\tInteger cat_id = Integer.parseInt(o[1].toString());\n\n\t\t\t\t/* put category object in map */ \n\t\t\t\to[1] = map.get(cat_id);\t\n\t\t\t}\n\t\t});\n\t\t\n\t\tsession.getTransaction().commit();\n\t\treturn results;\n\t}", "private Map<Double, List<String>> getScoreMap() {\n\t\t//dfMap = new HashMap<String, Integer>();\n\t\t\n\t\tfor (Map.Entry<String, FreqAndLists> entry: map.entrySet()) {\n\t\t\tString term = entry.getKey();\n\t\t\tif (originalTerms.contains(term)) { // expanded terms should not contain original terms\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tdouble totalScore = 0;\n\t\t\tList<PositionList> postingList = entry.getValue().getPostingList();\n\t\t\tfor (PositionList positionList : postingList) {\n\t\t\t\tlong dr = positionList.getDocID();\n\t\t\t\tint rawDf = GetRawDf.getRawDf(qryId, term);\n\t\t\t\t//dfMap.put(term, rawDf);\n\t\t\t\ttotalScore += sf.getScore(term, dr, rawDf);\n\t\t\t}\n\t\t\t//System.out.println(term + \" \" + totalScore);\n\t\t\tif (scoreMap.containsKey(totalScore)) {\n\t\t\t\tscoreMap.get(totalScore).add(term);\n\t\t\t} else {\n\t\t\t\tList<String> list = new ArrayList<>();\n\t\t\t\tlist.add(term);\n\t\t\t\tscoreMap.put(totalScore, list);\n\t\t\t}\n\t\t}\n\t\t\n\t\t/*for (Map.Entry<Double, List<String>> entry : scoreMap.entrySet()) {\n\t\t\tSystem.out.println(\"000 \" + entry.getKey());\n\t\t\tList<String> list = entry.getValue();\n\t\t\tfor (String term : list) {\n\t\t\t\tSystem.out.println(\" \" + term);\n\t\t\t}\n\t\t}*/\n\t\t\n\t\t//writeToFile();\n\t\treturn scoreMap;\n\t}", "public Map getTotalItemByVoucherNoForEditGRHelper(String voucherNo)\r\n\t{\n\t\t\tSystem.out.println(\"====HELPER====\");\r\n\t\t\tSystem.out.println(\"voucherNo :: \" + voucherNo);\r\n\t\t\tlong k = 0l;\r\n\t\t\tDouble grossTotal = 0.0;\r\n\t\t\tDouble totalTaxAmt = 0.0;\r\n\t\t\tDecimalFormat df = new DecimalFormat(\"#.##\");\r\n\t\t\t//Map<Long, PurchaseReturnGetItems> map = new HashMap<Long, PurchaseReturnGetItems>();\r\n\t\t\t\r\n\t\t\tSupplierDetailDao dao = new SupplierDetailDao();\r\n\t\t\tList productList = dao.getTotalItemByVoucherNoForEditGRDao(voucherNo);\r\n\t\t\tMap map = new HashMap();\r\n\t\t\tPurchaseReturnGetItems cs = null;\r\n\t\t\t\r\n\t\t\tfor (int i = 0; i < productList.size(); i++)\r\n\t\t\t{\r\n\t\t\t\tk++;\r\n\t\t\t\tObject[] o = (Object[]) productList.get(i);\r\n\t\t\t\tEditPurchase bean = new EditPurchase();\r\n\t\t\t\tbean.setPkGoodRecId(Long.parseLong(o[0].toString()));\r\n\t\t\t\tbean.setCatName(o[1].toString());\r\n\t\t\t\tbean.setItemName(o[2].toString());\r\n\t\t\t\tbean.setQuantity(Double.parseDouble(o[3].toString()));\r\n\t\t\t\tbean.setOriQuantity(o[3].toString());\r\n\t\t\t\tbean.setBuyPrice(Double.parseDouble(o[4].toString()));\r\n\t\t\t\tbean.setFinalBuyPrice(o[4].toString());\r\n\t\t\t\tbean.setVat(Double.parseDouble(o[5].toString()));\r\n\t\t\t\tbean.setIgst(Double.parseDouble(o[11].toString()));\r\n\t\t\t\tbean.setFinalVat(Double.parseDouble(o[5].toString()));\r\n\t\t\t\tbean.setFinalIgst(Double.parseDouble(o[11].toString()));\r\n\t\t\t\tbean.setDiscount(Double.parseDouble(o[12].toString()));\r\n\t\t\t\tbean.setFinalDisPer(o[12].toString());\r\n\t\t\t\tbean.setRollsize(Double.parseDouble(o[13].toString()));\r\n\t\t\t\tbean.setTotal(Double.parseDouble(o[6].toString()));\r\n\t\t\t\tbean.setContactPerson(o[7].toString());\r\n\t\t\t\tbean.setBarcodeNo(Long.parseLong(o[8].toString()));\r\n\t\t\t\tbean.setOndate(o[9].toString());\r\n\t\t\t\tbean.setAvailquantity(Double.parseDouble(o[10].toString()));\r\n\t\t\t\tbean.setSize(o[14].toString());\r\n\t\t\t\tbean.setSupplierId(o[15].toString());\r\n\t\t\t\tbean.setBillNo(o[16].toString());\r\n\t\t\t\tbean.setSupplierName2(o[17].toString());\r\n\t\t\t\tbean.setGrossTotal(Double.parseDouble(o[18].toString()));\r\n\t\t\t\tDouble d = 0d;\r\n\t\t\t\tbean.setReturnTotal(d);\r\n\t\t\t\tLong editQuan = 0l;\r\n\t\t\t\tbean.setEditQuantity(editQuan);\r\n\t\t\t\tbean.setTotalQuantity(k);\r\n\t\t\t\tgrossTotal = grossTotal + Double.parseDouble(o[6].toString());\r\n\t\t\t\tbean.setFinalGrossTotal(o[18].toString());\r\n\t\t\t\tbean.setSubcatName(o[19].toString());\r\n\t\t\t\tbean.setHsnSac(o[20].toString());\r\n\t\t\t\tbean.setColor(o[21].toString());\r\n\t\t\t\tbean.setStyle(o[22].toString());\r\n\t\t\t\tif(o[23] == null)\r\n\t\t\t\t{\r\n\t\t\t\t\tbean.setPurchaseCode(\"\");\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tbean.setPurchaseCode(o[23].toString());\r\n\t\t\t\t}\r\n\t\t\t\tbean.setContactPerson(o[24].toString());\r\n\t\t\t\tbean.setTaxAmount(o[25].toString());\r\n\t\t\t\tbean.setReturnedQty(o[26].toString());\r\n\t\t\t\tint rQtyInInt = (int)(Double.parseDouble(o[26].toString()));\r\n\t\t\t\tbean.setReturnedQty(String.valueOf(rQtyInInt));\r\n\t\t\t\tbean.setSalePrice(Double.parseDouble(o[27].toString()));\r\n\t\t\t\tbean.setFinalSalePrice(o[27].toString());\r\n\t\t\t\tbean.setPkSuppId(o[28].toString());\r\n\t\t\t\tbean.setProductId(o[29].toString());\r\n\t\t\t\tbean.setSubCatId(o[30].toString());\r\n\t\t\t\tbean.setCatId(o[31].toString());\r\n\t\t\t\tbean.setSuppCode(o[32].toString());\r\n\t\t\t\tbean.setSoldQty(o[33].toString());\r\n\t\t\t\tbean.setPendingBillPayment(o[34].toString());\r\n\t\t\t\tbean.setBarQtyTotalPuchaseQty(o[35].toString());\r\n\t\t\t\tSystem.out.println(\"BarQtyTotalPuchaseQty ====> \"+bean.getBarQtyTotalPuchaseQty());\r\n\t\t\t\tSystem.out.println(\"grossTotal =====> \"+grossTotal);\r\n\t\t\t\tSystem.out.println(\"***************\" + o[0]);\r\n\t\t\t\tmap.put(bean.getPkGoodRecId(), bean);\t\r\n\t\t\t/*if (catList != null && catList.size() > 0)\r\n\t\t\t{\r\n\t\t\t\tcs = (PurchaseReturnGetItems) catList.get(0);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"TOTAL ITEMLIST Helper \"+catList.size());\r\n\t\t\t\r\n\t\t\treturn cs;*/\r\n\t\t}\r\n\t\t\t\r\n\t\t\treturn map;\r\n\t}", "public List<OrderReport> getAllOrdersAcrossStores();", "private Map<Integer, Integer> getShoppingCartBookQtyMap(List<Book> bookList, int userId) {\n Map<Integer, Integer> shoppingCartBookQty = new HashMap<Integer, Integer>();\n for(Book book : bookList) {\n int bookId = book.getBookId();\n DAOShoppingCart daoShoppingCart = new DAOShoppingCart();\n ShoppingCart shoppingCart = daoShoppingCart.getShoppingCartByBookIdCustomerId(userId, bookId);\n if(shoppingCart != null) {\n shoppingCartBookQty.put(bookId, shoppingCart.getQuantity());\n }\n }\n return shoppingCartBookQty;\n }", "public void calculatePriceOrder() {\n log.info(\"OrdersBean : calculatePriceOrder!\");\n this.priceOrder = 0;\n for (ContractsEntity c : contractsBean.getContractsEntities()\n ) {\n this.priceOrder += c.getFinalPrice();\n }\n }", "public static List<Map<String,Object>> getData(){\n\t\tList<Map<String,Object>> coupons = new ArrayList<Map<String,Object>>();\n\t\t\n\t\tMap<String,Object> ChoclateCpn = new HashMap<String,Object>();\n\t\tMap<String,Object> MeatCpn = new HashMap<String,Object>();\n\t\tMap<String,Object> ChkCpn = new HashMap<String,Object>();\n\t\tMap<String,Object> FruitCpn = new HashMap<String,Object>();\n\t\tMap<String,Object> FishCpnSalmon = new HashMap<String,Object>();\n\t\tMap<String,Object> FishCpnCatish = new HashMap<String,Object>();\n\t\t\n\t\tChoclateCpn.put(\"sku\" , \"SKU001\");\n\t\tChoclateCpn.put(\"id\",\"100\");\n\t\tChoclateCpn.put(\"type\",\"GROC\");\n\t\tChoclateCpn.put(\"price\",12);\n\t\tChoclateCpn.put(\"amount\",2);\n\t\t\n\t\tMeatCpn.put(\"sku\" , \"SKU002\");\n\t\tMeatCpn.put(\"id\",\"101\");\n\t\tMeatCpn.put(\"type\",\"MT\");\n\t\tMeatCpn.put(\"price\",10);\n\t\tMeatCpn.put(\"amount\",2);\n\t\t\n\t\tChkCpn.put(\"sku\" , \"SKU003\");\n\t\tChkCpn.put(\"id\",\"103\");\n\t\tChkCpn.put(\"type\",\"MT\");\n\t\tChkCpn.put(\"price\",6);\n\t\tChkCpn.put(\"amount\",1);\n\t\t\n\t\tFruitCpn.put(\"sku\" , \"SKU004\");\n\t\tFruitCpn.put(\"id\",\"104\");\n\t\tFruitCpn.put(\"type\",\"FRUT\");\n\t\tFruitCpn.put(\"price\", 20);\n\t\tFruitCpn.put(\"amount\", 4);\n\t\t\n\t\tFishCpnSalmon.put(\"sku\" , \"SKU005\");\n\t\tFishCpnSalmon.put(\"id\",\"105\");\n\t\tFishCpnSalmon.put(\"type\",\"MT\");\n\t\tFishCpnSalmon.put(\"price\", 12);\n\t\tFishCpnSalmon.put(\"amount\", 2);\n\t\t\n\t\tFishCpnCatish.put(\"sku\" , \"SKU006\");\n\t\tFishCpnCatish.put(\"id\",\"106\");\n\t\tFishCpnCatish.put(\"type\",\"MT\");\n\t\tFishCpnCatish.put(\"price\", 5 );\n\t\tFishCpnCatish.put(\"amount\", 1.5 );\n\t\t\n\t\tcoupons.add( ChoclateCpn);\n\t\tcoupons.add( MeatCpn );\n\t\t\n\t\tcoupons.add( ChkCpn );\n\t\tcoupons.add( FruitCpn );\n\t\t\n\t\tcoupons.add( FishCpnSalmon );\n\t\tcoupons.add( FishCpnCatish );\n\t\t\n\t\treturn coupons;\n\t}", "List<List<Order>> getAllOrdersByPrice() throws OrderBookOrderException;", "int computeNutritionalScore(Map<String, Object> product);", "public List<Service> getServicesByCategory(Category cat) {\n ServiceRecords sr = company.getServiceRecords();\n List<Service> serviceList = sr.getServiceByCat(cat);\n return serviceList;\n }", "private int getTotalPrice() {\n int unitPrice = 0;\n if (((CheckBox) findViewById(R.id.whipped_cream_checkbox)).isChecked()) {\n unitPrice += Constants.PRICE_TOPPING_WHIPPED_CREAM;\n }\n\n if (((CheckBox) findViewById(R.id.chocolate_checkbox)).isChecked()) {\n unitPrice += Constants.PRICE_TOPPING_CHOCOLATE;\n }\n\n unitPrice += Constants.PRICE_PER_COFFEE;\n return getNumberOfCoffees() * unitPrice;\n }", "protected LinkedHashMap<Long, Map<String, Double>> caclculateStatesSums(Collection<IClassifier> classifiers, SegmentatorParam param){\r\n\t\tLinkedHashMap<Long,Map<String, Double>> statesSums = new LinkedHashMap<Long, Map<String, Double>>();\r\n\r\n\t\tMap<String, Iterator<Marker>> markerIterators = new HashMap<String, Iterator<Marker>>();\r\n\t\t\r\n\t\tfor (IClassifier classifier : classifiers) {\r\n\t\t\tmarkerIterators.put(classifier.getName(), classifier.getMarkSet().getMarkers().iterator());\r\n\t\t}\r\n\t\tboolean hasNext = true;\r\n\t\tMap<String, Marker> lastMarkers = new HashMap<String, Marker>();\r\n\t\twhile(hasNext){\r\n\t\t\thasNext = false;\r\n\t\t\tfor (Entry<String, Iterator<Marker>> markerIterator : markerIterators.entrySet()) {\r\n\t\t\t\tif(!markerIterator.getValue().hasNext()){\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\thasNext = true;\r\n\t\t\t\tMarker marker = markerIterator.getValue().next();\r\n\t\t\t\tMarker lastMarker = lastMarkers.get(markerIterator.getKey());\r\n\t\t\t\tlastMarkers.put(markerIterator.getKey(), marker);\r\n\t\t\t\t\r\n\t\t\t\tlong startIndex = lastMarker == null?0:lastMarker.getEnd();\r\n\t\t\t\t\r\n\t\t\t\tfor (long index= startIndex; index < marker.getStart(); index++) {\r\n\t\t\t\t\tsafeSum(statesSums, index, 0D, param, markerIterator.getKey());\r\n\t\t\t\t}\r\n\t\t\t\tList<Double> window = MatrixUtils.fill(marker.getLength().intValue(), 1D);\r\n\t\t\t\tgetWindowing().apply(window);\r\n\t\t\t\tlong index = marker.getStart();\r\n\t\t\t\tfor (Double value : window) {\r\n\t\t\t\t\tsafeSum(statesSums, index++, value, param, markerIterator.getKey());\r\n\t\t\t\t}\r\n\t\t\t\t\r\n//\t\t\t\tlog.error(\"[caclculateStatesSums]\" + markerIterator.getKey() + marker);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn statesSums;\r\n\t}", "private void categorize(Map<Integer, Double> trips,\n\t\t\tMap<Integer, Double> category1, Map<Integer, Double> category2,\n\t\t\tMap<Integer, Double> category3) {\n\t\t// Add 3 first elements to categories\n\t\tObject[] arrTrips = trips.keySet().toArray();\n\t\tcategory1.put((Integer) arrTrips[0], trips.get((Integer) arrTrips[0]));\n\t\tcategory2.put((Integer) arrTrips[1], trips.get((Integer) arrTrips[1]));\n\t\tcategory3.put((Integer) arrTrips[2], trips.get((Integer) arrTrips[2]));\n\n\t\t// Categorize all the entries a few times for better result\n\t\tfor (int i = 0; i < CATEGORIZING_TIMES; i++) {\n\t\t\t// Compute categories' averages\n\t\t\tDouble avg1 = getValuesAvg(category1);\n\t\t\tDouble avg2 = getValuesAvg(category2);\n\t\t\tDouble avg3 = getValuesAvg(category3);\n\n\t\t\t// Move each entry to it's closest category by average\n\t\t\tfor (Entry<Integer, Double> entry : trips.entrySet()) {\n\t\t\t\tcategorizeEntry(category1, category2, category3, avg1, avg2,\n\t\t\t\t\t\tavg3, entry);\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n public void calculate() {\r\n // do the calculations\r\n this.categories = new String[]{\"one\", \"two\"};\r\n this.data = new double[]{75, 50};\r\n }", "public void addOrder(HashMap<Integer, Integer> orders, int manager_id, int orderMethod, Object userObject) {\n HashMap<Integer, Product> products = new HashMap<Integer, Product>();\n double order_totalprice = 0;\n double order_price = 0;\n try {\n DBConnect connectionTester = new DBConnect();\n connectionTester.testConnection();\n\n for (int product_id : orders.keySet()) {\n\n String sql = \"select * from product where idproduct = ?\";\n PreparedStatement prpStmt = connectionTester.connection.prepareStatement(sql);\n prpStmt.setInt(1, product_id);\n\n // Not only is information requested, information like the total price is also processed\n ResultSet result = prpStmt.executeQuery();\n while (result.next()) {\n int id_product = result.getInt(\"idproduct\");\n String product_name = result.getString(\"product_name\");\n double price = result.getDouble(\"price\");\n int in_stock = result.getInt(\"in_stock\");\n String amount = result.getString(\"amount\");\n int ordered_amount = orders.get(product_id);\n if (orderMethod == 2 || orderMethod == 3) {\n order_price = result.getDouble(\"price\") * ordered_amount;\n } else if (orderMethod == 1) {\n order_price = result.getDouble(\"price\") * ordered_amount - 0.10;\n }\n\n // Calling the builder to store the information in a class\n products.put(id_product, new Product.Builder(id_product)\n .productName(product_name)\n .productPrice(price)\n .productInStock(in_stock)\n .productAmount(amount)\n .productOrderedAmount(ordered_amount)\n .productOrderPrice(order_price)\n .build());\n order_totalprice = order_totalprice + order_price;\n }\n }\n\n } catch (SQLException err) {\n System.out.println(err.getMessage());\n }\n\n reviewOrder(products, order_totalprice, manager_id, orderMethod, userObject);\n }", "@Transactional\n @Override\n public StringBuffer addSalesOrderTparts(String customerID, String cartIDs, String addressID, String paymentType,\n String orderAmount, String scoreAll, String memo, String itemCount, String itemID,\n String supplierID, String itemType, String orderType, String objID, String invoiceType,\n String invoiceTitle, String generateType, String orderID,String memoIDs,String allFreight, String supplierFreightStr) throws Exception {\n \t\n String ids[] = cartIDs.split(\",\");\n String memos[] = memoIDs.split(\",\");\n List<ShoppingCartVO> shopCartList = new ArrayList<ShoppingCartVO>();\n for (String id : ids) {\n ShoppingCartVO shoppingCartVO = shoppingCartDAO.findShoppingCartByID(Long.valueOf(id));\n shopCartList.add(shoppingCartVO);\n }\n Map<String,List<ShoppingCartVO>> maps = new HashMap<String,List<ShoppingCartVO>>();\n for(ShoppingCartVO s:shopCartList){\n \tList<ShoppingCartVO> temp = new ArrayList<ShoppingCartVO>();\n \t String sid1= s.getSupplierID();\n String siname1= s.getSupplierName();\n for(ShoppingCartVO shoppingCartVO1 : shopCartList){\n \t//当前店铺对应的购物车集合\n \tString sid2 = shoppingCartVO1.getSupplierID();\n \tif(sid1.equals(sid2)){\n \t\ttemp.add(shoppingCartVO1);\n \t}\n }\n maps.put(sid1+\"_\"+siname1, temp);\n }\n \n //根据物流模板计算运费\n Map<String, Double> supplierFreightMap = new HashMap<String, Double>();\n String[] supplierFreightAll = null;\n if(StringUtil.isNotEmpty(supplierFreightStr))\n {\n \tsupplierFreightAll = supplierFreightStr.split(\"\\\\|\");\n for (int i = 0; i < supplierFreightAll.length; i++) {\n \tString[] supplierFreight = supplierFreightAll[i].split(\":\");\n \tsupplierFreightMap.put(supplierFreight[0], Double.parseDouble(supplierFreight[1]));\n \t\t} \t\n }\n \n \n StringBuffer ordersList = new StringBuffer();\n int num = 0;\n// cachedClient.delete(customerID + orderID);\n Set<String> set = maps.keySet();\n\t\tfor(String string : set){\n\t\t List<ShoppingCartVO> temp1= maps.get(string);\n\t\t double supplierFreight = 0d;\n\t\t if(supplierFreightMap.size()>0)\n\t\t {\n\t\t\t supplierFreight = supplierFreightMap.get(string);\n\t\t }\n\t\t Double amount = 0d;\n\t\t Integer count = 0;\n Integer score = 0;\n Double weight = 0d;\n\t\t for (ShoppingCartVO shoppingCartVO : temp1) {\n ItemVO itemVO = itemDAO.findItemById(shoppingCartVO.getItemID());\n count += shoppingCartVO.getItemCount();\n // weight += itemVO.getWeight();\n if (shoppingCartVO.getType() == 1) {\n amount += shoppingCartVO.getItemCount() * shoppingCartVO.getSalesPrice();\n } else if (shoppingCartVO.getType() == 2) {\n score += shoppingCartVO.getItemCount() * itemVO.getScore();\n } else if (shoppingCartVO.getType() == 3) {\n amount += shoppingCartVO.getItemCount() * itemVO.getScorePrice();\n score += shoppingCartVO.getItemCount() * shoppingCartVO.getSalesScore();\n }\n }\n\t\t //SalesOrderVO tempOrder = new SalesOrderVO();\n\t /*if (tempOrder == null) {\n\t throw new Exception(\"参数错误\");\n\t }\n\t if (\"012\".indexOf(invoiceType) == -1) {\n\t throw new Exception(\"参数错误\");\n\t }*/\n\t SalesOrderDTO salesOrderDTO = new SalesOrderDTO();\n\t salesOrderDTO.setMainID(randomNumeric());\n\t salesOrderDTO.setCustomerID(customerID);\n\t salesOrderDTO.setPaymentType(Integer.valueOf(paymentType));\n\t salesOrderDTO.setPaymentStatus(0);\n\n\t // salesOrderDTO.setExpressFee(tempOrder.getExpressFee());//运费\n\t salesOrderDTO.setProductAmount(amount);\n\t salesOrderDTO.setTotalAmount(amount + supplierFreight);\n\t salesOrderDTO.setPayableAmount(amount);\n\n\t salesOrderDTO.setOrderType(Integer.valueOf(orderType));\n\t salesOrderDTO.setMemo(getMemoBySupplier(memos,string.split(\"_\")[0]));\n\t salesOrderDTO.setInvoiceType(Integer.parseInt(invoiceType));\n\t salesOrderDTO.setInvoiceTitle(invoiceTitle);\n\t salesOrderDTO.setSupplierID(string);\n\t salesOrderDTO.setExpressFee(supplierFreight);\n\t salesOrderDAO.addSalesOrder(salesOrderDTO);\n\t ordersList.append(salesOrderDTO.getMainID()+\",\");\n\t // 支付方式1:余额支付2:货到付款3:在线支付4:积分礼品5:线下汇款\n\t if(!paymentType.equals(\"3\")){\n\t \t//3:在线支付\n\t \t CustomerDeliveryAddressVO customerDeliveryAddressVO = customerDeliveryAddressDAO.findAddressByID(Long.valueOf(addressID));\n\t \t if (customerDeliveryAddressVO != null) {\n\t \t SalesOrderDeliveryAddressDTO salesOrderDeliveryAddressDTO = new SalesOrderDeliveryAddressDTO();\n\t \t salesOrderDeliveryAddressDTO.setSalesOrderID(salesOrderDTO.getMainID());\n\t \t salesOrderDeliveryAddressDTO.setName(customerDeliveryAddressVO.getName());\n\t \t salesOrderDeliveryAddressDTO.setCountryID(customerDeliveryAddressVO.getCountryID());\n\t \t salesOrderDeliveryAddressDTO.setProvinceID(customerDeliveryAddressVO.getProvinceID());\n\t \t salesOrderDeliveryAddressDTO.setCityID(customerDeliveryAddressVO.getCityID());\n\t \t salesOrderDeliveryAddressDTO.setDisctrictID(customerDeliveryAddressVO.getDisctrictID());\n\t \t salesOrderDeliveryAddressDTO.setAddress(customerDeliveryAddressVO.getAddress());\n\t \t salesOrderDeliveryAddressDTO.setMobile(customerDeliveryAddressVO.getMobile());\n\t \t salesOrderDeliveryAddressDTO.setTelephone(customerDeliveryAddressVO.getTelephone());\n\t \t if (customerDeliveryAddressVO.getZip() != null) {\n\t \t salesOrderDeliveryAddressDTO.setZip(customerDeliveryAddressVO.getZip());\n\t \t }\n\t \t salesOrderDeliveryAddressDAO.insertSalesOrderDeliveryAddress(salesOrderDeliveryAddressDTO);\n\t \t }\n\t \t ShippingAddressVO shippingAddressVO = shippingAddressDAO.findDefaultShippingAddress();\n\t \t if (shippingAddressVO != null) {\n\t \t SalesOrderShippingAddressDTO salesOrderShippingAddressDTO = new SalesOrderShippingAddressDTO();\n\t \t salesOrderShippingAddressDTO.setSalesOrderID(salesOrderDTO.getMainID());\n\t \t salesOrderShippingAddressDTO.setName(shippingAddressVO.getName());\n\t \t salesOrderShippingAddressDTO.setCountryID(shippingAddressVO.getCountryID());\n\t \t salesOrderShippingAddressDTO.setProvinceID(shippingAddressVO.getProvinceID());\n\t \t salesOrderShippingAddressDTO.setCityID(shippingAddressVO.getCityID());\n\t \t salesOrderShippingAddressDTO.setDisctrictID(shippingAddressVO.getDisctrictID());\n\t \t salesOrderShippingAddressDTO.setAddress(shippingAddressVO.getAddress());\n\t \t salesOrderShippingAddressDTO.setMobile(shippingAddressVO.getMobile());\n\t \t salesOrderShippingAddressDTO.setTelephone(shippingAddressVO.getTelephone());\n\t \t salesOrderShippingAddressDTO.setZip(shippingAddressVO.getZip());\n\t \t salesOrderShippingAddressDAO.insertSalesOrderShippingAddress(salesOrderShippingAddressDTO);\n\t \t }\n\t }\n\t \n\t ItemDTO itemDTO = new ItemDTO();\n\t SupplierItemDTO supplierItemDTO = new SupplierItemDTO();\n\t SalesOrderLineDTO salesOrderLineDTO = new SalesOrderLineDTO();\n\t if (generateType.equals(\"quickBuy\")) {\n\t generateQuickBuyOrder(itemCount,cartIDs, itemID, supplierID, objID, salesOrderDTO, itemDTO, supplierItemDTO,\n\t salesOrderLineDTO);\n\n\t } else if (generateType.equals(\"oneKey\")) {\n\t generateOneKeyOrder(customerID, itemCount, itemType, objID, salesOrderDTO, itemDTO, supplierItemDTO,\n\t salesOrderLineDTO);\n\n\t } else if (generateType.equals(\"shoppingcart\")) {\n\t \tgenarateShoppingCartOrderTparts(customerID, cartIDs, itemCount, itemType, objID, salesOrderDTO, itemDTO,\n\t supplierItemDTO, salesOrderLineDTO);\n\t } else {\n\t throw new Exception(\"订单类型无法确定\");\n\t }\n\t num++;\n\t\t}\n return ordersList;\n }", "public interface ShoppingBasketCalculator {\n\n\n /**\n * Calculate total basket price\n * @param itemMap All the items\n * @param itemList shopping list\n * @return total price\n */\n double calculateTotalPrice(Map<String, Item> itemMap, List<String> itemList);\n\n /**\n * Get list of discounted items\n * @param itemMap All the items\n * @param itemList shopping list\n * @return discounted items\n */\n Map<Item, List<Double>> calculateDiscountPriceList(Map<String, Item> itemMap, List<String> itemList);\n\n /**\n * Gets total discount\n * @param discountedList discounted list\n * @return total discounted price\n */\n double calculateDiscountedPrice(Map<Item, List<Double>> discountedList);\n\n /**\n * Get list of discounted items based on the rule\n * @param itemMap All the items\n * @param itemList shopping list\n * @return discounted items\n */\n Map<Item, List<Double>> calculateDiscountRule1PriceList(Map<String, Item> itemMap, List<String> itemList);\n}", "public double totalPrices()\r\n {\r\n double total = 0;\r\n //Write a loop here to total the book prices. Each object in the ArrayList bookList is a Book, so you can\r\n //use the getter as you loop through and add the price to total\r\n if(bookList != null){\r\n for(Book book: bookList){\r\n total += book.getPrice();\r\n }\r\n }\r\n return total;\r\n }", "public String getCostCategory() {\n\t\treturn this.costCategory;\n\t}", "public Map<Integer, Componente> ottieniComponentiByCategoria(String idCategoria){\n\t\tMap<Integer, Componente> mappa = new HashMap<Integer, Componente>();\n\t\ttry { //Evito eventuali errori per l'identificativo della categoria\n\t\t\tfor (Componente elemento : this.mappaComponenti.get(idCategoria)) {\n\t\t\t\tmappa.put(elemento.getId(), elemento);\n\t\t\t}\n\t\t}catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn mappa;\n\t}", "private ArrayList<Integer> FindEachCategoryPosition(ArrayList<String> order_content) {\n ArrayList<Integer> categoryPositions = new ArrayList<>();\n for (int i = 0; i < order_content.size(); i++) {\n String line = order_content.get(i);\n if (ColesReceiptItem.Is_Quantity_Price_Keyword(line))\n categoryPositions.add(i);\n }\n categoryPositions.add(order_content.size());\n\n return categoryPositions;\n }", "public TotalPriceDTO finalizeSale() {\n return sale.finalizeSale();\n }", "private double returnOrderTotalAmount(List<ProductVariation> productVariationList, long customerId)\n {\n double totalAmount = 0;\n\n for (ProductVariation productVariation: productVariationList) {\n\n int quantityFromCart = cartRepository.getQuantityForCustomerIdAndVariationId(customerId\n , productVariation.getId());\n totalAmount+=(productVariation.getPrice()*quantityFromCart);\n }\n return totalAmount;\n }", "List<Product> getProductsByCategory(String category);", "private Map<String, Map<String, Integer>> computeConfusionMatrix(List<String> sentences, List<String> targets) {\r\n Map<String, Map<String, Integer>> confusionMap = new HashMap<>();\r\n // initialize the map (confusion matrix) of occurrences to be all zeros\r\n for (String trueCategory : categories) {\r\n Map<String, Integer> subConfusionMap = new HashMap<>();\r\n for (String predictedCategory : categories) {\r\n subConfusionMap.put(predictedCategory, 0);\r\n }\r\n confusionMap.put(trueCategory, subConfusionMap);\r\n }\r\n\r\n List<String> predictions = predict(sentences);\r\n for (int i = 0; i < sentences.size(); i++) {\r\n String trueCategory = targets.get(i);\r\n String predictedCategory = predictions.get(i);\r\n Map<String, Integer> subConfusionMap = confusionMap.get(trueCategory);\r\n subConfusionMap.put(predictedCategory, subConfusionMap.get(predictedCategory) + 1);\r\n }\r\n return confusionMap;\r\n }", "public void visitHardTotals( DevCat devCat ) {}" ]
[ "0.6930046", "0.64215475", "0.56634206", "0.56571084", "0.5606556", "0.55995053", "0.5599499", "0.5562302", "0.5454364", "0.54293084", "0.54231906", "0.5395502", "0.5366201", "0.5364133", "0.5334269", "0.521911", "0.52135533", "0.52113247", "0.5129898", "0.5121735", "0.51188916", "0.5104782", "0.5078721", "0.50727904", "0.50570863", "0.50439084", "0.5029393", "0.5018415", "0.50076133", "0.5006405", "0.49871892", "0.49848887", "0.49681795", "0.49621317", "0.49578303", "0.49228013", "0.49075887", "0.48773783", "0.4865217", "0.48610178", "0.48591918", "0.48476788", "0.48475355", "0.48466298", "0.48454365", "0.48398778", "0.48129174", "0.48101893", "0.48084986", "0.4801405", "0.4797671", "0.47964218", "0.47803074", "0.4772087", "0.4753932", "0.47525877", "0.4740499", "0.4738072", "0.47371063", "0.4736312", "0.47296485", "0.47262377", "0.47165242", "0.47127762", "0.4688549", "0.4671955", "0.4671551", "0.46694714", "0.46622023", "0.4644191", "0.4642914", "0.464235", "0.4613021", "0.46074304", "0.46041727", "0.45871252", "0.45854437", "0.45835137", "0.45775926", "0.457631", "0.45657527", "0.45512876", "0.45506638", "0.45420286", "0.45394582", "0.45394093", "0.45333686", "0.4526886", "0.4522969", "0.45205304", "0.45162854", "0.45111907", "0.45061827", "0.45060048", "0.45037863", "0.4497527", "0.44916266", "0.44901684", "0.44827586", "0.4481255" ]
0.8005004
0
Returns a map with the total price of all sales made by each user NOTE: users with no sales will not show up
public Map<User, Double> getSalesPrUser() { Map<User, Double> sales = new HashMap<>(); for (Order o : orders) { Double currentTotal = sales.get(o.getUser()); if (currentTotal == null) { currentTotal = 0.0; } currentTotal += o.totalPrice(); sales.put(o.getUser(), currentTotal); } return sales; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Map<String, Double> getSalesPrBeer() {\n\t\tMap<String, Double> sales = new HashMap<>();\n\n\t\tfor (Order o : orders) {\n\t\t\tfor (ProductOrder po : o.getAllProducts()) {\n\t\t\t\tProduct p = po.getProduct();\n\t\t\t\tString category = po.getProduct().getCategory();\n\n\t\t\t\tif (category.equals(\"fadøl\") || category.equals(\"flaske\")\n\t\t\t\t\t\t|| category.equals(\"fustage\")) {\n\n\t\t\t\t\tString name = p.getName().split(\",\")[0].trim();\n\t\t\t\t\tDouble currentTotal = sales.get(name);\n\n\t\t\t\t\tif (currentTotal == null) {\n\t\t\t\t\t\tcurrentTotal = 0.0;\n\t\t\t\t\t}\n\n\t\t\t\t\tcurrentTotal += po.price();\n\n\t\t\t\t\tsales.put(name, currentTotal);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn sales;\n\t}", "public Map<Pricelist, Double> getSalesPrPricelist() {\n\t\tMap<Pricelist, Double> sales = new HashMap<>();\n\n\t\tfor (Order o : orders) {\n\t\t\tDouble currentTotal = sales.get(o.getPricelist());\n\n\t\t\tif (currentTotal == null) {\n\t\t\t\tcurrentTotal = 0.0;\n\t\t\t}\n\n\t\t\tcurrentTotal += o.totalPrice();\n\n\t\t\tsales.put(o.getPricelist(), currentTotal);\n\t\t}\n\n\t\treturn sales;\n\t}", "private double calculateTotal(){\r\n double total = 0;\r\n\r\n for(Restaurant restaurant: restaurantMap.getRestaurantMap().values()){\r\n total += restaurant.getRevenue();\r\n }\r\n\r\n return total;\r\n }", "private Map<User, Double> calcUsersProfit(Car carWinner, BetsMap map) {\n\t\tint totalAmountBets = map.getSumBets();\n\t\tList<Bet> betsForCarWinner = map.forCar(carWinner);\n\t\tMap<User, Double> usersProfit = new HashMap<>();\n\t\t\n\t\tMap<User, Double> profitForWinners = caclProfitForWinners(betsForCarWinner, totalAmountBets);\n\t\t\n\t\tmap.forEachCar((car, bets) -> {\n\t\t\tif (!car.equals(carWinner)) {\n\t\t\t\tbets.forEach(bet -> {\n\t\t\t\t\tif (!profitForWinners.containsKey(bet.getUser())) {\n\t\t\t\t\t\tdouble amount = -bet.getAmount();\n\t\t\t\t\t\tif (usersProfit.containsKey(bet.getUser())) {\n\t\t\t\t\t\t\tamount += usersProfit.get(bet.getUser());\n\t\t\t\t\t\t}\n\t\t\t\t\t\tusersProfit.put(bet.getUser(), amount);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\t\tusersProfit.putAll(profitForWinners);\n\t\t\n\t\treturn usersProfit;\n\t}", "public Map<String, Double> getSalesPrCategory() {\n\t\tMap<String, Double> sales = new HashMap<>();\n\n\t\tfor (Order o : orders) {\n\t\t\tfor (ProductOrder po : o.getProductOrders()) {\n\t\t\t\tString category = po.getProduct().getCategory();\n\t\t\t\tDouble currentTotal = sales.get(category);\n\n\t\t\t\tif (currentTotal == null) {\n\t\t\t\t\tcurrentTotal = 0.0;\n\t\t\t\t}\n\n\t\t\t\tcurrentTotal += po.price();\n\n\t\t\t\tsales.put(category, currentTotal);\n\t\t\t}\n\t\t}\n\n\t\treturn sales;\n\t}", "public List<String[]> getUsersAndTotalPoints() {\r\n List<User> allUsers = userRepo.findAll();\r\n List<String[]> userAndTotaltPoints = new ArrayList<>();\r\n for(User user : allUsers) {\r\n String[] nameAndTotalPoints = new String[3];\r\n nameAndTotalPoints[0] = user.getFirstname();\r\n nameAndTotalPoints[1] = user.getLastname();\r\n nameAndTotalPoints[2] = String.valueOf(user.getTotalPoints());\r\n userAndTotaltPoints.add(nameAndTotalPoints);\r\n }\r\n userAndTotaltPoints.sort(Comparator.comparing(a -> Integer.parseInt(a[2])));\r\n Collections.reverse(userAndTotaltPoints);\r\n\r\n return userAndTotaltPoints;\r\n }", "private Double calcTotalPoints(TreeMap<Double, String> userlist) \r\n \t{\r\n \t\tDouble ret = 0.00;\r\n \t\tfor(Double key : userlist.keySet())\r\n \t\t{\r\n \t\t\tret += key; \r\n \t\t}\r\n \t\treturn ret;\r\n \t}", "@Override\r\n\tpublic List<SalesAnalysis> getSalesAnalysis(Date fromDate, Date toDate) {\r\n\t\t\r\n\t\tList<SalesAnalysis> salesAnalysisDetails=new ArrayList<>();\r\n\t\tSalesAnalysis salesAnalysis=new SalesAnalysis();\r\n\t\t\r\n\t\t//get orders placed in the given period\r\n\t\tList<Order> orderDetails=orderService.getOrdersBetween(fromDate, toDate);\r\n\t\t\r\n\t\tHashMap<String, Double> purchasePriceDetails=new HashMap<>();\r\n\t\tHashMap<String, Double> salesPriceDetails=new HashMap<>();\r\n\t\tint qty=0;\r\n\t\tdouble salesPrice=0;\r\n\t\tdouble purchasePrice=0;\r\n\t\t\r\n\t\t//get total revenue for period\r\n\t\tdouble totalRevenue=getTotalRevenueBetween(fromDate, toDate);\r\n\t\t\r\n\t\t//get best seller details for the products, category-wise(from PRODUCT table)\r\n\t\tList<Object[]> bestSellerDetails=productService.getBestSellerId();\r\n\t\tSystem.out.println(bestSellerDetails);\r\n\t\t\r\n\t\t\r\n\t\t//for each product category, check sales details\r\n\t\tfor(Object[] object:bestSellerDetails)\t{\r\n\t\t\tString productCategory=(String)object[0];\r\n\t\t\tsalesPrice=0;\r\n\t\t\tpurchasePrice=0;\r\n\t\t\tpurchasePriceDetails.put(productCategory, purchasePrice);\r\n\t\t\tsalesPriceDetails.put(productCategory, salesPrice);\r\n\t\t\t\r\n\t\t\t//for each order, check product category and add details to maps\r\n\t\t\tfor(Order order:orderDetails)\t{\r\n\t\t\t\t\r\n\t\t\t\t//get products in this order\r\n\t\t\t\tList<CartProduct> products=order.getCart().getCartProducts();\r\n\t\t\t\t\r\n\t\t\t\t//getting purchase price details for each product ordered\r\n\t\t\t\tfor(CartProduct product:products)\t{\r\n\t\t\t\t\tif(product.getProduct().getProductCategory().equals(productCategory))\t{\r\n\t\t\t\t\t\tpurchasePrice=purchasePriceDetails.get(productCategory)+\r\n\t\t\t\t\t\t\t\t(product.getProduct().getQuantity()*product.getProduct().getProductPrice());\r\n\t\t\t\t\t\tpurchasePriceDetails.put(productCategory, purchasePrice);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//getting sales price details for each product ordered\r\n\t\t\t\tfor(CartProduct product:products)\t{\r\n\t\t\t\t\tif(product.getProduct().getProductCategory().equals(productCategory))\t{\r\n\t\t\t\t\t\tqty=product.getQuantity();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tsalesPrice=salesPriceDetails.get(productCategory)+\r\n\t\t\t\t\t\t\t\t(qty*(100-product.getProduct().getDiscount())*product.getProduct().getProductPrice())/100;\r\n\t\t\t\t\t\tsalesPriceDetails.put(productCategory, salesPrice);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t//make SalesAnalysis object using obtained data\r\n\t\t\tsalesAnalysis.setProductCategory(productCategory);\r\n\t\t\tsalesAnalysis.setMerchant(merchantService.getMerchantName((Integer)object[1]));\r\n\t\t\tsalesAnalysis.setProductQuantity(purchasePriceDetails.get(productCategory));\r\n\t\t\tsalesAnalysis.setProductSales(salesPriceDetails.get(productCategory));\r\n\t\t\tsalesAnalysis.setSalesPercent((salesAnalysis.getProductSales()*100)/salesAnalysis.getProductQuantity());\r\n\t\t\tsalesAnalysis.setTotalRevenue(totalRevenue);\r\n\t\t\t\r\n\t\t\t//make a list of sales analysis performed\r\n\t\t\tsalesAnalysisDetails.add(salesAnalysis);\r\n\t\t}\r\n\t\t\r\n\t\treturn salesAnalysisDetails;\r\n\t}", "public float getValueOfSales(String product) {\n float totalValue = 0;\n LinkedList<Sale> temp = storageSale.get(product);\n Iterator<Sale> it = temp.iterator();\n while (it.hasNext()) {\n totalValue = totalValue + it.next().getValue();\n }\n return totalValue;\n }", "Map<UUID, Double> getOwners();", "private static Map<String, Double> findAveragePriceViewedAllSessions(\r\n List<String> sessionsWithPurchases, Map<String, List<View>> viewsFromSessions\r\n ) {\r\n // Initializes the list of doubles (averages) we're going to return.\r\n Map<String, Double> averageMap = new HashMap<>();\r\n\r\n // Calculates the average price of viewed items in each session.\r\n for (String session : sessionsWithPurchases) {\r\n int viewPriceTot = 0;\r\n int viewedItems = 0;\r\n for (View viewItem : viewsFromSessions.get(session)) {\r\n viewPriceTot += viewItem.getPrice();\r\n viewedItems += 1;\r\n }\r\n averageMap.put(session, ((double) viewPriceTot) / viewedItems);\r\n }\r\n\r\n return averageMap;\r\n }", "public Map<PositionKey, BigDecimal> getAllPositionsAsOf\r\n \t\t(SimpleUser user, Date data)\r\n \t\tthrows PersistenceException;", "public List<Pair<Integer, String>> getPurchaseStats() throws Exception {\n String query = \"SELECT p.uid, a.zip, SUM(pi.price) AS total_spent FROM POItem pi INNER JOIN PO p ON pi.id=p.id INNER JOIN Address a ON p.address=a.id WHERE p.status='ORDERED' GROUP BY p.uid, a.zip\";\n try (Connection con = this.ds.getConnection();\n PreparedStatement p = con.prepareStatement(query);\n ResultSet r = p.executeQuery()) {\n List<Pair<Integer, String>> results = new LinkedList<>();\n while (r.next()) {\n String uid = r.getString(\"uid\");\n String zip = r.getString(\"zip\");\n int totalSpent = r.getInt(\"total_spent\");\n Pair<Integer, String> data = new Pair<Integer, String>(totalSpent, zip);\n results.add(data);\n }\n r.close();\n return results;\n }\n }", "public Integer getSales() {\n return sales;\n }", "private Map<Integer, Integer> getShoppingCartBookQtyMap(List<Book> bookList, int userId) {\n Map<Integer, Integer> shoppingCartBookQty = new HashMap<Integer, Integer>();\n for(Book book : bookList) {\n int bookId = book.getBookId();\n DAOShoppingCart daoShoppingCart = new DAOShoppingCart();\n ShoppingCart shoppingCart = daoShoppingCart.getShoppingCartByBookIdCustomerId(userId, bookId);\n if(shoppingCart != null) {\n shoppingCartBookQty.put(bookId, shoppingCart.getQuantity());\n }\n }\n return shoppingCartBookQty;\n }", "public double getGrossSales() {\n return grossSales;\n }", "public double getTotal(){\n\t\tBigDecimal total =BigDecimal.valueOf(0);\n\t\tfor(CartItem cartItem : map.values()){\n\t\t\ttotal = total.add(BigDecimal.valueOf(cartItem.getSubtotal())) ;\n\t\t}\t\t\n\t\treturn total.doubleValue();\n\t}", "public void salesTotal(){\n\t\tif (unitsSold<10){\n\t\t\tsetTotalCost(basePrice);\n\t\t\tsetDiscount(basePrice - this.getCost());\n\t\t}\n\t\telse if (unitsSold<20){\n\t\t\tsetTotalCost((RETAIL_PRICE*.8)*unitsSold);\n\t\t\tsetDiscount(basePrice - this.getCost());\n\t\t\t\n\t\t}\n\t\telse if (unitsSold<50){\n\t\t\tsetTotalCost((RETAIL_PRICE*.7)*unitsSold);\n\t\t\tsetDiscount(basePrice - this.getCost());\n\t\t}\n\t\telse if (unitsSold<100){\n\t\t\tsetTotalCost((RETAIL_PRICE*.6)*unitsSold);\n\t\t\tsetDiscount(basePrice - this.getCost());\n\t\t}\n\t\telse {\n\t\t\tsetTotalCost((RETAIL_PRICE*.5)*unitsSold);\n\t\t\tsetDiscount(basePrice - this.getCost());\n\t\t}\n\t}", "public double getTotalSales() {\n\t\tdouble total = 0;\n\n\t\tfor (Order o : orders) {\n\t\t\ttotal += o.totalPrice();\n\t\t}\n\n\t\treturn total;\n\t}", "@Override\n public USMoney calculatePrice() {\n USMoney sumPrice = new USMoney();\n for (int i = 0; i < curArrayIndex; i++) {\n sumPrice = sumPrice.add(items[i].getPrice());\n if (items[i].isFragile()) {\n sumPrice.addTo(10, 0);\n }\n }\n sumPrice.addTo(100, 0);\n return sumPrice;\n }", "public double total(){\n\tdouble total=0;\n\tfor(Map.Entry<String, Integer> pro:proScan.getProducts().entrySet()){\n\t\tString proName=pro.getKey();\n\t\tint quantity=pro.getValue();\n\t\tProductCalculator proCal=priceRule.get(proName);\n\t\tif(proCal==null)\n\t\t\tthrow new MissingProduct(proName);\n\t\t\n\t\tProductCalculator cal=priceRule.get(proName);\n\t\tdouble subtotal=cal.getTotal(quantity);\n\t\ttotal+=subtotal;\n\t\t//System.out.println(total);\n\t}\n\t//round the total price to two digit\n\treturn round(total, 2);\n}", "double calculateTotalPrice(Map<String, Item> itemMap, List<String> itemList);", "private Map<String, Double> getMarketPriceMap() {\n String marketData = Utils.readFile(marketFile);\n MarketResponse[] marketDetails = gson.fromJson(marketData, MarketResponse[].class);\n return Arrays.stream(marketDetails)\n .collect(Collectors.toMap(MarketResponse::getIsin, MarketResponse::getPrice));\n }", "public Integer getSalesSum() {\n return salesSum;\n }", "public double getTotalSalesProfit(){\n return totalSaleProfit;\n }", "private double getProductsTotal() {\n\t\t\n\t\tdouble total = 0;\n\t\t\n\t\tif(!soldProducts.isEmpty()) {\n\t\t\t\n\t\t\tfor(Sellable product : soldProducts) {\n\t\t\t\t\n\t\t\t\ttotal += (product.getPrice() * product.getQuantitySold());\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\treturn total;\n\t}", "private Map<String, Object> getMap(List<User> users) {\r\n\r\n Map<String, Object> modelMap = new HashMap<String, Object>(3);\r\n modelMap.put(\"total\", users.size());\r\n modelMap.put(\"data\", users);\r\n modelMap.put(\"success\", true);\r\n\r\n return modelMap;\r\n }", "double getPricePerPerson();", "public List<Product> getSales() {\n return sales;\n }", "public Map getTotalItemByVoucherNoForEditGRHelper(String voucherNo)\r\n\t{\n\t\t\tSystem.out.println(\"====HELPER====\");\r\n\t\t\tSystem.out.println(\"voucherNo :: \" + voucherNo);\r\n\t\t\tlong k = 0l;\r\n\t\t\tDouble grossTotal = 0.0;\r\n\t\t\tDouble totalTaxAmt = 0.0;\r\n\t\t\tDecimalFormat df = new DecimalFormat(\"#.##\");\r\n\t\t\t//Map<Long, PurchaseReturnGetItems> map = new HashMap<Long, PurchaseReturnGetItems>();\r\n\t\t\t\r\n\t\t\tSupplierDetailDao dao = new SupplierDetailDao();\r\n\t\t\tList productList = dao.getTotalItemByVoucherNoForEditGRDao(voucherNo);\r\n\t\t\tMap map = new HashMap();\r\n\t\t\tPurchaseReturnGetItems cs = null;\r\n\t\t\t\r\n\t\t\tfor (int i = 0; i < productList.size(); i++)\r\n\t\t\t{\r\n\t\t\t\tk++;\r\n\t\t\t\tObject[] o = (Object[]) productList.get(i);\r\n\t\t\t\tEditPurchase bean = new EditPurchase();\r\n\t\t\t\tbean.setPkGoodRecId(Long.parseLong(o[0].toString()));\r\n\t\t\t\tbean.setCatName(o[1].toString());\r\n\t\t\t\tbean.setItemName(o[2].toString());\r\n\t\t\t\tbean.setQuantity(Double.parseDouble(o[3].toString()));\r\n\t\t\t\tbean.setOriQuantity(o[3].toString());\r\n\t\t\t\tbean.setBuyPrice(Double.parseDouble(o[4].toString()));\r\n\t\t\t\tbean.setFinalBuyPrice(o[4].toString());\r\n\t\t\t\tbean.setVat(Double.parseDouble(o[5].toString()));\r\n\t\t\t\tbean.setIgst(Double.parseDouble(o[11].toString()));\r\n\t\t\t\tbean.setFinalVat(Double.parseDouble(o[5].toString()));\r\n\t\t\t\tbean.setFinalIgst(Double.parseDouble(o[11].toString()));\r\n\t\t\t\tbean.setDiscount(Double.parseDouble(o[12].toString()));\r\n\t\t\t\tbean.setFinalDisPer(o[12].toString());\r\n\t\t\t\tbean.setRollsize(Double.parseDouble(o[13].toString()));\r\n\t\t\t\tbean.setTotal(Double.parseDouble(o[6].toString()));\r\n\t\t\t\tbean.setContactPerson(o[7].toString());\r\n\t\t\t\tbean.setBarcodeNo(Long.parseLong(o[8].toString()));\r\n\t\t\t\tbean.setOndate(o[9].toString());\r\n\t\t\t\tbean.setAvailquantity(Double.parseDouble(o[10].toString()));\r\n\t\t\t\tbean.setSize(o[14].toString());\r\n\t\t\t\tbean.setSupplierId(o[15].toString());\r\n\t\t\t\tbean.setBillNo(o[16].toString());\r\n\t\t\t\tbean.setSupplierName2(o[17].toString());\r\n\t\t\t\tbean.setGrossTotal(Double.parseDouble(o[18].toString()));\r\n\t\t\t\tDouble d = 0d;\r\n\t\t\t\tbean.setReturnTotal(d);\r\n\t\t\t\tLong editQuan = 0l;\r\n\t\t\t\tbean.setEditQuantity(editQuan);\r\n\t\t\t\tbean.setTotalQuantity(k);\r\n\t\t\t\tgrossTotal = grossTotal + Double.parseDouble(o[6].toString());\r\n\t\t\t\tbean.setFinalGrossTotal(o[18].toString());\r\n\t\t\t\tbean.setSubcatName(o[19].toString());\r\n\t\t\t\tbean.setHsnSac(o[20].toString());\r\n\t\t\t\tbean.setColor(o[21].toString());\r\n\t\t\t\tbean.setStyle(o[22].toString());\r\n\t\t\t\tif(o[23] == null)\r\n\t\t\t\t{\r\n\t\t\t\t\tbean.setPurchaseCode(\"\");\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tbean.setPurchaseCode(o[23].toString());\r\n\t\t\t\t}\r\n\t\t\t\tbean.setContactPerson(o[24].toString());\r\n\t\t\t\tbean.setTaxAmount(o[25].toString());\r\n\t\t\t\tbean.setReturnedQty(o[26].toString());\r\n\t\t\t\tint rQtyInInt = (int)(Double.parseDouble(o[26].toString()));\r\n\t\t\t\tbean.setReturnedQty(String.valueOf(rQtyInInt));\r\n\t\t\t\tbean.setSalePrice(Double.parseDouble(o[27].toString()));\r\n\t\t\t\tbean.setFinalSalePrice(o[27].toString());\r\n\t\t\t\tbean.setPkSuppId(o[28].toString());\r\n\t\t\t\tbean.setProductId(o[29].toString());\r\n\t\t\t\tbean.setSubCatId(o[30].toString());\r\n\t\t\t\tbean.setCatId(o[31].toString());\r\n\t\t\t\tbean.setSuppCode(o[32].toString());\r\n\t\t\t\tbean.setSoldQty(o[33].toString());\r\n\t\t\t\tbean.setPendingBillPayment(o[34].toString());\r\n\t\t\t\tbean.setBarQtyTotalPuchaseQty(o[35].toString());\r\n\t\t\t\tSystem.out.println(\"BarQtyTotalPuchaseQty ====> \"+bean.getBarQtyTotalPuchaseQty());\r\n\t\t\t\tSystem.out.println(\"grossTotal =====> \"+grossTotal);\r\n\t\t\t\tSystem.out.println(\"***************\" + o[0]);\r\n\t\t\t\tmap.put(bean.getPkGoodRecId(), bean);\t\r\n\t\t\t/*if (catList != null && catList.size() > 0)\r\n\t\t\t{\r\n\t\t\t\tcs = (PurchaseReturnGetItems) catList.get(0);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"TOTAL ITEMLIST Helper \"+catList.size());\r\n\t\t\t\r\n\t\t\treturn cs;*/\r\n\t\t}\r\n\t\t\t\r\n\t\t\treturn map;\r\n\t}", "private float[] calculateAllGrossPay()\n {\n int numberEmployees = employees.size();\n float[] allGrossPay = new float[numberEmployees];\n int position = 0;\n Iterator<Employee> emp = employees.iterator();\n while(emp.hasNext())\n {\n myEmployee = emp.next();\n allGrossPay[position] = myEmployee.getHours() * myEmployee.getRate();\n position++;\n }\n return allGrossPay;\n }", "@GetMapping(\"/users\")\n public List<UserDTO> getAllUsers() throws UserProductException {\n LOG.debug(\"in method getUserStatistics\");\n return userService.getAllUsers();\n }", "@Override\n public BigDecimal calculate(List<String> skuIds) {\n Collection<PricingRule> items = pricingRulesReader.fetchPricingRules();\n Map<String, PricingRule> pricingRuleMap = items.stream().collect(Collectors.toMap(PricingRule::getSkuId, Function.identity()));\n\n // Step 2: Map of SKUID and number of items for the SKUID\n Map<String, Long> itemsSkuAndQuantity = skuIds.stream().collect(Collectors.groupingBy(Function.identity(), Collectors.counting()));\n\n // Step 3: Calculate total price of items based on pricing rule and the number of items in the list\n return itemsSkuAndQuantity.entrySet().stream().reduce(BigDecimal.ZERO, (currentSum, entry) ->\n currentSum.add(pricingRuleMap.get(entry.getKey()).calculatePriceFor(entry.getValue())), BigDecimal::add);\n }", "@Override\n public double calcSalesFee() {\n return getCost() + getSalesPurchase();\n }", "public HashMap<String, Integer> getUsers() {\n HashMap<String, Integer> users = new HashMap<>();\n getData(users, \"getUsers\");\n return users;\n }", "public Map<PositionKey, BigDecimal> getPositionsAsOf\r\n \t\t(SimpleUser user, Date data, SecurityType securityType)\r\n \t\tthrows PersistenceException;", "public double getTicketsPrice(@Nonnull Event event, @Nullable User user, @Nonnull List<Long> seats){\n return 0.00;\n }", "public void addSales(double totalSales) {\n this.total_sales = totalSales;\n }", "void calculateTotalPrice(){\n totalPrice = 0;\n cartContents.forEach(Product-> this.totalPrice = totalPrice + Product.getSellPrice());\n }", "public static HashMap<Integer,Item> getUserCart(){\n\t\treturn userCart;\n\t}", "public TotalPaymentResponse totalPaymentInfo(Integer user_id) {\n\t\t\n\t\tLOGGER.info(\"obteniendo resumen de pagos del usuario {}\", user_id);\n\n\t\tdouble totalPayment = 0d;\n\t\tDate lastPayment = null;\n\t\tList<Payment> allPayments = paymentRepo.findByUserId(user_id);\n\t\tif(!allPayments.isEmpty()) {\n\t\t\ttotalPayment = allPayments.stream().map(c -> c.getAmount()).reduce(0d, (ap1 , ap2) -> ap1 + ap2).doubleValue();\n\t\t\tlastPayment = allPayments.stream().map(c -> c.getDateObj()).reduce(DateHelper.getInstance().getMinTimestamp(), (ap1 , ap2) -> DateHelper.getInstance().max(ap1, ap2));\n\t\t}\n\t\treturn new TotalPaymentResponse(user_id, totalPayment, lastPayment, allPayments.size());\n\t}", "public HashMap<String, ArrayList[]> determineSale() {\n HashMap<String, ArrayList[]> ordersMap = new HashMap<>();\n ordersMap.put(\"ms\", new ArrayList<Integer>[2]);\n ordersMap.put(\"gs\", new ArrayList<Integer>[2]);\n ordersMap.put(\"xlf\", new ArrayList<Integer>[2]);\n ordersMap.put(\"wfc\", new ArrayList<Integer>[2]);\n ordersMap.put(\"bond\", new ArrayList<Integer>[2]);\n\n Integer temp;\n int ind = 0;\n ArrayList<Integer> prices = ordersMap.get(\"bond\")[0];\n ArrayList<Integer> quantities = ordersMap.get(\"bond\")[1];\n for (int i = 0; i < 3; i++) {\n temp = bondsBuy.poll();\n if (prices.get(ind).equals(temp)) {\n quantities.set(ind, quantities.get(ind) + 1);\n } else {\n prices.add(temp);\n quantities.add(1);\n ind++;\n }\n }\n ind = 0;\n prices = ordersMap.get(\"gs\")[0];\n quantities = ordersMap.get(\"gs\")[1];\n for (int i = 0; i < 2; i++) {\n temp = bondsBuy.poll();\n if (prices.get(ind).equals(temp)) {\n quantities.set(ind, quantities.get(ind) + 1);\n } else {\n prices.add(temp);\n quantities.add(1);\n ind++;\n }\n } \n ind = 0;\n prices = ordersMap.get(\"ms\")[0];\n quantities = ordersMap.get(\"ms\")[1]; \n for (int i = 0; i < 3; i++) {\n temp = bondsBuy.poll();\n if (prices.get(ind).equals(temp)) {\n quantities.set(ind, quantities.get(ind) + 1);\n } else {\n prices.add(temp);\n quantities.add(1);\n ind++;\n }\n }\n ind = 0;\n prices = ordersMap.get(\"wfc\")[0];\n quantities = ordersMap.get(\"wfc\")[1]; \n for (int i = 0; i < 2; i++) {\n temp = bondsBuy.poll();\n if (prices.get(ind).equals(temp)) {\n quantities.set(ind, quantities.get(ind) + 1);;\n } else {\n prices.add(temp);\n quantities.add(1);\n ind++;\n }\n }\n ind = 0;\n prices = ordersMap.get(\"xlf\")[0];\n quantities = ordersMap.get(\"xlf\")[1]; \n for (int i = 0; i < 10; i++) {\n temp = bondsBuy.poll();\n if (prices.get(ind).equals(temp)) {\n quantities.set(ind, quantities.get(ind) + 1);\n } else {\n prices.add(temp);\n quantities.add(1);\n ind++;\n }\n }\n return ordersMap;\n }", "public double calculate(Map<String, Order> orders) {\n\n\t\t// This is the fix to avoid null pointer exception if Cart has null\n\t\t// orders\n\t\tif (orders == null) {\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"Orders are invalid. Input is null\");\n\t\t}\n\t\t// GrandTotal is initialized outside the loop to have the grand total\n\t\tdouble grandTotal = 0;\n\n\t\t// Iterate through the orders\n\t\tfor (Map.Entry<String, Order> entry : orders.entrySet()) {\n\t\t\tSystem.out.println(\"*******\" + entry.getKey() + \"*******\");\n\t\t\tOrder order = entry.getValue();\n\t\t\tdouble totalTax = 0;\n\t\t\tdouble total = 0;\n\n\t\t\t// Iterate through the items in the order\n\t\t\t/*\n\t\t\t * In lists indexes starts with 0 and ends with its size-1. We\n\t\t\t * should not include indexes which are not exist,it will leads to\n\t\t\t * ArrayIndexOutofBoundException. Hence logical operator = is\n\t\t\t * removed\n\t\t\t */\n\t\t\tfor (int i = 0; i < order.size(); i++) {\n\n\t\t\t\t// Calculate the taxes\n\t\t\t\tdouble tax = 0;\n\n\t\t\t\tItem item = order.get(i).getItem();\n\n\t\t\t\ttax = calculateTax(item);\n\n\t\t\t\t// Calculate the total price\n\t\t\t\tdouble totalPrice = item.getPrice() + tax;\n\n\t\t\t\t// Print out the item's total price\n\t\t\t\t// Wrong way of rounding off here it is fixed with the help of\n\t\t\t\t// BigDecimal\n\t\t\t\tSystem.out.println(item.getDescription() + \": \"\n\t\t\t\t\t\t+ roundToTwoDecimal(totalPrice));\n\n\t\t\t\t// Keep a running total\n\t\t\t\ttotalTax += tax;\n\t\t\t\ttotal += item.getPrice();\n\t\t\t}\n\n\t\t\t// Print out the total taxes\n\t\t\t// Wrong way of rounding off here it is fixed with the help of\n\t\t\t// BigDecimal\n\t\t\tSystem.out\n\t\t\t\t\t.println(\"Sales Tax: \" + roundToTwoDecimal(totalTax) /*\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * Math.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * floor\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * (\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * totalTax\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * )\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t */);\n\n\t\t\t// Fix to Total. Total should not include Tax\n\t\t\t// total = total + totalTax;\n\n\t\t\t// Print out the total amount\n\t\t\t// Wrong way of rounding off here it is fixed with the help of\n\t\t\t// BigDecimal\n\t\t\tSystem.out.println(\"Total: \" + roundToTwoDecimal(total) /*\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * Math.floor\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * (total *\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * 100) /\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * 100\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t */);\n\t\t\tgrandTotal += total;\n\t\t}\n\n\t\t// grandtotal = Math.floor(grandtotal * 100) / 100;\n\t\t// Bug Fix: 10 (Wrong way of rounding. To meet the requirements, we\n\t\t// should be using BigDecimal.)\n\t\tSystem.out.println(\"Sum of orders: \" + roundToTwoDecimal(grandTotal));\n\n\t\treturn grandTotal;\n\t}", "public synchronized double getTotal(){\n double totalPrice=0;\n \n for(ShoppingCartItem item : getItems()){\n totalPrice += item.getTotal();\n }\n \n return totalPrice;\n }", "public void calculateSale()\n {\n double total = 0.00;\n int numTimbits = 0;\n int numDoughnuts = 0;\n int smallCoffee = 0;\n int mediumCoffee = 0;\n int largeCoffee = 0;\n String order;\n \n for(int i = 0; salesItem[i] != null && i < salesItem.length; i++)\n {\n if(salesItem[i] instanceof Timbit) \n {\n numTimbits = numTimbits + salesItem[i].getNumOfItems();\n }\n else if(salesItem[i] instanceof Doughnut)\n {\n numDoughnuts = numDoughnuts + salesItem[i].getNumOfItems();\n }\n else if(salesItem[i] instanceof Coffee)\n {\n if(salesItem[i].getNumOfItems()==1)\n {\n smallCoffee ++;\n }\n else if(salesItem[i].getNumOfItems()==2)\n {\n mediumCoffee ++;\n }\n else\n {\n largeCoffee ++;\n }\n }\n \n total += salesItem[i].getFinalPrice();\n }\n \n order = \"Timbits: \" + numTimbits + \"\\nDoughnuts: \" + numDoughnuts + \"\\nSmall Coffees: \" + smallCoffee + \"\\nMedium Coffees: \" + mediumCoffee + \"\\nLarge Coffees: \" + largeCoffee ; \n showText(order + String.format(\"\\nTotal Price: $%5.2f\", total), 150, 175);\n }", "@Override\n\tpublic List<ProfitResult> profitStatistic(Request staticRequest) {\n\t\tList<ProfitResult> result = new ArrayList<>();\n\t\tMap<String, int[]> buySellMap = new TreeMap<String, int[]>();\n\t\tIterator<Map.Entry<String, Map<LocalDate, List <Transaction>>>> iterator = this.result.entrySet().iterator();\n\t\twhile (iterator.hasNext()) {\n\t\t\tMap.Entry<String, Map<LocalDate, List <Transaction>>> entry = iterator.next();\n\t\t\tIterator<Map.Entry<LocalDate, List <Transaction>>> iterator2 = entry.getValue().entrySet().iterator();\n\t\t\twhile (iterator2.hasNext()) {\n\t\t\t\tMap.Entry<LocalDate, List <Transaction>> entry2 = iterator2.next();\n\t\t\t\tfor (Transaction Tra : entry2.getValue()) {\n\t\t\t\t\tint buySellAmount [] = new int [] {0,0};\n\t\t\t\t\tif( Tra.getMode().equals(TransactionMode.BUY)) {\n\t\t\t\t\t\tif (buySellMap.containsKey(Tra.getCurrencyCode())) {\n\t\t\t\t\t\t\tbuySellAmount[1] = buySellMap.get(Tra.getCurrencyCode())[1];\n\t\t\t\t\t\t\tbuySellAmount[0] = buySellMap.get(Tra.getCurrencyCode())[0] + (int)(Tra.getAmount()*this.currencyMap.get(entry2.getKey()).get(Tra.getCurrencyCode())*1.005d);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tbuySellAmount[0] = (int)(Tra.getAmount()*this.currencyMap.get(entry2.getKey()).get(Tra.getCurrencyCode())*1.005d);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif( Tra.getMode().equals(TransactionMode.SELL)) {\n\t\t\t\t\t\tif (buySellMap.containsKey(Tra.getCurrencyCode())) {\n\t\t\t\t\t\t\tbuySellAmount[0] = buySellMap.get(Tra.getCurrencyCode())[0];\n\t\t\t\t\t\t\tbuySellAmount[1] = buySellMap.get(Tra.getCurrencyCode())[1] + (int)(Tra.getAmount()*this.currencyMap.get(entry2.getKey()).get(Tra.getCurrencyCode())*0.995d);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tbuySellAmount[1] = (int)(Tra.getAmount()*this.currencyMap.get(entry2.getKey()).get(Tra.getCurrencyCode())*0.995d);\n\n\t\t\t\t\t\t}\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tbuySellMap.put(Tra.getCurrencyCode(), buySellAmount);\n\n\t\t\t\t\t}\n\t\t\t\tIterator<Map.Entry<String, int []>> iterator3 = buySellMap.entrySet().iterator();\n\t\t\t\twhile (iterator3.hasNext()) {\n\t\t\t\t\tMap.Entry<String, int []> entry3 = iterator3.next();\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tresult.add(new ProfitResult(entry3.getValue()[0], entry3.getValue()[1], entry2.getKey(), entry.getKey(), entry3.getKey()));\n\t\t\t\t}\n\t\t\t\tbuySellMap.clear();\n\t\t\t}\n\t\t}\n\t\treturn result;\n\n\t}", "public Map<String, Object> countSalesEvents(String startDate, String endDate);", "double getTotalProfit();", "public int getSalesPrice() {\n return salesPrice;\n }", "public int getTotalSales()\n {\n int sales = totalSales;\n totalSales = 0;\n return sales;\n }", "private double calculateTotal(){\r\n double total = 0;\r\n for(int i = 0; i < orderList.size(); i++){\r\n total += orderList.getOrder(i).calculatePrice();\r\n }\r\n return total;\r\n }", "public double getGrossSales() {\r\n\t\treturn grossSales;\r\n\t}", "@Override\n\tpublic Integer getTotal(Map<String, Object> map) {\n\t\treturn roleDao.getTotal(map);\n\t}", "public double obtener_total(){\r\n double total_ventas = precio*unidades;\r\n return total_ventas;\r\n }", "public float getPrices(Integer id);", "public void caltotalprice(){\n \tthis.mTotalPrice = 0;\n \tif (this.isCoachSeat) {\n \t\tfor (Flight f: this.mLegs) {\n \t\t\tthis.mTotalPrice += f.coachprice();\n \t\t}\n \t}else {\n \t\tfor (Flight f: this.mLegs) {\n \t\t\tthis.mTotalPrice += f.firstclassprice();\n \t\t}\n \t}\n }", "public int getNumSales(){\r\n return sales;\r\n }", "public int printSaleReportToConsole() {\n int result = 0;\n Enumeration<String> keyEnum = storageSale.keys();\n int totalNumberOfSalesOfProduct = 0;\n String key = null;\n float totalValue = 0;\n while (keyEnum.hasMoreElements()) {\n key = keyEnum.nextElement();\n totalNumberOfSalesOfProduct = getTotalNumberOfSales(key);\n totalValue = getValueOfSales(key);\n System.out.println(\"REPORT: SALE ---> Product: \" + key + \" total number of sales: \"\n + totalNumberOfSalesOfProduct + \" total value: \" + totalValue);\n result++;\n }\n return result;\n }", "@Override\r\n public List<Score> scofindAll() {\n return userMapper.scofindAll();\r\n }", "public double getCredits(User user) throws Exception;", "private double getShoppingCartSubTotal(List<Book> bookList, int userId) {\n DecimalFormat decFormat = new DecimalFormat(\"#.##\");\n double subTotal = 0;\n for(Book book : bookList) {\n int bookId = book.getBookId();\n DAOShoppingCart daoShoppingCart = new DAOShoppingCart();\n ShoppingCart shoppingCart = daoShoppingCart.getShoppingCartByBookIdCustomerId(userId, bookId);\n if(shoppingCart != null) {\n subTotal += shoppingCart.getQuantity() * book.getPrice();\n }\n }\n return Double.parseDouble(decFormat.format(subTotal));\n }", "List<Pair<Member, BigDecimal>> getGrossProductPerMember(StatisticalDTO dto) throws DaoException;", "public static Task<QuerySnapshot> getTripSummaries(String userId) {\n return FirebaseFirestore.getInstance()\n .collection(Const.USERS_COLLECTION)\n .document(userId)\n .collection(Const.USER_TRIPS_COLLECTION)\n .get();\n }", "private SparseVector makeUserVector(long user) {\n List<Rating> userRatings = dao.getEventsForUser(user, Rating.class);\n if (userRatings == null) {\n return SparseVector.empty();\n }\n\n // Create a new vector over tags to accumulate the user profile\n MutableSparseVector profile = model.newTagVector();\n profile.fill(0);\n\n // Iterate over the user's ratings to build their profile\n double ratingSum = 0;\n int counter = 0;\n for (Rating rating: userRatings) {\n Preference preference = rating.getPreference();\n counter++;\n ratingSum += preference.getValue();\n }\n double avgRating = ratingSum/counter;\n\n// double maxRating = 0.0;\n// for(Rating rating : userRatings){\n// Preference preference = rating.getPreference();\n// if(preference.getValue() > maxRating){\n// maxRating = preference.getValue();\n// }\n// }\n\n\n for(Rating rating: userRatings){\n Preference preference = rating.getPreference();\n double ratingValue = preference.getValue();\n// double multiplier = ratingValue / maxRating;\n double multiplier = counter == 1 ? 1.0 : ratingValue - avgRating;\n\n long itemId = rating.getItemId();\n SparseVector itemVector = this.model.getItemVector(itemId);\n for(VectorEntry v: itemVector.fast()){\n long vKey = v.getKey();\n double vValue = v.getValue();\n double sum = vValue * multiplier + profile.get(vKey);\n profile.set(vKey, sum);\n }\n\n }\n\n return profile.freeze();\n }", "@Override\r\n\tpublic List<SalesDto> queryAllSales() {\n\t\treturn salesMapper.queryAllSales();\r\n\t}", "public double totalPrices()\r\n {\r\n double total = 0;\r\n //Write a loop here to total the book prices. Each object in the ArrayList bookList is a Book, so you can\r\n //use the getter as you loop through and add the price to total\r\n if(bookList != null){\r\n for(Book book: bookList){\r\n total += book.getPrice();\r\n }\r\n }\r\n return total;\r\n }", "@Override\n\tpublic int getTotal(Map<String, Object> map) {\n\t\treturn this.mapper.getTotal(map);\n\t}", "public String getTotalDeposits(){\n double sum = 0;\n for(Customer record : bank.getName2CustomersMapping().values()){\n for(Account acc: record.getAccounts()){\n sum += acc.getOpeningBalance();\n }\n }\n return \"Total deposits: \"+sum;\n }", "public int total(Map map) {\n\t\treturn sqlSessionTemplate.selectOne(\"memberInfo.total\", map);\r\n\t}", "public void setSales(DefaultTableModel tData){\n float totalAmount = 0;\n int count;\n for (count = 0; count < oTable.getRowCount(); count++){\n totalAmount = totalAmount + Float.parseFloat(oTable.getValueAt(count, 6).toString());\n }\n tAmount.setText(String.valueOf(totalAmount));\n oCount.setText(String.valueOf(count));\n }", "public static LinkedHashMap<String, ArrayList<Object>> getSalePhones()\n\t{\n\t\tLinkedHashMap<String, ArrayList<Object>> salePhones = new LinkedHashMap<String, ArrayList<Object>>();\n\t\t\n\t\ttry\n\t\t{\n\t\t\tConnection conn = null;\n\t\t\t\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\").newInstance();\n\t\t\tconn = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/techLobbydatabase?autoReconnect=true&useSSL=false\", \"root\", \"admin\");\n\t\t\t\n\t\t\tStatement s = conn.createStatement ();\n\t\t\ts.executeQuery (\"SELECT phoneName, phonePrice, phoneCompany,phoneOriginal FROM phones WHERE phoneSale = 'Yes';\");\n\t\t\tResultSet rs = s.getResultSet();\n\t\t\t\n\t\t\twhile (rs.next ())\n\t\t\t{\n\t\t\t\tString phoneName = rs.getString(\"phoneName\");\n\t\t\t\tFloat phonePrice = rs.getFloat (\"phonePrice\");\n\t\t\t\tString phoneCompany = rs.getString (\"phoneCompany\");\n\t\t\t\tFloat phoneOriginal = rs.getFloat(\"phoneOriginal\");\n\t\t\t \n\t\t\t\tArrayList<Object> itemArray = new ArrayList<Object>();\n\t\t\t\titemArray.add(phoneName);\n\t\t\t\titemArray.add(phonePrice);\n\t\t\t\titemArray.add(phoneCompany);\n\t\t\t\titemArray.add(phoneOriginal);\n\t\t\t\t//itemArray.add(totalSales);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tsalePhones.put(phoneName, itemArray);\n\t\t\t}\n\t\t\t//System.out.println(\"Top 5 sold items: \"+top5SoldProducts);\n\t\t\trs.close ();\n\t\t\ts.close ();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn salePhones;\n\t\t\n\t}", "private void getSum() {\n\t\tint sum =0;\r\n\t\t\r\n\t\tfor(int i=0; i<index; i++) {\r\n\t\t\tif(products[i] != null)\r\n\t\t\t\tsum += products[i].getPrice();\r\n\t\t}\r\n\t\tSystem.out.println(sum);\r\n\t}", "public double getGesamtwert(){\n double total = 0;\n for (int i = 0; i < key; i++){\n total += getArtikel(i).getGesamt();\n }\n return total;\n }", "public double calculate_total_sales_of_transaction() {\n char ismember = 'n';\n discounts = 1;\n String member_typ = \"null\";\n ismember = order.getIsMember();\n member_typ = order_member.getMemberType();\n\n total_sales_of_transaction = order.getBike().getPrice();\n\n if (Character.toUpperCase(ismember) == 'Y') {\n if (member_typ == \"Premium\") {\n discounts = 0.85;\n } else {\n discounts = 0.9;\n }\n }\n double price = total_sales_of_transaction * discounts;\n return price;\n }", "int sumOfYearsOfUniqueUsers(List<User> users);", "private static Map<String, User> getUsers() {\n Map<String, User> users = new HashMap<String, User>();\n\n User userOne = new User(\"one\",\"1\");\n User userTwo = new User(\"two\",\"2\");\n\n users.put(userOne.getName(), userOne);\n users.put(userTwo.getName(), userTwo);\n\n return users;\n }", "public double getGrossSales() {\n return grossSales;\n}", "public Map<Integer, List<String>> getUsers() {\n\t\tMap<Integer, List<String>> userMap = new HashMap<Integer, List<String>>();\n\t\tList<String> userData = new ArrayList<String>();\n\t\t\n\t\t// Step 1: read the data.csv file\n\t\t// STep 2: fill out the userMap and userData\n\t\t// userID is the key, everything else is userData\n\t\t\n\t\treturn userMap;\n\t}", "public static void getSalesInformation(Employee [] employee) {\n\t\tdouble total = 0;\n\t\tString report = \"-------List of employees with sales information-------\\n\";\n\t\tif (Employee.getEmployeeQuantity() == 0) {\n\t\t\tJOptionPane.showMessageDialog(null, \"There is no Employee!\");\n\t\t} else {\n\t\t\tfor (int i = 0; i < Employee.getEmployeeQuantity(); i++) {\n\t\t\t\ttotal += employee[i+1].getSales().getEachSales();\n\t\t\t\treport += ((i+1) + \" \" + employee[i+1].getName() + \" Sales: \" + employee[i+1].getSales().getEachSales() + \"\\n\"\n\t\t\t\t\t\t);\n\t\t\t}\n\t\t\treport += \"\\nTotal: \" + total;\n\t\t\tJOptionPane.showMessageDialog(null, report);\n\t\t}\n\t}", "public Double getTotal();", "@RequestMapping(path = \"/topUsersYadas\", method = RequestMethod.GET)\n public LinkedHashMap<User, Iterable<Yada>> getTopUsersYadas() {\n LinkedHashMap<User, Iterable<Yada>> topUsersYadasMap = new LinkedHashMap<>();\n\n ArrayList<User> topUsers = users.findTop10ByOrderByKarmaDesc();\n\n for (User user : topUsers) {\n Iterable<Yada> topUsersYadas = yadas.findAllByUserIdOrderByKarmaDesc(user.getId());\n topUsersYadasMap.put(user, topUsersYadas);\n }\n return topUsersYadasMap;\n }", "public TotalPriceDTO finalizeSale() {\n return sale.finalizeSale();\n }", "public static double calculateTotals(double[] money) {\n int element = 0; //The element to add\n double total = 0; //The total sales/commissions\n \n while (element < money.length) { //Add each element\n total += money[element];\n element++;\n }\n \n //Return total\n return total;\n }", "public static void main(String[] args) {\n\t\tList<Map<String, Object>> dataList = new ArrayList<>();\n\t\tMap<String, Object> apple = new TreeMap<>();\n\t\tapple.put(\"Items\", \"Apple\");\n\t\tapple.put(\"Price\", 20.00);\n\t\tapple.put(\"Quantity\", 10);\n\n\t\tdataList.add(apple);\n\n\t\tMap<String, Object> orange = new TreeMap<String, Object>();\n\t\torange.put(\"Items\", \"Orange\");\n\t\torange.put(\"Price\", 21.99);\n\t\torange.put(\"Quantity\", 10);\n\n\t\tdataList.add(orange);\n\n\t\tSet<String> appleEntry = apple.keySet();\n\n\t\tIterator<String> appleIt = appleEntry.iterator();\n\n\t\tObject t = 0;\n\t\twhile (appleIt.hasNext()) {\n\t\t\tString key = appleIt.next();\n\t\t\tObject value = apple.get(key);\n\n\t\t\tdouble p = (double) apple.get(\"Price\");\n\t\t\tInteger q = (Integer) apple.get(\"Quantity\");\n\t\t\tt = p * q;\n\n\t\t\tSystem.out.print(key + \": \" + value + \" \");\n\t\t}\n\t\tSystem.out.println(\"SubTotal: \" + t);\n\n\t\tSet<String> orangeEntry = orange.keySet();\n\n\t\tObject t1 = 0;\n\t\tfor (String forLoop : orangeEntry) {\n\t\t\tString key = forLoop;\n\t\t\tObject value = orange.get(forLoop);\n\n\t\t\tDouble p = (Double) orange.get(\"Price\");\n\t\t\tInteger q = (Integer) orange.get(\"Quantity\");\n\t\t\tt1 = p * q;\n\n\t\t\tSystem.out.print(key + \": \" + value + \" \");\n\t\t}\n\t\tSystem.out.println(\"SubTotal: \" + t1);\n\n\t\tdouble appleTotal = (double) t;\n\t\tdouble orangeTotal = (double) t1;\n\t\tdouble totalPurchase = appleTotal + orangeTotal;\n\n\t\tSystem.out.println(\"Your Purchase is: \" + totalPurchase);\n\n\t\tSystem.out.println(\"- - - A N O T H E R - W A Y - - -\");\n\n\t\tList<Map<String, Object>> dataList1 = new ArrayList<Map<String, Object>>();\n\n\t\tMap<String, Object> appleMap = new HashMap<String, Object>();\n\t\tappleMap.put(\"Items\", \"Apple\");\n\t\tappleMap.put(\"Price\", 20.00);\n\t\tappleMap.put(\"Quantity\", 10);\n\t\tdataList1.add(appleMap);\n\n\t\tMap<String, Object> orangeMap = new HashMap<String, Object>();\n\t\torangeMap.put(\"Items\", \"Orange\");\n\t\torangeMap.put(\"Price\", 21.99);\n\t\torangeMap.put(\"Quantity\", 10);\n\n\t\tdataList1.add(orangeMap);\n\n\t\t// find purchase total Price.\n\t\tdouble purchaseTotalPrice = 0;\n\n\t\tfor (Map<String, Object> map : dataList1) {\n\t\t\tString items = map.get(\"Items\").toString();\n\t\t\tdouble price = Double.parseDouble(map.get(\"Price\").toString());\n\t\t\tdouble quantity = Double.parseDouble(map.get(\"Quantity\").toString());\n\t\t\tdouble lineTotal = price * quantity;\n\n\t\t\tSystem.out.println(\n\t\t\t\t\t\"Items: \" + items + \" Price: \" + price + \" Quantity: \" + quantity + \" SubTotal: \" + lineTotal);\n\t\t\tpurchaseTotalPrice += lineTotal;\n\t\t}\n\t\tSystem.out.println(\"Your Purchase total : \" + purchaseTotalPrice);\n\t}", "double getTotal();", "Double getTotalSpent();", "public double getSalePrice() {\n return salePrice;\n }", "@Override\r\n\tpublic List<MonitoredSupermarket> getSupermarkets(float latitude, float longitude, int userId) throws SQLException {\r\n\t\tcon = ConnectionPoolManager.getPoolManagerInstance().getConnectionFromPool();\r\n\t\tSupermarketDAO supermarketDao = new SupermarketDAOImpl();\r\n\t\tList<Supermarket> nearSupermarkets = supermarketDao.getNearSupermarkets(latitude, longitude);\t\r\n\t\tPreparedStatement ps = null;\r\n\r\n\t\tString query = \"select ms.id_supermarket \"\r\n\t\t\t\t+ \"from monitored_supermarket ms \"\r\n\t\t\t\t+ \"where ms.id_user = ?\";\r\n\r\n\t\ttry {\r\n\t\t\tps = con.prepareStatement(query);\r\n\t\t\tps.setInt(1, userId);\r\n\t\t\tResultSet rs = ps.executeQuery();\r\n\t\t\tint nearSupermarketsNumber = nearSupermarkets.size();\r\n\t\t\tList<MonitoredSupermarket> msList = new ArrayList<MonitoredSupermarket>();\r\n\t\t\tfor(int i = 0; i < nearSupermarketsNumber; i++){\r\n\t\t\t\tMonitoredSupermarket ms = new MonitoredSupermarket();\r\n\t\t\t\tms.setId_supermarket(nearSupermarkets.get(i));\r\n\t\t\t\tboolean flagFound = false;\r\n\t\t\t\twhile(rs.next()){\r\n\t\t\t\t\tif(rs.getInt(1) == nearSupermarkets.get(i).getId_supermarket()){\r\n\t\t\t\t\t\tflagFound = true;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tUser u = new User();\r\n\t\t\t\tif(flagFound == true){\r\n\t\t\t\t\tu.setId_user(userId);\t\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tu.setId_user(0);\r\n\t\t\t\t}\r\n\t\t\t\tms.setId_user(u);\r\n\t\t\t\trs.beforeFirst();\r\n\t\t\t\tmsList.add(ms);\r\n\r\n\t\t\t}\r\n\r\n\t\t\treturn msList;\r\n\t\t} finally{\r\n\t\t\tConnectionPoolManager.getPoolManagerInstance().returnConnectionToPool(con);\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\t\tMap<BigDecimal, String> result3 = items.stream()\r\n\t\t\t\t.collect(Collectors.toMap(Item::getPrice, Item::getName, (s, a) -> s + \", \" + a));\r\n\t\tresult3.forEach((k, v) -> System.out.println(k + \" \" + v));\r\n\r\n\t\tMap<Integer, String> map = items.stream()\r\n\t\t\t\t.collect(Collectors.toMap(Item::getQuantity, Item::getName, (x, y) -> x + \", \" + y));\r\n\t\tmap.forEach((x, y) -> System.out.println(\"Key: \" + x + \", value: \" + y));\r\n\t\tMap<Integer, String> map1 = items.stream().collect(\r\n\t\t\t\tCollectors.toMap(Item::getQuantity, Item::getName, (x, y) -> x + \", \" + y, LinkedHashMap::new));\r\n\t\tmap.forEach((x, y) -> System.out.println(\"Key: \" + x + \", value: \" + y));\r\n\r\n\t\t/*\r\n\t\t * Map<BigDecimal, List<Item>> result1 =\r\n\t\t * items.stream().collect(Collectors.groupingBy(Item::getPrice));\r\n\t\t * Map<BigDecimal, List<Item>> result2 = items.stream()\r\n\t\t * .collect(Collectors.groupingBy(Item::getPrice, Collectors.toList()));\r\n\t\t * Map<BigDecimal, Item> result4 =\r\n\t\t * items.stream().collect(Collectors.toMap(Item::getPrice, Item -> Item));\r\n\t\t * Map<BigDecimal, String> toMapuse = items.stream()\r\n\t\t * .collect(Collectors.toMap(Item::getPrice, Item::getName, (s, a) -> s + \", \" +\r\n\t\t * a)); ///toMapuse.forEach((k, v) -> System.out.print(k + \" \" + v));\r\n\t\t */\r\n\t}", "public Integer getSalesAmount() {\n return salesAmount;\n }", "public double getTotalPrice(){\n return totalPrice;\n }", "public int getTotalSalesCount(){\n return totalSalesCount;\n }", "public void displayTotal() {\r\n\t\tSystem.out.println(\"Total sales: \" + String.format(\"$%.2f.%n\", (float) store.getTotalSales()));\r\n\t}", "static int calculateTotalOf(Set<Fruit> basket) {\n\t\tint totalPrice = 0;\n\t\tint Qty = 0;\n\t\tfor (Fruit fruit : basket) {\n\t\t\tQty = getQuantityOf(fruit);\n\t\t\tQty = Qty <= 0 ? 1 : Qty;\n\t\t\ttotalPrice = totalPrice + (fruit.price * Qty);\n\t\t}\n\t\tSystem.out.println(\"Total Price = \" + totalPrice);\n\t\treturn totalPrice;\n\t}", "public List<Sale> getSales() {\n if (sales == null) {\n if (daoSession == null) {\n throw new DaoException(\"Entity is detached from DAO context\");\n }\n SaleDao targetDao = daoSession.getSaleDao();\n List<Sale> salesNew = targetDao._queryTask_Sales(uuid);\n synchronized (this) {\n if(sales == null) {\n sales = salesNew;\n }\n }\n }\n return sales;\n }", "@Override\r\n\tpublic int getTotalPrice() {\n\t\treturn totalPrice;\r\n\t}", "public void showTotalValue() {\n double totalValue = 0;\n for (Row row : rows) { // Iterate over the ArrayList.\n totalValue += row.getSeatTotal(); // Get the total for the seats from each row and add all the rows them together.\n }\n System.out.println(\"The total value of seats sold is $\" + df.format(totalValue));\n }", "@Override\n public Map<Long, Map<Long, Number>> getFilteredRatings(Map<Long, Map<Long, Number>> originalSet) {\n Map<Long, Map<Long, Number>> ret = new TreeMap<Long, Map<Long, Number>>();\n\n for (Map.Entry<Long, Map<Long, Number>> userRatings : originalSet.entrySet()) {\n Long idUser = userRatings.getKey();\n Map<Long, Number> userRatingsMap = userRatings.getValue();\n\n ret.put(idUser, new TreeMap<Long, Number>());\n for (Map.Entry<Long, Number> entry : userRatingsMap.entrySet()) {\n Long idItem = entry.getKey();\n Number rating = entry.getValue();\n ret.get(idUser).put(idItem, rating.doubleValue());\n }\n }\n return ret;\n }", "public Integer getTotalprice() {\n return totalprice;\n }", "public float getTotalPrice(){\n return price * amount;\n }" ]
[ "0.66793793", "0.6514291", "0.63211375", "0.62146354", "0.58901954", "0.58104604", "0.57227254", "0.55664915", "0.55478793", "0.55388755", "0.5533553", "0.5528422", "0.552313", "0.54969746", "0.5463557", "0.5424247", "0.5411353", "0.53812903", "0.53441113", "0.534408", "0.5338032", "0.53349733", "0.53331923", "0.533072", "0.53130805", "0.53025144", "0.5300299", "0.5295524", "0.5276498", "0.5276267", "0.5273222", "0.52640307", "0.5258684", "0.5248318", "0.5244682", "0.5238997", "0.52383584", "0.5232518", "0.52290934", "0.5209736", "0.519805", "0.5180169", "0.5165103", "0.5153487", "0.51492906", "0.5148038", "0.51455814", "0.5145022", "0.5122431", "0.51153344", "0.51040345", "0.5085847", "0.5085514", "0.5058627", "0.50277436", "0.50272924", "0.5026466", "0.5008852", "0.50012547", "0.5000488", "0.4991693", "0.49873063", "0.49861965", "0.4970908", "0.49617124", "0.49584126", "0.49548087", "0.49540648", "0.49406946", "0.4934356", "0.49326438", "0.49309462", "0.49306625", "0.49280688", "0.49265215", "0.4923992", "0.49197468", "0.49147668", "0.49064618", "0.49052483", "0.49037525", "0.48946807", "0.4890447", "0.4887688", "0.4876349", "0.48709822", "0.48708558", "0.48707232", "0.4870032", "0.48692462", "0.48640347", "0.48573893", "0.48549828", "0.4850394", "0.48494425", "0.48409903", "0.48386306", "0.48376396", "0.48346165", "0.4829398" ]
0.8278628
0
Returns the sum of the total price of all orders
public double getTotalSales() { double total = 0; for (Order o : orders) { total += o.totalPrice(); } return total; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private double calculateTotal(){\r\n double total = 0;\r\n for(int i = 0; i < orderList.size(); i++){\r\n total += orderList.getOrder(i).calculatePrice();\r\n }\r\n return total;\r\n }", "@Transient\n public Double getTotalOrderPrice() {\n double sum = 0;\n for (OrderItem oi : getOrderItems()) {\n sum += oi.getTotalPrice();\n }\n return sum;\n }", "BigDecimal calculateTotalPrice(Order order);", "public float calculateTotalPrice(ArrayList<Food> totalOrder) {\n totalPrice = 0.0f;\n for (Food itemOfFood : totalOrder) {\n totalPrice = totalPrice + itemOfFood.getPrice();\n }\n return totalPrice;\n }", "private double getOrderTotal() {\n double d = 0;\n\n for (Pizza p : pizzas) {\n d += p.calcTotalCost();\n }\n\n return d;\n }", "public float calcOrderTotal()\r\n\t{\r\n\t\tOrderItem temp;\r\n\t\tfloat total = 0;\r\n\t\t\r\n\t\t//iterate through list and get quantity and unit price of each item\r\n\t\t//then multiply together and add to running total\r\n\t\tfor (int x = 0; x < orderItemList.size(); x++)\r\n\t\t{\r\n\t\t\ttemp = orderItemList.get(x);\r\n\t\t\ttotal = total + (temp.getProductQuant() * temp.getProductPrice());\r\n\t\t}\r\n\t\t\r\n\t\treturn total;\r\n\t}", "public double getTotal() {\n double total = 0.0;\n for (OrderItem i : getOrderItems()) {\n total += i.getOrderQuantity() * i.getPrice();\n }\n return total;\n }", "void calculateTotalPrice(){\n totalPrice = 0;\n cartContents.forEach(Product-> this.totalPrice = totalPrice + Product.getSellPrice());\n }", "public BigDecimal countTotalOrderPrice(Order order) {\n BigDecimal totalSum = new BigDecimal(0);\n\n\n // iterate through all products and count total price of them -\n // TODO: can be speeded up by adding the order_total_price parameter to the order object/table\n if (order != null && order.getOrderProducts().size() > 0) {\n Set<Product> orderProducts = order.getOrderProducts();\n for (Product product : orderProducts) {\n totalSum = totalSum.add(product.getProduct_price());\n }\n\n }\n return totalSum;\n }", "public double sumMoney(){\n\t\tdouble result = 0;\n\t\tfor(DetailOrder detail : m_DetailOrder){\n\t\t\tresult += detail.calMoney();\n\t\t}\n\t\tif(exportOrder == true){\n\t\t\tresult = result * 1.1;\n\t\t}\n\t\treturn result;\n\t}", "private double totalPrice(){\n\n double sum = 0;\n\n for (CarComponent carComponent : componentsCart) {\n sum += (carComponent.getCompPrice() * carComponent.getCompQuantity()) ;\n }\n return sum;\n }", "private double calculateTotalPrice(Order order) {\n int nights = (int)(order.getVaucher().getDateTo().getTime() - order.getVaucher().getDateFrom().getTime())/(24 * 60 * 60 * 1000);\n double totalPrice = (nights * order.getVaucher().getHotel().getPricePerDay() + order.getVaucher().getTour().getPrice()) * (100 - order.getUser().getDiscount())/100;\n return totalPrice;\n }", "public double total(){\n\tdouble total=0;\n\tfor(Map.Entry<String, Integer> pro:proScan.getProducts().entrySet()){\n\t\tString proName=pro.getKey();\n\t\tint quantity=pro.getValue();\n\t\tProductCalculator proCal=priceRule.get(proName);\n\t\tif(proCal==null)\n\t\t\tthrow new MissingProduct(proName);\n\t\t\n\t\tProductCalculator cal=priceRule.get(proName);\n\t\tdouble subtotal=cal.getTotal(quantity);\n\t\ttotal+=subtotal;\n\t\t//System.out.println(total);\n\t}\n\t//round the total price to two digit\n\treturn round(total, 2);\n}", "public double calculate(Map<String, Order> orders) {\n\n\t\t// This is the fix to avoid null pointer exception if Cart has null\n\t\t// orders\n\t\tif (orders == null) {\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"Orders are invalid. Input is null\");\n\t\t}\n\t\t// GrandTotal is initialized outside the loop to have the grand total\n\t\tdouble grandTotal = 0;\n\n\t\t// Iterate through the orders\n\t\tfor (Map.Entry<String, Order> entry : orders.entrySet()) {\n\t\t\tSystem.out.println(\"*******\" + entry.getKey() + \"*******\");\n\t\t\tOrder order = entry.getValue();\n\t\t\tdouble totalTax = 0;\n\t\t\tdouble total = 0;\n\n\t\t\t// Iterate through the items in the order\n\t\t\t/*\n\t\t\t * In lists indexes starts with 0 and ends with its size-1. We\n\t\t\t * should not include indexes which are not exist,it will leads to\n\t\t\t * ArrayIndexOutofBoundException. Hence logical operator = is\n\t\t\t * removed\n\t\t\t */\n\t\t\tfor (int i = 0; i < order.size(); i++) {\n\n\t\t\t\t// Calculate the taxes\n\t\t\t\tdouble tax = 0;\n\n\t\t\t\tItem item = order.get(i).getItem();\n\n\t\t\t\ttax = calculateTax(item);\n\n\t\t\t\t// Calculate the total price\n\t\t\t\tdouble totalPrice = item.getPrice() + tax;\n\n\t\t\t\t// Print out the item's total price\n\t\t\t\t// Wrong way of rounding off here it is fixed with the help of\n\t\t\t\t// BigDecimal\n\t\t\t\tSystem.out.println(item.getDescription() + \": \"\n\t\t\t\t\t\t+ roundToTwoDecimal(totalPrice));\n\n\t\t\t\t// Keep a running total\n\t\t\t\ttotalTax += tax;\n\t\t\t\ttotal += item.getPrice();\n\t\t\t}\n\n\t\t\t// Print out the total taxes\n\t\t\t// Wrong way of rounding off here it is fixed with the help of\n\t\t\t// BigDecimal\n\t\t\tSystem.out\n\t\t\t\t\t.println(\"Sales Tax: \" + roundToTwoDecimal(totalTax) /*\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * Math.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * floor\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * (\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * totalTax\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * )\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t */);\n\n\t\t\t// Fix to Total. Total should not include Tax\n\t\t\t// total = total + totalTax;\n\n\t\t\t// Print out the total amount\n\t\t\t// Wrong way of rounding off here it is fixed with the help of\n\t\t\t// BigDecimal\n\t\t\tSystem.out.println(\"Total: \" + roundToTwoDecimal(total) /*\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * Math.floor\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * (total *\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * 100) /\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * 100\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t */);\n\t\t\tgrandTotal += total;\n\t\t}\n\n\t\t// grandtotal = Math.floor(grandtotal * 100) / 100;\n\t\t// Bug Fix: 10 (Wrong way of rounding. To meet the requirements, we\n\t\t// should be using BigDecimal.)\n\t\tSystem.out.println(\"Sum of orders: \" + roundToTwoDecimal(grandTotal));\n\n\t\treturn grandTotal;\n\t}", "public synchronized double getTotal(){\n double totalPrice=0;\n \n for(ShoppingCartItem item : getItems()){\n totalPrice += item.getTotal();\n }\n \n return totalPrice;\n }", "public BigDecimal calculateTotal() {\r\n BigDecimal orderTotal = BigDecimal.ZERO;\r\n \r\n final Iterator<Item> iterator = myShoppingCart.keySet().iterator();\r\n \r\n while (iterator.hasNext()) {\r\n final BigDecimal currentOrderPrice = myShoppingCart.get(iterator.next());\r\n \r\n orderTotal = orderTotal.add(currentOrderPrice);\r\n }\r\n \r\n //if membership take %10 off the total cost\r\n if (myMembership) {\r\n if (orderTotal.compareTo(new BigDecimal(\"25.00\")) == 1) { //myOrderTotal > $25\r\n final BigDecimal discount = DISCOUNT_RATE.multiply(orderTotal); \r\n orderTotal = orderTotal.subtract(discount);\r\n }\r\n }\r\n \r\n return orderTotal.setScale(2, RoundingMode.HALF_EVEN);\r\n }", "public void addTotal() {\n for (int i = 0; i < itemsInOrder.size(); i++) {\n this.dblTotal += itemsInOrder.get(i).getPrice();\n }\n }", "public BigDecimal getTotalPrice() {\n\t\t// the current total cost which the customer owes in the transaction\n\t\tBigDecimal total = new BigDecimal(0);\n\n\t\tArrayList<Item> currentPurchases = purchaseList.getCurrentPurchases(); \n\n\t\tfor (Item item : currentPurchases) {\n\t\t\ttotal = total.add(this.getItemPrice(item));\n\t\t}\n\n\t\treturn total;\n\t}", "public double totalPrice() {\n\t\tdouble result = 0.0;\n\t\tfor (ItemCart itemCart : listItemcart) {\n\t\t\tresult += itemCart.getQuantity() * itemCart.getP().getPrice();\n\t\t}\n\t\treturn result;\n\t}", "public double calTotalAmount(){\n\t\tdouble result=0;\n\t\tfor (int i = 0; i < this.cd.size(); i++) {\n\t\t\tresult += this.cd.get(i).getPrice();\n\t\t}\n\t\treturn result;\n\t}", "public void totalPrice(){\n int total = 0;\n\n if (list_order.isEmpty()) {\n totalHarga.setText(\"Rp. \" + 0);\n }\n else {\n for (int i = 0; i < list_order.size(); i++) {\n total += list_order.get(i).getHarga();\n }\n totalHarga.setText(\"Rp. \" + total);\n }\n }", "public double getTotalCostOfOrder() {\n double total = 0;\n for (AbstractProduct item :\n this.itemsReceived) {\n total += item.getPrice();\n }\n return total;\n }", "public BigDecimal getTotal() {\n BigDecimal total = new BigDecimal(0);\n for (Item item : items){\n int quantity = item.getQuantity();\n BigDecimal subtotal = item.getPrice().multiply(new BigDecimal(quantity));\n total = total.add(subtotal);\n }\n return total;\n }", "public int totalprice() {\n\t\tint totalPrice=0;\r\n\t\tfor (int i=0; i<arlist.size();i++) {\r\n\t\t\t totalPrice+=arlist.get(i).price;\r\n\t\t}\r\n\t\treturn totalPrice;\r\n\t}", "public BigDecimal getTotalPrice() {\n\t\tBigDecimal total = new BigDecimal(\"0.00\");\n\t\tfor (Map.Entry<Integer, DishGeneral> entry : this.getOrderedDishes().entrySet()){\n\t\t\ttotal = total.add(new BigDecimal(entry.getValue().getAmount()).multiply(entry.getValue().getPrice()));\n\t\t}\n\t\tfor (Map.Entry<String, DishGeneral> entry : this.getOrderedTeppanyakiDishes().entrySet()){\n\t\t\tfor(Map.Entry<Integer, IngredientGeneral> ent : entry.getValue().getIngredients().entrySet()){\n\t\t\t\tBigDecimal p = new BigDecimal(ent.getValue().getGrams()).multiply(ent.getValue().getPricePerHundredGrams())\n\t\t\t\t\t\t.divide(new BigDecimal(100));\n\t\t\t\ttotal = total.add(p);\n\t\t\t}\n\t\t}\n\t\treturn total.setScale(2, RoundingMode.CEILING);\n\t}", "public float totalCost() {\r\n float total = 0;\r\n for (int i=0; i<numItems; i++) {\r\n total += cart[i].getPrice();\r\n }\r\n return total;\r\n }", "public float getCartPrice() {\n float totalSum = 0.0F;\n for(Publication book : shoppingCart){\n totalSum += book.getPrice();\n }\n\n return totalSum;\n }", "public Double getTotalPrice()\n {\n Double total = 0.0;\n for(DrinkAndQuantity d : drinksAndQuantities){\n Drink drink = d.getDrink();\n double tempPrice = drink.getPrice();\n Integer quantity = d.getQuantity();\n total += (tempPrice * quantity);\n }\n\n return total;\n }", "public double totalprice()\n {\n \tthis.caltotalprice();\n \tdouble res = Math.round(mTotalPrice);\n \t return res;\n }", "public double getTotal() {\n double amount = 0;\n amount = (this.getQuantity() * product.getPrice().doubleValue());\n return amount;\n }", "private double getProductsTotal() {\n\t\t\n\t\tdouble total = 0;\n\t\t\n\t\tif(!soldProducts.isEmpty()) {\n\t\t\t\n\t\t\tfor(Sellable product : soldProducts) {\n\t\t\t\t\n\t\t\t\ttotal += (product.getPrice() * product.getQuantitySold());\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\treturn total;\n\t}", "public double getTotalPrice() {\n\t\treturn totalPrice;\n\t}", "public double getOrderTotalWithoutDiscount(String[] order) {\n\t\t//TODO\n\t\t\n\t\tdouble all=0.0;\n\t\tfor(String item:order) {\n\t\t\t\n\t\t\tall+=findItemPrice(item);\n\t\t}return all;\n\t\t\t\n\t\t\t\n\t\t}", "public void calculateOrderTotals() {\n NumberFormat formatter = NumberFormat.getCurrencyInstance();\n\n //order number increases for each order\n orderNo++;\n System.out.println(\"- \" + \"OrderNo: \" + orderNo + \" -\");\n\n //cycle through the items in the order and add to the totals\n for(Item i : items) {\n\n incrementOrderTotal(i.getNumOfItems() * i.getPriceWithTax());\n incrementOrderSalesTax(i.getNumOfItems() * i.getTaxOnItem());\n\n System.out.println(i.getDescrip() + formatter.format(i.getPriceWithTax()));\n }\n\n //print out totals\n System.out.println(\"Sales taxes: \" + formatter.format(Math.round(getOrderSalesTax() * 100.0) / 100.0));\n System.out.println(\"Order total: \" + formatter.format(Math.round(getOrderTotal() * 100.0) / 100.0));\n System.out.println(\"\\n\");\n }", "private double prixTotal() \r\n\t{\r\n\t\tdouble pt = getPrix() ; \r\n\t\t\r\n\t\tfor(Option o : option) \r\n\t\t\tpt += o.getPrix();\t\r\n\t\treturn pt;\r\n\t}", "public double totalPrices()\r\n {\r\n double total = 0;\r\n //Write a loop here to total the book prices. Each object in the ArrayList bookList is a Book, so you can\r\n //use the getter as you loop through and add the price to total\r\n if(bookList != null){\r\n for(Book book: bookList){\r\n total += book.getPrice();\r\n }\r\n }\r\n return total;\r\n }", "public BigDecimal total() {\n return executor.calculateTotal(basket);\n }", "public double getMarketTotal(double kilos) {\n double total;\n total = kilos * potatoesPrice;\n return total;\n }", "public int sumofPrice(){\n\t\tSQLiteDatabase db = this.getReadableDatabase();\n\t\tString selectQuery = \"SELECT SUM(price) FROM \" + TABLE_SHOP;\n\t\tCursor cur = db.rawQuery(selectQuery, null);\n\t\tint total=0;\n\t\tif(cur.moveToFirst())\n\t\t{\n\t\t\ttotal = cur.getInt(0);\n\t\t}\n\t\treturn total;\n\t}", "public double calculatePrice(Order order){\r\n return order.quantity * order.itemPrice -\r\n Math.max(0, order.quantity - 500) * order.itemPrice * 0.05 +\r\n Math.min(order.quantity * order.itemPrice * 0.1, 100);\r\n }", "public void calculatePriceOrder() {\n log.info(\"OrdersBean : calculatePriceOrder!\");\n this.priceOrder = 0;\n for (ContractsEntity c : contractsBean.getContractsEntities()\n ) {\n this.priceOrder += c.getFinalPrice();\n }\n }", "public BigDecimal getPrice() {\n BigDecimal price = BigDecimal.ZERO;\n for (int i = 0; i < flights.size(); i++) {\n price = price.add(flights.get(i).getPrice(seatClass.get(i)));\n }\n return price;\n }", "private void getSum() {\n\t\tint sum =0;\r\n\t\t\r\n\t\tfor(int i=0; i<index; i++) {\r\n\t\t\tif(products[i] != null)\r\n\t\t\t\tsum += products[i].getPrice();\r\n\t\t}\r\n\t\tSystem.out.println(sum);\r\n\t}", "public double getTotal(){\n\t\tBigDecimal total =BigDecimal.valueOf(0);\n\t\tfor(CartItem cartItem : map.values()){\n\t\t\ttotal = total.add(BigDecimal.valueOf(cartItem.getSubtotal())) ;\n\t\t}\t\t\n\t\treturn total.doubleValue();\n\t}", "@Override\r\n\tpublic int getTotalPrice() {\n\t\treturn totalPrice;\r\n\t}", "@Override\n public double getTotalPrice() {\n return getTotalPrice(0);\n }", "@Override\n\tpublic double sumMoney() {\n\t\treturn ob.sumMoney();\n\t}", "public BigDecimal getValorTotal() {\n\t\treturn itens.stream()\n\t\t\t\t.map(ItemDieta::getValorTotal)\n\t\t\t\t.reduce(BigDecimal::add)\n\t\t\t\t.orElse(BigDecimal.ZERO);\n\t}", "public BigDecimal getOrderTotal()\r\n\t{\r\n\t\tSystem.out.println(\"Order Total is: \" + subtotal);\r\n\t\treturn subtotal;\r\n\t}", "public void calculateOrderCost(){\n int tmpCost=0;\n for (Vehicle v : vehicleList){\n tmpCost+=v.getCost();\n }\n totalCost=tmpCost;\n }", "private CharSequence calculateTotalPrice() {\n float totalPrice = 0.0f;\n totalPrice += UserScreen.fishingRodQuantity * 25.50;\n totalPrice += UserScreen.hockeyStickQuantity * 99.99;\n totalPrice += UserScreen.runningShoesQuantity * 85.99;\n totalPrice += UserScreen.proteinBarQuantity * 5.25;\n totalPrice += UserScreen.skatesQuantity * 50.79;\n return Float.toString(totalPrice);\n }", "public int getPrice() {\n for (Item item : items) {\n price +=item.getPrice();\n }\n return price;\n }", "@Override \r\n public double getPaymentAmount() \r\n { \r\n return getQuantity() * getPricePerItem(); // calculate total cost\r\n }", "public float getTotalPrice(){\n return price * amount;\n }", "public int getTotal() {\r\n\r\n\t\treturn getAmount() + getPrice();\r\n\r\n\t}", "public float getTotalAmount() {\n float amt = 0.0f;\n for (Item e : cart) {\n amt += e.getQuantity() * getPrice(e.getName());\n }\n return amt;\n }", "private double calculateTotal(){\r\n double total = 0;\r\n\r\n for(Restaurant restaurant: restaurantMap.getRestaurantMap().values()){\r\n total += restaurant.getRevenue();\r\n }\r\n\r\n return total;\r\n }", "BigDecimal getTotal();", "BigDecimal getTotal();", "public BigDecimal getOrderPrice() {\n return orderPrice;\n }", "@Override\n public double getTotalPrice(int BTWpercentage) {\n double price = 0.0;\n double percentage = BTWpercentage / 100;\n\n for (PurchaseOrderLine orderline : orderLines) {\n price += orderline.getLineTotal();\n }\n price += price * BTWpercentage;\n\n return price;\n }", "public int calcTotalPrice(){\r\n\t\tint flightPrice = flight.getFlightPrice();\r\n\t\tint bagPrice = nrBag*LUGGAGE_PRICE;\r\n\t\tthis.totalPrice = bagPrice + nrAdult*flightPrice + nrChildren*1/2*flightPrice;\r\n\t\treturn this.totalPrice;\r\n\t}", "Optional<BigDecimal> getDiscountedTotalPrice(List<Item> items) throws CheckoutProcessingException;", "public double getTotalPrice(){\n return totalPrice;\n }", "public int sumEquipmentPrice(){\n int sum = 0;\n for (Equipment e: equipment){\n sum += e.getPrice();\n }\n return sum;\n }", "@Override\n public double getPrice() {\n return components.stream().mapToDouble(Component::getPrice).sum();\n }", "public Integer getTotalprice() {\n return totalprice;\n }", "public void totalBill(){\r\n\t\tint numOfItems = ItemsList.size();\r\n\t\t\r\n\t\tBigDecimal runningSum = new BigDecimal(\"0\");\r\n\t\tBigDecimal runningTaxSum = new BigDecimal(\"0\");\r\n\t\t\r\n\t\tfor(int i = 0;i<numOfItems;i++){\r\n\t\t\t\r\n\t\t\trunningTaxSum = BigDecimal.valueOf(0);\r\n\t\t\t\r\n\t\t\tBigDecimal totalBeforeTax = new BigDecimal(String.valueOf(this.ItemsList.get(i).getPrice()));\r\n\t\t\t\r\n\t\t\trunningSum = runningSum.add(totalBeforeTax);\r\n\t\t\t\r\n\t\t\tif(ItemsList.get(i).isSalesTaxable()){\r\n\t\t\t\r\n\t\t\t BigDecimal salesTaxPercent = new BigDecimal(\".10\");\r\n\t\t\t BigDecimal salesTax = salesTaxPercent.multiply(totalBeforeTax);\r\n\t\t\t \r\n\t\t\t salesTax = round(salesTax, BigDecimal.valueOf(0.05), RoundingMode.UP);\r\n\t\t\t runningTaxSum = runningTaxSum.add(salesTax);\r\n\t\t\t \r\n \r\n\t\t\t} \r\n\t\t\t\r\n\t\t\tif(ItemsList.get(i).isImportedTaxable()){\r\n\r\n\t\t\t BigDecimal importTaxPercent = new BigDecimal(\".05\");\r\n\t\t\t BigDecimal importTax = importTaxPercent.multiply(totalBeforeTax);\r\n\t\t\t \r\n\t\t\t importTax = round(importTax, BigDecimal.valueOf(0.05), RoundingMode.UP);\r\n\t\t\t runningTaxSum = runningTaxSum.add(importTax);\r\n\t\t\t \r\n\t\t\t}\r\n\r\n\t\t\t\r\n\t\t\tItemsList.get(i).setPrice(runningTaxSum.floatValue() + ItemsList.get(i).getPrice());\r\n\t\t\r\n\t\t\ttaxTotal += runningTaxSum.doubleValue();\r\n\t\t\t\r\n\t\t\trunningSum = runningSum.add(runningTaxSum);\r\n\t\t}\r\n\t\t\ttaxTotal = roundTwoDecimals(taxTotal);\r\n\t\t\ttotal = runningSum.doubleValue();\r\n\t}", "@Override\n public USMoney calculatePrice() {\n USMoney sumPrice = new USMoney();\n for (int i = 0; i < curArrayIndex; i++) {\n sumPrice = sumPrice.add(items[i].getPrice());\n if (items[i].isFragile()) {\n sumPrice.addTo(10, 0);\n }\n }\n sumPrice.addTo(100, 0);\n return sumPrice;\n }", "private static void calculatePrice(AbstractOrder abstractOrder) {\n System.out.println(abstractOrder.getPrice());\n }", "public void caltotalprice(){\n \tthis.mTotalPrice = 0;\n \tif (this.isCoachSeat) {\n \t\tfor (Flight f: this.mLegs) {\n \t\t\tthis.mTotalPrice += f.coachprice();\n \t\t}\n \t}else {\n \t\tfor (Flight f: this.mLegs) {\n \t\t\tthis.mTotalPrice += f.firstclassprice();\n \t\t}\n \t}\n }", "public BigDecimal summaryPrice() {\n BigDecimal result = basePrice;\n if (options == null) {\n return result == null ? BigDecimal.ZERO : result;\n } else {\n\n for (int i = 0; i < options.length; i++) { // to jest opcja napisania metody w klasie Car zeby od razu tam sie znajdywala i dawala nam jaka jest cena , zeby cena byla od razu elementem klasy CAR\n result = result.add(options[i].getOptionPrice());\n }\n return result;\n }\n }", "public double getTotalValue(){\r\n return this.quantity * this.price;\r\n }", "public Long getTotalprice() {\n return totalprice;\n }", "public BigDecimal getValorTotal(){\r\n\t\r\n\t\t// percorre a lista de ItemVenda - stream especie de interator do java 8\r\n\t\treturn itens.stream()\r\n\t .map(ItemVenda::getValorTotal) // para cada um dos itens, obtem o valor total do item\t\r\n\t .reduce(BigDecimal::add) // soma todos os valores total \r\n\t .orElse(BigDecimal.ZERO); // caso não tenha nenhum item retorna zeo\r\n\t}", "public int calculateTotalOrderPrice(Map<Pizza, Integer> pizzas) {\n\t\t\n\t\tint totalOrderPrice = calculateTotalOrderPriceWithoutDiscount(pizzas);\n\t\t\n\t\tint totalOrderPriceWithDiscount = totalOrderPrice - calculateTotalDiscount(pizzas); \n\t\t\n\t\tif (totalOrderPriceWithDiscount < 0) {\n\t\t\tthrow new RuntimeException(\"Total order price < 0\");\n\t\t}\n\t\t\n\t\treturn totalOrderPriceWithDiscount;\n\t}", "public float totalCost() {\n\t\tttCost = 0;\n\t\tfor (int i = 0; i < itemsOrdered.size(); i++) {\n\t\t\tttCost += itemsOrdered.get(i).getCost();\n\t\t}\n\t\treturn ttCost;\n\t}", "public String getTotalPrice(){\n String price = driver.findElement(oTotalFlightCost).getText();\n logger.debug(\"total flight cost is \" + price);\n return price;\n }", "public BigDecimal getTradeTotal() {\n return tradeTotal;\n }", "public static double calculateTotals(double[] money) {\n int element = 0; //The element to add\n double total = 0; //The total sales/commissions\n \n while (element < money.length) { //Add each element\n total += money[element];\n element++;\n }\n \n //Return total\n return total;\n }", "public double getPrice()\n\t{\n\t\treturn this.totalPrice + this.getFlightCosts() + this.excursionSubTotal\n\t\t\t\t+ this.getLodgingCost();\n\t}", "@Override\n\tpublic double getPrice() {\n\n\t\tfor(Car temPart:listPart){\n\t\t\tthis.totalCost +=temPart.getPrice();\n\t\t}\n\t\treturn totalCost;\n\t}", "private double returnOrderTotalAmount(List<ProductVariation> productVariationList, long customerId)\n {\n double totalAmount = 0;\n\n for (ProductVariation productVariation: productVariationList) {\n\n int quantityFromCart = cartRepository.getQuantityForCustomerIdAndVariationId(customerId\n , productVariation.getId());\n totalAmount+=(productVariation.getPrice()*quantityFromCart);\n }\n return totalAmount;\n }", "public double getTotal(){\n\t\tdouble Total = 0;\n\t\t\n\t\tfor(LineItem lineItem : lineItems){\n\t\t\tTotal += lineItem.getTotal();\t\n\t\t}\n\t\treturn Total;\n\t}", "public double getTotal() {\r\n\r\n return getSubtotal() + getTax();\r\n }", "public double calculateTotalCost() {\n finalTotal = (saleAmount + taxSubtotal + SHIPPINGCOST);\n\n return finalTotal;\n }", "public BigDecimal getTotal() {\n return total;\n }", "public BigDecimal getTotal() {\n return total;\n }", "private int getTotalPrice() {\n int unitPrice = 0;\n if (((CheckBox) findViewById(R.id.whipped_cream_checkbox)).isChecked()) {\n unitPrice += Constants.PRICE_TOPPING_WHIPPED_CREAM;\n }\n\n if (((CheckBox) findViewById(R.id.chocolate_checkbox)).isChecked()) {\n unitPrice += Constants.PRICE_TOPPING_CHOCOLATE;\n }\n\n unitPrice += Constants.PRICE_PER_COFFEE;\n return getNumberOfCoffees() * unitPrice;\n }", "public int getTotalPrice() {\n\t\treturn this.totalPrice;\n\t}", "static int calculateTotalOf(Set<Fruit> basket) {\n\t\tint totalPrice = 0;\n\t\tint Qty = 0;\n\t\tfor (Fruit fruit : basket) {\n\t\t\tQty = getQuantityOf(fruit);\n\t\t\tQty = Qty <= 0 ? 1 : Qty;\n\t\t\ttotalPrice = totalPrice + (fruit.price * Qty);\n\t\t}\n\t\tSystem.out.println(\"Total Price = \" + totalPrice);\n\t\treturn totalPrice;\n\t}", "@Override\r\n\tpublic double getPrice() {\n\t\treturn pizza.getPrice()+ 12.88;\r\n\t}", "private void calcTotalAmount(){\n\t totalAmount = 0;\n\t\tfor(FlightTicket ft : tickets)\n\t\t{\n\t\t\ttotalAmount += ft.getClassType().getFee() * getFlight().getFlightCost();\n\t\t}\n\t\tsetTotalAmount(totalAmount);\n\t}", "public int averageOrderPrice() {\n\t\tint orderTotal = 0;\n\n\t\tfor (CustomerWithGoods customerWithGoods : allCustomers) {\n\t\t\torderTotal += customerWithGoods.valueOfGoods();\n\t\t}\n\t\treturn orderTotal /= allCustomers.size();\n\t}", "public double calcTotalEarnings() {\n double total = 0;\n for (int i = 0; i < numRegions; i++) {\n total += regionList[i].calcEarnings();\n }\n return total;\n }", "public double obtener_total(){\r\n double total_ventas = precio*unidades;\r\n return total_ventas;\r\n }", "private MMDecimal getCustomerReturnItemPrice(OrderDetail odetail) {\r\n MMDecimal result = MMDecimal.ZERO;\r\n MMDecimal itemCostAmt = odetail.getOrderItemPriceAmt() == null ? MMDecimal.ZERO : odetail\r\n .getOrderItemPriceAmt();\r\n \r\n MMDecimal itemTaxAmt = odetail.getOrderItemTaxAmt() == null ? MMDecimal.ZERO : odetail\r\n .getOrderItemTaxAmt();\r\n result = itemCostAmt.add(itemTaxAmt);\r\n return result;\r\n }", "private static BigDecimal summaryPrice(Car car) {\n BigDecimal result = car.getBasePrice(); // najpierw dajemy cene poczatkowa auta to co mamy i znamy\n CarOption[] carOptions = car.getOptions(); // wyciagamy za pomoca getOptions z Obiektu CAR(Car) , tablice z wyposazeniem czyli skora i radiem bo potrzebujemy ich ceny znac zeby potem dodac do ceny basePrice\n for (int i = 0; i < carOptions.length; i++) { // musimy kazdy indeks po kolei sumowac za pomoca petli\n result = result.add(carOptions[i].getOptionPrice());\n }\n return result;\n }", "public BigDecimal countTotalOrderPriceDiscount(Order order) {\n\n return order.getTotalOrderPrice().multiply(\n new BigDecimal(order.getOrder_discount())).divide(new BigDecimal(100));\n }", "public double getPrice() {\n double price = BASE_PRICE;\n for (Topping topping : toppings) {\n if (topping.isPremium()) {\n price += 1.25;\n } else {\n price += 0.75;\n }\n }\n return price;\n }" ]
[ "0.84653336", "0.82658106", "0.80935764", "0.78746396", "0.78010476", "0.76404965", "0.7555582", "0.74607414", "0.74152607", "0.7372238", "0.7348896", "0.7246682", "0.72160304", "0.7208377", "0.7204954", "0.71834546", "0.7142013", "0.7126654", "0.7110468", "0.7098752", "0.7082924", "0.70237875", "0.69644177", "0.69422853", "0.6797746", "0.6789799", "0.67849594", "0.6754913", "0.67519766", "0.6745606", "0.6701628", "0.6678047", "0.66709733", "0.66593015", "0.66334194", "0.6630121", "0.6629579", "0.6574662", "0.65713847", "0.65686744", "0.6562513", "0.656131", "0.6556493", "0.65525067", "0.6545952", "0.65323555", "0.65287125", "0.6523456", "0.65152353", "0.6506806", "0.65010756", "0.64893126", "0.6472072", "0.6471202", "0.6463664", "0.645592", "0.6428722", "0.6425993", "0.6425993", "0.6423925", "0.64170337", "0.6394991", "0.63886476", "0.6383273", "0.63714206", "0.6367191", "0.63648176", "0.6354394", "0.63343686", "0.6333722", "0.632317", "0.63182324", "0.6308858", "0.63004297", "0.62997776", "0.6287905", "0.6285736", "0.62805384", "0.62401414", "0.6239097", "0.6233367", "0.62255764", "0.621719", "0.62101346", "0.6200951", "0.619502", "0.619232", "0.619232", "0.6183413", "0.6181021", "0.615759", "0.61558163", "0.61554796", "0.6147733", "0.61281437", "0.6089326", "0.6085631", "0.6075461", "0.60736674", "0.6063483" ]
0.69325775
24
Limits the orders to a specific time period
public void setTimePeriod(TimePeriod timePeriod) { assert timePeriod != null; orders = service.getOrdersInPeriod(timePeriod); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setOrdertime(Date ordertime) {\n this.ordertime = ordertime;\n }", "public void setTimeLimit(java.util.Collection timeLimit);", "List<SellOrder> findAscPendingOrdersByPriceTime(Date toTime, BigMoney price, OrderBookId orderBookId, int size);", "public void setOrderTime(Date orderTime) {\n this.orderTime = orderTime;\n }", "private void limit(order ord, ArrayList<order> lim){\n //B\n if (ord.BS.equals(\"B\")){\n System.out.println(\"ord:\" + ord.BS + \" \" + ord.qty + \" \" + ord.price + \" \" + ord.sequence);\n for(int i = 0; i < lim.size(); i++){\n if (ord.price > lim.get(i).price){\n lim.add(i, ord);\n reportClient(i, lim, \"Ord report:\" + ord.sysTime + \",\" + ord.stockNo+\",\"+\n ord.BS+\",\"+ord.qty+\",\"+ord.price);\n break;\n }\n\n if (lim.size()-1 == i){\n lim.add(ord);\n reportClient(i, lim, \"Ord report:\" + ord.sysTime + \",\" + ord.stockNo+\",\"+\n ord.BS+\",\"+ord.qty+\",\"+ord.price);\n break;\n }\n }\n if (lim.size() == 0) {\n lim.add(ord);\n reportClient(0, lim, \"Ord report:\" + ord.sysTime + \",\" + ord.stockNo+\",\"+\n ord.BS+\",\"+ord.qty+\",\"+ord.price);\n }\n }\n\n //S\n if (ord.BS.equals(\"S\")){\n System.out.println(\"ord:\" + ord.BS + \" \" + ord.qty + \" \" + ord.price + \" \" + ord.sequence);\n for(int i = 0; i < lim.size(); i++){\n if (ord.price < lim.get(i).price){\n lim.add(i, ord);\n reportClient(i, lim, \"Ord report:\" + ord.sysTime + \",\" + ord.stockNo+\",\"+\n ord.BS+\",\"+ord.qty+\",\"+ord.price);\n break;\n }\n\n if (lim.size()-1 == i){\n lim.add(ord);\n reportClient(i, lim, \"Ord report:\" + ord.sysTime + \",\" + ord.stockNo+\",\"+\n ord.BS+\",\"+ord.qty+\",\"+ord.price);\n break;\n }\n }\n if (lim.size() == 0) {\n lim.add(ord);\n reportClient(0, lim, \"Ord report:\" + ord.sysTime + \",\" + ord.stockNo+\",\"+\n ord.BS+\",\"+ord.qty+\",\"+ord.price);\n }\n }\n\n allOrder.add(ord);\n //Print\n //System.out.println(\"limit:\" + ord.BS + \" \" + ord.qty + \" \" + ord.price);\n for(int i = 0; i < lim.size(); i++) \n System.out.println(lim.get(i).BS + lim.get(i).price);\n\n }", "private void setTimeLimit() {\n\t\t// Set the minimum time for \"Departing Time\" spinner\n\t\t// based on current selected combo box item\n\t\tview.setModifyTimeLimit(model.getDepartTime(view\n\t\t\t\t.getModifyStationIndex()));\n\t}", "public void setLimitTimestamp (long timestamp);", "void addOrders(List<Order> orders) {\n for (Order order : orders) {\n if (order.stop != null) {\n for (DateTime dt = order.start; !dt.isAfter(order.stop.plusDays(1)); dt = dt.plusDays(1)) {\n getColumnContainingTime(dt); // creates the column if it doesn't exist\n }\n }\n }\n }", "OrderInformation limitOrder(UUID clientID, int size, boolean buying, int tickPrice, boolean dryRun) {\n\n int totalPrice = 0;\n int leftToFill = size;\n UUID orderID = UUID.randomUUID();\n\n // direction allows us to take advantage of the symmetry of bid and ask\n int direction = buying ? 1 : -1;\n synchronized(lock) {\n for(int i = buying ? 0 : maxPrice - 1; i != tickPrice + direction; i += direction) {\n // Check to see if there are orders opposite of my direction\n PurchaseInformation firstOrder = orderBook[i].peekFirst();\n if(firstOrder == null || firstOrder.direction == direction) {\n continue;\n }\n\n int numAtPrice = orderBook[i].size();\n int maxTradeableAtPrice = Math.min(leftToFill, numAtPrice);\n if(maxTradeableAtPrice > 0) {\n totalPrice += maxTradeableAtPrice * i;\n leftToFill -= maxTradeableAtPrice;\n\n if(!dryRun) {\n completeTrades(i, maxTradeableAtPrice);\n }\n }\n if(leftToFill == 0) {\n break;\n }\n }\n\n if(!dryRun) {\n // Add any left over order to the order book\n startTrades(tickPrice, leftToFill, orderID, clientID, direction);\n }\n }\n\n return new OrderInformation(orderID, size - leftToFill, totalPrice, direction);\n }", "protected void deadlineLeasing() {\n log.info(\"OrdersBean : deadlineLeasing\");\n List<OrdersEntity> ordersEntitiesDeadline = ordersServices.findAllOrdersByIdUserAndStatusIsValidate(usersBean.getUsersEntity().getId());\n if (!ordersEntitiesDeadline.isEmpty()) {\n contractsBean.findAllContractsInAllMyOrdersForLeasingAndDeadlineIsLowerThan1Month(ordersEntitiesDeadline);\n }\n }", "@Override\n\tpublic void takeNewOrder() {\n\t\tif(customersInLine.size()>0&&wait==0){\n\t\t\tint customerSelectedIndex = 0;\n\t\t\tfor(int i=0; i<customersInLine.size(); i++){\n\t\t\t\tif(customersInLine.get(i).getTimeToPrepare()<customersInLine.get(customerSelectedIndex).getTimeToPrepare()){\n\t\t\t\t\tcustomerSelectedIndex = i;\n\t\t\t\t}\n\t\t\t}\n\t\t\tsetWait(customersInLine.get(customerSelectedIndex).getTimeToPrepare());\n\t\t\taddToProfit(customersInLine.get(customerSelectedIndex).getCostOfOrder());\n\t\t\tcustomersInLine.remove(customerSelectedIndex);\n\t\t\tcustomersInRestaurant--;\n\t\t}\n\t}", "public void setOldOrderToPaid() {\n\n\t\tDate date = new Date();\n\n\t\tTimestamp ts = new Timestamp(date.getTime());\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\n\t\tString sql = \"UPDATE restodb.order, location set status = 'Paid', state = 'Vacant' where idorder > 0 and date < '\"\n\t\t\t\t+ formatter.format(ts).substring(0, 10) + \" 00:00:00\" + \"'\";\n\n\t\ttry {\n\t\t\tjava.sql.PreparedStatement statement = mysqlConnect.connect().prepareStatement(sql);\n\n\t\t\tstatement.executeUpdate();\n\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tmysqlConnect.disconnect();\n\t\t}\n\n\t}", "public ListScheduler limit(Number limit) {\n put(\"limit\", limit);\n return this;\n }", "public List<Order> retrieveOrders1DayAgo( Date currentDate ) throws OrderException;", "private void handleOrders()\r\n {\r\n // only 4 orders can fit on the screen, so don't do anything if there's already 4\r\n if (orders.size() < 4)\r\n {\r\n orderTimer--;\r\n \r\n if (orderTimer <= 0)\r\n {\r\n // create a new order\r\n Order nextOrder = new Order();\r\n orders.add(nextOrder);\r\n \r\n // find the position\r\n int xPos = 170 * orders.size() + 70;\r\n addObject(nextOrder, xPos, 100);\r\n \r\n // reset the order timer to a new value (between base time - variance & base time + variance)\r\n int baseFrameDelay = calcOrderDelay();\r\n int maxDelay = baseFrameDelay + orderVariance;\r\n int minDelay = baseFrameDelay - orderVariance;\r\n orderTimer = Greenfoot.getRandomNumber(maxDelay - minDelay) + minDelay;\r\n }\r\n }\r\n }", "public void setOrderAndLimit(String orderAndLimit) {\r\n\t\tthis.orderAndLimit = orderAndLimit;\r\n\t}", "public List<TblPurchaseOrder>getAllDataPurchaseOrder(Date startDate,Date endDate,TblPurchaseOrder po,TblSupplier supplier);", "public void setOrderFulfillTime(int currentTime) {\n\t\tString fulfilledTime = Utility.formatToTime(currentTime);\n\t\torderFulfillTime = fulfilledTime;\n\t\tif (currentTime - orderTimeInSecs <= 3600) {\n\t\t\tfeedback = 1;\n\t\t} else if (currentTime - orderTimeInSecs <= 10800) {\n\t\t\tfeedback = 0;\n\t\t} else {\n\t\t\tfeedback = -1;\n\t\t}\n\t}", "public void enforceTimeLimits()\n {\n for (QueryExecution query : queries.values()) {\n if (query.getState().isDone()) {\n continue;\n }\n Duration queryMaxRunTime = SystemSessionProperties.getQueryMaxRunTime(query.getSession());\n Duration queryMaxExecutionTime = SystemSessionProperties.getQueryMaxExecutionTime(query.getSession());\n DateTime executionStartTime = query.getQueryInfo().getQueryStats().getExecutionStartTime();\n DateTime createTime = query.getQueryInfo().getQueryStats().getCreateTime();\n if (executionStartTime != null && executionStartTime.plus(queryMaxExecutionTime.toMillis()).isBeforeNow()) {\n query.fail(new PrestoException(EXCEEDED_TIME_LIMIT, \"Query exceeded the maximum execution time limit of \" + queryMaxExecutionTime));\n }\n if (createTime.plus(queryMaxRunTime.toMillis()).isBeforeNow()) {\n query.fail(new PrestoException(EXCEEDED_TIME_LIMIT, \"Query exceeded maximum time limit of \" + queryMaxRunTime));\n }\n }\n }", "public DeleteCollectionScheduler limit(Number limit) {\n put(\"limit\", limit);\n return this;\n }", "Range alarmLimits();", "public void setDateOrdered (Timestamp DateOrdered);", "public void resetTimeLimit();", "Order setDeliveredStatus(Order order, User user, Date deliveredTime);", "public java.util.Collection getTimeLimit();", "@Override\n\tpublic void getSpecificOrders() {\n\t\t\n\t}", "@Override\n\tpublic void getSpecificOrders() {\n\t\t\n\t}", "@SuppressWarnings(\"all\")\n @Override\n public List<RoomEntity> getFreeRooms(final OrderEntity order) {\n\n String hql =\"FROM RoomEntity R WHERE R.hotel=:hotel AND R.category=:category AND R.size=:sizze AND R NOT IN \" +\n \"(SELECT O.room FROM OrderEntity O WHERE O.hotel=:hotel AND NOT \" +\n \"((O.startDate<:startDate AND O.endDate<:startDate) OR (O.startDate>:endDate AND O.endDate>:endDate)))\";\n\n Query query=getSession().createQuery(hql);\n query.setParameter(\"startDate\", order.getStartDate());\n query.setParameter(\"endDate\", order.getEndDate());\n query.setParameter(\"sizze\", order.getPlaces());\n query.setParameter(\"category\", order.getRoomCategory());\n query.setParameter(\"hotel\", order.getHotel());\n List<RoomEntity> rooms=query.list();\n\n return rooms;\n }", "public List<Stop> getListStopByMoreTime(Date time){\n List<Stop> items = null;\n Session session = beanHibernateUtil.getSession();\n try {\n session.beginTransaction();\n Criteria criteria = session.createCriteria(Stop.class);\n criteria.add(Restrictions.gt(\"arrivalTime\",time.getTime()-2*60*60000));//lay du lieu tu 16h hom trc toi 18h sau tranh luc giao ke hoạch 18h bi thieu 1 stop\n criteria.addOrder(Order.asc(\"arrivalTime\"));//de chuan thi phai ket hop dc ca du lieu arrivalTime va departureTime cong lai moi het dc cac truong hop\n items = criteria.list();\n session.getTransaction().commit();\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n beanHibernateUtil.closeSession(session);\n }\n\n return items;\n }", "@Override\n public void buy(double limitPrice, int quantity) {\n Boolean allBought = false;\n Iterator iter1 = sellOrders.entrySet().iterator();\n while(iter1.hasNext()) {\n HashMap.Entry entry = (HashMap.Entry) iter1.next();\n if(limitPrice >= (Double)entry.getKey()) {\n if(quantity <= (Integer)entry.getValue()) {\n allBought = true;\n sellOrders.put((Double)entry.getKey(),(Integer)entry.getValue()-quantity) ;\n }\n else {\n quantity = quantity - (Integer)entry.getValue();\n sellOrders.put((Double)entry.getKey(),0);\n }\n }\n\n }\n if(!allBought) {\n\n if (buyOrders.containsKey(limitPrice))\n buyOrders.put(limitPrice, buyOrders.get(limitPrice) + quantity);\n else\n buyOrders.put(limitPrice, quantity);\n }\n cleanUp();\n\n }", "private void generateAndSubmitOrder()\n {\n OrderSingle order = Factory.getInstance().createOrderSingle();\n order.setOrderType(OrderType.Limit);\n order.setPrice(BigDecimal.ONE);\n order.setQuantity(BigDecimal.TEN);\n order.setSide(Side.Buy);\n order.setInstrument(new Equity(\"METC\"));\n order.setTimeInForce(TimeInForce.GoodTillCancel);\n if(send(order)) {\n recordOrderID(order.getOrderID());\n }\n }", "void rejectNewOrders();", "public void setBefore(Period before) {\n from = LocalDate.now(ZoneOffset.UTC).minus(before).atStartOfDay();\n }", "@Scheduled(fixedDelay = 15000)\n\tpublic void scheduleFixedDelayTask() {\n\t\t\n\t\tList<Tx> listaTx = txRepo.findAll();\n\t\t\n\t\tfor (Tx tx : listaTx) {\n\t\t\tif(tx.getStatus().equals(TxStatus.PENDING)) {\n\t\t\t\tSystem.out.println(\n\t\t\t\t\t \"Fixed delay task - \" + System.currentTimeMillis() / 20000);\n\t\t\t\t//to be implemented\n\t\t\t\t\n\t\t\t\tString auth = \"Bearer \" + tx.getSbi().getBitcoinAddress();\n\t\t\t\tHttpHeaders headers = new HttpHeaders();\n\t\t\t\theaders.add(\"Authorization\", auth);\n\t\t\t\t\n\t\t\t\tInteger orderId = tx.getorder_id();\n\t\t\t\t\n\t\t\t\tGetOrderResponseDTO getOrderDTO = new GetOrderResponseDTO();\n\t\t\t\t\n\t\t\t ResponseEntity<Object> responseEntity = new RestTemplate().exchange(\"https://api-sandbox.coingate.com/v2/orders/\" + orderId, HttpMethod.GET,\n\t\t\t\t\t\tnew HttpEntity<Object>(getOrderDTO, headers), Object.class);\n\t\t\t \n\t\t\t \n\t\t\t ObjectMapper mapper = new ObjectMapper();\n\t\t\t\tmapper.configure(Feature.ALLOW_UNQUOTED_FIELD_NAMES, true);\n\t\t\t\tGetOrderResponseDTO gorResponse = new GetOrderResponseDTO();\n\t\t\n\t\t\t\tgorResponse = mapper.convertValue(responseEntity.getBody(), GetOrderResponseDTO.class);\n\t\t\n\t\t\t \n\t\t\t System.out.println(\"Order status: \" + gorResponse.getStatus());\n\t\t\t\t\n\t\t\t if(gorResponse.getStatus().equals(\"paid\") || \n\t\t\t \t\tgorResponse.getStatus().equals(\"invalid\") || \n\t\t\t \t\tgorResponse.getStatus().equals(\"expired\") || \n\t\t\t \t\tgorResponse.getStatus().equals(\"canceled\")) {\n\t\t\t \t\n\t\t\t \t//naredne tri linije mi nisu nista jasne zasto sam ovo radio pre mesec dana\n\t\t\t \tTx tx2 = new Tx();\n\t\t \t\ttx2 = txRepo.findByusername(gorResponse.getId());\n\t\t \t\tSystem.out.println(\"TX: \" + tx2.getorder_id());\n\t\t \t\t\n\t\t \t\tRestTemplate restTemplate = new RestTemplate();\n\t\t \t\t\n\t\t \t\tTxInfoDto txInfo;\n\t\t\t \t\n\t\t\t \tif(gorResponse.getStatus().equals(\"paid\")) {\n\t\t\t \t\t\n\t\t\t \t\ttx.setStatus(TxStatus.PAID);\n\t\t\t \t\ttxInfo = new TxInfoDto(tx.getorder_id(), TxStatusReqHandler.SUCCESS, \"https://localhost:8764/bitCoin\");\n\t\t\t \t\t\t\n\t\t\t \t} else if(gorResponse.getStatus().equals(\"invalid\")) {\n\t\t\t \t\ttx.setStatus(TxStatus.FAILED);\n\t\t\t \t\ttxInfo = new TxInfoDto(tx.getorder_id(), TxStatusReqHandler.FAILED, \"https://localhost:8764/bitCoin\");\n\t\t\t \t} else if(gorResponse.getStatus().equals(\"expired\")){\n\t\t\t \t\ttx.setStatus(TxStatus.EXPIRED);\n\t\t\t \t\ttxInfo = new TxInfoDto(tx.getorder_id(), TxStatusReqHandler.FAILED, \"https://localhost:8764/bitCoin\");\n\t\t\t \t} else {\n\t\t\t \t\ttx.setStatus(TxStatus.CANCELED);\n\t\t\t \t\ttxInfo = new TxInfoDto(tx.getorder_id(), TxStatusReqHandler.ERROR, \"https://localhost:8764/bitCoin\");\n\t\t\t \t}\n\t\t\t \t\n\t\t\t \ttxRepo.save(tx);\n\t\t \t\tResponseEntity<TxInfoDto> r = restTemplate.postForEntity(\"https://localhost:8111/request/updateTxAfterPaymentIsFinished\", txInfo, TxInfoDto.class);\n\t\t \t\n\t\t\t \t\n\t\t\t \t\n\t\t\t \t\n\t\t\t \t\n\t\t\t }\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Nikom nista\");\n\t\t\t\tlogger.info(\"Scheduled is working...\");\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Nema transakcija :(\");\n\t\t\n\t/*\tif(IS_CREATE) {\n\t\t\tSystem.out.println(\n\t\t\t\t \"Fixed delay task - \" + System.currentTimeMillis() / 20000);\n\t\t\t\t\t\t \t\n\t\t String authToken = STATIC_TOKEN;\n\t\t \n\t\t\tHttpHeaders headers = new HttpHeaders();\n\t\t\theaders.add(\"Authorization\", authToken);\n\t\t\t\n\t\t\tSystem.out.println(\"authtoken : \" + authToken);\n\t\t \n\t\t\tGetOrderResponseDTO getOrderDTO = new GetOrderResponseDTO();\n\t\t\t\n\t\t ResponseEntity<Object> responseEntity = new RestTemplate().exchange(\"https://api-sandbox.coingate.com/v2/orders/\" + STATIC_ID, HttpMethod.GET,\n\t\t\t\t\tnew HttpEntity<Object>(getOrderDTO, headers), Object.class);\n\t\t \n\t\t \n\t\t ObjectMapper mapper = new ObjectMapper();\n\t\t\tmapper.configure(Feature.ALLOW_UNQUOTED_FIELD_NAMES, true);\n\t\t\tGetOrderResponseDTO gorResponse = new GetOrderResponseDTO();\n\t\n\t\t\tgorResponse = mapper.convertValue(responseEntity.getBody(), GetOrderResponseDTO.class);\n\t\n\t\t \n\t\t System.out.println(\"Order status: \" + gorResponse.getStatus());\n\t\t \n\t\t if(gorResponse.getStatus().equals(\"paid\") || gorResponse.getStatus().equals(\"invalid\") || gorResponse.getStatus().equals(\"expired\")) {\n\t\t \t\n\t\t \t/*Tx tx = new Tx();\n\t \t\ttx = txRepo.findByOrder_Id(gorResponse.getId());\n\t \t\tSystem.out.println(\"TX: \" + tx.getorder_id());\n\t\t \t\n\t\t \tif(gorResponse.getStatus().equals(\"paid\")) {\n\t\t \t\t//promenimo u bazi\n\t\t \t\t//txRepo.getOne((Integer)gorResponse.getId());\n\t\t \t\ttx.setStatus(TxStatus.PAID);\n\t\t \t\t\n\t\t \t} else if(gorResponse.getStatus().equals(\"invalid\")) {\n\t\t \t\ttx.setStatus(TxStatus.FAILED);\n\t\t \t} else {\n\t\t \t\ttx.setStatus(TxStatus.EXPIRED);\n\t\t \t}\n\t\t \t\n\t\t \ttxRepo.save(tx);*/\n\t\t /*\t\n\t\t \tIS_CREATE = false;\n\t\t }\n\t\t\t\t\t \n\t\t\t\t \n\t\t} else {\n\t\t\tSystem.out.println(\"Nikom nista\");\n\t\t\tlogger.info(\"Scheduled is working...\");\n\t\t}*/\n\t\t\n\t \n\t \n\t}", "public Date getOrderTime();", "public void executeRegularMarketMaintenance(OrderManagementContext orderManagementContext_);", "public void setTimePeriod(int timePeriod) {\n this.timePeriod = timePeriod;\n }", "void setCreationDateTimes(final Order order) {\n final LocalDateTime now = LocalDateTime.now();\n order.setCreatedAt(now);\n order.setUpdatedAt(now);\n order.getData().setOrderedAt(now);\n }", "@Override\n public void sell(double limitPrice, int quantity) {\n Boolean allSold = false;\n Iterator iter1 = buyOrders.entrySet().iterator();\n while(iter1.hasNext()) {\n HashMap.Entry entry = (HashMap.Entry)iter1.next();\n if(limitPrice <= (Double)entry.getKey()) {\n if(quantity < (Integer)entry.getValue()) {\n allSold = true;\n buyOrders.put((Double)entry.getKey(),(Integer)entry.getValue()-quantity) ;\n quantity =0;\n break;\n }\n }\n }\n if(!allSold){\n if(sellOrders.containsKey(limitPrice)) sellOrders.put(limitPrice,sellOrders.get(limitPrice) + quantity);\n else sellOrders.put(limitPrice,quantity);\n }\n cleanUp();\n\n\n }", "public void setLimit(Long Limit) {\n this.Limit = Limit;\n }", "public void setLimit(Long Limit) {\n this.Limit = Limit;\n }", "public void changeTimePeriod(int period)\n\t{\n\t\tthis.timePeriod = period;\n\t}", "public void setPeriod(Long Period) {\n this.Period = Period;\n }", "public void setLimit(double limit) {\n\t\tthis.limit = limit;\n\t }", "private void dateRangeChanged(Context context) {\r\n\t\tClientFinanceDate todaydate = new ClientFinanceDate();\r\n\t\tString selectedOption = get(SHOWTRANSACTION_TYPE).getValue();\r\n\t\tif (selectedOption.equals(getMessages().all())) {\r\n\t\t\tstartDate = new ClientFinanceDate(0);\r\n\t\t\tendDate = new ClientFinanceDate(0);\r\n\t\t} else if (selectedOption.equals(getMessages().today())) {\r\n\t\t\tstartDate = todaydate;\r\n\t\t\tendDate = todaydate;\r\n\t\t} else if (selectedOption.equals(getMessages().last30Days())) {\r\n\t\t\tstartDate = new ClientFinanceDate(todaydate.getYear(),\r\n\t\t\t\t\ttodaydate.getMonth() - 1, todaydate.getDay());\r\n\t\t\tendDate = todaydate;\r\n\t\t} else if (selectedOption.equals(getMessages().last45Days())) {\r\n\t\t\tstartDate = new ClientFinanceDate(todaydate.getYear(),\r\n\t\t\t\t\ttodaydate.getMonth() - 2, todaydate.getDay() + 16);\r\n\t\t\tendDate = todaydate;\r\n\t\t}\r\n\t}", "public void setOrder(Order order){\n this.order = order;\n }", "public void setTimeLimitAction(java.lang.String timeLimitAction);", "List<Order> findWaitingActionOrders() throws DaoProjectException;", "@Override\r\n public void setPostpaidLimit(BigDecimal postpaidLimit) {\n }", "@Test\n public void testEditOrder() throws Exception {\n String stringDate1 = \"10012017\";\n LocalDate date = LocalDate.parse(stringDate1, DateTimeFormatter.ofPattern(\"MMddyyyy\"));\n\n String stringDate2 = \"11052020\";\n LocalDate date2 = LocalDate.parse(stringDate2, DateTimeFormatter.ofPattern(\"MMddyyyy\"));\n\n Orders edittedOrder = new Orders(1);\n edittedOrder.setOrderNumber(1);\n edittedOrder.setDate(date2);\n edittedOrder.setCustomerName(\"Jenna\");\n edittedOrder.setArea(new BigDecimal(\"30\"));\n Tax tax = new Tax(\"PA\");\n tax.setState(\"PA\");\n edittedOrder.setTax(tax);\n Product product = new Product(\"Tile\");\n product.setProductType(\"Tile\");\n edittedOrder.setProduct(product);\n service.addOrder(edittedOrder);\n\n Orders oldOrder = service.getOrder(date, 1);\n service.editOrder(oldOrder, edittedOrder);\n\n// Testing order date and product change \n assertEquals(new BigDecimal(\"4.15\"), service.getOrder(edittedOrder.getDate(), edittedOrder.getOrderNumber()).getProduct().getLaborCostPerSqFt());\n assertEquals(new BigDecimal(\"6.75\"), service.getOrder(edittedOrder.getDate(), edittedOrder.getOrderNumber()).getTax().getTaxRate());\n\n try {\n// Testing if order was removed from previous the date after the edit method\n service.getOrder(date, 1).getProduct().getProductType();\n fail(\"Exception was expected\");\n } catch (Exception e) {\n return;\n }\n\n }", "public void setTimePeriod(DateInterval timePeriod) {\n this.timePeriod = timePeriod;\n }", "public void setTimePeriod(DateInterval timePeriod) {\n this.timePeriod = timePeriod;\n }", "public void setLimit(Long limit) {\n this.limit = limit;\n }", "public void timeLogic(int time){\n //Add logic to decide time increments at which tickets will be granted\n }", "public void setTransactionTimeout(Period period)\n {\n _transactionTimeout = period.getPeriod();\n }", "public void setTimeLimitAsArray(Object[] timeLimit);", "private PtoPeriodDTO deductTimeOff(PtoPeriodDTO init) {\n\t\tLong totalRequestedHours = (long) 0;\n\t\t\n\t\tList<PtoRequest> ptoRequests = ptoRequestRepository.findPtoRequestsForEmployee(init.getEmployeeId());\n\t\tfor(PtoRequest p : ptoRequests){\n\t\t\ttotalRequestedHours += p.getHoursRequested();\n\t\t}\n\t\t\n\t\tinit.setHoursRemaining(init.getHoursAllowed() - totalRequestedHours);\n\t\t\n\t\t//Also change the accrued hours to reflect this:\n\t\tLong updateAccrued = init.getHoursAccrued() - totalRequestedHours;\n\t\tinit.setHoursAccrued(updateAccrued);\n\t\t\n\t\treturn init;\n\t}", "public void setPeriod(int period) {\n this.period = period;\n }", "public void setOrderDate(Date orderDate) {\n this.orderDate = orderDate;\n }", "@Override\n\tpublic void handlePeriod() {\n\t}", "public void setUntilDate(Date date);", "void setOrderType(OrderType inOrderType);", "Limits limits();", "public void setValidUntil(Date validUntil);", "void setOrderCapacity(OrderCapacity inOrderCapacity);", "public void setPowerLimit(double limit) {\n\t\tSystem.out.println(\"APPC poer limited to \" + limit);\n\t\tsetPowerRange(-limit, limit);\n\t}", "public static Appointment appointmentIn15Min() {\n Appointment appointment;\n LocalDateTime now = LocalDateTime.now();\n ZoneId zid = ZoneId.systemDefault();\n ZonedDateTime zdt = now.atZone(zid);\n LocalDateTime ldt = zdt.withZoneSameInstant(ZoneId.of(\"UTC\")).toLocalDateTime();\n LocalDateTime ldt2 = ldt.plusMinutes(15);\n String username = UserDB.getCurrentUser().getUserName();\n try (Connection conn =DriverManager.getConnection(DB_URL, user, pass);\n Statement statement = conn.createStatement()) {\n String query = \"SELECT * FROM appointment WHERE start BETWEEN '\" + ldt + \"' AND '\" + ldt2 + \"' AND \" + \n \"createdBy='\" + username + \"'\";\n ResultSet results = statement.executeQuery(query);\n if(results.next()) {\n appointment = new Appointment(results.getInt(\"appointmentId\"), results.getInt(\"customerId\"), results.getString(\"title\"),\n results.getString(\"end\"), results.getString(\"contact\"), results.getString(\"description\"),results.getString(\"location\"), \n results.getTimestamp(\"start\"), results.getTimestamp(\"end\"), results.getDate(\"createDate\"), results.getDate(\"lastupDate\"), results.getString(\"createdBy\"));\n return appointment;\n }\n } catch (SQLException e) {\n System.out.println(\"SQLException: \" + e.getMessage());\n }\n return null;\n }", "public List<Goods> selectOrderByDate(@Param(\"limit\")Integer limit);", "@Test\n public void testGetTimeUntilQuotaConsumedLocked_EdgeOfWindow_AllowedEqualsWindow() {\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (24 * HOUR_IN_MILLIS),\n mQcConstants.MAX_EXECUTION_TIME_MS - 10 * MINUTE_IN_MILLIS, 5),\n false);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (10 * MINUTE_IN_MILLIS), 10 * MINUTE_IN_MILLIS, 5),\n false);\n\n setDeviceConfigLong(QcConstants.KEY_ALLOWED_TIME_PER_PERIOD_EXEMPTED_MS,\n 10 * MINUTE_IN_MILLIS);\n setDeviceConfigLong(QcConstants.KEY_WINDOW_SIZE_EXEMPTED_MS, 10 * MINUTE_IN_MILLIS);\n // window size = allowed time, so jobs can essentially run non-stop until they reach the\n // max execution time.\n setStandbyBucket(EXEMPTED_INDEX);\n synchronized (mQuotaController.mLock) {\n assertEquals(0,\n mQuotaController.getRemainingExecutionTimeLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n assertEquals(mQcConstants.MAX_EXECUTION_TIME_MS - 10 * MINUTE_IN_MILLIS,\n mQuotaController.getTimeUntilQuotaConsumedLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n }\n }", "private Order convertOrderElemeToOrderObj04(ISqlAdapter adapter, String orderId) throws HitspException {\n SimpleDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\r\n SimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss\");\r\n DataTable dtOrderEleme = getOrderElemeInfo(adapter, orderId);\r\n if (dtOrderEleme == null || dtOrderEleme.size() == 0) {\r\n return null;\r\n }\r\n\r\n Order order = new Order();\r\n if (!Converter.toBoolean(dtOrderEleme.get(0, \"book\"))) {\r\n //若该订单非预订单\r\n order.setDeliverTime(null);\r\n } else {\r\n //若该订单为预订单\r\n formatter.setTimeZone(TimeZone.getTimeZone(\"GMT+8\"));\r\n// Date b = formatter.parse(a);\r\n// order.setDeliverTime(Converter.toDate(dtOrderEleme.get(0, \"deliverTime\")));\r\n try {\r\n order.setDeliverTime(formatter.parse(dtOrderEleme.get(0, \"deliverTime\")));\r\n } catch (ParseException e) {\r\n logger.error(\"预计送达时间处理错误\");\r\n }\r\n }\r\n order.setOrderId(dtOrderEleme.get(0, \"orderId\"));\r\n order.setId(Converter.toLong(orderId));\r\n\r\n String udate = dtOrderEleme.get(0, \"activeAt\");\r\n String cdate = dtOrderEleme.get(0, \"createdAt\");\r\n try {\r\n Date uDate = df.parse(udate);\r\n Date cDate = df.parse(cdate);\r\n order.setGmtCreate(cDate);\r\n order.setGmtModify(uDate);\r\n } catch (ParseException e) {\r\n logger.error(\"下单时间处理错误\");\r\n }\r\n\r\n order.setOrderFrom(\"15\");\r\n order.setTotalPrice(Converter.toBigDecimal(dtOrderEleme.get(0, \"totalPrice\")));\r\n order.setOriginalPrice(Converter.toBigDecimal(dtOrderEleme.get(0, \"originalPrice\")));\r\n order.setStatus(\"0\");\r\n String elemeShopId = dtOrderEleme.get(0, \"shopId\");\r\n DataTable dtShop = getShopInfoByElemeShopId(adapter, elemeShopId);\r\n if (dtShop == null || dtShop.size() == 0) {\r\n logger.error(\"饿了么({})门店不存在\", elemeShopId);\r\n return null;\r\n }\r\n\r\n order.setShopId(dtShop.get(0, \"id\"));\r\n order.setShopName(dtShop.get(0, \"name\"));\r\n// order.setShopAddress(dtOrderEleme.get(0, \"address\"));\r\n order.setShopAddress(\"\");//饿了么推送订单中无门店地址,暂置为空\r\n order.setShopPhone(null);\r\n order.setRecipientName(dtOrderEleme.get(0, \"consignee\"));\r\n order.setRecipientAddress(dtOrderEleme.get(0, \"deliveryPoiAddress\"));\r\n\r\n StringBuilder phones = new StringBuilder();\r\n JSONArray phoneList = JSON.parseArray(dtOrderEleme.get(0, \"phoneList\"));\r\n if (phoneList != null) {\r\n for (int i = 0; i < phoneList.size(); i++) {\r\n String phone = phoneList.getString(i);\r\n if (i != 0) {\r\n phones.append(\";\");\r\n }\r\n phones.append(phone);\r\n }\r\n }\r\n order.setRecipientPhone(phones.toString());\r\n\r\n order.setRecipientLongitude(Converter.toBigDecimal(dtOrderEleme.get(0, \"deliveryGeo\").split(\",\")[0]));\r\n order.setRecipientLatitude(Converter.toBigDecimal(dtOrderEleme.get(0, \"deliveryGeo\").split(\",\")[1]));\r\n order.setShippingType(\"10\");\r\n order.setShippingFee(dtOrderEleme.get(0, \"deliverFee\") == null ? BigDecimal.valueOf(0) : Converter.toBigDecimal(dtOrderEleme.get(0, \"deliverFee\")));\r\n order.setShipperName(null);\r\n order.setShipperPhone(null);\r\n order.setHasInvoiced(Converter.toBoolean(dtOrderEleme.get(0, \"invoiced\")));\r\n order.setInvoiceTitle(dtOrderEleme.get(0, \"invoice\"));\r\n order.setPackageFee(Converter.toBigDecimal(dtOrderEleme.get(0, \"packageFee\")));\r\n order.setPayType(Converter.toBoolean(dtOrderEleme.get(0, \"onlinePaid\")) == false ? \"1\" : \"2\");\r\n order.setCaution(dtOrderEleme.get(0, \"description\"));\r\n order.setRemark(\"\");\r\n BigDecimal shopPart = Converter.toBigDecimal(dtOrderEleme.get(0, \"shopPart\"));\r\n if (shopPart.signum() == -1) {\r\n shopPart = shopPart.abs();\r\n }\r\n order.setShopPart(shopPart);\r\n order.setShopIncome(Converter.toBigDecimal(dtOrderEleme.get(0, \"income\")));\r\n BigDecimal serviceFee = Converter.toBigDecimal(dtOrderEleme.get(0, \"serviceFee\"));\r\n if (serviceFee.signum() == -1) {\r\n serviceFee = serviceFee.abs();\r\n }\r\n order.setServiceFee(serviceFee);\r\n// List<OrderDetail> detailList = convertOrderElemeToOrderDetailList(adapter, dtOrderEleme);\r\n List<OrderDetail> detailList = convertOrderElemeToOrderDetailList04(adapter, dtOrderEleme, dtShop.get(0, \"id\"));\r\n order.setDetail(detailList);\r\n return order;\r\n }", "public void setPeriod(int periodInYears) {\nnumberOfPayments = periodInYears * MONTHS;\n}", "void invalidateOrder(long orderId);", "public void payForOrder(){\n\t\tcurrentOrder.setDate(new Date()); // setting date to current\n\t\t\n\t\t//Checking if tendered money is enough to pay for the order.\n\t\tfor(;;){\n\t\t\tJOptionPane.showMessageDialog(this.getParent(), new CheckoutPanel(currentOrder), \"\", JOptionPane.PLAIN_MESSAGE);\n\t\t\tif(currentOrder.getTendered().compareTo(currentOrder.getSubtotal())==-1){\n\t\t\t\tJOptionPane.showMessageDialog(this.getParent(), \"Not enough money tendered\", \"Error\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\t//Setting order number.\n\t\tSimpleDateFormat df = new SimpleDateFormat(\"yyyyMMdd\");\n\t\tString str = df.format(currentOrder.getDate());\n\t\tString number = Integer.toString(till.getOrders().size()+1) +\"/\"+str;\n\t\tcurrentOrder.setNumber(number);\n\t\t\n\t\t//Setting customer name.\n\t\tcurrentOrder.setCustomerName(custNameField.getText());\n\t\t\n\t\t//Adding current order to orders list.\n\t\ttill.getOrders().add(currentOrder); \n\t\t\n\t\t//Displays the receipt.\n\t\tJOptionPane.showMessageDialog(this.getParent(), new ReceiptPanel(currentOrder), \"Receipt\", \n\t\t\t\tJOptionPane.PLAIN_MESSAGE);\n\t\t\n\t\t//Resets OrderPanel.\n\t\tthis.resetOrder();\n\t}", "public CancelOrderRequest( LocalDateTime time, int orderId, String tag ) {\n super( time, orderId, tag );\n }", "void setOrder(Order order);", "void setOrderwithdate() {\r\n\r\n\t\tOrderAbyDate oad = new OrderAbyDate();\r\n\r\n\t\tMap<Integer, Map<Integer, Integer>> data = oad.getOrderByDate();\r\n\r\n\t\tjava.util.List<Integer> ls = new ArrayList<>(data.keySet());\r\n\r\n\t\tfor (int i = 0; i < ls.size(); i++) {\r\n\r\n\t\t\tdropyear1.getItems().add(\"\" + ls.get(i));\r\n\r\n\t\t}\r\n\r\n\t\tif (ls.size() > 0) {\r\n\r\n\t\t\tdropyear1.getSelectionModel().selectedItemProperty()\r\n\t\t\t\t\t.addListener(new ChangeListener<String>() {\r\n\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void changed(\r\n\t\t\t\t\t\t\t\tObservableValue<? extends String> observable,\r\n\t\t\t\t\t\t\t\tString oldValue, String newValue) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\r\n\t\t\t\t\t\t\tsetBarchartorder(\r\n\t\t\t\t\t\t\t\t\tdata.get(Integer.parseInt(newValue)),\r\n\t\t\t\t\t\t\t\t\tnewValue);\r\n\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\r\n\t\t\tdropyear1.getSelectionModel().select(0);\r\n\r\n\t\t}\r\n\r\n\t}", "public TimePeriod notWorking(TimePeriod period);", "public LimitDayAndMonthByCpn() {\r\n\t\tthis.mydb = new DBForMT();\r\n\t}", "public void cancelOrder() {\n order.clear();\n }", "void loadOrders(String date)\n throws FlooringMasteryPersistenceException;", "@Test\n public void testGetTimeUntilQuotaConsumedLocked_AllowedEqualsWindow() {\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (8 * HOUR_IN_MILLIS), 20 * MINUTE_IN_MILLIS, 5), false);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (10 * MINUTE_IN_MILLIS), 10 * MINUTE_IN_MILLIS, 5),\n false);\n\n setDeviceConfigLong(QcConstants.KEY_ALLOWED_TIME_PER_PERIOD_EXEMPTED_MS,\n 10 * MINUTE_IN_MILLIS);\n setDeviceConfigLong(QcConstants.KEY_WINDOW_SIZE_EXEMPTED_MS, 10 * MINUTE_IN_MILLIS);\n // window size = allowed time, so jobs can essentially run non-stop until they reach the\n // max execution time.\n setStandbyBucket(EXEMPTED_INDEX);\n synchronized (mQuotaController.mLock) {\n assertEquals(0,\n mQuotaController.getRemainingExecutionTimeLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n assertEquals(mQcConstants.MAX_EXECUTION_TIME_MS - 30 * MINUTE_IN_MILLIS,\n mQuotaController.getTimeUntilQuotaConsumedLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE));\n }\n }", "@RequestMapping(path = \"/specificDeliveryIssues\", method = RequestMethod.GET)\n\tpublic List<DeliveryIssue> getIssuesByTimeframe(Date from, Date to) {\n\t\tQuery queryObject = new Query(\"Select * from delivery_issue\", \"blablamove\");\n\t\tQueryResult queryResult = BlablamovebackendApplication.influxDB.query(queryObject);\n\n\t\tInfluxDBResultMapper resultMapper = new InfluxDBResultMapper();\n\t\tList<DeliveryIssue> deliveryIssueList = resultMapper\n\t\t\t\t.toPOJO(queryResult, DeliveryIssue.class);\n\n\t\treturn deliveryIssueList.stream().filter(\n\t\t\t\tdeliveryIssue -> !instantIsBetweenDates(\n\t\t\t\t\t\tdeliveryIssue.getTime(),\n\t\t\t\t\t\tLocalDateTime.ofInstant(\n\t\t\t\t\t\t\t\tto.toInstant(), ZoneOffset.UTC\n\t\t\t\t\t\t),\n\t\t\t\t\t\tLocalDateTime.ofInstant(\n\t\t\t\t\t\t\t\tfrom.toInstant(), ZoneOffset.UTC\n\t\t\t\t\t\t)\n\t\t\t\t)\n\t\t).collect(Collectors.toList());\n\t}", "public void setTimeLimit(long value) {\n\t\ttimeLimit = value;\n\t}", "void prepareOrder(int orderId);", "public void setPeriod(double value) {\n this.period = value;\n }", "Order setAsInCharge(Order order, User user);", "public Future<List<cn.vertxup.psi.domain.tables.pojos.POutTicket>> findManyByApprovedAt(Collection<LocalDateTime> values, int limit) {\n return findManyByCondition(POutTicket.P_OUT_TICKET.APPROVED_AT.in(values),limit);\n }", "public void setOrders(ArrayList<Order> orders) {\n this.orders = orders;\n }", "public static void removeOrder (String timestamp, String order_id, int size) throws Exception {\n\t\tDouble min_buy_price, max_sell_price;\n\t\tOrder order_to_remove = id_to_order.get(order_id);\n\t\tString side = order_to_remove.getSide();\n\t\tdouble price = order_to_remove.getPrice();\n\n\t\tif(\"S\".equals(side)){//remove an offer\n\t\t\tmin_buy_price = buyer.removeOffer(price,size);\n\n\t\t\t//check to see if there is a new minimum buy price\n\t\t\tif(min_buy_price == null){}//do nothing, no change in min buy price\n\t\t\telse if(min_buy_price == Double.POSITIVE_INFINITY){//there are no longer enough shares to complete the buy\n\t\t\t\tSystem.out.println(timestamp +\" B NA\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(timestamp +\" B \"+ String.format(\"%.2f\", min_buy_price));\n\t\t\t}\n\t\t} else {//remove a bid\n\t\t\tmax_sell_price = seller.removeBid(price,size);\n\n\t\t\t//check to see if there is a new maximum sale price\n\t\t\tif(max_sell_price == null){}//do nothing, no change in max sell price\n\t\t\telse if(max_sell_price == Double.NEGATIVE_INFINITY){//there are no longer enough shares to complete the sale\n\t\t\t\tSystem.out.println(timestamp +\" S NA\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(timestamp +\" S \"+ String.format(\"%.2f\", max_sell_price));\n\t\t\t}\n\t\t}\n\n\t}", "public void findAllMyOrders() {\n log.info(\"OrdersBean : findAllMyOrders\");\n FacesContext context = FacesContext.getCurrentInstance();\n\n ordersEntities = ordersServices.findAllByIdUsersAndStatusIsValidateOrCanceled(usersBean.getUsersEntity().getId());\n if (ordersEntities.isEmpty()) {\n context.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_INFO, JsfUtils.returnMessage(getLocale(), \"fxs.modalContractsOrder.listOrderEmpty\"), null));\n } else {\n deadlineLeasing();\n }\n }", "public void setPeriod(String period) {\n this.period = period;\n }", "public void setPeriod(String period) {\n this.period = period;\n }", "public void setOrder(List<Order> order) {\n this.order = order;\n }", "public void setActualBuyingTime(Date actualBuyingTime) {\n this.actualBuyingTime = actualBuyingTime;\n }", "public void setPriceLimitEntered (BigDecimal PriceLimitEntered);", "public void setLimit(int limit) {\n this.limit = limit;\n }", "@Scheduled(fixedRate = 500)\n public void processStatisticsUntil() {\n List<Transaction> allByTimestampAfter = transactionRepository.findAllByTimestampAfter(Instant.now().toEpochMilli() - minuteInMillis);\n Statistics statistics = statisticsCache.getStatistics();\n DoubleSummaryStatistics amountSummaryStatistics = allByTimestampAfter.stream().mapToDouble(Transaction::getAmount).summaryStatistics();\n statistics.setAvg(amountSummaryStatistics.getAverage());\n statistics.setCount(amountSummaryStatistics.getCount());\n statistics.setMax(amountSummaryStatistics.getMax());\n statistics.setMin(amountSummaryStatistics.getMin());\n statistics.setSum(amountSummaryStatistics.getSum());\n log.debug(\"stats {} \", statistics);\n }", "public void setLimit(int limit) {\n this.limit = limit;\n }", "public void setOverdraftLimit(double overdraftLimit) {\n\t\tthis.overdraftLimit = overdraftLimit;\n\t}", "public void setLimit(int limit) {\n this.limit=limit;\n }" ]
[ "0.5541341", "0.546412", "0.5422921", "0.5394063", "0.5392959", "0.533372", "0.52960134", "0.5219649", "0.51138014", "0.5074322", "0.5037221", "0.4977457", "0.4960507", "0.49578923", "0.49497062", "0.49278817", "0.49244457", "0.4914907", "0.48739752", "0.48263162", "0.47726727", "0.47699288", "0.47467965", "0.47439006", "0.4729883", "0.4726075", "0.4726075", "0.47222748", "0.47162953", "0.47126937", "0.4707239", "0.46944398", "0.46619797", "0.46578306", "0.46550483", "0.4650042", "0.46468726", "0.46196193", "0.46173254", "0.4607746", "0.4607746", "0.459715", "0.45863467", "0.45857626", "0.4582659", "0.45823917", "0.4581412", "0.45715946", "0.45661652", "0.45644972", "0.45620745", "0.45620745", "0.45612255", "0.4557421", "0.45480466", "0.45479095", "0.45342192", "0.45272452", "0.4526609", "0.4526044", "0.45145974", "0.4512235", "0.45074454", "0.4503816", "0.45016667", "0.4495903", "0.44928378", "0.44889137", "0.44875613", "0.4486752", "0.44862914", "0.44817683", "0.4465808", "0.4464066", "0.44612873", "0.44593814", "0.44576317", "0.445554", "0.44515705", "0.44411898", "0.44279647", "0.44246718", "0.44243786", "0.44195274", "0.44181442", "0.44153735", "0.4410637", "0.44052738", "0.4399115", "0.43965158", "0.43958762", "0.43958762", "0.43948713", "0.43889865", "0.43880406", "0.43737233", "0.43675694", "0.43652722", "0.43613818", "0.43606952" ]
0.56786364
0
Modified the Read function
private byte[] read(SelectionKey key) throws IOException { SocketChannel channel = (SocketChannel)key.channel(); readBuffer.clear(); int length = channel.read(readBuffer); byte[] data = null; // Checking whether length is negative, to overcome java.lang.NegativeArraySizeException -- Aditya if (length == -1) { mClientStatus.remove(channel); clients--; channel.close(); key.cancel(); throw new IOException("No data found"); }else { readBuffer.flip(); data = new byte[length]; readBuffer.get(data, 0, length); } return data; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract void read();", "Read createRead();", "@SuppressWarnings(\"unused\")\n private void _read() {\n }", "public void ownRead();", "@Override\n\tpublic void read() {\n\n\t}", "String read();", "String read();", "@Override\r\n\tpublic void read() {\n\r\n\t}", "abstract protected boolean read();", "@Override\n\tpublic void readData() {\n\t\t\n\t}", "@Override\n\tpublic int read() {\n\t\treturn super.read();\n\t}", "protected abstract Reader read() throws IOException;", "public String read();", "protected abstract Object read ();", "void read ();", "boolean getRead();", "@Override\n\tpublic void read(InStream inStream) {\n\t}", "private void read(){\n try {\n if (c != -1) c = r.read();\n } catch (IOException e){\n throw new IOError(e);\n }\n }", "public void read() {\n\t\tthis.isRead = true;\n\t}", "@Override\n public int read() throws IOException\n {\n if (_tmpBuffer == null) {\n _tmpBuffer = new char[1];\n }\n if (read(_tmpBuffer, 0, 1) < 1) {\n return -1;\n }\n return _tmpBuffer[0];\n }", "public abstract byte[] read() throws IOException, IllegalArgumentException , IllegalStateException;", "public byte[] read();", "protected void writeRead ()\n {\n stream.println (\" public void _read (org.omg.CORBA.portable.InputStream i)\");\n stream.println (\" {\");\n if (entry instanceof ValueBoxEntry)\n {\n TypedefEntry member = ((InterfaceState) ((ValueBoxEntry) entry).state ().elementAt (0)).entry;\n SymtabEntry mType = member.type ();\n if (mType instanceof StringEntry)\n stream.println (\" value = i.read_string ();\");\n\n else if (mType instanceof PrimitiveEntry)\n stream.println (\" value = \" + helperClass + \".read (i).value;\");\n\n else\n stream.println (\" value = \" + helperClass + \".read (i);\");\n }\n else\n stream.println (\" value = \" + helperClass + \".read (i);\");\n stream.println (\" }\");\n stream.println ();\n }", "@Override\n public int read() throws IOException {\n return input.read();\n }", "public abstract void read(DataInput input) throws IOException;", "public int read(int i);", "private void readObject() {}", "private void readObject() {}", "private void readObject() {}", "protected void doBeginRead() throws Exception {}", "int getBytesRead() {\n \treturn _read + _o;\n }", "public abstract void readData(DataInput din) throws IOException;", "byte[] readBytes();", "boolean hasRead();", "void read(Buffer buffer);", "boolean getForRead();", "@Override\r\n\tpublic void read(DataInput in) throws IOException {\n\t\t\r\n\t}", "@Override\n\tpublic int read() throws IOException {\n\t\tif (buf.isReadable()) {\n return buf.readByte() & 0xff;\n }\n return -1;\n\t}", "@Override\n\tpublic int[] read() {\n\t\treturn null;\n\t}", "@Override\n\tpublic int[] read() {\n\t\treturn null;\n\t}", "@Override\n\tpublic int[] read() {\n\t\treturn null;\n\t}", "public Object read() throws IOException, RecordIOException;", "@Override\n\tpublic void read(Object entidade) {\n\t\t\n\t}", "public Object read();", "protected abstract int readInternal(int index);", "private static String readAll(Reader rd) throws IOException {\n\t\t StringBuilder sb = new StringBuilder();\n\t\t int cp;\n\t\t while ((cp = rd.read()) != -1) {\n\t\t sb.append((char) cp);\n\t\t }\n\t\t return sb.toString();\n\t\t }", "public abstract void read(NetInput in) throws IOException;", "protected abstract Reader getReader() throws IOException;", "private void doRead() throws IOException {\n\t\t\tvar res = sc.read(bb);\n\n\t\t\tif ( res == -1 ) {\n\t\t\t\tlogger.info(\"Connection closed with the client.\");\n\t\t\t\tclosed = true;\n\t\t\t}\n\n\t\t\tupdateInterestOps();\n\t\t}", "StreamReader underlyingReader();", "private void readObject() {\n }", "abstract int read(TextInput ti) throws IOException;", "@Override\n\tpublic void readImpl()\n\t{\n\t\t_degree = readD();\n\t\t_side = readD();\n\t}", "public T read() throws IOException;", "@Override\n public int read() throws IOException {\n int r = -1;\n \n if (encryptedDataBuffer!=null && pos>=encryptedDataBuffer.length && !closed)\n fillBuffer();\n \n if (encryptedDataBuffer!=null && pos<encryptedDataBuffer.length)\n r = (int)encryptedDataBuffer[pos++]; // next element in the buffer\n return r;\n }", "String readString();", "public int read() throws IOException {\n/* 173 */ long next = this.pointer + 1L;\n/* 174 */ long pos = readUntil(next);\n/* 175 */ if (pos >= next) {\n/* 176 */ byte[] buf = this.data.get((int)(this.pointer >> 9L));\n/* */ \n/* 178 */ return buf[(int)(this.pointer++ & 0x1FFL)] & 0xFF;\n/* */ } \n/* 180 */ return -1;\n/* */ }", "void read(StreamOption streamOpt);", "private int read()\n\t{\n\t\ttry{\n\t\t\twhile(dev_in.available()==0);\n\t\t\treturn dev_in.read();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\t\n\t\t}\n\t\treturn -1;\n\t}", "private String read() {\n\n String s = \"\";\n\n try {\n // Check if there are bytes available\n if (inStream.available() > 0) {\n\n // Read bytes into a buffer\n byte[] inBuffer = new byte[1024];\n int bytesRead = inStream.read(inBuffer);\n\n // Convert read bytes into a string\n s = new String(inBuffer, \"ASCII\");\n s = s.substring(0, bytesRead);\n }\n\n } catch (Exception e) {\n Log.e(TAG, \"Read failed!\", e);\n }\n\n return s;\n }", "int read(long pos, byte[] buf)throws IOException;", "protected abstract Object readFile(BufferedReader buf) throws IOException, FileParseException;", "public void doRead() throws IOException {\n if (sc.read(bbin) == -1) {\n closed = true;\n }\n processIn();\n updateInterestOps();\n }", "public int read() throws IOException;", "private int castingRead(byte[] outputBuf, int off, int len)\n throws IOException {\n if (charBuffer == null) {\n charBuffer = new char[DEFAULT_BUFFER_CAPACITY];\n }\n if (len > DEFAULT_BUFFER_CAPACITY) {\n len = DEFAULT_BUFFER_CAPACITY;\n }\n int numRead = in.read(charBuffer, 0, len);\n for (int ix=0; ix<numRead; ix++) {\n outputBuf[off+ix] = (byte)charBuffer[ix];\n }\n return numRead;\n }", "@Override\n public void doRead() throws IOException {\n if (sc.read(bbin) == -1) {\n state = State.CLOSED;\n }\n processIn();\n updateInterestOps();\n }", "@Override\n public int read() throws IOException {\n if (pos >= count) {\n fill();\n if (pos >= count) {\n return -1;\n }\n }\n checkIfClosed();\n return buf[pos++] & 0xFF;\n }", "static String readString() throws IOException{\n return bufferedReader.readLine();\n }", "private String readAll(Reader rd) throws IOException {\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tint cp;\r\n\t\twhile ((cp = rd.read()) != -1) {\r\n\t\t\tsb.append((char) cp);\r\n\t\t}\r\n\t\treturn sb.toString();\r\n\t}", "public byte[] read()\n {\n\t\t//byte[] responseData = ISOUtil.hex2byte(\"070088888888\");\n\t\tbyte[] responseData = null;\n try\n {\n\t\t\tlong start = System.currentTimeMillis();\n\t\t\tlong end = System.currentTimeMillis();\n\n\t\t\t\twhile ((end - start) < 45000)\n\t\t\t\t{\n System.out.println(\"++++++ If parameters : read() : \"+inputdata+\" : \"+dataRec);\n\t\t\t\t\tif (inputdata != null && dataRec)\n\t\t\t\t\t{\n System.out.println(\"INSIDE IF -read()\");\n\t\t\t\t\t\tresponseData = ISOUtil.hex2byte(inputdata);\n\t\t\t\t\t\tdataRec=false;\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t} else\n\t\t\t\t\t{\n System.out.println(\"INSIDE else -read()\");\n\t\t\t\t\t\tend = System.currentTimeMillis();\n\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t}\n\t\t\t\t}\n\n }\n catch(Exception e)\n {\n System.err.println(\"ConnectionHandlerLocal$WriterThread.run(): Interrupted!\");\n ezlink.info(\"SerialConnection : read() - Exception: \");\n ezlink.error(new Object(), e);\n }\n finally\n\t\t{\n\t\t\tSystem.out.println(\"&&&&&&&&&& In Finally... &&&&&&&\");\n ezlink.info(\"&&&&&&&&&& In Finally... &&&&&&& \");\n\t\t\tdataHandler.strISODump.setLength(0);\n\t\t\tif(sPort!=null)\n\t\t\t{\n\t\t\t\tsPort.close();\n\t\t\t\tSystem.out.println(\"Port Closed\");\n ezlink.info(\"&&&&&&&&&& Port Closed... &&&&&&& \");\n\t\t\t}\n\t \t}\n\n\t \tSystem.out.println(\"inside read() : ReadData=\"+new String(responseData));\n ezlink.info(\"ReadData= : \"+new String(responseData));\n\n return responseData;\n }", "@Override\n\tpublic int read(byte[] b, int off, int len) {\n\t\treturn super.read(b, off, len);\n\t}", "private void read() {\n\t\tticketint = preticketint.getInt(\"ticketint\", 0);\r\n\t\tLog.d(\"ticketint\", \"ticketint\" + \"read\" + ticketint);\r\n\t}", "@Override\n\tpublic void readCB(CB cb) {\n\t\t\n\t}", "public void doReads(Reader reader) throws IOException;", "protected abstract E readFile() throws Exception;", "@Override\n\tpublic int read() {\n\t\tint lowByte = getFirstArg();\n\t\tint highByte = getSecondArg();\n\t\tint address = highByte;\n\t\taddress = address << 8;\n\t\taddress |= lowByte;\n\t\treturn CpuMem.getInstance().readMem(address);\n\t}", "public String read() {\n\t\tString Line = \"\";\n\t\tInteger[] byteCodes = compressFileReader();\n\t\tif (byteCodes == null)\n\t\t\treturn null;\n\t\tint index = 0;\n\t\tint nextCode = byteCodes[index++];\n\t\tString val = readingMap[nextCode];\n\n\t\twhile (index < byteCodes.length - 1) {\n\t\t\tLine += val;\n\t\t\tnextCode = byteCodes[index++];\n\t\t\tString s = readingMap[nextCode];\n\t\t\tif (s == null) {\n\t\t\t\t@SuppressWarnings(\"unused\")\n\t\t\t\tint i = 0;\n\t\t\t}\n\t\t\tif (readingkeysCount == nextCode)\n\t\t\t\ts = val + val.charAt(0);\n\t\t\tif (readingkeysCount < 256 + keysPossible)\n\t\t\t\treadingMap[readingkeysCount++] = val + s.charAt(0);\n\t\t\tval = s;\n\t\t}\n\t\tLine += val;\n\t\treturn Line + '\\n';\n\t}", "public boolean read() {\n return this.read;\n }", "public int getReadLength() {\r\n \t\treturn readLength;\r\n \t}", "public void read(DataInputStream in) throws IOException;", "@Override\n public Ini read(InputStream in) throws IOException {\n return read(new InputStreamReader(in));\n }", "@Override\n\tpublic void readData(DataInputStream input) throws IOException {\n\t\t\n\t}", "private String readResult() throws IOException {\n return reader.readLine();\n }", "public String read() throws IOException {\n return reader.readLine();\n }", "public boolean getRead()\n\t{\n\t\treturn this.read;\n\t}", "@Override\n\tpublic Object readObject() {\n\t\treturn super.readObject();\n\t}", "private synchronized String readString(int len) throws IOException {\n\t\tread(bytes, len);\n\t\treturn readString(bytes, 0, len);\n\t}", "@Override\r\n\tprotected Object readObject() throws IOException, SerializeException {\r\n\t\treturn AdvancedDeserializerUtil.readObject(super.readObject());\r\n\t}", "static String read ()\r\n \t{\r\n \t\tString sinput;\r\n \r\n \t\ttry\r\n \t\t{\r\n \t\t\tsinput = br.readLine();\r\n \t\t}\r\n \t\tcatch (IOException e)\r\n \t\t{\r\n \t\t\tErrorLog.addError(\"Input exception occured in command line interface!\");\r\n \t\t\treturn null; //Menu will exit when fed a null\r\n \t\t}\r\n \t\treturn sinput;\r\n \t}", "private static String readAll(Reader rd) throws IOException {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint cp;\n\t\twhile ((cp = rd.read()) != -1) {\n\t\t\tsb.append((char) cp);\n\t\t}\n\t\treturn sb.toString();\n\t}", "private static String readAll(Reader rd) throws IOException {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint cp;\n\t\twhile ((cp = rd.read()) != -1) {\n\t\t\tsb.append((char) cp);\n\t\t}\n\t\treturn sb.toString();\n\t}", "@Override\n protected int read0() throws IOException {\n if (this.delegate.hasRemaining()) {\n return this.delegate.get() & 0xFF;\n } else {\n return RESULT_EOF;\n }\n }", "public void execHandlerRead( Message msg ) {\n\t \t// create valid data bytes\n\t\tbyte[] buffer = (byte[]) msg.obj;\n\t\tint length = (int) msg.arg1;\n\t\tbyte[] bytes = new byte[ length ];\n\t\tfor ( int i=0; i < length; i++ ) {\n\t\t\tbytes[ i ] = buffer[ i ];\n\t\t}\n\t\t// debug\n\t\tString read = buildMsgBytes( \"r \", bytes );\n\t\tlog_d( read );\n\t\taddAndShowTextViewDebug( read );\n\t\tnotifyRead( bytes );\n\t}", "@Override\n public int read(byte[] bytes, int offset, int count) throws IOException {\n return updateBytesRead(super.read(bytes, offset, count));\n }", "int readFrom(byte[] iStream, int pos, ORecordVersion version);", "public abstract void readFields(DataInput in) throws IOException;", "int read(byte[] buffer, int bufferOffset, int length) throws IOException;", "@Override\r\n\tpublic void reading() {\n\t\tSystem.out.println(\"reading\");\r\n\t}", "@Override\r\n protected void readImpl() {\r\n _recipeId = readD();\r\n }", "public boolean read() {\n return so;\n }", "public void read() throws IOException {\n\t\twhile (this.in.getReadBytes() != size) {\n\t\t\tString chunkID;\n\t\t\ttry {\n\t\t\t\tchunkID = readString(4);\n\t\t\t} catch (EmptyReadException e) {\n\t\t\t\t/**\n\t\t\t\t * T4L bug 15259: Some encoders must write a byte \"0\" to signify\n\t\t\t\t * EOF?\n\t\t\t\t */\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tlong chunkSize = readLong(4);\n\t\t\treadChunk(chunkID, chunkSize);\n\t\t}\n\t}" ]
[ "0.7949624", "0.7754508", "0.7678741", "0.76637", "0.76259017", "0.7440607", "0.7440607", "0.74235344", "0.7399027", "0.7378351", "0.7331124", "0.7291427", "0.7289133", "0.71746314", "0.71740997", "0.70799875", "0.68546355", "0.6830314", "0.67847866", "0.6717993", "0.6709591", "0.6699452", "0.66634023", "0.66517234", "0.6644267", "0.6617243", "0.66147995", "0.66147995", "0.66147995", "0.6608626", "0.66017807", "0.65782374", "0.65704656", "0.65481895", "0.6548178", "0.6528263", "0.6511712", "0.650803", "0.64971125", "0.64971125", "0.64971125", "0.6496882", "0.6483651", "0.64834714", "0.6480866", "0.6448016", "0.6441919", "0.6426402", "0.63888276", "0.6371732", "0.63688284", "0.6358939", "0.6348755", "0.6341831", "0.6340241", "0.63378227", "0.6334792", "0.6325937", "0.6320419", "0.63080674", "0.62976724", "0.62796634", "0.62742263", "0.62633044", "0.6261293", "0.6260008", "0.6259389", "0.6259378", "0.62568027", "0.6255869", "0.6243898", "0.6241186", "0.62281424", "0.62251073", "0.62155366", "0.62116957", "0.62085587", "0.61986", "0.61933935", "0.61890644", "0.6179412", "0.6173484", "0.6165247", "0.6160699", "0.61603105", "0.61423033", "0.6136389", "0.6131713", "0.6131463", "0.6125751", "0.6125751", "0.61235064", "0.6118748", "0.6116664", "0.61077636", "0.6105882", "0.61032844", "0.6095916", "0.60956234", "0.6093673", "0.6093396" ]
0.0
-1
Quick sampling of the data received
private StringBuilder byteToStringBuilder(byte[] data) { StringBuilder sbLog = new StringBuilder(); for (byte b : data) { sbLog.append(String.format("%02x", new Object[] { b })); } //System.out.println(" data packet : "+ sbLog); return sbLog; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double sample();", "public void getNextRawSamples( double[] rawBuffer );", "public static void sample() {\n System.out.println(\"# 1\");\n Observable.fromIterable(sData)\n .timestamp()\n .sample(1000, TimeUnit.MICROSECONDS)\n .subscribe(new MyObserver<>());\n\n /*\n Emission controlled by sampler inner observable\n */\n System.out.println(\"# 2\");\n Observable.fromIterable(sData)\n .sample((observer) -> {\n System.out.println(\"emitter\");\n Observable.just(\"123\").subscribe(observer);\n }, true).subscribe(new MyObserver<>());\n }", "public double getNextRawSample();", "public void sample() {\n getFunctionEstimator().sample();\n }", "double sample()\n\t{\n\t\treturn rb.peek();\n\t}", "public abstract double sample();", "private void readData()\n {\n while(System.currentTimeMillis() - start <= durationMillis)\n {\n counters.numRequested.incrementAndGet();\n readRate.acquire();\n\n if (state.get() == SimulationState.TEARING_DOWN)\n break;\n }\n }", "int pauseSamples() {\n return 0;\n }", "private long getSampleTime() {\n return System.currentTimeMillis();\n\n }", "int getSampleMs();", "static void run_sample(int i)\r\n\t{\r\n\t}", "int nextSample(final double mean);", "@Override\r\n\tpublic float getSample(long us) {\n\t\treturn 0;\r\n\t}", "public void readSampless(){\n\t\tif (loop) {\n\t\t\treadBytesLoop();\n\t\t} else {\n\t\t\treadBytes();\n\t\t}\n\t\t// convert them to floating point\n\t\t// hand those arrays to our effect\n\t\t// and convert back to bytes\n\t\tprocess();\n\t\t\n\t\t// write to the line.\n\t\twriteBytes();\n\t\t// send samples to the listener\n\t\t// these will be what we just put into the line\n\t\t// which means they should be pretty well sync'd\n\t\t// with the audible result\n\t\tbroadcast();\n\t}", "public void setSamples(int samples){ \n this.samples = samples; \n }", "public void insertNextSample( byte[] buffer, int byteOffset );", "int sampleOffset();", "int pauseSample() {\n return 0;\n }", "boolean startSample(int loopCount, float gain, int delay) {\n if (debugFlag)\n debugPrint(\"JSChannel: startSample must be overridden\");\n return false;\n }", "public void updateSamples();", "void setSamplingIntervalMs(long ms);", "public interface Sampler<T> {\n\n T sample();\n}", "private void run() {\n\t\tfor (int i = 0; i < 1000; i++){\n\t\t\t\n\t\t\tdouble sample = Math.random()*2.0;\n\t\t\tdataset.addObservation(sample);\n\t\t\t\n\t\t\t// stats\n\t\t\tsum += sample;\n\t\t\tn++;\n\t\t\tav = sum/n;\n\n\t\t\t// create new xy dataset\n\t\t\n\t\t\ttry {Thread.sleep(1000L);} catch (Exception e) {}\n\t\t\t\n\t\t}\n\t\t\n\t\t \n\t}", "Sample start();", "public static void resample(){\n System.out.println(\"Type in how many random people you want in the db\");\n String s = sc.nextLine();\n int sampleSize = getValidSampleCount(s);\n Db.getDb().resampleDb(sampleSize);\n System.out.println(\"New sample of \" + s + \" generated.\");\n }", "private static void sample1(ScoredDocIDs collection, int collectionSize, int[] sample, long[] times) \n throws IOException {\n ScoredDocIDsIterator it = collection.iterator();\n if (returnTimings) {\n times[0] = System.currentTimeMillis();\n }\n int sampleSize = sample.length;\n int prime = findGoodStepSize(collectionSize, sampleSize);\n int mod = prime % collectionSize;\n if (returnTimings) {\n times[1] = System.currentTimeMillis();\n }\n int sampleCount = 0;\n int index = 0;\n for (; sampleCount < sampleSize;) {\n if (index + mod < collectionSize) {\n for (int i = 0; i < mod; i++, index++) {\n it.next();\n }\n } else {\n index = index + mod - collectionSize;\n it = collection.iterator();\n for (int i = 0; i < index; i++) {\n it.next();\n }\n }\n sample[sampleCount++] = it.getDocID();\n }\n if (returnTimings) {\n times[2] = System.currentTimeMillis();\n }\n }", "@Override\n public Builder sampling(double sampling) {\n super.sampling(sampling);\n return this;\n }", "public List<Vec> sample(int count, Random rand);", "public void startFirstSampleTimer() {\n }", "public void emitSample(double d) {\n int val = 0;\n if (d > 1.0) d = 1.0;\n if (d < 0.0) d = 0.0;\n d -= 0.5;\n\n val = (int) (d * 65536);\n if (val > 32767) val = 32767;\n if (val < -32768) val = -32768; \n\n audioBuffer[buffpos] = (byte) (val & 255);\n audioBuffer[buffpos + 1] = (byte) ((val >> 8) & 255);\n buffpos += 2;\n if (buffpos + 1 >= BATCH_SIZE) {\n sdl.write(audioBuffer, 0, buffpos);\n buffpos = 0;\n }\n }", "public int readSamples(float[] samples);", "public static void sample() {\n\t\tlcd.clear();\n\t\tint counter =0;\n\t\t//run 100 samples\n\t\twhile(counter<100) {\n\t\t\tmyColorSample.fetchSample(sampleColor, 0); \n\t\t\tfloat r = sampleColor[0]*1000; \n\t\t\tfloat g = sampleColor[1]*1000; \n\t\t\tfloat b = sampleColor[2]*1000; \n\t\t\tSystem.out.print(r +\",\");\n\t\t\tSystem.out.print(g+\",\");\n\t\t\tSystem.out.println(b);\n\t\t\tcounter ++;\n\t\t}\t\t\n\t}", "int getSampleSize();", "public int getSamples(){ \n return this.samples; \n }", "private void compose() {\n \tnumSamples = duration * sampleRate;\n \tsample = new double[numSamples];\n \tgeneratedSnd = new byte[2 * numSamples];\t\t\n\t}", "public abstract double samplingFrequency();", "public void getNextRawSamples( double[] rawBuffer, int offset, int nSamples )\n throws IndexOutOfBoundsException;", "public int getSamplingRate() {\n return samplingRate;\n }", "public float getSampleRate();", "@Override\n\tpublic Void call() throws Exception {\n\t\tList<Integer> list=new ArrayList<>(THRESHOLD);\n\t\tfor(int i=0;i<iterations;i++) {\n\t\t\tlist.add(ThreadLocalRandom.current().nextInt());\n\t\t\tif(list.size() == THRESHOLD) {\n\t\t\t\t//To avoid contention at queue level sending data in chunks.\n\t\t\t\tqueue.put(list);\n\t\t\t\tlist = new ArrayList<>(THRESHOLD);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public void setSamplingRate( int samplingRate ) {\r\n this.samplingRate = samplingRate;\r\n }", "public int getSampleSize(){\n\t\treturn sampleSize;\n\t}", "@Override\n public byte[] provide() {\n long start = System.nanoTime();\n\n try {\n if (packetQueue.peek() == null) {\n underflowed ++;\n return new byte[0];\n }\n\n OpusPacket packet = packetQueue.remove();\n\n if (packet == null) {\n underflowed ++;\n return new byte[0];\n }\n\n availableInput += packet.getSamples();\n opusBytePosition += packet.getBytes().length;\n opusPacketsSent ++;\n\n return packet.getBytes();\n } catch (NoSuchElementException ex) {\n underflowed ++;\n return new byte[0];\n } finally {\n long networkTime = System.nanoTime() - start;\n\n if (networkTime >= (opusParameters.getOpusFrameTime() * 1000000L)) {\n underflowed++;\n\n Logger.getGlobal().warning(\"[TeamspeakFastMixerSink] provide() took longer than the expected \" +\n opusParameters.getOpusFrameTime() + \"ms: \" + ((double)networkTime / 1_000_000D) + \"ms\");\n }\n\n this.networkTime += networkTime;\n\n if (packetQueue.peek() == null) {\n synchronized (drainLock) {\n drainLock.notifyAll();\n }\n }\n }\n }", "private void compose() {\n \tnumSamples = duration * sampleRate;\n \tsample = new double[numSamples];\n \tgeneratedSnd = new byte[2 * numSamples];\n\t}", "private static void sample2(ScoredDocIDs collection, int collectionSize, int[] sample, long[] times) \n throws IOException {\n if (returnTimings) {\n times[0] = System.currentTimeMillis();\n }\n int sampleSize = sample.length;\n IntPriorityQueue pq = new IntPriorityQueue(sampleSize);\n /*\n * Convert every value in the collection to a hashed \"weight\" value, and insert\n * into a bounded PQ (retains only sampleSize highest weights).\n */\n ScoredDocIDsIterator it = collection.iterator();\n while (it.next()) {\n pq.insertWithReuse((int)(it.getDocID() * PHI_32) & 0x7FFFFFFF);\n }\n if (returnTimings) {\n times[1] = System.currentTimeMillis();\n }\n /*\n * Extract heap, convert weights back to original values, and return as integers.\n */\n Object[] heap = pq.getHeap();\n for (int si = 0; si < sampleSize; si++) {\n sample[si] = (int)(((IntPriorityQueue.MI)(heap[si+1])).value * PHI_32I) & 0x7FFFFFFF;\n }\n if (returnTimings) {\n times[2] = System.currentTimeMillis();\n }\n }", "@Test\n public void testCreateScalableQuantizedRecorderSource() throws IOException, InterruptedException {\n System.out.println(\"createScalableQuantizedRecorderSource\");\n Object forWhat = \"bla\";\n String unitOfMeasurement = \"ms\";\n int sampleTime = 1000;\n int factor = 10;\n int lowerMagnitude = 0;\n int higherMagnitude = 3;\n int quantasPerMagnitude = 10;\n MeasurementRecorderSource result = RecorderFactory.createScalableQuantizedRecorderSource(\n forWhat, unitOfMeasurement, sampleTime, factor, lowerMagnitude, higherMagnitude, quantasPerMagnitude);\n for (int i=0; i<5000; i++) {\n result.getRecorder(\"X\"+ i%2).record(i);\n Thread.sleep(1);\n }\n long endTime = System.currentTimeMillis();\n System.out.println(RecorderFactory.RRD_DATABASE.generateCharts(startTime, endTime, 1200, 600));\n System.out.println(RecorderFactory.RRD_DATABASE.getMeasurements());\n ((Closeable)result).close();\n }", "public int getSamples(short [] buffer, int length) {\r\n\r\n\t\t// Don't perform processing until initialization is\r\n\t\t// complete and bypass is not active.\r\n\t\tif (getByPass() || !initializationComplete)\r\n\t\t\treturn previous.getSamples(buffer, length);\r\n\r\n // Read number of samples requested from previous stage\r\n\t\tint len = previous.getSamples(localBuffer, length);\r\n\r\n\t\tdouble delaySampleA, delaySampleB;\r\n\r\n\t\t// Do the processing over the new buffer of samples\r\n\t\tfor (int i=0; i < len; i++) {\r\n\t\t\t\r\n\t\t\t// Get a sample to process\r\n\t\t\tlong inputSample = localBuffer[i];\r\n\t\t\t\r\n\t\t\t// Grab four samples at a time. This is required for\r\n\t\t\t// interpolation and blending.\r\n\t\t\tlong dsALow = delayBuffer[readIndexALow];\r\n\t\t\tlong dsAHigh = delayBuffer[readIndexAHigh];\r\n\t\t\tlong dsBLow = delayBuffer[readIndexBLow];\r\n\t\t\tlong dsBHigh = delayBuffer[readIndexBHigh];\r\n\r\n\t\t\t// Do the linear interpolation\r\n\t\t\tif (sweepUp) {\r\n\t\t\t\tdelaySampleA = (dsAHigh * sweep) + (dsALow * (1.0 - sweep));\r\n\t\t\t\tdelaySampleB = (dsBHigh * sweep) + (dsBLow * (1.0 - sweep));\r\n\t\t\t}\telse\t{\r\n\t\t\t\tdelaySampleA = (dsAHigh * (1.0 - sweep) + (dsALow * sweep));\r\n\t\t\t\tdelaySampleB = (dsBHigh * (1.0 - sweep) + (dsBLow * sweep));\r\n\t\t\t}\r\n\r\n\t\t\t// Combine delay channels A and B with appropriate blending\r\n\t\t\tdouble outputSample = \r\n\t\t\t\t(delaySampleA * blendA) + (delaySampleB * blendB);\r\n\r\n\t\t\t// Store sample in delay buffer\r\n\t\t\tdelayBuffer[writeIndex] = (long)\r\n\t\t\t\t(inputSample + ((outputSample * feedbackLevel) / 100));\r\n \r\n\t\t\t// Update write index\r\n\t\t\twriteIndex = (writeIndex + 1) % delayBufferSize;\r\n\r\n\t\t\t// Prepare sample for output by combining wet and dry\r\n\t\t\t// values\r\n\t\t\toutputSample = \r\n\t\t\t\t((inputSample * dryLevel) / 100) +\r\n\t\t\t\t((outputSample * wetLevel) / 100);\r\n\t\t\t\r\n\t\t\t// Clamp output to legal range\r\n\t\t\tif (outputSample > 32767)\r\n\t\t\t\toutputSample = 32767;\r\n\t\t\tif (outputSample < -32768)\r\n\t\t\t\toutputSample = -32768;\r\n\r\n\t\t\t// Store output sample in outgoing buffer\r\n\t\t\tbuffer[i] = (short) outputSample;\r\n\r\n\t\t\t// Update cross fade blending values each sample interval\r\n\t\t\tif (crossFadeCount != 0) {\r\n\t\t\t\tcrossFadeCount--;\r\n\t\t\t\t\r\n\t\t\t\t// Get new blending values for both channels\r\n\t\t\t\tblendA = fadeA[crossFadeCount];\r\n\t\t\t\tblendB = fadeB[crossFadeCount];\r\n\t\t\t}\r\n\r\n\t\t\t// Update sweep value for each pass if processing\r\n\t\t\t// mono signal and every other pass if processing\r\n\t\t\t// stereo.\r\n\t\t\tif ((numberOfChannels == 1) || ((i + 1) % 2 == 0))\r\n\t\t\t\tsweep += step;\r\n\r\n\t\t\tif (sweepUp) {\r\n\t\t\t\t// Upward frequency change\r\n\t \r\n\t\t\t\t// Advance indices to reduce delay\r\n\t\t readIndexALow = readIndexAHigh;\r\n\t\t\t\treadIndexAHigh = (readIndexAHigh + 1) % delayBufferSize;\r\n\t\t readIndexBLow = readIndexBHigh;\r\n\t\t\t\treadIndexBHigh = (readIndexBHigh + 1) % delayBufferSize;\r\n\r\n\t\t\t\t// Check for overflow\r\n\t\t\t\tif (sweep < 1.0) {\r\n\t\t\t\t\t// No overflow, continue with next sample\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// Octave exceeded bump ptrs again\r\n\t\t\t\tsweep = 0.0;\r\n\t\t\t\treadIndexALow = readIndexAHigh;\r\n\t\t\t\treadIndexAHigh = (readIndexAHigh + 1) % delayBufferSize;\r\n\t\t\t\treadIndexBLow = readIndexBHigh;\r\n\t\t\t\treadIndexBHigh = (readIndexBHigh + 1) % delayBufferSize;\r\n\t\t\t\t\r\n\t\t\t\t// See if it is time to switch to other delay channel\r\n\t\t\t\tif (activeCount-- == 0) {\r\n\t\t\t\t\t// Reset fade in/out count\r\n\t\t\t\t\tcrossFadeCount = numberOfCrossFadeSamples;\r\n\t\t\t\t\tactiveCount = activeSampleCount;\r\n\t\t\t\t\tif (channelA) {\r\n\t\t\t\t\t\tchannelA = false;\r\n\t\t\t\t\t\treadIndexBHigh = \r\n\t\t\t\t\t\t\t(writeIndex + AudioConstants.SAMPLEBUFFERSIZE) % delayBufferSize;\r\n\t\t\t\t\t\t// Swap blend coefficient arrays\r\n\t\t\t\t\t\tfadeA = fadeOut;\r\n\t\t\t\t\t\tfadeB = fadeIn;\r\n\t\t\t\t\t}\telse\t{\r\n\t\t\t\t\t\tchannelA = true;\r\n\t\t\t\t\t\treadIndexAHigh = \r\n\t\t\t\t\t\t\t(writeIndex + AudioConstants.SAMPLEBUFFERSIZE) % delayBufferSize;\r\n\t\t\t\t\t\t// Swap blend coefficient arrays\r\n\t\t\t\t\t\tfadeA = fadeIn;\r\n\t\t\t\t\t\tfadeB = fadeOut;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\t}\telse\t{\r\n\t\t\t\t// Downward frequency change\r\n\r\n\t\t\t\t// Check for overflow\r\n\t\t\t\tif (sweep < 1.0) {\r\n\t\t\t\t\t// No overflow, advance indices\r\n\t\t\t\t\treadIndexALow = readIndexAHigh;\r\n\t\t\t\t\treadIndexAHigh = (readIndexAHigh + 1) % delayBufferSize;\r\n\t\t\t\t\treadIndexBLow = readIndexBHigh;\r\n\t\t\t\t\treadIndexBHigh = (readIndexBHigh + 1) % delayBufferSize;\r\n\r\n\t\t\t\t\t// Continue with processing the next sample\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t// Octave exceeded don't bump indices so the delay\r\n\t\t\t\t// is increased\r\n\t\t\t\tsweep = 0.0;\r\n\t\t\t\t\r\n\t\t\t\t// See if it is time to switch to other delay channel\r\n\t\t\t\tif (activeCount-- == 0) {\r\n\t\t\t\t\t// Reset fade in/out count\r\n\t\t\t\t\tcrossFadeCount = numberOfCrossFadeSamples;\r\n\t\t\t\t\tactiveCount = activeSampleCount;\r\n\t\t\t\t\tif (channelA) {\r\n\t\t\t\t\t\tchannelA = false;\r\n\t\t\t\t\t\treadIndexBHigh = \r\n\t\t\t\t\t\t\t(writeIndex + AudioConstants.SAMPLEBUFFERSIZE) % delayBufferSize;\r\n\t\t\t\t\t\t// Swap blend coefficient arrays\r\n\t\t\t\t\t\tfadeA = fadeOut;\r\n\t\t\t\t\t\tfadeB = fadeIn;\r\n\t\t\t\t\t}\telse\t{\r\n\t\t\t\t\t\tchannelA = true;\r\n\t\t\t\t\t\treadIndexAHigh = \r\n\t\t\t\t\t\t\t(writeIndex + AudioConstants.SAMPLEBUFFERSIZE) % delayBufferSize;\r\n\t\t\t\t\t\t// Swap blend coefficient arrays\r\n\t\t\t\t\t\tfadeA = fadeIn;\r\n\t\t\t\t\t\tfadeB = fadeOut;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n \t\treturn len; \r\n\t}", "DoubleMatrix1D nextSample(){\n for(int u=0; u<useFrequency; u++){\n while(true) {//draw until acceptable candidate found\n DoubleMatrix1D y = nextCandidate();\n if(checkCandidate(y))//accept\n break;\n }\n }\n \n return x.copy();\n }", "@Test\n public void simulatedStepByStepSamplingCollection() throws Exception {\n\n long samplingInterval = 10 * 1000L; // 10 seconds to allow us time to experiment\n\n // the sampling task run interval is 0, meaning no timer task will be registered\n SamplerImpl s = new SamplerImpl(0L, samplingInterval);\n s.registerOperation(MockSamplerOperation.class);\n\n MockSamplingConsumer msc = new MockSamplingConsumer();\n s.registerConsumer(msc);\n\n assertTrue(s.getLastRunTimestamp() <= 0);\n\n // we're not actually starting anything because the sampling task interval is 0, but the sampler will look\n // like it started; this will also run the first initialization run()\n s.start();\n\n assertTrue(s.isStarted());\n\n assertTrue(s.getLastRunTimestamp() > 0);\n SamplingInterval current = s.getCurrent();\n assertNotNull(current);\n\n s.run(); // first run, should not collect anyting\n\n long ts = current.getStartMs();\n\n // make sure it's rounded on the second\n assertEquals(0L, ts - ((ts / 1000) * 1000L));\n\n s.run(); // second collection run, should not collect anything\n\n current = s.getCurrent();\n assertEquals(ts, current.getStartMs()); // insure it's the same sampling interval\n assertEquals(samplingInterval, current.getDurationMs());\n Set<Class<? extends Operation>> operationTypes = current.getOperationTypes();\n assertEquals(1, operationTypes.size());\n assertTrue(operationTypes.contains(MockSamplerOperation.class));\n assertTrue(current.getAnnotations().isEmpty());\n CounterValues cvs = current.getCounterValues(MockSamplerOperation.class);\n assertEquals(0L, cvs.getSuccessCount());\n assertEquals(0L, cvs.getSuccessCumulatedDurationNano());\n assertEquals(0L, cvs.getFailureCount());\n assertEquals(0L, cvs.getFailureCumulatedDurationNano());\n\n // record a success and a failure\n s.record(System.currentTimeMillis(), 1L, 2L, new MockSamplerOperation()); // 1\n s.record(System.currentTimeMillis(), 3L, 5L, new MockSamplerOperation(), new SocketException()); // 2\n\n // another collection run, it should collect both the success and the failure\n s.run();\n\n current = s.getCurrent();\n assertEquals(ts, current.getStartMs()); // insure it's the same sampling interval\n assertEquals(samplingInterval, current.getDurationMs());\n operationTypes = current.getOperationTypes();\n assertEquals(1, operationTypes.size());\n assertTrue(operationTypes.contains(MockSamplerOperation.class));\n assertTrue(current.getAnnotations().isEmpty());\n cvs = current.getCounterValues(MockSamplerOperation.class);\n assertEquals(1L, cvs.getSuccessCount());\n assertEquals(1L, cvs.getSuccessCumulatedDurationNano());\n assertEquals(1L, cvs.getFailureCount());\n assertEquals(2L, cvs.getFailureCumulatedDurationNano());\n Set<Class<? extends Throwable>> failureTypes = cvs.getFailureTypes();\n assertEquals(1, failureTypes.size());\n assertTrue(failureTypes.contains(SocketException.class));\n assertEquals(1L, cvs.getFailureCount(SocketException.class));\n assertEquals(2L, cvs.getFailureCumulatedDurationNano(SocketException.class));\n\n // record a success, the same type a failure, and an annotation\n s.record(System.currentTimeMillis(), 6L, 9L, new MockSamplerOperation()); // 3\n s.record(System.currentTimeMillis(), 10L, 14L, new MockSamplerOperation(), new SocketException()); // 4\n s.annotate(\"annotation 1\");\n\n // another collection run\n s.run();\n\n current = s.getCurrent();\n assertEquals(ts, current.getStartMs()); // insure it's the same sampling interval\n assertEquals(samplingInterval, current.getDurationMs());\n operationTypes = current.getOperationTypes();\n assertEquals(1, operationTypes.size());\n assertTrue(operationTypes.contains(MockSamplerOperation.class));\n List<String> annotations = current.getAnnotations();\n assertEquals(1, annotations.size());\n assertTrue(annotations.contains(\"annotation 1\"));\n cvs = current.getCounterValues(MockSamplerOperation.class);\n assertEquals(2L, cvs.getSuccessCount());\n assertEquals(1L + 3L, cvs.getSuccessCumulatedDurationNano());\n assertEquals(2L, cvs.getFailureCount());\n assertEquals(2L + 4L, cvs.getFailureCumulatedDurationNano());\n failureTypes = cvs.getFailureTypes();\n assertEquals(1, failureTypes.size());\n assertTrue(failureTypes.contains(SocketException.class));\n assertEquals(2L, cvs.getFailureCount(SocketException.class));\n assertEquals(2L + 4L, cvs.getFailureCumulatedDurationNano(SocketException.class));\n\n // record a success, a different type a failure, and another annotation\n s.record(System.currentTimeMillis(), 15L, 20L, new MockSamplerOperation()); // 5\n s.record(System.currentTimeMillis(), 21L, 27L, new MockSamplerOperation(), new ConnectException()); // 6\n s.annotate(\"annotation 2\");\n\n // another collection run\n s.run();\n\n current = s.getCurrent();\n assertEquals(ts, current.getStartMs()); // insure it's the same sampling interval\n assertEquals(samplingInterval, current.getDurationMs());\n operationTypes = current.getOperationTypes();\n assertEquals(1, operationTypes.size());\n assertTrue(operationTypes.contains(MockSamplerOperation.class));\n annotations = current.getAnnotations();\n assertEquals(2, annotations.size());\n assertEquals(\"annotation 1\", annotations.get(0));\n assertEquals(\"annotation 2\", annotations.get(1));\n cvs = current.getCounterValues(MockSamplerOperation.class);\n assertEquals(3L, cvs.getSuccessCount());\n assertEquals(1L + 3L + 5L, cvs.getSuccessCumulatedDurationNano());\n assertEquals(3L, cvs.getFailureCount());\n assertEquals(2L + 4L + 6L, cvs.getFailureCumulatedDurationNano());\n failureTypes = cvs.getFailureTypes();\n assertEquals(2, failureTypes.size());\n assertTrue(failureTypes.contains(SocketException.class));\n assertTrue(failureTypes.contains(ConnectException.class));\n assertEquals(2L, cvs.getFailureCount(SocketException.class));\n assertEquals(2L + 4L, cvs.getFailureCumulatedDurationNano(SocketException.class));\n assertEquals(1L, cvs.getFailureCount(ConnectException.class));\n assertEquals(6L, cvs.getFailureCumulatedDurationNano(ConnectException.class));\n }", "public int getSamplingRate( ) {\r\n return samplingRate;\r\n }", "public int getSampleSize() {\n return sampleSize;\n }", "public int getSampleRate() {\n return 0;\n }", "public Item sample() {\n if (size == 0) \n throw new NoSuchElementException(\"the RandomizedQueue is empty\");\n return rqArrays[StdRandom.uniform(0, size)];\n }", "public final Object getSample()\n { return(this.sample); }", "void setSamplingTaskRunIntervalMs(long ms);", "@Nonnull\r\n\tpublic static <T> Observable<T> sample(\r\n\t\t\t@Nonnull final Observable<? extends T> source,\r\n\t\t\tfinal long time,\r\n\t\t\t@Nonnull final TimeUnit unit) {\r\n\t\treturn sample(source, time, unit, scheduler());\r\n\t}", "public int getSampleRate() {\r\n\treturn SAMPLES_IN_SECOND;\r\n}", "private void measure() {\n // input warmup time can be estimated by observing the time required for startRecording() to return.\r\n //\r\n managerBufferSize = AudioRecord.getMinBufferSize(sampleRate, AudioFormat.CHANNEL_IN_MONO,\r\n AudioFormat.ENCODING_PCM_16BIT);\r\n AudioRecord recorder = new AudioRecord(MediaRecorder.AudioSource.MIC,\r\n sampleRate,\r\n AudioFormat.CHANNEL_IN_MONO, AudioFormat.ENCODING_PCM_16BIT,\r\n managerBufferSize);\r\n\r\n if (recorder == null || recorder.getState() != AudioRecord.STATE_INITIALIZED) {\r\n Toast.makeText(this, \"can't initialize AudioRecord\", Toast.LENGTH_SHORT).show();\r\n return;\r\n }\r\n\r\n long t = System.currentTimeMillis();\r\n recorder.startRecording();\r\n long iw = (System.currentTimeMillis() - t);\r\n recorder.stop();\r\n\r\n //\r\n // determines audio warmup by seeing how long a Hardware Abstraction Layer (HAL) write() takes to stabilize.\r\n //\r\n\r\n AudioTrack player = new AudioTrack(AudioManager.STREAM_MUSIC,\r\n sampleRate,\r\n AudioFormat.CHANNEL_OUT_MONO, AudioFormat.ENCODING_PCM_16BIT,\r\n managerBufferSize, AudioTrack.MODE_STREAM);\r\n player.play();\r\n byte[] buf = new byte[frameSize * 2];\r\n\r\n final int n = 50;\r\n long[] d = new long[n];\r\n t = System.currentTimeMillis();\r\n for (int i = 0; i < n; ++i) {\r\n player.write(buf, 0, buf.length);\r\n d[i] = System.currentTimeMillis() - t;\r\n t = System.currentTimeMillis();\r\n Log.d(TAG, \"write block:\" + d[i] + \"ms\");\r\n }\r\n player.stop();\r\n\r\n Toast.makeText(this, \"Input warmup:\" + iw + \"ms\", Toast.LENGTH_LONG).show();\r\n }", "public void setSampleMode( SampleMode sampleMode );", "void enableSampledStatistics();", "public Item sample() {\n if (isEmpty()) throw new NoSuchElementException(\"deque underflow \");\n Item item;\n int randomIndex = StdRandom.uniform(N);\n while(randomizedQueue[randomIndex] == null){\n randomIndex = StdRandom.uniform(N);\n }\n item = randomizedQueue[randomIndex];\n \n return item;\n }", "@Override\n public void onBuffering(int percent) {\n }", "public Item sample() {\r\n\t\tif (isEmpty()) {\r\n\t\t\tthrow new NullPointerException();\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn queue[StdRandom.uniform(0,n)];\r\n\t\t}\r\n\t}", "public Item sample()\r\n {\r\n if (isEmpty()) throw new NoSuchElementException(\"Empty randomized queue\");\r\n\r\n int randomizedIdx = StdRandom.uniform(n);\r\n\r\n return a[randomizedIdx];\r\n }", "public int getSampleRate() {\n return sampleRate;\n }", "public int nSamples() {\n return samples.nSamples();\n }", "@Override\n\tprotected void sampleRateChanged()\n\t{\n\t\ttimeStepSize = 1/sampleRate();\n\t}", "@Override\n\tprotected void sampleRateChanged()\n\t{\n\t\ttimeStepSize = 1/sampleRate();\n\t}", "public void switchSampling(boolean start_or_dont) {\r\n //save a boolean for the loop's state before changes\r\n boolean weShouldReadold = this.weShouldRead;\r\n this.weShouldRead = start_or_dont;\r\n //if it's switching on from being previously off, start the loop again\r\n }", "@Override\n\tpublic float[] read() {\n\t\tif (buffer.getSampleCount() != 1) {\n\t\t\tbuffer.changeSampleCount(1, true);\n\t\t\trawBytes = new byte[buffer.getByteArrayBufferSize(format)];\n\t\t}\n\t\tfloat[] samples = new float[buffer.getChannelCount()];\n\t\tif (play) {\n\t\t\tmRead();\n\t\t\tfor (int i = 0; i < buffer.getChannelCount(); i++) {\n\t\t\t\tsamples[i] = buffer.getChannel(i)[0];\n\t\t\t}\n\t\t}\n\t\treturn samples;\n\t}", "public Item sample() {\n if (isEmpty()) throw new NoSuchElementException(\"Empty queue\");\n\n int rdm = StdRandom.uniform(n);\n return a[rdm];\n }", "private static void backPressureChallenge() {\n\t\tObservable.range(1, 1000000)\n\t\t//below map will run in sequential\n\t\t//since sequential it has to complete whole task then only it can allow consumer to start\n\t\t\t.map(item -> {\n\t\t\t\tSystem.out.println(\"Produced item \"+item +\" using thread \"+Thread.currentThread().getName());\n\t\t\t\treturn item;\n\t\t\t})\n\t\t\t.observeOn(Schedulers.io())\n\t\t\t//.subscribeOn(Schedulers.io())//with this whole pipelein runs in seprate thread paralleley\n\t\t\t//below will run in concurrent\n\t\t\t.subscribe(item ->{\n\t\t\t\t//mimcing slowness\n\t\t\t\tThreadUtil.sleep(300);\n\t\t\t\tSystem.out.println(\"Consumed item \"+item +\" using thread \"+Thread.currentThread().getName());\n\t\t\t})\n\t\t\t\n\t\t\t;\n\t\t\n\t\t//since running in async we need to sleep\n\t\tThreadUtil.sleep(10000000);\n\t}", "public Item sample()\n {\n checkNotEmpty();\n\n return items[nextIndex()];\n }", "@Override\r\n\tpublic Item sample() {\r\n\t\tint index = StdRandom.uniform(count);\r\n\t\tItem item = arr[index];\r\n\t\treturn item;\r\n\t}", "private void run() throws IOException, InterruptedException {\n \t\t// InetSocketAddress endpoint = SocketAddresses.fromIp(\"10.95.162.221\",\r\n \t\t// 1234);\r\n \t\tInetSocketAddress endpoint = SocketAddresses.fromIp(\"127.0.0.1\", 1234);\r\n \r\n \t\tbyte[] buf = new byte[8 * 1024];\r\n \t\tnew Random().nextBytes(buf);\r\n \t\tByteBuffer seedBuffer = ByteBuffer.wrap(buf);\r\n \t\tNetContext context = new SimpleNetContext();\r\n \t\tEchoSession session = new EchoSession();\r\n \t\tconnection = TcpNetFactory.INSTANCE.openClient(context, endpoint, session);\r\n \r\n \t\tRuntime.getRuntime().addShutdownHook(new Thread() {\r\n \t\t\t@Override\r\n \t\t\tpublic void run() {\r\n \t\t\t\ttry {\r\n \t\t\t\t\tconnection.close();\r\n \t\t\t\t} catch (IOException e) {\r\n \t\t\t\t\t// TODO Auto-generated catch block\r\n \t\t\t\t\te.printStackTrace();\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t});\r\n \r\n \t\tfinal int loopTimeSec = 10;\r\n \t\tlong lastT = System.currentTimeMillis();\r\n \t\tconnection.sendBlocking(seedBuffer);\r\n \t\tlong seeded = seedBuffer.capacity();\r\n \t\tint loop = 1;\r\n \t\tlong lastRx = 0, lastTx = 0;\r\n \t\tfinal long start = System.currentTimeMillis();\r\n \r\n \t\twhile (connection.isConnected()) {\r\n \t\t\tlong sleepUntil = start + (loop * loopTimeSec * 1000L);\r\n \t\t\tThreadUtil.sleepUntilMs(sleepUntil);\r\n \r\n \t\t\tlong rx = session.getRx();\r\n \t\t\tlong tx = session.getTx();\r\n \t\t\tlong rxDiff = rx - lastRx;\r\n \t\t\tlong txDiff = tx - lastTx;\r\n \t\t\tlong diff = rxDiff + txDiff;\r\n \t\t\tlong now = System.currentTimeMillis();\r\n \t\t\tlong tDiff = now - lastT;\r\n\t\t\tdouble mbit = (diff * 8) / 10e6 / (tDiff / 1000f);\r\n\t\t\tdouble rxMb = (rxDiff / (2e20));\r\n\t\t\tdouble txMb = (txDiff / (2e20));\r\n \t\t\tSystem.out.printf(\"seed=%d, last %dsec rx=%.3fM, tx=%.3fM bytes => %.5f mbit/sec%n\", //\r\n \t\t\t\t\tseeded, loopTimeSec, rxMb, txMb, mbit);\r\n \t\t\tif (seeded < 512 * 1024) {\r\n \t\t\t\tSystem.out.println(\"seeding an additional \" + seedBuffer.capacity() + \" bytes into the echo chain\");\r\n \t\t\t\tseedBuffer.rewind();\r\n \t\t\t\tconnection.sendBlocking(seedBuffer);\r\n \t\t\t\tseeded += seedBuffer.capacity();\r\n \t\t\t}\r\n \t\t\t// if (rxDiff == 0 || txDiff == 0) {\r\n \t\t\t// session.forceWrite();\r\n \t\t\t// }\r\n \t\t\tloop++;\r\n \t\t\tlastRx = rx;\r\n \t\t\tlastTx = tx;\r\n \t\t\tlastT = now;\r\n \t\t}\r\n \t\t// TODO: save shutdown of clients\r\n \t\tSystem.exit(0);\r\n \t}", "public void setSampleSize(int size){\r\n\t\tSampleSize = size;\r\n\t}", "public void sample()\n\t{\n\t\tint nd = interval.numDimensions();\n\n\t\t// the order in which mpicbg expects\n\t\tp = new double[ nd ][ (int) N ];\n\t\tq = new double[ nd ][ (int) N ];\n\n\t\tdouble[] src = new double[ nd ];\n\t\tdouble[] tgt = new double[ nd ];\n\n\t\tint i = 0;\n\t\tIntervalIterator it = new IntervalIterator( interval );\n\t\twhile ( it.hasNext() )\n\t\t{\n\t\t\tit.fwd();\n\t\t\tit.localize( src );\n\t\t\txfm.apply( src, tgt );\n\n\t\t\tfor ( int d = 0; d < nd; d++ )\n\t\t\t{\n\t\t\t\tp[ d ][ i ] = src[ d ];\n\t\t\t\tq[ d ][ i ] = tgt[ d ];\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t}", "public void insertNextSamples( byte[] buffer, int byteOffset, int nSamples )\n throws IndexOutOfBoundsException;", "private void sample() {\n Number value = gauge.get();\n this.inner.set(value != null ? value.doubleValue() : 0);\n }", "public void create_dataset(double sampling_rate, double freq, int n) {\n double amplitude = 10.0d;\n double constant = freq/sampling_rate*2.0d*Math.PI;\n double sumTWD=0.0d;\n\n for (int i = 0; i < n; i++) {\n NavigationTools.TWD.add((Math.sin((double)i*constant)+Math.random()*0.2d)*amplitude);\n sumTWD += NavigationTools.TWD.getLast();\n }\n\n NavigationTools.TWD_longAVG=sumTWD/(double)n;\n }", "void takeAfter(){\n afterTimeNs=System.nanoTime();\n lastdt=afterTimeNs-beforeTimeNs;\n samplesNs[index++]=afterTimeNs-lastAfterTime;\n lastAfterTime=afterTimeNs;\n if(index>=nSamples) index=0;\n }", "private void addSampleData() {\r\n }", "int stopSamples() {\n if (debugFlag)\n debugPrint(\"JSChannel: stopSample must be overridden\");\n// reloadSample\n\n startTime = 0;\n return 0;\n }", "public Item sample() {\n if (size == 0) throw new NoSuchElementException();\n return array[StdRandom.uniform(size)];\n }", "public Item sample(){\n if(size == 0){\n throw new NoSuchElementException();\n }\n int ri = StdRandom.uniform(size);\n \n Iterator<Item> it = this.iterator();\n \n for(int i = 0; i < ri; i++){\n it.next();\n }\n \n return it.next();\n }", "public SampleMode getSampleMode();", "@Override\n public void onAudioSamples(IAudioSamplesEvent event) {\n\n /*\n * -----------------------------------------------------------------------------------\n * !!! LAB EXERCISE !!!\n * -----------------------------------------------------------------------------------\n * 1. Create a 'ShortBuffer' and point it to the incoming audio samples.\n * Hint: Use 'event.getAudioSamples().getByteBuffer().asShortBuffer()'\n *\n * 2. Loop over the buffer values from 0 to 'buffer.limit()' and access each buffer\n * value using 'buffer.get'\n * Hint: 'buffer.get' gets the sample values as a 'short'\n *\n * 3. Multiply each buffer value by the 'multiplier' (which is a double) then place the\n * resultant value back into the buffer using 'buffer.put'\n * Hint: You may need to cast the data to a 'short' value\n */\n\n // ===================================================================================\n // *** YOUR CODE HERE ***\n ShortBuffer buffer = event.getAudioSamples().getByteBuffer().asShortBuffer();\n\n for (int i = 0; i < buffer.limit(); ++i)\n {\n buffer.put((short)(buffer.get(i) * this.multiplier));\n }\n // ===================================================================================\n\n // Finally, pass the adjusted event to the next tool\n super.onAudioSamples(event);\n }", "public void createDataSet(){\n final Thread thread = new Thread(new Runnable() {\r\n public void run(){\r\n while(true){//we want this running always, it is ok running while robot is disabled.\r\n whileCount++;\r\n currentVoltage = angleMeter.getVoltage(); //gets the non-average voltage of the sensor\r\n runningTotalVoltage[currentIndex] = currentVoltage;//store the new data point\r\n currentIndex = (currentIndex + 1) % arraySize;//currentIndex is the index to be changed\r\n if (bufferCount < arraySize) {\r\n bufferCount++;//checks to see if the array is full of data points\r\n }\r\n }\r\n }\r\n });\r\n thread.start();\r\n }", "public void recalibrateData() {\r\n\t\tclicks = random.nextInt(65535); //may need tweaking. the sensor sends 2 bytes worth of data but 65k is probably too big of a range to be reasonable\r\n\t}", "@java.lang.Override\n public boolean hasRandomSampling() {\n return randomSampling_ != null;\n }", "private static ArrayList<double[]> createSamples(double p, int n) {\n\t\tArrayList<double[]> result = new ArrayList<double[]>();\n\t\tint cutoff = (int) Math.round(n * p);\n\t\tfor (int i = 0; i < cutoff; i++) result.add(new double[] {1});\n\t\tfor (int i = cutoff; i < n; i++) result.add(new double[] {0});\n\t\treturn result;\n\t}", "private double readPressureSample() {\n return 6 * randomPressureSampleSimulator.nextDouble() * randomPressureSampleSimulator.nextDouble();\n }", "public Item sample() {\n \t if (size==0){\n \t \tthrow new NoSuchElementException();\n \t }\n \t int index = StdRandom.uniform(size);\n // System.out.println(\"The index of the number is: \" + index);\n int k = 0;\n \t Node p=sentinel.next.next;\n \t for (int i = 0; i < index; i++){\n p = p.next; \n \t }\n \t return p.item;\n }", "public Samples samples() {\n return samples;\n }", "@java.lang.Override\n public io.envoyproxy.envoy.type.v3.FractionalPercent getRandomSampling() {\n return randomSampling_ == null ? io.envoyproxy.envoy.type.v3.FractionalPercent.getDefaultInstance() : randomSampling_;\n }", "public byte[] genTone(){ \n //Ramp time is the denominator of the total sample.\n //This really should be a ration of samples per cycle.\n //do this math to get a smooth sound\n int rampTime = 2000;\n //Fill the sample array.\n for (int i = 0; i < numSamples; ++i) {\n \t//Here is the brains of the operation. Don't axe me what it does\n \t//But it pretty much unrolls a sin curve into a wave\n sample[i] = Math.sin(freqOfTone * 2 * Math.PI * i / (sampleRate));\n }\n\n // convert to 16 bit pcm sound array\n // assumes the sample buffer is normalized.\n int PCMindex = 0;\n int i;\n //The ramp. It is how many samples will be ramped up.\n int ramp = numSamples/rampTime; \n\n /**\n * Ramp up the tone to avoid clicks\n */\n for (i = 0; i< ramp; ++i) { \n \t//Grab the values from the sample array for each i\n double dVal = sample[i];\n //Ramp down the value. \n //Convert a -1.0 - 1.0 double into a short. 32767 should be contant for max 16 bit signed int value \n final short val = (short) ((dVal * 32767 * i/ramp));\n //Put the value into the PCM byte array\n //Break the short into a byte using a bit mask. \n //First bit mask adds the second byte. Second bit mask adds the second byte.\n PcmArray[PCMindex++] = (byte) (val & 0x00ff);\n PcmArray[PCMindex++] = (byte) ((val & 0xff00) >>> 8);\n }\n\n for (i = ramp; i< numSamples - ramp; ++i) { \n \t//Grab the values from the sample array for each i\n double dVal = sample[i];\n //Convert a -1.0 - 1.0 double into a short. 32767 should be contant for max 16 bit signed int value\n final short val = (short) ((dVal * 32767));\n //Put the value into the PCM byte array\n //Break the short into a byte using a bit mask. \n //First bit mask adds the second byte. Second bit mask adds the second byte.\n PcmArray[PCMindex++] = (byte) (val & 0x00ff);\n PcmArray[PCMindex++] = (byte) ((val & 0xff00) >>> 8);\n }\n\n for (i = (int) (numSamples - ramp); i< numSamples; ++i) {\n \t//Grab the values from the sample array for each i\n double dVal = sample[i];\n //Convert a -1.0 - 1.0 double into a short. 32767 should be contant for max 16 bit signed int value \n //Ramp down the values\n final short val = (short) ((dVal * 32767 * (numSamples-i)/ramp ));\n //Put the value into the PCM byte array\n //Break the short into a byte using a bit mask. \n //First bit mask adds the second byte. Second bit mask adds the second byte.\n PcmArray[PCMindex++] = (byte) (val & 0x00ff);\n PcmArray[PCMindex++] = (byte) ((val & 0xff00) >>> 8);\n }\n return PcmArray;\n }", "@Override\n\tpublic Serializable[] getData() {\n\t Double light = 0.0, temperature = 0.0;\n\t int packetType = 0;\n\t \n\t light = ((int) (Math.random() * 10000)) / 10.0;\n\t temperature = ((int) (Math.random() * 1000)) / 10.0;\n\t packetType = 2;\n\t\treturn new Serializable[] { packetType, temperature, light };\n\t}", "public void setSampleSize(int value) {\n this.sampleSize = value;\n }", "public static double[] rawFreqCreator(){\n\t\tfinal int EXTERNAL_BUFFER_SIZE = 2097152;\n\t\t//128000\n\n\t\t//Get the location of the sound file\n\t\tFile soundFile = new File(\"MoodyLoop.wav\");\n\n\t\t//Load the Audio Input Stream from the file \n\t\tAudioInputStream audioInputStream = null;\n\t\ttry {\n\t\t\taudioInputStream = AudioSystem.getAudioInputStream(soundFile);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(1);\n\t\t}\n\n\t\t//Get Audio Format information\n\t\tAudioFormat audioFormat = audioInputStream.getFormat();\n\n\t\t//Handle opening the line\n\t\tSourceDataLine\tline = null;\n\t\tDataLine.Info\tinfo = new DataLine.Info(SourceDataLine.class, audioFormat);\n\t\ttry {\n\t\t\tline = (SourceDataLine) AudioSystem.getLine(info);\n\t\t\tline.open(audioFormat);\n\t\t} catch (LineUnavailableException e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(1);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(1);\n\t\t}\n\n\t\t//Start playing the sound\n\t\t//line.start();\n\n\t\t//Write the sound to an array of bytes\n\t\tint nBytesRead = 0;\n\t\tbyte[]\tabData = new byte[EXTERNAL_BUFFER_SIZE];\n\t\twhile (nBytesRead != -1) {\n\t\t\ttry {\n\t\t \t\tnBytesRead = audioInputStream.read(abData, 0, abData.length);\n\n\t\t\t} catch (IOException e) {\n\t\t \t\te.printStackTrace();\n\t\t\t}\n\t\t\tif (nBytesRead >= 0) {\n\t\t \t\tint nBytesWritten = line.write(abData, 0, nBytesRead);\n\t\t\t}\n\n\t\t}\n\n\t\t//close the line \n\t\tline.drain();\n\t\tline.close();\n\t\t\n\t\t//Calculate the sample rate\n\t\tfloat sample_rate = audioFormat.getSampleRate();\n\t\tSystem.out.println(\"sample rate = \"+sample_rate);\n\n\t\t//Calculate the length in seconds of the sample\n\t\tfloat T = audioInputStream.getFrameLength() / audioFormat.getFrameRate();\n\t\tSystem.out.println(\"T = \"+T+ \" (length of sampled sound in seconds)\");\n\n\t\t//Calculate the number of equidistant points in time\n\t\tint n = (int) (T * sample_rate) / 2;\n\t\tSystem.out.println(\"n = \"+n+\" (number of equidistant points)\");\n\n\t\t//Calculate the time interval at each equidistant point\n\t\tfloat h = (T / n);\n\t\tSystem.out.println(\"h = \"+h+\" (length of each time interval in second)\");\n\t\t\n\t\t//Determine the original Endian encoding format\n\t\tboolean isBigEndian = audioFormat.isBigEndian();\n\n\t\t//this array is the value of the signal at time i*h\n\t\tint x[] = new int[n];\n\n\t\t//convert each pair of byte values from the byte array to an Endian value\n\t\tfor (int i = 0; i < n*2; i+=2) {\n\t\t\tint b1 = abData[i];\n\t\t\tint b2 = abData[i + 1];\n\t\t\tif (b1 < 0) b1 += 0x100;\n\t\t\tif (b2 < 0) b2 += 0x100;\n\t\t\tint value;\n\n\t\t\t//Store the data based on the original Endian encoding format\n\t\t\tif (!isBigEndian) value = (b1 << 8) + b2;\n\t\t\telse value = b1 + (b2 << 8);\n\t\t\tx[i/2] = value;\n\t\t\t\n\t\t}\n\t\t\n\t\t//do the DFT for each value of x sub j and store as f sub j\n\t\tdouble f[] = new double[n/2];\n\t\tfor (int j = 0; j < n/2; j++) {\n\n\t\t\tdouble firstSummation = 0;\n\t\t\tdouble secondSummation = 0;\n\n\t\t\tfor (int k = 0; k < n; k++) {\n\t\t \t\tdouble twoPInjk = ((2 * Math.PI) / n) * (j * k);\n\t\t \t\tfirstSummation += x[k] * Math.cos(twoPInjk);\n\t\t \t\tsecondSummation += x[k] * Math.sin(twoPInjk);\n\t\t\t}\n\n\t\t f[j] = Math.abs( Math.sqrt(Math.pow(firstSummation,2) + \n\t\t Math.pow(secondSummation,2)) );\n\n\t\t\tdouble amplitude = 2 * f[j]/n;\n\t\t\tdouble frequency = j * h / T * sample_rate;\n\t\t\tSystem.out.println(\"frequency = \"+frequency+\", amp = \"+amplitude);\n\t\t}\n\t\tSystem.out.println(\"DONE\");\n\t\treturn f;\n\t\t\n\t}", "int stopSample() {\n// This will tell thread to stop reading and writing\n // reload with old URL\n // reloadSample\n if (debugFlag)\n debugPrint(\"JSChannel: stopSample must be overridden\");\n startTime = 0;\n return 0;\n }" ]
[ "0.66774875", "0.66302145", "0.6615252", "0.6548932", "0.6260136", "0.6223571", "0.6215166", "0.6170106", "0.61465555", "0.611519", "0.6083425", "0.60733783", "0.60336", "0.6015302", "0.5971249", "0.59512025", "0.59346855", "0.59336853", "0.59221387", "0.5912823", "0.5886464", "0.587106", "0.5842289", "0.5794659", "0.57874185", "0.57595396", "0.574236", "0.5739696", "0.572831", "0.57050586", "0.57024884", "0.57017386", "0.56873155", "0.56846535", "0.5655915", "0.56484777", "0.5644203", "0.56394106", "0.56277436", "0.56202376", "0.5615924", "0.561255", "0.56052184", "0.55960405", "0.5594517", "0.55746436", "0.5572913", "0.5567173", "0.5563567", "0.5558532", "0.55242115", "0.5523655", "0.55141264", "0.5487288", "0.5486613", "0.5482359", "0.547915", "0.547344", "0.5473126", "0.5463527", "0.54605556", "0.5456332", "0.54196364", "0.5412229", "0.5410347", "0.54086", "0.54062974", "0.5401813", "0.5401813", "0.54015934", "0.5401214", "0.53975743", "0.5394914", "0.53803647", "0.5367727", "0.535466", "0.5353886", "0.5351434", "0.53507435", "0.53478223", "0.5341824", "0.5322703", "0.53162515", "0.5313813", "0.53072673", "0.52907574", "0.5282384", "0.5266183", "0.52653664", "0.52629465", "0.5258863", "0.52527624", "0.5252547", "0.52501684", "0.52288496", "0.5227044", "0.5225582", "0.52222466", "0.5218788", "0.52177244", "0.52156633" ]
0.0
-1