anchor
stringlengths
10
14.3k
positive
stringlengths
10
14.9k
write your code here
public static void removeAllNumbersGreaterThan10(Set<Integer> set) { Iterator<Integer> iterator = set.iterator(); while (iterator.hasNext()) { Integer integer = iterator.next(); if (integer.intValue() > 10) { iterator.remove(); } } }
All parameters are injected by GIN
@Inject public AppControllerImpl(PlaceController placeController, EventBus eventBus, PlaceHistoryHandler placeHistoryHandler, AppLayout appLayout, ActivityManagerInitializer activityManagerInitializer) { this.placeController = placeController; this.placeHistoryHandler = placeHistoryHandler; this.appPanelView = a...
Return a set containing all repair kits on board.
@Override public Set<RepairKit> getRepairKits(Board board) { return board.getElements(RepairKit.class); }
Takes no arguments and returns an array containing the states of each block of the ship
public int[] getDamage(){ return shipDamage; }
If no status gadget is provided, it uses a basic one.
public SingleUploader() { this(null); }
This method was generated by MyBatis Generator. This method returns the value of the database column t_mp_num.twoMerchant
public Long getTwomerchant() { return twomerchant; }
Parses a user's favorites into a map of page views keyed by section (e.g. MARKET, COMPANY, etc.).
@SuppressWarnings("unchecked") protected Map<String, List<PageViewVO>> processUserFavorites(ModuleVO mod) throws ActionException { log.debug("processUserFavorites..."); Map<String, List<PageViewVO>> pageMap = initializePageMap(); if (mod.getErrorCondition()) return pageMap; List<FavoriteVO> favs = (List<F...
The title property is a short plain text description of the RESTful API. The value SHOULD be suitable for use as a title for the contained user documentation.
String title();
.DownloadRequest downloadRequest = 12;
entities.Torrent.DownloadRequestOrBuilder getDownloadRequestOrBuilder();
TODO Autogenerated method stub
@Override public void onClick(View v) { }
/ Generic TextView creation.
private TextView getTextView(String content) { TextView textView = new TextView(this.getContext()); textView.setEms(30); textView.setTextColor(getResources().getColor(R.color.ldstools_black)); if(content != null && !content.isEmpty()) { textView.setText(content); } ...
/ renamed from: e
public final void mo3957e() { this.f1313w = true; }
No special processing if dialog has been canceled
@Override public void onError(DialogError e) { }
Deletes a User from the data store.
void deleteUser(int id) throws DataAccessException;
/ / / / / / / / / / /
public boolean equals(Object object) { /* 326 */ if (object == null) { /* 327 */ return false; /* */ } /* 329 */ if (object == this) { /* 330 */ return true; /* */ } /* 332 */ if (object instanceof DefaultTimeline) { /* 333 */ return true; /* */...
disconnect ReceivingSpace with goods_allocation in Goods
public ReceivingSpace planToRemoveGoodsListWithGoodsAllocation(ReceivingSpace receivingSpace, String goodsAllocationId, Map<String,Object> options)throws Exception;
/// returns the trig function of the equation purely for walk through
public static String function_2(String question) { //int first_par = 0; //int second_par = question.indexOf(")"); //int third_par = question.indexOf("(", second_par); String function_2 = question.substring(find_par(2,question)+1,find_par(3,question)); return function_2; }
The HashMap is productId to count
public Buyer(String username, String password, String firstName, String lastName, String emailAddress, String phoneNumber) { super(username, password, firstName, lastName, emailAddress, phoneNumber); this.role = 1; credit = 10000; ProgramManager.getProgramManagerInstance().addAccountToLi...
and csmi_place is null
public M csmiPlaceNull(){if(this.get("csmiPlaceNot")==null)this.put("csmiPlaceNot", "");this.put("csmiPlace", null);return this;}
Returns the total number of consumed work units by the engine instance at hand since the engine's last deployment.
long getConsumedWorkUnits();
d) Optional: Generar endpoint para recibir un listo de platos y devolver el listado procesado.
@Test void processListOfPlates() throws Exception { String request = "[" + "{\"name\": \"Ensalada\", \"ingredients\": [" + createIngredient("Calabaza", 100) + "," + createIngredient("Cebolla", 70) + "]}," + "{\"name\": \"Hamburguesa\", \"ingredients\": [" + createIngredient...
Timestamp; when this request should be considered invalid optional uint64 expires = 4;
private void setExpires(long value) { bitField0_ |= 0x00000004; expires_ = value; }
Read a single car based on the plate number.
Car readCar(String plateNo) throws CarNotFoundException;
Comment for the specified element (last contentvisited or any parent).
void visitComment(MappedElementKind targetKind, String comment);
The file descriptor set used to generate this result. .google.protobuf.FileDescriptorSet fdset = 5 [json_name = "fdset"];
@java.lang.Override public boolean hasFdset() { return fdset_ != null; }
Display the main menu
public void displayInput() { scan = new Scanner(System.in); boolean exit = false; while (!exit) { System.out.println("\n1.Display Product"); System.out.println("2.Buy Product"); System.out.println("3.Cart"); System.out.println("4.Exit"); System.out.println("Enter Your Choice:-"); choice = getVal...
User cancelled the dialog
public void onClick(DialogInterface dialog, int id) { }
/ WARNING void declaration
@Override public void update(int n, int n2) { void mouseY; void mouseX; super.update((int)mouseX, (int)mouseY); float[] hsb = Color.RGBtoHSB(this.setting.getValue().getRed(), this.setting.getValue().getGreen(), this.setting.getValue().getBlue(), null); double difference = Mat...
Returns the value of the 'Version' attribute. If the meaning of the 'Version' attribute isn't clear, there really should be more of a description here...
String getVersion();
Lists all services belonging to a namespace.
default void listServices( com.google.cloud.servicedirectory.v1beta1.ListServicesRequest request, io.grpc.stub.StreamObserver<com.google.cloud.servicedirectory.v1beta1.ListServicesResponse> responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getListServi...
Only creates one NuxeoConnector instance and returns it.
public NuxeoConnector getNuxeoInstance() { if(this.nuxeoConnector==null) { nuxeoConnector = new NuxeoConnector(); } return this.nuxeoConnector; }
Start typing your Java solution below DO NOT write main() function
public int lengthOfLongestSubstring(String s) { int l=s.length(),len=0,r=0; HashMap<Character,Integer> h=new HashMap<Character,Integer>(); for(int i=0;i<l;) { char c=s.charAt(i); if(h.containsKey(c)) { i=h.get(c)+1; // we should restart and clear the hash...
Returns the total cellularity percentage.
public double getTotalCellularityPercentage() { return totalCellularityPercentage; }
tempt algorithm with higher cards (strategy hand has both wild and wd4)
@Test public void testPlayer_getBoldStrategyCard_numeric_colorBeatsNumber() { player2 = new Player("Player Two", true); player2.setHand(strategyHand.getAllCards()); // pick a cpc that could return two possible options // and assert that the higher value card comes back ...
The same RequestContext is used throughout the processing, and retries need to be reset once successfully connected so that any earlier (successful) recoveries are not considered when performing any new future recoveries. This test ensures that a reset clears the retry counter and that we can attempt retries again up t...
@Test public void testResetAndCanRetry() { assertTrue(rc.attempt()); assertTrue(rc.attempt()); assertTrue(rc.attempt()); rc.reset(); assertTrue(rc.attempt()); assertTrue(rc.attempt()); assertTrue(rc.attempt()); assertFalse(rc.attempt()); asser...
System.out.println("voPlace = " + voPlace);
@ApiOperation("新增一个会场") @PostMapping("/insertOnePlace") public ResultResponse insertOnePlace(@ApiParam("place对象") @RequestBody VoPlace voPlace){ Object data = null; StringBuilder message = new StringBuilder("新增会场"); try { data = placeService.insertOnePlace(voPlace); }...
/ access modifiers changed from: packageprivate
public void setRTLParams() { ViewGroup.LayoutParams layoutParams = this.mSkipView.getLayoutParams(); if (layoutParams instanceof RelativeLayout.LayoutParams) { RelativeLayout.LayoutParams layoutParams2 = (RelativeLayout.LayoutParams) layoutParams; layoutParams2.removeRule(20); ...
Returns the result of interpreting the object as an instance of 'Data Type'. This implementation returns null; returning a nonnull result will terminate the switch.
public T caseDataType(DataType object) { return null; }
/ renamed from: b
public void mo38284b(C7998s sVar) { this.f27044g = sVar; }
/ / / / / / / 235
public long toTimelineValue(long millisecond) { return millisecond; }
Determines a ZScore for the specific key's win rate compared to the overall win rate Test from:
public double getZScore(K keyToCheck) { V winRateDataForKey = this.winRateData.get(keyToCheck); double p1 = winRateDataForKey.getWinRate(); double n1 = winRateDataForKey.playedCount; double p2 = (this.totalWinCount - winRateDataForKey.winCount) / (this.totalPlayedCount - winRateDataFor...
/ renamed from: b
public A mo9868b() { return this.f2527b; }
Constructor that makes document with Document Model docModel and Title title.
public Document(String title, CopyOnWriteArrayList<String> docModel, String location, int id) { this.docModel = docModel; this.name = title; this.location = location; this.id = id; /* Starts up command listener for document */ Thread t = new Thread(new Runnable() { @Override public voi...
Main method used to import dataset from CVS files: the file must contain: feature name;commitId; The program then takes each commit and extract the feature oriented changes from it and stores everything into the Neo4J database.
static public void extractFromCSVRefFile(String file_path) throws Exception { DataExtractor de = new DataExtractor(); File commitFile = new File(file_path); BufferedReader reader = new BufferedReader(new FileReader(commitFile)); String line = ""; List<String> commit_ids = new ArrayList<String>(); wh...
getTotalCustomers() Gets the total customers and returns.
public int getTotalCustomers() { return totalCustomers; }
Creates a quadric robust estimator based on 3D point samples and using provided points and robust estimator method.
public static QuadricRobustEstimator create(List<Point3D> points, RobustEstimatorMethod method) { switch (method) { case LMedS: return new LMedSQuadricRobustEstimator(points); case MSAC: return new MSACQuadricRobustEstimator(points); ...
this returns the record for a specified day, this method stores all the records in the array
public Record query(final PlayerType p_type, final int p_queryDate) throws RemoteException { for(int x= 0; x <= 100; x++) { records [x][1] = query(PlayerType.LEADER, x); records [x][2] = query(PlayerType.FOLLOWER, x); } return null; }
TODO Autogenerated method stub
public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int num = scanner.nextInt(); int i; int result = 1; for (i = 1; i <= num; i++) { result = result * i; if (i == num) { System.out.println(result); } } }
Disables a player from attacking for 10 seconds
public void disablePlayerAttacking(final Player p) { p.sendMessage(ChatColor.GRAY + "You cannot attack for 10 seconds."); final Listener l = new Listener() { @EventHandler public void onPlayerDamage(EntityDamageByEntityEvent e) { if (e.getDamager() instanceof Player && e.getEntity() instanceof Player) { ...
Function to check if array has 2 elements whose sum is equal to the given value
static boolean hasArrayTwoCandidates(int A[], int arr_size, int sum) { int l, r; /* Sort the elements */ Arrays.sort(A); /* Now look for the two candidates in the sorted array*/ l = 0; r = arr_size-1; while (l < r) { if(A[l] + A[r] == sum) return true; else if(A[l] + A...
Log.enter(this, "removeFramesWithValue", slot, facet, new Boolean(isTemplate));
public void removeFramesWithValue(Slot slot, Facet facet, boolean isTemplate) throws SQLException { trace("removeFramesWithValue", slot, facet); String command = "DELETE FROM " + _tableName + " WHERE " + SLOT + "= ? AND " + FACET + "= ? AND " + IS_TEMPLATE + "= ?"; PreparedStatement stmt = _stat...
records purchase of the given shares at the given price
public void purchase(double shares, double pricePerShare) { this.totalShares += shares; super.addCost(shares * pricePerShare); }
Get captured `from` argument.
public Optional<Tag> capturedFrom() { return this.from.get(); }
It returns the geometry representing agent location
public MasonGeometry getGeometry() {return agentLocation;}
Validation Functions Description : To validate the Postcode of Billing Address in Customer Tab Coded by :Raja Created Data:05 Oct 2016 Last Modified Date:05 Oct 2016 Modified By:Raja Parameter:Postcode
public void validate_the_Postcode_of_Billing_Address_in_Customer_Tab(String Postcode)throws Exception { VerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_BillingAddress.replaceAll("M_Header", "Billing Address").replaceAll("M_Category", "Postcode").replaceAll("M_InnerText", Postcode), "Postcode of Billing Addres...
Sets the user id.
public void setUserId(int userId) { this.userId = userId; }
/ Choose a random Color
private int getRandomMaterialColor(String typeColor) { int returnColor = Color.GRAY; int arrayId = getResources().getIdentifier("mdcolor_" + typeColor, "array", getContext().getPackageName()); if (arrayId != 0) { TypedArray colors = getResources().obtainTypedArray(arrayId); ...
Humanreadable message for the merchant optional string memo = 4;
public Builder clearMemo() { copyOnWrite(); instance.clearMemo(); return this; }
TODO: Move to core...
protected AbstractMetadata(final boolean pStandardFormatSupported, final String pNativeFormatName, final String pNativeFormatClassName, final String[] pExtraFormatNames, final String[] pExtraFormatClassNames) { super(pStandardFormatSupported, pNative...
Defines literals for the meta objects that represent each class, each feature of each class, each enum, and each data type
interface Literals { /** * The meta object literal for the '{@link com.devoxx2012.xtext.demo1.demo1.impl.ModelImpl <em>Model</em>}' class. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see com.devoxx2012.xtext.demo1.demo1.impl.ModelImpl * @see com.devoxx2012.xtext.demo1.demo1.impl....
TODO convert this to binary search
public boolean isEndState(int i) { for (int k = 0; k < endStates.length; k++) if (endStates[k] == i) return true; return false; }
int k = i%j;
protected void addInstagramDetailPage(Panel middleTable, List<Data> instagrams) { int i = 0; HorizontalPanel hp = new HorizontalPanel(); for (Data data : instagrams) { //thumbnails VerticalPanel vp = new VerticalPanel(); if (i % 3 == 0) { hp = ...
Method to return a pet from the map by name
public VirtualPet getPet(String name) { return shelterPets.get(name); }
/ access modifiers changed from: protected
@Override // com.meizu.cloud.pushsdk.handler.p750a.C6687c /* renamed from: c */ public void mo42880b(MessageV3 messageV3) { C6777d.m40835b(mo42881c(), messageV3.getUploadDataPackageName(), messageV3.getDeviceId(), messageV3.getTaskId(), messageV3.getSeqId(), messageV3.getPushTimestamp(), messageV3.getDe...
Create a view of the given width and height.
public MapView(int height, int width) { stats = new FieldStats(); colors = new LinkedHashMap<>(); setTitle("Map Environment Viewer"); stepLabel = new JLabel(STEP_PREFIX, JLabel.CENTER); infoLabel = new JLabel(" ", JLabel.CENTER); population = new JLabel(POPULATION_P...
String[] languages = getResources().getStringArray(R.array.languages);
@Override public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) { }
System.setProperty("java.awt.headless","true"); ConfigFile.init(); String pw = "Escherichia_coli_K12/superpathway_of_threonine_metabolism"; / final String pw = "Escherichia_coli_K12/b"; final String graphFile = pw + ".grp"; viz = GraphVisHandler.getImageByType(System.getProperty("user.dir") + "/..", graphFile, true, pw...
public static JSplitPane buildContentPane() { final String pw = "Escherichia_coli_K12/superpathway_of_leucine-_valine-_and_isoleucine_biosynthesis";//b3"; final String graphFile = pw + ".grp"; viz = GraphVisHandler.getImageByType(System.getProperty("user.dir") + "/..", graphFile, true, pw, 400, 400, ...
Returns a bitmask containing the types of resources in the selection.
private int getSelectedResourceTypes(IResource[] resources) { int types = 0; for (IResource resource : resources) { types |= resource.getType(); } return types; }
Returns the probability of a given vector from this distribution. By definition, the probability will always be in the range [0, 1].
default public double pdf(double... x) { return pdf(DenseVector.toDenseVec(x)); }
/ renamed from: b
public final boolean mo31287b(Context context, String str, Hashtable hashtable, TJConnectListener tJConnectListener) { this.f13976a.lock(); if (tJConnectListener != null) { try { this.f13982g.addLast(C5087fn.m17200a(tJConnectListener, TJConnectListener.class)); } ...
Validates a given property path as Boolean
private static boolean validateBoolean(Map.Entry<String, CheckState> entry) { String prop = System.getProperty(entry.getKey()); if (entry.getValue().isOptional && prop == null) { return true; } return Boolean.TRUE.toString().equals(prop) || Boolean.FALSE.toString().equals(pro...
TODO Autogenerated method stub
@Override protected void findViewById() { mIndicator = (SimpleViewPagerIndicator) findViewById(R.id.id_stickynavlayout_indicator); mViewPager = (ViewPager) findViewById(R.id.id_stickynavlayout_viewpager); stickyNavLayout = (StickyNavLayout) findViewById(R.id.stickynavlayout); iv_user_logo = (ImageVie...
TODO Autogenerated method stub
public static void main(String[] args) { for(int count = 1 ; count <=3 ; ++count) { System.out.print(count+"★★★★");//요자리 요거 대신에 13~15행의 내용?? System.out.println(); } for( int col = 1; col <=4 ; col++ ) { System.out.print('★'); } Syste...
Get the Number of Services Running
public static int getNumberOfServices(CounterDetailVO counterDetails) { Session session = HibernateConfig.getSessionFactory().getCurrentSession(); Transaction txn = session.beginTransaction(); Query query = session.createQuery(HQLConstants.DB_QUERY_GET_NUMBER_OF_SERVICES); query.setInteger("envId", counterDetai...
Computes the sum of all frequencies in a specified column
protected int sumColumn(Label l){ int sum = 0; int colIx = resolveIndex(l); //iterate all cells in the column for(int i = 0;i<size();i++){ Integer cell = matrix.get(i).get(colIx); sum+=cell; } return sum; }
Set the superWorld of an entity to the given world.
@Raw protected void setSuperWorld(World world) throws IllegalArgumentException{ if(world == null || isValidSuperWorld(world)) this.superWorld = world; else throw new IllegalArgumentException("Isn't a valid world @setSuperWorld()"); }
Returns the last vcms discussion in the ordered set where articleId = &63; and approved = &63;.
public VcmsDiscussion findByA_A_Last(java.lang.String articleId, boolean approved, com.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator) throws NoSuchVcmsDiscussionException;
Converts a multipartfile into an input stream for s3 and uploads to s3. Also forms the minimum amount of metadata for the s3 object.
public PutObjectResult upload(MultipartFile multipartFile, String uploadKey) throws IOException { InputStream inputStream = multipartFile.getInputStream(); ObjectMetadata metadata = new ObjectMetadata(); metadata.setContentLength(multipartFile.getSize()); metadata.setContentType(multipa...
Initializes the controller class.
@Override public void initialize(URL url, ResourceBundle rb) { try { cmbBookPublisherIdAdd.getItems().setAll(ChoiceBoxes.PublisherIdChoice()); cmbBookAuthorIdAdd.getItems().setAll(ChoiceBoxes.AuthorIdChoice()); cmdBookGenreIdAdd.getItems().setAll(ChoiceBoxes.GenreIdChoic...
/ metodo: Equivalencia AFN para AFD objetivo: Criar o Automato AFD equivalente
public Automato equalAFN2AFD(Automato a){ Automato r = a; Estado morto = new Estado("morto"); r.addEstado(morto); r.addTransicao(morto,morto,'0'); r.addTransicao(morto,morto,'1'); Iterator<Estado> it = r.getQ().iterator(); while(it.hasNext()){ Estado e = it.next(); if (r.findAll(e, '0').isEmpty()){ ...
Logs debug messages in an easier to search way You can also use system.out, but it'll be harder to work with
void log(HandlerInput input, String message) { System.out.printf("[%s] [%s] : %s]\n", input.getRequestEnvelope().getRequest().getRequestId().toString(), new Date(), message); }
/ Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution.
public static void main(String[] args) { Scanner in = new Scanner(System.in); int n = in.nextInt(); long[] ar = new long[n]; for(int ar_r=0; ar_r<n; ar_r++){ ar[ar_r] = in.nextLong(); } double[] result = findPlusMinus(n, ar); System.out...
The act method of the world. Does the following: Shows intro text. Shows outro text. Goes back to GameWorld at the end of a battle.
public void act() { if(worldTimer == 1) { if(wildPokemon) { textInfoBox.displayText("Wild " + enemyPokemon.getName() + " appeared!", true, false); } else { textInfoBox.displayText("Enemy trainer sen...
Called whenever one of the list items is clicked.
@Override protected void onListItemClick(ListView list, View view, int position, long id){ // Start the selected Activity Intent intent = new Intent(this, activities[position]); startActivity(intent); }
Test compitability with old JSON format.
@Test @SmallTest public void testReadFromJsonString() throws Throwable { final String jsonObjectString = "{'crash-local-id':'123456abc','crash-capture-time':1234567890," + "'crash-keys':{'app-package-name':'org.test.package'}}"; CrashInfo parsed = CrashInfo.readF...
TODO: not sure this is appropriate
@SuppressWarnings("unchecked") @Test void shouldThrowExceptionWhenGivenEntriesIsEmpty() { DefaultValidator<Target> validator = new DefaultValidator<>(Target.class); assertThrows(IllegalArgumentException.class, () -> validator.ruleForMap(Target::getMap).doesNotContain(new MapEntry[0])); }
Constructs with the specified initial text and icon.
public JRibbonAction(String text, Icon icon) { super(text, icon); }
returns the position where the pacman needs to be positioned
public Point getPacmanPosition() { throw new RuntimeException("Not Implemented"); }
A generic method for rendering sliders with an event on mouse release
private void renderSlider(double min, double max, double value, EventHandler eventHandler) { unmountSlider(); buildSlider(min, max, value); slider.addEventHandler(MouseEvent.MOUSE_RELEASED, eventHandler); mountSlider(); }
Method responsible for control the refresh icon
private void postRefreshing(final boolean refreshing) { // Check if layout is not null and then add or remove the refresh icon according to the parameter if (mSwipeRefreshLayout != null) mSwipeRefreshLayout.post(new Runnable() { @Override public void run() { ...
/ algo 1. find the multiples of numbers in first array
public static void main(String[] args) { int[] arr = {2,6}; for (int i = 0; i < arr.length; i++) { int[] arrNew = null; for (int j = 1; j < 100; j++) { arrNew[j] = arr[i] *j ; } } }
Use this factory method to create a new instance of this fragment using the provided parameters.
public static CartFragment newInstance(String param1, String param2) { CartFragment fragment = new CartFragment(); Bundle args = new Bundle(); args.putString(ARG_PARAM1, param1); args.putString(ARG_PARAM2, param2); fragment.setArguments(args); return fragment; }
=========================================================== Getter & Setter ===========================================================
public void setParallaxValue(final float pParallaxValueX, final float pParallaxValueY) { this.mParallaxValueX = pParallaxValueX; this.mParallaxValueY = pParallaxValueY; }
Channel is called onCreate()
public void createNotificationChannel() { //Instantiate the NotificationManager mNotifyManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE); //Notification Channel constructed NotificationChannel notificationChannel = new NotificationChannel(PRIMARY_CHANNEL_ID, "Si...
set (no duplicati) ordinato (Comparable)
public static void main(String[] args) { ProvaCollezioni pc = new ProvaCollezioni(); pc.spesa.add("latte"); pc.spesa.add("pane"); pc.spesa.add("biscotti"); pc.spesa.add("olio"); pc.spesa.add("biscotti"); System.out.println(pc.spesa.size()); for (String voce : pc.spesa) { pc.spesaFiltrata...
This method returns all values of object as string
@Override public String toString() { return "Visitor{" + "period=" + period + '}'; }
Launches confirmation dialog asking is user really wants to delete the report, then deletes it if user confirms
private void runDeleteReport() { showDialog(DIALOG_CONFIRM_DELETE_REPORT_ID); }
This method was generated by MyBatis Generator. This method sets the value of the database column t_company_recommend.id
public void setId(Integer id) { this.id = id; }
see DbFile.java for javadocs
public DbFileIterator iterator(TransactionId tid) { System.out.println("numPages is " + numPages); return new TupleIter(numPages); }
This decides how the result will be sorted.
public static URL buildMovieDbQueryURL(@MovieDisplayMode int displayMode) { String chosenURLBasedOnSortBy = ""; switch (displayMode) { case MovieDisplayMode.MOST_POPULAR: chosenURLBasedOnSortBy = MOVIEDB_API_MOSTPOPULAR_URL; break; case MovieDispl...