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
Sets the reviews list for the movie.
public void setReviewsList(ArrayList<Review> reviews) { this.reviews = reviews; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setReviews(ArrayList<Review> reviews) {\n\t\tthis.reviews = reviews;\n\t}", "public void setReviews(ArrayList<String> reviews) {\n this.reviews = reviews;\n }", "public void setReviewList(List<Review> reviewList) {\n this.reviewList = reviewList;\n notifyDataSetChanged();\n }", "public void setReviews(Set<Review> reviews) {\n this.reviews = reviews;\n }", "private void updateReviews() {\n ArrayList<MovieReview> movieReviewArrayList = new ArrayList<>();\n reviewRecyclerView = findViewById(R.id.reviews_recycler_view);\n reviewRecyclerView.setLayoutManager(new LinearLayoutManager(this));\n movieReviewAdapter = new MovieReviewAdapter(movieReviewArrayList, MovieDetailActivity.this);\n reviewRecyclerView.setAdapter(movieVideoAdapter);\n }", "private void setupReviewsList() {\n LinearLayoutManager linearLayoutManager = new LinearLayoutManager(DetailActivity.this, RecyclerView.VERTICAL, false);\n reviewsRecyclerView.setLayoutManager(linearLayoutManager);\n reviewsRecyclerView.setHasFixedSize(true);\n\n //setting up adapter\n ReviewAdapter reviewAdapter = new ReviewAdapter(DetailActivity.this, reviewArrayList);\n reviewsRecyclerView.setAdapter(reviewAdapter);\n }", "public void setReview(List<ReviewType> review) {\n\t this.review = review;\n\t}", "private void populateReviews(Bundle savedInstanceState) {\n LinearLayoutManager layoutManager =\n new LinearLayoutManager(this, LinearLayoutManager.HORIZONTAL, false);\n mBinding.movieReviews.reviewsList.setLayoutManager(layoutManager);\n mBinding.movieReviews.reviewsList.setHasFixedSize(true);\n mBinding.movieReviews.reviewsList.setNestedScrollingEnabled(false);\n\n RecyclerView.ItemDecoration itemDecoration = new HorizontalItemDecoration(this);\n mBinding.movieReviews.reviewsList.addItemDecoration(itemDecoration);\n\n mReviewAdapter = new ReviewAdapter(this);\n mBinding.movieReviews.reviewsList.setAdapter(mReviewAdapter);\n\n if (savedInstanceState != null && savedInstanceState.containsKey(BUNDLE_REVIEWS)) {\n mReviewAdapter.addReviewsList(savedInstanceState.\n <Review>getParcelableArrayList(BUNDLE_REVIEWS));\n if (mReviewAdapter.getItemCount() == 0) {\n mBinding.movieReviews.reviewsLabel.setVisibility(View.GONE);\n }\n } else {\n Call<ApiResponse<Review>> call = mApiClient.getReviews(movie.movieId);\n\n call.enqueue(new Callback<ApiResponse<Review>>() {\n @Override\n public void onResponse(Call<ApiResponse<Review>> call,\n Response<ApiResponse<Review>> response) {\n List<Review> result = response.body().results;\n mReviewAdapter.addReviewsList(result);\n if (result.size() == 0) {\n mBinding.movieReviews.reviewsLabel.setVisibility(View.GONE);\n }\n }\n\n @Override\n public void onFailure(Call<ApiResponse<Review>> call, Throwable t) {\n Toast.makeText(DetailActivity.this,\n getString(R.string.connection_error), Toast.LENGTH_LONG).show();\n }\n });\n }\n }", "public Reviews (ArrayList<Review> list)\n\t{\n\t\tthis.list = list;\n\t}", "private void updateReviews(){\r\n FetchReviewsTask reviewsTask = new FetchReviewsTask();\r\n reviewsTask.execute(MovieId);\r\n }", "public ReviewsAdapter() {\n\t\tmovieReviews = new ArrayList<MovieReview>();\n\t}", "public ArrayList<Review> getReviewsList() {\n return reviews;\n }", "public void setReview(final Review review);", "public void setReview(java.lang.String[] review) {\n this.review = review;\n }", "public void refreshReviewList() {\n reviewListModel.clear();\n int index = gamesList.getSelectedIndex();\n String gameName = gamesListModel.getElementAt(index).toString();\n String gameID = dbMgr.getGameID(gameName);\n List<List<String>> userReviews = dbMgr.getReviewsByGame(gameID);\n\n // fill list with review for currently selected game\n for (int i = 0; i < userReviews.size(); i++) {\n reviewListModel.addElement(userReviews.get(i).get(0) + \", \" + userReviews.get(i).get(1) + \"/10\"); \n }\n\n reviewList.setModel(reviewListModel);\n }", "public Set<Review> getReviews() {\n return reviews;\n }", "public void setMovieListings(List<MovieListing> listings) {\n movieListings.clear();\n movieListings = listings;\n notifyDataSetChanged();\n fetchMovieDetails();\n if (MoviesApplication.getApp().isLargeLayout()) {\n selectMovie(0);\n }\n }", "protected void setMessagesToReview(ArrayList<Message> messagesToReview){\n this.msgToReview = messagesToReview;\n }", "private void initializeReviewsAdapter() {\n mReviewsAdapter = new ReviewsAdapter(mUserReviewDataArrayList, this, this, TRUE);\n mBinding.rvPdpProductReviews.setAdapter(mReviewsAdapter);\n }", "private void showReviews() {\n reviewsList = (LinearLayout) rootView.findViewById(R.id.reviews_list);\n LayoutInflater inflater = getActivity().getLayoutInflater();\n for (Review review : reviews) {\n View reviewView = inflater.inflate(R.layout.list_item_review, container, false);\n\n TextView reviewAuthor = (TextView) reviewView.findViewById(R.id.review_author);\n reviewAuthor.setText(review.getAuthor());\n\n TextView reviewContent = (TextView) reviewView.findViewById(R.id.review_content);\n reviewContent.setText(review.getContent());\n\n reviewsList.addView(reviewView);\n }\n }", "public ArrayList<String> getReviews() {\n return reviews;\n }", "public void setReview(double review) {\r\n this.review = review;\r\n }", "public void setMovies(List<Movies> mvoies)\n {\n for ( Movies movie: mvoies)\n {\n if (!mMovies.contains(movie))\n {\n mMovies.add(movie);\n moviesRViewAdapter.notifyItemInserted(mMovies.indexOf(movie));\n }\n }\n }", "public void refreshSearchReviewList() {\n reviewSearchModel.clear();\n int index = gamesSearchList.getSelectedIndex();\n String gameName = gamesSearchListModel.getElementAt(index).toString();\n String gameID = dbMgr.getGameID(gameName);\n List<List<String>> userReviews = dbMgr.getReviewsByGame(gameID);\n\n // fill list with review for currently selected game\n for (int i = 0; i < userReviews.size(); i++) {\n reviewSearchModel.addElement(userReviews.get(i).get(0) + \", \" + userReviews.get(i).get(1) + \"/10\"); \n }\n\n reviewSearch.setModel(reviewSearchModel);\n }", "public ArrayList<Review> getReviews() {\n\t\treturn reviews;\n\t}", "public void addReviews(List<Review> reviewsLoaded){\n\n if(reviewsLoaded==null)\n return;\n\n reviews.addAll(reviewsLoaded);\n notifyDataSetChanged();\n }", "public void setRatings(Rating[] ratings) {\n this.ratings = ratings;\n }", "public ReviewsAdapter(Context context, List<ReviewData> list) {\n this.reviewDataList = list;\n }", "@Override\n public void getReviews(ArrayList<String> author, ArrayList<String> content) {\n if (author.size() > 0 && content.size() > 0 && author.size() == content.size()) {\n ContentValues[] reviewsArray = new ContentValues[author.size()];\n for (int i = 0; i < author.size(); i++) {\n ContentValues reviewsData = new ContentValues();\n reviewsData.put(MovieContract.ReviewEntry.COLUMN_MOVIE_ID, movieObject.getId());\n reviewsData.put(MovieContract.ReviewEntry.COLUMN_AUTHOR, author.get(i));\n reviewsData.put(MovieContract.ReviewEntry.COLUMN_CONTENT, content.get(i));\n reviewsArray[i] = reviewsData;\n }\n Uri reviewsUri = MovieContract.ReviewEntry.CONTENT_URI.buildUpon().appendPath(Integer.toString(movieObject.getId())).build();\n getContext().getContentResolver().bulkInsert(reviewsUri, reviewsArray);\n }\n currentPage++;\n if (currentPage <= maxPage) {\n GetReviewsFromApi getReviewsFromApi = new GetReviewsFromApi(getContext(), MovieDetailsFragment.this, movieObject.getId());\n getReviewsFromApi.execute();\n }\n }", "public ReviewRepository(Review ...reviewsToAdd) {\n for(Review review: reviewsToAdd) {\n reviewList.put(review.getId(), review);\n }\n }", "@Transactional\n\tpublic List<UserReview> getReviewByMovie(Movie movie) {\n\t\treturn userReviewRepopsitory.findByMovie(movie);\n\t}", "public void deliverResult(ArrayList<Reviews> reviews) {\n mReviews = reviews;\n super.deliverResult(reviews);\n }", "void setReviewStats()\n {\n if (hasInfo)\n {\n curReviewPageNum = 1;\n WalmartRequestHelper walmartRequestHelper = new WalmartRequestHelper(itemID, curReviewPageNum);\n\n curReviewURL = walmartRequestHelper.getRequestURL();\n\n Integer numStars[] = new Integer[5];\n\n for (int i = 0; i < 5; i++)\n {\n numStars[i] = 0;\n }\n\n try\n {\n Document reviewResultPage = Jsoup.connect(curReviewURL).userAgent(\"Mozilla\")\n .ignoreHttpErrors(true).ignoreContentType(true).get();\n\n // Handles the rare case where the API gives an error.\n if (reviewResultPage.getElementsByTag(\"title\").text().equals(\"Error\"))\n {\n return;\n }\n\n Elements unparsedRatings = reviewResultPage.getElementsByTag(\"ratingCounts\");\n\n // Review statistics are only generated if ratings can be found.\n if (unparsedRatings.size() != 0)\n {\n for (int i = 0; i < unparsedRatings.size(); i++)\n {\n String unparsedRatingCount = unparsedRatings.get(i).getElementsByTag(\"count\").text();\n\n if (!unparsedRatingCount.equals(\"\"))\n {\n numStars[i] = Integer.parseInt(unparsedRatings.get(i).text());\n }\n else\n {\n // No ratings could be found\n numStars[i] = 0;\n }\n }\n\n reviewStats = new ReviewStats(numStars);\n }\n else\n {\n reviewStats = new ReviewStats(numStars);\n }\n }\n catch (IOException ioe)\n {\n ioe.printStackTrace();\n }\n }\n }", "Builder addReviews(Review value);", "public void setMovie(Movie movie) {\n this.movie = movie;\n }", "@Override\n protected void onSaveInstanceState(Bundle currentMovieBundle) {\n currentMovieBundle.putParcelableArrayList(\"reviews\", mCurrentReviews);\n currentMovieBundle.putParcelableArrayList(\"trailers\", mCurrentTrailers);\n super.onSaveInstanceState(currentMovieBundle);\n }", "public void updateData(List<Movie> movies) {\n mMovies = movies;\n notifyDataSetChanged();\n }", "private void readReviews(final String filename) \n\t{\n\t\ttry\n\t\t{\n\t\t\tBufferedReader br = new BufferedReader(new FileReader(new File(\"dataset\" + File.separator + filename)));\n\t\t\tString line;\n\t\t\t\n\t\t\twhile ((line = br.readLine()) != null) \n\t\t\t{\n\t\t\t\tString[] tokens = line.split(\";;\");\n\t\t\t\tif(tokens.length != 12)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"Error reading from file \\\"\" + filename + \"\\\"\");\n\t\t\t\t\tSystem.exit(1);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tString reviewId = tokens[0];\n\t\t\t\tString reviewerUrl = tokens[1];\n\t\t\t\t\n\t\t\t\tString productCategory = tokens[2];\n\t\t\t\tString productId = tokens[3];\n\t\t\t\tString productName = tokens[4];\n\t\t\t\t\n\t\t\t\tString reviewTitle = tokens[5];\n\t\t\t\tString reviewText = tokens[6];\n\t\t\t\tdouble reviewRating = Double.parseDouble(tokens[7]);\n\t\t\t\tString reviewDate = tokens[8];\n\t\t\t\t\n\t\t\t\tint posVotes = Integer.parseInt(tokens[9]);\n\t\t\t\tint totalVotes = Integer.parseInt(tokens[10]);\n\t\t\t\tdouble helpfulness = Double.parseDouble(tokens[11]);\n\t\t\t\t\n\t\t\t\treviews.add(new Review(reviewId, reviewerUrl, productCategory, productId, productName, reviewTitle, reviewText, reviewRating, reviewDate, posVotes, totalVotes, helpfulness));\n\t\t\t\t\n\t\t\t\t/** stores the helpfulness of reviews rated from 1 to 5 **/\t\t\t\n\t\t\t\tif (reviewRating == (int)(reviewRating))\n\t\t\t\t{\n\t\t\t\t\tList<Double> list = ratings.containsKey(reviewRating)? ratings.get(reviewRating): new ArrayList<Double>();\n\t\t\t\t\tlist.add(helpfulness);\n\t\t\t\t\tratings.put(reviewRating, list);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// update the information in for the product\n\t\t\t\tupdateProduct(productId, reviewRating);\n\t\t\t\t// create a new ReviewInstance object\n\t\t\t\tReviewInstance ri = new ReviewInstance();\n\t\t\t\t// store rating of this review\n\t\t\t\tri.setRating(reviewRating);\n\t\t\t\t// classify whether this review is helpful or not\n\t\t\t\tri.setReviewHelpfulness(helpfulness>=0.75 ? \"helpful\" : \"unhelpful\");\n\t\t\t\t\n\t\t\t\t// store the ReviewInstance\n\t\t\t\tthis.reInstanceList.add(ri);\n\t\t\t\treInstanceMap.put(reviewId, ri);\n\t\t\t}\n\t\t\tcomputeStdDevRating();\n\t\t\tbr.close();\n\t\t}\n\t\tcatch(IOException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "public static void updateRating(){\r\n System.out.println('\\n'+\"Update Rating\");\r\n System.out.println(movies);\r\n System.out.println('\\n'+ \"Which movies ratings would you like to update\");\r\n String movieTitle = s.nextLine();\r\n boolean movieFound = false;\r\n // Searching for the name of the movie in the list\r\n for(Movie names:movies ){\r\n //if the movie title is in teh list change rating\r\n if (movieTitle.equals(names.getName())){\r\n System.out.println(names.getName() + \" has a current rating of \"+ names.getRating()+'\\n'+ \"What would you like to change it to?\");\r\n double newRating = s.nextInt();\r\n s.nextLine();\r\n names.setRating(newRating);\r\n System.out.println(\"You have changed the rating of \"+ names.getName()+ \" to \"+ names.getRating());\r\n movieFound = true;\r\n break;\r\n }\r\n }\r\n //if movie titile not in the current list\r\n if (!movieFound){\r\n System.out.println(\"This moves is not one you have previously watched. Please add it first.\");\r\n }\r\n }", "public void setSpecReview(double specReview) {\r\n this.specReview = specReview;\r\n }", "private void setupMovies() {\n mMovieAdapter = new MovieArrayAdapter(this, this);\n mMoviesRecyclerView.setHasFixedSize(true);\n mMoviesRecyclerView.setAdapter(mMovieAdapter);\n GridLayoutManager gridLayoutManager = new GridLayoutManager(\n this,\n 3,\n GridLayoutManager.VERTICAL,\n false\n );\n mMoviesRecyclerView.setLayoutManager(gridLayoutManager);\n }", "@Override\r\n\tpublic List<ReviewVO> reviewListAll() {\n\t\treturn sqlSession.selectList(namespace + \".reviewListAll\");\r\n\t}", "public void setReviewRatingStatistics(final ReviewRatingStatistics reviewRatingStatistics);", "public void setRating(int rating);", "public void setReview_id(String review_id) {\n this.review_id = review_id;\n }", "public boolean setMovieRating(Movie movie, RatingEnum rating){\n if(movie == null) return false;\n movie.rating = rating;\n return true;\n }", "private void loadReviews(){\n cursor = db.rawQuery(\"SELECT * FROM REVIEW WHERE BookID = \"+bookIDSelected+\";\", null);\n startManagingCursor(cursor);\n List<String[]> reviews = new ArrayList<>();\n double sumRating = 0;\n\n while(cursor.moveToNext()){\n String[] arr ={\n String.valueOf(cursor.getInt(0)),\n String.valueOf(cursor.getDouble(3)),\n cursor.getString(2)\n };\n reviews.add(arr);\n sumRating += cursor.getDouble(3);\n }\n setRatingTotal( sumRating / reviews.size() );\n //Toast.makeText(this, ratingTotal+\" = \"+sumRating+\" / \"+reviews.size(), Toast.LENGTH_SHORT).show();\n ratingBarTotal = findViewById(R.id.rvRatingBarTotal);\n ratingBarTotal.setRating((float) ratingTotal);\n\n txtNumRv = findViewById(R.id.rvTxtNumRv);\n txtNoRv = findViewById(R.id.rvTxtNoReview);\n DecimalFormat df = new DecimalFormat(\"#.##\");\n if(reviews.size() == 0){\n txtNumRv.setText( R.string.noReviewsYet );\n } else {\n txtNumRv.setText(df.format(ratingTotal) + \" / \" + reviews.size() + \" reviews\");\n txtNoRv.setVisibility(View.INVISIBLE);\n }\n\n listView = findViewById(R.id.rvListView);\n listView.setAdapter(adapter = new ReviewAdapter(reviews));\n\n }", "@Test\n public void testSetRating() {\n final double delta = 0.0;\n final double expectedRating1 = 70.0;\n final double expectedRating2 = 65.0;\n final double expectedRating3 = 85.5;\n movie1.setRating(expectedRating1);\n movie2.setRating(expectedRating2);\n movie3.setRating(expectedRating1);\n movie4.setRating(expectedRating3);\n movie1.setRating(expectedRating2);\n assertEquals(expectedRating2, movie1.getRating(), delta);\n assertEquals(expectedRating2, movie2.getRating(), delta);\n assertEquals(expectedRating1, movie3.getRating(), delta);\n assertEquals(expectedRating3, movie4.getRating(), delta);\n }", "public void setReviewMode(boolean reviewMode) {\n mIsReviewMode = reviewMode;\n }", "public void recommendMovie()\n {\n r.recommendMovie();\n }", "public void postReview(Review review)\n\t{\n\t\t// The new review ID is the last review ID + 1\n\t\treview.setId(list.get(list.size()-1).getId() + 1);\n\t\t\n\t\t// Add the review to the list\n\t\tlist.add(review);\n\t}", "private void setDataInRecyclerView() {\n LinearLayoutManager linearLayoutManager = new LinearLayoutManager(getActivity());\n recyclerView.setLayoutManager(linearLayoutManager);\n // call the constructor of UsersAdapter to send the reference and data to Adapter\n ReviewAdapter reviewAdapter = new ReviewAdapter(reviewListResponseData, this);\n recyclerView.setAdapter(reviewAdapter); // set the Adapter to RecyclerView\n }", "public void showReviews(View view) {\n if (reviewNo > 0) {\n //send the List of Review objects to the host activity\n listener.displayReviews(reviews);\n }\n }", "void setMovieId(int movieID) {\n this.movieID = movieID;\n }", "@FXML\r\n private void onBtnAddReview(ActionEvent event) {\n reviewRecordsList.add(new ReviewRecords(reviewRecordsList.size()));\r\n }", "private void setMovie() {\n Movie movie = getIntent().getExtras().getParcelable(MOVIE);\n Glide.with(mMoviePoster).setDefaultRequestOptions(new RequestOptions().diskCacheStrategy(DiskCacheStrategy.ALL)).load(BuildConfig.IMG_DIR + movie.getPosterPath())\n .into(mMoviePoster);\n setTitle(movie.getTitle());\n mMovieTitle.setText(movie.getTitle());\n mMovieRating.setText(String.valueOf(movie.getVoteAverage()));\n mMovieDate.setText(movie.getReleaseDate());\n mMovieGenre.setText(movie.isAdult() ? getString(R.string.genre_type_adults) : getString(R.string.genre_type_all));\n mMovieDesc.setText(movie.getOverview());\n }", "public void listAllReview() throws ServletException, IOException {\r\n\t\tlistAllReview(null);\r\n\t}", "public void setPickedMovie(String pickedMovie) {\n this.pickedMovie = pickedMovie;\n }", "public void createRatingList() {\n this.ratings = List.of(kriterium1, kriterium2,\n kriterium3, kriterium4, kriterium5, kriterium6, kriterium7, kriterium8);\n }", "public void addReview(Review review) {\n\t if (review != null) {\n\t\t reviews.add(review);\n\t }\n }", "public GiftCardProductQuery reviews(ReviewsArgumentsDefinition argsDef, ProductReviewsQueryDefinition queryDef) {\n startField(\"reviews\");\n\n ReviewsArguments args = new ReviewsArguments(_queryBuilder);\n argsDef.define(args);\n ReviewsArguments.end(args);\n\n _queryBuilder.append('{');\n queryDef.define(new ProductReviewsQuery(_queryBuilder));\n _queryBuilder.append('}');\n\n return this;\n }", "@Override\r\n\tpublic void setSaleAndReviewNum(List<Product> products) {\n\t\tfor(Product product : products) {\r\n\t\t\tsetSaleAndReviewNum(product);\r\n\t\t}\r\n\t}", "ImmutableList<SchemaOrgType> getReviewsList();", "public List<ReviewType> getReview() {\n\t return this.review;\n\t}", "public void setMyReviewID(int myReviewID) {\n this.myReviewID = myReviewID;\n }", "private void ConfigRecyclerMovies(){\n movieRecyclerAdapter = new MovieRecyclerAdapter(this);\n popularMovieRecycler.setAdapter(movieRecyclerAdapter);\n popularMovieRecycler.setLayoutManager(new LinearLayoutManager(getActivity()));\n }", "public static void listByRating(){\r\n System.out.println('\\n'+\"List by Rating\");\r\n CompareRatings compareRatings = new CompareRatings();\r\n Collections.sort(movies, compareRatings);\r\n for (Movie movie: movies){\r\n System.out.println('\\n'+\"Rating: \"+ movie.getRating()+'\\n'+\"Title: \"+ movie.getName()+'\\n'+\"Times Watched: \"+ movie.getTimesWatched()+'\\n');\r\n }\r\n }", "public void setRating(int rating)\n {\n this.rating = rating;\n }", "public void setMovieArrayList(MovieClass newMovieObject)\n {\n movieArrayList.add(newMovieObject);\n }", "@GET(\"/attractions/{attractionId}/reviews\")\n Call<List<Review>> getReviews(\n @Path(\"attractionId\") int attractionId\n );", "public Recommendation(Movie movie) {\n this.movie = movie;\n }", "public void reviews(Parameters parameters, final onSuccessCallback callback){\n getJSONArray(parameters.buildQuery(Endpoint.REVIEWS), new onSuccessCallback() {\n @Override\n public void onSuccess(JSONArray result) {\n callback.onSuccess(result);\n }\n\n @Override\n public void onError(VolleyError error) {\n callback.onError(error);\n }\n });\n }", "private void showMovieList(MovieResponse movieResponse) {\n setToolbarText(R.string.title_activity_list);\n showFavouriteIcon(true);\n buildList(movieResponse);\n }", "public void setAdvisors(List<Professor> list) {\r\n advisors = list;\r\n }", "public void setRebateReviewData(PersonReviewData[] rebateReviewData) {\n this.rebateReviewData = rebateReviewData;\n }", "Builder addReviews(String value);", "private void setAdapter(List<MovieList> listMovies) {\n adapter = new CardAdapter(listMovies, this);\n //Adding adapter to recyclerview\n AlphaInAnimationAdapter alphaAdapter = new AlphaInAnimationAdapter(adapter);\n alphaAdapter.setFirstOnly(false);\n recyclerView.setAdapter(alphaAdapter);\n// recyclerView.setAdapter(adapter);\n }", "public java.lang.String[] getReview() {\n return review;\n }", "@Override\r\n\tpublic void setSaleAndReviewNum(Product product) {\n\t\tproduct.setSaleCount(OrderItemService.getSaleCount(product.getId()));\r\n\t\tproduct.setReviewCount(reviewService.getCount(product.getId()));\r\n\t}", "public void setRating(int rating) {\r\n this.rating = rating;\r\n }", "public void setReviewid(java.lang.String reviewid) {\n this.reviewid = reviewid;\n }", "public void addToReviewList(String reviewID, double newRating, double oldRating) {\n if (reviews == null)\n reviews = new ArrayList<>();\n\n //only add review id if it doesn't exist\n if (!reviews.contains(reviewID)) { //adding a brand new review\n reviews.add(reviewID);\n totalRating += newRating;\n averageRating = totalRating/reviews.size();\n } else { //updating an existing review\n totalRating -= oldRating; //subtract old rating first\n totalRating += newRating; //add new rating to total\n averageRating = totalRating/reviews.size(); //calculate new average value\n }\n }", "public void viewAllReviews(View v){\n //Check if initialized to prevent null pointer\n if(currentBook.reviews != null) {\n int startIndex = mReviews.getChildCount() - 1; //Get index of last visible view\n int endIndex = currentBook.reviews.size() - 1; //Get index of last possible view\n\n //If there exist more views than are shown\n if(endIndex > startIndex){\n reviewAdapter(currentBook.reviews, mReviews, startIndex, endIndex, true);\n mSeeAll.setVisibility(GONE);\n }\n }\n }", "private void showMovieList(ArrayList<MovieItem> movies, int request){\n //instantiate HouseKeeper that is in charge of displaying the movie list\n SwipeKeeper swipe = (SwipeKeeper)mKeeperStaff.getHouseKeeper(SwipeHelper.NAME_ID);\n\n //notify houseKeeper to update movie list\n swipe.updateMovieList(movies, request);\n }", "public void fetchFavoritedMovies() {\n favoritesSelected = true;\n Cursor cursor =\n getActivity().getContentResolver().query(MovieContract.FavoriteMovieEntry.CONTENT_URI,\n null,\n null,\n null,\n null);\n ArrayList<MovieModel> movieModels = new ArrayList<>();\n if (cursor != null) {\n while (cursor.moveToNext()) {\n MovieModel movieModel = new MovieModel(getActivity(), cursor);\n // Get the trailers and reviews\n String movieId = cursor.getString(cursor.getColumnIndex(MovieContract.FavoriteMovieEntry._ID));\n Cursor trailerCursor =\n getActivity().getContentResolver().query(MovieContract.TrailerEntry.CONTENT_URI,\n null,\n MovieContract.TrailerEntry.COLUMN_MOVIE_KEY + \" = ?\",\n new String[]{movieId},\n null);\n Cursor reviewCursor =\n getActivity().getContentResolver().query(MovieContract.ReviewEntry.CONTENT_URI,\n null,\n MovieContract.ReviewEntry.COLUMN_MOVIE_KEY + \" = ?\",\n new String[]{movieId},\n null);\n ArrayList<MovieTrailerModel> movieTrailerModels = new ArrayList<>();\n ArrayList<MovieReviewModel> movieReviewModels = new ArrayList<>();\n if (trailerCursor != null) {\n while (trailerCursor.moveToNext()) {\n movieTrailerModels.add(new MovieTrailerModel(getActivity(), trailerCursor));\n }\n trailerCursor.close();\n }\n if (reviewCursor != null) {\n while (reviewCursor.moveToNext()) {\n movieReviewModels.add(new MovieReviewModel(getActivity(), reviewCursor));\n }\n reviewCursor.close();\n }\n movieModel.setReviews(movieReviewModels);\n movieModel.setTrailers(movieTrailerModels);\n movieModels.add(movieModel);\n }\n cursor.close();\n }\n movieGridAdapter.setMovieModels(movieModels);\n }", "@Override\r\n\tpublic void updateReview(ReviewVO rvo) {\n\t\tss.update(\"updateReview\", rvo);\r\n\t}", "static public void set_movie_data(){\n\n\t\tEdit_row_window.attrs = new String[]{\"movie name:\", \"rating:\", \"release year:\"};\n\t\tEdit_row_window.attr_vals = new String[]\n\t\t\t\t{Edit_row_window.selected[0].getText(1), Edit_row_window.selected[0].getText(2), \n\t\t\t\tEdit_row_window.selected[0].getText(3)};\n\t\t\n\t\tEdit_row_window.linked_query =\t\" select distinct a.id, a.name, a.num_links, a.year_born \" +\n\t\t\t\t\t\t\t\t\t\t\t\" from curr_cinema_actors a, \" +\n\t\t\t\t\t\t\t\t\t\t\t\" curr_cinema_actor_movie am\" +\n\t\t\t\t\t\t\t\t\t\t\t\" where am.actor_id=a.id and am.movie_id=\"+Edit_row_window.id+\n\t\t\t\t\t\t\t\t\t\t\t\" order by num_links desc \";\n\t\t\n\t\t\n\t\tEdit_row_window.not_linked_query = \" select distinct a.id, a.name, a.num_links, a.year_born \" +\n\t\t\t\t\" from curr_cinema_actors a \";\n\t\t\n\t\tEdit_row_window.linked_attrs = new String[]{\"id\", \"actor name\", \"rating\", \"birth year\"};\n\t\tEdit_row_window.label_min_parameter=\"min. birth year:\";\n\t\tEdit_row_window.linked_category_name = \"ACTORS\";\n\t}", "public void setAdapter(ArrayList<MovieModel> moviesList) {\n this.moviesList = moviesList;\n movieAdapter = new MovieAdapter(getActivity(), R.layout.castdetailscredits_row, this.moviesList);\n listView.setAdapter(movieAdapter);\n }", "public void fillReviews(int totalEntries) {\n StoreAPI storeOperations = new StoreAPIMongoImpl();\n for (int i = 0; i < totalEntries; i++) {\n DateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\");\n Date date = new Date();\n int getRandomUserId = getRandomNumber(0, 999);\n Fairy fairy = Fairy.create();\n TextProducer text = fairy.textProducer();\n storeOperations.postReview(i, \"user_\" + getRandomUserId, \"password_\" + getRandomUserId, (long) getRandomNumber(0, 9999), getRandomNumber(1, 5), text.paragraph(getRandomNumber(1, 5)), dateFormat.format(date));\n }\n }", "public PredictorFunction(List<? extends Business> business, List<Review> Reviews) {\n\t\tbusinesses = business;\n\t\treviews = Reviews;\n\t}", "@Override public void refresh() {\n if (search == null) {\n movies = new ArrayList<Movie>(getService().getMovies());\n }\n \n if (movies == null) {\n movies = new ArrayList<Movie>();\n }\n // sort movies according to the default sort preference.\n final Comparator<Movie> comparator = MOVIE_ORDER.get(getService().getAllMoviesSelectedSortIndex());\n if (movies != null && comparator != null) {\n Collections.sort(movies, comparator);\n }\n super.refresh();\n }", "public void setRating(int rating) {\n this.rating = rating;\n }", "ArrayList<Review> getMoreReviews()\n {\n ArrayList<Review> reviews = new ArrayList<>();\n\n if (hasInfo && curReviewURL != null && !curReviewURL.equals(\"\"))\n {\n try\n {\n Document reviewResultPage = Jsoup.connect(curReviewURL)\n .userAgent(\"Mozilla/5.0\").ignoreHttpErrors(true)\n .ignoreContentType(true).get();\n\n // Handles the rare case where the API gives an error.\n if (reviewResultPage.getElementsByTag(\"title\").text().equals(\"Error\"))\n {\n return reviews;\n }\n\n Elements unparsedReviews = reviewResultPage.getElementsByTag(\"review\");\n\n for (Element unparsedReview : unparsedReviews)\n {\n String reviewTitle = unparsedReview.getElementsByTag(\"title\").text();\n String reviewText = unparsedReview.getElementsByTag(\"reviewText\").text();\n StarRating starRating = StarRating.valueOf(Integer.parseInt(unparsedReview\n .getElementsByTag(\"rating\")\n .text()));\n Integer numHelpful = Integer.parseInt(unparsedReview.getElementsByTag(\"upVotes\").text());\n Integer numUnhelpful = Integer.parseInt(unparsedReview.getElementsByTag(\"downVotes\").text());\n\n // Each parsed review datum is added to a new review and added to the product's\n // reviews, the date is always null since Walmart reviews do not have dates.\n reviews.add(new Review(reviewTitle, reviewText, starRating, null\n , numHelpful, numUnhelpful, Retailer.WALMART));\n }\n\n curReviewPageNum++;\n\n // Set the current review URL to the next page.\n WalmartRequestHelper walmartRequestHelper = new WalmartRequestHelper(itemID, curReviewPageNum);\n curReviewURL = walmartRequestHelper.getRequestURL();\n }\n catch (IOException ioe)\n {\n ioe.printStackTrace();\n }\n }\n\n return reviews;\n }", "public void addRating(String name, double rating) {\n\t\tfor(Movie movie: this.movieList) {\n\t\t\tif(movie.getName().equals(name)) {\n\t\t\t\tmovie.setRating(rating);\n\t\t\t}\n\t\t}\n\t}", "private void updateListView(ArrayList<MovieAPI> allmovies_list){\n\n moviesAPI_list = allmovies_list;\n\n mtitles_array = new String[allmovies_list.size()];\n\n for(int m=0; m<allmovies_list.size();m++){\n\n mtitles_array[m]=allmovies_list.get(m).getTitle();\n\n }\n\n\n final ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, android.R.id.text1, mtitles_array);\n\n\n runOnUiThread(new Runnable() {\n public void run() {\n apiMoviesListview_m.setAdapter(adapter);\n }\n });\n\n\n apiMoviesListview_m.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> adapterView, View view, int position, long l) {\n // TODO Auto-generated method stub\n\n String value = adapter.getItem(position);\n\n switchToSingleRatingActivity(position);\n\n }\n });\n\n }", "private void populateAdapter(){\n mAdapter = new MovieRecyclerAdapter(context, moviesList, this);\n mRecyclerView.setAdapter(mAdapter);\n }", "public void updateRating(String name, double newRating) {\n\t\tfor(Movie movie: this.movieList) {\n\t\t\tif(movie.getName().equals(name)) movie.setRating(newRating);\n\t\t}\n\t}", "public void setRating(java.lang.String[] rating) {\n this.rating = rating;\n }", "public List<Review> getAllReview() \n\t{\n\t\tList<Review> reviews = new ArrayList<Review>();\n\t\treviewRepository.findAll().forEach(review -> reviews.add(review));\n\t\treturn reviews;\n\t}", "void getRolesForMovie(Movie movie) {\n\t\tMap<String, Object> params = new HashMap<String, Object>();\n\t\tparams.put(\"title\", movie.getTitle());\n\t\tparams.put(\"year\", movie.getProduction_year());\n\t\tmovie.setRoles(new HashSet<Role>(\n\t\t\t\t_namedParameterJdbcTemplatedbcTemplate.query(\n\t\t\t\t\t\tSQL_SELECT_ROLES_BY_MOVIE_TITLE_AND_YEAR, params,\n\t\t\t\t\t\tnew RoleRowMapper())));\n\t}" ]
[ "0.78463644", "0.7786679", "0.7408738", "0.72409195", "0.7152766", "0.68407977", "0.6751106", "0.66455925", "0.65354437", "0.64764875", "0.63424414", "0.6299901", "0.6265523", "0.61894125", "0.6183846", "0.616936", "0.6050739", "0.6036474", "0.6035461", "0.59924984", "0.5982927", "0.5964983", "0.58929706", "0.5852921", "0.58503854", "0.58114004", "0.57710695", "0.5682278", "0.5670895", "0.56571156", "0.5589831", "0.55868304", "0.55727255", "0.5562489", "0.5556148", "0.55223185", "0.5434924", "0.541138", "0.5383329", "0.5334007", "0.5304952", "0.5296164", "0.52850235", "0.52683866", "0.52606183", "0.5258361", "0.5256958", "0.52204883", "0.5209585", "0.5191399", "0.51793385", "0.5174746", "0.51709944", "0.5163086", "0.5160851", "0.5153418", "0.51460546", "0.5130285", "0.5101844", "0.50993496", "0.50893384", "0.50755686", "0.507336", "0.5065731", "0.5058794", "0.50523525", "0.5050193", "0.50432575", "0.50356734", "0.502882", "0.5027812", "0.5022126", "0.50197184", "0.50108564", "0.50099576", "0.5004365", "0.4994126", "0.49914318", "0.49889427", "0.49860105", "0.49849135", "0.49822977", "0.49811885", "0.4977964", "0.49698344", "0.4967087", "0.49657866", "0.49610227", "0.49585497", "0.4951876", "0.49452627", "0.49413177", "0.49344683", "0.49169517", "0.4896925", "0.48954678", "0.4894544", "0.48918244", "0.48895228", "0.48799706" ]
0.79258233
0
Gets the trailers list for the movie.
public ArrayList<Trailer> getTrailers() { return trailers; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Trailer> getAllTrailers(){\n return trailerDAO.getAllTrailers();\n }", "public List<EstructuraContratosTrailersDTO> obtenerConsultaNominaTrailersLista() {\n\t\tList<EstructuraContratosTrailersDTO> consultaProsperaTrailersLista = consultaProsperaService.listaEstructuraProsperaTrailers();\n\t\treturn consultaProsperaTrailersLista;\n\t}", "@Override\n public void fetchTrailers(int movieId) {\n String url = DetailPresenter.BASE_MOVIE_URL + movieId + PATH_VIDEOS_API_KEY + MainPresenter.API_KEY;\n StringRequest request = new StringRequest(Request.Method.GET, url, onTrailersLoaded, onLoadError);\n singleton.addToRequestQueue(request);\n }", "private void displayTrailers(DetailedMovieModel model) {\n if(hasTrailers)\n return;\n\n for (DetailedMovieModel.VideoModel vidModel : model.getVideoListing().getVideos()) {\n trailersList.addView(createViewForTrailerList(vidModel));\n }\n hasTrailers = true;\n }", "public List<Movie> theaters() {\n String url = \"http://api.rottentomatoes.com/api/public/v1.0/lists/movies/in_theaters.json?\"\n + \"apikey=yedukp76ffytfuy24zsqk7f5\";\n apicall(url);\n\n Gson gson = new Gson();\n MovieResponse response = gson.fromJson(data, MovieResponse.class);\n List<Movie> movies = response.getMovies();\n movieData = movies;\n System.out.println(url);\n return movieData;\n }", "public List<String> getMovieList(){\n Set<String> movieList= new HashSet<String>();\n List<MovieListing> showtimes= ListingManager.getShowtimes();\n for(int i=0;i<history.size();i++){\n CustomerTransaction curr= history.get(i);\n for(int j=0;j<showtimes.size(); j++){\n MovieListing show = showtimes.get(j);\n if (show.sameListing(curr.getListingID())){\n movieList.add(show.getTitle());\n\n }\n }\n }\n return new ArrayList<>(movieList);\n }", "@GET(\"/3/movie/{id}/videos\")\n Call<MovieResponse<Trailers>> getMovieTrailers(@Path(\"id\") String id, @Query(\"api_key\") String apiKey);", "@Test\r\n public void testGetMovieTrailers() throws MovieDbException {\r\n LOG.info(\"getMovieTrailers\");\r\n List<Trailer> result = tmdb.getMovieTrailers(ID_MOVIE_BLADE_RUNNER, \"\");\r\n assertFalse(\"Movie trailers missing\", result.isEmpty());\r\n }", "public ArrayList<Train> getTrains() {\n return trains;\n }", "private void showTrailers() {\n trailersList = (LinearLayout) rootView.findViewById(R.id.trailers_list);\n LayoutInflater inflater = getActivity().getLayoutInflater();\n for (final Trailer trailer : trailers) {\n View trailerView = inflater.inflate(R.layout.list_item_trailer, container, false);\n\n ImageView playButton = (ImageView) trailerView.findViewById(R.id.play_button);\n playButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Uri youTubeUri = Uri.parse(BASE_TRAILER_URL.concat(trailer.getKey()));\n Intent trailerIntent = new Intent(Intent.ACTION_VIEW, youTubeUri);\n startActivity(trailerIntent);\n }\n });\n\n TextView trailerName = (TextView) trailerView.findViewById(R.id.trailer_name);\n trailerName.setText(trailer.getName());\n\n trailersList.addView(trailerView);\n }\n }", "public void setTrailers(ArrayList<Trailer> trailers) {\n if (trailers == null) {\n trailers = new ArrayList<>();\n }\n\n this.trailers = trailers;\n }", "public static List<TrailerVideo> extractTrailerVideoData(String stringUrl, int movieId) {\n String jsonResponse = fetchResponse(stringUrl);\n if (jsonResponse == null) {\n return null;\n }\n List<TrailerVideo> trailerVideos = new ArrayList<>();\n try {\n JSONObject baseJsonResponse = new JSONObject(jsonResponse);\n JSONArray resultsJSONArray = baseJsonResponse.getJSONArray(RESULTS_KEY);\n for (int i = 0; i < resultsJSONArray.length(); i++) {\n JSONObject currentTrailerVideo = resultsJSONArray.getJSONObject(i);\n String trailerVideoId = currentTrailerVideo.optString(TRAILER_VIDEO_ID_KEY);\n String key = currentTrailerVideo.optString(TRAILER_VIDEO_KEY_KEY);\n String name = currentTrailerVideo.optString(TRAILER_VIDEO_NAME_KEY);\n String site = currentTrailerVideo.optString(TRAILER_VIDEO_SITE_KEY);\n TrailerVideo trailerVideo = new TrailerVideo(movieId, trailerVideoId, key, name, site);\n trailerVideos.add(trailerVideo);\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n return trailerVideos;\n }", "public static ArrayList<Movie> getMovieList() {\n\t\treturn movieList;\n\t}", "public static ArrayList<Movie> getMoviesList(){\n\t\treturn movieInfo;\n\t}", "public List<TrajectoryInfo> getAllTrajectories() {\n\t\treturn null;\n\t}", "public List<Train> getAllTrains(){ return trainDao.getAllTrains(); }", "public ArrayList<Movie> getMovieList() {\n\t\treturn movieList;\n\t}", "@Override\n\tpublic List<ShowTime> getShowTimes() {\n\t\treturn moviesListed;\n\t}", "public ArrayList<Trade> getTrades() {\n return trades;\n }", "private static void readTrailers(HttpHeaders trailers, ContextMap ctx) {\n ctx.put(SERVER_FILTER_IN_TRAILER_CTX, trailers.get(header(SERVER_FILTER_IN_TRAILER_CTX)));\n ctx.put(SERVER_TRAILER_CTX, trailers.get(header(SERVER_TRAILER_CTX)));\n ctx.put(SERVER_FILTER_OUT_TRAILER_CTX, trailers.get(header(SERVER_FILTER_OUT_TRAILER_CTX)));\n // Set the last value explicitly:\n ctx.put(CLIENT_FILTER_IN_TRAILER_CTX, value(CLIENT_FILTER_IN_TRAILER_CTX));\n }", "private List<String> getMovieNames() {\n List<String> movieNames = new ArrayList<>();\n for (Movie movie: this.movies) {\n movieNames.add(movie.getName());\n }\n return movieNames;\n }", "public List<Trade> getTrades();", "public ArrayList<Train> getAllTrains() {\n\t\tArrayList<Train> dispatchedTrains = new ArrayList<Train>(trains.size());\n\t\tfor (Train t : dispatchedTrains) {\n\t\t\tif (t.currentBlock != 0) {\n\t\t\t\tdispatchedTrains.add(t);\n\t\t\t}\n\t\t}\n\t\tif (dispatchedTrains.size() > 0) {\n\t\t\treturn dispatchedTrains;\n\t\t}\n\t\treturn null;\n\t}", "public List<Movie> getMovies() {\n return movies;\n }", "@Override\n public void getTrailers(ArrayList<String> movieTrailerKeys, ArrayList<String> movieTrailerNames) {\n if (movieTrailerKeys.size() > 0 && movieTrailerNames.size() > 0 && movieTrailerKeys.size() == movieTrailerNames.size()) {\n ContentValues[] trailersArray = new ContentValues[movieTrailerKeys.size()];\n for (int i = 0; i < movieTrailerKeys.size(); i++) {\n ContentValues trailerData = new ContentValues();\n trailerData.put(MovieContract.TrailerEntry.COLUMN_MOVIE_ID, movieObject.getId());\n trailerData.put(MovieContract.TrailerEntry.COLUMN_TRAILER_KEY, movieTrailerKeys.get(i));\n trailerData.put(MovieContract.TrailerEntry.COLUMN_TRAILER_NAME, movieTrailerNames.get(i));\n trailersArray[i] = trailerData;\n }\n Uri trailerUri = MovieContract.TrailerEntry.CONTENT_URI.buildUpon().appendPath(Integer.toString(movieObject.getId())).build();\n getContext().getContentResolver().bulkInsert(trailerUri, trailersArray);\n }\n }", "public ArrayList<Movie> getMovies() {\n return movies;\n }", "private List<MovieDetails> movieList() {\n List<MovieDetails> movieDetailsList = new ArrayList<>();\n movieDetailsList.add(new MovieDetails(1, \"Movie One\", \"Movie One Description\"));\n movieDetailsList.add(new MovieDetails(2, \"Movie Two\", \"Movie Two Description\"));\n movieDetailsList.add(new MovieDetails(2, \"Movie Two - 1 \", \"Movie Two Description - 1 \"));\n\n return movieDetailsList;\n }", "public List<Movie> getMovies();", "@SuppressWarnings(\"unchecked\")\n\t@Cacheable(value=API_TRAILERS, key=\"{#type, #id}\")\n public List<ApiTrailerDTO> getTrailersForMetadata(MetaDataType type, Long id) {\n return currentSession().getNamedQuery(\"metadata.trailer.\"+type.name().toLowerCase()).setParameter(LITERAL_ID, id).list();\n }", "public EstructuraContratosTrailersDTO nuevoTrailers() {\n\t\treturn consultaProsperaService.nuevosTrailersProspera();\n\t}", "private void displayTrailerInfo(List<Trailer> trailers) {\n //checks if the Trailer object has a name. If not, assigns a default name to it\n if (trailers.get(0).getName() == null) {\n setDefaultTrailerName(trailers.get(0));\n }\n //sets the value for the trailer name\n video1.setText(trailers.get(0).getName());\n //sets the trailer's tag to be used when launching Youtube app to view the trailer\n play1.setTag(trailers.get(0).getKey());\n play1.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n playVideo(v);\n }\n });\n\n //if there is more than 1 trailer, show the second one\n if (trailers.size() > 1) {\n //checks if the Trailer object has a name. If not, assigns a default name to it\n if (trailers.get(1).getName() == null) {\n setDefaultTrailerName(trailers.get(1));\n }\n //sets the value for the trailer name\n video2.setText(trailers.get(1).getName());\n //sets the trailer's tag to be used when launching Youtube app to view the trailer\n play2.setTag(trailers.get(1).getKey());\n play2.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n playVideo(v);\n }\n });\n //makes the \"play\" image and the name text view visible\n video2.setVisibility(View.VISIBLE);\n play2.setVisibility(View.VISIBLE);\n }\n //if there are more than 2 trailers, show the third one\n if (trailers.size() > 2) {\n //checks if the Trailer object has a name. If not, assigns a default name to it\n if (trailers.get(2).getName() == null) {\n setDefaultTrailerName(trailers.get(2));\n }\n //sets the value for the trailer name\n video3.setText(trailers.get(2).getName());\n //sets the trailer's tag to be used when launching Youtube app to view the trailer\n play3.setTag(trailers.get(2).getKey());\n play3.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n playVideo(v);\n }\n });\n //makes the \"play\" image and the name text view visible\n video3.setVisibility(View.VISIBLE);\n play3.setVisibility(View.VISIBLE);\n }\n\n }", "private List<Trailer> keepOnlyTrailers(List<Trailer> videos) {\n List<Trailer> allTrailers = new ArrayList<>();\n for (Trailer video : videos) {\n if (video.getType().equals(\"Trailer\")) {\n allTrailers.add(video);\n }\n }\n return allTrailers;\n }", "protected ArrayList<Integer> GetTrains() {\n\t\treturn this.TrainsPresent;\n\t}", "public List<Train> getTrainDetails() throws SQLException, ClassNotFoundException {\n\t\tList<Train> trainDetails = new ArrayList<>();\n\t\tPreparedStatement pst = null;\n\t\tResultSet rs = null;\n\t\tConnection connection = null;\n\t\ttry {\n\t\t\tconnection = ConnectionUtil.getConnection();\n\t\t\tString sql = \"SELECT * FROM train_details\";\n\t\t\tpst = connection.prepareStatement(sql);\n\t\t\trs = pst.executeQuery();\n\t\t\twhile (rs.next()) {\n\t\t\t\tString trainNumber = rs.getString(\"train_number\");\n\t\t\t\tString trainName = rs.getString(\"train_name\");\n\t\t\t\tint seats = rs.getInt(\"seats_avaialble\");\n\t\t\t\tint fare = rs.getInt(\"train_fare\");\n\t\t\t\tString timing = rs.getString(\"train_timing\");\n\t\t\t\tTrain train = new Train(trainName, trainNumber, seats,fare,timing);\n\t\t\t\ttrainDetails.add(train);\n\t\t\t}\n\t\t} catch (ClassNotFoundException | SQLException e) {\n\t\t\te.getMessage();\n\t\t} finally {\n\t\t\tConnectionUtil.close(rs, pst, connection);\n\t\t}\n\t\treturn trainDetails;\n\t}", "List<TradeHistoryItem> getTrades(String symbol, Integer limit);", "public List<Movie> getMovieData() {\n return movieData;\n }", "@Produces(MediaType.APPLICATION_JSON)\n @Override\n public List<Teacher> getAllTeachers() {\n List<Map<String, Object>> teachersIds = getJdbcTemplate().queryForList(sqlGetAllTeachersIds);\n if (teachersIds.size() == 0) {\n return null;\n }\n // find list of lessons by ID's\n List<Teacher> resultTeachers = new ArrayList<>();\n for (Map<String, Object> teacherId : teachersIds) {\n resultTeachers.add(getTeacherById((int) teacherId.get(\"id\")));\n }\n return resultTeachers;\n }", "public JSONArray getTrades() throws Exception;", "public List<Movie> getMovies(){\r\n if(person == null){\r\n return new ArrayList();\r\n }\r\n \r\n return new ArrayList(person.getMovies().values());\r\n }", "public ArrayList<String> getMovies(){\n\t\tArrayList<String> movies = new ArrayList<String>();\n\t\tString sql = \"SELECT * FROM movies\";\n\t\tPreparedStatement ps = null;\n\t\ttry {\n\t\t\tps = conn.prepareStatement(sql);\n\t\t\tResultSet rs = ps.executeQuery();\n\t\t\twhile(rs.next()){\n\t\t\t\tmovies.add(rs.getString(\"name\"));\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} finally {\n\t\t\ttry {\n\t\t\t\tps.close();\n\t\t\t} catch (SQLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\treturn movies;\t\n\t}", "public List<Translator> getTranslatorList() {\n\t\treturn translatorRepository.getTranslatorList();\n\t}", "public ArrayList<String> getMovies() {\n ArrayList<String> movies = new ArrayList<String>();\n\n try {\n // Prepare a new SQL Query & Set a timeout\n Statement statement = connection.createStatement();\n statement.setQueryTimeout(30);\n\n // The Query\n String query = \"SELECT *\" + \"\\n\" +\n \"FROM member\";\n\n // Get Result\n ResultSet results = statement.executeQuery(query);\n\n // Process all of the results\n // The \"results\" variable is similar to an array\n // We can iterate through all of the database query results\n while (results.next()) {\n // We can lookup a column of the a single record in the\n // result using the column name\n // BUT, we must be careful of the column type!\n // int id = results.getInt(\"mvnumb\");\n String movieName = results.getString(\"email\");\n // int year = results.getInt(\"yrmde\");\n // String type = results.getString(\"mvtype\");\n\n // For now we will just store the movieName and ignore the id\n movies.add(movieName);\n // members.add();\n }\n\n // Close the statement because we are done with it\n statement.close();\n } catch (SQLException e) {\n // If there is an error, lets just print the error\n System.err.println(e.getMessage());\n }\n\n // Finally we return all of the movies\n return movies;\n }", "private static ArrayList<String> getMovies(String filename) throws IOException {\n\t\tBufferedReader filereader = new BufferedReader(new FileReader(filename));\n\t\tArrayList<String> lines = new ArrayList<String>();\n\t\tString line;\n\t\twhile ((line = filereader.readLine()) != null) {\n\t\t\tlines.add(line);\n\t\t}\n\t\t\n\t\tfilereader.close();\n\t\treturn lines;\n\t}", "private void setupTrailerList() {\n LinearLayoutManager linearLayoutManager = new LinearLayoutManager(DetailActivity.this, RecyclerView.HORIZONTAL, false);\n trailerRecyclerView.setLayoutManager(linearLayoutManager);\n trailerRecyclerView.setHasFixedSize(true);\n\n //setting up adapter\n TrailerAdapter adapter = new TrailerAdapter(DetailActivity.this, trailerArrayList);\n trailerRecyclerView.setAdapter(adapter);\n\n }", "public ArrayList<Trainer> getTrainersForCourse(Course course){\n ArrayList<Trainer> result = new ArrayList();\n \n String statement = GET_TRAINERS_FOR_COURSE;\n\n ResultSet rs = data.makePreparedStatement(statement,new Object[]{(Object)course.getId()});\n try {\n while(rs.next()){\n Trainer trainer = new Trainer(rs.getInt(\"id\"),rs.getString(\"first_name\"),rs.getString(\"last_name\"),\n rs.getString(\"subject\"));\n result.add(trainer);\n \n }\n } catch (SQLException ex) {\n System.out.println(\"Problem with CourseDao.getTrainersForCourse()\");\n }finally{\n data.closeConnections(rs,data.ps, data.conn);\n }\n \n return result;\n }", "public List<Teacher> getTeachers() {\n\t\tList<Teacher> teachers = this.hibernateTemplate.loadAll(Teacher.class);\n\t\treturn teachers;\n\t}", "public static ArrayList<String> getOpeningMovies() throws IOException {\n\t\tString sURL = \"http://api.rottentomatoes.com/api/public/v1.0/lists/movies/opening.json?apikey=\" + API_KEY; //just a string\n\n\t\t// Connect to the URL using java's native library\n\t\tURL url = new URL(sURL);\n\t\tHttpURLConnection request = (HttpURLConnection) url.openConnection();\n\t\trequest.connect();\n\n\t\t// Convert to a JSON object to print data\n\t\tJsonParser jp = new JsonParser(); //from gson\n\t\tJsonElement root = jp.parse(new InputStreamReader((InputStream) request.getContent())); //Convert the input stream to a json element\n\t\tJsonObject rootobj = root.getAsJsonObject(); //May be an array, may be an object. \n\t\tJsonArray arr = rootobj.get(\"movies\").getAsJsonArray();\n\t\tArrayList<String> moviesList = new ArrayList<String>();\n\t\tfor (JsonElement movie : arr) {\n\t\t\tString id = movie.getAsJsonObject().get(\"id\").getAsString();\n\t\t\tString title = movie.getAsJsonObject().get(\"title\").getAsString();\n\t\t\tmoviesList.add(id);\n\t\t\tmovieMap.put(id, title);\n\t\t}\n\n\t\treturn moviesList;\n\t}", "@Override\r\n protected MovieTrailers[] doInBackground(String... params) {\n HttpURLConnection urlConnection = null;\r\n BufferedReader reader = null;\r\n\r\n String trailerJsonStr = null;\r\n\r\n try{\r\n //Construct the url\r\n String URLString = null;\r\n URLString = \"http://api.themoviedb.org/3/movie/\" + MovieId + \"/videos?api_key=\" + BuildConfig.OPEN_POPULAR_MOVIES_API_KEY;\r\n //URLString = \"http://api.themoviedb.org/3/movie/\" + \"269149\" + \"/videos?api_key=\" + BuildConfig.OPEN_POPULAR_MOVIES_API_KEY;\r\n\r\n URL url = new URL(URLString);\r\n\r\n urlConnection = (HttpURLConnection) url.openConnection();\r\n urlConnection.setRequestMethod(\"GET\");\r\n urlConnection.connect();\r\n\r\n //Read the input stream into a String\r\n InputStream inputStream = urlConnection.getInputStream();\r\n StringBuffer buffer = new StringBuffer();\r\n\r\n if (inputStream == null){\r\n trailerJsonStr = null;\r\n }else{\r\n reader = new BufferedReader(new InputStreamReader(inputStream));\r\n\r\n }\r\n String line;\r\n while ((line = reader.readLine()) != null) {\r\n // Since it's JSON, adding a newline isn't necessary (it won't affect parsing)\r\n // But it does make debugging a *lot* easier if you print out the completed\r\n // buffer for debugging.\r\n buffer.append(line + \"\\n\");\r\n }\r\n if (buffer.length() == 0) {\r\n // Stream was empty. No point in parsing.\r\n trailerJsonStr = null;\r\n }\r\n trailerJsonStr = buffer.toString();\r\n\r\n } catch (MalformedURLException e1) {\r\n e1.printStackTrace();\r\n } catch (ProtocolException e1) {\r\n e1.printStackTrace();\r\n } catch (IOException e1) {\r\n e1.printStackTrace();\r\n }\r\n\r\n try{\r\n return getTrailerFromJSON(trailerJsonStr);\r\n }catch (JSONException e){\r\n e.printStackTrace();\r\n }\r\n\r\n return null;\r\n\r\n }", "@Override\n protected List<Trailer> doInBackground(Long... params) {\n if(params.length == 0){\n return null;\n }\n\n long movieId = params[0];\n\n Retrofit retrofit = new Retrofit.Builder()\n .baseUrl(\"http://api.themoviedb.org/\")\n .addConverterFactory(GsonConverterFactory.create())\n .build();\n\n MovieTaskService service = retrofit.create(MovieTaskService.class);\n Call<Trailers> call = service.findTrailersById(movieId,\n BuildConfig.THE_MOVIE_DB_API_KEY);\n try {\n Response<Trailers> response = call.execute();\n Trailers trailers = response.body();\n return trailers.getTrailers();\n } catch (IOException e) {\n Log.e(LOG_TAG, \"A problem occurred talking to the movie db \", e);\n }\n\n return null;\n }", "public List<String> getMovies(String n)\n\t{\n\t\tList<String> movies_of_the_actor = new ArrayList<String>();\n\t\t//look through the movie list and check if actor n is present\n\t\tIterator<Movie> itr = list_of_movies.iterator();\n\t\twhile(itr.hasNext())\n\t\t{\n\t\t\tMovie temp_movie = itr.next();\n\t\t\tif(temp_movie.getCast().contains(n))\n\t\t\t//if yes add the movie title to the list\n\t\t\t{\n\t\t\t\tmovies_of_the_actor.add(temp_movie.getTitle());\n\t\t\t}\t\t\n\t\t}\t\t\n\t\t//return the list\n\t\treturn movies_of_the_actor;\n\t}", "public ArrayList<MovieDescription> getMovieDescriptions()\r\n/* 157: */ {\r\n/* 158:155 */ return this.movieDescriptions;\r\n/* 159: */ }", "List<Training> obtainAllTrainings();", "@Override\n\t@SuppressWarnings(\"unchecked\")\n\tpublic List<Web_trainee> getAllTrainee() {\n\t\tCriteria criteria = createEntityCriteria();\n\t\treturn (List<Web_trainee>) criteria.list();\n\t}", "private static void listMovies(){\n\n\t\ttry{\n\t\t\tURL url = new URL(\"http://localhost:8080/listMovies\");\n\t\t\tString rawJSONList = getHTTPResponse(url);\n\t\t\tJSONArray JSONList = new JSONArray(rawJSONList);\n\t\t\tStringBuilder list = new StringBuilder();\n\t\t\t\n\t\t\tfor (int i=0 ; i<JSONList.length() ; i++){\n\t\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\tJSONObject temp = JSONList.getJSONObject(i);\n\t\t\t\tsb.append(temp.getInt(\"id\"));\n\t\t\t\tsb.append(\". \");\n\t\t\t\tsb.append(temp.getString(\"name\"));\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t\n\t\t\t\tlist.append(sb.toString());\n\t\t\t}\n\t\t\tSystem.out.println(list.toString());\n\t\t}catch(Exception e){System.out.println(\"Error - wrong input or service down\");}\n\t\t\n\t}", "public List<String> getAirlines(){\n List<String> airlines = new LinkedList<String>();\n for (Flight flight : flights) {\n airlines.add(flight.getAirlineCode());\n }\n return airlines;\n }", "List<Movie> getMovie(String movieId);", "@Override\n\tpublic List<Object> getMovie(JSONObject param) {\n\t\tString type = StringUtil.ToString(param.getString(\"type\"));\n\t\tString tip = StringUtil.ToString(param.getString(\"tip\"));\n\t\tint number = Integer.parseInt(param.getString(\"number\"));\n\t\t\n\t\tMap<String, Object> message = new HashMap<String, Object>();\n\t\tList<Object> result = new ArrayList<Object>();\n\t\t\n\t\tmessage.put(\"recommand\", type);\n\t\tmessage.put(\"number\", number);\n\t\tif(!tip.equals(\"\")){\n\t\t System.out.println(tip);\n\t\t\tmessage.put(\"tip\", tip);\n\t\t}\n\t\t\n\t\tList<Object> movie = (List<Object>) this.queryForList(\"Movie.selectByCondition\",message);\n\t\t\n\t\treturn movie;\n\t}", "public List<Movie> dVD() {\n String url = \"http://api.rottentomatoes.com/api/public/v1.0/lists/dvds/new_releases.json?\"\n + \"apikey=yedukp76ffytfuy24zsqk7f5\";\n apicall(url);\n Gson gson = new Gson();\n MovieResponse response = gson.fromJson(data, MovieResponse.class);\n List<Movie> movies = response.getMovies();\n movieData = movies;\n System.out.println(url);\n return movieData;\n }", "java.util.List<com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.transitFlight> \n getTransitFlightsList();", "@Override\n public MovieListing getMovies() {\n // inventory.whatsAvailable()\n // inventory.whatIsUnavailable();\n return movieRepo.getMovies();\n }", "public List<Video> getTrendingVideos() {\n\t\tIterable<History> historyVideos = historyRepo.findAll();\r\n\t\t\r\n\t\t// each hearted video has one point\r\n\t\tIterable<Heart> heartVideos = heartRepo.findAll();\r\n\t\t\r\n\t\t// initialize points\r\n\t\tHashMap<String, Integer> points = new HashMap<String, Integer>();\r\n\t\t\r\n\t\tfor (History history : historyVideos) {\r\n\t\t\tString key = history.getHistoryKey().getVideoId();\r\n\t\t\tInteger value = points.get(key);\r\n\t\t\tif (value != null) {\r\n\t\t\t\tpoints.put(key, points.get(key) + 1);\r\n\t\t\t} else {\r\n\t\t\t points.put(key, 1); // start by one point\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tfor (Heart heart : heartVideos) {\r\n\t\t\tString key = heart.getVideoId();\r\n\t\t\tInteger value = points.get(key);\r\n\t\t\tif (value != null) {\r\n\t\t\t\tpoints.put(key, points.get(key) + 1);\r\n\t\t\t} else {\r\n\t\t\t points.put(key, 1); // start by one point\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// sort by points\r\n\t\tMap<String, Integer> sortedPoints = sortByValue(points);\r\n\t\t\r\n\t\t// initialize videos\r\n\t\tList<Video> trendingVideos = new ArrayList<Video>();\r\n\t\t\r\n\t\t// iterate map (first 10 items from reverse)\r\n\t\tList<String> keyList = new ArrayList<String>(sortedPoints.keySet());\r\n\t\tfor (int i = keyList.size() - 1; i > keyList.size() - 6; i--) {\r\n\t\t String key = keyList.get(i);\r\n\t\t \r\n\t\t // init video\r\n\t\t Video video = new Video();\r\n\t\t\tvideo.setId(key);\r\n\t\t\tvideo.setTitle(getTitleQuietly(key));\r\n\t\t\tvideo.setThumbnailImageUrl(\"https://i.ytimg.com/vi/\" + key + \"/maxresdefault.jpg\");\r\n\t\t\ttrendingVideos.add(video);\t\t \r\n\t\t}\r\n\t\t\r\n\t\t// return result\r\n\t\treturn trendingVideos;\r\n\t}", "List<Stop> getStops();", "public ObservableList<Movie> getFilmData() {\r\n return ser.movieData;\r\n }", "public static ArrayList<MovieInfoObject> getMoviesToDisplay() {\n return mMovies;\n }", "public List<Robot> getRobots();", "List<TeacherRecord> getTeachers(String clientId) throws Exception;", "public LinkedList<SoccerTeam> getTeams() {\n return this.teams;\n }", "public ArrayList getLecturers();", "public List<SpeedController> getMotors() {\n\t\treturn new ArrayList<>(motors);\n\t}", "public static void listByWatched(){\r\n System.out.println('\\n'+\"List by Watched\");\r\n CompareWatched compareWatched = new CompareWatched();\r\n Collections.sort(movies, compareWatched);\r\n for (Movie watch:movies){\r\n System.out.println('\\n'+\"Times Watched \"+ watch.getTimesWatched()+'\\n'+\"Title: \"+ watch.getName()+'\\n'+\"Rating: \"+ watch.getRating()+'\\n');\r\n }\r\n }", "@Override\n\tpublic List<MovieDTO> getNaverList(String jsonString) {\n\t\t\n\t\tJSONParser jParser = new JSONParser();\n\t\t\n\t\ttry {\n\t\t\tJSONObject jObject = (JSONObject) jParser.parse(jsonString);\n\t\t\t\n\t\t\tJSONArray items = (JSONArray) jObject.get(\"items\");\n\t\t\t\n\t\t\tint nSize = items.size();\n\t\t\tList<MovieDTO> mvList = new ArrayList<MovieDTO>();\n\t\t\tfor(int i = 0 ; i < nSize; i++) {\n\t\t\t\tJSONObject item = (JSONObject) items.get(i);\n\t\t\t\t\n\t\t\t\tString title = item.get(\"title\").toString();\n\t\t\t\tString link = item.get(\"link\").toString();\n\t\t\t\tString image = item.get(\"image\").toString();\n\t\t\t\tString subtitle = item.get(\"subtitle\").toString();\n\t\t\t\tString pubDate = item.get(\"pubDate\").toString();\n\t\t\t\tString director = item.get(\"director\").toString();\n\t\t\t\tString actor = item.get(\"actor\").toString();\n\t\t\t\tString userRating = item.get(\"userRating\").toString();\n\t\t\t\t\n\t\t\t\tMovieDTO mvDTO = MovieDTO.builder().title(title).link(link)\n\t\t\t\t\t\t.image(image).subtitle(subtitle)\n\t\t\t\t\t\t.pubDate(pubDate).director(director)\n\t\t\t\t\t\t.actor(actor).userRating(userRating).build();\n\t\t\t\t\n\t\t\t\tmvList.add(mvDTO);\n\t\t\t}\n\t\t\treturn mvList;\n\t\t} catch (ParseException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "public Movies getMovie () {\r\n\t\treturn movie;\r\n\t}", "public String getTrainfo() {\n return trainfo;\n }", "@Nullable\n MoviePage getMovies();", "public ArrayList<Teacher> getTeacherList()\r\n\t {\r\n\t\t return teacherList;\r\n\t }", "public List<String> getTrendingTopics() {\n return kweetDAO.getTrendingTopics();\n }", "protected static ArrayList<Object> preProcessTrafficData() throws IOException {\r\n String stringResponse = makeGetRequest(URL_TRAFFIC_SOURCE);\r\n Map<String, Object> mapResponse = new Gson().fromJson(stringResponse, Map.class);\r\n ArrayList<Object> listTraffics = (ArrayList<Object>) mapResponse.get(\"features\");\r\n return listTraffics;\r\n }", "public java.util.List<com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.transitFlight> getTransitFlightsList() {\n if (transitFlightsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(transitFlights_);\n } else {\n return transitFlightsBuilder_.getMessageList();\n }\n }", "public ArrayList<Teacher> getTeachersInField(){\r\n\t\treturn CourseFieldController.getFieldTeachers(this);\r\n\t}", "public List<Kweet> getTimelineKweets(String username) {\n return kweetDAO.getTimelineKweets(username);\n }", "public java.util.List<com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.transitFlight> getTransitFlightsList() {\n return transitFlights_;\n }", "public String getTeachernames() {\r\n return teachernames;\r\n }", "@Override\n public List<Trade> getAllTrades() {\n return this.tradeRepository.getAllTrades();\n }", "public ArrayList<Turno> getTurnos(){\r\n\t\treturn turnos;\r\n\t}", "public Movie getMovie() {\r\n\t\treturn movie;\r\n\t}", "public ArrayList<Team> getList(){\n\t\treturn this.teams;\n\t}", "public ArrayList<Movie> getSorted(){\n\t\tTreeSet<Movie> treeSet = new TreeSet<Movie>(this);\n\t\tArrayList<Movie> movies = new ArrayList<Movie>(treeSet);\n\t\treturn movies;\n\t\t\n\t}", "public List getTrabajadores();", "java.lang.String getRaceList();", "public List<Movie> getMovie_Actor(final int Actor_id) {\n List<Movie> actor_mov = new ArrayList<Movie>();\n if (actors_movies.size()!=NULL) {\n actor_mov = actors_movies.entrySet().stream().filter(x->x.getValue().getId()==Actor_id).map(x -> x.getKey()).collect(Collectors.toList());\n System.out.println( actor_mov);\n System.out.println(\"LENGTH:\" + actor_mov.size());\n\n }else{\n System.out.println(\"Tiene que dar valor al ID para buscar por ID\");\n\n }\n return actor_mov;\n }", "public String getTutors(){\n\t\treturn this.tutors;\n\t}", "Collection<MoviesTitles> getMoviesTitles();", "public static List<Movie> extractMoviesData(String stringUrl) {\n String jsonResponse = fetchResponse(stringUrl);\n if (jsonResponse == null) {\n return null;\n }\n List<Movie> movies = new ArrayList<>();\n try {\n JSONObject baseJsonResponse = new JSONObject(jsonResponse);\n JSONArray resultsJSONArray = baseJsonResponse.getJSONArray(RESULTS_KEY);\n for (int i = 0; i < resultsJSONArray.length(); i++) {\n JSONObject currentMovie = resultsJSONArray.getJSONObject(i);\n String originalTitle = currentMovie.optString(ORIGINAL_TITLE_KEY);\n String posterPath = currentMovie.optString(POSTER_PATH_KEY);\n String overview = currentMovie.optString(OVERVIEW_KEY);\n double userRating = currentMovie.getDouble(VOTE_AVERAGE_KEY);\n String releaseDate = currentMovie.optString(RELEASE_DATE_KEY);\n int movieId = currentMovie.optInt(MOVIE_ID_KEY);\n Movie movie = new Movie(originalTitle, posterPath, overview, userRating, releaseDate, movieId);\n movies.add(movie);\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n return movies;\n }", "List<Trade> getAllTrades();", "public Movie getMovie() {\n return movie;\n }", "@NotNull\n @Override\n public List<Lesson> getLessons() {\n return getLessons(false);\n }", "public Square getTractor() {\n\t\treturn tractor;\n\t}", "public VirtualZone[] getWatchers() {\n/* 3094 */ if (this.watchers != null) {\n/* 3095 */ return this.watchers.<VirtualZone>toArray(new VirtualZone[this.watchers.size()]);\n/* */ }\n/* 3097 */ return emptyWatchers;\n/* */ }", "public LinkedList<Status> getTweets() {\r\n return tweets;\r\n }", "public ArrayList<Token> getTokens() {\n return clueTokens;\n }" ]
[ "0.75501156", "0.6396777", "0.63530505", "0.6339145", "0.6327575", "0.61383337", "0.6089524", "0.6081574", "0.60321826", "0.6002503", "0.5761923", "0.5747593", "0.5746021", "0.57129145", "0.56502116", "0.5638765", "0.5533085", "0.5529249", "0.55219334", "0.54994243", "0.5497951", "0.5472186", "0.54719895", "0.542139", "0.5418804", "0.53991616", "0.53510386", "0.5327154", "0.5314916", "0.5290635", "0.51940453", "0.5168623", "0.5117241", "0.5114332", "0.5111684", "0.5103098", "0.5074845", "0.5073675", "0.5052977", "0.50417", "0.5020728", "0.5019638", "0.50110245", "0.5010852", "0.49803486", "0.49697813", "0.496923", "0.49634987", "0.49609214", "0.4940269", "0.49378493", "0.49225974", "0.49091646", "0.48996472", "0.489809", "0.4888263", "0.48826247", "0.48814628", "0.48770502", "0.4867999", "0.4864186", "0.48618087", "0.48533177", "0.48497555", "0.4847817", "0.48467913", "0.48397312", "0.48264074", "0.48229668", "0.4800524", "0.47997484", "0.4796003", "0.4794017", "0.47687492", "0.4765254", "0.475893", "0.47576615", "0.47453117", "0.47447568", "0.47382796", "0.47362146", "0.47322574", "0.4728081", "0.4723961", "0.47209787", "0.47165656", "0.47084156", "0.46858442", "0.4683405", "0.467859", "0.4674832", "0.46651006", "0.46624154", "0.46601686", "0.46544835", "0.46529907", "0.46457228", "0.46452218", "0.46431208", "0.46333966" ]
0.77543086
0
Sets the trailers list for the movie.
public void setTrailers(ArrayList<Trailer> trailers) { if (trailers == null) { trailers = new ArrayList<>(); } this.trailers = trailers; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void setTrailers(ContextMap ctx, HttpHeaders trailers) {\n trailers.set(header(SERVER_FILTER_IN_TRAILER_CTX), requireNonNull(ctx.get(SERVER_FILTER_IN_TRAILER_CTX)));\n trailers.set(header(SERVER_TRAILER_CTX), requireNonNull(ctx.get(SERVER_TRAILER_CTX)));\n // Set the last value explicitly:\n trailers.set(header(SERVER_FILTER_OUT_TRAILER_CTX), value(SERVER_FILTER_OUT_TRAILER_CTX));\n }", "private void displayTrailers(DetailedMovieModel model) {\n if(hasTrailers)\n return;\n\n for (DetailedMovieModel.VideoModel vidModel : model.getVideoListing().getVideos()) {\n trailersList.addView(createViewForTrailerList(vidModel));\n }\n hasTrailers = true;\n }", "private void setupTrailerList() {\n LinearLayoutManager linearLayoutManager = new LinearLayoutManager(DetailActivity.this, RecyclerView.HORIZONTAL, false);\n trailerRecyclerView.setLayoutManager(linearLayoutManager);\n trailerRecyclerView.setHasFixedSize(true);\n\n //setting up adapter\n TrailerAdapter adapter = new TrailerAdapter(DetailActivity.this, trailerArrayList);\n trailerRecyclerView.setAdapter(adapter);\n\n }", "@Override\n public void getTrailers(ArrayList<String> movieTrailerKeys, ArrayList<String> movieTrailerNames) {\n if (movieTrailerKeys.size() > 0 && movieTrailerNames.size() > 0 && movieTrailerKeys.size() == movieTrailerNames.size()) {\n ContentValues[] trailersArray = new ContentValues[movieTrailerKeys.size()];\n for (int i = 0; i < movieTrailerKeys.size(); i++) {\n ContentValues trailerData = new ContentValues();\n trailerData.put(MovieContract.TrailerEntry.COLUMN_MOVIE_ID, movieObject.getId());\n trailerData.put(MovieContract.TrailerEntry.COLUMN_TRAILER_KEY, movieTrailerKeys.get(i));\n trailerData.put(MovieContract.TrailerEntry.COLUMN_TRAILER_NAME, movieTrailerNames.get(i));\n trailersArray[i] = trailerData;\n }\n Uri trailerUri = MovieContract.TrailerEntry.CONTENT_URI.buildUpon().appendPath(Integer.toString(movieObject.getId())).build();\n getContext().getContentResolver().bulkInsert(trailerUri, trailersArray);\n }\n }", "private void showTrailers() {\n trailersList = (LinearLayout) rootView.findViewById(R.id.trailers_list);\n LayoutInflater inflater = getActivity().getLayoutInflater();\n for (final Trailer trailer : trailers) {\n View trailerView = inflater.inflate(R.layout.list_item_trailer, container, false);\n\n ImageView playButton = (ImageView) trailerView.findViewById(R.id.play_button);\n playButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Uri youTubeUri = Uri.parse(BASE_TRAILER_URL.concat(trailer.getKey()));\n Intent trailerIntent = new Intent(Intent.ACTION_VIEW, youTubeUri);\n startActivity(trailerIntent);\n }\n });\n\n TextView trailerName = (TextView) trailerView.findViewById(R.id.trailer_name);\n trailerName.setText(trailer.getName());\n\n trailersList.addView(trailerView);\n }\n }", "public ArrayList<Trailer> getTrailers() {\n return trailers;\n }", "private static void readTrailers(HttpHeaders trailers, ContextMap ctx) {\n ctx.put(SERVER_FILTER_IN_TRAILER_CTX, trailers.get(header(SERVER_FILTER_IN_TRAILER_CTX)));\n ctx.put(SERVER_TRAILER_CTX, trailers.get(header(SERVER_TRAILER_CTX)));\n ctx.put(SERVER_FILTER_OUT_TRAILER_CTX, trailers.get(header(SERVER_FILTER_OUT_TRAILER_CTX)));\n // Set the last value explicitly:\n ctx.put(CLIENT_FILTER_IN_TRAILER_CTX, value(CLIENT_FILTER_IN_TRAILER_CTX));\n }", "private void displayTrailerInfo(List<Trailer> trailers) {\n //checks if the Trailer object has a name. If not, assigns a default name to it\n if (trailers.get(0).getName() == null) {\n setDefaultTrailerName(trailers.get(0));\n }\n //sets the value for the trailer name\n video1.setText(trailers.get(0).getName());\n //sets the trailer's tag to be used when launching Youtube app to view the trailer\n play1.setTag(trailers.get(0).getKey());\n play1.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n playVideo(v);\n }\n });\n\n //if there is more than 1 trailer, show the second one\n if (trailers.size() > 1) {\n //checks if the Trailer object has a name. If not, assigns a default name to it\n if (trailers.get(1).getName() == null) {\n setDefaultTrailerName(trailers.get(1));\n }\n //sets the value for the trailer name\n video2.setText(trailers.get(1).getName());\n //sets the trailer's tag to be used when launching Youtube app to view the trailer\n play2.setTag(trailers.get(1).getKey());\n play2.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n playVideo(v);\n }\n });\n //makes the \"play\" image and the name text view visible\n video2.setVisibility(View.VISIBLE);\n play2.setVisibility(View.VISIBLE);\n }\n //if there are more than 2 trailers, show the third one\n if (trailers.size() > 2) {\n //checks if the Trailer object has a name. If not, assigns a default name to it\n if (trailers.get(2).getName() == null) {\n setDefaultTrailerName(trailers.get(2));\n }\n //sets the value for the trailer name\n video3.setText(trailers.get(2).getName());\n //sets the trailer's tag to be used when launching Youtube app to view the trailer\n play3.setTag(trailers.get(2).getKey());\n play3.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n playVideo(v);\n }\n });\n //makes the \"play\" image and the name text view visible\n video3.setVisibility(View.VISIBLE);\n play3.setVisibility(View.VISIBLE);\n }\n\n }", "public List<Trailer> getAllTrailers(){\n return trailerDAO.getAllTrailers();\n }", "@Override\n public void fetchTrailers(int movieId) {\n String url = DetailPresenter.BASE_MOVIE_URL + movieId + PATH_VIDEOS_API_KEY + MainPresenter.API_KEY;\n StringRequest request = new StringRequest(Request.Method.GET, url, onTrailersLoaded, onLoadError);\n singleton.addToRequestQueue(request);\n }", "@Before\n\tpublic void setTraineeInfo() {\n\t\tthis.traineeOne.setName(\"Joe Smith\");\n\t\tthis.traineeOne.setEmail(\"[email protected]\");\n\t\tthis.traineeOne.setPhoneNumber(\"954-798-6005\");\n\t\tthis.traineeOne.setTrainingStatus(TrainingStatus.Training);\n\t\tthis.traineeOne.setBatch(caliberBatch);\n\t\t\n\t\tthis.traineeTwo.setName(\"Shakira Jimenez\");\n\t\tthis.traineeTwo.setResourceId(\"two\");\n\t\tthis.traineeTwo.setEmail(\"[email protected]\");\n\t\tthis.traineeTwo.setPhoneNumber(\"347-798-6005\");\n\t\tthis.traineeTwo.setTrainingStatus(TrainingStatus.Training);\n\t\tthis.traineeTwo.setBatch(caliberBatch);\n\t\t\n\t\tthis.traineeThree.setName(\"Joe Smith\");\n\t\tthis.traineeThree.setResourceId(\"one\");\n\t\tthis.traineeThree.setEmail(\"[email protected]\");\n\t\tthis.traineeThree.setPhoneNumber(\"954-798-6005\");\n\t\tthis.traineeThree.setTrainingStatus(TrainingStatus.Dropped);\n\t\t\n\t\tcaliberTrainees.add(traineeOne);\n\t\tcaliberTrainees.add(traineeThree);\n\t\tsalesforceTrainees.add(traineeThree);\n\t\tsalesforceTrainees.add(traineeTwo);\n\t}", "void setRaceList(java.lang.String raceList);", "public void setTrades(List<Trade> trades);", "public void setMovieListings(List<MovieListing> listings) {\n movieListings.clear();\n movieListings = listings;\n notifyDataSetChanged();\n fetchMovieDetails();\n if (MoviesApplication.getApp().isLargeLayout()) {\n selectMovie(0);\n }\n }", "void setListOfStops(ArrayList<TTC> listOfStops) {\n this.listOfStops = listOfStops;\n }", "@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n\tpublic void setChain(Set chain) \n\t{\n\t\tfor(Object c : chain)\n\t\t{\n\t\t\tthis.cars.add(c);\n\t\t}\n\t}", "public void setMovieArrayList(MovieClass newMovieObject)\n {\n movieArrayList.add(newMovieObject);\n }", "public void setLecturers(ArrayList value);", "private void setDefaultTrailerName(Trailer trailer) {\n if (trailer.getName() == null) {\n trailer.setName(\"Trailer\");\n }\n }", "public void setRobots(List<Robot> listaRobots) {\n\t\tif ( visorEscenario != null )\n\t\t\tvisorEscenario.setRobots(listaRobots);\n\t}", "public MovieNet(LinkedList<String[]> movielines) {\n\t\tmovieline = new ArrayList<String[]>(movielines);\n\t\tactor_graph = new ArrayList<Actormap>();\n\t\tfor (int i = 0; i < movieline.size(); i++) {\n\t\t\tactor_graph_setter(movieline.get(i));\n\t\t}\n\t}", "public static void setList(CustomerList list){\n\t\tUserInterface.list = list;\n\t}", "public void setPlanets(List<Planet> planets) {\n planetList = planets;\n }", "public void setTrainingszeiten(Trainingszeit[] trainingszeiten) {\n this.trainingszeiten = trainingszeiten;\n }", "public void setTrades(int value) {\n this.trades = value;\n }", "public void setMovie(Movie movie) {\n this.movie = movie;\n }", "public void setLineMovement(Timeline t)\r\n {\r\n timeline = t;\r\n }", "public void setKeyFrameList(ArrayList<CyFrame> frameList){\n\t\tkeyFrameList = frameList;\n\n\t\tif(frameList.size() > 1 && timer != null){\n\t\t\tupdateTimer();\n\t\t}else{\n\t\t\tmakeTimer();\n\t\t}\n\t}", "public Trailer(JSONObject jsonTrailer) throws JSONException {\n\n if(jsonTrailer.has(ID_KEY)) {\n id = jsonTrailer.getString(ID_KEY);\n }\n\n if(jsonTrailer.has(KEY_KEY)) {\n key = jsonTrailer.getString(KEY_KEY);\n }\n\n if(jsonTrailer.has(NAME_KEY)) {\n name = jsonTrailer.getString(NAME_KEY);\n }\n\n if(jsonTrailer.has(SITE_KEY)) {\n site = jsonTrailer.getString(SITE_KEY);\n }\n\n if(jsonTrailer.has(TYPE_KEY)) {\n type = jsonTrailer.getString(TYPE_KEY);\n }\n }", "public TrailerView(final Context context, final AttributeSet attrSet)\n {\n super(context, attrSet);\n mContext = context;\n instantiate(context, null);\n }", "void setNilRaceList();", "void updateTrails() {\r\n\t\tint from, to;\r\n\t\t\r\n\t\t// Pheromone evaporation\r\n\t\tfor(from = 0; from < cities.length; from++) {\r\n\t\t\tfor(to = 0; to < cities.length; to++) {\r\n\t\t\t\tif(from != to) {\r\n\t\t\t\t\tpheromone[from][to] *= (1.0 - RHO);\r\n\t\t\t\t\tif(pheromone[from][to] < 0.0) pheromone[from][to] = INIT_PHEROMONE; \r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// add new pheromone to the trails\r\n\t\t// look at the tours of each ant\r\n\t\tfor(int ai = 0; ai < ants.length; ai++) {\r\n\t\t\tAnt ant = ants[ai];\r\n\t\t\t// update each leg of the tour given the tour length\r\n\t\t\tfor(int i = 0; i < cities.length; i++) {\r\n\t\t\t\tif(i < cities.length - 1) {\r\n\t\t\t\t\tfrom = ant.path[i];\r\n\t\t\t\t\tto = ant.path[i + 1];\r\n\t\t\t\t} else {\r\n\t\t\t\t\tfrom = ant.path[i];\r\n\t\t\t\t\tto = ant.path[0];\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tpheromone[from][to] += ((QVAL / ant.tourLength) * RHO);\r\n\t\t\t\tpheromone[to][from] = pheromone[from][to];\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public ArrayList<Train> getTrains() {\n return trains;\n }", "public void setLydoTraVe(String lydoTraVe);", "public void setMovies(List<Movies> mvoies)\n {\n for ( Movies movie: mvoies)\n {\n if (!mMovies.contains(movie))\n {\n mMovies.add(movie);\n moviesRViewAdapter.notifyItemInserted(mMovies.indexOf(movie));\n }\n }\n }", "public void setStations(LinkedList<Station> stations) {\n this.stations = stations;\n }", "public Gel_BioInf_Models.VirtualPanel.Builder setTranscripts(java.util.List<java.lang.String> value) {\n validate(fields()[5], value);\n this.Transcripts = value;\n fieldSetFlags()[5] = true;\n return this; \n }", "public void setAdvisors(List<Professor> list) {\r\n advisors = list;\r\n }", "@Override\n public void initializeBoard(List<DevelopmentCard> towersCardsList) {\n List<String> list = new ArrayList<>();\n towersCardsList.forEach((developmentCard -> list.add(developmentCard.getName())));\n try {\n if (getClientInterface() != null)\n getClientInterface().setTowersCards(list);\n }\n catch (RemoteException e) {\n System.out.println(\"remote sending tower cards error\");\n }\n }", "public void setTutors(String tutors) {\n\t\tthis.tutors = tutors;\n\t}", "@Test\r\n public void testGetMovieTrailers() throws MovieDbException {\r\n LOG.info(\"getMovieTrailers\");\r\n List<Trailer> result = tmdb.getMovieTrailers(ID_MOVIE_BLADE_RUNNER, \"\");\r\n assertFalse(\"Movie trailers missing\", result.isEmpty());\r\n }", "@GET(\"/3/movie/{id}/videos\")\n Call<MovieResponse<Trailers>> getMovieTrailers(@Path(\"id\") String id, @Query(\"api_key\") String apiKey);", "public void setPlayerListHeader ( String header ) {\n\t\texecute ( handle -> handle.setPlayerListHeader ( header ) );\n\t}", "protected void setSpies() {\n\t\tint numberOfSpies = SPIES[numberOfPlayers-5];\n\t\tfor(int i = 0; i < numberOfSpies; i++) {\n\t\t\tplayers[i].setSpy();\n\t\t}\n\t}", "public void setTexts(TextList texts)\n {\n this.texts = texts;\n }", "public void setTranlist(java.lang.String param) {\r\n localTranlistTracker = param != null;\r\n\r\n this.localTranlist = param;\r\n }", "protected static void setAllMonsters(ArrayList<Monster> listMonsters) {\n allMonsters = listMonsters;\n }", "private void watched(boolean w){\n for (Movie temp:\n baseMovieList) {\n if(temp.isWatched() == w)\n movieList.add(temp);\n }\n }", "public Train(List<Car> tab)\n\t{\n\t\tthis.cars = new CopyOnWriteArrayList<Car>();\n\t\tfor (Car car : tab)\n\t\t{\n\t\t\tthis.cars.add(car);\n\t\t\tcar.setTrain(this);\n\t\t} \n\t}", "public void setRoles(RoleList list) {\n if (list != null) {\n\n roleList = new RoleList();\n\n for (Iterator<?> roleIter = list.iterator();\n roleIter.hasNext();) {\n Role currRole = (Role)(roleIter.next());\n roleList.add((Role)(currRole.clone()));\n }\n } else {\n roleList = null;\n }\n return;\n }", "public void setTimeline(CanaryTimeline timeline) {\n this.timeline = timeline;\n }", "void setListingToFrame(int frameNum) throws PlayerDebugException\n\t{\n\t\t// set the module and line\n\t\tFrame[] frames = m_session.getFrames();\n\t\tFrame ctx = frames[frameNum];\n\n\t\tLocation l = ctx.getLocation();\n\t\tSourceFile f = l.getFile();\n\t\tint id = f.getId();\n\t\tint line = l.getLine();\n\n setListingPosition(id, line);\n }", "@Before\r\n\tpublic void setList() {\r\n\t\tthis.list = new DoubleList();\r\n\t\tfor (int i = 0; i < 15; i++) {\r\n\t\t\tlist.add(new Munitions(i, i + 1, \"iron\"));\r\n\t\t}\r\n\t}", "public void setPrevList(List prevList) {\n\t\tthis.prevList = prevList;\n\t}", "private List<Trailer> keepOnlyTrailers(List<Trailer> videos) {\n List<Trailer> allTrailers = new ArrayList<>();\n for (Trailer video : videos) {\n if (video.getType().equals(\"Trailer\")) {\n allTrailers.add(video);\n }\n }\n return allTrailers;\n }", "public void setJARs(final String... jars) {\n jarNames.clear();\n addJARs(jars);\n }", "protected void setMoves(List<Move> moves) {\n this.moves = moves;\n }", "public void setTray(ArrayList<Tile> newTray){ this.tray = newTray; }", "public List<EstructuraContratosTrailersDTO> obtenerConsultaNominaTrailersLista() {\n\t\tList<EstructuraContratosTrailersDTO> consultaProsperaTrailersLista = consultaProsperaService.listaEstructuraProsperaTrailers();\n\t\treturn consultaProsperaTrailersLista;\n\t}", "public Train(Car... cars) {\n\t\tthis.cars = new CopyOnWriteArrayList<Car>();\n\t\tfor (Car car : cars)\n\t\t{\n\t\t\tthis.cars.add(car);\n\t\t\tcar.setTrain(this);\n\t\t}\n\t}", "public void setFiles(String filenames)\n {\n if (filenames != null && filenames.length() > 0)\n {\n StringTokenizer tok = new StringTokenizer(\n filenames, \", \\t\\n\\r\\f\", false);\n while (tok.hasMoreTokens())\n {\n this.filenames.addElement(tok.nextToken());\n }\n }\n }", "public void modificarTrailers(String rfc, Integer id) {\n\t\tconsultaProsperaService.modificarTrailers(rfc,id);\n\t}", "public void setStories(List<IStoryWriter> stories);", "public void setPartner(\r\n @NonNull\r\n final List<SalesOrderHeaderPartner> value) {\r\n if (toPartner == null) {\r\n toPartner = Lists.newArrayList();\r\n }\r\n toPartner.clear();\r\n toPartner.addAll(value);\r\n }", "private void setTaunts(String taunt1, String taunt2, String taunt3){\n\t\ttaunts.add(taunt1); // adds taunts to the arraylist\n\t\ttaunts.add(taunt2);\n\t\ttaunts.add(taunt3);\n\t}", "static public void set_movie_data(){\n\n\t\tEdit_row_window.attrs = new String[]{\"movie name:\", \"rating:\", \"release year:\"};\n\t\tEdit_row_window.attr_vals = new String[]\n\t\t\t\t{Edit_row_window.selected[0].getText(1), Edit_row_window.selected[0].getText(2), \n\t\t\t\tEdit_row_window.selected[0].getText(3)};\n\t\t\n\t\tEdit_row_window.linked_query =\t\" select distinct a.id, a.name, a.num_links, a.year_born \" +\n\t\t\t\t\t\t\t\t\t\t\t\" from curr_cinema_actors a, \" +\n\t\t\t\t\t\t\t\t\t\t\t\" curr_cinema_actor_movie am\" +\n\t\t\t\t\t\t\t\t\t\t\t\" where am.actor_id=a.id and am.movie_id=\"+Edit_row_window.id+\n\t\t\t\t\t\t\t\t\t\t\t\" order by num_links desc \";\n\t\t\n\t\t\n\t\tEdit_row_window.not_linked_query = \" select distinct a.id, a.name, a.num_links, a.year_born \" +\n\t\t\t\t\" from curr_cinema_actors a \";\n\t\t\n\t\tEdit_row_window.linked_attrs = new String[]{\"id\", \"actor name\", \"rating\", \"birth year\"};\n\t\tEdit_row_window.label_min_parameter=\"min. birth year:\";\n\t\tEdit_row_window.linked_category_name = \"ACTORS\";\n\t}", "public void setTimeline(Timeline timeline) {\n this.timeline = timeline;\n }", "private void setAdapter(List<MovieList> listMovies) {\n adapter = new CardAdapter(listMovies, this);\n //Adding adapter to recyclerview\n AlphaInAnimationAdapter alphaAdapter = new AlphaInAnimationAdapter(adapter);\n alphaAdapter.setFirstOnly(false);\n recyclerView.setAdapter(alphaAdapter);\n// recyclerView.setAdapter(adapter);\n }", "public void setSelectedTrain(Train train){\n\n this.selectedTrain = train;\n }", "public void setActors(String actorsStr) {\n String[] buff = actorsStr.split(COMMA);\r\n for (String actor : buff) {\r\n actors.add(actor.trim());\r\n }\r\n }", "public void setPlayers(ArrayList<Player> players) {\n this.players = players;\n }", "public void actionTrain(Train t) {\n\t\t\t t.setVitesseScalaire(vitesse);\n\t\t}", "public void setTeachernames(String teachernames) {\r\n this.teachernames = teachernames;\r\n }", "public MovieList() {\r\n\t\thead = null;\r\n\t\ttail = null;\r\n\t\tsize = 0;\r\n\t}", "public void setTrees(List<Tree> trees) {\n this.trees = trees;\n }", "public void addTrailer(Trailer trailer, long movieId) {\n if (trailer != null) {\n if (!isTrailerExists(trailer.getId())) {\n SQLiteDatabase database = this.getWritableDatabase();\n ContentValues trailerValues = insertTrailerInContentValues(trailer, movieId);\n database.insert(TrailersEntry.TABLE_NAME, null, trailerValues);\n database.close();\n }\n } else {\n throw new IllegalArgumentException(\"Passed trailer object is null or already exist\");\n }\n }", "public void setToDoListTitles() {\n\n ArrayList<String> toDoListTitlesSetter = new ArrayList<String>();\n for (int i = 0; i < myList.size(); i++) {\n toDoListTitlesSetter.add(myList.get(i).get(0));\n }\n toDoListTitlesTemp.clear();\n for(int i = 0; i < toDoListTitlesSetter.size(); i++){\n toDoListTitlesTemp.add(toDoListTitlesSetter.get(i));\n }\n\n Log.i(TAG, \"we have set the list titles\");\n }", "public void setTrajectory(float lineVectorX, float lineVectorZ){\t\t\n\t\tthis.lineVector.set(lineVectorX, lineVectorZ);\n\t\tlineVector.nor();\n\t\tunit.direction.x = lineVector.x;\n\t\tunit.direction.y = lineVector.y;\n\t\tonLine = true;\n\t}", "public void setProperties(Properties setList);", "public void setTierList(final List<PriceTierDTO> tierList) {\n\t\tthis.tierList = tierList;\n\t}", "@Before\n public void setUpMovieTest() {\n movie1 = new Movie(karateMovie);\n movie2 = new Movie(gloryMovie);\n movie3 = new Movie(sevenMovie);\n movie4 = new Movie(theShawshankRedemtionMovie);\n }", "public void setTrainfo(String trainfo) {\n this.trainfo = trainfo == null ? null : trainfo.trim();\n }", "public void setSetList(List<String> sets) {\n\t\tset1 = null;\n\t\tset2 = null;\n\t\tsetsList = sets;\n\t}", "@Override\n\tpublic void setRoles(ArrayList<String> roles)\n\t{\n\t\tsource.setRoles(roles);\n\t}", "protected Trainer(String tName) {\n this(tName, new ArrayList<>());\n }", "@Override\n public void setPlayerBrainList(Player player, ArrayList<Brain> brains) {\n DatabaseReference currentRef = database.getReference(gameCodeRef).child(\"Players\").child(player.getUsername());\n currentRef.child(\"BrainList\").setValue(brains);\n }", "public void setUsers(List<User> users)\r\n/* */ {\r\n/* 221 */ this.users = users;\r\n/* */ }", "void setTvAttrib() {\r\n obj1.brandname = \"PANASONIC\"; //setting brandname for obj1\r\n obj1.size = 65; //setting size for obj1\r\n vendor.add(obj1); //adding to arraylist vendor\r\n\r\n obj2.brandname = \"KELVIN\"; //setting brandname for obj2\r\n obj2.size = 51; //setting size for obj2\r\n vendor.add(obj2); //adding to arraylist vendor\r\n\r\n obj3.brandname = \"SONY\"; //setting size for obj2\r\n obj3.size = 42; //setting size for obj2\r\n vendor.add(obj3); //adding to arraylist vendor\r\n\r\n }", "public void setList(java.util.List newAktList) {\n\t\tlist = newAktList;\n\t}", "public TraceList(List<Trace> traces){\n\t\tthis.traces=traces;\n\t}", "public void addTrainTosortingYard(int trackNumber, Train train){\r\n\t\tsortingYard[trackNumber] = train;\r\n\t}", "public void setTargets(IdentifierListNode targets);", "public List<Movie> theaters() {\n String url = \"http://api.rottentomatoes.com/api/public/v1.0/lists/movies/in_theaters.json?\"\n + \"apikey=yedukp76ffytfuy24zsqk7f5\";\n apicall(url);\n\n Gson gson = new Gson();\n MovieResponse response = gson.fromJson(data, MovieResponse.class);\n List<Movie> movies = response.getMovies();\n movieData = movies;\n System.out.println(url);\n return movieData;\n }", "public void setTokens() {\n\t\tgetOwner().setAmount(getOwner().getAmount() + 1000);\n\t}", "public ChainingMethods setTraccia(String traccia) {\n this.traccia = traccia;\n\n return this;\n }", "public void setVictimas(List<Victima> listaVictimas) {\n\t\tif ( visorEscenario != null )\n\t\t\tvisorEscenario.setVictimas(listaVictimas);\n\t}", "public TradeList() {\n this.trades = new ArrayList<>();\n }", "protected Trainer(String tName, ArrayList<Pokemon> pTeam) {\n name = tName;\n team = pTeam;\n }", "public void setMarkersReferenceFromTRC(String filename) {\n opensimMocoJNI.MocoTrack_setMarkersReferenceFromTRC__SWIG_1(swigCPtr, this, filename);\n }", "private void fillTeachers() {\n for(Teacher t : MainFrame.etablissement.getTeachers()) {\n principalTeacher.addItem(t);\n }\n }" ]
[ "0.65214217", "0.6427204", "0.602328", "0.5968856", "0.5908083", "0.58924866", "0.5730662", "0.5640745", "0.5379271", "0.5345239", "0.5205016", "0.5144115", "0.51328015", "0.5098874", "0.50580585", "0.49418613", "0.49026412", "0.48722312", "0.48550546", "0.48402825", "0.48240355", "0.47854072", "0.47762868", "0.4773198", "0.47725582", "0.47680745", "0.4765088", "0.4751559", "0.47506192", "0.4728151", "0.4725202", "0.47161707", "0.47141293", "0.47103366", "0.47055098", "0.4666047", "0.46424767", "0.4630097", "0.4626674", "0.4626315", "0.46221304", "0.46178162", "0.4601544", "0.45967454", "0.45911157", "0.45861512", "0.4582846", "0.45773342", "0.4576565", "0.4569784", "0.45579118", "0.45405763", "0.45385072", "0.4536238", "0.45282987", "0.45166346", "0.45139912", "0.4509882", "0.45067647", "0.44991627", "0.44939005", "0.44874147", "0.44786882", "0.4476926", "0.44762924", "0.44723737", "0.4468229", "0.4447262", "0.4433368", "0.44129586", "0.4402857", "0.4399929", "0.43977633", "0.43934375", "0.43899128", "0.4379343", "0.4377413", "0.43762127", "0.4371745", "0.43699983", "0.43699238", "0.43636614", "0.43626767", "0.4346424", "0.43393308", "0.43367472", "0.4331778", "0.43309397", "0.43277946", "0.4323364", "0.4321823", "0.43215838", "0.43214035", "0.43212506", "0.43139666", "0.43139493", "0.431338", "0.43131986", "0.43087053", "0.43066248" ]
0.8063521
0
Write the values to the Parcel.
@Override public void writeToParcel(Parcel parcel, int i) { parcel.writeString(id); parcel.writeString(title); parcel.writeString(overview); parcel.writeString(posterUrl); parcel.writeString(userRating); parcel.writeString(releaseDate); parcel.writeInt(runtime); parcel.writeByte((byte) (isFavorite ? 1 : 0)); parcel.writeTypedList(castList); parcel.writeTypedList(reviews); parcel.writeTypedList(trailers); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void writeToParcel(Parcel parcel, int i) {\n parcel.writeString(this.names);\n parcel.writeString(this.lastnames);\n parcel.writeInt(this.age);\n }", "@Override\n public void writeToParcel(Parcel parcel, int i) {\n }", "@Override\r\n\tpublic void writeToParcel(Parcel dest, int flags) {\n\t\tdest.writeString(mFile.toString());\r\n\t\tdest.writeDouble(mLatitude);\r\n\t\tdest.writeDouble(mLongitude);\r\n\t}", "@Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(name);\n dest.writeString(description);\n dest.writeString(type);\n dest.writeString(value);\n }", "@Override\n public void writeToParcel(Parcel parcel, int flags) {\n parcel.writeInt(this.pid);\n parcel.writeInt(this.age);\n parcel.writeInt(this.color);\n parcel.writeInt(this.bpm);\n parcel.writeInt(this.rpm);\n parcel.writeInt(this.o2);\n parcel.writeInt(this.temperature);\n\n parcel.writeByte((byte) (this.nbcContam ? 1 : 0));\n\n parcel.writeString(this.fName);\n parcel.writeString(this.lName);\n parcel.writeString(this.ssn);\n parcel.writeString(this.sex);\n parcel.writeString(this.type);\n parcel.writeString(this.ipaddr);\n parcel.writeString(this.src);\n parcel.writeByte((byte) (this.isSelected ? 1 : 0));\n }", "void write(List<Object> values) throws TransportException;", "@Override public void writeToParcel(Parcel dest, int flags) { }", "public void writeToParcel(Parcel out, int flags) {\t\t\r\n\t\tint parameters[] = new int[6];\r\n\t\tparameters[0] = operationType;\r\n\t\tparameters[1] = dataType;\r\n\t\tparameters[2] = calculater;\r\n\t\tparameters[3] = sensorName;\r\n\t\tparameters[4] = valueName;\r\n\t\tparameters[5] = attributeName;\r\n\t\tout.writeIntArray(parameters);\r\n\t\tout.writeFloat(floatConstant);\r\n\t}", "@Override\n public void writeToParcel(Parcel dest, int flags) {\n if (DBG) log(\"writeToParcel(Parcel, int): \" + toString());\n dest.writeInt(mSignalStrength);\n dest.writeInt(mBitErrorRate);\n }", "@Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(operate_time);\n dest.writeString(operate_name);\n dest.writeString(resume_number);\n dest.writeString(name);\n dest.writeString(echo_yes);\n dest.writeString(sex);\n dest.writeString(year);\n dest.writeString(work_beginyear);\n dest.writeString(high_education);\n dest.writeString(location);\n dest.writeString(pic_filekey);\n dest.writeString(user_id);\n dest.writeString(resume_id);\n dest.writeString(moremajor);\n dest.writeString(isnew);\n }", "@Override\n public void writeToParcel(Parcel out, int flags) {\n out.writeString(this.tagId);\n out.writeString(this._tag);\n out.writeDouble(this.probability);\n }", "@Override\n\t\t\tpublic void writeToParcel(Parcel arg0, int arg1) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\tpublic void writeToParcel(Parcel dest, int flags) {\n\t\t\t\n\t\t}", "@Override\n \n public void writeToParcel(Parcel dest, int flags) {\n \n if (lat == null) {\n \n dest.writeByte((byte) (0x00));\n \n } else {\n \n dest.writeByte((byte) (0x01));\n \n dest.writeDouble(lat);\n \n }\n if (lng == null) {\n \n dest.writeByte((byte) (0x00));\n \n } else {\n \n dest.writeByte((byte) (0x01));\n \n dest.writeDouble(lng);\n \n }\n \n dest.writeString(name);\n \n dest.writeString(iconUrl);\n \n dest.writeString(address);\n \n dest.writeString(operating);\n \n }", "@Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(name);\n dest.writeString(phone);\n dest.writeString(email);\n }", "public void writeRow(Object[] colValues) throws IOException;", "@Override\n public void writeToParcel(Parcel parcel, int flags) {\n parcel.writeParcelable(mCourse,0);\n parcel.writeString(mTitle);\n parcel.writeString(mText);\n }", "@Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(job_resume);\n dest.writeString(job_id);\n dest.writeString(job_name);\n dest.writeString(issue_date);\n dest.writeString(quyu);\n }", "public void writeQValues(String path) {\n\t\ttry {\n\t\t\tSLAPI.save(qValues, path);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(nome);\n dest.writeString(email);\n dest.writeString(senha);\n }", "@Override\n public void writeToParcel(Parcel dest, int flags) {\n\n }", "@Override\n\tpublic void writeToParcel(Parcel dest, int flags) {\n\t\t\n\t}", "private void writePzIntoCsv(double[] vals, PrintWriter outfile) {\n for (int i = 0; i < vals.length; i++) {\n outfile.append(vals[i] + \",\");\n }\n //outfile.append(stimulus);\n outfile.append(\"\\n\");\n }", "@Override\n\tpublic void writeToParcel(Parcel dest, int flags) {\n\t\tdest.writeLong(this.Guid);\n\t\tdest.writeDouble(this.Latitude);\n\t\tdest.writeDouble(this.Longitude);\n\t\tdest.writeDouble(this.Altitude);\n\t\tdest.writeDouble(this.Accuracy);\n\t\tdest.writeString(this.getCreateTimeStr());\n\t\tdest.writeFloat(this.Speed);\n\t\tdest.writeFloat(this.Bearing);\n\t\tdest.writeString(this.Province);\n\t\tdest.writeString(this.City);\n\t\tdest.writeString(this.District);\n\t\tdest.writeString(this.Street);\n\t\tdest.writeString(this.StreetNum);\n\t\tdest.writeString(this.Address);\n\t}", "public void writeToParcel(Parcel out, int flags) {\n out.writeString(location);\n out.writeDouble(latitude);\n out.writeDouble(longitude);\n out.writeDouble(temperature);\n out.writeDouble(humidity);\n out.writeDouble(windSpeed);\n out.writeDouble(cloudCover);\n }", "public void writeNextMultivalue(String name, String... values) throws ThingsException;", "public final void writeToParcel(Parcel parcel, int i) {\n int a = see.m35030a(parcel);\n see.m35063b(parcel, 1, this.f10541a);\n see.m35040a(parcel, 2, this.f10542b, i, false);\n see.m35052a(parcel, 3, this.f10543c, false);\n see.m35066c(parcel, 4, this.f10544d, false);\n see.m35062b(parcel, a);\n }", "@Override\n\tpublic void writeToParcel(Parcel dest, int flags) {\n\n\t}", "@Override\n\tpublic void writeToParcel(Parcel dest, int flags) {\n\n\t}", "@Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeStringArray(new String[] {Objects.toString(this._id, null),\n this.pNote,\n this.pDate});\n }", "@Override\r\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(this._id);\r\n dest.writeString(this.code);\r\n dest.writeString(this.company);\r\n dest.writeString(this.direction);\r\n dest.writeString(this.etaGet);\r\n dest.writeString(this.latitude);\r\n dest.writeString(this.locationEnd);\r\n dest.writeString(this.locationStart);\r\n dest.writeString(this.longitude);\r\n dest.writeString(this.name);\r\n dest.writeInt(this.order);\r\n dest.writeString(this.route);\r\n dest.writeString(this.sequence);\r\n dest.writeLong(this.updatedAt);\r\n }", "public final void writeToParcel(Parcel parcel, int i) {\n int a = see.m35030a(parcel);\n see.m35051a(parcel, 2, this.f29737a);\n see.m35046a(parcel, 3, this.f29738b, false);\n see.m35051a(parcel, 4, this.f29739c);\n see.m35040a(parcel, 5, this.f29740d, i, false);\n see.m35062b(parcel, a);\n }", "public final void writeToParcel(Parcel parcel, int n) {\n parcel.writeInt(this.a);\n parcel.writeInt(this.b);\n int n2 = this.c ? 1 : 0;\n parcel.writeInt(n2);\n }", "public final void writeToParcel(Parcel parcel, int i) {\n int a = see.m35030a(parcel);\n see.m35046a(parcel, 1, this.f80194a, false);\n see.m35046a(parcel, 2, this.f80195b, false);\n see.m35046a(parcel, 3, this.f80196c, false);\n see.m35063b(parcel, 4, this.f80197d);\n see.m35062b(parcel, a);\n }", "@Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(locationID);\n dest.writeDouble(longitude);\n dest.writeDouble(altitude);\n dest.writeDouble(latitude);\n dest.writeFloat(speed);\n dest.writeLong(time);\n\n }", "public final void writeToParcel(Parcel parcel, int i) {\n int a = see.m35030a(parcel);\n see.m35063b(parcel, 1, this.f10667a);\n see.m35046a(parcel, 2, this.f10668b, false);\n see.m35040a(parcel, 3, this.f10669c, i, false);\n see.m35052a(parcel, 4, this.f10670d, false);\n see.m35051a(parcel, 5, this.f10671e);\n see.m35062b(parcel, a);\n }", "@Override\n\tpublic void writeToParcel(Parcel dest, int flags) {\n\t\tdest.writeString(this.custNo);\n\t\tdest.writeString(this.leftTimes);\n\t\tdest.writeString(this.contentMsg);\n\t\tdest.writeInt(this.contentCode);\n\t}", "@Override\n public void write() {\n\n }", "public void write(int ints) {\n try {\n mOutStream.writeInt(ints);\n Log.i(\"TRANSFER\", \"wrote \" + ints);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void write() throws IOException {\n // No pairs to write\n if(map.size() == 0 || !isDirty) {\n System.err.println(\"preferences is already updated..\");\n return;\n }\n\n try(BufferedWriter bufferedWriter = Files.newBufferedWriter(fileName,\n StandardOpenOption.TRUNCATE_EXISTING,\n StandardOpenOption.CREATE))\n {\n for(Map.Entry<String, String> entry : map.entrySet()) {\n String key = entry.getKey();\n String value = entry.getValue();\n\n // Writes the current pair value in the format of 'key=value'\n bufferedWriter.write(String.format(\"%s=%s\\n\", key, value));\n }\n }\n\n isDirty = false;\n }", "public final void writeToParcel(Parcel parcel, int i) {\n int a = see.m35030a(parcel);\n see.m35051a(parcel, 2, this.f8057a);\n see.m35051a(parcel, 3, this.f8058b);\n see.m35046a(parcel, 4, this.f8059c, false);\n see.m35051a(parcel, 5, this.f8060d);\n see.m35034a(parcel, 6, this.f8061e);\n see.m35063b(parcel, 7, this.f8062f);\n see.m35051a(parcel, 8, this.f8063g);\n see.m35051a(parcel, 9, this.f8064h);\n see.m35051a(parcel, 10, this.f8065i);\n see.m35062b(parcel, a);\n }", "public final void writeToParcel(Parcel parcel, int i) {\n int a = see.m35030a(parcel);\n see.m35046a(parcel, 2, this.f107230a, false);\n see.m35066c(parcel, 3, mo58802c(), false);\n see.m35046a(parcel, 4, this.f107232c, false);\n see.m35045a(parcel, 5, this.f107233d);\n see.m35045a(parcel, 6, this.f107234e);\n see.m35045a(parcel, 7, this.f107231b);\n see.m35040a(parcel, 8, this.f107235f, i, false);\n see.m35062b(parcel, a);\n }", "@Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeList(listData);\n }", "@Override\n public void writeToParcel(Parcel dest, int flags)\n {\n dest.writeTypedList(mItems);\n }", "@Override\n\tpublic void writeToParcel(Parcel dest, int flags) {\n\t\tdest.writeString(northEastLatitude);\n\t\tdest.writeString(northEastLongitude);\n\t\tdest.writeString(southWestLatitude);\n\t\tdest.writeString(southWestLongitude);\n\t\tdest.writeString(arrivalTimeText);\n\t\tdest.writeString(arrivalTimeZone);\n\t\tdest.writeString(arrivalTimeValue);\n\t\tdest.writeString(departureTimeText);\n\t\tdest.writeString(departureTimeZone);\n\t\tdest.writeString(departureTimeValue);\n\t\tdest.writeString(distanceText);\n\t\tdest.writeString(distanceValue);\n\t\tdest.writeString(durationText);\n\t\tdest.writeString(durationValue);\n\t\tdest.writeString(arrivalAddress);\n\t\tdest.writeString(arrivalLatidute);\n\t\tdest.writeString(arrivalLongitude);\n\t\tdest.writeParcelableArray(stepsInfo.toArray(new RouteVO[stepsInfo.size()]), 0);\n\t}", "@Override\r\n\tpublic void writeToParcel(Parcel out, int flags) {\n\t\tout.writeTypedList(items);\r\n\t}", "@Override\n public void writeToParcel(Parcel dest, int flags) {\n super.writeToParcel(dest, flags);\n }", "public void writeToParcel(Parcel out, int flags) {\n\t\tout.writeList(this.places);\n }", "void write(List<StringBuilder> values);", "public void write() {\n\t\tint xDist, yDist;\r\n\t\ttry {\r\n\t\t\tif (Pipes.getPipes().get(0).getX() - b.getX() < 0) { // check if pipes are behind bird\r\n\t\t\t\txDist = Pipes.getPipes().get(1).getX() - b.getX();\r\n\t\t\t\tyDist = Pipes.getPipes().get(1).getY() - b.getY() + Pipes.height;\r\n\t\t\t} else {\r\n\t\t\t\txDist = Pipes.getPipes().get(0).getX() - b.getX();\r\n\t\t\t\tyDist = Pipes.getPipes().get(0).getY() - b.getY() + Pipes.height;\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\txDist = -6969;\r\n\t\t\tyDist = -6969;\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.out.println(\"Pipe out of bounds\");\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tFile file = new File(\"DATA.txt\");\r\n\t\t\tFileWriter fr = new FileWriter(file, true);\r\n\t\t\tfr.write(xDist + \",\" + yDist + \",\" + b.getYVel() + \",\" + didJump);\r\n\t\t\tfr.write(System.getProperty(\"line.separator\")); // makes a new line\r\n\t\t\tfr.close();\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(\"Wtrie file error\");\r\n\t\t}\r\n\t}", "@Override\n public void saveValues() {\n \n }", "void write(Object... columns) throws IOException;", "@Override\n public <T> void exportToExcel(String location, List<T>... values) throws IOException, WriteException, DALException {\n ExcelWriter newFile = new ExcelWriter();\n newFile.setOutputFile(location);\n newFile.createNewExcel(\"Rapport over frivillige\");\n\n newFile.createCaptions(0, \"Frivillig\", \"Email\", \"Telefon\", \"Antal timer i laug\");\n\n writeDataToFile(newFile, values[0], 1);\n\n //If a second list is parsed, prints its information under the first list.\n if (values.length > 1 && values[1] != null) {\n newFile.createCaptions(values[0].size() + 1, \"Inaktive Frivillige\");\n\n writeDataToFile(newFile, values[1], values[1].size() + 2);\n }\n\n newFile.writeExcelToFile();\n }", "@Override\n\tpublic void writeToParcel(Parcel dest, int flags) {\n\t\tdest.writeInt(user_id);\n\t\tdest.writeString(title);\n\t\tdest.writeString(desc);\n\t\tdest.writeString(location_ids);\n\t}", "@Override\r\n public void writeToParcel(Parcel out, int flags) {\r\n out.writeInt(id);\r\n out.writeString(category);\r\n out.writeString(subcategory);\r\n out.writeString(name);\r\n out.writeString(startDate.toString());\r\n out.writeString(endDate.toString());\r\n out.writeInt(datamined ? 1 : 0);\r\n\r\n int rewardCount = 0;\r\n for (int i = 0; i < rewards.length; i++) {\r\n if (rewards[i] != null) {\r\n rewardCount++;\r\n }\r\n }\r\n\r\n out.writeInt(rewardCount);\r\n\r\n for (int i = 0; i < rewards.length; i++) {\r\n if (rewards[i] != null) {\r\n out.writeString(rewards[i].getItem());\r\n out.writeInt(rewards[i].getQty());\r\n out.writeInt(rewards[i].isApproximate() ? 1 : 0);\r\n }\r\n }\r\n }", "public void writeToParcel(Parcel out, int flags) {\n out.writeInt(mData);\n }", "@Override\n\tpublic void writeToParcel(Parcel dest, int flags) {\n\t\tdest.writeList(lista);\n\t}", "private void collectValuesForSettings() {\n portColumnsValue = (portColumns.getProgress());\n portRowsValue = (portRows.getProgress());\n landColumnsValue = (landColumns.getProgress());\n landRowsValue = (landRows.getProgress());\n }", "public void save() {\n\t\tInputManager.resetWriter(false);\n\t\tInputManager.writer(InputManager.newDelimeterOne + \" \" + InputManager.newDelimeterTwo);\n\t\tfor(Row r: rows) {\n\t\t\tInputManager.writer(r.toString());\n\t\t}\n\t}", "@Override\r\n\tpublic void write() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void writeToParcel(Parcel dest, int flags) {\n\t\tdest.writeInt(id);\r\n\t\tdest.writeInt(priority);\r\n\t\tdest.writeString(name);\r\n\t}", "public <T> void exportToExcel(String location, List<T>... values) throws IOException, WriteException, DALException;", "void write(List<?> columns, CellProcessor[] processors) throws IOException;", "@Override\n public void writeToParcel(Parcel out, int flags){\n out.writeParcelable(history, flags);\n out.writeParcelable(historyValues, flags);\n out.writeParcelable(redoEffects, flags);\n out.writeParcelable(redoParams, flags);\n out.writeMap(images);\n }", "void write(List<?> columns) throws IOException;", "@Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeLong(IdDomain);\n dest.writeLong(IdCategoryRoot);\n dest.writeString(Name);\n dest.writeString(Description);\n dest.writeString(ImageURL);\n }", "@Override\n\tpublic void writeToParcel(Parcel dest, int flags) {\n\t\tdest.writeString(vooleAuth);\n\t\tdest.writeString(authCompile);\n\t\tdest.writeString(vooleAgent);\n\t\tdest.writeString(agentCompile);\n\t\tdest.writeString(agentLibs);\n\t\tdest.writeString(upgradeVersion);\n\t\tdest.writeString(terminaLogVersion);\n\t\tdest.writeString(apkStartType);\n\t\tdest.writeString(isAuth);\n\t\tdest.writeString(deviceid);\n\t\tdest.writeString(sn);\n\t\tdest.writeString(sdkModuleVersion);\n\t\tdest.writeString(sdkModuleType);\n\t\tdest.writeString(packageName);\n\t\tdest.writeParcelable(info, PARCELABLE_WRITE_RETURN_VALUE);\n\t}", "public void writeToParcel(Parcel parcel, int n10) {\n Object object;\n int n11;\n int n12;\n block6: {\n Object object2 = this.zalg;\n if (object2 == null) {\n Throwable throwable2222222;\n OutputStream outputStream;\n block5: {\n object2 = this.zalh;\n n12 = object2.getRowBytes();\n n11 = object2.getHeight();\n Object object3 = ByteBuffer.allocate(n12 *= n11);\n object2.copyPixelsToBuffer((Buffer)object3);\n object3 = ((ByteBuffer)object3).array();\n outputStream = this.zabz();\n object = new BufferedOutputStream(outputStream);\n outputStream = new DataOutputStream((OutputStream)object);\n n11 = ((Object)object3).length;\n ((DataOutputStream)outputStream).writeInt(n11);\n n11 = object2.getWidth();\n ((DataOutputStream)outputStream).writeInt(n11);\n n11 = object2.getHeight();\n ((DataOutputStream)outputStream).writeInt(n11);\n object2 = object2.getConfig();\n object2 = object2.toString();\n ((DataOutputStream)outputStream).writeUTF((String)object2);\n ((FilterOutputStream)outputStream).write((byte[])object3);\n {\n catch (Throwable throwable2222222) {\n break block5;\n }\n catch (IOException iOException) {}\n {\n object2 = \"Could not write into unlinked file\";\n IllegalStateException illegalStateException = new IllegalStateException((String)object2, iOException);\n throw illegalStateException;\n }\n }\n BitmapTeleporter.zaa(outputStream);\n break block6;\n }\n BitmapTeleporter.zaa(outputStream);\n throw throwable2222222;\n }\n }\n int n13 = 1;\n n12 = SafeParcelWriter.beginObjectHeader(parcel);\n n11 = this.zalf;\n SafeParcelWriter.writeInt(parcel, n13, n11);\n object = this.zalg;\n SafeParcelWriter.writeParcelable(parcel, 2, (Parcelable)object, n10 |= n13, false);\n n13 = this.mType;\n SafeParcelWriter.writeInt(parcel, 3, n13);\n SafeParcelWriter.finishObjectHeader(parcel, n12);\n this.zalg = null;\n }", "public void write()\n {\n getCsvParser().parse(getReader());\n }", "private void writeFields(TupleAccessor tuple) {\n for ( int i = 0; i < fieldCount; i++ ) {\n if ( isNull[i] || isRepeated[i] )\n continue;\n FieldAccessor field = tuple.getField( i );\n serializer[i].serialize( writer, field );\n }\n }", "@Override\n public void writeToParcel(Parcel out, int flags) {\n out.writeString(title);\n out.writeString(text);\n }", "@Override\n public void writeToParcel(Parcel dest, int flags) {\n Bundle bundle = new Bundle();\n\n // insert the key value pairs to the bundle\n bundle.putString(BACK_PATH, backdrop_path);\n bundle.putInt(ID, id);\n bundle.putString(OVERVIEW, overview);\n bundle.putString(RELEASE_DATE, release_date);\n bundle.putString(POSTER_PATH, poster_path);\n bundle.putString(TITLE, original_title);\n bundle.putDouble(VOTE_AVERAGE, vote_average);\n\n // write the key value pairs to the parcel\n dest.writeBundle(bundle);\n }", "@Override\n\tpublic void writeToParcel(Parcel pDest, int pFlags) {\n\t\tmRoutePointsTemp = new ArrayList<WaypointMAP>();\n\t\tfor (BasicDBObject lDbObject : mRoutePoints) {\n\t\t\tmRoutePointsTemp.add(new WaypointMAP(Double.parseDouble(lDbObject\n\t\t\t\t\t.get(\"waypointLat\").toString()), Double\n\t\t\t\t\t.parseDouble(lDbObject.get(\"waypointLng\").toString())));\n\t\t}\n\t\t/** WriteToParcel */\n\t\tpDest.writeInt(this.mRouteId);\n\t\t// dest.writeFloat(this.routeKm);\n\t\tpDest.writeList(this.mRoutePointsTemp);\n\t}", "protected abstract void write (Object val);", "public void writeToParcel(Parcel dest, int flags) {\n\t\tdest.writeString(nombre);\n\t\tdest.writeInt(edad);\n\t\tdest.writeString(nombre);\n\t\tdest.writeString(mail);\n\t}", "protected void write(CCompatibleOutputStream os) throws Exception {\n java.util.Vector fieldVector = getFieldVector();\n for (int i = 0; i < fieldVector.size(); i++) {\n Field field = (Field) (fieldVector.elementAt(i));\n Class type = field.getType();\n if (type == Byte.TYPE) {\n os.writeByte(field.getByte(this));\n }\n else if (type == Short.TYPE) {\n os.writeShortReverse(field.getShort(this));\n }\n else if (type == Integer.TYPE) {\n os.writeIntReverse(field.getInt(this));\n }\n else if (type == Long.TYPE) {\n os.writeLongReverse(field.getLong(this));\n }\n else if (type == Double.TYPE) {\n os.writeDouble(field.getDouble(this));\n }\n else if (type.getName().equals(\"[B\")) {\n os.write( (byte[]) (field.get(this)));\n }\n }\n }", "@Override\n public void writeToParcel(Parcel out, int flags) {\n out.writeInt(mCenterX);\n out.writeInt(mCenterY);\n out.writeInt(mWidth);\n out.writeInt(mHeight);\n }", "@Override\n public void writeToParcel(Parcel parcel_out, int flags) {\n parcel_out.writeInt(id);\n parcel_out.writeString(name);\n parcel_out.writeString(slug);\n }", "public void writeScores() throws IOException {\n if (this.list.isPresent() && this.toSave) {\n try (DataOutputStream out = new DataOutputStream(new FileOutputStream(this.file))) {\n for (final Pair<String, Integer> p : this.list.get()) {\n out.writeUTF(p.getX());\n out.writeInt(p.getY().intValue());\n }\n this.toSave = false;\n } catch (IOException e) {\n System.out.println(\"IOException on writing scores\");\n }\n }\n\n }", "public void WriteOutputs(byte values) throws IOException {\n mDevice.writeRegByte( GPIO, values );\n }", "private void writePropertyData() {\n\t\ttry (PrintStream out = new PrintStream(openResultFileOuputStream(\n\t\t\t\tresultDirectory, \"properties.json\"))) {\n\t\t\tout.println(\"{\");\n\n\t\t\tint count = 0;\n\t\t\tfor (Entry<Integer, PropertyRecord> propertyEntry : this.propertyRecords\n\t\t\t\t\t.entrySet()) {\n\t\t\t\tif (count > 0) {\n\t\t\t\t\tout.println(\",\");\n\t\t\t\t}\n\t\t\t\tout.print(\"\\\"\" + propertyEntry.getKey() + \"\\\":\");\n\t\t\t\tmapper.writeValue(out, propertyEntry.getValue());\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\tout.println(\"\\n}\");\n\n\t\t\tSystem.out.println(\" Serialized information for \" + count\n\t\t\t\t\t+ \" properties.\");\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void storeValues() throws SQLException { //store values into the database\n \tstoreValuesDump();\n \tstoreValuesMatl();\n }", "private void writeCsv(float[] vals, String stimulus, PrintWriter outfile) throws FileNotFoundException {\n for (int i = 0; i < vals.length; i++) {\n outfile.append(vals[i] + \",\");\n }\n outfile.append(stimulus);\n outfile.append(\"\\n\");\n\n }", "@Override\n\tpublic void writeToParcel(Parcel dest, int flags) {\n\t\tdest.writeString(mBSSID);\n\t\tdest.writeString(mSSID);\n\t\tdest.writeParcelable(mForm, PARCELABLE_WRITE_RETURN_VALUE);\n\t}", "public final void writeToParcel(Parcel parcel, int i) {\n int a = see.m35030a(parcel);\n see.m35046a(parcel, 2, this.f31150a, false);\n see.m35046a(parcel, 3, this.f31151b, false);\n see.m35065b(parcel, 4, this.f31152c, false);\n see.m35051a(parcel, 5, this.f31153d);\n see.m35046a(parcel, 6, this.f31156g, false);\n see.m35046a(parcel, 7, this.f31157h, false);\n see.m35040a(parcel, 8, this.f31158i, i, false);\n see.m35040a(parcel, 9, this.f31159j, i, false);\n see.m35040a(parcel, 10, this.f31160k, i, false);\n see.m35040a(parcel, 11, this.f31161l, i, false);\n see.m35040a(parcel, 12, this.f31162m, i, false);\n see.m35040a(parcel, 13, this.f31163n, i, false);\n see.m35040a(parcel, 14, this.f31164o, i, false);\n see.m35040a(parcel, 15, this.f31165p, i, false);\n see.m35051a(parcel, 16, this.f31154e);\n see.m35051a(parcel, 17, this.f31155f);\n see.m35040a(parcel, 18, this.f31166q, i, false);\n see.m35062b(parcel, a);\n }", "@Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(content);\n //Enum type is serializable\n dest.writeSerializable(color);\n }", "public void writeValue(OutputStream out) throws IOException {\n if (m_strPackage != null) {\n m_strPackage.write(out);\n }\n if ((m_subPackages != null) && (m_subPackages.size() > 0)) {\n Iterator iter = m_subPackages.listIterator(0);\n DsByteString bs = null;\n while (iter.hasNext()) {\n bs = (DsByteString) iter.next();\n if (bs != null) {\n out.write(B_PERIOD);\n bs.write(out);\n }\n }\n }\n if (m_paramTable != null) {\n m_paramTable.write(out);\n }\n }", "private void writeProperties() {\n propsMutex.writeAccess(new Runnable() {\n public void run() {\n OutputStream out = null;\n FileLock lock = null;\n try {\n FileObject pFile = file.getPrimaryFile();\n FileObject myFile = FileUtil.findBrother(pFile, extension);\n if (myFile == null) {\n myFile = FileUtil.createData(pFile.getParent(), pFile.getName() + \".\" + extension);\n }\n lock = myFile.lock();\n out = new BufferedOutputStream(myFile.getOutputStream(lock));\n props.store(out, \"\");\n out.flush();\n lastLoaded = myFile.lastModified();\n logger.log(Level.FINE, \"Written AssetData properties for {0}\", file);\n } catch (IOException e) {\n Exceptions.printStackTrace(e);\n } finally {\n if (out != null) {\n try {\n out.close();\n } catch (IOException ex) {\n Exceptions.printStackTrace(ex);\n }\n }\n if (lock != null) {\n lock.releaseLock();\n }\n }\n }\n });\n }", "public void write(DataOutput out) throws IOException {\n this.count.write(out);\n this.week.write(out);\n out.writeInt(hashTagList.size());\n\n for(int index=0;index<hashTagList.size();index++){\n // Serializing every values in list to send to next machine\n hashTagList.get(index).write(out); //write all the value of list\n }\n }", "public void writeLine(List<String> values) throws Exception {\n boolean firstVal = true;\n for (String val : values) {\n if (!firstVal) {\n dataWriter.write(\",\");\n }\n //dataWriter.write(\"\\\"\");\n for (int i=0; i<val.length(); i++) {\n char ch = val.charAt(i);\n if (ch=='\\\"') {\n dataWriter.write(\"\\\"\"); //extra quote\n }\n dataWriter.write(ch);\n }\n //dataWriter.write(\"\\\"\");\n firstVal = false;\n }\n dataWriter.write(\"\\n\");\n dataWriter.flush();\n }", "@Override\r\n\tpublic void writeToParcel(Parcel dest, int flags)\r\n\t{\n\t\tdest.writeInt(this.id);\r\n\t\tdest.writeString(this.desc);\r\n\t\tdest.writeString(this.titulo_imagem);\r\n\t\tdest.writeString(this.titulo_som);\r\n\t\tdest.writeString(this.ext);\r\n\t\tdest.writeString(\"\" + this.tipo);\r\n\t\tdest.writeInt(this.cmd);\r\n\t\tdest.writeInt((this.atalho) ? 1 : 0);\r\n\t\tdest.writeInt(this.pagina);\r\n\t\tdest.writeInt(this.ordem);\r\n\t\t\r\n\t}", "@Override\r\n protected void reduce(Text key, Iterable<Text> values, Context context)\r\n throws IOException, InterruptedException {\n for (Text value : values) {\r\n\r\n context.write(key, value);\r\n }\r\n }", "@Override\r\n\tpublic void writeToParcel(Parcel dest, int flags) {\n\t\tdest.writeInt(Id);\r\n\t\tdest.writeString(Name);\r\n\t\tdest.writeFloat(Mark);\r\n\t\tdest.writeString(Type);\r\n\t\tdest.writeParcelable(Image, flags);\r\n\t\tdest.writeString(City);\r\n\t\tdest.writeDouble(Latitude);\r\n\t\tdest.writeDouble(Longitude);\r\n\t}", "@Override\n\tpublic void writeToParcel(Parcel dest, int flags) {\n\t\tdest.writeString(ID);\n\t\tdest.writeString(Title);\n\t\tdest.writeString(More);\n\t\tdest.writeString(Tag);\n\t\tdest.writeString(PosterUrl);\n\t\tdest.writeString(VideoUrl);\n\t\tdest.writeString(Director);\n\t\tdest.writeString(Actor);\n\t\tdest.writeString(Grade);\n\t\tdest.writeString(Contents);\n\t\tdest.writeString(RunningTime);\n\t\tdest.writeString(HD);\n\t\tdest.writeString(Price);\n\t}", "public static void write(int[] fields){\n\t\ttry {\n\t\t\t// get current working dir\n\t\t\tFile dir = new File(System.getProperty(\"user.dir\"));\n\t\t\tFileOutputStream fileout = new FileOutputStream(dir+\"/settings.ser\");\n\t\t\tObjectOutputStream out = new ObjectOutputStream(fileout);\n\t\t\tout.writeObject(fields);\n\t\t\tout.close();\n\t\t\tfileout.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "@Override\n\tpublic void writeToParcel(Parcel dest, int flags) {\n\t\tdest.writeString(this.title);\n\t\tdest.writeString(this.time);\n\t\tdest.writeString(this.subTitle);\n\t\tdest.writeString(this.type);\n\t\tdest.writeString(this.id);\n\t\tdest.writeString(this.operateId);\n\t\tdest.writeString(this.activityId);\n\t\tdest.writeString(this.flowInstanceId);\n\t\tdest.writeString(this.flowDetailId);\n\t\tdest.writeString(this.workItemId);\n\t\tdest.writeString(this.proxy);\n\t\tdest.writeString(this.proxyActorName);\n\t}", "private static void writeRecords(Collection<Record> values)\n throws IOException {\n for (Record record : values) {\n writer2.writeRecord(record.makeup());\n // over write, update writer\n // System.out.println(lineNum);\n if (++lineNum > Merge.lineNumbers.get(fileNum)) {\n writer2.flush();\n writer2.close();\n\n fileNum++;\n lineNum = 0;\n writer2 = new CsvWriter(new OutputStreamWriter(\n new FileOutputStream(SORT_USER_FN + fileNum + \".csv\"),\n \"UTF-8\"), ',');\n }\n }\n\n }", "@Override\n protected void writeInternal(int index, int value) {\n\n }", "@Override\n protected void writeInternal(int index, int value) {\n\n }", "private void writetj() {\n\t\tEditor edit = pretj.edit();\r\n\t\tedit.putInt(\"btn_menu1_int\", btn_menu1_int);\r\n\t\tedit.putInt(\"btn_menu2_int\", btn_menu2_int);\r\n\t\tedit.putInt(\"btn_menu3_int\", btn_menu3_int);\r\n\t\tedit.putInt(\"btn_menu4_int\", btn_menu4_int);\r\n\t\tedit.putInt(\"btn_menu4_int\", btn_menu4_int);\r\n\t\tedit.commit();\r\n\t}" ]
[ "0.62594986", "0.6223959", "0.6109939", "0.60876995", "0.6060046", "0.5967519", "0.5951397", "0.5934298", "0.5930232", "0.5928793", "0.5897402", "0.5895896", "0.57487106", "0.5731884", "0.57209", "0.5712153", "0.57001334", "0.5693535", "0.5672466", "0.5655299", "0.56546515", "0.56504947", "0.5635711", "0.56355476", "0.56342715", "0.5633328", "0.5624568", "0.56235886", "0.56235886", "0.5601511", "0.558866", "0.5577156", "0.5574724", "0.55694866", "0.5550429", "0.55450326", "0.55365515", "0.5499194", "0.54944366", "0.5488397", "0.5482505", "0.54661095", "0.5456992", "0.5442945", "0.5442874", "0.54042685", "0.53980213", "0.5376586", "0.5367197", "0.5350494", "0.53464395", "0.53440315", "0.5336686", "0.5330297", "0.5327904", "0.53199995", "0.53168654", "0.5314234", "0.5306145", "0.5304917", "0.5302368", "0.52948064", "0.5277882", "0.5250755", "0.5244115", "0.52296567", "0.5224426", "0.5223806", "0.5219134", "0.52154666", "0.5212061", "0.5208585", "0.52032804", "0.51996243", "0.51968044", "0.51899076", "0.5172611", "0.5169908", "0.5168386", "0.51580495", "0.514845", "0.5141547", "0.5127156", "0.5116215", "0.51160043", "0.5114008", "0.50956136", "0.50942326", "0.50924003", "0.5079282", "0.5070413", "0.5057188", "0.505001", "0.50374603", "0.5027676", "0.5018977", "0.5009462", "0.50072604", "0.50072604", "0.5005712" ]
0.5033499
94
Call private constructor and pass along Parcel, and then return a new object.
@Override public Movie createFromParcel(Parcel in) { return new Movie(in); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Reproducible newInstance();", "Parcelle createParcelle();", "private Person(final Parcel in) {\n super();\n readFromParcel(in);\n }", "public C1748jj createFromParcel(Parcel parcel) {\n int G = C0721a.m714G(parcel);\n int i = 0;\n int i2 = 0;\n int i3 = 0;\n String str = null;\n IBinder iBinder = null;\n Scope[] scopeArr = null;\n Bundle bundle = null;\n while (parcel.dataPosition() < G) {\n int F = C0721a.m713F(parcel);\n switch (C0721a.m720aH(F)) {\n case 1:\n i = C0721a.m728g(parcel, F);\n break;\n case 2:\n i2 = C0721a.m728g(parcel, F);\n break;\n case 3:\n i3 = C0721a.m728g(parcel, F);\n break;\n case 4:\n str = C0721a.m736o(parcel, F);\n break;\n case 5:\n iBinder = C0721a.m737p(parcel, F);\n break;\n case 6:\n scopeArr = (Scope[]) C0721a.m722b(parcel, F, Scope.CREATOR);\n break;\n case 7:\n bundle = C0721a.m738q(parcel, F);\n break;\n default:\n C0721a.m721b(parcel, F);\n break;\n }\n }\n if (parcel.dataPosition() == G) {\n return new C1748jj(i, i2, i3, str, iBinder, scopeArr, bundle);\n }\n throw new C0721a.C0722a(\"Overread allowed size end=\" + G, parcel);\n }", "public CMObject newInstance();", "protected abstract void construct();", "public \n PipedObjectReader() \n {}", "@Override\n\t\tpublic NewDoc createFromParcel(Parcel source) {\n\t\t\treturn new NewDoc(source);\n\t\t}", "@Override // android.os.Parcelable.Creator\n public final /* synthetic */ lw createFromParcel(Parcel parcel) {\n return new lw(parcel, (byte) 0);\n }", "public o000000ooo createFromParcel(Parcel parcel) {\n return new o000000ooo((AccessMessage) parcel.readValue(AccessMessage.class.getClassLoader()));\n }", "@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 Mapper newInstance() {\n Mapper mapper;\n\n mapper = new Mapper(name, parser.newInstance(), oag.newInstance());\n mapper.setLogging(logParsing, logAttribution);\n return mapper;\n }", "protected ParkingSpace(Parcel in) {\n address = in.readParcelable(Address.class.getClassLoader());\n owner = in.readParcelable(User.class.getClassLoader());\n parkingImageUrl = in.readString();\n specialInstruction = in.readString();\n parkingID = in.readString();\n }", "private Instantiation(){}", "public SavedState createFromParcel(Parcel parcel) {\r\n return new SavedState(parcel, null);\r\n }", "private Object createInstance() throws InstantiationException, IllegalAccessException {\n\t\treturn classType.newInstance();\n\t}", "@Override\n public SpesaObject createFromParcel(Parcel in) {\n return new SpesaObject(in);\n }", "private Driver(Parcel in) {\n super(in);\n }", "public cf createFromParcel(Parcel parcel) {\n int b = b.b(parcel);\n int i = 0;\n String str = null;\n int i2 = 0;\n short s = (short) 0;\n double d = 0.0d;\n double d2 = 0.0d;\n float f = 0.0f;\n long j = 0;\n int i3 = 0;\n int i4 = -1;\n while (parcel.dataPosition() < b) {\n int a = b.a(parcel);\n switch (b.a(a)) {\n case 1:\n str = b.j(parcel, a);\n break;\n case 2:\n j = b.g(parcel, a);\n break;\n case 3:\n s = b.d(parcel, a);\n break;\n case 4:\n d = b.i(parcel, a);\n break;\n case 5:\n d2 = b.i(parcel, a);\n break;\n case 6:\n f = b.h(parcel, a);\n break;\n case 7:\n i2 = b.e(parcel, a);\n break;\n case 8:\n i3 = b.e(parcel, a);\n break;\n case 9:\n i4 = b.e(parcel, a);\n break;\n case 1000:\n i = b.e(parcel, a);\n break;\n default:\n b.b(parcel, a);\n break;\n }\n }\n if (parcel.dataPosition() == b) {\n return new cf(i, str, i2, s, d, d2, f, j, i3, i4);\n }\n throw new a(\"Overread allowed size end=\" + b, parcel);\n }", "public T newInstance();", "public a createFromParcel(Parcel parcel) {\n int i = 0;\n int b = b.b(parcel);\n int i2 = 0;\n int i3 = 0;\n while (parcel.dataPosition() < b) {\n int a = b.a(parcel);\n switch (b.a(a)) {\n case 1:\n i2 = b.e(parcel, a);\n break;\n case 2:\n i = b.e(parcel, a);\n break;\n case 1000:\n i3 = b.e(parcel, a);\n break;\n default:\n b.b(parcel, a);\n break;\n }\n }\n if (parcel.dataPosition() == b) {\n return new a(i3, i2, i);\n }\n throw new a(\"Overread allowed size end=\" + b, parcel);\n }", "public T instantiatePrivate() throws NoSuchMethodException, IllegalAccessException, InvocationTargetException, InstantiationException {\n Constructor<T> constructor = clazz.getDeclaredConstructor();\n constructor.setAccessible(true);\n return constructor.newInstance();\n }", "public StubPrivateConstructorPair() {\r\n this(null, null);\r\n }", "public Contact(Parcel in){\n\n readFromParcel(in);\n\n }", "public C0902id createFromParcel(Parcel parcel) {\n String str = null;\n int n = C0173a.m313n(parcel);\n HashSet hashSet = new HashSet();\n int i = 0;\n C0900ib ibVar = null;\n String str2 = null;\n C0900ib ibVar2 = null;\n String str3 = null;\n while (parcel.dataPosition() < n) {\n int m = C0173a.m311m(parcel);\n switch (C0173a.m292M(m)) {\n case 1:\n i = C0173a.m305g(parcel, m);\n hashSet.add(Integer.valueOf(1));\n break;\n case 2:\n str3 = C0173a.m312m(parcel, m);\n hashSet.add(Integer.valueOf(2));\n break;\n case 4:\n C0900ib ibVar3 = (C0900ib) C0173a.m294a(parcel, m, (Creator<T>) C0900ib.CREATOR);\n hashSet.add(Integer.valueOf(4));\n ibVar2 = ibVar3;\n break;\n case 5:\n str2 = C0173a.m312m(parcel, m);\n hashSet.add(Integer.valueOf(5));\n break;\n case 6:\n C0900ib ibVar4 = (C0900ib) C0173a.m294a(parcel, m, (Creator<T>) C0900ib.CREATOR);\n hashSet.add(Integer.valueOf(6));\n ibVar = ibVar4;\n break;\n case 7:\n str = C0173a.m312m(parcel, m);\n hashSet.add(Integer.valueOf(7));\n break;\n default:\n C0173a.m298b(parcel, m);\n break;\n }\n }\n if (parcel.dataPosition() == n) {\n return new C0902id(hashSet, i, str3, ibVar2, str2, ibVar, str);\n }\n throw new C0174a(\"Overread allowed size end=\" + n, parcel);\n }", "protected Token(Parcel in) {\n this.mAccessToken = in.readString();\n this.mRefreshToken = in.readString();\n this.mExpiresIn = (Long) in.readValue(Long.class.getClassLoader());\n this.mTokenType = in.readString();\n long tmpMTokenReceivedDate = in.readLong();\n this.mTokenReceivedDate = new Date(tmpMTokenReceivedDate);\n }", "public o0000o000o createFromParcel(Parcel parcel) {\n return new o0000o000o((AccessMessage) parcel.readValue(AccessMessage.class.getClassLoader()));\n }", "@Override\n protected T createInstance() throws Exception {\n return this.isSingleton() ? this.builder().build() : XMLObjectSupport.cloneXMLObject(this.builder().build());\n }", "public Object construct() {\n try {\n Object res;\n\n res = mTarget.invokeTimeout(mMethodName, mParams, mTimeout);\n return res;\n }\n catch (TokenFailure ex) {\n return ex;\n }\n catch (RPCException ex) {\n return ex;\n }\n catch (XMPPException ex) {\n return ex;\n }\n }", "@Override\n\t\tpublic photo createFromParcel(Parcel in) {\n\t\t\t return new photo(in);\n\t\t}", "@Override\n\t\tpublic Info createFromParcel(Parcel source) {\n\t\t\treturn new Info(source);\n\t\t}", "private void __sep__Constructors__() {}", "@DISPID(-2147417603)\n @PropGet\n com4j.Com4jObject constructor();", "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 }", "protected T createNewBean() throws InstantiationException {\n try {\n return beanClass.getConstructor().newInstance();\n } catch (final InstantiationException |\n IllegalAccessException |\n IllegalArgumentException |\n InvocationTargetException |\n NoSuchMethodException |\n SecurityException e) {\n // fold it all into one type of exception\n throw new InstantiationException(e.getMessage());\n }\n }", "@Override\n public User createFromParcel(Parcel in) {\n return new User(in);\n }", "@Override\n public MyResponse createFromParcel(Parcel source) {\n return new MyResponse(source);\n }", "@JRubyMethod(name = \"new\")\n public static IRubyObject newObject(ThreadContext ctx, IRubyObject self) {\n return self.rbClone().callMethod(ctx, \"reset\");\n }", "private ProjectContract() {\n }", "public LocalObject() {}", "protected NewLocation(Parcel in) {\n locationID = in.readInt();\n longitude = in.readDouble();\n altitude = in.readDouble();\n latitude = in.readDouble();\n speed = in.readFloat();\n time = in.readLong();\n }", "protected Stock(Parcel in) {\n sid = in.readInt();\n companyName = in.readString();\n symbol = in.readString();\n primaryExchange = in.readDouble();\n latestValue = in.readDouble();\n stockPrice = in.readDouble();\n numberOfStocks = in.readInt();\n stockSector = in.readString();\n long tmpTimeStamp = in.readLong();\n timeStamp = tmpTimeStamp != -1 ? new Date(tmpTimeStamp) : null;\n }", "public /* bridge */ /* synthetic */ java.lang.Object createFromParcel(android.os.Parcel r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: android.location.GpsClock.1.createFromParcel(android.os.Parcel):java.lang.Object, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.1.createFromParcel(android.os.Parcel):java.lang.Object\");\n }", "protected abstract Object makeNew(final String prefix, final int seqno);", "public org.objenesis.instantiator.ObjectInstantiator newInstantiatorOf(final java.lang.Class r4) {\n /*\n r3 = this;\n boolean r0 = com.esotericsoftware.kryo.util.Util.IS_ANDROID\n r1 = 1\n if (r0 != 0) goto L_0x002a\n java.lang.Class r0 = r4.getEnclosingClass()\n if (r0 == 0) goto L_0x001d\n boolean r0 = r4.isMemberClass()\n if (r0 == 0) goto L_0x001d\n int r0 = r4.getModifiers()\n boolean r0 = java.lang.reflect.Modifier.isStatic(r0)\n if (r0 != 0) goto L_0x001d\n r0 = 1\n goto L_0x001e\n L_0x001d:\n r0 = 0\n L_0x001e:\n if (r0 != 0) goto L_0x002a\n com.esotericsoftware.reflectasm.ConstructorAccess r0 = com.esotericsoftware.reflectasm.ConstructorAccess.get(r4) // Catch:{ Exception -> 0x002a }\n com.esotericsoftware.kryo.Kryo$DefaultInstantiatorStrategy$1 r2 = new com.esotericsoftware.kryo.Kryo$DefaultInstantiatorStrategy$1 // Catch:{ Exception -> 0x002a }\n r2.<init>(r0, r4) // Catch:{ Exception -> 0x002a }\n return r2\n L_0x002a:\n r0 = 0\n r2 = r0\n java.lang.Class[] r2 = (java.lang.Class[]) r2 // Catch:{ Exception -> 0x0033 }\n java.lang.reflect.Constructor r0 = r4.getConstructor(r2) // Catch:{ Exception -> 0x0033 }\n goto L_0x003c\n L_0x0033:\n java.lang.Class[] r0 = (java.lang.Class[]) r0 // Catch:{ Exception -> 0x0042 }\n java.lang.reflect.Constructor r0 = r4.getDeclaredConstructor(r0) // Catch:{ Exception -> 0x0042 }\n r0.setAccessible(r1) // Catch:{ Exception -> 0x0042 }\n L_0x003c:\n com.esotericsoftware.kryo.Kryo$DefaultInstantiatorStrategy$2 r1 = new com.esotericsoftware.kryo.Kryo$DefaultInstantiatorStrategy$2 // Catch:{ Exception -> 0x0042 }\n r1.<init>(r0, r4) // Catch:{ Exception -> 0x0042 }\n return r1\n L_0x0042:\n org.objenesis.strategy.InstantiatorStrategy r0 = r3.fallbackStrategy\n if (r0 != 0) goto L_0x00c1\n boolean r0 = r4.isMemberClass()\n if (r0 == 0) goto L_0x0073\n int r0 = r4.getModifiers()\n boolean r0 = java.lang.reflect.Modifier.isStatic(r0)\n if (r0 == 0) goto L_0x0058\n goto L_0x0073\n L_0x0058:\n com.esotericsoftware.kryo.KryoException r0 = new com.esotericsoftware.kryo.KryoException\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n r1.<init>()\n java.lang.String r2 = \"Class cannot be created (non-static member class): \"\n r1.append(r2)\n java.lang.String r4 = com.esotericsoftware.kryo.util.Util.className(r4)\n r1.append(r4)\n java.lang.String r4 = r1.toString()\n r0.<init>(r4)\n throw r0\n L_0x0073:\n java.lang.StringBuilder r0 = new java.lang.StringBuilder\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n r1.<init>()\n java.lang.String r2 = \"Class cannot be created (missing no-arg constructor): \"\n r1.append(r2)\n java.lang.String r2 = com.esotericsoftware.kryo.util.Util.className(r4)\n r1.append(r2)\n java.lang.String r1 = r1.toString()\n r0.<init>(r1)\n java.lang.String r4 = r4.getSimpleName()\n java.lang.String r1 = \"\"\n boolean r4 = r4.equals(r1)\n if (r4 == 0) goto L_0x00b7\n java.lang.String r4 = \"\\n\\tThis is an anonymous class, which is not serializable by default in Kryo. Possible solutions: \"\n r0.append(r4)\n java.lang.String r4 = \"1. Remove uses of anonymous classes, including double brace initialization, from the containing \"\n r0.append(r4)\n java.lang.String r4 = \"class. This is the safest solution, as anonymous classes don't have predictable names for serialization.\"\n r0.append(r4)\n java.lang.String r4 = \"\\n\\t2. Register a FieldSerializer for the containing class and call \"\n r0.append(r4)\n java.lang.String r4 = \"FieldSerializer#setIgnoreSyntheticFields(false) on it. This is not safe but may be sufficient temporarily. \"\n r0.append(r4)\n java.lang.String r4 = \"Use at your own risk.\"\n r0.append(r4)\n L_0x00b7:\n com.esotericsoftware.kryo.KryoException r4 = new com.esotericsoftware.kryo.KryoException\n java.lang.String r0 = r0.toString()\n r4.<init>(r0)\n throw r4\n L_0x00c1:\n org.objenesis.instantiator.ObjectInstantiator r4 = r0.newInstantiatorOf(r4)\n return r4\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.esotericsoftware.kryo.Kryo.DefaultInstantiatorStrategy.newInstantiatorOf(java.lang.Class):org.objenesis.instantiator.ObjectInstantiator\");\n }", "@NotNull\n protected Supplier<AbstractReadablePacket> createConstructor() {\n final Constructor<AbstractReadablePacket> constructor = requireNonNull(ClassUtils.getConstructor(getClass()));\n return () -> ClassUtils.newInstance(constructor);\n }", "private CloneFactory() {\n }", "public final BusPath createFromParcel(Parcel parcel) {\n return new BusPath(parcel);\n }", "protected PlatonCapture(final Parcel in) {\n super(in);\n }", "private Contract() {\n }", "private Message(Parcel in) {\n text = in.readString();\n sender = in.readString();\n target = in.readString();\n sendersLatitude = in.readDouble();\n sendersLongitude = in.readDouble();\n numHops = in.readInt();\n expirationTime = in.readLong();\n createdByUser = in.readInt();\n }", "public Contract create(){\n\t\treturn new Contract();\n\t}", "public native void constructor();", "private Vault(Parcel in) {\n \tid = in.readInt();\n \tgymnastId = in.readInt();\n \tname = in.readString();\n \tdScore = in.readDouble();\n \teScore = in.readDouble();\n \tdate = new Date(in.readLong());\n \tdata = in.readString();\n \t\n \tconvertDataToSpeedAndDistanceData();\n }", "public static Construtor construtor() {\n return new Construtor();\n }", "T newInstance(Object... args);", "private CoverageReaderContract() {}", "public static void copyConstructor(){\n\t}", "public PipedWriter() { throw new RuntimeException(\"Stub!\"); }", "private ChainingMethods() {\n // private constructor\n\n }", "@Override // android.os.Parcelable.Creator\n public /* synthetic */ CounterConfiguration createFromParcel(Parcel parcel) {\n return new CounterConfiguration(parcel);\n }", "@Override\n\t\tpublic LoginDto createFromParcel(Parcel source) {\n\t\t\tLoginDto td = new LoginDto();\n\t\t\ttd.custNo = source.readString();\n\t\t\ttd.leftTimes = source.readString();\n\t\t\ttd.contentCode = source.readInt();\n\t\t\ttd.contentMsg = source.readString();\n\t\t\treturn td;\n\t\t}", "private R() {\n\n }", "private PerksFactory() {\n\n\t}", "private Mapper() {\n\n }", "public PjxParser()\r\n {\r\n LOG.info(this + \" instantiated\");\r\n }", "@Override\n\tpublic Location newInstance() {\n\t\treturn new Location(this.X,this.Y,0);\n\t}", "private MappingReader() {\n\t}", "public SignInConfiguration createFromParcel(Parcel parcel) {\r\n GoogleSignInOptions googleSignInOptions = null;\r\n int zzcl = zza.zzcl(parcel);\r\n int i = 0;\r\n String str = null;\r\n while (parcel.dataPosition() < zzcl) {\r\n int zzck = zza.zzck(parcel);\r\n switch (zza.zzgi(zzck)) {\r\n case 1:\r\n i = zza.zzg(parcel, zzck);\r\n break;\r\n case 2:\r\n str = zza.zzq(parcel, zzck);\r\n break;\r\n case 5:\r\n googleSignInOptions = (GoogleSignInOptions) zza.zza(parcel, zzck, GoogleSignInOptions.CREATOR);\r\n break;\r\n default:\r\n zza.zzb(parcel, zzck);\r\n break;\r\n }\r\n }\r\n if (parcel.dataPosition() == zzcl) {\r\n return new SignInConfiguration(i, str, googleSignInOptions);\r\n }\r\n throw new C0008zza(\"Overread allowed size end=\" + zzcl, parcel);\r\n }", "private Task(Parcel in) {\n\t\tid = in.readInt();\n\t\tuser_id = in.readInt();\n\t\ttitle = in.readString();\n\t\tdescription = in.readString();\n\t\tdate = (Calendar) in.readSerializable();\n\t\tcreated_at = (Calendar) in.readSerializable();\n\t\tupdated_at = (Calendar) in.readSerializable();\n\t}", "public static StaticFactoryInsteadOfConstructors newInstance() {\n return new StaticFactoryInsteadOfConstructors();\n }", "private PtTlsReaderFactory() {\n throw new AssertionError();\n }", "private Constructor getConstructor() throws Exception {\r\n return type.getConstructor(Contact.class, label, Format.class);\r\n }", "private StubPrivateConstructorPair(Object firstObject, Object secondObject) {\r\n super(firstObject, secondObject);\r\n }", "@SuppressWarnings(\"unused\")\r\n\tprivate Person() {\r\n\t}", "public final QScanResultEntity createFromParcel(Parcel parcel) {\n QScanResultEntity qScanResultEntity = new QScanResultEntity();\n qScanResultEntity.packageName = parcel.readString();\n qScanResultEntity.softName = parcel.readString();\n qScanResultEntity.version = parcel.readString();\n qScanResultEntity.versionCode = parcel.readInt();\n qScanResultEntity.path = parcel.readString();\n qScanResultEntity.apkType = parcel.readInt();\n qScanResultEntity.certMd5 = parcel.readString();\n qScanResultEntity.size = parcel.readInt();\n qScanResultEntity.type = parcel.readInt();\n qScanResultEntity.advice = parcel.readInt();\n qScanResultEntity.malwareid = parcel.readInt();\n qScanResultEntity.name = parcel.readString();\n qScanResultEntity.label = parcel.readString();\n qScanResultEntity.discription = parcel.readString();\n qScanResultEntity.url = parcel.readString();\n return qScanResultEntity;\n }", "private SingleObject()\r\n {\r\n }", "protected Object createBeanMatchingType(MappingContext mappingContext) {\n // clazz is never null given the only path that leads to this method already performs that check\n final Class<?> clazz = mappingContext.getTypeInformation().getSafeToWriteClass();\n try {\n return clazz.getDeclaredConstructor().newInstance();\n } catch (ReflectiveOperationException e) {\n throw new ConfigMeMapperException(mappingContext, \"Could not create object of type '\"\n + clazz.getName() + \"'. It is required to have a default constructor\", e);\n }\n }", "@Override\n public DownLoadResumeInfoBean createFromParcel(Parcel source) {\n DownLoadResumeInfoBean downLoadResumeInfoBean = new DownLoadResumeInfoBean();\n downLoadResumeInfoBean.operate_time = source.readString();\n downLoadResumeInfoBean.resume_number = source.readString();\n downLoadResumeInfoBean.name = source.readString();\n downLoadResumeInfoBean.echo_yes = source.readString();\n downLoadResumeInfoBean.sex = source.readString();\n downLoadResumeInfoBean.year = source.readString();\n downLoadResumeInfoBean.work_beginyear = source.readString();\n downLoadResumeInfoBean.high_education = source.readString();\n downLoadResumeInfoBean.location = source.readString();\n downLoadResumeInfoBean.pic_filekey = source.readString();\n downLoadResumeInfoBean.user_id = source.readString();\n downLoadResumeInfoBean.resume_id = source.readString();\n downLoadResumeInfoBean.moremajor = source.readString();\n downLoadResumeInfoBean.operate_name = source.readString();\n downLoadResumeInfoBean.isnew = source.readString();\n return downLoadResumeInfoBean;\n }", "public Item createFromParcel(Parcel source) {\n Item item = new Item();\n item.name = source.readString(); \n item.description = source.readString(); \n item.type = source.readString(); \n item.value = source.readString(); \n return item; \n }", "Instance createInstance();", "public ParameterizedInstantiateFactory() {\r\n super();\r\n }", "public PolygonOptions createFromParcel(Parcel parcel) {\n ArrayList arrayList = null;\n float f = 0.0f;\n int i = 0;\n int zzaY = zzb.zzaY(parcel);\n ArrayList arrayList2 = new ArrayList();\n boolean z = false;\n boolean z2 = false;\n boolean z3 = false;\n int i2 = 0;\n int i3 = 0;\n float f2 = 0.0f;\n List list = null;\n while (parcel.dataPosition() < zzaY) {\n int zzaX = zzb.zzaX(parcel);\n switch (zzb.zzdc(zzaX)) {\n case 2:\n list = zzb.zzc(parcel, zzaX, LatLng.CREATOR);\n break;\n case 3:\n zzb.zza(parcel, zzaX, (List) arrayList2, getClass().getClassLoader());\n break;\n case 4:\n f2 = zzb.zzl(parcel, zzaX);\n break;\n case 5:\n i3 = zzb.zzg(parcel, zzaX);\n break;\n case 6:\n i2 = zzb.zzg(parcel, zzaX);\n break;\n case 7:\n f = zzb.zzl(parcel, zzaX);\n break;\n case 8:\n z3 = zzb.zzc(parcel, zzaX);\n break;\n case 9:\n z2 = zzb.zzc(parcel, zzaX);\n break;\n case 10:\n z = zzb.zzc(parcel, zzaX);\n break;\n case 11:\n i = zzb.zzg(parcel, zzaX);\n break;\n case 12:\n arrayList = zzb.zzc(parcel, zzaX, PatternItem.CREATOR);\n break;\n default:\n zzb.zzb(parcel, zzaX);\n break;\n }\n }\n if (parcel.dataPosition() == zzaY) {\n return new PolygonOptions(list, arrayList2, f2, i3, i2, f, z3, z2, z, i, arrayList);\n }\n throw new zza(\"Overread allowed size end=\" + zzaY, parcel);\n }", "public Reparto(){\n\t\t\n\t}", "public IntPar() { }", "@Override\n\t\tpublic Album createFromParcel(Parcel source) {\n\t\t\treturn new Album(source);\n\t\t}", "@Override\n public ImageData createFromParcel(Parcel source) {\n return new ImageData(source); // using parcelable constructor\n }", "public ParseException() {\n super();\n specialConstructor = false;\n }", "@Override\n public NoteInfo createFromParcel(Parcel parcel) {\n\n return new NoteInfo(parcel);\n }", "private ObjectFactory() { }", "public ParcelableDocDetail createFromParcel(Parcel source) {\n\t\t\treturn new ParcelableDocDetail(source);\n\t\t}", "private PropertiesLoader() {\r\n\t\t// not instantiable\r\n\t}", "private ScheduleWaypoint(Parcel in) {\n\n buddies = new ArrayList<Schedule>();\n\n in.readParcelable(Schedule.class.getClassLoader());\n in.readList(buddies, Course.class.getClassLoader());\n }", "public /* bridge */ /* synthetic */ java.lang.Object createFromParcel(android.os.Parcel r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: android.telephony.SmsCbCmasInfo.1.createFromParcel(android.os.Parcel):java.lang.Object, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.telephony.SmsCbCmasInfo.1.createFromParcel(android.os.Parcel):java.lang.Object\");\n }", "public ProductoCreable newInstance(int codigo, String nombre){\r\n \r\n }", "private TMDBContract() {\n }", "private Tuples() {\n // prevent instantiation.\n }", "Constructor<T> newConstructor();", "public PipelineImpl() {\n }" ]
[ "0.67801535", "0.6730232", "0.6456127", "0.6266205", "0.623031", "0.62216675", "0.6084046", "0.6073087", "0.6058987", "0.6058647", "0.6012278", "0.6011562", "0.596331", "0.5958766", "0.5901539", "0.59004265", "0.58968645", "0.5889088", "0.5883155", "0.58764976", "0.5872646", "0.5871375", "0.58508974", "0.5844136", "0.5789039", "0.5762201", "0.57042813", "0.5703606", "0.5702835", "0.56958437", "0.56911373", "0.5671245", "0.5629539", "0.560611", "0.560022", "0.5596741", "0.5595743", "0.55719715", "0.55129766", "0.5512353", "0.55085504", "0.55024564", "0.54843295", "0.5482689", "0.54778653", "0.54641247", "0.54593694", "0.54524237", "0.5434598", "0.5433156", "0.54126", "0.53982955", "0.53920543", "0.5385533", "0.5371619", "0.5367734", "0.53570014", "0.53536856", "0.53511405", "0.5347711", "0.5340833", "0.53391594", "0.53388476", "0.5338816", "0.53376585", "0.5335139", "0.533273", "0.53198254", "0.53068215", "0.5300933", "0.529517", "0.52948177", "0.5285714", "0.528535", "0.5274588", "0.52741516", "0.52670133", "0.5265517", "0.5255677", "0.5254362", "0.5253907", "0.5247402", "0.52470124", "0.52454656", "0.5244247", "0.5241227", "0.52382", "0.5237773", "0.523303", "0.5231382", "0.5228867", "0.52186006", "0.5218214", "0.5202991", "0.520281", "0.5200522", "0.51962423", "0.5192931", "0.51924187", "0.5187978" ]
0.5654762
32
impostazione layout della recycleview
@Override public OrderViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { LayoutInflater inflater = LayoutInflater.from(mCtx); View view = inflater.inflate(R.layout.order_list_row, null); RecyclerView.LayoutParams lp = new RecyclerView.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT); view.setLayoutParams(lp); return new OrderViewHolder(view); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initView() {\n // set layout for recycle view\n //hasFixedSize true if adapter changes cannot affect the size of the RecyclerView\n recyclerView.setHasFixedSize(true);\n // this layout can be vertical or horizontal by change the second param\n // of LinearLayoutManager, and display up to down by set the third param false\n LinearLayoutManager layoutManager = new LinearLayoutManager(this,\n LinearLayoutManager.VERTICAL, false);\n\n recyclerView.setLayoutManager(layoutManager);\n importData();\n // set adapter for recycle view\n recyclerView.setAdapter(alarmAdapter);\n }", "private void setRecycleView(){\n\n RecyclerView recyclerView = findViewById(R.id.recycler_view);\n RecyclerView.LayoutManager mLayoutManager = new LinearLayoutManager(getApplicationContext());\n recyclerView.setLayoutManager(mLayoutManager);\n recyclerView.setItemAnimator(new DefaultItemAnimator());\n recyclerView.setAdapter(multiViewAdapter);\n }", "@Nullable\n @Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.bottom_sheet_product_view, container, false);\n // view = inflater.inflate(R.layout.bottom_sheet_product_view, null);\n\n recycle_view_size = view.findViewById(R.id.recycle_view_size);\n recycle_view_color = view.findViewById(R.id.recycle_view_color);\n\n for (int i =0;i < 5;i++){\n arrayList.add(\"\");\n }\n sizeAdapter = new SizeAdapter(getContext(),arrayList);\n colorAdapter = new ColorAdapter(getContext(),arrayList);\n\n LinearLayoutManager HorizontalLayout112\n = new LinearLayoutManager(\n getActivity(),\n LinearLayoutManager.HORIZONTAL,\n false);\n //RecyclerView.LayoutManager mLayoutManager = new LinearLayoutManager(getActivity(), LinearLayout.HORIZONTAL,false);/\n recycle_view_size.setLayoutManager(HorizontalLayout112);\n recycle_view_size.setItemAnimator(new DefaultItemAnimator());\n sizeAdapter.notifyDataSetChanged();\n recycle_view_size.setAdapter(sizeAdapter);\n\n LinearLayoutManager HorizontalLayout1121\n = new LinearLayoutManager(\n getActivity(),\n LinearLayoutManager.HORIZONTAL,\n false);\n //RecyclerView.LayoutManager mLayoutManager = new LinearLayoutManager(getActivity(), LinearLayout.HORIZONTAL,false);/\n recycle_view_color.setLayoutManager(HorizontalLayout1121);\n recycle_view_color.setItemAnimator(new DefaultItemAnimator());\n colorAdapter.notifyDataSetChanged();\n recycle_view_color.setAdapter(colorAdapter);\n\n\n return view;\n }", "private void prepareRefreshLayout() {\n swipeRefreshLayout.setColorSchemeColors(\n ContextCompat.getColor(getActivity(), R.color.colorPrimary),\n ContextCompat.getColor(getActivity(), R.color.colorAccent),\n ContextCompat.getColor(getActivity(), R.color.colorPrimaryDark)\n );\n\n // Set the scrolling view in the custom SwipeRefreshLayout.\n swipeRefreshLayout.setScrollUpChild(recyclerView);\n swipeRefreshLayout.setOnRefreshListener(() -> {\n presenter.getBuyedMovie();\n });\n movieRecyclerViewAdapter = new MovieRecyclerViewAdapter(new ArrayList<>(), this);\n recyclerView.setAdapter(movieRecyclerViewAdapter);\n recyclerView.setLayoutManager(new GridLayoutManager(getActivity(), 3));\n\n recyclerView.setItemAnimator(new DefaultItemAnimator());\n movieRecyclerViewAdapter.notifyDataSetChanged();\n }", "private void setLayout() {\n if (getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE) {\n recyclerView.setLayoutManager(new StaggeredGridLayoutManager(2, StaggeredGridLayoutManager.VERTICAL));\n\n } else if (getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT) {\n recyclerView.setLayoutManager(new LinearLayoutManager(getApplicationContext()));\n }\n }", "private void castLayoutElements() {\n linlaHeaderProgress = (LinearLayout) view.findViewById(R.id.linlaHeaderProgress);\n listPrinters = (RecyclerView) view.findViewById(R.id.listPrinters);\n linlaEmpty = (LinearLayout) view.findViewById(R.id.linlaEmpty);\n \n /* CONFIGURE THE RECYCLERVIEW */\n listPrinters.setHasFixedSize(true);\n LinearLayoutManager llm = new LinearLayoutManager(getActivity());\n llm.setOrientation(LinearLayoutManager.VERTICAL);\n listPrinters.setLayoutManager(llm);\n }", "public void cargarAdaptador(){\n gridLayoutManager = new GridLayoutManager(getContext(), 2);\n recyclerView.setLayoutManager(gridLayoutManager);\n adapterRecetas = new AdapterRecetas(getContext());\n recyclerView.setAdapter(adapterRecetas);\n }", "public void setRecycler(){\n GridLayoutManager manager=new GridLayoutManager(context,2,LinearLayoutManager.HORIZONTAL,\n false);\n\n recyclerView.setLayoutManager(manager);\n recyclerView.setHasFixedSize(true);\n MainMenuAdapter mainMenuAdapter=new MainMenuAdapter(menuRows,context,true);\n recyclerView.setAdapter(mainMenuAdapter);\n }", "private void initView() {\n linearLayoutManager = new LinearLayoutManager(getContext(),LinearLayoutManager.HORIZONTAL,true);\n hotNews_adapter = new HotNews_Adapter(getContext(),getPosts());\n recyclerViewHotNews.setLayoutManager(linearLayoutManager);\n recyclerViewHotNews.setAdapter(hotNews_adapter);\n\n //RecyclerView summary\n recyclerViewSummary.setLayoutManager(new LinearLayoutManager(getContext()));\n summary_adapter = new Summary_Adapter(getContext(),getPosts());\n\n //RecyclerView suummary category\n summary_category_adapter = new Summary_Category_Adapter(getContext(),getPosts());\n\n // Create a new merge adapter.\n RecyclerViewMergeAdapter mergeAdapter = new RecyclerViewMergeAdapter();\n // Add any number of subadapters to the merge adapter.\n mergeAdapter.addView(viewHeader);\n mergeAdapter.addAdapter(summary_adapter);\n mergeAdapter.addAdapter(summary_category_adapter);\n // Set the merge adapter on the RecyclerView.\n recyclerViewSummary.setAdapter(mergeAdapter);\n\n }", "@Override\n public void onGlobalLayout() {\n\n if (!isFirstLayout) {\n isFirstLayout = true;\n ListAdapter adapter=new MeAdapter(getActivity(),gv.getHeight()/2,resIds,names);\n gv.setAdapter(adapter);\n\n }\n }", "private void configRecyclerView() {\n if(getActivity().getResources().getConfiguration().orientation==1) {\n GridLayoutManager gridLayoutManager = new GridLayoutManager(getActivity(),2);\n gridLayoutManager.setSpanSizeLookup(adapter.obtainGridSpanSizeLookUp(2));\n recyclerView.setLayoutManager(gridLayoutManager);\n } else{\n GridLayoutManager gridLayoutManager = new GridLayoutManager(getActivity(),3);\n gridLayoutManager.setSpanSizeLookup(adapter.obtainGridSpanSizeLookUp(3));\n recyclerView.setLayoutManager(gridLayoutManager);\n }\n //设置没有网络的状态\n recyclerView.setEmptyView(R.layout.view_empty);\n recyclerView.setProgressView(R.layout.view_complete);\n //写刷新事件\n recyclerView.setRefreshListener(new SwipeRefreshLayout.OnRefreshListener() {\n @Override\n public void onRefresh() {\n recyclerView.postDelayed(new Runnable() {\n @Override\n public void run() {\n adapter.clear();\n currentPage = 1;\n page = 1;\n //getData();\n getLocalData();\n }\n }, 1000);\n }\n });\n }", "@Override\n public void generarLinearLayoutV() {\n LinearLayoutManager llm = new LinearLayoutManager(getActivity());\n llm.setOrientation(LinearLayoutManager.VERTICAL);\n\n rvMascotas.setLayoutManager(llm);//le entrego el layout a mi lista\n\n }", "protected void setUpListOfImageRecyclerView() {\n try {\n\n content_layout.removeAllViews();\n RecyclerView recyclerView = new RecyclerView(getApplicationContext());\n recyclerView.setLayoutParams(\n new ViewGroup.LayoutParams(\n // or ViewGroup.LayoutParams.WRAP_CONTENT\n ViewGroup.LayoutParams.MATCH_PARENT,\n // or ViewGroup.LayoutParams.WRAP_CONTENT,\n ViewGroup.LayoutParams.MATCH_PARENT));\n\n LinearLayoutManager layoutManager\n = new LinearLayoutManager(getApplicationContext(), LinearLayoutManager.HORIZONTAL, false);\n\n // set main_logo LinearLayoutManager with HORIZONTAL orientation\n recyclerView.setLayoutManager(layoutManager);\n\n // call the constructor of CustomAdapter to send the reference and data to Adapter\n recyclerView.setAdapter(mSelectedImageAdapter); // set the Adapter to RecyclerView\n\n\n content_layout.addView(recyclerView);\n\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }", "public void layout() {\n TitleLayout ll1 = new TitleLayout(getContext(), sourceIconView, titleTextView);\n\n // All items in ll1 are vertically centered\n ll1.setGravity(Gravity.CENTER_VERTICAL);\n ll1.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.FILL_PARENT,\n LayoutParams.WRAP_CONTENT));\n ll1.addView(sourceIconView);\n ll1.addView(titleTextView);\n\n // Container layout for all the items\n if (mainLayout == null) {\n mainLayout = new LinearLayout(getContext());\n mainLayout.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.FILL_PARENT,\n LayoutParams.WRAP_CONTENT));\n mainLayout.setPadding(adaptSizeToDensity(LEFT_PADDING),\n adaptSizeToDensity(TOP_PADDING),\n adaptSizeToDensity(RIGHT_PADDING),\n adaptSizeToDensity(BOTTOM_PADDING));\n mainLayout.setOrientation(LinearLayout.VERTICAL);\n }\n\n mainLayout.addView(ll1);\n\n if(syncModeSet) {\n mainLayout.addView(syncModeSpinner);\n }\n\n this.addView(mainLayout);\n }", "private void renderer(int rv, ArrayList<ItemBox> list){\n recyclerView = findViewById(rv);\r\n recyclerView.setHasFixedSize(true);\r\n RecyclerView.LayoutManager layoutManager = new LinearLayoutManager(this, LinearLayoutManager.HORIZONTAL, false);\r\n RecyclerView.Adapter adapter = new Itembox_Adapter(list, this, 1);\r\n recyclerView.setLayoutManager(layoutManager);\r\n recyclerView.setAdapter(adapter);\r\n }", "@Override\n public void onLayoutChildren(RecyclerView.Recycler recycler, RecyclerView.State state) {\n try{\n super.onLayoutChildren(recycler, state);\n }catch (IndexOutOfBoundsException e){\n }\n\n }", "private void configureView() {\n if (rotateLoadingView != null)\n rotateLoadingView.start();\n categoryRecyclerView.setHasFixedSize(true);\n categoryRecyclerView.setLayoutManager(new LinearLayoutManager(getActivity()));\n mCategoryAdapter = new CategoryAdapter(this);\n categoryRecyclerView.setVisibility(View.GONE);\n\n }", "private void initViews() {\n inflater = LayoutInflater.from(appContext);\n footView = inflater.inflate(R.layout.item_load_more, null);\n footView.setLayoutParams(new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT));\n mLoadMoreButton = (Button) footView.findViewById(R.id.loadMore_button);\n progressActivity = (ProgressActivity) rootView.findViewById(R.id.shop_progress);\n //Go_UpButton = (ImageView) rootView.findViewById(R.id.float_imageButton);\n\n mHomePullToRefreshListView = (PullToRefreshRecyclerView) rootView.findViewById(R.id.shop_pullToRefreshListView);\n LinearLayoutManager layoutManager = new LinearLayoutManager(appContext);\n//\t\tStaggeredGridLayoutManager SGlayoutManager = new StaggeredGridLayoutManager(1, StaggeredGridLayoutManager.VERTICAL);\n mHomePullToRefreshListView.setLayoutManager(layoutManager);\n mRecViewCartAdapter = new RecViewGoodsSpAdapter(appContext, informationList, R.layout.list_goods);\n mHomePullToRefreshListView.setAdapter(mRecViewCartAdapter);\n mRecViewCartAdapter.addFooterView(footView);\n //mHomePullToRefreshListView.setPullToRefreshOverScrollEnabled(false);\n progressActivity.showLoading();\n loadOnlineInformationData();\n mHomePullToRefreshListView\n .setOnRefreshListener(new OnRefreshListener<RecyclerView>() {\n\n @Override\n public void onRefresh(\n PullToRefreshBase<RecyclerView> refreshView) {\n isEnabledScrollLast = true;\n footView.setVisibility(View.GONE);\n mLoadMoreButton.setVisibility(View.GONE);\n curpageIndex = 1;\n loadOnlineInformationData();\n }\n\n });\n\n // 不显示滚动到顶部/底部的阴影(减少绘制)\n mHomePullToRefreshListView.setOverScrollMode(View.OVER_SCROLL_NEVER);\n mHomePullToRefreshListView.setOnScrollListener(new OnRcvScrollListener() {\n\n @Override\n public void onScrolled(int distanceX, int distanceY) {\n // TODO Auto-generated method stub\n\n }\n\n @Override\n public void onScrollUp() {\n // TODO Auto-generated method stub\n Go_UpButton.setVisibility(View.GONE);\n }\n\n @Override\n public void onScrollDown() {\n // TODO Auto-generated method stub\n Go_UpButton.setVisibility(View.VISIBLE);\n }\n\n @Override\n public void onBottom() {\n // TODO Auto-generated method stub\n if (isEnabledScrollLast) {\n footView.setVisibility(View.VISIBLE);\n loadMoreInformationData();\n }\n }\n });\n Go_UpButton.setOnClickListener(new OnClickListener() {\n\n @Override\n public void onClick(View v) {\n //滚到顶部\n mHomePullToRefreshListView.getRefreshableView().smoothScrollToPosition(0);\n }\n });\n }", "public final void updateRecyclerUI() {\n Collection collection = this.setList;\n if (collection == null || collection.isEmpty()) {\n Collection collection2 = this.notSetList;\n if (collection2 == null || collection2.isEmpty()) {\n LinearLayout linearLayout = (LinearLayout) _$_findCachedViewById(C2723R.C2726id.llSet);\n Intrinsics.checkExpressionValueIsNotNull(linearLayout, \"llSet\");\n linearLayout.setVisibility(8);\n LinearLayout linearLayout2 = (LinearLayout) _$_findCachedViewById(C2723R.C2726id.llNotSet);\n Intrinsics.checkExpressionValueIsNotNull(linearLayout2, \"llNotSet\");\n linearLayout2.setVisibility(8);\n return;\n }\n }\n if (this.setList.size() != 0) {\n LinearLayout linearLayout3 = (LinearLayout) _$_findCachedViewById(C2723R.C2726id.llSet);\n Intrinsics.checkExpressionValueIsNotNull(linearLayout3, \"llSet\");\n linearLayout3.setVisibility(0);\n Collection collection3 = this.notSetList;\n if (collection3 == null || collection3.isEmpty()) {\n View _$_findCachedViewById = _$_findCachedViewById(C2723R.C2726id.separatorSet);\n Intrinsics.checkExpressionValueIsNotNull(_$_findCachedViewById, \"separatorSet\");\n _$_findCachedViewById.setVisibility(8);\n } else {\n View _$_findCachedViewById2 = _$_findCachedViewById(C2723R.C2726id.separatorSet);\n Intrinsics.checkExpressionValueIsNotNull(_$_findCachedViewById2, \"separatorSet\");\n _$_findCachedViewById2.setVisibility(0);\n }\n SetSaleDocAdapter setSaleDocAdapter2 = this.setSaleDocAdapter;\n if (setSaleDocAdapter2 == null) {\n Intrinsics.throwUninitializedPropertyAccessException(\"setSaleDocAdapter\");\n }\n setSaleDocAdapter2.setData(createSetSaleDocData(true));\n SetSaleDocAdapter setSaleDocAdapter3 = this.setSaleDocAdapter;\n if (setSaleDocAdapter3 == null) {\n Intrinsics.throwUninitializedPropertyAccessException(\"setSaleDocAdapter\");\n }\n setSaleDocAdapter3.notifyDataSetChanged();\n }\n if (this.notSetList.size() != 0) {\n LinearLayout linearLayout4 = (LinearLayout) _$_findCachedViewById(C2723R.C2726id.llNotSet);\n Intrinsics.checkExpressionValueIsNotNull(linearLayout4, \"llNotSet\");\n linearLayout4.setVisibility(0);\n NotSetSaleDocAdapter notSetSaleDocAdapter2 = this.notSetSaleDocAdapter;\n if (notSetSaleDocAdapter2 == null) {\n Intrinsics.throwUninitializedPropertyAccessException(\"notSetSaleDocAdapter\");\n }\n notSetSaleDocAdapter2.setData(createSetSaleDocData(false));\n NotSetSaleDocAdapter notSetSaleDocAdapter3 = this.notSetSaleDocAdapter;\n if (notSetSaleDocAdapter3 == null) {\n Intrinsics.throwUninitializedPropertyAccessException(\"notSetSaleDocAdapter\");\n }\n notSetSaleDocAdapter3.notifyDataSetChanged();\n Button button = (Button) _$_findCachedViewById(C2723R.C2726id.btnReviewPayment);\n Intrinsics.checkExpressionValueIsNotNull(button, \"btnReviewPayment\");\n button.setAlpha(0.5f);\n Button button2 = (Button) _$_findCachedViewById(C2723R.C2726id.btnReviewPayment);\n Intrinsics.checkExpressionValueIsNotNull(button2, \"btnReviewPayment\");\n button2.setClickable(false);\n return;\n }\n Button button3 = (Button) _$_findCachedViewById(C2723R.C2726id.btnReviewPayment);\n Intrinsics.checkExpressionValueIsNotNull(button3, \"btnReviewPayment\");\n button3.setAlpha(1.0f);\n Button button4 = (Button) _$_findCachedViewById(C2723R.C2726id.btnReviewPayment);\n Intrinsics.checkExpressionValueIsNotNull(button4, \"btnReviewPayment\");\n button4.setClickable(true);\n }", "private void layout() {\n\n\n _abortButton= makeAbortButton();\n _abortButton.addStyleName(\"download-group-abort\");\n _content.addStyleName(\"download-group-content\");\n _detailUI= new DetailUIInfo[getPartCount(_monItem)];\n layoutDetails();\n }", "private void iniRecyclerView() {\n// RecyclerView recyclerView = (RecyclerView) findViewById(R.id.recycler_view);\n// recyclerView.setHasFixedSize(true);\n recyclerView.setLayoutManager(new LinearLayoutManager(this));\n recyclerView.setAdapter(presAdapter);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_songs, container, false);\n recView=view.findViewById(R.id.recycleId);\n recView.setHasFixedSize(true);\n if(myMusic.size() >1){\n musicAdapter=new MusicAdapter(getContext(),myMusic);\n recView.setAdapter(musicAdapter);\n recView.setLayoutManager(new LinearLayoutManager(getContext(),RecyclerView.VERTICAL,false));\n }\n return view;\n }", "@SuppressWarnings(\"deprecation\")\n\t@Override\n\tprotected void initView() {\n\t\ttitle_tv.setText(\"提现记录\");\n\t\tswiperefreshlayout.setColorSchemeResources(R.color.red1);\n\t\tswiperefreshlayout.setSize(SwipeRefreshLayout.DEFAULT);\n\t\t// 下拉刷新\n\t\tswiperefreshlayout.setOnRefreshListener(new OnRefreshListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onRefresh() {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tcurPage = 1;\n\t\t\t\tmList.clear();\n\t\t\t\tJiaoYiJiLuExec.getInstance().getTiXianJiLuList(mHandler,\n\t\t\t\t\t\tManagerUtils.getInstance().yjtc.getId(), curPage,\n\t\t\t\t\t\tpageSize, NetworkAsyncCommonDefines.GET_TXJL_LIST_S,\n\t\t\t\t\t\tNetworkAsyncCommonDefines.GET_TXJL_LIST_F);\n\t\t\t}\n\t\t});\n\t\t// 分割线\n\t\trecyclerview\n\t\t\t\t.addItemDecoration(new HorizontalDividerItemDecoration.Builder(\n\t\t\t\t\t\tmContext)\n\t\t\t\t\t\t.color(getResources().getColor(R.color.zhuye_bg))\n\t\t\t\t\t\t.size(getResources().getDimensionPixelSize(\n\t\t\t\t\t\t\t\tR.dimen.divider1))\n\t\t\t\t\t\t.margin(getResources().getDimensionPixelSize(\n\t\t\t\t\t\t\t\tR.dimen.leftmargin_no),\n\t\t\t\t\t\t\t\tgetResources().getDimensionPixelSize(\n\t\t\t\t\t\t\t\t\t\tR.dimen.rightmargin_no)).build());\n\t\t// 上拉加载\n\t\trecyclerview.setOnScrollListener(new OnScrollListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onScrollStateChanged(RecyclerView recyclerView,\n\t\t\t\t\tint newState) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tsuper.onScrollStateChanged(recyclerView, newState);\n\t\t\t\tif (newState == RecyclerView.SCROLL_STATE_IDLE\n\t\t\t\t\t\t&& lastVisibleItem + 1 == mTiXianJiLuAdapter\n\t\t\t\t\t\t\t\t.getItemCount()) {\n\t\t\t\t\tswiperefreshlayout.setRefreshing(true);\n\t\t\t\t\tcurPage++;\n\t\t\t\t\tJiaoYiJiLuExec.getInstance().getTiXianJiLuList(mHandler,\n\t\t\t\t\t\t\tManagerUtils.getInstance().yjtc.getId(),\n\t\t\t\t\t\t\tcurPage, pageSize,\n\t\t\t\t\t\t\tNetworkAsyncCommonDefines.GET_TXJL_LIST_S,\n\t\t\t\t\t\t\tNetworkAsyncCommonDefines.GET_TXJL_LIST_F);\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onScrolled(RecyclerView recyclerView, int dx, int dy) {\n\t\t\t\tsuper.onScrolled(recyclerView, dx, dy);\n\t\t\t\tlastVisibleItem = mLinearLayoutManager\n\t\t\t\t\t\t.findLastVisibleItemPosition();\n\t\t\t}\n\t\t});\n\t\tmTiXianJiLuAdapter = new TiXianJiLuAdapter(mContext, mHandler);\n\t\tmLinearLayoutManager = new LinearLayoutManager(mContext);\n\t\trecyclerview.setLayoutManager(mLinearLayoutManager);\n\t\trecyclerview.setAdapter(mTiXianJiLuAdapter);\n\t}", "@Override\n protected void initViews(Bundle savedInstanceState) {\n this.recyclerView = this.findView(R.id.recycler_view);\n this.recyclerView.addItemDecoration(\n new EasyDividerItemDecoration(this, EasyDividerItemDecoration.VERTICAL_LIST));\n\n }", "private void llenaRecyclerView() {\n // De manera temporal muestra datos generados manualmente\n generaDatos();\n adapterInst = new InstitucionRecyclerViewAdapter(ListInstitucionActivity.this, mDatos);\n recyclerView.setAdapter(adapterInst);\n progressBar.setVisibility(View.GONE);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_recipes_list, container, false);\n mRecyclerView = view.findViewById(R.id.recylerView_recipes);\n if (view.findViewById(R.id.layoutActivityMainIsOnTablet) == null)\n mRecyclerView.setLayoutManager(new GridLayoutManager(getActivity().getApplicationContext(), 1));\n else\n mRecyclerView.setLayoutManager(new GridLayoutManager(getActivity().getApplicationContext(), 3));\n\n\n //mRecyclerView.setAdapter(new RecipeAdapter(mRecipes, getActivity(), isShoppingList))\n loadRecipes();\n return view;\n }", "private void initView() {\n\n LayoutInflater inflater = getLayoutInflater();\n final int screenWidth = MyUtils.getScreenMetrics(this).widthPixels;\n final int screenHeight = MyUtils.getScreenMetrics(this).heightPixels;\n for (int i = 0; i < 3; i++) {\n ViewGroup layout = (ViewGroup) inflater.inflate(\n R.layout.content_layout, myHorizontal, false);\n layout.getLayoutParams().width = screenWidth;\n TextView textView = (TextView) layout.findViewById(R.id.title);\n textView.setText(\"page \" + (i + 1));\n layout.setBackgroundColor(Color.rgb(255 / (i + 1), 255 / (i + 1), 0));\n createList(layout);\n myHorizontal.addView(layout);\n }\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View layout = inflater.inflate(R.layout.custom_row, container, false);\n recyclerView = (RecyclerView) layout.findViewById(R.id.rv);\n adapter = new WebCrawlerRecyclerViewAdapter(getActivity(), getData());\n recyclerView.setAdapter(adapter);\n LinearLayoutManager layoutManager = new LinearLayoutManager(getActivity());\n layoutManager.setOrientation(LinearLayoutManager.VERTICAL);\n recyclerView.setLayoutManager(layoutManager);\n return layout;\n\n }", "public void setRecyclerView(){\n recyclerView.setLayoutManager(new LinearLayoutManager(this));\n RealmResults<TodoItemModel> toDoItems = realm.where(TodoItemModel.class).findAllAsync();\n TodoItemAdapter adapter = new TodoItemAdapter(this, toDoItems);\n recyclerView.setHasFixedSize(true);\n recyclerView.addItemDecoration(new SimpleDividerItemDecoration(this));\n recyclerView.setAdapter(adapter);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_main, container, false);\n\n // Declarar y referenciar el RecyclerView que definimos en el XML\n RecyclerView recyclerView = view.findViewById(R.id.recyclerView);\n\n /*\n * Setear el LayoutManager al RecyclerView (recordar que podemos definir distintos tipos de\n * LayoutManager según la forma en la cual queremos mostrar nuestra lista.)\n */\n\n LinearLayoutManager linearLayoutManager = new LinearLayoutManager(getContext(),LinearLayoutManager.VERTICAL, false);\n\n /*\n * Setear el LayoutManager que hayamos elegido al RecyclerView referenciado en el paso 1:\n * recyclerView.setLayoutManager(layoutManager);\n */\n recyclerView.setLayoutManager(linearLayoutManager);\n\n\n // Creo la lista que tiene los items.\n List<ItemLista> itemsDeLista = new ArrayList<>();\n\n\n // cargo la lista con los items\n itemsDeLista.add(new ItemLista(\"Batman\",\"Accion\",R.drawable.batman));\n itemsDeLista.add(new ItemLista(\"Damages\", \"Drama\", R.drawable.damages));\n itemsDeLista.add(new ItemLista(\"Destroyer\", \"Drama\", R.drawable.destroyer));\n itemsDeLista.add(new ItemLista(\"El Juicio\", \"Drama\", R.drawable.eljuicio));\n itemsDeLista.add(new ItemLista(\"Inocente\", \"Drama\", R.drawable.inocente));\n itemsDeLista.add(new ItemLista(\"Intern\", \"Drama\", R.drawable.intern));\n itemsDeLista.add(new ItemLista(\"Jhon Wick 2\", \"Accion\", R.drawable.johnwick2));\n itemsDeLista.add(new ItemLista(\"King Kong\", \"Accion\", R.drawable.kong));\n itemsDeLista.add(new ItemLista(\"La Boda de mi Amigo\", \"Comedia\", R.drawable.labodademi));\n itemsDeLista.add(new ItemLista(\"Prometo\", \"Drama\", R.drawable.prometo));\n itemsDeLista.add(new ItemLista(\"Second\", \"Drama\", R.drawable.second));\n itemsDeLista.add(new ItemLista(\"The Good Doctor\", \"Drama\", R.drawable.thegoogdoctor));\n\n /*\n * Crear un Adapter, utilizando la clase definida anteriormente.\n * ItemListaAdapter itemListaAdapter = new ItemAdapter(itemsDeLista);\n *\n */\n ItemListaAdapter itemListaAdapter = new ItemListaAdapter(itemsDeLista);\n\n // Setear al RecyclerView el adapter creado.\n recyclerView.setAdapter(itemListaAdapter);\n\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.classifieds_liting, null);\n rv = (RecyclerView) v.findViewById(R.id.rv);\n id_list = new ArrayList<>();\n swipe_refresh = (SwipeRefreshLayout) v.findViewById(R.id.swipe);\n final LinearLayoutManager layoutManager = new LinearLayoutManager(getActivity());\n// layoutManager.setStackFromEnd(true);\n layoutManager.setOrientation(LinearLayout.VERTICAL);\n rv.setLayoutManager(layoutManager);\n cm = new Common_Methods();\n Cat_id = getArguments().getString(\"Cat_id\");\n Section_id = getArguments().getString(\"Section_id\");\n list = new ArrayList<>();\n Recycler_view_adaper = new Recycler_View();\n ItemOffsetDecoration itemDecoration = new ItemOffsetDecoration(getActivity(), R.dimen.column_width);\n rv.addItemDecoration(itemDecoration);\n Load_Data(cm.Serv_Address + \"Pagination?\", \"0\", false);\n swipe_refresh.setColorSchemeResources(android.R.color.holo_blue_bright,\n android.R.color.holo_green_light,\n android.R.color.holo_orange_light,\n android.R.color.holo_red_light);\n swipe_refresh.measure(View.MEASURED_SIZE_MASK, View.MEASURED_HEIGHT_STATE_SHIFT);\n swipe_refresh.setEnabled(true);\n swipe_refresh.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() {\n @Override\n public void onRefresh() {\n// Toast.makeText(getActivity(), \"loading\", Toast.LENGTH_SHORT).show();\n// Load_Data(cm.Serv_Address + \"Pagination?\", last_advt_id, true);\n }\n });\n rv.addOnScrollListener(new RecyclerView.OnScrollListener() {\n @Override\n public void onScrollStateChanged(RecyclerView recyclerView, int newState) {\n super.onScrollStateChanged(recyclerView, newState);\n\n item_count = layoutManager.getItemCount();\n last_visible_item_count = layoutManager.findLastVisibleItemPosition();\n if (item_count == (last_visible_item_count + 1)) {\n if (!swipe_refresh.isRefreshing()) {\n swipe_refresh.post(new Runnable() {\n @Override\n public void run() {\n swipe_refresh.setRefreshing(true);\n Load_Data(cm.Serv_Address + \"Pagination?\", last_advt_id, true);\n }\n });\n }\n\n\n }\n\n\n }\n\n @Override\n public void onScrolled(RecyclerView recyclerView, int dx, int dy) {\n super.onScrolled(recyclerView, dx, dy);\n }\n });\n\n return v;\n }", "private void initViews(View view) {\n\n tvEmptyView = view.findViewById(R.id.tv_empty_view);\n swipeRefreshLayout = (SwipeRefreshLayout) view.findViewById(R.id.swipe_refresh_layout);\n\n contentLayout = view.findViewById(R.id.content_layout);\n\n RecyclerView.LayoutManager manager = new LinearLayoutManager(view.getContext());\n RecyclerView mRecyclerView = (RecyclerView) contentLayout;\n mRecyclerView.setLayoutManager(manager);\n\n String sportsType = getRequestParameters().get(ScoresContentHandler.PARAM_SPORTS_TYPE);\n mAdapter = new BroadcastListAdapter(sportsType, commentaries, view.getContext());\n mRecyclerView.setAdapter(mAdapter);\n mAdapter.notifyDataSetChanged();\n\n swipeRefreshLayout.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() {\n\n @Override\n public void onRefresh() {\n requestContent();\n }\n\n });\n }", "@Override\n protected void initView(View view) {\n LinearLayoutManager layoutManager = new LinearLayoutManager(getContext());\n layoutManager.setOrientation(LinearLayoutManager.VERTICAL);\n recyclerView.addItemDecoration(new DividerItemDecoration(getContext(), DividerItemDecoration.VERTICAL));\n recyclerView.setLayoutManager(layoutManager);\n recyclerView.setPullRefreshEnabled(true);//下拉刷新\n //是否开启上拉加载功能\n recyclerView.setLoadingMoreEnabled(true);\n //开启刷新回调\n recyclerView.displayLastRefreshTime(true);\n //停止刷新\n recyclerView.setPullToRefreshListener(new PullToRefreshListener() {\n @Override\n public void onRefresh() {\n recyclerView.postDelayed(new Runnable() {\n @Override\n public void run() {\n recyclerView.setRefreshComplete();\n mList.clear();\n loadData();\n\n }\n }, 2000);\n }\n\n @Override\n public void onLoadMore() {\n recyclerView.postDelayed(new Runnable() {\n @Override\n public void run() {\n recyclerView.setLoadMoreComplete();\n Index++;\n loadData();\n\n }\n }, 2000);\n }\n });\n\n\n\n }", "public void load_grid(){\n RecyclerView moduleRecycler = (RecyclerView) findViewById(R.id.semestre_recycler);\n EtudiantSemestreRecycler adapter = new EtudiantSemestreRecycler(this, semestres);\n moduleRecycler.setAdapter(adapter);\n\n LinearLayoutManager manager = new LinearLayoutManager(this);\n manager.setOrientation(RecyclerView.VERTICAL);\n moduleRecycler.setLayoutManager(manager);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_gift_list, container, false);\n realm = Realm.getDefaultInstance();\n refreshLayout = (SmartRefreshLayout) view.findViewById(R.id.refreshLayout);\n gifts_list = (RecyclerView) view.findViewById(R.id.gifts_list);\n no_data_layout = (RelativeLayout) view.findViewById(R.id.no_data_layout);\n image = (ImageView) view.findViewById(R.id.image);\n image.setImageResource(R.drawable.gift_de);\n realmController = new RealmController(realm);\n\n refreshLayout.autoRefresh();\n refreshLayout.setOnRefreshListener(new OnRefreshListener() {\n @Override\n public void onRefresh(RefreshLayout refreshlayout) {\n getGiftData();\n\n }\n });\n\n return view;\n\n }", "private void prepareRecyclerView() {\n equipmentInventoryListAdapter = new EquipmentInventoryListAdapter_v2(equipmentInventoryAvailableCallback, equipmentInventoryMissingCallback);\n GridLayoutManager layoutManager = new GridLayoutManager(getContext(), 2);\n binding.equipmentInventoryList.setLayoutManager(layoutManager);\n binding.equipmentInventoryList.setAdapter(equipmentInventoryListAdapter);\n //binding.equipmentInventoryList.addItemDecoration(new DividerItemDecoration(binding.equipmentInventoryList.getContext(), DividerItemDecoration.HORIZONTAL));\n }", "public void configs() {\n adaptadorRecyclerView = new AdaptadorRecyclerView(new ArrayList<>(), this);//configuramos el adaptador; necesitamos implementar interfaz OnItemClickListener y sobreescribir sus metodos\n recyclerView.setLayoutManager(new LinearLayoutManager(this));//configuramos la recyclerView\n recyclerView.setAdapter(adaptadorRecyclerView);\n }", "private void initViews() {\n\n if (blockListAdapter != null) {\n blockListAdapter = null;\n }\n\n swipeRefreshLayout.setColorSchemeResources(\n R.color.witkey_orange,\n R.color.witkey_orange,\n R.color.witkey_orange);\n\n swipeRefreshLayout.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() {\n @Override\n public void onRefresh() {\n firstNetworkCall();\n }\n });\n\n rv_swipe_refresh_tv.setColorSchemeResources(\n R.color.witkey_orange,\n R.color.witkey_orange,\n R.color.witkey_orange);\n\n rv_swipe_refresh_tv.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() {\n @Override\n public void onRefresh() {\n firstNetworkCall();\n }\n });\n\n noResultRefreshTextView.setOnClickListener(this);\n\n if (swipeRefreshLayout != null) {\n swipeRefreshLayout.post(new Runnable() {\n @Override\n public void run() {\n swipeRefreshLayout.setRefreshing(true);\n firstNetworkCall();\n }\n });\n }\n\n btnBack.setOnClickListener(this);\n }", "@Override\r\n\tprotected void initLayout() {\n\t\tsuper.initLayout();\r\n\t\t\r\n\t\tiv = (ImageView) findViewById(R.id.iv);\r\n\t\t\r\n\t\tfindViewById(R.id.button1).setOnClickListener(new OnClickListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\tDeviceTool.recycleDrawable(iv);\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n//\t\tiv.setBackgroundResource(R.drawable.customer_introduction1);\r\n\t\tiv.setImageResource(R.drawable.customer_introduction1);\r\n//\t\tDrawable drawable = getResources().getDrawable(R.drawable.customer_introduction1);\r\n//\t\tBitmapDrawable bd = ((BitmapDrawable) drawable);\r\n//\t\tif(bd != null) {\r\n//\t\t\tbd.setCallback(iv);\r\n//\t\t\tBitmap bm = bd.getBitmap();\r\n//\t\t\t\r\n//\t\t\tif(bm != null) {\r\n//\t\t\t\tSystem.out.println(\"bm.isRecycled() == \" + bm.isRecycled());\r\n//\t\t\t}\r\n//\t\t}\r\n//\t\tiv.setImageDrawable(drawable);\r\n\t\t\r\n\t\tString url = \"http://www.baidu.com百度\";\r\n\t\tMatcher urlMatcher = URL_PATTERN.matcher(url);\r\n\t\twhile (urlMatcher.find()) {\r\n\t\t\tDebugTool.info(tag, \"找到地址:\" + urlMatcher.group(0));\r\n\t\t}\r\n\t\t\r\n\t}", "private void setLayoutsFromMood() {\n\n for (int i = 0; i < historicList.size(); i++) {\n RelativeLayout layout = layoutsList.get(i);\n int mPosition = historicList.get(i).getPosition();\n if (mPosition > 4) {\n mPosition = 4;\n } else if (mPosition < 0) {\n mPosition = 0;\n }\n layout.setBackgroundColor(ContextCompat.getColor(this, historyListMood.get(mPosition).getBackgroundColor()));\n layout.setVisibility(View.VISIBLE);\n\n }\n\n\n }", "private void configureRecyclerView(){\n this.postAdapter = new PostAdapter(generateOptionsForAdapter(PostHelper.getAllMyPosts(BaseActivity.getUid())),\n Glide.with(this), this,false, false);\n\n\n recyclerView.setLayoutManager(new LinearLayoutManager(getContext()));\n recyclerView.setAdapter(this.postAdapter);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n\n super.onCreate(savedInstanceState);\n final View view = inflater.inflate(R.layout.wishlist_layout, container, false);\n layoutManager = new GridLayoutManager(getContext(), 2);\n Log.d(\"wishlist\",MainActivity.wishListItems.toString());\n JSONObject x=MainActivity.wishListItems;\n Iterator keys = x.keys();\n while (keys.hasNext()) {\n Object key = keys.next();\n JSONObject value = null;\n try {\n value = x.getJSONObject((String) key);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n Allresults.put(value);\n }\n\n\n if(Allresults!=null){\n View nodata = view.findViewById(R.id.nodata);\n nodata.setVisibility(View.GONE);\n View data = view.findViewById(R.id.data);\n data.setVisibility(View.VISIBLE);\n recyclerView = view.findViewById(R.id.recyclerView);\n recyclerView.setHasFixedSize(true);\n recyclerView.setLayoutManager(layoutManager);\n adapter = new SearchResultAdapter(Allresults);\n //adapter1 = new SearchResultAdapter(Allresults);\n recyclerView.setAdapter(adapter);\n }\n else{\n View nodata = view.findViewById(R.id.nodata);\n nodata.setVisibility(View.VISIBLE);\n View data = view.findViewById(R.id.data);\n data.setVisibility(View.GONE);\n }\n\n return view;\n }", "private void setupViews() {\n this.rvArticles = (RecyclerView) findViewById(R.id.rvArticles);\n this.articles = new ArrayList<>();\n this.articleArrayAdapter = new ArticleArrayAdapter(this, this.articles);\n this.rvArticles.setAdapter(this.articleArrayAdapter);\n StaggeredGridLayoutManager gridLayoutManager =\n new StaggeredGridLayoutManager(GRID_NUM_COLUMNS,\n StaggeredGridLayoutManager.VERTICAL);\n this.rvArticles.setLayoutManager(gridLayoutManager);\n ItemClickSupport.addTo(this.rvArticles).setOnItemClickListener(\n (recyclerView, position, v) -> launchArticleView(position)\n );\n SpacesItemDecoration decoration = new SpacesItemDecoration(GRID_SPACE_SIZE);\n this.rvArticles.addItemDecoration(decoration);\n this.rvArticles.addOnScrollListener(\n new EndlessRecyclerViewScrollListener(gridLayoutManager) {\n @Override\n public void onLoadMore(int page, int totalItemsCount) {\n articleSearch(searchView.getQuery().toString(), page);\n }\n });\n }", "private void configureRecyclerView(){\r\n // - Reset list\r\n this.users = new ArrayList<>();\r\n // - Create adapter passing the list of Restaurants\r\n this.mCoworkerAdapter = new CoWorkerAdapter(this.users, Glide.with(this), true);\r\n // - Attach the adapter to the recyclerview to populate items\r\n this.recyclerView.setAdapter(this.mCoworkerAdapter);\r\n // - Set layout manager to position the items\r\n this.recyclerView.setLayoutManager(new LinearLayoutManager(RestaurantDetailActivity.this));\r\n }", "private void initRecyclerview() {\n RecyclerView.LayoutManager layoutManager = new LinearLayoutManager(this);\n recyclerView.setLayoutManager(layoutManager);\n\n mAdapter = new MovieAdapter(this);\n recyclerView.setAdapter(mAdapter);\n }", "private void initUI(){\n\t\tfooterView = getLayoutInflater().inflate(R.layout.ent_refresh_footer,null);\n\t\tlistView = (ListView) findViewById(R.id.check_list);\n\t\tlistView.addFooterView(footerView);\n\t\tfooterView.setVisibility(View.GONE);\n\t\tlistView.setOnScrollListener(new ScrollListener());\n\t\tlistView.setOnItemClickListener(this);\n\t\tbtn_cricle_edit = (ImageButton) findViewById(R.id.btn_cricle_edit);\n\t\tbtn_cricle_option = (ImageButton) findViewById(R.id.btn_cricle_option);\n\t\tbtn_cricle_edit.setVisibility(View.INVISIBLE);\n\t\tbtn_cricle_option.setVisibility(View.GONE);\n\t\tactivity_bar_title = (TextView) findViewById(R.id.activity_bar_title);\n\t\tactivity_bar_title.setText(\"我的申请记录\");\n\t\tpbHelper = new ProgressBarHelper(this, findViewById(R.id.ll_data_loading));\n\t}", "@Override\n public void layout() {\n // TODO: not implemented\n }", "public void updateList(){\r\n preyFragmentAdapter=new PreyFragmentAdapter(CPreyArrayList,this);\r\n recyclerView.setAdapter(preyFragmentAdapter);\r\n LinearLayoutManager a=new LinearLayoutManager(this.getContext());\r\n recyclerView.setLayoutManager(a);\r\n\r\n\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View layout = inflater.inflate(R.layout.fragment_icons_list_layout, container, false);\n mRecyclerView = layout.findViewById(R.id.fragment_list_recycler_view);\n mListener.setRecyclerViewComponents(mRecyclerView,1);\n mRootView = layout;\n\n return layout;\n }", "private void layoutAttachedAndAppearingViews(RecyclerView.Recycler recycler,\r\n RecyclerView.State state){\r\n\r\n // There are no removed items out of the top border.\r\n // So we just layout from the firstAttachedItemPosition.\r\n // We do the pre layout and calculate the layout params for the real layout.\r\n if(firstChangedPosition >= firstAttachedItemPosition){\r\n // Store the layout parameters.\r\n int firstAttachedItemPositionTemp = firstAttachedItemPosition;\r\n int lastAttachedItemPositionTemp = lastAttachedItemPosition;\r\n int[] spanTopTemp = Arrays.copyOf(spanTop, mSpanCount);\r\n int[] spanBottomTemp = Arrays.copyOf(spanBottom, mSpanCount);\r\n\r\n topBorder = getPaddingTop();\r\n bottomBorder = getHeight() - getPaddingBottom();\r\n spanBottom = Arrays.copyOf(spanTop, mSpanCount);\r\n updateSpanBottomParameters();\r\n\r\n detachAndScrapAttachedViews(recycler);\r\n\r\n mCurrentPosition = firstAttachedItemPosition;\r\n lastAttachedItemPosition = firstAttachedItemPosition;\r\n\r\n // Set the fake params.\r\n fakeSpanBottomMin = spanBottomMin;\r\n fakeSpanBottomMax = spanBottomMax;\r\n fakeCurrentPosition = mCurrentPosition;\r\n fakeFirstAttachedItemPosition = firstAttachedItemPosition;\r\n fakeFirstOneEmptyBottomSpanIndex = firstOneEmptyBottomSpanIndex;\r\n fakeFirstTwoEmptyBottomSpanIndex = firstTwoEmptyBottomSpanIndex;\r\n fakeSpanTop = Arrays.copyOf(spanTop, mSpanCount);\r\n fakeSpanBottom = Arrays.copyOf(spanBottom, mSpanCount);\r\n\r\n // Lay out current attached views and appearing views.\r\n fillGridForPreLayout(recycler, state);\r\n\r\n // Restore the layout parameters.\r\n firstAttachedItemPosition = firstAttachedItemPositionTemp;\r\n lastAttachedItemPosition = lastAttachedItemPositionTemp;\r\n spanTop = Arrays.copyOf(spanTopTemp, mSpanCount);\r\n spanBottom = Arrays.copyOf(spanBottomTemp, mSpanCount);\r\n updateSpanTopParameters();\r\n updateSpanBottomParameters();\r\n }else{ // There are removed items out of the top border.\r\n\r\n // Calculate the spanTop begin with the firstChangedPosition\r\n // and update layout parameters.\r\n topBorder = getPaddingTop() - scrollOffset;\r\n Arrays.fill(spanTop, topBorder);\r\n for (int i = 0; i < firstChangedPosition; i++) {\r\n for (int j = 0; j < itemLayoutWidthCache.get(i); j++) {\r\n int spanIndex = itemOccupiedStartSpan.get(i) + j;\r\n spanTop[spanIndex] += itemLayoutHeightCache.get(i) * sizePerSpan;\r\n }\r\n }\r\n updateSpanTopParameters();\r\n bottomBorder = getHeight() - getPaddingBottom();\r\n spanBottom = Arrays.copyOf(spanTop, mSpanCount);\r\n updateSpanBottomParameters();\r\n mCurrentPosition = firstChangedPosition;\r\n // Fill from the spanTop until bottomBorder.\r\n // Note that we just lay out attached views and appearing views.\r\n // The firstAttachedItemPosition may change,\r\n // set it as -1 and update it during the layout\r\n firstAttachedItemPosition = -1;\r\n lastAttachedItemPosition = -1;\r\n\r\n detachAndScrapAttachedViews(recycler);\r\n\r\n // Set the fake params.\r\n fakeSpanBottomMin = spanBottomMin;\r\n fakeSpanBottomMax = spanBottomMax;\r\n fakeCurrentPosition = mCurrentPosition;\r\n fakeFirstAttachedItemPosition = firstAttachedItemPosition;\r\n fakeFirstOneEmptyBottomSpanIndex = firstOneEmptyBottomSpanIndex;\r\n fakeFirstTwoEmptyBottomSpanIndex = firstTwoEmptyBottomSpanIndex;\r\n fakeSpanTop = Arrays.copyOf(spanTop, mSpanCount);\r\n fakeSpanBottom = Arrays.copyOf(spanBottom, mSpanCount);\r\n\r\n // Lay out current attached views and appearing views.\r\n fillGridForPreLayout(recycler, state);\r\n\r\n // Restore the layout parameters.\r\n firstAttachedItemPosition = fakeFirstAttachedItemPosition;\r\n spanTop = Arrays.copyOf(fakeSpanTop, mSpanCount);\r\n spanBottom = Arrays.copyOf(fakeSpanBottom, mSpanCount);\r\n updateSpanTopParameters();\r\n updateSpanBottomParameters();\r\n }\r\n\r\n }", "@Override\n public int getLayoutRes() {\n return R.layout.find_donor_recyclerview_item;\n }", "private void setupBasketList(){\n LinearLayoutManager linearLayoutManager = new LinearLayoutManager(getContext());\n linearLayoutManager.setOrientation(RecyclerView.VERTICAL);\n binding.recyclerViewVirtualBasket.setLayoutManager(linearLayoutManager);\n binding.recyclerViewVirtualBasket.setHasFixedSize(true);\n basketListAdapter = new BasketListAdapter();\n binding.recyclerViewVirtualBasket.setAdapter(basketListAdapter);\n binding.recyclerViewVirtualBasket.setItemAnimator(new DefaultItemAnimator());\n bindSwipeToDelete();\n }", "@Override\n public int itemLayoutRes()\n {\n return R.layout.recommendlist_item;\n }", "private void initView() {\n mProgressDialog = new ProgressDialog(this);\n mProgressDialog.setIndeterminate(true);\n mProgressDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);\n mProgressDialog.setMessage(\"Loading...\");\n mProgressDialog.show();\n\n mAvatar = (SimpleDraweeView) findViewById(R.id.sdvAvatar) ;\n mAvatar.setImageURI(mKid.mAvatar);\n mAvatar.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Intent intent = new Intent(DiaryListActivity.this,KidDetailActivity.class);\n intent.putExtra(\"model\",mKid);\n startActivity(intent);\n }\n });\n mName = (TextView) findViewById(R.id.tvName);\n mName.setText(mKid.mRealname);\n\n // use the recycler view\n mRecyclerView = (RecyclerView) findViewById(R.id.rvContent);\n // use this setting to improve performance if you know that changes\n // in content do not change the layout size of the RecyclerView\n // mRecyclerView.setHasFixedSize(true);\n\n // use a linear layout manager\n mLayoutManager = new LinearLayoutManager(this);\n //mLayoutManager = new GridLayoutManager(this,2);\n mRecyclerView.setLayoutManager(mLayoutManager);\n\n // specify an adapter (see also next example)\n mAdapter = new ModelRecyclerAdapter(this,mDataset);\n mRecyclerView.setAdapter(mAdapter);\n\n // Swipe refresh listener\n mRefreshLayout = (SwipeRefreshLayout)findViewById(R.id.layout_swipe_refresh);\n mRefreshLayout.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener(){\n public void onRefresh() {\n // 加载更多数据\n if(mQuery.hasMore()){\n //mConnection.Query(mQuery);\n mQuery.all();\n }else {\n // 提示没有更多数可以加载\n Toast.makeText(DiaryListActivity.this, getString(R.string.no_more_data), Toast.LENGTH_LONG).show();\n mRefreshLayout.setRefreshing(false);\n }\n\n }\n });\n\n // RecyclerView item 点击监听\n mRecyclerView.addOnItemTouchListener(new RecyclerViewClickListener(this, mRecyclerView, new RecyclerViewClickListener.OnItemClickListener() {\n @Override\n public void onItemClick(View view, int position) {\n Diary diary = (Diary) mDataset.get(position);\n Intent intent = new Intent(DiaryListActivity.this,WebViewActivity.class);\n intent.putExtra(\"url\",diary.getUrl());\n Log.d(TAG,diary.getUrl());\n startActivity(intent);\n }\n\n @Override\n public void onItemLongClick(View view, int position) {\n //Toast.makeText(mContext,\"Click \"+mDataset.get(position).mContent,Toast.LENGTH_SHORT).show();\n }\n }));\n }", "private void setDataInRecyclerView(){\n KorisniciAdapter adapter = new KorisniciAdapter(this, korisniciList);\n recyclerView.setAdapter(adapter); // set the Adapter to RecyclerView\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view= inflater.inflate(R.layout.fragment_news_tab, container, false);\n\n arrayList2=new ArrayList<>();\n arrayList2.add(\"Rahul\");\n arrayList2.add(\"danussh\");\n arrayList2.add(\"ds\");\n arrayList2.add(\"manish\");\n arrayList2.add(\"sreekanth\");\n arrayList2.add(\"sagar\");\n arrayList2.add(\"gowtham\");\n arrayList2.add(\"sandeep\");\n\n RecyclerView recyclerView=view.findViewById(R.id.recyclerview);\n Recycleadapter recycleadapter=new Recycleadapter(getContext(),arrayList2);\n LinearLayoutManager linearLayoutManager=new LinearLayoutManager(getContext());\n recyclerView.setLayoutManager(linearLayoutManager);\n\n recyclerView.setAdapter(recycleadapter);\n return view;\n }", "protected abstract void iniciarLayout();", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\tView v = inflater.inflate(R.layout.activity_menuutama_wp, null);\r\n\r\n\t\tsh = getActivity().getSharedPreferences(Parameter_Collections.SH_NAME, Context.MODE_PRIVATE);\r\n\r\n\t\trv = (RecyclerView)v.findViewById(R.id.recycler_view);\r\n\t\tlayoutManager = new GridLayoutManager(getActivity(), 1);\r\n\t\trv.setLayoutManager(layoutManager);\t\t\r\n\t\tadapter = new Olx_RecyclerAdapter_MenuUtama(getActivity(), getActivity());\r\n\t\trv.setAdapter(adapter);\r\n\t\t\r\n\t\treturn v;\r\n\t}", "public void setSoundBoardLayout() {\n\n soundBoardList = new SoundBoardListType();\n soundBoardList = db.getAllSoundboards();\n soundBoardNames = new ArrayList();\n\n for (int i = 0; i < soundBoardList.getSoundBoardList().size(); i++) {\n soundBoardNames.add(soundBoardList.getSoundBoardList().get(i).getSoundBoardName());\n }\n\n soundBoardNames.add(\"+\");\n setContentView(R.layout.main_grid);\n GridView gridView = (GridView) findViewById(R.id.soundboardgrid);\n\n soundBoardListAdapter = new ArrayAdapter<String>(this, R.layout.main_sbrowtext, soundBoardNames);\n gridView.setAdapter(soundBoardListAdapter);\n gridView.setOnItemClickListener(openSoundBoardListener);\n gridView.setOnItemLongClickListener(editSoundBoardListener);\n gridView.setBackgroundColor(Color.BLACK);\n gridView.setStretchMode(GridView.STRETCH_COLUMN_WIDTH);\n gridView.getSelector().setAlpha(100);\n\n }", "private void initializeViews() {\n list_latest_feeds = (RecyclerView) mView.findViewById(R.id.list_latest_feeds);\n swipeRefreshLayout = (SwipeRefreshLayout) mView.findViewById(R.id.swipeRefreshLayout);\n disabler = new RecyclerViewDisabler();\n swipeRefreshLayout.setOnRefreshListener(this);\n InterfaceListener.setOnDeleteListener(LatestFragment.this);\n\n initRecyclerView();\n }", "protected void initViews() {\n mViewList.setLayoutManager(initLayoutManager());\n\n\n mAdapter = initAdapter();\n mAdapter.init(mViewList, isPageEnabled());\n mViewList.setItemAnimator(new DefaultItemAnimator());\n mViewList.addItemDecoration(new DividerItemDecoration(mViewList.getContext(), LinearLayoutManager.VERTICAL));\n // mEmptyTips = (TextView) findViewById(R.id.empty_propt);\n mEmptyTips.setOnClickListener(new View.OnClickListener() {\n\n @Override\n public void onClick(View v) {\n\n if (CUtil.isNetworkConnected(mViewList.getContext())) {\n mSwipeRefreshLayout.setRefreshing(true);\n requestData(0, false);\n } else {\n// Toast.makeText(mTitleView.getContext(), R.string.network_not_connection, Toast.LENGTH_SHORT).show();\n showToast(getResources().getString(R.string.network_not_connection));\n }\n\n }\n });\n\n mAdapter.setPagingableListener(new BasePageAdapter.Pagingable() {\n\n @Override\n public void onLoadMoreItems() {\n // TODO Auto-generated method stub\n if (mAdapter.hasMoreItems()) {\n requestData(mAdapter.getItems() == null ? 0 : mAdapter.getItems().size(), false);\n } else {\n mAdapter.onFinishLoading(false);\n }\n }\n });\n\n // TitleBarMovableTouchListener touchListener = new\n // TitleBarMovableTouchListener(this.getActivity().findViewById(R.id.activity_title));\n // mViewList.setOnTouchListener(touchListener);\n mSwipeRefreshLayout = (SwipeRefreshLayout) findViewById(R.id.swipe_refresh_widget);\n mSwipeRefreshLayout.setOnRefreshListener(this);\n mSwipeRefreshLayout.setEnabled(isSwipeRefreshLayoutEnabled());\n mSwipeRefreshLayout.setColorSchemeResources(R.color.swipe_refrsh_color1, R.color.swipe_refrsh_color2,\n R.color.swipe_refrsh_color3, R.color.swipe_refrsh_color4);\n mViewList.setAdapter(mAdapter);\n mHandler.sendEmptyMessageDelayed(MSG_REQUEST_DATA, FIRST_INIT_DELAY);\n\n }", "private void setUpBookingRecycler() {\n LinearLayoutManager linearLayoutManager1 = new LinearLayoutManager(mThis);\n linearLayoutManager1.setOrientation(LinearLayoutManager.VERTICAL);\n mBinding.requestRv.setLayoutManager(linearLayoutManager1);\n\n }", "public void initRecyclerView() {\n rvTodos = (RecyclerView) findViewById(R.id.rvTodos);\n\n // Create adapter passing in the sample user data\n TodoAdapter adapter = new TodoAdapter(todos, this);\n // Attach the adapter to the recyclerview to populate items\n rvTodos.setAdapter(adapter);\n // Set layout manager to position the items\n LinearLayoutManager mLayoutManager = new LinearLayoutManager(this);\n mLayoutManager.setReverseLayout(true);\n mLayoutManager.setStackFromEnd(true);\n rvTodos.setLayoutManager(mLayoutManager);\n // That's all!\n }", "private void setAdapter() {\n resultsRv.setLayoutManager(new LinearLayoutManager(getActivity()));\n resultsRv.setHasFixedSize(true);\n resultsRv.setItemAnimator(new DefaultItemAnimator());\n resultsRv.setAdapter(resultsListAdapter);\n }", "private void recyclerViewOrientation()\n {\n recyclerView = (RecyclerView) findViewById(R.id.recycleViewerId);\n recyclerView.removeAllViewsInLayout();\n\n if(exists == false) {\n baseMovieList = new ArrayList<>();\n movieList = new ArrayList<>();\n exists = true;\n }\n movieAdapter = new MovieAdapter(this, movieList);\n if(userId != null)\n movieAdapter.setUser(userId);\n\n if(getActivity().getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT)\n {\n recyclerView.setLayoutManager(new GridLayoutManager(this, 1));\n } else\n recyclerView.setLayoutManager(new GridLayoutManager(this, 2));\n movieAdapter.setUser(userId);\n recyclerView.setItemAnimator(new DefaultItemAnimator());\n recyclerView.setAdapter(movieAdapter);\n movieAdapter.notifyDataSetChanged();\n getMovies();\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_edit_bebida, container, false);\n\n reciclador =(RecyclerView)view.findViewById(R.id.reciclador);\n layout = new GridLayoutManager(getActivity(),2);\n reciclador.setLayoutManager(layout);\n adaptador = new AdaptadorEditBebida(getContext(),getArguments().getInt(\"TIPO\"));\n Principal ma = (Principal) getActivity();\n // 0 nombre de producto\n // 1 Precio del producto\n // 2 cantidad del producto\n // 3 imagen de producto\n Cursor c;\n if(getArguments().getInt(\"TIPO\")==1){\n c = ma.datos.getCursorQuery(\"SELECT producto.nombre, producto.precio, producto.cantidad,producto.imagen,producto.id \" +\n \"FROM producto\");\n }else if(getArguments().getInt(\"TIPO\")==2){\n c = ma.datos.getCursorQuery(\"SELECT insumo.nombre, insumo.cantidad,insumo.imagen,insumo.id \" +\n \"FROM insumo\");\n }else {\n c = null;\n }\n\n adaptador.swapCursor(c);\n reciclador.setAdapter(adaptador);\n return view;\n }", "@Override\n protected void loadViewLayout() {\n setContentView(R.layout.ui_imgs_graffit);\n }", "@Override\n protected int getNormalLayoutResId() {\n return itemCommonBinder.layout;\n }", "private void setupRecyclerView() {\n recyclerView.setRecycledViewPool(recycledViewPool);\n\n // We are using a multi span grid to allow two columns of buttons. To set this up we need\n // to set our span count on the controller and then get the span size lookup object from\n // the controller. This look up object will delegate span size lookups to each model.\n controller.setSpanCount(SPAN_COUNT);\n// GridLayoutManager gridLayoutManager = new GridLayoutManager(this.getContext(),SPAN_COUNT);\n StaggeredGridLayoutManager gridLayoutManager = new StaggeredGridLayoutManager(SPAN_COUNT, StaggeredGridLayoutManager.VERTICAL);\n// gridLayoutManager.setSpanSizeLookup(controller.getSpanSizeLookup());\n recyclerView.setLayoutManager(gridLayoutManager);\n\n recyclerView.setHasFixedSize(true);\n// recyclerView.addItemDecoration(new VerticalGridCardSpacingDecoration());\n recyclerView.setItemAnimator(new SampleItemAnimator());\n recyclerView.setAdapter(controller.getAdapter());\n }", "private void prepareProductImagesLayout(View view) {\n productImagesRecycler = (RecyclerView) view.findViewById(R.id.product_images_recycler_view);\n LinearLayoutManager linearLayoutManager = new LinearLayoutManager(getActivity(), LinearLayoutManager.HORIZONTAL, false);\n productImagesRecycler.setLayoutManager(linearLayoutManager);\n productImagesAdapter = new ProductImagesRecyclerAdapter(getActivity(), new ProductImagesRecyclerInterface() {\n @Override\n public void onImageSelected(View v, int position) {\n ProductImagesDialogFragment imagesDialog = ProductImagesDialogFragment.newInstance(productImagesUrls, position);\n if (imagesDialog != null)\n imagesDialog.show(getFragmentManager(), ProductImagesDialogFragment.class.getSimpleName());\n else {\n Timber.e(\"%s Called with empty image list\", ProductImagesDialogFragment.class.getSimpleName());\n }\n }\n });\n productImagesRecycler.setAdapter(productImagesAdapter);\n\n ViewGroup.LayoutParams params = productImagesRecycler.getLayoutParams();\n DisplayMetrics dm = getActivity().getResources().getDisplayMetrics();\n int densityDpi = dm.densityDpi;\n\n // For small screen even smaller images.\n if (densityDpi <= DisplayMetrics.DENSITY_MEDIUM) {\n params.height = (int) (dm.heightPixels * 0.4);\n } else {\n params.height = (int) (dm.heightPixels * 0.48);\n }\n\n // Prepare related products\n RecyclerView relatedProductsRecycler = (RecyclerView) view.findViewById(R.id.product_recommended_images_recycler);\n relatedProductsRecycler.setLayoutManager(new LinearLayoutManager(getActivity(), LinearLayoutManager.HORIZONTAL, false));\n relatedProductsRecycler.addItemDecoration(new RecyclerMarginDecorator(getContext(), RecyclerMarginDecorator.ORIENTATION.HORIZONTAL));\n relatedProductsAdapter = new RelatedProductsRecyclerAdapter(getActivity(), new RelatedProductsRecyclerInterface() {\n @Override\n public void onRelatedProductSelected(View v, int position, Product product) {\n if (product != null && getActivity() instanceof MainActivity) {\n ((MainActivity) getActivity()).onProductSelected(product.getProduct_id());\n }\n }\n\n });\n relatedProductsRecycler.setAdapter(relatedProductsAdapter);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n v = inflater.inflate(R.layout.fragment_maintab1, container, false);\n myrecyclerview = (RecyclerView) v.findViewById(R.id.memeTemplate_recyclerView);\n RecyclerViewAdapter__memeTemp recyclerViewAdapter = new RecyclerViewAdapter__memeTemp(getContext(), lstMemeMemeTemplate);\n StaggeredGridLayoutManager staggeredGridLayoutManager = new StaggeredGridLayoutManager(2,LinearLayoutManager.VERTICAL);\n myrecyclerview.setLayoutManager(staggeredGridLayoutManager);\n myrecyclerview.setAdapter(recyclerViewAdapter);\n return v;\n }", "public void updateUI() {\n if (mCategoryAdapater == null) {\n mCategoryAdapater = new CategoryAdapter(mCategories);\n mCategoryRecyclerView.setAdapter(mCategoryAdapater);\n } else {\n mCategoryAdapater.setCategories(mCategories);\n mCategoryAdapater.notifyDataSetChanged();\n }\n Log.d(TAG, \"updateUI()\");\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_my_orders, container, false);\n\n order_recyclerView = view.findViewById(R.id.order_recycler_view);\n orderList = new ArrayList<>();\n orderAdapter = new OrderAdapter(getContext(), orderList);\n\n\n\n RecyclerView.LayoutManager mLayoutManager = new GridLayoutManager(getContext(), 1);\n order_recyclerView.setLayoutManager(mLayoutManager);\n //order_recyclerView.addItemDecoration(new OrderActivity().GridSpacingItemDecoration(2, dpToPx(10), true));\n order_recyclerView.setItemAnimator(new DefaultItemAnimator());\n order_recyclerView.setAdapter(orderAdapter);\n\n orderAlbums();\n\n return view;\n }", "protected void onLoadLayout(View view) {\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n Log.d(\"cprv\", \"onCreateView @ RecyclerViewFragment\");\n\n View rootView = inflater.inflate(R.layout.recycler_view_frag, container, false);\n rootView.setTag(TAG);\n\n // BEGIN_INCLUDE\n mRecyclerView = (RecyclerView) rootView.findViewById(R.id.recyclerView);\n\n mLayoutManager = new LinearLayoutManager(getActivity());\n\n mCurrentLayoutManagerType = LayoutManagerType.LINEAR_LAYOUT_MANAGER;\n\n if(savedInstanceState != null){\n // restore saved layout manager type\n mCurrentLayoutManagerType = (LayoutManagerType) savedInstanceState.getSerializable((KEY_LAYOUT_MANAGER));\n }\n setRecyclerViewLayoutManager(mCurrentLayoutManagerType);\n\n mAdapter = new CustomAdapter(mDataset);\n // set CustomAdapter as the adapter for RecyclerView\n mRecyclerView.setAdapter(mAdapter);\n // END_INCLUDE\n\n mLinearLayoutRadioButton = (RadioButton) rootView.findViewById(R.id.linear_layout_rb);\n mLinearLayoutRadioButton.setOnClickListener(new View.OnClickListener(){\n @Override\n public void onClick(View v){\n setRecyclerViewLayoutManager(LayoutManagerType.LINEAR_LAYOUT_MANAGER);\n }\n });\n\n mGridLayoutRadioButton = (RadioButton) rootView.findViewById(R.id.grid_layout_rb);\n mGridLayoutRadioButton.setOnClickListener(new View.OnClickListener(){\n @Override\n public void onClick(View v){\n setRecyclerViewLayoutManager(LayoutManagerType.GRID_LAYOUT_MANAGER);\n }\n });\n return rootView;\n }", "private void initializeViews()\n {\n ButterKnife.bind(this);\n\n LinearLayoutManager layoutManager = new LinearLayoutManager(this);\n rv_my_vehicles.setLayoutManager(layoutManager);\n rv_my_vehicles.setAdapter(myVehiclesAdapter);\n\n myVehiclesAdapter.setParent(getIntent().getIntExtra(COMING_FROM,0));\n presenter.fetchMyVehicles();\n progressDialog = alerts.getProcessDialog(this);\n progressDialog.setCancelable(false);\n\n tv_all_tool_bar_title.setText(my_vehicles);\n tv_all_tool_bar_title.setTypeface(appTypeface.getPro_narMedium());\n tv_add_new_vehicle.setTypeface(appTypeface.getPro_narMedium());\n tv_vehicles_empty.setTypeface(appTypeface.getPro_narMedium());\n }", "private void setView() {\n // Category Views\n categoryRecycler.setLayoutManager(new LinearLayoutManager(getContext()));\n cartRecyclerView.addItemDecoration(new GridItemDecoration(8, 8));\n\n categoryRecycler.addItemDecoration(new GridItemDecoration(16, 16));\n categoryAdapter.setOnCategorySelectedListener(this);\n categoryRecycler.setAdapter(categoryAdapter);\n\n // Product Views\n productRecycler.setLayoutManager(new GridLayoutManager(getContext(), 3));\n productRecycler.addItemDecoration(new GridItemDecoration(8, 8));\n productRecycler.setAdapter(productAdapter);\n productAdapter.setOnProductClickListener(new ProductItemListener());\n\n // Cart Views\n cartRecyclerView.setLayoutManager(new LinearLayoutManager(getContext()));\n cartRecyclerView.setAdapter(cartAdapter);\n cartAdapter.setOnItemUpdateListener(this);\n\n //discount\n discountList = new ArrayList<>();\n DiscountAdapter discountAdapter = new DiscountAdapter(getContext(), discountList);\n discountRecyclerView.setLayoutManager(new LinearLayoutManager(getContext()));\n discountRecyclerView.setAdapter(discountAdapter);\n OrderAPI.getInstance(getContext()).getDiscount(discountList, discountAdapter, this, db);\n discountAdapter.setOnDiscountClickListener(this);\n\n SchoolAPI.getInstance(getActivity()).getStudents(studentList, db);\n\n //back button\n backButton.setOnClickListener(view -> onBackPressClicked());\n\n // Payment Button\n paymentButton.setOnClickListener((v) -> onPaymentButtonClicked());\n\n discountButton.setOnClickListener((v) -> {\n /*showDiscountDialog()*/\n discountRecyclerView.setVisibility(View.VISIBLE);\n cartRecyclerView.setVisibility(View.GONE);\n emptyCartView.setVisibility(View.GONE);\n\n updateDiscountNotification(discountList.size());\n checkDiscountAvailability();\n });\n\n cartButton.setOnClickListener(view -> {\n discountRecyclerView.setVisibility(View.GONE);\n noDiscountText.setVisibility(View.GONE);\n\n if (cartList.size() > 0) {\n cartRecyclerView.setVisibility(View.VISIBLE);\n emptyCartView.setVisibility(View.GONE);\n } else {\n cartRecyclerView.setVisibility(View.GONE);\n emptyCartView.setVisibility(View.VISIBLE);\n }\n });\n\n studentIdText.setOnEditorActionListener(((textView, actionId, keyEvent) -> {\n if (actionId == EditorInfo.IME_ACTION_DONE) {\n onSubmitClick();\n return true;\n }\n\n return false;\n }));\n\n //fetch student details\n submitButton.setOnClickListener(view -> onSubmitClick());\n\n //return items\n returnButton.setOnClickListener(view -> showReturnItemDialog());\n\n //add details button\n addDetailsButton.setOnClickListener(view -> showAddDetailsDialog());\n\n //gender_type button\n maleView.setOnClickListener(view -> {\n\n if (!isMaleSelected || notSelectedYet) {\n categoryText.setText(null);\n\n isMaleSelected = true;\n notSelectedYet = false;\n\n categoryAdapter.clearBackground();\n //change button views\n maleView.setBackgroundColor(getResources().getColor(R.color.denim1));\n maleView.setTextColor(getResources().getColor(R.color.white1));\n\n femaleView.setBackgroundColor(getResources().getColor(android.R.color.transparent));\n femaleView.setTextColor(getResources().getColor(R.color.black1));\n\n //apply changes to products\n if (productList != null && productList.size() > 0) {\n productList.clear();\n }\n maleList.clear();\n\n for (ProductHeader currentProduct : allProducts) {\n if (currentProduct.getGender().equals(APIStatic.Constants.MALE)) {\n productList.add(currentProduct);\n maleList.add(currentProduct);\n }\n }\n\n checkAvailability();\n productAdapter.notifyDataSetChanged();\n }\n });\n\n femaleView.setOnClickListener(view -> {\n\n if (isMaleSelected || notSelectedYet) {\n categoryText.setText(null);\n\n isMaleSelected = false;\n notSelectedYet = false;\n categoryAdapter.clearBackground();\n femaleView.setBackgroundColor(getResources().getColor(R.color.denim1));\n femaleView.setTextColor(getResources().getColor(R.color.white1));\n\n maleView.setBackgroundColor(getResources().getColor(android.R.color.transparent));\n maleView.setTextColor(getResources().getColor(R.color.black1));\n\n //apply changes to products\n if (productList != null && productList.size() > 0) {\n productList.clear();\n }\n femaleList.clear();\n\n for (ProductHeader currentProduct : allProducts) {\n if (currentProduct.getGender().equals(APIStatic.Constants.FEMALE)) {\n productList.add(currentProduct);\n femaleList.add(currentProduct);\n }\n }\n\n checkAvailability();\n productAdapter.notifyDataSetChanged();\n }\n });\n\n // Fetch Data\n ProductAPI.fetchCategories(getContext(), categoryList, categoryAdapter, db);\n ProductAPI.fetchProducts(getContext(), allProducts, productList, productAdapter, null, db, null, null);\n }", "private void buildRecyclerView() {\n\n movieRecyclerView = findViewById(R.id.movieRecyclerView);\n\n customAdapter = new CustomAdapter(MovieActivity.this,movieLists);\n movieRecyclerView.setAdapter(customAdapter);\n layoutManager = new GridLayoutManager(this,1);\n movieRecyclerView.setLayoutManager(layoutManager);\n\n }", "private void initViews(){\n listViewL1 = getLayoutInflater().inflate(R.layout.colored_fragment, null);\n gridViewL2 = getLayoutInflater().inflate(R.layout.gridslayout, null);\n setContentView(listViewL1);\n\n\n if(getSupportActionBar() != null){\n getSupportActionBar().setTitle(barTitle);\n getSupportActionBar().setDisplayHomeAsUpEnabled(true);\n getSupportActionBar().setDefaultDisplayHomeAsUpEnabled(true);\n }\n\n\n\n networkLayout = (RelativeLayout)findViewById(R.id.offline);\n\n //instantiating new relic to monitor unexpected errors\n NewRelic.withApplicationToken(\n\n \"AA596b53bae74528bfb423356bd9d0d07d86142d4e\"\n ).start(this.getApplication());\n\n Krw_functions.pushOpenScreenEvent(context, \"ListAdsResultActivity/\" + getIntent().getStringExtra(\"customtitle\") + \" > \" + getIntent().getStringExtra(\"subcattitle\"));\n\n listbottombar = (RelativeLayout)findViewById(R.id.footer);\n gridbottombar = (RelativeLayout) gridViewL2.findViewById(R.id.bottombargrid);\n swipeRefreshLayout = (SwipeRefreshLayout) findViewById(R.id.swipe_refresh_layout);\n gridsSwipeRefreshLayout = (SwipeRefreshLayout) gridViewL2.findViewById(R.id.swipe_refresh_layout);\n\n swipeRefreshLayout.setOnRefreshListener(this);\n gridsSwipeRefreshLayout.setOnRefreshListener(this);\n\n\n //container the UI with background codes\n homecontainer = (LinearLayout)findViewById(R.id.homecontainer);//this is the layout that holds the bottom bar icons\n\n homesearchbar = (LinearLayout)findViewById(R.id.homesearchbar);// this is the layout that holds the search bar on the bottom bar icon\n homesearchbar.setVisibility(View.INVISIBLE);\n\n noresultlayout = (RelativeLayout)findViewById(R.id.no_results);\n errorText = (TextView)findViewById(R.id.error_msg);\n gridnoresult = (RelativeLayout)gridViewL2.findViewById(R.id.no_results_grid);\n griderrorText = (TextView)gridViewL2.findViewById(R.id.errormessage);\n\n //linking interfeace wit the backend ie getting the ids of the views objects\n gridView = (GridView)gridViewL2.findViewById(R.id.gridView);\n listView = (ListView)listViewL1.findViewById(R.id.list);\n\n adapter = new Ads_Adapter(this, R.layout.list_row, movieList);\n gridAdapter = new Ads_Adapter(this, R.layout.grid_rows, movieList);\n listView.setAdapter(adapter);\n gridView.setAdapter(gridAdapter);\n\n listView.setVerticalScrollBarEnabled(false);\n gridView.setVerticalScrollBarEnabled(false );\n\n //opening a specific ad\n listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n openAd(position);\n }\n });\n\n listView.setOnScrollListener(new EndlessScrollListener() {\n @Override\n public void onLoadMore(int page, int totalItemsCount) {\n // Triggered only when new data needs to be appended to the list\n // Add whatever code is needed to append new items to your AdapterView\n //Krw_functions.Show_Toast(getActivity(),page+\"\",true);\n if(next_url != null) {\n curent_page = page;\n loadMore(page);\n }\n // or customLoadMoreDataFromApi(totalItemsCount);\n }\n\n @Override\n public void onScrollUp() {\n listbottombar.animate()\n .translationY(1)\n .alpha(1.0f)\n .setDuration(300);\n\n\n }\n\n @Override\n public void onScrollDown() {\n listbottombar.animate()\n .translationY(listbottombar.getHeight())\n .alpha(0.0f)\n .setDuration(300);\n\n }\n });\n\n gridView.setOnScrollListener(new EndlessScrollListener() {\n @Override\n public void onLoadMore(int page, int totalItemsCount) {\n // Triggered only when new data needs to be appended to the list\n // Add whatever code is needed to append new items to your AdapterView\n //Krw_functions.Show_Toast(getActivity(),page+\"\",true);\n if(next_url != null) {\n curent_page = page;\n loadMore(page);\n }\n // or customLoadMoreDataFromApi(totalItemsCount);\n }\n @Override\n public void onScrollUp() {\n gridbottombar.animate()\n .translationY(1)\n .alpha(1.0f)\n .setDuration(300);\n\n\n }\n\n @Override\n public void onScrollDown() {\n gridbottombar.animate()\n .translationY(listbottombar.getHeight())\n .alpha(0.0f)\n .setDuration(300);\n\n }\n });\n\n\n gridView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> adapterView, View view, int position, long l) {\n openAd(position);\n }\n });\n\n searchTextG = (EditText)gridViewL2.findViewById(R.id.entersearch);\n searchText = (EditText)listViewL1.findViewById(R.id.entersearch);\n\n refresh = (ImageButton)findViewById(R.id.refresh);\n\n refresh.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n query();\n }\n });\n\n //listview buttom bar icons start\n homeButton1 = (ImageButton)listViewL1.findViewById(R.id.backHome);\n homeButton1.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Intent home = new Intent(context, AdsListActivity.class);\n startActivity(home);\n finish();\n }\n });\n createAdsButton1 = (ImageButton)findViewById(R.id.createAds);\n /* createAdsButton1.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Krw_functions.Open_Connection_or_register(ListAdsActivity.this, R.id.action_add);\n }\n });*/\n searchclose1 = (ImageButton)findViewById(R.id.searchclose); // this is the button that close the search and display homecontainer\n searchclose1.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n //close the search bar and submit searching text\n InputMethodManager imm = (InputMethodManager)context.getSystemService(Context.INPUT_METHOD_SERVICE);\n imm.hideSoftInputFromWindow(homesearchbar.getWindowToken(), 0);\n // launch_search(searchText.getText().toString());\n homecontainer.setVisibility(View.VISIBLE);\n homesearchbar.setVisibility(View.INVISIBLE);\n searchText.setText(\"\");\n }\n });\n\n searchText.setOnEditorActionListener(new TextView.OnEditorActionListener() {\n @Override\n public boolean onEditorAction(TextView textView, int i, KeyEvent keyEvent) {\n if (i == EditorInfo.IME_ACTION_SEARCH) {\n homecontainer.setVisibility(View.VISIBLE);\n homesearchbar.setVisibility(View.INVISIBLE);\n // launch_search(searchText.getText().toString());\n searchText.setText(\"\");\n return true;\n }\n return false;\n }\n });\n searchText.addTextChangedListener(new TextWatcher() {\n @Override\n public void beforeTextChanged(CharSequence charSequence, int start, int before, int after) {\n Log.d(\"onTextChange\", \"start is \" + start + \" and before is \" + before + \" and after is \" + after);\n searchclose1.setImageResource(switchIcons(start, after));\n }\n\n @Override\n public void onTextChanged(CharSequence charSequence, int start, int before, int count) {\n }\n\n @Override\n public void afterTextChanged(Editable editable) {\n\n }\n });\n\n searchButton = (ImageButton)listViewL1.findViewById(R.id.searchButton); // this is the search button on the container bar\n searchButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n //making search bar visible and making the container invisible\n// homecontainer.setVisibility(View.INVISIBLE);\n// homesearchbar.setVisibility(View.VISIBLE);\n// InputMethodManager imm = (InputMethodManager)ListAdsActivity.this.getSystemService(Context.INPUT_METHOD_SERVICE);\n// imm.showSoftInput(searchText, 0);\n// searchText.requestFocus();\n\n finish();\n\n\n }\n });\n\n profileButton1 = (ImageButton)findViewById(R.id.goToProfile);\n /* profileButton1.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Krw_functions.Open_Connection_or_register(ListAdsActivity.this, R.id.action_account);\n }\n });*/\n\n //end\n\n\n //gridview buttom bar icons start\n homeButton2 = (ImageButton)gridViewL2.findViewById(R.id.backHome);\n homeButton2.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Intent home = new Intent(context, AdsListActivity.class);\n startActivity(home);\n finish();\n }\n });\n\n createAdsButton2 = (ImageButton)gridViewL2.findViewById(R.id.createAds);\n /* createAdsButton2.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Krw_functions.Open_Connection_or_register(ListAdsActivity.this, R.id.action_add);\n }\n });*/\n\n profileButton2 = (ImageButton)gridViewL2.findViewById(R.id.goToProfile);\n /* profileButton2.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Krw_functions.Open_Connection_or_register(ListAdsActivity.this, R.id.action_account);\n }\n });*/\n\n gridhomecontainer = (LinearLayout)gridViewL2.findViewById(R.id.homecontainer);//this is the layout that holds the bottom bar icons\n\n gridsearchbar = (LinearLayout)gridViewL2.findViewById(R.id.homesearchbar);// this is the layout that holds the search bar on the bottom bar icon\n gridsearchbar.setVisibility(View.INVISIBLE);\n\n searchButton2 = (ImageButton)gridViewL2.findViewById(R.id.searchButton); // this is the search button on the container bar\n\n searchButton2.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Log.d(\"SearchButton2\", \"gridsearchbar is visible now\");\n// gridhomecontainer.setVisibility(View.INVISIBLE);\n// gridsearchbar.setVisibility(View.VISIBLE);\n// InputMethodManager imm = (InputMethodManager)ListAdsActivity.this.getSystemService(Context.INPUT_METHOD_SERVICE);\n// imm.showSoftInput(searchTextG, 0);\n// searchTextG.requestFocus();\n finish();\n\n }\n });\n\n searchclose2 = (ImageButton)gridViewL2.findViewById(R.id.searchclose);\n searchclose2.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n //close the search bar and submit searching text\n InputMethodManager imm = (InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE);\n imm.hideSoftInputFromWindow(gridsearchbar.getWindowToken(), 0);\n //launch_search(searchTextG.getText().toString());\n gridhomecontainer.setVisibility(View.VISIBLE);\n gridsearchbar.setVisibility(View.INVISIBLE);\n searchTextG.setText(\"\");\n }\n });\n searchTextG.setOnEditorActionListener(new TextView.OnEditorActionListener() {\n @Override\n public boolean onEditorAction(TextView textView, int i, KeyEvent keyEvent) {\n if (i == EditorInfo.IME_ACTION_SEARCH) {\n gridhomecontainer.setVisibility(View.VISIBLE);\n gridsearchbar.setVisibility(View.INVISIBLE);\n // launch_search(searchTextG.getText().toString());\n searchTextG.setText(\"\");\n return true;\n }\n return false;\n }\n });\n\n searchTextG.addTextChangedListener(new TextWatcher() {\n @Override\n public void beforeTextChanged(CharSequence charSequence, int start, int before, int after) {\n searchclose2.setImageResource(switchIcons(start, after));\n }\n\n @Override\n public void onTextChanged(CharSequence charSequence, int start, int before, int count) {\n\n }\n\n @Override\n public void afterTextChanged(Editable editable) {\n\n }\n });\n\n loader = (pl.droidsonroids.gif.GifImageView)listViewL1.findViewById(R.id.loader);\n gridLoader = (pl.droidsonroids.gif.GifImageView)gridViewL2.findViewById(R.id.loader);\n\n loader.setVisibility(View.VISIBLE);\n gridLoader.setVisibility(View.VISIBLE);\n //end\n }", "@Override\r\n public void onLayoutChildren(RecyclerView.Recycler recycler, RecyclerView.State state) {\r\n\r\n // Nothing to be laid out, just clear attached views and return.\r\n if(state.getItemCount() == 0){\r\n detachAndScrapAttachedViews(recycler);\r\n return;\r\n }\r\n // For the pre-layout, we need to layout current attached views and appearing views.\r\n if(state.isPreLayout()){\r\n // If nothing is attached, just return.\r\n if(getChildCount() == 0)\r\n return;\r\n // For the current attached views, find the views removed and update\r\n // removedTopAndBoundPositionCount and firstChangedPosition.\r\n final int childCount = getChildCount();\r\n for(int i = 0; i < childCount; i++){\r\n View child = getChildAt(i);\r\n RecyclerView.LayoutParams lp = (RecyclerView.LayoutParams) child.getLayoutParams();\r\n if(lp.isItemRemoved()){\r\n removedTopAndBoundPositionCount++;\r\n if(firstChangedPosition == -1 ||\r\n firstAttachedItemPosition + i < firstChangedPosition){\r\n firstChangedPosition = firstAttachedItemPosition + i;\r\n }\r\n }\r\n }\r\n // If removedTopAndBoundPositionCount = 0, items changes out of the bottom border,\r\n // So we have nothing to do during the pre-layout.\r\n // Otherwise we need to lay out current attached views and appearing views.\r\n if(removedTopAndBoundPositionCount != 0){\r\n layoutAttachedAndAppearingViews(recycler, state);\r\n }\r\n // Reset isBeforePreLayout after the pre-layout ends.\r\n isBeforePreLayout = false;\r\n return;\r\n }\r\n\r\n // The real layout.\r\n // First or empty layout, initialize layout parameters and fill.\r\n if(getChildCount() == 0){\r\n initializeLayoutParameters();\r\n fillGrid(recycler, state, true);\r\n return;\r\n }\r\n // If it is triggered with notifyDataSetChanged(),\r\n // we just clear attached views and layout from the beginning.\r\n if(isNotifyDataSetChanged){\r\n detachAndScrapAttachedViews(recycler);\r\n initializeLayoutParameters();\r\n fillGrid(recycler, state, true);\r\n isNotifyDataSetChanged = false;\r\n return;\r\n }\r\n\r\n // Adapter data set changes.\r\n if(firstChangedPosition == -1){ // No item is removed\r\n // reset parameters.\r\n mCurrentPosition = firstAttachedItemPosition;\r\n lastAttachedItemPosition = firstAttachedItemPosition;\r\n topBorder = getPaddingTop();\r\n bottomBorder = getHeight() - getPaddingBottom();\r\n spanBottom = Arrays.copyOf(spanTop, mSpanCount);\r\n updateSpanBottomParameters();\r\n // Fill the area.\r\n detachAndScrapAttachedViews(recycler);\r\n fillGrid(recycler, state, true);\r\n\r\n // Reset isBeforePreLayout.\r\n isBeforePreLayout = true;\r\n// firstChangedPosition = -1;\r\n// removedTopAndBoundPositionCount = 0;\r\n return;\r\n }\r\n // There are removed items.\r\n // Clear the cache from the firstChangedPosition\r\n for(int i = firstChangedPosition; i < state.getItemCount(); i++){\r\n if(itemLayoutWidthCache.get(i, 0) != 0){\r\n itemLayoutWidthCache.delete(i);\r\n itemLayoutHeightCache.delete(i);\r\n itemOccupiedStartSpan.delete(i);\r\n }\r\n if(fakeItemLayoutWidthCache.get(i, 0) != 0){\r\n itemLayoutWidthCache.put(i, fakeItemLayoutWidthCache.get(i));\r\n itemLayoutHeightCache.put(i, fakeItemLayoutHeightCache.get(i));\r\n itemOccupiedStartSpan.put(i, fakeItemOccupiedStartSpan.get(i));\r\n }\r\n }\r\n fakeItemLayoutWidthCache.clear();\r\n fakeItemLayoutHeightCache.clear();\r\n fakeItemOccupiedStartSpan.clear();\r\n\r\n detachAndScrapAttachedViews(recycler);\r\n\r\n // There are removed items out of the upper bound.\r\n if(firstChangedPosition < firstAttachedItemPosition) {\r\n mCurrentPosition = firstAttachedItemPosition;\r\n lastAttachedItemPosition = firstAttachedItemPosition;\r\n topBorder = getPaddingTop();\r\n bottomBorder = getHeight() - getPaddingBottom();\r\n spanBottom = Arrays.copyOf(spanTop, mSpanCount);\r\n updateSpanBottomParameters();\r\n fillGrid(recycler, state, true);\r\n // If it cannot fill until the bottomBorder, call scrollBy() to fill.\r\n if(spanBottomMax < bottomBorder){\r\n scrollBy(spanBottomMax - bottomBorder, recycler, state);\r\n }\r\n // Finally, we layout disappearing views.\r\n layoutDisappearingViews(recycler, state);\r\n }else{ // There are no removed items out of the upper bound.\r\n // Just set layout parameters and fill the visible area.\r\n mCurrentPosition = firstAttachedItemPosition;\r\n lastAttachedItemPosition = firstAttachedItemPosition;\r\n topBorder = getPaddingTop();\r\n bottomBorder = getHeight() - getPaddingBottom();\r\n spanBottom = Arrays.copyOf(spanTop, mSpanCount);\r\n updateSpanBottomParameters();\r\n fillGrid(recycler, state, true);\r\n // The number of items is too small, call scrollBy() to fill.\r\n if(spanBottomMax - bottomBorder < 0){\r\n scrollBy(spanBottomMax - bottomBorder, recycler, state);\r\n }\r\n }\r\n // After the real layout, we need to clear some parameters.\r\n isBeforePreLayout = true;\r\n firstChangedPosition = -1;\r\n removedTopAndBoundPositionCount = 0;\r\n disappearingViewCache.clear();\r\n }", "private void initRecyclerView(android.view.View view){\n mRecyclerView = (RecyclerView) view.findViewById(R.id.recycler_view);\n mRecyclerView.setHasFixedSize(true);\n mLayoutManager = new LinearLayoutManager(MainActivity.sContext);\n mRecyclerView.setLayoutManager(mLayoutManager);\n mAdapter = new TopicRecyclerViewAdapter( mPresenter.getDataSet() );\n mRecyclerView.setAdapter(mAdapter);\n\n // Code to Add an item with default animation\n //((TopicRecyclerViewAdapter) mAdapter).addItem(obj, index);\n\n // Code to remove an item with default animation\n //((TopicRecyclerViewAdapter) mAdapter).deleteItem(index);\n }", "private void recycleOffscreenViews() {\n final int oldChildCount = getChildCount();\n final int height = getHeight();\n final int clearAbove = -height - mItemMargin; // XXX increased clearAbove and clearBelow values\n final int clearBelow = height * 2 + mItemMargin; // to reduce recycling.\n for (int i = getChildCount() - 1; i >= 0; i--) {\n final View child = getChildAt(i);\n if (child.getTop() <= clearBelow) {\n // There may be other offscreen views, but we need to maintain\n // the invariant documented above.\n break;\n }\n\n if (mInLayout) {\n removeViewsInLayout(i, 1);\n } else {\n removeViewAt(i);\n }\n\n mRecycler.addScrap(child);\n }\n\n while (getChildCount() > 0) {\n final View child = getChildAt(0);\n if (child.getBottom() >= clearAbove) {\n // There may be other offscreen views, but we need to maintain\n // the invariant documented above.\n break;\n }\n\n if (mInLayout) {\n removeViewsInLayout(0, 1);\n } else {\n removeViewAt(0);\n }\n\n mRecycler.addScrap(child);\n mFirstPosition++;\n }\n\n final int childCount = getChildCount();\n if (childCount > 0 && childCount != oldChildCount) {\n // Repair the top and bottom column boundaries from the views we still have\n Arrays.fill(mItemTops, Integer.MAX_VALUE);\n Arrays.fill(mItemBottoms, Integer.MIN_VALUE);\n\n for (int i = 0; i < childCount; i++) {\n final View child = getChildAt(i);\n final LayoutParams lp = (LayoutParams) child.getLayoutParams();\n final int top = child.getTop() - mItemMargin;\n final int bottom = child.getBottom();\n final int span = Math.min(mColCount, lp.span);\n final LayoutRecord rec = mLayoutRecords.get(mFirstPosition + i);\n\n final int colEnd = lp.column + span;\n for (int col = lp.column; col < colEnd; col++) {\n final int colTop = top - rec.getMarginAbove(col - lp.column);\n final int colBottom = bottom + rec.getMarginBelow(col - lp.column);\n if (colTop < mItemTops[col]) {\n mItemTops[col] = colTop;\n }\n if (colBottom > mItemBottoms[col]) {\n mItemBottoms[col] = colBottom;\n }\n }\n }\n\n for (int col = 0; col < mColCount; col++) {\n if (mItemTops[col] == Integer.MAX_VALUE) {\n // If one was untouched, both were.\n mItemTops[col] = 0;\n mItemBottoms[col] = 0;\n }\n }\n }\n }", "@Override\n public int getItemViewType(int position) {\n if(position < albumDataSet.size()) {\n return 0;\n } // For layout 1\n else {\n return 1;\n } // For layout 2\n }", "private void setUpRecycler() {\n Log.d(\"MainActivity\", \"setUpRecycler : start\");\n // Connecting the recyclerview to the view in the layout\n prayerRecyclerView = findViewById(R.id.recycler_main_movie);\n\n // Creating our custom adapter\n prayerRecyclerAdapter = new PrayerRecyclerAdapter(this, prayerList);\n Log.d(\"MainActivity\", \"setUpRecycler : prayerList = \" + prayerList.size());\n // Setting the adapter to our recyclerview\n prayerRecyclerView.setAdapter(prayerRecyclerAdapter);\n\n // Creating and setting a layout manager.\n // Note that the manager is VERTICAL, thus a vertical list\n LinearLayoutManager layout = new LinearLayoutManager(\n this, LinearLayoutManager.VERTICAL, false);\n prayerRecyclerView.setLayoutManager(layout);\n Log.d(\"MainActivity\", \"setUpRecycler : stop\");\n }", "private void InitView() {\n\t\tmLinearLayout = new LinearLayout(getContext());\n\t\t//mLinearLayout.setBackgroundResource(MusicApplication.getInstance().getBgResource());\n\t\t\n\t\t//Modify by LiYongNam 2012.9.19_start\n\t\tMusicUtil.setBackgroundOfView ( mLinearLayout, getContext() );\t\t\t\t\n\t\t//Modify by LiYongNam 2012.9.19_end\n\t\t\n\t\tmLinearLayout.setOrientation(LinearLayout.VERTICAL);\n\t\tmLinearLayout.setPadding(1, 1, 1, Util.dipTopx(getContext(), 60));\n\t\t// 导航条\n\t\taddTitleBar(-1, \"编辑列表\", R.drawable.check_off, R.drawable.title_bar);\n\n\t\tmControlBar = new ControlBar(getContext());\n\t\tmControlBar.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT,\n\t\t\t\tUtil.dipTopx(getContext(), 60)));\n\n//\t\taddControlButton(\"全选\", CONTROL1, 0);\n\t\taddControlButton(\"播放\", CONTROL2, 1);\n\t\taddControlButton(\"加入\", CONTROL3, 2);\n\t\taddControlButton(\"删除\", CONTROL4, 3);\n\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_attention, container, false);\n unbinder = ButterKnife.bind(this, view);\n initData();\n LinearLayoutManager layoutManager = new LinearLayoutManager(getActivity());\n layoutManager.setOrientation(LinearLayoutManager.VERTICAL);\n rvReaction.setLayoutManager(layoutManager);\n BaseQuickAdapter adapter = new BaseQuickAdapter(R.layout.item_tuijian, ivs) {\n @Override\n protected void convert(BaseViewHolder helper, Object item) {\n helper.setImageResource(R.id.iv_item, (Integer) item);\n }\n\n @Override\n public void onBindViewHolder(@NonNull RecyclerView.ViewHolder holder, int position) {\n\n }\n };\n rvReaction.setAdapter(adapter);\n adapter.setOnItemClickListener(new BaseQuickAdapter.OnItemClickListener() {\n @Override\n public void onItemClick(BaseQuickAdapter adapter, View view, int position) {\n\n }\n });\n return view;\n }", "public void populateView() {\r\n populateHead();\r\n ArrayList arrayList = new ArrayList();\r\n arrayList.add(new AccDetailItem(\"Loan Amount\", this.account.totLoanAmt, MiscUtils.getColor(getResources(), this.account.totLoanAmt)));\r\n arrayList.add(new AccDetailItem(\"Interest Rate\", this.account.interestRate));\r\n arrayList.add(new AccDetailItem(\"Repayment Amount\", this.account.repaymentAmt, MiscUtils.getColor(getResources(), this.account.repaymentAmt)));\r\n arrayList.add(new AccDetailItem(\"Start Date\", this.account.startDt));\r\n arrayList.add(new AccDetailItem(\"End Date\", this.account.endDt));\r\n arrayList.add(new AccDetailItem(\"Status\", this.account.loanStatus));\r\n ArrayList arrayList2 = new ArrayList();\r\n arrayList2.add(new AccDetailItem(\"Outstanding Amount\", this.account.formattedOutstandingAmount, ContextCompat.getColor(getContext(), R.color.primary_red)));\r\n arrayList2.add(new AccDetailItem(\"Overdue Amount\", String.valueOf(this.account.overdueAmount), MiscUtils.getColor(getResources(), (double) this.account.overdueAmount)));\r\n arrayList2.add(new AccDetailItem(\"No. of Repayments Overdue\", this.account.overdueCount));\r\n this.list.setAdapter(new AccountDetailItemAdapter(getActivity(), arrayList));\r\n this.list2.setAdapter(new AccountDetailItemAdapter(getActivity(), arrayList2));\r\n MiscUtils.setListViewHeightBasedOnChildren(this.list);\r\n MiscUtils.setListViewHeightBasedOnChildren(this.list2);\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view= inflater.inflate(R.layout.fragment_fragment__branches__ecet, container, false);\n recyclerView = view.findViewById(R.id.recyclebranch);\n\n p=view.findViewById(R.id.progress);\n retry=view.findViewById(R.id.retry);\n r=(SwipeRefreshLayout)view.findViewById(R.id.refreshcollege);\n\n recyclerView.setLayoutManager(new LinearLayoutManager(getContext()));\n\n retry.setVisibility(View.INVISIBLE);\n\n r.setColorSchemeResources(R.color.cutdown);\n r.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() {\n @Override\n public void onRefresh() {\n new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n start(view);\n r.setRefreshing(false);\n }\n },2000);\n }\n });\n\n start(view);\n\n\n return view;\n }", "@Override\r\n\t\tpublic View newView(Context arg0, Cursor arg1, ViewGroup arg2) {\n\t\t\t\t LayoutInflater inflater = LayoutInflater.from(arg2.getContext());\r\n\t\t\t View retView = inflater.inflate(R.layout.report_listitems, arg2, false);\r\n\t\t\t int j=i%2;\r\n\t\t\t retView.setBackgroundColor(colors[j]);\r\n\t\t\t i++;\r\n\t\t\t bindView(retView,arg0,arg1);\r\n\t\t\t return retView;\r\n\t\t\t \r\n\t\t}", "public void refreshAdapter() {\n int count = 0;\n removeAllViews();\n for (TypeViewInfo info : this.mTypeToView.values()) {\n info.currentUsedPosition = 0;\n }\n if (this.mListAdapter != null) {\n count = this.mListAdapter.getCount();\n }\n for (int i = 0; i < count; i++) {\n Integer type = Integer.valueOf(this.mListAdapter.getItemViewType(i));\n if (!this.mTypeToView.containsKey(type)) {\n this.mTypeToView.put(type, new TypeViewInfo(type));\n }\n TypeViewInfo info2 = this.mTypeToView.get(type);\n View canvasView = info2.currentUsedPosition < info2.holdViews.size() ? info2.holdViews.get(info2.currentUsedPosition) : null;\n View current = this.mListAdapter.getView(i, canvasView, this);\n if (current == null) {\n throw new RuntimeException(\"Adapter.getView(postion , convasView, viewParent) cannot be null \");\n }\n if (canvasView != current) {\n if (canvasView == null) {\n info2.holdViews.add(current);\n } else {\n info2.holdViews.remove(canvasView);\n info2.holdViews.add(info2.currentUsedPosition, current);\n }\n }\n info2.currentUsedPosition++;\n addView(current);\n }\n this.mSelectIndex = Math.min(this.mSelectIndex, (float) (count - 1));\n this.mSelectIndex = Math.max(0.0f, this.mSelectIndex);\n calculationRect(true);\n }", "private void setUpFoodItemsRView(String category, View view){\n //Log.d(TAG, \"setUpFoodItemsRView: Category: \"+category+\" View :\"+view);\n // TextView mFoodCategoryHeadingText = view.findViewById(R.id.menuItemHeading);\n // mFoodCategoryHeadingText.setText(category+\"'s\");\n // shimmerFrameLayout.startShimmer();\n RecyclerView mFoodItemsRecycler = view.findViewById(R.id.foodItemsRecyclerView);\n LinearLayoutManager linearLayoutManager = new LinearLayoutManager(getActivity(),LinearLayoutManager.HORIZONTAL,false);\n mFoodItemsRecycler.setHasFixedSize(true);\n mFoodItemsRecycler.setLayoutManager(linearLayoutManager);\n\n // adapter = new FoodItemAdapter(mFoodItems,mContext,this);\n foodAdapter = new FoodItemAdapter(mSelectedCategoryFoodItem,getActivity(),this);\n mFoodItemsRecycler.setAdapter(foodAdapter);\n\n //Getting the data from firebase\n loadRecyclerViewData(category);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n final View view = inflater.inflate(R.layout.fragment_home, container, false);\n\n\n recyclerView = view.findViewById(R.id.recycleview);\n\n progressBar = view.findViewById(R.id.progressbar);\n\n progressBar.setVisibility(View.VISIBLE);\n\n RecyclerView.LayoutManager layoutManager = new GridLayoutManager(getContext(), 2, RecyclerView.VERTICAL, false);\n recyclerView.setLayoutManager(layoutManager);\n recyclerView.addItemDecoration(new GridSpacingItemDecoration(2, 20, true));\n recyclerView.setItemAnimator(new DefaultItemAnimator());\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n homeBinding = DataBindingUtil.inflate(inflater, R.layout.fragment_home, container, false);\n//\n\n\n\n\n homeBinding.recyclerCategories.setLayoutManager(new LinearLayoutManager(getActivity(),LinearLayoutManager.HORIZONTAL,false));\n homeBinding.recyclerCategories.setHasFixedSize(true);\n\n homeBinding.recyclerPopularProducts.setLayoutManager(new LinearLayoutManager(getActivity(),LinearLayoutManager.HORIZONTAL,false));\n homeBinding.recyclerPopularProducts.setHasFixedSize(true);\n\n homeBinding.recyclerFeaturedProducts.setLayoutManager(new LinearLayoutManager(getActivity(),LinearLayoutManager.HORIZONTAL,false));\n homeBinding.recyclerCategories.setHasFixedSize(true);\n\n setValuesToFields();\n\n getCategories();\n getOffers();\n getfeaturedProduct();\n\n return homeBinding.getRoot();\n }", "private void setAdaptersForDataToShow() {\n LinearLayoutManager linearLayoutManager_SectionOfDays = new LinearLayoutManager(this);\n linearLayoutManager_SectionOfDays.setOrientation(LinearLayoutManager.HORIZONTAL);\n recyclerView_sectionOfDays.setLayoutManager(linearLayoutManager_SectionOfDays);\n recyclerView_sectionOfDays.setAdapter(new SectionOfDays_RecyclerViewAdapter(this, daysArray, this));\n\n /**\n * Vertical Recycler View showing List Of Trains\n */\n LinearLayoutManager linearLayoutManager_ListOfTrains = new LinearLayoutManager(this);\n linearLayoutManager_ListOfTrains.setOrientation(LinearLayoutManager.VERTICAL);\n recyclerView_listOfTrains.setLayoutManager(linearLayoutManager_ListOfTrains);\n setAdapter_ListOfTrains_Vertical_RecyclerView(0);\n }", "private void prepareViews() {\n mTextViewHeader = (TextView) mHeaderView.findViewById(R.id.tv_text_header_enhanced_listview);\n mTextViewFooter = (TextView) mFooterView.findViewById(R.id.tv_text_footer_enhanced_listview);\n mTextViewTime = (TextView) mHeaderView.findViewById(R.id.tv_time_update_header);\n\n mArrowHeader = mHeaderView.findViewById(R.id.arrow_header);\n mArrowFooter = mFooterView.findViewById(R.id.arrow_footer);\n\n mPbHeader = mHeaderView.findViewById(R.id.pb_header_enhanced_listview);\n mPbFooter = mFooterView.findViewById(R.id.pb_footer_enhanced_listview);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_prefil, container, false);\n\n //ADAPTER\n //---------------------------------------------------------------------------------\n mascotas = new ArrayList<Mascota>();\n mascotas.add(new Mascota(\"\",10,R.drawable.perro1));\n mascotas.add(new Mascota(\"\",9,R.drawable.perro1));\n mascotas.add(new Mascota(\"\",8,R.drawable.perro1));\n mascotas.add(new Mascota(\"\",7,R.drawable.perro1));\n mascotas.add(new Mascota(\"\",6,R.drawable.perro1));\n mascotas.add(new Mascota(\"\",5,R.drawable.perro1));\n mascotas.add(new Mascota(\"\", 4, R.drawable.perro1));\n mascotas.add(new Mascota(\"\",3,R.drawable.perro1));\n mascotas.add(new Mascota(\"\", 0, R.drawable.perro1));\n\n\n rvPerfil = (RecyclerView) v.findViewById(R.id.rv_perfil);\n rvPerfil.setHasFixedSize(true);\n final GridLayoutManager glm= new GridLayoutManager(getActivity(),3,GridLayoutManager.VERTICAL,false);\n rvPerfil.setLayoutManager(glm);\n RVAdapter adapter = new RVAdapter(mascotas);\n rvPerfil.setAdapter(adapter);\n\n\n //FIN ADAPTER\n //-------------------------------------------------------------------------------------\n\n return v;\n }", "private void initializeLayout(){\n String title = mStrInfo;\n String subtitle = mClientItem.clientName;\n mHomeToolbar.setGymRatToolbarTitle(title, subtitle);\n\n //initialize maids\n initializeMaid();\n\n //initialize bottom navigation\n initializeBottomNavigation();\n }", "private void initViews() {\n\n myOnClickListener = new MyOnClickListener(getContext());\n recyclerView = (RecyclerView)view.findViewById(R.id.recyclerView_ID);\n recyclerView.setHasFixedSize(true);\n layoutManager = new GridLayoutManager(getActivity(), 2);\n recyclerView.setLayoutManager(layoutManager);\n// adapter = new HomeAdapter(al,al2);\n// recyclerView.setAdapter(adapter);\n\n Log.e(\"adapter value : \",\"\"+this.al +this.al2);\n }", "private void setupRecyclerView() {\r\n\r\n LinearLayoutManager layoutManager = new LinearLayoutManager\r\n (getContext(), LinearLayoutManager.VERTICAL, false);\r\n if (adapter == null) {\r\n adapter = new SchoolAdapter(getContext(), schoolList);\r\n recyclerView.setLayoutManager(layoutManager);\r\n recyclerView.setAdapter(adapter);\r\n recyclerView.setItemAnimator(new DefaultItemAnimator());\r\n recyclerView.setNestedScrollingEnabled(true);\r\n } else {\r\n adapter.notifyDataSetChanged();\r\n }\r\n }", "public void reconstructViews() {\n for (int i = 0; i < getChildCount(); i++) {\n VerificationCustomItem item = (VerificationCustomItem) getChildAt(i);\n item.reconstructView();\n }\n }", "@Override\n public void showItemsForRecyclerView() {\n //Inicia el adaptadador para el rv\n myIRecyclerViewFragment.initAdapterForRVNotificationFragment(myIRecyclerViewFragment.createNotificationAdapter(this.myListNotifications));\n myIRecyclerViewFragment.generateLinearLayoutVertical();\n }" ]
[ "0.7347639", "0.69926274", "0.69891864", "0.693937", "0.6933657", "0.6879804", "0.67642295", "0.6619294", "0.6597534", "0.6588961", "0.65625995", "0.6545553", "0.65005124", "0.6466708", "0.64090776", "0.63667524", "0.63540256", "0.6348337", "0.6307002", "0.63006896", "0.6291828", "0.6288682", "0.62820137", "0.6274248", "0.62618786", "0.62463737", "0.6245093", "0.6242867", "0.6229308", "0.6220719", "0.6218873", "0.62010795", "0.61844045", "0.6178863", "0.6178482", "0.61781996", "0.61765754", "0.617024", "0.6164333", "0.61392456", "0.613288", "0.6123293", "0.6119649", "0.61189973", "0.6114969", "0.61056787", "0.61001134", "0.60948265", "0.607008", "0.60697293", "0.6068101", "0.60604525", "0.6057228", "0.60531163", "0.6051282", "0.6049155", "0.6047392", "0.6038217", "0.60267705", "0.6014057", "0.60049886", "0.60034287", "0.5990412", "0.5985877", "0.5985282", "0.5983253", "0.5983007", "0.59801185", "0.5978363", "0.59769344", "0.59759605", "0.5972273", "0.5969826", "0.5953481", "0.5947956", "0.59445524", "0.5938201", "0.5935999", "0.5932364", "0.59280527", "0.59222037", "0.5920998", "0.5920343", "0.5911933", "0.5909543", "0.5902236", "0.5896101", "0.5893491", "0.5887632", "0.5886994", "0.5885366", "0.5884528", "0.5881258", "0.58785415", "0.5876326", "0.58755606", "0.5874252", "0.5870312", "0.5861716", "0.5859563", "0.5859485" ]
0.0
-1
restituisce la lunghezza della lista ordini
@Override public int getItemCount() { return orderList.size(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void ordina(int[] valori) {\n\t\t\n\t}", "public static void main(String[] args) {\n//\t\tcrearNodos(cantNodos);\n//\t\tlista.extractFront();\n//\t\tlista.extractLast();\n//\t\tlista.insertLast(33);\n//\t\tlista.imprimir();\n//\t\t//System.out.print(lista.get(0));\n//\t\t\n//\t\tIterator<Integer> it1 = lista.iterator();\n//\t\t\twhile(it1.hasNext()) {\n//\t\t\t\tint valor = it1.next();\n//\t\t\t\tSystem.out.println(valor);\n//\t\t\t}\n//\t\tMyIterator<Integer> it2 = lista.iteratorReverse();\n//\t\t\twhile(it2.hasNext()) {\n//\t\t\t\tint valor = it2.back();\n//\t\t\t\tSystem.out.println(valor);\n//\t\t\t}\n\n\t\tlistaDeso1.insertFront(4);\n\t\tlistaDeso1.insertFront(2);\n\t\tlistaDeso1.insertFront(13);\n\t\tlistaDeso1.insertFront(7);\n\t\tlistaDeso1.insertFront(6);\n\n\t\tlistaDeso2.insertFront(9);\n\t\tlistaDeso2.insertFront(4);\n\t\tlistaDeso2.insertFront(6);\n\t\tlistaDeso2.insertFront(5);\n\t\tlistaDeso2.insertFront(13);\n\n//\t\tlistaOrde1.insertFront(2);\n//\t\tlistaOrde1.insertFront(4);\n//\t\tlistaOrde1.insertFront(6);\n//\t\tlistaOrde1.insertFront(8);\n//\t\tlistaOrde1.insertFront(11);\n//\t\t\n//\t\tlistaOrde2.insertFront(1);\n//\t\tlistaOrde2.insertFront(4);\n//\t\tlistaOrde2.insertFront(9);\n//\t\tlistaOrde2.insertFront(11);\n//\t\tlistaOrde2.insertFront(15);\n\t\t\n\t\tEje6<Integer> ord = new Eje6<Integer>();\n\t\t\n\t\tlista=ord.ambasDeso(listaDeso1, listaDeso2);\n\t}", "public void liste()\n {\n Collections.sort(listOrder, new Comparator<Order>() {\n @Override\n public int compare(Order o1, Order o2) {\n return o1.getStart() - o2.getStart(); // use your logic, Luke\n }\n });\n System.out.println(\"LISTE DES ORDRES\\n\");\n System.out.format(\"%8s %8s %5s %13s\", \"ID\", \"DEBUT\", \"DUREE\", \"PRIX\\n\");\n System.out.format(\"%8s %8s %5s %13s\", \"--------\", \"-------\", \"-----\", \"----------\\n\");\n for(int i = 0; i< listOrder.size(); i++) {\n Order order = listOrder.get(i);\n afficherOrdre(order);\n }\n System.out.format(\"%8s %8s %5s %13s\", \"--------\", \"-------\", \"-----\", \"----------\\n\");\n }", "@Override\n\tpublic ArrayList<Lista> listaListeElettorali() {\n\t\t\t\n\t\t\t\n\t\t\tDB db = getDB();\n\t\t\tMap<Integer, Lista> map = db.getTreeMap(\"liste\");\n\t\t\tArrayList<Lista> liste = new ArrayList<Lista>();\n\t\t\tSet<Integer> keys = map.keySet();\n\t\t\tfor (int key : keys) {\n\t\t\t\tliste.add(map.get(key));\n\t\t\t}\n\t\n\t\t\treturn liste;\n\t\t\t\n\t\t}", "public void ordenaPontos(){\r\n\t\tloja.ordenaPontos();\r\n\t}", "public void obrniListu() {\n if (prvi != null && prvi.veza != null) {\n Element preth = null;\n Element tek = prvi;\n \n while (tek != null) {\n Element sled = tek.veza;\n \n tek.veza = preth;\n preth = tek;\n tek = sled;\n }\n prvi = preth;\n }\n }", "public void MieiOrdini()\r\n {\r\n getOrdini();\r\n\r\n }", "private void MembentukListHuruf(){\n for(int i = 0; i < Panjang; i ++){\n Huruf Hrf = new Huruf();\n Hrf.CurrHrf = Kata.charAt(i);\n if(!IsVertikal){\n //horizontal\n Hrf.IdX = StartIdxX;\n Hrf.IdY = StartIdxY+i;\n }else{\n Hrf.IdX = StartIdxX+i;\n Hrf.IdY = StartIdxY;\n }\n // System.out.println(\"iniii \"+Hrf.IdX+\" \"+Hrf.IdY+\" \"+Hrf.CurrHrf+\" \"+NoSoal);\n TTS.Kolom[Hrf.IdX][Hrf.IdY].AddNoSoal(NoSoal);\n TTS.Kolom[Hrf.IdX][Hrf.IdY].Huruf=Hrf.CurrHrf;\n \n }\n }", "private void caricaLista() {\n /** variabili e costanti locali di lavoro */\n ArrayList unaLista = null;\n CampoDati unCampoDati = null;\n CDBLinkato unCampoDBLinkato = null;\n //@todo da cancellare\n try { // prova ad eseguire il codice\n /* recupera il campo DB specializzato */\n unCampoDBLinkato = (CDBLinkato)unCampoParente.getCampoDB();\n\n /* recupera la lista dal campo DB */\n unaLista = unCampoDBLinkato.caricaLista();\n\n /* recupera il campo dati */\n unCampoDati = unCampoParente.getCampoDati();\n\n /* registra i valori nel modello dei dati del campo */\n if (unaLista != null) {\n unCampoDati.setValoriInterni(unaLista);\n// unCampoDatiElenco.regolaElementiAggiuntivi();\n } /* fine del blocco if */\n\n } catch (Exception unErrore) { // intercetta l'errore\n /* mostra il messaggio di errore */\n Errore.crea(unErrore);\n } /* fine del blocco try-catch */\n\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 }", "protected void ucitajSortiranoPoBrojRez() {\n\t\tObject[]redovi=new Object[9];\r\n\t\tdtm.setRowCount(0);\r\n\t\t\r\n\t\tfor(Rezervacije r:alSort) {\r\n\t\t\t\r\n\t\t\tredovi[0]=r.getID_Rez();\r\n\t\t\tredovi[1]=r.getImePrezime();\r\n\t\t\tredovi[2]=r.getImePozorista();\r\n\t\t\tredovi[3]=r.getNazivPredstave();\r\n\t\t\tredovi[4]=r.getDatumIzvodjenja();\r\n\t\t\tredovi[5]=r.getVremeIzvodjenja();\r\n\t\t\tredovi[6]=r.getScenaIzvodjenja();\r\n\t\t\tredovi[7]=r.getBrRezUl();\r\n\t\t\tredovi[8]=r.getCenaUlaznica();\r\n\t\t\tdtm.addRow(redovi);\r\n\t\t}\r\n\t}", "public static ArrayList<Individuo> ordInd(ArrayList<Individuo> gen){\n Individuo aux;\n ArrayList<Individuo> genaux = gen;\n for(int i=0;i<genaux.size();i++){\n for(int j=i;j<genaux.size();j++){\n if(genaux.get(i).getFenotipo() > genaux.get(j).getFenotipo()){\n aux = genaux.get(i);\n genaux.set(i, genaux.get(j));\n genaux.set(j, aux);\n }\n }\n }\n return genaux;\n }", "public void ordenaArray(){\t\t\n\t\tCollections.sort(anos, new Comparator<Integer>(){\n\t\t\t@Override\n\t\t\tpublic int compare(Integer ano1, Integer ano2) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn ano1.compareTo(ano2);\n\t\t\t}\n\t\t});\n\t}", "public void Lista(){\n\t\tcabeza = null;\n\t\ttamanio = 0;\n\t}", "public static void main(String[] args) {\n ArrayList<Integer> taszkok = new ArrayList<>();\r\n String text = null;\r\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\r\n try {\r\n text = reader.readLine();\r\n\r\n String[] taszkfeltolt = text.split(\",\");\r\n for(int i = 0; i<taszkfeltolt.length ;i++){\r\n taszkok.add(Integer.parseInt(taszkfeltolt[i])) ;\r\n }\r\n\r\n }\r\n catch(Exception e){\r\n\r\n }\r\n\r\n int laphibak=0;\r\n ArrayList<String> abc = new ArrayList<>();\r\n ArrayList<Integer> fagyi = new ArrayList<>();\r\n ArrayList<Integer> szam = new ArrayList<>();\r\n for(int i = 0; i<taszkok.size();i++){\r\n boolean csillag=false;\r\n boolean nemvoltlaphiba=false;\r\n int fagyilesz=-1;\r\n //System.out.print(taszkok.get(i));\r\n\r\n if(0>taszkok.get(i)){\r\n //valami történik\r\n taszkok.set(i, taszkok.get(i)*(-1));\r\n fagyilesz=0;\r\n }\r\n if(abc.size()<3){\r\n\r\n int vanilyen = vanilyen(taszkok.get(i),szam);\r\n if(vanilyen==-1){\r\n if (abc.size()==2){\r\n abc.add(\"C\");\r\n System.out.print(\"C\");\r\n }\r\n else if (abc.size()==1){\r\n abc.add(\"B\");\r\n System.out.print(\"B\");\r\n }\r\n else if (abc.size()==0){\r\n abc.add(\"A\");\r\n System.out.print(\"A\");\r\n }\r\n szam.add(taszkok.get(i));\r\n if(fagyilesz!=0){\r\n fagyi.add(4); // a kör végén ugy is csökkentem 1el elsőre is\r\n }\r\n else{\r\n fagyi.add(0);\r\n }\r\n }\r\n else{\r\n String temp=abc.get(vanilyen);\r\n abc.remove(vanilyen); //a tömb végére rakom és 0 ra allitom a fagyasztast\r\n abc.add(temp);\r\n //System.out.print(abc);\r\n int tempfagyi=fagyi.get(vanilyen);\r\n fagyi.remove(vanilyen);\r\n if(fagyilesz!=0){\r\n fagyi.add(tempfagyi);\r\n }\r\n else{\r\n fagyi.add(0);\r\n }\r\n szam.remove(vanilyen);\r\n szam.add(taszkok.get(i));\r\n //System.out.print(temp+\"e,\");\r\n nemvoltlaphiba=true;\r\n }\r\n\r\n }\r\n else if(abc.size()==3){\r\n int vanilyen = vanilyen(taszkok.get(i),szam);\r\n if(vanilyen==-1){ //ha ez egy uj szam\r\n int hanyadikbet=vanszabad(fagyi);\r\n if(hanyadikbet!=-1){\r\n String temp=abc.get(hanyadikbet);\r\n szam.remove(hanyadikbet);\r\n szam.add(taszkok.get(i));\r\n abc.remove(hanyadikbet); //a tömb végére rakom és 4 ra allitom a fagyasztast\r\n abc.add(temp);\r\n\r\n fagyi.remove(hanyadikbet);\r\n if(fagyilesz!=0){\r\n fagyi.add(4);\r\n }\r\n else{\r\n fagyi.add(0);\r\n }\r\n\r\n System.out.print(temp);\r\n }\r\n else{\r\n csillag=true;\r\n }\r\n }\r\n else{\r\n String temp=abc.get(vanilyen);\r\n abc.remove(vanilyen); //a tömb végére rakom és 0 ra allitom a fagyasztast\r\n abc.add(temp);\r\n szam.remove(vanilyen);\r\n szam.add(taszkok.get(i));\r\n int fagyitemp=fagyi.get(vanilyen);\r\n fagyi.remove(vanilyen);\r\n fagyi.add(fagyitemp);\r\n nemvoltlaphiba=true;\r\n }\r\n\r\n\r\n }\r\n\r\n if (csillag==true){\r\n System.out.print(\"*\");\r\n }\r\n if(nemvoltlaphiba==true){\r\n System.out.print(\"-\");\r\n }\r\n else{\r\n laphibak++;\r\n }\r\n for(int j = 0; j<fagyi.size();j++){\r\n if(fagyi.get(j)!=0){\r\n fagyi.set(j,fagyi.get(j)-1); //csokkentem a fagyasztast\r\n }\r\n }\r\n }\r\n\r\n\r\n System.out.println();\r\n System.out.print(laphibak);\r\n }", "private void utvidtabellen() {\n\t\tCD[] hjelpeTab;\n\t\tif (cdTabell.length == 0) {\n\t\t\thjelpeTab = new CD[1];\n\t\t\tmaksAntall = 1;\n\t\t} else {\n\t\t\thjelpeTab = new CD[(int) Math.ceil(cdTabell.length * 1.1)];\n\t\t\tmaksAntall = hjelpeTab.length;\n\t\t}\n\t\tfor (int i = 0; i < cdTabell.length; i++) {\n\t\t\thjelpeTab[i] = cdTabell[i];\n\t\t}\n\t\tcdTabell = hjelpeTab;\n\t}", "public void sortieBloc() {\n this.tableLocaleCourante = this.tableLocaleCourante.getTableLocalPere();\n }", "void recorridoCero(){\n \n for(int i=0;i<8;i++)\n\t\t\tfor(int j=0;j<8;j++)\n\t\t\t\t{\n\t\t\t\t\t//marcar con cero todas las posiciones\n\t\t\t\t\trecorrido[i][j]=0;\n\t\t\t\t}\n }", "private void ordenaLista(List<AgrupamentoTipoBean> valoresMap) {\n\t\tCollections.sort(valoresMap, new Comparator<AgrupamentoTipoBean>() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic int compare(AgrupamentoTipoBean o1, AgrupamentoTipoBean o2) {\n\t\t\t\treturn o1.getQuantidade() > o2.getQuantidade() ? -1 : +1;\n\t\t\t}\n\t\t\t\n\t\t});\n\t}", "public void ganarDineroPorAutomoviles() {\n for (Persona p : super.getMundo().getListaDoctores()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaCocineros()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaAlbaniles()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaHerreros()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaCocineros()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n }", "private Lista<T> organizar( Lista<T> lista )\r\n {\r\n for( int i = 0; i < lista.darLongitud( ); i++ )\r\n {\r\n for( int j = 0; j < lista.darLongitud( ) - i - 1; j++ )\r\n {\r\n\r\n // Si elemento en la posición j es mayor al elemento en la posición j+1\r\n // se intercambian\r\n if( lista.darElemento( j ).compareTo( lista.darElemento( j + 1 ) ) > 0 )\r\n {\r\n T temp = lista.darElemento( j );\r\n lista.asignar( lista.darElemento( j + 1 ), j );\r\n lista.asignar( temp, j + 1 );\r\n }\r\n }\r\n }\r\n return lista;\r\n }", "public ArrayList<String> mostraRegles(){\n ArrayList<String> tauleta = new ArrayList<>();\n String aux = reg.getAssignacions().get(0).getAntecedents().getRangs().get(0).getNom();\n for (int i=1; i<list.getAtribs().size(); i++){\n aux += \"\\t\" + list.getAtribs().get(i).getNom();\n }\n tauleta.add(aux);\n for (int j=0; j<list.getNumCasos(); j++) {\n aux = list.getAtribs().get(0).getCasos().get(j);\n for (int i = 1; i < list.getAtribs().size(); i++) {\n aux += \"\\t\" + list.getAtribs().get(i).getCasos().get(j);\n }\n tauleta.add(aux);\n }\n return tauleta;\n }", "ArrayList<Float> pierwszaPredykcjaWezPredykcjeZListy()\n\t{\n\t\tArrayList<Float> L1 = new ArrayList<Float>();\n\t\t\n\t\tint i=0;\n\t\twhile (i<Stale.horyzontCzasowy && (LokalneCentrum.getTimeIndex()+i)<listaCenWczytanaZPliku.size())\n\t\t{\n\t\t\tL1.add(listaCenWczytanaZPliku.get(LokalneCentrum.getTimeIndex()+i));\n\t\t\ti++;\n\t\t}\n\t\t\n\t\treturn L1;\n\t}", "public void inicialAleatorio() {\n //aqui adiciona naquele vetor que de auxilio\n alocacao.add(Estados.ELETRICISTAS);\n alocacao.add(Estados.ELETRICISTAS2);\n alocacao.add(Estados.QUALIDADE);\n alocacao.add(Estados.QUALIDADE2);\n alocacao.add(Estados.FABRICACAO_ESTRUTURAL);\n alocacao.add(Estados.FABRICACAO_ESTRUTURAL2);\n alocacao.add(Estados.FABRICACAO_ESTRUTURAL3);\n alocacao.add(Estados.PLANEJAMENTO);\n\n //biblioteca que sorteia aleatoriamente os departamentos\n Collections.shuffle(alocacao);\n\n for (int i = 0; i < 4; i++) {\n matrix[1][i] = alocacao.get(i);\n\n }\n\n for (int i = 0; i < 4; i++) {\n matrix[3][i] = alocacao.get(i + 4);\n }\n\n }", "public ArrayList<String> mostraLlistaDiscret(){\n ArrayList<String> tauleta = new ArrayList<>();\n int p = 0;\n System.out.print(\"num atribs disc de 0: \"+list.getAtribs().get(0).getAtribsDisc().size());\n ArrayList<Atribut> disc = new ArrayList<Atribut>();\n\n for (int i=0; i<list.getAtribs().size(); i++){\n if (list.getAtribs().get(i).getDiscret()) disc.add(list.getAtribs().get(i));\n }\n\n\n String aux = \"\";\n for (int i=0; i<disc.size(); i++){\n for (int k=0; k<disc.get(i).getAtribsDisc().size(); k++) {\n aux += disc.get(i).getAtribsDisc().get(k).getNom() + \"\\t\";\n }\n }\n tauleta.add(aux);\n for (int j=0; j<list.getNumCasos(); j++) {\n aux = \"\";\n for (int i = 0; i < disc.size(); i++) {\n int f = 0;\n if (!disc.get(i).getShowDefault()) f++;\n for (int k=f; k<disc.get(i).getAtribsDisc().size(); k++) {\n aux += String.valueOf(disc.get(i).getAtribsDisc().get(k).getCasos().get(j)) + \"\\t\";\n }\n }\n tauleta.add(aux);\n }\n return tauleta;\n }", "public ArrayList<Elemento> getPosicionesAdyacentes(){\n ArrayList <Elemento> result = new ArrayList<>();\n int[] coordenada_i = {0,1,1,1,0,-1,-1,-1};\n int[] coordenada_j = {1,1,0,-1,-1,-1,0,1};\n int nueva_posicion_fila = 0;\n int nueva_posicion_columna = 0;\n for(int k=0; k<8; k++){\n nueva_posicion_fila = fila + coordenada_i[k];\n nueva_posicion_columna = columna + coordenada_j[k];\n \n if((0 <= nueva_posicion_fila) && (nueva_posicion_fila < automata.getAutomata().length) && \n (0<= nueva_posicion_columna) && (nueva_posicion_columna < automata.getAutomata()[0].length)){\n result.add(automata.getElemento(nueva_posicion_fila,nueva_posicion_columna));\n \n }\n \n }\n return result;\n }", "private void listarDadosNaTelaEditora(ArrayList<Editora> lista) {\n DefaultTableModel modelEditoras = (DefaultTableModel) jTable_tabelaEditoras.getModel();\n jTable_tabelaEditoras.setRowSorter(new TableRowSorter(modelEditoras));\n //Limpando a tela\n modelEditoras.setNumRows(0);\n //Correr o ArrayList\n for (int pos = 0; pos < lista.size(); pos++) {\n String[] linha = new String[2];\n Editora aux = lista.get(pos);\n linha[0] = \"\"+aux.getId();\n linha[1] = aux.getNome();\n modelEditoras.addRow(linha);\n }\n }", "public void listarEquipamentos() {\n \n \n List<Equipamento> formandos =new EquipamentoJpaController().findEquipamentoEntities();\n \n DefaultTableModel tbm=(DefaultTableModel) listadeEquipamento.getModel();\n \n for (int i = tbm.getRowCount()-1; i >= 0; i--) {\n tbm.removeRow(i);\n }\n int i=0;\n for (Equipamento f : formandos) {\n tbm.addRow(new String[1]);\n \n listadeEquipamento.setValueAt(f.getIdequipamento(), i, 0);\n listadeEquipamento.setValueAt(f.getEquipamento(), i, 1);\n \n i++;\n }\n \n \n \n }", "private void lisaaMiinaOikealle(int i, int j) {\n ArrayList<Ruutu> lista;\n if (i + 1 < x) {\n lista = this.ruudukko[i + 1];\n lista.get(j).setViereisetMiinat(1);\n if (j - 1 >= 0) {\n lista.get(j - 1).setViereisetMiinat(1);\n }\n if (j + 1 < x) {\n lista.get(j + 1).setViereisetMiinat(1);\n }\n }\n }", "public void listarutilizador() {\n \n \n List<Utilizador> cs =new UtilizadorJpaController().findUtilizadorEntities();\n \n DefaultTableModel tbm=(DefaultTableModel) listadeutilizador.getModel();\n \n for (int i = tbm.getRowCount()-1; i >= 0; i--) {\n tbm.removeRow(i);\n }\n int i=0;\n for (Utilizador c : cs) {\n tbm.addRow(new String[1]);\n listadeutilizador.setValueAt(c.getIdutilizador(), i, 0);\n listadeutilizador.setValueAt(c.getNome(), i, 1);\n listadeutilizador.setValueAt(c.getUtilizador(), i, 2);\n listadeutilizador.setValueAt(c.getIdprevilegio().getPrevilegio(), i, 3);\n// listaderelatorio.setValueAt(f.getTotal(), i, 4);\n// Distrito di = new DistritoJpaController().getDistritoByLoc(f.getIdlocalidade());\n// Localidade lo = new LocalidadeJpaController().findLocalidade(f.getIdlocalidade());\n// listaderelatorio.setValueAt(di.getDistrito(), i, 0);//lo.getIdposto().getIddistrito().getDistrito(), i, 0);\n// listaderelatorio.setValueAt(lo.getLocalidade(), i, 1);\n \n//// listadeformando.setValueAt(f.getSexo(), i, 2);\n// listaderelatorio.setValueAt(f.getQhomem(), i, 2);\n// listaderelatorio.setValueAt(f.getQmulher(), i, 3);\n// listaderelatorio.setValueAt(f.getTotal(), i, 4);\n// \n// \n i++;\n }\n \n \n \n }", "public void tradOra(){\r\n leerOracion();\r\n String res=\"\";\r\n for(int i=0; i<orac.size(); i++){\r\n res+=tradPal(rz, orac.get(i).trim())+\" \";\r\n }\r\n System.out.println(res);\r\n }", "public void mostrarlistafininicio(){\n if(!estavacia()){\n String datos=\"<=>\";\n nododoble auxiliar=fin;\n while(auxiliar!=null){\n datos=datos+\"[\"+auxiliar.dato+\"]<=>\";\n auxiliar=auxiliar.anterior;\n }\n JOptionPane.showMessageDialog(null,datos,\n \"Mostraando lista de fin a inicio\",JOptionPane.INFORMATION_MESSAGE);\n }}", "public void regolaOrdineInMenu(int codRiga) {\n\n /** variabili e costanti locali di lavoro */\n Modulo moduloPiatto = null;\n Modulo moduloRighe = null;\n\n Campo campoOrdineRiga = null;\n\n int codPiatto = 0;\n int codiceMenu = 0;\n int codiceCategoria = 0;\n\n Filtro filtro = null;\n\n int ordineMassimo = 0;\n Integer nuovoOrdine = null;\n int valoreOrdine = 0;\n Integer valoreNuovo = null;\n\n Object valore = null;\n int[] chiavi = null;\n int chiave = 0;\n\n try { // prova ad eseguire il codice\n\n /* regolazione variabili di lavoro */\n moduloRighe = this.getModulo();\n moduloPiatto = this.getModuloPiatto();\n campoOrdineRiga = this.getModulo().getCampoOrdine();\n\n /* recupera il codice del piatto dalla riga */\n valore = moduloRighe.query().valoreCampo(RMP.CAMPO_PIATTO, codRiga);\n codPiatto = Libreria.objToInt(valore);\n\n /* recupera il codice del menu dalla riga */\n valore = moduloRighe.query().valoreCampo(RMP.CAMPO_MENU, codRiga);\n codiceMenu = Libreria.objToInt(valore);\n\n /* recupera il codice categoria dal piatto */\n valore = moduloPiatto.query().valoreCampo(Piatto.CAMPO_CATEGORIA, codPiatto);\n codiceCategoria = Libreria.objToInt(valore);\n\n /* crea un filtro per ottenere tutte le righe comandabili di\n * questa categoria esistenti nel menu */\n filtro = this.filtroRigheCategoriaComandabili(codiceMenu, codiceCategoria);\n\n /* aggiunge un filtro per escludere la riga corrente */\n filtro.add(this.filtroEscludiRiga(codRiga));\n\n /* determina il massimo numero d'ordine tra le righe selezionate dal filtro */\n ordineMassimo = this.getModulo().query().valoreMassimo(campoOrdineRiga, filtro);\n\n /* determina il nuovo numero d'ordine da assegnare alla riga */\n if (ordineMassimo != 0) {\n nuovoOrdine = new Integer(ordineMassimo + 1);\n } else {\n nuovoOrdine = new Integer(1);\n } /* fine del blocco if-else */\n\n /* apre un \"buco\" nella categoria spostando verso il basso di una\n * posizione tutte le righe di questa categoria che hanno un numero\n * d'ordine uguale o superiore al numero d'ordine della nuova riga\n * (sono le righe non comandabili) */\n\n /* crea un filtro per selezionare le righe non comandabili della categoria */\n filtro = filtroRigheCategoriaNonComandabili(codiceMenu, codiceCategoria);\n\n /* aggiunge un filtro per escludere la riga corrente */\n filtro.add(this.filtroEscludiRiga(codRiga));\n\n /* recupera le chiavi dei record selezionati dal filtro */\n chiavi = this.getModulo().query().valoriChiave(filtro);\n\n /* spazzola le chiavi */\n for (int k = 0; k < chiavi.length; k++) {\n chiave = chiavi[k];\n valore = this.getModulo().query().valoreCampo(campoOrdineRiga, chiave);\n valoreOrdine = Libreria.objToInt(valore);\n valoreNuovo = new Integer(valoreOrdine + 1);\n this.getModulo().query().registraRecordValore(chiave, campoOrdineRiga, valoreNuovo);\n } // fine del ciclo for\n\n /* assegna il nuovo ordine alla riga mettendola nel buco */\n this.getModulo().query().registraRecordValore(codRiga, campoOrdineRiga, nuovoOrdine);\n\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "public void afficher(Zoe zoe, ArrayList<Monstre> monstres){\r\n\r\n // cree une carte de symboles ASCII\r\n int longueurTab = this.tabCellules.length;\r\n int longueurLigne = this.tabCellules[0].length;\r\n String[][] carteCaracteres = new String[longueurTab][longueurLigne];\r\n\r\n for(int i = 0; i < longueurTab; i++){\r\n for(int j = 0; j < longueurLigne; j++){\r\n if (this.tabCellules[i][j] != null){\r\n carteCaracteres[i][j] = this.tabCellules[i][j].toString();\r\n } else {\r\n carteCaracteres[i][j] = \" \";\r\n }\r\n }\r\n }\r\n\r\n // place les monstres sur la carte\r\n Iterator<Monstre> it = monstres.iterator();\r\n while (it.hasNext()) {\r\n Monstre monstre = it.next();\r\n int x = monstre.getCoordX();\r\n int y = monstre.getCoordY();\r\n\r\n if (monstre.getVivant()) { // priorite d'affichage pour les monstres vivants\r\n carteCaracteres[y][x] = monstre.toString();\r\n } else if (!monstre.getVivant() && carteCaracteres[y][x].equals(\" \")) {\r\n carteCaracteres[y][x] = monstre.toString();\r\n }\r\n }\r\n\r\n // place Zoe sur la carte\r\n carteCaracteres[zoe.getCoordY()][zoe.getCoordX()] = zoe.toString();\r\n\r\n // affiche la carte contenant Zoe et les monstres\r\n String chaineCarac = \"\"; //\r\n for(int i = 0; i < carteCaracteres.length; i ++){\r\n String[] ligne = carteCaracteres[i];\r\n for(int j = 0; j < ligne.length; j++) {\r\n chaineCarac += ligne[j];\r\n }\r\n System.out.println(chaineCarac);\r\n chaineCarac = \"\";\r\n }\r\n }", "public void listar(){\r\n // Verifica si la lista contiene elementoa.\r\n if (!esVacia()) {\r\n // Crea una copia de la lista.\r\n Nodo aux = inicio;\r\n // Posicion de los elementos de la lista.\r\n int i = 0;\r\n // Recorre la lista hasta el final.\r\n while(aux != null){\r\n // Imprime en pantalla el valor del nodo.\r\n System.out.print(i + \".[ \" + aux.getValor() + \" ]\" + \" -> \");\r\n // Avanza al siguiente nodo.\r\n aux = aux.getSiguiente();\r\n // Incrementa el contador de la posión.\r\n i++;\r\n }\r\n }\r\n }", "private void srediTabelu() {\n\n mtu = (ModelTabeleUlica) jtblUlica.getModel();\n ArrayList<Ulica> ulice = kontrolor.Kontroler.getInstanca().vratiUlice();\n mtu.setLista(ulice);\n\n }", "private final void inicializarListas() {\r\n\t\t//Cargo la Lista de orden menos uno\r\n\t\tIterator<Character> it = Constantes.LISTA_CHARSET_LATIN.iterator();\r\n\t\tCharacter letra;\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tletra = it.next();\r\n\t\t\tthis.contextoOrdenMenosUno.crearCharEnContexto(letra);\r\n\t\t}\r\n\t\t\r\n\t\tthis.contextoOrdenMenosUno.crearCharEnContexto(Constantes.EOF);\r\n\t\t\r\n\t\tthis.contextoOrdenMenosUno.actualizarProbabilidades();\r\n\t\t\r\n\t\t//Cargo las listas de ordenes desde 0 al orden definido en la configuración\r\n\t\tOrden ordenContexto;\r\n\t\tfor (int i = 0; i <= this.orden; i++) {\r\n\t\t\tordenContexto = new Orden();\r\n\t\t\tthis.listaOrdenes.add(ordenContexto);\r\n\t\t}\r\n\t}", "public ListaPracownikow() {\n generujPracownikow();\n //dodajPracownika();\n }", "private static List<Aeropuerto> llenarAeropuertos(){\n List<Aeropuerto> res = new ArrayList<>();\n res.add(new Aeropuerto(\"la paz\",LocalTime.of(06,0,0),LocalTime.of(23,59,0)));\n res.add(new Aeropuerto(\"cochabamba\",LocalTime.of(06,0,0),LocalTime.of(23,59,0)));\n res.add(new Aeropuerto(\"santa cruz\",LocalTime.of(06,20,0),LocalTime.of(23,59,0)));\n res.add(new Aeropuerto(\"tarija\",LocalTime.of(06,10,0),LocalTime.of(18,0,0)));\n res.add(new Aeropuerto(\"sucre\",LocalTime.of(06,0,0),LocalTime.of(18,0,0)));\n res.add(new Aeropuerto(\"oruro\",LocalTime.of(06,15,0),LocalTime.of(18,0,0)));\n res.add(new Aeropuerto(\"potosi\",LocalTime.of(06,10,0),LocalTime.of(18,0,0)));\n res.add(new Aeropuerto(\"beni\",LocalTime.of(06,0,0),LocalTime.of(18,0,0)));\n res.add(new Aeropuerto(\"pando\",LocalTime.of(06,0,0),LocalTime.of(18,0,0)));\n return res;\n }", "public List getTrabajadores();", "private ArrayList wylosujZamowienie(MenuPosilkow mojeMenu){\n ArrayList<Restauracja> zamowienie=new ArrayList<>();\n Random rozmiarZamowienia=new Random();\n if(mojeMenu.getMenu().size()>0){\n for (int x=0;x<rozmiarZamowienia.nextInt(mojeMenu.getMenu().size());x++){\n int nrDania=rozmiarZamowienia.nextInt(mojeMenu.getMenu().size());\n Restauracja danie=(Restauracja) mojeMenu.getMenu().get(nrDania);\n zamowienie.add(danie);\n }\n }\n return zamowienie;\n }", "@Override\r\n\tpublic List<CommandeDistri> Offre(List<CommandeDistri> o) {\n\t\treturn null;\r\n\t}", "public void genererchemin() {\r\n\t\tRandom hauteur1 = new Random();\r\n\t\tRandom longueur2 = new Random();\r\n\t\tRandom choix = new Random();\r\n\t\tArrayList chemin = new ArrayList();\r\n\t\tSystem.out.println(this.getHauteur());\r\n\t\tSystem.out.println(this.getLargeur());\r\n\t\tint milieu = getLargeur() / 2;\r\n\t\t//System.out.println(milieu);\r\n\t\tCoordonnees c = new Coordonnees(milieu, hauteur1.nextInt(\r\n\t\t\t\tgetLargeur()));\r\n\t\tchemin.add(c);\r\n\t\tchemin.add(new Coordonnees(0, 0));\r\n\t\tchemin.add(new Coordonnees(getLargeur() - 1, getHauteur() - 1));\r\n\t\tCoordonnees droite = new Coordonnees(milieu + 1, c.getHauteur());\r\n\t\tchemin.add(droite);\r\n\t\tCoordonnees gauche = new Coordonnees(milieu - 1, c.getHauteur());\r\n\t\tchemin.add(gauche);\r\n\t\tCoordonnees base1 = new Coordonnees(0, 0);\r\n\t\tCoordonnees base2 =new Coordonnees(getLargeur() - 1, getHauteur() - 1);\r\n\r\n\t\twhile (!gauche.equals(base1)) {\r\n\t\t\tif (gauche.getLargeur() == 0) {\r\n\t\t\t\tgauche = new Coordonnees(0, gauche.getHauteur() - 1);\r\n\t\t\t\tchemin.add(gauche);\r\n\t\t\t} else if (gauche.getHauteur() == 0) {\r\n\t\t\t\tgauche = new Coordonnees(gauche.getLargeur() - 1, 0);\r\n\t\t\t\tchemin.add(gauche);\r\n\t\t\t}\r\n\t\t\telse if (choix.nextInt(2) == 0) {\r\n\t\t\t\tgauche = new Coordonnees(gauche.getLargeur() - 1, \r\n\t\t\t\t\t\tgauche.getHauteur());\r\n\t\t\t\tchemin.add(gauche);\r\n\t\t\t} else {\r\n\t\t\t\tgauche = new Coordonnees(gauche.getLargeur(), \r\n\t\t\t\t\t\tgauche.getHauteur() - 1);\r\n\t\t\t\tchemin.add(gauche);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\twhile (!droite.equals(base2)) {\r\n\t\t\tif (droite.getLargeur() == (this.largeur -1)) {\r\n\t\t\t\tdroite = new Coordonnees(droite.getLargeur(), \r\n\t\t\t\t\t\tdroite.getHauteur() + 1);\r\n\t\t\t\tchemin.add(droite);\r\n\r\n\t\t\t} else if (droite.getHauteur() == (this.hauteur -1)) {\r\n\t\t\t\tdroite = new Coordonnees(droite.getLargeur() + 1, \r\n\t\t\t\t\t\tdroite.getHauteur());\r\n\t\t\t\tchemin.add(droite);\r\n\t\t\t\t//System.out.println(\"fais chier\");\r\n\t\t\t}\r\n\t\t\telse if (choix.nextInt(2) == 0) {\r\n\t\t\t\tdroite = new Coordonnees(droite.getLargeur() + 1, \r\n\t\t\t\t\t\tdroite.getHauteur());\r\n\t\t\t\tchemin.add(droite);\r\n\t\t\t} else {\r\n\t\t\t\tdroite = new Coordonnees(droite.getLargeur(), \r\n\t\t\t\t\t\tdroite.getHauteur() + 1);\r\n\t\t\t\tchemin.add(droite);\r\n\t\t\t}\r\n\t\t}\r\n\t\tScanner sc = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Quel est le pourcentage d'obstacle souhaite :\");\r\n\t\tint pourcentage = sc.nextInt();\r\n\t\tint ctp = getHauteur() * getLargeur() * pourcentage / 100;\r\n\t\twhile(ctp >0){\r\n\t\t\tCoordonnees obstacle = new Coordonnees(longueur2.nextInt(getLargeur()), \r\n\t\t\t\t\thauteur1.nextInt(getHauteur()));\r\n\t\t\t//System.out.println(!chemin.contains(obstacle));\r\n\t\t\tif (!chemin.contains(obstacle)) {\r\n\t\t\t\tthis.plateau[obstacle.getHauteur()][obstacle.getLargeur()] = new Obstacle(\r\n\t\t\t\t\t\tobstacle.getHauteur(), obstacle.getLargeur());\r\n\t\t\t\tctp--;\r\n\t\t\t} else {\r\n\t\t\t\t//System.out.println(obstacle + \"est sur le chemin\");\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void rozmiarTablicy()\n {\n iloscWierszy = tabelaDanych.getRowCount();\n iloscKolumn = tabelaDanych.getColumnCount();\n tablica = new int[iloscWierszy][iloscKolumn];\n // wypelnienie tablicy pomocniczej z wartościami tabeli\n for (int i = 0; i < iloscWierszy ; i++)\n {\n for (int j = 0; j < iloscKolumn; j++)\n {\n tablica [i][j] = (int) tabelaDanych.getValueAt(i,j);\n }\n }\n }", "@Override\n\tpublic void sortir() {\n\t\tif (!estVide()) {\n\t\t\tTC next = getProchain();\t\t\t\t//On recupere le prochain\n\t\t\tsalle.get(next.getPrio()).remove(next);\t//Antinomie de entrer\n\t\t}\n\t}", "public void revolver() {\n this.lista = Lista.escojerAleatorio(this, this.size()).lista;\n }", "public void menorEmQuantidade(){\n qtadePorNum.sort(new Matriz.PairValueComparator());\n }", "public ArrayList<String> mostraLlistaAtribs(){\n ArrayList<String> tauleta = new ArrayList<>();\n System.out.print(\"num atribs: \"+list.getNomLlista()+\"\\n\");\n String aux = list.getAtribs().get(0).getNom();\n for (int i=1; i<list.getAtribs().size(); i++){\n aux += \"\\t\" + list.getAtribs().get(i).getNom();\n }\n tauleta.add(aux);\n for (int j=0; j<list.getNumCasos(); j++) {\n aux = list.getAtribs().get(0).getCasos().get(j);\n for (int i = 1; i < list.getAtribs().size(); i++) {\n aux += \"\\t\" + list.getAtribs().get(i).getCasos().get(j);\n }\n tauleta.add(aux);\n }\n return tauleta;\n }", "public ArrayList<Float> leerMapaDesdeBaseDeDatos() {\n listaNumeros.add(2.0f);\r\n listaNumeros.add(3.0f);\r\n listaNumeros.add(4.0f);\r\n listaNumeros.add(5.0f);\r\n listaNumeros.add(1.0f);\r\n return listaNumeros;\r\n }", "private Karta kartaErabaki(ArrayList<ArrayList<Karta>> pMatrizea) \r\n\t{\r\n\t\tKarta karta = (Karta) new KartaNormala(ElementuMota.ELURRA,0,KoloreMota.BERDEA);\r\n\t\tfor(int i=0;i<pMatrizea.size();i++) \r\n\t\t{\r\n\t\t\tfor(int x=0;x<5;x++) \r\n\t\t\t{\r\n\t\t\t\tif(pMatrizea.get(i).get(0).getElementua()!=pMatrizea.get(i).get(1).getElementua() &&\r\n\t\t\t\t\t\tpMatrizea.get(i).get(0).getElementua()!=this.lortuJolastekoKartaPosz(x).getElementua() &&\r\n\t\t\t\t\t\tpMatrizea.get(i).get(1).getElementua()!=this.lortuJolastekoKartaPosz(x).getElementua() &&\r\n\t\t\t\t\t\tpMatrizea.get(i).get(0).getKolorea()!=this.lortuJolastekoKartaPosz(x).getKolorea() &&\r\n\t\t\t\t\t\tpMatrizea.get(i).get(1).getKolorea()!=this.lortuJolastekoKartaPosz(x).getKolorea() &&\r\n\t\t\t\t\t\tthis.lortuJolastekoKartaPosz(x).getBalioa()>karta.getBalioa() &&\r\n\t\t\t\t\t\tthis.lortuJolastekoKartaPosz(x).getErabilgarria()) \r\n\t\t\t\t{\r\n\t\t\t\t\tkarta = lortuJolastekoKartaPosz(x);\r\n\t\t\t\t}\r\n\t\t\t\tif(pMatrizea.get(i).get(0).getElementua()==pMatrizea.get(i).get(1).getElementua() &&\r\n\t\t\t\t\t\tpMatrizea.get(i).get(0).getElementua()==this.lortuJolastekoKartaPosz(x).getElementua() &&\r\n\t\t\t\t\t\tpMatrizea.get(i).get(1).getElementua()==this.lortuJolastekoKartaPosz(x).getElementua() &&\r\n\t\t\t\t\t\tpMatrizea.get(i).get(0).getKolorea()!=this.lortuJolastekoKartaPosz(x).getKolorea() &&\r\n\t\t\t\t\t\tpMatrizea.get(i).get(1).getKolorea()!=this.lortuJolastekoKartaPosz(x).getKolorea() &&\r\n\t\t\t\t\t\tthis.lortuJolastekoKartaPosz(x).getBalioa()>karta.getBalioa() &&\r\n\t\t\t\t\t\tthis.lortuJolastekoKartaPosz(x).getErabilgarria()) \r\n\t\t\t\t{\r\n\t\t\t\t\tkarta = this.lortuJolastekoKartaPosz(x);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn karta;\r\n\t}", "public void darCoordenadasIniciales() \r\n\t{\t\r\n\t\tint coordenadasX = 0;\r\n\t\tint coordenadasY = 1;\r\n\t\tint orientacion = 2;\r\n\t\t\r\n\t\tfor (int x = 0; x<palabras.size();x++) \r\n\t\t{\r\n\t\t\tpalabras.get(x).get(0).setX(Integer.parseInt(manejadorArchivos.getPalabras().get(coordenadasX)));\r\n\t\t\tpalabras.get(x).get(0).setY(Integer.parseInt(manejadorArchivos.getPalabras().get(coordenadasY)));\r\n\t\t\tpalabras.get(x).get(0).setOrientacion(manejadorArchivos.getPalabras().get(orientacion));\r\n\t\t\t\r\n\t\t\t coordenadasX = coordenadasX +4;\r\n\t\t\t coordenadasY = coordenadasY + 4;\r\n\t\t\t orientacion = orientacion + 4;\r\n\t\t}\r\n\t}", "public void listar() {\r\n Collections.sort(coleccion);\r\n for (int i = 0; i < coleccion.size(); i++) {\r\n String resumen = (coleccion.get(i).toString());\r\n JOptionPane.showMessageDialog(null, resumen);\r\n }\r\n }", "public ArrayList<Elezione> caricaElezioni() {\n\t\t\t\n\t\t\tDB db = getDB();\n\t\t\tMap<Integer, Elezione> map = db.getTreeMap(\"elezione\");\n\t\t\tArrayList<Elezione> elezioni = new ArrayList<Elezione>();\n\t\t\tSet<Integer> keys = map.keySet();\n\t\t\tfor (int key : keys) {\n\t\t\t\telezioni.add(map.get(key));\n\t\t\t}\n\t\t\treturn elezioni;\n\t\t}", "public void sortiereTabelleSpiele() {\n sortListe.sort(new Comparator<Spiel>() {\n @Override\n public int compare(Spiel o1, Spiel o2) {\n /*int a=0,b=0;\n if(o1.getStatus()==0)\n {\n a-=100000;\n }\n if(o2.getStatus()==0)\n {\n b-=100000;\n }*/\n return o1.getZeitplanNummer() - o2.getZeitplanNummer();\n }\n });\n tabelle_spiele.setItems(sortListe);\n }", "public ArrayList<Voto> listaDeiVoti() {\n\n\t\tDB db = getDB();\n\t\tMap<Integer, Voto> map = db.getTreeMap(\"voti\");\n\t\t\n\t\tArrayList<Voto> voti = new ArrayList<Voto>();\n\t\t\n\t\tSet<Integer> keys = map.keySet();\n\t\tfor (int key : keys) {\n\t\t\tvoti.add(map.get(key));\n\t\t}\n\t\treturn voti;\n\n\t}", "public void mostrarLista() {\n\n Nodo recorrer = temp;\n while (recorrer != null) {\n\n System.out.println(\"[ \" + recorrer.getDato() + \"]\");\n recorrer = recorrer.getSiguiente();\n\n }\n\n }", "public void Zabojstwa() {\n\t\tSystem.out.println(\"Zabojstwa\");\n\t\tfor(int i=0;i<Plansza.getNiebezpieczenstwoNaPlanszy().size();i++) {\n\t\t\tfor(GenerujNiebezpieczenstwo niebez : Plansza.getNiebezpieczenstwoNaPlanszy()) {\n\n\t\t\t\tif(niebez.getZabojca() instanceof DzikieZwierzeta) {\n\t\t\t\t\tif(niebez.getXniebezpieczenstwo()-1 <= Plansza.getNiewolnikNaPLanszy().getXpolozenie() && niebez.getXniebezpieczenstwo()+1 >= Plansza.getNiewolnikNaPLanszy().getXpolozenie()) {\n\t\t\t\t\t\tif(niebez.getYniebezpieczenstwo()-1 <= Plansza.getNiewolnikNaPLanszy().getYpolozenie() && niebez.getYniebezpieczenstwo()+1 >= Plansza.getNiewolnikNaPLanszy().getYpolozenie()) {\n\t\t\t\t\t\t\tif(Plansza.getNiewolnikNaPLanszy().getUbrania() >= niebez.getZabojca().ZmniejszIloscPopulacja() && Plansza.getNiewolnikNaPLanszy().getJedzenie() >= niebez.getZabojca().ZmniejszIloscPopulacja()) {\n\t\t\t\t\t\t\t\tPlansza.getNiewolnikNaPLanszy().setUbrania(Plansza.getNiewolnikNaPLanszy().getUbrania() - niebez.getZabojca().ZmniejszIloscPopulacja());\n\t\t\t\t\t\t\t\tPlansza.getNiewolnikNaPLanszy().setJedzenie(Plansza.getNiewolnikNaPLanszy().getJedzenie() - niebez.getZabojca().ZmniejszIloscPopulacja());\n\t\t\t\t\t\t\t\tPlansza.getNiewolnikNaPLanszy().setLicznikNiebezpieczenstw(Plansza.getNiewolnikNaPLanszy().getLicznikNiebezpieczenstw()+1);\n\t\t\t\t\t\t\t\tPlansza.getNiebezpieczenstwoNaPlanszy().remove(niebez);\n\t\t\t\t\t\t\t\ti--;\n\t\t\t\t\t\t\t\tbreak;\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}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif(niebez.getZabojca() instanceof Bandyci) {\n\t\t\t\t\tif(niebez.getXniebezpieczenstwo()-1 <= Plansza.getRzemieslnikNaPlanszy().getXpolozenie() && niebez.getXniebezpieczenstwo()+1 >= Plansza.getRzemieslnikNaPlanszy().getXpolozenie()) {\n\t\t\t\t\t\tif(niebez.getYniebezpieczenstwo()-1 <= Plansza.getRzemieslnikNaPlanszy().getYpolozenie() && niebez.getYniebezpieczenstwo()+1 >= Plansza.getRzemieslnikNaPlanszy().getYpolozenie()) {\n\t\t\t\t\t\t\tif(Plansza.getRzemieslnikNaPlanszy().getMaterialy() >= niebez.getZabojca().ZmniejszIloscPopulacja() && Plansza.getRzemieslnikNaPlanszy().getNarzedzia() >= niebez.getZabojca().ZmniejszIloscPopulacja()) {\n\t\t\t\t\t\t\t\tif(GeneratorRandom.RandomOd0(101) <= ZapisOdczyt.getRzemieslnicySzansa()) {\n\t\t\t\t\t\t\t\t\tPlansza.getNiebezpieczenstwoNaPlanszy().remove(niebez);\n\t\t\t\t\t\t\t\t\ti--;\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tPlansza.getRzemieslnikNaPlanszy().setMaterialy(Plansza.getRzemieslnikNaPlanszy().getMaterialy() - niebez.getZabojca().ZmniejszIloscPopulacja());\n\t\t\t\t\t\t\t\tPlansza.getRzemieslnikNaPlanszy().setNarzedzia(Plansza.getRzemieslnikNaPlanszy().getNarzedzia() - niebez.getZabojca().ZmniejszIloscPopulacja());\n\t\t\t\t\t\t\t\tPlansza.getRzemieslnikNaPlanszy().setLicznikNiebezpieczenstw(Plansza.getRzemieslnikNaPlanszy().getLicznikNiebezpieczenstw()+1);\n\t\t\t\t\t\t\t\tPlansza.getNiebezpieczenstwoNaPlanszy().remove(niebez);\n\t\t\t\t\t\t\t\ti--;\n\t\t\t\t\t\t\t\tbreak;\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}\n\t\t\t\t\n\t\t\t\tif(niebez.getZabojca() instanceof Zlodzieje) {\n\t\t\t\t\tif(niebez.getXniebezpieczenstwo()-1 <= Plansza.getArystokrataNaPlanszy().getXpolozenie() && niebez.getXniebezpieczenstwo()+1 >= Plansza.getArystokrataNaPlanszy().getXpolozenie()) {\n\t\t\t\t\t\tif(niebez.getYniebezpieczenstwo()-1 <= Plansza.getArystokrataNaPlanszy().getYpolozenie() && niebez.getYniebezpieczenstwo()+1 >= Plansza.getArystokrataNaPlanszy().getYpolozenie()) {\n\t\t\t\t\t\t\tif(Plansza.getArystokrataNaPlanszy().getTowary() >= niebez.getZabojca().ZmniejszIloscPopulacja() && Plansza.getArystokrataNaPlanszy().getZloto() >= niebez.getZabojca().ZmniejszIloscPopulacja()) {\n\t\t\t\t\t\t\t\tPlansza.getArystokrataNaPlanszy().setTowary(Plansza.getArystokrataNaPlanszy().getTowary() - niebez.getZabojca().ZmniejszIloscPopulacja());\n\t\t\t\t\t\t\t\tPlansza.getArystokrataNaPlanszy().setZloto(Plansza.getArystokrataNaPlanszy().getZloto() - niebez.getZabojca().ZmniejszIloscPopulacja());\n\t\t\t\t\t\t\t\tPlansza.getArystokrataNaPlanszy().setLicznikNiebezpieczenstw(Plansza.getArystokrataNaPlanszy().getLicznikNiebezpieczenstw()+1);\n\t\t\t\t\t\t\t\tPlansza.getNiebezpieczenstwoNaPlanszy().remove(niebez);\n\t\t\t\t\t\t\t\ti--;\n\t\t\t\t\t\t\t\tbreak;\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}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "public void darCoordenadas() {\r\n\t\t\r\n\t\tfor(int x = 0; x<palabras.size(); x++) {\r\n\t\t\t\r\n\t\t\tif (palabras.get(x).get(0).getOrientacion().equals(\"V\")) {\r\n\t\t\t\tint coordenadaX = palabras.get(x).get(0).getX();\r\n\t\t\t\tint coordenadaY = palabras.get(x).get(0).getY();\r\n\t\t\t\t\r\n\t\t\t\tfor(int y = 1; y < palabras.get(x).size(); y++) \r\n\t\t\t\t{\r\n\t\t\t\t\tcoordenadaY++;\r\n\t\t\t\t\tpalabras.get(x).get(y).setX(coordenadaX);\r\n\t\t\t\t\tpalabras.get(x).get(y).setY(coordenadaY);\r\n\t\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\t\r\n\t\t\tif (palabras.get(x).get(0).getOrientacion().equals(\"H\") ) {\r\n\t\t\t\t\r\n\t\t\t\tint coordenadaX = palabras.get(x).get(0).getX();\r\n\t\t\t\tint coordenadaY = palabras.get(x).get(0).getY();\r\n\t\t\t\t\r\n\t\t\t\tfor(int y = 1; y < palabras.get(x).size(); y++) \r\n\t\t\t\t{\r\n\t\t\t\t\tcoordenadaX++;\r\n\t\t\t\t\tpalabras.get(x).get(y).setX(coordenadaX);\r\n\t\t\t\t\tpalabras.get(x).get(y).setY(coordenadaY);\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}", "protected List<String> listaVociCorrelate() {\n return null;\n }", "public listaAlumnos()\r\n\t{\r\n\t\tinicio = fin = null; \r\n\t}", "ArrayList<Float> pierwszaPredykcja()\n\t{\n\t\tif (Stale.scenariusz<100)\n\t\t{\n\t\t\treturn pierwszaPredykcjaNormal();\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//dla scenariusza testowego cnea predykcji jest ustawiana na 0.30\n\t\t\tArrayList<Float> L1 = new ArrayList<>();\n\t\t\tL1.add(0.30f);\n\t\t\treturn L1;\n\t\t}\n\t}", "public ArreiList() {\n koko = 0;\n }", "public void ordenarXPuntajeSeleccion() {\r\n\t\tfor (int i = 0; i < datos.size()-1; i++) {\r\n\t\t\tJugador menor = datos.get(i);\r\n\t\t\tint cual = i;\r\n\t\t\tfor (int j = i + 1; j < datos.size(); j++ ) {\r\n\t\t\t\tif(datos.get(j).compareTo(menor) < 0) {\r\n\t\t\t\t\tmenor = datos.get(j);\r\n\t\t\t\t\tcual = j;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tJugador temp = datos.get(i);\r\n\t\t\tdatos.set(i, menor);\r\n\t\t\tdatos.set(cual, temp);\r\n\t\t}\r\n\t}", "public void consulterSoldes() {\n\t\tint i=0;\n\t\tfor (Compte compte : listeComptes) {\n\t\t\ti++;\n\t \tSystem.out.println(i+\". Compte n°\"+compte.getNumero()+\" : solde=\"+compte.getSolde());\n\t\t}\n\t}", "private void listarEntidades() {\r\n\t\tsetListEntidades(new ArrayList<EntidadDTO>());\r\n\t\tgetListEntidades().addAll(entidadController.encontrarTodos());\r\n\t\tif (!getListEntidades().isEmpty()) {\r\n\t\t\tfor (EntidadDTO entidadDTO : getListEntidades()) {\r\n\t\t\t\t// Conversión de decimales.\r\n\t\t\t\tDouble porcentaje = entidadDTO.getPorcentajeValorAsegurable() * 100;\r\n\t\t\t\tdouble por = Math.round(porcentaje * Math.pow(10, 2)) / Math.pow(10, 2);\r\n\t\t\t\tentidadDTO.setPorcentajeValorAsegurable(por);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic final String[] getHabilidadesRaza() {\r\n\t\treturn new String[] {\"Golpe Defensa\", \"Mordisco de Vida\"};\r\n\t}", "public void trukstaEilutese(){\n\n for (int i=0; i<9; i++) { //skaito eilutes\n\n System.out.print(i+\" : \"); //skaito kiekviena skaiciu is eiles\n\n truksta_eilutese [i] = new ArrayList<Integer>();\n\n Langelis langelis = new Langelis();\n\n for (Integer x_skaicius=1; x_skaicius<10; x_skaicius++){ //ciklas sukti naujam nezinomajam x_skaicius duota reiksme1 maziau nei 10, ++ kad ima sekanti nezinomaji\n\n //System.out.print(java.util.Arrays.asList(sudoku_skaiciai[i]).indexOf(x_skaicius));\n\n langelis.nustatyti(x_skaicius);\n\n if (Arrays.asList(sudoku_skaiciai[i]).indexOf(langelis)== -1){ //????\n\n System.out.print(x_skaicius+\" \"); //israso nezinomas reiksmes\n\n truksta_eilutese[i].add(x_skaicius);\n }\n }\n System.out.println(); //???\n }\n }", "public void ordenarHabitantesDesc() {\r\n Collections.sort(ciudades, new HabitantesComparator());\r\n Collections.reverse(ciudades);\r\n }", "public void ordenarHabitantesAsc() {\r\n Collections.sort(ciudades, new HabitantesComparator());\r\n }", "public List<Fortaleza> listarFortalezas(){\r\n return cVista.listarFortalezas();\r\n }", "public DobbeltLenketListe() {\n this.hode= null;\n this.hale= null;\n antall=0; }", "public List<Cliente> mostrarClientesPos()\n\t{\n\t\tCliente p;\n\t\tif (! clientes.isEmpty())\n\t\t{\n\t\t\tSet<String> ll = clientes.keySet();\n\t\t\tList<String> li = new ArrayList<String>(ll);\n\t\t\tCollections.sort(li);\n\t\t\tListIterator<String> it = li.listIterator();\n\t\t\tList<Cliente> cc = new ArrayList<Cliente>();\n\t\t\twhile(it.hasNext())\n\t\t\t{\n\t\t\t\tp = clientes.get(it.next());\n\t\t\t\tif(p.tienePost())\n\t\t\t\t\tcc.add(p);\n\t\t\t\t\n\t\t\t}\n\t\t\tCollections.sort(cc, new CompararCedulasClientes());\n\t\t\treturn cc;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t}", "public void StampaPotenziali()\r\n {\r\n System.out.println(\"----\"+this.nome+\"----\\n\"); \r\n \r\n if(!Potenziale.isEmpty())\r\n {\r\n Set<Entry<Integer,ArrayList<Carta>>> Es = Potenziale.entrySet();\r\n \r\n for(Entry<Integer,ArrayList<Carta>> E : Es)\r\n {\r\n System.out.println(\" -OPZIONE \"+E.getKey()+\"\");\r\n\r\n for(Carta c : E.getValue())\r\n {\r\n System.out.println(\" [ \"+c.GetName()+\" ]\");\r\n }\r\n \r\n System.out.println(\"\\n\");\r\n }\r\n }\r\n else\r\n {\r\n System.out.println(\"-NESSUNA CARTA O COMBINAZIONE DI CARTE ASSOCIATA-\\n\");\r\n }\r\n }", "public void mostrarlistainciofin(){\n if(!estavacia()){\n String datos=\"<=>\";\n nododoble auxiliar=inicio;\n while(auxiliar!=null){\n datos=datos+\"[\"+auxiliar.dato+\"]<=>\";\n auxiliar=auxiliar.siguiente;\n }\n JOptionPane.showMessageDialog(null,datos,\n \"Mostraando lista de incio a fin\",JOptionPane.INFORMATION_MESSAGE);\n } }", "@Override\n\tpublic List<Arco> obtenerArcos() {\n\t\treturn arcos;\n\t}", "public Vector listaTitulaciones()\n {\n try\n {\n\n //Se obtiene una conexion\n Connection conexion = this.bbdd.getConexion();\n\n //Se prepara la query\n String query = \"SELECT * FROM titulaciones WHERE activa='s'\";\n\n //Se crea un vector de asignaturas\n Vector vectorTitulaciones = new Vector();\n\n //Se ejecuta la query\n Statement st = conexion.createStatement();\n ResultSet resultado = st.executeQuery(query);\n\n //Para cada fila se creará un objeto y se rellenará\n //con los valores de las columnas.\n while(resultado.next())\n {\n titulacion titulacion = new titulacion();\n\n titulacion.setCodigo(resultado.getString(\"codigo\"));\n titulacion.setTitulacion(resultado.getString(\"titulacion\"));\n\n //Se añade la asignatura al vector de asignaturas\n vectorTitulaciones.add(titulacion);\n }\n\n //Se cierra la conexión\n this.bbdd.cerrarConexion(conexion);\n\n return vectorTitulaciones;\n }\n catch(SQLException e)\n {\n System.out.println(\"Error al acceder a las titulaciones de la Base de Datos: \"+e.getMessage());\n return null;\n }\n }", "public List<String>top10Utilizadores() {\n Map<String,List<String>> utilizadorEncomendas = new HashMap<String,List<String>>();\n \n for(Encomenda e : this.encomendas.values()) {\n if(!utilizadorEncomendas.containsKey(e.getCodigoUtilizador())) {\n utilizadorEncomendas.put(e.getCodigoUtilizador(), new ArrayList<>());\n }\n utilizadorEncomendas.get(e.getCodigoUtilizador()).add(e.getCodigoEncomenda());\n }\n \n // a partir do primeiro map criar um segundo com codigo de utilizador e numero de encomendas\n // a razao de ser um double é porque o mesmo comparator é também utilizado no metodo List<String>top10Transportadores()\n Map<String,Double> utilizadoresNumeroEncs = new HashMap<>();\n \n Iterator<Map.Entry<String, List<String>>> itr = utilizadorEncomendas.entrySet().iterator(); \n \n while(itr.hasNext()) { \n Map.Entry<String, List<String>> entry = itr.next(); \n utilizadoresNumeroEncs.put(entry.getKey(), Double.valueOf(entry.getValue().size()));\n }\n \n MapStringDoubleComparator comparator = new MapStringDoubleComparator(utilizadoresNumeroEncs);\n \n // criar map ordenado (descending)\n TreeMap<String, Double> utilizadorNumeroEncsOrdenado = new TreeMap<String, Double>(comparator);\n \n utilizadorNumeroEncsOrdenado.putAll(utilizadoresNumeroEncs);\n \n // retornar a lista de codigos de utilizadores pretendida\n return utilizadorNumeroEncsOrdenado.keySet()\n .stream()\n .limit(10)\n .collect(Collectors.toList()); \n }", "public List<Long> getAlleKontonummern() {\n return new LinkedList<>(kontoMap.keySet());\n }", "private void populateAltitudes()\r\n {\r\n for(int i=0; i<9; i++)\r\n {\r\n cboAltitude.addItem(aryAltitudes[i]);\r\n }\r\n }", "public ListaPalabras() {\n\n //pos=0;\n }", "public void skratiListu() {\n if (!jePrazna()) {\n int n = Svetovid.in.readInt(\"Unesite broj elemenata za skracivanje: \");\n obrniListu(); //Zato sto se trazi odsecanje poslednjih n elemenata\n while (prvi != null && n > 0) {\n prvi = prvi.veza;\n n--;\n }\n obrniListu(); //Vraca listu u prvobitni redosled\n }\n }", "public static List<Integer> czytanieMotorniczego(){\r\n int numerMotorniczego;\r\n int wiek=0;\r\n int doswiadczenie = 0;\r\n String line;\r\n OdczytZPliku plik = new OdczytZPliku();\r\n InputStream zawartosc = plik.pobierzZPliku(\"bazamotorniczych.txt\");\r\n String numerWStringu = String.valueOf( numerMotorniczego = (int) (Math.random() * 4));\r\n try (InputStreamReader odczyt = new InputStreamReader(zawartosc, StandardCharsets.UTF_8);\r\n BufferedReader czytaj = new BufferedReader(odczyt)) {\r\n while ((line = czytaj.readLine()) != null) {\r\n if (line.equals(numerWStringu)) {\r\n wiek = Integer.parseInt(czytaj.readLine());\r\n doswiadczenie = Integer.parseInt(czytaj.readLine());\r\n break;\r\n }\r\n else{\r\n for (int i = 0; i < 2; i++) {\r\n line = czytaj.readLine();\r\n }\r\n }\r\n }\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n return List.of(numerMotorniczego, wiek, doswiadczenie);\r\n }", "public static void generar_arbol(ArrayList columna,ArrayList valores,Double infodeT,ArrayList arbol, int profundidad) throws SQLException{\n\t\tHashMap mapa=new HashMap();\n\t\tArrayList nodo=new ArrayList();\n\t\tArrayList valores_aux=new ArrayList();\n\t\tArrayList valores_col_decision=new ArrayList();\n\t\tint ultimo_valor=0;\n\t\tint ultima_columna=0;\n\t\tmapa=DataBase.ParseoDB(columna, valores);\n\t\tSystem.out.println(\"columna: \"+columna);\n\t\tSystem.out.println(\"valores:\"+valores);\n\t\tvalores_col_decision=DataBase.getCantidadValores(columna, valores);\n\t\tnodo=calcular_nodo(mapa,valores_col_decision);\n\t\tinfodeT=Double.parseDouble(nodo.get(1).toString());\n\t\tif(infodeT != 0 && !nodo.get(0).equals(\"\")){\n\t\t\t//if(!nodo.get(0).equals(\"\")){\n\t\t\t\tcolumna.add(nodo.get(0));\n\t\t\t\t//arbol.add(\",\");\n\t\t\t\tarbol.add(nodo.get(0));\n\t\t\t\n\t\t\t\tvalores_aux=DataBase.getValoresCol(nodo.get(0).toString());\n\t\t\t\tarbol.add(\"@\");\n\t\t\t//}\n\t\t\tint aux_modificar_arbol;\n\t\t\twhile(!valores_aux.isEmpty()){\n\t\t\t\tarbol.add(profundidad);\n\t\t\t\tvalores.add(valores_aux.get(0));\n\t\t\t\tarbol.add(valores_aux.get(0));\n\t\t\t\tvalores_aux.remove(0);\n\t\t\t\tgenerar_arbol(columna, valores, infodeT,arbol, profundidad+1);\n\t\t\t\taux_modificar_arbol=arbol.size()-1;\n\t\t\t\tif(!arbol.get(aux_modificar_arbol).equals(\"\")){\n\t\t\t\t\tarbol.add(\"*\");\n\t\t\t\t}else{\n\t\t\t\t\tarbol.remove(aux_modificar_arbol);\n\t\t\t\t\tarbol.remove(aux_modificar_arbol-1);\n\t\t\t\t\tarbol.remove(aux_modificar_arbol-2);\n\t\t\t\t}\n\t\t\t}\n\t\t\tultima_columna=columna.size()-1;\n\t\t\tcolumna.remove(ultima_columna);\n\t\t\t//arbol.add(\"#\");\n\t\t\tif(!valores.isEmpty()){\n\t\t\t\tultimo_valor=valores.size()-1;\n\t\t\t\tvalores.remove(ultimo_valor);\n\t\t\t}\n\t\t}else{\n\t\t\tultimo_valor=valores.size()-1;\n\t\t\tvalores.remove(ultimo_valor);\n\t\t\tif(!nodo.get(2).equals(\"\")){\n\t\t\t\tarbol.add(nodo.get(2));\n\t\t\t\tSystem.out.println(\"\\nEs un nodo hoja con valor \"+nodo.get(2)+\"\\n\");\n\t\t\t}\n\t\t\tif(nodo.get(3).toString().equals(\"0\")){\n\t\t\t\tultimo_valor=arbol.size()-1;\n\t\t\t\tarbol.remove(ultimo_valor);\n\t\t\t\tarbol.add(\"\");\n\t\t\t}\n\t\t}\n\t\n }", "public Liste(){\n\t\tsuper();\n\t\tthis.liste = new int[this.BASE_LENGTH];\n\t\tthis.nb = 0;\n\t}", "public void OrdenarIndividuos(int izq, int der) {\n Individuo pivote = (Individuo) individuos.get(izq); // tomamos primer elemento como pivote\r\n int i = izq; // i realiza la búsqueda de izquierda a derecha\r\n int j = der; // j realiza la búsqueda de derecha a izquierda\r\n Individuo ind;\r\n int aux;\r\n\r\n while (i < j) { // mientras no se crucen las búsquedas\r\n while (individuos.get(i).getEvaluacion() <= pivote.getEvaluacion() && i < j) {\r\n i++; // busca elemento mayor que pivote\r\n }\r\n while (individuos.get(j).getEvaluacion() > pivote.getEvaluacion()) {\r\n j--; // busca elemento menor que pivote\r\n }\r\n if (i < j) {\r\n ind = (Individuo) individuos.get(i); // si no se han cruzado \r\n //aux= A[i]; // los intercambia\r\n individuos.set(i, individuos.get(j));\r\n //A[i]=A[j];\r\n individuos.set(j, ind);\r\n //A[j]=aux;\r\n }\r\n }\r\n individuos.set(izq, individuos.get(j));\r\n //A[izq]=A[j]; // se coloca el pivote en su lugar de forma que tendremos\r\n individuos.set(j, pivote);\r\n //A[j]=pivote; // los menores a su izquierda y los mayores a su derecha\r\n if (izq < j - 1) {\r\n OrdenarIndividuos(izq, j - 1); // ordenamos subarray izquierdo\r\n }\r\n if (j + 1 < der) {\r\n OrdenarIndividuos(j + 1, der); // ordenamos subarray derecho\r\n } \r\n }", "@Override\r\n\tpublic List<CommandeDistri> offre(List<CommandeDistri> list) {\n\t\treturn null;\r\n\t}", "private void lisaaMiinaVasemmalle(int i, int j) {\n ArrayList<Ruutu> lista;\n if (i - 1 >= 0) {\n lista = this.ruudukko[i - 1];\n lista.get(j).setViereisetMiinat(1);\n if (j - 1 >= 0) {\n lista.get(j - 1).setViereisetMiinat(1);\n }\n if (j + 1 < x) {\n lista.get(j + 1).setViereisetMiinat(1);\n }\n }\n }", "public List<Tripulante> obtenerTripulantes();", "public void mostrarLista(){\n Nodo recorrer = inicio;\n while(recorrer!=null){\n System.out.print(\"[\"+recorrer.edad+\"]-->\");\n recorrer=recorrer.siguiente;\n }\n System.out.println(recorrer);\n }", "public void MostrarListas (){\n Nodo recorrer=inicio; // esto sirve para que el elemento de la lista vaya recorriendo conforme se inserta un elemento\r\n System.out.println(); // esto nos sirve para dar espacio a la codificacion de la lista al imprimir \r\n while (recorrer!=null){ // esta secuencia iterativa nos sirve para repetir las opciones del menu\r\n System.out.print(\"[\" + recorrer.dato +\"]--->\");\r\n recorrer=recorrer.siguiente;\r\n }\r\n }", "@Override\r\n\tpublic List<Turista> conMasPuntos() {\n\t\treturn (List<Turista>) turistaDAO.conMasPuntos();\r\n\t}", "public static void listarAsiduos(ArrayList<Usuario> usuarios) {\n ArrayList<Usuario> asiduos = usuarios;\n Collections.sort(asiduos,Collections.reverseOrder());//ordenar lista\n for(Usuario u: asiduos){\n System.out.print(u);\n }\n }", "public void imprimirLista() {\n NodoListaDoble<T> tmp = raiz;\n\n if (this.raiz == null) {\n System.out.println(\"Lista vacia\");\n } else {\n System.out.println(\"--------------------------\");\n while (tmp != null) {\n System.out.println(tmp.toString());\n tmp = tmp.getSiguiente();\n }\n System.out.println(\"--------------------------\");\n }\n }", "public void ingresarUbigeo() {\n\t\t\tlog.info(\"ingresarUbigeo :D a --- \" + idUbigeo1);\r\n\t\t\tubigeoDefecto = \"otro ubigeo\";\r\n\t\t\tIterator it = comboManager.getUbigeoDeparItems().entrySet().iterator();\r\n\t\t\tIterator it2 = comboManager.getUbigeoProvinItems().entrySet().iterator();\r\n\t\t\tIterator it3 = comboManager.getUbigeoDistriItems().entrySet().iterator();\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tMap.Entry e = (Map.Entry) it.next();\r\n\t\t\tSystem.out.println(\"key \" + e.getKey() + \" value \" + e.getValue());\r\n\t\tif (e.getValue().toString().equals(idDepartamento)) {\r\n\t\t\tubigeoDefecto = (String) e.getKey();\r\n\t\t\tlog.info(\"ubigeo depa \" + ubigeoDefecto);\r\n\t\tbreak;\r\n\t\t\t}\r\n\t\t\t}\r\n\t\twhile (it2.hasNext()) {\r\n\t\t\tMap.Entry e = (Map.Entry) it2.next();\r\n\t\t\tSystem.out.println(\"key \" + e.getKey() + \" value \" + e.getValue());\r\n\t\tif (e.getValue().toString().equals(idProvincia)) {\r\n\t\t\tubigeoDefecto += \"-\" + (String) e.getKey();\r\n\t\t\tlog.info(\"ubigeo prov \" + ubigeoDefecto);\r\n\t\tbreak;\r\n\t\t\t}\r\n\t\t\t}\r\n\t\twhile (it3.hasNext()) {\r\n\t\t\tMap.Entry e = (Map.Entry) it3.next();\r\n\t\t\tSystem.out.println(\"key \" + e.getKey() + \" value \" + e.getValue());\r\n\t\tif (e.getValue().toString().equals(idUbigeo1)) {\r\n\t\t\tubigeoDefecto += \"-\" + (String) e.getKey();\r\n\t\t\tlog.info(\"ubigeo distrito \" + ubigeoDefecto);\r\n\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\tlog.info(\"ubigeo ------> :D \" + ubigeoDefecto);\r\n\t}", "public List<Artikel> getArtikelBestandSortiertNachBezeichnung() {\n\t\tList<Artikel> ergebnis = new Vector<Artikel>();\n\t\tergebnis.addAll(artikelBestand);\n\t\tCollections.sort(ergebnis, new SortierungNachBezeichnung());\n\t\treturn ergebnis;\n\t}", "private static <L> List<L> zza(Object obj, long j, int i) {\n zzgn zzgn;\n List<L> list;\n List<L> zzc = zzc(obj, j);\n if (zzc.isEmpty()) {\n if (zzc instanceof zzgo) {\n list = new zzgn(i);\n } else if (!(zzc instanceof zzhr) || !(zzc instanceof zzge)) {\n list = new ArrayList<>(i);\n } else {\n list = ((zzge) zzc).zzah(i);\n }\n zziu.zza(obj, j, list);\n return list;\n }\n if (zzyp.isAssignableFrom(zzc.getClass())) {\n ArrayList arrayList = new ArrayList(zzc.size() + i);\n arrayList.addAll(zzc);\n zziu.zza(obj, j, arrayList);\n zzgn = arrayList;\n } else if (zzc instanceof zzir) {\n zzgn zzgn2 = new zzgn(zzc.size() + i);\n zzgn2.addAll((zzir) zzc);\n zziu.zza(obj, j, zzgn2);\n zzgn = zzgn2;\n } else if (!(zzc instanceof zzhr) || !(zzc instanceof zzge)) {\n return zzc;\n } else {\n zzge zzge = (zzge) zzc;\n if (zzge.zzch()) {\n return zzc;\n }\n zzge zzah = zzge.zzah(zzc.size() + i);\n zziu.zza(obj, j, zzah);\n return zzah;\n }\n return zzgn;\n }", "private void llenarVacios(int inicial){\n\t\tint[] vecinos = obtenerVecinos(inicial);\n\t\t\n\t\t//Saber cuales vecinos no tienen bombas\n\t\tvacios.clear();\n\t\tvacios.add(inicial);\n\t\tfor(int b = 0; b<Constantes.FILAS*Constantes.COLUMNAS; b++){\n\t\t\tvecinos = obtenerVecinos(vacios.get(b));\n\t\t\tfor(int i =0; i<vecinos.length;i++){\n\t\t\t\tif(vecinos[i] != -1 && LayerBotones.botones[vecinos[i]].getCantBombas() == 0){\n\t\t\t\t\tvacios.add(vecinos[i]);\n\t\t\t\t\tLayerBotones.botones[vecinos[i]].setDescubierto(true);\n\t\t\t\t}else if (vecinos[i] != -1){\n\t\t\t\t\taDespejar.add(vecinos[i]);\n\t\t\t\t\tLayerBotones.botones[vecinos[i]].setDescubierto(true);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor(int i =0; i<vacios.size();i++){\n\t\t\tLayerBotones.botones[vacios.get(i)].setIcon(numeros[0]);\n\t\t\t//LayerBotones.botones[8].ponerIcono();\n\t\t\t\n\t\t}\n\t\tfor(int i =0; i<aDespejar.size();i++){\n\t\t\tLayerBotones.botones[aDespejar.get(i)].ponerIcono();\n\t\t\t//LayerBotones.botones[8].ponerIcono();\n\t\t\t\n\t\t}\n\t\t\n\t}", "public void ordenarXNombreSeleccion() {\r\n\t\tfor (int i = 0; i < datos.size()-1; i++) {\r\n\t\t\tJugador menor = datos.get(i);\r\n\t\t\tint cual = i;\r\n\t\t\tfor (int j = i + 1; j < datos.size(); j++) {\r\n\t\t\t\tif((datos.get(j).compare(datos.get(j), menor))==(-1)) {\r\n\t\t\t\t\tmenor = datos.get(j);\r\n\t\t\t\t\tcual = j;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tJugador temp = datos.get(i);\r\n\t\t\tdatos.set(i, menor);\r\n\t\t\tdatos.set(cual, temp);\r\n\t\t}\r\n\t}", "public void sortareDesc(List<Autor> autoriList){\n\t\tboolean ok;\t\t\t\t \n\t\tdo { \n\t\t ok = true;\n\t\t for (int i = 0; i < autoriList.size() - 1; i++)\n\t\t if (autoriList.get(i).getNrPublicatii() < autoriList.get(i+1).getNrPublicatii()){ \n\t\t \t Autor aux = autoriList.get(i);\t\t//schimbarea intre autori\n\t\t \t Autor aux1 = autoriList.get(i+1);\t\n\t\t \t try {\n\t\t \t\t \trepo.schimbareAutori(aux,aux1);\n\t\t\t } catch (Exception e) {\n\t\t\t System.out.println(e.getMessage());\n\t\t\t }\n\t\t\t\t ok = false;\n\t\t\t}\n\t\t}\n\t while (!ok);\n\t }", "@Override\n\tpublic void crearNuevaPoblacion() {\n\t\t/* Nos quedamos con los mejores individuos. Del resto, cruzamos la mitad, los mejores,\n\t\t * y el resto los borramos.*/\n\t\tList<IIndividuo> poblacion2 = new ArrayList<>();\n\t\tint numFijos = (int) (poblacion.size()/2);\n\t\t/* Incluimos el 50%, los mejores */\n\t\tpoblacion2.addAll(this.poblacion.subList(0, numFijos));\n\t\t\n\t\t/* De los mejores, mezclamos la primera mitad \n\t\t * con todos, juntandolos de forma aleatoria */\n\t\tList<IIndividuo> temp = poblacion.subList(0, numFijos+1);\n\t\tfor(int i = 0; i < temp.size()/2; i++) {\n\t\t\tint j;\n\t\t\tdo {\n\t\t\t\tj = Individuo.aleatNum(0, temp.size()-1);\n\t\t\t}while(j != i);\n\t\t\t\n\t\t\ttry {\n\t\t\t\tpoblacion2.addAll(cruce(temp.get(i), temp.get(j)));\n\t\t\t} catch (CruceNuloException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\t//this.poblacion.clear();\n\t\tthis.poblacion = poblacion2;\n\t}", "public ArrayList getOrdenCartas();" ]
[ "0.6494792", "0.6286487", "0.6282208", "0.6277632", "0.6269715", "0.62358254", "0.6229485", "0.6169609", "0.61433566", "0.6082238", "0.60761327", "0.60573155", "0.60106224", "0.59233296", "0.58865565", "0.5805043", "0.580094", "0.57850826", "0.577507", "0.5756328", "0.5735881", "0.57201153", "0.57132983", "0.5708133", "0.5682839", "0.566849", "0.5660815", "0.56573606", "0.5616729", "0.5614288", "0.56115955", "0.5608902", "0.5607832", "0.5600819", "0.5591911", "0.55762976", "0.5570586", "0.556923", "0.5568984", "0.5567131", "0.55598986", "0.55597025", "0.5559682", "0.5556968", "0.5555241", "0.5545117", "0.55449975", "0.5539958", "0.5537042", "0.5536246", "0.5535263", "0.55350804", "0.5524459", "0.55212134", "0.55116576", "0.5503975", "0.5503104", "0.54893464", "0.54843146", "0.54763114", "0.5474782", "0.5471489", "0.5463712", "0.54634756", "0.5457373", "0.5451032", "0.54496825", "0.5449127", "0.5443239", "0.5441164", "0.54385483", "0.543775", "0.54358184", "0.5432433", "0.54256564", "0.5425534", "0.5423833", "0.54236466", "0.5413218", "0.5412845", "0.5407554", "0.5407311", "0.5407023", "0.54058176", "0.5401034", "0.53968054", "0.5395957", "0.53887826", "0.5387292", "0.53860414", "0.5385661", "0.5382446", "0.5380564", "0.53804433", "0.53782386", "0.5377018", "0.53764576", "0.537266", "0.5372444", "0.5366219", "0.53644425" ]
0.0
-1
rimuove tutti gli oggetti dalla lista
public void removeAllItem() { orderList.clear(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void obrniListu() {\n if (prvi != null && prvi.veza != null) {\n Element preth = null;\n Element tek = prvi;\n \n while (tek != null) {\n Element sled = tek.veza;\n \n tek.veza = preth;\n preth = tek;\n tek = sled;\n }\n prvi = preth;\n }\n }", "private void caricaLista() {\n /** variabili e costanti locali di lavoro */\n ArrayList unaLista = null;\n CampoDati unCampoDati = null;\n CDBLinkato unCampoDBLinkato = null;\n //@todo da cancellare\n try { // prova ad eseguire il codice\n /* recupera il campo DB specializzato */\n unCampoDBLinkato = (CDBLinkato)unCampoParente.getCampoDB();\n\n /* recupera la lista dal campo DB */\n unaLista = unCampoDBLinkato.caricaLista();\n\n /* recupera il campo dati */\n unCampoDati = unCampoParente.getCampoDati();\n\n /* registra i valori nel modello dei dati del campo */\n if (unaLista != null) {\n unCampoDati.setValoriInterni(unaLista);\n// unCampoDatiElenco.regolaElementiAggiuntivi();\n } /* fine del blocco if */\n\n } catch (Exception unErrore) { // intercetta l'errore\n /* mostra il messaggio di errore */\n Errore.crea(unErrore);\n } /* fine del blocco try-catch */\n\n }", "public void listar() {\n\t\t\n\t}", "@Override\n\tpublic ArrayList<Lista> listaListeElettorali() {\n\t\t\t\n\t\t\t\n\t\t\tDB db = getDB();\n\t\t\tMap<Integer, Lista> map = db.getTreeMap(\"liste\");\n\t\t\tArrayList<Lista> liste = new ArrayList<Lista>();\n\t\t\tSet<Integer> keys = map.keySet();\n\t\t\tfor (int key : keys) {\n\t\t\t\tliste.add(map.get(key));\n\t\t\t}\n\t\n\t\t\treturn liste;\n\t\t\t\n\t\t}", "private void listarItems() {\r\n // Cabecera\r\n System.out.println(\"Listado de Items\");\r\n System.out.println(\"================\");\r\n\r\n // Criterio de Ordenación/Filtrado\r\n System.out.printf(\"Criterio de Ordenación .: %S%n\", criOrd.getNombre());\r\n System.out.printf(\"Criterio de Filtrado ...: %S%n\", criFil.getNombre());\r\n\r\n // Separados\r\n System.out.println(\"---\");\r\n\r\n // Filtrado > Selección Colección\r\n List<Item> lista = criFil.equals(Criterio.NINGUNO) ? CARRITO : FILTRO;\r\n\r\n // Recorrido Colección\r\n for (Item item : lista) {\r\n System.out.println(item.toString());\r\n }\r\n\r\n // Pausai\r\n UtilesEntrada.hacerPausa();\r\n }", "private void listViewPendentes(List<Compra> listAll) {\n\t\t\n\t}", "public void MostrarListas (){\n Nodo recorrer=inicio; // esto sirve para que el elemento de la lista vaya recorriendo conforme se inserta un elemento\r\n System.out.println(); // esto nos sirve para dar espacio a la codificacion de la lista al imprimir \r\n while (recorrer!=null){ // esta secuencia iterativa nos sirve para repetir las opciones del menu\r\n System.out.print(\"[\" + recorrer.dato +\"]--->\");\r\n recorrer=recorrer.siguiente;\r\n }\r\n }", "public void listar(){\r\n // Verifica si la lista contiene elementoa.\r\n if (!esVacia()) {\r\n // Crea una copia de la lista.\r\n Nodo aux = inicio;\r\n // Posicion de los elementos de la lista.\r\n int i = 0;\r\n // Recorre la lista hasta el final.\r\n while(aux != null){\r\n // Imprime en pantalla el valor del nodo.\r\n System.out.print(i + \".[ \" + aux.getValor() + \" ]\" + \" -> \");\r\n // Avanza al siguiente nodo.\r\n aux = aux.getSiguiente();\r\n // Incrementa el contador de la posión.\r\n i++;\r\n }\r\n }\r\n }", "public ListaPracownikow() {\n generujPracownikow();\n //dodajPracownika();\n }", "public void ouvrirListe(){\n\t\n}", "public void skratiListu() {\n if (!jePrazna()) {\n int n = Svetovid.in.readInt(\"Unesite broj elemenata za skracivanje: \");\n obrniListu(); //Zato sto se trazi odsecanje poslednjih n elemenata\n while (prvi != null && n > 0) {\n prvi = prvi.veza;\n n--;\n }\n obrniListu(); //Vraca listu u prvobitni redosled\n }\n }", "@Override\n public void HienThiDanhSach(List<DienTu> listdienTu) {\n\n }", "List<ParqueaderoEntidad> listar();", "public void mostrarLista() {\n\n Nodo recorrer = temp;\n while (recorrer != null) {\n\n System.out.println(\"[ \" + recorrer.getDato() + \"]\");\n recorrer = recorrer.getSiguiente();\n\n }\n\n }", "private void listar() throws Exception{\n int resId=1;\n List<PlatoDia> lista = this.servicioRestaurante.listarMenuDia(resId);\n this.modelListEspecial.clear();\n lista.forEach(lse -> {\n this.modelListEspecial.addElement(\"ID: \" + lse.getId() \n + \" NOMBRE: \" + lse.getNombre()\n + \" DESCRIPCION: \" + lse.getDescripcion()\n + \" PRECIO: \" + lse.getPrecio()\n + \" ENTRADA: \"+lse.getEntrada() \n + \" PRINCIPIO: \"+lse.getPrincipio()\n + \" CARNE: \"+lse.getCarne()\n + \" BEBIDA: \"+lse.getBebida()\n + \" DIA: \"+lse.getDiaSemana());\n });\n }", "public void obtenerLista(){\n listaInformacion = new ArrayList<>();\n for (int i = 0; i < listaPersonales.size(); i++){\n listaInformacion.add(listaPersonales.get(i).getId() + \" - \" + listaPersonales.get(i).getNombre());\n }\n }", "private void listarDadosNaTelaEditora(ArrayList<Editora> lista) {\n DefaultTableModel modelEditoras = (DefaultTableModel) jTable_tabelaEditoras.getModel();\n jTable_tabelaEditoras.setRowSorter(new TableRowSorter(modelEditoras));\n //Limpando a tela\n modelEditoras.setNumRows(0);\n //Correr o ArrayList\n for (int pos = 0; pos < lista.size(); pos++) {\n String[] linha = new String[2];\n Editora aux = lista.get(pos);\n linha[0] = \"\"+aux.getId();\n linha[1] = aux.getNome();\n modelEditoras.addRow(linha);\n }\n }", "public void ganarDineroPorAutomoviles() {\n for (Persona p : super.getMundo().getListaDoctores()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaCocineros()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaAlbaniles()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaHerreros()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaCocineros()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n }", "public void afficherListe(){\n StringBuilder liste = new StringBuilder(\"\\n\");\n logger.info(\"OUTPUT\",\"\\nLes produits en vente sont:\");\n for (Aliment aliment : this.productList) { liste.append(\"\\t\").append(aliment).append(\"\\n\"); }\n logger.info(\"OUTPUT\", liste+\"\\n\");\n }", "public void mostrarLista(){\n Nodo recorrer = inicio;\n while(recorrer!=null){\n System.out.print(\"[\"+recorrer.edad+\"]-->\");\n recorrer=recorrer.siguiente;\n }\n System.out.println(recorrer);\n }", "public void llenadoDeCombos() {\n PerfilDAO asignaciondao = new PerfilDAO();\n List<Perfil> asignacion = asignaciondao.listar();\n cbox_perfiles.addItem(\"\");\n for (int i = 0; i < asignacion.size(); i++) {\n cbox_perfiles.addItem(Integer.toString(asignacion.get(i).getPk_id_perfil()));\n }\n \n }", "public void afficheInfos() {\n int i;\n Polygone p;\n for(i=0;i<this.list.size();i++){\n p = (Polygone) this.list.get(i);\n System.out.println(\"–––––––––––––––––––––\");\n System.out.println(\"Type : \" + p.toString());\n System.out.println(\"Sommet :\");\n System.out.print(p.texteSommets());\n System.out.println(\"Perimetre : \" + p.perimetre());\n System.out.println(\"Surface : \" + p.surface());\n System.out.println(\"–––––––––––––––––––––\");\n } \n }", "private List<Pelicula> getLista() {\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"dd-MM-yyyy\");\n\t\tList<Pelicula> lista = null;\n\t\ttry {\n\t\t\tlista = new LinkedList<>();\n\n\t\t\tPelicula pelicula1 = new Pelicula();\n\t\t\tpelicula1.setId(1);\n\t\t\tpelicula1.setTitulo(\"Power Rangers\");\n\t\t\tpelicula1.setDuracion(120);\n\t\t\tpelicula1.setClasificacion(\"B\");\n\t\t\tpelicula1.setGenero(\"Aventura\");\n\t\t\tpelicula1.setFechaEstreno(formatter.parse(\"02-05-2017\"));\n\t\t\t// imagen=\"cinema.png\"\n\t\t\t// estatus=\"Activa\"\n\n\t\t\tPelicula pelicula2 = new Pelicula();\n\t\t\tpelicula2.setId(2);\n\t\t\tpelicula2.setTitulo(\"La bella y la bestia\");\n\t\t\tpelicula2.setDuracion(132);\n\t\t\tpelicula2.setClasificacion(\"A\");\n\t\t\tpelicula2.setGenero(\"Infantil\");\n\t\t\tpelicula2.setFechaEstreno(formatter.parse(\"20-05-2017\"));\n\t\t\tpelicula2.setImagen(\"bella.png\"); // Nombre del archivo de imagen\n\n\t\t\tPelicula pelicula3 = new Pelicula();\n\t\t\tpelicula3.setId(3);\n\t\t\tpelicula3.setTitulo(\"Contratiempo\");\n\t\t\tpelicula3.setDuracion(106);\n\t\t\tpelicula3.setClasificacion(\"B\");\n\t\t\tpelicula3.setGenero(\"Thriller\");\n\t\t\tpelicula3.setFechaEstreno(formatter.parse(\"28-05-2017\"));\n\t\t\tpelicula3.setImagen(\"contratiempo.png\"); // Nombre del archivo de imagen\n\n\t\t\tPelicula pelicula4 = new Pelicula();\n\t\t\tpelicula4.setId(4);\n\t\t\tpelicula4.setTitulo(\"Kong La Isla Calavera\");\n\t\t\tpelicula4.setDuracion(118);\n\t\t\tpelicula4.setClasificacion(\"B\");\n\t\t\tpelicula4.setGenero(\"Accion y Aventura\");\n\t\t\tpelicula4.setFechaEstreno(formatter.parse(\"06-06-2017\"));\n\t\t\tpelicula4.setImagen(\"kong.png\"); // Nombre del archivo de imagen\n\t\t\tpelicula4.setEstatus(\"Inactiva\"); // Esta pelicula estara inactiva\n\t\t\t\n\t\t\t// Agregamos los objetos Pelicula a la lista\n\t\t\tlista.add(pelicula1);\n\t\t\tlista.add(pelicula2);\n\t\t\tlista.add(pelicula3);\n\t\t\tlista.add(pelicula4);\n\n\t\t\treturn lista;\n\t\t} catch (ParseException e) {\n\t\t\tSystem.out.println(\"Error: \" + e.getMessage());\n\t\t\treturn null;\n\t\t}\n\t}", "public ListaDuplamenteEncadeada(){\r\n\t\t\r\n\t}", "public void GetVehiculos() {\n String A = \"&LOCATION=POR_ENTREGAR\";\n String Pahtxml = \"\";\n \n try {\n \n DefaultListModel L1 = new DefaultListModel();\n Pahtxml = Aso.SendGetPlacas(A);\n Lsvehiculo = Aso.Leerxmlpapa(Pahtxml);\n Lsvehiculo.forEach((veh) -> {\n System.out.println(\"Placa : \" + veh.Placa);\n L1.addElement(veh.Placa);\n });\n \n Lista.setModel(L1);\n \n } catch (Exception ex) {\n Logger.getLogger(Entrega.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n }", "private Lista<T> organizar( Lista<T> lista )\r\n {\r\n for( int i = 0; i < lista.darLongitud( ); i++ )\r\n {\r\n for( int j = 0; j < lista.darLongitud( ) - i - 1; j++ )\r\n {\r\n\r\n // Si elemento en la posición j es mayor al elemento en la posición j+1\r\n // se intercambian\r\n if( lista.darElemento( j ).compareTo( lista.darElemento( j + 1 ) ) > 0 )\r\n {\r\n T temp = lista.darElemento( j );\r\n lista.asignar( lista.darElemento( j + 1 ), j );\r\n lista.asignar( temp, j + 1 );\r\n }\r\n }\r\n }\r\n return lista;\r\n }", "public void listar() {\n\n if (!vacia()) {\n\n NodoEnteroSimple temp = head;\n\n int i = 0;\n\n while (temp != null) {\n\n System.out.print(i + \".[ \" + temp.getValor() + \" ]\" + \" -> \");\n\n temp = temp.getSiguiente();\n\n i++;\n }\n }\n \n }", "private void enlistar(ArrayList<Caracter> caracteres){\n for (int i = 0; i < caracteres.size(); i++) {\n insertaOrdenado(new NodoCaracter((Caracter) caracteres.get(i)));\n }\n }", "public void populateListaObjetos() {\n listaObjetos.clear();\n Session session = HibernateUtil.getSessionFactory().openSession();\n try {\n String tipo = null;\n if (selectedTipo.equals(\"submenu\")) {\n tipo = \"menu\";\n } else if (selectedTipo.equals(\"accion\")) {\n tipo = \"submenu\";\n }\n\n Criteria cObjetos = session.createCriteria(Tblobjeto.class);\n cObjetos.add(Restrictions.eq(\"tipoObjeto\", tipo));\n Iterator iteObjetos = cObjetos.list().iterator();\n while (iteObjetos.hasNext()) {\n Tblobjeto o = (Tblobjeto) iteObjetos.next();\n listaObjetos.add(new SelectItem(new Short(o.getIdObjeto()).toString(), o.getNombreObjeto(), \"\"));\n }\n } catch (HibernateException e) {\n //logger.throwing(getClass().getName(), \"populateListaObjetos\", e);\n } finally {\n session.close();\n }\n }", "public void Lista(){\n\t\tcabeza = null;\n\t\ttamanio = 0;\n\t}", "public static void main(String args[]){\n int x = 10;\r\n List<Perro> perros = new ArrayList();\r\n \r\n Perro perro=new Perro();\r\n \r\n Persona persona = new Persona();\r\n persona.setAltura(5.5);\r\n persona.setColorPiel(\"Blanca\");\r\n persona.setEdad(16);\r\n persona.setGenero('f');\r\n persona.setNacionalidad(\"Japonesa\");\r\n persona.setPeso(130);\r\n persona.setTipoDePelo(\"Lacio\"); \r\n persona.setOcupacion(\"Dinero\");\r\n \r\n //Se dan todas las características\r\n perro.setNombre(\"Manuel\");\r\n perro.setColor(\"Negro\");\r\n perro.setTamano(10.2);\r\n perro.setRaza(\"Golden\");\r\n perro.setTipoDePelo(\"Crespo\");\r\n perro.setAdoptado(false);\r\n perro.setGenero('H');\r\n \r\n perros.add(perro);//Se añade a la instancia\r\n \r\n perro = new Perro();//Se limpia y se vuelve a llamar la instancia\r\n perro.setNombre(\"Igor\");\r\n perro.setColor(\"Negro\");\r\n perro.setTamano(10.2);\r\n perro.setRaza(\"Golden\");\r\n perro.setTipoDePelo(\"Lacio\");\r\n perro.setAdoptado(false);\r\n perro.setGenero('H');\r\n \r\n perros.add(perro);\r\n \r\n perro = new Perro();\r\n perro.setNombre(\"Luli\");\r\n perro.setColor(\"Negro\");\r\n perro.setTamano(10.2);\r\n perro.setRaza(\"Siberiano\");\r\n perro.setTipoDePelo(\"Crespo\");\r\n perro.setAdoptado(false);\r\n perro.setGenero('H');\r\n \r\n perros.add(perro);\r\n //****************CUANDO EJECUTES ESTO VE COMENTADO LOS BLOQUES QUE NO QUIERES QUE SE USEN*************\r\n //foreach y for hace la misma funcion\r\n //Uso de for\r\n for (Perro perro1:perros){\r\n System.out.println(perro1.getNombre());\r\n System.out.println(perro1.getColor());\r\n System.out.println(perro1.getTamano());\r\n System.out.println(perro1.getRaza());\r\n System.out.println(perro1.getTipoDePelo());\r\n }\r\n \r\n //Formas de uso del for each\r\n perros.forEach(perro1->\r\n System.out.println(perro1.getNombre()));\r\n \r\n perros.forEach(perro1 ->{//Se define una variable que es perro1 y esta recorrera toda la lista\r\n System.out.println(perro1.getNombre());\r\n System.out.println(perro1.getColor());\r\n System.out.println(perro1.getTamano());\r\n System.out.println(perro1.getRaza());\r\n System.out.println(perro1.getTipoDePelo()); \r\n System.out.println();\r\n \r\n });\r\n \r\n \r\n System.out.println(\"Blanco\".equals(perro.color)? \"Si es blanco\":\"No es blanco\");\r\n \r\n //Uso del if\r\n if (((4/2==0)&&(10/5 !=0))||(100/20==0)){\r\n System.out.println(\"Es bisiesto\");\r\n }else{\r\n System.out.println(\"No es bisiesto\");\r\n }\r\n \r\n //Uso del switcH\r\n switch(x){\r\n case 6:\r\n System.out.println(\"Es verdadero\");\r\n break;\r\n case 2:\r\n System.out.println(\"Es falso\");\r\n break;\r\n default:\r\n System.out.println(\"No es ninguna\");\r\n \r\n //Uso de la lista de un item en especifico \r\n System.out.println(\"Nombre: \" + perros.get(2).getNombre());//El número del get\r\n System.out.println(\"Color: \"+perros.get(2).getColor());//define que item es que tomará\r\n System.out.println(\"Raza: \"+perros.get(2).getRaza());\r\n \r\n \r\n //Demostración del uso de getters\r\n System.out.println(\"Nombre: \");\r\n System.out.println(\"Altura: \" + persona.getAltura());\r\n System.out.println(\"Color: \" + persona.getColorPiel());\r\n System.out.println(\"Edad: \"+persona.getEdad());\r\n System.out.println(\"Genero: \"+persona.getGenero());\r\n System.out.println(\"Nacionalidad: \"+persona.getNacionalidad());\r\n System.out.println(\"Peso: \"+persona.getPeso());\r\n System.out.println(\"Tipo de Pelo: \"+persona.getTipoDePelo());\r\n \r\n }\r\n \r\n}", "public void listar(){\n if (!esVacia()) {\n // Crea una copia de la lista.\n NodoEmpleado aux = inicio;\n // Posicion de los elementos de la lista.\n int i = 0;\n System.out.print(\"-> \");\n // Recorre la lista hasta llegar nuevamente al incio de la lista.\n do{\n // Imprime en pantalla el valor del nodo.\n System.out.print(i + \".[ \" + aux.getEmpleado() + \" ]\" + \" -> \");\n // Avanza al siguiente nodo.\n aux = aux.getSiguiente();\n // Incrementa el contador de la posi�n.\n i++;\n }while(aux != inicio);\n }\n }", "List<Videogioco> retriveByGenere(String genere);", "private List<Node<T>> auxiliarRecorridoIn(Node<T> nodo, List<Node<T>> lista, Node<T> raiz) {\r\n\t\t\r\n\t\tif (nodo.getChildren() != null) {\r\n\t\t\tList<Node<T>> hijos = nodo.getChildren();\r\n\t\t\tfor (int i = 1; i <= hijos.size(); i++) {\r\n\t\t\t\t\r\n\t\t\t\tauxiliarRecorridoIn(hijos.get(i), lista, raiz);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn lista;\r\n\t}", "public void llenarListas(PaseoEntity entity) {\r\n ofertas = new ArrayList<OfertaDTO>();\r\n List<OfertaEntity> ofertasEntities = entity.getOfertas();\r\n if (ofertasEntities == null) {\r\n return;\r\n }\r\n for (OfertaEntity of : ofertasEntities) {\r\n ofertas.add(new OfertaDTO(of));\r\n }\r\n fotos = new ArrayList<FotoDTO>();\r\n if (entity.getOfertas() == null || entity.getOfertas().isEmpty() || entity.getOfertas().get(0) == null) {\r\n return;\r\n }\r\n if (entity.getOfertas().get(0).getVisitas() == null || entity.getOfertas().get(0).getVisitas().isEmpty()) {\r\n\r\n return;\r\n }\r\n List<FotoEntity> lista = entity.getOfertas().get(0).getVisitas().get(0).getFotos();\r\n if (lista != null) {\r\n\r\n for (FotoEntity fotoEntity : lista) {\r\n fotos.add(new FotoDTO(fotoEntity));\r\n }\r\n }\r\n }", "public static List<Object> czytaniePogody(){\r\n Object[] elementyPogody = new Object[3];\r\n elementyPogody[0]=0;\r\n elementyPogody[1]=0;\r\n elementyPogody[2]=null;\r\n String line;\r\n OdczytZPliku plik = new OdczytZPliku();\r\n InputStream zawartosc = plik.pobierzZPliku(\"bazapogod.txt\");\r\n try (InputStreamReader odczyt = new InputStreamReader(zawartosc, StandardCharsets.UTF_8);\r\n BufferedReader czytaj = new BufferedReader(odczyt)) {\r\n String numerWStringu = String.valueOf(elementyPogody[0] = (int) (Math.random() * 4));\r\n while ((line = czytaj.readLine()) != null){\r\n if (line.equals(numerWStringu)){\r\n elementyPogody[1] = Integer.parseInt(czytaj.readLine());\r\n elementyPogody[2] = czytaj.readLine();\r\n System.out.println(\"\\nPogoda na dzis: \" + elementyPogody[2]);\r\n break;\r\n }\r\n else {\r\n for (int i = 0; i < 2; i++) {\r\n line = czytaj.readLine();\r\n }\r\n }\r\n }\r\n } catch (Exception ignored) {\r\n }\r\n return List.of(elementyPogody);\r\n }", "public void prepareList()\n {\n listImg = new ArrayList<Drawable>();\n for(int i=0;i<n;i++)\n {\n \ta.moveToPosition(i);\n \tString immagine = a.getString(0);\n \tCaricaImmagine caricaImmagineAsync = new CaricaImmagine();\n \t\tcaricaImmagineAsync.execute(new String[]{immagine});\n }\n }", "public static List<ViajeEntidad> getListaViajesEntidad(){\n List<ViajeEntidad> viajes = new ArrayList<>();\n Date date = new Date();\n ViajeEntidadPK viajePK = new ViajeEntidadPK();\n TaxiEntidad taxiByPkPlacaTaxi = new TaxiEntidad();\n ClienteEntidad clienteByPkCorreoCliente = new ClienteEntidad();\n clienteByPkCorreoCliente.setPkCorreoUsuario(\"[email protected]\");\n TaxistaEntidad taxistaByCorreoTaxi = new TaxistaEntidad();\n taxistaByCorreoTaxi.setPkCorreoUsuario(\"[email protected]\");\n OperadorEntidad agendaOperador = new OperadorEntidad();\n agendaOperador.setPkCorreoUsuario(\"[email protected]\");\n\n viajePK.setPkPlacaTaxi(\"CCC11\");\n viajePK.setPkFechaInicio(\"2019-01-01 01:01:01\");\n viajes.add(new ViajeEntidad(viajePK, \"2019-01-01 02:01:01\",\"5000\", 2, \"origen\",\"destino\", \"agenda\", \"agenda2\", taxiByPkPlacaTaxi, clienteByPkCorreoCliente, taxistaByCorreoTaxi, agendaOperador));\n viajePK.setPkPlacaTaxi(\"DDD11\");\n viajes.add(new ViajeEntidad(viajePK, \"2019-01-01 02:01:01\",\"5000\", 2, \"origen\",\"destino\", \"agenda\", \"agenda2\", taxiByPkPlacaTaxi, clienteByPkCorreoCliente, taxistaByCorreoTaxi, agendaOperador));\n viajePK.setPkPlacaTaxi(\"EEE11\");\n viajes.add(new ViajeEntidad(viajePK, \"2019-01-01 02:01:01\",\"5000\", 2, \"origen\",\"destino\", \"agenda\", \"agenda2\", taxiByPkPlacaTaxi, clienteByPkCorreoCliente, taxistaByCorreoTaxi, agendaOperador));\n\n return viajes;\n }", "void listarDadosNaTelaLivro(ArrayList<Livro> lista,DefaultTableModel model ) throws Exception {\n \n model.setNumRows(0);\n //Correr o ArrayList\n for (int pos = 0; pos < lista.size(); pos++) {\n String[] linha = new String[7];\n Livro aux = lista.get(pos);\n linha[0] = \"\"+aux.getId();\n linha[1] = \"\"+editora.recuperar(aux.getIdEditora());\n linha[2] = \"\"+autor.recuperar(aux.getIdAutor());\n linha[3] = \"\"+areaDeConhecimento.recuperar(aux.getIdAreaDeConhecimento());\n linha[4] = aux.getTituloDoLivro();\n linha[5] = \"\"+aux.getIsbn();\n model.addRow(linha);\n }\n }", "public List<Mobibus> darMobibus();", "private void lisaaMiinaOikealle(int i, int j) {\n ArrayList<Ruutu> lista;\n if (i + 1 < x) {\n lista = this.ruudukko[i + 1];\n lista.get(j).setViereisetMiinat(1);\n if (j - 1 >= 0) {\n lista.get(j - 1).setViereisetMiinat(1);\n }\n if (j + 1 < x) {\n lista.get(j + 1).setViereisetMiinat(1);\n }\n }\n }", "public void listarAlunosNaDisciplina(){\r\n for(int i = 0;i<alunos.size();i++){\r\n System.out.println(alunos.get(i).getNome());\r\n }\r\n }", "public void mostrarlistafininicio(){\n if(!estavacia()){\n String datos=\"<=>\";\n nododoble auxiliar=fin;\n while(auxiliar!=null){\n datos=datos+\"[\"+auxiliar.dato+\"]<=>\";\n auxiliar=auxiliar.anterior;\n }\n JOptionPane.showMessageDialog(null,datos,\n \"Mostraando lista de fin a inicio\",JOptionPane.INFORMATION_MESSAGE);\n }}", "private ArrayList<Pelicula> busquedaPorGenero(ArrayList<Pelicula> peliculas, String genero){\r\n\r\n ArrayList<Pelicula> peliculasPorGenero = new ArrayList<>();\r\n\r\n\r\n\r\n for(Pelicula unaPelicula:peliculas){\r\n\r\n if(unaPelicula.getGenre().contains(genero)){\r\n\r\n peliculasPorGenero.add(unaPelicula);\r\n }\r\n }\r\n\r\n return peliculasPorGenero;\r\n }", "private void idGrupos() {\n\t\tmyHorizontalListView.setOnItemClickListener(new OnItemClickListener() {\n\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t\tURL_BOOKS = \"http://tutoriapps.herokuapp.com/api/v1/groups/\"\n\t\t\t\t\t\t+ gid[position].toString() + \"/books.json?auth_token=\";\n\t\t\t\tposicionId = gid[position].toString();\n\t\t\t\tvalorUltimo = 0;\n\t\t\t\tnuevo = 0;\n\t\t\t\taa.clear();\n\t\t\t\tgetData();\n\t\t\t}\n\t\t});\n\t}", "public List<Persona> todasLasPersonas(){\n\n Iterable<Persona> ite=repo.findAll();\n Iterator<Persona> it=ite.iterator();\n List<Persona> actualList = new ArrayList<Persona>();\n while (it.hasNext()) {\n actualList.add(it.next());\n }\n\n return actualList;\n }", "private static void listaProdutosCadastrados() throws Exception {\r\n String nomeCategoria;\r\n ArrayList<Produto> lista = arqProdutos.toList();\r\n if (!lista.isEmpty()) {\r\n System.out.println(\"\\t** Lista dos produtos cadastrados **\\n\");\r\n }\r\n for (Produto p : lista) {\r\n if (p != null && p.getID() != -1) {\r\n nomeCategoria = getNomeCategoria(p.idCategoria - 1);\r\n System.out.println(\r\n \"Id: \" + p.getID()\r\n + \"\\nNome: \" + p.nomeProduto\r\n + \"\\nDescricao: \" + p.descricao\r\n + \"\\nPreco: \" + tf.format(p.preco)\r\n + \"\\nMarca: \" + p.marca\r\n + \"\\nOrigem: \" + p.origem\r\n );\r\n if (nomeCategoria != null) {\r\n System.out.println(\"Categoria: \" + nomeCategoria);\r\n } else {\r\n System.out.println(\"Categoria: \" + p.idCategoria);\r\n }\r\n System.out.println();\r\n Thread.sleep(500);\r\n }\r\n }\r\n }", "public void getAllItem (ArrayList<itemTodo> list){\n Cursor cursor = this.getReadableDatabase().rawQuery(\"select judul, deskripsi, priority from \"+nama_table,null);\n while (cursor.moveToNext()){\n list.add(new itemTodo(cursor.getString(0), cursor.getString(1), cursor.getString(2)));\n }\n }", "public void liste()\n {\n Collections.sort(listOrder, new Comparator<Order>() {\n @Override\n public int compare(Order o1, Order o2) {\n return o1.getStart() - o2.getStart(); // use your logic, Luke\n }\n });\n System.out.println(\"LISTE DES ORDRES\\n\");\n System.out.format(\"%8s %8s %5s %13s\", \"ID\", \"DEBUT\", \"DUREE\", \"PRIX\\n\");\n System.out.format(\"%8s %8s %5s %13s\", \"--------\", \"-------\", \"-----\", \"----------\\n\");\n for(int i = 0; i< listOrder.size(); i++) {\n Order order = listOrder.get(i);\n afficherOrdre(order);\n }\n System.out.format(\"%8s %8s %5s %13s\", \"--------\", \"-------\", \"-----\", \"----------\\n\");\n }", "public void listarEquipamentos() {\n \n \n List<Equipamento> formandos =new EquipamentoJpaController().findEquipamentoEntities();\n \n DefaultTableModel tbm=(DefaultTableModel) listadeEquipamento.getModel();\n \n for (int i = tbm.getRowCount()-1; i >= 0; i--) {\n tbm.removeRow(i);\n }\n int i=0;\n for (Equipamento f : formandos) {\n tbm.addRow(new String[1]);\n \n listadeEquipamento.setValueAt(f.getIdequipamento(), i, 0);\n listadeEquipamento.setValueAt(f.getEquipamento(), i, 1);\n \n i++;\n }\n \n \n \n }", "private List<Node<T>> auxiliarRecorridoPost(Node<T> nodo, List<Node<T>> lista) {\r\n\t\tif (nodo.getChildren() != null) {// Si tiene hijos\r\n\t\t\tList<Node<T>> hijos = nodo.getChildren();// Hijos\r\n\t\t\tfor (int i = 1; i <= hijos.size(); i++) {\r\n\t\t\t\tauxiliarRecorridoPost(hijos.get(i), lista);// Recursividad\r\n\t\t\t}\r\n\t\t}\r\n\t\tlista.add(nodo);// Aņade a la lista\r\n\t\treturn lista;// Devuelve lista\r\n\t}", "public void mostrarlistafininicio(){\n if(!estaVacia()){\n String datos = \"<=>\";\n NodoBus auxiliar = fin;\n while(auxiliar!=null){\n datos = datos + \"(\" + auxiliar.dato +\")->\";\n auxiliar = auxiliar.ant;\n JOptionPane.showMessageDialog(null, datos, \"Mostrando lista de fin a inicio\", JOptionPane.INFORMATION_MESSAGE);\n }\n }\n }", "private void iniciarListas() {\n listaBebidas = new ElementoMenu[7];\n listaBebidas[0] = new ElementoMenu(1, \"Coca\");\n listaBebidas[1] = new ElementoMenu(4, \"Jugo\");\n listaBebidas[2] = new ElementoMenu(6, \"Agua\");\n listaBebidas[3] = new ElementoMenu(8, \"Soda\");\n listaBebidas[4] = new ElementoMenu(9, \"Fernet\");\n listaBebidas[5] = new ElementoMenu(10, \"Vino\");\n listaBebidas[6] = new ElementoMenu(11, \"Cerveza\");\n// inicia lista de platos\n listaPlatos = new ElementoMenu[14];\n listaPlatos[0] = new ElementoMenu(1, \"Ravioles\");\n listaPlatos[1] = new ElementoMenu(2, \"Gnocchi\");\n listaPlatos[2] = new ElementoMenu(3, \"Tallarines\");\n listaPlatos[3] = new ElementoMenu(4, \"Lomo\");\n listaPlatos[4] = new ElementoMenu(5, \"Entrecot\");\n listaPlatos[5] = new ElementoMenu(6, \"Pollo\");\n listaPlatos[6] = new ElementoMenu(7, \"Pechuga\");\n listaPlatos[7] = new ElementoMenu(8, \"Pizza\");\n listaPlatos[8] = new ElementoMenu(9, \"Empanadas\");\n listaPlatos[9] = new ElementoMenu(10, \"Milanesas\");\n listaPlatos[10] = new ElementoMenu(11, \"Picada 1\");\n listaPlatos[11] = new ElementoMenu(12, \"Picada 2\");\n listaPlatos[12] = new ElementoMenu(13, \"Hamburguesa\");\n listaPlatos[13] = new ElementoMenu(14, \"Calamares\");\n// inicia lista de postres\n listaPostres = new ElementoMenu[15];\n listaPostres[0] = new ElementoMenu(1, \"Helado\");\n listaPostres[1] = new ElementoMenu(2, \"Ensalada de Frutas\");\n listaPostres[2] = new ElementoMenu(3, \"Macedonia\");\n listaPostres[3] = new ElementoMenu(4, \"Brownie\");\n listaPostres[4] = new ElementoMenu(5, \"Cheescake\");\n listaPostres[5] = new ElementoMenu(6, \"Tiramisu\");\n listaPostres[6] = new ElementoMenu(7, \"Mousse\");\n listaPostres[7] = new ElementoMenu(8, \"Fondue\");\n listaPostres[8] = new ElementoMenu(9, \"Profiterol\");\n listaPostres[9] = new ElementoMenu(10, \"Selva Negra\");\n listaPostres[10] = new ElementoMenu(11, \"Lemon Pie\");\n listaPostres[11] = new ElementoMenu(12, \"KitKat\");\n listaPostres[12] = new ElementoMenu(13, \"IceCreamSandwich\");\n listaPostres[13] = new ElementoMenu(14, \"Frozen Yougurth\");\n listaPostres[14] = new ElementoMenu(15, \"Queso y Batata\");\n }", "public ArrayList<Producto> getProductosOrdenados(ArrayList<Producto> productosEncontrados,Cliente comprador) {\n \n //Comparador para ordenar los productos por su urgencia y proximidad\n\n ArrayList <Producto> productosOrdenados=new ArrayList<>();\n ArrayList <Producto> muyCerca = new ArrayList<>();\n ArrayList <Producto> cerca = new ArrayList<>();\n ArrayList <Producto> lejos = new ArrayList<>();\n String codigoPostalComprador = comprador.getUbicacion().getCodigoPostal();\n String codigoPostalProducto;\n Comparator porUrgencia = new Comparator() { \n public int compare(Object o1, Object o2) {\n\n\n Producto p1 = (Producto)o1;\n Producto p2 = (Producto)o2;\n\n String bool1;\n String bool2;\n if(p1.getUrgente()){\n bool1=\"0\";\n }else{\n bool1=\"1\";\n }\n if(p2.getUrgente()){\n bool2=\"0\";\n }else{\n bool2=\"1\";\n }\n\n String b1 = bool1;\n String b2 = bool2; \n return b1.compareTo(b2);\n }\n };\n\n for(Producto cadaProducto : productosEncontrados){\n codigoPostalProducto=cadaProducto.getUbicacionCliente().getCodigoPostal();\n if(codigoPostalComprador.substring(0, 3).equalsIgnoreCase(codigoPostalProducto.substring(0, 3))){\n muyCerca.add(cadaProducto);\n }else{\n if(codigoPostalComprador.substring(0, 2).equalsIgnoreCase(codigoPostalProducto.substring(0, 2))){\n cerca.add(cadaProducto);\n }else{\n lejos.add(cadaProducto);\n }\n }\n\n }\n if(muyCerca.size()>0){ \n Collections.sort(muyCerca,porUrgencia);\n productosOrdenados.addAll(muyCerca);\n }\n if(cerca.size()>0){\n Collections.sort(cerca,porUrgencia);\n productosOrdenados.addAll(cerca);\n } \n if(lejos.size()>0){\n Collections.sort(lejos,porUrgencia);\n productosOrdenados.addAll(lejos);\n }\n return productosOrdenados;\n \n \n }", "private static List<Billetes> generarBilletes(String fecha, Pasajero p){\n\t\tList<Billetes> billetes = new ArrayList<>();\n\t\t\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\tBilletes billete = new Billetes();\n\t\t\tbillete.setId(i);\n\t\t\tbillete.setFecha(fecha);\n\t\t\t\n\t\t\tchar c1 = (char)new Random().nextInt(50);\n\t\t\tchar c2 = (char)new Random().nextInt(50);\n\t\t\t\n\t\t\t/*\n\t\t\t * \n\t\t\t */\n\t\t\tbillete.setAsiento(\"\" + c1 + c2 + new Random().nextInt(100) + new Random().nextInt(50));\n\t\t\tbillete.setPasajero(p); \n\t\t\tbillete.setVuelo(p.getVuelos().get(new Random().nextInt(p.getVuelos().size())));\n\t\t\t\n\t\t\tbilletes.add(billete);\n\t\t}\n\t\t\n\t\treturn billetes;\n\t}", "public static void main(String[] args) {\r\n\t\t\t\t\r\n\t\tPutnici p1 = new Putnici (\"Milan\", \"Milanovic\", 105864312);\r\n\t\tPutnici p2 = new Putnici (\"Gordana\", \"Gajic\", 103886432);\r\n\t\tPutnici p3 = new Putnici (\"Zorana\", \"Pajic\", 103866115);\r\n\t\tPutnici p4 = new Putnici (\"Gordan\", \"Pajic\", 105612834);\r\n\t\tPutnici p5 = new Putnici (\"Zoltan\", \"Hrdelj\", 104916773);\r\n\t\tPutnici p6 = new Putnici (\"Milana\", \"Hrdelj\", 105834491);\r\n\t\tPutnici p7 = new Putnici (\"Atila\", \"Hrdelj\", 112586493);\r\n\t\tPutnici p8 = new Putnici (\"Dejan\", \"Petrovic\", 104386166);\r\n\t\tPutnici p9 = new Putnici (\"Bozidarka\", \"Serdar\", 105821386);\r\n\t\tPutnici p10 = new Putnici (\"Dobrivoj\", \"Serdar\", 104386991);\r\n\t\tPutnici p11 = new Putnici (\"Stefana\", \"Drobnjak\", 105813671);\r\n\t\tPutnici p12 = new Putnici (\"Dubravka\", \"Stojakovic\", 103846939);\r\n\t\t\r\n\t\tList<Putnici>listaPutnika = new ArrayList<Putnici>();\r\n\t\t\r\n\t\tlistaPutnika.add(p1);\r\n\t\tlistaPutnika.add(p2);\r\n\t\tlistaPutnika.add(p3);\r\n\t\tlistaPutnika.add(p4);\r\n\t\tlistaPutnika.add(p5);\r\n\t\tlistaPutnika.add(p6);\r\n\t\tlistaPutnika.add(p7);\r\n\t\tlistaPutnika.add(p8);\r\n\t\tlistaPutnika.add(p9);\r\n\t\tlistaPutnika.add(p10);\r\n\t\tlistaPutnika.add(p11);\r\n\t\tlistaPutnika.add(p12);\r\n\t\t\r\n\t\tList<Putnici>listaPutnikaT1 = new ArrayList<Putnici>();\r\n\t\t\t\t\r\n\t\tlistaPutnikaT1.add(p1);\r\n\t\tlistaPutnikaT1.add(p2);\r\n\t\tlistaPutnikaT1.add(p5);\r\n\t\tlistaPutnikaT1.add(p6);\r\n\t\tlistaPutnikaT1.add(p7);\r\n\t\t\r\n\t\tList<Putnici>listaPutnikaT2 = new ArrayList<Putnici>();\r\n\t\t\r\n\t\tlistaPutnikaT2.add(p3);\r\n\t\tlistaPutnikaT2.add(p4);\r\n\t\tlistaPutnikaT2.add(p8);\r\n\t\tlistaPutnikaT2.add(p12);\r\n\t\t\r\n\t\tList<Putnici>listaPutnikaT3 = new ArrayList<Putnici>();\r\n\t\t\r\n\t\tlistaPutnikaT3.add(p9);\r\n\t\tlistaPutnikaT3.add(p10);\r\n\t\tlistaPutnikaT3.add(p11);\r\n\t\t\r\n\t\tPutovanje v1 = new Putovanje (\"Sardinija-Algero\", 950.25, listaPutnikaT3);\r\n\t\tPutovanje v2 = new Putovanje (\"Sejseli-Ostrvo Mae\", 1024.5, listaPutnikaT1);\r\n\t\tPutovanje v3 = new Putovanje (\"Meksiko-Kankun\", 1456.34, listaPutnikaT2);\r\n\t\t\r\n\t\tList<Putovanje> listaPonuda = new ArrayList<Putovanje>();\r\n\t\tlistaPonuda.add(v1);\r\n\t\tlistaPonuda.add(v2);\r\n\t\tlistaPonuda.add(v3);\r\n\t\t\r\n\t\tSystem.out.println(\"U ponudi su \" + listaPonuda.size() + \" destinacije.\");\r\n\t\tSystem.out.println(\"Pogledajte kompletnu ponudu: \");\r\n\t\t\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tsb.append(\"1. Lokacija: \");\r\n\t\tsb.append(v1.getDestinacija());\r\n\t\tsb.append(\", cena aranzmana za 10 nocenja sa avionskim prevozom: \");\r\n\t\tsb.append(v1.getCena());\r\n\t\tsb.append(\" evra.\");\r\n\t\tsb.append(\" Putnici: \");\r\n\t\tsb.append(listaPutnikaT3.get(0).getIme());\r\n\t\tsb.append(\" \");\r\n\t\tsb.append(listaPutnikaT3.get(0).getPrezime());\r\n\t\tsb.append(\", \");\r\n\t\tsb.append(listaPutnikaT3.get(1).getIme());\r\n\t\tsb.append(\" \");\r\n\t\tsb.append(listaPutnikaT3.get(1).getPrezime());\r\n\t\tsb.append(\", \");\r\n\t\tsb.append(listaPutnikaT3.get(2).getIme());\r\n\t\tsb.append(\" \");\r\n\t\tsb.append(listaPutnikaT3.get(2).getPrezime());\r\n\t\tsb.append(\".\");\r\n\t\tSystem.out.println(sb.toString());\r\n\t\t\r\n\t\tStringBuilder sb1 = new StringBuilder();\r\n\t\tsb1.append(\"2. Lokacija: \");\r\n\t\tsb1.append(v2.getDestinacija());\r\n\t\tsb1.append(\", cena aranzmana za 10 nocenja sa avionskim prevozom: \");\r\n\t\tsb1.append(v2.getCena());\r\n\t\tsb1.append(\" evra.\");\r\n\t\tsb1.append(\" Putnici: \");\r\n\t\tsb1.append(listaPutnikaT1.get(0).getIme());\r\n\t\tsb1.append(\" \");\r\n\t\tsb1.append(listaPutnikaT1.get(0).getPrezime());\r\n\t\tsb1.append(\", \");\r\n\t\tsb1.append(listaPutnikaT1.get(1).getIme());\r\n\t\tsb1.append(\" \");\r\n\t\tsb1.append(listaPutnikaT1.get(1).getPrezime());\r\n\t\tsb1.append(\", \");\r\n\t\tsb1.append(listaPutnikaT1.get(2).getIme());\r\n\t\tsb1.append(\" \");\r\n\t\tsb1.append(listaPutnikaT1.get(2).getPrezime());\r\n\t\tsb1.append(listaPutnikaT1.get(3).getIme());\r\n\t\tsb1.append(\" \");\r\n\t\tsb1.append(listaPutnikaT1.get(3).getPrezime());\r\n\t\tsb1.append(listaPutnikaT1.get(4).getIme());\r\n\t\tsb1.append(\" \");\r\n\t\tsb1.append(listaPutnikaT1.get(4).getPrezime());\r\n\t\tsb1.append(\".\");\r\n\t\tSystem.out.println(sb1.toString());\r\n\t\t\r\n\t\tStringBuilder sb2 = new StringBuilder();\r\n\t\tsb2.append(\"3. Lokacija: \");\r\n\t\tsb2.append(v3.getDestinacija());\r\n\t\tsb2.append(\", cena aranzmana za 10 nocenja sa avionskim prevozom: \");\r\n\t\tsb2.append(v3.getCena());\r\n\t\tsb2.append(\" evra.\");\r\n\t\tsb2.append(\" Putnici: \");\r\n\t\tsb2.append(listaPutnikaT2.get(0).getIme());\r\n\t\tsb2.append(\" \");\r\n\t\tsb2.append(listaPutnikaT2.get(0).getPrezime());\r\n\t\tsb2.append(\", \");\r\n\t\tsb2.append(listaPutnikaT2.get(1).getIme());\r\n\t\tsb2.append(\" \"); \r\n\t\tsb2.append(listaPutnikaT2.get(1).getPrezime());\r\n\t\tsb2.append(\", \");\r\n\t\tsb2.append(listaPutnikaT2.get(2).getIme());\r\n\t\tsb2.append(\" \");\r\n\t\tsb2.append(listaPutnikaT2.get(2).getPrezime());\r\n\t\tsb2.append(listaPutnikaT2.get(3).getIme());\r\n\t\tsb2.append(\" \");\r\n\t\tsb2.append(listaPutnikaT2.get(3).getPrezime());\t\t\r\n\t\tsb2.append(\".\");\r\n\t\tSystem.out.println(sb2.toString());\r\n\t\t\t\t\r\n\t\tSystem.out.println(\"Za destinaciju \" + v2.getDestinacija() + \", trenutna cena aranzmana je\");\t\t\r\n\t\tSystem.out.println(v2.getCena() + \" evra za 10 nocenja sa avionskim prevozom.\");\r\n\t\t\t\t\r\n\t\tv2.setCena(1125.0);\r\n\t\tSystem.out.println(\"Od 10. juna cena aranzmana za destinaciju \" + v2.getDestinacija() + \" iznosice \" + v2.getCena() + \" evra.\");\r\n\t\t\r\n\t\tlistaPonuda.remove(v3);\t\r\n\t\tSystem.out.println(\"Zbog novonastale situacije obavestavamo vas o izmenama ponude putovanja. \");\r\n\t\tSystem.out.println(\"Nakon izmena u ponudi ostaju \" + listaPonuda.size() + \" destinacije: \");\r\n\t\tSystem.out.println(\"1. \" + listaPonuda.get(0).getDestinacija() + \"- cena aranzmana za 10 nocenja sa avionskim prevozom: \" + listaPonuda.get(0).getCena());\r\n\t\tSystem.out.println(\"2. \" + listaPonuda.get(1).getDestinacija() + \"- cena aranzmana za 10 nocenja sa avionskim prevozom: \" + listaPonuda.get(1).getCena());\r\n\t\tSystem.out.println();\r\n\t\t\t\t\r\n\t\t}", "private final void inicializarListas() {\r\n\t\t//Cargo la Lista de orden menos uno\r\n\t\tIterator<Character> it = Constantes.LISTA_CHARSET_LATIN.iterator();\r\n\t\tCharacter letra;\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tletra = it.next();\r\n\t\t\tthis.contextoOrdenMenosUno.crearCharEnContexto(letra);\r\n\t\t}\r\n\t\t\r\n\t\tthis.contextoOrdenMenosUno.crearCharEnContexto(Constantes.EOF);\r\n\t\t\r\n\t\tthis.contextoOrdenMenosUno.actualizarProbabilidades();\r\n\t\t\r\n\t\t//Cargo las listas de ordenes desde 0 al orden definido en la configuración\r\n\t\tOrden ordenContexto;\r\n\t\tfor (int i = 0; i <= this.orden; i++) {\r\n\t\t\tordenContexto = new Orden();\r\n\t\t\tthis.listaOrdenes.add(ordenContexto);\r\n\t\t}\r\n\t}", "private void ucitajPodatke() {\n \n DefaultListModel<Voznja> m = new DefaultListModel<>();\n obrada.getPodaci().forEach(s->m.addElement(s));\n lstPodaci.setModel(m);\n\n }", "private void mostradados() {\r\n\t\tint in = 0;\r\n\r\n\t\tfor (Estado e : Estado.values()) {\r\n\t\t\tif (in == 0) {\r\n\t\t\t\tcmbx_estado.addItem(\"\");\r\n\t\t\t\tin = 1;\r\n\t\t\t}\r\n\t\t\tcmbx_estado.addItem(e.getNome());\r\n\t\t}\r\n\r\n\t\tfor (int x = 0; x < listacliente.size(); x++) {\r\n\t\t\tin = 0;\r\n\t\t\tif (x == 0) {\r\n\t\t\t\tcmbx_cidade.addItem(\"\");\r\n\t\t\t}\r\n\r\n\t\t\tfor (int y = 0; y < cmbx_cidade.getItemCount(); y++) {\r\n\t\t\t\tif (listacliente.get(x).getCidade().equals(cmbx_cidade.getItemAt(y).toString()))\r\n\t\t\t\t\tin++;\r\n\t\t\t\tif (in > 1)\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tif (in < 1)\r\n\t\t\t\tcmbx_cidade.addItem(listacliente.get(x).getCidade());\r\n\t\t}\r\n\t}", "void listarDadosNaTelaAutor(ArrayList<Autor> lista, DefaultTableModel model) {\n model.setNumRows(0);\n //Correr o ArrayList\n for (int pos = 0; pos < lista.size(); pos++) {\n String[] linha = new String[2];\n Autor aux = lista.get(pos);\n linha[0] = \"\"+aux.getId();\n linha[1] = aux.getNome();\n model.addRow(linha);\n }\n }", "public List<Fortaleza> listarFortalezas(){\r\n return cVista.listarFortalezas();\r\n }", "public static Lista getLista(String hilera) {\r\n\t\tif (hilera.equals(\"basica\")) {\r\n\t\t\tint cont = 0;\r\n\t\t\tint xPos = 40;\r\n\t\t\tint yPos = 475;\r\n\t\t\tListaSimple<Enemigo> listaEnemigosBasica = new ListaSimple<Enemigo>();\r\n\t\t\twhile (cont < 10) {\r\n\t\t\t\tlistaEnemigosBasica.agregarAlFinal(new Enemigo(xPos, yPos, 1, \"enemySprite.png\", \"enemy\"));\r\n\t\t\t\txPos += 75;\r\n\t\t\t\tcont++;\r\n\t\t\t}\r\n\t\t\treturn listaEnemigosBasica;\r\n\r\n\t\t} else if (hilera.equals(\"claseA\")) {\r\n\t\t\tListaSimple<Enemigo> listaEnemigosClaseA = new ListaSimple<Enemigo>();\r\n\t\t\tint cont = 0;\r\n\t\t\tint xPos = 40;\r\n\t\t\tint yPos = 475;\r\n\t\t\tint random = (int) (Math.random() * 10);\r\n\t\t\twhile (cont < 10) {\r\n\t\t\t\tif (cont == random) {\r\n\t\t\t\t\tlistaEnemigosClaseA.agregarAlFinal(\r\n\t\t\t\t\t\t\tnew Enemigo(xPos, yPos, (int) (Math.random() * 4 + 1), \"boss2.png\", \"boss\"));\r\n\t\t\t\t\tcont++;\r\n\t\t\t\t\txPos += 75;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tlistaEnemigosClaseA.agregarAlFinal(new Enemigo(xPos, yPos, 1, \"enemySprite.png\", \"enemy\"));\r\n\t\t\t\t\tcont++;\r\n\t\t\t\t\txPos += 75;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn listaEnemigosClaseA;\r\n\t\t} else if (hilera.equals(\"claseB\")) {\r\n\t\t\tListaDoble<Enemigo> listaEnemigosClaseB = new ListaDoble<Enemigo>();\r\n\t\t\tint cont = 0;\r\n\t\t\tint xPos = 40;\r\n\t\t\tint yPos = 475;\r\n\t\t\tint random = (int) (Math.random() * 10);\r\n\t\t\twhile (cont < 10) {\r\n\t\t\t\tif (cont == random) {\r\n\t\t\t\t\tint x = (int) (Math.random() * 4 + 1);\r\n\t\t\t\t\tlistaEnemigosClaseB.agregarAlFinal(new Enemigo(xPos, yPos, x, \"boss2.png\", \"boss\"));\r\n\t\t\t\t\tcont++;\r\n\t\t\t\t\txPos += 75;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tlistaEnemigosClaseB.agregarAlFinal(new Enemigo(xPos, yPos, 1, \"enemySprite.png\", \"enemy\"));\r\n\t\t\t\t\tcont++;\r\n\t\t\t\t\txPos += 75;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn listaEnemigosClaseB;\r\n\t\t} else if (hilera.equals(\"claseC\")) {\r\n\t\t\tListaCircular<Enemigo> listaEnemigosClaseC = new ListaCircular<Enemigo>();\r\n\t\t\tint cont = 0;\r\n\t\t\tint xPos = 40;\r\n\t\t\tint yPos = 475;\r\n\t\t\tint random = (int) (Math.random() * 10);\r\n\t\t\twhile (cont < 10) {\r\n\t\t\t\tif (cont == random) {\r\n\t\t\t\t\tlistaEnemigosClaseC.agregarAlFinal(\r\n\t\t\t\t\t\t\tnew Enemigo(xPos, yPos, (int) (Math.random() * 4 + 2), \"boss2.png\", \"boss\"));\r\n\t\t\t\t\tcont++;\r\n\t\t\t\t\txPos += 75;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tlistaEnemigosClaseC.agregarAlFinal(new Enemigo(xPos, yPos, 1, \"enemySprite.png\", \"enemy\"));\r\n\t\t\t\t\tcont++;\r\n\t\t\t\t\txPos += 75;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn listaEnemigosClaseC;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public static void main(String[] args) throws Exception {\n\t\tLista<Contato> vetor = new Lista<Contato>(20);\n\t\tLinkedList<Contato> listaEncadeada = new LinkedList<Contato>();\n\n\t\tContato c1 = new Contato(\"c1\", \"111-1111\", \"[email protected]\");\n\t\tContato c2 = new Contato(\"c2\", \"222-2222\", \"[email protected]\");\n\t\tContato c3 = new Contato(\"c3\", \"333-3333\", \"[email protected]\");\n\t\tContato c4 = new Contato(\"c4\", \"444-2344\", \"[email protected]\");\n\t\tContato c5 = new Contato(\"c5\", \"555-5585\", \"[email protected]\");\n\t\tContato c6 = new Contato(\"c6\", \"111-1911\", \"[email protected]\");\n\t\tContato c7 = new Contato(\"c7\", \"222-2322\", \"[email protected]\");\n\t\tContato c8 = new Contato(\"c8\", \"333-3333\", \"[email protected]\");\n\t\tContato c9 = new Contato(\"c9\", \"454-4644\", \"[email protected]\");\n\t\tContato c10 = new Contato(\"c10\", \"515-5235\", \"[email protected]\");\n\t\tContato c11 = new Contato(\"c11\", \"131-1411\", \"[email protected]\");\n\t\tContato c12 = new Contato(\"c12\", \"252-2672\", \"[email protected]\");\n\t\tContato c13 = new Contato(\"c13\", \"313-3433\", \"[email protected]\");\n\t\tContato c14 = new Contato(\"c14\", \"433-4334\", \"[email protected]\");\n\t\tContato c15 = new Contato(\"c15\", \"535-5355\", \"[email protected]\");\n\t\tContato c16 = new Contato(\"c16\", \"161-1516\", \"[email protected]\");\n\t\tContato c17 = new Contato(\"c17\", \"272-2272\", \"[email protected]\");\n\t\tContato c18 = new Contato(\"c18\", \"383-3993\", \"[email protected]\");\n\t\tContato c19 = new Contato(\"c19\", \"141-4949\", \"[email protected]\");\n\t\tContato c20 = new Contato(\"c20\", \"565-5565\", \"[email protected]\");\n\t\tContato c21 = new Contato(\"c21\", \"616-1611\", \"[email protected]\");\n\t\tContato c22 = new Contato(\"c22\", \"212-2121\", \"[email protected]\");\n\t\tContato c23 = new Contato(\"c23\", \"131-1331\", \"[email protected]\");\n\t\tContato c24 = new Contato(\"c24\", \"424-4444\", \"[email protected]\");\n\t\tContato c25 = new Contato(\"c25\", \"565-5555\", \"[email protected]\");\n\t\tContato c26 = new Contato(\"c26\", \"111-1611\", \"[email protected]\");\n\t\tContato c27 = new Contato(\"c27\", \"282-1252\", \"[email protected]\");\n\t\tContato c28 = new Contato(\"c28\", \"323-3433\", \"[email protected]\");\n\t\tContato c29 = new Contato(\"c29\", \"544-4464\", \"[email protected]\");\n\t\tContato c30 = new Contato(\"c30\", \"155-5455\", \"[email protected]\");\n\n\t\ttry {\n\t\t\t// ex5\n\t\t\tvetor.adiciona(c1);\n\t\t\tvetor.adiciona(c2);\n\t\t\tvetor.adiciona(c3);\n\t\t\tvetor.adiciona(c4);\n\t\t\tvetor.adiciona(c5);\n\t\t\tvetor.adiciona(c6);\n\t\t\tvetor.adiciona(c7);\n\t\t\tvetor.adiciona(c8);\n\t\t\tvetor.adiciona(c9);\n\t\t\tvetor.adiciona(c10);\n\t\t\tvetor.adiciona(c11);\n\t\t\tvetor.adiciona(c12);\n\t\t\tvetor.adiciona(c13);\n\t\t\tvetor.adiciona(c14);\n\t\t\tvetor.adiciona(c15);\n\t\t\tvetor.adiciona(c16);\n\t\t\tvetor.adiciona(c17);\n\t\t\tvetor.adiciona(c18);\n\t\t\tvetor.adiciona(c19);\n\t\t\tvetor.adiciona(c20);\n\t\t\tvetor.adiciona(c21);\n\t\t\tvetor.adiciona(c22);\n\t\t\tvetor.adiciona(c23);\n\t\t\tvetor.adiciona(c24);\n\t\t\tvetor.adiciona(c25);\n\t\t\tvetor.adiciona(c26);\n\t\t\tvetor.adiciona(c27);\n\t\t\tvetor.adiciona(c28);\n\t\t\tvetor.adiciona(c29);\n\t\t\tvetor.adiciona(c30);\n\t\t\t// ex3\n\t\t\tvetor.removerT(\"111-1111\");\n\t\t\t//ex4-vetor.RemoverTudo();\n\t\t\t\n\t\t\tSystem.out.println(vetor);\n\t\t\t// ex1\n\t\t\tSystem.out.println(\"Confirmar se o elemento na lista existe:\" + vetor.contem(c2));\n\t\t\t// ex2\n\t\t\tSystem.out.println(\"Retornar a posicao do elemento, se retornar -1 que dizer que o elemento não existe:\"\n\t\t\t\t\t+ vetor.indicio(c2));\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t// ex6\n\t\tlistaEncadeada.add(c1);\n\t\tlistaEncadeada.add(c2);\n\t\tlistaEncadeada.add(c3);\n\t\tlistaEncadeada.add(c4);\n\t\tlistaEncadeada.add(c5);\n\t\tlistaEncadeada.add(c6);\n\t\tlistaEncadeada.add(c7);\n\t\tlistaEncadeada.add(c8);\n\t\tlistaEncadeada.add(c9);\n\t\tlistaEncadeada.add(c10);\n\t\tlistaEncadeada.add(c11);\n\t\tlistaEncadeada.add(c12);\n\t\tlistaEncadeada.add(c13);\n\t\tlistaEncadeada.add(c14);\n\t\tlistaEncadeada.add(c15);\n\t\tlistaEncadeada.add(c16);\n\t\tlistaEncadeada.add(c17);\n\t\tlistaEncadeada.add(c18);\n\t\tlistaEncadeada.add(c19);\n\t\tlistaEncadeada.add(c20);\n\t\tlistaEncadeada.add(c21);\n\t\tlistaEncadeada.add(c22);\n\t\tlistaEncadeada.add(c23);\n\t\tlistaEncadeada.add(c24);\n\t\tlistaEncadeada.add(c25);\n\t\tlistaEncadeada.add(c26);\n\t\tlistaEncadeada.add(c27);\n\t\tlistaEncadeada.add(c28);\n\t\tlistaEncadeada.add(c29);\n\t\tlistaEncadeada.add(c30);\n\n\t\tSystem.out.println(listaEncadeada);\n\n\t}", "List<TipoHuella> listarTipoHuellas();", "@Override\n\tpublic void acheter(List<Object> la) {\n\t\t\n\t}", "public void ConsultaVehiculosSQlite() {\n preguntas = mydb.getCartList();\n for( int i = 0 ; i < preguntas.size() ; i++ ){\n //Toast.makeText(getApplicationContext(), preguntas.get( i ).getPregunta(), Toast.LENGTH_SHORT).show();\n persons.add(new Solicitud(\"Pregunta \" + String.valueOf(i+1) +\": \"+preguntas.get( i ).getPregunta(),\"Fecha: \"+ preguntas.get( i ).getFecha(), R.drawable.solicitudes,\"Motivo: \"+preguntas.get( i ).getMotivo(),\"Observacion: \"+preguntas.get( i ).getObservacion(),\"\"));\n }\n }", "List<Alimento> getAlimentos();", "public static void main(String[] args) {\n//\t\tcrearNodos(cantNodos);\n//\t\tlista.extractFront();\n//\t\tlista.extractLast();\n//\t\tlista.insertLast(33);\n//\t\tlista.imprimir();\n//\t\t//System.out.print(lista.get(0));\n//\t\t\n//\t\tIterator<Integer> it1 = lista.iterator();\n//\t\t\twhile(it1.hasNext()) {\n//\t\t\t\tint valor = it1.next();\n//\t\t\t\tSystem.out.println(valor);\n//\t\t\t}\n//\t\tMyIterator<Integer> it2 = lista.iteratorReverse();\n//\t\t\twhile(it2.hasNext()) {\n//\t\t\t\tint valor = it2.back();\n//\t\t\t\tSystem.out.println(valor);\n//\t\t\t}\n\n\t\tlistaDeso1.insertFront(4);\n\t\tlistaDeso1.insertFront(2);\n\t\tlistaDeso1.insertFront(13);\n\t\tlistaDeso1.insertFront(7);\n\t\tlistaDeso1.insertFront(6);\n\n\t\tlistaDeso2.insertFront(9);\n\t\tlistaDeso2.insertFront(4);\n\t\tlistaDeso2.insertFront(6);\n\t\tlistaDeso2.insertFront(5);\n\t\tlistaDeso2.insertFront(13);\n\n//\t\tlistaOrde1.insertFront(2);\n//\t\tlistaOrde1.insertFront(4);\n//\t\tlistaOrde1.insertFront(6);\n//\t\tlistaOrde1.insertFront(8);\n//\t\tlistaOrde1.insertFront(11);\n//\t\t\n//\t\tlistaOrde2.insertFront(1);\n//\t\tlistaOrde2.insertFront(4);\n//\t\tlistaOrde2.insertFront(9);\n//\t\tlistaOrde2.insertFront(11);\n//\t\tlistaOrde2.insertFront(15);\n\t\t\n\t\tEje6<Integer> ord = new Eje6<Integer>();\n\t\t\n\t\tlista=ord.ambasDeso(listaDeso1, listaDeso2);\n\t}", "private static void obtenirUneListe() throws FileNotFoundException {\n\t\tSystem.out.println(\"\\r\\nPour combien de jours : \");\n\t\tint nbJours = sc.nextInt();\n\n\t\tSystem.out.println(\"\\r\\nCombien de propositions : \");\n\t\tint nbPropositions = sc.nextInt();\n\n\t\tList<List<Recette>> listeProposition = genererListePropositions(nbJours, nbPropositions);\n\n\t\tSystem.out.println(\"\\r\\nChoix ? \");\n\t\tint choix = sc.nextInt();\n\n\t\tgenererFichier(listeProposition.get(choix - 1));\n\n\t\tsc.nextLine();\n\n\t\traz();\n\t}", "public List<Vendedor> listarVendedor();", "private void listaContatos() throws SQLException {\n limpaCampos();\n BdLivro d = new BdLivro();\n livros = d.getLista(\"%\" + jTPesquisar.getText() + \"%\");\n\n // Após pesquisar os contatos, executa o método p/ exibir o resultado na tabela pesquisa\n mostraPesquisa(livros);\n livros.clear();\n }", "public static void main(String[] args) {\n List<Evento> listadoEventos = Evento.createShortList();\n List<Expositor> listadoExpositores = Expositor.createShortList();\n List<Asistente> Asistentes = Asistente.createShortList();\n //Asigno a los eventos sus expositores\n listadoEventos.get(0).setExpositor(listadoExpositores.get(0));\n listadoEventos.get(1).setExpositor(listadoExpositores.get(1));\n listadoEventos.get(2).setExpositor(listadoExpositores.get(2));\n listadoEventos.get(3).setExpositor(listadoExpositores.get(3));\n listadoEventos.get(4).setExpositor(listadoExpositores.get(4));\n listadoEventos.get(5).setExpositor(listadoExpositores.get(5));\n //Asigno los asistentes a los eventos\n listadoEventos.get(0).getListaAsistentes().add(Asistentes.get(0));\n listadoEventos.get(0).getListaAsistentes().add(Asistentes.get(1));\n\n listadoEventos.get(1).getListaAsistentes().add(Asistentes.get(2));\n\n listadoEventos.get(2).getListaAsistentes().add(Asistentes.get(3));\n\n listadoEventos.get(3).getListaAsistentes().add(Asistentes.get(4));\n listadoEventos.get(3).getListaAsistentes().add(Asistentes.get(5));\n\n listadoEventos.get(4).getListaAsistentes().add(Asistentes.get(6));\n\n listadoEventos.get(5).getListaAsistentes().add(Asistentes.get(7));\n listadoEventos.get(5).getListaAsistentes().add(Asistentes.get(8));\n listadoEventos.get(5).getListaAsistentes().add(Asistentes.get(9));\n\n //2A: Listado de manera ordenado por titulo descendiente, expositor y asistentes.\n\n Comparator<Integer> comparador = Collections.reverseOrder();\n\n //Ordenar de forma descendente por titulo\n Collections.sort(listadoEventos, (o1, o2) -> o2.getTitulo().compareTo(o1.getTitulo()));\n\n System.out.println(\"======Prueba 01 - Listado de eventos======\");\n for(Evento e:listadoEventos){\n System.out.println(\"****************************************\");\n System.out.println(\"Evento: \"+e.getTitulo());\n System.out.println(\"Expositor: \"+e.getExpositor().getNombre());\n System.out.println(\"Asistentes:\");\n for(Asistente a : e.getListaAsistentes()){\n System.out.println(a.getCodigo()+\"\\t\"+a.getNombre()+\"\\t\"+a.getApellidos());\n }\n }\n\n }", "public static ArrayList IngresarInfoLista(int posarray){\n\n // Definir objeto de la clase constanste para mensajes\n Constantes constantes = new Constantes();\n\n // Definir Array del objeto de la clase BeneficiosCovid\n ArrayList <BeneficiosCovid19> arrayBeneficios = new ArrayList <BeneficiosCovid19>();\n\n System.out.println(\"Por favor ingresar Subsidios para la lista Nro: \" + posarray);\n\n // Variables de trabajo\n String tipoDato = \"\";\n String info = \"\";\n String idrandom;\n String continuar = constantes.TXT_SI;\n //iniciar Ciclo para cargar informacion\n //while (continuar.equals(\"SI\")){\n\n //Definir Objeto de la clase BeneficiosCovid\n BeneficiosCovid19 beneficios_Covid = new BeneficiosCovid19();\n\n //Ingresar Nombre Tipo Alfa\n tipoDato = \"A\";\n info = validarinfo(constantes.TXT_Inp_Nombre,tipoDato);\n beneficios_Covid.setNombre(info);\n\n //Ingresar Valor Subsidio Tipo Numerico\n tipoDato = \"N\";\n info = validarinfo(constantes.TXT_Inp_Subsidio,tipoDato);\n beneficios_Covid.setValorSubsidio(Float.parseFloat(info));\n\n //Obtener el ID de manera aleatoria\n idrandom = getIdBeneficio();\n beneficios_Covid.setId(idrandom);\n\n arrayBeneficios.add(beneficios_Covid);\n\n /**\n * Validacion para continuar o finalizar el ciclo\n * principaly finalizar Main de manera controlada\n * por consola\n **/\n\n /* tipoDato = \"A\";\n continuar = validarinfo(constantes.TXT_Msg_Continuar,tipoDato);\n // Validar valor ingrsado para continuar o finalizar aplicación\n while ( !continuar.equals(\"SI\") && !continuar.equals(\"NO\")) {\n continuar = validarinfo(constantes.TXT_Msg_Continuar, tipoDato);\n }\n\n }\n */\n return arrayBeneficios;\n }", "List<Vehiculo>listar();", "public List<Listas_de_las_Solicitudes> Mostrar_las_peticiones_que_han_llegado_al_Usuario_Administrador(int cedula) {\n\t\t//paso3: Obtener el listado de peticiones realizadas por el usuario\n\t\tEntityManagerFactory entitymanagerfactory = Persistence.createEntityManagerFactory(\"LeyTransparencia\");\n\t\tEntityManager entitymanager = entitymanagerfactory.createEntityManager();\n\t\tentitymanager.getEntityManagerFactory().getCache().evictAll();\n\t\tQuery consulta4=entitymanager.createQuery(\"SELECT g FROM Gestionador g WHERE g.cedulaGestionador =\"+cedula);\n\t\tGestionador Gestionador=(Gestionador) consulta4.getSingleResult();\n\t\t//paso4: Obtener por peticion la id, fecha y el estado\n\t\tList<Peticion> peticion=Gestionador.getEmpresa().getPeticions();\n\t\tList<Listas_de_las_Solicitudes> peticion2 = new ArrayList();\n\t\t//paso5: buscar el area de cada peticion\n\t\tfor(int i=0;i<peticion.size();i++){\n\t\t\tString almcena=\"\";\n\t\t\tString sarea=\"no posee\";\n\t\t\tBufferedReader in;\n\t\t\ttry{\n\t\t\t\tin = new BufferedReader(new InputStreamReader(new FileInputStream(\"C:/area/area\"+String.valueOf(peticion.get(i).getIdPeticion())+\".txt\"), \"utf-8\"));\n\t\t\t\ttry {\n\t\t\t\t\twhile((sarea=in.readLine())!=null){\n\t\t\t\t\t\tint s=0;\n\t\t\t\t\t\talmcena=sarea;\n\t\t\t\t\t}\n\t\t\t\t\tin.close();\n\t\t\t\t\tSystem.out.println(almcena);\n\t\t\t\t} catch (IOException 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\t\n\t\t\t\n\t\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (FileNotFoundException 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\t//paso6: Mostrar un listado de peticiones observando el id, la fecha de realizacion de la peticion, hora de realizacion de la peticion, y el estado actual de la peticion\n\t\t\tListas_de_las_Solicitudes agregar=new Listas_de_las_Solicitudes();\n\t\t\tagregar.setId(String.valueOf(peticion.get(i).getIdPeticion()));\n\t\t\tagregar.setFechaPeticion(peticion.get(i).getFechaPeticion());\n\t\t\tagregar.setNombreestado(peticion.get(i).getEstado().getTipoEstado());\n\t\t\tagregar.setArea(almcena);\n\t\t\tpeticion2.add(agregar);\n\t\t\t\n\t\t\t\n\t\t}\n\t\tSystem.out.println(\"el usuario existe\");\n\t\treturn peticion2;\n\t\t//aun no se\n\t}", "public void listarProvincia() {\n provincias = JPAFactoryDAO.getFactory().getProvinciaDAO().find();\n// for(int i=0;i<provincias.size();i++ ){\n// System.out.println(\"lista:\"+provincias.get(i).getNombreprovincia());\n// }\n }", "List<Oficios> buscarActivas();", "public void listarDadosNaTelaAreaDeConhecimento(ArrayList<AreaDeConhecimento> lista, DefaultTableModel model) {\n model.setNumRows(0);\n //Correr o ArrayList\n for (int pos = 0; pos < lista.size(); pos++) {\n String[] linha = new String[3];\n AreaDeConhecimento aux = lista.get(pos);\n linha[0] = \"\" + aux.getId();\n linha[1]=aux.getClassificacaoDecimalDireito();\n linha[2] = aux.getDescricao();\n model.addRow(linha);\n }\n }", "public static void main(String[] args) {\n\t// write your code her\n\n //Crear objeto de la clase BeneficiosCovid19\n BeneficiosCovid19 beneficioscovid = new BeneficiosCovid19();\n\n // Declarar tamaño vector\n int nroarray;\n\n // Crear lista de la Clase BeneficiosCovid19\n ArrayList<BeneficiosCovid19> lista1 = new ArrayList<BeneficiosCovid19>();\n ArrayList<BeneficiosCovid19> lista2 = new ArrayList<BeneficiosCovid19>();\n\n //Ingresar Informacion al lista1\n nroarray= 1;\n lista1 = IngresarInfoLista(nroarray);\n /*\n for (int i = 0; i < lista1.size(); i++){\n System.out.println(\"ID: \" + lista1.get(i).getId());\n System.out.println(\"Nombre: \" + lista1.get(i).getNombre());\n System.out.println(\"Valor: \" + lista1.get(i).getValorSubsidio());\n }\n */\n\n //Ingresar Informacion al lista2\n nroarray= 2;\n lista2 = IngresarInfoLista(nroarray);\n /*\n for (int i = 0; i < lista2.size(); i++){\n System.out.println(\"ID: \" +lista2.get(i).getId());\n System.out.println(\"Nombre: \" +lista2.get(i).getNombre());\n System.out.println(\"Valor: \" +lista2.get(i).getValorSubsidio());\n }\n */\n\n //Comparar y mostra comparacion entre lista\n getMejorbeneficios(lista1,lista2);\n\n }", "private static void ListaProduto() throws IOException {\n \n if(ListaDProduto.isEmpty()){\n SaidaDados(\"Nenhum produto cadastrado\");\n return;\n }\n \n \n\t\tFileWriter arq = new FileWriter(\"lista_produto.txt\"); // cria o arquivo\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// será criado o\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// arquivo para\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// armazenar os\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// dados\n\t\tPrintWriter gravarArq = new PrintWriter(arq); // imprimi no arquivo \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// dados.\n\n\t\tString relatorio = \"\";\n\n\t\tgravarArq.printf(\"+--LISTA DE PRODUTOS--+\\r\\n\");\n\n\t\tfor (int i = 0; i < ListaDProduto.size(); i++) {\n\t\t\tProduto Lista = ListaDProduto.get(i);\n\t\t\t\n\n\t\t\tgravarArq.printf(\n\t\t\t\t\t\" - |Codigo: %d |NOME: %s | VALOR COMPRA: %s | VALOR VENDA: %s | INFORMAÇÕES DO PRODUTO: %s | INFORMAÇÕES TÉCNICAS: %s\\r\\n\",\n\t\t\t\t\tLista.getCodigo(), Lista.getNome(), Lista.getPrecoComprado(),\n\t\t\t\t\tLista.getPrecoVenda(), Lista.getInformacaoProduto(), Lista.getInformacaoTecnicas()); // formatação dos dados no arquivos\n \n\t\t\t\t\t\t\t\t\t\t\t\n\n\t\t\t\n\n\t\t\trelatorio += \"\\nCódigo: \" + Lista.getCodigo() +\n \"\\nNome: \" + Lista.getNome() +\n\t\t\t\t \"\\nValor de Compra: \" + Lista.getPrecoComprado() + \n \"\\nValor de Venda: \" + Lista.getPrecoVenda() +\n \"\\nInformações do Produto: \" + Lista.getInformacaoProduto() +\n \"\\nInformações Técnicas: \" + Lista.getInformacaoTecnicas() +\n \"\\n------------------------------------------------\";\n\n\t\t}\n \n \n\n\t\tgravarArq.printf(\"+------FIM------+\\r\\n\");\n\t\tgravarArq.close();\n\n\t\tSaidaDados(relatorio);\n\n\t}", "public void selecteazaComanda()\n {\n for(String[] comanda : date) {\n if (comanda[0].compareTo(\"insert client\") == 0)\n clientBll.insert(idClient++, comanda[1], comanda[2]);\n else if (comanda[0].compareTo(\"insert product\") == 0)\n {\n Product p = productBll.findProductByName(comanda[1]);\n if(p!=null)//daca produsul exista deja\n productBll.prelucreaza(p.getId(), comanda[1], Float.parseFloat(comanda[2]), Float.parseFloat(comanda[3]));\n else\n productBll.prelucreaza(idProduct++, comanda[1], Float.parseFloat(comanda[2]), Float.parseFloat(comanda[3]));\n\n }\n else if (comanda[0].contains(\"delete client\"))\n clientBll.sterge(comanda[1]);\n else if (comanda[0].contains(\"delete product\"))\n productBll.sterge(comanda[1]);\n else if (comanda[0].compareTo(\"order\")==0)\n order(comanda);\n else if (comanda[0].contains(\"report\"))\n report(comanda[0]);\n }\n }", "public static void main(String[] args) throws Exception {\n OperacionesListaDoble<Integer> listaDoble = new OperacionesListaDoble<>();\n \n //Add los datos a la lista\n listaDoble.add(1);\n listaDoble.add(3);\n listaDoble.add(4);\n listaDoble.add(8);\n listaDoble.add(5);\n listaDoble.add(2);\n \n //Muestro los datos de la lista\n System.out.println(\"Lista doble: \"+listaDoble.showData());\n \n // 1. Determinar si un dato ingresado por el usuario existe en la lista.\n System.out.println(\"Existe el dato en la lista: \"+listaDoble.searchData(0));\n \n // 2. Insertar nuevos nodos ordenados de mayor a menor e impedir datos duplicados (si el dato ya se encuentra en la lista, no ingresarlo y lanzar excepción).\n OperacionesListaDoble<Integer> newListaDoble = new OperacionesListaDoble<>();\n newListaDoble.addOrdered(1);\n newListaDoble.addOrdered(3);\n newListaDoble.addOrdered(4);\n newListaDoble.addOrdered(8);\n newListaDoble.addOrdered(5);\n newListaDoble.addOrdered(2);\n System.out.println(\"Nueva lista doble ordenada: \"+newListaDoble.showData());\n \n // 3. Eliminar un nodo con un dato específico ingresado por el usuario.\n newListaDoble.delete(8);\n System.out.println(\"Nueva lista doble ordenada con dato eliminado: \"+newListaDoble.showData());\n \n // 4. Insertar nuevos nodos después de un dato especificado por el usuario (si no se encuentra el dato, lanzar excepción).\n newListaDoble.insetarNuevoNodo(5, 0);\n System.out.println(\"Nueva lista doble ordenada con nuevo dato: \"+newListaDoble.showData());\n \n //Ingresar Estudiantes a la lista doble\n OperacionesListaDobleEstudiante studentList = new OperacionesListaDobleEstudiante();\n studentList.addEstudiantesOrdenado(\"43888555\",\"Esperanza\",\"Laureles\",4.9);\n studentList.addEstudiantesOrdenado(\"71666888\",\"Gabriel\",\"Belen\",3.2);\n studentList.addEstudiantesOrdenado(\"43545646\",\"Sandra\",\"Bello\",3.0);\n studentList.addEstudiantesOrdenado(\"35435132\",\"Matias\",\"Itagui\",4.0);\n studentList.addEstudiantesOrdenado(\"31351351\",\"Marta\",\"Poblado\",5.0);\n studentList.addEstudiantesOrdenado(\"31354151\",\"Rosa\",\"Laureles\",1.0);\n studentList.addEstudiantesOrdenado(\"3531352\",\"Paula\",\"Belen\",3.5);\n studentList.addEstudiantesOrdenado(\"31321212\",\"Camilo\",\"Bello\",2.5);\n \n \n //Mostrar la lista de los estudiantes\n System.out.println(\"Lista de estudiantes: \\n\"+studentList.showData());\n \n //Permitir buscar un estudiante por su código y mostrar todos sus datos, si no se encuentra el estudiante, lanzar excepción.\n System.out.println(\"Estudiante buscado: \"+studentList.buscarEstudiante(\"35435132\")+\"\\n\");\n \n //Mostrar el nombre de todos los estudiantes que pertenecen a un mismo barrio ingresado por el usuario, sino existe el barrio, lanzar excepción.\n System.out.println(\"Estudiantes filtrados por barrio: \\n\" + studentList.filtrarPorBarrio(\"Belen\"));\n \n //Crear una nueva lista doble con los estudiantes que han aprobado la materia.\n OperacionesListaDobleEstudiante listaAprobados = new OperacionesListaDobleEstudiante();\n listaAprobados.AddListaAprobados(\"43888555\",\"Esperanza\",\"Laureles\",4.9);\n listaAprobados.AddListaAprobados(\"71666888\",\"Gabriel\",\"Belen\",3.2);\n listaAprobados.AddListaAprobados(\"43545646\",\"Sandra\",\"Bello\",3.0);\n listaAprobados.AddListaAprobados(\"35435132\",\"Matias\",\"Itagui\",4.0);\n listaAprobados.AddListaAprobados(\"31351351\",\"Marta\",\"Poblado\",5.0);\n listaAprobados.AddListaAprobados(\"31354151\",\"Rosa\",\"Laureles\",1.0);\n listaAprobados.AddListaAprobados(\"3531352\",\"Paula\",\"Belen\",3.5);\n listaAprobados.AddListaAprobados(\"31321212\",\"Camilo\",\"Bello\",2.5);\n \n System.out.println(\"Lista de estudiantes aprobados: \\n\"+listaAprobados.showData());\n \n //Crear una nueva lista doble con los estudiantes que han reprobado la materia.\n OperacionesListaDobleEstudiante listaReprobados = new OperacionesListaDobleEstudiante();\n listaReprobados.AddListaReprobados(\"43888555\",\"Esperanza\",\"Laureles\",4.9);\n listaReprobados.AddListaReprobados(\"71666888\",\"Gabriel\",\"Belen\",3.2);\n listaReprobados.AddListaReprobados(\"43545646\",\"Sandra\",\"Bello\",3.0);\n listaReprobados.AddListaReprobados(\"35435132\",\"Matias\",\"Itagui\",4.0);\n listaReprobados.AddListaReprobados(\"31351351\",\"Marta\",\"Poblado\",5.0);\n listaReprobados.AddListaReprobados(\"31354151\",\"Rosa\",\"Laureles\",1.0);\n listaReprobados.AddListaReprobados(\"3531352\",\"Paula\",\"Belen\",3.5);\n listaReprobados.AddListaReprobados(\"31321212\",\"Camilo\",\"Bello\",2.5);\n \n System.out.println(\"Lista de estudiantes reprobados: \\n\"+listaReprobados.showData());\n }", "public void listar() {\r\n Collections.sort(coleccion);\r\n for (int i = 0; i < coleccion.size(); i++) {\r\n String resumen = (coleccion.get(i).toString());\r\n JOptionPane.showMessageDialog(null, resumen);\r\n }\r\n }", "private void criaListaOrdenada(List<Tipo> listaOrdenada, List<AgrupamentoTipoBean> valoresMap) {\n\t\tfor (AgrupamentoTipoBean agrupamentoTipoBean : valoresMap) {\n\t\t\tlistaOrdenada.add(agrupamentoTipoBean.getTipoEvento());\n\t\t}\n\t}", "private List<ItemListaIntegracaoDTO> montarListaInstituicaoIdInstituicaoDTO(List<InstituicaoCooperativaSCIDTO> lista) {\n\t\tList<ItemListaIntegracaoDTO> listaVO = new ArrayList<ItemListaIntegracaoDTO>();\n\n\t\tfor(InstituicaoCooperativaSCIDTO instituicao:lista){\n\t\t\tString cooperativa = instituicao.getNumCooperativa().toString();\n\t\t\tif(instituicao.getNumCooperativa() == 300) {\n\t\t\t\tcooperativa = \"0300\";\n\t\t\t}\n\t\t\tItemListaIntegracaoDTO item = new ItemListaIntegracaoDTO(instituicao.getIdInstituicao().toString(), cooperativa + \" - \" + instituicao.getNome());\n\t\t\tlistaVO.add(item);\n\t\t}\n\t\t\n\t\tCollections.sort(listaVO, new Comparator<ItemListaIntegracaoDTO>() {\n\t\t\tpublic int compare(ItemListaIntegracaoDTO o1, ItemListaIntegracaoDTO o2){\n\t\t\t\t\treturn o1.getCodListaItem().compareTo(o2.getCodListaItem());\n\t\t\t\t} \n\t\t});\n\t\t\n\t\treturn listaVO;\t\t\n\t}", "public void cargaDeDatos(List<List<Object>> Musuarios,List<List<Object>> Mtareas, List<List<Object>> Mrequisitos) {\r\n\tfor (List<Object> l: Musuarios) {\r\n\t\tam.addMiembro(new MiembroDeEquipo((int)l.get(0),(String)l.get(1)));\r\n\t}\r\n\t/**\r\n\t * Cargamos a la lista de administrador de tareas todas las tareas que se encuentran en la base de datos, \r\n\t * si no tiene miembro se le pone a null sino se le añade un miembro.\r\n\t */\r\n\tfor (List<Object> l: Mtareas) {\r\n\t\tat.addTarea(new Tarea((String)l.get(0),(int)l.get(1),(int)l.get(2),(int)l.get(3),(int)l.get(6)));\r\n\t\t//Si tiene un miembro asignado (cualquier id mayor que cero) le añade el miembro de equipo, sino null\r\n\t\tif(0 < (int)l.get(5)) {\r\n\t\t\tat.BuscarTarea((int)l.get(1)).setAsignadoA(am.BuscarMiembro((int) l.get(5)));\r\n\t\t}else {\r\n\t\t\tat.BuscarTarea((int)l.get(1)).setAsignadoA(null);\r\n\t\t}\r\n\t\t//Si tiene un requisito (cualquier id maor que cero) le añade el requisito, sino null\r\n\t\tif(0 < (int)l.get(4)) {\r\n\t\t\tat.BuscarTarea((int)l.get(1)).setRequisito(ar.BuscarRequisito((int) l.get(4)));\r\n\t\t}else {\r\n\t\t\tat.BuscarTarea((int)l.get(1)).setRequisito(null);\r\n\t\t}\r\n\t\tat.BuscarTarea((int)l.get(1)).setDescripcion((String)l.get(7));\r\n\t}\r\n\t/**\r\n\t * Cargamos la lista del administrador de requisitos con todos los requisitos que tenemos,\r\n\t * si el requisito tiene 5 atributos, será un defecto, sino será una historia de usuario\r\n\t */\r\n\tfor (List<Object> l: Mrequisitos) {\r\n\t\tHashSet<Tarea> lista = new HashSet<Tarea>();\r\n\t\t//Buscamos todas las tareas que tengan este requisito, para tener una lista de las tareas que este tiene\r\n\t\tfor(List<Object> t: Mtareas) {\r\n\t\t\t\r\n\t\t\tif((int)l.get(2)==(int)t.get(4)) {\r\n\t\t\t\tlista.add(at.BuscarTarea((int)t.get(1)));\r\n\t\t\t}\r\n\t\t}\r\n\t\t//Creamos defecto o historiaDeUsuario, según sea el caso y lo añadimos a la lista generica de Requisitos.\r\n\t\tif(l.size()==5) {\r\n\t\t\tDefecto req = new Defecto((String)l.get(4),(String) l.get(0), (String)l.get(1),(int)l.get(2),lista);\r\n\t\t\tif((int)l.get(3)==1) {\r\n\t\t\treq.finalizar();\r\n\t\t\t}\r\n\t\t\tar.addRequisito(req);\r\n\t\t}else {\r\n\t\t\tRequisito req = new HistoriaDeUsuario((String) l.get(0), (String)l.get(1),(int)l.get(2));\r\n\t\t\tif(!lista.isEmpty()) {\r\n\t\t\t\treq.setRequisitos(lista);\r\n\t\t\t}\r\n\t\t\tif((int)l.get(3)==1) {\r\n\t\t\treq.finalizar();\r\n\t\t\t}\r\n\t\t\tar.addRequisito(req);\t\t\r\n\t\t}\r\n\t}\r\n\tfor (List<Object> l: Mtareas) {\r\n\t\t//Si tiene un requisito (cualquier id maor que cero) le añade el requisito, sino null\r\n\t\tif(0 < (int)l.get(4)) {\r\n\t\t\tat.BuscarTarea((int)l.get(1)).setRequisito(ar.BuscarRequisito((int) l.get(4)));\r\n\t\t}else {\r\n\t\t\tat.BuscarTarea((int)l.get(1)).setRequisito(null);\r\n\t\t}\r\n\t}\r\n}", "private static void afficherLeslistes(List<List<Recette>> listeProposition) {\n\t\tfor (int i = 0; i < listeProposition.size(); i++) {\n\t\t\tList<Recette> liste = listeProposition.get(i);\n\t\t\tSystem.out.println(i + 1);\n\t\t\tfor (int s = 0; s < liste.size(); s++) {\n\t\t\t\tRecette recette = liste.get(s);\n\t\t\t\tString note = \"\";\n\t\t\t\tfor (int n = 0; n < recette.getNote(); n++) {\n\t\t\t\t\tnote += \"*\";\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\" - \" + recette.getNom() + \" (\" + note + \")\");\n\t\t\t}\n\t\t}\n\t}", "private static List<Etudiant> creationListeEtudiants(List<String> datas,boolean modele){\n\t\tList<String> dataEtudiant = new ArrayList<String>();\n\t\tList<Etudiant> etudiants = new ArrayList<Etudiant>();\n\t\tIterator<String> it = datas.iterator();\n\t\twhile (it.hasNext()) {//on parcourt les donnees\n\t\t\tString data = it.next();\n\t\t\tif(RecherchePattern.rechercheDebutEtudiant(data)){\t//si on change d'etudiant on reset les donnees concernant l'ancien etudiant\n\t\t\t\treset();\n\t\t\t\tdataEtudiant = new ArrayList<String>();//on reset les donnees\n\t\t\t\tsetNbEtudiant(getNbEtudiant() + 1);\n\t\t\t}\n\t\t\telse{//si on a pas changer d'etudiant on stocke ces donnees\n\t\t\t\tif(RecherchePattern.rechercheFinEtudiant(data)){//si on est a la fin des donnees on creer l'etudiant\n\t\t\t\t\tdataEtudiant.add(data); //on ajoute le dernier element au donnee\n\t\t\t\t\tif(!modele)\n\t\t\t\t\t\tetudiants.add(ajoutEtudiant(dataEtudiant));\n\t\t\t\t\telse\n\t\t\t\t\t\tetudiants.add(ajoutEtudiantModele(dataEtudiant));\n\t\t\t\t\treset();\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tdataEtudiant.add(data);//on est pas a la fin on attend\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tetudiants = suppressionDoublons(etudiants); //on supprime les\n\t\treturn etudiants;\n\t}", "@Override\n public void mostrarListadoEquipos(List<Equipo> equipos) {\n\n }", "public List<Tipousr> findAllTipos(){\n\t\t List<Tipousr> listado;\n\t\t Query q;\n\t\t em.getTransaction().begin();\n\t\t q=em.createQuery(\"SELECT u FROM Tipousr u ORDER BY u.idTipousr\");\n\t\t listado= q.getResultList();\n\t\t em.getTransaction().commit();\n\t\t return listado;\n\t\t \n\t\t}", "@Override\n public void onPeticionesRecibidasObtenidas(List<PeticionQuedada> peticionesQuedadas) {\n this.lista_peticiones= peticionesQuedadas;\n lista_peticionesRecibidas=new ArrayList<>();\n\n\n progressDialog.show();\n Log.i(\"ADAPTADOR\", \"+++++++++ LISTA PETICIONES RECIBIDAS ++++++++\\n\" + peticionesQuedadas.toString());\n\n PeticionQuedada mPeticionQuedada= peticionesQuedadas.get(peticionesQuedadas.size()-1);\n\n Log.i(\"ADAPTADOR\", \"+++++++++ OBTENIENDO FOTO ++++++++\\n\" + mPeticionQuedada.toString());\n\n presenter.obtenerFotoUsuario(mPeticionQuedada.getAutor_peticion(),mPeticionQuedada);\n\n\n }", "public static void llenarSoriana(){\r\n Producto naranja1 = new Producto (\"naranja\", \"el huertito\", 25, 0);\r\n Nodo<Producto> nTemp1 = new Nodo(naranja1);\r\n listaSoriana.agregarNodo(nTemp1);\r\n \r\n Producto naranja2 = new Producto (\"naranja\", \"el ranchito\", 34, 0);\r\n Nodo<Producto> nTemp2 = new Nodo (naranja2);\r\n listaSoriana.agregarNodo(nTemp2);\r\n \r\n Producto manzana3 = new Producto (\"manzana\", \"el rancho de don chuy\", 24, 0);\r\n Nodo<Producto> nTemp3 = new Nodo (manzana3);\r\n listaSoriana.agregarNodo(nTemp3);\r\n \r\n Producto manzana4 = new Producto (\"manzana\", \"la costeña\", 15, 0);\r\n Nodo<Producto> nTemp4 = new Nodo(manzana4);\r\n listaSoriana.agregarNodo(nTemp4);\r\n \r\n Producto platano5 = new Producto (\"platano\", \"el Huertito\", 26, 0);\r\n Nodo<Producto> nTemp5 = new Nodo (platano5);\r\n listaSoriana.agregarNodo(nTemp5);\r\n \r\n Producto platano6 = new Producto (\"platano\", \"granjita dorada\", 36, 0);\r\n Nodo<Producto> nTemp6 = new Nodo (platano6);\r\n listaSoriana.agregarNodo (nTemp6);\r\n \r\n Producto pera7 = new Producto (\"pera\", \"el rancho de don chuy\", 38, 0);\r\n Nodo<Producto> nTemp7 = new Nodo (pera7);\r\n listaSoriana.agregarNodo(nTemp7);\r\n \r\n Producto pera8 = new Producto (\"pera\", \"la costeña\", 8,0);\r\n Nodo<Producto> nTemp8 = new Nodo (pera8);\r\n listaSoriana.agregarNodo(nTemp8);\r\n \r\n Producto durazno9 = new Producto (\"durazno\", \"el huertito\", 12.50, 0);\r\n Nodo<Producto> nTemp9 = new Nodo (durazno9);\r\n listaSoriana.agregarNodo(nTemp9);\r\n \r\n Producto fresa10 = new Producto (\"fresa\", \"el rancho de don chuy\", 35.99,0);\r\n Nodo<Producto> nTemp10 = new Nodo (fresa10);\r\n listaSoriana.agregarNodo(nTemp10);\r\n \r\n Producto fresa11 = new Producto (\"fresa\", \"grajita dorada\", 29.99,0);\r\n Nodo<Producto> nTemp11 = new Nodo (fresa11);\r\n listaSoriana.agregarNodo(nTemp11);\r\n \r\n Producto melon12 = new Producto (\"melon\", \"la costeña\", 18.50, 0);\r\n Nodo<Producto> nTemp12 = new Nodo (melon12);\r\n listaSoriana.agregarNodo(nTemp12);\r\n \r\n Producto melon13 = new Producto (\"melon\", \"el huertito\", 8.50, 0);\r\n Nodo<Producto> nTemp13 = new Nodo (melon13);\r\n listaSoriana.agregarNodo(nTemp13);\r\n \r\n Producto elote14 = new Producto (\"elote\", \"el ranchito\", 6, 0);\r\n Nodo<Producto> nTemp14 = new Nodo (elote14);\r\n listaSoriana.agregarNodo(nTemp14);\r\n \r\n Producto elote15 = new Producto (\"elote\", \"moctezuma\", 12, 0);\r\n Nodo<Producto> nTemp15 = new Nodo (elote15);\r\n listaSoriana.agregarNodo(nTemp15);\r\n \r\n Producto aguacate16 = new Producto (\"aguacate\", \"la costeña\", 35, 0);\r\n Nodo<Producto> nTemp16 = new Nodo (aguacate16);\r\n listaSoriana.agregarNodo(nTemp16);\r\n \r\n Producto cebolla17 = new Producto (\"cebolla\", \"granjita dorada\", 8.99, 0);\r\n Nodo<Producto> nTemp17 = new Nodo (cebolla17);\r\n listaSoriana.agregarNodo(nTemp17);\r\n \r\n Producto tomate18 = new Producto (\"tomate\", \"el costeñito feliz\", 10.50, 0);\r\n Nodo<Producto> nTemp18 = new Nodo (tomate18);\r\n listaSoriana.agregarNodo(nTemp18);\r\n \r\n Producto tomate19 = new Producto (\"tomate\", \"el ranchito\", 8.99, 0);\r\n Nodo<Producto> nTemp19 = new Nodo (tomate19);\r\n listaSoriana.agregarNodo(nTemp19);\r\n \r\n Producto limon20 = new Producto (\"limon\", \"la costeña\", 3.50, 0);\r\n Nodo<Producto> nTemp20 = new Nodo (limon20);\r\n listaSoriana.agregarNodo(nTemp20);\r\n \r\n Producto limon21 = new Producto (\"limon\", \"el ranchito\", 10.99, 0);\r\n Nodo<Producto> nTemp21 = new Nodo (limon21);\r\n listaSoriana.agregarNodo(nTemp21);\r\n \r\n Producto papas22 = new Producto (\"papas\", \"la costeña\", 11, 0);\r\n Nodo<Producto> nTemp22 = new Nodo(papas22);\r\n listaSoriana.agregarNodo(nTemp22);\r\n \r\n Producto papas23 = new Producto (\"papas\", \"granjita dorada\", 4.99, 0);\r\n Nodo<Producto> nTemp23 = new Nodo(papas23);\r\n listaSoriana.agregarNodo(nTemp23);\r\n \r\n Producto chile24 = new Producto (\"chile\", \"el rancho de don chuy\", 2.99, 0);\r\n Nodo<Producto> nTemp24 = new Nodo (chile24);\r\n listaSoriana.agregarNodo(nTemp24);\r\n \r\n Producto chile25 = new Producto (\"chile\",\"la costeña\", 12, 0);\r\n Nodo<Producto> nTemp25 = new Nodo (chile25);\r\n listaSoriana.agregarNodo(nTemp25);\r\n \r\n Producto jamon26 = new Producto (\"jamon\",\"fud\", 25, 1);\r\n Nodo<Producto> nTemp26 = new Nodo(jamon26);\r\n listaSoriana.agregarNodo(nTemp26);\r\n \r\n Producto jamon27 = new Producto(\"jamon\", \"kir\", 13.99, 1);\r\n Nodo<Producto> nTemp27 = new Nodo(jamon27);\r\n listaSoriana.agregarNodo(nTemp27);\r\n \r\n Producto peperoni28 = new Producto (\"peperoni28\", \"fud\", 32, 1);\r\n Nodo<Producto> nTemp28 = new Nodo (peperoni28);\r\n listaSoriana.agregarNodo(nTemp28);\r\n \r\n Producto salchicha29 = new Producto (\"salchicha\", \" san rafael\", 23.99, 1);\r\n Nodo<Producto> nTemp29 = new Nodo (salchicha29);\r\n listaSoriana.agregarNodo(nTemp29); \r\n \r\n Producto huevos30 = new Producto (\"huevos\", \"san rafael\", 30.99, 1);\r\n Nodo<Producto> nTemp30 = new Nodo (huevos30);\r\n listaSoriana.agregarNodo(nTemp30);\r\n \r\n Producto chuletas31 = new Producto (\"chuletas\", \"la res dorada\", 55, 1);\r\n Nodo<Producto> nTemp31 = new Nodo (chuletas31);\r\n listaSoriana.agregarNodo(nTemp31);\r\n \r\n Producto carnemolida32 = new Producto (\"carne molida\", \"san rafael\", 34, 1);\r\n Nodo<Producto> nTemp32 = new Nodo (carnemolida32);\r\n listaSoriana.agregarNodo(nTemp32);\r\n \r\n Producto carnemolida33 = new Producto (\"carne molida\", \"la res dorada\", 32.99, 1);\r\n Nodo<Producto> nTemp33 = new Nodo (carnemolida33);\r\n listaSoriana.agregarNodo(nTemp33);\r\n \r\n Producto pollo34 = new Producto (\"pollo\", \"pollito feliz\", 38, 1);\r\n Nodo<Producto> nTemp34 = new Nodo (pollo34);\r\n listaSoriana.agregarNodo(nTemp34);\r\n \r\n Producto pescado35 = new Producto (\"pescado\", \"pescadito\", 32.99, 1);\r\n Nodo<Producto> nTemp35 = new Nodo (pescado35);\r\n listaSoriana.agregarNodo(nTemp35);\r\n \r\n Producto quesolaurel36 = new Producto (\"queso\", \"laurel\", 23.50, 1);\r\n Nodo<Producto> nTemp36 = new Nodo (quesolaurel36);\r\n listaSoriana.agregarNodo(nTemp36);\r\n \r\n Producto leche37 = new Producto (\"leche\", \"nutrileche\", 12.99, 1);\r\n Nodo<Producto> nTemp37 = new Nodo (leche37);\r\n listaSoriana.agregarNodo(nTemp37);\r\n \r\n Producto lechedeslactosada38 = new Producto (\"leche deslactosada\", \"lala\", 17.50, 1);\r\n Nodo<Producto> nTemp38 = new Nodo (lechedeslactosada38);\r\n listaSoriana.agregarNodo(nTemp38);\r\n \r\n Producto panblanco39 = new Producto (\"pan blanco\", \"bombo\", 23.99, 2);\r\n Nodo<Producto> nTemp39 = new Nodo (panblanco39);\r\n listaSoriana.agregarNodo(nTemp39);\r\n \r\n Producto atun40 = new Producto (\"atun\", \"la aleta feliz\", 12, 2);\r\n Nodo<Producto> nTemp40 = new Nodo (atun40);\r\n listaSoriana.agregarNodo(nTemp40);\r\n \r\n Producto atun41 = new Producto (\"atun\", \"el barco\", 10.99, 2);\r\n Nodo<Producto> nTemp41 = new Nodo (atun41);\r\n listaSoriana.agregarNodo(nTemp41);\r\n \r\n Producto arroz42 = new Producto (\"arroz\", \"mi marca\", 12.50, 2);\r\n Nodo<Producto> nTemp42 = new Nodo (arroz42);\r\n listaSoriana.agregarNodo(nTemp42);\r\n \r\n Producto arroz43 = new Producto (\"arroz\", \"soriana\", 9.99, 2);\r\n Nodo<Producto> nTemp43 = new Nodo (arroz43);\r\n listaSoriana.agregarNodo(nTemp43);\r\n \r\n Producto frijol44 = new Producto (\"frijol\", \"mi marca\", 10.99, 2);\r\n Nodo<Producto> nTemp44 = new Nodo (frijol44);\r\n listaSoriana.agregarNodo(nTemp44);\r\n \r\n Producto frijol45 = new Producto (\"frijol\", \"soriana\", 15.99, 2);\r\n Nodo<Producto> nTemp45 = new Nodo (frijol45);\r\n listaSoriana.agregarNodo(nTemp45);\r\n \r\n Producto azucar46 = new Producto (\"azucar\", \"mi marca\", 12.50, 2);\r\n Nodo<Producto> nTemp46 = new Nodo (azucar46);\r\n listaSoriana.agregarNodo(nTemp46);\r\n \r\n Producto azucar47 = new Producto (\"azucar\", \"zulka\", 15.99, 2);\r\n Nodo<Producto> nTemp47 = new Nodo (azucar47);\r\n listaSoriana.agregarNodo(nTemp47);\r\n \r\n Producto servilletas48 = new Producto (\"servilletas\", \"esponjosas\",10.50, 2);\r\n Nodo<Producto> nTemp48 = new Nodo (servilletas48);\r\n listaSoriana.agregarNodo(nTemp48);\r\n \r\n Producto sal49 = new Producto (\"sal\", \"mar azul\", 3.99, 2);\r\n Nodo<Producto> nTemp49 = new Nodo (sal49);\r\n listaSoriana.agregarNodo(nTemp49);\r\n \r\n Producto aceitedecocina50 = new Producto (\"aceite de cocina\", \"123\", 15.99, 2);\r\n Nodo<Producto> nTemp50 = new Nodo (aceitedecocina50);\r\n listaSoriana.agregarNodo(nTemp50);\r\n \r\n Producto caffe51 = new Producto (\"caffe\", \"nescafe\", 23, 2);\r\n Nodo<Producto> nTemp51 = new Nodo (caffe51);\r\n listaSoriana.agregarNodo(nTemp51);\r\n \r\n Producto puredetomate52 = new Producto (\"pure de tomate\", \" la costeña\", 12.99, 2);\r\n Nodo<Producto> nTemp52 = new Nodo (puredetomate52);\r\n listaSoriana.agregarNodo(nTemp52);\r\n \r\n Producto lentejas53 = new Producto (\"lentejas\", \"la granjita\", 8.99, 2);\r\n Nodo<Producto> nTemp53 = new Nodo (lentejas53);\r\n listaSoriana.agregarNodo(nTemp53);\r\n \r\n Producto zuko54 = new Producto (\"zuko\", \"zuko\", 2.99, 2);\r\n Nodo<Producto> nTemp54 = new Nodo (zuko54);\r\n listaSoriana.agregarNodo(nTemp54);\r\n \r\n Producto champu55 = new Producto (\"champu\", \"loreal\", 32, 3);\r\n Nodo<Producto> nTemp55 = new Nodo (champu55);\r\n listaSoriana.agregarNodo(nTemp55);\r\n \r\n Producto champu56 = new Producto (\"champu\", \"el risueño\", 29.99, 3);\r\n Nodo<Producto> nTemp56 = new Nodo (champu56);\r\n listaSoriana.agregarNodo(nTemp56);\r\n \r\n Producto desodorante57 = new Producto (\"desodorante\", \"nivea\", 23.50, 3);\r\n Nodo<Producto> nTemp57 = new Nodo (desodorante57);\r\n listaSoriana.agregarNodo(nTemp57);\r\n \r\n Producto pastadedientes58 = new Producto(\"pasta de dientes\", \"colgate\", 17.50, 3);\r\n Nodo<Producto> nTemp58 = new Nodo (pastadedientes58);\r\n listaSoriana.agregarNodo(nTemp58);\r\n \r\n Producto pastadedientes59 = new Producto (\"pasta de dientes\", \"el diente blanco\", 29, 3);\r\n Nodo<Producto> nTemp59 = new Nodo (pastadedientes59);\r\n listaSoriana.agregarNodo(nTemp59);\r\n \r\n Producto rastrillos60 = new Producto (\"rastrillos\", \"el filosito\", 33.99, 3);\r\n Nodo<Producto> nTemp60 = new Nodo (rastrillos60);\r\n listaSoriana.agregarNodo(nTemp60);\r\n \r\n Producto rastrillos61 = new Producto (\"rastrillos\", \"barba de oro\", 23.99, 3);\r\n Nodo<Producto> nTemp61 = new Nodo (rastrillos61);\r\n listaSoriana.agregarNodo(nTemp61);\r\n \r\n Producto hilodental62 = new Producto (\"hilo dental\", \"el diente blanco\", 32.99, 3);\r\n Nodo<Producto> nTemp62 = new Nodo (hilodental62);\r\n listaSoriana.agregarNodo(nTemp62);\r\n \r\n Producto cepillodedientes63 = new Producto (\"cepillo de dientes\", \"OBBM\", 17.99, 3);\r\n Nodo<Producto> nTemp63 = new Nodo (cepillodedientes63);\r\n listaSoriana.agregarNodo(nTemp63);\r\n \r\n Producto cloro64 = new Producto (\"cloro\", \"cloralex\", 23.50, 3);\r\n Nodo<Producto> nTemp64 = new Nodo (cloro64);\r\n listaSoriana.agregarNodo(nTemp64);\r\n \r\n Producto acondicionador65 = new Producto (\"acondicionador\", \"sedal\", 28.99, 3);\r\n Nodo<Producto> nTemp65 = new Nodo (acondicionador65);\r\n listaSoriana.agregarNodo(nTemp65);\r\n \r\n Producto acondicionador66 = new Producto (\"acondicionador\", \"pantene\", 23.99, 3);\r\n Nodo<Producto> nTemp66 = new Nodo (acondicionador66);\r\n listaSoriana.agregarNodo(nTemp66);\r\n \r\n Producto pinol67 = new Producto(\"pinol\", \"mi piso limpio\", 15, 3);\r\n Nodo<Producto> nTemp67 = new Nodo (pinol67);\r\n listaSoriana.agregarNodo(nTemp67);\r\n \r\n Producto pinol68 = new Producto (\"pinol\", \"eficaz\", 18.99, 3);\r\n Nodo<Producto> nTemp68 = new Nodo (pinol68);\r\n listaSoriana.agregarNodo(nTemp68);\r\n \r\n Producto tortillas69 = new Producto (\"tortillas\", \"maizena\", 8.99, 2);\r\n Nodo<Producto> nTemp69 = new Nodo (tortillas69);\r\n listaSoriana.agregarNodo(nTemp69);\r\n \r\n Producto cremaparacuerpo70 = new Producto (\"crema para cuerpo\", \"dove\", 13.50, 3);\r\n Nodo<Producto> nTemp70 = new Nodo (cremaparacuerpo70);\r\n listaSoriana.agregarNodo(nTemp70);\r\n \r\n Producto maizoro71 = new Producto (\"maizoro\", \"special k\", 35.99, 2);\r\n Nodo<Producto> nTemp71 = new Nodo (maizoro71);\r\n listaSoriana.agregarNodo(nTemp71);\r\n \r\n Producto maizoro72 = new Producto (\"maizoro\",\"azucaradas\", 43, 2);\r\n Nodo<Producto> nTemp72 = new Nodo (maizoro72);\r\n listaSoriana.agregarNodo(nTemp72);\r\n \r\n Producto zanahoria73 = new Producto (\"zanahoria\", \"el huertito\", 12.99, 0);\r\n Nodo<Producto> nTemp73 = new Nodo (zanahoria73);\r\n listaSoriana.agregarNodo(nTemp73);\r\n \r\n Producto maizoro74 = new Producto (\"maizoro\", \"cherrios\", 45, 2);\r\n Nodo<Producto> nTemp74 = new Nodo (maizoro74);\r\n listaSoriana.agregarNodo(nTemp74);\r\n \r\n Producto mayonesa75 = new Producto (\"mayonesa\", \"helmans\", 23, 2);\r\n Nodo<Producto> nTemp75 = new Nodo (mayonesa75);\r\n listaSoriana.agregarNodo(nTemp75);\r\n }", "private void pickListCarreras(Proyecto proyecto) {\r\n sessionProyecto.getCarrerasProyecto().clear();\r\n sessionProyecto.getFilterCarrerasProyecto().clear();\r\n List<Carrera> carrerasProyecto = new ArrayList<>();\r\n List<Carrera> usuarioCarreras = new ArrayList<>();\r\n try {\r\n List<ProyectoCarreraOferta> lips = proyectoCarreraOfertaService.buscar(new ProyectoCarreraOferta(proyecto, null, null, Boolean.TRUE));\r\n if (lips != null) {\r\n for (ProyectoCarreraOferta pco : lips) {\r\n Carrera c = carreraService.find(pco.getCarreraId());\r\n if (!carrerasProyecto.contains(c)) {\r\n carrerasProyecto.add(c);\r\n }\r\n }\r\n }\r\n for (Carrera carrera : sessionProyecto.getCarreras()) {\r\n if (!usuarioCarreras.contains(carrera)) {\r\n usuarioCarreras.add(carrera);\r\n }\r\n }\r\n sessionProyecto.setCarrerasDualList(new DualListModel<>(carreraService.diferenciaProyectoCarrera(\r\n usuarioCarreras, carrerasProyecto), carrerasProyecto));\r\n sessionProyecto.setCarrerasProyecto(carrerasProyecto);\r\n sessionProyecto.setFilterCarrerasProyecto(sessionProyecto.getCarrerasProyecto());\r\n } catch (Exception e) {\r\n System.out.println(e);\r\n }\r\n }", "private void cargaLista() {\n this.getTipoApelacionSelecionada().add(new SelectItem(\"Aclaracion\", \"Aclaracion\"));\n this.getTipoApelacionSelecionada().add(new SelectItem(\"Revision\", \"Revision\"));\n this.getTipoApelacionSelecionada().add(new SelectItem(\"Revocatoria\", \"Revocatoria\"));\n this.getTipoApelacionSelecionada().add(new SelectItem(\"Subsidiaria\", \"Subsidiaria\"));\n \n }", "void listarDadosNaTelaColaborador(ArrayList<Colaborador> lista,DefaultTableModel model ) {\n model.setNumRows(0);\n //Correr o ArrayList\n for (int pos = 0; pos < lista.size(); pos++) {\n String[] linha = new String[9];\n Colaborador aux = lista.get(pos);\n linha[0] = \"\"+aux.getId();\n linha[1] = \"\"+aux.getMatricula();\n linha[2] = aux.getNome();\n linha[3] = \"\"+aux.getNumeroOAB();\n linha[4] = \"\"+aux.getCpf();\n linha[5] = aux.getEmail();\n linha[6] = \"\"+aux.getTelefone();\n linha[7] = aux.getTipo().toString();\n linha[8] = aux.getStatus().toString();\n model.addRow(linha);\n }\n }", "private void setUpList() {\n\n\n Contents s1 = new Contents(R.drawable.bishist,\"Bishisht Bhatta\",\"+977-9849849525\", Color.parseColor(\"#074e87\"));\n list.add(s1);\n Contents s2 = new Contents(R.drawable.sagar,\"Sagar Pant\",\"+977-9865616888\",Color.parseColor(\"#074e87\"));\n list.add(s2);\n Contents s3 = new Contents(R.drawable.rabins,\"Rabin Nath\",\"+977-9848781007\",Color.parseColor(\"#074e87\"));\n list.add(s3);\n\n\n }", "private void carregarAlunosTurma() {\n AcessoFirebase.getFirebase().addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n getUidUsuariosTurma(dataSnapshot);\n montandoArrayListUsuarios(dataSnapshot);\n }\n @Override\n public void onCancelled(DatabaseError databaseError) {\n }\n });\n }", "public void nastavSeznamHer(ArrayList<Game> seznam) {\n\n listModel.clear();\n for (Game hra : seznam) {\n listModel.addElement(\"Hra: \" + hra.idHry + \" zalozil hrac: \" + hra.jmenoProtihrace);\n }\n\n }", "public void trancribirPistas() {\r\n\t\t\r\n\t\tfor (int x = 0; x<manejadorArchivos.getPistas().size();x++) {\r\n\t\t\t\r\n\t\t\tpistas.add(manejadorArchivos.getPistas().get(x));\t\r\n\t\t}\r\n\t}", "private void napuniCbPozoriste() {\n\t\t\r\n\t\tfor (Pozoriste p:Kontroler.getInstanca().vratiPozorista())\r\n\t\t\t\r\n\t\t\tcbPozoriste.addItem(p.getImePozorista());\r\n\t}", "public static void CrearListaDeOleadasPorNivel(LinkedList<LinkedList<Enemigo>> Enemigos, int NumeroDeNivel, LinkedList<LinkedList<Posicion>> ListaDeEstelas, double Velocidad) {\n\t\tRandom aleatorio = new Random();\n\t\tint oleada = 1;\n\n\t\t// Genera un numero Random de enemigos para cada nivel de 12 a 17\n\t\tInteger numeroDeEnemigosPorNivel = (12 + aleatorio.nextInt(6));\n\n\t\t// Adentro de este loop se agregan todos los enemigos a la lista Enemigos\n\t\twhile (numeroDeEnemigosPorNivel > 0) {\n\t\t\toleada++;\n\t\t\t// oleadaEnemigos es una oleada\n\t\t\tLinkedList<Enemigo> oleadaEnemigos = new LinkedList<Enemigo>();\n\n\t\t\t// Genera Un numero Random de enemigos para cada oleada de 0 a 4\n\t\t\tint numeroDeEnemigosPorOleada = (aleatorio.nextInt(5));\n\t\t\tfor (int i = numeroDeEnemigosPorOleada; i != 0; i--) {\n\n\t\t\t\t/* Genera Un numero Random de enemigos para cada oleada de 0 a 4 */\n\t\t\t\tMisilBalistico MB = new MisilBalistico(Velocidad);\n\t\t\t\tMB.determinarDesplazamiento(Velocidad);\n\t\t\t\tListaDeEstelas.add(MB.getEstela().getListaDeEstelas());\n\t\t\t\toleadaEnemigos.add(MB);\n\t\t\t\tnumeroDeEnemigosPorNivel--;\n\t\t\t}\n\n\t\t\t// En todos los niveles se van a agregar los Misil Cruceros Inteligentes y los\n\t\t\t// Misil cruceros apartir de la oleada 4\n\t\t\tif ((oleada == 4)){\n\t\t\t\tif (VectorDeMisilesCrucerosPorNivel[NumeroDeNivel]) {\n\t\t\t\t\tMisilCruceroInteligente MCI = new MisilCruceroInteligente(Velocidad);\n\t\t\t\t\toleadaEnemigos.add(MCI);\n\t\t\t\t} else {\n\t\t\t\t\tMisilCrucero MC = new MisilCrucero(Velocidad);\n\t\t\t\t\toleadaEnemigos.add(MC);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t/*\n\t\t\t * Se agregan a la oleada de enemigos 2 bombarderos por nivel, siendo\n\t\t\t * aleatoriamente seleccionado si es un Satelite o un Avion utilizando un random\n\t\t\t * que devuelva 0 o 1 para determinar que bombardero sera el que se agregue a la\n\t\t\t * oleada\n\t\t\t */\n\n\t\t\tif ((oleada == 3) || (oleada == 7)) {\n\t\t\t\tint numeroDeBombarderosPorOleada = (aleatorio.nextInt(2));\n\t\t\t\tif (numeroDeBombarderosPorOleada == 1) {\n\t\t\t\t\tAvion A = new Avion();\n\t\t\t\t\toleadaEnemigos.add(A);\n\t\t\t\t} else {\n\t\t\t\t\tSatelite S = new Satelite();\n\t\t\t\t\toleadaEnemigos.add(S);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Agrego la oleada a la lista de oleadas\n\t\t\tEnemigos.add(oleadaEnemigos);\n\t\t}\n\n\t}" ]
[ "0.70560634", "0.69690144", "0.664983", "0.65921646", "0.65530825", "0.65072477", "0.64879745", "0.6463036", "0.6417987", "0.63923633", "0.6391923", "0.63899434", "0.63895965", "0.63845426", "0.6325909", "0.63169605", "0.627673", "0.627008", "0.6267879", "0.6248688", "0.6242453", "0.6238863", "0.6233688", "0.62301755", "0.62114257", "0.62099206", "0.61994666", "0.6191952", "0.61911327", "0.6186284", "0.6183336", "0.61782223", "0.6165948", "0.6162535", "0.6148677", "0.61466223", "0.614607", "0.6137979", "0.61346287", "0.61213803", "0.61207104", "0.6118319", "0.6098898", "0.60957056", "0.60956025", "0.6091229", "0.60838217", "0.60688066", "0.60663784", "0.6063479", "0.6059267", "0.60582787", "0.6056973", "0.60541964", "0.60517806", "0.6050639", "0.6040388", "0.6037092", "0.60301065", "0.60299706", "0.6023962", "0.60224503", "0.60151994", "0.6009774", "0.600257", "0.599881", "0.59957814", "0.59930074", "0.5992694", "0.59872675", "0.5977193", "0.5976183", "0.597352", "0.59682655", "0.59678864", "0.59655493", "0.5964234", "0.5962319", "0.59556323", "0.595324", "0.5950367", "0.594942", "0.5947815", "0.59447074", "0.5938835", "0.59364694", "0.59346765", "0.59344256", "0.59331536", "0.59327185", "0.59315795", "0.59306914", "0.59251827", "0.59219295", "0.5920545", "0.5920345", "0.5917474", "0.5916371", "0.5916068", "0.59141994", "0.59067374" ]
0.0
-1
Perform a next without initial increment
private int doNext() throws IOException { int first = 0; SirenScorer lastScorer = scorers[scorers.length - 1]; SirenScorer firstScorer = scorers[first]; while (more && (firstScorer.entity() < lastScorer.entity() || (firstScorer.entity() == lastScorer.entity() && firstScorer.tuple() < lastScorer.tuple()))) { more = (firstScorer.advance(lastScorer.entity(), lastScorer.tuple()) != NO_MORE_DOCS); lastScorer = firstScorer; first = (first == (scorers.length - 1)) ? 0 : first + 1; firstScorer = scorers[first]; } // Load occurrences for nextPosition() and score() if (more) { lastEntity = lastScorer.entity(); lastTuple = lastScorer.tuple(); this.loadOccurrences(); p = 0; // reset pointer return lastEntity; } else { lastEntity = lastTuple = Integer.MAX_VALUE; // sentinel value return NO_MORE_DOCS; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void next(){\n\t\tif(generated)\n\t\t\tcurr++;\n\t}", "void next();", "public void next() {\n\t\t}", "public void next();", "public void next();", "public void Next();", "public abstract void next();", "@Override\n\t\tpublic int next() {\n\t\t\treturn current++;\n\t\t}", "public abstract void next ();", "public static void initNext() { //ініціалізація лічильника нульовим значенням\n next = 0;\n }", "public final T next()\n {\n return skip(1);\n }", "void next(T value);", "int next();", "public Object next();", "public Object next();", "public void nextHard() {\n\t\titerator.next();\n\t}", "@Override\n\tpublic void next() {\n\t\t\n\t}", "IList<T> getNext();", "T next();", "@Override\r\n\tpublic void next() {\n\n\t}", "public C getNext();", "public abstract T next();", "public void next() {\n\t\telements[(currentElement - 1)].turnOff();\n\t\tif (elements.length > currentElement) {\n\t\t\telements[currentElement].turnOn();\n\t\t\tcurrentElement++;\n\t\t} else {\n\t\t\texit();\n\t\t}\n\t}", "public abstract void goNext();", "@Override\r\n\tpublic int next() \r\n\t{\r\n\t\tif (currentNumber == OVERFLOW_PRIME)\r\n\t\t{\r\n\t\t\treturn currentNumber;\r\n\t\t}\r\n\t\t\r\n\t\tif (currentNumber != MAX_NUMBER)\r\n\t\t{\r\n\t\t\tcurrentNumber++;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tcurrentNumber = OVERFLOW_PRIME;\r\n\t\t}\r\n\r\n\t\treturn currentNumber;\r\n\t}", "public void next()\r\n\t{\r\n\t\tif(state<3)\r\n\t\t\tstate++;\r\n\t\telse\r\n\t\t\tstate=1;\r\n\t}", "@Override\n public Integer next() {\n Integer res = next;\n advanceIter();\n return res;\n }", "public boolean getNext();", "protected abstract void recombineNext();", "private void prepareNext() {\n this.hasNext = false;\n while (!this.hasNext && this.nodesIterator.hasNext()) {\n this.next = this.nodesIterator.next();\n this.hasNext = this.computeHasNext();\n }\n }", "public abstract boolean next();", "public abstract boolean next();", "public void testNext() {\n for (int i = 0; i < 10; i++) {\n test1.append(new Buffer(i, rec));\n }\n assertTrue(test1.getValue().inRange(0));\n test1.next();\n assertTrue(test1.getValue().inRange(1));\n test1.next();\n assertTrue(test1.getValue().inRange(2));\n for (int i = 0; i < 10; i++) {\n test1.next();\n }\n assertEquals(10, test1.currPos());\n }", "@Override\n\tpublic void next()\n\t{\n\n\t}", "IEmpleado next();", "@Override\r\n public Integer next() {\r\n // Time complexity: O(1), where the problem size N \r\n // represents the size of the sequence to generate.\r\n if (!hasNext()) // check if the current element has a next element in this sequence\r\n return null; \r\n int current = next; // set the current element to next\r\n generatedCount++; // increment the number of generated elements so far\r\n next *= RATIO; // set the next element (adds the common ratio to the current number)\r\n return current; // return the current number as the generated one\r\n }", "public int getNext() {\n return value++;\n }", "public IR\n next();", "public T next();", "public T next();", "public boolean next () throws Exception;", "@Override\n public int nextIndex()\n {\n return idx+1; \n }", "Split getNext();", "public void next() {\n\t\titerator.next();\n\t}", "public abstract T next() throws NoSuchElementException;", "public T next() {\n return array[current++];\n }", "public void next()\n\t{\n\t\tif(this.curseur < this.listeTapis.size() - 1)\n\t\t{\n\t\t\tthis.curseur++;\n\t\t}\n\t}", "public void moveNext() {\n\t\tcurrentElement++;\n\t}", "public Object next()\n/* */ {\n/* 84 */ if (this.m_offset < this.m_limit) {\n/* 85 */ return this.m_array[(this.m_offset++)];\n/* */ }\n/* 87 */ throw new NoSuchElementException();\n/* */ }", "@Override\r\n\tprotected void doNext() {\n\t\t\r\n\t}", "public void next()\n {\n if (size != 0)\n {\n current = current.next();\n }\n }", "Object getNextElement() throws NoSuchElementException;", "public T next(){\r\n\t\t\tif (expectedModCount != modCount){\r\n\t\t\t\tthrow new ConcurrentModificationException();\r\n\t\t\t}\r\n\t\t\tT passed = current;\r\n\t\t\tif ((currentNode.next==endMarker)&&(currentNode.getLast()==current)){\r\n\t\t\t\tcurrentNode = endMarker;\r\n\t\t\t\tcurrent = null;\r\n\t\t\t\treturn passed;\r\n\t\t\t}\r\n\t\t\tif (currentNode.indexOf(current)==currentNode.getArraySize()-1){\r\n\t\t\t\tcurrentNode = currentNode.next;\r\n\t\t\t\tcurrent = currentNode.getFirst();\r\n\t\t\t\tidx = 0;\r\n\t\t\t\treturn passed;\r\n\t\t\t}\t\r\n\t\t\tidx++;\r\n\t\t\tcurrent = currentNode.get(idx);\r\n\t\t\treturn passed;\r\n\t\t}", "public void next(){\n if(stageNum < (defineStageNum)) {\n stageNum++;\n }else {\n stageNum = startStageNum;\n }\n }", "String getNext();", "String getNext();", "@Override\n public T next() {\n T n = null;\n if (hasNext()) {\n // Give it to them.\n n = next;\n next = null;\n // Step forward.\n it = it.next;\n stop -= 1;\n } else {\n // Not there!!\n throw new NoSuchElementException();\n }\n return n;\n }", "public void next() {\r\n\t\tif (curr != tail)\r\n\t\t\tcurr = curr.next();\r\n\t}", "protected final void moveToNextIndex() {\n\t\t\t// doing the assignment && < 0 in one line shaves\n\t\t\t// 3 opcodes...\n\t\t\tif ( (_index = nextIndex()) < 0 ) { throw new NoSuchElementException(); }\n\t\t}", "@Override\r\n\t\t\tpublic T next() {\n\t\t\t\treturn sentinel.getValue();\r\n\t\t\t}", "public void gotoNext(){\r\n if(curr == null){\r\n return;\r\n }\r\n prev = curr;\r\n curr = curr.link;\r\n }", "public T getNextElement();", "private int next(int index)\n\t{\n\t\tif (index == list.length - 1)\n\t\t{\n\t\t\treturn 0;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn index + 1;\n\t\t}\n\t}", "private static synchronized int next(){\n next ++;\n return next;\n}", "@Override\n public Integer next() {\n if (next != null) {\n Integer next = this.next;\n this.next = null;\n return next;\n\n }\n\n return iterator.next();\n }", "public void _next() {\n Object o;\n try {\n o = iter.next();\n } catch (NoSuchElementException e) {\n has_next = 0;\n return;\n }\n // resolve object\n if (o == null) {\n has_next = 1;\n next = null;\n } else if (o instanceof IdentityIF) {\n try {\n o = txn.getObject((IdentityIF)o, true);\n if (o == null) {\n _next();\n } else {\n has_next = 1;\n next = (F) o;\n }\n } catch (Throwable t) {\n has_next = -1;\n next = null;\n }\n } else {\n has_next = 1;\n next = (F) o;\n }\n }", "@Override\n\t\tpublic int nextIndex() {\n\t\t\treturn 0;\n\t\t}", "public long next() {\n long ret = prev;\n prev = current;\n current = ret + current;\n return ret;\n }", "public Index next() {\n return Index.valueOf(value + 1);\n }", "protected abstract D getNext(D d);", "public int next() {\n\treturn _current < _last ? _data[_current++] : END;\n }", "public int nextOffset(int curr) {\n return curr + 1;\n }", "@Override\n public Integer next() {\n return nums.get(index++);\n }", "@Override\n\tpublic Object next() {\n\t\treturn null;\n\t}", "public T getNext(T element);", "@Override\n\t\tpublic T1 next() {\n\t\t\treturn (T1)_items[getindex(++_current)];\n\t\t}", "public T next(){\r\n return itrArr[position++];\r\n }", "private Token advance() {\n if(!isAtEnd()) current++;\n return previous();\n }", "@Override\n\t\tpublic T next() {\n\t\t\treturn null;\n\t\t}", "public ListNode<T> getNext();", "private void getNext() {\n Node currNode = getScreenplayElem().getChildNodes().item(currPos++);\n while (currNode.getNodeType() != Node.ELEMENT_NODE) {\n currNode = getScreenplayElem().getChildNodes().item(currPos++);\n }\n currElem = (Element) currNode;\n }", "private int getNext(int index) {\n return index + (index & -index);\n }", "boolean usesNext() {\n return next != null;\n }", "public int getNextUnSafeSequence(){ return value++;}", "private void findNext() {\n \tthis.find(true);\n }", "@Override\n E next();", "@Override\n public Object next() {\n Object retval = this.nextObject;\n advance();\n return retval;\n }", "void moveNext()\n\t{\n\t\tif (cursor != null) \n\t\t{\n\t\t\tif (cursor == back) \n\t\t\t{\n\t\t\t\tcursor = null;\n index = -1; //added cause i was failing the test scripts and forgot to manage the indices \n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcursor = cursor.next; //moves cursor toward back of the list\n index++; //added cause i was failing to the test scripts and forgot to manage the indicies\n\t\t\t}\n\t\t}\n\t}", "public abstract Tuple getNext();", "public static Integer next() {\n return incrementingInteger++;\n }", "private void basicNext() {\n\t\t// start = currentIndex;\n\t\tif (currentIndex >= data.length) {\n\t\t\ttoken = new Token(TokenType.EOF, null);\n\t\t} else {\n\t\t\tcreateBasicToken();\n\t\t}\n\t}", "public T next(){\n return (T)data[ci++];\n }", "public Object next()\n/* */ {\n/* 93 */ if (this.m_offset < this.m_array.length) {\n/* 94 */ Object localObject = this.m_array[this.m_offset];\n/* 95 */ advance();\n/* 96 */ return localObject;\n/* */ }\n/* 98 */ throw new NoSuchElementException();\n/* */ }", "public void next( long time );", "public void nextIteration() {t++;}", "public void next(){\n\t\tboundIndex = (boundIndex+1)%buttonBounds.length;\n\t\tupdateButtonBounds();\n\t}", "public boolean MoveNext()\r\n { \r\n _index++;\r\n\r\n return _index < Count;\r\n }", "public R next(){\n return (R) newList.get(index++);\n }", "public void next() {\n\t\tSystem.out.println(al.get(pos));\r\n\t\tpos++;\r\n\t}", "@Override\n public Integer next() {\n if (!isPeeked && hasNext())\n return iterator.next();\n int toReturn = peekedElement;\n peekedElement = -1;\n isPeeked = false;\n return toReturn;\n }", "public E nextStep() {\r\n\t\tthis.current = this.values[Math.min(this.current.ordinal() + 1, this.values.length - 1)];\r\n\t\treturn this.current;\r\n\t}" ]
[ "0.78489476", "0.7688829", "0.7658266", "0.75417656", "0.75417656", "0.746174", "0.7411525", "0.7378847", "0.7326158", "0.7285847", "0.72827065", "0.71836525", "0.7117459", "0.7106437", "0.7106437", "0.70499957", "0.7033963", "0.7033121", "0.7024101", "0.6982203", "0.69804865", "0.69747055", "0.6920791", "0.6911084", "0.6908443", "0.6900603", "0.68870354", "0.6880806", "0.6867623", "0.68434924", "0.684339", "0.684339", "0.683653", "0.68159235", "0.6815028", "0.6776392", "0.67745084", "0.6773659", "0.6758314", "0.6758314", "0.67533386", "0.6741537", "0.6738017", "0.67355144", "0.6712588", "0.67121905", "0.67045915", "0.6698271", "0.6691934", "0.6687176", "0.66863567", "0.668527", "0.6674964", "0.66710645", "0.6670993", "0.6670993", "0.6665164", "0.66612244", "0.66492987", "0.66321355", "0.66218585", "0.6619976", "0.6618455", "0.6614616", "0.66098905", "0.6608078", "0.6603715", "0.65791106", "0.6577456", "0.6577413", "0.65757006", "0.65739375", "0.6569249", "0.6551621", "0.6550784", "0.6544527", "0.6538883", "0.6528136", "0.6525692", "0.6524073", "0.65080297", "0.65021694", "0.65009534", "0.6499269", "0.64838946", "0.6481265", "0.6479151", "0.6478665", "0.64781594", "0.6476347", "0.646455", "0.6463642", "0.64543116", "0.64495206", "0.6447295", "0.6441655", "0.64292943", "0.642403", "0.6405228", "0.6395871", "0.6393374" ]
0.0
-1
Here we increment the pointer in the first place, because the first position is normally already loaded.
@Override public int nextPosition() { if (++p < tuples.size()) { lastTuple = tuples.get(p); return 0; // position is invalid in this scorer, returns 0 } return NO_MORE_POS; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void moveNext()\n\t{\n\t\tif (cursor != null) \n\t\t{\n\t\t\tif (cursor == back) \n\t\t\t{\n\t\t\t\tcursor = null;\n index = -1; //added cause i was failing the test scripts and forgot to manage the indices \n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcursor = cursor.next; //moves cursor toward back of the list\n index++; //added cause i was failing to the test scripts and forgot to manage the indicies\n\t\t\t}\n\t\t}\n\t}", "void loadNext();", "public void advance( )\r\n {\r\n\t if(isCurrent() != true){// Implemented by student.\r\n\t throw new IllegalStateException(\"no current element\");\r\n\t }\r\n\t else\r\n\t \t precursor = cursor;\r\n\t \t cursor = cursor.getLink(); // Implemented by student.\r\n }", "public void nextTextureIndexX() {\n/* 245 */ this.particleTextureIndexX++;\n/* */ }", "@Override\n public void advance() {\n if (isCurrent()) {\n prev = cursor;\n cursor = cursor.getNext();\n } else {\n throw new IllegalStateException(\"There is no current element.\");\n }\n }", "private int setFirstFree(final T element) {\r\n\t\tfinal int idx = firstFree;\r\n\t\tserializer.setRandomAccess(idx, element);\r\n\t\tfirstFree = getNextPointer(idx);\r\n\t\t// the pointer will be 0 if it was not unlinked before\r\n\t\tif (firstFree == 0) {\r\n\t\t\tfirstFree = idx + 1;\r\n\t\t}\r\n\t\treturn idx;\r\n\t}", "private void goForwardOne() \n {\n if (m_bufferOffset_ < 0) {\n // we're working on the source and not normalizing. fast path.\n // note Thai pre-vowel reordering uses buffer too\n m_source_.setIndex(m_source_.getIndex() + 1);\n }\n else {\n // we are in the buffer, buffer offset will never be 0 here\n m_bufferOffset_ ++;\n }\n }", "@Override\n void advance() {\n }", "void seekToFirst();", "public void moveFirst() {\n\t\tcurrentElement = 0;\n\t}", "private void forward() {\n index++;\n column++;\n if(column == linecount + 1) {\n line++;\n column = 0;\n linecount = content.getColumnCount(line);\n }\n }", "private final void advance() {\n if (currentIterator == null) {\n currentIterator = intMaps[index].entrySet().iterator();\n } else {\n if (!currentIterator.hasNext()) {\n // we want advance to next iterator only when this iterator is exhausted\n if (index < intMaps.length - 1) {\n // we can advance to next iterator only if currentIterator is not the last iterator\n ++index;\n if (!fetched[index]) {\n GetAllCustomMap.this.fetchValuesForIndex(index);\n }\n currentIterator = intMaps[index].entrySet().iterator();\n } else {\n // we can not advance to next iterator because this iterator is the last iterator\n }\n } else {\n // we do not want to advance to next iterator because this iterator is not fully exhausted\n }\n }\n }", "public int IncrementOffset() {\n int oldOffset = offset;\n offset += MachineDependent.WORDSIZE;\n return oldOffset;\n }", "private static void increaseReference(Counter counter) {\n counter.advance(1);\n }", "@Override\n public void start() {\n if (size > 0) {\n cursor = head;\n prev = null;\n } else {\n cursor = null; }\n }", "public void IncrementCounter()\r\n {\r\n \tif (startAtUsed==false\r\n \t\t\t|| (!counter.encounteredAlready)) {\r\n \t\t// Defer setting the startValue until the list\r\n \t\t// is actually encountered in the main document part,\r\n \t\t// since otherwise earlier numbering (using the\r\n \t\t// same abstract number) would use this startValue\r\n \tcounter.setCurrentValue(this.startValue); \r\n \tlog.debug(\"not encounteredAlready; set to startValue \" + startValue);\r\n \tcounter.encounteredAlready = true;\r\n \tstartAtUsed = true;\r\n \t}\r\n counter.IncrementCounter();\r\n }", "public void next(){\n\t\tif(generated)\n\t\t\tcurr++;\n\t}", "public void moveNext() {\n\t\tcurrentElement++;\n\t}", "public void incrementIndex() {\n\t\tindex++;\n\t\tif (nextItem != null) {\n\t\t\tnextItem.incrementIndex();\n\t\t}\n\t}", "@Override\n public long position() throws IOException {\n return _backing.getFilePointer() - _head.offset;\n }", "private void incTag() {\n long id = tagId(tag[th()]); // 1\n tag[th()] = newTag(id+1); // 2\n }", "private int getNextAvailablePositionOfContentMap() {\n\n\t\treturn contentMap.size() + 1;\n\n\t}", "public int getOutputPositionIncrement () { return 1; }", "public void beforeFirst() {\n\t\tmoveTo(0);\n\t}", "protected boolean advance()\n/* */ {\n/* 66 */ while (++this.m_offset < this.m_array.length) {\n/* 67 */ if (this.m_array[this.m_offset] != null) {\n/* 68 */ return true;\n/* */ }\n/* */ }\n/* 71 */ return false;\n/* */ }", "@Override\n public long getPosition() {\n return startPosition + super.getPosition();\n }", "public void incOffset( Integer increment ) {\n offset += increment;\n }", "public boolean moveToFirst() {\r\n\t\t\tpointer = 0;\r\n\t\t\treturn !pointerOut();\r\n\t\t}", "@Override\n public int nextIndex()\n {\n return idx+1; \n }", "public void firstElement() {\r\n \t\tcurrentObject = 0;\r\n \t}", "private void rewind() {\n currentPos = markPos;\n }", "public void rewind() {\n readAllocationNode = firstAllocationNode;\n }", "private void inc_x()\n {\n synchronized(mLock_IndexX) { set_x(get_x() + 1); }\n }", "public void inc(){\n this.current += 1;\n }", "public int nextOffset(int curr) {\n return curr + 1;\n }", "@Override\n\t\tpublic int nextIndex() {\n\t\t\treturn 0;\n\t\t}", "@Override\n public void move() {\n _location.x++;\n }", "public static void initNext() { //ініціалізація лічильника нульовим значенням\n next = 0;\n }", "private int forwardPosition() {\n\t\treturn (position + 1) % (maxPosition + 1);\n\t}", "public void moveHead() {\n if (this.head == ram.length - 1) {\n head = 0;\n } else {\n head += 1;\n }\n }", "protected final void seek(final int value) {\r\n bPtr = value;\r\n }", "public int resetToNextPoint() {\n if (curPointIndex + 1 >= numPoints)\n return ++curPointIndex;\n int diff = curPointIndex ^ (curPointIndex + 1);\n int pos = 0; // Position of the bit that is examined.\n while ((diff >> pos) != 0) {\n if (((diff >> pos) & 1) != 0) {\n cachedCurPoint[0] ^= 1 << (outDigits - numCols + pos);\n for (int j = 1; j <= dim; j++)\n cachedCurPoint[j] ^= genMat[(j-1) * numCols + pos];\n }\n pos++;\n }\n curCoordIndex = 0;\n return ++curPointIndex;\n }", "private int loadData() {\n if (position >= numRecords * 2)\n return -1;\n int bufferPos = 0;\n int capacity = byteBuffer.capacity();\n while (bufferPos < capacity && position < numRecords * 2) {\n long curRecordAddress = sortedArray.get(position);\n int recordLen = Platform.getInt(null, curRecordAddress);\n // length + keyprefix + record length\n int length = Integer.BYTES + Long.BYTES + recordLen;\n if (length > capacity) {\n logger.error(\"single record size exceeds PMem read buffer. Please increase buffer size.\");\n }\n if (bufferPos + length <= capacity) {\n long curKeyPrefix = sortedArray.get(position + 1);\n if (length > bytes.length) {\n bytes = new byte[length];\n }\n Platform.putLong(bytes, Platform.BYTE_ARRAY_OFFSET, curKeyPrefix);\n Platform.copyMemory(null, curRecordAddress, bytes, Platform.BYTE_ARRAY_OFFSET + Long.BYTES, length - Long.BYTES);\n byteBuffer.put(bytes, 0, length);\n bufferPos += length;\n position += 2;\n } else {\n break;\n }\n }\n return bufferPos;\n }", "public void inc(String key) {\n if (!keyMap.containsKey(key)) {\n keyMap.put(key, 1);\n DLinkedListNode node = countMap.get(1);\n System.out.println(node);\n if (node == null) {\n node = new DLinkedListNode(1);\n countMap.put(1, node);\n dll.insertAfter(dll.head, node);\n }\n node.keySet.add(key);\n }\n else {\n int count = keyMap.get(key); \n DLinkedListNode oldNode = countMap.get(count);\n oldNode.keySet.remove(key);\n count++;\n keyMap.put(key, count);\n DLinkedListNode newNode = countMap.get(count);\n if (newNode == null) {\n newNode = new DLinkedListNode(count);\n countMap.put(count, newNode);\n dll.insertAfter(oldNode, newNode);\n }\n newNode.keySet.add(key);\n if (oldNode.keySet.size() == 0) {\n dll.remove(oldNode);\n countMap.remove(oldNode.count);\n }\n }\n }", "public void start( )\r\n {\r\n if (cursor != head){\r\n \t cursor = head; // Implemented by student.\r\n \t precursor = null;\r\n }\r\n }", "protected void incrementCurrent() {\n current++;\n }", "public static void move() {\r\n\t\t\r\n\t\tif (ths.page == 1) {\r\n\t\t\tths.page++;\r\n\t\t}\r\n\t}", "@Override\n public void updateFirstHeader() {\n padToCacheAlign();\n long pos = bytes.writePosition();\n updateFirstHeader(pos);\n }", "@Override\n\t\tpublic void onLoadMore() {\n\t\t\tpageIndex++;\n\t\t\tloadInfo(pageIndex, 1);\n\t\t\tif (DzqcStu.isDebug) {\n\t\t\t\tLog.i(\"pageIndex------\", pageIndex+\"\");\n\t\t\t}\n\t\t}", "public void stepForward() {\n\t\tposition = forwardPosition();\n\t}", "protected final int nextIndex() {\n\t\t\tif ( _expectedSize != TOrderedHashMap.this.size() ) { throw new ConcurrentModificationException(); }\n\n\t\t\tObject[] set = TOrderedHashMap.this._set;\n\t\t\tint i = _index + 1;\n\t\t\twhile (i <= _lastInsertOrderIndex &&\n\t\t\t\t(_indicesByInsertOrder[i] == EMPTY || set[_indicesByInsertOrder[i]] == TObjectHash.FREE || set[_indicesByInsertOrder[i]] == TObjectHash.REMOVED)) {\n\t\t\t\ti++;\n\t\t\t}\n\t\t\treturn i <= _lastInsertOrderIndex ? i : -1;\n\t\t}", "protected void resetNextAdvanceLineNumber() {\n this.nextAdvanceLineNumber = new Integer(1);\n }", "public void next() {\n if (highlight.getMatchCount() > 0) {\n Point point = highlight.getNextMatch(cursor.getY(), cursor.getX());\n if (point != null) {\n cursor.moveTo(point);\n }\n return;\n }\n Point point = file.getNextModifiedPoint(cursor.getY(), cursor.getX());\n if (point != null) {\n cursor.moveTo(point);\n }\n }", "private synchronized void loadSecondaryBlock(boolean next) {\n int step = (next) ? 1 : -2;\n if ((currentBlock + step) < 0) return;//return early if we are already at the beginning\n Controller.INSTANCE.run(() -> {\n String content = fullContent.get(currentBlock) + fullContent.get(currentBlock + step);\n mine.setContent(content);\n return Unit.INSTANCE;\n });\n }", "@Override\n\tpublic void setNext(ByteBuffer buff, Integer position) {\n\t\tbyte[] tmp = new byte[3];\n\t\tbuff.get(tmp);\n\t\tbuff.position(position);\n\t\tif (new String(tmp) == \"GSO\") this.hasNext = true;\n\t\telse this.hasNext = false;\n\t}", "public abstract void advance();", "public void incrementCurrentIndex() {\n currentIndex++;\n }", "public void increment() {\n this.data++;\n }", "public void setPosition(){\r\n currentPosition = 0; \r\n }", "public int getNextUnSafeSequence(){ return value++;}", "public void advance() {\n if( mMatches.hasNext() ) {\n setCurrent( mMatches.next() );\n }\n }", "private void getNext() {\n Node currNode = getScreenplayElem().getChildNodes().item(currPos++);\n while (currNode.getNodeType() != Node.ELEMENT_NODE) {\n currNode = getScreenplayElem().getChildNodes().item(currPos++);\n }\n currElem = (Element) currNode;\n }", "public void update() {\n\t\tfirstMove = false;\n\t\tif (color == 1) xrange = -1;\n\t\tif (color == 0) xrange = 1;\n\t}", "public abstract void onLoadMore(int skipStart);", "public abstract Position nextPosition(Position position);", "public void increaseStartPos(int num) {\r\n this.startPos += num;\r\n }", "public void addTwoStepForwardToPositionCache(Key currentKey) {\n\n\t\tKey newKey = createTwoStepForwardFromCurrentKey(currentKey);\n\n\t\t// Gets current values stored with key and adds the extra position\n\t\tSet<Key> currentKeyMapping = positionCache.get(currentKey);\n\t\tcurrentKeyMapping.add(newKey);\n\t\tpositionCache.put(currentKey, currentKeyMapping);\n\t}", "public void increment() {\n increment(1);\n }", "@Override\n public int incrementFirstValue(int key) {\n return array.incrementEntry(key << 1, 1);\n }", "public void setIteratorBegin() {\n iter = (next > 0 ? 0 : -1);\n }", "protected void assignCurrentValue() {\n\t\tcurrentValue = new Integer(counter + incrValue);\n\t}", "public void testCurrPos() {\n for (int i = 0; i < 10; i++) {\n test1.append(new Buffer(i, rec));\n }\n for (int i = 0; i < 10; i++) {\n test1.next();\n }\n assertEquals(10, test1.currPos());\n }", "private void advanceToNextReader(){\r\n\t\tcurrentReader = null;\r\n\t\treaderQueueIndex++;\r\n\t}", "@Override\n\tpublic void onResume() {\n\t\tint x = 0;\n\t\tx++;\n\t\tsuper.onResume();\n\t}", "@Override\n\t\tpublic int next() {\n\t\t\treturn current++;\n\t\t}", "public void setNext()\n {\n\t int currentIndex = AL.indexOf(currentObject);\n\t currentObject = AL.get(currentIndex +1);\n\t \n\t// never let currentNode be null, wrap to head\n\tif (currentObject == null)\n\t\tcurrentObject = firstObject;\n }", "@Override public void incrementAddress( int offset )\n {\n super.incrementAddress( offset );\n if ( getPointer() > m_size )\n throw new RuntimeException( \"address out of range: \" + getPointer() );\n }", "public void sizeIncrease1() {\n\t\t _size++;\n\t}", "public void updateSprite() {\n //move to next frame\n if (this.curSpriteFrame == this.framesPerSprite) {\n if (this.spriteNum+1 < this.sprites.get(this.state).length) {\n this.spriteNum++;\n } else {\n this.spriteNum = 0;\n }\n this.curSpriteFrame = 0;\n }\n this.curSpriteFrame++;\n }", "public void run() {\n int lastpage = 0xFFFFFFFF - 0xFFF;\n Page P = (Page) MAGIC.cast2Struct(lastpage);\n P.data[0] = 2;\n\n }", "@Override\r\n public int nextIndex() {\r\n if (next == null) {\r\n return size; \r\n }\r\n return nextIndex - 1;\r\n }", "@Override\n\tpublic void rewind() {\n\t\t\n\t}", "public void loadPreviousPage() {\n// System.out.println(\"index :\"+i);\r\n// System.out.println(\"##########\");\r\n lisOfProduct = serv.read();\r\n CurrP--;\r\n if (CurrP < nbP) {\r\n i = 0;\r\n indexOfImage = CurrP * 6 + i;\r\n loadImage1(lisOfProduct.get(x).getImg_url());\r\n i++;\r\n x = CurrP * 6 + i;\r\n System.out.println(\" i: \" + i + \"Curr: \" + CurrP + \"i in page: \" + x);\r\n\r\n loadImage1(lisOfProduct.get(indexOfImage).getImg_url());\r\n indexOfImage++;\r\n loadImage2(lisOfProduct.get(indexOfImage).getImg_url());\r\n indexOfImage++;\r\n loadImage3(lisOfProduct.get(indexOfImage).getImg_url());\r\n indexOfImage++;\r\n loadImage4(lisOfProduct.get(indexOfImage).getImg_url());\r\n indexOfImage++;\r\n loadImage5(lisOfProduct.get(indexOfImage).getImg_url()); \r\n indexOfImage++;\r\n loadImage6(lisOfProduct.get(indexOfImage).getImg_url());\r\n \r\n indexOfImage++;\r\n }\r\n indexOfImage -= 5;\r\n// IntStream.range(0, 1).forEach(\r\n// i -> next.fire()\r\n// ); \r\n\r\n// CurrP = 0;\r\n// i = 0;\r\n }", "public void AdvancePos() {\n \tswitch (data3d.TrackDirection){\n \tcase 0:\n \tc2.PositionValue += 1;\n \tc2.PositionValue = (c2.PositionValue % c2.getMaxPos());\n \tbreak;\n \tcase 1:\n \tc3.PositionValue += 1;\n \tc3.PositionValue = (c3.PositionValue % c3.getMaxPos());\n \tbreak;\n \tcase 2:\n \tc1.PositionValue += 1;\n \tc1.PositionValue = (c1.PositionValue % c1.getMaxPos());\n \tbreak;\n \tcase 3:\n \tdata3d.setElement((data3d.ActiveElement + 1) % data3d.Elements);\n \tcase 4:\n \tdata3d.setTime((data3d.ActiveTime + 1) % data3d.Times);\n \t}\n }", "public int load(int offset) {\n runStack.add(runStack.get(framePointers.peek()+offset));\n return runStack.get(runStack.size()-1);\n }", "private boolean zzRefill() {\r\n\t\treturn zzCurrentPos>=s.offset+s.count;\r\n\t}", "public int nextIndex() {\n\t\t\treturn cursor;\n\t\t}", "private void incrementCounter()\r\n\t{\r\n\t\tthis.counter++;\r\n\t}", "public void playNext() {\n if(mPosition < mMyTracks.size() - 1) {\n mPosition++;\n } else {\n mPosition = ++mPosition % mMyTracks.size();\n }\n prepareTrack();\n }", "private boolean zzRefill() {\n\t\treturn zzCurrentPos>=s.offset+s.count;\n\t}", "private boolean zzRefill() {\n\t\treturn zzCurrentPos>=s.offset+s.count;\n\t}", "public void incPieceCount () {\n m_PieceCount++;\n\t}", "public void moveToStart() {\r\n\t\tcurr = head;\r\n\t}", "int advanceSlide(){\n if (this.currentSlide<slides.size()){\n this.currentSlide++;\n }\n return this.currentSlide;\n }", "public int valueAndIncrement() {\n\t\tint x = offset;\n\t\tnext();\n\t\treturn x;\n\t}", "protected final void moveToNextIndex() {\n\t\t\t// doing the assignment && < 0 in one line shaves\n\t\t\t// 3 opcodes...\n\t\t\tif ( (_index = nextIndex()) < 0 ) { throw new NoSuchElementException(); }\n\t\t}", "private void nextMovement()\n\t{\n\t\tif(SEQUENCE.length <= 1)\n\t\t\tSEQUENCE = null;\n\t\telse\n\t\t{\n\t\t\tint[] temp = new int[SEQUENCE.length - 1];\n\t\t\tfor(int i = 1; i < SEQUENCE.length; i++)\n\t\t\t{\n\t\t\t\ttemp[i-1] = SEQUENCE[i];\n\t\t\t}\n\t\t\tSEQUENCE = temp;\n\t\t}\n\t}", "void movePrev()\n\t{\n\t\tif (cursor != null) \n\t\t{\n\t\t\tif (cursor == front) \n\t\t\t{\n\t\t\t\tcursor = null;\n index = -1; //added this because i kept failing the test cases on the grading script\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcursor = cursor.prev; //moves cursor toward front of the list\n index--; //added this because i kept failing the test cases on the grading script\n\t\t\t}\n\t\t}\n\t}", "protected void reInitialize() {\n resetCurrent();\n incrementIterCount();\n setFirst(true);\n recoverRunningVersion();\n }", "public void nextHard() {\n\t\titerator.next();\n\t}" ]
[ "0.6308424", "0.6259543", "0.62372285", "0.6197015", "0.6129607", "0.6105941", "0.6068712", "0.6056994", "0.5999663", "0.5947325", "0.5877757", "0.5828946", "0.5813899", "0.5803466", "0.5803033", "0.5769962", "0.57671183", "0.5736581", "0.57319623", "0.5730904", "0.57234716", "0.57117474", "0.5707333", "0.5705247", "0.57042223", "0.56989264", "0.5676584", "0.56665784", "0.5666491", "0.5665128", "0.56611097", "0.56545365", "0.56483346", "0.5612628", "0.5604187", "0.55986005", "0.558799", "0.5586712", "0.5583083", "0.55740863", "0.5562176", "0.5559428", "0.5558257", "0.55096674", "0.55061686", "0.550326", "0.5481076", "0.5476105", "0.54738486", "0.5465811", "0.5461312", "0.54601514", "0.54574573", "0.54553914", "0.54543334", "0.545156", "0.5449012", "0.5433812", "0.542631", "0.54240936", "0.54194254", "0.5418271", "0.54098773", "0.54098654", "0.5409696", "0.53924173", "0.5388718", "0.53867954", "0.5380158", "0.5376587", "0.5372978", "0.53729206", "0.5369964", "0.5356942", "0.53509504", "0.53494734", "0.5344564", "0.5336195", "0.53358126", "0.533528", "0.5334005", "0.5327336", "0.5307031", "0.52977103", "0.5297411", "0.5293098", "0.5287625", "0.5286679", "0.52855265", "0.52851146", "0.52851146", "0.5280986", "0.5277127", "0.52742696", "0.52739847", "0.52731735", "0.5271129", "0.5268613", "0.52665687", "0.5261434" ]
0.5663966
30
Note... most of this could be done in the constructor thus skipping a check for firstTime per call to nextDoc() and advance()
private int init(final int target) throws IOException { firstTime = false; more = scorers.length > 1; for (final SirenScorer scorer : scorers) { if (target == 0) { more = (scorer.nextDoc() != NO_MORE_DOCS); } else { more = (scorer.advance(target) != NO_MORE_DOCS); } if (!more) { return NO_MORE_DOCS; } } // Sort the array the first time... // We don't need to sort the array in any future calls because we know // it will already start off sorted (all scorers on same doc). // note that this comparator is not consistent with equals! Arrays.sort(scorers, new Comparator<SirenScorer>() { // sort the array public int compare(final SirenScorer o1, final SirenScorer o2) { if (o1.entity() != o2.entity()) return o1.entity() - o2.entity(); else if (o1.tuple() != o2.tuple()) return o1.tuple() - o2.tuple(); else return o1.cell() - o2.cell(); } }); this.doNext(); // If first-time skip distance is any predictor of // scorer sparseness, then we should always try to skip first on // those scorers. // Keep last scorer in it's last place (it will be the first // to be skipped on), but reverse all of the others so that // they will be skipped on in order of original high skip. final int end = (scorers.length - 1); for (int i = 0; i < (end >> 1); i++) { final SirenCellScorer tmp = scorers[i]; scorers[i] = scorers[end - i - 1]; scorers[end - i - 1] = tmp; } if (more) { return lastEntity; } else { return NO_MORE_DOCS; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void startDocument() {\n\t\t\n\t}", "private DocumentOrderIterator() {}", "@Override\r\n protected void parseDocuments()\r\n {\n\r\n }", "@Override\n\tpublic void getNext(JCas j) throws IOException, CollectionException {\n\t\tString s = docElements.get(idx).text();\t\t\n\t\tj.setDocumentText(s);\n\t\tidx++;\n\t//\tj.setDocumentLanguage(language);\n\t//\tread = false\n\t}", "@Override\n public SearchDocument nextDocument(SearchQuery query, int docId) {\n return null;\n }", "boolean advanceExact(int docId) throws IOException;", "@Override\n public void updateToNextDoc() {\n if(idx < postingList.size())\n idx += postingList.get(idx+1)+2;\n }", "public void startDocument ()\n\t\t{\n\t\t\t//System.out.println(\"Start document\");\n\t\t}", "public SimpleDocReader() { }", "private int doNext() throws IOException {\n int first = 0;\n SirenScorer lastScorer = scorers[scorers.length - 1];\n SirenScorer firstScorer = scorers[first];\n while (more &&\n (firstScorer.entity() < lastScorer.entity() ||\n (firstScorer.entity() == lastScorer.entity() && firstScorer.tuple() < lastScorer.tuple()))) {\n more = (firstScorer.advance(lastScorer.entity(), lastScorer.tuple()) != NO_MORE_DOCS);\n lastScorer = firstScorer;\n first = (first == (scorers.length - 1)) ? 0 : first + 1;\n firstScorer = scorers[first];\n }\n\n // Load occurrences for nextPosition() and score()\n if (more) {\n lastEntity = lastScorer.entity();\n lastTuple = lastScorer.tuple();\n this.loadOccurrences();\n p = 0; // reset pointer\n return lastEntity;\n }\n else {\n lastEntity = lastTuple = Integer.MAX_VALUE; // sentinel value\n return NO_MORE_DOCS;\n }\n }", "protected Document() {/* intentionally empty block */}", "public Map<String, String> NextDocument() throws IOException {\n\t\tMap<String, String> oneDoc = new HashMap<String, String>();\n\t\tString docId = \"\";\n\t\tString docTxt = \"\";\n\t\tif ((docId = bf_Reader.readLine())!=null){\n\t\t\tdocTxt = bf_Reader.readLine();\n\t\t\toneDoc.put(docId,docTxt); //put docNo-content pairs into map\n\t\t\treturn oneDoc;\n\t\t}\n\n\t\tbf_Reader.close();\n\n\t\treturn null;\n\t}", "public void startDocument ()\n {\n\tSystem.out.println(\"Start document\");\n }", "private void startParsing(){\r\n pondred = new ArrayList<>();\r\n //extract docs from corpus\r\n for (String xml:parseDocsFile(docs_file))\r\n {\r\n try {\r\n pondred.add(loadXMLFromString(xml));\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n System.out.println(\"Ending parsing\");\r\n for (Core pon:pondred){\r\n for (String string:pon.abstractTerm){\r\n Double tf = pon.getAbstractFerq(string)/pon.getAbstractSize();\r\n Double idf = Math.log10(Core.count/countingDuplicates(string));\r\n pon.abstractFrequence.put(string,tf*idf);\r\n }\r\n pon.finish();\r\n }\r\n }", "public Document()\n {\n index = 0;\n words = 0;\n sentences = 0;\n syllables = 0;\n }", "@Override\r\n\tprotected void doNext() {\n\t\t\r\n\t}", "public void next( long time );", "@Override\n public Document getNextPage(Document doc) throws IOException {\n if (isStopped()) {\n throw new IOException(\"Ripping interrupted\");\n }\n // Find next page\n Elements hrefs = doc.select(\".ptt a\");\n if (hrefs.isEmpty()) {\n LOGGER.info(\"doc: \" + doc.html());\n throw new IOException(\"No navigation links found\");\n }\n // Ensure next page is different from the current page\n String nextURL = hrefs.last().attr(\"href\");\n if (nextURL.equals(this.lastURL)) {\n LOGGER.info(\"lastURL = nextURL : \" + nextURL);\n throw new IOException(\"Reached last page of results\");\n }\n // Sleep before loading next page\n sleep(PAGE_SLEEP_TIME);\n // Load next page\n Document nextPage = getPageWithRetries(new URL(nextURL));\n this.lastURL = nextURL;\n return nextPage;\n }", "public void prepareForRun(OpenDefinitionsDocument doc) { }", "void seekToFirst();", "public void next() {\n\t\t}", "public void handleDocumentStart(long startTimeNanos, int line, int col) {\r\n // TODO: Implement this.\r\n System.out.println(\"Start of document\");\r\n }", "@Override\n\tpublic void next() {\n\t\t\n\t}", "public static void initNext() { //ініціалізація лічильника нульовим значенням\n next = 0;\n }", "public void startDocument() {\r\n lineBuffer = new StringBuffer(128); \r\n saxLevel = 0;\r\n charState = -1;\r\n }", "void fill(int docID) throws IOException {\n final int docStoreOffset = docWriter.getDocStoreOffset();\n\n final int end = docID+docStoreOffset;\n while(lastDocID < end) {\n fieldsWriter.skipDocument();\n lastDocID++;\n }\n }", "public void runStarted(OpenDefinitionsDocument doc) { }", "@Override\r\n\tpublic void next() {\n\n\t}", "@Override\n\t\tpublic String next() {\n\n\t\t\tString token = super.next();\n\n\t\t\twhile (isJavaDocToken(token))\n\t\t\t\ttoken = super.next();\n\n\t\t\treturn token;\n\t\t}", "protected boolean _isFirstTime() {\n return _firstTime;\n }", "public void startInfo(Document src);", "@Override\n void advance() {\n }", "void init(Document doc) {\n mDoc = doc;\n mDoc.getDocumentElement().normalize();\n load();\n }", "@Test\n public void lazyLoad() throws Exception {\n CallofDocument doc = lazy(this::parseDoc);\n // doc not initialized\n doc.getCreated(); // doc initialized now\n }", "public void IncrementCounter()\r\n {\r\n \tif (startAtUsed==false\r\n \t\t\t|| (!counter.encounteredAlready)) {\r\n \t\t// Defer setting the startValue until the list\r\n \t\t// is actually encountered in the main document part,\r\n \t\t// since otherwise earlier numbering (using the\r\n \t\t// same abstract number) would use this startValue\r\n \tcounter.setCurrentValue(this.startValue); \r\n \tlog.debug(\"not encounteredAlready; set to startValue \" + startValue);\r\n \tcounter.encounteredAlready = true;\r\n \tstartAtUsed = true;\r\n \t}\r\n counter.IncrementCounter();\r\n }", "private static void addTime(Document document,Time tim) throws DocumentException {\n Anchor anchor = new Anchor(\"Графік роботи\", font20);\n anchor.setName(\"Графік роботи\");\n document.add(new Chunk(\"Графік роботи\",font20));\n // Second parameter is the number of the chapter\n //Chapter catPart = new Chapter(new Paragraph(anchor), 1);\n document.add( Chunk.NEWLINE );\n document.add(new Chunk(\"Понеділок: \" + tim.getMs() + \" - \" + tim.getMe(),font15));\n document.add( Chunk.NEWLINE );\n document.add(new Chunk(\"Вівторок: \" + tim.getTs() + \" - \" + tim.getTe(),font15));\n document.add( Chunk.NEWLINE );\n document.add(new Chunk(\"Середа: \" + tim.getWs() + \" - \" + tim.getWe(),font15));\n document.add( Chunk.NEWLINE );\n document.add(new Chunk(\"Четвер: \" + tim.getThs() + \" - \" + tim.getThe(),font15));\n document.add( Chunk.NEWLINE );\n document.add(new Chunk(\"П'ятниця: \" + tim.getFs() + \" - \" + tim.getFe(),font15));\n document.add( Chunk.NEWLINE );\n document.add(new Chunk(\"Субота: \" + tim.getSs() + \" - \" + tim.getSe(),font15));\n document.add( Chunk.NEWLINE );\n document.add(new Chunk(\"Неділя: \" + tim.getSus() + \" - \" + tim.getSue(),font15));\n document.add( Chunk.NEWLINE );\n document.add( Chunk.NEWLINE );\n \n \n\n }", "public void init() { \n\t\ttry { \n\t\t\tDocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); \n\t\t\tDocumentBuilder builder = factory.newDocumentBuilder(); \n\t\t\tthis.document = builder.newDocument(); \n\t\t\tlogger.info(\"initilize the document success.\");\n\t\t} catch (ParserConfigurationException e) { \n\t\t\t\n\t\t\tlogger.error(e.getMessage());\n\t\t} \n\t}", "private IteratorImpl() {\r\n\t\t\titeratorModificationCount = modificationCount;\r\n\r\n\t\t\tnextEntry = table[0] == null ? findNextNonNullTableRowEntry() : table[0];\r\n\t\t}", "public manageDoc() {\r\r\r\n\r\r\r\n }", "@Override\n\tpublic void next()\n\t{\n\n\t}", "private void endDoc() {\n\t\ttry {\n\t\t\t// Report the end of the document to the IndexListener\n\t\t\tindexer.getListener().documentDone(currentDocumentName);\n\n\t\t\t// Store the captured document content in the content store\n\t\t\t// and add the contents of the complex field to the Lucene document\n\t\t\taddContentToLuceneDoc();\n\n\t\t\t// Add the Lucene document to the index\n\t\t\tindexer.add(currentLuceneDoc);\n\n\t\t\t// Report character progress\n\t\t\treportCharsProcessed();\n\n\t\t\t// Reset the contents field for the next document\n\t\t\tcontentsField.clear();\n\n\t\t\t// Should we continue or are we done?\n\t\t\tif (!indexer.continueIndexing())\n\t\t\t\tthrow new MaxDocsReachedException();\n\n\t\t} catch (MaxDocsReachedException e) {\n\n\t\t\t// We've reached our maximum number of documents we'd like to index.\n\t\t\t// This is okay; just rethrow it.\n\t\t\tthrow e;\n\n\t\t} catch (Exception e) {\n\n\t\t\t// Some error occurred.\n\t\t\tthrow ExUtil.wrapRuntimeException(e);\n\n\t\t}\n\t}", "public DocumentReader ()\n {\n this.instanceStatus = new ServiceInstanceStatus(serviceStatus);\n this.instanceStatus.notifyCreation();\n }", "public void next(){\n\t\tif(generated)\n\t\t\tcurr++;\n\t}", "public Map<String, Object> nextDocument() throws IOException {\n // 1. When called, this API processes one document from corpus, and returns its\n // doc number and content.\n // 2. When no document left, return null, and close the file.\n // 3. the HTML tags should be removed in document content.\n if (fileList.size() > 0) {\n Map<String, Object> r = new HashMap<>();\n File dataFile = fileList.pop();\n\n FileInputStream document = new FileInputStream(dataFile);\n byte[] context = new byte[(int) dataFile.length()];\n document.read(context);\n document.close();\n String text = new String(context, \"UTF-8\");\n char[] valueText = text.replaceAll(\"\\\\p{Cc}\", \"\")\n .replaceAll(\"<[^>]*>\", \" \").trim().toCharArray();\n r.put(dataFile.getPath(), valueText);\n return r;\n }\n\n return null;\n\n }", "boolean usesNext() {\n return next != null;\n }", "public Doc() {\n\n }", "private void startDoc(Attributes attributes) {\n\n\t\t// Start storing the document in the content store\n\t\tstartCaptureContent();\n\n\t\t// Create a new Lucene document\n\t\tcurrentLuceneDoc = new Document();\n\t\tcurrentLuceneDoc.add(new Field(\"fromInputFile\", fileName, Store.YES, Index.NOT_ANALYZED,\n\t\t\t\tTermVector.NO));\n\n\t\t// Store attribute values from the <doc> tag as fields\n\t\tfor (int i = 0; i < attributes.getLength(); i++) {\n\t\t\tString attName = attributes.getLocalName(i);\n\t\t\tString value = attributes.getValue(i);\n\n\t\t\tcurrentLuceneDoc.add(new Field(attName, value, Store.YES, Index.ANALYZED_NO_NORMS,\n\t\t\t\t\tTermVector.WITH_POSITIONS_OFFSETS));\n\t\t}\n\n\t\t// Report indexing progress\n\t\treportDocumentStarted(attributes);\n\t}", "public MyDocument() {\r\n }", "private void prepareNext() {\n this.hasNext = false;\n while (!this.hasNext && this.nodesIterator.hasNext()) {\n this.next = this.nodesIterator.next();\n this.hasNext = this.computeHasNext();\n }\n }", "public ModDocument() {\r\n\t\tsuper();\r\n\t}", "public DocumentWordPosition() {}", "@Override\n public int nextPos(){\n if(pos<docPostingList.length) {\n\n return docPostingList[pos];\n\n }\n return -1;\n\n }", "public ArrayIterator() {\n next = first;\n }", "private void findNext() {\n \tthis.find(true);\n }", "static void processDoc1(Document doc, int docno) throws IOException {\n\t\tString script = JetTest.config.getProperty(\"processDocument\");\n\t\t// if there is a name tagger, clear its cache\n\t\tif (JetTest.nameTagger != null) JetTest.nameTagger.newDocument();\n\t\tSpan all = new Span(0, doc.length());\n\t\tControl.applyScript (doc, all, script);\n\t}", "@Override\n public void getNext(CAS aCAS) throws IOException, CollectionException {\n // TODO Auto-generated method stub\n JCas jcas;\n try {\n jcas = aCAS.getJCas();\n } catch (CASException e) {\n throw new CollectionException(e);\n }\n jcas.setDocumentText(cas);\n readflag = 0;//read only document and stop here\n }", "private void initializeNextItem() {\n while (!messagesToReturn.hasNext() && dbCursor.hasNext()) {\n messagesToReturn = storageStrategy.extractEventMessages(dbCursor.next(), actualAggregateIdentifier,\n eventSerializer, upcasterChain).iterator();\n }\n next = messagesToReturn.hasNext() ? messagesToReturn.next() : null;\n }", "@Override\n\tpublic void rewind() {\n\t\t\n\t}", "public void startDocument() {\n _root = null;\n _target = null;\n _prefixMapping = null;\n _parentStack = new Stack<>();\n }", "private void initTimer(){\r\n\t\ttimer = new Timer() {\r\n\t\t\tpublic void run() {\r\n\t\t\t\tdisplayNext();\r\n\t\t\t}\r\n\t\t};\r\n\t}", "public int start() { return _start; }", "@Override\r\n\tprotected void doFirst() {\n\t\t\r\n\t}", "void loadNext();", "public void buildDocument() {\n/* 220 */ setDocument(getDocumentLoader().getDocument(getClass()), \"text/html\", \"ISO-8859-1\");\n/* */ \n/* 222 */ syncAccessMethods();\n/* */ }", "public void buildDocument() {\n/* 310 */ setDocument(getDocumentLoader().getDocument(getClass()), \"text/html\", \"ISO-8859-1\");\n/* */ \n/* 312 */ syncAccessMethods();\n/* */ }", "public void multiFileStartDocument() throws SAXException\r\n\t{\r\n\t\tsuper.startDocument();\r\n\t\ttagPath = new Stack<Path>();\r\n\t\ttagBeingIgnored = null;\r\n\t\tpassedARecord = false;\r\n\t}", "abstract public Document document(int n) throws IOException;", "public void buildDocument() {\n/* 248 */ setDocument(getDocumentLoader().getDocument(getClass()), \"text/html\", \"ISO-8859-1\");\n/* */ \n/* 250 */ syncAccessMethods();\n/* */ }", "public void next();", "public void next();", "protected void assembleDocument() {\n\n // Create the missive\n this.createMissive();\n }", "public DoubleDocument () {\r\n\t}", "public void startOver() {\n this.pagesRead = 0;\n }", "abstract public int numDocs();", "public void setNewSpecAnimationDocument(Document doc) {\n\n\t\tthis.specDocument = doc;\n\t}", "public DleseCollectionDocReader() {\n\t}", "SingleDocumentModel getCurrentDocument();", "@Override\n\tpublic void endDocument() {\n\t\t\n\t}", "public WalkerDocument newDocument() { return newDocument((IOptions)null); }", "public ListIterator() {current=first.next;}", "protected void reInitialize() {\n resetCurrent();\n incrementIterCount();\n setFirst(true);\n recoverRunningVersion();\n }", "@Override\n public boolean isDocumentState() {\n return true;\n }", "public void processDocument() {\n\n\t\t// compact concepts\n\t\tprocessConcepts(concepts);\n\t}", "protected Sampler nextIsNull() throws NextIsNullException {\n reInitialize();\n return null;\n }", "public void loadDocument(XCDocument doc) {\n\t\tthis.doc = doc;\n\t\tfor (int i=0; i<jtp.getTabCount()-1; i++) {\n\t\t\t((XCDisplay)jtp.getComponentAt(i)).loadDocument();\n\t\t}\n\t}", "@Override\n protected void initializeReader() {\n this.fileList = new ArrayList<>();\n this.fileListPosition = new AtomicInteger(0);\n this.currentTextAnnotation = new AtomicReference<>();\n }", "public Map<String, String> NextDocument() throws IOException {\n\t\tMap<String, String> map = new HashMap<>();\n\t\tStringBuffer content = new StringBuffer();\n\t\tString line = inputStream.readLine();\n\t\tif(line==null) {\n\t\t\tinputStream.close();\n\t\t\treturn null;\n\t\t} else {\n\t\t\tmap.put(\"DOCNO\", line);\n\t\t\tmap.put(\"CONTENT\", inputStream.readLine());\n\t\t\treturn map;\n\t\t}\n\t}", "public void advance() {\n\n if (length == Length.DAILY) {\n startDate.add(Calendar.DATE, 1);\n } else if (length == Length.WEEKLY) {\n startDate.add(Calendar.WEEK_OF_YEAR, 1);\n } else if (length == Length.BIWEEKLY) {\n startDate.add(Calendar.DATE, 14);\n } else if (length == Length.MONTHLY) {\n startDate.add(Calendar.MONTH, 1);\n } else if (length == Length.YEARLY) {\n startDate.add(Calendar.YEAR, 1);\n }\n\n calculateEndDate();\n\n }", "public void startDocument()\r\n\t{\r\n\t marc_out.add(\"=LDR 00000nam\\\\\\\\22000007a\\\\4500\") ;\r\n\t marc_out.add(\"=001 etd_\" + pid);\r\n\t marc_out.add(\"=003 MiAaPQ\");\r\n\t marc_out.add(\"=006 m\\\\\\\\\\\\\\\\fo\\\\\\\\d\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\");\r\n\t marc_out.add(\"=007 cr\\\\mnu\\\\\\\\\\\\aacaa\");\r\n\t marc_out.add(\"=040 \\\\\\\\$aMiAaPQ$beng$cDGW$dDGW\");\r\n\t marc_out.add(\"=049 \\\\\\\\$aDGWW\");\r\n\t marc_out.add(\"=504 \\\\\\\\$aIncludes bibliographical references.\");\r\n\t marc_out.add(\"=538 \\\\\\\\$aMode of access: Internet\");\r\n marc_out.add(\"=996 \\\\\\\\$aNew title added ; 20\" + running_date);\r\n marc_out.add(\"=998 \\\\\\\\$cgwjshieh ; UMI-ETDxml conv ; 20\" + running_date);\r\n\t marc_out.add(\"=852 8\\\\$bgwg ed$hGW: Electronic Dissertation\");\r\n\t marc_out.add(\"=856 40$uhttp://etd.gelman.gwu.edu/\" + pid + \".html$zClick here to access.\");\r\n\r\n }", "public abstract void next();", "public boolean isFinishedWithDocument(DocText docText) {\n return false;\n }", "private void countOnePseudoDoc(int docIdx) {\n\t\tFeatureSequence fs = (FeatureSequence)documents.get(docIdx).getData();\n\t\tint[] tokens = fs.getFeatures();\n\t\tdouble[] tmpCounts = new double[numOfTerms];\n\t\tArrays.fill(tmpCounts, 0);\n\t\tfor(int i=0; i<tokens.length; i++) {\n\t\t\tint term = tokens[i];\n\t\t\ttmpCounts[term] += alpha * 1;\n\t\t}\n\t\t\n\t\tPairedInfo pairedDocs = pairs.links.get(docIdx);\n\t\tif(!pairedDocs.isEmpty()) {\n//\t\t\tSystem.out.println(docIdx + \":\" + Arrays.toString(tokens));\n\t\t\tint[] pIds = pairedDocs.getPairedIdsArray();\n//\t\t\tSystem.out.println(docIdx + \": \" + pairedDocs.getLength() + \":\" + Arrays.toString(pIds));\n\t\t\tdouble[] sims = pairedDocs.getPairedSimArray();\n\t\t\tsims = Util.reWeightVector(sims);\n\t\t\tfor(int p=0; p<pIds.length; p++) {\n\t\t\t\tfs = (FeatureSequence)documents.get(p).getData();\n\t\t\t\tint[] pTokens = fs.getFeatures();\n\t\t\t\tfor(int i=0; i<pTokens.length; i++) {\n\t\t\t\t\tint term = pTokens[i];\n\t\t\t\t\ttmpCounts[term] += (1-alpha) * sims[p];\n\t\t\t\t}\n\t\t\t\ttokens = ArrayUtils.append(tokens, fs.getFeatures());\n\t\t\t}\n//\t\t\tSystem.out.println(docIdx + \":\" + Arrays.toString(tokens));\n\t\t}\n\t\t\n\t\tint termNum = MalletTfidf.distinctNumbers(tokens);\n\t\tpseudoTermIndex[docIdx]= new int[termNum];\n\t\tpseudoTf[docIdx] = new double[termNum];\n\t\tint[] tmpTf = new int[termNum];\n\t\tMalletTfidf.countTf(tokens, pseudoTermIndex[docIdx], tmpTf); // count the tf frequency\n\t\tfor(int i=0; i<pseudoTermIndex[docIdx].length; i++) {\n\t\t\tint term = pseudoTermIndex[docIdx][i];\n\t\t\tpseudoTf[docIdx][i] = tmpCounts[term];\n\t\t}\n\t\tpseudoTermWeight[docIdx] = Util.reWeightVector(pseudoTf[docIdx]);\n\t}", "public void setIteratorBegin() {\n iter = (next > 0 ? 0 : -1);\n }", "public void fileOpened(OpenDefinitionsDocument doc) { }", "public void fileOpened(OpenDefinitionsDocument doc) { }", "@Test\r\n\tpublic void indexOneLater() throws Exception {\n\t\tSolrInputDocument sd = new SolrInputDocument();\r\n\t\tsd.addField(\"id\", \"addone\");\r\n\t\tsd.addField(\"channelid\", \"9999\");\r\n\t\tsd.addField(\"topictree\", \"tptree\");\r\n\t\tsd.addField(\"topicid\", \"tpid\");\r\n\t\tsd.addField(\"dkeys\", \"测试\");\r\n\t\tsd.addField(\"title\", \"junit 标题\");\r\n\t\tsd.addField(\"ptime\", new Date());\r\n\t\tsd.addField(\"url\", \"/junit/test/com\");\r\n//\t\t\tSystem.out.println(doc);\r\n//\t\tbuffer.add(sd);\r\n\t\tdocIndexer.addDocumentAndCommitLater(sd, 1);\r\n\t}", "iterator(){current = start;}", "void next();", "public void newDocument();", "public void newFileCreated(OpenDefinitionsDocument doc) { }" ]
[ "0.6075361", "0.60067433", "0.59425914", "0.589656", "0.58367264", "0.57556736", "0.5715012", "0.57063913", "0.57049286", "0.55873823", "0.55543464", "0.5538426", "0.5517564", "0.55099547", "0.547115", "0.54705507", "0.5457326", "0.5424354", "0.54171175", "0.5395791", "0.5371558", "0.5370078", "0.53475654", "0.5346311", "0.5341089", "0.53327477", "0.5329548", "0.5329265", "0.53168005", "0.53145874", "0.5309206", "0.5308688", "0.52914363", "0.5268236", "0.52469605", "0.52381545", "0.5226165", "0.52260244", "0.5221582", "0.5189965", "0.518583", "0.5180509", "0.517243", "0.5153037", "0.51348996", "0.51333493", "0.5129758", "0.5127128", "0.51249045", "0.5121064", "0.51175916", "0.51153934", "0.5109524", "0.5109393", "0.5103999", "0.5084968", "0.5083115", "0.5082355", "0.5081938", "0.50692105", "0.5062523", "0.5061277", "0.5058026", "0.5054939", "0.5046463", "0.5041688", "0.50382185", "0.50359696", "0.5034086", "0.5034086", "0.50301206", "0.50270736", "0.5018438", "0.5015896", "0.5015564", "0.5002877", "0.49990892", "0.49979654", "0.49949774", "0.49849278", "0.49829912", "0.49759653", "0.49700087", "0.49690562", "0.4967977", "0.49655867", "0.4963409", "0.49627542", "0.4962101", "0.49604777", "0.49595466", "0.49532294", "0.49447918", "0.49433213", "0.49433213", "0.49382612", "0.49379387", "0.49306887", "0.49287412", "0.49229664" ]
0.54091287
19
Creates new form consultaTurista
public consultaTurista() { initComponents(); this.setLocationRelativeTo(null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void azzeraInsertForm() {\n\t\tviewInserimento.getCmbbxTipologia().setSelectedIndex(-1);\n\t\tviewInserimento.getTxtFieldDataI().setText(\"\");\n\t\tviewInserimento.getTxtFieldValore().setText(\"\");\n\t\tviewInserimento.getTxtFieldDataI().setBackground(Color.white);\n\t\tviewInserimento.getTxtFieldValore().setBackground(Color.white);\n\t}", "public creacionempresa() {\n initComponents();\n mostrardatos();\n }", "@Command\n\tpublic void nuevoAnalista(){\n\t\tMap<String, Object> parametros = new HashMap<String, Object>();\n\n\t\t//parametros.put(\"recordMode\", \"NEW\");\n\t\tllamarFormulario(\"formularioAnalistas.zul\", null);\n\t}", "public NewConsultasS() {\n initComponents();\n limpiar();\n bloquear();\n }", "public ViewCreatePagamento() {\n initComponents();\n clientesDAO cDAO = DaoFactory.createClientesDao(); \n matriculaDAO mDAO = DaoFactory.createMatriculaDao();\n \n cmbIDClientes.addItem(null);\n cDAO.findAll().forEach((p) -> {\n cmbIDClientes.addItem(p.getNome());\n });\n \n \n txtDataAtual.setText(DateFormat.getDateInstance().format(new Date()));\n }", "public String crea() {\n c.setId(0);\n clienteDAO.crea(c); \n //Post-Redirect-Get\n return \"visualiza?faces-redirect=true&id=\"+c.getId();\n }", "public frmTelaVendas() {\n initComponents();\n this.carrinho = new CarrinhoDeCompras();\n listaItens.setModel(this.lista);\n }", "public String nuevo() {\n\n\t\tLOG.info(\"Submitado formulario, accion nuevo\");\n\t\tString view = \"/alumno/form\";\n\n\t\t// las validaciones son correctas, por lo cual los datos del formulario estan en\n\t\t// el atributo alumno\n\n\t\t// TODO simular index de la bbdd\n\t\tint id = this.alumnos.size();\n\t\tthis.alumno.setId(id);\n\n\t\tLOG.debug(\"alumno: \" + this.alumno);\n\n\t\t// TODO comprobar edad y fecha\n\n\t\talumnos.add(alumno);\n\t\tview = VIEW_LISTADO;\n\t\tmockAlumno();\n\n\t\t// mensaje flash\n\t\tFacesContext facesContext = FacesContext.getCurrentInstance();\n\t\tExternalContext externalContext = facesContext.getExternalContext();\n\t\texternalContext.getFlash().put(\"alertTipo\", \"success\");\n\t\texternalContext.getFlash().put(\"alertMensaje\", \"Alumno \" + this.alumno.getNombre() + \" creado con exito\");\n\n\t\treturn view + \"?faces-redirect=true\";\n\t}", "private void iniciaTela() {\n try {\n tfCod.setText(String.valueOf(reservaCliDAO.getLastId()));\n desabilitaCampos(false);\n DefaultComboBoxModel modeloComboCliente;\n modeloComboCliente = new DefaultComboBoxModel(funDAO.getAll().toArray());\n cbFunc.setModel(modeloComboCliente);\n modeloComboCliente = new DefaultComboBoxModel(quartoDAO.getAll().toArray());\n cbQuarto.setModel(modeloComboCliente);\n modeloComboCliente = new DefaultComboBoxModel(cliDAO.getAll().toArray());\n cbCliente.setModel(modeloComboCliente);\n btSelect.setEnabled(false);\n verificaCampos();\n carregaTableReserva(reservaDAO.getAll());\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public static void create(Formulario form){\n daoFormulario.create(form);\n }", "public FrmInsertar() {\n initComponents();\n }", "public GestaoFormando() {\n \n initComponents();\n listarEquipamentos();\n listarmapainscritos();\n }", "public telaCadastro() {\n initComponents();\n populaTabela();\n }", "public void insertar() {\r\n if (vista.jTNombreempresa.getText().equals(\"\") || vista.jTTelefono.getText().equals(\"\") || vista.jTRFC.getText().equals(\"\") || vista.jTDireccion.getText().equals(\"\")) {\r\n JOptionPane.showMessageDialog(null, \"Faltan Datos: No puedes dejar cuadros en blanco\");//C.P.M Verificamos si las casillas esta vacia si es asi lo notificamos\r\n } else {//C.P.M de lo contrario prosegimos\r\n modelo.setNombre(vista.jTNombreempresa.getText());//C.P.M mandamos las variabes al modelo \r\n modelo.setDireccion(vista.jTDireccion.getText());\r\n modelo.setRfc(vista.jTRFC.getText());\r\n modelo.setTelefono(vista.jTTelefono.getText());\r\n \r\n Error = modelo.insertar();//C.P.M Ejecutamos el metodo del modelo \r\n if (Error.equals(\"\")) {//C.P.M Si el modelo no regresa un error es que todo salio bien\r\n JOptionPane.showMessageDialog(null, \"Se guardo exitosamente la configuracion\");//C.P.M notificamos a el usuario\r\n vista.dispose();//C.P.M y cerramos la vista\r\n } else {//C.P.M de lo contrario \r\n JOptionPane.showMessageDialog(null, Error);//C.P.M notificamos a el usuario el error\r\n }\r\n }\r\n }", "public FormInserir() {\n initComponents();\n }", "public ConsultarVeiculo() {\n initComponents();\n }", "public CrearQuedadaVista() {\n }", "public CrearPedidos() {\n initComponents();\n }", "public JogadorTradutor() {\n this.nome= \"Sem Registro\";\n this.pontuacao = pontuacao;\n id = id;\n \n geradorDesafioItaliano = new GerarPalavra(); // primeira palavra ja é gerada para o cliente\n }", "public TelaCadastrarProduto() {\n initComponents();\n entidade = new Produto();\n setRepositorio(RepositorioBuilder.getProdutoRepositorio());\n grupo.add(jRadioButton1);\n grupo.add(jRadioButton2);\n }", "public ConsultasConsulta() {\n tablaconsultas = new DefaultTableModel();\n archivo.leer();\n try {\n this.conexioncitas = new ProcesosCitas(archivo.getBase(), archivo.getUser(), archivo.getPassword());\n } catch (ClassNotFoundException ex) {\n Logger.getLogger(Especie.class.getName()).log(Level.SEVERE, null, ex);\n } catch (SQLException ex) {\n Logger.getLogger(Especie.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n initComponents();\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n cargarConsultas();\n\n }", "public MostraVenta(String idtrasp, Object[][] clienteM1, Object[][] vendedorM1, String idmarc, String responsable,ListaTraspaso panel)\n{\n this.padre = panel;\n this.clienteM = clienteM1;\n this.vendedorM = vendedorM1;\n this.idtraspaso= idtrasp;\n this.idmarca=idmarc;\n//this.tipoenvioM = new String[]{\"INGRESO\", \"TRASPASO\"};\n String tituloTabla =\"Detalle Venta\";\n // padre=panel;\n String nombreBoton1 = \"Registrar\";\n String nombreBoton2 = \"Cancelar\";\n // String nombreBoton3 = \"Eliminar Empresa\";\n\n setId(\"win-NuevaEmpresaForm1\");\n setTitle(tituloTabla);\n setWidth(400);\n setMinWidth(ANCHO);\n setHeight(250);\n setLayout(new FitLayout());\n setPaddings(WINDOW_PADDING);\n setButtonAlign(Position.CENTER);\n setCloseAction(Window.CLOSE);\n setPlain(true);\n\n but_aceptar = new Button(nombreBoton1);\n but_cancelar = new Button(nombreBoton2);\n // addButton(but_aceptarv);\n addButton(but_aceptar);\n addButton(but_cancelar);\n\n formPanelCliente = new FormPanel();\n formPanelCliente.setBaseCls(\"x-plain\");\n //formPanelCliente.setLabelWidth(130);\n formPanelCliente.setUrl(\"save-form.php\");\n formPanelCliente.setWidth(ANCHO);\n formPanelCliente.setHeight(ALTO);\n formPanelCliente.setLabelAlign(Position.LEFT);\n\n formPanelCliente.setAutoWidth(true);\n\n\ndat_fecha1 = new DateField(\"Fecha\", \"d-m-Y\");\n fechahoy = new Date();\n dat_fecha1.setValue(fechahoy);\n dat_fecha1.setReadOnly(true);\n\ncom_vendedor = new ComboBox(\"Vendedor al que enviamos\", \"idempleado\");\ncom_cliente = new ComboBox(\"Clientes\", \"idcliente\");\n//com_tipo = new ComboBox(\"Tipo Envio\", \"idtipo\");\n initValues1();\n\n\n\n formPanelCliente.add(dat_fecha1);\n// formPanelCliente.add(com_tipo);\n// formPanelCliente.add(tex_nombreC);\n// formPanelCliente.add(tex_codigoBarra);\n // formPanelCliente.add(tex_codigoC);\nformPanelCliente.add(com_vendedor);\n formPanelCliente.add(com_cliente);\n add(formPanelCliente);\nanadirListenersTexfield();\n addListeners();\n\n }", "public void srediFormu() throws Exception {\n KlijentTransferObjekat kto = new KlijentTransferObjekat();\n kto.setOperacija(Konstante.VRATI_PROIZVODJACE);\n Komunikacija.getInstance().posaljiZahtev(kto);\n ServerTransferObjekat sto = Komunikacija.getInstance().procitajOdgovor();\n if (sto.getRezultat() == Konstante.REZULTAT_NOK) {\n throw new Exception(sto.getIzuzetak());\n }\n List<OpstiDomenskiObjekat> lp = (List<OpstiDomenskiObjekat>) sto.getOdgovor();\n\n ProizvodjacTableModel model = new ProizvodjacTableModel(lp);\n jTable1.setModel(model);\n }", "private void initialize() {\r\n\t\tfrmTelaCadastro = new JFrame();\r\n\t\tfrmTelaCadastro.getContentPane().setBackground(Color.WHITE);\r\n\t\tfrmTelaCadastro.getContentPane().setLayout(null);\r\n\r\n\t\tconsultaagua = new CadastroAguaDAO();\r\n\r\n\t\tpanel = new JPanel();\r\n\t\tpanel.setBounds(80, 24, 832, 94);\r\n\t\tpanel.setLayout(null);\r\n\t\tfrmTelaCadastro.getContentPane().add(panel);\r\n\r\n\t\ttextField = new JTextField();\r\n\t\ttextField.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\ttextField.setColumns(10);\r\n\t\ttextField.setBounds(64, 37, 242, 20);\r\n\t\tpanel.add(textField);\r\n\r\n\t\ttextField_1 = new JTextField();\r\n\t\ttextField_1.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\ttextField_1.setColumns(10);\r\n\t\ttextField_1.setBounds(414, 34, 347, 20);\r\n\t\tpanel.add(textField_1);\r\n\r\n\t\ttextField_4 = new JTextField();\r\n\t\ttextField_4.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\ttextField_4.setColumns(10);\r\n\t\ttextField_4.setBounds(105, 60, 112, 20);\r\n\t\tpanel.add(textField_4);\r\n\r\n\t\tlblNome = new JLabel(\"Nome:\");\r\n\t\tlblNome.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblNome.setFont(new Font(\"Tahoma\", Font.PLAIN, 12));\r\n\t\tlblNome.setBounds(10, 32, 65, 28);\r\n\t\tpanel.add(lblNome);\r\n\r\n\t\tlblEndereco = new JLabel(\"Endereco:\");\r\n\t\tlblEndereco.setFont(new Font(\"Tahoma\", Font.PLAIN, 12));\r\n\t\tlblEndereco.setBounds(356, 29, 65, 28);\r\n\t\tpanel.add(lblEndereco);\r\n\r\n\t\tlblhidrometro = new JLabel(\"Hidr\\u00F4metro:\");\r\n\t\tlblhidrometro.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblhidrometro.setFont(new Font(\"Tahoma\", Font.PLAIN, 12));\r\n\t\tlblhidrometro.setBounds(20, 55, 75, 28);\r\n\t\tpanel.add(lblhidrometro);\r\n\r\n\t\tJButton btnNewButton = new JButton(\"Consultar\");\r\n\t\tbtnNewButton.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\r\n\t\t\t\tList<CadastroAgua> cadagua = new ArrayList<CadastroAgua>();\r\n\r\n\t\t\t\tCadastroAgua c = new CadastroAgua();\r\n\t\t\t\tcadagua = consultaagua.getCadastroAgua(\"8\");\r\n\t\t\t\tfor (int i = 0; i < cadagua.size(); i++)\r\n\r\n\t\t\t\t{\r\n\t\t\t\t\tc = (CadastroAgua) cadagua.get(i);\r\n\r\n\t\t\t\t\ttextRGI.setText(c.getContaAguaRGI());\r\n\t\t\t\t\ttextGrupo.setText(c.getContaAguaGrupo());\r\n\t\t\t\t\ttextNConta.setText(c.getContaAguaNConta());\r\n\t\t\t\t\ttextGrupo.setText(c.getContaAguaGrupo());\r\n\t\t\t\t\ttextMesRef.setText(c.getContaAguaMesRef());\r\n\t\t\t\t\ttextTipoLig.setText(c.getContaAguaTipoLigacao());\r\n\t\t\t\t\ttextTipoFat.setText(c.getContaAguaTipoFaturamento());\r\n\t\t\t\t\ttextConsumo.setText(c.getContaAguaConsumo());\r\n\t\t\t\t\ttextDataAtual.setText(c.getContaAguaDataLeituraAtual());\r\n\t\t\t\t\ttextLeituraAtual.setText(c.getContaAguaLeituraAtual());\r\n\t\t\t\t\ttextDataAnterior.setText(c.getContaAguaDataLeituraAnterior());\r\n\t\t\t\t\ttextLeituraAnterior.setText(c.getContaAguaLeituraAnterior());\r\n\t\t\t\t\ttextObs.setText(c.getContaAguaObservacao());\r\n\t\t\t\t\ttxtValorAgua.setText(c.getContaAguaValorAgua());\r\n\t\t\t\t\ttxtValorEsgoto.setText(c.getContaAguaValorEsgoto());\r\n\t\t\t\t\ttextValorTotal.setText(c.getContaAguaValorTotal());\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnNewButton.setBounds(414, 65, 89, 23);\r\n\t\tpanel.add(btnNewButton);\r\n\r\n\t\ttabbedPane = new JTabbedPane(JTabbedPane.TOP);\r\n\t\ttabbedPane.setBounds(80, 144, 832, 425);\r\n\t\tfrmTelaCadastro.getContentPane().add(tabbedPane);\r\n\r\n\t\tpanel1 = new JPanel();\r\n\t\ttabbedPane.addTab(\"Dados Conta\", null, panel1, null);\r\n\t\tpanel1.setLayout(null);\r\n\r\n\t\ttextNConta = new JTextField();\r\n\t\ttextNConta.setBounds(193, 54, 155, 20);\r\n\t\ttextNConta.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\ttextNConta.setColumns(10);\r\n\t\tpanel1.add(textNConta);\r\n\r\n\t\tlblNDaConta = new JLabel(\"N\\u00BA da Conta:\");\r\n\t\tlblNDaConta.setBounds(215, 26, 97, 28);\r\n\t\tlblNDaConta.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblNDaConta.setFont(new Font(\"Tahoma\", Font.PLAIN, 12));\r\n\t\tpanel1.add(lblNDaConta);\r\n\r\n\t\tlblGrupo = new JLabel(\"Grupo:\");\r\n\t\tlblGrupo.setBounds(358, 26, 97, 28);\r\n\t\tlblGrupo.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblGrupo.setFont(new Font(\"Tahoma\", Font.PLAIN, 12));\r\n\t\tpanel1.add(lblGrupo);\r\n\r\n\t\ttextGrupo = new JTextField();\r\n\t\ttextGrupo.setBounds(384, 54, 45, 20);\r\n\t\ttextGrupo.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\ttextGrupo.setColumns(10);\r\n\t\tpanel1.add(textGrupo);\r\n\r\n\t\tlblCodIdentificador_3 = new JLabel(\"RGI:\");\r\n\t\tlblCodIdentificador_3.setBounds(52, 26, 97, 28);\r\n\t\tlblCodIdentificador_3.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblCodIdentificador_3.setFont(new Font(\"Tahoma\", Font.PLAIN, 12));\r\n\t\tpanel1.add(lblCodIdentificador_3);\r\n\r\n\t\ttextRGI = new JTextField();\r\n\t\ttextRGI.setBounds(30, 54, 155, 20);\r\n\t\ttextRGI.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\ttextRGI.setColumns(10);\r\n\t\tpanel1.add(textRGI);\r\n\r\n\t\tlblMesRef = new JLabel(\"M\\u00EAs Refer\\u00EAncia:\");\r\n\t\tlblMesRef.setBounds(484, 26, 97, 28);\r\n\t\tlblMesRef.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblMesRef.setFont(new Font(\"Tahoma\", Font.PLAIN, 12));\r\n\t\tpanel1.add(lblMesRef);\r\n\r\n\t\ttextMesRef = new JTextField();\r\n\t\ttextMesRef.setBounds(455, 54, 155, 20);\r\n\t\ttextMesRef.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\ttextMesRef.setColumns(10);\r\n\t\tpanel1.add(textMesRef);\r\n\r\n\t\tlblCodIdentificador_1 = new JLabel(\"Tipo de Liga\\u00E7\\u00E3o:\");\r\n\t\tlblCodIdentificador_1.setBounds(658, 26, 97, 28);\r\n\t\tlblCodIdentificador_1.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblCodIdentificador_1.setFont(new Font(\"Tahoma\", Font.PLAIN, 12));\r\n\t\tpanel1.add(lblCodIdentificador_1);\r\n\r\n\t\ttextTipoLig = new JTextField();\r\n\t\ttextTipoLig.setBounds(636, 54, 155, 20);\r\n\t\ttextTipoLig.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\ttextTipoLig.setColumns(10);\r\n\t\tpanel1.add(textTipoLig);\r\n\r\n\t\tlblTipFat = new JLabel(\"Tipo de Faturamento:\");\r\n\t\tlblTipFat.setBounds(215, 100, 120, 28);\r\n\t\tlblTipFat.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblTipFat.setFont(new Font(\"Tahoma\", Font.PLAIN, 12));\r\n\t\tpanel1.add(lblTipFat);\r\n\r\n\t\ttextTipoFat = new JTextField();\r\n\t\ttextTipoFat.setBounds(198, 128, 155, 20);\r\n\t\ttextTipoFat.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\ttextTipoFat.setColumns(10);\r\n\t\tpanel1.add(textTipoFat);\r\n\r\n\t\ttextConsumo = new JTextField();\r\n\t\ttextConsumo.setBounds(455, 128, 155, 20);\r\n\t\ttextConsumo.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\ttextConsumo.setColumns(10);\r\n\t\tpanel1.add(textConsumo);\r\n\r\n\t\tlblConsumoM = new JLabel(\"Consumo m\\u00B3:\");\r\n\t\tlblConsumoM.setBounds(472, 100, 120, 28);\r\n\t\tlblConsumoM.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblConsumoM.setFont(new Font(\"Tahoma\", Font.PLAIN, 12));\r\n\t\tpanel1.add(lblConsumoM);\r\n\r\n\t\tlblLeitAtual = new JLabel(\"Leitura Atual:\");\r\n\t\tlblLeitAtual.setBounds(203, 223, 120, 28);\r\n\t\tlblLeitAtual.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblLeitAtual.setFont(new Font(\"Tahoma\", Font.PLAIN, 12));\r\n\t\tpanel1.add(lblLeitAtual);\r\n\r\n\t\ttextDataAtual = new JTextField();\r\n\t\ttextDataAtual.setBounds(312, 227, 120, 20);\r\n\t\ttextDataAtual.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\ttextDataAtual.setColumns(10);\r\n\t\tpanel1.add(textDataAtual);\r\n\r\n\t\tJLabel lblData = new JLabel(\"Data\");\r\n\t\tlblData.setBounds(314, 185, 120, 28);\r\n\t\tlblData.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblData.setFont(new Font(\"Tahoma\", Font.PLAIN, 12));\r\n\t\tpanel1.add(lblData);\r\n\r\n\t\tJLabel lblApresentao = new JLabel(\"Apresenta\\u00E7\\u00E3o\");\r\n\t\tlblApresentao.setBounds(205, 185, 120, 28);\r\n\t\tlblApresentao.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblApresentao.setFont(new Font(\"Tahoma\", Font.PLAIN, 12));\r\n\t\tpanel1.add(lblApresentao);\r\n\r\n\t\tJSeparator separator = new JSeparator();\r\n\t\tseparator.setBounds(130, 202, 0, 35);\r\n\t\tpanel1.add(separator);\r\n\r\n\t\tJSeparator separator_1 = new JSeparator();\r\n\t\tseparator_1.setBounds(232, 214, 355, 2);\r\n\t\tpanel1.add(separator_1);\r\n\r\n\t\tJLabel lblLeitura = new JLabel(\"Leitura\");\r\n\t\tlblLeitura.setBounds(461, 185, 120, 28);\r\n\t\tlblLeitura.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblLeitura.setFont(new Font(\"Tahoma\", Font.PLAIN, 12));\r\n\t\tpanel1.add(lblLeitura);\r\n\r\n\t\tJLabel lblLeituraAnterior = new JLabel(\"Leitura Anterior:\");\r\n\t\tlblLeituraAnterior.setBounds(203, 250, 120, 28);\r\n\t\tlblLeituraAnterior.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblLeituraAnterior.setFont(new Font(\"Tahoma\", Font.PLAIN, 12));\r\n\t\tpanel1.add(lblLeituraAnterior);\r\n\r\n\t\ttextDataAnterior = new JTextField();\r\n\t\ttextDataAnterior.setBounds(312, 254, 120, 20);\r\n\t\ttextDataAnterior.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\ttextDataAnterior.setColumns(10);\r\n\t\tpanel1.add(textDataAnterior);\r\n\r\n\t\ttextLeituraAnterior = new JTextField();\r\n\t\ttextLeituraAnterior.setBounds(461, 254, 120, 20);\r\n\t\ttextLeituraAnterior.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\ttextLeituraAnterior.setColumns(10);\r\n\t\tpanel1.add(textLeituraAnterior);\r\n\r\n\t\ttextLeituraAtual = new JTextField();\r\n\t\ttextLeituraAtual.setBounds(461, 227, 120, 20);\r\n\t\ttextLeituraAtual.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\ttextLeituraAtual.setColumns(10);\r\n\t\tpanel1.add(textLeituraAtual);\r\n\r\n\t\tlblObservacao = new JLabel(\"Observa\\u00E7\\u00E3o:\");\r\n\t\tlblObservacao.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblObservacao.setFont(new Font(\"Tahoma\", Font.PLAIN, 12));\r\n\t\tlblObservacao.setBounds(358, 288, 120, 28);\r\n\t\tpanel1.add(lblObservacao);\r\n\r\n\t\ttextObs = new JTextField();\r\n\t\ttextObs.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\ttextObs.setColumns(10);\r\n\t\ttextObs.setBounds(35, 314, 767, 20);\r\n\t\tpanel1.add(textObs);\r\n\r\n\t\tJSeparator separator_2 = new JSeparator();\r\n\t\tseparator_2.setBounds(444, 211, 0, 78);\r\n\t\tpanel1.add(separator_2);\r\n\t\tJLabel lblValorAgua = new JLabel(\"Valor \\u00C1gua\");\r\n\t\tlblValorAgua.setBounds(130, 345, 149, 28);\r\n\t\tpanel1.add(lblValorAgua);\r\n\t\tlblValorAgua.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblValorAgua.setFont(new Font(\"Tahoma\", Font.PLAIN, 12));\r\n\t\ttxtValorAgua = new JTextField();\r\n\t\ttxtValorAgua.setBounds(151, 366, 106, 20);\r\n\t\tpanel1.add(txtValorAgua);\r\n\t\ttxtValorAgua.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\ttxtValorAgua.setColumns(10);\r\n\t\ttxtValorEsgoto = new JTextField();\r\n\t\ttxtValorEsgoto.setBounds(352, 366, 106, 20);\r\n\t\tpanel1.add(txtValorEsgoto);\r\n\t\ttxtValorEsgoto.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\ttxtValorEsgoto.setColumns(10);\r\n\t\tJLabel lblValorEsgoto = new JLabel(\"Valor Esgoto\");\r\n\t\tlblValorEsgoto.setBounds(331, 345, 149, 28);\r\n\t\tpanel1.add(lblValorEsgoto);\r\n\t\tlblValorEsgoto.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblValorEsgoto.setFont(new Font(\"Tahoma\", Font.PLAIN, 12));\r\n\t\tJLabel lblValorTotal = new JLabel(\"Valor Total\");\r\n\t\tlblValorTotal.setBounds(524, 345, 149, 28);\r\n\t\tpanel1.add(lblValorTotal);\r\n\t\tlblValorTotal.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblValorTotal.setFont(new Font(\"Tahoma\", Font.PLAIN, 12));\r\n\r\n\t\ttextValorTotal = new JTextField();\r\n\t\ttextValorTotal.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\ttextValorTotal.setColumns(10);\r\n\t\ttextValorTotal.setBounds(547, 366, 106, 20);\r\n\t\tpanel1.add(textValorTotal);\r\n\r\n\t\tJButton btnCadastro = new JButton(\"Cadastro\");\r\n\t\tbtnCadastro.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\r\n\t\t\t\tCadastroAgua cadaguadao = new CadastroAgua();\r\n\r\n\t\t\t\tcadaguadao.setContaAguaRGI(textRGI.getText());\r\n\t\t\t\tcadaguadao.setContaAguaNConta(textNConta.getText());\r\n\t\t\t\tcadaguadao.setContaAguaGrupo(textGrupo.getText());\r\n\t\t\t\tcadaguadao.setContaAguaMesRef(textMesRef.getText());\r\n\t\t\t\tcadaguadao.setContaAguaTipoLigacao(textTipoLig.getText());\r\n\t\t\t\tcadaguadao.setContaAguaTipoFaturamento(textTipoFat.getText());\r\n\t\t\t\tcadaguadao.setContaAguaConsumo(textConsumo.getText());\r\n\t\t\t\tcadaguadao.setContaAguaDataLeituraAtual(textDataAtual.getText());\r\n\t\t\t\tcadaguadao.setContaAguaLeituraAtual(textLeituraAtual.getText());\r\n\t\t\t\tcadaguadao.setContaAguaDataLeituraAnterior(textDataAnterior.getText());\r\n\t\t\t\tcadaguadao.setContaAguaLeituraAnterior(textLeituraAnterior.getText());\r\n\t\t\t\tcadaguadao.setContaAguaObservacao(textObs.getText());\r\n\t\t\t\tcadaguadao.setContaAguaValorAgua(txtValorAgua.getText());\r\n\t\t\t\tcadaguadao.setContaAguaValorEsgoto(txtValorEsgoto.getText());\r\n\t\t\t\tcadaguadao.setContaAguaValorTotal(textValorTotal.getText());\r\n\r\n\t\t\t\tif ((textRGI.getText().isEmpty()) || (textNConta.getText().isEmpty()) || (textGrupo.getText().isEmpty())\r\n\t\t\t\t\t\t|| (textMesRef.getText().isEmpty()) || (textTipoLig.getText().isEmpty())\r\n\t\t\t\t\t\t|| (textTipoFat.getText().isEmpty()) || (textConsumo.getText().isEmpty())\r\n\t\t\t\t\t\t|| (textDataAtual.getText().isEmpty()) || (textLeituraAtual.getText().isEmpty())\r\n\t\t\t\t\t\t|| (textDataAnterior.getText().isEmpty()) || (textLeituraAnterior.getText().isEmpty())\r\n\t\t\t\t\t\t|| (textObs.getText().isEmpty()) || (txtValorAgua.getText().isEmpty())\r\n\t\t\t\t\t\t|| (txtValorEsgoto.getText().isEmpty()) || (textValorTotal.getText().isEmpty())) {\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Os campos não podem estar vazios\");\r\n\t\t\t\t}\r\n\r\n\t\t\t\telse {\r\n\r\n\t\t\t\t\tCadastroAguaDAO cadagua = new CadastroAguaDAO();\r\n\t\t\t\t\tcadagua.adiciona(cadaguadao);\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Conta registrada com sucesso! \");\r\n\t\t\t\t}\r\n\r\n\t\t\t\ttextRGI.setText(\"\");\r\n\t\t\t\ttextNConta.setText(\"\");\r\n\t\t\t\ttextGrupo.setText(\"\");\r\n\t\t\t\ttextMesRef.setText(\"\");\r\n\t\t\t\ttextTipoLig.setText(\"\");\r\n\t\t\t\ttextTipoFat.setText(\"\");\r\n\t\t\t\ttextConsumo.setText(\"\");\r\n\t\t\t\ttextDataAtual.setText(\"\");\r\n\t\t\t\ttextLeituraAtual.setText(\"\");\r\n\t\t\t\ttextDataAnterior.setText(\"\");\r\n\t\t\t\ttextLeituraAnterior.setText(\"\");\r\n\t\t\t\ttextObs.setText(\"\");\r\n\t\t\t\ttxtValorAgua.setText(\"\");\r\n\t\t\t\ttxtValorEsgoto.setText(\"\");\r\n\t\t\t\ttextValorTotal.setText(\"\");\r\n\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tbtnCadastro.setBounds(423, 623, 107, 23);\r\n\t\tfrmTelaCadastro.getContentPane().add(btnCadastro);\r\n\r\n\t\tJLabel lblNewLabel_1_1 = new JLabel(\"New label\");\r\n\t\tlblNewLabel_1_1.setIcon(new ImageIcon(\"C:\\\\Users\\\\assen\\\\eclipse-workspace\\\\TecSus\\\\img\\\\IconAgua.png\"));\r\n\t\tlblNewLabel_1_1.setBounds(10, 11, 30, 30);\r\n\t\tfrmTelaCadastro.getContentPane().add(lblNewLabel_1_1);\r\n\r\n\t\tJButton lblNewLabel_3 = new JButton(\"New label\");\r\n\t\tlblNewLabel_3.addActionListener(new ActionListener() {\r\n\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tMenuEnergia window = new MenuEnergia();\r\n\t\t\t\twindow.frmMenuEnergia.setVisible(true);\r\n\t\t\t}\r\n\t\t});\r\n\t\tlblNewLabel_3.setIcon(new ImageIcon(\"C:\\\\Users\\\\assen\\\\eclipse-workspace\\\\TecSus\\\\img\\\\IconReturn.png\"));\r\n\t\tlblNewLabel_3.setForeground(Color.WHITE);\r\n\t\tlblNewLabel_3.setBackground(Color.WHITE);\r\n\t\tlblNewLabel_3.setBounds(31, 611, 60, 54);\r\n\t\tfrmTelaCadastro.getContentPane().add(lblNewLabel_3);\r\n\t\ttextField_5 = new JTextField();\r\n\t\ttextField_5.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\ttextField_5.setColumns(10);\r\n\t\ttextField_5.setBounds(292, 702, 106, 20);\r\n\t\tfrmTelaCadastro.getContentPane().add(textField_5);\r\n\t\tfrmTelaCadastro.setResizable(false);\r\n\t\tfrmTelaCadastro.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tfrmTelaCadastro.setForeground(Color.WHITE);\r\n\t\tfrmTelaCadastro.setTitle(\"TELA CADASTRO \\u00C1GUA\");\r\n\t\tfrmTelaCadastro.setBounds(100, 100, 960, 720);\r\n\t\tfrmTelaCadastro.setLocationRelativeTo(null);\r\n\r\n\t\timageIcon = new ImageIcon(\"img/IconAgua.png\");\r\n\r\n\t}", "FORM createFORM();", "public VistaTrabaja() {\n initComponents();\n }", "public void crear() {\n con = new Conexion();\n con.setInsertar(\"insert into lenguajes_programacion (nombre, fecha_creacion, estado) values ('\"+this.getNombre()+\"', '\"+this.getFecha_creacion()+\"', 'activo')\");\n }", "public ArticulosAdd() {\n initComponents();\n Sistema.lblNotificacion.setText(\"Ingreso Artítuclos\");\n this.setLocationRelativeTo(null);\n\n Date date = new Date();\n\n dtDesde.setDate(date);\n dtHasta.setDate(date);\n\n articulos.searchArticulo(cboArticulos, \"\", 0, 1000, 0);\n }", "public void registrarMateria() {\n materia.setIdDepartamento(departamento);\n ejbFacade.create(materia);\n RequestContext requestContext = RequestContext.getCurrentInstance();\n requestContext.execute(\"PF('MateriaCreateDialog').hide()\");\n items = ejbFacade.findAll();\n departamento = new Departamento();\n materia = new Materia();\n\n FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_INFO, \"Información\", \"La materia se registró con éxito\");\n FacesContext.getCurrentInstance().addMessage(null, msg);\n requestContext.update(\"msg\");//Actualiza la etiqueta growl para que el mensaje pueda ser mostrado\n\n requestContext.update(\"MateriaListForm\");\n requestContext.update(\"MateriaCreateForm\");\n }", "public frm_tutor_subida_prueba() {\n }", "@Override\n\tprotected BaseSearchForm devuelveFormBusqueda() throws Exception {\n\t\tMantenimientoCRAMatrizDiasSearchForm form = new MantenimientoCRAMatrizDiasSearchForm();\n\t\treturn form;\n\t}", "@Override\r\n\tpublic void crearVehiculo() {\n\t\t\r\n\t}", "public void limpiarCamposFormBusqueda() {\n\t}", "@FXML\r\n private void crearSolicitud() {\r\n try {\r\n //Carga la vista de crear solicitud rma\r\n FXMLLoader loader = new FXMLLoader();\r\n loader.setLocation(Principal.class.getResource(\"/vista/CrearSolicitud.fxml\"));\r\n BorderPane vistaCrear = (BorderPane) loader.load();\r\n\r\n //Crea un dialogo para mostrar la vista\r\n Stage dialogo = new Stage();\r\n dialogo.setTitle(\"Solicitud RMA\");\r\n dialogo.initModality(Modality.WINDOW_MODAL);\r\n dialogo.initOwner(primerStage);\r\n Scene escena = new Scene(vistaCrear);\r\n dialogo.setScene(escena);\r\n\r\n //Annadir controlador y datos\r\n ControladorCrearSolicitud controlador = loader.getController();\r\n controlador.setDialog(dialogo, primerStage);\r\n\r\n //Carga el numero de Referencia\r\n int numReferencia = DAORma.crearReferencia();\r\n\r\n //Modifica el dialogo para que no se pueda cambiar el tamaño y lo muestra\r\n dialogo.setResizable(false);\r\n dialogo.showAndWait();\r\n\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }", "public void crearModelo() {\n modeloagr = new DefaultTableModel(null, columnasAgr) {\n public boolean isCellEditable(int fila, int columna) {\n return false;\n }\n };\n tbl.llenarTabla(AgendarA.tblAgricultor, modeloagr, columnasAgr.length, \"SELECT idPersonalExterno,cedula,CONCAT(nombres,' ',apellidos),municipios.nombre,telefono,telefono2,telefono3 FROM personalexterno,municipios WHERE tipo='agricultor' AND personalexterno.idMunicipio=municipios.idMunicipio\");\n tbl.alinearHeaderTable(AgendarA.tblAgricultor, headerColumnas);\n tbl.alinearCamposTable(AgendarA.tblAgricultor, camposColumnas);\n tbl.rowNumberTabel(AgendarA.tblAgricultor);\n }", "@GetMapping(value = \"/create\") // https://localhost:8080/etiquetasTipoDisenio/create\n\tpublic String create(Model model) {\n\t\tetiquetasTipoDisenio etiquetasTipoDisenio = new etiquetasTipoDisenio();\n\t\tmodel.addAttribute(\"title\", \"Registro de una nuev entrega\");\n\t\tmodel.addAttribute(\"etiquetasTipoDisenio\", etiquetasTipoDisenio); // similar al ViewBag\n\t\treturn \"etiquetasTipoDisenio/form\"; // la ubicacion de la vista\n\t}", "private void insertar() {\n try {\n cvo.setNombre_cliente(vista.txtNombre.getText());\n cvo.setApellido_cliente(vista.txtApellido.getText());\n cvo.setDireccion_cliente(vista.txtDireccion.getText());\n cvo.setCorreo_cliente(vista.txtCorreo.getText());\n cvo.setClave_cliente(vista.txtClave.getText());\n cdao.insertar(cvo);\n vista.txtNombre.setText(\"\");\n vista.txtApellido.setText(\"\");\n vista.txtDireccion.setText(\"\");\n vista.txtCorreo.setText(\"\");\n vista.txtClave.setText(\"\");\n JOptionPane.showMessageDialog(null, \"Registro Ingresado\");\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"Debe ingresar Datos para guardar registro!\");\n }\n }", "public Consultar() {\n initComponents();\n }", "public TelaAgendaConsulta() {\n initComponents();\n }", "public Modello() {\r\n super();\r\n initComponents();\r\n setModalita(APPEND_QUERY);\r\n setFrameTable(tabModello);\r\n setNomeTabella(\"vmodello\");\r\n tMarcaDescrizione.setEnabled(false);\r\n }", "public registro() {\n initComponents();\n }", "public Consultar_Cita() {\n initComponents();\n this.setLocationRelativeTo(null);\n mostrartabla(\"\");\n //Llenar();\n }", "public Registro_Tratamento() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"Registro de tratamentos\");\n }", "public ConsultaCompradores() {\n initComponents();\n \n \n }", "public RegistrarCompra() {\n initComponents();\n tabelaFornecedor.setModel(modelFornecedor);\n\n }", "public CadastroProdutoNew() {\n initComponents();\n }", "public crud_empleados() {\n initComponents();\n txt_usuario1.setEditable(false);\n Mostrar();\n \n\n\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n String nombre = request.getParameter(\"nombre\");\n String descripcion = request.getParameter(\"descripcion\");\n String cantidad = request.getParameter(\"cantidad\");\n String precio = request.getParameter(\"precio\");\n String pago = request.getParameter(\"pago\");\n \n //creando objeto del costructor\n modelo.ventas venta = new modelo.ventas();\n //almacenando datos en las variables con el constructor \n venta.setNombre(nombre);\n venta.setDescripcion(descripcion);\n venta.setCantidad(Integer.parseInt(cantidad));\n venta.setPrecio(Double.parseDouble(precio));\n venta.setPago(Integer.parseInt(pago));\n \n //creando objeto para guardar cliente\n modelo.addVenta addventa = new modelo.addVenta();\n try {\n addventa.agrega(venta);\n } catch (SQLException ex) {\n Logger.getLogger(formVenta.class.getName()).log(Level.SEVERE, null, ex);\n }\n response.sendRedirect(\"ventas\");//si se guarda exitosamente se redirecciona a membresia\n }", "public void crear(Tarea t) {\n t.saveIt();\n }", "public Result inicioGenerarLibro(){\n ContabilidadDTO dto = new ContabilidadDTO();\n dto.tipoLibro = new Parametro(\"\",\"LVEN\",\"\");\n //dto.tipoLibro.id.codigo =\"LVEN\";\n dto.anio = new Parametro(\"\",\"2018\",\"\");\n //dto.anio.id.codigo =\"2018\";\n dto.mes = new Parametro(\"\",\"3\",\"\");\n //dto.mes.id.codigo =\"3\"; //Simpre debe ser el mes anterior al actual\n\n Form<ContabilidadDTO> contabilidadDTOForm = formFactory.form(ContabilidadDTO.class).fill(dto);\n\n/*\n EbeanServer db = DBConnectionUtil.getDBServerFacturador();\n List<BandejaFactura> lista = db.find(BandejaFactura.class).findList();; //BandejaFactura.find.all();//obtenerTodos();\n for (BandejaFactura x:lista) {\n System.out.println(x);\n }\n*/\n/*\n EbeanServer db = DBConnectionUtil.getDBServerSGV();\n List<ControlVenta> lista = db.find(ControlVenta.class)\n .where().ilike(\"CVNT_NUM_DOCUMENTO\", \"F002-00000213\")\n .findList();\n for (ControlVenta x:lista) {\n System.out.println(\"*********** \"+x);\n }\n*/\n/*\n EbeanServer db = DBConnectionUtil.getDBServerSGV();\n List<ControlVenta> lista = db.find(ControlVenta.class).findList();; //BandejaFactura.find.all();//obtenerTodos();\n for (ControlVenta x:lista) {\n System.out.println(x);\n }\n*/\n\n return ok(generadorLibrosContables.render(contabilidadDTOForm));\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n btnConsultar = new javax.swing.JButton();\n btnSalir = new javax.swing.JButton();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n pais = new javax.swing.JTextField();\n provincia = new javax.swing.JTextField();\n region = new javax.swing.JTextField();\n ciudad = new javax.swing.JTextField();\n direccion = new javax.swing.JTextField();\n comida = new javax.swing.JTextField();\n hotel = new javax.swing.JTextField();\n jLabel9 = new javax.swing.JLabel();\n vaciar = new javax.swing.JButton();\n id = new javax.swing.JTextField();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);\n setResizable(false);\n\n jLabel1.setText(\"Turista\");\n\n btnConsultar.setText(\"consultar\");\n btnConsultar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnConsultarActionPerformed(evt);\n }\n });\n\n btnSalir.setText(\"salir al menú principal\");\n btnSalir.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnSalirActionPerformed(evt);\n }\n });\n\n jLabel2.setText(\"País\");\n\n jLabel3.setText(\"Provincia\");\n\n jLabel4.setText(\"Región\");\n\n jLabel5.setText(\"Ciudad\");\n\n jLabel6.setText(\"Direccion\");\n\n jLabel7.setText(\"Comida\");\n\n jLabel8.setText(\"Hotel\");\n\n pais.setEditable(false);\n\n provincia.setEditable(false);\n\n region.setEditable(false);\n\n ciudad.setEditable(false);\n\n direccion.setEditable(false);\n\n comida.setEditable(false);\n\n hotel.setEditable(false);\n\n jLabel9.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n jLabel9.setText(\"CONSULTAR LUGAR TURÍSTICO POR TURISTA\");\n\n vaciar.setText(\"vaciar\");\n vaciar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n vaciarActionPerformed(evt);\n }\n });\n\n id.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n idActionPerformed(evt);\n }\n });\n id.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyReleased(java.awt.event.KeyEvent evt) {\n idKeyReleased(evt);\n }\n public void keyTyped(java.awt.event.KeyEvent evt) {\n idKeyTyped(evt);\n }\n });\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 .addGroup(layout.createSequentialGroup()\n .addGap(63, 63, 63)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel9)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2)\n .addComponent(jLabel3)\n .addComponent(jLabel4)\n .addComponent(jLabel5)\n .addComponent(jLabel6)\n .addComponent(jLabel7)\n .addComponent(jLabel8))\n .addGap(28, 28, 28)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(ciudad, javax.swing.GroupLayout.PREFERRED_SIZE, 182, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(region, javax.swing.GroupLayout.PREFERRED_SIZE, 182, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(provincia, javax.swing.GroupLayout.PREFERRED_SIZE, 182, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(pais, javax.swing.GroupLayout.PREFERRED_SIZE, 182, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(hotel, javax.swing.GroupLayout.DEFAULT_SIZE, 276, Short.MAX_VALUE)\n .addComponent(comida)\n .addComponent(direccion)))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addGap(28, 28, 28))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(vaciar)\n .addGap(26, 26, 26)))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(id, javax.swing.GroupLayout.PREFERRED_SIZE, 159, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(btnConsultar))\n .addGroup(layout.createSequentialGroup()\n .addGap(91, 91, 91)\n .addComponent(btnSalir)))))\n .addContainerGap(66, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel9)\n .addGap(17, 17, 17)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(btnConsultar)\n .addComponent(id, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(27, 27, 27)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(pais, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(24, 24, 24)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(provincia, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(29, 29, 29)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(region, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(30, 30, 30)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(ciudad, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(37, 37, 37)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6)\n .addComponent(direccion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(40, 40, 40)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel7)\n .addComponent(comida, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(32, 32, 32)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel8)\n .addComponent(hotel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 47, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btnSalir)\n .addComponent(vaciar))\n .addContainerGap())\n );\n\n pack();\n }", "public ConsultaPNporproducto() {\n initComponents();\n ListarPro();\n }", "public JanelaTipoContato() {\r\n initComponents();\r\n try {\r\n\r\n List<TipoContato> tipoContatos = (List<TipoContato>) (Object) tipoContatoDao.pesquisarTodos();\r\n adicionarListaTipoContatosTabela(tipoContatos);\r\n } catch (Exception exception) {\r\n }\r\n }", "public Form_reporte_comuna_y_tipo(Controlador cont) {\n initComponents();\n this.controlador = cont;\n cargarSelect();\n\n }", "public StavkaFaktureInsert() {\n initComponents();\n CBFakture();\n CBProizvod();\n }", "public ActionForward A_GenerarPlanillaProrroga(ActionMapping mapping, ActionForm form,\n HttpServletRequest request, HttpServletResponse response)\n throws Exception {\n\n //Salidas\n final String[] SALIDAS = {\"V_GestionarProrroga\", \"A_Pre_GestionarProrroga\", };\n final int SALIDA_0 = 0;\n final int SALIDA_1 = 1;\n\n int salida = SALIDA_0;\n Session s = HibernateUtil.getCurrentSession();\n Transaction tr = s.beginTransaction();\n try {\n /*aqui empieza*/\n EstRealizaProy student = (EstRealizaProy)s.createQuery(\"from EstRealizaProy where tipoproy='1' and carnetestudiante= :login\").setString(\"login\", (String)request.getSession().getAttribute(\"login\")).uniqueResult();\n Estudiante estudiante =(Estudiante)s.createQuery(\"from Estudiante where carnete = :login\").setString(\"login\", (String)request.getSession().getAttribute(\"login\")).uniqueResult();\n PreInsPasantias consulta = (PreInsPasantias)s.createQuery(\"from PreInsPasantias where estudiante = :login\").setString(\"login\", (String)request.getSession().getAttribute(\"login\")).uniqueResult();\n\n if (estudiante != null) {\n\n String carnet = (String)request.getSession().getAttribute(\"login\");\n Prorroga fF_Prorroga = (Prorroga) s.createQuery(\"from Prorroga where idc= :carnet\").setString(\"carnet\", carnet).uniqueResult();;\n String coordinacion = fF_Prorroga.getCoordinacion();\n String nombre = fF_Prorroga.getNombre();\n String codigoTutorAcademico = fF_Prorroga.getCodigoTutorAcademico();\n String tituloPasantia = fF_Prorroga.getTituloPasantia();\n String areaProyecto = fF_Prorroga.getAreaProyecto();\n String fecha = fF_Prorroga.getFecha();\n String justificacion = fF_Prorroga.getJustificacion();\n \n String path = getServlet().getServletContext().getRealPath(\"/\")+ \"../../img/\";\n\n /**************************************/\n /* PDF */\n /**************************************/\n try {\n Document pdf = new Document(PageSize.LETTER);\n\n response.setContentType(\"application/pdf4\");\n response.setHeader(\"Content-Disposition\", \" inline; filename=PlanillaProrroga.pdf\");\n\n PdfWriter.getInstance(pdf, response.getOutputStream());\n\n pdf.open();\n\n // Logo\n Image logo = Image.getInstance(path +\"logo.png\");\n logo.scaleToFit(197, 81);\n logo.setAlignment(Image.ALIGN_LEFT);\n pdf.add(logo);\n\n // Pie\n Image pie = Image.getInstance(path +\"pie.png\");\n pie.scaleToFit(500, 216);\n pie.setAbsolutePosition(40, 20);\n pdf.add(pie);\n\n Font font = FontFactory.getFont(\"Arial\", BaseFont.IDENTITY_H, 12);\n font.setStyle(Font.BOLD);\n\n Font font2 = FontFactory.getFont(\"Arial\", BaseFont.IDENTITY_H, 13);\n font2.setStyle(Font.UNDERLINE);\n font2.setStyle(Font.BOLD);\n\n Paragraph titulo = new Paragraph(\"PERMISO PARA PASANTIA (Prorroga)\", font2);\n titulo.setAlignment(Paragraph.ALIGN_CENTER);\n pdf.add(titulo);\n\n Paragraph blank = new Paragraph(\"\\n\");\n\n pdf.add(blank);\n pdf.add(blank);\n\n Phrase est = new Phrase(\"Coordinación de: \"+ coordinacion , font);\n pdf.add(est);\n pdf.add(blank);\n\n est = new Phrase(\"Nombre: \" + nombre +\" Carnet: \"+ carnet, font);\n pdf.add(est);\n pdf.add(blank);\n\n Paragraph pfecha= new Paragraph(\"*Fecha Propuesta: \"+fecha);\n pfecha.setAlignment(Paragraph.ALIGN_CENTER);\n pdf.add(pfecha);\n\n pfecha= new Paragraph(\"_______________________________________________________________________\", font);\n pfecha.setAlignment(Paragraph.ALIGN_CENTER);\n pdf.add(pfecha);\n pdf.add(blank);\n\n pfecha= new Paragraph(\"Pasantía\", font2);\n pfecha.setAlignment(Paragraph.ALIGN_CENTER);\n pdf.add(pfecha);\n pdf.add(blank);\n\n if (tituloPasantia.equals(\"3420\")){\n pfecha= new Paragraph(\"Pasantía Larga (3420) \"+ \"Periodo: \" + areaProyecto, font);\n }\n if (tituloPasantia.equals(\"2420\")){\n pfecha= new Paragraph(\"Pasantía Media (2420) \"+ \"Periodo: \" + areaProyecto, font);\n }\n if (tituloPasantia.equals(\"1420\")){\n pfecha= new Paragraph(\"Pasantía Corta (1420) \"+ \"Periodo: \" + areaProyecto, font);\n }\n\n pfecha.setAlignment(Paragraph.ALIGN_CENTER);\n pdf.add(pfecha);\n pdf.add(blank);\n\n pdf.add(blank);\n\n est = new Phrase(\"*Tutor Academico: \"+codigoTutorAcademico , font);\n pdf.add(est);\n\n est = new Phrase(\" Firma:_____________________\" , font);\n pdf.add(est);\n pdf.add(blank);\n\n pfecha= new Paragraph(\"Justificacion: \",font);\n pdf.add(pfecha);\n pdf.add(blank);\n pfecha= new Paragraph( justificacion);\n pdf.add(pfecha);\n pdf.add(blank);\n pdf.add(blank);\n\n est = new Phrase(\"Observaciones:______________________________________________________\");\n pdf.add(est);\n pdf.add(blank);\n\n est = new Phrase(\"Firma y Sello Coordinación:______________________________\" , font);\n pdf.add(est);\n pdf.add(blank);\n\n est = new Phrase(\"Firma CCTDS:_____________________________________________\" , font);\n pdf.add(est);\n pdf.add(blank);\n\n pdf.close();\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n /**************************************/\n /* PDF */\n /**************************************/\n\n }else{\n salida = SALIDA_1;\n }\n\n /*aqui termina*/\n tr.commit();\n\n } catch (Exception ex) {\n tr.rollback();\n throw ex;\n } finally {\n try { s.close(); } catch (Exception ex2) {}\n }\n if (salida==0) {\n request.setAttribute(\"msg\",\n getResources(request).getMessage(\"A_Pre_ConsultarPlanillaProrroga.msg0\"));\n }\n if (salida==1) {\n request.setAttribute(\"msg\",\n getResources(request).getMessage(\"A_Pre_ConsultarPlanillaProrroga.msg1\"));\n }\n\n return mapping.findForward(SALIDAS[salida]);\n }", "public PlanoContasConsulta() {\r\n setTitle(\"Cadastro de Plano Contas\");\r\n setLayout(new BorderLayout());\r\n pBotoes = new JPanel(new FlowLayout());\r\n tabela = new JTable(new PlanoContasTableModel());\r\n btExcluir = new JButton(\"Excluir\");\r\n btAlterar = new JButton(\"Alterar\");\r\n btIncluir = new JButton(\"Incluir\");\r\n btPesquisar = new JButton(\"Pesquisar\");\r\n lFiltro = new JLabel(\"Filtar\");\r\n tfFiltro = new JTextField(30);\r\n\r\n add(pBotoes, BorderLayout.NORTH);\r\n add(new JScrollPane(tabela), BorderLayout.CENTER);\r\n\r\n pBotoes.add(lFiltro);\r\n pBotoes.add(tfFiltro);\r\n pBotoes.add(btPesquisar);\r\n pBotoes.add(btIncluir);\r\n pBotoes.add(btAlterar);\r\n pBotoes.add(btExcluir);\r\n \r\n btPesquisar.addActionListener(this);\r\n btIncluir.addActionListener(this);\r\n btAlterar.addActionListener(this);\r\n btExcluir.addActionListener(this);\r\n \r\n \r\n\r\n pack();\r\n setVisible(true);\r\n setDefaultCloseOperation(EXIT_ON_CLOSE);\r\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n etiquetaTitulo = new javax.swing.JLabel();\n jScrollPane1 = new javax.swing.JScrollPane();\n tablaCuentas = new javax.swing.JTable();\n etiquetaLeyenda = new javax.swing.JLabel();\n jPanel2 = new javax.swing.JPanel();\n etiquetaCodigo = new javax.swing.JLabel();\n campoCodigo = new javax.swing.JTextField();\n etiquetaDescripcion = new javax.swing.JLabel();\n campoDescripcion = new javax.swing.JTextField();\n comboCuentaTitulo = new javax.swing.JComboBox<>();\n etiquetaCuentaTitulo = new javax.swing.JLabel();\n botonAceptar = new javax.swing.JButton();\n etiquetaNivel = new javax.swing.JLabel();\n campoNivel = new javax.swing.JTextField();\n etiquetaTitulo2 = new javax.swing.JLabel();\n botonVolver = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n\n etiquetaTitulo.setFont(new java.awt.Font(\"Tahoma\", 1, 13)); // NOI18N\n etiquetaTitulo.setText(\"Crear una nueva Cuenta o Titulo\");\n\n tablaCuentas = new javax.swing.JTable() {\n public boolean isCellEditable(int rowIndex, int colIndex){\n return false;\n }\n };\n tablaCuentas.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Codigo\", \"Descripcion\", \"Tipo\", \"Nro Cuenta\"\n }\n ));\n jScrollPane1.setViewportView(tablaCuentas);\n\n etiquetaLeyenda.setText(\"Seleccione bajo que titulo se crea la nueva cuenta o titulo\");\n\n etiquetaCodigo.setText(\"Codigo:\");\n\n etiquetaDescripcion.setText(\"Descripcion:\");\n\n comboCuentaTitulo.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Titulo\", \"Cuenta\" }));\n\n etiquetaCuentaTitulo.setText(\"Cuenta o Titulo:\");\n\n botonAceptar.setText(\"Aceptar\");\n\n etiquetaNivel.setText(\"Nivel:\");\n\n campoNivel.setEnabled(false);\n\n etiquetaTitulo2.setText(\"Datos de la nueva Cuenta\");\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(22, 22, 22)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(botonAceptar)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(etiquetaCodigo)\n .addComponent(etiquetaDescripcion)\n .addComponent(etiquetaCuentaTitulo))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(campoDescripcion, javax.swing.GroupLayout.PREFERRED_SIZE, 257, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(comboCuentaTitulo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(34, 34, 34)\n .addComponent(etiquetaNivel)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(campoNivel, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(campoCodigo, javax.swing.GroupLayout.PREFERRED_SIZE, 257, javax.swing.GroupLayout.PREFERRED_SIZE)))))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(99, 99, 99)\n .addComponent(etiquetaTitulo2)))\n .addContainerGap(38, Short.MAX_VALUE))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(etiquetaTitulo2)\n .addGap(33, 33, 33)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(campoCodigo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(etiquetaCodigo))\n .addGap(40, 40, 40)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(etiquetaDescripcion)\n .addComponent(campoDescripcion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(59, 59, 59)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(comboCuentaTitulo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(etiquetaCuentaTitulo)\n .addComponent(etiquetaNivel)\n .addComponent(campoNivel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(61, 61, 61)\n .addComponent(botonAceptar)\n .addContainerGap(52, Short.MAX_VALUE))\n );\n\n botonVolver.setText(\"Volver\");\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(39, 39, 39)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(etiquetaLeyenda)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(50, 50, 50)\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(87, 87, 87)\n .addComponent(botonVolver))))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(317, 317, 317)\n .addComponent(etiquetaTitulo)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(24, 24, 24)\n .addComponent(etiquetaTitulo)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 26, Short.MAX_VALUE)\n .addComponent(etiquetaLeyenda)\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 531, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(33, 33, 33))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(botonVolver)\n .addGap(67, 67, 67))))\n );\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 .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n pack();\n }", "@GetMapping(\"/createRegistro\")\n\tpublic String crearValidacion(Model model) {\n\t\tList<Barrio> localidades = barrioService.obtenerBarrios();\n\t\tmodel.addAttribute(\"localidades\",localidades);\n\t\tmodel.addAttribute(\"persona\",persona);\n\t\tmodel.addAttribute(\"validacion\",validacion);\n\t\tmodel.addAttribute(\"registro\",registro);\n\t\tmodel.addAttribute(\"barrio\",barrio);\n\t\treturn \"RegistroForm\";\n\t}", "public TelaRegistroVendas() {\n initComponents();\n }", "public ConsultaEquipo() {\n initComponents();\n }", "private void creerMethode() {\n if (estValide()) {\n methode = new Methode();\n methode.setNom(textFieldNom.getText());\n methode.setVisibilite(comboBoxVisibilite.getValue());\n methode.setType(comboBoxType.getValue());\n ArrayList<Parametre> temp = new ArrayList<>();\n for (Parametre parametre : parametreListView.getItems())\n temp.add(parametre);\n methode.setParametres(temp);\n close();\n }\n }", "@RequestMapping(value = { \"/new\" }, method = RequestMethod.POST)\n\tpublic String saveEntity(@Valid ENTITY tipoConsumo, BindingResult result, ModelMap model,\n\t\t\t@RequestParam(required = false) Integer idEstadia) {\n\t\ttry{\n\t\n\t\t\tif (result.hasErrors()) {\n\t\t\t\treturn viewBaseLocation + \"/form\";\n\t\t\t}\n\t\n\t\t\tabm.guardar(tipoConsumo);\n\t\n\t\t\tif(idEstadia != null){\n\t\t\t\tmodel.addAttribute(\"idEstadia\", idEstadia);\n\t\t\t}\n\t\n\t\t\tmodel.addAttribute(\"success\", \"La creaci&oacuten se realiz&oacute correctamente.\");\n\t\t\t\n\t\t} catch(Exception e) {\n\t\t\tmodel.addAttribute(\"success\", \"La creaci&oacuten no pudo realizarse.\");\n\t\t}\n\t\tmodel.addAttribute(\"loggedinuser\", getPrincipal());\n\t\treturn \"redirect:list\";\n\t}", "public void iniciarUI()\n\t{\n\t\tDefaultTableModel model = new DefaultTableModel(columnas, 1);\n\t\tpasabordos = new JTable(model);\n\n\t\tvuelos = new JComboBox();\n\t\tllenarVuelos();\n\t\t\n\t\tVuelo v = (Vuelo) vuelos.getSelectedItem();\n\t\tif(v!=null)\n\t\t{\n\t\t\tllenarPasabordos(v.getId());\n\t\t}\n\n\t}", "private void createBtnActionPerformed(java.awt.event.ActionEvent evt) {\n\n staff.setName(regName.getText());\n staff.setID(regID.getText());\n staff.setPassword(regPwd.getText());\n staff.setPosition(regPos.getSelectedItem().toString());\n staff.setGender(regGender.getSelectedItem().toString());\n staff.setEmail(regEmail.getText());\n staff.setPhoneNo(regPhone.getText());\n staff.addStaff();\n if (staff.getPosition().equals(\"Vet\")) {\n Vet vet = new Vet();\n vet.setExpertise(regExp.getSelectedItem().toString());\n vet.setExpertise_2(regExp2.getSelectedItem().toString());\n vet.addExpertise(staff.getID());\n }\n JOptionPane.showMessageDialog(null, \"User added to database\");\n updateJTable();\n }", "public form_utama_kasir() {\n initComponents(); \n koneksi DB = new koneksi(); \n con = DB.getConnection();\n aturtext();\n tampilkan();\n nofakturbaru();\n loadData();\n panelEditDataDiri.setVisible(false);\n txtHapusKodeTransaksi.setVisible(false);\n txtHapusQtyTransaksi.setVisible(false);\n txtHapusStokTersedia.setVisible(false);\n }", "public void crearActividad (Actividad a) {\r\n String query = \"INSERT INTO actividad (identificacion_navegate, numero_matricula, fecha, hora, destino, eliminar) VALUES (\\\"\" \r\n + a.getIdentificacionNavegante()+ \"\\\", \" \r\n + a.getNumeroMatricula() + \", \\\"\" \r\n + a.getFecha() + \"\\\", \\\"\" \r\n + a.getHora() + \"\\\", \\\"\" \r\n + a.getDestino()+ \"\\\" ,false)\";\r\n try {\r\n Statement st = con.createStatement();\r\n st.executeUpdate(query);\r\n st.close();\r\n JOptionPane.showMessageDialog(null, \"Actividad creada\", \"Operación exitosa\", JOptionPane.INFORMATION_MESSAGE);\r\n } catch (SQLException ex) {\r\n Logger.getLogger(PActividad.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }", "public CadastroDentista() {\n initComponents();\n con_dent = new ConectaBanco();\n con_dent.OpenDB();\n con_dent.QuerySQL(\"SELECT * FROM dentistas\");\n\n try{\n con_dent.rs.first();\n txtCodigo.setText(con_dent.rs.getString(\"cod_dentista\"));\n txtNome.setText(con_dent.rs.getString(\"nome_dent\"));\n txtRG.setText(con_dent.rs.getString(\"rg_dent\"));\n txtCPF.setText(con_dent.rs.getString(\"cpf_dent\"));\n txtCRO.setText(con_dent.rs.getString(\"cro_dent\"));\n txtNasc.setText(con_dent.rs.getString(\"dtnasc_dent\"));\n cbSexo.setSelectedItem(con_dent.rs.getString(\"sexo_dent\"));\n txtRua.setText(con_dent.rs.getString(\"endereco_dent\"));\n txtNumero.setText(con_dent.rs.getString(\"numero_dent\"));\n txtCidade.setText(con_dent.rs.getString(\"cidade_dent\"));\n txtEstado.setText(con_dent.rs.getString(\"estado_dent\"));\n txtTel.setText(con_dent.rs.getString(\"telefone_dent\"));\n txtCel.setText(con_dent.rs.getString(\"celular_dent\"));\n } \n catch(SQLException erroSQL){\n JOptionPane.showMessageDialog(null,\"Nenhum dentista cadastrado\");\n }\n }", "Tablero consultarTablero();", "private void iniciaFrm() {\n statusLbls(false);\n statusBtnInicial();\n try {\n clientes = new Cliente_DAO().findAll();\n } catch (Exception ex) {\n Logger.getLogger(JF_CadastroCliente.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "protected void creaPagine() {\n Pagina pag;\n Pannello pan;\n\n try { // prova ad eseguire il codice\n\n /* crea la pagina e aggiunge campi e pannelli */\n pag = this.addPagina(\"generale\");\n\n pan = PannelloFactory.orizzontale(this);\n pan.add(Cam.data);\n pan.add(Cam.importo.get());\n pan.add(Cam.note.get());\n pag.add(pan);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "public VConsultarEstudiante() {\n initComponents();\n }", "public ConsultasRecibos() {\n initComponents();\n cargar_todos_recibos();//LLAMADA A MOSTRAR TODOS LOS RECIBOS\n jDateChooser1.setEnabled(false);//OPCION DE FECHA BLOQUEADA \n }", "public SalidaCajaForm() {\n\t\tinicializarComponentes();\n }", "public FrmDepartamentos() {\n initComponents();\n setLocationRelativeTo(this);\n this.jTexCodigo.requestFocus();\n }", "public FormularioPregunta() {\n initComponents();\n \n setLocationRelativeTo(this);\n }", "public String newBoleta() {\n\t\tresetForm();\n\t\treturn \"/boleta/insert.xhtml\";\n\t}", "public tambahtoko() {\n initComponents();\n tampilkan();\n form_awal();\n }", "public FrmNuevoAlumno() {\n initComponents();\n obtenerCarreras();\n comboCarrera.setSelectedIndex(-1);\n obtenerDependencias();\n comboPlantel.setSelectedIndex(-1);\n mostrarAlumnos();\n deshabilitar();\n lblId.setVisible(false);\n }", "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 pInsertar() {\n initComponents();\n }", "private void nuevaLiga() {\r\n\t\tif(Gestion.isModificado()){\r\n\t\t\tint opcion = JOptionPane.showOptionDialog(null, \"¿Desea guardar los cambios?\", \"Nueva Liga\", JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, null,null, null);\r\n\t\t\tswitch(opcion){\r\n\t\t\tcase JOptionPane.YES_OPTION:\r\n\t\t\t\tguardar();\r\n\t\t\t\tbreak;\r\n\t\t\tcase JOptionPane.NO_OPTION:\r\n\t\t\t\tGestion.reset();\r\n\t\t\t\tbreak;\r\n\t\t\tcase JOptionPane.CANCEL_OPTION:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t\tGestion.reset();\r\n\t\tfrmLigaDeFtbol.setTitle(\"Liga de Fútbol\");\r\n\t}", "public Form_soal() {\n initComponents();\n tampil_soal();\n }", "public telaAddPedidoII() {\n initComponents();\n }", "public void insert() {\n SiswaModel m = new SiswaModel();\n m.setNisn(view.getTxtNis().getText());\n m.setNik(view.getTxtNik().getText());\n m.setNamaSiswa(view.getTxtNama().getText());\n m.setTempatLahir(view.getTxtTempatLahir().getText());\n \n //save date format\n String date = view.getDatePickerLahir().getText();\n DateFormat df = new SimpleDateFormat(\"MM/dd/yyyy\"); \n Date d = null;\n try {\n d = df.parse(date);\n } catch (ParseException ex) {\n System.out.println(\"Error : \"+ex.getMessage());\n }\n m.setTanggalLahir(d);\n \n //Save Jenis kelamin\n if(view.getRadioLaki().isSelected()){\n m.setJenisKelamin(JenisKelaminEnum.Pria);\n }else{\n m.setJenisKelamin(JenisKelaminEnum.Wanita);\n }\n \n m.setAsalSekolah(view.getTxtAsalSekolah().getText());\n m.setHobby(view.getTxtHoby().getText());\n m.setCita(view.getTxtCita2().getText());\n m.setJumlahSaudara(Integer.valueOf(view.getTxtNis().getText()));\n m.setAyah(view.getTxtNamaAyah().getText());\n m.setAlamat(view.getTxtAlamat().getText());\n \n if(view.getRadioLkkAda().isSelected()){\n m.setLkk(LkkEnum.ada);\n }else{\n m.setLkk(LkkEnum.tidak_ada);\n }\n \n //save agama\n m.setAgama(view.getComboAgama().getSelectedItem().toString());\n \n dao.save(m);\n clean();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jTextFieldNama = new javax.swing.JTextField();\n jTextFieldId = new javax.swing.JTextField();\n jTextFieldAlamat = new javax.swing.JTextField();\n jTextFieldPekerjaan = new javax.swing.JTextField();\n jButtonCreate = new javax.swing.JButton();\n jButtonRead = new javax.swing.JButton();\n jButtonUpdate = new javax.swing.JButton();\n jButtonDelete = new javax.swing.JButton();\n jScrollPane1 = new javax.swing.JScrollPane();\n jTableCrud = new javax.swing.JTable();\n jTextFieldCari = new javax.swing.JTextField();\n jButtonCari = new javax.swing.JButton();\n jLabel6 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setResizable(false);\n\n jLabel1.setFont(new java.awt.Font(\"Ubuntu\", 1, 18)); // NOI18N\n jLabel1.setText(\"Latihan CRUD\");\n\n jLabel2.setFont(new java.awt.Font(\"Ubuntu\", 1, 18)); // NOI18N\n jLabel2.setText(\"ID :\");\n\n jLabel3.setFont(new java.awt.Font(\"Ubuntu\", 1, 18)); // NOI18N\n jLabel3.setText(\"Nama :\");\n\n jLabel4.setFont(new java.awt.Font(\"Ubuntu\", 1, 18)); // NOI18N\n jLabel4.setText(\"Alamat :\");\n\n jLabel5.setFont(new java.awt.Font(\"Ubuntu\", 1, 18)); // NOI18N\n jLabel5.setText(\"Pekerjaan :\");\n\n jButtonCreate.setText(\"Create\");\n jButtonCreate.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonCreateActionPerformed(evt);\n }\n });\n\n jButtonRead.setText(\"Read\");\n jButtonRead.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonReadActionPerformed(evt);\n }\n });\n\n jButtonUpdate.setText(\"Update\");\n jButtonUpdate.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonUpdateActionPerformed(evt);\n }\n });\n\n jButtonDelete.setText(\"Delete\");\n\n jTableCrud.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\"\n }\n ));\n jTableCrud.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jTableCrudMouseClicked(evt);\n }\n });\n jScrollPane1.setViewportView(jTableCrud);\n\n jTextFieldCari.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextFieldCariActionPerformed(evt);\n }\n });\n\n jButtonCari.setText(\"Cari\");\n jButtonCari.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonCariActionPerformed(evt);\n }\n });\n\n jLabel6.setText(\"Cari berdasarkan nama..\");\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 .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(291, 291, 291)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 137, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(119, 139, Short.MAX_VALUE)\n .addComponent(jButtonCreate, javax.swing.GroupLayout.PREFERRED_SIZE, 111, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jButtonRead, javax.swing.GroupLayout.PREFERRED_SIZE, 122, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jButtonUpdate, javax.swing.GroupLayout.PREFERRED_SIZE, 121, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jButtonDelete, javax.swing.GroupLayout.PREFERRED_SIZE, 106, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(133, 133, 133))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(39, 39, 39)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 68, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextFieldNama, javax.swing.GroupLayout.PREFERRED_SIZE, 198, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGap(32, 32, 32)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextFieldId, javax.swing.GroupLayout.PREFERRED_SIZE, 198, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 27, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 77, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextFieldAlamat, javax.swing.GroupLayout.PREFERRED_SIZE, 198, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 104, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextFieldPekerjaan, javax.swing.GroupLayout.PREFERRED_SIZE, 198, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addComponent(jScrollPane1)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 183, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jTextFieldCari, javax.swing.GroupLayout.PREFERRED_SIZE, 198, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jButtonCari, javax.swing.GroupLayout.PREFERRED_SIZE, 81, javax.swing.GroupLayout.PREFERRED_SIZE)))))\n .addGap(27, 27, 27))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(22, 22, 22)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(14, 14, 14)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jTextFieldCari, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButtonCari))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel6)\n .addGap(18, 18, 18)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 124, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextFieldId, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(7, 7, 7)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextFieldNama, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextFieldAlamat, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextFieldPekerjaan, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGap(29, 29, 29)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButtonCreate)\n .addComponent(jButtonUpdate)\n .addComponent(jButtonRead)\n .addComponent(jButtonDelete))\n .addGap(20, 20, 20))\n );\n\n pack();\n }", "public FormFuncionario(FormMenu telaPai) {\n initComponents();\n this.telaPai = telaPai;\n\n txtNome.setText(\"Nome\");\n lblNome.setVisible(false);\n txtSobrenome.setText(\"Sobrenome\");\n lblSobrenome.setVisible(false);\n campoMensagem.setVisible(false);\n lblMensagem.setVisible(false);\n\n }", "public CorretorVIEW() {\n initComponents();\n this.setLocationRelativeTo(null);\n modelo_jtl_consultar_cor = (DefaultTableModel) tab_consulta.getModel();\n preencheTabela();\n btnAdd.setVisible(false);\n }", "private void btn_cadActionPerformed(java.awt.event.ActionEvent evt) {\n \n CDs_dao c = new CDs_dao();\n TabelaCDsBean p = new TabelaCDsBean();\n \n TabelaGeneroBean ge = (TabelaGeneroBean) g_box.getSelectedItem();\n TabelaArtistaBean au = (TabelaArtistaBean) g_box2.getSelectedItem();\n\n //p.setId(Integer.parseInt(id_txt.getText()));\n p.setTitulo(nm_txt.getText());\n p.setPreco(Double.parseDouble(vr_txt.getText()));\n p.setGenero(ge);\n p.setArtista(au);\n c.create(p);\n\n nm_txt.setText(\"\");\n //isqn_txt.setText(\"\");\n vr_txt.setText(\"\");\n cd_txt.setText(\"\");\n g_box.setSelectedIndex(0);\n g_box2.setSelectedIndex(0);\n \n }", "public void crearReaTrans(){\n\t // could have been factorized with the precedent view\n\t\tgetContentPane().setLayout(new BorderLayout());\n\t \n\t\tp1 = new JPanel();\n\t p2 = new JPanel();\n\t \n\t String[] a = {\"Regresar\",\"Continuar\"}, c = {\"Cuenta de origen\",\"Monto\",\"Cuenta de destino\"};\n\t \n\t p1.setLayout(new GridLayout(1,2));\n\t p2.setLayout(new GridLayout(1,3));\n\t \n\t for (int x=0; x<2; x++) {\n\t b = new JButton(a[x]);\n\t botones.add(b);\n\t }\n\t for (JButton x:botones) {\n\t x.setPreferredSize(new Dimension(110,110));\n\t p1.add(x);\n\t }\n // Add buttons panel \n\t add(p1, BorderLayout.SOUTH);\n\t \n\t for (int x=0; x<3; x++){\n\t tf=new JTextField(c[x]);\n\t tf.setPreferredSize(new Dimension(10,100));\n textos.add(tf);\n\t p2.add(tf);\n\t }\n // Add textfields panel\n\t add(p2, BorderLayout.NORTH);\n\t}", "public TareasEvento() {\n initComponents();\n setTitle (\"Tareas\");\n mostrardatos(jTextField1.getText());\n \n }", "public void abrirDialogoCustodio(){\n\t\tif(aut_empleado.getValor()!=null){\n\t\t\ttab_tarspaso_Custodio.limpiar();\n\t\t\ttab_tarspaso_Custodio.insertar();\n\t\t\t//tab_direccion.limpiar();\n\t\t//\ttab_direccion.insertar();\n\t\t\tdia_traspaso_custodio.dibujar();\n\t\t}\n\t\telse{\n\t\t\tutilitario.agregarMensaje(\"Inserte un Custodio\", \"\");\n\t\t}\n\n\t}", "private void srediFormu() {\n List<PoslovniPartner> lpp = new ArrayList<>();\n try {\n lpp = Kontroler.vratiInstancu().vratiPoslovnePartnere();\n } catch (Exception ex) {\n JOptionPane.showMessageDialog(this, ex.getMessage(), \"ERROR\", JOptionPane.ERROR_MESSAGE);\n ex.printStackTrace();\n }\n\n List<NačinPlaćanja> lnp = new ArrayList<>();\n try {\n lnp = Kontroler.vratiInstancu().vratiNačinePlaćanja();\n } catch (Exception ex) {\n JOptionPane.showMessageDialog(this, ex.getMessage(), \"ERROR\", JOptionPane.ERROR_MESSAGE);\n ex.printStackTrace();\n }\n\n List<Proizvod> lp = new ArrayList<>();\n try {\n lp = Kontroler.vratiInstancu().vratiProizvode();\n } catch (Exception ex) {\n JOptionPane.showMessageDialog(this, ex.getMessage(), \"ERROR\", JOptionPane.ERROR_MESSAGE);\n ex.printStackTrace();\n }\n\n jcbPartner.setModel(new DefaultComboBoxModel(lpp.toArray()));\n jcbNačinPlaćanja.setModel(new DefaultComboBoxModel(lnp.toArray()));\n\n Faktura izabranaFaktura = (Faktura) Util.vratiInstancu().vrati(\"izabrana_faktura\");\n if (izabranaFaktura != null) {\n jcbPartner.setSelectedItem(izabranaFaktura.getPoslovniPartner());\n jcbNačinPlaćanja.setSelectedItem(izabranaFaktura.getNačinPlaćanja());\n jtxtNapomena.setText(izabranaFaktura.getNapomena());\n if (izabranaFaktura.getDatumFakturisanja() != null) {\n jtxtDatumFakturisanja.setText(df.format(izabranaFaktura.getDatumFakturisanja()));\n }\n if (izabranaFaktura.getRok() != null) {\n jtxtRok.setText(df.format(izabranaFaktura.getRok()));\n }\n jlbKompletirana.setText(izabranaFaktura.getKompletirana() ? \"(KOMPLETIRANA)\" : \"(DRAFT)\");\n jlblBrojFakture1.setText(izabranaFaktura.getBrojFakture());\n jtblStavkeFakture.setModel(new StavkaFaktureTableModel((izabranaFaktura)));\n Double netoIznos = 0d;\n for (StavkaFakture stavkaFakture : izabranaFaktura.getStavke()) {\n netoIznos += stavkaFakture.getJediničnaCena() * stavkaFakture.getKoličina();\n }\n jtxtNetoVrednost.setText(String.valueOf(Math.round(netoIznos * 1000.0) / 1000.0));\n jbtnKreirajNovuFakturu.setVisible(false);\n jbtnSačuvajFakturu.setText(\"Izmeni fakturu\");\n if (izabranaFaktura.getKompletirana()) {\n enableAllComponents(false);\n jtxtUkupnaVrednost.setText(String.valueOf((double) Math.round(izabranaFaktura.getUkupanIznos() * 1000) / 1000));\n jtxtPDV.setText(String.valueOf((double) Math.round(izabranaFaktura.getUkupanPorez() * 1000) / 1000));\n jtxtFakturisao.setText(slavko.baze2.procesnabavke.gui.util.Util.vratiInstancu().vrati(\"prijavljeni_korisnik\").toString());\n }\n Util.vratiInstancu().obriši(\"izabrana_faktura\");\n\n } else {\n jlblBrojFakture1.setText(\"\");\n jlbKompletirana.setVisible(false);\n jcbPartner.setSelectedItem(null);\n jcbNačinPlaćanja.setSelectedItem(null);\n jtblStavkeFakture.setModel(new StavkaFaktureTableModel(new Faktura()));\n jtxtNetoVrednost.setText(\"0.0\");\n enableAllComponents(false);\n }\n\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jScrollPane1 = new javax.swing.JScrollPane();\n jTable1 = new javax.swing.JTable();\n jButton1 = new javax.swing.JButton();\n jLabel2 = new javax.swing.JLabel();\n consulta = new javax.swing.JTextField();\n\n setBackground(new java.awt.Color(255, 255, 255));\n setPreferredSize(new java.awt.Dimension(436, 434));\n\n jLabel1.setFont(new java.awt.Font(\"Arial\", 1, 18)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(0, 51, 102));\n jLabel1.setText(\"Consultar Venta\");\n\n jTable1.setFont(new java.awt.Font(\"Arial\", 0, 12)); // NOI18N\n jTable1.setForeground(new java.awt.Color(0, 0, 51));\n jTable1.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n\n }\n ));\n jScrollPane1.setViewportView(jTable1);\n\n jButton1.setFont(new java.awt.Font(\"Arial\", 3, 14)); // NOI18N\n jButton1.setForeground(new java.awt.Color(0, 51, 102));\n jButton1.setText(\"Consultar\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jLabel2.setFont(new java.awt.Font(\"Arial\", 3, 14)); // NOI18N\n jLabel2.setForeground(new java.awt.Color(0, 0, 51));\n jLabel2.setText(\"Cod Venta:\");\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 .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(122, 122, 122)\n .addComponent(jLabel1))\n .addGroup(layout.createSequentialGroup()\n .addGap(111, 111, 111)\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(consulta, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGap(156, 156, 156)\n .addComponent(jButton1)))\n .addContainerGap(139, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(0, 32, Short.MAX_VALUE)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 374, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(30, 30, 30))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(26, 26, 26)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 47, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(56, 56, 56)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(consulta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel2))\n .addGap(35, 35, 35)\n .addComponent(jButton1)\n .addGap(47, 47, 47)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 167, Short.MAX_VALUE)\n .addContainerGap())\n );\n }", "public frmTaquilla() {\n initComponents();\n \n objSalaSecundaria.setCapacidad(250);\n objSalaSecundaria.setPrecioEntrada(180.0);//esto equivale a asignar los valores a través de de los metodos set\n libres1.setText(\"LIBRES \" + objSalaCentral.getCapacidad());\n }", "@GetMapping(path = \"/realizar\")\n public ModelAndView getForm(){\n\n return new ModelAndView(ViewConstant.MANTCOMPRASMINO).addObject(\"compraMinorista\", new CompraMinorista());\n }", "@Override\n\tpublic void createForm(ERForm form) {\n\t\t\tString sql = \"insert into project1.reimbursementInfo (userName, fullName, thedate, eventstartdate, thelocation, description, thecost, gradingformat, passingpercentage, eventtype, filename,status,reason) values (?,?,?,?,?,?,?,?,?,?,?,?,?);\";\n\t\t\ttry {PreparedStatement stmt = conn.prepareCall(sql);\n\t\t\t//RID should auto increment, so this isnt necessary\n\t\t\t\n\t\t\tstmt.setString(1, form.getUserName());\n\t\t\tstmt.setString(2, form.getFullName());\n\t\t\tstmt.setDate(3, Date.valueOf(form.getTheDate()));\n\t\t\tstmt.setDate(4, Date.valueOf(form.getEventStartDate()));\n\t\t\tstmt.setString(5, form.getTheLocation());\n\t\t\tstmt.setString(6, form.getDescription());\n\t\t\tstmt.setDouble(7, form.getTheCost());\n\t\t\tstmt.setString(8, form.getGradingFormat());\n\t\t\tstmt.setString(9, form.getPassingPercentage());\n\t\t\tstmt.setString(10, form.getEventType());\n\t\t\tstmt.setString(11, form.getFileName());\n\t\t\tstmt.setString(12, \"pending\");\n\t\t\tstmt.setString(13, \"\");\n\t\t\tstmt.executeUpdate();\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\t}", "public CreateAccount() {\n initComponents();\n selectionall();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n txtnroserie = new javax.swing.JTextField();\n txtcodedit = new javax.swing.JTextField();\n txtnombreaut = new javax.swing.JTextField();\n txtnombre = new javax.swing.JTextField();\n txtcodgen = new javax.swing.JTextField();\n jButtonAgregar = new javax.swing.JButton();\n btnListar = new javax.swing.JButton();\n jScrollPane1 = new javax.swing.JScrollPane();\n jTablaLibros = new javax.swing.JTable();\n jButton1 = new javax.swing.JButton();\n jLabel6 = new javax.swing.JLabel();\n txtprecio = new javax.swing.JTextField();\n jLabel7 = new javax.swing.JLabel();\n txtidioma = new javax.swing.JTextField();\n jButton2 = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jLabel1.setText(\"Nro Serie\");\n\n jLabel2.setText(\"Codigo Editorial\");\n\n jLabel3.setText(\"Nombre Autor\");\n\n jLabel4.setText(\"Nombre\");\n\n jLabel5.setText(\"Codigo Genero\");\n\n txtcodedit.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtcodeditActionPerformed(evt);\n }\n });\n\n txtnombreaut.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtnombreautActionPerformed(evt);\n }\n });\n\n txtcodgen.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtcodgenActionPerformed(evt);\n }\n });\n\n jButtonAgregar.setText(\"Agregar\");\n jButtonAgregar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonAgregarActionPerformed(evt);\n }\n });\n\n btnListar.setText(\"Listar\");\n btnListar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnListarActionPerformed(evt);\n }\n });\n\n jTablaLibros.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null, null, null},\n {null, null, null, null, null, null},\n {null, null, null, null, null, null},\n {null, null, null, null, null, null}\n },\n new String [] {\n \"Nro Serie\", \"Codigo Editorial\", \"Autor\", \"Nombre\", \"Cod Idioma\", \"Codigo Genero\"\n }\n ));\n jScrollPane1.setViewportView(jTablaLibros);\n\n jButton1.setText(\"Atrás\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jLabel6.setText(\"Precio\");\n\n jLabel7.setText(\"Codigo Idioma\");\n\n jButton2.setText(\"Buscar\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\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 .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(50, 50, 50)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel5)\n .addComponent(jLabel4)\n .addComponent(jLabel3)\n .addComponent(jLabel2)\n .addComponent(jLabel1)\n .addComponent(jLabel7))\n .addGap(46, 46, 46)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(txtidioma)\n .addComponent(txtcodgen)\n .addComponent(txtnombre)\n .addComponent(txtnombreaut)\n .addComponent(txtcodedit)\n .addComponent(txtnroserie, javax.swing.GroupLayout.DEFAULT_SIZE, 55, Short.MAX_VALUE))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(75, 75, 75)\n .addComponent(jLabel6))\n .addGroup(layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addComponent(jButton2)))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(btnListar)\n .addComponent(txtprecio, javax.swing.GroupLayout.PREFERRED_SIZE, 113, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jButton1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 24, Short.MAX_VALUE)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 535, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGap(142, 142, 142)\n .addComponent(jButtonAgregar)))\n .addGap(57, 57, 57))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jButton1)\n .addGap(114, 114, 114))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 104, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(txtnroserie, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton2))\n .addGap(18, 18, 18)\n .addComponent(jLabel2))\n .addGroup(layout.createSequentialGroup()\n .addComponent(btnListar)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(txtcodedit, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(txtnombreaut, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(txtnombre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(txtcodgen, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(14, 14, 14)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6)\n .addComponent(txtprecio, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel7)\n .addComponent(txtidioma, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 32, Short.MAX_VALUE)\n .addComponent(jButtonAgregar)\n .addGap(17, 17, 17))\n );\n\n pack();\n }", "@RequestMapping(\"enviar\")\n\tpublic String abrirForm() {\n\t\treturn \"contato/form\";\n\t}" ]
[ "0.67361844", "0.6683418", "0.66516405", "0.66479117", "0.6635028", "0.6481394", "0.64792967", "0.6449729", "0.64083946", "0.6357229", "0.63486826", "0.63468266", "0.63395715", "0.63092107", "0.62990844", "0.6279683", "0.62713903", "0.62422836", "0.62050205", "0.6197356", "0.617206", "0.6170702", "0.61702055", "0.6159184", "0.6149894", "0.6149472", "0.61435", "0.6120919", "0.61086327", "0.6105854", "0.6089071", "0.60590714", "0.6044316", "0.6043601", "0.6037164", "0.60340667", "0.6033249", "0.6023565", "0.6022803", "0.60164076", "0.60159755", "0.6014634", "0.6009205", "0.6001171", "0.59921074", "0.5991747", "0.5987053", "0.59852064", "0.59826016", "0.5973989", "0.5966855", "0.5958689", "0.5948418", "0.5948108", "0.59317565", "0.5931752", "0.5931654", "0.59311736", "0.59274143", "0.592309", "0.5907706", "0.59059423", "0.58980215", "0.5894837", "0.5883131", "0.5876349", "0.587181", "0.5857085", "0.58569473", "0.58550817", "0.5843523", "0.58374", "0.5832697", "0.5827524", "0.582693", "0.5823706", "0.58218133", "0.5817379", "0.5816218", "0.5811604", "0.5806392", "0.58062387", "0.580502", "0.58036715", "0.5792537", "0.57875884", "0.5783131", "0.5779273", "0.5771908", "0.57698715", "0.57660127", "0.5763353", "0.57591945", "0.57586724", "0.57572055", "0.5751431", "0.5750643", "0.57502174", "0.5750161", "0.5748252" ]
0.61064976
29
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() { jLabel1 = new javax.swing.JLabel(); btnConsultar = new javax.swing.JButton(); btnSalir = new javax.swing.JButton(); jLabel2 = new javax.swing.JLabel(); jLabel3 = new javax.swing.JLabel(); jLabel4 = new javax.swing.JLabel(); jLabel5 = new javax.swing.JLabel(); jLabel6 = new javax.swing.JLabel(); jLabel7 = new javax.swing.JLabel(); jLabel8 = new javax.swing.JLabel(); pais = new javax.swing.JTextField(); provincia = new javax.swing.JTextField(); region = new javax.swing.JTextField(); ciudad = new javax.swing.JTextField(); direccion = new javax.swing.JTextField(); comida = new javax.swing.JTextField(); hotel = new javax.swing.JTextField(); jLabel9 = new javax.swing.JLabel(); vaciar = new javax.swing.JButton(); id = new javax.swing.JTextField(); setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE); setResizable(false); jLabel1.setText("Turista"); btnConsultar.setText("consultar"); btnConsultar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnConsultarActionPerformed(evt); } }); btnSalir.setText("salir al menú principal"); btnSalir.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnSalirActionPerformed(evt); } }); jLabel2.setText("País"); jLabel3.setText("Provincia"); jLabel4.setText("Región"); jLabel5.setText("Ciudad"); jLabel6.setText("Direccion"); jLabel7.setText("Comida"); jLabel8.setText("Hotel"); pais.setEditable(false); provincia.setEditable(false); region.setEditable(false); ciudad.setEditable(false); direccion.setEditable(false); comida.setEditable(false); hotel.setEditable(false); jLabel9.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N jLabel9.setText("CONSULTAR LUGAR TURÍSTICO POR TURISTA"); vaciar.setText("vaciar"); vaciar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { vaciarActionPerformed(evt); } }); id.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { idActionPerformed(evt); } }); id.addKeyListener(new java.awt.event.KeyAdapter() { public void keyReleased(java.awt.event.KeyEvent evt) { idKeyReleased(evt); } public void keyTyped(java.awt.event.KeyEvent evt) { idKeyTyped(evt); } }); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGap(63, 63, 63) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel9) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel2) .addComponent(jLabel3) .addComponent(jLabel4) .addComponent(jLabel5) .addComponent(jLabel6) .addComponent(jLabel7) .addComponent(jLabel8)) .addGap(28, 28, 28) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(ciudad, javax.swing.GroupLayout.PREFERRED_SIZE, 182, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(region, javax.swing.GroupLayout.PREFERRED_SIZE, 182, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(provincia, javax.swing.GroupLayout.PREFERRED_SIZE, 182, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(pais, javax.swing.GroupLayout.PREFERRED_SIZE, 182, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(hotel, javax.swing.GroupLayout.DEFAULT_SIZE, 276, Short.MAX_VALUE) .addComponent(comida) .addComponent(direccion))) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addComponent(jLabel1) .addGap(28, 28, 28)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addComponent(vaciar) .addGap(26, 26, 26))) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addComponent(id, javax.swing.GroupLayout.PREFERRED_SIZE, 159, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addComponent(btnConsultar)) .addGroup(layout.createSequentialGroup() .addGap(91, 91, 91) .addComponent(btnSalir))))) .addContainerGap(66, Short.MAX_VALUE)) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addComponent(jLabel9) .addGap(17, 17, 17) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel1) .addComponent(btnConsultar) .addComponent(id, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(27, 27, 27) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel2) .addComponent(pais, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(24, 24, 24) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel3) .addComponent(provincia, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(29, 29, 29) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel4) .addComponent(region, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(30, 30, 30) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel5) .addComponent(ciudad, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(37, 37, 37) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel6) .addComponent(direccion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(40, 40, 40) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel7) .addComponent(comida, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(32, 32, 32) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel8) .addComponent(hotel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 47, Short.MAX_VALUE) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(btnSalir) .addComponent(vaciar)) .addContainerGap()) ); 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 PatientUI() {\n initComponents();\n }", "public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }", "public Oddeven() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "public Magasin() {\n initComponents();\n }", "public intrebarea() {\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 kunde() {\n initComponents();\n }", "public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public MusteriEkle() {\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 frmMain() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public DESHBORDPANAL() {\n initComponents();\n }", "public frmVenda() {\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 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 vpemesanan1() {\n initComponents();\n }", "public EnterDetailsGUI() {\n initComponents();\n }", "public Kost() {\n initComponents();\n }", "public frmacceso() {\n initComponents();\n }", "public UploadForm() {\n initComponents();\n }", "public FormHorarioSSE() {\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.7321342", "0.7292121", "0.7292121", "0.7292121", "0.72863305", "0.7249828", "0.7213628", "0.7209084", "0.7197292", "0.71912086", "0.7185135", "0.7159969", "0.7148876", "0.70944786", "0.70817256", "0.7057678", "0.69884527", "0.69786763", "0.69555986", "0.69548863", "0.69453996", "0.69434965", "0.69369817", "0.6933186", "0.6929363", "0.69259083", "0.69255763", "0.69123995", "0.6911665", "0.6894565", "0.6894252", "0.68922615", "0.6891513", "0.68894076", "0.6884006", "0.68833494", "0.6882281", "0.6879356", "0.68761575", "0.68752", "0.6872568", "0.68604666", "0.68577915", "0.6856901", "0.68561065", "0.6854837", "0.68547136", "0.6853745", "0.6853745", "0.68442935", "0.6838013", "0.6837", "0.6830046", "0.68297213", "0.68273175", "0.682496", "0.6822801", "0.6818054", "0.68177056", "0.6812038", "0.68098444", "0.68094784", "0.6809155", "0.680804", "0.68033874", "0.6795021", "0.67937285", "0.6793539", "0.6791893", "0.6790516", "0.6789873", "0.67883795", "0.67833847", "0.6766774", "0.6766581", "0.67658913", "0.67575616", "0.67566", "0.6754101", "0.6751978", "0.6741716", "0.6740939", "0.6738424", "0.6737342", "0.6734709", "0.672855", "0.6728138", "0.6721558", "0.6716595", "0.6716134", "0.6715878", "0.67096144", "0.67083293", "0.6703436", "0.6703149", "0.6701421", "0.67001027", "0.66999036", "0.66951054", "0.66923416", "0.6690235" ]
0.0
-1
Instancia una nueva desembolso se finsol1 ov.
public DesembolsoSEFinsol1OV() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ConversorVelocidad() {\n //setTemperaturaConvertida(0);\n }", "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 CUClienteComplementoOV()\t{\n\n\t\t}", "public VotacaoSegundoDia() {\n\n\t}", "public JogoVelha(Jogador jogador1, Jogador jogador2) {\r\n // recebe os jogadores\r\n this.jogador1 = jogador1;\r\n this.jogador2 = jogador2;\r\n this.sncpu = false;\r\n \r\n }", "Oracion createOracion();", "Vaisseau createVaisseau();", "Vaisseau_Vaisseau createVaisseau_Vaisseau();", "Vaisseau_Vaisseau createVaisseau_Vaisseau();", "Vaisseau_Vaisseau createVaisseau_Vaisseau();", "Vaisseau_Vaisseau createVaisseau_Vaisseau();", "public void extendSolenoid2(){\n solenoid2.set(Value.kForward);\n }", "private void crearVista() {\n\t\tVista vista = Vista.getInstancia();\n\t\tvista.addObservador(this);\n\n\t}", "public void ovr() {\n\n\t}", "Vaisseau_ordonneeLaPlusBasse createVaisseau_ordonneeLaPlusBasse();", "public void crearAutomovil(){\r\n automovil = new Vehiculo();\r\n automovil.setMarca(\"BMW\");\r\n automovil.setModelo(2010);\r\n automovil.setPlaca(\"TWS435\");\r\n }", "public void creoVehiculo() {\n\t\t\n\t\tAuto a= new Auto(false, 0);\n\t\ta.encender();\n\t\ta.setPatente(\"saraza\");\n\t\ta.setCantPuertas(123);\n\t\ta.setBaul(true);\n\t\t\n\t\tSystem.out.println(a);\n\t\t\n\t\tMoto m= new Moto();\n\t\tm.encender();\n\t\tm.frenar();\n\t\tm.setManubrio(true);\n\t\tm.setVelMax(543);\n\t\tm.setPatente(\"zas 241\");\n\t\tVehiculo a1= new Auto(true, 0);\n\t\ta1.setPatente(\"asd 423\");\n\t\t((Auto)a1).setBaul(true);\n\t\t((Auto)a1).setCantPuertas(15);\n\t\tif (a1 instanceof Auto) {\n\t\t\tAuto autito= (Auto) a1;\n\t\t\tautito.setBaul(true);\n\t\t\tautito.setCantPuertas(531);\n\t\t\t\n\t\t}\n\t\tif (a1 instanceof Moto) {\n\t\t\tMoto motito=(Moto) a1;\n\t\t\tmotito.setManubrio(false);\n\t\t\tmotito.setVelMax(15313);\n\t\t\t\n\t\t\t\n\t\t}\n\t\tif (a1 instanceof Camion) {\n\t\t\tCamion camioncito=(Camion) a1;\n\t\t\tcamioncito.setAcoplado(false);\n\t\t\tcamioncito.setPatente(\"ge\");\n\t\t\t\n\t\t\t\n\t\t}\n\t\tVehiculo a2= new Moto();\n\t\tSystem.out.println(a2);\n\t\ta1.frenar();\n\t\t\n\t\tArrayList<Vehiculo>listaVehiculo= new ArrayList<Vehiculo>();\n\t\tlistaVehiculo.add(new Auto(true, 53));\n\t\tlistaVehiculo.add(new Moto());\n\t\tlistaVehiculo.add(new Camion());\n\t\tfor (Vehiculo vehiculo : listaVehiculo) {\n\t\t\tSystem.out.println(\"clase:\" +vehiculo.getClass().getSimpleName());\n\t\t\tvehiculo.encender();\n\t\t\tvehiculo.frenar();\n\t\t\tSystem.out.println(\"=======================================\");\n\t\t\t\n\t\t}\n\t}", "public abstract Stone clonar(int vidaInicial, int vida, Elemento[] elementos);", "public void prestamoLibro(libro lib1)\n {\n System.out.println(\"Bienvenido al sistema de prestamos\");\n System.out.println(\"El libro que desea prestar es: \");\n System.out.println(lib1);\n System.out.println(\"Realizaremos la transaccion!\");\n lib1.setDispoLibro(false);\n System.out.println(\"Transaccion realizada!! \");\n }", "public void agregarinicio(int el){\n if(!estavacia()){\n fin=new nododoble(el, inicio,null);\n inicio.siguiente.anterior=inicio;\n }else{\n inicio=fin=new nododoble(el);\n }}", "Vaisseau_seDeplacerVersLaGauche createVaisseau_seDeplacerVersLaGauche();", "public Vencimientos() {\n initComponents();\n \n \n }", "public StructuraSemestru2() {\n startSemester= Constants.SEMESTER_START2;\n beginHoliday=Constants.HOLIDAY_START2;\n endHoliday=Constants.HOLIDAY_END2;\n endSemester=Constants.SEMESTER_END2;\n\n }", "public static StructuraSemestru2 getInstance(){\n if (instance==null)\n {\n return instance =new StructuraSemestru2();\n }\n else\n return instance;\n }", "public SrvINFONEGOCIO(AgregarInfoNegocio view) {//C.P.M Tendremos un constructor con la vista de agregar informacion de negocio\r\n this.vista = view;//C.P.M Se la agregamos a la variable para tener acceso a la vista \r\n }", "public VistaInicial crearventanaInicial(){\n if(vistaInicial==null){\n vistaInicial = new VistaInicial();\n }\n return vistaInicial;\n }", "public AfiliadoVista() {\r\n }", "public vP() {\n initComponents();\n \n crono = new Bjj();\n \n \n \n }", "Vaisseau_longueur createVaisseau_longueur();", "public void inicializarOrdenDeCorte(OrdenDeCorte oc);", "@Override\r\n\tprotected void initVentajas() {\n\r\n\t}", "Vaisseau_seDeplacerVersLaDroite createVaisseau_seDeplacerVersLaDroite();", "private void iniciarNovaVez() {\n this.terminouVez = false;\n }", "public static void main(String[] args) {\n Aviso aviso1 = new Aviso();\n \n aviso1.id=1;\n \n aviso1.tipoAviso=\"General\";\n aviso1.titulo=\"Insumos y bienes muebles de laboratorio disponibles\";\n aviso1.texto=\"La Coordinación de Control Técnico de Insumos (COCTI) de la Dirección de Prestaciones Médicas, pone a disposición del personal que realiza investigación el inventario adjunto.\";\n aviso1.resumen=\"Insumos y bienes muebles de laboratorio disponibles por la Coordinación de Control Técnico de Insumos (COCTI)\";\n aviso1.nombre=\"Eduardo Flores Díaz\";\n aviso1.estatusF=\"Vigente\";\n \n aviso1.diaP=02;\n aviso1.mesP=02;\n aviso1.yearP=2020;\n \n aviso1.diaA=02;\n aviso1.mesA=02;\n aviso1.yearA=2020;\n \n aviso1.diaB=02;\n aviso1.mesB=02;\n aviso1.yearB=2021;\n \n System.out.println(aviso1);\n \n Aviso aviso2 = new Aviso();\n \n aviso2.id=2;\n \n aviso2.tipoAviso=\"Conferencia\";\n aviso2.titulo=\"CONFERENCIA DR. COSSARIZZA\";\n aviso2.texto=\"El Dr. Andrea Cossarizza, ofreció a la comunidad IMSS su conferencia “Clinical Applications of Advanced Cytometry” y aprovechó la presencia de investigadores y estudiantes del IMSS para compartir sus últimos resultados de investigación, aún no publicados, sobre VIH y el uso de citometría de flujo.\\n\" +\n\"\\n\" +\n\"Además, invitó a nuestra comunidad a agregarse a la sociedad internacional sobre citometría: ISAC(International Society for the Advancement of Cytometry) y aprovechar los recursos que tienen como:\\n\" +\n\"\\n\" +\n\"Programa de Liderazgo MARYLOU INGRAM SCHOLARS PROGRAM, de 5 años para formación de citomteristas\\n\" +\n\"Iniciativa de innovación CYTO-Innovation apoya a las propuestas innovadoras que contemplan la conversión de ideas en productos comerciales de alto impacto para ayudar a nuevos empresarios a aprovechar la tecnología de citometría\\n\" +\n\"\\n\" +\n\"Además en la ISAC tienen disponibles una serie de manuales e información de punta sobre la citometría para uso libre. El Dr. Cossarizza reiteró la invitación al personal IMSS a vincularse con la Universidad de Módena y su laboratorio aprovechando el prestigio que tiene el Laboratorio de Citometría de Flujo del Centro de Instrumentos del Centro Médico Nacional Siglo XXI.\";\n \n aviso2.resumen=\"Conferencia de Dr. Andrea Cossarizza del tema “Clinical Applications of Advanced Cytometry\\\"\";\n aviso2.nombre=\"Kevin Meza Gonzalez\";\n aviso2.estatusF=\"No Vigente\";\n \n aviso2.diaP=02;\n aviso2.mesP=03;\n aviso2.yearP=2020;\n \n aviso2.diaA=15;\n aviso2.mesA=02;\n aviso2.yearA=2020;\n \n aviso2.diaB=31;\n aviso2.mesB=03;\n aviso2.yearB=2020;\n \n System.out.println(aviso2);\n \n }", "Obligacion createObligacion();", "public EditeurSimple() {\n\t\tsuper();\n\t\tthis.buffer = new Buffer();\n\t\tthis.pressPapier = new PressePapier();\n\t\tthis.selection = new Selection();\n\t\tthis.fluxFile = new FluxFile();\n\t}", "public void asignarVida();", "public void devolucionLibro(libro lib1)\n {\n System.out.println(\"Bienvenido al sistema de devolucion! \");\n System.out.println(\"El libro que desea devolver es: \");\n System.out.println(lib1);\n System.out.println(\"Realizaremos la devolucion\");\n lib1.setDispoLibro(true);\n System.out.println(\"Transaccion realizada!! \");\n }", "public static void partidaPorDefectoc4() {\n\n\t\tf = new FactoriaConecta4();\n\t\tp = new Partida(f.creaReglas());\n\t\tScanner in = new Scanner(System.in);\n\n\t\tControladorConsola c = new ControladorConsola(f, p, in);\n\t\tnew VistaConsola(c);\n\n\t\tc.run();\n\t}", "public SwerveDrive() {\n //TODO:properly construct the swerve modules, and put then in an array, int already in Constants\n // frontLeft = new SwerveModule();\n // rearLeft = new SwerveModule();\n // rearRight = new SwerveModule();\n // frontRight = new SwerveModule();\n ////This may seem repetitive, but it makes clear which module is which.\n // swerveModules = new SwerveModule[]{\n // frontLeft,\n // rearLeft,\n // rearRight,\n // frontRight\n // };\n \n //TODO:Construct the IMU object, alreeady named imu\n\n }", "public ControladorCombate(int tipo_simulacion,\r\n Entrenador entrenador1, Entrenador entrenador2, ControladorPrincipal cp){\r\n this.esLider = false;\r\n this.controlador_principal = cp;\r\n this.tipo_simulacion = tipo_simulacion;\r\n this.combate = new Combate();\r\n this.equipo1 = entrenador1.getPokemones();\r\n this.equipo2 = entrenador2.getPokemones();\r\n this.entrenador1 = entrenador1;\r\n this.entrenador2 = entrenador2;\r\n this.vc = new VistaCombate();\r\n this.va = new VistaAtaque();\r\n this.ve = new VistaEquipo();\r\n this.creg = new ControladorRegistros();\r\n String[] nombres1 = new String[6];\r\n String[] nombres2 = new String[6];\r\n for (int i = 0; i < 6; i++) {\r\n nombres1[i]=equipo1[i].getPseudonimo();\r\n nombres2[i]=equipo2[i].getPseudonimo(); \r\n }\r\n this.vpc = new VistaPreviaCombate(tipo_simulacion, entrenador1.getNombre(), entrenador2.getNombre());\r\n this.vpc.agregarListener(this);\r\n this.vpc.setjC_Equipo1(nombres1);\r\n this.vpc.setjC_Equipo2(nombres2);\r\n this.vpc.setVisible(true);\r\n this.termino = false;\r\n resetearEntrenadores();\r\n }", "public Exercice2() {\n\n initComponents();\n \n Tools.windowsInit(this); \n etat = State.Init;\n presentation1();\n }", "public VPacientes() {\n initComponents();\n inicializar();\n }", "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 static void main(String[] args) {\n\t\tSecretario s1 = new Secretario(\"Mauro\", \"Pérez\", \"2168\", \"Calle Falsa\", 999, 500, true, \"Fax\");\n\t\tVendedor v1 = new Vendedor(\"Pepe\", \"Martinez\", \"2177\", \"Calle de atras\", 998, 750, 669, \"Alguna\", 0.10);\n\t\tVendedor v2 = new Vendedor(\"Antonio\", \"Martinez\", \"2144\", \"Calle de delante\", 996, 750, 669, \"Alguna\", 0.10);\n\t\tJefeZona j1 = new JefeZona(\"Manolo\", \"Ortega\", \"2155\", \"Una calle\", 997, 1000, true);\n\t\t\n\t\tClientes c1 = new Clientes(\"Cliente 1\");\n\t\tClientes c2 = new Clientes(\"Cliente 2\");\n\t\t\n\t\ts1.setSupervisor(v1);\n\t\t\n\t\tv1.agregarCliente(c1);\n\t\tv1.agregarCliente(c2);\n\t\tv1.eliminarCliente(c1);\n\t\t\n\t\tj1.agregarVendedor(v1);\n\t\tj1.agregarVendedor(v2);\n\t\t\n\t\tSystem.out.println(v1.toString());\n\t\tv1.incrementarSalario();\n\t\tSystem.out.println(v1.toString());\n\t\tSystem.out.println();\n\t\tSystem.out.println(s1.toString());\n\t\ts1.incrementarSalario();\n\t\tSystem.out.println(s1.toString());\n\t\tSystem.out.println();\n\t\tSystem.out.println(j1.toString());\n\t\tj1.incrementarSalario();\n\t\tSystem.out.println(j1.toString());\n\t}", "public static void inicializacionPartidaConsola() {\n\n\t\tScanner in = new Scanner(System.in);\n\n\t\tControladorConsola c = new ControladorConsola(f, p, in);\n\n\t\tnew VistaConsola(c);\n\n\t\tc.run();\n\t}", "public ZafCon34(ZafParSis obj) {\n try{\n initComponents();\n //Inicializar objetos.\n this.objParSis=obj;\n jfrThis = this;\n objParSis=(ZafParSis)obj.clone();\n objUti=new ZafUtil();\n objTooBar=new MiToolBar(this);\n panTooBar.add(objTooBar);//llama a la barra de botones\n\n if (!configurarFrm())\n exitForm();\n }\n catch (CloneNotSupportedException e)\n {\n this.setTitle(this.getTitle() + \" [ERROR]\");\n }\n }", "public IzvajalecZdravstvenihStoritev() {\n\t}", "public Oveja() {\r\n this.nombreOveja = \"Oveja\";\r\n }", "public void inicializar();", "private void inizializzazione()\n {\n //Costruzione della Istanza display\n display = new Display(titolo,larghezza,altezza);\n \n /*Viene aggiunto il nostro gestore degli input da tastiera\n * alla nostra cornice.*/\n display.getCornice().addKeyListener(gestoreTasti);\n display.getCornice().addMouseListener(gestoreMouse);\n display.getCornice().addMouseMotionListener(gestoreMouse);\n display.getTelaGrafica().addMouseListener(gestoreMouse);\n display.getTelaGrafica().addMouseMotionListener(gestoreMouse);\n \n //Codice temporaneo per caricare la nostra immagine nel nostro programma\n /*testImmagine = CaricatoreImmagini.caricaImmagini(\"/Textures/Runner Stickman.png\");*/\n \n //Inizializzazione dell'attributo \"foglio\". Gli viene passato come parametro \n //\"testImmagine\" contenente l'immagine del nostro sprite sheet.\n /*foglio = new FoglioSprite(testImmagine);*/\n \n /*Inizializzazione della classe Risorse.*/\n Risorse.inizializzazione();\n \n maneggiatore = new Maneggiatore(this);\n /*Inizializzazione Camera di Gioco*/\n camera = new Camera(maneggiatore,0,0);\n \n /*Inizializzazione degli stati di gioco.*/\n statoMenu = new StatoMenù(maneggiatore);\n Stato.setStato(statoMenu);\n }", "public Os() {\n osBO = new OsBO();\n }", "Vaisseau_positionner createVaisseau_positionner();", "@Override\n public void runOpMode() {\n leftDrive = hardwareMap.get(DcMotor.class, \"left_drive\");\n rightDrive = hardwareMap.get(DcMotor.class, \"right_drive\");\n intake = hardwareMap.get (DcMotor.class, \"intake\");\n dropServo = hardwareMap.get(Servo.class, \"drop_Servo\");\n leftDrive.setDirection(DcMotor.Direction.REVERSE);\n rightDrive.setDirection(DcMotor.Direction.FORWARD);\n\n dropServo.setPosition(1.0);\n waitForStart();\n dropServo.setPosition(0.6);\n sleep(500);\n VuforiaOrientator();\n encoderSequence(\"dumbDrive\");\n\n\n }", "Secuencia createSecuencia();", "public void renovarBolsa() {\n\t\tSystem.out.println(\"Bolsa renovada com suceso!\");\n\t}", "@Override\n public void actionPerformed(ActionEvent evt) \n {\n Offre E2=new Offre(E.getId_etablissement(),C.getDate(),C2.getDate(),gui_Text_Field_2.getText(),gui_Text_Field_1.getText());\n OffreService service=new OffreService();\n if (E.getId_etablissement().getPartenaire()==0){\n E2.setCode(\"\");\n E2.setPourcentage(0);\n service.updateOffreSans(E, E2);\n \n }\n else {\n E2.setCode(gui_Text_Field_3.getText());\n \n E2.setPourcentage(Float.parseFloat(gui_Text_Field_4.getText()));\n service.updateOffreAvec(E, E2);\n }\n last.refreshTheme();\n last.show();\n \n }", "private LecturasSensor cogerLectura(LecturasSensor lect) {\n\tLecturasSensor lecViento = new LecturasSensor();\n\tcal = Calendar.getInstance();\n\tjava.sql.Timestamp dateViento = new java.sql.Timestamp(\n\t\tcal.getTimeInMillis());\n\tlecViento.setNombreSensor(sens.getNum_sensor());\n\tlecViento.setFecha(dateViento);\n\tlecViento.setRiego(0);\n\tlecViento.setVelocidadAnemometro(lect.getVelocidadAnemometro());\n\tlecViento.setLluvia(0);\n\tlecViento.setTemperatura(0);\n\tlecViento.setIntru(false);\n\treturn lecViento;\n }", "private void setUpFrom(){\n\t\tEPVentanaTemporal ven = new EPVentanaTemporal();\n\t\tEPPropiedad pro = new EPPropiedad();\n\t\t//setemamos la ventana.\n\t\tven.setNombre(\"time_batch\");\n\t\tven.setValor(\"10\");\n\t\tven.setUnidadTemporal(\"seconds\");\n\t\tven.setPseudonombre(\"a1\");\n\t\tpro.setNombre(\"p4\");\n\t\tpro.setPseudonombre(\"\");\n\t\tpro.setVentana(ven);\n\t\texpresionesFrom.add(pro);\n\t}", "Vaisseau_occupeLaPosition createVaisseau_occupeLaPosition();", "@SuppressWarnings(\"deprecation\")\n\tpublic void inicializaBD() {\n\t\t\n\t\t/*Registros de Orden*/\n\t\tint n1=1;\n\t\tString p1=\"Taco Azteca\", p2=\"Sopa\";\n\t\tjava.util.Date utilDate = new java.util.Date();\n\t\tjava.util.Date utilDate1 = new java.util.Date();\n\t\tutilDate.setMonth(1);\n\t\tutilDate.setYear(119);\n\t\tutilDate.setMinutes(1);\n\t\tutilDate1.setMonth(1);\n\t\tutilDate1.setYear(119);\n\t\tutilDate1.setMinutes(59);\n\t\tlong lnMilisegundos = utilDate.getTime();\n\t\tlong lnMilisegundos1 = utilDate1.getTime()+10;\n\t\tTimestamp fecha1= new Timestamp(lnMilisegundos);\n\t\tTimestamp fecha2 = new Timestamp(lnMilisegundos+9999999);\n\t\tTimestamp fecha3= new Timestamp(lnMilisegundos1);\n\t\tTimestamp fecha4 = new Timestamp(lnMilisegundos1+999999);\n\t\tOrden orden1 = new Orden(n1,p1, fecha1, fecha2, 60, 3);\n\t\tOrden orden2 = new Orden(n1,p2, fecha3, fecha4, 30, 3);\n\t\torden1.setEstado(3);\n\t\torden2.setEstado(3);\n\t\tordenRepository.save(orden1);\n\t\tordenRepository.save(orden2);\n\t\t\n\t\t/*Registros de producto*/\n\t\tProducto producto1 = new Producto();\n\t\tproducto1.setFecha(\"2020-05-10\");\n\t\tproducto1.setNombreProducto(\"Chiles Verdes\");\n\t\tproducto1.setDescripcion(\"Bolsas de 1 kg de Chiles\");\n\t\tproducto1.setCantidad(15);\n\t\tproducto1.setMinimo(20);\n\t\tproductoRepository.save(producto1);\n\t\t\n\t\tProducto producto2 = new Producto();\n\t\tproducto2.setFecha(\"2020-10-05\");\n\t\tproducto2.setNombreProducto(\"Papas\");\n\t\tproducto2.setDescripcion(\"Costal de 32 Kg de papas\");\n\t\tproducto2.setCantidad(58);\n\t\tproducto2.setMinimo(10);\n\t\tproductoRepository.save(producto2);\n\t\t\n\t\tProducto producto3 = new Producto();\n\t\tproducto3.setFecha(\"2020-10-20\");\n\t\tproducto3.setNombreProducto(\"Frijoles\");\n\t\tproducto3.setDescripcion(\"Costales de 13 kg de Frijoles\");\n\t\tproducto3.setCantidad(2);\n\t\tproducto3.setMinimo(20);\n\t\tproductoRepository.save(producto3);\n\t\t\n\t\tProducto producto4 = new Producto();\n\t\tproducto4.setFecha(\"2020-08-16\");\n\t\tproducto4.setNombreProducto(\"Sopa de fideo\");\n\t\tproducto4.setDescripcion(\"Bolsas de 500g de sopa de fideo\");\n\t\tproducto4.setCantidad(8);\n\t\tproducto4.setMinimo(10);\n\t\tproductoRepository.save(producto4);\n\t\t\n\t\t//Registro de recordatorio\n\t\tRecordatorio recordatorio = new Recordatorio();\n\t\trecordatorio.setId(1);\n\t\trecordatorio.setInfo(\"1. A partir de mañana se empezará a ofrecer los \\n\"\n\t\t\t\t+ \"beneficios para los clientes preferenciales\\n\"\n\t\t\t\t+ \"2. Los empleados que no se han registrado para \\n\"\n\t\t\t\t+ \"algo algotienen hasta el 25 de Julio para \\n\"\n\t\t\t\t+ \"registrarse.\");\n\t\trecordatorioRepository.save(recordatorio);\n\t\t\n\t\t//Registro empleados\n\t\tEmpleado empleado1 = new Empleado();\n\t\templeado1.setNombre(\"Paola\");\n\t\templeado1.setApellidos(\"Aguillón\");\n\t\templeado1.setEdad(24);\n\t\templeado1.setSueldo(2120.50);\n\t\templeado1.setOcupacion(\"Mesera\");\n\t\templeadoRepository.save(empleado1);\n\t\t\n\t\tEmpleado empleado2 = new Empleado();\n\t\templeado2.setNombre(\"Jorge\");\n\t\templeado2.setApellidos(\"Luna\");\n\t\templeado2.setEdad(20);\n\t\templeado2.setSueldo(2599.50);\n\t\templeado2.setOcupacion(\"Cocinero\");\n\t\templeadoRepository.save(empleado2);\n\t\t\n\t\tEmpleado empleado3 = new Empleado();\n\t\templeado3.setNombre(\"Mariana\");\n\t\templeado3.setApellidos(\"Mendoza\");\n\t\templeado3.setEdad(32);\n\t\templeado3.setSueldo(1810.80);\n\t\templeado3.setOcupacion(\"Ayudante general\");\n\t\templeadoRepository.save(empleado3);\n\t\t\n\t\tEmpleado empleado4 = new Empleado();\n\t\templeado4.setNombre(\"Diego\");\n\t\templeado4.setApellidos(\"Ayala\");\n\t\templeado4.setEdad(28);\n\t\templeado4.setSueldo(3560.60);\n\t\templeado4.setOcupacion(\"Chef\");\n\t\templeadoRepository.save(empleado4);\n\t\t\n\t\tCliente cliente1 = new Cliente();\n\t\tcliente1.setNombre(\"Mario\");\n\t\tcliente1.setCorreo(\"[email protected]\");\n\t\tcliente1.setPromocion(\"Sopa 2x1\");\n\t\tclienteRepository.save(cliente1);\n\n\t\t//Registro Ventas de menú\n\t\tVentasMenu dia1 = new VentasMenu();\n\t\tdia1.setFecha(LocalDate.of(2021,02,01));\n\t\tdia1.setMenu(\"Tacos,Sopa de papa, Agua de limón\");\n\t\tdia1.setVentas(20);\n\t\tventasMenuRepository.save(dia1);\n\t\t\n\t\tVentasMenu dia2 = new VentasMenu();\n\t\tdia2.setFecha(LocalDate.of(2021,02,02));\n\t\tdia2.setMenu(\"Tortas de papa,Sopa de verdura, Agua de piña\");\n\t\tdia2.setVentas(22);\n\t\tventasMenuRepository.save(dia2);\n\t\t\n\t\tVentasMenu dia21 = new VentasMenu();\n\t\tdia21.setFecha(LocalDate.of(2021,02,03));\n\t\tdia21.setMenu(\"Tortas de papa,Sopa de tortilla, Agua de mango\");\n\t\tdia21.setVentas(25);\n\t\tventasMenuRepository.save(dia21);\n\t\t\n\t\tVentasMenu dia211 = new VentasMenu();\n\t\tdia211.setFecha(LocalDate.of(2021,02,04));\n\t\tdia211.setMenu(\"Papas a la francesa,sopa de arroz, Agua de jamaica \");\n\t\tdia211.setVentas(30);\n\t\tventasMenuRepository.save(dia211);\n\t\t\n\t\t\n\t\t\n\t\t//Registro de menú\n\t\tMenu menu = new Menu();\n\t\tmenu.setId(1);\n\t\tmenu.setMen(\"Sopa \\n\"\n\t\t\t\t+ \"Consome\\n\"\n\t\t\t\t+ \"Arroz\\n\"\n\t\t\t\t+ \"Pasta\\n\"\n\t\t\t\t+ \"Chile relleno \\n\"\n\t\t\t\t+ \"Taco Azteca \\n\"\n\t\t\t\t+ \"Filete de Pescado empanizado\"\n\t\t + \"Enchiladas\\n\"\n\t\t + \"Gelatina\\n\"\n\t\t + \"Flan\\n\");\n\t\tmenuRepository.save(menu);\n\t\t\n\t\t//Registro de algunos proveedores\n\t\t\n\t\tProveedor proveedor1 = new Proveedor();\n\t\tproveedor1.setNomProveedor(\"Aaron\");\n\t\tproveedor1.setMarca(\"Alpura\");\n\t\tproveedor1.setTipo(\"Embutidos y lacteos\");\n\t\tproveedor1.setCosto(4600);\n\t\tproveedorRepository.save(proveedor1);\n\t\t\n\t\tProveedor proveedor2 = new Proveedor();\n\t\tproveedor2.setNomProveedor(\"Angelica\");\n\t\tproveedor2.setMarca(\"Coca-Cola\");\n\t\tproveedor2.setTipo(\"Bebidas\");\n\t\tproveedor2.setCosto(1810.11);\n\t\tproveedorRepository.save(proveedor2);\n\t\t\n\t\tProveedor proveedor3 = new Proveedor();\n\t\tproveedor3.setNomProveedor(\"Ernesto\");\n\t\tproveedor3.setMarca(\"Patito\");\n\t\tproveedor3.setTipo(\"Productos de limpieza\");\n\t\tproveedor3.setCosto(2455.80);\n\t\tproveedorRepository.save(proveedor3);\n\t\t\n\t\t// Registro Sugerencias \n\t\t\n\t\t \n\t\tSugerencia sugerencia= new Sugerencia();\n\t\tsugerencia.setIdSugeregncia(1);\n\t\tsugerencia.setNombre(\"Pedro\");\n\t\tsugerencia.setSugerencia(\"Pollo Frito\");\n\t\tsugerenciaRepository.save(sugerencia);\n\t\t\n\t\tSugerencia sugerencia1= new Sugerencia();\n\t\tsugerencia1.setIdSugeregncia(2);\n\t\tsugerencia1.setNombre(\"Miriam\");\n\t\tsugerencia1.setSugerencia(\"Sopes\");\n\t\tsugerenciaRepository.save(sugerencia1);\n\t\t\n\t\tSugerencia sugerencia2= new Sugerencia();\n\t\tsugerencia2.setIdSugeregncia(3);\n\t\tsugerencia2.setNombre(\"Rebeca\");\n\t\tsugerencia2.setSugerencia(\"Tamales Oaxaqueños\");\n\t\tsugerenciaRepository.save(sugerencia2);\n\t\t\n\t}", "public void Ordenamiento() {\n\n\t}", "public void changed(ObservableValue ov, Number value, Number new_value)\n {\n\n String dsEstoque = optionsEstoques.get(new_value.intValue());\n String[] campoEstoque = dsEstoque.split(\"-\");\n estoque = new Estoque();\n estoque.setCdEstoque(campoEstoque[0]);\n estoque.setDsEstoque(campoEstoque[1]);\n }", "public void agregaralfinal(int el){\n if(!estavacia()){\n fin=new nododoble(el, null, fin);\n fin.anterior.siguiente=fin;\n }else{\n inicio=fin=new nododoble(el);\n }}", "public void run_v0(String clase){\n\t\t//aviso(\"Ejecutando \"+clase+\" Tipo V0\");\n\t\t\n\t\tObject\toc=null;\n\t\t\n\t\t\t\n\t\t\n\t\ttry {\n\t\t\tClass c=Class.forName(clase);\n\t\t\toc=c.newInstance();\n\t\t} catch (ClassNotFoundException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t} catch (InstantiationException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t} catch (IllegalAccessException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\tif (oc!=null){\n\t\t\tvisual.Task_Model T=(visual.Task_Model) oc;\n\t\t\tint i=0;\n\t\t\tbeta.tools.connector.GTransfer GX=null;\n\t\t\t\n\t\t\twhile (i<this.getConstructor().getParametros().size() & GX==null){\n\t\t\t\tObject[] p=(Object[]) this.getConstructor().getParametros().get(i);\n\t\t\t\tString id=(String)p[0];\n\t\t\t\tObject o=p[1];\n\t\t\t\tif (id.compareTo(\"GX\")==0){\n\t\t\t\t\tGX=(beta.tools.connector.GTransfer)o;\n\t\t\t\t}\n\t\t\t\ti++;\n\t\t\t}\n\t\t\tif (GX==null){\n\t\t\t\tGX=new beta.tools.connector.GTransfer();\n\t\t\t\tGeneric _default=this.getConstructor().getConnectionHandler().getDefaultConnector();\n\t\t\t\tGX.setHost(_default.getHost());\n\t\t\t\tGX.setPort(_default.getPort());\n\t\t\t\tGX.setDatabase(_default.getDatabase());\n\t\t\t\tGX.setUser(_default.getUser());\n\t\t\t\tGX.setPassword(_default.getPassword());\n\t\t\t\tGX.setSucursal(_default.getId());\n\t\t\t\tGX.ConnectSQL(_default.getId());\n\t\t\t}\n\t\t\tboolean b=true;//esta_autorizado(iduser,clase);\n\t\t\tif (b){\n\t\t\t\tString NEW_LINE = System.getProperty(\"line.separator\");\n\t\t\t\t/*String msg=\"Esta es una aplicacion vieja.\"+NEW_LINE;\n\t\t\t\tmsg+=\"Hasta que no se reprograme. Esta aplicacion quedara inhabilitada por problemas de incompatibilida\";\n\t\t\t\terror(msg);*/\n\t\t\t\t\n\t\t\t\tT.setParameter(\"GX\", GX);\n\t\t\t\tT.setParameter(\"iduser\", this.getConstructor().getIduser());\n\t\t\t\tfor (i=0;i<this.getConstructor().getParametros().size();i++){\n\t\t\t\t\ttry {\n\t\t\t\t\tObject[] p=(Object[]) this.getConstructor().getParametros().get(i);\n\t\t\t\t\tString id=(String)p[0];\n\t\t\t\t\tObject o=p[1];\n\t\t\t\t\tT.setParameter(id, o);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tSystem.out.println(\"No se pudo Cargar el parametro \"+i+\" >\"+clase+\" \"+e.getMessage());\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\t\n\t\t\t\tif (javax.swing.SwingUtilities.isEventDispatchThread()){\n\t\t\t\t\tT.run();\n\t\t\t\t}else{\n\t\t\t\t\tfinal visual.Task_Model _T=T;\n\t\t\t\t\tRunnable _execute=new Runnable(){\n\t\t\t\t\t\tpublic void run(){\n\t\t\t\t\t\t\t_T.run();\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\tjavax.swing.SwingUtilities.invokeLater(_execute);\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}else {\n\t\t\t\terror(\"(\"+this.getConstructor().getIduser()+\") No esta Autorizado\");\n\t\t\t\tT=null;\n\t\t\t}\t\n\t\t}\n\t}", "private void reinit() {\n this.nodo1Sel = new Nodo1();\n this.objNodo1 = new Nodo1();\n this.objNodo1Buscar = new Nodo1();\n this.lstNodo1 = new ArrayList<Nodo1>();\n this.lstNodoB = new ArrayList<Nodo1>();\n this.lstNodoBuscar = new ArrayList<Nodo1>();\n this.estadoSel = -1;\n this.estadoSel1 = -1;\n this.comando1 = \"rman\";\n this.comando2 = \"rmaf\";\n this.comando5 = \"uuyy\";\n //this.cargarNodo1();\n this.obtenerNodo1DadoFecha();\n this.graficar();\n\n //fecha1 = sdf.format(date1);\n }", "public static void dodavanjePutnickogVozila() {\n\t\tString vrstaVozila = \"Putnicko Vozilo\";\n\t\tString regBr = UtillMethod.unosRegBroj();\n\t\tGorivo gorivo = UtillMethod.izabirGoriva();\n\t\tGorivo gorivo2 = UtillMethod.izabirGorivaOpet(gorivo);\n\t\tint brServisa = 1;\n\t\tdouble potrosnja100 = UtillMethod.unesiteDoublePotrosnja();\n\t\tSystem.out.println(\"Unesite broj km koje je vozilo preslo:\");\n\t\tdouble predjeno = UtillMethod.unesiteBroj();\n\t\tdouble preServisa = 10000;\n\t\tdouble cenaServisa = 8000;\n\t\tSystem.out.println(\"Unesite cenu vozila za jedan dan:\");\n\t\tdouble cenaDan = UtillMethod.unesiteBroj();\n\t\tSystem.out.println(\"Unesite broj sedista u vozilu:\");\n\t\tint brSedist = UtillMethod.unesiteInt();\n\t\tSystem.out.println(\"Unesite broj vrata vozila:\");\n\t\tint brVrata = UtillMethod.unesiteInt();\n\t\tboolean vozObrisano = false;\n\t\tArrayList<Gorivo> gorivaVozila = new ArrayList<Gorivo>();\n\t\tgorivaVozila.add(gorivo);\n\t\tif(gorivo2!=Main.nista) {\n\t\t\tgorivaVozila.add(gorivo2);\n\t\t}\n\t\tArrayList<Servis> servisiNadVozilom = new ArrayList<Servis>();\n\t\tPutnickoVozilo vozilo = new PutnickoVozilo(vrstaVozila, regBr, gorivaVozila, brServisa, potrosnja100, predjeno,\n\t\t\t\tpreServisa, cenaServisa, cenaDan, brSedist, brVrata, vozObrisano, servisiNadVozilom);\n\t\tUtillMethod.prviServis(vozilo, predjeno);\n\t\tMain.getVozilaAll().add(vozilo);\n\t\tSystem.out.println(\"Novo vozilo je uspesno dodato u sistem!\");\n\t\tSystem.out.println(\"---------------------------------------\");\n\t}", "public Caso_de_uso () {\n }", "public FiltroBoletoBancarioLancamentoEnvio() {\n\n\t}", "public VFunction2D() {\n \n \n }", "public void inicia() { \r\n\t\tventana=new VentanaMuestraServicios(this);\r\n\t\tventana.abre();\r\n\t}", "Vaisseau_estAbscisseCouverte createVaisseau_estAbscisseCouverte();", "public Casovnik(Polje d, Polje v) // Inicijalizacija.\r\n { vreme = v; datum = d; start(); }", "private void moverJogadorDaVez(int dado1, int dado2) throws Exception {\n // System.out.println(\"moverJogadorDaVez\" + dado1 + \" , \" + dado2);\n\n print(\"\\ttirou nos dados: \" + dado1 + \" , \" + dado2);\n int valorDados = dado1 + dado2;\n\n int jogador = this.jogadorAtual();\n\n boolean ValoresIguais = false;\n\n\n //preciso saber se o jogador vai passar pela posição 40, o que significa\n //ganhar dinheiro\n this.completouVolta(jogador, valorDados);\n\n if (dado1 == dado2) {\n ValoresIguais = true;\n } else {\n ValoresIguais = false;\n }\n\n //movendo à posição\n this.moverJogadorAPosicao(jogador, valorDados, ValoresIguais);\n this.print(\"\\tAtual dinheiro antes de ver a compra:\" + this.listaJogadores.get(jogador).getDinheiro());\n this.print(\"\\tVai até a posição \" + this.posicoes[jogador]);\n\n //vendo se caiu na prisao\n if (this.posicoes[this.jogadorAtual()] == 30 && this.prisao == true) {\n adicionaNaPrisao(listaJogadores.get(jogadorAtual()));\n DeslocarJogador(jogador, 10);\n listaJogadores.get(jogadorAtual()).adicionarComandoPay();\n }\n\n\n\n Lugar lugar = this.tabuleiro.get(this.posicoes[jogador] - 1);//busca em -1, pois eh um vetor\n\n\n if (this.isCompraAutomatica()) {\n this.realizarCompra(jogador, lugar);\n }\n\n if (!this.posicaoCompravel(this.posicoes[jogador])) {\n this.print(\"\\t\" + lugar.getNome() + \" não está à venda!\");\n\n\n String nomeDono = (String) Donos.get(this.posicoes[jogador]);\n //não cobrar aluguel de si mesmo\n if (!nomeDono.equals(this.listaJogadores.get(this.jogadorAtual()).getNome())) {\n\n if (this.isUmJogador(nomeDono)) {\n Jogador possivelDono = this.getJogadorByName(nomeDono);\n\n if (this.isPosicaoFerrovia(this.posicoes[jogador])) {\n this.print(\"\\tO dono eh \" + possivelDono.getNome());\n if (!lugar.estaHipotecada()) {\n this.pagarFerrovia(possivelDono.getId(), jogador, 25, lugar.getNome());\n }\n } else {\n\n this.print(\"\\tO dono eh \" + possivelDono.getNome());\n int valorAluguel = 0;\n if (this.posicoes[this.jogadorAtual()] != 12 && this.posicoes[this.jogadorAtual()] != 28) {\n valorAluguel = this.tabuleiro.getLugarPrecoAluguel(this.posicoes[jogador]);\n\n } else {\n if (possivelDono.getQuantidadeCompanhias() == 1) {\n valorAluguel = 4 * valorDados;\n\n }\n if (possivelDono.getQuantidadeCompanhias() == 2) {\n valorAluguel = 10 * valorDados;\n\n }\n }\n if (!lugar.estaHipotecada()) {\n this.pagarAluguel(possivelDono.getId(), jogador, valorAluguel, lugar.getNome());\n }\n\n }\n\n }\n }\n\n }\n\n\n this.pagarEventuaisTaxas(jogador);\n\n if ((this.posicoes[this.jogadorAtual()] == 2 || this.posicoes[jogadorAtual()] == 17 || this.posicoes[jogadorAtual()] == 33) && cards == true) {\n realizaProcessamentoCartaoChest();\n }\n\n if ((this.posicoes[this.jogadorAtual()] == 7 || this.posicoes[jogadorAtual()] == 22 || this.posicoes[jogadorAtual()] == 36) && cards == true) {\n realizaProcessamentoCartaoChance();\n }\n\n\n\n\n this.print(\"\\tAtual dinheiro depois:\" + this.listaJogadores.get(jogador).getDinheiro());\n\n\n\n }", "Compuesta createCompuesta();", "public Estudiante(String name, double for1, double cha1, double vid1, double tra1, double pre1, double for2, double cha2, double vid2, double tra2, double pre2) {\n this.name = name;\n this.for1 = for1;\n this.cha1 = cha1;\n this.vid1 = vid1;\n this.tra1 = tra1;\n this.pre1 = pre1;\n this.for2 = for2;\n this.cha2 = cha2;\n this.vid2 = vid2;\n this.tra2 = tra2;\n this.pre2 = pre2;\n this.fin1 = 0;\n this.fin2 = 0;\n this.total = 0;\n this.alerta = \"\";\n this.promocion = \"\";\n this.total1Bim = 0;\n this.total2Bim = 0;\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 Vente() {\n\t\t//default strategy of sale\n\t\tthis.iVenteStrategy = new VenteFixe();\n\t}", "SpacesInvaders_deplacerVaisseauVersLaGauche createSpacesInvaders_deplacerVaisseauVersLaGauche();", "public Jogador jogadorDaVez() {\r\n Jogador jogadorvez = null;\r\n \r\n if (this.vezDoJogador1 ){\r\n jogadorvez = jogador1; \r\n }else{\r\n jogadorvez = jogador2;\r\n }\r\n return jogadorvez;\r\n }", "Petunia() {\r\n\t\t}", "public ZafRecHum38(Librerias.ZafParSis.ZafParSis obj) {\n try{\n this.objZafParSis = (Librerias.ZafParSis.ZafParSis) obj.clone();\n initComponents();\n objUti = new ZafUtil(); \n \n objTooBar = new mitoolbar(this);\n this.getContentPane().add(objTooBar,\"South\");\n\n this.setTitle(objZafParSis.getNombreMenu()+\" \" + strVersion);\n lblTit.setText(objZafParSis.getNombreMenu()); \n\n }catch(CloneNotSupportedException e) {objUti.mostrarMsgErr_F1(this, e);e.printStackTrace();}\n }", "public Cgg_jur_anticipo(){}", "public void iniciarNovaPartida(Integer posicao);", "public Nodo1Controlador() {\n this.reinit();\n\n }", "@Override\r\n public void actionPerformed(ActionEvent e) {\r\n //-------------------- ASIGNACIONES INICIALES PARA EL COMBATE-------------------\r\n //Aqui se cargan todas las vistas y parametros iniciales, se llenan los label, etc\r\n //Este boton es el de iniciar combate en la vista previa combate\r\n if (vpc.getBotonIniciar() == (JButton) e.getSource()){\r\n try {\r\n creg.guardarAccionUsuario(\"Usuario inicio el combate\");\r\n } catch (IOException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n this.termino = false;\r\n va.agregarListener(this);\r\n ve.agregarListener(this);\r\n this.vc.agregarListener(this);\r\n vpc.setVisible(false);\r\n int Index_inicial1 = vpc.getIndexjC_Inicial1();\r\n int Index_inicial2 = vpc.getIndexjC_Inicial2();\r\n vc.setjL_jugador1(entrenador1.getNombre());\r\n vc.setjL_jugador2(entrenador2.getNombre());\r\n vc.setjL_nombrepokemon1(getEquipo1()[Index_inicial1].getPseudonimo());\r\n vc.setjL_nombrepokemon2(getEquipo2()[Index_inicial2].getPseudonimo());\r\n vc.setjL_especie1(getEquipo1()[Index_inicial1].getNombre_especie());\r\n vc.setjL_especie2(getEquipo2()[Index_inicial2].getNombre_especie());\r\n vc.setjL_nombrepokemon2(vpc.getjC_Inicial2());\r\n vc.setjL_vida_actual1(getEquipo1()[Index_inicial1].getVida_restante(), getEquipo1()[Index_inicial1].getVida());\r\n vc.setjL_vida_actual2(getEquipo2()[Index_inicial2].getVida_restante(), getEquipo2()[Index_inicial2].getVida());\r\n vc.setjL_Nivel1(getEquipo1()[Index_inicial1].getNivel());\r\n vc.setjL_Nivel2(getEquipo2()[Index_inicial2].getNivel());\r\n vc.setjL_distincion1(entrenador1.getDistincion());\r\n vc.setjL_distincion2(entrenador2.getDistincion());\r\n this.turno = 0;\r\n this.pokemon_activo1 = getEquipo1()[Index_inicial1];\r\n this.pokemon_activo2 = getEquipo2()[Index_inicial2];\r\n vc.setVisible(true);\r\n if(tipo_simulacion == 1 || tipo_simulacion == 2){\r\n JOptionPane.showMessageDialog(this.vc, \"Turno\"+\" \"+entrenador1.getNombre(), \"Tu Turno\", JOptionPane.INFORMATION_MESSAGE);\r\n vc.turnoJugador1();\r\n System.out.println(\"Turno\"+\" \"+entrenador1.getNombre());\r\n try {\r\n creg.guardarRegistroSimulacion(\"Turno\"+\" \"+entrenador1.getNombre());\r\n } catch (IOException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n vc.setjL_Turno_actual(entrenador1.getNombre());\r\n }\r\n else{\r\n JOptionPane.showMessageDialog(this.vc, \"Comenzando Simulacion Completa de un Combate Usuario vs Sistema\", \"Comienzo Simulacion\", JOptionPane.INFORMATION_MESSAGE); \r\n vc.turnoSimulacion();\r\n try {\r\n creg.guardarRegistroSimulacion(\"Comenzando simulacion completa usuario vs sistema\");\r\n } catch (IOException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n while (condicionVictoria(getEquipo1(), getEquipo2())==false){\r\n turnoUsuario();\r\n if(termino == true) break;\r\n turnoSistema();\r\n if(termino == true) break;\r\n }\r\n }\r\n \r\n }\r\n // Para cambiar a un equipo personalizado distinto al que se posee para el primer entrenador\r\n if(vpc.getBotonEquipo1()== (JButton) e.getSource()){\r\n try {\r\n creg.guardarAccionUsuario(\"Jugador1 eligió cambiar su equipo por uno personalizado\");\r\n } catch (IOException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n VistaNuevoEquipo vnew = new VistaNuevoEquipo();\r\n try {\r\n int equipo = 1;\r\n ControladorEquipo ce = new ControladorEquipo(vnew, 0, 0, controlador_principal, this, vpc, equipo);\r\n ConexionBD cBD = new ConexionBD();\r\n ArrayList<String> nombres_pokemon = new ArrayList();\r\n nombres_pokemon = cBD.obtenerNombresPokemones();\r\n vnew.setJL_Pokemon1(nombres_pokemon);\r\n vnew.setJL_Pokemon2(nombres_pokemon);\r\n vnew.setJL_Pokemon3(nombres_pokemon);\r\n vnew.setJL_Pokemon4(nombres_pokemon);\r\n vnew.setJL_Pokemon5(nombres_pokemon);\r\n vnew.setJL_Pokemon6(nombres_pokemon);\r\n \r\n } catch (SQLException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n \r\n // Lo mismo pero para el segundo\r\n if(vpc.getBotonEquipo2()== (JButton) e.getSource()){\r\n try {\r\n creg.guardarAccionUsuario(\"Jugador2 eligió cambiar su equipo por uno personalizado\");\r\n } catch (IOException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n VistaNuevoEquipo vnew = new VistaNuevoEquipo();\r\n try {\r\n int equipo = 2;\r\n ControladorEquipo ce = new ControladorEquipo(vnew, 0, 0, controlador_principal, this, vpc, equipo);\r\n ConexionBD cBD = new ConexionBD();\r\n ArrayList<String> nombres_pokemon = new ArrayList();\r\n nombres_pokemon = cBD.obtenerNombresPokemones();\r\n vnew.setJL_Pokemon1(nombres_pokemon);\r\n vnew.setJL_Pokemon2(nombres_pokemon);\r\n vnew.setJL_Pokemon3(nombres_pokemon);\r\n vnew.setJL_Pokemon4(nombres_pokemon);\r\n vnew.setJL_Pokemon5(nombres_pokemon);\r\n vnew.setJL_Pokemon6(nombres_pokemon);\r\n \r\n } catch (SQLException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n \r\n // ----------ACCIONES BOTONES DE ATAQUE------------- \r\n //Boton ataque jugador 1\r\n //Setea la vista para los movimientos del pokemon activo del jugador 1\r\n if (vc.getBotonAtacar1() == (JButton) e.getSource()){\r\n va.activarAtaques();\r\n try {\r\n creg.guardarAccionUsuario(\"Jugador1 eligio atacar\");\r\n } catch (IOException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n for (int i = 0; i < 4; i++) {\r\n if(pokemon_activo1.getMovimientos()[i].getPuntos_poder_restantes() <= 0){\r\n va.desactivarAtaque(i);\r\n }\r\n \r\n }\r\n va.setVistaAtaque(pokemon_activo1);\r\n va.setVisible(true);\r\n \r\n }\r\n //Boton ataque jugador 2\r\n //Setea la vista para los movimientos del pokemon activo del jugador 2\r\n if (vc.getBotonAtacar2() == (JButton) e.getSource()){\r\n va.activarAtaques();\r\n try {\r\n creg.guardarAccionUsuario(\"Jugador2 eligió atacar\");\r\n } catch (IOException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n for (int i = 0; i < 4; i++) {\r\n if(pokemon_activo2.getMovimientos()[i].getPuntos_poder_restantes() <= 0){\r\n va.desactivarAtaque(i);\r\n }\r\n \r\n }\r\n va.setVistaAtaque(pokemon_activo2);\r\n va.setVisible(true);\r\n \r\n }\r\n //-------------ACCIONES DE LOS ATAQUES SELECCIONADOS DESDE EL PRIMERO HASTA EL CUARTO----------\r\n //-------------ACCION ATAQUE 1-------------------- \r\n // Boton para el primer ataque de la lista de movimientos del pokemon seleccionado \r\n if(va.getBotonAtaque1() == (JButton) e.getSource()){\r\n try {\r\n creg.guardarAccionUsuario(\"Usuario eligió atacar con el primer ataque\");\r\n } catch (IOException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n try {\r\n accionAtaques(0);\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n \r\n //---------------------ACCION ATAQUE 2 ------------------\r\n // Boton para el segundo ataque de la lista de movimientos del pokemon seleccionado \r\n if(va.getBotonAtaque2() == (JButton) e.getSource()){\r\n try {\r\n creg.guardarAccionUsuario(\"Usuario eligió atacar con el segundo ataque\");\r\n } catch (IOException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n try {\r\n accionAtaques(1);\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n \r\n //-----------------ACCION ATAQUE 3------------------\r\n // Boton para el tercer ataque de la lista de movimientos del pokemon seleccionado \r\n if(va.getBotonAtaque3() == (JButton) e.getSource()){\r\n try {\r\n creg.guardarAccionUsuario(\"Usuario eligió atacar con el tercer ataque\");\r\n } catch (IOException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n try {\r\n accionAtaques(2);\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n \r\n //-----------------ACCION ATAQUE 4-------------------\r\n // Boton para el cuarto ataque de la lista de movimientos del pokemon seleccionado \r\n if(va.getBotonAtaque4() == (JButton) e.getSource()){\r\n try {\r\n creg.guardarAccionUsuario(\"Usuario eligió atacar con el cuarto ataque\");\r\n } catch (IOException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n try {\r\n accionAtaques(3);\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n \r\n //-----------------ACCIONES BOTONES CAMBIAR---------\r\n //Boton cambiar del primer jugador\r\n if(vc.getBotonCambiar1() == (JButton) e.getSource()){\r\n try {\r\n creg.guardarAccionUsuario(\"Jugador1 eligió cambiar de pokemon\");\r\n } catch (IOException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n ve.activarBotones();\r\n int index = -1;\r\n for (int j = 0; j < getEquipo1().length; j++) {\r\n if(getEquipo1()[j].equals(pokemon_activo1))\r\n index=j; \r\n }\r\n ve.setVistaCambio(getEquipo1(), pokemon_activo1, index);\r\n ve.setVisible(true);\r\n }\r\n //Boton cambiar del segundo jugador \r\n if(vc.getBotonCambiar2() == (JButton) e.getSource()){\r\n try {\r\n creg.guardarAccionUsuario(\"Jugador2 eligió cambiar de pokemon\");\r\n } catch (IOException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n ve.activarBotones();\r\n int index = -1;\r\n for (int j = 0; j < getEquipo2().length; j++) {\r\n if(getEquipo2()[j].equals(pokemon_activo2))\r\n index=j; \r\n }\r\n ve.setVistaCambio(getEquipo2(), pokemon_activo2, index);\r\n ve.setVisible(true);\r\n }\r\n //----------------SELECCION DE CADA POKEMON A CAMBIAR-------------\r\n //----------------CAMBIO POKEMON 1 -------------------------------\r\n //Boton que ejecuta las acciones cuando se selecciona al primer pokemon del equipo para el cambio\r\n if(ve.getBotonPokemon1() == (JButton) e.getSource()){\r\n try {\r\n creg.guardarAccionUsuario(\"Usuario eligio cambiar el pokemon activo por el primero de su lista\");\r\n } catch (IOException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n accionCambios(0);\r\n }\r\n \r\n //----------------CAMBIO POKEMON 2 -------------------------------\r\n //Boton que ejecuta las acciones cuando se selecciona al segundo pokemon del equipo para el cambio\r\n if(ve.getBotonPokemon2() == (JButton) e.getSource()){\r\n try {\r\n creg.guardarAccionUsuario(\"Usuario eligio cambiar el pokemon activo por el segundo de su lista\");\r\n } catch (IOException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n accionCambios(1);\r\n \r\n }\r\n \r\n //----------------CAMBIO POKEMON 3 -------------------------------\r\n //Boton que ejecuta las acciones cuando se selecciona al tercer pokemon del equipo para el cambio\r\n if(ve.getBotonPokemon3() == (JButton) e.getSource()){\r\n try {\r\n creg.guardarAccionUsuario(\"Usuario eligio cambiar el pokemon activo por el tercero de su lista\");\r\n } catch (IOException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n accionCambios(2);\r\n \r\n }\r\n \r\n //----------------CAMBIO POKEMON 4 -------------------------------\r\n //Boton que ejecuta las acciones cuando se selecciona al cuarto pokemon del equipo para el cambio\r\n if(ve.getBotonPokemon4() == (JButton) e.getSource()){\r\n try {\r\n creg.guardarAccionUsuario(\"Usuario eligio cambiar el pokemon activo por el cuarto de su lista\");\r\n } catch (IOException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n accionCambios(3);\r\n \r\n }\r\n \r\n //----------------CAMBIO POKEMON 5 -------------------------------\r\n //Boton que ejecuta las acciones cuando se selecciona al quinto pokemon del equipo para el cambio\r\n if(ve.getBotonPokemon5() == (JButton) e.getSource()){\r\n try {\r\n creg.guardarAccionUsuario(\"Usuario eligio cambiar el pokemon activo por el quinto de su lista\");\r\n } catch (IOException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n accionCambios(4);\r\n \r\n }\r\n //----------------CAMBIO POKEMON 6 -------------------------------\r\n //Boton que ejecuta las acciones cuando se selecciona al sexto pokemon del equipo para el cambio\r\n if(ve.getBotonPokemon6() == (JButton) e.getSource()){\r\n try {\r\n creg.guardarAccionUsuario(\"Usuario eligio cambiar el pokemon activo por el sexto de su lista\");\r\n } catch (IOException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n accionCambios(5);\r\n \r\n }\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n }", "public void extend(){\n\t\tsolenoid1.set(true);\n\t\tsolenoid2.set(true);\n\t}", "public Edificio() {\n leer = new Scanner(System.in);\n int pisoActual = 0;\n System.out.println(\"Dime el piso actual\");\n pisoActual = leer.nextInt();\n PisoActual(pisoActual);\n }", "public void skystonePos2() {\n }", "public Sesiones() {\n\t\tentradasVendidas = 0;\n\t}", "Vaisseau_estOrdonneeCouverte createVaisseau_estOrdonneeCouverte();", "public void inOrden(){\n\t\tPlanta planta= Singleton.GetPlanta();\n\t Arbol <T> aux=null;\n\t if (!vacio()) {\n\t if ((aux=getHijoIzq())!=null) {\n\t aux.inOrden();\n\t } \n\t \n\t planta.out().print(\" \"+this.datoRaiz);\n\t \n\t if ((aux=getHijoDer())!=null){\n\t aux.inOrden();\n\t } \n\t }\n\t}", "public SuperRodada(){\n this.pontos_em_disputa=0;\n this.truco=false;\n this.Desafiante=null;\n this.addPontosEmDisputa(2);\n Game game = Game.getGame();\n DonoDoBaralho=(DonoDoBaralho==null)?game.getDupla(1).getJogadorA():this.proximoAJogar(DonoDoBaralho);\n \n }", "Operacion createOperacion();", "public static void init() {\n driveLeft = new VictorSP(1);\r\n LiveWindow.addActuator(\"Drive\", \"Left\", (VictorSP) driveLeft);\r\n \r\n driveRight = new VictorSP(0);\r\n LiveWindow.addActuator(\"Drive\", \"Right\", (VictorSP) driveRight);\r\n \r\n driveMotors = new RobotDrive(driveLeft, driveRight);\r\n \r\n driveMotors.setSafetyEnabled(false);\r\n driveMotors.setExpiration(0.1);\r\n driveMotors.setSensitivity(0.5);\r\n driveMotors.setMaxOutput(1.0);\r\n\r\n driveEncoderLeft = new Encoder(0, 1, true, EncodingType.k1X);\r\n LiveWindow.addSensor(\"Drive\", \"EncoderLeft\", driveEncoderLeft);\r\n driveEncoderLeft.setDistancePerPulse(0.053855829);\r\n driveEncoderLeft.setPIDSourceType(PIDSourceType.kRate);\r\n driveEncoderRight = new Encoder(2, 3, false, EncodingType.k1X);\r\n LiveWindow.addSensor(\"Drive\", \"EncoderRight\", driveEncoderRight);\r\n driveEncoderRight.setDistancePerPulse(0.053855829);\r\n driveEncoderRight.setPIDSourceType(PIDSourceType.kRate);\r\n driveFrontSonar = new Ultrasonic(4, 5);\r\n LiveWindow.addSensor(\"Drive\", \"FrontSonar\", driveFrontSonar);\r\n \r\n shooterMotor = new VictorSP(3);\r\n LiveWindow.addActuator(\"Shooter\", \"Motor\", (VictorSP) shooterMotor);\r\n \r\n climberMotor = new Spark(2);\r\n LiveWindow.addActuator(\"Climber\", \"Motor\", (Spark) climberMotor);\r\n \r\n gearGrabReleaseSolonoid = new DoubleSolenoid(0, 0, 1);\r\n LiveWindow.addActuator(\"Gear\", \"GrabReleaseSolonoid\", gearGrabReleaseSolonoid);\r\n \r\n powerPanel = new PowerDistributionPanel(0);\r\n LiveWindow.addSensor(\"Power\", \"Panel\", powerPanel);\r\n \r\n cameraMountpan = new Servo(4);\r\n LiveWindow.addActuator(\"CameraMount\", \"pan\", cameraMountpan);\r\n \r\n cameraMounttilt = new Servo(5);\r\n LiveWindow.addActuator(\"CameraMount\", \"tilt\", cameraMounttilt);\r\n \r\n\r\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\r\n\t\tdriveSonarFront = new SonarMB1010(0);\r\n\t\tLiveWindow.addSensor(\"Drive\", \"SonarFront\", driveSonarFront);\r\n\r\n\t\t//driveGyro = new GyroADXRS453();\r\n\t\tdriveGyro = new ADXRS450_Gyro();\r\n\t\tLiveWindow.addSensor(\"Drive\", \"Gyro\", driveGyro);\r\n\t\tdriveGyro.calibrate();\r\n\t}", "OL createOL();", "SpaceInvaderTest_VaisseauAvance_DeplacerVaisseauVersLaGauche createSpaceInvaderTest_VaisseauAvance_DeplacerVaisseauVersLaGauche();", "public IfrViagem() {\n initComponents();\n v = new Viagem();\n criarViagem();\n\n Formatacao.formatarData(ftfDataSaida);\n Formatacao.formatarHora(ftfHoraSaida);\n Formatacao.formatarData(ftfDataRetorno);\n Formatacao.formatarHora(ftfHoraRetorno);\n Formatacao.formatarReal(ftfValorViagem);\n\n }", "public void inicializar(String negocio) {\n\t\t\n\t\tSystem.out.println(\"Estoy incializando...\");\n\t}", "private IOferta buildOfertaEjemplo4() {\n\t\tPredicate<Compra> condicion = Predicates.alwaysTrue();\n\t\tFunction<Compra, Float> descuento = new DescuentoLlevaXPagaY(\"11-111-1111\", 3, 2);\n\t\treturn new OfertaDinero(\"Lleva 3 paga 2 en Coca-Cola\", condicion,\n\t\t\t\tdescuento);\n\t}" ]
[ "0.5683969", "0.56717485", "0.56467324", "0.5589844", "0.5547638", "0.5512832", "0.55000454", "0.5487175", "0.5487175", "0.5487175", "0.5487175", "0.5480327", "0.5465885", "0.5459774", "0.5443907", "0.5441817", "0.54404616", "0.5407822", "0.54006344", "0.539717", "0.5371569", "0.53685415", "0.5365854", "0.5301758", "0.5301636", "0.52926606", "0.5292089", "0.52846396", "0.5267434", "0.5267306", "0.5262937", "0.5255195", "0.5253131", "0.5252111", "0.5250279", "0.52462655", "0.52458996", "0.5244762", "0.52424824", "0.5234712", "0.52294064", "0.52185106", "0.52092534", "0.5195632", "0.51921785", "0.5190688", "0.5186937", "0.51757115", "0.51707", "0.5164744", "0.5155028", "0.51456803", "0.5143957", "0.51423717", "0.5140573", "0.51328045", "0.5127469", "0.5122122", "0.5116899", "0.51147455", "0.5114707", "0.51095974", "0.50958294", "0.5095097", "0.50922763", "0.50835055", "0.5082441", "0.5078143", "0.5076119", "0.50744486", "0.50663143", "0.506546", "0.5064154", "0.5055266", "0.5048759", "0.5048443", "0.5047474", "0.5047162", "0.5047031", "0.50443214", "0.5044276", "0.5043896", "0.5043171", "0.5042339", "0.50322866", "0.50241494", "0.50238895", "0.50222516", "0.5021034", "0.5020117", "0.5019697", "0.5016553", "0.50128067", "0.501222", "0.50091517", "0.5008656", "0.5004078", "0.50038207", "0.50023", "0.49977848" ]
0.7081059
0
Metodo que agrega el contenido de los campos a un StringBuffer y los separa con "," para generar un encabezado CVS.
public StringBuffer toStringCSV( Date fechaCierre ) { StringBuffer respuesta = new StringBuffer(); final String COMA = ","; SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy"); //llenar el string buffer respuesta.append(this.numContrato != null ? this.numContrato : ""); respuesta.append(COMA); respuesta.append(this.producto != null ? this.producto : ""); respuesta.append(COMA); respuesta.append(fechaCierre != null ? sdf.format(fechaCierre) : "Fecha Invalida"); //Dia Pago respuesta.append(COMA); respuesta.append(this.numGrupo != null ? this.numGrupo : ""); respuesta.append(COMA); respuesta.append(this.nombreGrupo != null ? this.nombreGrupo : ""); respuesta.append(COMA); respuesta.append(this.pagadoCapital != null ? this.pagadoCapital.doubleValue() : 0.0d); respuesta.append(COMA); respuesta.append(this.pagadoInteres != null ? this.pagadoInteres.doubleValue() : 0.0d ); respuesta.append(COMA); this.pagadoCapital = this.pagadoCapital != null ? this.pagadoCapital : 0.0d; this.pagadoInteres = this.pagadoInteres != null ? this.pagadoInteres : 0.0d; respuesta.append(this.pagadoCapital.doubleValue() + this.pagadoInteres.doubleValue() ); //Pagado Total respuesta.append(COMA); respuesta.append(this.codigoSucursal != null ? this.codigoSucursal : ""); respuesta.append(COMA); respuesta.append(this.nombreSucursal != null ? this.nombreSucursal : ""); respuesta.append(COMA); respuesta.append(this.parcialidad != null ? this.parcialidad : "" ); respuesta.append( "\n" ); return respuesta; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getCSVString() {\n StringBuilder builder = new StringBuilder();\n\n // key / value header\n builder.append(\"key,\\tvalue\");\n builder.append(System.getProperty(\"line.separator\").toString());\n\n // key / value pairs\n for (Entry<String, String> entry : results.entrySet()) {\n builder.append(entry.getKey());\n builder.append(\",\");\n builder.append(entry.getValue());\n builder.append(System.getProperty(\"line.separator\").toString());\n }\n\n builder.deleteCharAt(builder.length() - 1);\n return builder.toString();\n }", "String toCSVString();", "private String array2CSV(){\r\n String returnMsg = \"\";\r\n for(String[] line : this.linesToPrint){\r\n for(String item : line){\r\n returnMsg += item;\r\n returnMsg += \";\";\r\n }\r\n returnMsg = returnMsg.substring(0,returnMsg.length()-1);\r\n returnMsg += \"\\n\";\r\n }\r\n return returnMsg;\r\n }", "public String devolver_campos_concatenados(){\n String dato_concatenado=\"\";\n campos_concaenados=\" \";\n for (int j=0;j<numero_campos;j++){\n if(j==numero_campos-1){\n dato_concatenado=campos[j];\n }else{\n dato_concatenado=campos[j]+\", \";\n }\n campos_concaenados=campos_concaenados+dato_concatenado;\n }\n \n return campos_concaenados;\n }", "public String getCSVString() {\n return getId() + \",\" + noOfRounds + \",\" + caliber + \",\" + manufacturer + \",\" + price;\n }", "CSV createCSV();", "public void createCsvString(StringBuilder builder, RolePrevilige e) {\r\n\r\n\t\tbuilder.append(\"\\\"\" + (e.getEdit() != null ? e.getEdit() : \"\") + \"\\\",\");\r\n\r\n\t\tbuilder.append(\"\\\"\" + (e.getView() != null ? e.getView() : \"\") + \"\\\",\");\r\n\r\n\t\tbuilder.append(\"\\\"\"\r\n\t\t\t\t+ (e.getAppRole() != null ? e.getAppRole().getDisplayName()\r\n\t\t\t\t\t\t.replace(\",\", \"\") : \"\") + \"\\\",\");\r\n\r\n\t\tbuilder.append(\"\\\"\"\r\n\t\t\t\t+ (e.getFieldPrevilige() != null ? e.getFieldPrevilige()\r\n\t\t\t\t\t\t.getDisplayName().replace(\",\", \"\") : \"\") + \"\\\",\");\r\n\r\n\t\tbuilder.append(\"\\r\\n\");\r\n\t}", "private String concatFields()\n {\n String concatedFields = \"\";\n Integer intChecker;\n String strChecker;\n Double doubleChecker;\n \n concatedFields += ( (intChecker = getCodigo()) == null ? \"\" : intChecker ) + \" \";\n concatedFields += ( (strChecker = getNome()) == null ? \"\" : strChecker ) + \" \";\n concatedFields += ( (strChecker = getSigla()) == null ? \"\" : strChecker ) + \" \";\n concatedFields += ( (intChecker = getCodigoMantenedora()) == null ? \"\" : intChecker ) + \" \";\n concatedFields += ( (strChecker = getMantenedora()) == null ? \"\" : strChecker ) + \" \";\n concatedFields += ( (intChecker = getCategoria()) == null ? \"\" : intChecker ) + \" \";\n concatedFields += ( (intChecker = getOrganizacao()) == null ? \"\" : intChecker ) + \" \";\n concatedFields += ( (intChecker = getCodigoMunicipio()) == null ? \"\" : intChecker ) + \" \";\n concatedFields += ( (strChecker = getMunicipio()) == null ? \"\" : strChecker ) + \" \";\n concatedFields += ( (strChecker = getUf()) == null ? \"\" : strChecker ) + \" \";\n concatedFields += ( (strChecker = getRegiao()) == null ? \"\" : strChecker ) + \" \";\n concatedFields += ( (intChecker = getTecnico()) == null ? \"\" : intChecker ) + \" \";\n concatedFields += ( (intChecker = getPeriodico()) == null ? \"\" : intChecker ) + \" \";\n concatedFields += ( (intChecker = getLivro()) == null ? \"\" : intChecker ) + \" \";\n concatedFields += ( (doubleChecker = getReceita()) == null ? \"\" : doubleChecker ) + \" \";\n concatedFields += ( (doubleChecker = getTransferencia()) == null ? \"\" : doubleChecker ) + \" \";\n concatedFields += ( (doubleChecker = getOutraReceita()) == null ? \"\" : doubleChecker ) + \" \";\n concatedFields += ( (doubleChecker = getDespesaDocente()) == null ? \"\" : doubleChecker ) + \" \";\n concatedFields += ( (doubleChecker = getDespesaTecnico()) == null ? \"\" : doubleChecker ) + \" \";\n concatedFields += ( (doubleChecker = getDespesaEncargo()) == null ? \"\" : doubleChecker ) + \" \";\n concatedFields += ( (doubleChecker = getDespesaCusteio()) == null ? \"\" : doubleChecker ) + \" \";\n concatedFields += ( (doubleChecker = getDespesaInvestimento()) == null ? \"\" : doubleChecker ) + \" \";\n concatedFields += ( (doubleChecker = getDespesaPesquisa()) == null ? \"\" : doubleChecker ) + \" \";\n concatedFields += ( (doubleChecker = getDespesaOutras()) == null ? \"\" : doubleChecker ) + \" \";\n \n return new MyString(concatedFields).removeLastChar().toString();\n }", "public String returnAll(String delim)\n {\n String CSV = this.repID + delim +this.plantRegistry + delim +this.domesticOrImported + delim +this.serialNumber + delim +this.beverageType + delim\n +this.brandName + delim +this.fancifulName + delim + this.vintage + delim +this.grapeVarietals\n + this.pHValue + delim + this.wineAppellation + delim + this.alcoholContent+ delim + this.phoneNumber+ delim +\n this.email + \"\\n\";\n return CSV;\n }", "public String getCSVData()\n {\n return (Integer.toString(this.getID()) + \",\" +\n this.getName());\n }", "public static String getTableDataInCSVFormat(final TableModel inputTableModel) {\r\n\t\t\r\n\t\tfinal StringBuffer output = new StringBuffer();\r\n\t\tfinal int totalRows = inputTableModel.getRowCount();\r\n\t\tfinal int totalColumns = inputTableModel.getColumnCount();\r\n\t\t\r\n\t\tif (totalRows < 1) {\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\r\n\t\tfor (int currentRow = 0; currentRow < totalRows; currentRow++) {\r\n\r\n\t\t\tfor (int currentColumn = 0; currentColumn < totalColumns; currentColumn++) {\r\n\t\t\t\toutput.append(inputTableModel.getValueAt(currentRow, currentColumn));\r\n\t\t\t\t// Append a ',' but not for the last value\r\n\t\t\t\tif (currentColumn != totalColumns - 1) {\r\n\t\t\t\t\toutput.append(',');\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Append a new line, but not for the last line\r\n\t\t\tif (currentRow != totalRows - 1) {\r\n\t\t\t\toutput.append('\\n');\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\treturn output.toString();\r\n\r\n\t}", "String[] toCSV() throws Exception;", "@Override\n\tprotected String objectToCSVRecord(Object object) {\n\t\tStringBuilder str = new StringBuilder();\n\t\tstr.append(((Customer) object).getCustomerId());\n\t\tstr.append(\",\");\n\t\tstr.append(((Customer) object).getCustomerName());\n\t\tstr.append(\",\");\n\t\tstr.append(((Customer) object).getCustomerAddress());\n\t\tstr.append(\",\");\n\t\tstr.append(((Customer) object).getCustomeremail());\n \tString one=str.toString();\n \treturn one;\n\t}", "public String prepareData() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (Ship s: ships) {\n\t\t\tsb.append(s.prepareData());\n\t\t\tsb.append(System.lineSeparator());\n\t\t}\n\t\tsb.append(DELIMITER);\n\t\treturn sb.toString();\n\t}", "public StringBuffer toStringBuffer()\r\n\t{\r\n\t\tStringBuffer stringSuperficie = new StringBuffer(\"\");\r\n\t\tfor(int i = 0; i < this.casillas.getFila(); i++)\r\n\t\t{\r\n\t\t\tfor(int j = 0; j < this.casillas.getCol(); j++)\r\n\t\t\t{\r\n\t\t\t\tif(this.queCelulaHay(new Casilla(i,j)) != ES_VACIA)\r\n\t\t\t\t\tstringSuperficie.append(\" \" + this.superficie[i][j].toStringBuffer() + \" \");\r\n\t\t\t\telse\r\n\t\t\t\t\tstringSuperficie.append(\" - \");\r\n\t\t\t}\r\n\t\t\tstringSuperficie.append(\"\\n\");\r\n\t\t}\r\n\t\treturn stringSuperficie;\r\n\t}", "private String getValues()\n\t{\n\t\tString values = \"(\";\n\t\tfor(int spot = 0; spot < fieldList.size(); spot++)\n\t\t{\n\t\t\tvalues += \"'\" + fieldList.get(spot).getText() + \"'\";\n\t\t\tif(spot == fieldList.size()-1)\n\t\t\t{\n\t\t\t\tvalues += \");\";\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tvalues += \", \";\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn values;\n\t}", "private static String generateCRString (CRType<?> cr) {\r\n\t\tString res = \"\";\r\n\t\tif (cr.getAU_A() == null) {\r\n\t\t\tif (cr.getAU_L() != null) res += cr.getAU_L() + \", \" + cr.getAU_F().replaceAll(\"([A-Z])\", \"$1.\"); \r\n\t\t} else {\r\n\t\t\tres += cr.getAU_A().replaceAll(\";\", \",\");\r\n\t\t}\r\n\t\tres += \",\";\r\n\t\tif (cr.getTI() != null)\tres += cr.getTI();\r\n\t\tif (cr.getRPY() != null) res += \" (\" + cr.getRPY() + \") \";\r\n\t\tif (cr.getJ_N() != null) res += cr.getJ_N();\r\n\t\tif (cr.getVOL() != null) res += \", \" + cr.getVOL();\r\n\t\tif (cr.getPAG() != null) res += \", pp.\" + cr.getPAG();\r\n\t\tif (cr.getDOI() != null) res += \", DOI \" + cr.getDOI();\r\n\r\n\t\treturn res;\r\n\t}", "public String generateStringCamposFiltro() {\r\n\t\treturn inicializarCamposComunes();\r\n\t}", "private StringBuffer appendColumnString(StringBuffer newLine, int columnIndex, Object plaintext) {\n if (columnIndex != 0){\n newLine.append(\";\");\n }\n newLine.append(plaintext.toString());\n return newLine;\n }", "public StringBuilder out()\n {\n\t\tStringBuilder out = new StringBuilder(); //the data to be outputed\n\n\t\tfor (food foodStuff: items) //for each element in items do the following\n\t\t{\n\t\t\t//turns an entry into a single line\n\t\t\tout.append(\"2,\"); \t\t//sets the line's id\n\t\t\tout.append(foodStuff.getName()+\",\");\t\t//sets the line's name\n\n\t\t\tif(foodStuff.getTxtFile() != null) //if the food has a file object\n\t\t\t{\n\t\t\t\t//convert the file into a path string\n\t\t\t\tout.append(foodStuff.getTxtFile().getPath()+\",\");\n\t\t\t\t//NOTE because these path names exist outside of the app\n\t\t\t\t// this will prevent them from being mobile\n\t\t\t}\n\t\t\telse //if the food has a file path\n\t\t\t\tout.append(foodStuff.getFile()+\",\"); \t//sets the line's file path\n\t\t\tout.append(foodStuff.getIngredients()+\",\"); //sets the line's ingrds.\n\t\t\tout.append(foodStuff.getImage()+\",\"); \t\t//sets the line's image path\n\t\t\tout.append(\"\\n\"); //add a newline before the next line\n\t\t}\n\t\treturn out; //return the built CSV chunk\n }", "public String[] toCsv();", "public void createCsvString(StringBuilder builder, Category e) {\r\n\r\n\t\tbuilder.append(\"\\\"\"\r\n\t\t\t\t+ (e.getName() != null ? e.getName().replace(\",\", \"\") : \"\")\r\n\t\t\t\t+ \"\\\",\");\r\n\r\n\t\tbuilder.append(\"\\r\\n\");\r\n\t}", "protected String exportString(JComponent c) {\r\n\t\t JTable table = (JTable) c;\r\n\t\t rows = table.getSelectedRows();\r\n\t\t int colCount = table.getColumnCount();\r\n\r\n\t\t StringBuffer buff = new StringBuffer();\r\n\r\n\t\t for (int i = 0; i < rows.length; i++) \r\n\t\t {\r\n\t\t for (int j = 0; j < colCount; j++) \r\n\t\t {\r\n\t\t Object val = table.getValueAt(rows[i], j);\r\n\t\t buff.append(val == null ? \"\" : val.toString());\r\n\t\t if (j != colCount - 1) {\r\n\t\t buff.append(\",\");\r\n\t\t }\r\n\t\t }\r\n\t\t if (i != rows.length - 1) {\r\n\t\t buff.append(\"\\n\");\r\n\t\t }\r\n\t\t }\r\n\r\n\t\t return buff.toString();\r\n\t\t }", "private static String buildStringFromCursor(Cursor dbCursor)\n {\n String writeString = \"\";\n int columnCount = dbCursor.getColumnCount();\n\n for(int count = 0; count < columnCount; count++)\n {\n writeString += dbCursor.getString(count);\n if(count < columnCount - 1)\n {\n writeString += \"\\t\";\n }\n else\n {\n writeString += \"\\n\";\n }\n }\n return writeString;\n }", "public String stringSelectCamposComFiltro(ArrayList<String> camposDaTabela,\n String retornoStringSelectTabelaComFiltro) {\n\n String comandoSelect = \"\";\n comandoSelect = retornoStringSelectTabelaComFiltro;\n String campos = \"\";\n\n for (int n = 0; n < camposDaTabela.size(); n++) {\n if (n != camposDaTabela.size() - 1) {\n campos += camposDaTabela.get(n) + \", \";\n\n } else {\n campos += camposDaTabela.get(n);\n }\n }\n\n String replaceCampos = comandoSelect.replace(\"*\", campos);\n\n return replaceCampos;\n }", "public static String csvFormat(RowData data, RowData.FieldGetter[] fieldGetters,\n Map<String, String> labels, String fieldDelimiter) {\n StringJoiner result = csvFormatForLabels(labels, fieldDelimiter);\n for (int i = 0; i < data.getArity(); i++) {\n Object value = fieldGetters[i].getFieldOrNull(data);\n result.add(value != null ? value.toString() : NULL_VALUE);\n }\n return result.toString();\n }", "public String toCsvRow() {\r\n\t return Stream.of(String.valueOf(TxnsRefNo),Description)\r\n\t .map(value -> value.replaceAll(\"\\\"\", \"\\\"\\\"\"))\r\n\t .map(value -> Stream.of(\"\\\"\", \",\").anyMatch(value::contains) ? \"\\\"\" + value + \"\\\"\" : value)\r\n\t .collect(Collectors.joining(\",\"));\r\n\t}", "public String writeDetails ()\n {\n String memberData = \"\";\n memberData = memberData.concat(fname);\n memberData = memberData.concat(\",\");\n memberData = memberData.concat(sname);\n memberData = memberData.concat(\",\");\n memberData = memberData.concat(Float.toString(mark));\n return memberData;\n }", "@Override\n\tprotected String objectToCSVRecord(Object object) {\n\t\tStringBuilder str = new StringBuilder();\n\t\tstr.append(((Item) object).getItemno());\n\t\tstr.append(\",\");\n\t\tstr.append(((Item) object).getItemName());\n\t\tstr.append(\",\");\n\t\tstr.append(((Item) object).getUnitPrice());\n\t\tstr.append(\",\");\n \tString one=str.toString();\n \treturn one;\n\t\t\n\t\t \n\t}", "private void miSalvareActionPerformed(java.awt.event.ActionEvent evt) { \n if (!model.isEmpty()) {\n int response = JOptionPane.showConfirmDialog(this, \"Doriti sa salvati lista de contacte?\", \"Salvare\", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE);\n if (response == JOptionPane.YES_OPTION) {\n try {\n JFileChooser chooser = new JFileChooser();\n chooser.showSaveDialog(this);\n File list = new File(chooser.getSelectedFile().getAbsolutePath() + \".csv\");\n PrintWriter writer = new PrintWriter(list);\n StringBuilder sb = new StringBuilder();\n\n sb.append(\"Nume\");\n sb.append(\",\");\n sb.append(\"Prenume\");\n sb.append(\",\");\n sb.append(\"Data nasterii\");\n sb.append(\",\");\n sb.append(\"Numar Telefon\");\n sb.append(\",\");\n sb.append(\"\\r\\n\");\n\n listaContacte.stream().map((c) -> {\n sb.append(c.getNume());\n return c;\n }).map((c) -> {\n sb.append(\",\");\n sb.append(c.getPrenume());\n return c;\n }).map((c) -> {\n sb.append(\",\");\n String dataNasterii[] = c.getDataNasterii().toString().split(\"-\");\n String a = dataNasterii[0];\n String l = dataNasterii[1];\n String z = dataNasterii[2];\n String dt = z + \".\" + l + \".\" + a;\n sb.append(dt);\n sb.append(\",\");\n sb.append(c.getNrTel().toString());\n return c;\n }).forEachOrdered((_item) -> {\n sb.append(\"\\r\\n\");\n });\n\n writer.write(sb.toString());\n writer.close();\n\n } catch (FileNotFoundException ex) {\n Logger.getLogger(MainForm.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }\n }", "private String getFields()\n\t{\n\t\tString fields = \"(\";\n\t\t\n\t\tfor(int spot = 0; spot < fieldList.size(); spot++)\n\t\t{\n\t\t\tfields += \"`\" + fieldList.get(spot).getName() + \"`\";\n\t\t\tif(spot == fieldList.size()-1)\n\t\t\t{\n\t\t\t\tfields += \")\";\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tfields += \", \";\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn fields;\n\t}", "public String[] camposDivididos(){\r\nString[] args=column().split(\"[,]\");\r\nreturn args;\r\n //return Arrays.toString(args);\r\n}", "private String produceSQL(String[] cols) {\n StringBuffer buffer = new StringBuffer();\n buffer.append('(');\n buffer.append(cols[0]);\n\n for (int i = 1; i < cols.length; i++){\n buffer.append(',');\n buffer.append(cols[i]);\n }\n buffer.append(')');\n return buffer.toString();\n }", "private String formatCSV(String value){\r\n\t\treturn value.replaceAll(\"\\\"\",\"\\\"\\\"\");\r\n\t}", "protected String finalizarGenerateStringCamposFiltro(String listCamposFiltro){\r\n\t\t//Eliminamos la ultima coma y espacio introducidos.\r\n\t\tif(listCamposFiltro != \"\"){\r\n\t\t\tlistCamposFiltro = listCamposFiltro.substring(0, listCamposFiltro.length()-2);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tlistCamposFiltro = null; //Devolvemos null si no hay ningun filtro introducido\r\n\t\t}\r\n\r\n\t\tsetCamposFiltro(listCamposFiltro);\r\n\t\treturn listCamposFiltro;\r\n\t}", "public void createCsvString(StringBuilder builder, DxTest e) {\r\n\r\n\t\tbuilder.append(\"\\\"\"\r\n\t\t\t\t+ (e.getName() != null ? e.getName().replace(\",\", \"\") : \"\")\r\n\t\t\t\t+ \"\\\",\");\r\n\r\n\t\tbuilder.append(\"\\\"\"\r\n\t\t\t\t+ (e.getDescription() != null ? e.getDescription().replace(\",\",\r\n\t\t\t\t\t\t\"\") : \"\") + \"\\\",\");\r\n\r\n\t\tbuilder.append(\"\\r\\n\");\r\n\t}", "public String toEncryptedString() {\r\n\t\t\r\n\t\t// puts the optional fields as \"??\" if they were blanks.\r\n\t\tif(this.getAddress().length()==0)\r\n\t\t\tthis.setAddress(\"??\");\r\n\t\t\r\n\t\tif(this.getCity().length()==0)\r\n\t\t\tthis.setCity(\"??\");\t\t\r\n\t\t\r\n\t\t// encrypt contact info.\r\n\t\tString line = Method.encrypt(this.getLastName(), true)+\",\"\r\n\t\t\t+Method.encrypt(this.getFirstName(),true)+\",\"\r\n\t\t\t+Method.encrypt(this.getAddress(),true)+\",\"\r\n\t\t\t+Method.encrypt(this.getCity(),true)+\",\"\r\n\t\t\t+Method.encrypt(this.getPhoneNumber(),true);\r\n\t\t\r\n\t\treturn line;\r\n\t}", "public String toFileString()\n {\n return ( cyl + \",\" + fuel );\n }", "private void openCsvDialog(){\n JFileChooser aFileChooser = new JFileChooser();\n aFileChooser.setFileFilter(new MyFileFilterCSV());\n if (lastUsedFileCSV != null){\n aFileChooser.setCurrentDirectory(lastUsedFileCSV.getParentFile());\n aFileChooser.setSelectedFile(lastUsedFileCSV);\n }else{\n File file = new File(aFileChooser.getCurrentDirectory(), dataset.getName()+\".csv\");\n aFileChooser.setSelectedFile(file);\n }\n int r = aFileChooser.showSaveDialog(this);\n if (r == JFileChooser.APPROVE_OPTION){\n setCursor(new Cursor(Cursor.WAIT_CURSOR));\n File file = aFileChooser.getSelectedFile();\n if(!MyUtilities.isCSVFile(file)){\n file = MyUtilities.getCSVFile(file);\n }\n lastUsedFileCSV = file;\n String sep = getCSVSeparator();\n PrintWriter writer = null;\n try{\n writer = new PrintWriter(new BufferedWriter (new OutputStreamWriter(new FileOutputStream(file), \"utf-8\")));\n // header\n String s = \"\";\n for(int j=0; j<dataset.getListDataHeader().length; j++){\n s += dataset.getListDataHeader()[j] == null? \"\" : dataset.getListDataHeader()[j].getValue();\n if(j <dataset.getListDataHeader().length -1)\n s+= sep;\n }\n writer.println(s);\n // data\n Data[][] data = dataset.getData();\n int nbR = dataset.getNbRows();\n int nbC = dataset.getNbCol();\n for(int i=0; i<nbR; i++){\n s = \"\";\n for(int j=0; j<nbC; j++){\n if(data[i][j] != null){\n if(data[i][j].isDoubleValue()){\n if(!Double.isNaN(data[i][j].getDoubleValue()))\n s += NumberFormat.getNumberInstance(getLocale()).format(data[i][j].getDoubleValue());\n }else{\n s += data[i][j].getValue();\n }\n }\n if(j <nbC -1)\n s+= sep;\n }\n writer.println(s);\n }\n //log\n\t\tdataProcessToolPanel.logExportCSV(dataset, file.getPath());\n }catch (IOException e){\n setCursor(new Cursor(Cursor.DEFAULT_CURSOR));\n displayError(new CopexReturn(getBundleString(\"MSG_ERROR_CSV\"), false), getBundleString(\"TITLE_DIALOG_ERROR\"));\n }\n finally{\n if (writer != null)\n try{\n writer.close();\n setCursor(new Cursor(Cursor.DEFAULT_CURSOR));\n }catch (Exception e){\n setCursor(new Cursor(Cursor.DEFAULT_CURSOR));\n displayError(new CopexReturn(getBundleString(\"MSG_ERROR_CSV\"), false), getBundleString(\"TITLE_DIALOG_ERROR\"));\n }\n }\n }\n }", "private String buildOutput() {\n\t\tStringBuilder out = new StringBuilder();\n\t\tfor (char[] col : this.output) {\n\t\t\tfor (char c : col) {\n\t\t\t\tout.append(c);\n\t\t\t}\n\t\t\tout.append(\"\\n\");\n\t\t}\n\n\t\treturn out.toString();\n\t}", "public static String formatarCampoParaConcatenacao(Object parametro) {\r\n\t\tif (parametro == null) {\r\n\t\t\treturn \"|\";\r\n\t\t} else {\r\n\t\t\treturn parametro + \"|\";\r\n\t\t}\r\n\t}", "public static java.lang.CharSequence escapeCsv(java.lang.CharSequence r13, boolean r14) {\n /*\n java.lang.String r0 = \"value\"\n java.lang.Object r0 = p043io.netty.util.internal.ObjectUtil.checkNotNull(r13, r0)\n java.lang.CharSequence r0 = (java.lang.CharSequence) r0\n int r0 = r0.length()\n if (r0 != 0) goto L_0x000f\n return r13\n L_0x000f:\n int r1 = r0 + -1\n r2 = 0\n r3 = 1\n if (r14 == 0) goto L_0x0030\n int r14 = indexOfFirstNonOwsChar(r13, r0)\n if (r14 != r0) goto L_0x001e\n java.lang.String r13 = \"\"\n return r13\n L_0x001e:\n int r4 = indexOfLastNonOwsChar(r13, r14, r0)\n if (r14 > 0) goto L_0x0029\n if (r4 >= r1) goto L_0x0027\n goto L_0x0029\n L_0x0027:\n r1 = 0\n goto L_0x002a\n L_0x0029:\n r1 = 1\n L_0x002a:\n if (r1 == 0) goto L_0x0033\n int r0 = r4 - r14\n int r0 = r0 + r3\n goto L_0x0033\n L_0x0030:\n r4 = r1\n r14 = 0\n r1 = 0\n L_0x0033:\n java.lang.StringBuilder r5 = new java.lang.StringBuilder\n int r6 = r0 + 7\n r5.<init>(r6)\n char r6 = r13.charAt(r14)\n boolean r6 = isDoubleQuote(r6)\n if (r6 == 0) goto L_0x0052\n char r6 = r13.charAt(r4)\n boolean r6 = isDoubleQuote(r6)\n if (r6 == 0) goto L_0x0052\n if (r0 == r3) goto L_0x0052\n r0 = 1\n goto L_0x0053\n L_0x0052:\n r0 = 0\n L_0x0053:\n r2 = r14\n r6 = 0\n r7 = 0\n L_0x0056:\n if (r2 > r4) goto L_0x009d\n char r8 = r13.charAt(r2)\n r9 = 10\n if (r8 == r9) goto L_0x0096\n r9 = 13\n if (r8 == r9) goto L_0x0096\n r9 = 34\n if (r8 == r9) goto L_0x006d\n r9 = 44\n if (r8 == r9) goto L_0x0096\n goto L_0x0097\n L_0x006d:\n if (r2 == r14) goto L_0x0091\n if (r2 != r4) goto L_0x0072\n goto L_0x0091\n L_0x0072:\n int r10 = r2 + 1\n char r11 = r13.charAt(r10)\n boolean r11 = isDoubleQuote(r11)\n int r12 = r2 + -1\n char r12 = r13.charAt(r12)\n boolean r12 = isDoubleQuote(r12)\n if (r12 != 0) goto L_0x0097\n if (r11 == 0) goto L_0x008c\n if (r10 != r4) goto L_0x0097\n L_0x008c:\n r5.append(r9)\n r6 = 1\n goto L_0x0097\n L_0x0091:\n if (r0 != 0) goto L_0x009a\n r5.append(r9)\n L_0x0096:\n r7 = 1\n L_0x0097:\n r5.append(r8)\n L_0x009a:\n int r2 = r2 + 1\n goto L_0x0056\n L_0x009d:\n if (r6 != 0) goto L_0x00ae\n if (r7 == 0) goto L_0x00a4\n if (r0 != 0) goto L_0x00a4\n goto L_0x00ae\n L_0x00a4:\n if (r1 == 0) goto L_0x00ad\n if (r0 == 0) goto L_0x00ac\n java.lang.StringBuilder r5 = quote(r5)\n L_0x00ac:\n return r5\n L_0x00ad:\n return r13\n L_0x00ae:\n java.lang.StringBuilder r13 = quote(r5)\n return r13\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p043io.netty.util.internal.StringUtil.escapeCsv(java.lang.CharSequence, boolean):java.lang.CharSequence\");\n }", "@Override\n public String toString() {\n // [Durga,CEO,30000.00,Hyderabad, THEJA,COO,29000.00,Bangalore]\n // String string = String.format(\"%s,%s,%.2f,%s\", name, designation, salary, city);\n String string = String.format(\"(%s,%s,%.2f,%s)\", name, designation, salary, city);\n return string;\n }", "public static String toCSV(String[][] table){\n\n\t\tif(table == null || table.length == 0){\n\t\t\treturn \"null\";\n\t\t}\n\t\t\n\t\t\n\t\tStringBuilder str = new StringBuilder();\n\n\t\tfor(int rows = 0; rows < table.length; rows++){\n\t\t\tfor(int columns = 0; columns < table[0].length; columns++){\n\t\t\t\tstr.append(\"'\"+table[rows][columns]+\"'\");\n\t\t\t\t\n\t\t\t\tif(columns < table[0].length-1){\n\t\t\t\t\tstr.append(',');\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\n\t\t\tstr.append(\"\\n\");\n\t\t}\n\n\t\treturn str.toString();\n\t}", "public static String toCSVString(String[][] table){\n\n\t\tif(table == null || table.length == 0){\n\t\t\treturn \"null\";\n\t\t}\n\t\t\n\t\tStringBuilder str = new StringBuilder();\n\n\t\tfor(int rows = 0; rows < table.length; rows++){\n\t\t\tfor(int columns = 0; columns < table[0].length; columns++){\n\t\t\t\tstr.append(table[rows][columns]+\"\\t\");\n\t\t\t}\n\n\t\t\tstr.append(\"\\n\");\n\t\t}\n\n\t\treturn str.toString();\n\t}", "@Override\n\tprotected String getParameterizedFields()\n\t{\n\t\tString fields = \" HBLNM=?, HBCFR=?, HBCFL=?, HBRNM=?, HBDLM=? \";\n\t\treturn fields;\n\t}", "public void createCSV() {\n\t\t// Need to integrate CSV calling logic\n\t}", "private String commaDelimited(String strs[]) {\n StringBuffer sb = new StringBuffer();\n if (strs.length > 0) {\n sb.append(Utils.encToURL(strs[0]));\n for (int i=1;i<strs.length;i++) sb.append(\",\" + Utils.encToURL(strs[i]));\n }\n return sb.toString();\n }", "protected String inicializarCamposComunes() {\r\n\t\tString listCamposFiltro = \"\";\r\n\r\n\t\tif(getId() != null){\r\n\t\t\tlistCamposFiltro = listCamposFiltro.concat(\"Id\").concat(\", \");\r\n\t\t}\r\n\t\tif(getObservaciones() != null && getObservaciones().length() >0){\r\n\t\t\tlistCamposFiltro = listCamposFiltro.concat(\"Observaciones\").concat(\", \");\r\n\t\t}\r\n\t\tif(getActivo() != null && getActivo().length() > 0){\r\n\t\t\tlistCamposFiltro = listCamposFiltro.concat(\"Activo [\").concat(getActivo()).concat(\"], \");\r\n\t\t}\r\n\t\tif(getFechaBajaDesde() != null){\r\n\t\t\tlistCamposFiltro = listCamposFiltro.concat(\"Fecha Baja Desde\").concat(\", \");\r\n\t\t}\r\n\t\tif(getFechaBajaHasta() != null){\r\n\t\t\tlistCamposFiltro = listCamposFiltro.concat(\"Fecha Baja Hasta\").concat(\", \");\r\n\t\t}\r\n\t\tif(getFechaAltaDesde() != null){\r\n\t\t\tlistCamposFiltro = listCamposFiltro.concat(\"Fecha Alta Desde\").concat(\", \");\r\n\t\t}\r\n\t\tif(getFechaAltaHasta() != null){\r\n\t\t\tlistCamposFiltro = listCamposFiltro.concat(\"Fecha Alta Hasta\").concat(\", \");\r\n\t\t}\r\n\r\n\t\treturn listCamposFiltro;\r\n\t}", "private StringBuffer removeCommasAtEnd(StringBuffer sql) {\r\n int i=sql.length()-3;\r\n while(i>0 && (sql.charAt(i)==' ' || sql.charAt(i)==','))\r\n i--;\r\n sql = sql.replace(i+1,sql.length()-2,\" \");\r\n\r\n return sql;\r\n }", "public String toString() {\n\t\t//TODO add your own field name here\t\t\n\t\t//return buffer.append(this.yourFieldName).toString();\n\t\treturn \"\";\n\t}", "@Override\n public String toString(){\n String result = chapVerse.toString() + \"\\t\\t\";\n String comm = \"\";\n for (SermCit blah : citations){\n result += comm + blah;\n comm = \", \";\n }\n return result;\n }", "public void buildCsvFormatData(List<BulkRequestItem> exceptionBulkRequestItems, StringBuilder csvFormatDataBuilder) {\n for (BulkRequestItem bulkRequestItem : exceptionBulkRequestItems) {\n csvFormatDataBuilder.append(\"\\n\");\n csvFormatDataBuilder.append(bulkRequestItem.getItemBarcode()).append(\",\");\n csvFormatDataBuilder.append(bulkRequestItem.getCustomerCode()).append(\",\");\n csvFormatDataBuilder.append(bulkRequestItem.getRequestId()).append(\",\");\n csvFormatDataBuilder.append(bulkRequestItem.getRequestStatus()).append(\",\");\n csvFormatDataBuilder.append(StringEscapeUtils.escapeCsv(bulkRequestItem.getStatus()));\n }\n }", "public void createCsvString(StringBuilder builder, Frequency e) {\r\n\r\n\t\tbuilder.append(\"\\\"\"\r\n\t\t\t\t+ (e.getName() != null ? e.getName().replace(\",\", \"\") : \"\")\r\n\t\t\t\t+ \"\\\",\");\r\n\r\n\t\tbuilder.append(\"\\\"\"\r\n\t\t\t\t+ (e.getQtyPerDay() != null ? e.getQtyPerDay() : \"\") + \"\\\",\");\r\n\r\n\t\tbuilder.append(\"\\r\\n\");\r\n\t}", "public void dataFileCreate() {\r\n\t\tString COMMA_DELIMITER = \",\";\r\n\t\tString NEW_LINE_SEPERATOR = \"\\n\";\r\n\t\tString FILE_HEADER = \"Title,First Name,Last Name,Email,Phone Number\";\r\n\t\ttry {\r\n\t\t\tList<Customer> dataList = new ArrayList<Customer>();\r\n\t\t\tdataList.add(\r\n\t\t\t\t\tnew Customer(title, customerFirstName, customerLastName, custromerEmailId, customerPhoneNumber));\r\n\r\n\t\t\tFileWriter fileWriter = new FileWriter(\"CustomerDetails.csv\");\r\n\t\t\tBufferedWriter bufferWriter = new BufferedWriter(fileWriter);\r\n\t\t\tbufferWriter.append(FILE_HEADER);\r\n\r\n\t\t\tfor (Customer c : dataList) {\r\n\t\t\t\tbufferWriter.write(NEW_LINE_SEPERATOR);\r\n\t\t\t\tbufferWriter.write(c.getTitle());\r\n\t\t\t\tbufferWriter.write(COMMA_DELIMITER);\r\n\t\t\t\tbufferWriter.write(c.getFirstName());\r\n\t\t\t\tbufferWriter.write(COMMA_DELIMITER);\r\n\t\t\t\tbufferWriter.write(c.getLastName());\r\n\t\t\t\tbufferWriter.write(COMMA_DELIMITER);\r\n\t\t\t\tbufferWriter.write(c.getEmailAddress());\r\n\t\t\t\tbufferWriter.write(COMMA_DELIMITER);\r\n\t\t\t\tbufferWriter.write(String.valueOf(c.getPhone()));\r\n\t\t\t\tbufferWriter.write(COMMA_DELIMITER);\r\n\t\t\t}\r\n\r\n\t\t\tbufferWriter.close();\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t}\r\n\t}", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getFileHeaderInfo() != null)\n sb.append(\"FileHeaderInfo: \").append(getFileHeaderInfo()).append(\",\");\n if (getComments() != null)\n sb.append(\"Comments: \").append(getComments()).append(\",\");\n if (getQuoteEscapeCharacter() != null)\n sb.append(\"QuoteEscapeCharacter: \").append(getQuoteEscapeCharacter()).append(\",\");\n if (getRecordDelimiter() != null)\n sb.append(\"RecordDelimiter: \").append(getRecordDelimiter()).append(\",\");\n if (getFieldDelimiter() != null)\n sb.append(\"FieldDelimiter: \").append(getFieldDelimiter()).append(\",\");\n if (getQuoteCharacter() != null)\n sb.append(\"QuoteCharacter: \").append(getQuoteCharacter());\n sb.append(\"}\");\n return sb.toString();\n }", "private static String convertToCsvField(\r\n int[] intFields)\r\n {\r\n String strUnion = \"\"; // Returned value\r\n \r\n int i; // Counter\r\n \r\n // We build the union of the fields\r\n \r\n for (i = 0; i < intFields.length; i++)\r\n {\r\n // We insert the comma as separator\r\n \r\n if (i > 0)\r\n {\r\n strUnion += ',';\r\n }\r\n \r\n // We add the i-field\r\n \r\n strUnion = strUnion.concat(String.valueOf(intFields[i]));\r\n }\r\n \r\n // We return the result\r\n \r\n return (strUnion);\r\n }", "public String toString(){\t\t\n //---------------------------------------------------------------------------\n StringBuffer buff=new StringBuffer(\"\\n*****ClassHelperMethods: \"); \n buff.append(\"\\tbuffer=\"+buffer.toString()); \n buff.append(\"\\theaderDefinition=\"+header); \n buff.append(\"\\tsqlTagsGeneratorTable=\"+sqlTagsGeneratorTable); \n buff.append(\"\\ttableName=\"+tableName); \n return buff.toString(); \n\t}", "public void writeToCsv()\r\n {\r\n //listeye urunler eklendiginde cagrılacak (Products.csv)\r\n PrintWriter pWrite = null;\r\n try {\r\n pWrite = new PrintWriter(new File(\"Products.csv\"));\r\n }\r\n catch (FileNotFoundException e) {\r\n e.printStackTrace();\r\n }\r\n StringBuilder sBuilder = new StringBuilder();\r\n for (Product theProduct : allProducts ) {\r\n if (theProduct.getSize() == null && theProduct.getGender()!= null){\r\n sBuilder.append(theProduct.getName() + \";\" + theProduct.getPrice() + \";\"\r\n + theProduct.getGender() + \";\" + theProduct.getTag() + \";\"\r\n + theProduct.getContent() + \";\" + theProduct.getNumberOfProduct() + \"\\n\");\r\n }\r\n else if(theProduct.getGender() == null && theProduct.getSize() == null){\r\n sBuilder.append( theProduct.getName() + \";\" + theProduct.getPrice() + \";\"\r\n + theProduct.getTag() + \";\"+\r\n theProduct.getContent() + \";\" + theProduct.getNumberOfProduct() + \"\\n\");\r\n }\r\n else {\r\n sBuilder.append( theProduct.getName() + \";\" + theProduct.getPrice() + \";\" + theProduct.getSize() + \";\"\r\n + (theProduct).getGender() + \";\" + theProduct.getTag() + \";\"\r\n + theProduct.getContent() + \";\" + theProduct.getNumberOfProduct() + \"\\n\");\r\n }\r\n\r\n }\r\n pWrite.write(sBuilder.toString());\r\n pWrite.flush();\r\n pWrite.close();\r\n }", "public String getCSVData(int seq,long basetime)\r\n\t{\t\r\n\t\tDate d1 = new Date();\r\n\t\td1.setTime((basetime*1000)+firstTime);\r\n\t\tString s = new String(seq+\",\"+makeIPAddr(srcaddr)+\",\"+makeIPAddr(destaddr)+\",\");\r\n\t\ts = s +npkts+\",\"+protocol+\",\"+d1.toString();\r\n\t\td1.setTime((basetime*1000)+lastTime);\r\n\t\ts = s+\",\"+d1.toString();\r\n\t\treturn s;\r\n\t}", "public static String createArffData(DataSet dataSet){\n StringBuilder sb = new StringBuilder();\n sb.append(\"@data\\n\");\n for(int i = 0; i < dataSet.getRows(); i++){\n for(int j = 0; j < dataSet.getColumns() - 1; j++){\n sb.append(dataSet.getEntryInDataSet(i, j));\n sb.append(\",\");\n }\n sb.append(dataSet.getEntryInDataSet(i, dataSet.getColumns() - 1));\n sb.append(\"\\n\");\n }\n sb.append(\"\\n\");\n return sb.toString();\n }", "String convertToCDF() {\n return String.valueOf(this.getScheduleID()) + \", \" +\n String.valueOf(this.getOfMedicationID()) + \", \" +\n String.valueOf(this.getForPersonID()) + \", \" +\n String.valueOf(this.getTimeDue()) + \", \" +\n String.valueOf(this.getStrategy()) +\n System.getProperty(\"line.separator\");\n }", "public static String csvFormat(Object data, Map<String, String> labels, String fieldDelimiter) {\n StringJoiner result = csvFormatForLabels(labels, fieldDelimiter);\n result.add(data == null ? NULL_VALUE : data.toString());\n return result.toString();\n }", "public String formatData() {\n\t\tStringBuilder builder = new StringBuilder();\n\t\n\t\t\tbuilder.append(this.iataCode);\n\t\t\tbuilder.append(\"|\");\n\t\t\tbuilder.append(this.latitude);\n\t\t\tbuilder.append(\",\");\n\t\t\tbuilder.append(this.longitude);\n\t\t\tbuilder.append(\",\");\n\t\t\tbuilder.append(this.altitude);\n\t\t\tbuilder.append(\"|\");\n\t\t\tbuilder.append(this.localTime);\n\t\t\tbuilder.append(\"|\");\n\t\t\tbuilder.append(this.condition);\n\t\t\tbuilder.append(\"|\");\n\t\t\tbuilder.append(this.temperature);\n\t\t\tbuilder.append(\"|\");\n\t\t\tbuilder.append(this.pressure);\n\t\t\tbuilder.append(\"|\");\n\t\t\tbuilder.append(this.humidity);\n\t\t\tbuilder.append(\"\\n\");\n\t\t\n\n\t\treturn builder.toString();\n\n\t}", "private String constructList(String[] elements) throws UnsupportedEncodingException {\n if (null == elements || 0 == elements.length)\n return null;\n StringBuffer elementList = new StringBuffer();\n\n for (int i = 0; i < elements.length; i++) {\n if (0 < i)\n elementList.append(\",\");\n elementList.append(elements[i]);\n }\n return elementList.toString();\n }", "public ArrayList<String> toCSV() {\n ArrayList<String> record = new ArrayList<>();\n record.add(Double.toString(getLocation().getLatitude()));\n record.add(Double.toString(getLocation().getLongitude()));\n record.add(getName());\n return record;\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}", "public Fixed2Csv(final LayoutDetail layout, \n \t\t final String infile, final String outfile,\n \t\t final String font,\n \t\t final String sep,\t final String quote,\n \t\t final IUpdateFieldName updateFldName)\n throws IOException {\n super();\n LineIOProvider ioProvider = new LineIOProvider();\n AbstractLineReader reader = ioProvider.getLineReader(layout);\n\n reader.open(infile, layout);\n\n copyFile(reader, outfile, font, sep, quote, updateFldName);\n }", "public static void main(String[] args) throws IOException {\n\t\tint id_telefone = 4;\n\t\t\n\t\tFileInputStream fis = new FileInputStream(SAMPLE_CSV_FILE_PATH);\n\t\tInputStreamReader isr = new InputStreamReader(fis, \"UTF-8\");\n\t\t\n\t\t@SuppressWarnings(\"deprecation\")\n\t\tCSVReader reader = new CSVReader(isr, ';' , '\"' , 0);\n \tString[] nextLine;\n \t\n// \tWriter writer = Files.newBufferedWriter(Paths.get(\"saida.csv\"));\n// \tCSVWriter csvWriter = new CSVWriter(writer,\n// CSVWriter.DEFAULT_SEPARATOR,\n// CSVWriter.NO_QUOTE_CHARACTER,\n// CSVWriter.DEFAULT_ESCAPE_CHARACTER,\n// CSVWriter.DEFAULT_LINE_END);\n \t\n \tFile file = new File(\"Clientes.sql\");\n \n BufferedWriter fr = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(file),\"UTF-8\"));\n \t\n \twhile ((nextLine = reader.readNext()) != null) {\n \t\t\n if (nextLine != null) {\n \t\n// \tSystem.out.println(nextLine.length);\n \t\n \tString id = nextLine[0];\n \tif(!id.isEmpty()) {\n \t\n \t\tid = id.substring(5);\n \t\tid = id.replace(\".\", \"\");\n \t\t\n \t\tboolean temCEP = false;\n \t\t\n \t\tif(nextLine.length > 12) temCEP = true;\n \t\t\n \t\tString CEP = \"\";\n \t\tif(temCEP) {\n \t\t CEP = nextLine[12];\n CEP = CEP.replace(\".\", \"\");\n CEP = CEP.replaceAll(\"-\",\"\");\n CEP = CEP.replaceAll(\" \",\"\");\n \t\t};\n \n \t\n \n \tfr.write(\"INSERT INTO hmprojetos.cliente values (\" \n + id \n + \",'\" + nextLine[1]\n \t\t+ \"','\" + nextLine[2]\n \t\t\t\t+ \"','\" + nextLine[3]\n \t\t\t\t\t\t+ \"','\" + nextLine[4]\n \t\t\t\t\t\t\t\t+ \"','\" + nextLine[5]\n \t\t\t\t\t\t\t\t\t\t+ \"','\" + CEP\n \t\t\t\t\t\t\t\t\t\t\t\t+ \"','\" + nextLine[10]\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \"','\" + nextLine[11]\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \"','\" + nextLine[6]\n + \"');\\n\");\n \t\n \t//Criação dos INSERTS dos telefones\n \tif(!nextLine[7].isEmpty()) {\n \tfr.write(\"INSERT INTO hmprojetos.telefone values (\"\n \t\t\t+ id_telefone\n \t\t\t+ \",'','\" + nextLine[7]\n \t\t\t+ \"',\"\n \t\t\t+ id \n \t\t\t+ \");\\n\"\n \t\t\t);\n \t\tid_telefone++;\n \t}\n \tif(!nextLine[8].isEmpty()) {\n \tfr.write(\"INSERT INTO hmprojetos.telefone values (\"\n \t\t\t+ id_telefone\n \t\t\t+ \",'','\" + nextLine[8]\n \t\t\t+ \"',\"\n \t\t\t+ id \n \t\t\t+ \");\\n\"\n \t\t\t);\n \t\tid_telefone++;\n \t}\n \tif(!nextLine[9].isEmpty()) {\n \tfr.write(\"INSERT INTO hmprojetos.telefone values (\"\n \t\t\t+ id_telefone\n \t\t\t+ \",'','\" + nextLine[9]\n \t\t\t+ \"',\"\n \t\t\t+ id \n \t\t\t+ \");\\n\"\n \t\t\t);\n \t\tid_telefone++;\n \t}\n \t\n \t}\n }\n \t}\n \t\n \tfr.close();\n \tSystem.out.println(\"Done\");\n\t}", "@Override\n public String getDataInCSV() {\n return String.format(Locale.US, \"%d,%s\", this.timestamp, this.getStatusString());\n }", "public String toString() {\n\t\tString dis =\"\";\n\t\tfor(int i=0;i<fields.size();i++) {\n\t\t\tif(i==fields.size()-1) {\n\t\t\t\tdis+=fields.toString();\n\t\t\t\t}\n\t\t\telse {\n\t\t\tdis+=fields.toString()+\" \";\n\t\t\t}\n\t\t}\t\n\t\treturn dis;\n\t}", "@VisibleForTesting\n protected String getSelectedFields() {\n return getSelectColumnsStream(columns)\n .collect(Collectors.joining(COMMA));\n }", "@Override\n public String toString(){\n return Nombre + \", \" + Clave + \", de \" + horario + \", \" + Maestro;\n }", "public void writeCSVtable(String outBuffer) throws IOException\n {\n String csvFile;\n // Create a file chooser\n File currentDir = new File(\"\").getAbsoluteFile();\n final JFileChooser fc = new JFileChooser(currentDir);\n // In response to a button click:\n int returnVal = fc.showSaveDialog(null);\n // open file\n File file = fc.getSelectedFile();\n // obtain filename\n csvFile = file.getName();\n\n // open the file\n fWriter = new FileWriter(csvFile); \n // write ALL the to the file in 1 burst\n fWriter.write(outBuffer); \n // close the file\n fWriter.close();\n }", "private String getDatosCurriculum() {\n\t\tStringBuffer sqlString = new StringBuffer();\n\t\tsqlString.append(\"SELECT TITULO_CV, RESUMEN_PROFESIONAL,\");\n\t\tsqlString.append(\"FACEBOOK, TWITTER, LINKEDIN, OBJETIVOS \");\n\t\tsqlString.append(\"FROM FORMATO_LPA \");\n\t\tsqlString.append(\"WHERE ID_CANDIDATO = ?\");\n\t\tlogger.debug(sqlString.toString());\n\t\treturn sqlString.toString();\n\t}", "public String csvEscapeString(String value){\n\t\tif(value==null)\n\t\t\tvalue=\"\";\n\t\treturn value.replaceAll(\"\\\"\", \"'\");\n\t}", "public String toString()\n {\n String filler = new String(\"\\\"RoomId\\\", \\\"Name\\\", \\\"Surname\\\", \\\"Situation\\\"\");\n for(Room temp : data_set)\n {\n filler += \"\\n\" + temp.toString();\n }\n return filler;\n }", "public void cargaClob() throws Exception {\n\t\t// Suponiendo que tenemos una conexion de tipo java.sql.Connection que\n\t\t// apunta a un H2 o a un Oracle.\n\t\tConnection conn = Conexion.establecerConexion();\n\t\tString texto = \"<h4 align=\\\"center\\\">Licencia de productos satelitales LANDSAT - Created Commons V 3.0<br>\\nLa persona que firma esta licencia, acepta haber leIdo el acuerdo de licenciamiento que a continuaci�n se detalla y entiende que el incumplimiento de este acuerdo con el cual se protegen los derechos de autor, puede acarrear sanciones disciplinarias, legales y penales vigentes en la Republica de Colombia<//h4>\\n<ol>\\n<li><p>Acuerdo de Licenciamiento\\nEste Acuerdo publica los procedimientos aplicables a los datos de sensores remotos tomados por NASA (Administraci�n Nacional de Aeron�utica y del Espacio del Gobierno) Agencia del Gobierno de Los Estados Unidos de America - USA, quienes distribuyen a traves del EROS DATA CENTER de forma gratuita los datos de IMAGENES MODIS y para los cuales los usuarios debe conocer que estos datos se distribuyen bajo el acuerdo de licenciamiento de Created Commons V 3.0, es decir La obra (como se define a continuacion) segun las condiciones de esta licencia publica creative commons (\\\"CCPL\\\" o \\\"licencia\\\"). La obra esta protegida por derechos de autor y//u otras leyes aplicables, cualquier uso de la obra diferente a lo autorizado abajo esta prohibido.\\n\\nAl ejercer cualquier derecho a la obra, usted acepta y se compromete a respetar los terminos de esta licencia, en la medida en esta licencia puede ser considerado un contrato, el licenciante le concede los derechos contenidos en consideracion de su aceptaci�n de los terminos y condiciones\\n.<//li><//p>\\n<li><p>Parte 1: DEFINICIONES\\n\\\"Adaptacion\\\" significa una obra basada en el trabajo, o sobre la Obra y otras obras preexistentes tales como una traducci�n, adaptaci�n, trabajo derivado, el arreglo de la musica u otras alteraciones de una obra literaria o artistica, o de un fonograma o de rendimiento y incluye adaptaciones cinematograficas o cualquier otra forma en la cual la Obra puede ser reformulada, transformada o adaptada incluyendo cualquier forma reconocible derivada del original, excepto que una obra que constituye una Coleccion no sera considerada una Obra Derivada a los efectos de esta Licencia. Para evitar dudas, cuando la Obra es una obra musical o fonograma, la sincronizacion de la Obra en una relaci�n temporal con una imagen en movimiento (\\\"sincronizacion\\\") sera considerado como una adaptacion a los efectos de esta Licencia.\\n \\\"Coleccion\\\" significa un conjunto de obras literarias o art�sticas, tales como enciclopedias y antologias, o interpretaciones o ejecuciones, fonogramas o emisiones, u otras obras o prestaciones distintas de las obras que figuran en la Seccion 1 (f) a continuaci�n y que, por razon de la seleccion y la disposicion de las materias, constituyan creaciones de caracter intelectual, en los que se incluye el trabajo en su totalidad, sin modificaci�n, junto con uno o mas de otras contribuciones que constituyen obras, cada una separadas e independientes en si mismas, que en conjunto estan reunidos en un todo colectivo. Una obra que constituye una Coleccion no sera considerada una Obra Derivada (como se define mas arriba) a los efectos de esta Licencia.\\n \\\"Distribuir\\\" significa poner a disposicion del publico en general. Original y las copias de la obra o adaptacion, en su caso, a traves de la venta u otra transferencia de propiedad.\\n \\\"Licenciante\\\" es la persona, personas, entidad o entidades que la oferta(n) la Obra bajo los terminos de esta Licencia.\\n \\\"Autor Original\\\", en el caso de una obra literaria o artistica, el individuo, las personas, entidad o entidades que crearon el trabajo o si ninguna persona o entidad puede ser identificado, el editor, y adem�s (i) en el caso de una interpretacion de los actores, cantantes, misicos, bailarines y otras personas que representen, canten, reciten, declamen, interpreten o ejecuten en cualquier forma obras literarias o artisticas o expresiones del folclore, (ii) en el caso de un fonograma, el productor es la persona o entidad juridica que fija por primera vez los sonidos de una ejecucion u otros sonidos, y, (iii) en el caso de las emisiones, la organizaci�n que transmite la emision.\\n \\\"Obra\\\" significa la obra literaria y // o artisticas ofrece bajo los terminos de esta licencia incluyendo, sin limitacion, cualquier produccion en el campo literario, cientifico y artistico, cualquiera que sea el modo o forma de expresi�n, incluido el formato digital, como por ejemplo un libro , un folleto y otras por escrito, una conferencia de trabajo, direccion, sermon u otra de la misma naturaleza, una obra dramatica o dramatico-musicales, una obra coreografica o de entretenimiento en un espectaculo mudo, una composici�n musical con letra o sin ella, la obra cinematografica a la que se asimilan las obras expresadas por procedimiento analogo a la cinematografia, una obra de dibujo, pintura, arquitectura, escultura, grabado o litografia; una obra fotografica a la que se asimilan las obras expresadas por procedimiento analogo a la fotografia, una obra de arte aplicado; una ilustraci�n, mapa, plano, croquis o en tres dimensiones de trabajo relativas a la geografia, topografia, arquitectura o las ciencias; una actuacion, una emision, un fonograma, una recopilacion de los datos en la medida en que esta protegida como una obra de derechos de autor, o un trabajo realizado por una variedad o un artista de circo en la medida en que no sea considerado una obra literaria o artistica.\\n \\\"Usted\\\" significa un individuo o entidad ejerciendo los derechos bajo esta Licencia quien previamente no ha violado los t�rminos de esta Licencia con respecto a la Obra, o que ha recibido el permiso expreso del Licenciante para ejercer derechos bajo esta Licencia pese a una violacion anterior.\\n \\\"Comunicar publicamente\\\" significa realizar el rezo publico de la obra y comunicar al publico los relatos publicos, por cualquier medio o procedimiento, incluso por medios al�mbricos o inalambricos o la ejecucion digital p�blica, poner a disposicion de las obras publicas, de tal manera que los miembros del publico puedan acceder a estas obras desde el lugar y en un lugar que ellos elijan, para llevar a cabo la obra al publico por cualquier medio o procedimiento y la comunicaci�n al publico de las actuaciones de la Obra, incluyendo la publica digital rendimiento, para transmitir y retransmitir la obra por cualquier medio, incluyendo signos, sonidos o imagenes.\\n \\\"Reproducir\\\" significa hacer copias de la obra por cualquier medio, incluyendo sin limitaci�n, mediante grabaciones sonoras o visuales, y el derecho de la fijaci�n y reproducci�n de las fijaciones de la Obra, incluido el almacenamiento de una interpretacion o ejecucion protegida o de un fonograma en forma digital o cualquier otro medio electronico.\\n. <//li><//p>\\n<li><p>Parte 2: Feria de los Derechos Autor. Nada en esta licencia tiene por objeto reducir, limitar, o restringir los usos libres de derechos de autor o los derechos derivados de limitaciones o excepciones que se preven en relacion con la proteccion de los derechos de autor bajo la ley de derechos de autor u otras leyes aplicables.<//li><//p>\\n<li><p>Parte 3: Concesion de licencia. Sujeto a los terminos y condiciones de esta Licencia, el Licenciante otorga a Usted una licencia mundial, libre de regalias, licencia no exclusiva, perpetua (por la duracion de los derechos de autor) para ejercer los derechos en el trabajo como se indica a continuacion:\\n - para reproducir la Obra, para incorporar la Obra en una o mas colecciones, ya reproducir la Obra incorporada en las colecciones;\\n - para crear y reproducir adaptaciones a condicion de que cualquier adaptacion tales, incluida cualquier traduccion en cualquier medio, toma medidas razonables para etiquetar claramente, delimitar o identificar que los cambios se hicieron para la obra original. Por ejemplo, una traduccion debe marcarse como \\\"La obra original fue traducida del Ingles al Espa�ol\\\", o una modificacion podria indicar \\\"La obra original ha sido modificado.\\\";\\n - para distribuir y comunicar publicamente la obra, incluyendo las incorporadas en las colecciones, y,\\n - para distribuir y ejecutar publicamente adaptaciones.\\n - Para evitar dudas:\\n\tIrrenunciable Esquemas licencia obligatoria. En aquellas jurisdicciones en las que el derecho a cobrar regalias a traves de cualquier sistema de licencias legales u obligatorio no se puede renunciar, el licenciador se reserva el derecho exclusivo de recaudar las regalias para cualquier ejercicio de su de los derechos garantizados por esta Licencia;\\n \tRenunciable Esquemas licencia obligatoria. En aquellas jurisdicciones en las que se puede el derecho a cobrar regalias a traves de cualquier sistema de licencias legales u obligatorias renunciado, el Licenciante renuncia al derecho exclusivo de recaudar las regalias de cualquier ejercicio de su de los derechos concedidos bajo esta licencia, y,\\n \tPlanes voluntarios de licencia. El Licenciante renuncia al derecho a cobrar regalias, ya sea individualmente o, en caso de que el Licenciante sea miembro de una sociedad de gestion colectiva que administra los regimenes voluntarios de concesion de licencias, a traves de esa sociedad, de cualquier ejercicio, por su parte de los derechos concedidos bajo esta Licencia.\\nLos derechos mencionados anteriormente pueden ser ejercidos en todos los medios y formatos, actualmente conocidos o por conocer. Los derechos antes mencionados incluyen el derecho a efectuar las modificaciones que sean tecnicamente necesarias para ejercer los derechos en otros medios y formatos. Sujeto a la Seccion 8 (f), todos los derechos no concedidos expresamente por el licenciador quedan reservados.\\n.<//li><//p>\\n<li><p>Parte 4: Restricciones. La licencia otorgada en la anterior Seccion 3 esta expresamente sujeta y limitada por las siguientes restricciones:\\na. Usted puede distribuir o comunicar publicamente la Obra solo bajo los terminos de esta Licencia. Usted debe incluir una copia de, o el Uniform Resource Identifier (URI), esta Licencia con cada copia de la Obra que Usted distribuya o ejecute publicamente. Usted no podra ofrecer o imponer ninguna condicion sobre la Obra que pueda restringir los terminos de esta licencia o la capacidad del beneficiario de la Obra para ejercer los derechos otorgados al receptor bajo los terminos de la licencia.Usted no puede sublicenciar la Obra. Usted debe mantener intactos todos los anuncios que se refieran a esta Licencia ya la limitacion de las garantias con cada copia de la Obra que Usted distribuya o ejecute publicamente. Cuando Usted distribuya o ejecute publicamente la Obra, Usted no puede imponer cualquier medida tecnologica efectiva sobre el trabajo que restringen la capacidad de un receptor de la Obra por el ejercicio de los derechos otorgados al receptor bajo los terminos de la licencia. Esta seccion 4 (a) se aplica a la Obra cuando es incorporada en una coleccion, pero esto no requiere que la coleccion, aparte de la obra misma quede sujeta a los terminos de esta Licencia. Si Usted crea una coleccion, previo aviso de cualquier Licenciante debe, en la medida de lo posible, quitar de la coleccion de cualquier credito requerido en la Seccion 4 (b), conforme a lo solicitado. Si Usted crea una Obra Derivada, previo aviso de cualquier Licenciante Usted debe, en la medida de lo posible, eliminar de la adaptacion de cualquier credito requerido en la Seccion 4 (b), conforme a lo solicitado.\\nb. Si usted distribuye o ejecuta publicamente la Obra o las adaptaciones o colecciones, para que, a menos que una solicitud ha sido hecha de conformidad con la Seccion 4 (a), mantenga intactos todos los avisos de derechos de autor para la Obra y proporcionar, razonable segun el medio o medios Usted este utilizando: (i) el nombre del autor original (o seudonimo, en su caso) si fue suministrado, y // o si el autor original y // o el Licenciante designa otra parte o partes (por ejemplo, un instituto patrocinador, editorial, una revista) para la atribucion (\\\"Partes del Reconocimiento\\\") en la nota de derechos de autor del Licenciante, terminos de servicio o por cualquier otro medio, el nombre de dicha parte o partes, (ii) el titulo de la obra si fue suministrado, (iii) en la medida en que sea posible, de la URI, en su caso, que el Licenciante especifica para ser asociado con la Obra, a menos que tal URI no se refiere a la nota de copyright o de la informacion de licencia para el trabajo, y (iv), de conformidad con la Seccion 3 (b), en el caso de una obra derivada, un aviso que identifique el uso de la Obra en la adaptacion (por ejemplo, \\\"Traduccion Francesa de la Obra del Autor Original,\\\" o \\\"guion basado en obra original de Autor Original\\\"). El credito requerido por esta Seccion 4 (b) puede ser implementado de cualquier forma razonable, siempre que, sin embargo, que en el caso de una adaptacion o una coleccion, a un minimo tal credito aparecera, si un credito para todos los autores que contribuyeron a la adaptacion o Coleccion aparece, a continuacion, como parte de estos creditos y de una manera al menos tan destacada como los creditos para los demas autores que contribuyeron. Para evitar dudas, usted solo podra utilizar el credito requerido por esta Seccion con el proposito de reconocimiento en la forma prevista anteriormente y, al ejercer sus derechos bajo esta Licencia, no podra implicita o explicitamente afirmar o implicar la conexion con, patrocinio o respaldo por parte del Autor Licenciante y // o partes de atribucion, en su caso, de usted o su uso de la obra, sin el permiso independiente, expreso, previo y por escrito de, el autor original Licenciante y // o partes de atribucion.\\nc. Salvo acuerdo en contrario por escrito por el Concedente o como puede ser permitido por la ley aplicable, en caso de que se reproduzca, distribuya o ejecute publicamente la Obra, ya sea por si mismo o como parte de las adaptaciones o colecciones, no deben modificarse, mutilarse, modificar o tomar cualquier otra accion despectiva en relacion con el trabajo que seria perjudicial para el honor del autor original o la reputacion. Licenciante de acuerdo en que en esas jurisdicciones (por ejemplo, Japon), en el que cualquier ejercicio del derecho otorgado en la Seccion 3 (b) de esta licencia (el derecho a hacer adaptaciones) se considera una deformacion, mutilacion, modificacion o accion que atente otra perjudicial para el honor del autor original y la reputacion, el Licenciante renuncia o afirmar que no, segun proceda, la presente seccion, en la maxima medida permitida por la legislacion nacional aplicable, para que pueda ejercer razonablemente su derecho en virtud de la Seccion 3 (b) de esteLicencia (derecho a hacer adaptaciones) pero por lo demas no.\\n<//li><//p>\\n<li><p>Parte 5: Representaciones, Garantias y Limitacion de Responsabilidad. A MENOS QUE SE ACUERDE MUTUAMENTE POR ESCRITO ENTRE LAS PARTES, EL LICENCIANTE OFRECE LA OBRA TAL COMO ESTA Y NO HACE NINGUNA REPRESENTACION O GARANTIA DE NINGUN TIPO RESPECTO DE LA OBRA, EXPRESA, IMPLICITA, LEGAL O DE OTRO TIPO, INCLUYENDO, SIN LIMITACION, GARANTIAS DE TITULO, COMERCIALIZACION, IDONEIDAD PARA UN PROPOSITO PARTICULAR, NO INFRACCION, O LA AUSENCIA DE DEFECTOS LATENTES O DE OTRO TIPO, EXACTITUD, O LA PRESENCIA O AUSENCIA DE ERRORES, SEAN O NO SER DESCUBIERTOS. ALGUNAS JURISDICCIONES NO PERMITEN LA EXCLUSION DE GARANTIAS IMPLICITAS, LA EXCLUSION PUEDE NO APLICARSE EN SU CASO.<//li><//p>\\n<li><p>Parte 6:. Limitacion de la responsabilidad. A MENOS QUE LO REQUERIDO POR LAS LEYES APLICABLES, EN NINGUN CASO EL LICENCIANTE SERA RESPONSABLE ANTE USTED POR CUALQUIER OTRA TEORIA LEGAL POR CUALQUIER DA�O ESPECIAL, INCIDENTAL, CONSECUENTE, punitivos o ejemplares, PROVENIENTE DE ESTA LICENCIA O DEL USO DE LA OBRA, AUN CUANDO EL LICENCIANTE HAYA SIDO ADVERTIDO DE LA POSIBILIDAD DE TALES DA�OS.<//li><//p>\\n<li><p>Parte 7: Terminacion. Esta Licencia y los derechos de las concedidas en virtud de ella terminaran automaticamente si Usted incumple cualquiera de los terminos de esta Licencia. Las personas o entidades que hayan recibido obras o colecciones de usted bajo esta Licencia, sin embargo, no veran sus licencias finalizadas, siempre que estos individuos o entidades sigan cumpliendo integramente las condiciones de estas licencias. Las secciones 1, 2, 5, 6, 7, y 8 subsistiran a cualquier terminacion de esta Licencia.\\n Sujeto a los terminos y condiciones anteriores, la licencia otorgada aqui es perpetua (por la duracion de los derechos de autor de la obra). No obstante lo anterior, el Licenciante se reserva el derecho de difundir la Obra bajo diferentes terminos de Licencia o de detener la distribucion de la Obra en cualquier momento, siempre que, sin embargo, que ninguna de tales elecciones servira para revocar esta Licencia (o cualquier otra licencia que haya sido, o se requiere para ser concedida bajo los terminos de esta licencia), y esta licencia continuara en pleno vigor y efecto a menos que termine como se indico anteriormente.\\n<//li><//p>\\n<li><p>Parte 8: Miscelaneo. Cada vez que Usted distribuya o ejecute publicamente la Obra o una Coleccion, el Licenciante ofrecera al destinatario una licencia para la Obra en los mismos terminos y condiciones que la licencia concedida a Usted bajo esta Licencia.\\n Cada vez que Usted distribuya o ejecute publicamente una Obra Derivada, el Licenciante ofrecera al destinatario una licencia para la Obra originaria en los mismos terminos y condiciones que la licencia concedida a Usted bajo esta Licencia.\\n Si alguna disposicion de esta Licencia es invalida o no exigible bajo la ley aplicable, no afectara la validez o exigibilidad del resto de los terminos de esta Licencia, y sin mas accion de las partes de este acuerdo, tal disposicion sera reformada en la lo minimo necesario para que sea valida y exigible.\\n Ningun termino o disposicion de esta Licencia se estimara renunciada y ninguna violacion consentida a menos que tal renuncia o consentimiento figure por escrito y firmado por las partes que seran afectadas por tal renuncia o consentimiento.\\n Esta Licencia constituye el acuerdo completo entre las partes con respecto a la Obra licenciada aqui.No hay entendimientos, acuerdos o representaciones con respecto a la Obra que no esten especificados aqui. El Licenciante no sera obligado por ninguna disposicion adicional que pueda aparecer en cualquier comunicacion proveniente de Usted. Esta Licencia no puede ser modificada sin el mutuo acuerdo por escrito entre el Licenciante y Usted.\\n Los derechos concedidos en virtud de, y hace referencia a la materia, en la presente Licencia se elaboraron utilizando la terminologia de la Convencion de Berna para la Proteccion de las Obras Literarias y Artisticas (en su forma enmendada el 28 de septiembre de 1979), el Convenio de Roma de 1961, el Derecho de Autor de la OMPI Tratado de 1996, la OMPI sobre Interpretacion o Ejecucion y Fonogramas de 1996 y la Convencion Universal sobre Derecho (en su version revisada el 24 de julio de 1971). Estos derechos y prestaciones surtira efecto en la jurisdiccion correspondiente en el que los terminos de licencia se pide que se ejecuten de acuerdo a las disposiciones correspondientes de la aplicacion de las disposiciones de los tratados en la legislacion nacional aplicable. Si el paquete estandar de los derechos concedidos en virtud de la ley derechos de autor incluyen los derechos adicionales no concedidos en virtud de esta licencia, esos derechos adicionales se consideraran incluidos en la licencia, esta licencia no se pretende restringir la licencia de los derechos bajo la ley aplicable.\\n<//li><//p>\\n<//ol>\";\n\n\t\tStringReader lector = new StringReader(texto); // aquí se abre un\n\t\t// InputStream con\n\t\t// la cadena que esta en memoria\n\t\ttry {\n\t\t\tPreparedStatement ps = conn.prepareStatement(\"update red_licencias set LCNC_DESCRIPCION= ? where LCNC_CONSECUTIVO=9\");\n\t\t\tps.setCharacterStream(1, lector, texto.length());\n\t\t\tps.execute();\n\t\t\tconn.close();\n\t\t}\n\t\tcatch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "@Override\n public String toString(){\n return row + \",\" + column + \",\";\n }", "private static void generateCsvFileWithFinalData(File path) // String sFileName\n {\n String COMMA_DELIMITER = \",\";\n String NEW_LINE_SEPARATOR = \"\\n\";\n try\n {\n // String path to our created output data file\n String finalFilePath = String.valueOf(path.getParent()) + \"\\\\test.csv\";\n FileWriter writer = new FileWriter(finalFilePath);\n\n for (Player player : sortedFinalPlayerList) {\n writer.append(player.getLastName());\n writer.append(COMMA_DELIMITER);\n writer.append(player.getFirstName());\n writer.append(COMMA_DELIMITER);\n writer.append(player.getCountry());\n writer.append(COMMA_DELIMITER);\n writer.append(String.valueOf(player.getLongCommSubsCounter()));\n writer.append(NEW_LINE_SEPARATOR);\n }\n\n //generate whatever data you want\n writer.flush();\n writer.close();\n }\n catch(IOException e)\n {\n e.printStackTrace();\n }\n }", "public String toString()\r\n {\r\n return \"[\"+contactID+\",\"+firstName+\",\"+lastName+\",\"+phone+\",\"+address+\"]\";\r\n }", "public String toFile(){\n\t\tString personInfo = this.firstName + \" ; \" + this.lastName + \" ; \";\n\t\t\n\t\treturn personInfo;\n\t}", "public void createCsvString(StringBuilder builder, MarketingMessageMetrics e) {\r\n\r\n\t\tbuilder.append(\"\\\"\"\r\n\t\t\t\t+ (e.getDateClicked() != null ? e.getDateClicked() : \"\")\r\n\t\t\t\t+ \"\\\",\");\r\n\r\n\t\tbuilder.append(\"\\\"\"\r\n\t\t\t\t+ (e.getMessageTranslation() != null ? e\r\n\t\t\t\t\t\t.getMessageTranslation().getDisplayName().replace(\",\",\r\n\t\t\t\t\t\t\t\t\"\") : \"\") + \"\\\",\");\r\n\r\n\t\tbuilder.append(\"\\r\\n\");\r\n\t}", "public String toString(){\n return String.format(\"%s, %s, %s, %s, %s, %s\",make,model,variant, year, quantity,price);\n }", "public String toString()\n\t{\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(\" 1 2 3 4 5 6 7 8\\n\");\n\t\tfor(int i = 0; i < 8; i++)\n\t\t{\n\t\t\tsb.append((char) (i + FIRST_ROW) + \" \");\n\t\t\tfor(int i2 = 0; i2 < 8; i2++)\n\t\t\t{\n\t\t\t\tsb.append(\" \" + fields[i][i2]);\n\t\t\t\tif(i2 == 7)\n\t\t\t\t{\n\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn sb.toString();\n\t}", "private static String toSQLFields(List<String> fields) {\n StringBuilder s = new StringBuilder();\n s.append(\"(\");\n for (String field : fields) {\n s.append(field);\n s.append(\",\");\n }\n s.replace(s.length() - 1, s.length(), \"\");\n s.append(\")\");\n return s.toString();\n }", "public String toCSVString() {\n return pokeNumber + \",\" +\n pokeName + \",\" +\n pokeType_1 + \",\" +\n pokeType_2 + \",\" +\n total + \",\" +\n hitPoints + \",\" +\n attackPoints + \",\" +\n defensePoints + \",\" +\n specAtkPoints + \",\" +\n specDefPoints + \",\" +\n pokeSpeed + \",\" +\n pokeGeneration + \",\" +\n legendaryStatus;\n }", "private String createStandardGZFieldTexts()\n\t{\n\t\tStringBuffer result = new StringBuffer();\n\t\tfor (Entry<String, String[]> entry : standardJournalFieldColumns.entrySet())\n\t\t{\n\t\t\tif (result.length() != 0)\n\t\t\t{\n\t\t\t\tresult.append(\", \");\n\t\t\t}\n\t\t\tresult.append(entry.getKey());\n\t\t\tresult.append(\" TEXT IS '\");\n\t\t\tString[] strings = entry.getValue();\n\t\t\tfor (int index = 0; index < strings.length; index++)\n\t\t\t{\n\t\t\t\tresult.append(strings[index]);\n\t\t\t\tif (index < strings.length)\n\t\t\t\t{\n\t\t\t\t\tresult.append(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tresult.append(\"'\");\n\t\t}\n\t\treturn result.toString();\n\t}", "public String toFancyString(){\r\n\t\t\r\n\t\tString line = \"Last name : \" + this.getLastName()\r\n\t\t\t+ \"\\tFirst name : \" + this.getFirstName()\r\n\t\t\t+ \"\\tPhone number : \" + this.getPhoneNumber()\r\n\t\t\t+ \"\\n\\t\\t Address : \" + this.getAddress()\r\n\t\t\t+ \"\\t City : \" + this.getCity() ;\r\n\t\t\r\n\t\treturn line ;\r\n\t}", "@Override\n\tprotected String getFields()\n\t{\n\t\tString fields = \" HBLNM, HBCFR, HBCFL, HBRNM, HBDLM \";\n\t\treturn fields;\n\t}", "public static void writeCSV(Calendar cal) {\n\n try {\n\n BufferedWriter bw = null;\n\n String fileString = \"P5Calendar.csv\";\n String fileLine = \"\";\n\n FileWriter fw = new FileWriter(fileString, false);\n bw = new BufferedWriter(fw);\n\n ArrayList<Activity> activities = cal.getActivities();\n\n for (int j = 0; j < 1; j++) {\n bw.write(\"Year\" + \",\" + \"Month\" + \",\" + \"Activity\" + \",\" + \"Role\" + \"\\n\");\n }\n\n for (int i = 0; i < activities.size(); i++) {\n Activity activity = activities.get(i);\n bw.append(activity.Year + \",\" + activity.Month + \",\" + activity.Name + \",\" + activity.Roles);\n }\n\n bw.close();\n\n } catch (IOException e) {\n\n e.printStackTrace();\n\n }\n\n }", "public String toBigFancyString(){\r\n\t\t\r\n\t\tString line = \r\n\t\t\t \"\\tLast name : \" + this.getLastName() + \"\\t\"\r\n\t\t\t+ \"\\n\\tFirst name : \" + this.getFirstName() + \"\\t\"\r\n\t\t\t+ \"\\n\\tPhone number : \" + this.getPhoneNumber() + \"\\t\"\r\n\t\t\t+ \"\\n\\tAddress : \" + this.getAddress() + \"\\t\"\r\n\t\t\t+ \"\\n\\tCity : \" + this.getCity() + \"\\t\" ;\r\n\t\t\r\n\t\treturn line ;\r\n\t}", "public static void writeDataToCsvUsingStringArrayForActivity(PrintWriter writer, List<ActivityTabDTO> activityTabList, List<AssayTabDTO> assayTabDTOList, List<ReferenceTabDTO> referenceTabDTOList, List<StructureDetailsTabDTO> structureDetailsTabDTOList) {\n\n String[] CSV_ACTIVITY_TITLE = {\"Activity Details\"};\n String[] CSV_ACTIVITY_NEWLINE = {\"\"};\n\n String[] CSV_ACTIVITY_HEADER = {\"ACT_ID\", \"ASSAY_ID\", \"REF_ID\", \"GVK_ID\", \"ACTIVITY_TYPE\", \"STD_ACTIVITY_TYPE\", \"ACTIVITY_UOM\", \"STANDARD_UOM\", \"ACTIVITY_PREFIX\", \"STD_ACT_PREFIX\", \"ACTIVITY_VALUE\", \"SD\", \"ACTIVITY_REMARKS\", \"MICRO_MOLARVALUE\", \"ASSAY_TYPE\", \"ENZYME_CELL_ASSAY\", \"COMMON_NAME\", \"ACTIVITY_MECHANISM\", \"SOURCE\", \"CELLS_CELLLINE_ORGAN\", \"MEASURED\", \"ROA\", \"ASSAY_METHOD_NAME\", \"DOSE\", \"DOSE_UOM\", \"DOSE_PREFIX\", \"ACTIVITY\", \"PARAMETER\", \"REFERENCE\"};\n\n try (\n CSVWriter csvWriter = new CSVWriter(writer,\n CSVWriter.DEFAULT_SEPARATOR,\n CSVWriter.DEFAULT_ESCAPE_CHARACTER,\n CSVWriter.DEFAULT_LINE_END);\n ) {\n csvWriter.writeNext(CSV_ACTIVITY_TITLE);\n csvWriter.writeNext(CSV_ACTIVITY_HEADER);\n if (Objects.nonNull(activityTabList)) {\n for (ActivityTabDTO activityTabDataReturn : activityTabList) {\n for (AssayTabDTO assayTabDTO : assayTabDTOList) {\n for (ReferenceTabDTO referenceTabDTO : referenceTabDTOList) {\n for (StructureDetailsTabDTO reStructureDetailsTabDTO : structureDetailsTabDTOList) {\n String[] activityData = new String[]{\n activityTabDataReturn.getActId() + \"\",\n assayTabDTO.getAssayId() + \"\",\n referenceTabDTO.getRefId() + \"\",\n reStructureDetailsTabDTO.getGvkId() + \"\",\n activityTabDataReturn.getActivityType(),\n activityTabDataReturn.getStdActivityType() + \"\",\n activityTabDataReturn.getActivityUom() + \"\",\n activityTabDataReturn.getStandardUom() + \"\",\n activityTabDataReturn.getActivityPrefix() + \"\",\n activityTabDataReturn.getStdActPrefix() + \"\",\n activityTabDataReturn.getActivityValue() + \"\",\n activityTabDataReturn.getSd() + \"\",\n activityTabDataReturn.getActivityRemarks() + \"\",\n activityTabDataReturn.getMicroMolarvalue() + \"\",\n activityTabDataReturn.getAssayType() + \"\",\n activityTabDataReturn.getEnzymeCellAssay() + \"\",\n activityTabDataReturn.getCommonName() + \"\",\n activityTabDataReturn.getActivityMechanism() + \"\",\n activityTabDataReturn.getSource() + \"\",\n activityTabDataReturn.getCellsCelllineOrgan() + \"\",\n activityTabDataReturn.getMeasured() + \"\",\n activityTabDataReturn.getRoa() + \"\",\n activityTabDataReturn.getAssayMethodName() + \"\",\n activityTabDataReturn.getDose() + \"\",\n activityTabDataReturn.getDoseUom() + \"\",\n activityTabDataReturn.getDosePrefix() + \"\",\n activityTabDataReturn.getActivity() + \"\",\n activityTabDataReturn.getParameter() + \"\",\n activityTabDataReturn.getReference() + \"\",\n\n };\n\n csvWriter.writeNext(activityData);\n }\n }\n }\n }\n csvWriter.writeNext(CSV_ACTIVITY_NEWLINE);\n csvWriter.writeNext(CSV_ACTIVITY_NEWLINE);\n }\n\n\n } catch (Exception e) {\n System.out.println(\"Exception occured into the ActivityTab Data Export\" + e.getMessage());\n e.printStackTrace();\n }\n\n }", "public static void test000(String[] args) throws IOException\n {\n\n\n //System.out.println(sql_insert_shipto_template);\n\n// sql_insert_shipto_template = sql_insert_shipto_template.replaceAll(\"%SALES_ORGANIZATION_CODE%\", \"261\");\n// sql_insert_shipto_template = sql_insert_shipto_template.replaceAll(\"%DC_SHORTNAME%\", \"PF\");\n// sql_insert_shipto_template = sql_insert_shipto_template.replaceAll(\"%SHIPTO_CODE%\", \"10156409\");\n// sql_insert_shipto_template = sql_insert_shipto_template.replaceAll(\"%PRODUCT_CODE%\", \"10104574\");\n// sql_insert_shipto_template = sql_insert_shipto_template.replaceAll(\"%STARTDATE%\", \"01.02.2014\");\n// sql_insert_shipto_template = sql_insert_shipto_template.replaceAll(\"%FINISHDATE%\", \"31.12.9999\");\n\n\n // String test = \"1\\t2\\t3\\n4\\t5\\t6\";\n\n String test = \"SO;SHIPTO;SHIPTO;DCSHORT;REP;GRD;Name;start date;end date\\n\" +\n \"261;10156405PF;10156405;PF;249394;10104570;A.KORKUNOV DARK 5*10*100G;07.10.2014;31.12.9999\\n\" +\n \"261;10156405CH;10156405;CH;249410;10104542;A.KORKUNOV MILK 5*10*100G;07.10.2014;31.12.9999\\n\" +\n \"377;10156409PF;10156409;PF;249399;10104574;A.KORKUNOV DARK ALMOND 5*10*100G;07.10.2014;31.12.9999\\n\";\n\n\n //CSVParser parser = CSVParser.parse(test, CSVFormat.newFormat(';'));\n File file = new File(\"c:\\\\MATDET_SHIPTO_EXAMPLE.csv\");\n CSVParser parser = CSVParser.parse(file, java.nio.charset.Charset.defaultCharset(), CSVFormat.newFormat(';'));\n\n int rownum = 0;\n for (CSVRecord strings : parser)\n {\n\n if (rownum++ == 0)\n continue;\n String SO = strings.get(0);\n String SHIPTO = strings.get(2);\n String DCSHORT = strings.get(3);\n //String REP = strings.get(4);\n String PRODUCT = strings.get(5);\n String START = strings.get(7);\n String END = strings.get(8);\n\n String temp = SQL_INSERT_TMATDET_SHIPTO_TEMPLATE;\n temp = temp.replaceAll(\"%SALES_ORGANIZATION_CODE%\", SO);\n temp = temp.replaceAll(\"%DC_SHORTNAME%\", DCSHORT);\n temp = temp.replaceAll(\"%SHIPTO_CODE%\", SHIPTO);\n temp = temp.replaceAll(\"%PRODUCT_CODE%\", PRODUCT);\n temp = temp.replaceAll(\"%STARTDATE%\", START);\n temp = temp.replaceAll(\"%FINISHDATE%\", END);\n\n\n System.out.println(temp);\n }\n\n System.out.println(\"rows=\" + rownum);\n\n\n// CsvParser parser = new CsvParserImpl();\n// CSV\n// parser.\n// List parsed = parser.parse(\"1\\t2\\t3\\n4\\t5\\t6\");\n// System.out.println(parsed.get(0));\n\n //System.out.println(sql_insert_shipto_template);\n\n }", "private void appendSelectStatement() {\n builder.append(SELECT).append(getSelectedFields()).append(FROM);\n }", "@Override\n\tprotected String getParameters()\n\t{\n\t\tString fields = \" ?, ?, ?, ?, ?, ? \";\n\t\treturn fields;\n\t}", "public String toString() {\n\t\treturn \"(\" + obtenerFila() + \"/\" + obtenerColumna() + \")\";\n\t}", "public String toString(){\t\t\n //---------------------------------------------------------------------------\n StringBuffer buff=new StringBuffer(\"\\n*****ClassSQLContract: \"); \n buff.append(\"\\tbuffer=\"+buffer.toString()); \n buff.append(\"\\theaderDefinition=\"+header); \n buff.append(\"\\tsqlTagsGeneratorTable=\"+sqlTagsGeneratorTable); \n buff.append(\"\\ttableName=\"+tableName); \n return buff.toString(); \n\t}", "@Override\n\tprotected String getParameterizedFields()\n\t{\n\t\tString fields = \" GAZOID=?, GAZFLD=?, GAZPVN=?, GAZTYP=?, GAZCLN=?, GAZCLS=? \";\n\t\treturn fields;\n\t}", "public String toString() {\n\t\tboolean first = true;\n\t\tStringWriter buf = new StringWriter();\n\t\tbuf.append('[');\n\t\tfor(String value : values) {\n\t\t\tif(first) { first = false; } else { buf.append(\",\"); }\n\t\t\tbuf.append(value);\n\t\t}\n\t\tbuf.append(']');\n\t\treturn buf.toString();\t\t\n\t}" ]
[ "0.61965644", "0.6149477", "0.6054092", "0.6040682", "0.59646475", "0.58804774", "0.57220066", "0.56613797", "0.5606311", "0.55956364", "0.5557204", "0.5529242", "0.5513154", "0.550499", "0.5497266", "0.5475879", "0.5475208", "0.54598373", "0.5456342", "0.545603", "0.5443929", "0.5442269", "0.54370147", "0.5418799", "0.54164153", "0.5408971", "0.5397558", "0.5392578", "0.53772724", "0.535512", "0.534772", "0.5333743", "0.53271556", "0.5295597", "0.5289146", "0.5289118", "0.52695", "0.5253828", "0.5247597", "0.5210217", "0.51848394", "0.51847965", "0.51839674", "0.5173913", "0.5169123", "0.5162109", "0.515813", "0.51571035", "0.5142323", "0.5140862", "0.5136921", "0.5127483", "0.5126057", "0.5125546", "0.51238215", "0.511391", "0.5086342", "0.5083735", "0.5069151", "0.50638866", "0.5063697", "0.5062775", "0.5058646", "0.5053914", "0.5045402", "0.50423896", "0.5035468", "0.50190127", "0.5016016", "0.50135714", "0.50012684", "0.49964455", "0.49929482", "0.49891508", "0.4988234", "0.49834073", "0.49812707", "0.49784502", "0.49749646", "0.49671084", "0.49653336", "0.49586752", "0.49515373", "0.49505892", "0.49483457", "0.49455538", "0.49409533", "0.49319497", "0.49302965", "0.49264094", "0.49223226", "0.4919388", "0.49178553", "0.4911368", "0.49037728", "0.48861572", "0.48848242", "0.48824933", "0.4880524", "0.4876874" ]
0.6197175
0
Depending on provider access type correct inconsistent signatures for composite exertions only. Tasks go either to its provider directly or Spacer depending on their provider access type (PUSH or PULL).
public Signature correctProcessSignature() { if (!exertion.isJob()) return exertion.getProcessSignature(); Signature sig = exertion.getProcessSignature(); if (sig != null) { Access access = exertion.getControlContext().getAccessType(); if ((Access.PULL == access || Access.QOS_PULL == access) && !exertion.getProcessSignature().getServiceType() .isAssignableFrom(Spacer.class)) { sig.setServiceType(Spacer.class); ((NetSignature) sig).setSelector("service"); sig.setProviderName(SorcerConstants.ANY); sig.setType(Signature.Type.SRV); exertion.getControlContext().setAccessType(access); } else if ((Access.PUSH == access || Access.QOS_PUSH == access) && !exertion.getProcessSignature().getServiceType() .isAssignableFrom(Jobber.class)) { if (sig.getServiceType().isAssignableFrom(Spacer.class)) { sig.setServiceType(Jobber.class); ((NetSignature) sig).setSelector("service"); sig.setProviderName(SorcerConstants.ANY); sig.setType(Signature.Type.SRV); exertion.getControlContext().setAccessType(access); } } } else { sig = new NetSignature("service", Jobber.class); } return sig; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public TaskProvider getTaskProvider();", "public interface TasksContract {\n\n public interface View extends BaseView<Presenter> {\n void showAddTask();\n void showSuccessfullySavedMessage();\n }\n\n public interface Presenter extends BasePresenter{\n void result(int requestCode, int resultCode);\n void addNewTask();\n }\n}", "@ThreadSafe\npublic interface AuthorizationProvider {\n\n public static String SENTRY_PROVIDER = \"sentry.provider\";\n\n /***\n * Returns validate subject privileges on given Authorizable object\n *\n * @param subject: UserID to validate privileges\n * @param authorizableHierarchy : List of object according to namespace hierarchy.\n * eg. Server->Db->Table or Server->Function\n * The privileges will be validated from the higher to lower scope\n * @param actions : Privileges to validate\n * @param roleSet : Roles which should be used when obtaining privileges\n * @return\n * True if the subject is authorized to perform requested action on the given object\n */\n public boolean hasAccess(Subject subject, List<? extends Authorizable> authorizableHierarchy,\n Set<? extends Action> actions, ActiveRoleSet roleSet);\n\n /***\n * Get the GroupMappingService used by the AuthorizationProvider\n *\n * @return GroupMappingService used by the AuthorizationProvider\n */\n public GroupMappingService getGroupMapping();\n\n /***\n * Validate the policy file format for syntax and semantic errors\n * @param strictValidation\n * @throws SentryConfigurationException\n */\n public void validateResource(boolean strictValidation) throws SentryConfigurationException;\n\n /***\n * Returns the list privileges for the given subject\n * @param subject\n * @return\n * @throws SentryConfigurationException\n */\n public Set<String> listPrivilegesForSubject(Subject subject) throws SentryConfigurationException;\n\n /**\n * Returns the list privileges for the given group\n * @param groupName\n * @return\n * @throws SentryConfigurationException\n */\n public Set<String> listPrivilegesForGroup(String groupName) throws SentryConfigurationException;\n\n /***\n * Returns the list of missing privileges of the last access request\n * @return\n */\n public List<String> getLastFailedPrivileges();\n\n /**\n * Frees any resources held by the the provider\n */\n public void close();\n}", "void toProvider(@NotNull Class<? extends Provider<? extends T>> provider);", "public interface AddEditTaskContract {\n\n interface View extends BaseView<Presenter> {\n\n void showEmptyTaskError();\n\n void showTasksList();\n\n void setTitle(String title);\n\n void setDescription(String description);\n\n boolean isActive();\n }\n\n interface Presenter extends BasePresenter<View> {\n\n void saveTask(String title, String description);\n\n void populateTask();\n\n boolean isDataMissing();\n }\n}", "public interface ReqAccessContract {\n\n interface View extends BaseView<Presenter> {\n void onNameError(String message);\n void onUsernameError(String message);\n void onPasswordError(String message);\n void onRelationshipEmptyError();\n void onRequestSentSuccessfully();\n void onAlreadyRegistered();\n void onImageAvailable(Bitmap image);\n void onAlreadyGranted();\n void onError(String displayMessage);\n void showLoadingIndicator();\n void hideLoadingIndicator();\n void onEmptyUserNameError();\n void onNoProfilePicError();\n }\n\n interface Presenter extends BasePresenter {\n void launchImagePicker();\n\n void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull\n int[] grantResults);\n\n void onActivityResult(int requestCode, int resultCode, Intent data);\n\n void handleAccessRequest(User user);\n }\n}", "void toProvider(@NotNull Provider<? extends T> provider);", "public interface BancoProvider extends Provider<String>{\n\n}", "public interface AbstractTask extends KeyProvider<TaskKey> {\r\n\r\n boolean isBlocking();\r\n}", "public interface WorkflowProvider {\n\n /** Get the priority that should be specified within a subtask\n * of the specified operation type.\n * The default implementation returns null.\n * @param operationType The operation type of the subtask.\n * @return The priority that should be used, or null, if the\n * provider does not need/want to specify one.\n */\n default Integer defaultPriority(@SuppressWarnings(\"unused\")\n final SubtaskOperationType operationType) {\n return null;\n }\n\n /** Perform a subtask.\n * @param taskInfo The top-level TaskInfo for the subtask.\n * @param subtask The subtask to be performed.\n */\n void doSubtask(TaskInfo taskInfo, Subtask subtask);\n\n}", "public interface MyTopicContract {\n\n interface IMyTopicView<T>{\n void getMyTopicDta(T t);\n }\n interface IMyTopicModule{\n <T> void getMyTopic(NetworkCallBack<T> networkCallBack);\n }\n\n interface IMyTopicPresenter{\n void getMyTopic();\n }\n\n\n}", "public interface HelpIndexContract\n{\n interface presenter extends BasePresenter\n {\n\n void onPriorityImage(Context helpIndexTicketDetails, String priority, ImageView ivHelpCenterPriorityPre);\n\n void callApiToCommentOnTicket(String trim, String zenId);\n\n void callApiToCreateTicket(String trim, String subject, String priority);\n\n void callApiToGetTicketInfo(String zenId);\n }\n interface HelpView extends BaseView\n {\n\n void onTicketInfoSuccess(ArrayList<ZendeskDataEvent> events, String timeToSet, String subject, String priority, String type);\n\n void onZendeskTicketAdded(String response);\n void onError(String errMsg);\n }\n}", "public interface ActivityTypeContract {\n\n interface Presenter extends BasePresenter<View, Presenter> {\n\n }\n\n interface ViewModel {\n void setContext(Context context);\n }\n\n interface View extends BaseView, LoaderView {\n void showPermissionMission(String msg);\n }\n}", "public interface ServerTokenExchangeProvider extends Provider, ServerTokenExchange\n{\n}", "public interface PickDistributeContract {\n\n interface View extends BaseContract.View<PickDistributeContract.Presenter> {\n void success(RspAllDistribute list);\n\n void itemSuccess(List<RspDistribute> list);\n\n void submitSuccess();\n }\n\n interface Presenter extends BaseContract.Presenter {\n void getData();\n\n void itemClick(List<RspDistribute> list, int position);\n\n void submit(List<RspDistribute> list,String note,RspUser chooseEmp);\n }\n}", "public interface ComposeContract {\n\n interface View extends BaseView<Presenter> {\n\n }\n\n interface Presenter extends BasePresenter {\n\n }\n}", "@StarlarkBuiltin(\n name = \"Provider\",\n doc =\n \"Do not use this module. It is intended for migration purposes only. If you depend on \"\n + \"it, you will be broken when it is removed.\",\n documented = false)\n interface Provider<\n FileT extends FileApi,\n FilesToRunProviderT extends FilesToRunProviderApi<FileT>,\n TransT extends TransitiveInfoCollectionApi>\n extends ProviderApi {\n\n @StarlarkMethod(\n name = NAME,\n doc = \"The <code>AndroidSdkInfo</code> constructor.\",\n documented = false,\n parameters = {\n @Param(\n name = \"build_tools_version\",\n doc = \"A string of the build tools version.\",\n positional = true,\n named = false),\n @Param(\n name = \"framework_aidl\",\n doc = \"An artifact of the AIDL framework.\",\n positional = true,\n named = false),\n @Param(\n name = \"aidl_lib\",\n doc = \"A transitive info collection of the AIDL lib.\",\n positional = true,\n named = false,\n allowedTypes = {\n @ParamType(type = TransitiveInfoCollectionApi.class),\n @ParamType(type = NoneType.class),\n }),\n @Param(\n name = \"android_jar\",\n doc = \"An artifact of the Android Jar.\",\n positional = true,\n named = false),\n @Param(\n name = \"sourceProperties\",\n doc = \"An artifact of the AIDL lib.\",\n positional = true,\n named = false,\n allowedTypes = {\n @ParamType(type = FileApi.class),\n @ParamType(type = NoneType.class),\n }),\n @Param(\n name = \"shrinked_android_jar\",\n doc = \"An artifact of the shrunk Android Jar.\",\n positional = true,\n named = false,\n allowedTypes = {\n @ParamType(type = FileApi.class),\n @ParamType(type = NoneType.class),\n }),\n @Param(\n name = \"main_dex_classes\",\n doc = \"An artifact of the main dex classes.\",\n positional = true,\n named = false),\n @Param(\n name = \"adb\",\n doc = \"A files to run provider of ADB.\",\n positional = true,\n named = false),\n @Param(\n name = \"dx\",\n doc = \"A files to run provider of Dx.\",\n positional = true,\n named = false),\n @Param(\n name = \"main_dex_list_creator\",\n doc = \"A files to run provider of the main dex list creator.\",\n positional = true,\n named = false),\n @Param(\n name = \"aidl\",\n doc = \"A files to run provider of AIDL.\",\n positional = true,\n named = false),\n @Param(\n name = \"aapt\",\n doc = \"A files to run provider of AAPT.\",\n positional = true,\n named = false),\n @Param(\n name = \"aapt2\",\n doc = \"A files to run provider of AAPT2.\",\n positional = true,\n named = false),\n @Param(\n name = \"apk_builder\",\n doc = \"A files to run provider of the Apk builder.\",\n positional = true,\n named = false,\n allowedTypes = {\n @ParamType(type = FilesToRunProviderApi.class),\n @ParamType(type = NoneType.class),\n }),\n @Param(\n name = \"apk_signer\",\n doc = \"A files to run provider of the Apk signer.\",\n positional = true,\n named = false),\n @Param(\n name = \"proguard\",\n doc = \"A files to run provider of Proguard.\",\n positional = true,\n named = false),\n @Param(\n name = \"zipalign\",\n doc = \"A files to run provider of Zipalign.\",\n positional = true,\n named = false),\n @Param(\n name = \"system\",\n doc = \"\",\n defaultValue = \"None\",\n positional = true,\n named = false),\n @Param(\n name = \"legacy_main_dex_list_generator\",\n defaultValue = \"None\",\n positional = true,\n named = false,\n allowedTypes = {\n @ParamType(type = FilesToRunProviderApi.class),\n @ParamType(type = NoneType.class),\n }),\n },\n selfCall = true)\n @StarlarkConstructor\n AndroidSdkProviderApi<FileT, FilesToRunProviderT, TransT> createInfo(\n String buildToolsVersion,\n FileT frameworkAidl,\n Object aidlLib,\n FileT androidJar,\n Object sourceProperties,\n Object shrinkedAndroidJar,\n FileT mainDexClasses,\n FilesToRunProviderT adb,\n FilesToRunProviderT dx,\n FilesToRunProviderT mainDexListCreator,\n FilesToRunProviderT aidl,\n FilesToRunProviderT aapt,\n FilesToRunProviderT aapt2,\n Object apkBuilder,\n FilesToRunProviderT apkSigner,\n FilesToRunProviderT proguard,\n FilesToRunProviderT zipalign,\n Object system,\n Object legacyMainDexListGenerator)\n throws EvalException;\n }", "public interface OtpContract {\n interface View {\n void displayProgressbar(boolean enable);\n void displayError(String message);\n void launchDetailsInputView(String token);\n }\n\n interface Presenter {\n void verifyOtp(String otp, String phoneNumber);\n }\n}", "public interface IPickerWaitContract {\n interface IView extends IBaseView {\n void queryGrabOrdersStatusSuccess(QueryGrabOrdersStatusRespEntity entity);\n\n void queryGrabOrdersStatusFail(int errorCode, String message);\n\n void queryGrabOrdersStatusError();\n\n void grabOrdersSuccess(GrabOrdersRespEntity entity);\n\n void grabOrdersFail(int errorCode, String message);\n\n void grabOrdersError();\n }\n\n interface IPresenter extends IBasePresenter<IView> {\n void queryUserOrderState();\n\n void grabOrder();\n }\n}", "Provider createProvider();", "public interface ConsumerAdminOperations\n{\n\t/* constants */\n\t/* operations */\n\torg.omg.CosEventChannelAdmin.ProxyPushSupplier obtain_push_supplier();\n\torg.omg.CosEventChannelAdmin.ProxyPullSupplier obtain_pull_supplier();\n}", "public interface FuturePlanInsertContract {\n public interface Presenter {\n //提交\n void insertFuturePlan(FuturePlanInsert futurePlanInsert);\n }\n\n public interface View extends BaseView<UserLoginContract.Presenter> {\n\n //成功\n void insertFuturePlanSuccess();\n\n void insertFuturePlanFail(String code, String message);\n }\n}", "public interface CargoForecastPasswordContract {\n interface View extends IBaseView, ITransactionView, ICommitSuccessView {\n void showHint(String text);\n }\n\n interface Presenter extends IBasePresenter {\n void submit(String dp, String dpc, String rp, String rpc) throws UnsupportedEncodingException;\n }\n}", "public interface CredentialConnector {\n\n /**\n * Check whether the credential (e.g public key) associated with a stack (cluster) has present on Cloud provider.\n *\n * @param authenticatedContext the authenticated context which holds the client object\n * @return the status respone of method call\n */\n CloudCredentialStatus verify(@Nonnull AuthenticatedContext authenticatedContext);\n\n\n /**\n * Create the credential (e.g public key) associated with a stack (cluster) on Cloud provider.\n *\n * @param authenticatedContext the authenticated context which holds the client object\n * @return the status respone of method call\n */\n CloudCredentialStatus create(@Nonnull AuthenticatedContext authenticatedContext);\n\n\n /**\n * Interactive login for credential creation.\n *\n * @return parameters for interactive login\n */\n Map<String, String> interactiveLogin(CloudContext cloudContext, ExtendedCloudCredential extendedCloudCredential,\n CredentialNotifier credentialNotifier);\n\n /**\n * Delete the credential (e.g public key) associated with a stack (cluster) from Cloud provider.\n *\n * @param authenticatedContext the authenticated context which holds the client object\n * @return the status respone of method call\n */\n CloudCredentialStatus delete(@Nonnull AuthenticatedContext authenticatedContext);\n\n}", "public interface SignUpContract {\n\n interface Presenter extends BasePresenter {\n void signUp(String username, String password, int type, Closure<User> callback);\n }\n\n interface View extends BaseView<Presenter> {\n\n void showProgressBar();\n\n void hideProgressBar();\n\n void showToast(String message);\n\n void enableSignUp();\n\n void unenableSignUp();\n }\n\n}", "public interface SdnControllerProviderInterface {\n\n\t/**\n\t * Method used to read the current topology from the SDN controller\n\t * \n\t * @return the network topology\n\t * @throws NotExistingEntityException if the topology is not found on the controller\n\t * @throws MethodNotImplementedException if the method is not implemented\n\t */\n\tpublic NetworkTopology getNetworkTopology() throws NotExistingEntityException, MethodNotImplementedException;\n\t\n\t/**\n\t * Method used to set the power state of a given node \n\t * \n\t * @param deviceId ID of the network node to be configured\n\t * @param powerState power state to be activated on the network node\n\t * @param consumer the consumer that should receive a notification about the result of the requested command\n\t * @return the operation ID\n\t * @throws NotExistingEntityException if the node is not found\n\t * @throws FailedOperationException if the operation fails\n\t * @throws MethodNotImplementedException if the SDN controller does not support the feature\n\t */\n\tpublic String setPowerState(String deviceId, PowerState powerState, SdnControllerConsumerInterface consumer) throws NotExistingEntityException, FailedOperationException, MethodNotImplementedException;\n\t\n\t/**\n\t * Method used to set the power state of a set of given nodes in an atomic action.\n\t * If a single action fails, the method should automatically roll-back the action.\n\t * \n\t * @param devicesPowerState power states to be configured for the given set of network nodes\n\t * @throws NotExistingEntityException if the node is not found\n\t * @throws FailedOperationException if the operation fails\n\t * @throws MethodNotImplementedException if the SDN controller does not support the feature\n\t */\n\tpublic void setPowerState(Map<String,PowerState> devicesPowerState) throws NotExistingEntityException, FailedOperationException, MethodNotImplementedException;\n\t\n\t\n\t/**\n\t * Method used to establish a list of network paths. \n\t * The method must setup all the paths or none, i.e. if one of them fails, the others should be removed. \n\t * \n\t * @param networkPath list of network paths to be established\n\t * @return the operation ID\n\t * @throws NotExistingEntityException if one the entity in the network paths is not found\n\t * @throws FailedOperationException if the operation fails\n\t * @throws MethodNotImplementedException if the SDN controller does not support the feature\n\t */\n\tpublic String setupPaths(List<SbNetworkPath> networkPath, SdnControllerConsumerInterface consumer) throws NotExistingEntityException, FailedOperationException, MethodNotImplementedException;\n\t\n\t/**\n\t * Method used to remove a list of network paths.\n\t * \n\t * @param networkPathIds list of IDs of the network paths to be removed\n\t * @return the operation ID\n\t * @throws NotExistingEntityException if one of the network path is not found\n\t * @throws FailedOperationException if the operation fails\n\t * @throws MethodNotImplementedException if the SDN controller does not support the feature\n\t */\n\tpublic String removePaths(List<String> networkPathIds, SdnControllerConsumerInterface consumer) throws NotExistingEntityException, FailedOperationException, MethodNotImplementedException;\n\t\n}", "public interface Consumer {\n\n @Nonnull\n String getApiKey();\n\n void setApiKey(@Nonnull String apiKey);\n\n @Nonnull\n String getLoginId();\n\n void setLoginId(@Nonnull String loginId);\n\n @Nonnull\n String getSiteKey();\n\n void setSiteKey(@Nonnull String siteKey);\n\n @Nonnull\n String getTouchPoint();\n\n void setTouchPoint(@Nonnull String touchPoint);\n\n @Nonnull\n String getTid();\n\n void setTid(@Nonnull String tid);\n\n boolean hasTid();\n\n void setSharedSecret(@Nonnull String sharedSecret);\n\n @Nonnull\n String getSharedSecret();\n}", "public interface MigrarContract {\r\n\r\n interface View extends BaseView<Presenter> {\r\n\r\n void showErrorEmptyName();\r\n\r\n void showErrorVaultExists();\r\n\r\n void showErrorEmptyPassword();\r\n\r\n void showErrorIncorrectPassword();\r\n\r\n void showErrorNoSeAhEcontradoVault();\r\n\r\n public void showTasksList();\r\n\r\n boolean isActive();\r\n\r\n public void terminar();\r\n }\r\n\r\n interface Presenter extends BasePresenter {\r\n\r\n void migrarVault(String name, String password);\r\n\r\n void populateVault();\r\n }\r\n}", "public interface BaseContract {\n interface BasePresenter<T extends BaseView>{\n //绑定\n void attchView(T view);\n //解绑\n void detachView();\n }\n\n interface BaseView {\n void showLoading();\n void dismissLoading();\n }\n}", "public interface SysOperateLogProvider extends BaseProvider<SysOperateLog> {\n\n /**\n * 分页查询\n * @param map\n * @return\n */\n List<SysOperateLog> getPageInfo(Map<String,Object> map);\n\n long getCount(Map<String,Object> map);\n\n\n int addSysOperateLog(SysOperateLog sysOperateLog);\n\n List<SysOperateLog> findByIp(String operateIp);\n\n}", "public interface BaseContract {\n\n interface BasePresenter<T>{\n\n void attachView(T view);\n\n }\n\n interface BaseView{\n void showError();\n\n void complete();\n }\n}", "public interface MainProvider extends IProvider {\n void providerMain(Context context);\n}", "public interface IProvider extends BaseProvider{\n}", "public interface LineDowntimeContract {\n interface View extends BaseView<Presenter>{\n void initAdapters();\n void updateLine();\n void showAddDowntimeDialog(Context context, Zone zone);\n void showAddEventDialog(Context context, final int reason);\n void showListDowntimeDialog(Context context, ArrayList<Downtime> downtimes);\n void showListButton();\n void hideListButton();\n\n }\n interface Presenter extends BasePresenter<View>{}\n}", "public interface CityPickContract {\n\n\n interface View extends BaseView {\n void getCity(String city);\n }\n\n interface Presenter extends BasePersenter<View> {\n void getCity(String appKey, String timeStamp, String sign, Context context);\n }\n\n}", "public interface EditAddressContract {\n interface View extends BaseView<Presenter> {\n void startRegisterSuccessActivity();\n\n void startDialogLibraryCapture();\n\n void showError();\n\n void startCamera();\n\n void startGallery();\n }\n\n interface Presenter extends BasePresenter {\n\n void editProfile(Bitmap avatar, String fullName, String address1, String address2, String email);\n }\n}", "public interface DepositContract {\n\n abstract class DepositBasePresenter extends BasePresenter<DepositContract.DepositBaseView> {\n\n public abstract void loadPayAmount();\n\n public abstract void onPay(PayManager.PayChannel payChannel);\n\n public abstract PayManager.PayListener onPayListener();\n\n public abstract void showMoreType(View btnMoreType, View btnAliPay);\n }\n\n interface DepositBaseView extends BaseDependView<DepositContract.DepositBasePresenter> {\n\n void showMinBalance(String balance);\n\n void onPay(PayManager.PayChannel payChannel,String orderInfo);\n }\n}", "public interface MyDetailContract {\n interface View extends BaseView {\n void uploading();\n void upImgSuccess(String url);\n void upSuccess();\n void upfail(String msg);\n }\n\n interface Presenter extends BasePresenter<View> {\n void UploadHeadImage(File file);\n void UpdateUserBasicInfo(User user);\n }\n}", "public interface AddReservationDetailsActivityContract {\n\n interface View extends BaseView { void outLogin();\n\n /**\n *成功\n */\n void succeed(CodeBean codeBean);\n\n\n\n\n }\n\n interface Presenter extends BasePresenter<View> {\n\n\n void AddMemberLessonAppointment(String APPUserId ,\n String ClubId ,\n String MemberId ,\n String LessonId ,\n String AppointmentTeacherId ,\n String Content ,\n String token ,\n String StartTime ,\n String EndTime ,\n String TipStartTime ,\n String TipInterval ,\n String AppointmentCata ,\n String AppointmentOwner ,\n String AppointmentStatus\n );\n\n\n }\n}", "protected Provider() {}", "public interface EditUserInfoContract {\n\n interface View extends BaseView<Presenter> {\n boolean isActive();\n\n void showInfo(ApiService.PersonInfo personInfo);\n\n void showError(String error);\n\n void showModifySuccess();\n }\n\n interface Presenter extends BasePresenter {\n void modifyInfo(String nickName,\n String signature,\n String sex,\n String telephone,\n String faculty,\n String specialty,\n String grade,\n String dormitory);\n }\n}", "public interface Provider {\n public Sender produce();\n}", "public interface BlockStorageManagementController extends StorageController {\n\n /**\n * Add Storage system to SMIS Provider\n * \n * @param storage : URI of the storage system to add to the providers\n * @param providers : array of URIs where this system must be added\n * @param primaryProvider : indicate if the first provider in the list must\n * be treated as the active provider\n * @throws InternalException\n */\n public void addStorageSystem(URI storage, URI[] providers, boolean primaryProvider, String opId) throws InternalException;\n\n /**\n * Validate storage provider connection.\n * \n * @param ipAddress the ip address\n * @param portNumber the port number\n * @param interfaceType\n * @return true, if successful\n */\n public boolean validateStorageProviderConnection(String ipAddress, Integer portNumber, String interfaceType);\n}", "@ProviderType\npublic interface CoordinatorService {\n\n enum Type {\n /** Entities that process samples from the queue and store the result in a datastore. */\n PROCESSOR,\n /** Entities that produce samples. */\n PRODUCER;\n }\n\n /**\n * Returns the maximum amount of replicas allowed for a given type of service.\n * \n * @param type the type of service to get the replica-count for, cannot be <code>null</code>;\n * @return the maximum amount of replicas, &gt;= 0.\n */\n int getMaxReplicaCount(Type type);\n\n /**\n * Returns the current amount of replicas for a given type of service.\n * \n * @param type the type of service to get the replica-count for, cannot be <code>null</code>;\n * @return the current amount of replicas, &gt;= 0.\n */\n int getReplicaCount(Type type);\n\n /**\n * Sets the desired amount of replicas for a given type of service.\n * \n * @param type the type of service to set the replica-count for, cannot be <code>null</code>;\n * @param number the new desired number of replicas, &gt;= 0. Negative values or values beyond the maximum number of replicas are ignored.\n * @return <code>true</code> if the replica count is changed, <code>false</code> otherwise.\n */\n boolean setReplicaCount(Type type, int number);\n}", "public interface IBaseContract {\n interface IBaseView {\n void showLoading();\n\n void hideLoading();\n }\n\n interface IBasePresenter<T extends IBaseView> {\n void attachView(T view);\n\n void dettachView();\n }\n}", "public interface CourseListContract {\n\n interface View extends BaseView<Presenter> {\n\n void setLoadingIndicator(boolean active);\n\n void showCourses(List<Courses> courseList);\n\n void onCourseSelected(Courses selectedCourse, int selectedPosition);\n\n void showNoCourse();\n\n void showCourseLoadError();\n\n boolean isActive();\n }\n\n interface Presenter extends BasePresenter<View> {\n\n void loadCourses(boolean fromDB);\n\n void onCourseSelected(Courses selectedCourse, int position);\n\n void takeView(View view);\n }\n}", "interface WorkOrderContract {\n\n interface View extends BaseView<WorkOrderContract.Presenter> {\n\n void showList(List<WorkOrder> list, boolean showMapButtons);\n\n void highlightInfoButton(WorkOrder workOrder);\n\n void removeInfoButtonHighlight(WorkOrder workOrder);\n\n void expandInfoPanel(WorkOrder workOrder);\n\n void shrinkInfoPanel(WorkOrder workOrder);\n\n boolean isMapAvailable();\n\n void showOpenMapConfirmation(WorkOrder workOrder);\n\n void hideOpenMapConfirmation();\n\n void showInMap(String address);\n\n void showNewWorkOrderConfirmation();\n\n void hideNewWorkOrderConfirmation();\n\n void showNewWorkOrderScreen();\n }\n\n\n interface Presenter extends BasePresenter {\n\n void start();\n\n void moreInfoClicked(WorkOrder workOrder);\n\n void hideInfoClicked(WorkOrder workOrder);\n\n void openMapClicked(WorkOrder workOrder);\n\n void confirmOpenMapClicked(WorkOrder workOrder);\n\n void cancelOpenMapClicked();\n\n void newWorkOrderClicked();\n\n void confirmNewWorkOrderClicked();\n\n void cancelNewWorkOrderClicked();\n }\n}", "public interface BaseContract {\n interface BasePresenter<T extends BaseContract.BaseView> {\n /**\n * 绑定\n * @param view\n */\n void attachView(T view);\n\n void detachView();\n }\n\n interface BaseView {\n\n /**\n * 显示进度中\n */\n void showLoading();\n\n /**\n * 显示请求成功\n */\n void showSuccess();\n\n /**\n * 失败重试\n */\n void showFaild();\n\n /**\n * 显示当前网络不可用\n */\n void showNoNet();\n\n /**\n * 重试\n */\n void onRetry();\n\n /**\n * 绑定生命周期\n * @param <T>\n * @return\n */\n <T> LifecycleTransformer<T> bindToLife();\n }\n}", "public interface ExercisesContract {\n interface View extends BaseView<Presenter> {\n void displayExercises(List<Exercise> exerciseList);\n }\n interface Presenter extends BasePresenter{\n }\n}", "public interface LoginContract {\n\n interface View extends BaseView<Presenter> {\n void showUserData(User user);\n }\n\n interface Presenter extends BasePresenter<View> {\n void login(LoginSub loginSub);\n\n void deleteDatabase();\n }\n\n}", "public interface PaymentComponentProvider<ComponentT extends PaymentComponent, ConfigurationT extends Configuration>\n extends ComponentProvider<ComponentT> {\n\n @SuppressWarnings(\"LambdaLast\")\n @NonNull\n ComponentT get(\n @NonNull ViewModelStoreOwner viewModelStoreOwner,\n @NonNull PaymentMethod paymentMethod,\n @NonNull ConfigurationT configuration\n ) throws CheckoutException;\n}", "public interface RecommandContract {\n\n interface View extends BaseView<Presenter>{\n boolean isActive();\n void showContent();\n void refreshFaild(String msg);\n void stopBanner(boolean stop);\n }\n\n\n interface Presenter extends BasePresenter{\n void onRefresh();\n }\n}", "public interface SingleAccessPoint {\t\n\t\n\t/**\n\t * This method returns some kind of message to the client, which could be anything\n\t * and needs to be implemented for the concrete accesspoint\n\t */\n\tpublic void returnMessage(String message);\n\t\n\t/**\n\t * \n\t * @param message Message to display\n\t * @return AuthenticationToken that needs to be compatible with backend.\n\t */\n\tpublic AuthenticationToken getAuthentication(String message);\n\t\n\n\t\t\n\t\n\t\n}", "public interface TopicContract {\n\n interface View extends MvpView {\n void showTopics(TopicsResponse topicsResponse);\n }\n\n interface Presenter extends MvpPresenter<View> {\n void getTopics(String type, int offset);\n }\n}", "Provider moveProvider(String providerId, String aggregatorId) throws RepoxException;", "public interface LoginContract {\n interface View extends BaseView<Presenter> {\n void showProgress();\n\n void hideProgress();\n\n void toast(String msg);\n }\n\n interface Presenter extends BasePresenter {\n void getSmsCode();\n\n void login(long uid, String pwd);\n }\n}", "@Override\n public String[] getUnderstoodOperations() {\n return new String[]{\n AHCSConstants.INITIALIZE_TASK,\n AHCSConstants.MESSAGE_NOT_UNDERSTOOD_INFO,\n AHCSConstants.PERFORM_MISSION_TASK,};\n }", "public interface Offer {\r\n\t/**\r\n\t * information about provider \r\n\t * @return\r\n\t */\r\n\tOperationUser getOfferProvider();\r\n\r\n\t/**\r\n\t * short description of offer\r\n\t * @return\r\n\t */\r\n\tString getOfferSummary();\r\n}", "public interface ActionProvider {\n\n\n /**\n * Example of generic method to fetch actions by particular type.\n *\n * @param entityId the entity identifier\n * @param entityClass the entity class\n * @return the available actions for entity\n */\n Set<Action> getAvailableActions(Long entityId, Class<Action> entityClass);\n}", "public interface GroupAndRecordsContract {\n interface View extends BaseView {\n void followerSuc(String suc);\n void followerErr(String err);\n void followerLoading();\n }\n interface Presenter extends BasePresenter<GroupAndRecordsContract.View> {\n void followerSuc(String suc);\n void followerErr(String err);\n void followerLoading();\n void showError(String msg);\n }\n}", "public interface PlacesContract {\r\n\r\n interface View extends BaseView<Presenter> {\r\n void showPlaces(List<Place> places);\r\n void showAddPlaceUi();\r\n void showPlaceDetailUI(@NonNull String placeID);\r\n void startDirectionActivity(@NonNull String placeID);\r\n void showNoDataAvailable();\r\n void hideNoDataAvailable();\r\n }\r\n\r\n interface Presenter extends BasePresenter {\r\n void loadPlaces();\r\n void addNewPlace();\r\n void openPlaceDetail(@NonNull String placeID);\r\n void openDirectionActivity(@NonNull String placeID);\r\n }\r\n}", "public interface CrossContract {\n interface View extends BaseContract.BaseView{\n void getCrossView(CrossBean crossBean);\n }\n interface Presenter extends BaseContract.BasePresenter<View>{\n void getCrossPresenter();\n }\n}", "public interface SingleTaskOrderController {\n\n /**\n * This method is used to place a SingleTaskOrder.\n *\n * @param user The user who wants to place the order\n * @param order The order the caller wants to place.\n */\n public void placeSingleTaskOrder(User user, SingleTaskOrder order);\n\n}", "public interface IBaseContract {\n\n interface IBasePresenter<T extends IBaseView> {\n\n void attachView(T view);\n\n void detachView();\n }\n\n\n interface IBaseView {\n //显示进度中\n void showLoading();\n\n //显示请求成功\n void showSuccess();\n\n }\n}", "public interface EditProfileContract {\n\n interface EditProfilePresenter extends BasePresenter {\n\n void fetchUserDetails();\n\n void handleNecessaryDataSave();\n\n void updateInputById(int id, String content);\n\n void updateEmail(String email);\n\n void updateMobile(String fullNumber);\n\n void handleProfileImageChangeRequest();\n\n void handleProfileImageRemoved();\n\n void handleClickProfileImageRequest();\n\n void handleExitOnUnsavedChanges();\n\n void onDialogNegative();\n\n void onDialogPositive();\n }\n\n interface EditProfileView extends BaseView<EditProfilePresenter> {\n\n void showDefaultImageByUsername(String fullName);\n\n void showUsername(String username);\n\n void showEmail(String email);\n\n void showVpa(String vpa);\n\n void showMobileNumber(String mobileNumber);\n\n void removeProfileImage();\n\n void changeProfileImage();\n\n void clickProfileImage();\n\n void onUpdateEmailError(String message);\n\n void onUpdateMobileError(String message);\n\n void showToast(String message);\n\n void showFab();\n\n void hideFab();\n\n void hideKeyboard();\n\n void startProgressBar();\n\n void stopProgressBar();\n\n void showDiscardChangesDialog();\n\n void closeActivity();\n }\n}", "public interface IProvider2\n{\n public String testMethod(String ss);\n}", "public interface TaskControlProtocol extends Protocol {\n\n /**\n * <p>\n * Terminates task if possible, in case where task already in\n * terminated or done state doing nothing.\n * </p>\n *\n * <p>\n * Note, if task termination failed the cause exeption may be acquired through\n * {@code failure} consumer object.\n * </p>\n *\n * @param taskId identifier of task to be terminated, must be not null\n * @param message reason of termination, may be null\n * @param failure consumer of failure reasons, may be null\n */\n void terminateTask(UUID taskId, Optional<String> message,\n Optional<Consumer<Exception>> failure);\n\n /**\n * <p>\n * Terminates task if possible, in case where task already in\n * terminated or done state doing nothing.\n * </p>\n *\n * @param taskId identifier of task to be terminated, must be not null\n * @param message reason of termination, may be null\n */\n default void terminateTask(UUID taskId, String message) {\n this.terminateTask(taskId, Optional.ofNullable(message), Optional.empty());\n };\n\n /**\n * <p>\n * Terminates task if possible, in case where task already in\n * terminated or done state doing nothing.\n * </p>\n *\n * @param taskId identifier of task to be terminated, must be not null\n * @param message reason of termination, may be null\n * @param failure consumer of failure reasons, may be null\n *\n */\n default void terminateTask(UUID taskId, String message, Consumer<Exception> failure) {\n this.terminateTask(taskId, Optional.ofNullable(message), Optional.ofNullable(failure));\n };\n\n /**\n * <p>\n * Terminates task if possible, in case where task already in\n * terminated or done state doing nothing.\n * </p>\n *\n * @param taskId identifier of task to be terminated, must be not null\n * @param failure consumer of failure reasons, may be null\n *\n */\n default void terminateTask(UUID taskId, Consumer<Exception> failure) {\n this.terminateTask(taskId, Optional.empty(), Optional.ofNullable(failure));\n };\n\n /**\n * <p>\n * Terminates task if possible, in case where task already in\n * terminated or done state doing nothing.\n * </p>\n *\n * @param taskId identifier of task to be terminated, must be not null\n */\n default void terminateTask(UUID taskId) {\n this.terminateTask(taskId, Optional.empty(), Optional.empty());\n };\n\n}", "public interface TrendingHashTagContract {\n\n interface view extends BaseView<Presenter>{\n void showInitialActivity();\n void showProgress(boolean show);\n\n void showTags(List<HashTag> tags);\n\n }\n\n\n interface Presenter extends BasePresenter{\n void logOutUser();\n }\n}", "public interface WithDrawAContract {\n interface View extends BaseView{\n void showBalance(UserBalanceDto userBalanceDto);\n void withdrawSuccess();\n }\n interface Presenter extends BasePresenter{\n void getUserBalance();\n void submitWithdraw(WithDrawAccountDto withDrawAccountDto,String money);\n }\n}", "public interface ConfigurationProvider extends ContainerProvider, PackageProvider {\n}", "public interface MessageContract {\n\n interface View extends BaseView<Presenter> {\n\n Context getContext();\n\n void showMessages(List<Message> messages);\n\n void showOrHideEmptyView();\n\n void showLoadingIndicator();\n\n void hideLoadingIndicator();\n }\n\n interface Presenter extends BasePresenter {\n\n void loadMessages();\n }\n}", "public interface LoginContract {\n\n interface View extends BaseView<Presenter>{\n void loginprogress(boolean show);\n void populateAutoComplete();\n void showSnackbar();\n }\n\n interface Presenter extends BasePresenter{\n void login(User user);\n }\n}", "public interface DeviceStatusEPSProvider {\n /**\n * Call recalculation before get the device status\n * @return Device status info. Should check {@link DeviceStatusEPS#statusCalculatedSuccessfully} before use\n */\n DeviceStatusEPS calculateDeviceStatus();\n\n boolean init(Context context);\n\n boolean providerFinalize();\n /**\n * Get the saved device status without recalculation\n * @return Device status info. Should check {@link DeviceStatusEPS#statusCalculatedSuccessfully} before use\n */\n DeviceStatusEPS getDeviceStatus();\n}", "public interface CommandSchoolListContract {\n\n interface View extends BaseView<CommandSchoolListContract.Presenter> {\n\n void getSchoolsSuccess(List<SchoolInfo> data, int request_state);\n\n void showEmptyView(android.view.View view);\n\n void noitfyItem(int position);\n\n void reload();\n\n\n }\n\n interface Presenter extends BasePresenter {\n\n void getSchools(int cacheType, String country_id, int page, int request_state);\n\n void add2MySchool(String match_type, int school_Id, int position);\n\n void deleteMyChoose(String school_Id, int position);\n\n void showLoading(Context context, android.view.View emptyView);\n\n void setEmptyView(android.view.View emptyView);\n }\n}", "public interface ProductDetailContract {\n\n interface View extends IProgressView {\n\n }\n\n interface Presenter extends BaseViewPresenter<View> {\n\n }\n}", "public interface IProvider<MODEL, ID> {\n /**\n * Create\n *\n * @param model\n * @return ID\n */\n ID create(MODEL model);\n\n /**\n * Retreive\n *\n * @param id\n * @return M\n */\n MODEL retreive(ID id);\n\n /**\n * Update\n *\n * @param model\n * @return model ID\n */\n ID update(MODEL model);\n\n /**\n * Delete\n *\n * @param model\n * @return model ID\n */\n ID delete(MODEL model);\n\n}", "boolean transactTo_formatSDCard(int code, String transactName, ComponentName who, String diskId, int userId) {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n boolean bDisabled = false;\n try {\n IBinder binder = ServiceManager.getService(\"device_policy\");\n if (binder != null) {\n if (HWFLOW) {\n Log.i(TAG, \"Transact:\" + transactName + \" to device policy manager service.\");\n }\n _data.writeInterfaceToken(ConstantValue.DESCRIPTOR);\n if (who != null) {\n _data.writeInt(1);\n who.writeToParcel(_data, 0);\n } else {\n _data.writeInt(0);\n }\n _data.writeString(diskId);\n _data.writeInt(userId);\n binder.transact(code, _data, _reply, 0);\n _reply.readException();\n bDisabled = _reply.readInt() == 1;\n }\n _reply.recycle();\n _data.recycle();\n } catch (RemoteException localRemoteException) {\n Log.e(TAG, \"transactTo \" + transactName + \" failed: \" + localRemoteException.getMessage());\n } catch (Throwable th) {\n _reply.recycle();\n _data.recycle();\n }\n return bDisabled;\n }", "public interface ShotDetailContract {\n\n interface Presenter extends BasePresenter {\n void onLikesClick(int shotId);\n\n void onCommentsClick(int shotId);\n\n void onBucketsClick(int shotId);\n\n void onAvatarClick(User user,android.view.View view);\n }\n\n interface View extends BaseView {\n void showLikes(int shotId);\n\n void showComments(int shotId);\n\n void showBuckets(int shotId);\n\n void showUserUI(User user,android.view.View view);\n }\n}", "public interface AtmsContract {\n\n interface View extends BaseView<Presenter> {\n\n void initializeViewComponents();\n\n void showUI();\n\n void showIndicator(boolean active);\n\n void showAtms(List<Atm> atms);\n\n void showNoAtms();\n\n void refreshAtms(List<Atm> atms);\n\n void navigateToAddNewAtm();\n\n void askForLocationPermission();\n\n void atmMarkersNotFound();\n\n void showAtmMarkers(List<AtmMarker> markers);\n }\n\n interface Presenter extends BasePresenter {\n void loadAtms();\n void refreshAtms();\n void saveAtm(Atm atm);\n void caculateDistances(Location location, List<Atm> atms);\n }\n}", "@Override\n\t\t\t\tpublic <T> boolean canProvide(Class<T> type) {\n\t\t\t\t\treturn false;\n\t\t\t\t}", "@Override\n \tpublic void onProviderEnabled(String provider) {\n \n \t}", "public interface GroupGetForbidMemberContract {\n\n interface View extends IView, INoData, INoNet, ILoading {\n\n void showGagUserResult(List<GagGroupUser> users, List<StudentInfo> list);\n }\n\n interface Presenter extends IPresenter {\n void getMemberList(String sn, int page, int page_size, String status, String master_id, String flag);\n\n void lisGagUser(String groupId, List<StudentInfo> list);\n\n }\n}", "public interface SftpConsumerBuilder extends ScheduledConsumerBuilder\n{\n SftpConsumerBuilder setCriticalOnStartup(boolean criticalOnStartup);\n\n SftpConsumerBuilder setConfiguredResourceId(String configuredResourceId);\n\n SftpConsumerBuilder setConfiguration(ScheduledConsumerConfiguration scheduledConsumerConfiguration);\n\n SftpConsumerBuilder setMessageProvider(MessageProvider messageProvider);\n\n SftpConsumerBuilder setManagedEventIdentifierService(ManagedEventIdentifierService managedEventIdentifierService);\n\n SftpConsumerBuilder setManagedResourceRecoveryManager(ManagedResourceRecoveryManager managedResourceRecoveryManager);\n\n SftpConsumerBuilder setEventFactory(EventFactory eventFactory);\n\n SftpConsumerBuilder setCronExpression(String cronExpression);\n\n SftpConsumerBuilder setEager(boolean eager);\n\n SftpConsumerBuilder setIgnoreMisfire(boolean ignoreMisfire);\n\n SftpConsumerBuilder setTimezone(String timezone);\n\n SftpConsumerBuilder setSourceDirectory(String sourceDirectory);\n\n SftpConsumerBuilder setFilenamePattern(String filenamePattern);\n\n SftpConsumerBuilder setSourceDirectoryURLFactory(DirectoryURLFactory sourceDirectoryURLFactory);\n\n SftpConsumerBuilder setFilterDuplicates(Boolean filterDuplicates);\n\n SftpConsumerBuilder setFilterOnFilename(Boolean filterOnFilename);\n\n SftpConsumerBuilder setFilterOnLastModifiedDate(Boolean filterOnLastModifiedDate);\n\n SftpConsumerBuilder setRenameOnSuccess(Boolean renameOnSuccess);\n\n SftpConsumerBuilder setRenameOnSuccessExtension(String renameOnSuccessExtension);\n\n SftpConsumerBuilder setMoveOnSuccess(Boolean moveOnSuccess);\n\n SftpConsumerBuilder setMoveOnSuccessNewPath(String moveOnSuccessNewPath);\n\n SftpConsumerBuilder setChronological(Boolean chronological);\n\n SftpConsumerBuilder setChunking(Boolean chunking);\n\n SftpConsumerBuilder setChunkSize(Integer chunkSize);\n\n SftpConsumerBuilder setChecksum(Boolean checksum);\n\n SftpConsumerBuilder setMinAge(Long minAge);\n\n SftpConsumerBuilder setDestructive(Boolean destructive);\n\n SftpConsumerBuilder setMaxRows(Integer maxRows);\n\n SftpConsumerBuilder setAgeOfFiles(Integer ageOfFiles);\n\n SftpConsumerBuilder setClientID(String clientID);\n\n SftpConsumerBuilder setCleanupJournalOnComplete(Boolean cleanupJournalOnComplete);\n\n SftpConsumerBuilder setRemoteHost(String remoteHost);\n\n SftpConsumerBuilder setPrivateKeyFilename(String privateKeyFilename);\n\n SftpConsumerBuilder setMaxRetryAttempts(Integer maxRetryAttempts);\n\n SftpConsumerBuilder setRemotePort(Integer remotePort);\n\n SftpConsumerBuilder setKnownHostsFilename(String knownHostsFilename);\n\n SftpConsumerBuilder setUsername(String username);\n\n SftpConsumerBuilder setPassword(String password);\n\n SftpConsumerBuilder setConnectionTimeout(Integer connectionTimeout);\n\n SftpConsumerBuilder setIsRecursive(Boolean isRecursive);\n\n SftpConsumerBuilder setPreferredKeyExchangeAlgorithm(String preferredKeyExchangeAlgorithm);\n\n SftpConsumerBuilder setScheduledJobGroupName(String scheduledJobGroupName);\n\n SftpConsumerBuilder setScheduledJobName(String scheduledJobName);\n\n \n}", "public interface SmsApplyContract {\n\n interface View<T> extends BaseView<T> {\n\n void showEmptySmsCodeError();\n\n void setSmsCode(final String smsCode);\n\n void smsApplySuccess();\n }\n\n interface Presenter {\n\n void fillSmsField();\n\n void registerSmsCodeReceiver();\n\n void unregisterSmsCodeReceiver();\n\n void fillSmsCodeField();\n\n void applyCode();\n }\n}", "public interface RegisterActivityPresenter {\n /**\n * Request send sms code.\n *\n * @param context the context\n * @param phone the phone\n */\n void requestSendSMSCode(Context context,String phone);\n\n /**\n * Check sms code.\n *\n * @param context the context\n * @param phone the phone\n * @param check the check\n */\n void checkSMSCode(Context context,String phone,String check);\n\n /**\n * Register.\n *\n * @param context the context\n * @param phone the phone\n * @param username the username\n * @param pass the pass\n */\n void register(Context context,String phone,String username,String pass);\n\n /**\n * Register.\n *\n * @param context the context\n * @param phone the phone\n * @param username the username\n * @param pass the pass\n * @param age the age\n * @param sex the sex\n * @param xiaoqu the xiaoqu\n */\n void register(Context context,String phone,String username,String pass,Integer age,String sex,String xiaoqu,String alipay);\n}", "protected TemplateAvailabilityProviders(Collection<? extends TemplateAvailabilityProvider> providers)\n/* */ {\n/* 98 */ Assert.notNull(providers, \"Providers must not be null\");\n/* 99 */ this.providers = new ArrayList(providers);\n/* */ }", "public interface WorkTrainContract {\n abstract class Presenter extends BasePresenterSupport<BaseModel<User>, User, WorkTrainContract.View> implements android.view.View.OnClickListener {\n\n public Presenter(Context mContext, WorkTrainContract.View view) {\n super(mContext, view);\n }\n }\n\n interface View extends BaseView<Presenter> {\n\n }\n}", "public interface PinContract {\n\n interface View {\n\n void showPinMismatchError(String message);\n\n Context getContext();\n\n void correctPinEntered();\n }\n\n interface UserActionsListener {\n\n void tryUnlock(String pin);\n }\n}", "public interface TrainingContract {\n interface View extends BaseView<Presenter> {\n void showDetails();\n void showErrorInfo();\n void showTime(String time);\n void showSpeed(int speed);\n void showDistance(String distance);\n void showHeartRate(int heartRate);\n void showIncline(int incline);\n void updateInformation(long time,long distance);\n }\n\n interface Presenter extends BasePresenter {\n void setTarget(long target);\n void setSpeed(int speed);\n void setPause();\n void setResume();\n // updateInformation(String s);\n }\n}", "public interface UserInfoContract {\n\n interface View extends BaseView<Presenter>{\n void showUserInfo(GithubUserItem githubUserItem);\n void hideUserInfo();\n void showLoading();\n void hideLoading();\n void showErrorView();\n void hideErrorView();\n }\n\n interface Presenter extends BasePresenter{\n void loadUserInfo();\n }\n}", "public interface FoodsContract {\n\n interface View extends BaseView<Presenter> {\n\n void showViewPager();\n }\n\n interface Presenter extends BasePrensenter {\n\n void loadViewPager();\n\n }\n\n interface FoodsMostPopularView extends BaseView<FoodsMostPopularBasePresenter> {\n\n void showData(List<Food> foods);\n\n void showFoodsDetail(Food food);\n }\n\n interface FoodsMostPopularBasePresenter extends BasePrensenter {\n\n void loadFoodsMostPopularData();\n\n void loadFoodsDetail(Food food);\n }\n\n interface FoodsNearestView extends BaseView<FoodsNearestBasePresenter> {\n void showData(List<Food> foods);\n void showFoodsDetail(Food food);\n }\n\n interface FoodsNearestBasePresenter extends BasePrensenter {\n void loadFoodsNearest();\n\n void loadFoodsDetail(Food food);\n }\n}", "@Test\n public void ownerArgumentNotAddedForNonOwnerBasedAuth() throws AmplifyException {\n final AuthorizationType mode = AuthorizationType.AMAZON_COGNITO_USER_POOLS;\n\n // Public class opens up every operation to the public\n for (SubscriptionType subscriptionType : SubscriptionType.values()) {\n GraphQLRequest<Public> originalRequest = createRequest(Public.class, subscriptionType);\n GraphQLRequest<Public> modifiedRequest = decorator.decorate(originalRequest, mode);\n assertNull(getOwnerField(modifiedRequest));\n }\n\n // Private class only allows the correct IAM user\n for (SubscriptionType subscriptionType : SubscriptionType.values()) {\n GraphQLRequest<Private> originalRequest = createRequest(Private.class, subscriptionType);\n GraphQLRequest<Private> modifiedRequest = decorator.decorate(originalRequest, mode);\n assertNull(getOwnerField(modifiedRequest));\n }\n\n // Group class only has group-based auth enabled\n for (SubscriptionType subscriptionType : SubscriptionType.values()) {\n GraphQLRequest<Group> originalRequest = createRequest(Group.class, subscriptionType);\n GraphQLRequest<Group> modifiedRequest = decorator.decorate(originalRequest, mode);\n assertNull(getOwnerField(modifiedRequest));\n }\n\n // Custom auth with function provider does not add owner field.\n for (SubscriptionType subscriptionType : SubscriptionType.values()) {\n GraphQLRequest<CustomFunction> originalRequest = createRequest(CustomFunction.class, subscriptionType);\n GraphQLRequest<CustomFunction> modifiedRequest = decorator.decorate(originalRequest, mode);\n assertNull(getOwnerField(modifiedRequest));\n }\n }", "public interface GetUserInfoContracts {\n\n interface View extends BaseContract.BaseView {\n void getUserInfoSuccess(UserInfo userInfo);\n\n void getPayMethodsSuccess(GetPayMenthodsResponse response);\n\n void wapCreateOrderSuccess(CreatWapOrderResponse response, int payMethod);\n\n void setAddAdvertLogSuccess(long chapterId, int repOrType);\n\n void setReceiveLogSuccess(TaskAwardResponse response);\n\n void sendReadTimeSuccess(ReadTimeResponse response);\n }\n\n interface Presenter<V> extends BaseContract.BaserPresenter<V> {\n void getUserInfo(long userId);\n\n void getPayMethods();\n\n void createWapOrder(Map<String, Object> map, int payMethod);\n\n void setAddAdvertLog(long userId, long bookId, long chapterId, int repOrType);\n\n void setReceiveLog(long userId, int taskLogId);\n\n void sendReadTime(long userId, int type);\n\n void sendOfflineReadTime(int type);\n }\n}", "public interface SmileContract {\n\n interface View extends BaseView<Presenter>{\n\n void putData(List<SmileBean.ResultBean>list);\n }\n\n\n\n interface Presenter extends BasePresenter{\n\n void achieveSmile();\n\n void loadMore();\n\n }\n\n\n\n\n\n\n\n}", "public interface TrustedIdProvider {\n /**\n * Gets the id property: Fully qualified resource Id for the resource.\n *\n * @return the id value.\n */\n String id();\n\n /**\n * Gets the name property: The resource name.\n *\n * @return the name value.\n */\n String name();\n\n /**\n * Gets the type property: The resource type.\n *\n * @return the type value.\n */\n String type();\n\n /**\n * Gets the idProvider property: The URL of this trusted identity provider.\n *\n * @return the idProvider value.\n */\n String idProvider();\n\n /**\n * Gets the name of the resource group.\n *\n * @return the name of the resource group.\n */\n String resourceGroupName();\n\n /**\n * Gets the inner com.azure.resourcemanager.datalakestore.fluent.models.TrustedIdProviderInner object.\n *\n * @return the inner object.\n */\n TrustedIdProviderInner innerModel();\n\n /** The entirety of the TrustedIdProvider definition. */\n interface Definition\n extends DefinitionStages.Blank,\n DefinitionStages.WithParentResource,\n DefinitionStages.WithIdProvider,\n DefinitionStages.WithCreate {\n }\n /** The TrustedIdProvider definition stages. */\n interface DefinitionStages {\n /** The first stage of the TrustedIdProvider definition. */\n interface Blank extends WithParentResource {\n }\n /** The stage of the TrustedIdProvider definition allowing to specify parent resource. */\n interface WithParentResource {\n /**\n * Specifies resourceGroupName, accountName.\n *\n * @param resourceGroupName The name of the Azure resource group.\n * @param accountName The name of the Data Lake Store account.\n * @return the next definition stage.\n */\n WithIdProvider withExistingAccount(String resourceGroupName, String accountName);\n }\n /** The stage of the TrustedIdProvider definition allowing to specify idProvider. */\n interface WithIdProvider {\n /**\n * Specifies the idProvider property: The URL of this trusted identity provider..\n *\n * @param idProvider The URL of this trusted identity provider.\n * @return the next definition stage.\n */\n WithCreate withIdProvider(String idProvider);\n }\n /**\n * The stage of the TrustedIdProvider definition which contains all the minimum required properties for the\n * resource to be created, but also allows for any other optional properties to be specified.\n */\n interface WithCreate {\n /**\n * Executes the create request.\n *\n * @return the created resource.\n */\n TrustedIdProvider create();\n\n /**\n * Executes the create request.\n *\n * @param context The context to associate with this operation.\n * @return the created resource.\n */\n TrustedIdProvider create(Context context);\n }\n }\n /**\n * Begins update for the TrustedIdProvider resource.\n *\n * @return the stage of resource update.\n */\n TrustedIdProvider.Update update();\n\n /** The template for TrustedIdProvider update. */\n interface Update extends UpdateStages.WithIdProvider {\n /**\n * Executes the update request.\n *\n * @return the updated resource.\n */\n TrustedIdProvider apply();\n\n /**\n * Executes the update request.\n *\n * @param context The context to associate with this operation.\n * @return the updated resource.\n */\n TrustedIdProvider apply(Context context);\n }\n /** The TrustedIdProvider update stages. */\n interface UpdateStages {\n /** The stage of the TrustedIdProvider update allowing to specify idProvider. */\n interface WithIdProvider {\n /**\n * Specifies the idProvider property: The URL of this trusted identity provider..\n *\n * @param idProvider The URL of this trusted identity provider.\n * @return the next definition stage.\n */\n Update withIdProvider(String idProvider);\n }\n }\n /**\n * Refreshes the resource to sync with Azure.\n *\n * @return the refreshed resource.\n */\n TrustedIdProvider refresh();\n\n /**\n * Refreshes the resource to sync with Azure.\n *\n * @param context The context to associate with this operation.\n * @return the refreshed resource.\n */\n TrustedIdProvider refresh(Context context);\n}", "@Override\n public void onProviderEnabled(String arg0) {\n\n }", "@Override\n \tpublic void onProviderDisabled(String provider) {\n \n \t}", "@Override\n\t\t\tpublic void onProviderEnabled(String provider) {\n\t\t\t\t\n\t\t\t}", "public interface UpdatePassContract {\n\n interface View extends BaseView{\n void state();\n }\n\n interface Presenter extends BasePresenter<View> {\n void updatePass(String RepairUser_ID,String OldPwd,String NewFPwd,String NewTPwd);\n }\n}", "public OperationCallItemProvider(AdapterFactory adapterFactory) {\r\n\t\tsuper(adapterFactory);\r\n\t}", "public interface IPRequest<P> {\n\n P permission(String... permission);\n\n P permission(List<String> permissions);\n\n P rationale(RationaleAction<List<String>> action);\n\n P onDenied(Action<List<String>> action);\n\n P onGranted(Action<List<String>> action);\n\n void start();\n\n}" ]
[ "0.54868364", "0.53993744", "0.5296232", "0.52277267", "0.5215737", "0.5174676", "0.5171356", "0.5165956", "0.51464206", "0.51460606", "0.505295", "0.5018903", "0.50159335", "0.5008528", "0.49189878", "0.49063843", "0.49047026", "0.4901821", "0.48962426", "0.48961943", "0.4882024", "0.48790556", "0.4879024", "0.48204607", "0.48105946", "0.48076105", "0.48065954", "0.48052233", "0.4801419", "0.4787979", "0.4775318", "0.47744402", "0.47652346", "0.47652057", "0.47596562", "0.47581047", "0.47381645", "0.47358713", "0.4723399", "0.47159526", "0.47046667", "0.47006553", "0.4698605", "0.46960354", "0.46897325", "0.46887174", "0.46871525", "0.4669591", "0.4667355", "0.4652051", "0.46514732", "0.46406204", "0.46341103", "0.46339026", "0.46330398", "0.4628616", "0.46218902", "0.46082246", "0.46081784", "0.45983502", "0.45945668", "0.45927238", "0.4592237", "0.45890623", "0.4586323", "0.45772785", "0.45764676", "0.4575189", "0.4568465", "0.45662725", "0.45624077", "0.45596832", "0.45551494", "0.45549688", "0.45547748", "0.45542747", "0.4553662", "0.45531073", "0.45513836", "0.4550823", "0.45497414", "0.4544822", "0.4541346", "0.4538749", "0.4537108", "0.45327798", "0.4529742", "0.45285553", "0.45257455", "0.45245335", "0.4518249", "0.45177296", "0.45175552", "0.45096308", "0.45037767", "0.45030054", "0.45021328", "0.45010078", "0.44991973", "0.44985718", "0.44970012" ]
0.0
-1
Constructs a new WirePacket with a given type and contents
public WirePacket(PacketType type, byte[] bytes) { this.id = checkNotNull(type, "type cannot be null").getCurrentId(); this.bytes = bytes; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Packet createPacket() {\n\t\treturn new Packet((ByteBuffer) buffer.flip());\n\t}", "RS3PacketBuilder buildPacket(T node);", "public Packet() {\n\t}", "public static WirePacket fromPacket(PacketContainer packet) {\n\t\tcheckNotNull(packet, \"packet cannot be null!\");\n\n\t\tint id = packet.getType().getCurrentId();\n\n\t\tByteBuf buffer = PacketContainer.createPacketBuffer();\n\t\tMethod write = MinecraftMethods.getPacketWriteByteBufMethod();\n\n\t\ttry {\n\t\t\twrite.invoke(packet.getHandle(), buffer);\n\t\t} catch (ReflectiveOperationException ex) {\n\t\t\tthrow new RuntimeException(\"Failed to serialize packet contents.\", ex);\n\t\t}\n\n\t\treturn new WirePacket(id, getBytes(buffer));\n\t}", "public PacketBuilder() {\n\t\tthis(1024);\n\t}", "public ClientPacket(PacketType type, byte[] data){\r\n\t\tthis.type = type;\r\n\t\tthis.dataSize = data.length;\r\n\t\tthis.data = data;\r\n\t}", "public static WirePacket fromPacket(Object packet) {\n\t\tcheckNotNull(packet, \"packet cannot be null!\");\n\t\tcheckArgument(MinecraftReflection.isPacketClass(packet), \"packet must be a Minecraft packet\");\n\n\t\tPacketType type = PacketType.fromClass(packet.getClass());\n\t\tint id = type.getCurrentId();\n\n\t\tByteBuf buffer = PacketContainer.createPacketBuffer();\n\t\tMethod write = MinecraftMethods.getPacketWriteByteBufMethod();\n\n\t\ttry {\n\t\t\twrite.invoke(packet, buffer);\n\t\t} catch (ReflectiveOperationException ex) {\n\t\t\tthrow new RuntimeException(\"Failed to serialize packet contents.\", ex);\n\t\t}\n\n\t\treturn new WirePacket(id, getBytes(buffer));\n\t}", "protected abstract void createPacketData();", "public MAVLinkPacket pack(){\n MAVLinkPacket packet = new MAVLinkPacket(MAVLINK_MSG_LENGTH);\n packet.sysid = 255;\n packet.compid = 190;\n packet.msgid = MAVLINK_MSG_ID_GIMBAL_DEVICE_INFORMATION;\n \n packet.payload.putUnsignedInt(time_boot_ms);\n \n packet.payload.putUnsignedInt(firmware_version);\n \n packet.payload.putFloat(tilt_max);\n \n packet.payload.putFloat(tilt_min);\n \n packet.payload.putFloat(tilt_rate_max);\n \n packet.payload.putFloat(pan_max);\n \n packet.payload.putFloat(pan_min);\n \n packet.payload.putFloat(pan_rate_max);\n \n packet.payload.putUnsignedShort(cap_flags);\n \n \n for (int i = 0; i < vendor_name.length; i++) {\n packet.payload.putUnsignedByte(vendor_name[i]);\n }\n \n \n \n for (int i = 0; i < model_name.length; i++) {\n packet.payload.putUnsignedByte(model_name[i]);\n }\n \n \n return packet;\n }", "public Message newMessage(String type) {\n\tString address = null;\n\n\t/*\n * Provide the default address from the original open.\n */\n\n\tif (((m_mode & Connector.WRITE) > 0) && (host != null)) {\n\t address = ADDRESS_PREFIX + host;\n\t if (m_iport != 0) {\n\t\taddress = address + \":\" + String.valueOf(m_iport);\n\t }\n\t}\n\n\treturn newMessage(type, address);\n }", "public MAVLinkPacket pack(){\n MAVLinkPacket packet = new MAVLinkPacket(MAVLINK_MSG_LENGTH);\n packet.sysid = 1;\n packet.compid = 1;\n packet.msgid = MAVLINK_MSG_ID_BATTERY_batterySTATUS;\n \n packet.payload.putInt(time_total);\n \n packet.payload.putInt(time_remaining);\n \n packet.payload.putByte(battery_remaining);\n \n packet.payload.putUnsignedByte(charge_state);\n \n return packet;\n }", "public Packet(String data){\n\t\t\tthis(data, CkSum.genCheck(data));\n\t\t}", "private FullExtTcpPacket createPacket(\n long dataSizeByte,\n long sequenceNumber,\n long ackNumber,\n boolean ACK,\n boolean SYN,\n boolean ECE\n ) {\n return new FullExtTcpPacket(\n flowId, dataSizeByte, sourceId, destinationId,\n 100, 80, 80, // TTL, source port, destination port\n sequenceNumber, ackNumber, // Seq number, Ack number\n false, false, ECE, // NS, CWR, ECE\n false, ACK, false, // URG, ACK, PSH\n false, SYN, false, // RST, SYN, FIN\n congestionWindow, 0 // Window size, Priority\n );\n }", "public NetDatagram(MessageType messageType, byte type, short id, short param1, short param2) {\n this.type = type;\n this.id = id;\n this.param1 = param1;\n this.param2 = param2;\n this.messageType = messageType;\n }", "public CapsPacketExtension()\n {\n }", "public WireDetails(WireType wireType) {\r\n\t\tsuper(DuctType.WIRE, wireType.getCraftPermission());\r\n\t\tthis.wireType = wireType;\r\n\t}", "public static byte[] createPacket(byte[] data) {\r\n byte[] header = createHeader(seqNo);\r\n byte[] packet = new byte[data.length + header.length]; // data + header\r\n System.arraycopy(header, 0, packet, 0, header.length);\r\n System.arraycopy(data, 0, packet, header.length, data.length);\r\n seqNo = seqNo + 1;\r\n return packet;\r\n }", "public byte[] getNetworkPacket() {\n /*\n The packet layout will be:\n byte(datatype)|int(length of name)|byte[](name)|int(length of value)|byte[](value)|...\n */\n byte[] data = new byte[2];\n int currentPosition = 0;\n \n if(STRINGS.size() > 0) {\n Enumeration enumer = STRINGS.elements();\n while(enumer.hasMoreElements()) {\n if(currentPosition == data.length) {\n data = growArray(data, 1);\n }\n // Add the type\n data[currentPosition] = 0x73;\n currentPosition++;\n\n SimpleMessageObjectStringItem item = (SimpleMessageObjectStringItem) enumer.nextElement();\n int spaceLeft = data.length - currentPosition;\n byte[] name = item.getName().getBytes();\n if(spaceLeft < name.length + 4) {\n data = growArray(data, name.length - spaceLeft + 4);\n }\n \n //Add the length of the name\n byte[] nameLength = DataConversions.getBytes(name.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = nameLength[i];\n currentPosition++;\n }\n \n //Add the name\n for(int i = 0 ; i < name.length ; i++) {\n data[currentPosition] = name[i];\n currentPosition++;\n }\n \n spaceLeft = data.length - currentPosition;\n byte[] value = item.getValue().getBytes();\n if(spaceLeft < value.length + 4) {\n data = growArray(data, value.length - spaceLeft + 4);\n }\n \n //Add the length of the value\n byte[] valueLength = DataConversions.getBytes(value.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = valueLength[i];\n currentPosition++;\n }\n \n //Add the value\n for(int i = 0 ; i < value.length ; i++) {\n data[currentPosition] = value[i];\n currentPosition++;\n }\n }\n }\n \n if(INTS.size() > 0) {\n Enumeration enumer = INTS.elements();\n while(enumer.hasMoreElements()) {\n if(currentPosition == data.length) {\n data = growArray(data, 1);\n }\n // Add the type\n data[currentPosition] = 0x69;\n currentPosition++;\n\n SimpleMessageObjectIntItem item = (SimpleMessageObjectIntItem) enumer.nextElement();\n int spaceLeft = data.length - currentPosition;\n byte[] name = item.getName().getBytes();\n if(spaceLeft < name.length + 4) {\n data = growArray(data, name.length - spaceLeft + 4);\n }\n \n //Add the length of the name\n byte[] nameLength = DataConversions.getBytes(name.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = nameLength[i];\n currentPosition++;\n }\n \n //Add the name\n for(int i = 0 ; i < name.length ; i++) {\n data[currentPosition] = name[i];\n currentPosition++;\n }\n \n spaceLeft = data.length - currentPosition;\n byte[] value = DataConversions.getBytes(item.getValue());\n if(spaceLeft < value.length + 4) {\n data = growArray(data, value.length - spaceLeft + 4);\n }\n \n //Add the length of the value\n byte[] valueLength = DataConversions.getBytes(value.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = valueLength[i];\n currentPosition++;\n }\n \n //Add the value\n for(int i = 0 ; i < value.length ; i++) {\n data[currentPosition] = value[i];\n currentPosition++;\n }\n }\n }\n \n if(LONGS.size() > 0) {\n Enumeration enumer = LONGS.elements();\n while(enumer.hasMoreElements()) {\n if(currentPosition == data.length) {\n data = growArray(data, 1);\n }\n // Add the type\n data[currentPosition] = 0x6C;\n currentPosition++;\n\n SimpleMessageObjectLongItem item = (SimpleMessageObjectLongItem) enumer.nextElement();\n int spaceLeft = data.length - currentPosition;\n byte[] name = item.getName().getBytes();\n if(spaceLeft < name.length + 4) {\n data = growArray(data, name.length - spaceLeft + 4);\n }\n \n //Add the length of the name\n byte[] nameLength = DataConversions.getBytes(name.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = nameLength[i];\n currentPosition++;\n }\n \n //Add the name\n for(int i = 0 ; i < name.length ; i++) {\n data[currentPosition] = name[i];\n currentPosition++;\n }\n \n spaceLeft = data.length - currentPosition;\n byte[] value = DataConversions.getBytes(item.getValue());\n if(spaceLeft < value.length + 4) {\n data = growArray(data, value.length - spaceLeft + 4);\n }\n \n //Add the length of the value\n byte[] valueLength = DataConversions.getBytes(value.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = valueLength[i];\n currentPosition++;\n }\n \n //Add the value\n for(int i = 0 ; i < value.length ; i++) {\n data[currentPosition] = value[i];\n currentPosition++;\n }\n }\n }\n \n if(DOUBLES.size() > 0) {\n Enumeration enumer = DOUBLES.elements();\n while(enumer.hasMoreElements()) {\n if(currentPosition == data.length) {\n data = growArray(data, 1);\n }\n // Add the type\n data[currentPosition] = 0x64;\n currentPosition++;\n\n SimpleMessageObjectDoubleItem item = (SimpleMessageObjectDoubleItem) enumer.nextElement();\n int spaceLeft = data.length - currentPosition;\n byte[] name = item.getName().getBytes();\n if(spaceLeft < name.length + 4) {\n data = growArray(data, name.length - spaceLeft + 4);\n }\n \n //Add the length of the name\n byte[] nameLength = DataConversions.getBytes(name.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = nameLength[i];\n currentPosition++;\n }\n \n //Add the name\n for(int i = 0 ; i < name.length ; i++) {\n data[currentPosition] = name[i];\n currentPosition++;\n }\n \n spaceLeft = data.length - currentPosition;\n byte[] value = DataConversions.getBytes(item.getValue());\n if(spaceLeft < value.length + 4) {\n data = growArray(data, value.length - spaceLeft + 4);\n }\n \n //Add the length of the value\n byte[] valueLength = DataConversions.getBytes(value.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = valueLength[i];\n currentPosition++;\n }\n \n //Add the value\n for(int i = 0 ; i < value.length ; i++) {\n data[currentPosition] = value[i];\n currentPosition++;\n }\n }\n }\n \n if(FLOATS.size() > 0) {\n Enumeration enumer = FLOATS.elements();\n while(enumer.hasMoreElements()) {\n if(currentPosition == data.length) {\n data = growArray(data, 1);\n }\n // Add the type\n data[currentPosition] = 0x66;\n currentPosition++;\n\n SimpleMessageObjectFloatItem item = (SimpleMessageObjectFloatItem) enumer.nextElement();\n int spaceLeft = data.length - currentPosition;\n byte[] name = item.getName().getBytes();\n if(spaceLeft < name.length + 4) {\n data = growArray(data, name.length - spaceLeft + 4);\n }\n \n //Add the length of the name\n byte[] nameLength = DataConversions.getBytes(name.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = nameLength[i];\n currentPosition++;\n }\n \n //Add the name\n for(int i = 0 ; i < name.length ; i++) {\n data[currentPosition] = name[i];\n currentPosition++;\n }\n \n spaceLeft = data.length - currentPosition;\n byte[] value = DataConversions.getBytes(item.getValue());\n if(spaceLeft < value.length + 4) {\n data = growArray(data, value.length - spaceLeft + 4);\n }\n \n //Add the length of the value\n byte[] valueLength = DataConversions.getBytes(value.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = valueLength[i];\n currentPosition++;\n }\n \n //Add the value\n for(int i = 0 ; i < value.length ; i++) {\n data[currentPosition] = value[i];\n currentPosition++;\n }\n }\n }\n \n if(CHARS.size() > 0) {\n Enumeration enumer = CHARS.elements();\n while(enumer.hasMoreElements()) {\n if(currentPosition == data.length) {\n data = growArray(data, 1);\n }\n // Add the type\n data[currentPosition] = 0x63;\n currentPosition++;\n\n SimpleMessageObjectCharItem item = (SimpleMessageObjectCharItem) enumer.nextElement();\n int spaceLeft = data.length - currentPosition;\n byte[] name = item.getName().getBytes();\n if(spaceLeft < name.length + 4) {\n data = growArray(data, name.length - spaceLeft + 4);\n }\n \n //Add the length of the name\n byte[] nameLength = DataConversions.getBytes(name.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = nameLength[i];\n currentPosition++;\n }\n \n //Add the name\n for(int i = 0 ; i < name.length ; i++) {\n data[currentPosition] = name[i];\n currentPosition++;\n }\n \n spaceLeft = data.length - currentPosition;\n byte[] value = DataConversions.getBytes(item.getValue());\n if(spaceLeft < value.length + 4) {\n data = growArray(data, value.length - spaceLeft + 4);\n }\n \n //Add the length of the value\n byte[] valueLength = DataConversions.getBytes(value.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = valueLength[i];\n currentPosition++;\n }\n \n //Add the value\n for(int i = 0 ; i < value.length ; i++) {\n data[currentPosition] = value[i];\n currentPosition++;\n }\n }\n }\n \n if(BYTES.size() > 0) {\n Enumeration enumer = BYTES.elements();\n while(enumer.hasMoreElements()) {\n if(currentPosition == data.length) {\n data = growArray(data, 1);\n }\n // Add the type\n data[currentPosition] = 0x62;\n currentPosition++;\n\n SimpleMessageObjectByteArrayItem item = (SimpleMessageObjectByteArrayItem) enumer.nextElement();\n int spaceLeft = data.length - currentPosition;\n byte[] name = item.getName().getBytes();\n if(spaceLeft < name.length + 4) {\n data = growArray(data, name.length - spaceLeft + 4);\n }\n \n //Add the length of the name\n byte[] nameLength = DataConversions.getBytes(name.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = nameLength[i];\n currentPosition++;\n }\n \n //Add the name\n for(int i = 0 ; i < name.length ; i++) {\n data[currentPosition] = name[i];\n currentPosition++;\n }\n \n spaceLeft = data.length - currentPosition;\n byte[] value = item.getValue();\n if(spaceLeft < value.length + 4) {\n data = growArray(data, value.length - spaceLeft + 4);\n }\n \n //Add the length of the value\n byte[] valueLength = DataConversions.getBytes(value.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = valueLength[i];\n currentPosition++;\n }\n \n //Add the value\n for(int i = 0 ; i < value.length ; i++) {\n data[currentPosition] = value[i];\n currentPosition++;\n }\n }\n }\n\n return data;\n }", "public Packet(int ID_, Type type_, String message_, int destinationID)\r\n\t{\r\n\t\tthis.ID = ID_;\r\n\t\tthis.type = type_;\r\n\t\tthis.message = message_;\r\n\t\tthis.dID = destinationID;\r\n\t}", "public Message newMessage(String type, String addr) {\n\tMessage message = null;\n\n\tif (type.equals(MessageConnection.TEXT_MESSAGE)) {\n\n\t message = new TextObject(addr);\n\t} else {\n\t if (type.equals(MessageConnection.BINARY_MESSAGE)) {\n\n message = new BinaryObject(addr);\n\t } else {\n throw new IllegalArgumentException(\n \"Message type not supported\");\n\t }\n\t}\n\n\n\treturn message;\n }", "public static SimpleMessageObject createMessageObject(byte[] data) {\n SimpleMessageObject retVal = new SimpleMessageObject();\n \n // data is of the form:\n // byte(data type)|int(length of name)|name|int(length of value)|value\n boolean keepGoing = true;\n int currentPointer = 0;\n while(keepGoing) {\n int type = data[currentPointer];\n int bytesToRead = 0;\n String name;\n currentPointer++;\n switch(type) {\n //String\n case 0x73:\n bytesToRead = DataConversions.getInt(data, currentPointer, 4);\n currentPointer += 4;\n name = DataConversions.getString(data, currentPointer, bytesToRead);\n currentPointer += bytesToRead;\n bytesToRead = DataConversions.getInt(data, currentPointer, 4);\n currentPointer += 4;\n String stringValue = DataConversions.getString(data, currentPointer, bytesToRead);\n currentPointer += bytesToRead;\n retVal.addString(name, stringValue);\n break;\n \n //int\n case 0x69:\n bytesToRead = DataConversions.getInt(data, currentPointer, 4);\n currentPointer += 4;\n name = DataConversions.getString(data, currentPointer, bytesToRead);\n currentPointer += bytesToRead;\n bytesToRead = DataConversions.getInt(data, currentPointer, 4);\n currentPointer += 4;\n int intValue = DataConversions.getInt(data, currentPointer, bytesToRead);\n currentPointer += bytesToRead;\n retVal.addInt(name, intValue); \n break;\n \n //long\n case 0x6c:\n bytesToRead = DataConversions.getInt(data, currentPointer, 4);\n currentPointer += 4;\n name = DataConversions.getString(data, currentPointer, bytesToRead);\n currentPointer += bytesToRead;\n bytesToRead = DataConversions.getInt(data, currentPointer, 4);\n currentPointer += 4;\n long longValue = DataConversions.getLong(data, currentPointer, bytesToRead);\n currentPointer += bytesToRead;\n retVal.addLong(name, longValue);\n break;\n \n //double\n case 0x64:\n bytesToRead = DataConversions.getInt(data, currentPointer, 4);\n currentPointer += 4;\n name = DataConversions.getString(data, currentPointer, bytesToRead);\n currentPointer += bytesToRead;\n bytesToRead = DataConversions.getInt(data, currentPointer, 4);\n currentPointer += 4;\n double doubleValue = DataConversions.getDouble(data, currentPointer, bytesToRead);\n currentPointer += bytesToRead;\n retVal.addDouble(name, doubleValue); \n break;\n \n //float\n case 0x66:\n bytesToRead = DataConversions.getInt(data, currentPointer, 4);\n currentPointer += 4;\n name = DataConversions.getString(data, currentPointer, bytesToRead);\n currentPointer += bytesToRead;\n bytesToRead = DataConversions.getInt(data, currentPointer, 4);\n currentPointer += 4;\n float floatValue = DataConversions.getFloat(data, currentPointer, bytesToRead);\n currentPointer += bytesToRead;\n retVal.addFloat(name, floatValue); \n break;\n \n //char\n case 0x63:\n bytesToRead = DataConversions.getInt(data, currentPointer, 4);\n currentPointer += 4;\n name = DataConversions.getString(data, currentPointer, bytesToRead);\n currentPointer += bytesToRead;\n bytesToRead = DataConversions.getInt(data, currentPointer, 4);\n currentPointer += 4;\n char charValue = DataConversions.getChar(data, currentPointer, bytesToRead);\n currentPointer += bytesToRead;\n retVal.addChar(name, charValue);\n break;\n \n //byte array\n case 0x62:\n bytesToRead = DataConversions.getInt(data, currentPointer, 4);\n currentPointer += 4;\n name = DataConversions.getString(data, currentPointer, bytesToRead);\n currentPointer += bytesToRead;\n bytesToRead = DataConversions.getInt(data, currentPointer, 4);\n currentPointer += 4;\n byte[] byteValue = DataConversions.getByteArray(data, currentPointer, bytesToRead);\n currentPointer += bytesToRead;\n retVal.addByteArray(name, byteValue);\n break;\n }\n \n if(currentPointer == data.length) {\n keepGoing = false;\n }\n }\n \n return retVal;\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 }", "private static DatagramPacket createPacket(byte[] data, SocketAddress remote) {\r\n\t\tDatagramPacket packet = new DatagramPacket(data, data.length, remote);\r\n\t\treturn packet;\r\n\t}", "@Override\r\n\tpublic int type() {\n\t\treturn Packets.CREATE;\r\n\t}", "public Packet(int PCKT_RI_, int PCKT_SRC_ID_, int pcktNr_, int sizeInBits_, double tCreation_){\r\n\t\tPCKT_RI=PCKT_RI_;\r\n\t\tPCKT_SRC_ID=PCKT_SRC_ID_;\r\n\t\tpcktNr=pcktNr_;\r\n\t\tsizeInBits=sizeInBits_;\r\n\t\ttCreation=tCreation_;\r\n\t}", "FJPacket( AutoBuffer ab, int ctrl ) { _ab = ab; _ctrl = ctrl; }", "MessageType createMessageType();", "public MAVLinkPacket pack() {\n MAVLinkPacket packet = new MAVLinkPacket(MAVLINK_MSG_LENGTH);\n packet.sysid = 255;\n packet.compid = 190;\n packet.msgid = MAVLINK_MSG_ID_SAFETY_ALLOWED_AREA;\n\n packet.payload.putFloat(p1x);\n\n packet.payload.putFloat(p1y);\n\n packet.payload.putFloat(p1z);\n\n packet.payload.putFloat(p2x);\n\n packet.payload.putFloat(p2y);\n\n packet.payload.putFloat(p2z);\n\n packet.payload.putUnsignedByte(frame);\n\n return packet;\n }", "public WirePacket(int id, byte[] bytes) {\n\t\tthis.id = id;\n\t\tthis.bytes = bytes;\n\t}", "public Packet(int sequenceNumber, String sourceNode, int portNumber, int id, int previousHop, double speed, double xCoordinate, double yCoordinate,\n long currentTime, int packetType) {\n this.sequenceNumber = sequenceNumber;\n this.previousHop = previousHop;\n this.id = id;\n this.speed = speed;\n this.xCoordinate = xCoordinate;\n this.yCoordinate = yCoordinate;\n this.sourceNode = sourceNode;\n this.currentTime = currentTime;\n this.packetType = packetType;\n this.portNumber = portNumber;\n\n idTo = 0;\n }", "public RoutePacket(byte[] data, int base_offset, int data_length) {\n super(data, base_offset, data_length);\n amTypeSet(AM_TYPE);\n }", "public RoutePacket(byte[] data) {\n super(data);\n amTypeSet(AM_TYPE);\n }", "private DAPMessage constructFrom(DatabaseTableRecord record) {\n return DAPMessage.fromXML(record.getStringValue(CommunicationNetworkServiceDatabaseConstants.DAP_MESSAGE_DATA_COLUMN_NAME));\n }", "protected void buildPacket() throws IOException {\n\t\tByteArrayOutputStream baos = new ByteArrayOutputStream();\n\t\t\n\t\t// write packet\n\t\tbaos.write(SPInstr.USER.getByte()); // username\n\t\tbaos.write(username.getBytes());\n\t\tbaos.write(SPInstr.EOM.getByte());\n\t\tbaos.write(SPInstr.PASS.getByte()); // password\n\t\tbaos.write(password.getBytes());\n\t\tbaos.write(SPInstr.EOM.getByte());\n\t\tbaos.write(SPInstr.EOP.getByte()); // no action required since it is sent from the client\n\t\t\n\t\t// save packet\n\t\tpacket = baos.toByteArray();\n\t}", "public GmsHeader(byte type, Address mbr) {\n this.type=type;\n this.mbr=mbr;\n }", "StructureType createStructureType();", "public RoutePacket(byte[] data, int base_offset) {\n super(data, base_offset);\n amTypeSet(AM_TYPE);\n }", "public CardStack(char type){\n\t\tthis.type = type;\n\t}", "public ADStructManufacturer_iBLio_N05(byte type, byte[] content, String mac) {\n\t\tsuper(type, content, mac);\n\t\t\n\t\tthis.batteryLevel = BleUtil.uint16(content[6], content[7]);\n\t\tcreateMTemp(content[8], content[9]);\n\t\tcreateSTemp(content[10], content[11]);\n\t\tthis.sensorHum100 = BleUtil.uint16(content[12], content[13]);\n\t\tthis.oneMinuteSC = BleUtil.uint32(content[14], content[15], content[16], content[17]);\n\t}", "public abstract Packet create(final int[] data,\n final int identifier);", "public interface Packet {\n /**\n * Read body from byte buffer\n * @param bb \n * @throws java.lang.Exception \n */\n void readBody(ByteBuf bb, TranscoderContext context) throws Exception;\n \n /**\n * Write body to byte buffer\n * @param bb \n * @param context \n * @throws java.lang.Exception \n */\n void writeBody(ByteBuf bb, TranscoderContext context) throws Exception;\n \n /**\n * Calculate and return body size in bytes\n * @param context\n * @return \n */\n int calculateBodyLength(TranscoderContext context);\n \n /**\n * Calculate and set field with body length\n * @param context\n */\n void calculateAndSetBodyLength(TranscoderContext context);\n \n /**\n * Get body length from field\n * @return \n */\n int getBodyLength();\n\n /**\n * Get sequence number field value\n * @return \n */\n int getSequenceNumber();\n \n /**\n * Set sequence number field value\n * @param sequenceNumber \n */\n void setSequenceNumber(int sequenceNumber); \n}", "public AbstractPacketDO getPacket() {\n\t\tString headers = headerTableModel.getHeaders();\n\n\t\t// get the xml content\n\t\tOutputStream os = new ByteArrayOutputStream();\n\t\ttm.prettyPrint(os);\n\t\tString xml = os.toString();\n\t\txml = xml.trim();\n\t\txml += \"\\n\";\n\n\t\tString content = \"\";\n\n\t\tif (headers.contains(\"Content-Length\")) {\n\t\t\tint contentLength = xml.getBytes().length;\n\t\t\theaders = headers.replaceAll(\"Content-Length:\\\\s\\\\d+\",\n\t\t\t\t\tString.format(\"Content-Length: %d\", contentLength));\n\t\t\tcontent = headers + \"\\r\\n\" + xml;\n\t\t} else {\n\t\t\tcontent = headers + \"\\r\\n\";\n\t\t}\n\n\t\tif (packet != null) {\n\t\t\tpacket.setData(content.getBytes());\n\t\t}\n\n\t\treturn packet;\n\t}", "public interface TextPacketCreator {\n\n\t/**\n\t * \n\t * @param bytes the characters to read from\n\t * @return An empty collection, or if it can be read, a collection of {@link Packet}s\n\t */\n\tCollection<? extends Packet> add(char[] bytes) throws PacketCreationException;\n\t\n}", "public Message(MessageType messageType, byte[] payload) {\n\t this.messageType = messageType;\n\t this.payloadLength = ByteBuffer.allocate(4).putInt(payload.hashCode()).array();\n\t this.payload = payload;\n\t}", "public Packet(final long unique) {\r\n\t\ttype = EvidenceType.NONE;\r\n\t\tcommand = EvidenceBuilder.LOG_CREATE;\r\n\t\tid = unique;\r\n\t\tdata = null;\r\n\t}", "public Builder setTypeBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n type_ = value;\n onChanged();\n return this;\n }", "public byte[] createPacket(short packetid, byte[] packetdata){\r\n\t\tshort s = 0;\r\n\t\tbyte[] packet;\r\n\t\tint size = packetdata.length;\r\n\t\t\r\n\t\tif (size < 1){\r\n\t\t\tpacket = new byte[12];\r\n\t\t}else{\r\n\t\t\tpacket = new byte[12+size];\r\n\t\t}\r\n\t\tif (packetid == 2 || packetid == 5 || packetid == 6){\r\n\t\t\tpacket[0] = (byte) 0x00;\r\n\t\t} else packet[0] = (byte) 0x14;\r\n\t\t//Reserved\r\n\t\tpacket[1] = (byte) 0x00;\r\n\t\tpacket[2] = (byte) 0x00;\r\n\t packet[3] = (byte) 0x00;\r\n\t //PacketId\r\n\t s = (byte) packetid;\r\n\t byte[] packet_2 = Util.shortTobyte(s);\r\n\t packet[4] = packet_2[0];\r\n\t packet[5] = packet_2[1];\r\n\t\t//Reserved2\r\n\t\tpacket[6] = (byte) 0x00;\r\n\t packet[7] = (byte) 0x00;\r\n\t //DataSize\r\n\t byte[] packet2 = Util.intTobyte(size);\r\n\t packet[8] = packet2[0];\r\n\t packet[9] = packet2[1];\r\n\t packet[10] = packet2[2];\r\n\t packet[11] = packet2[3];\r\n\t for (int x = 0; x < size; x++){\r\n\t \tpacket[12+x] = packetdata[x];\r\n\t }\r\n\t \r\n\t return packet;\r\n\t}", "public Builder setTypeBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n type_ = value;\n onChanged();\n return this;\n }", "public Builder setTypeBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n type_ = value;\n onChanged();\n return this;\n }", "public Builder setTypeBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n type_ = value;\n onChanged();\n return this;\n }", "public Builder setTypeBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n type_ = value;\n onChanged();\n return this;\n }", "public static Packet makePacket(String s,boolean check)\r\n\t{\r\n\t\tString a[]=split(s,check);\r\n\t\tswitch(indexOf(prefix,a[0]))\r\n\t\t{\r\n\t\tcase 0:\r\n\t\t\treturn new PacketGGA(a);\r\n\t\tcase 1:\r\n\t\t\treturn new PacketGSA(a);\r\n\t\tcase 2:\r\n\t\t\treturn new PacketGSV(a);\r\n\t\tcase 3:\r\n\t\t\treturn new PacketRMC(a);\r\n\t\tcase 4:\r\n\t\tcase 5:\r\n\t\t\treturn new PacketGLL(a);\r\n\t\tcase 6:\r\n\t\tcase 7:\r\n\t\t\treturn new PacketVTG(a);\r\n\t\tdefault:\r\n\t\t\tthrow new OpenNMEAException(\"Invalid sentence prefix\");\r\n\t\t}\r\n\t}", "public Packet(String data, String checksum) {\n\t\t\tthis.data = data;\n\t\t\tthis.checksum = checksum;\n\t\t}", "public NbMessage(short[] packet) {\n /**\n * Parse using shorts\n */\n this.packet = packet;\n byte header = (byte) ((packet[0] & 0b1111000000000000) >> 12);\n this.isValid = (header == DATA_HEADER);\n this.subheader = (packet[0] & 0b0000111000000000) >> 9;\n this.channel = (packet[0] & 0b0000000111000000) >> 6;\n this.header = (packet[0] & 0b1111000000000000) >> 12;\n this.data = packet[1];\n }", "public Builder setTypeBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n type_ = value;\n onChanged();\n return this;\n }", "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 RoutePacket(int data_length) {\n super(data_length);\n amTypeSet(AM_TYPE);\n }", "public RoutePacket(int data_length, int base_offset) {\n super(data_length, base_offset);\n amTypeSet(AM_TYPE);\n }", "public RoutePacket(net.tinyos.message.Message msg, int base_offset, int data_length) {\n super(msg, base_offset, data_length);\n amTypeSet(AM_TYPE);\n }", "public RequestPacket(String protocol) {\n super();\n parseProtocol(protocol);\n }", "public StyxMessage factory(BufferReader buffer, int io_unit)\n throws IOException {\n // get common packet data\n long packet_size = buffer.readUInt32();\n if ( packet_size > io_unit ) {\n throw new IOException(\"Packet size to large\");\n }\n MessageType type = MessageType.factory(buffer.readUInt8());\n if ( type == null ) {\n throw new NullPointerException(\"Type is null, can't decode message\");\n }\n int tag = buffer.readUInt16();\n // load other data\n StyxMessage result = null;\n switch (type) {\n case Tversion:\n result = new StyxTVersionMessage(0, null);\n break;\n case Rversion:\n result = new StyxRVersionMessage(0, null);\n break;\n case Tauth:\n result = new StyxTAuthMessage(StyxMessage.NOFID, \"\", \"\");\n break;\n case Tflush:\n result = new StyxTFlushMessage(StyxMessage.NOTAG);\n break;\n case Tattach:\n result = new StyxTAttachMessage(StyxMessage.NOFID, StyxMessage.NOFID, null, null);\n break;\n case Twalk:\n result = new StyxTWalkMessage(StyxMessage.NOFID, StyxMessage.NOFID, \"\");\n break;\n case Rauth:\n result = new StyxRAuthMessage(tag, StyxQID.EMPTY);\n break;\n case Rerror:\n result = new StyxRErrorMessage(tag, null);\n break;\n case Rflush:\n result = new StyxMessage(MessageType.Rflush, tag);\n break;\n case Rattach:\n result = new StyxRAttachMessage(tag, StyxQID.EMPTY);\n break;\n case Rwalk:\n result = new StyxRWalkMessage(tag, null);\n break;\n case Topen:\n result = new StyxTOpenMessage(StyxMessage.NOFID, ModeType.OREAD);\n break;\n case Ropen:\n result = new StyxROpenMessage(tag, null, 0, false);\n break;\n case Tcreate:\n result = new StyxTCreateMessage(StyxMessage.NOFID, null, 0, ModeType.OWRITE);\n break;\n case Rcreate:\n result = new StyxROpenMessage(tag, null, 0, true);\n break;\n case Tread:\n result = new StyxTReadMessage(StyxMessage.NOFID, 0, 0);\n break;\n case Rread:\n result = new StyxRReadMessage(tag, null, 0);\n break;\n case Twrite:\n result = new StyxTWriteMessage(StyxMessage.NOFID, 0, null, 0, 0 );\n break;\n case Rwrite:\n result = new StyxRWriteMessage(tag, 0);\n break;\n case Tclunk:\n result = new StyxTMessageFID(MessageType.Tclunk, MessageType.Rclunk, 0);\n break;\n case Rclunk:\n result = new StyxMessage(MessageType.Rclunk, tag);\n break;\n case Tremove:\n result = new StyxTMessageFID(MessageType.Tremove, MessageType.Rremove, tag);\n break;\n case Rremove:\n result = new StyxMessage(MessageType.Rremove, tag);\n break;\n case Tstat:\n result = new StyxTMessageFID(MessageType.Tstat, MessageType.Rstat, tag);\n break;\n case Rstat:\n result = new StyxRStatMessage(tag);\n break;\n case Twstat:\n result = new StyxTWStatMessage(StyxMessage.NOFID, null);\n break;\n case Rwstat:\n result = new StyxMessage(MessageType.Rwstat, tag);\n break;\n }\n result.setTag((short) tag);\n result.load(buffer);\n return result;\n }", "public static ResourceRecord fromBytes(byte[] data, int start) throws ProtocolException {\n if (data.length - start < 11) throw new ProtocolException(\"invalid size for resource record \"+(data.length - start));\n ResourceRecord record = new ResourceRecord();\n \n System.out.println(\"RR.fromBytes() - \"+Tools.describeAsHex(data)); \n \n // TODO check for compression\n Labels labels = Tools.extractLabels(data, start);\n int end_of_name = labels.getEnd();\n record.name = labels.toName();\n record.type = DnsRecordType.valueOf(Tools.bytesToIntBigEndian(data[end_of_name+1],data[end_of_name+2]));\n record.rdataClass = DnsClass.valueOf(Tools.bytesToIntBigEndian(data[end_of_name+3],data[end_of_name+4]));\n record.ttl = Tools.bytesToUnsignedIntBigEndian(data, end_of_name+5);\n record.rdlength = Tools.bytesToIntBigEndian(data[end_of_name+9], data[end_of_name+10]);\n System.out.println(\"ttl=\"+record.ttl);\n if (end_of_name+10+record.rdlength > data.length) {\n throw new ProtocolException(\"rdlength extends beyond size of buffer\");\n }\n \n record.rdata = new byte[record.rdlength];\n System.arraycopy(data, end_of_name+10+1, record.rdata, 0, record.rdlength);\n record.length = (end_of_name-start)+ 10 +1+ record.rdlength;\n \n return record;\n }", "public Packet(int sequenceNumber, String sourceNode, int portNumber, int id, int previousHop, double speed, double xCoordinate, double yCoordinate,\n long currentTime, int packetType, int idTo) {\n this.sequenceNumber = sequenceNumber;\n this.previousHop = previousHop;\n this.id = id;\n this.speed = speed;\n this.xCoordinate = xCoordinate;\n this.yCoordinate = yCoordinate;\n this.sourceNode = sourceNode;\n this.currentTime = currentTime;\n this.packetType = packetType;\n this.portNumber = portNumber;\n this.idTo = idTo;\n\n }", "private Ethernet buildNdp(byte type, MacAddress srcMac, MacAddress dstMac,\n Ip6Address srcIp, Ip6Address dstIp) {\n assertThat(type, anyOf(\n is(ICMP6.NEIGHBOR_SOLICITATION),\n is(ICMP6.NEIGHBOR_ADVERTISEMENT)\n ));\n assertNotNull(srcMac);\n assertNotNull(dstMac);\n assertNotNull(srcIp);\n assertNotNull(dstIp);\n\n IPacket ndp;\n if (type == ICMP6.NEIGHBOR_SOLICITATION) {\n ndp = new NeighborSolicitation().setTargetAddress(dstIp.toOctets());\n } else {\n ndp = new NeighborAdvertisement()\n .setSolicitedFlag((byte) 1)\n .setOverrideFlag((byte) 1)\n .setTargetAddress(srcIp.toOctets())\n .addOption(NeighborDiscoveryOptions.TYPE_TARGET_LL_ADDRESS,\n srcMac.toBytes());\n }\n\n ICMP6 icmp6 = new ICMP6();\n icmp6.setIcmpType(type);\n icmp6.setIcmpCode((byte) 0);\n icmp6.setPayload(ndp);\n\n IPv6 ipv6 = new IPv6();\n ipv6.setDestinationAddress(dstIp.toOctets());\n ipv6.setSourceAddress(srcIp.toOctets());\n ipv6.setNextHeader(IPv6.PROTOCOL_ICMP6);\n ipv6.setHopLimit((byte) 255);\n ipv6.setPayload(icmp6);\n\n Ethernet eth = new Ethernet();\n eth.setDestinationMACAddress(dstMac);\n eth.setSourceMACAddress(srcMac);\n eth.setEtherType(Ethernet.TYPE_IPV6);\n eth.setVlanID(VLAN1.toShort());\n eth.setPayload(ipv6);\n\n return eth;\n }", "public Protocol(char msgType, int numArgs, String[] args)\r\n {\r\n this.msgType = msgType;\r\n this.numArgs = numArgs;\r\n this.args = args;\r\n }", "public Builder setSTypeBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n\n sType_ = value;\n onChanged();\n return this;\n }", "public PaxMacPacket(Address sender, NodeId receiver, double signalStrength, PacketType pkType) {\n\t\t// Usado para criar pacotes do tipo CTS e ACK\n\t\tsuper(sender, receiver, signalStrength);\n\t\tsetType(pkType);\n\t}", "public ef l()\r\n/* 293: */ {\r\n/* 294:240 */ Packet211TileDesc packet = new Packet211TileDesc();\r\n/* 295:241 */ packet.subId = 9;\r\n/* 296:242 */ packet.xCoord = this.l;packet.yCoord = this.m;\r\n/* 297:243 */ packet.zCoord = this.n;\r\n/* 298:244 */ writeToPacket(packet);\r\n/* 299:245 */ packet.encode();\r\n/* 300:246 */ return packet;\r\n/* 301: */ }", "public abstract DataType<T> newInstance(String format);", "private void makePacket() throws PacketMappingNotFoundException {\r\n\t\tfinal PacketIdMapping mapping = mapCon.getMappingFor(packetId); //Mapping for id\r\n\t\tif(mapping == null)\r\n\t\t\tthrow new PacketMappingNotFoundException(\"mapping not found for id while constructing packet\", packetId);\r\n\t\tfinal Packet newPacket = mapping.getNewInstance(); //make a packet\r\n\t\tfinal ReadableArrayData packetData = new ReadableArrayData(tempData, false);\r\n\t\tnewPacket.readData(packetData); //read the packet data\r\n\t\tfinishedPacketReceiver.accept(newPacket); //send the packet to the connection\r\n\t}", "public Message build() {\n Objects.requireNonNull(transactionIdBytes);\n\n byte[] messageBytes = new byte[MESSAGE_LEN_HEADER + length];\n\n byte[] messageTypeBytes = createMessageType();\n System.arraycopy(messageTypeBytes, 0, messageBytes, MESSAGE_POS_TYPE, MESSAGE_LEN_TYPE);\n\n byte[] lengthBytes = Bytes.intToBytes(length);\n System.arraycopy(lengthBytes, 2, messageBytes, MESSAGE_POS_LENGTH, MESSAGE_LEN_LENGTH);\n\n byte[] magicCookieBytes = Bytes.intToBytes(MAGIC_COOKIE_FIXED_VALUE);\n System.arraycopy(\n magicCookieBytes, 0, messageBytes, MESSAGE_POS_MAGIC_COOKIE, MESSAGE_LEN_MAGIC_COOKIE);\n\n System.arraycopy(\n transactionIdBytes, 0, messageBytes, MESSAGE_POS_TRANSACTION_ID,\n MESSAGE_LEN_TRANSACTION_ID);\n transactionIdBytes = null;\n\n if (attributeBytes != null && attributeBytes.length > 0) {\n System.arraycopy(\n attributeBytes, 0, messageBytes, MESSAGE_LEN_HEADER, attributeBytes.length);\n attributeBytes = null;\n }\n\n return new Message(messageBytes);\n }", "public DatagramPacket createDatagramPacket(InetAddress address, Integer port) {\n byte[] message = this.buildBytes();\n return new DatagramPacket(message, message.length, address, port);\n }", "public String fromPacketToString() {\r\n\t\tString message = Integer.toString(senderID) + PACKET_SEPARATOR + Integer.toString(packetID) + PACKET_SEPARATOR + type + PACKET_SEPARATOR;\r\n\t\tfor (String word:content) {\r\n\t\t\tmessage = message + word + PACKET_SEPARATOR;\r\n\t\t}\r\n\t\treturn message;\r\n\t}", "public abstract ByteBuffer getPacket();", "ITaggedData Create(short tag, byte[] data, int offset, int count);", "public PacketBuilder(int capacity) {\n\t\tbuffer = ByteBuffer.allocate(capacity);\n\t}", "@Override\n public ByteBuffer buildRequestPacket() {\n\n ByteBuffer sendData = ByteBuffer.allocate(128);\n sendData.putLong(this.connectionId); // connection_id - can't change (64 bits)\n sendData.putInt(getActionNumber()); // action we want to perform - connecting with the server (32 bits)\n sendData.putInt(getTransactionId()); // transaction_id - random int we make (32 bits)\n\n return sendData;\n }", "public void setType(TFTPPacketType type) throws TFTPPacketException;", "public MAVLinkPacket pack() {\n MAVLinkPacket packet = new MAVLinkPacket(MAVLINK_MSG_LENGTH);\n packet.sysid = 255;\n packet.compid = 190;\n packet.msgid = MAVLINK_MSG_ID_ONBOARD_COMPUTER_STATUS;\n\n packet.payload.putUnsignedLong(time_usec);\n\n packet.payload.putUnsignedInt(uptime);\n\n packet.payload.putUnsignedInt(ram_usage);\n\n packet.payload.putUnsignedInt(ram_total);\n\n\n for (int i = 0; i < storage_type.length; i++) {\n packet.payload.putUnsignedInt(storage_type[i]);\n }\n\n\n for (int i = 0; i < storage_usage.length; i++) {\n packet.payload.putUnsignedInt(storage_usage[i]);\n }\n\n\n for (int i = 0; i < storage_total.length; i++) {\n packet.payload.putUnsignedInt(storage_total[i]);\n }\n\n\n for (int i = 0; i < link_type.length; i++) {\n packet.payload.putUnsignedInt(link_type[i]);\n }\n\n\n for (int i = 0; i < link_tx_rate.length; i++) {\n packet.payload.putUnsignedInt(link_tx_rate[i]);\n }\n\n\n for (int i = 0; i < link_rx_rate.length; i++) {\n packet.payload.putUnsignedInt(link_rx_rate[i]);\n }\n\n\n for (int i = 0; i < link_tx_max.length; i++) {\n packet.payload.putUnsignedInt(link_tx_max[i]);\n }\n\n\n for (int i = 0; i < link_rx_max.length; i++) {\n packet.payload.putUnsignedInt(link_rx_max[i]);\n }\n\n\n for (int i = 0; i < fan_speed.length; i++) {\n packet.payload.putShort(fan_speed[i]);\n }\n\n\n packet.payload.putUnsignedByte(type);\n\n\n for (int i = 0; i < cpu_cores.length; i++) {\n packet.payload.putUnsignedByte(cpu_cores[i]);\n }\n\n\n for (int i = 0; i < cpu_combined.length; i++) {\n packet.payload.putUnsignedByte(cpu_combined[i]);\n }\n\n\n for (int i = 0; i < gpu_cores.length; i++) {\n packet.payload.putUnsignedByte(gpu_cores[i]);\n }\n\n\n for (int i = 0; i < gpu_combined.length; i++) {\n packet.payload.putUnsignedByte(gpu_combined[i]);\n }\n\n\n packet.payload.putByte(temperature_board);\n\n\n for (int i = 0; i < temperature_core.length; i++) {\n packet.payload.putByte(temperature_core[i]);\n }\n\n\n return packet;\n }", "RecordType createRecordType();", "public static Packet deserialize(String data) {\n\t\t\tString hex = data.substring(0, 4);\n\t\t\tString dat = data.substring(4);\n\t\t\treturn new Packet(dat, hex);\n\t\t}", "public PacketType(Sender sender, String className, int id){\n\t\tthis.sender = sender;\n\t\tthis.id = id;\n\n\t\tString packetType = \"PacketPlay\" + ((sender == Sender.CLIENT) ? \"In\" : \"Out\");\n\t\tthis.className = packetType + className;\n\t}", "ComplicationOverlayWireFormat() {}", "public RoutePacket() {\n super(DEFAULT_MESSAGE_SIZE);\n amTypeSet(AM_TYPE);\n }", "DatatypeType createDatatypeType();", "public GmsHeader(byte type, View view) {\n this.type=type;\n this.view=view;\n }", "TLV(byte[] buffer, int offset) {\n boolean constructed;\n int size;\n \n type = buffer[offset++] & 0xff;\n\n // recurse for constructed types, bit 6 = 1\n constructed = (type & 0x20) == 0x20;\n\n if ((type & 0x1f) == 0x1f) {\n // multi byte type, 7 bits per byte, only last byte bit 8 as zero\n type = 0;\n for (; ; ) {\n int temp = buffer[offset++];\n type = type << 7;\n if (temp >= 0) {\n type += temp;\n break;\n }\n\n // strip off bit 8\n temp = temp & 0x7f;\n type += temp;\n }\n \n }\n\n size = buffer[offset++] & 0xff;\n if (size >= 128) {\n int sizeLen = size - 128;\n \n // NOTE: for now, all sizes must fit int two bytes\n if (sizeLen > 2) {\n throw new RuntimeException(\"TLV size to large\");\n }\n\n size = 0;\n while (sizeLen > 0) {\n size = (size << 8) + (buffer[offset++] & 0xff);\n sizeLen--;\n }\n }\n\n length = size;\n valueOffset = offset;\n\n if (constructed) {\n int end;\n TLV temp;\n\n end = offset + length;\n\n child = new TLV(buffer, offset);\n temp = child;\n for (; ; ) {\n offset = temp.valueOffset + temp.length;\n if (offset >= end) {\n break;\n }\n\n temp.next = new TLV(buffer, offset);\n temp = temp.next;\n }\n }\n }", "public Builder setTypeBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n type_ = value;\n onChanged();\n return this;\n }", "public Builder setTypeBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n type_ = value;\n onChanged();\n return this;\n }", "public Builder setTypeBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n type_ = value;\n onChanged();\n return this;\n }", "public Builder setTypeBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n type_ = value;\n onChanged();\n return this;\n }", "public Builder setTypeBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n type_ = value;\n onChanged();\n return this;\n }", "public MAVLinkPacket pack() {\n\t\tMAVLinkPacket packet = new MAVLinkPacket();\n\t\tpacket.len = MAVLINK_MSG_LENGTH;\n\t\tpacket.sysid = 255;\n\t\tpacket.compid = 190;\n\t\tpacket.msgid = MAVLINK_MSG_ID_PROPELLER;\n\t\tpacket.payload.putFloat(propeller1);\n\t\tpacket.payload.putFloat(propeller2);\n\t\tpacket.payload.putFloat(propeller3);\n\t\tpacket.payload.putFloat(propeller4);\n\n\t\treturn packet;\n\t}", "public PacketHeader(byte buffer[])\n\t\t{\n\t\t\n\t\t}", "Structure createStructure();", "public Builder setTypeBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n\n type_ = value;\n onChanged();\n return this;\n }", "public Builder setTypeBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n\n type_ = value;\n onChanged();\n return this;\n }", "public ServerMessage(int type)\n\t{\n\t\tthis.type = type;\n\t\tthis.key = Tools.generateUniqueKey();\n\t}", "BType createBType();", "@Override\n public PacketCustomPayload decode(PacketBuffer buffer) throws IOException {\n PacketCustomPayload packet = new PacketCustomPayload();\n return packet;\n }" ]
[ "0.6508017", "0.61720216", "0.59074605", "0.5899603", "0.58783156", "0.58605117", "0.5814612", "0.5785055", "0.5781892", "0.57744634", "0.5703897", "0.5657173", "0.5653103", "0.55700445", "0.55634516", "0.5528841", "0.5525084", "0.5522541", "0.54201734", "0.5405281", "0.5405065", "0.53932273", "0.53902185", "0.53531504", "0.53409946", "0.52836746", "0.52344966", "0.52108", "0.5208859", "0.5197546", "0.51768446", "0.51764566", "0.5169551", "0.5162262", "0.5132921", "0.5116303", "0.51159906", "0.51104397", "0.5109893", "0.5105832", "0.5096376", "0.50960183", "0.508131", "0.5077603", "0.5060069", "0.50574493", "0.5043926", "0.50375384", "0.50375384", "0.50375384", "0.50375384", "0.5030631", "0.50208235", "0.50083303", "0.5007723", "0.50022894", "0.49758223", "0.49721408", "0.49693468", "0.49418882", "0.49363154", "0.49143943", "0.49138677", "0.49042004", "0.48960525", "0.48912174", "0.48908246", "0.48901436", "0.48833835", "0.48769066", "0.48767152", "0.48740038", "0.48668146", "0.48623472", "0.48557216", "0.4853365", "0.48473874", "0.48458257", "0.4834614", "0.48331055", "0.48329735", "0.4818925", "0.48133996", "0.47976935", "0.47962195", "0.47933337", "0.47900742", "0.47826764", "0.47826764", "0.47826764", "0.47826764", "0.47826764", "0.47808838", "0.47795188", "0.47791305", "0.4778576", "0.4778576", "0.47751778", "0.47739673", "0.47702754" ]
0.7093314
0
Constructs a new WirePacket with a given id and contents
public WirePacket(int id, byte[] bytes) { this.id = id; this.bytes = bytes; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public byte[] createPacket(short packetid, byte[] packetdata){\r\n\t\tshort s = 0;\r\n\t\tbyte[] packet;\r\n\t\tint size = packetdata.length;\r\n\t\t\r\n\t\tif (size < 1){\r\n\t\t\tpacket = new byte[12];\r\n\t\t}else{\r\n\t\t\tpacket = new byte[12+size];\r\n\t\t}\r\n\t\tif (packetid == 2 || packetid == 5 || packetid == 6){\r\n\t\t\tpacket[0] = (byte) 0x00;\r\n\t\t} else packet[0] = (byte) 0x14;\r\n\t\t//Reserved\r\n\t\tpacket[1] = (byte) 0x00;\r\n\t\tpacket[2] = (byte) 0x00;\r\n\t packet[3] = (byte) 0x00;\r\n\t //PacketId\r\n\t s = (byte) packetid;\r\n\t byte[] packet_2 = Util.shortTobyte(s);\r\n\t packet[4] = packet_2[0];\r\n\t packet[5] = packet_2[1];\r\n\t\t//Reserved2\r\n\t\tpacket[6] = (byte) 0x00;\r\n\t packet[7] = (byte) 0x00;\r\n\t //DataSize\r\n\t byte[] packet2 = Util.intTobyte(size);\r\n\t packet[8] = packet2[0];\r\n\t packet[9] = packet2[1];\r\n\t packet[10] = packet2[2];\r\n\t packet[11] = packet2[3];\r\n\t for (int x = 0; x < size; x++){\r\n\t \tpacket[12+x] = packetdata[x];\r\n\t }\r\n\t \r\n\t return packet;\r\n\t}", "protected ILPacket getPacketFromData(String id) \n\t\t\tthrows PacketFormatException, IOException \n\t{\n\t\tthis.buffer.rewind();\n\t\treturn ILPacketFactory.getPacketFromData(this.buffer, id);\n\t}", "public abstract Packet create(final int[] data,\n final int identifier);", "public Packet(PacketId packetId, String message)\n {\n this.packetId = packetId;\n this.message = message;\n\n }", "public Packet createPacket() {\n\t\treturn new Packet((ByteBuffer) buffer.flip());\n\t}", "DnsMessage(int id) {\n header = newHeader(id);\n }", "public Packet(int ID_, Type type_, String message_, int destinationID)\r\n\t{\r\n\t\tthis.ID = ID_;\r\n\t\tthis.type = type_;\r\n\t\tthis.message = message_;\r\n\t\tthis.dID = destinationID;\r\n\t}", "public packetizer(int id){\n packet_num_sent = 0;\n last_packet_received = 0;\n packets_lost = 0;\n this.id = id;\n journey_time =0;\n packet_ack = 0;\n our_packs_lost = 0;\n }", "private void makePacket() throws PacketMappingNotFoundException {\r\n\t\tfinal PacketIdMapping mapping = mapCon.getMappingFor(packetId); //Mapping for id\r\n\t\tif(mapping == null)\r\n\t\t\tthrow new PacketMappingNotFoundException(\"mapping not found for id while constructing packet\", packetId);\r\n\t\tfinal Packet newPacket = mapping.getNewInstance(); //make a packet\r\n\t\tfinal ReadableArrayData packetData = new ReadableArrayData(tempData, false);\r\n\t\tnewPacket.readData(packetData); //read the packet data\r\n\t\tfinishedPacketReceiver.accept(newPacket); //send the packet to the connection\r\n\t}", "protected Block(short id, byte data) {\n this.id = id;\n this.data = data;\n }", "RS3PacketBuilder buildPacket(T node);", "public static WirePacket fromPacket(Object packet) {\n\t\tcheckNotNull(packet, \"packet cannot be null!\");\n\t\tcheckArgument(MinecraftReflection.isPacketClass(packet), \"packet must be a Minecraft packet\");\n\n\t\tPacketType type = PacketType.fromClass(packet.getClass());\n\t\tint id = type.getCurrentId();\n\n\t\tByteBuf buffer = PacketContainer.createPacketBuffer();\n\t\tMethod write = MinecraftMethods.getPacketWriteByteBufMethod();\n\n\t\ttry {\n\t\t\twrite.invoke(packet, buffer);\n\t\t} catch (ReflectiveOperationException ex) {\n\t\t\tthrow new RuntimeException(\"Failed to serialize packet contents.\", ex);\n\t\t}\n\n\t\treturn new WirePacket(id, getBytes(buffer));\n\t}", "public Packet() {\n\t}", "public PacketBuilder() {\n\t\tthis(1024);\n\t}", "public Packet(int id, ArrayList<Node> biDirectionalLinks, ArrayList<Integer> receivedHelloFrom) {\n this.biDirectionalLinks = biDirectionalLinks;\n this.receivedHelloFrom = receivedHelloFrom;\n packetType = 0;\n this.id = id;\n }", "public static WirePacket fromPacket(PacketContainer packet) {\n\t\tcheckNotNull(packet, \"packet cannot be null!\");\n\n\t\tint id = packet.getType().getCurrentId();\n\n\t\tByteBuf buffer = PacketContainer.createPacketBuffer();\n\t\tMethod write = MinecraftMethods.getPacketWriteByteBufMethod();\n\n\t\ttry {\n\t\t\twrite.invoke(packet.getHandle(), buffer);\n\t\t} catch (ReflectiveOperationException ex) {\n\t\t\tthrow new RuntimeException(\"Failed to serialize packet contents.\", ex);\n\t\t}\n\n\t\treturn new WirePacket(id, getBytes(buffer));\n\t}", "public Packet(int sequenceNumber, String sourceNode, int portNumber, int id, int previousHop, double speed, double xCoordinate, double yCoordinate,\n long currentTime, int packetType, int idTo) {\n this.sequenceNumber = sequenceNumber;\n this.previousHop = previousHop;\n this.id = id;\n this.speed = speed;\n this.xCoordinate = xCoordinate;\n this.yCoordinate = yCoordinate;\n this.sourceNode = sourceNode;\n this.currentTime = currentTime;\n this.packetType = packetType;\n this.portNumber = portNumber;\n this.idTo = idTo;\n\n }", "protected Block(short id) {\n this(id, (byte) 0);\n }", "public static Paquet getInstance(int id,byte[] data) {\n\t\treturn new Paquet(id,data);\n\t}", "public TextObjectBaseRecord(short id, short size, byte [] data)\n {\n super(id, size, data);\n \n }", "public MAVLinkPacket pack(){\n MAVLinkPacket packet = new MAVLinkPacket(MAVLINK_MSG_LENGTH);\n packet.sysid = 255;\n packet.compid = 190;\n packet.msgid = MAVLINK_MSG_ID_GIMBAL_DEVICE_INFORMATION;\n \n packet.payload.putUnsignedInt(time_boot_ms);\n \n packet.payload.putUnsignedInt(firmware_version);\n \n packet.payload.putFloat(tilt_max);\n \n packet.payload.putFloat(tilt_min);\n \n packet.payload.putFloat(tilt_rate_max);\n \n packet.payload.putFloat(pan_max);\n \n packet.payload.putFloat(pan_min);\n \n packet.payload.putFloat(pan_rate_max);\n \n packet.payload.putUnsignedShort(cap_flags);\n \n \n for (int i = 0; i < vendor_name.length; i++) {\n packet.payload.putUnsignedByte(vendor_name[i]);\n }\n \n \n \n for (int i = 0; i < model_name.length; i++) {\n packet.payload.putUnsignedByte(model_name[i]);\n }\n \n \n return packet;\n }", "public MessageRecord(byte[] id, String idText, Timestamp dateCreated, Timestamp lastEdited, String text, byte[] authorId, String authorIdText, byte[] chatId, String chatIdText) {\n super(Message.MESSAGE);\n\n set(0, id);\n set(1, idText);\n set(2, dateCreated);\n set(3, lastEdited);\n set(4, text);\n set(5, authorId);\n set(6, authorIdText);\n set(7, chatId);\n set(8, chatIdText);\n }", "public WirePacket(PacketType type, byte[] bytes) {\n\t\tthis.id = checkNotNull(type, \"type cannot be null\").getCurrentId();\n\t\tthis.bytes = bytes;\n\t}", "public TextObjectBaseRecord(short id, short size, byte [] data, int offset)\n {\n super(id, size, data, offset);\n \n }", "public static KarelPacket createPacket(ConnectionId id,\n SequenceNumber sq,\n AcknowledgeNumber ack,\n FlagNumber flag,\n PacketData data) {\n return new KarelPacket(id, sq, ack, flag, data);\n }", "public Packet(String data){\n\t\t\tthis(data, CkSum.genCheck(data));\n\t\t}", "public Packet getPacket(long id) throws NegativeValueException,\n\t\t\tPacketException;", "public Struct(String b){\r\n\tid=b;\r\n\tsize=0;\r\n\tform=0;\r\n }", "protected abstract void createPacketData();", "public static Block getInstance(short id, byte data) {\n switch (id) {\n case 5:\n return new WoodenPlank(data);\n case 6:\n return new Sapling(data);\n case 8:\n case 9:\n return new Water(id, data);\n case 10:\n case 11:\n return new Lava(id, data);\n case 17:\n return new Wood(data);\n case 18:\n return new Leaves(data);\n case 23:\n return new Dispenser(null, (byte) 0);\n case 24:\n return new Sandstone(data);\n case 26:\n return new Bed(data);\n case 27:\n return new PoweredRail(data);\n case 28:\n return new DetectorRail(data);\n case 29:\n case 33:\n return new Piston(id, data);\n case 31:\n return new TallGrass(data);\n case 34:\n return new PistonExtension(data);\n case 35:\n return new Wool(data);\n case 43:\n case 44:\n return new StoneSlab(id, data);\n case 50:\n return new Torch(data);\n case 51:\n return new Fire(data);\n case 53: // oak\n case 67: // cobble\n case 108: // brick\n case 109: // stonebrick\n case 114: // netherbrick\n case 128: // sandstone\n case 134: // spruce\n case 135: // birch\n case 136: // jungle\n case 156:\n return new Stair(id, data); // quartz\n case 54: // normal chest\n case 146:\n return new Chest(id); // trapped chest\n case 55:\n return new RedstoneWire(data);\n case 59:\n return new Crop((short) 59, data); // Wheat\n case 60:\n return new Farmland(data);\n case 61:\n case 62:\n return new Furnace(id, data);\n case 63:\n case 68:\n return new Sign(null, id, data);\n case 64:\n case 71:\n return new Door(id, data);\n case 78:\n return new SnowCover(data);\n case 65:\n return new Ladder(data);\n case 66:\n return new Rail(data);\n case 69:\n return new Lever(data);\n case 70:\n case 72:\n return new PressurePlate(id, data);\n case 75:\n case 76:\n return new RedstoneTorch(id, data);\n case 77:\n return new Button(id, data);\n case 84:\n return new Jukebox(data);\n case 86:\n return new Pumpkin(data);\n case 91:\n return new JackOLantern(data);\n case 92:\n return new Cake(data);\n case 93:\n case 94:\n return new RedstoneRepeater(id, data);\n case 96:\n return new TrapDoor(data);\n case 98:\n return new StoneBrick(data);\n case 99:\n case 100:\n return new HugeMushroom(id, data);\n case 104:\n case 105:\n return new Stem(id, data);\n case 106:\n return new Vines(data);\n case 107:\n return new FenceGate(data);\n case 115:\n return new NetherWart(data);\n case 117:\n return new BrewingStand();\n case 118:\n return new Cauldron(data);\n case 120:\n return new EndPortalFrame(data);\n case 123:\n case 124:\n return new RedstoneLamp(id);\n case 125:\n case 126:\n return new WoodenSlab(id, data);\n case 127:\n return new CocoaPod(data);\n case 130:\n return new EnderChest(data);\n case 131:\n return new TripwireHook(data);\n case 132:\n return new TripWire(data);\n case 137:\n return new CommandBlock();\n case 138:\n return new Beacon();\n case 139:\n return new CobblestoneWall(data);\n case 140:\n return new FlowerPot(data);\n case 141:\n return new Crop((short) 141, data); // Carrot\n case 142:\n return new Crop((short) 142, data); // Potato\n case 143:\n return new Button(id, data);\n case 144:\n return new MobHead((byte) 3, (byte) 8, null, data); // north facing human head - most data from tile entity\n case 145:\n return new Anvil(data);\n case 147:\n case 148:\n return new WeightedPressurePlate(id, data);\n case 154:\n return new Hopper(null, (byte) 0);\n case 155:\n return new QuartzBlock(data);\n case 157:\n return new ActivatorRail(data);\n case 158:\n return new Dropper(null, (byte) 0);\n default:\n return new Block(id, data);\n }\n }", "public Packet(int PCKT_RI_, int PCKT_SRC_ID_, int pcktNr_, int sizeInBits_, double tCreation_){\r\n\t\tPCKT_RI=PCKT_RI_;\r\n\t\tPCKT_SRC_ID=PCKT_SRC_ID_;\r\n\t\tpcktNr=pcktNr_;\r\n\t\tsizeInBits=sizeInBits_;\r\n\t\ttCreation=tCreation_;\r\n\t}", "public void setId(byte id){this.id = id;}", "public static byte[] createPacket(byte[] data) {\r\n byte[] header = createHeader(seqNo);\r\n byte[] packet = new byte[data.length + header.length]; // data + header\r\n System.arraycopy(header, 0, packet, 0, header.length);\r\n System.arraycopy(data, 0, packet, header.length, data.length);\r\n seqNo = seqNo + 1;\r\n return packet;\r\n }", "public Packet(int sequenceNumber, String sourceNode, int portNumber, int id, int previousHop, double speed, double xCoordinate, double yCoordinate,\n long currentTime, int packetType) {\n this.sequenceNumber = sequenceNumber;\n this.previousHop = previousHop;\n this.id = id;\n this.speed = speed;\n this.xCoordinate = xCoordinate;\n this.yCoordinate = yCoordinate;\n this.sourceNode = sourceNode;\n this.currentTime = currentTime;\n this.packetType = packetType;\n this.portNumber = portNumber;\n\n idTo = 0;\n }", "public DiscoveryPacket(BigInteger networkId) {\n this.networkId = networkId;\n }", "public Packet(final long unique) {\r\n\t\ttype = EvidenceType.NONE;\r\n\t\tcommand = EvidenceBuilder.LOG_CREATE;\r\n\t\tid = unique;\r\n\t\tdata = null;\r\n\t}", "public Rbt2Staffer (java.lang.String id) {\r\n\t\tthis.setId(id);\r\n\t\tinitialize();\r\n\t}", "public MAVLinkPacket pack(){\n MAVLinkPacket packet = new MAVLinkPacket(MAVLINK_MSG_LENGTH);\n packet.sysid = 1;\n packet.compid = 1;\n packet.msgid = MAVLINK_MSG_ID_BATTERY_batterySTATUS;\n \n packet.payload.putInt(time_total);\n \n packet.payload.putInt(time_remaining);\n \n packet.payload.putByte(battery_remaining);\n \n packet.payload.putUnsignedByte(charge_state);\n \n return packet;\n }", "public JdwpId (byte tag)\r\n {\r\n _tag = tag;\r\n }", "public CapsPacketExtension()\n {\n }", "private static DatagramPacket createPacket(byte[] data, SocketAddress remote) {\r\n\t\tDatagramPacket packet = new DatagramPacket(data, data.length, remote);\r\n\t\treturn packet;\r\n\t}", "public String fromPacketToString() {\r\n\t\tString message = Integer.toString(senderID) + PACKET_SEPARATOR + Integer.toString(packetID) + PACKET_SEPARATOR + type + PACKET_SEPARATOR;\r\n\t\tfor (String word:content) {\r\n\t\t\tmessage = message + word + PACKET_SEPARATOR;\r\n\t\t}\r\n\t\treturn message;\r\n\t}", "public PacketType(Sender sender, String className, int id){\n\t\tthis.sender = sender;\n\t\tthis.id = id;\n\n\t\tString packetType = \"PacketPlay\" + ((sender == Sender.CLIENT) ? \"In\" : \"Out\");\n\t\tthis.className = packetType + className;\n\t}", "FJPacket( AutoBuffer ab, int ctrl ) { _ab = ab; _ctrl = ctrl; }", "public Data( UUID id, UUID from, long transaction ) {\r\n this.id = id;\r\n this.transaction = transaction;\r\n this.maybeFrom = Optional.ofNullable( from );\r\n }", "public Builder setIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n id_ = value;\n onChanged();\n return this;\n }", "public Builder setIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n id_ = value;\n onChanged();\n return this;\n }", "public Builder setIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n id_ = value;\n onChanged();\n return this;\n }", "public Builder setIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n id_ = value;\n onChanged();\n return this;\n }", "public Builder setIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n id_ = value;\n onChanged();\n return this;\n }", "public Builder setIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n id_ = value;\n onChanged();\n return this;\n }", "public Builder setIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n id_ = value;\n onChanged();\n return this;\n }", "public Builder setIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n id_ = value;\n onChanged();\n return this;\n }", "public Message build() {\n Objects.requireNonNull(transactionIdBytes);\n\n byte[] messageBytes = new byte[MESSAGE_LEN_HEADER + length];\n\n byte[] messageTypeBytes = createMessageType();\n System.arraycopy(messageTypeBytes, 0, messageBytes, MESSAGE_POS_TYPE, MESSAGE_LEN_TYPE);\n\n byte[] lengthBytes = Bytes.intToBytes(length);\n System.arraycopy(lengthBytes, 2, messageBytes, MESSAGE_POS_LENGTH, MESSAGE_LEN_LENGTH);\n\n byte[] magicCookieBytes = Bytes.intToBytes(MAGIC_COOKIE_FIXED_VALUE);\n System.arraycopy(\n magicCookieBytes, 0, messageBytes, MESSAGE_POS_MAGIC_COOKIE, MESSAGE_LEN_MAGIC_COOKIE);\n\n System.arraycopy(\n transactionIdBytes, 0, messageBytes, MESSAGE_POS_TRANSACTION_ID,\n MESSAGE_LEN_TRANSACTION_ID);\n transactionIdBytes = null;\n\n if (attributeBytes != null && attributeBytes.length > 0) {\n System.arraycopy(\n attributeBytes, 0, messageBytes, MESSAGE_LEN_HEADER, attributeBytes.length);\n attributeBytes = null;\n }\n\n return new Message(messageBytes);\n }", "private DAPMessage constructFrom(DatabaseTableRecord record) {\n return DAPMessage.fromXML(record.getStringValue(CommunicationNetworkServiceDatabaseConstants.DAP_MESSAGE_DATA_COLUMN_NAME));\n }", "public ef l()\r\n/* 293: */ {\r\n/* 294:240 */ Packet211TileDesc packet = new Packet211TileDesc();\r\n/* 295:241 */ packet.subId = 9;\r\n/* 296:242 */ packet.xCoord = this.l;packet.yCoord = this.m;\r\n/* 297:243 */ packet.zCoord = this.n;\r\n/* 298:244 */ writeToPacket(packet);\r\n/* 299:245 */ packet.encode();\r\n/* 300:246 */ return packet;\r\n/* 301: */ }", "public Builder setIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n id_ = value;\n onChanged();\n return this;\n }", "@Override\n public ByteBuffer buildRequestPacket() {\n\n ByteBuffer sendData = ByteBuffer.allocate(128);\n sendData.putLong(this.connectionId); // connection_id - can't change (64 bits)\n sendData.putInt(getActionNumber()); // action we want to perform - connecting with the server (32 bits)\n sendData.putInt(getTransactionId()); // transaction_id - random int we make (32 bits)\n\n return sendData;\n }", "public Builder setIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n id_ = value;\n onChanged();\n return this;\n }", "public Builder setIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n id_ = value;\n onChanged();\n return this;\n }", "public Builder setIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n id_ = value;\n onChanged();\n return this;\n }", "public Builder setIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n id_ = value;\n onChanged();\n return this;\n }", "public Builder setIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n id_ = value;\n onChanged();\n return this;\n }", "public Struct(String a, int b){\r\n\tid=a;\r\n\tsize=b;\t\r\n\tform=0;\r\n }", "public Builder setIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n id_ = value;\n onChanged();\n return this;\n }", "public Builder setIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n id_ = value;\n onChanged();\n return this;\n }", "public BbsOperation (java.lang.Integer id) {\r\n\t\tsuper(id);\r\n\t}", "public static Block getInstance(short id) {\n return getInstance(id, (byte) 0);\n }", "public PurchaseRequestAttachmentContent(Integer id) {\r\n super(id);\r\n }", "public void createCharacterUpdatePacket(int id, int respect, float x, float y) {\n\t\tint size = (3 * (Integer.SIZE / 8)) + (2 * (Float.SIZE / 8));\n\t\tByteBuffer buffer = ByteBuffer.allocate(size);\n\t\tbuffer.putInt(CHARACTER_UPDATE).putInt(id).putInt(respect).putFloat(x).putFloat(y).flip();\n\t\tbytes = buffer.array();\n\t}", "public Node( String id )\r\n {\r\n initialize(id);\r\n lbl = id;\r\n }", "public Packet(String data, String checksum) {\n\t\t\tthis.data = data;\n\t\t\tthis.checksum = checksum;\n\t\t}", "public UserPack(String id) {\n\t\t\tdesc = new PackDesc(id);\n\t\t\tsource = new Workspace(id);\n\t\t\tcastles = new PackCasList(this);\n\t\t\tmc = new PackMapColc(this);\n\t\t\teditable = true;\n\t\t\tloaded = true;\n\t\t}", "public AbstractPacketDO getPacket() {\n\t\tString headers = headerTableModel.getHeaders();\n\n\t\t// get the xml content\n\t\tOutputStream os = new ByteArrayOutputStream();\n\t\ttm.prettyPrint(os);\n\t\tString xml = os.toString();\n\t\txml = xml.trim();\n\t\txml += \"\\n\";\n\n\t\tString content = \"\";\n\n\t\tif (headers.contains(\"Content-Length\")) {\n\t\t\tint contentLength = xml.getBytes().length;\n\t\t\theaders = headers.replaceAll(\"Content-Length:\\\\s\\\\d+\",\n\t\t\t\t\tString.format(\"Content-Length: %d\", contentLength));\n\t\t\tcontent = headers + \"\\r\\n\" + xml;\n\t\t} else {\n\t\t\tcontent = headers + \"\\r\\n\";\n\t\t}\n\n\t\tif (packet != null) {\n\t\t\tpacket.setData(content.getBytes());\n\t\t}\n\n\t\treturn packet;\n\t}", "public Handshake(int id)\n\t{\n\t\tthis.id = id;\n\t\t\n\t\tif (id < 0)\n\t\t\tthis.messageText = \"Asking for new ID\";\n\t\telse\n\t\t\tthis.messageText = \"Telling remote host my ID\";\n\t}", "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 }", "public Node(final String id) {\n super();\n this.id = id;\n }", "public Builder setIdentifierBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n identifier_ = value;\n onChanged();\n return this;\n }", "public SyncFluidPacket() {\n }", "private FullExtTcpPacket createPacket(\n long dataSizeByte,\n long sequenceNumber,\n long ackNumber,\n boolean ACK,\n boolean SYN,\n boolean ECE\n ) {\n return new FullExtTcpPacket(\n flowId, dataSizeByte, sourceId, destinationId,\n 100, 80, 80, // TTL, source port, destination port\n sequenceNumber, ackNumber, // Seq number, Ack number\n false, false, ECE, // NS, CWR, ECE\n false, ACK, false, // URG, ACK, PSH\n false, SYN, false, // RST, SYN, FIN\n congestionWindow, 0 // Window size, Priority\n );\n }", "id(int id) {}", "public interface Packet {\n /**\n * Read body from byte buffer\n * @param bb \n * @throws java.lang.Exception \n */\n void readBody(ByteBuf bb, TranscoderContext context) throws Exception;\n \n /**\n * Write body to byte buffer\n * @param bb \n * @param context \n * @throws java.lang.Exception \n */\n void writeBody(ByteBuf bb, TranscoderContext context) throws Exception;\n \n /**\n * Calculate and return body size in bytes\n * @param context\n * @return \n */\n int calculateBodyLength(TranscoderContext context);\n \n /**\n * Calculate and set field with body length\n * @param context\n */\n void calculateAndSetBodyLength(TranscoderContext context);\n \n /**\n * Get body length from field\n * @return \n */\n int getBodyLength();\n\n /**\n * Get sequence number field value\n * @return \n */\n int getSequenceNumber();\n \n /**\n * Set sequence number field value\n * @param sequenceNumber \n */\n void setSequenceNumber(int sequenceNumber); \n}", "private DatagramPacket injectSourceAndDestinationData(DatagramPacket packet)\n\t{\n\t\t\n\t\tbyte[] ipxBuffer = Arrays.copyOf(packet.getData(), packet.getLength());\n\t\tint bufferLength = ipxBuffer.length + 9;\n\t\t\n\t\tbyte[] wrappedBuffer = Arrays.copyOf(ipxBuffer, bufferLength);\n\t\twrappedBuffer[bufferLength - 9] = 0x01;\n\t\twrappedBuffer[bufferLength - 8] = (byte) (packet.getAddress().getAddress()[0]);\n\t\twrappedBuffer[bufferLength - 7] = (byte) (packet.getAddress().getAddress()[1]);\n\t\twrappedBuffer[bufferLength - 6] = (byte) (packet.getAddress().getAddress()[2]);\n\t\twrappedBuffer[bufferLength - 5] = (byte) (packet.getAddress().getAddress()[3]);\n\t\twrappedBuffer[bufferLength - 4] = (byte) (packet.getPort() >> 8);\n\t\twrappedBuffer[bufferLength - 3] = (byte) packet.getPort();\n\t\twrappedBuffer[bufferLength - 2] = (byte) (ipxSocket.getLocalPort() >> 8);\n\t\twrappedBuffer[bufferLength - 1] = (byte) ipxSocket.getLocalPort();\n\t\t\n\t\treturn new DatagramPacket(wrappedBuffer, bufferLength);\n\t}", "public BbsMemberMagic (java.lang.Integer id) {\n\t\tsuper(id);\n\t}", "public ID(String id) {\n this.type = id.charAt(0);\n this.UID = id;\n }", "protected void buildPacket() throws IOException {\n\t\tByteArrayOutputStream baos = new ByteArrayOutputStream();\n\t\t\n\t\t// write packet\n\t\tbaos.write(SPInstr.USER.getByte()); // username\n\t\tbaos.write(username.getBytes());\n\t\tbaos.write(SPInstr.EOM.getByte());\n\t\tbaos.write(SPInstr.PASS.getByte()); // password\n\t\tbaos.write(password.getBytes());\n\t\tbaos.write(SPInstr.EOM.getByte());\n\t\tbaos.write(SPInstr.EOP.getByte()); // no action required since it is sent from the client\n\t\t\n\t\t// save packet\n\t\tpacket = baos.toByteArray();\n\t}", "public interface TextPacketCreator {\n\n\t/**\n\t * \n\t * @param bytes the characters to read from\n\t * @return An empty collection, or if it can be read, a collection of {@link Packet}s\n\t */\n\tCollection<? extends Packet> add(char[] bytes) throws PacketCreationException;\n\t\n}", "public Message(String id, double temperature, long timestamp) {\n this.id = id;\n this.temperature = temperature;\n this.timestamp = timestamp;\n }", "public BaseNote (java.lang.String id) {\n\t\tthis.setId(id);\n\t\tinitialize();\n\t}", "public String reqsetpkt(byte []p,byte[] id,byte[] T,byte[] ip,byte[] no)\r\n\t{\n\t\treturn \"hi\";\r\n\t}", "public ContentType (java.lang.Integer id) {\n\t\tsuper(id);\n\t}", "id(int id, id id, int id) {}", "public static byte[] stageBAck(ServerValuesHolder values, int id) {\n\t\tbyte[] payload = ByteBuffer.allocate(4).putInt(id).array();\n\t\treturn createPacket(values.getSecretA(), 1, values.getStudentID(), payload);\n\t}", "public Message(String id, String body)\n\t{\n\t\tm_sID=id;\t\n\t\tm_sBody=body;\t\t\n\t}", "public Builder setIdBytes(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n id_ = value;\n bitField0_ |= 0x00000001;\n onChanged();\n return this;\n }", "public ByteBuffer buildPacket(int encap, short destUdp, short srcUdp) {\n ByteBuffer result = ByteBuffer.allocate(MAX_LENGTH);\n fillInPacket(encap, INADDR_BROADCAST, INADDR_ANY, destUdp,\n srcUdp, result, DHCP_BOOTREQUEST, mBroadcast);\n result.flip();\n return result;\n }", "void sendRawPacket(UUID uuid, ByteBuf packet) throws IllegalArgumentException;", "public MAVLinkPacket pack() {\n MAVLinkPacket packet = new MAVLinkPacket(MAVLINK_MSG_LENGTH);\n packet.sysid = 255;\n packet.compid = 190;\n packet.msgid = MAVLINK_MSG_ID_SAFETY_ALLOWED_AREA;\n\n packet.payload.putFloat(p1x);\n\n packet.payload.putFloat(p1y);\n\n packet.payload.putFloat(p1z);\n\n packet.payload.putFloat(p2x);\n\n packet.payload.putFloat(p2y);\n\n packet.payload.putFloat(p2z);\n\n packet.payload.putUnsignedByte(frame);\n\n return packet;\n }", "public Packet41(int subpacketId) {\n\t\tsuper(subpacketId);\n\t}", "public Builder setIdBytes(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n id_ = value;\n bitField0_ |= 0x00000001;\n onChanged();\n return this;\n }" ]
[ "0.6495713", "0.63579184", "0.6149172", "0.61376065", "0.610536", "0.60899276", "0.5971219", "0.5927017", "0.5879176", "0.5821769", "0.5724924", "0.57020366", "0.5665332", "0.5643635", "0.561023", "0.559281", "0.5580144", "0.5557401", "0.55541974", "0.5553914", "0.5541347", "0.5535838", "0.5523799", "0.55033326", "0.5477284", "0.54713917", "0.5457711", "0.54485065", "0.54405594", "0.5418605", "0.5411309", "0.53778917", "0.53605676", "0.5327257", "0.53179103", "0.5275968", "0.5234783", "0.5218606", "0.5218408", "0.52059984", "0.5184018", "0.516649", "0.5156966", "0.5151091", "0.5150994", "0.5119809", "0.5119809", "0.5119809", "0.5119809", "0.5119809", "0.5119809", "0.5119809", "0.5119809", "0.5109583", "0.5089348", "0.50749797", "0.50698304", "0.5062036", "0.5060184", "0.5060184", "0.5060184", "0.5060184", "0.5060184", "0.5055838", "0.5050912", "0.5050912", "0.5044061", "0.50165665", "0.5006046", "0.500599", "0.49998698", "0.49927178", "0.4985592", "0.49617532", "0.49366733", "0.4931211", "0.49112886", "0.490948", "0.4890425", "0.48893523", "0.4886865", "0.4884657", "0.48835722", "0.4883281", "0.48819202", "0.48778647", "0.48758596", "0.4864517", "0.48613352", "0.48600015", "0.48449382", "0.4844843", "0.48437062", "0.4836804", "0.48333496", "0.4831159", "0.48297304", "0.48290676", "0.48288468", "0.48258132" ]
0.70019925
0
Gets this packet's ID
public int getId() { return id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getPacketId();", "@Override\r\n\tpublic String getPacketID() {\n\t\treturn packet_id;\r\n\t}", "public PacketId getPacketId() {\n return packetId;\n }", "public static byte getPacketId(byte[] packet){\n assert packet.length >= 3;\n // And the ID is second byte\n return packet[1];\n }", "public int getId() {\n//\t\tif (!this.isCard())\n//\t\t\treturn 0;\n\t\treturn id;\n\t}", "@NonNull\n public String getIdentifier() {\n return mProto.id;\n }", "public static IDataPacketID GetID() {\r\n\t\treturn DataPacketIDFactory.Singleton.makeID(ITextData.class); // DataPacketIDFactory.Singleton is an instance of an IDataPacketIDFactory\r\n\t}", "public long getId() {\n\t\treturn _tempNoTiceShipMessage.getId();\n\t}", "public synchronized short getID () {\n return this.id;\n }", "public byte getId() {\r\n\t\treturn id;\r\n\t}", "public byte getId() {\r\n return id;\r\n }", "public UUID getID() {\r\n if(!getPayload().has(\"id\")) return null;\r\n return UUID.fromString(getPayload().getString(\"id\"));\r\n }", "@Override\r\n\tpublic default IDataPacketID getID() {\r\n\t\treturn ITextData.GetID();\r\n\t}", "public short getId() {\n return this.id;\n }", "public int getId() {\n\t\treturn this.data.getId();\n\t}", "public String getId() {\n\t\treturn Integer.toString(this.hashCode());\n\t}", "public final Integer getId() {\n\t\treturn this.id;\n\t}", "public int getId() {\n\t\treturn config >> 8;\n\t}", "public int getId() {\n if (!this.registered)\n return -1;\n return id;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public String getId() {\n\t\treturn this.playerid;\n\t}", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public int getID() {\n\t\treturn this.data.hashCode();\n\t}", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public byte[] getID() {\n return messageid;\n }", "public long getId() {\n return id_;\n }", "public short getId() {\n return id;\n }", "public int getId() {\n\t\t\treturn id_;\n\t\t}", "public int getId() {\n\t\t\treturn id_;\n\t\t}", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public long getId() {\r\n \treturn this.id;\r\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public java.lang.Integer getId () {\n\t\treturn _id;\n\t}", "public Integer getId() {\n return (Integer) get(0);\n }", "public static String id()\n {\n return _id;\n }", "public final long getId() {\r\n return id;\r\n }", "public Integer getId() {\n return id.get();\n }", "public int getId() {\n\t\t\t\treturn id_;\n\t\t\t}", "public int getId() {\n\t\t\t\treturn id_;\n\t\t\t}", "public int getMmtpPacketId() {\n return mMmtpPid;\n }", "public byte getID()\r\n\t {\r\n\t return id;\r\n\t }", "public int getId() {\n\t\t\treturn this.id;\n\t\t}", "public String getId() {\n\t\treturn this.token.get(\"id\").toString();\n\t}" ]
[ "0.82708484", "0.7930299", "0.77951866", "0.7621254", "0.7323077", "0.71553856", "0.71197397", "0.70469815", "0.69395006", "0.69271845", "0.68989515", "0.6835399", "0.6829835", "0.6816875", "0.6805665", "0.67794746", "0.6773816", "0.67704", "0.6758874", "0.6753361", "0.6753361", "0.6753361", "0.6753361", "0.6753361", "0.6753361", "0.6753361", "0.6753361", "0.6752214", "0.6739678", "0.6739678", "0.6739678", "0.6739678", "0.6739678", "0.6739678", "0.6739678", "0.67333657", "0.6719711", "0.6719711", "0.6719711", "0.6719711", "0.67185843", "0.6705603", "0.67007625", "0.669132", "0.669132", "0.66869086", "0.66869086", "0.66869086", "0.66869086", "0.66869086", "0.66869086", "0.66869086", "0.66869086", "0.66869086", "0.66869086", "0.66869086", "0.66869086", "0.66869086", "0.66869086", "0.66869086", "0.66869086", "0.66869086", "0.66869086", "0.66869086", "0.66869086", "0.66869086", "0.66869086", "0.66869086", "0.6686659", "0.6686659", "0.668651", "0.668294", "0.668294", "0.668294", "0.668294", "0.668294", "0.668294", "0.668294", "0.668294", "0.668294", "0.668294", "0.668294", "0.668294", "0.668294", "0.668294", "0.668294", "0.668294", "0.668294", "0.668294", "0.668294", "0.668108", "0.6674642", "0.6673828", "0.66729456", "0.66706365", "0.66690046", "0.66690046", "0.66462374", "0.66448116", "0.66370976", "0.66364545" ]
0.0
-1
Gets this packet's contents as a byte array
public byte[] getBytes() { return bytes; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic byte[] getBytes() {\n\t\treturn buffer.array();\r\n\t}", "public byte[] getContent();", "public byte[] getAsBytes() {\n\t\treturn m_RawContent;\n\t}", "public byte[] getBytes() {\n return baos.toByteArray();\n }", "byte[] getContent();", "public byte[] getBytes() {\r\n \treturn toString().getBytes();\r\n }", "public byte[] getBytes()\r\n {\r\n return buf;\r\n }", "byte[] getBytes();", "byte[] getBytes();", "public byte[] getAsBytes() {\n return (byte[])data;\n }", "public byte[] toBytes() {\n ByteArrayOutputStream os = new ByteArrayOutputStream();\n try {\n writeTo(os);\n } catch (IOException e) {e.printStackTrace();}\n return os.toByteArray();\n }", "public byte[] GetBytes() {\n return data;\n }", "public byte[] asByteArray() {\n return data;\n }", "public byte[] getContent() {\n return Arrays.copyOf(content, content.length);\n }", "com.google.protobuf.ByteString\n getContentsBytes();", "com.google.protobuf.ByteString\n getContentsBytes();", "public byte[] getBytes() {\n return bytes;\n }", "public byte[] getBytes() {\r\n\r\n if (bytes == null) {\r\n bytes = new byte[getLength()];\r\n }\r\n\r\n return bytes;\r\n }", "public byte[] getBytes()\n {\n return bytes;\n }", "public byte[] getBytes() {\n return bytes;\n }", "public byte[] getBytes() {\n return bytes;\n }", "public byte[] getBytes() {\r\n return bytes;\r\n }", "public byte[] getBytes()\n\t{\n\t\treturn bytes;\n\t}", "public byte[] toBytes() {\n return toProtobuf().toByteArray();\n }", "public byte[] getContent() {\r\n return content;\r\n }", "byte[] getByteContent() throws IOException;", "public byte[] getContent() {\n return content;\n }", "public byte[] getBytes() {\n return mBytes;\n }", "public byte[] toArray()\r\n {\r\n return _stream.toByteArray();\r\n }", "public byte[] getData();", "public byte[] getBytes() {\r\n return mBytes;\r\n }", "com.google.protobuf.ByteString\n getToBytes();", "public ByteArray content (){\r\n\t\t\tif(isCompressed) {\r\n\t\t\t\tuncompress();\r\n\t\t\t}\r\n\t\t\treturn _content;\r\n\t\t}", "byte[] getData();", "byte[] getData();", "byte[] getData();", "byte[] getData();", "public byte[] getData() {\n return ByteExtensions.clone(this.data);\n }", "public byte[] getByteData() { return bytedata; }", "public com.google.protobuf.ByteString\n getGetBytes() {\n return instance.getGetBytes();\n }", "public byte[] toByteArray() {\n\t\treturn baos.toByteArray();\n\t}", "byte[] byteValue() {\n\treturn data;\n }", "public byte[] getBytes(){\n\t\treturn message;\n\t}", "public byte[] getAsBytes () {\r\n\t \r\n\t //code description\r\n\t \r\n\t Properties p = new Properties();\t\r\n\t return this.getAsBytes(p);\r\n\t \r\n }", "public byte[] toByteArray() {\n byte[] array = new byte[count];\n System.arraycopy(buf, 0, array, 0, count);\n return array;\n }", "public byte[] getCopyBytes() {\n try {\n return serialToStream();\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n }\n }", "com.google.protobuf.ByteString getContent();", "com.google.protobuf.ByteString getContent();", "com.google.protobuf.ByteString\n getContentBytes();", "com.google.protobuf.ByteString\n getContentBytes();", "com.google.protobuf.ByteString getContentBytes();", "public byte[] getData()\n {\n if (m_data == null)\n {\n return null;\n }\n return (byte[]) m_data.clone();\n }", "public byte[] getBytes() {\r\n\t\treturn mByteList;\r\n\t}", "com.google.protobuf.ByteString\n getContentBytes();", "com.google.protobuf.ByteString\n getContentBytes();", "com.google.protobuf.ByteString\n getContentBytes();", "com.google.protobuf.ByteString\n getContentBytes();", "com.google.protobuf.ByteString\n getContentBytes();", "com.google.protobuf.ByteString\n getContentBytes();", "com.google.protobuf.ByteString\n getContentBytes();", "com.google.protobuf.ByteString\n getContentBytes();", "public com.google.protobuf.ByteString\n getContentBytes() {\n return instance.getContentBytes();\n }", "public com.google.protobuf.ByteString\n getContentBytes() {\n return instance.getContentBytes();\n }", "public byte[] getData() {\r\n return Arrays.copyOf(data, data.length);\r\n }", "public com.google.protobuf.ByteString\n getContentBytes() {\n return instance.getContentBytes();\n }", "public com.google.protobuf.ByteString\n getContentBytes() {\n return instance.getContentBytes();\n }", "public byte[] getData() {\n return data;\n }", "public byte[] getData() {\n if (this.length==0) {\n return new byte[0];\n }\n return data;\n }", "public byte[] getData() {\n return this.data;\n }", "public byte[] getBytes() {\r\n return this.seqArray;\r\n }", "public abstract byte[] toByteArray();", "public abstract byte[] toByteArray();", "public com.google.protobuf.ByteString\n getContentsBytes() {\n java.lang.Object ref = contents_;\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 contents_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public byte[] bytes() throws IOException {\n try(FileInputStream fis = new FileInputStream(file)) {\n return ByteStreams.toByteArray(fis);\n }\n }", "public byte[] value() {\n return value;\n }", "public byte[] getByteArray() {\n try {\n byte[] ret = (byte[]) byteBuffers.dequeue();\n num++;\n //Thread.dumpStack();\n if(ZenBuildProperties.dbgDataStructures){\n System.out.write('b');\n System.out.write('a');\n System.out.write('_');\n System.out.write('c');\n System.out.write('a');\n System.out.write('c');\n System.out.write('h');\n System.out.write('e');\n edu.uci.ece.zen.utils.Logger.writeln(num);\n }\n\n if (ret == null) {\n return (byte[]) imm.newArray(byte.class, 1024);\n } else {\n return ret;\n }\n } catch (Exception e) {\n ZenProperties.logger.log(Logger.FATAL, getClass(), \"getByteArray\", e);\n System.exit(-1);\n }\n return null;\n }", "public byte[] getBytes() {\n\treturn null;\n }", "public byte[] value() {\n return value;\n }", "@Override\n public byte[] getBytes() throws IOException {\n byte[] marshalledBytes = null;\n\n ByteArrayOutputStream baOutStream = new ByteArrayOutputStream();\n DataOutputStream dOut = new DataOutputStream(baOutStream);\n\n dOut.writeInt(type);\n\n dOut.writeInt(ID);\n\n dOut.writeInt(totalPacketsSent);\n\n dOut.writeInt(totalPacketsRelayed);\n\n dOut.writeLong(sendSummation);\n\n dOut.writeInt(totalPacketsRcvd);\n\n dOut.writeLong(rcvSummation);\n\n dOut.flush();\n marshalledBytes = baOutStream.toByteArray();\n\n baOutStream.close();\n dOut.close();\n\n return marshalledBytes;\n }", "byte[] getData() {\n return data;\n }", "default byte[] getBytes() throws IOException {\n try (InputStream is = getInputStream()) {\n return IOUtils.toByteArray(is);\n }\n }", "public com.google.protobuf.ByteString\n getContentsBytes() {\n java.lang.Object ref = contents_;\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 contents_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "List<Byte> getAsBytes();", "public byte[] toByteArray() throws IOException\n {\n try (InputStream is = createInputStream())\n {\n return is.readAllBytes();\n }\n }", "public byte[] toBytes()\n {\n String rep = sessionid + \"_\" + version + \"_\" + message;\n return rep.getBytes();\n }", "@Override\r\n\tpublic byte[] getByte() throws Exception {\n\t\tbyte[] marshalledBytes = null;\r\n\t\tByteArrayOutputStream baOutputStream = new ByteArrayOutputStream();\r\n\t\tDataOutputStream dout = new DataOutputStream(new BufferedOutputStream(\r\n\t\t\t\tbaOutputStream));\r\n\t\tdout.write(getType());\r\n\t\tInetAddress localAddress = node.serverSocketForSending.getInetAddress()\r\n\t\t\t\t.getLocalHost();\r\n\t\tint localPortNumber = node.serverSocketForSending.getLocalPort();\r\n\t\tbyte[] byteLocalIP = localAddress.getAddress();\r\n\t\tbyte addressLength = (byte) byteLocalIP.length;\r\n\t\tdout.write(addressLength);\r\n\t\tdout.write(byteLocalIP);\r\n\t\tdout.writeInt(localPortNumber);\r\n\t\tdout.writeInt(node.nodeID);\r\n\t\tdout.flush();\r\n\t\tmarshalledBytes = baOutputStream.toByteArray();\r\n\t\tbaOutputStream.close();\r\n\t\tdout.close();\r\n\r\n\t\treturn marshalledBytes;\r\n\t}", "public com.google.protobuf.ByteString\n getContentsBytes() {\n java.lang.Object ref = contents_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n contents_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\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 byte[] bytes() {\n\t\treturn concat(b64UrlEncode(header.bytes()), JwtHelper.PERIOD, b64UrlEncode(content), JwtHelper.PERIOD, b64UrlEncode(crypto));\n\t}", "public byte[] serialize() {\n try {\n ByteArrayOutputStream b = new ByteArrayOutputStream();\n ObjectOutputStream o = new ObjectOutputStream(b);\n o.writeObject(this);\n return b.toByteArray();\n } catch (IOException ioe) {\n return null;\n }\n }", "public com.google.protobuf.ByteString\n getContentsBytes() {\n java.lang.Object ref = contents_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n contents_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\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/* */ }", "@Override\n public byte[] getBytes() {\n int len = 0;\n List<byte[]> chunks = new ArrayList<>();\n for (RvtAoiMetadataKey tag : getTags()) {\n chunks.add(new byte[] {(byte) tag.getIdentifier()});\n len += 1;\n IRvtPoiAoiMetadataValue value = getField(tag);\n byte[] bytes = value.getBytes();\n byte[] lengthBytes = BerEncoder.encode(bytes.length);\n chunks.add(lengthBytes);\n len += lengthBytes.length;\n chunks.add(bytes);\n len += bytes.length;\n }\n return ArrayUtils.arrayFromChunks(chunks, len);\n }", "public byte[] toByteArray() throws Exception {\n int size = getSize();\n if (size == 0) {\n return null;\n }\n ByteArrayOutputStream byteStream = new ByteArrayOutputStream();\n CCompatibleOutputStream os = new CCompatibleOutputStream(byteStream);\n write(os);\n return byteStream.toByteArray();\n }", "public byte[] getByteArray()\n \t{\n \t\t// In some cases the array is bigger than the actual number\n \t\t// of valid bytes.\n \t\tint realByteLength = getLengthInBytes();\n \n \t\t// Currently the case is that the return from this\n \t\t// call only includes the valid bytes.\n \t\tif (value.length != realByteLength) {\n \t\t\tbyte[] data = new byte[realByteLength];\n \t\t\tSystem.arraycopy(value, 0, data, 0, realByteLength);\n \n \t\t\tvalue = data;\n \t\t}\n \n \t\treturn value;\n \t}", "public byte[] encodeAsBytes() {\n StringBuffer encoding = new StringBuffer();\n ListIterator it = this.headers.listIterator();\n \n while (it.hasNext()) {\n SIPHeader siphdr = (SIPHeader) it.next();\n if (! (siphdr instanceof ContentLength) )\n encoding.append(siphdr.encode());\n \n }\n \tencoding.append(contentLengthHeader.encode()).append(NEWLINE);\n \n byte[] retval = null;\n byte[] content = this.getRawContent();\n if (content != null) {\n // encoding.append(SIPHeaderNames.CONTENT_LENGTH +\n // COLON +\n // SP + content.length + NEWLINE);\n // encoding.append(NEWLINE);\n // Append the content\n \n byte[] msgarray = null;\n try {\n msgarray = encoding.toString().getBytes(\"UTF-8\");\n } catch (UnsupportedEncodingException ex) {\n InternalErrorHandler.handleException(ex);\n }\n \n retval = new byte[msgarray.length + content.length];\n System.arraycopy(msgarray,0,retval,0,msgarray.length);\n System.arraycopy(content,0,retval,msgarray.\n length,content.length);\n } else {\n // Message content does not exist.\n // encoding.append(SIPHeaderNames.CONTENT_LENGTH +\n // COLON + SP + '0' + NEWLINE);\n //encoding.append(NEWLINE);\n \n try {\n retval = encoding.toString().getBytes(\"UTF-8\");\n } catch (UnsupportedEncodingException ex) {\n InternalErrorHandler.handleException(ex);\n }\n }\n return retval;\n }", "public byte[] getContentData() {\n if(contentData!=null && contentData.length==0)\n return null;\n return contentData;\n }", "byte[] getEByteArray();", "public byte[] getAllBytes() {\n return nativeGetAllBytes(__nativePtr);\n }", "public byte[] toByteArray() \r\n {\r\n \tbyte newbuf[] = new byte[count];\r\n \tSystem.arraycopy(buf, 0, newbuf, 0, count);\r\n \treturn newbuf;\r\n }" ]
[ "0.76586336", "0.7591998", "0.7508495", "0.74393713", "0.743773", "0.74236965", "0.7385934", "0.73742974", "0.73742974", "0.7339922", "0.7261985", "0.7253481", "0.72469264", "0.72414786", "0.71832633", "0.7171747", "0.71360326", "0.71356666", "0.71287197", "0.7125314", "0.7125108", "0.7084619", "0.70597476", "0.70589733", "0.7036597", "0.70182395", "0.7009773", "0.70056087", "0.70039654", "0.70013297", "0.69595116", "0.695905", "0.6955165", "0.6924119", "0.6924119", "0.6924119", "0.6924119", "0.6911307", "0.6884725", "0.6867048", "0.68559444", "0.6843705", "0.6818302", "0.67638123", "0.6750452", "0.6706215", "0.66868466", "0.66868466", "0.6679432", "0.6679432", "0.66747993", "0.667382", "0.6673597", "0.667251", "0.667251", "0.6664498", "0.6664498", "0.6664498", "0.6664498", "0.66487896", "0.66487896", "0.6636442", "0.6636442", "0.66318846", "0.6625885", "0.6625885", "0.6625353", "0.66191226", "0.6615921", "0.6603011", "0.6599842", "0.6599842", "0.6591029", "0.658534", "0.6565108", "0.6551859", "0.6546118", "0.6545166", "0.65388983", "0.6519025", "0.6517919", "0.65162414", "0.6506213", "0.6498706", "0.64931655", "0.647402", "0.6469457", "0.6458172", "0.645103", "0.6440523", "0.64216715", "0.6420528", "0.6419035", "0.6410122", "0.6407054", "0.6400799", "0.6400765", "0.63915646", "0.6388454", "0.63838744" ]
0.70200783
25
Writes the id of this packet to a given output
public void writeId(ByteBuf output) { writeVarInt(output, id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void write(DataOutput output) throws IOException {\n output.writeShort(this.id());\n this._write(output);\n }", "@Override\r\n\tpublic void write(DataOutput out) throws IOException {\n\t\tWritableUtils.writeVInt(out, this.id);\r\n\t}", "@Override\n\tpublic void write(DataOutput out) throws IOException {\n\t\tid.write(out);\n\t\ttag.write(out);\n\t}", "public void write(DataOutput output) throws IOException {\n output.writeShort(this.data);\n }", "public void write(String id);", "@Override\n\tpublic void write(DataOutputStream dataOutStream) throws IOException {\n\t\tdataOutStream.writeLong(id);\n\t\tsuper.write(dataOutStream);\n\t}", "public void write(NetOutput out)\r\n/* 42: */ throws IOException\r\n/* 43: */ {\r\n/* 44:41 */ out.writeInt(this.entityId);\r\n/* 45:42 */ NetUtil.writeEntityMetadata(out, this.metadata);\r\n/* 46: */ }", "protected abstract void _write(DataOutput output) throws IOException;", "public abstract void write(NetOutput out) throws IOException;", "@Override\n\tpublic void write(DataOutput out) throws IOException {\n\t\t\n\t\tout.writeInt(id);\n\t\tout.writeUTF(date);\n\t\tout.writeUTF(pid);\n\t\tout.writeInt(amount);\n\t\tout.writeUTF(name);\n\t\tout.writeUTF(category_id);\n\t\tout.writeInt(price);\n\t\tout.writeUTF(flag);\n\t\t\n\t}", "public void writeFully(ByteBuf output) {\n\t\twriteId(output);\n\t\twriteBytes(output);\n\t}", "public void write(DataOutput output) throws IOException {\n output.writeUTF(this.data);\n }", "@Override\n\tpublic void serializeTo(DataOutputStream output) throws IOException\n\t{\n\t\toutput.writeLong(value);\n\t}", "@Override\n\tpublic void write(DataOutput dout) throws IOException {\n\t\tdout.writeLong(this.time);\n\t\tdout.writeInt(this.intVal);\n\t}", "public void pidWrite(double output) {\n set(output);\n }", "@Override\n public void writeTo(DataOutput dout) throws IOException {\n\n if (!isHeadless()) {\n dout.writeShort(getTransactionID());\n dout.writeShort(getProtocolID());\n dout.writeShort(getDataLength());\n }\n dout.writeByte(getUnitID());\n dout.writeByte(getFunctionCode());\n writeData(dout);\n }", "public abstract void write(DataOutput out) throws IOException;", "@Override\n\tpublic void write(DataOutput out) throws IOException {\n\t\ttimeInt.write(out);\n\t\tsum.write(out);\n\t\tIp.write(out);\n\t}", "@Override\r\n\tpublic void write(DataOutput out) throws IOException {\n\t\tout.writeShort(this.classType);\r\n\t\tout.writeShort(this.skinType);\r\n\t}", "public void writePacket(DataOutputStream dataOutputStream) throws IOException;", "public void write(DataOutput out) throws IOException {\n\t\t\n\t\tout.writeInt(this.id.length());\n\t\tout.write(this.id.getBytes());\n\t\t\n\t\tout.writeInt(this.sequence.length());\n\t\tout.write(this.sequence.getBytes());\n\t\t\n\t\tfor (Point3d p: this.structure) {\n\t\t\tif (p == null) {\n\t\t\t\tout.writeShort(Short.MAX_VALUE);\n\t\t\t\tout.writeShort(Short.MAX_VALUE);\n\t\t\t\tout.writeShort(Short.MAX_VALUE);\n\t\t\t} else {\n\t\t\t\tif (p.x*10 > Short.MAX_VALUE || p.y*10 > Short.MAX_VALUE || p.z*10 > Short.MAX_VALUE) {\n\t\t\t\t\tSystem.out.println(\"Overflow\");\n\t\t\t\t}\n\t\t\t\tout.writeShort((short)Math.round(p.x*10));\n\t\t\t\tout.writeShort((short)Math.round(p.y*10));\n\t\t\t\tout.writeShort((short)Math.round(p.z*10));\n\t\t\t}\n\t\t}\n\t}", "public abstract void writeToStream(java.io.DataOutputStream output) throws java.io.IOException;", "public interface Outputable {\n void onOutput(String output, int id);\n}", "@Override\n\tpublic void write(DataOutput out) throws IOException {\n\t\tout.writeInt(bytes);\n\t\tout.write(buffer);\t\t\n\t}", "@Override\n protected void usePIDOutput(double output) {\n liftmotor.pidWrite(output);\n\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=OUTPUT\n }", "@Override\n public void write(DataOutput out) throws IOException {\n out.writeInt(namenodes.size());\n for(long nn : namenodes.keySet()) {\n out.writeLong(nn);\n String hostname = namenodes.get(nn).getAddress().getHostAddress()+\":\"+namenodes.get(nn).getPort();\n Text.writeString(out,hostname);\n }\n }", "public void sendId() {\n for (int i = 0; i < numberOfPlayers; i++) {\n try {\n // s = ss.accept();\n oos = new ObjectOutputStream(sockets.get(i).getOutputStream());\n game.getOne().setID(0);\n game.getTwo().setID(1);\n oos.writeObject(i);\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }\n }", "int getPacketId();", "@Id\n @Output\n public String getId() {\n return id;\n }", "public void pidWrite(double output) {\n setTension(-output);//This is inverted so the PIDController moves the tension towards the setpoint.\n }", "public void write(DataOutput out) throws IOException {\r\n out.writeLong(this.getId());\r\n out.writeDouble(this.getLat());\r\n out.writeDouble(this.getLon());\r\n out.writeLong(this.getTimestamp());\r\n out.writeInt(this.getTag());\r\n out.writeInt(this.getTileNumber());\r\n out.writeUTF(this.getTiles());\r\n out.writeUTF(this.getOthers());\r\n out.writeUTF(this.getCandidateTags());\r\n\r\n out.writeUTF(this.getTileTag());\r\n \tout.writeLong(this.getUploadtime());\r\n \tout.writeLong(this.getServerId());\r\n \tout.writeUTF(this.getDevice());\r\n \tout.writeUTF(this.getDescription());\r\n \r\n }", "public void write(DataOutput dataOutput) throws IOException {\n }", "@Override\n\tpublic void write(DataOutput dataout) throws IOException {\n\t\tsports.write(dataout);\n\t\tcountry.write(dataout);\n\t\t\n\t\t\n\t}", "@Override\n public void writeIdFile(String idName) throws IOException {\n File file = new File(getOutputDir() + \"/log\");\n file.mkdirs();\n FileWriter fw = new FileWriter(getOutputDir() + \"/log/\" + idName);\n for (String s : idMap.keySet()) fw.write(idMap.get(s) + \" \" + s + \"\\n\");\n fw.close();\n }", "@Override\n public void encode(DataOutputStream ostream) throws IOException {\n\n ostream.writeInt(this.location.getWorldMapID());\n ostream.writeInt(this.location.getTownMapID());\n ostream.writeInt(this.location.getBuildingID());\n ostream.writeInt(this.location.getInteriorMapID());\n ostream.writeInt(this.location.getRoomID());\n ostream.writeInt(this.location.getTileMapID());\n\n ostream.writeInt(this.roomLinkIDs.length);\n\n for (int i = 0; i < this.roomLinkIDs.length; i++) {\n ostream.writeInt(this.roomLinkIDs[i]);\n ostream.writeBoolean(this.isOpened[i]);\n }\n }", "public void write(DataOutput out) throws IOException {\r\n out.writeByte(getTag());\r\n\r\n int size = buffer.length;\r\n\r\n out.writeInt(size);\r\n out.write(buffer, 0, size);\r\n }", "@Override\n public void write(DataOutput dataOutput) throws IOException {\n dataOutput.writeUTF(logTimestamp);\n dataOutput.writeUTF(logID);\n dataOutput.writeUTF(userNumber);\n dataOutput.writeUTF(menuName);\n }", "OutputStream read(String id, OutputStream output);", "public void notificar()\n\t{\n\n\t\tSocket socket;\n\t\tDataOutputStream out;\n\n\t\ttry\n\t\t{\n\t\t\tsocket = new Socket(host, port);\n\n\t\t\tout = new DataOutputStream(socket.getOutputStream());\n\n\t\t\tout.writeUTF(id);\n\n\t\t\tsocket.close();\n\n\t\t} catch (IOException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n\tpublic void write(DataOutput arg0) throws IOException {\n\t\targ0.writeUTF(country.toString());\n\t\targ0.writeUTF(tag.toString());\n\t}", "void output(OUT out) throws IOException;", "@Override\r\n\tpublic void write(DataOutput out) throws IOException {\n\t\tout.writeUTF(this.url);\r\n\t\tout.writeInt(this.counts);\r\n\t\t\r\n\t}", "@Override\n\tprotected void encode(ChannelHandlerContext ctx, Packet msg, ByteBuf out) throws Exception\n\t{\n\t\tout.writeShort(msg.getPacketID()); // Packet ID\n\t\t\n\t\ttry\n\t\t{\n\t\t\tmsg.encodePayload(out);\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t\tctx.fireExceptionCaught(e);\n\t\t}\n\t}", "@Override\r\n\tpublic String getPacketID() {\n\t\treturn packet_id;\r\n\t}", "@Override\n\t\t\tpublic void commandOutput(int id, String line) {\n\t\t\t\tRootTools.log(\"Command\", \"ID: \" + id + \", \" + line);\n\t\t\t\tMessage message = callback\n\t\t\t\t\t\t.obtainMessage(Constants.OUTPUT_UPDATED);\n\t\t\t\tmessage.obj = line;\n\t\t\t\tcallback.sendMessage(message);\n\n\t\t\t}", "public void echoID() throws IOException {\r\n\t\t//TODO implement using JSON\r\n\t}", "private void packetOut(PacketContext context, PortNumber portNumber) {\n context.treatmentBuilder().setOutput(portNumber);\n context.send();\n }", "public void write(DataOutputStream out) throws IOException;", "void writeTo(DataOutputStream dout) throws IOException {\r\n throw new Error(\"Method no longer available\");\r\n// dout.writeInt(commit_id);\r\n// dout.writeInt(table_id);\r\n// dout.writeInt(journal_entries);\r\n// dout.write(command_journal, 0, journal_entries);\r\n// int size = command_parameters.size();\r\n// dout.writeInt(size);\r\n// for (int i = 0; i < size; ++i) {\r\n// dout.writeInt(command_parameters.intAt(i));\r\n// }\r\n }", "private static byte[] serializePacket(String serverID, OutPacket packet)\n\t\t\tthrows IOException\n\t{\n\t\t// Header\n\t\tByteArrayDataOutput out = ByteStreams.newDataOutput();\n\t\tout.writeUTF(serverID);\n\t\tout.writeByte(Packets.getId(packet.getClass()));\n\n\t\t// Packet\n\t\tbyte[] raw = serializeRawPacket(packet);\n\t\tout.writeInt(raw.length);\n\t\tout.write(raw);\n\n\t\treturn out.toByteArray();\n\t}", "public void setOutput(int output) {\n Output = output;\n }", "@Override\n protected void writeAttributes(XMLStreamWriter out)\n throws XMLStreamException {\n super.writeAttributes(out);\n \n out.writeAttribute(\"nextID\", Integer.toString(nextID));\n }", "OutputStream read(String id);", "public void write(DataOutputStream out) throws IOException {\n final HashMap<NetworkIdentitySet, ArrayList<Key>> keysByIdent = Maps.newHashMap();\n for (Key key : mStats.keySet()) {\n ArrayList<Key> keys = keysByIdent.get(key.ident);\n if (keys == null) {\n keys = Lists.newArrayList();\n keysByIdent.put(key.ident, keys);\n }\n keys.add(key);\n }\n\n out.writeInt(FILE_MAGIC);\n out.writeInt(VERSION_UNIFIED_INIT);\n\n out.writeInt(keysByIdent.size());\n for (NetworkIdentitySet ident : keysByIdent.keySet()) {\n final ArrayList<Key> keys = keysByIdent.get(ident);\n ident.writeToStream(out);\n\n out.writeInt(keys.size());\n for (Key key : keys) {\n final NetworkStatsHistory history = mStats.get(key);\n out.writeInt(key.uid);\n out.writeInt(key.set);\n out.writeInt(key.tag);\n history.writeToStream(out);\n }\n }\n\n out.flush();\n }", "public static void write(OutputStream output, byte value) throws IOException {\n output.write(new byte[] { value });\n }", "public void writeId(final Object instance, final ObjectStreamWriter writer)\n {\n Objects.requireNonNull(instance);\n Objects.requireNonNull(writer);\n final String id = registry.get(instance);\n Objects.requireNonNull(id);\n writer.writeObject(id);\n }", "protected void writeData(DataOutput output) throws IOException {\n ByteArrayOutputStream bout = new ByteArrayOutputStream();\n ObjectOutputStream oos = new ObjectOutputStream(bout);\n oos.writeObject(returnValue);\n\n output.write(getOperationStatus());\n \n if (operationStatus != ProtocolOpcode.OPERATION_OK) {\n output.write(getException());\n } else {\n output.writeInt(bout.size());\n output.write(bout.toByteArray());\n }\n }", "public void write(DataOutputStream output) throws IOException {\r\n output.writeInt(matrixId);\r\n int size = partMetas.size();\r\n output.writeInt(size);\r\n for (Map.Entry<Integer, MatrixPartitionMeta> partEntry : partMetas.entrySet()) {\r\n partEntry.getValue().write(output);\r\n }\r\n }", "public void optionToWire(DNSOutput out) {\n out.writeByteArray(this.data);\n }", "public packetizer(int id){\n packet_num_sent = 0;\n last_packet_received = 0;\n packets_lost = 0;\n this.id = id;\n journey_time =0;\n packet_ack = 0;\n our_packs_lost = 0;\n }", "public abstract void writeData(DataOutput dout) throws IOException;", "void write(PacketConnection connection);", "public void setOutput(String output) { this.output = output; }", "private void write( String what ) {\n\ttry {\n\t output.write( what );\n\t} catch ( IOException e ) {\n\t e.printStackTrace();\n\t}\n }", "private void writeInt(DataOutputStream out, int n) throws IOException {\n int result = ((n & 0xFF) << 24) | ((n & 0xFF00) << 8) | ((n & 0xFF0000) >> 8) | ((n & 0xFF000000) >> 24);\n out.writeInt(result);\n }", "public void write(int b) throws IOException\n {\n this.out.write(b); // write the byte b to the Stream\n }", "@JsonCreator\r\n\tpublic ModbusInputOutputPort(@JsonProperty(\"id\") Integer id) {\r\n\t\tsuper(id);\r\n\t}", "public void write(DataOutput out) throws IOException {\n out.writeLong(upFlow);\n out.writeLong(downFlow);\n out.writeLong(sumFlow);\n }", "public static void write(\n\t\tBinaryDataOutput out,\n\t\tString collection,\n\t\tObject id,\n\t\tbyte[] chunk,\n\t\tint chunkOffset,\n\t\tint chunkLength\n\t)\n\t\tthrows IOException\n\t{\n\t\tout.writeString(collection);\n\t\tout.writeId(id);\n\t\tout.writeByteArray(chunk, chunkOffset, chunkLength);\n\t}", "@Override\n public void emitOutput() {\n }", "public void writeTo(ByteBuf out) {\n/* 77 */ if (this.value == null) {\n/* */ return;\n/* */ }\n/* 80 */ out.writeByte(this.value.byteValue());\n/* */ }", "private void writeObject(ObjectOutputStream out) throws IOException {\n\tout.defaultWriteObject();\n\tservID.writeBytes(out);\n }", "public void setOutput(Output output) {\n\t\tthis.output = output;\n\t}", "public interface Output {\n void writeAction(int transactionId, int actionId, int transactionRunCount);\n\n void writeWait(int transactionId, int actionId, int transactionRunCount);\n\n void writeTransactionRestart(int transactionId, int transactionRunCount);\n\n void writeFreeText(String s);\n\n void finish(BPlusTree tree, Order order);\n}", "@Override\n\tpublic void pidWrite(double output) {\n\t\t\n\t\toutput = turn;\n\t\t\n\t\tleftValue = stick + output;\n\t\trightValue = stick - output;\n\t\t\n\t\tthis.tankDrive(leftValue, rightValue);\n\t\t\n\n\t}", "@Override\n\tpublic void write(DataOutput arg0) throws IOException {\n\t\targ0.writeUTF(first);\n\t\targ0.writeUTF(second);\n\t}", "public void writeIDs() {\n try {\n FileOutputStream fileOut = new FileOutputStream(\"temp/ids.ser\");\n ObjectOutputStream out = new ObjectOutputStream(fileOut);\n out.writeObject(ids);\n out.close();\n fileOut.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "private void receiveId() throws Exception {\n\t\tint id = in.readInt();\n\t\t//intByteBuffer.clear();\n\t\t\n\t //if(numOfBytes < 0)\n\t // throw new Exception(\"Connection to server lost\");\n\t \n\t //if(numOfBytes < 4) {\n\t // System.err.println(\"Received only \" + numOfBytes + \" bytes in receiveId\");\n\t // return;\n\t //}\n\t \n\t GameActivity.getInstance().model().player().setId(id);\n\t \n\t System.out.println(\"id: \" + GameActivity.getInstance().model().player().id());\n\t}", "public final void rule__AstConnection__OutPortAssignment_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:23069:1: ( ( RULE_ID ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:23070:1: ( RULE_ID )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:23070:1: ( RULE_ID )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:23071:1: RULE_ID\n {\n before(grammarAccess.getAstConnectionAccess().getOutPortIDTerminalRuleCall_1_0()); \n match(input,RULE_ID,FOLLOW_RULE_ID_in_rule__AstConnection__OutPortAssignment_146234); \n after(grammarAccess.getAstConnectionAccess().getOutPortIDTerminalRuleCall_1_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 }", "@Override\n public void write(Data dataPacket) throws IOException {\n }", "@Override\n\tprotected void write(ObjectOutput out) throws IOException {\n\t\t\n\t}", "public void setOutput(String output) {\n this.output = output;\n }", "public final void rule__AstOutputPattern__PortAssignment_0_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:24688:1: ( ( ( RULE_ID ) ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:24689:1: ( ( RULE_ID ) )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:24689:1: ( ( RULE_ID ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:24690:1: ( RULE_ID )\n {\n before(grammarAccess.getAstOutputPatternAccess().getPortAstPortCrossReference_0_0_0()); \n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:24691:1: ( RULE_ID )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:24692:1: RULE_ID\n {\n before(grammarAccess.getAstOutputPatternAccess().getPortAstPortIDTerminalRuleCall_0_0_0_1()); \n match(input,RULE_ID,FOLLOW_RULE_ID_in_rule__AstOutputPattern__PortAssignment_0_049578); \n after(grammarAccess.getAstOutputPatternAccess().getPortAstPortIDTerminalRuleCall_0_0_0_1()); \n\n }\n\n after(grammarAccess.getAstOutputPatternAccess().getPortAstPortCrossReference_0_0_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 }", "public StreamWriter write(int value) {\r\n\t\tif(order() == ByteOrder.LITTLE_ENDIAN){\r\n\t\t\t_buffer[0] = (byte) (value & 0xFF);\r\n\t\t\t_buffer[1] = (byte) ((value & 0xFF00) >> 8);\r\n\t\t\t_buffer[2] = (byte) ((value & 0xFF0000) >> 16);\r\n\t\t\t_buffer[3] = (byte) ((value & 0xFF000000) >> 24);\r\n\t\t}else{\r\n\t\t\t_buffer[0] = (byte) (value >> 24);\r\n\t\t\t_buffer[1] = (byte) (value >> 16);\r\n\t\t\t_buffer[2] = (byte) (value >> 8);\r\n\t\t\t_buffer[3] = (byte) value;\r\n\t\t}\r\n\t\t_stream.write(_buffer,0,4);\r\n\t\treturn this;\r\n\t}", "void SendPacket(int packetIdentifier);", "@Override\n public void write(DataOutput output) throws IOException {\n output.writeUTF(getPartitionKey());\n output.writeUTF(getRowKey());\n output.writeLong(getTimestamp().getTime());\n // Write the rest of the properties.\n HashMap<String, EntityProperty> properties = getProperties();\n output.writeInt(properties.size());\n for (Map.Entry<String, EntityProperty> current : properties.entrySet()) {\n output.writeUTF(current.getKey());\n output.writeUTF(current.getValue().getValueAsString());\n }\n }", "@Override\npublic int sendToID(NodeIDType id, byte[] msg) throws IOException {\n\treturn 0;\n}", "public void write(DataOutput out) throws IOException {\n this.count.write(out);\n this.week.write(out);\n out.writeInt(hashTagList.size());\n\n for(int index=0;index<hashTagList.size();index++){\n // Serializing every values in list to send to next machine\n hashTagList.get(index).write(out); //write all the value of list\n }\n }", "void assignIDs(final BinaryPropertyListWriter out) {\n out.assignID(this);\n }", "public void writeBytes(ByteBuf output) {\n\t\tcheckNotNull(output, \"output cannot be null!\");\n\t\toutput.writeBytes(bytes);\n\t}", "public void send(Output output) {\n for (byte[] buff : buffers) {\n output.write(buff);\n }\n\n if(position > 0) {\n output.write(buffer, 0, position);\n }\n\n buffers.clear();\n position = 0;\n written = 0;\n }", "public static void serialize(Output out, Object any) {\n Serializer.serialize(out, null, null, null, any);\n }", "public void writeWay(long id, Way way) throws IOException;", "@Override\n\tpublic void write(DataOutput out) throws IOException {\n\t\tout.writeUTF(word);\n\t\tout.writeUTF(title);\n\t}", "public void writeData(final Socket id) throws IOException {\r\n final byte[] dataRep = getDataRep();\r\n COPSUtil.writeData(id, dataRep, dataRep.length);\r\n }", "@Override\n\tpublic void connectOutputWire(Wire connectingWire, String outputName) {\n\t\t\n\t}", "public void write_to_buffer(DataOutputStream out) throws IOException {\r\n //for (int i = 0; i < this.dimension; ++i)\r\n for (int i = 0; i < this.dimension * 2; ++i) {\r\n out.writeFloat(this.data[i]);\r\n }\r\n out.writeFloat(this.distanz);\r\n// out.write(this.PlaceId.getBytes());\r\n out.writeInt(this.getPlaceId());\r\n// System.out.println(\"heheheh +::\" + this.PlaceId.length);\r\n out.writeDouble(this.location[0]);\r\n out.writeDouble(this.location[1]);\r\n// System.out.println(\"heheheh +::\" +this.PlaceId.getBytes().length);\r\n }", "void write();", "public void setID() throws IOException;", "public void addOutput(String outputAssetId) throws Throwable {\n addRelationshipFrom(OUTPUT_RELATIONSHIP, outputAssetId);\n }" ]
[ "0.7492234", "0.73141205", "0.66576517", "0.65209466", "0.63001585", "0.6245195", "0.62327844", "0.6132936", "0.61165446", "0.60245705", "0.6006649", "0.5994605", "0.58999616", "0.5845127", "0.58365375", "0.5782362", "0.5749032", "0.57465416", "0.57095283", "0.5675854", "0.5668332", "0.56641906", "0.56401783", "0.56286824", "0.56180465", "0.55900645", "0.55849355", "0.557052", "0.5564753", "0.5564526", "0.5557971", "0.5537023", "0.55318445", "0.55246085", "0.55185807", "0.55097747", "0.5497921", "0.5450479", "0.5439712", "0.5414244", "0.540916", "0.5382221", "0.53674746", "0.5357098", "0.5356305", "0.5354052", "0.5353821", "0.53516364", "0.5344203", "0.5333973", "0.53277516", "0.53113955", "0.53071165", "0.5285488", "0.5281189", "0.52794695", "0.5271042", "0.5267672", "0.52541864", "0.52339417", "0.52273345", "0.5218234", "0.5217641", "0.52113456", "0.52049494", "0.51972526", "0.51895493", "0.5179644", "0.5177274", "0.5175535", "0.5159869", "0.515888", "0.51541173", "0.5136105", "0.51334405", "0.5132903", "0.5124668", "0.5120326", "0.5119351", "0.5116181", "0.5107625", "0.5103326", "0.5087307", "0.5084457", "0.5078643", "0.5071216", "0.5069459", "0.50657594", "0.5063255", "0.5053737", "0.50422865", "0.5039675", "0.5018519", "0.5009969", "0.49941912", "0.49918255", "0.4989238", "0.49879512", "0.4985942", "0.49824613" ]
0.82685447
0
Writes the contents of this packet to a given output
public void writeBytes(ByteBuf output) { checkNotNull(output, "output cannot be null!"); output.writeBytes(bytes); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void write(DataOutput output) throws IOException {\n output.writeUTF(this.data);\n }", "public abstract void write(NetOutput out) throws IOException;", "public void write(DataOutput output) throws IOException {\n output.writeShort(this.id());\n this._write(output);\n }", "protected abstract void _write(DataOutput output) throws IOException;", "public void write(DataOutput output) throws IOException {\n output.writeShort(this.data);\n }", "public abstract void write(DataOutput out) throws IOException;", "public abstract void writeToStream(java.io.DataOutputStream output) throws java.io.IOException;", "public void writeTo(ByteBuf out) {\n/* 77 */ if (this.value == null) {\n/* */ return;\n/* */ }\n/* 80 */ out.writeByte(this.value.byteValue());\n/* */ }", "public void write(DataOutput out) throws IOException {\r\n out.writeByte(getTag());\r\n\r\n int size = buffer.length;\r\n\r\n out.writeInt(size);\r\n out.write(buffer, 0, size);\r\n }", "void output(OUT out) throws IOException;", "public void writeFully(ByteBuf output) {\n\t\twriteId(output);\n\t\twriteBytes(output);\n\t}", "public void write(DataOutput dataOutput) throws IOException {\n }", "@Override\n\tpublic void write(DataOutput out) throws IOException {\n\t\tout.writeInt(bytes);\n\t\tout.write(buffer);\t\t\n\t}", "@Override\n public void writeTo(DataOutput dout) throws IOException {\n\n if (!isHeadless()) {\n dout.writeShort(getTransactionID());\n dout.writeShort(getProtocolID());\n dout.writeShort(getDataLength());\n }\n dout.writeByte(getUnitID());\n dout.writeByte(getFunctionCode());\n writeData(dout);\n }", "@Override\r\n\tpublic void write(DataOutput out) throws IOException {\n\t\tout.writeShort(this.classType);\r\n\t\tout.writeShort(this.skinType);\r\n\t}", "@Override\n\tpublic void write(DataOutput out) throws IOException {\n\t\ttimeInt.write(out);\n\t\tsum.write(out);\n\t\tIp.write(out);\n\t}", "@Override\n\tpublic void write(DataOutput dataout) throws IOException {\n\t\tsports.write(dataout);\n\t\tcountry.write(dataout);\n\t\t\n\t\t\n\t}", "public void write(DataOutputStream out) throws IOException;", "public void write(DataOutput out) throws IOException {\n\t\t\n\t\tout.writeInt(this.id.length());\n\t\tout.write(this.id.getBytes());\n\t\t\n\t\tout.writeInt(this.sequence.length());\n\t\tout.write(this.sequence.getBytes());\n\t\t\n\t\tfor (Point3d p: this.structure) {\n\t\t\tif (p == null) {\n\t\t\t\tout.writeShort(Short.MAX_VALUE);\n\t\t\t\tout.writeShort(Short.MAX_VALUE);\n\t\t\t\tout.writeShort(Short.MAX_VALUE);\n\t\t\t} else {\n\t\t\t\tif (p.x*10 > Short.MAX_VALUE || p.y*10 > Short.MAX_VALUE || p.z*10 > Short.MAX_VALUE) {\n\t\t\t\t\tSystem.out.println(\"Overflow\");\n\t\t\t\t}\n\t\t\t\tout.writeShort((short)Math.round(p.x*10));\n\t\t\t\tout.writeShort((short)Math.round(p.y*10));\n\t\t\t\tout.writeShort((short)Math.round(p.z*10));\n\t\t\t}\n\t\t}\n\t}", "public void writePacket(DataOutputStream dataOutputStream) throws IOException;", "public void optionToWire(DNSOutput out) {\n out.writeByteArray(this.data);\n }", "public void write(DataOutput out) throws IOException {\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n TIOStreamTransport trans = new TIOStreamTransport(baos);\n TBinaryProtocol oprot = new TBinaryProtocol(trans);\n try {\n v.write(oprot);\n byte[] array = baos.toByteArray();\n out.writeInt(array.length);\n out.write(array);\n } catch (TException e) {\n throw new IOException(e.toString());\n }\n }", "@Override\n\tpublic void write(DataOutput out) throws IOException {\n\t\tid.write(out);\n\t\ttag.write(out);\n\t}", "public void writeOutput()\n\t{\n\t\tSystem.out.println(this.toString());\n\t}", "public void writeOut(PrintWriter pw){}", "public abstract void write(PrintWriter out)\n throws IOException;", "public void write(DataOutput out) throws IOException {\r\n out.writeLong(this.getId());\r\n out.writeDouble(this.getLat());\r\n out.writeDouble(this.getLon());\r\n out.writeLong(this.getTimestamp());\r\n out.writeInt(this.getTag());\r\n out.writeInt(this.getTileNumber());\r\n out.writeUTF(this.getTiles());\r\n out.writeUTF(this.getOthers());\r\n out.writeUTF(this.getCandidateTags());\r\n\r\n out.writeUTF(this.getTileTag());\r\n \tout.writeLong(this.getUploadtime());\r\n \tout.writeLong(this.getServerId());\r\n \tout.writeUTF(this.getDevice());\r\n \tout.writeUTF(this.getDescription());\r\n \r\n }", "public static void write(OutputStream output, byte value) throws IOException {\n output.write(new byte[] { value });\n }", "void write(PacketConnection connection);", "public void write(File output) throws IOException {\n }", "protected void writeData(DataOutput output) throws IOException {\n ByteArrayOutputStream bout = new ByteArrayOutputStream();\n ObjectOutputStream oos = new ObjectOutputStream(bout);\n oos.writeObject(returnValue);\n\n output.write(getOperationStatus());\n \n if (operationStatus != ProtocolOpcode.OPERATION_OK) {\n output.write(getException());\n } else {\n output.writeInt(bout.size());\n output.write(bout.toByteArray());\n }\n }", "public void send(Output output) {\n for (byte[] buff : buffers) {\n output.write(buff);\n }\n\n if(position > 0) {\n output.write(buffer, 0, position);\n }\n\n buffers.clear();\n position = 0;\n written = 0;\n }", "public void write(NetOutput out)\r\n/* 42: */ throws IOException\r\n/* 43: */ {\r\n/* 44:41 */ out.writeInt(this.entityId);\r\n/* 45:42 */ NetUtil.writeEntityMetadata(out, this.metadata);\r\n/* 46: */ }", "private void write( String what ) {\n\ttry {\n\t output.write( what );\n\t} catch ( IOException e ) {\n\t e.printStackTrace();\n\t}\n }", "@Override\n\tpublic void write(OutStream outStream) {\n\t}", "@Override\n\tpublic void write(DataOutput arg0) throws IOException {\n\t\targ0.writeUTF(country.toString());\n\t\targ0.writeUTF(tag.toString());\n\t}", "@Override\r\n\tpublic void write(DataOutput out) throws IOException {\n\t\tWritableUtils.writeVInt(out, this.id);\r\n\t}", "public abstract void writeData(DataOutput dout) throws IOException;", "public void writeTo(OutputStream arg0) throws IOException {\n\t\t\r\n\t}", "public void write(DataOutput out) throws IOException {\n out.writeLong(upFlow);\n out.writeLong(downFlow);\n out.writeLong(sumFlow);\n }", "public void write(ArrayDataOutput out) throws FitsException, IOException;", "@Override\n\tpublic void write(DataOutput out) throws IOException {\n\t\tout.writeUTF(word);\n\t\tout.writeUTF(title);\n\t}", "void write();", "@Override\n public void emitOutput() {\n }", "@Override\r\n\tpublic void write(DataOutput out) throws IOException {\n\t\tout.writeUTF(this.url);\r\n\t\tout.writeInt(this.counts);\r\n\t\t\r\n\t}", "@Override\n\tprotected void write(ObjectOutput out) throws IOException {\n\t\t\n\t}", "public void write(DataOutputStream output) throws IOException {\r\n output.writeInt(matrixId);\r\n int size = partMetas.size();\r\n output.writeInt(size);\r\n for (Map.Entry<Integer, MatrixPartitionMeta> partEntry : partMetas.entrySet()) {\r\n partEntry.getValue().write(output);\r\n }\r\n }", "public void write(DataOutput out) throws IOException {\n\t\tout.writeFloat(rating);\n\t\tout.writeUTF(productTitle);\n\t\t\n\t}", "public void writeToFile(byte[] output) {\r\n try {\r\n file.seek(currOffset);\r\n file.write(output);\r\n currOffset += output.length;\r\n }\r\n catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }", "public void writeOutput() {\n\t\tint lineNumber = 0;\n\t\ttry {\n\t\t\tfor (; lineNumber < outputFileCont.size(); lineNumber++) {\n\t\t\t\t// pobranie i zapisanie kolejnego zapamiêtanego wiersza\n\t\t\t\tString line = (String) outputFileCont.get(lineNumber);\n\t\t\t\toutputBuffer.write(line);\n\t\t\t\t// zapisanie znaku nowego wiersza\n\t\t\t\toutputBuffer.newLine();\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"B³¹d zapisu do pliku: \" + outputFileName + \" \"\n\t\t\t\t\t+ e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\ttry {\n\t\t\t// niezbêdne\n\t\t\toutputBuffer.close();\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"B³¹d zamkniêcia pliku: \" + outputFileName\n\t\t\t\t\t+ \" \" + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\t\tSystem.out.println(\"Zapisano \"\n\t\t\t\t+ lineNumber\n\t\t\t\t+ \" wiersz\"\n\t\t\t\t+ (lineNumber == 1 ? \"\"\n\t\t\t\t\t\t: (lineNumber > 1 && lineNumber < 5 ? \"e\" : \"y\"))\n\t\t\t\t+ \" do pliku \" + outputFileName);\n\t}", "public static void serialize(Output out, Object any) {\n Serializer.serialize(out, null, null, null, any);\n }", "@Override\n public void write(Data dataPacket) throws IOException {\n }", "@Override\n protected void doWriteTo(StreamOutput out) throws IOException {\n }", "public void output(OutputStream out) {\n\t\tString encoding = null;\n\t\tif (getCodeSet() != null) {\n\t\t\tencoding = getCodeSet();\n\t\t} else {\n\t\t\t// By default use Big Endian Unicode.\n\t\t\t// In this way we will not loose any information.\n\t\t\tencoding = \"UTF-16BE\";\n\t\t}\n\n\t\ttry {\n\t\t\tout.write(createStartTag().getBytes(encoding));\n\n\t\t\tif (getFilterState())\n\t\t\t\tout.write(getFilter().process(getTagText()).getBytes(encoding));\n\t\t\telse\n\t\t\t\tout.write(getTagText().getBytes(encoding));\n\n\t\t\tif (getNeedClosingTag())\n\t\t\t\tout.write(createEndTag().getBytes(encoding));\n\n\t\t} catch (UnsupportedEncodingException uee) {\n\t\t\tuee.printStackTrace(new PrintWriter(out));\n\t\t} catch (IOException ioe) {\n\t\t\tioe.printStackTrace(new PrintWriter(out));\n\t\t}\n\t}", "public void sendOutput(String output) {\n\t\tthis.toSlave.println(output);\n\t}", "private void packetOut(PacketContext context, PortNumber portNumber) {\n context.treatmentBuilder().setOutput(portNumber);\n context.send();\n }", "void writeTo(DataOutputStream dout) throws IOException {\r\n throw new Error(\"Method no longer available\");\r\n// dout.writeInt(commit_id);\r\n// dout.writeInt(table_id);\r\n// dout.writeInt(journal_entries);\r\n// dout.write(command_journal, 0, journal_entries);\r\n// int size = command_parameters.size();\r\n// dout.writeInt(size);\r\n// for (int i = 0; i < size; ++i) {\r\n// dout.writeInt(command_parameters.intAt(i));\r\n// }\r\n }", "protected synchronized void writeOut(String data) {\n\t\t\n\t\tif(output != null)\n\t\t\toutput.println(data);\n\t\telse\n\t\t\tSystem.out.println(this.name + \" output not initialized\");\n\t}", "public void setOutputStream(OutputStream out) {\n this.output = out;\n }", "protected void writeData(OutputStream out) throws IOException {\r\n out.write(content);\r\n }", "public void write(PrintStream output) {\r\n writeInternal(finalRoot, output);\r\n }", "@Override\r\n\tpublic void write() {\n\t\t\r\n\t}", "public void setOutput(String output) { this.output = output; }", "public void write(OutputStream output) throws IOException {\n // First, we write the taglist\n Compression.multibyte_write(slexicinv.size(), output);\n\n for (int i = 0, limit = slexicinv.size(); i < limit; i++) {\n Compression.String_write(slexicinv.get(i).substring(1, 1 + slexicinv.get(i).length() - 2), output);\n }\n\n // Then we write the list of pairs\n // All numbers are biased + slexicinv.size() to be positive or zero\n int bias = slexicinv.size();\n\n Compression.multibyte_write(spairinv.size(), output);\n for (int i = 0, limit = spairinv.size(); i != limit; i++) {\n Compression.multibyte_write(spairinv.get(i).first + bias, output);\n Compression.multibyte_write(spairinv.get(i).second + bias, output);\n }\n }", "@Override\n\tpublic void write(DataOutput out) throws IOException {\n\t\t\n\t\tout.writeInt(id);\n\t\tout.writeUTF(date);\n\t\tout.writeUTF(pid);\n\t\tout.writeInt(amount);\n\t\tout.writeUTF(name);\n\t\tout.writeUTF(category_id);\n\t\tout.writeInt(price);\n\t\tout.writeUTF(flag);\n\t\t\n\t}", "public void write(ObjectOutput paramObjectOutput, boolean paramBoolean) throws IOException {\n/* 235 */ boolean bool = false;\n/* 236 */ if (paramObjectOutput instanceof ConnectionOutputStream) {\n/* 237 */ ConnectionOutputStream connectionOutputStream = (ConnectionOutputStream)paramObjectOutput;\n/* 238 */ bool = connectionOutputStream.isResultStream();\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 256 */ if (this.isLocal) {\n/* */ \n/* 258 */ ObjectEndpoint objectEndpoint = new ObjectEndpoint(this.id, this.ep.getInboundTransport());\n/* 259 */ Target target = ObjectTable.getTarget(objectEndpoint);\n/* */ \n/* 261 */ if (target != null) {\n/* 262 */ Remote remote = target.getImpl();\n/* 263 */ if (remote != null) {\n/* 264 */ connectionOutputStream.saveObject(remote);\n/* */ }\n/* */ } \n/* */ } else {\n/* 268 */ connectionOutputStream.saveObject(this);\n/* */ } \n/* */ } \n/* */ \n/* */ \n/* */ \n/* 274 */ if (paramBoolean) {\n/* 275 */ ((TCPEndpoint)this.ep).write(paramObjectOutput);\n/* */ } else {\n/* 277 */ ((TCPEndpoint)this.ep).writeHostPortFormat(paramObjectOutput);\n/* */ } \n/* 279 */ this.id.write(paramObjectOutput);\n/* 280 */ paramObjectOutput.writeBoolean(bool);\n/* */ }", "@Override\n\tpublic void write(DataOutput arg0) throws IOException {\n\t\targ0.writeUTF(first);\n\t\targ0.writeUTF(second);\n\t}", "public void printWrite(MessageBitSection packet, int channel);", "public interface Output {\n void writeAction(int transactionId, int actionId, int transactionRunCount);\n\n void writeWait(int transactionId, int actionId, int transactionRunCount);\n\n void writeTransactionRestart(int transactionId, int transactionRunCount);\n\n void writeFreeText(String s);\n\n void finish(BPlusTree tree, Order order);\n}", "@Override\n\t\tpublic void write(DataOutput arg0) throws IOException {\n\t\t\tk.write(arg0);\n\t\t\tv.write(arg0);\n\t\t}", "public void write(DataOutput out) throws IOException {\n this.count.write(out);\n this.week.write(out);\n out.writeInt(hashTagList.size());\n\n for(int index=0;index<hashTagList.size();index++){\n // Serializing every values in list to send to next machine\n hashTagList.get(index).write(out); //write all the value of list\n }\n }", "private static byte[] serializeRawPacket(OutPacket packet)\n\t\t\tthrows IOException\n\t{\n\t\tByteArrayDataOutput packetOut = ByteStreams.newDataOutput();\n\t\tpacket.write(packetOut);\n\t\treturn packetOut.toByteArray();\n\t}", "public void writeId(ByteBuf output) {\n\t\twriteVarInt(output, id);\n\t}", "public interface ObjectOutput extends DataOutput, AutoCloseable {\n /**\n * Write an object to the underlying storage or stream. The class that implements this interface\n * defines how the object is written.\n *\n * @param obj the object to be written\n * @exception IOException Any of the usual Input/Output related exceptions.\n */\n public void writeObject(Object obj) throws IOException;\n\n /**\n * Writes a byte. This method will block until the byte is actually written.\n * \n * @param b the byte\n * @exception IOException If an I/O error has occurred.\n */\n public void write(int b) throws IOException;\n\n /**\n * Writes an array of bytes. This method will block until the bytes are actually written.\n * \n * @param b the data to be written\n * @exception IOException If an I/O error has occurred.\n */\n public void write(byte b[]) throws IOException;\n\n /**\n * Writes a sub array of bytes.\n * \n * @param b the data to be written\n * @param off the start offset in the data\n * @param len the number of bytes that are written\n * @exception IOException If an I/O error has occurred.\n */\n public void write(byte b[], int off, int len) throws IOException;\n\n /**\n * Flushes the stream. This will write any buffered output bytes.\n * \n * @exception IOException If an I/O error has occurred.\n */\n public void flush() throws IOException;\n\n /**\n * Closes the stream. This method must be called to release any resources associated with the\n * stream.\n * \n * @exception IOException If an I/O error has occurred.\n */\n public void close() throws IOException;\n}", "@Override\n public void write(DataOutput out) throws IOException {\n out.writeInt(namenodes.size());\n for(long nn : namenodes.keySet()) {\n out.writeLong(nn);\n String hostname = namenodes.get(nn).getAddress().getHostAddress()+\":\"+namenodes.get(nn).getPort();\n Text.writeString(out,hostname);\n }\n }", "public void write(MappedByteBuffer outputBuf) throws IOException{\r\n outputBuf.putInt(fromstate);\r\n outputBuf.putInt(tostate);\r\n outputBuf.putDouble(rate);\r\n outputBuf.putInt(transition);\r\n outputBuf.putChar(isFromTangible);\r\n }", "@Override\n public void encode(DataOutputStream ostream) throws IOException {\n\n ostream.writeInt(this.location.getWorldMapID());\n ostream.writeInt(this.location.getTownMapID());\n ostream.writeInt(this.location.getBuildingID());\n ostream.writeInt(this.location.getInteriorMapID());\n ostream.writeInt(this.location.getRoomID());\n ostream.writeInt(this.location.getTileMapID());\n\n ostream.writeInt(this.roomLinkIDs.length);\n\n for (int i = 0; i < this.roomLinkIDs.length; i++) {\n ostream.writeInt(this.roomLinkIDs[i]);\n ostream.writeBoolean(this.isOpened[i]);\n }\n }", "public void write_to_buffer(DataOutputStream out) throws IOException {\r\n //for (int i = 0; i < this.dimension; ++i)\r\n for (int i = 0; i < this.dimension * 2; ++i) {\r\n out.writeFloat(this.data[i]);\r\n }\r\n out.writeFloat(this.distanz);\r\n// out.write(this.PlaceId.getBytes());\r\n out.writeInt(this.getPlaceId());\r\n// System.out.println(\"heheheh +::\" + this.PlaceId.length);\r\n out.writeDouble(this.location[0]);\r\n out.writeDouble(this.location[1]);\r\n// System.out.println(\"heheheh +::\" +this.PlaceId.getBytes().length);\r\n }", "public void setOutput(Output output) {\n\t\tthis.output = output;\n\t}", "@Override\n public void write() {\n\n }", "protected void writeWrite ()\n {\n stream.println (\" public void _write (org.omg.CORBA.portable.OutputStream o)\");\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 (\" o.write_string (value);\");\n\n else if (mType instanceof PrimitiveEntry)\n {\n String name = entry.name ();\n stream.println (\" \" + name + \" vb = new \" + name + \" (value);\");\n stream.println (\" \" + helperClass + \".write (o, vb);\");\n }\n\n else\n stream.println (\" \" + helperClass + \".write (o, value);\");\n }\n else\n stream.println (\" \" + helperClass + \".write (o, value);\");\n stream.println (\" }\");\n stream.println ();\n }", "public void write(OutputStream arg0) throws IOException {\n\n\t}", "void serialize(@NotNull OutputStream out) throws IOException;", "public void setOutput(String output) {\n this.output = output;\n }", "public void write(DataOutput out) throws IOException {\n\t\tfirstName.write(out);\n\t\tlastName.write(out);\n\t}", "void writeObject(OutputSerializer out) throws java.io.IOException;", "public void write(PrintStream output) {\r\n writeHelper(output, overallRoot);\r\n }", "public com.google.protobuf.ByteString\n getOutputBytes() {\n java.lang.Object ref = output_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n output_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "int writeTo(OutputStream out) throws IOException;", "TemplateOutputStream getOutput();", "public final void serialize(OutputStream out){\n }", "void write(Writer out) throws IOException;", "public void write(byte[] buffer);", "public void write(String command, boolean echoToOut) {\n if(true || outputStream != null) {\n try {\n if(echoToOut) {\n out(\"[\" + comport.getName() + \"] writing: '\" + command + \"'\");\n }\n outputStream.write(command.getBytes());\n } catch(Exception e) {\n\n }\n } else {\n out(\"[error] Zeppelin is not connected.\");\n }\n }", "public abstract void write (DataOutputStream outStream)\r\n throws IOException;", "@Override\n public void write(DataOutput output) throws IOException {\n output.writeUTF(getPartitionKey());\n output.writeUTF(getRowKey());\n output.writeLong(getTimestamp().getTime());\n // Write the rest of the properties.\n HashMap<String, EntityProperty> properties = getProperties();\n output.writeInt(properties.size());\n for (Map.Entry<String, EntityProperty> current : properties.entrySet()) {\n output.writeUTF(current.getKey());\n output.writeUTF(current.getValue().getValueAsString());\n }\n }", "public static void sendTestMessage (PrintWriter out) {\r\n\t\tString pack = \"0|test\";\r\n\t\tout.println(pack);\r\n\t}", "private void byteOut(){\n if(nrOfWrittenBytes >= 0){\n if(b==0xFF){\n // Delay 0xFF byte\n delFF = true;\n b=c>>>20;\n c &= 0xFFFFF;\n cT=7;\n }\n else if(c < 0x8000000){\n // Write delayed 0xFF bytes\n if (delFF) {\n out.write(0xFF);\n delFF = false;\n nrOfWrittenBytes++;\n }\n out.write(b);\n nrOfWrittenBytes++;\n b=c>>>19;\n c &= 0x7FFFF;\n cT=8;\n }\n else{\n b++;\n if(b==0xFF){\n // Delay 0xFF byte\n delFF = true;\n c &= 0x7FFFFFF;\n b=c>>>20;\n c &= 0xFFFFF;\n cT=7;\n }\n else{\n // Write delayed 0xFF bytes\n if (delFF) {\n out.write(0xFF);\n delFF = false;\n nrOfWrittenBytes++;\n }\n out.write(b);\n nrOfWrittenBytes++;\n b=((c>>>19)&0xFF);\n c &= 0x7FFFF;\n cT=8;\n }\n }\n }\n else {\n // NOTE: carry bit can never be set if the byte buffer was empty\n b= (c>>>19);\n c &= 0x7FFFF;\n cT=8;\n nrOfWrittenBytes++;\n }\n }", "public static void flush() {\n if (outputEnabled)\n out.flush();\n }", "protected void writeMessage(final OutputStream output, final boolean indent) throws IOException {\n flushBuffer();\n\n final ByteArrayOutputStream baos = new ByteArrayOutputStream();\n final DataOutputStream out = new DataOutputStream(baos);\n closeMessage();\n writeResponseLine(out);\n writeHeaders(out);\n writeBody(out, indent);\n out.flush();\n output.write(baos.toByteArray());\n output.flush();\n }" ]
[ "0.7265056", "0.7238072", "0.7190172", "0.70322204", "0.6932011", "0.67783564", "0.6735786", "0.65991056", "0.65292305", "0.6529001", "0.6513682", "0.6500087", "0.64528316", "0.64325213", "0.63870007", "0.63501024", "0.62857616", "0.6264574", "0.6243877", "0.6237906", "0.6235798", "0.62303895", "0.61099976", "0.60604656", "0.60569674", "0.60510737", "0.605011", "0.6008485", "0.59959096", "0.5985352", "0.59814596", "0.5977382", "0.59723663", "0.59456813", "0.59287524", "0.5923655", "0.5908317", "0.5901966", "0.5901916", "0.58999795", "0.5870701", "0.5830231", "0.5780632", "0.5766002", "0.5759", "0.57503814", "0.5743474", "0.5727238", "0.57152855", "0.5707636", "0.5697433", "0.5692861", "0.5666764", "0.5662811", "0.56612647", "0.5659475", "0.5648527", "0.5647816", "0.56321543", "0.5623818", "0.5623645", "0.56235987", "0.5617513", "0.5617351", "0.5612944", "0.56117624", "0.560609", "0.5603175", "0.56021374", "0.5597519", "0.55907106", "0.55667764", "0.5566071", "0.554429", "0.55394727", "0.5534718", "0.5529678", "0.55253905", "0.55217344", "0.55176526", "0.55165106", "0.55080795", "0.55058557", "0.5496448", "0.5489142", "0.5487931", "0.5487461", "0.5487293", "0.54840726", "0.547494", "0.54614305", "0.54585826", "0.54550165", "0.5453307", "0.5443039", "0.543382", "0.54330957", "0.5431042", "0.5419432", "0.53975743" ]
0.6685727
7
Fully writes the ID and contents of this packet to a given output
public void writeFully(ByteBuf output) { writeId(output); writeBytes(output); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void write(DataOutput output) throws IOException {\n output.writeShort(this.id());\n this._write(output);\n }", "public void writeId(ByteBuf output) {\n\t\twriteVarInt(output, id);\n\t}", "public void write(DataOutput output) throws IOException {\n output.writeShort(this.data);\n }", "@Override\r\n\tpublic void write(DataOutput out) throws IOException {\n\t\tWritableUtils.writeVInt(out, this.id);\r\n\t}", "@Override\n\tpublic void write(DataOutput out) throws IOException {\n\t\tid.write(out);\n\t\ttag.write(out);\n\t}", "@Override\n\tpublic void write(DataOutput out) throws IOException {\n\t\tout.writeInt(bytes);\n\t\tout.write(buffer);\t\t\n\t}", "public void write(NetOutput out)\r\n/* 42: */ throws IOException\r\n/* 43: */ {\r\n/* 44:41 */ out.writeInt(this.entityId);\r\n/* 45:42 */ NetUtil.writeEntityMetadata(out, this.metadata);\r\n/* 46: */ }", "protected abstract void _write(DataOutput output) throws IOException;", "public void write(DataOutput output) throws IOException {\n output.writeUTF(this.data);\n }", "public abstract void write(NetOutput out) throws IOException;", "@Override\n public void writeTo(DataOutput dout) throws IOException {\n\n if (!isHeadless()) {\n dout.writeShort(getTransactionID());\n dout.writeShort(getProtocolID());\n dout.writeShort(getDataLength());\n }\n dout.writeByte(getUnitID());\n dout.writeByte(getFunctionCode());\n writeData(dout);\n }", "@Override\n\tpublic void write(DataOutputStream dataOutStream) throws IOException {\n\t\tdataOutStream.writeLong(id);\n\t\tsuper.write(dataOutStream);\n\t}", "public abstract void writeToStream(java.io.DataOutputStream output) throws java.io.IOException;", "public abstract void write(DataOutput out) throws IOException;", "@Override\n\tpublic void write(DataOutput out) throws IOException {\n\t\t\n\t\tout.writeInt(id);\n\t\tout.writeUTF(date);\n\t\tout.writeUTF(pid);\n\t\tout.writeInt(amount);\n\t\tout.writeUTF(name);\n\t\tout.writeUTF(category_id);\n\t\tout.writeInt(price);\n\t\tout.writeUTF(flag);\n\t\t\n\t}", "@Override\r\n\tpublic void write(DataOutput out) throws IOException {\n\t\tout.writeShort(this.classType);\r\n\t\tout.writeShort(this.skinType);\r\n\t}", "public void write(DataOutputStream output) throws IOException {\r\n output.writeInt(matrixId);\r\n int size = partMetas.size();\r\n output.writeInt(size);\r\n for (Map.Entry<Integer, MatrixPartitionMeta> partEntry : partMetas.entrySet()) {\r\n partEntry.getValue().write(output);\r\n }\r\n }", "public void writeBytes(ByteBuf output) {\n\t\tcheckNotNull(output, \"output cannot be null!\");\n\t\toutput.writeBytes(bytes);\n\t}", "public void write(DataOutput out) throws IOException {\r\n out.writeByte(getTag());\r\n\r\n int size = buffer.length;\r\n\r\n out.writeInt(size);\r\n out.write(buffer, 0, size);\r\n }", "@Override\n\tpublic void write(DataOutput out) throws IOException {\n\t\ttimeInt.write(out);\n\t\tsum.write(out);\n\t\tIp.write(out);\n\t}", "public void write(DataOutput out) throws IOException {\n\t\t\n\t\tout.writeInt(this.id.length());\n\t\tout.write(this.id.getBytes());\n\t\t\n\t\tout.writeInt(this.sequence.length());\n\t\tout.write(this.sequence.getBytes());\n\t\t\n\t\tfor (Point3d p: this.structure) {\n\t\t\tif (p == null) {\n\t\t\t\tout.writeShort(Short.MAX_VALUE);\n\t\t\t\tout.writeShort(Short.MAX_VALUE);\n\t\t\t\tout.writeShort(Short.MAX_VALUE);\n\t\t\t} else {\n\t\t\t\tif (p.x*10 > Short.MAX_VALUE || p.y*10 > Short.MAX_VALUE || p.z*10 > Short.MAX_VALUE) {\n\t\t\t\t\tSystem.out.println(\"Overflow\");\n\t\t\t\t}\n\t\t\t\tout.writeShort((short)Math.round(p.x*10));\n\t\t\t\tout.writeShort((short)Math.round(p.y*10));\n\t\t\t\tout.writeShort((short)Math.round(p.z*10));\n\t\t\t}\n\t\t}\n\t}", "private void byteOut(){\n if(nrOfWrittenBytes >= 0){\n if(b==0xFF){\n // Delay 0xFF byte\n delFF = true;\n b=c>>>20;\n c &= 0xFFFFF;\n cT=7;\n }\n else if(c < 0x8000000){\n // Write delayed 0xFF bytes\n if (delFF) {\n out.write(0xFF);\n delFF = false;\n nrOfWrittenBytes++;\n }\n out.write(b);\n nrOfWrittenBytes++;\n b=c>>>19;\n c &= 0x7FFFF;\n cT=8;\n }\n else{\n b++;\n if(b==0xFF){\n // Delay 0xFF byte\n delFF = true;\n c &= 0x7FFFFFF;\n b=c>>>20;\n c &= 0xFFFFF;\n cT=7;\n }\n else{\n // Write delayed 0xFF bytes\n if (delFF) {\n out.write(0xFF);\n delFF = false;\n nrOfWrittenBytes++;\n }\n out.write(b);\n nrOfWrittenBytes++;\n b=((c>>>19)&0xFF);\n c &= 0x7FFFF;\n cT=8;\n }\n }\n }\n else {\n // NOTE: carry bit can never be set if the byte buffer was empty\n b= (c>>>19);\n c &= 0x7FFFF;\n cT=8;\n nrOfWrittenBytes++;\n }\n }", "public void send(Output output) {\n for (byte[] buff : buffers) {\n output.write(buff);\n }\n\n if(position > 0) {\n output.write(buffer, 0, position);\n }\n\n buffers.clear();\n position = 0;\n written = 0;\n }", "public void write(DataOutput dataOutput) throws IOException {\n }", "public void optionToWire(DNSOutput out) {\n out.writeByteArray(this.data);\n }", "@Override\n public void flush() throws IOException {\n byteBufferStreamOutput.flush();\n }", "public void write(DataOutput out) throws IOException {\r\n out.writeLong(this.getId());\r\n out.writeDouble(this.getLat());\r\n out.writeDouble(this.getLon());\r\n out.writeLong(this.getTimestamp());\r\n out.writeInt(this.getTag());\r\n out.writeInt(this.getTileNumber());\r\n out.writeUTF(this.getTiles());\r\n out.writeUTF(this.getOthers());\r\n out.writeUTF(this.getCandidateTags());\r\n\r\n out.writeUTF(this.getTileTag());\r\n \tout.writeLong(this.getUploadtime());\r\n \tout.writeLong(this.getServerId());\r\n \tout.writeUTF(this.getDevice());\r\n \tout.writeUTF(this.getDescription());\r\n \r\n }", "@Override\n\tpublic void serializeTo(DataOutputStream output) throws IOException\n\t{\n\t\toutput.writeLong(value);\n\t}", "private void dumpResponse(ByteArrayOutputStream out) {\n try {\n OutputStream file = new BufferedOutputStream(new FileOutputStream(new File(dumpDir, dataRspFile)));\n file.write(out.toByteArray());\n file.flush();\n file.close();\n } catch (Exception e) {\n try {\n String s = new String(out.toByteArray(), \"utf-8\");\n Log.i(TAG, \"----------------rsp data begin---------------------\");\n Log.i(TAG, s);\n Log.i(TAG, \"----------------rsp data end-----------------------\");\n } catch (Exception e2) {\n\n }\n }\n }", "public void flushPacket()\n throws IOException {\n\n // Nothing to do\n }", "public void writePacket(DataOutputStream dataOutputStream) throws IOException;", "@Override\r\n\tpublic void write(DataOutput out) throws IOException {\n\t\tout.writeUTF(this.url);\r\n\t\tout.writeInt(this.counts);\r\n\t\t\r\n\t}", "protected void writeData(DataOutput output) throws IOException {\n ByteArrayOutputStream bout = new ByteArrayOutputStream();\n ObjectOutputStream oos = new ObjectOutputStream(bout);\n oos.writeObject(returnValue);\n\n output.write(getOperationStatus());\n \n if (operationStatus != ProtocolOpcode.OPERATION_OK) {\n output.write(getException());\n } else {\n output.writeInt(bout.size());\n output.write(bout.toByteArray());\n }\n }", "public void write(DataOutputStream out) throws IOException;", "private static byte[] serializeRawPacket(OutPacket packet)\n\t\t\tthrows IOException\n\t{\n\t\tByteArrayDataOutput packetOut = ByteStreams.newDataOutput();\n\t\tpacket.write(packetOut);\n\t\treturn packetOut.toByteArray();\n\t}", "@Override\n\tpublic void write(DataOutput arg0) throws IOException {\n\t\targ0.writeUTF(country.toString());\n\t\targ0.writeUTF(tag.toString());\n\t}", "OutputStream read(String id, OutputStream output);", "public interface ObjectOutput extends DataOutput, AutoCloseable {\n /**\n * Write an object to the underlying storage or stream. The class that implements this interface\n * defines how the object is written.\n *\n * @param obj the object to be written\n * @exception IOException Any of the usual Input/Output related exceptions.\n */\n public void writeObject(Object obj) throws IOException;\n\n /**\n * Writes a byte. This method will block until the byte is actually written.\n * \n * @param b the byte\n * @exception IOException If an I/O error has occurred.\n */\n public void write(int b) throws IOException;\n\n /**\n * Writes an array of bytes. This method will block until the bytes are actually written.\n * \n * @param b the data to be written\n * @exception IOException If an I/O error has occurred.\n */\n public void write(byte b[]) throws IOException;\n\n /**\n * Writes a sub array of bytes.\n * \n * @param b the data to be written\n * @param off the start offset in the data\n * @param len the number of bytes that are written\n * @exception IOException If an I/O error has occurred.\n */\n public void write(byte b[], int off, int len) throws IOException;\n\n /**\n * Flushes the stream. This will write any buffered output bytes.\n * \n * @exception IOException If an I/O error has occurred.\n */\n public void flush() throws IOException;\n\n /**\n * Closes the stream. This method must be called to release any resources associated with the\n * stream.\n * \n * @exception IOException If an I/O error has occurred.\n */\n public void close() throws IOException;\n}", "protected void encode() {\n\t\tsuper.rawPkt = new byte[12 + this.PID.length*4];\n\t\t\n\t\tbyte[] someBytes = StaticProcs.uIntLongToByteWord(super.ssrc);\n\t\tSystem.arraycopy(someBytes, 0, super.rawPkt, 4, 4);\n\t\tsomeBytes = StaticProcs.uIntLongToByteWord(this.ssrcMediaSource);\n\t\tSystem.arraycopy(someBytes, 0, super.rawPkt, 8, 4);\n\t\t\n\t\t// Loop over Feedback Control Information (FCI) fields\n\t\tint curStart = 12;\n\t\tfor(int i=0; i < this.PID.length; i++ ) {\n\t\t\tsomeBytes = StaticProcs.uIntIntToByteWord(PID[i]);\n\t\t\tsuper.rawPkt[curStart++] = someBytes[0];\n\t\t\tsuper.rawPkt[curStart++] = someBytes[1];\n\t\t\tsomeBytes = StaticProcs.uIntIntToByteWord(BLP[i]);\n\t\t\tsuper.rawPkt[curStart++] = someBytes[0];\n\t\t\tsuper.rawPkt[curStart++] = someBytes[1];\n\t\t}\n\t\twriteHeaders();\n\t}", "@Override\n public void emitOutput() {\n }", "@Override\n public void write(DataOutput output) throws IOException {\n output.writeUTF(getPartitionKey());\n output.writeUTF(getRowKey());\n output.writeLong(getTimestamp().getTime());\n // Write the rest of the properties.\n HashMap<String, EntityProperty> properties = getProperties();\n output.writeInt(properties.size());\n for (Map.Entry<String, EntityProperty> current : properties.entrySet()) {\n output.writeUTF(current.getKey());\n output.writeUTF(current.getValue().getValueAsString());\n }\n }", "public void write(DataOutput out) throws IOException {\n out.writeLong(upFlow);\n out.writeLong(downFlow);\n out.writeLong(sumFlow);\n }", "public void writeTo(ByteBuf out) {\n/* 77 */ if (this.value == null) {\n/* */ return;\n/* */ }\n/* 80 */ out.writeByte(this.value.byteValue());\n/* */ }", "@Override\n public void encode(DataOutputStream ostream) throws IOException {\n\n ostream.writeInt(this.location.getWorldMapID());\n ostream.writeInt(this.location.getTownMapID());\n ostream.writeInt(this.location.getBuildingID());\n ostream.writeInt(this.location.getInteriorMapID());\n ostream.writeInt(this.location.getRoomID());\n ostream.writeInt(this.location.getTileMapID());\n\n ostream.writeInt(this.roomLinkIDs.length);\n\n for (int i = 0; i < this.roomLinkIDs.length; i++) {\n ostream.writeInt(this.roomLinkIDs[i]);\n ostream.writeBoolean(this.isOpened[i]);\n }\n }", "@Override\n public void write(DataOutput out) throws IOException {\n out.writeInt(namenodes.size());\n for(long nn : namenodes.keySet()) {\n out.writeLong(nn);\n String hostname = namenodes.get(nn).getAddress().getHostAddress()+\":\"+namenodes.get(nn).getPort();\n Text.writeString(out,hostname);\n }\n }", "@Override\n public void writeCompressed(DataOutput out) throws IOException {\n out.writeInt(length);\n out.write(array);\n }", "@Override\n public void write(DataOutput dataOutput) throws IOException {\n dataOutput.writeUTF(logTimestamp);\n dataOutput.writeUTF(logID);\n dataOutput.writeUTF(userNumber);\n dataOutput.writeUTF(menuName);\n }", "void writeTo(DataOutputStream dout) throws IOException {\r\n throw new Error(\"Method no longer available\");\r\n// dout.writeInt(commit_id);\r\n// dout.writeInt(table_id);\r\n// dout.writeInt(journal_entries);\r\n// dout.write(command_journal, 0, journal_entries);\r\n// int size = command_parameters.size();\r\n// dout.writeInt(size);\r\n// for (int i = 0; i < size; ++i) {\r\n// dout.writeInt(command_parameters.intAt(i));\r\n// }\r\n }", "public void close() {\n this.output.flush();\n this.output.close();\n }", "public void write_to_buffer(DataOutputStream out) throws IOException {\r\n //for (int i = 0; i < this.dimension; ++i)\r\n for (int i = 0; i < this.dimension * 2; ++i) {\r\n out.writeFloat(this.data[i]);\r\n }\r\n out.writeFloat(this.distanz);\r\n// out.write(this.PlaceId.getBytes());\r\n out.writeInt(this.getPlaceId());\r\n// System.out.println(\"heheheh +::\" + this.PlaceId.length);\r\n out.writeDouble(this.location[0]);\r\n out.writeDouble(this.location[1]);\r\n// System.out.println(\"heheheh +::\" +this.PlaceId.getBytes().length);\r\n }", "public static void write(\n\t\tBinaryDataOutput out,\n\t\tString collection,\n\t\tObject id,\n\t\tbyte[] chunk,\n\t\tint chunkOffset,\n\t\tint chunkLength\n\t)\n\t\tthrows IOException\n\t{\n\t\tout.writeString(collection);\n\t\tout.writeId(id);\n\t\tout.writeByteArray(chunk, chunkOffset, chunkLength);\n\t}", "public abstract void writeData(DataOutput dout) throws IOException;", "public void writePacketData(DataOutputStream par1DataOutputStream) throws IOException {\n\t\tpar1DataOutputStream.writeInt(this.entityID);\n\t\tpar1DataOutputStream.writeByte(this.field_73622_e);\n\t\tpar1DataOutputStream.writeInt(this.bedX);\n\t\tpar1DataOutputStream.writeByte(this.bedY);\n\t\tpar1DataOutputStream.writeInt(this.bedZ);\n\t}", "@Override\r\n\tpublic void write() {\n\t\t\r\n\t}", "public static void flush() {\n if (outputEnabled)\n out.flush();\n }", "@Override\n\tpublic void write(DataOutput dout) throws IOException {\n\t\tdout.writeLong(this.time);\n\t\tdout.writeInt(this.intVal);\n\t}", "protected void encode() {\t\n\t\tsuper.rawPkt = new byte[12 + this.pktData.length];\n\t\tbyte[] tmp = StaticProcs.uIntLongToByteWord(super.ssrc);\n\t\tSystem.arraycopy(tmp, 0, super.rawPkt, 4, 4);\n\t\tSystem.arraycopy(this.pktName, 0, super.rawPkt, 8, 4);\n\t\tSystem.arraycopy(this.pktData, 0, super.rawPkt, 12, this.pktData.length);\n\t\twriteHeaders();\n\t\t//System.out.println(\"ENCODE: \" + super.length + \" \" + rawPkt.length + \" \" + pktData.length);\n\t}", "public void write() {\r\n\t\ttry {\r\n\t\t\tDataOutputStream dat = new DataOutputStream(new FileOutputStream(signlink.getDirectory() + \"idk.dat\"));\r\n\t\t\tdat.writeShort(IdentityKit.cache.length);\r\n\t\t\tfor (IdentityKit idk : IdentityKit.cache) {\r\n\t\t\t\tif (idk.partId != -1) {\r\n\t\t\t\t\tdat.writeByte(1);\r\n\t\t\t\t\tdat.writeByte(idk.partId);\r\n\t\t\t\t}\r\n\t\t\t\tif (idk.models != null) {\r\n\t\t\t\t\tdat.writeByte(2);\r\n\t\t\t\t\tdat.writeByte(idk.models.length);\r\n\t\t\t\t\tfor (int index = 0; index < idk.models.length; index++) {\r\n\t\t\t\t\t\tdat.writeShort(idk.models[index]);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (idk.disableDisplay) {\r\n\t\t\t\t\tdat.writeByte(3);\r\n\t\t\t\t}\r\n\t\t\t\tif (idk.oldColors != null) {\r\n\t\t\t\t\tfor (int index = 0; index < idk.oldColors.length; index++) {\r\n\t\t\t\t\t\tdat.writeByte(40 + index);\r\n\t\t\t\t\t\tdat.writeShort(idk.oldColors[index]);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (idk.newColors != null) {\r\n\t\t\t\t\tfor (int index = 0; index < idk.newColors.length; index++) {\r\n\t\t\t\t\t\tdat.writeByte(50 + index);\r\n\t\t\t\t\t\tdat.writeShort(idk.newColors[index]);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (idk.dialogModels != null) {\r\n\t\t\t\t\tfor (int index = 0; index < idk.dialogModels.length; index++) {\r\n\t\t\t\t\t\tdat.writeByte(60 + index);\r\n\t\t\t\t\t\tdat.writeShort(idk.dialogModels[index]);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tdat.writeByte(0);\r\n\t\t\t}\r\n\t\t\tdat.close();\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "@Override\n\tpublic void write(DataOutput dataout) throws IOException {\n\t\tsports.write(dataout);\n\t\tcountry.write(dataout);\n\t\t\n\t\t\n\t}", "@Override\n\tpublic void write(DataOutput arg0) throws IOException {\n\t\targ0.writeUTF(first);\n\t\targ0.writeUTF(second);\n\t}", "public void write(DataOutputStream out) throws IOException {\n final HashMap<NetworkIdentitySet, ArrayList<Key>> keysByIdent = Maps.newHashMap();\n for (Key key : mStats.keySet()) {\n ArrayList<Key> keys = keysByIdent.get(key.ident);\n if (keys == null) {\n keys = Lists.newArrayList();\n keysByIdent.put(key.ident, keys);\n }\n keys.add(key);\n }\n\n out.writeInt(FILE_MAGIC);\n out.writeInt(VERSION_UNIFIED_INIT);\n\n out.writeInt(keysByIdent.size());\n for (NetworkIdentitySet ident : keysByIdent.keySet()) {\n final ArrayList<Key> keys = keysByIdent.get(ident);\n ident.writeToStream(out);\n\n out.writeInt(keys.size());\n for (Key key : keys) {\n final NetworkStatsHistory history = mStats.get(key);\n out.writeInt(key.uid);\n out.writeInt(key.set);\n out.writeInt(key.tag);\n history.writeToStream(out);\n }\n }\n\n out.flush();\n }", "void output(OUT out) throws IOException;", "@Override\n\tprotected void encode(ChannelHandlerContext ctx, Packet msg, ByteBuf out) throws Exception\n\t{\n\t\tout.writeShort(msg.getPacketID()); // Packet ID\n\t\t\n\t\ttry\n\t\t{\n\t\t\tmsg.encodePayload(out);\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t\tctx.fireExceptionCaught(e);\n\t\t}\n\t}", "public interface Output {\n void writeAction(int transactionId, int actionId, int transactionRunCount);\n\n void writeWait(int transactionId, int actionId, int transactionRunCount);\n\n void writeTransactionRestart(int transactionId, int transactionRunCount);\n\n void writeFreeText(String s);\n\n void finish(BPlusTree tree, Order order);\n}", "@Override\n\tprotected void write(ObjectOutput out) throws IOException {\n\t\t\n\t}", "public void writePacketData(PacketBuffer buf) throws IOException {\n buf.writeVarInt(this.entityId);\n buf.writeByte(this.effectId);\n buf.writeByte(this.amplifier);\n buf.writeVarInt(this.duration);\n buf.writeByte(this.flags);\n }", "@Override\n\tpublic void write(OutStream outStream) {\n\t}", "private void sendData() {\n final ByteBuf data = Unpooled.buffer();\n data.writeShort(input);\n data.writeShort(output);\n getCasing().sendData(getFace(), data, DATA_TYPE_UPDATE);\n }", "OutputStream read(String id);", "@Override\n public void write() {\n\n }", "public void write(DataOutput out) throws IOException {\n this.count.write(out);\n this.week.write(out);\n out.writeInt(hashTagList.size());\n\n for(int index=0;index<hashTagList.size();index++){\n // Serializing every values in list to send to next machine\n hashTagList.get(index).write(out); //write all the value of list\n }\n }", "@Override\n public void writeTo(StreamOutput out) throws IOException {\n assert sentFromLocalReroute == false;\n assert localRerouteInitiatedByNodeClient == false;\n out.writeString(targetAllocationID);\n out.writeVLong(primaryTerm);\n request.writeTo(out);\n }", "@Override\n public void write(Data dataPacket) throws IOException {\n }", "public void beginOutput() {\n this.currentState = states.OUTPUT;\n this.buildOutStack();\n this.setOutputMode(0);\n }", "public void write(DataOutput out) throws IOException {\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n TIOStreamTransport trans = new TIOStreamTransport(baos);\n TBinaryProtocol oprot = new TBinaryProtocol(trans);\n try {\n v.write(oprot);\n byte[] array = baos.toByteArray();\n out.writeInt(array.length);\n out.write(array);\n } catch (TException e) {\n throw new IOException(e.toString());\n }\n }", "public void writeToFile(byte[] output) {\r\n try {\r\n file.seek(currOffset);\r\n file.write(output);\r\n currOffset += output.length;\r\n }\r\n catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }", "@Override\n\tpublic void write(DataOutput out) throws IOException {\n\t\tout.writeUTF(word);\n\t\tout.writeUTF(title);\n\t}", "public void writeOutputDescription(HiveOutputDescription hod) {\n conf.set(getOutputDescriptionKey(), Writables.writeToEncodedStr(hod));\n }", "private static byte[] serializePacket(String serverID, OutPacket packet)\n\t\t\tthrows IOException\n\t{\n\t\t// Header\n\t\tByteArrayDataOutput out = ByteStreams.newDataOutput();\n\t\tout.writeUTF(serverID);\n\t\tout.writeByte(Packets.getId(packet.getClass()));\n\n\t\t// Packet\n\t\tbyte[] raw = serializeRawPacket(packet);\n\t\tout.writeInt(raw.length);\n\t\tout.write(raw);\n\n\t\treturn out.toByteArray();\n\t}", "public void mo43851a(DataOutputStream dout) throws IOException {\n dout.write(mo43856b().getBytes(\"UTF8\"));\n dout.writeShort(mo43862e().mo43835e());\n dout.writeShort(mo43860d().mo43833e());\n }", "public void writeOutput()\n\t{\n\t\tSystem.out.println(this.toString());\n\t}", "private void formWriteBegin() {\n\t\tsendData = new byte[4];\n\t\tsendData[0] = 0;\n\t\tsendData[1] = 4;\n\t\tsendData[2] = 0;\n\t\tsendData[3] = 0;\n\t\t\n\t\t// Now that the data has been set up, let's form the packet.\n\t\tsendPacket = new DatagramPacket(sendData, 4, receivePacket.getAddress(),\n\t\t\t\treceivePacket.getPort());\t\n\t}", "@Override\n\t\tpublic void write(DataOutput arg0) throws IOException {\n\t\t\tk.write(arg0);\n\t\t\tv.write(arg0);\n\t\t}", "public void writeThin(StreamOutput out) throws IOException {\n super.writeTo(out);\n out.writeVInt(bytes.length());\n }", "public void pidWrite(double output) {\n set(output);\n }", "private void writeLength( ObjectOutput out, int len ) throws IOException\n {\n\t\tif (len <= 31)\n\t\t{\n\t\t\tout.write((byte) (0x80 | (len & 0xff)));\n\t\t}\n\t\telse if (len <= 0xFFFF)\n\t\t{\n\t\t\tout.write((byte) 0xA0);\n\t\t\tout.writeShort((short) len);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tout.write((byte) 0xC0);\n\t\t\tout.writeInt(len);\n\n\t\t}\n }", "public final void writeData(OutputStream out) throws IOException {\n /* The length of icqData is needed early in the write process.\n\t\t * Write it now to an OutputStream and use that to calculate its size. */\n\t\tByteArrayOutputStream icqDataOut = new ByteArrayOutputStream();\n\t\twriteIcqData(icqDataOut);\n\n\t\tint hdrlen = 8; // The expected header length, not counting the length field itself.\n\t\tint primary = null != icqType ? icqType.getPrimary() : 0;\n\t\tint secondary = null != icqType ? icqType.getSecondary() : 0;\n\t\tif (0 != secondary) {\n hdrlen = 10;\n }\n\n ByteArrayOutputStream icqout = new ByteArrayOutputStream();\n int length = hdrlen + icqDataOut.size();\n LEBinaryTools.writeUShort(icqout, length);\n LEBinaryTools.writeUInt(icqout, icqUIN);\n\t\tLEBinaryTools.writeUShort(icqout, primary);\n LEBinaryTools.writeUShort(icqout, icqID);\n\t\tif (0 != secondary)\n LEBinaryTools.writeUShort(icqout, secondary);\n\n icqDataOut.writeTo(icqout);\n\n new Tlv(TYPE_ICQ_DATA, ByteBlock.wrap(icqout.toByteArray())).write(out);\n }", "private final void _writeNull()\n/* */ throws IOException\n/* */ {\n/* 1610 */ if (this._outputTail + 4 >= this._outputEnd) {\n/* 1611 */ _flushBuffer();\n/* */ }\n/* 1613 */ int ptr = this._outputTail;\n/* 1614 */ char[] buf = this._outputBuffer;\n/* 1615 */ buf[ptr] = 'n';\n/* 1616 */ buf[(++ptr)] = 'u';\n/* 1617 */ buf[(++ptr)] = 'l';\n/* 1618 */ buf[(++ptr)] = 'l';\n/* 1619 */ this._outputTail = (ptr + 1);\n/* */ }", "private void packetOut(PacketContext context, PortNumber portNumber) {\n context.treatmentBuilder().setOutput(portNumber);\n context.send();\n }", "public void generateAroundPlayer() {\n try {\n DataOutputStream dataOutputStream = new DataOutputStream(SixEngineClient.client.socket.getOutputStream());\n\n dataOutputStream.writeByte(5);\n dataOutputStream.writeInt(getChunkX());\n dataOutputStream.writeInt(getChunkY());\n dataOutputStream.writeInt(getChunkZ());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "void write();", "public void sendData(Datapacket packet){\n try {\n oos.flush();\n oos.reset();\n oos.writeObject(packet);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void write(ArrayDataOutput out) throws FitsException, IOException;", "@Override\n public void writeExternal(ObjectOutput out) throws IOException {\n out.writeLong(size);\n out.writeInt(batch);\n\n long remaining = size >> 3;\n int step = 1 << 15;\n w.position(0);\n while (remaining > 0) {\n ByteBuffer buffer = ByteBuffer.allocate(step);\n int byteSize = w.read(buffer);\n remaining -= byteSize;\n out.write(buffer.array());\n }\n }", "String write(byte[] content, boolean noPin);", "public static void writeEnd(\n\t\tBinaryDataOutput out,\n\t\tString collection,\n\t\tObject id\n\t)\n\t\tthrows IOException\n\t{\n\t\tout.writeString(collection);\n\t\tout.writeId(id);\n\t\tout.writeVInt(0);\n\t}", "public void writeTo(OutputStream arg0) throws IOException {\n\t\t\r\n\t}", "private void write(final byte[] entry) {\n try {\n out.write(entry);\n } catch (final IOException e) {\n throw new CommandExecutionException(\"unable to write entry data to output\"\n + \" stream.\", e);\n }\n }", "@Override\n public void write(DataOutput out) throws IOException {\n out.writeInt(numberOfIterations);\n }", "@Override\n protected void doWriteTo(StreamOutput out) throws IOException {\n }" ]
[ "0.7075551", "0.65570533", "0.64582396", "0.63070226", "0.6254557", "0.6181714", "0.6001622", "0.59900576", "0.59709275", "0.59622085", "0.5954389", "0.5886472", "0.5784879", "0.57106274", "0.56594825", "0.565684", "0.56525475", "0.56426716", "0.5627621", "0.5617594", "0.5593946", "0.5555398", "0.5525617", "0.55092645", "0.5508942", "0.5505109", "0.54882574", "0.5437822", "0.5432776", "0.54237545", "0.5421539", "0.5395266", "0.53893495", "0.5354383", "0.5343926", "0.53218657", "0.5320058", "0.5297906", "0.52967334", "0.5275062", "0.5262741", "0.52592266", "0.5251317", "0.523106", "0.52290845", "0.52268666", "0.5226315", "0.52165747", "0.5201243", "0.51953274", "0.5179853", "0.5179797", "0.51510704", "0.5148459", "0.5143523", "0.5129705", "0.51235235", "0.51235145", "0.51161224", "0.5111238", "0.50996053", "0.50938267", "0.5079401", "0.5055743", "0.504771", "0.50429577", "0.504012", "0.5028308", "0.50245786", "0.5019343", "0.50092363", "0.50034803", "0.4993298", "0.49789584", "0.4977193", "0.4971933", "0.4967511", "0.4966075", "0.4958218", "0.4947637", "0.49461848", "0.49444494", "0.49378595", "0.49236625", "0.49194616", "0.4913419", "0.49119642", "0.49015912", "0.4895553", "0.4887334", "0.48725706", "0.48620188", "0.48605785", "0.4860082", "0.4859406", "0.48496854", "0.48348352", "0.4832625", "0.4825582", "0.4823515" ]
0.7925104
0
Serializes this packet into a byte buffer
public ByteBuf serialize() { ByteBuf buffer = Unpooled.buffer(); writeFully(buffer); return buffer; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void serialize(ByteBuffer buf) {\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public final ByteBuffer serialize() {\n return this.b.asReadOnlyBuffer().order(this.b.order());\n }", "public byte[] serialize();", "public void write(byte[] buffer);", "public byte[] toBytes() {\n return toProtobuf().toByteArray();\n }", "public void writePacketData(PacketBuffer p_148840_1_) throws IOException\n {\n byte var2 = 0;\n\n if (this.func_149112_c())\n {\n var2 = (byte)(var2 | 1);\n }\n\n if (this.func_149106_d())\n {\n var2 = (byte)(var2 | 2);\n }\n\n if (this.func_149105_e())\n {\n var2 = (byte)(var2 | 4);\n }\n\n if (this.func_149103_f())\n {\n var2 = (byte)(var2 | 8);\n }\n\n p_148840_1_.writeByte(var2);\n p_148840_1_.writeFloat(this.field_149116_e);\n p_148840_1_.writeFloat(this.field_149114_f);\n }", "private static byte[] serializeRawPacket(OutPacket packet)\n\t\t\tthrows IOException\n\t{\n\t\tByteArrayDataOutput packetOut = ByteStreams.newDataOutput();\n\t\tpacket.write(packetOut);\n\t\treturn packetOut.toByteArray();\n\t}", "public void write(ByteBuffer buffer){\r\n\t\tbuffer.putInt(type.ordinal());\r\n\t\tbuffer.putInt(dataSize);\r\n\t\tbuffer.put(data);\r\n\t}", "private void serializeHeader(ByteBuffer buffer){\n buffer.putShort(msgType); //2B\n if(srcIP==null) srcIP=\"\";\n String srcIP_temp = srcIP;\n for(int i=0; i<15-srcIP.length(); i++) {\n srcIP_temp = srcIP_temp + \" \";\n }\n buffer.put(srcIP_temp.getBytes()); //15B\n buffer.putInt(srcPort); //4B\n buffer.putFloat(desCost); //4B\n\n String desIP_temp = desIP;\n for(int i=0; i<15-desIP.length(); i++) {\n desIP_temp = desIP_temp + \" \";\n }\n buffer.put(desIP_temp.getBytes()); //15B\n buffer.putInt(desPort);\n }", "public void writePacketData(PacketBuffer buf) throws IOException {\n buf.writeResourceLocation(this.field_244320_a);\n }", "public abstract ByteBuffer getPacket();", "@Override\n\tpublic void write(DataOutput out) throws IOException {\n\t\tout.writeInt(bytes);\n\t\tout.write(buffer);\t\t\n\t}", "public byte[] toBytes() {\n ByteArrayOutputStream os = new ByteArrayOutputStream();\n try {\n writeTo(os);\n } catch (IOException e) {e.printStackTrace();}\n return os.toByteArray();\n }", "void encode(ByteBuffer buffer, Message message);", "public byte[] marshall();", "public DataBuffer encode() {\n try {\n\n DataBuffer buffer = new DataBuffer();\n // length\n int length = Header.PROTOCOL_HEADER_LENGTH;\n if (mData != null) {\n length += mData.readableBytes();\n }\n buffer.writeInt(length);\n // header\n mHeader.setLength(length);\n buffer.writeDataBuffer(mHeader.encode(mHeader.getVersion()));\n // data\n buffer.writeDataBuffer(mData);\n\n return buffer;\n } catch (Exception e) {\n //logger.error(\"encode error!!!\", e);\n System.out.println(\"encode error!!\");\n throw new RuntimeException(\"encode error!!!\");\n }\n }", "com.google.protobuf.ByteString\n getToBytes();", "@Override\r\n\tpublic byte[] getBytes() {\n\t\treturn buffer.array();\r\n\t}", "public void getPackByte(DataPacket packet) {\n\t\t\tint limit = 10;\r\n\t\t\tint newFrameSep = 0x3c;\r\n\t\t\t// bytes avail = packet.getDataSize() - limit;\r\n\t\t\t// write(lbuf, limit, 32)\r\n\t\t\t// write(newFrame)\r\n\t\t\t// limit += 32;\r\n\t\t\t// check packet.getDataSize() - limit > 31\r\n\t\t\tbyte[] lbuf = new byte[packet.getDataSize()];\r\n\t\t\ttry {\r\n\t\t\tif ( packet.getDataSize() > 0)\r\n\r\n\t\t\t\tlbuf = packet.getDataAsArray();\r\n\t\t\t//first frame includes the 1 byte frame header whose value should be used \r\n\t\t\t// to write subsequent frame separators \r\n\r\n\r\n\t\t\t\t\tobuff.write(lbuf, limit, 32);\r\n\r\n\t\t\t\tlimit += 32;\r\n\t\t\t\r\n\t\t do {\r\n\r\n\t\t \t\t obuff.write(newFrameSep); \r\n\t\t\t\t\tobuff.write(lbuf, limit, 31);\r\n\t\t\t\t\tlimit += 31;\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\r\n\t\t \t \r\n\t\t } while (packet.getDataSize() - limit > 31);\t\t\t\t\t\t\t\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}", "public PacketBuilder putBytes(byte[] bytes) {\n\t\tbuffer.put(bytes);\n\t\treturn this;\n\t}", "public byte[] toBytes () {\n return toTuple().toBytes();\n }", "public void toBuffer(ByteBufWrapper paramhd)\r\n/* 48: */ {\r\n/* 49:55 */ paramhd.b(this.a);\r\n/* 50:56 */ paramhd.writeInt(this.b);\r\n/* 51:57 */ paramhd.writeInt(this.c);\r\n/* 52:58 */ paramhd.writeInt(this.d);\r\n/* 53:59 */ paramhd.writeByte(this.e);\r\n/* 54:60 */ paramhd.writeByte(this.f);\r\n/* 55:61 */ paramhd.writeBoolean(this.g);\r\n/* 56: */ }", "public byte[] toBytes()\n {\n String rep = sessionid + \"_\" + version + \"_\" + message;\n return rep.getBytes();\n }", "public void sendData(Datapacket packet){\n try {\n oos.flush();\n oos.reset();\n oos.writeObject(packet);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void writePacketData(PacketBuffer buf) throws IOException {\n buf.writeVarInt(this.entityId);\n buf.writeByte(this.effectId);\n buf.writeByte(this.amplifier);\n buf.writeVarInt(this.duration);\n buf.writeByte(this.flags);\n }", "public interface Packet {\n /**\n * Read body from byte buffer\n * @param bb \n * @throws java.lang.Exception \n */\n void readBody(ByteBuf bb, TranscoderContext context) throws Exception;\n \n /**\n * Write body to byte buffer\n * @param bb \n * @param context \n * @throws java.lang.Exception \n */\n void writeBody(ByteBuf bb, TranscoderContext context) throws Exception;\n \n /**\n * Calculate and return body size in bytes\n * @param context\n * @return \n */\n int calculateBodyLength(TranscoderContext context);\n \n /**\n * Calculate and set field with body length\n * @param context\n */\n void calculateAndSetBodyLength(TranscoderContext context);\n \n /**\n * Get body length from field\n * @return \n */\n int getBodyLength();\n\n /**\n * Get sequence number field value\n * @return \n */\n int getSequenceNumber();\n \n /**\n * Set sequence number field value\n * @param sequenceNumber \n */\n void setSequenceNumber(int sequenceNumber); \n}", "private ByteBuffer serialize() {\n ByteBuffer _locks = ByteableCollections.toByteBuffer(locks);\n ByteBuffer _writes = ByteableCollections\n .toByteBuffer(((Queue) limbo).getWrites());\n ByteBuffer bytes = ByteBuffer\n .allocate(4 + _locks.capacity() + _writes.capacity());\n bytes.putInt(_locks.capacity());\n bytes.put(_locks);\n bytes.put(_writes);\n bytes.rewind();\n return bytes;\n }", "byte[] serialize(Serializable object);", "private static byte[] serializePacket(String serverID, OutPacket packet)\n\t\t\tthrows IOException\n\t{\n\t\t// Header\n\t\tByteArrayDataOutput out = ByteStreams.newDataOutput();\n\t\tout.writeUTF(serverID);\n\t\tout.writeByte(Packets.getId(packet.getClass()));\n\n\t\t// Packet\n\t\tbyte[] raw = serializeRawPacket(packet);\n\t\tout.writeInt(raw.length);\n\t\tout.write(raw);\n\n\t\treturn out.toByteArray();\n\t}", "protected void encode() {\t\n\t\tsuper.rawPkt = new byte[12 + this.pktData.length];\n\t\tbyte[] tmp = StaticProcs.uIntLongToByteWord(super.ssrc);\n\t\tSystem.arraycopy(tmp, 0, super.rawPkt, 4, 4);\n\t\tSystem.arraycopy(this.pktName, 0, super.rawPkt, 8, 4);\n\t\tSystem.arraycopy(this.pktData, 0, super.rawPkt, 12, this.pktData.length);\n\t\twriteHeaders();\n\t\t//System.out.println(\"ENCODE: \" + super.length + \" \" + rawPkt.length + \" \" + pktData.length);\n\t}", "public void doPack() {\n this._sendData = new byte[1];\n this._sendData[0] = 1;\n }", "private byte[] packObject(ProtocolObject obj) {\n ByteArrayOutputStream bos = new ByteArrayOutputStream(37);\n for (int i = 0; i < 5; i++) {\n \t// write header bytes...\n \tbos.write(0);\n }\n packObject(obj, bos);\n return bos.toByteArray();\n }", "public void write(ByteBuffer buffer) throws IOException {\n _channel.write(buffer);\n }", "public abstract void write(byte[] b);", "public void writeTo(ChannelBuffer buf) {\n // Wire format:\n // <PID><port><host length><name length><host><name><is-stateless?>\n buf.writeInt(this.pid);\n buf.writeInt(this.port);\n buf.writeInt(this.hostBytes.length);\n buf.writeInt(this.nameBytes.length);\n buf.writeBytes(this.hostBytes);\n buf.writeBytes(this.nameBytes);\n buf.writeInt(this.isStateless ? 1 : 0);\n }", "@Override\n public void toBytes(ByteBuf buf) {\n ByteBufUtils.writeUTF8String(buf, modeResource);\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/* */ }", "public byte[] serialize() {\n try {\n ByteArrayOutputStream b = new ByteArrayOutputStream();\n ObjectOutputStream o = new ObjectOutputStream(b);\n o.writeObject(this);\n return b.toByteArray();\n } catch (IOException ioe) {\n return null;\n }\n }", "public byte[] serialize() { length 9 bits, each value == byte\n // info string\n final short scratch = (short) ((0x7f & this.type) << 9 | 0x1ff & this.length);\n final byte[] data = new byte[2 + this.length];\n final ByteBuffer bb = ByteBuffer.wrap(data);\n bb.putShort(scratch);\n if (this.value != null) {\n bb.put(this.value);\n }\n return data;\n }", "@Override\n public byte[] getBytes() throws IOException {\n byte[] marshalledBytes = null;\n\n ByteArrayOutputStream baOutStream = new ByteArrayOutputStream();\n DataOutputStream dOut = new DataOutputStream(baOutStream);\n\n dOut.writeInt(type);\n\n dOut.writeInt(ID);\n\n dOut.writeInt(totalPacketsSent);\n\n dOut.writeInt(totalPacketsRelayed);\n\n dOut.writeLong(sendSummation);\n\n dOut.writeInt(totalPacketsRcvd);\n\n dOut.writeLong(rcvSummation);\n\n dOut.flush();\n marshalledBytes = baOutStream.toByteArray();\n\n baOutStream.close();\n dOut.close();\n\n return marshalledBytes;\n }", "public MAVLinkPacket pack(){\n MAVLinkPacket packet = new MAVLinkPacket(MAVLINK_MSG_LENGTH);\n packet.sysid = 1;\n packet.compid = 1;\n packet.msgid = MAVLINK_MSG_ID_BATTERY_batterySTATUS;\n \n packet.payload.putInt(time_total);\n \n packet.payload.putInt(time_remaining);\n \n packet.payload.putByte(battery_remaining);\n \n packet.payload.putUnsignedByte(charge_state);\n \n return packet;\n }", "public abstract byte[] toByteArray();", "public abstract byte[] toByteArray();", "@Override\n\tpublic byte[] toBytes() {\n\t\treturn null;\n\t}", "public MAVLinkPacket pack(){\n MAVLinkPacket packet = new MAVLinkPacket(MAVLINK_MSG_LENGTH);\n packet.sysid = 255;\n packet.compid = 190;\n packet.msgid = MAVLINK_MSG_ID_GIMBAL_DEVICE_INFORMATION;\n \n packet.payload.putUnsignedInt(time_boot_ms);\n \n packet.payload.putUnsignedInt(firmware_version);\n \n packet.payload.putFloat(tilt_max);\n \n packet.payload.putFloat(tilt_min);\n \n packet.payload.putFloat(tilt_rate_max);\n \n packet.payload.putFloat(pan_max);\n \n packet.payload.putFloat(pan_min);\n \n packet.payload.putFloat(pan_rate_max);\n \n packet.payload.putUnsignedShort(cap_flags);\n \n \n for (int i = 0; i < vendor_name.length; i++) {\n packet.payload.putUnsignedByte(vendor_name[i]);\n }\n \n \n \n for (int i = 0; i < model_name.length; i++) {\n packet.payload.putUnsignedByte(model_name[i]);\n }\n \n \n return packet;\n }", "public abstract void readBytes(PacketBuffer buffer) throws IOException;", "public void encode( ByteBuffer byteBuffer, DhcpMessage message )\n {\n byteBuffer.put( message.getOp() );\n\n HardwareAddress hardwareAddress = message.getHardwareAddress();\n\n byteBuffer.put( ( byte ) ( null != hardwareAddress ? hardwareAddress.getType() : 0 ) );\n byteBuffer.put( ( byte ) ( null != hardwareAddress ? hardwareAddress.getLength() : 0 ) );\n byteBuffer.put( ( byte ) message.getHopCount() );\n byteBuffer.putInt( message.getTransactionId() );\n byteBuffer.putShort( ( short ) message.getSeconds() );\n byteBuffer.putShort( message.getFlags() );\n\n writeAddress( byteBuffer, message.getCurrentClientAddress() );\n writeAddress( byteBuffer, message.getAssignedClientAddress() );\n writeAddress( byteBuffer, message.getNextServerAddress() );\n writeAddress( byteBuffer, message.getRelayAgentAddress() );\n\n writeBytes( byteBuffer, ( null != hardwareAddress ? hardwareAddress.getAddress() : new byte[]\n {} ), 16 );\n\n writeString( byteBuffer, message.getServerHostname(), 64 );\n writeString( byteBuffer, message.getBootFileName(), 128 );\n\n OptionsField options = message.getOptions();\n\n // update message type option (if set)\n if ( null != message.getMessageType() )\n {\n options.add( new DhcpMessageType( message.getMessageType() ) );\n }\n\n encodeOptions( options, byteBuffer );\n }", "public Packet createPacket() {\n\t\treturn new Packet((ByteBuffer) buffer.flip());\n\t}", "@Override\n public void write(byte[] buf) throws IOException;", "@Override\n\tpublic boolean onSerialize(ByteBuffer buf) {\n\t\tif (buf.remaining() < 11)\n\t\t\treturn false;\n\t\t\n\t\t// message type goes here\n\t\t\n\t\t// [0] int : frameNum\n\t\tbuf.putInt(frameNum);\n\t\t// [4] short[3] : fX fY fZ\n\t\tbuf.putShort(fX);\n\t\tbuf.putShort(fY);\n\t\tbuf.putShort(fZ);\n\t\t// [10] byte : keyPress\n\t\tbuf.put(keyPress);\n\t\treturn true;\n\t}", "@Override\n public void write(Data dataPacket) throws IOException {\n }", "@Override\n\tpublic void toBytes(final ByteBuf buf) {\n\t\tbuf.writeLong(pos.toLong());\n\t\tbuf.writeBoolean(hasFacing);\n\n\t\tif (hasFacing) {\n\t\t\tbuf.writeByte(facing.getIndex());\n\t\t}\n\n\t\tByteBufUtils.writeUTF8String(buf, lockCode);\n\t}", "byte[] toByteArray() throws IOException {\n return ProtobufUtil.prependPBMagic(convert().toByteArray());\n }", "private byte[] outgoingBytes() {\n\t\t// collect all options outgoing bytes.\n\t\tfor (Option o : options) {\n\t\t\toutWriter.write(o.outgoing(outStream, this));\n\t\t}\n\t\t\n\t\t// Convert to byte[] array for writing.\n\t\tbyte[] out = outStream.toByteArray();\n\t\toutStream.reset();\n\t\t\n\t\treturn out;\n\t}", "public void write(byte[] buffer){\r\n\t\t\r\n\t\ttry{\r\n\t\t\toOutStream.write(buffer);\r\n\t\t}catch(IOException e){\r\n\t\t\tLog.e(TAG, \"exception during write\", e);\r\n\t\t}\r\n\t}", "@Override\n\tpublic String toString()\n\t{\n\t\treturn new String(bytes);\n\t}", "public byte[] getBytes() {\r\n \treturn toString().getBytes();\r\n }", "public com.google.protobuf.ByteString\n getToBytes() {\n Object ref = to_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n to_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getToBytes() {\n Object ref = to_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n to_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public ByteBuffer toBuffer() {\n return ByteBuffer.wrap(buf, 0, count);\n }", "public ByteBuffer buffer() { return bb; }", "public void write(DataOutput out) throws IOException {\r\n out.writeByte(getTag());\r\n\r\n int size = buffer.length;\r\n\r\n out.writeInt(size);\r\n out.write(buffer, 0, size);\r\n }", "public void writePacket(DataOutputStream dataOutputStream) throws IOException;", "public abstract byte[] toBytes() throws Exception;", "public void writeTo(ByteBuf out) {\n/* 77 */ if (this.value == null) {\n/* */ return;\n/* */ }\n/* 80 */ out.writeByte(this.value.byteValue());\n/* */ }", "public byte[] toBytes() {\n return PaddingUtil.pad(\n PADDING,\n ByteArrayListUtil.merge(\n contactPublicKeyBytes,\n haNonce,\n haCiphertext,\n additionalData\n )\n );\n }", "public byte[] getBytes()\r\n {\r\n return buf;\r\n }", "public byte[] toByteArray() {\n byte[] retour;\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\n try {\n ObjectOutputStream oos = new ObjectOutputStream(bos);\n oos.writeObject(new String(hostID));\n oos.writeObject(new Integer(hostAddresses.size()));\n for (int i=0; i<hostAddresses.size(); i++) oos.writeObject(new String(hostAddresses.elementAt(i).getNormalizedAddress()));\n oos.writeObject(new Integer(cpuLoad));\n oos.writeObject(new Integer(memoryLoad));\n oos.writeObject(new Integer(batteryLevel));\n oos.writeObject(new Integer(numberOfThreads));\n oos.writeObject(new Integer(numberOfBCs));\n oos.writeObject(new Integer(numberOfConnectors));\n oos.writeObject(new Integer(numberOfConnectorsNetworkInputs));\n oos.writeObject(new Integer(numberOfConnectorsNetworkOutputs));\n oos.writeObject(new Integer(networkPFInputTraffic));\n oos.writeObject(new Integer(networkPFOutputTraffic));\n oos.writeObject(new Integer(networkApplicationInputTraffic));\n oos.writeObject(new Integer(networkApplicationOutputTraffic));\n retour = bos.toByteArray();\n }\n catch (IOException ioe) {\n System.err.println(\"Error converting a host status to byte array\");\n retour = null;\n }\n return retour;\n }", "com.google.protobuf.ByteString\n getEncodedBytes();", "public abstract void encode(ByteBuffer buffer, int offset, int value);", "@Override\n\tpublic void encode() {\n\t\tbyte[] messageData = encodeStarsMessage(message);\n\t\t\n\t\t// Allocate\n byte[] res = new byte[10 + messageData.length];\n\n // Write members\n Util.write16(res, 0, unknownWord0);\n Util.write16(res, 2, unknownWord2);\n Util.write16(res, 4, senderId);\n Util.write16(res, 6, receiverId);\n Util.write16(res, 8, unknownWord8);\n \n // Copy in message data\n System.arraycopy(messageData, 0, res, 10, messageData.length);\n \n // Save as decrypted data\n setDecryptedData(res, res.length);\n\t}", "public void write_to_buffer(byte[] buffer) throws IOException {\r\n ByteArrayOutputStream byte_out = new ByteArrayOutputStream(buffer.length);\r\n DataOutputStream out = new DataOutputStream(byte_out);\r\n\r\n write_to_buffer(out);\r\n\r\n byte[] bytes = byte_out.toByteArray();\r\n for (int i = 0; i < buffer.length; ++i) {\r\n buffer[i] = bytes[i];\r\n }\r\n\r\n out.close();\r\n byte_out.close();\r\n }", "public void doPack() {\n if (this._sendData == null) {\n this._sendData = new byte[26];\n }\n System.arraycopy(BytesUtil.getBytes(this.mLongtitue), 0, this._sendData, 0, 8);\n System.arraycopy(BytesUtil.getBytes(this.mLantitue), 0, this._sendData, 8, 8);\n System.arraycopy(BytesUtil.getBytes(this.mNorthSpeed), 0, this._sendData, 16, 4);\n System.arraycopy(BytesUtil.getBytes(this.mEastSpeed), 0, this._sendData, 20, 4);\n System.arraycopy(BytesUtil.getBytes(this.mAccuracy), 0, this._sendData, 24, 2);\n }", "public void write(ByteBuffer b) throws IOException {\n raos.write(b);\n }", "protected void writeToPacket(NBTTagCompound nbt) {\n }", "public byte[] getBytes() {\n return baos.toByteArray();\n }", "@Override\n\tprotected void encode(ChannelHandlerContext ctx, RPCResponse msg, ByteBuf out) throws Exception {\n\t\tbyte[] data = SerializationUtils.serialize(msg);\n\t\tout.writeInt(data.length);\n\t\tout.writeBytes( data );\n\t}", "com.google.protobuf.ByteString\n getSerBytes();", "public void bufferPacket(UtpTimestampedPacketDTO pkt) throws IOException {\r\n\t\tint sequenceNumber = pkt.utpPacket().getSequenceNumber() & 0xFFFF;\r\n\t\tint position = sequenceNumber - expectedSequenceNumber;\r\n\t\tdebug_lastSeqNumber = sequenceNumber;\r\n\t\tif (position < 0) {\r\n\t\t\tposition = mapOverflowPosition(sequenceNumber);\r\n\t\t}\r\n\t\tdebug_lastPosition = position;\r\n\t\telementCount++;\r\n\t\ttry {\r\n\t\t\tbuffer[position] = pkt;\t\t\t\r\n\t\t} catch (ArrayIndexOutOfBoundsException ioobe) {\r\n\t\t\tlog.error(\"seq, exp: \" + sequenceNumber + \" \" + expectedSequenceNumber + \" \");\r\n\t\t\tioobe.printStackTrace();\r\n\r\n\t\t\tdumpBuffer(\"oob: \" + ioobe.getMessage());\r\n\t\t\tthrow new IOException();\r\n\t\t}\r\n\r\n\t}", "public void doPack() {\n this._sendData = new byte[2];\n this._sendData[0] = 1;\n this._sendData[1] = (byte) (this.iOIndex & 15);\n }", "@Override\r\n\tpublic byte[] getByte() throws Exception {\n\t\tbyte[] marshalledBytes = null;\r\n\t\tByteArrayOutputStream baOutputStream = new ByteArrayOutputStream();\r\n\t\tDataOutputStream dout = new DataOutputStream(new BufferedOutputStream(\r\n\t\t\t\tbaOutputStream));\r\n\t\tdout.write(getType());\r\n\t\tInetAddress localAddress = node.serverSocketForSending.getInetAddress()\r\n\t\t\t\t.getLocalHost();\r\n\t\tint localPortNumber = node.serverSocketForSending.getLocalPort();\r\n\t\tbyte[] byteLocalIP = localAddress.getAddress();\r\n\t\tbyte addressLength = (byte) byteLocalIP.length;\r\n\t\tdout.write(addressLength);\r\n\t\tdout.write(byteLocalIP);\r\n\t\tdout.writeInt(localPortNumber);\r\n\t\tdout.writeInt(node.nodeID);\r\n\t\tdout.flush();\r\n\t\tmarshalledBytes = baOutputStream.toByteArray();\r\n\t\tbaOutputStream.close();\r\n\t\tdout.close();\r\n\r\n\t\treturn marshalledBytes;\r\n\t}", "public byte[] serialize() {\n int size = distanceVectors.size();\n ByteBuffer buffer = ByteBuffer.allocate(46 * size + headerSize);\n serializeHeader(buffer);\n if(distanceVectors!=null) {\n for (Map.Entry<String, DistanceInfo> entry : distanceVectors.entrySet()) {\n String destination = entry.getKey();\n float cost = entry.getValue().cost;\n String firsHop = entry.getValue().firstHop;\n\n String add1 = \"\";\n String add2 = \"\";\n for (int i = 0; i < 21 - destination.length(); i++) {\n add1 += \" \";\n }\n for (int i = 0; i < 21 - firsHop.length(); i++) {\n add2 += \" \";\n }\n\n destination = destination + add1;\n firsHop = firsHop + add2;\n\n buffer.put(destination.getBytes());\n buffer.putFloat(cost);\n buffer.put(firsHop.getBytes());\n }\n }\n return buffer.array();\n }" ]
[ "0.6810859", "0.6589557", "0.6589557", "0.6589557", "0.6589557", "0.6589557", "0.6589557", "0.6589557", "0.6589557", "0.6589557", "0.6589557", "0.6589557", "0.6589557", "0.6589557", "0.6589557", "0.6589557", "0.6589557", "0.6589557", "0.6589557", "0.65632015", "0.6403978", "0.63711786", "0.6353345", "0.6176902", "0.6166923", "0.6114595", "0.6100678", "0.6030328", "0.60150635", "0.59536093", "0.59267664", "0.59010607", "0.5895726", "0.5891022", "0.58890635", "0.58652997", "0.5842305", "0.5819919", "0.5809492", "0.58072335", "0.5803319", "0.5781819", "0.5769965", "0.57452434", "0.5728975", "0.57063293", "0.5698977", "0.56943613", "0.568659", "0.56818295", "0.56807595", "0.5627448", "0.5620762", "0.561641", "0.56137294", "0.5604544", "0.55812246", "0.55708784", "0.5567794", "0.5566534", "0.5566534", "0.556543", "0.55407214", "0.552991", "0.5528567", "0.551654", "0.55099094", "0.55095035", "0.550679", "0.5505947", "0.5476696", "0.54747534", "0.54623795", "0.54504895", "0.543442", "0.5434225", "0.54320335", "0.5417745", "0.5406781", "0.54066527", "0.54006094", "0.5393365", "0.5391004", "0.53899974", "0.53784865", "0.5371292", "0.53712076", "0.5370969", "0.5368763", "0.5364791", "0.53629476", "0.5360118", "0.5359697", "0.53487766", "0.53483534", "0.5347236", "0.5344141", "0.5342097", "0.53391033", "0.5337732" ]
0.6744588
1
Creates a WirePacket from an existing PacketContainer
public static WirePacket fromPacket(PacketContainer packet) { checkNotNull(packet, "packet cannot be null!"); int id = packet.getType().getCurrentId(); ByteBuf buffer = PacketContainer.createPacketBuffer(); Method write = MinecraftMethods.getPacketWriteByteBufMethod(); try { write.invoke(packet.getHandle(), buffer); } catch (ReflectiveOperationException ex) { throw new RuntimeException("Failed to serialize packet contents.", ex); } return new WirePacket(id, getBytes(buffer)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Packet createPacket() {\n\t\treturn new Packet((ByteBuffer) buffer.flip());\n\t}", "public static WirePacket fromPacket(Object packet) {\n\t\tcheckNotNull(packet, \"packet cannot be null!\");\n\t\tcheckArgument(MinecraftReflection.isPacketClass(packet), \"packet must be a Minecraft packet\");\n\n\t\tPacketType type = PacketType.fromClass(packet.getClass());\n\t\tint id = type.getCurrentId();\n\n\t\tByteBuf buffer = PacketContainer.createPacketBuffer();\n\t\tMethod write = MinecraftMethods.getPacketWriteByteBufMethod();\n\n\t\ttry {\n\t\t\twrite.invoke(packet, buffer);\n\t\t} catch (ReflectiveOperationException ex) {\n\t\t\tthrow new RuntimeException(\"Failed to serialize packet contents.\", ex);\n\t\t}\n\n\t\treturn new WirePacket(id, getBytes(buffer));\n\t}", "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 }", "protected abstract void createPacketData();", "private void makePacket() throws PacketMappingNotFoundException {\r\n\t\tfinal PacketIdMapping mapping = mapCon.getMappingFor(packetId); //Mapping for id\r\n\t\tif(mapping == null)\r\n\t\t\tthrow new PacketMappingNotFoundException(\"mapping not found for id while constructing packet\", packetId);\r\n\t\tfinal Packet newPacket = mapping.getNewInstance(); //make a packet\r\n\t\tfinal ReadableArrayData packetData = new ReadableArrayData(tempData, false);\r\n\t\tnewPacket.readData(packetData); //read the packet data\r\n\t\tfinishedPacketReceiver.accept(newPacket); //send the packet to the connection\r\n\t}", "public Packet() {\n\t}", "public interface TextPacketCreator {\n\n\t/**\n\t * \n\t * @param bytes the characters to read from\n\t * @return An empty collection, or if it can be read, a collection of {@link Packet}s\n\t */\n\tCollection<? extends Packet> add(char[] bytes) throws PacketCreationException;\n\t\n}", "public Packet(Packet packetIn) {\n this.id = packetIn.getId();\n this.yCoordinate = packetIn.getyCoordinate();\n this.xCoordinate = packetIn.getxCoordinate();\n this.previousHop = packetIn.getPreviousHop();\n this.sequenceNumber = packetIn.getSequenceNumber();\n this.speed = packetIn.getSpeed();\n this.sourceNode = packetIn.getSourceNode();\n this.packetType = packetIn.getPacketType();\n this.portNumber = packetIn.getPortNumber();\n this.idTo = packetIn.getIdTo();\n this.packetType = packetIn.getPacketType();\n }", "RS3PacketBuilder buildPacket(T node);", "private static DatagramPacket createPacket(byte[] data, SocketAddress remote) {\r\n\t\tDatagramPacket packet = new DatagramPacket(data, data.length, remote);\r\n\t\treturn packet;\r\n\t}", "public static NetPacket fromStringToPacket(String s) {\r\n\t\tSystem.out.println(s);\r\n\t\tString[] allContent = s.split(PACKET_SEPARATOR);\r\n\t\tString[] c = new String[allContent.length - 3];\r\n\t\tfor (int i = 0; i < allContent.length - 3; i++) {\r\n\t\t\tc[i] = allContent[i+3];\r\n\t\t}\r\n\t\tint sender = new Integer(allContent[0]);\r\n\t\tint packet = new Integer(allContent[1]);\r\n\t\tString t = allContent[2];\r\n\t\tNetPacket n = new NetPacket(sender, packet, t, c);\r\n\t\treturn n;\r\n\t}", "public abstract Packet create(final int[] data,\n final int identifier);", "@Override\n public PacketCustomPayload decode(PacketBuffer buffer) throws IOException {\n PacketCustomPayload packet = new PacketCustomPayload();\n return packet;\n }", "public Packet(PacketId packetId, String message)\n {\n this.packetId = packetId;\n this.message = message;\n\n }", "public static byte[] createPacket(byte[] data) {\r\n byte[] header = createHeader(seqNo);\r\n byte[] packet = new byte[data.length + header.length]; // data + header\r\n System.arraycopy(header, 0, packet, 0, header.length);\r\n System.arraycopy(data, 0, packet, header.length, data.length);\r\n seqNo = seqNo + 1;\r\n return packet;\r\n }", "public static OldCalicoPacket getPacket(int com, Object... params)\n\t{\n\t\tint size = getSizeOfPacket(params) + 4;\n\t\tOldCalicoPacket p = new OldCalicoPacket(com, size);\n\t\t\n\t\t//long start = System.nanoTime();\n\t\t\n\t\tfor(int i=0;i<params.length;i++)\n\t\t{\n\t\t\tif ( params[i] instanceof Long )\n\t\t\t{\n\t\t\t\tp.putLong( ((Long) params[i]).longValue() );\n\t\t\t}\n\t\t\telse if( params[i] instanceof Integer)\n\t\t\t{\n\t\t\t\tp.putInt( ((Integer)params[i]).intValue() );\n\t\t\t}\n\t\t\telse if ( params[i] instanceof String )\n\t\t\t{\n\t\t\t\tp.putString( (String) params[i] );\n\t\t\t}\n\t\t\telse if ( params[i] instanceof Float )\n\t\t\t{\n\t\t\t\tp.putFloat( ((Float)params[i]).floatValue() );\n\t\t\t}\n\t\t\telse if ( params[i] instanceof Double )\n\t\t\t{\n\t\t\t\tp.putDouble( ((Double)params[i]).doubleValue() );\n\t\t\t}\n\t\t\telse if ( params[i] instanceof Short )\n\t\t\t{\n\t\t\t\tp.putShort( ((Short) params[i]).shortValue() );\n\t\t\t}\n\t\t\telse if ( params[i] instanceof Character )\n\t\t\t{\n\t\t\t\tp.putChar( ((Character) params[i]).charValue() );\n\t\t\t}\n\t\t\telse if ( params[i] instanceof Byte )\n\t\t\t{\n\t\t\t\tp.putByte( ((Byte) params[i]).byteValue() );\n\t\t\t}\n\t\t}\n\t\treturn p;\n\t}", "public byte[] createPacket(short packetid, byte[] packetdata){\r\n\t\tshort s = 0;\r\n\t\tbyte[] packet;\r\n\t\tint size = packetdata.length;\r\n\t\t\r\n\t\tif (size < 1){\r\n\t\t\tpacket = new byte[12];\r\n\t\t}else{\r\n\t\t\tpacket = new byte[12+size];\r\n\t\t}\r\n\t\tif (packetid == 2 || packetid == 5 || packetid == 6){\r\n\t\t\tpacket[0] = (byte) 0x00;\r\n\t\t} else packet[0] = (byte) 0x14;\r\n\t\t//Reserved\r\n\t\tpacket[1] = (byte) 0x00;\r\n\t\tpacket[2] = (byte) 0x00;\r\n\t packet[3] = (byte) 0x00;\r\n\t //PacketId\r\n\t s = (byte) packetid;\r\n\t byte[] packet_2 = Util.shortTobyte(s);\r\n\t packet[4] = packet_2[0];\r\n\t packet[5] = packet_2[1];\r\n\t\t//Reserved2\r\n\t\tpacket[6] = (byte) 0x00;\r\n\t packet[7] = (byte) 0x00;\r\n\t //DataSize\r\n\t byte[] packet2 = Util.intTobyte(size);\r\n\t packet[8] = packet2[0];\r\n\t packet[9] = packet2[1];\r\n\t packet[10] = packet2[2];\r\n\t packet[11] = packet2[3];\r\n\t for (int x = 0; x < size; x++){\r\n\t \tpacket[12+x] = packetdata[x];\r\n\t }\r\n\t \r\n\t return packet;\r\n\t}", "private FullExtTcpPacket createPacket(\n long dataSizeByte,\n long sequenceNumber,\n long ackNumber,\n boolean ACK,\n boolean SYN,\n boolean ECE\n ) {\n return new FullExtTcpPacket(\n flowId, dataSizeByte, sourceId, destinationId,\n 100, 80, 80, // TTL, source port, destination port\n sequenceNumber, ackNumber, // Seq number, Ack number\n false, false, ECE, // NS, CWR, ECE\n false, ACK, false, // URG, ACK, PSH\n false, SYN, false, // RST, SYN, FIN\n congestionWindow, 0 // Window size, Priority\n );\n }", "public abstract ByteBuffer getPacket();", "public PacketBuilder() {\n\t\tthis(1024);\n\t}", "public interface Packet {\n /**\n * Read body from byte buffer\n * @param bb \n * @throws java.lang.Exception \n */\n void readBody(ByteBuf bb, TranscoderContext context) throws Exception;\n \n /**\n * Write body to byte buffer\n * @param bb \n * @param context \n * @throws java.lang.Exception \n */\n void writeBody(ByteBuf bb, TranscoderContext context) throws Exception;\n \n /**\n * Calculate and return body size in bytes\n * @param context\n * @return \n */\n int calculateBodyLength(TranscoderContext context);\n \n /**\n * Calculate and set field with body length\n * @param context\n */\n void calculateAndSetBodyLength(TranscoderContext context);\n \n /**\n * Get body length from field\n * @return \n */\n int getBodyLength();\n\n /**\n * Get sequence number field value\n * @return \n */\n int getSequenceNumber();\n \n /**\n * Set sequence number field value\n * @param sequenceNumber \n */\n void setSequenceNumber(int sequenceNumber); \n}", "private DatagramPacket injectSourceAndDestinationData(DatagramPacket packet)\n\t{\n\t\t\n\t\tbyte[] ipxBuffer = Arrays.copyOf(packet.getData(), packet.getLength());\n\t\tint bufferLength = ipxBuffer.length + 9;\n\t\t\n\t\tbyte[] wrappedBuffer = Arrays.copyOf(ipxBuffer, bufferLength);\n\t\twrappedBuffer[bufferLength - 9] = 0x01;\n\t\twrappedBuffer[bufferLength - 8] = (byte) (packet.getAddress().getAddress()[0]);\n\t\twrappedBuffer[bufferLength - 7] = (byte) (packet.getAddress().getAddress()[1]);\n\t\twrappedBuffer[bufferLength - 6] = (byte) (packet.getAddress().getAddress()[2]);\n\t\twrappedBuffer[bufferLength - 5] = (byte) (packet.getAddress().getAddress()[3]);\n\t\twrappedBuffer[bufferLength - 4] = (byte) (packet.getPort() >> 8);\n\t\twrappedBuffer[bufferLength - 3] = (byte) packet.getPort();\n\t\twrappedBuffer[bufferLength - 2] = (byte) (ipxSocket.getLocalPort() >> 8);\n\t\twrappedBuffer[bufferLength - 1] = (byte) ipxSocket.getLocalPort();\n\t\t\n\t\treturn new DatagramPacket(wrappedBuffer, bufferLength);\n\t}", "public WirePacket(PacketType type, byte[] bytes) {\n\t\tthis.id = checkNotNull(type, \"type cannot be null\").getCurrentId();\n\t\tthis.bytes = bytes;\n\t}", "public static Packet deserialize(String data) {\n\t\t\tString hex = data.substring(0, 4);\n\t\t\tString dat = data.substring(4);\n\t\t\treturn new Packet(dat, hex);\n\t\t}", "public AbstractPacketDO getPacket() {\n\t\tString headers = headerTableModel.getHeaders();\n\n\t\t// get the xml content\n\t\tOutputStream os = new ByteArrayOutputStream();\n\t\ttm.prettyPrint(os);\n\t\tString xml = os.toString();\n\t\txml = xml.trim();\n\t\txml += \"\\n\";\n\n\t\tString content = \"\";\n\n\t\tif (headers.contains(\"Content-Length\")) {\n\t\t\tint contentLength = xml.getBytes().length;\n\t\t\theaders = headers.replaceAll(\"Content-Length:\\\\s\\\\d+\",\n\t\t\t\t\tString.format(\"Content-Length: %d\", contentLength));\n\t\t\tcontent = headers + \"\\r\\n\" + xml;\n\t\t} else {\n\t\t\tcontent = headers + \"\\r\\n\";\n\t\t}\n\n\t\tif (packet != null) {\n\t\t\tpacket.setData(content.getBytes());\n\t\t}\n\n\t\treturn packet;\n\t}", "public DatagramPacket createDatagramPacket(InetAddress address, Integer port) {\n byte[] message = this.buildBytes();\n return new DatagramPacket(message, message.length, address, port);\n }", "public MAVLinkPacket pack(){\n MAVLinkPacket packet = new MAVLinkPacket(MAVLINK_MSG_LENGTH);\n packet.sysid = 255;\n packet.compid = 190;\n packet.msgid = MAVLINK_MSG_ID_GIMBAL_DEVICE_INFORMATION;\n \n packet.payload.putUnsignedInt(time_boot_ms);\n \n packet.payload.putUnsignedInt(firmware_version);\n \n packet.payload.putFloat(tilt_max);\n \n packet.payload.putFloat(tilt_min);\n \n packet.payload.putFloat(tilt_rate_max);\n \n packet.payload.putFloat(pan_max);\n \n packet.payload.putFloat(pan_min);\n \n packet.payload.putFloat(pan_rate_max);\n \n packet.payload.putUnsignedShort(cap_flags);\n \n \n for (int i = 0; i < vendor_name.length; i++) {\n packet.payload.putUnsignedByte(vendor_name[i]);\n }\n \n \n \n for (int i = 0; i < model_name.length; i++) {\n packet.payload.putUnsignedByte(model_name[i]);\n }\n \n \n return packet;\n }", "public static ArrayList<Packet> convertArrayToPacket(ArrayList<Integer> integerArray) {\n\t\tArrayList<Packet> packetArray = new ArrayList<>();\n\t\tintegerArray.forEach(integer -> packetArray.add(new Packet(integer)));\n\n\t\treturn packetArray;\n\t}", "public ByteBuffer buildPacket(int encap, short destUdp, short srcUdp) {\n ByteBuffer result = ByteBuffer.allocate(MAX_LENGTH);\n fillInPacket(encap, INADDR_BROADCAST, INADDR_ANY, destUdp,\n srcUdp, result, DHCP_BOOTREQUEST, mBroadcast);\n result.flip();\n return result;\n }", "protected ILPacket getPacketFromData(String id) \n\t\t\tthrows PacketFormatException, IOException \n\t{\n\t\tthis.buffer.rewind();\n\t\treturn ILPacketFactory.getPacketFromData(this.buffer, id);\n\t}", "void sendRawPacket(UUID uuid, ByteBuf packet) throws IllegalArgumentException;", "public Packet(String data){\n\t\t\tthis(data, CkSum.genCheck(data));\n\t\t}", "public static KarelPacket createOpeningPacket(PacketData packetData) {\n return new KarelPacket(\n new ConnectionId(0x0, 0x0, 0x0, 0x0),\n new SequenceNumber(0x0, 0x0),\n new AcknowledgeNumber(0x0, 0x0),\n FlagNumber.createOpeningFlag(),\n packetData\n );\n }", "public abstract Object getVanillaPacket();", "public Packet(int sequenceNumber, String sourceNode, int portNumber, int id, int previousHop, double speed, double xCoordinate, double yCoordinate,\n long currentTime, int packetType) {\n this.sequenceNumber = sequenceNumber;\n this.previousHop = previousHop;\n this.id = id;\n this.speed = speed;\n this.xCoordinate = xCoordinate;\n this.yCoordinate = yCoordinate;\n this.sourceNode = sourceNode;\n this.currentTime = currentTime;\n this.packetType = packetType;\n this.portNumber = portNumber;\n\n idTo = 0;\n }", "public Packet parse(final int[] data) {\n int protocol = (data[0] << 8) | data[1];\n int[] payload = Arrays.copyOfRange(data, 2, data.length);\n PacketFactory factory = this.packetFactories.get(protocol);\n return factory.create(payload);\n }", "@SuppressWarnings(\"rawtypes\")\r\n private static NordeaPaymentPacket getNordeaPaymentPacketInstance(String packetId, Algorithm algorithm) {\r\n try {\r\n Class<?> classes[] = new Class[] { String.class, Algorithm.class };\r\n Constructor<?> constructor = NordeaPaymentPacket.class.getDeclaredConstructor(classes);\r\n Object obj[] = new Object[] { packetId, algorithm };\r\n return (NordeaPaymentPacket) constructor.newInstance(obj);\r\n } catch (Exception ex) {\r\n return null;\r\n }\r\n }", "abstract public TransfilePackets getInstance(ByteBuffer bbr)\n throws UncompletedPackageException;", "public Packet(int sequenceNumber, String sourceNode, int portNumber, int id, int previousHop, double speed, double xCoordinate, double yCoordinate,\n long currentTime, int packetType, int idTo) {\n this.sequenceNumber = sequenceNumber;\n this.previousHop = previousHop;\n this.id = id;\n this.speed = speed;\n this.xCoordinate = xCoordinate;\n this.yCoordinate = yCoordinate;\n this.sourceNode = sourceNode;\n this.currentTime = currentTime;\n this.packetType = packetType;\n this.portNumber = portNumber;\n this.idTo = idTo;\n\n }", "public PacketBuilder(int capacity) {\n\t\tbuffer = ByteBuffer.allocate(capacity);\n\t}", "public WirePacket(int id, byte[] bytes) {\n\t\tthis.id = id;\n\t\tthis.bytes = bytes;\n\t}", "public Packet(int packetNumber) {\n\t\tthis.packetNumber = packetNumber;\n\t}", "public abstract void loadVanillaPacket(Object packet);", "ITaggedData Create(short tag, byte[] data, int offset, int count);", "public static Packet makePacket(String s,boolean check)\r\n\t{\r\n\t\tString a[]=split(s,check);\r\n\t\tswitch(indexOf(prefix,a[0]))\r\n\t\t{\r\n\t\tcase 0:\r\n\t\t\treturn new PacketGGA(a);\r\n\t\tcase 1:\r\n\t\t\treturn new PacketGSA(a);\r\n\t\tcase 2:\r\n\t\t\treturn new PacketGSV(a);\r\n\t\tcase 3:\r\n\t\t\treturn new PacketRMC(a);\r\n\t\tcase 4:\r\n\t\tcase 5:\r\n\t\t\treturn new PacketGLL(a);\r\n\t\tcase 6:\r\n\t\tcase 7:\r\n\t\t\treturn new PacketVTG(a);\r\n\t\tdefault:\r\n\t\t\tthrow new OpenNMEAException(\"Invalid sentence prefix\");\r\n\t\t}\r\n\t}", "public PacketHeader(byte buffer[])\n\t\t{\n\t\t\n\t\t}", "public static PacketSource makeOldNetwork(String host, int port,\n\t\t\t\t\t int packetSize) {\n\treturn new BrokenPacketizer(\"old-network@\" + host + \":\" + port,\n\t\t\t\t packetSize,\n\t\t\t\t new NetworkByteSource(host, port));\n }", "public PacketHandler() {}", "private SourceRconPacketFactory() {\n }", "public byte[] getNetworkPacket() {\n /*\n The packet layout will be:\n byte(datatype)|int(length of name)|byte[](name)|int(length of value)|byte[](value)|...\n */\n byte[] data = new byte[2];\n int currentPosition = 0;\n \n if(STRINGS.size() > 0) {\n Enumeration enumer = STRINGS.elements();\n while(enumer.hasMoreElements()) {\n if(currentPosition == data.length) {\n data = growArray(data, 1);\n }\n // Add the type\n data[currentPosition] = 0x73;\n currentPosition++;\n\n SimpleMessageObjectStringItem item = (SimpleMessageObjectStringItem) enumer.nextElement();\n int spaceLeft = data.length - currentPosition;\n byte[] name = item.getName().getBytes();\n if(spaceLeft < name.length + 4) {\n data = growArray(data, name.length - spaceLeft + 4);\n }\n \n //Add the length of the name\n byte[] nameLength = DataConversions.getBytes(name.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = nameLength[i];\n currentPosition++;\n }\n \n //Add the name\n for(int i = 0 ; i < name.length ; i++) {\n data[currentPosition] = name[i];\n currentPosition++;\n }\n \n spaceLeft = data.length - currentPosition;\n byte[] value = item.getValue().getBytes();\n if(spaceLeft < value.length + 4) {\n data = growArray(data, value.length - spaceLeft + 4);\n }\n \n //Add the length of the value\n byte[] valueLength = DataConversions.getBytes(value.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = valueLength[i];\n currentPosition++;\n }\n \n //Add the value\n for(int i = 0 ; i < value.length ; i++) {\n data[currentPosition] = value[i];\n currentPosition++;\n }\n }\n }\n \n if(INTS.size() > 0) {\n Enumeration enumer = INTS.elements();\n while(enumer.hasMoreElements()) {\n if(currentPosition == data.length) {\n data = growArray(data, 1);\n }\n // Add the type\n data[currentPosition] = 0x69;\n currentPosition++;\n\n SimpleMessageObjectIntItem item = (SimpleMessageObjectIntItem) enumer.nextElement();\n int spaceLeft = data.length - currentPosition;\n byte[] name = item.getName().getBytes();\n if(spaceLeft < name.length + 4) {\n data = growArray(data, name.length - spaceLeft + 4);\n }\n \n //Add the length of the name\n byte[] nameLength = DataConversions.getBytes(name.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = nameLength[i];\n currentPosition++;\n }\n \n //Add the name\n for(int i = 0 ; i < name.length ; i++) {\n data[currentPosition] = name[i];\n currentPosition++;\n }\n \n spaceLeft = data.length - currentPosition;\n byte[] value = DataConversions.getBytes(item.getValue());\n if(spaceLeft < value.length + 4) {\n data = growArray(data, value.length - spaceLeft + 4);\n }\n \n //Add the length of the value\n byte[] valueLength = DataConversions.getBytes(value.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = valueLength[i];\n currentPosition++;\n }\n \n //Add the value\n for(int i = 0 ; i < value.length ; i++) {\n data[currentPosition] = value[i];\n currentPosition++;\n }\n }\n }\n \n if(LONGS.size() > 0) {\n Enumeration enumer = LONGS.elements();\n while(enumer.hasMoreElements()) {\n if(currentPosition == data.length) {\n data = growArray(data, 1);\n }\n // Add the type\n data[currentPosition] = 0x6C;\n currentPosition++;\n\n SimpleMessageObjectLongItem item = (SimpleMessageObjectLongItem) enumer.nextElement();\n int spaceLeft = data.length - currentPosition;\n byte[] name = item.getName().getBytes();\n if(spaceLeft < name.length + 4) {\n data = growArray(data, name.length - spaceLeft + 4);\n }\n \n //Add the length of the name\n byte[] nameLength = DataConversions.getBytes(name.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = nameLength[i];\n currentPosition++;\n }\n \n //Add the name\n for(int i = 0 ; i < name.length ; i++) {\n data[currentPosition] = name[i];\n currentPosition++;\n }\n \n spaceLeft = data.length - currentPosition;\n byte[] value = DataConversions.getBytes(item.getValue());\n if(spaceLeft < value.length + 4) {\n data = growArray(data, value.length - spaceLeft + 4);\n }\n \n //Add the length of the value\n byte[] valueLength = DataConversions.getBytes(value.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = valueLength[i];\n currentPosition++;\n }\n \n //Add the value\n for(int i = 0 ; i < value.length ; i++) {\n data[currentPosition] = value[i];\n currentPosition++;\n }\n }\n }\n \n if(DOUBLES.size() > 0) {\n Enumeration enumer = DOUBLES.elements();\n while(enumer.hasMoreElements()) {\n if(currentPosition == data.length) {\n data = growArray(data, 1);\n }\n // Add the type\n data[currentPosition] = 0x64;\n currentPosition++;\n\n SimpleMessageObjectDoubleItem item = (SimpleMessageObjectDoubleItem) enumer.nextElement();\n int spaceLeft = data.length - currentPosition;\n byte[] name = item.getName().getBytes();\n if(spaceLeft < name.length + 4) {\n data = growArray(data, name.length - spaceLeft + 4);\n }\n \n //Add the length of the name\n byte[] nameLength = DataConversions.getBytes(name.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = nameLength[i];\n currentPosition++;\n }\n \n //Add the name\n for(int i = 0 ; i < name.length ; i++) {\n data[currentPosition] = name[i];\n currentPosition++;\n }\n \n spaceLeft = data.length - currentPosition;\n byte[] value = DataConversions.getBytes(item.getValue());\n if(spaceLeft < value.length + 4) {\n data = growArray(data, value.length - spaceLeft + 4);\n }\n \n //Add the length of the value\n byte[] valueLength = DataConversions.getBytes(value.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = valueLength[i];\n currentPosition++;\n }\n \n //Add the value\n for(int i = 0 ; i < value.length ; i++) {\n data[currentPosition] = value[i];\n currentPosition++;\n }\n }\n }\n \n if(FLOATS.size() > 0) {\n Enumeration enumer = FLOATS.elements();\n while(enumer.hasMoreElements()) {\n if(currentPosition == data.length) {\n data = growArray(data, 1);\n }\n // Add the type\n data[currentPosition] = 0x66;\n currentPosition++;\n\n SimpleMessageObjectFloatItem item = (SimpleMessageObjectFloatItem) enumer.nextElement();\n int spaceLeft = data.length - currentPosition;\n byte[] name = item.getName().getBytes();\n if(spaceLeft < name.length + 4) {\n data = growArray(data, name.length - spaceLeft + 4);\n }\n \n //Add the length of the name\n byte[] nameLength = DataConversions.getBytes(name.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = nameLength[i];\n currentPosition++;\n }\n \n //Add the name\n for(int i = 0 ; i < name.length ; i++) {\n data[currentPosition] = name[i];\n currentPosition++;\n }\n \n spaceLeft = data.length - currentPosition;\n byte[] value = DataConversions.getBytes(item.getValue());\n if(spaceLeft < value.length + 4) {\n data = growArray(data, value.length - spaceLeft + 4);\n }\n \n //Add the length of the value\n byte[] valueLength = DataConversions.getBytes(value.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = valueLength[i];\n currentPosition++;\n }\n \n //Add the value\n for(int i = 0 ; i < value.length ; i++) {\n data[currentPosition] = value[i];\n currentPosition++;\n }\n }\n }\n \n if(CHARS.size() > 0) {\n Enumeration enumer = CHARS.elements();\n while(enumer.hasMoreElements()) {\n if(currentPosition == data.length) {\n data = growArray(data, 1);\n }\n // Add the type\n data[currentPosition] = 0x63;\n currentPosition++;\n\n SimpleMessageObjectCharItem item = (SimpleMessageObjectCharItem) enumer.nextElement();\n int spaceLeft = data.length - currentPosition;\n byte[] name = item.getName().getBytes();\n if(spaceLeft < name.length + 4) {\n data = growArray(data, name.length - spaceLeft + 4);\n }\n \n //Add the length of the name\n byte[] nameLength = DataConversions.getBytes(name.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = nameLength[i];\n currentPosition++;\n }\n \n //Add the name\n for(int i = 0 ; i < name.length ; i++) {\n data[currentPosition] = name[i];\n currentPosition++;\n }\n \n spaceLeft = data.length - currentPosition;\n byte[] value = DataConversions.getBytes(item.getValue());\n if(spaceLeft < value.length + 4) {\n data = growArray(data, value.length - spaceLeft + 4);\n }\n \n //Add the length of the value\n byte[] valueLength = DataConversions.getBytes(value.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = valueLength[i];\n currentPosition++;\n }\n \n //Add the value\n for(int i = 0 ; i < value.length ; i++) {\n data[currentPosition] = value[i];\n currentPosition++;\n }\n }\n }\n \n if(BYTES.size() > 0) {\n Enumeration enumer = BYTES.elements();\n while(enumer.hasMoreElements()) {\n if(currentPosition == data.length) {\n data = growArray(data, 1);\n }\n // Add the type\n data[currentPosition] = 0x62;\n currentPosition++;\n\n SimpleMessageObjectByteArrayItem item = (SimpleMessageObjectByteArrayItem) enumer.nextElement();\n int spaceLeft = data.length - currentPosition;\n byte[] name = item.getName().getBytes();\n if(spaceLeft < name.length + 4) {\n data = growArray(data, name.length - spaceLeft + 4);\n }\n \n //Add the length of the name\n byte[] nameLength = DataConversions.getBytes(name.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = nameLength[i];\n currentPosition++;\n }\n \n //Add the name\n for(int i = 0 ; i < name.length ; i++) {\n data[currentPosition] = name[i];\n currentPosition++;\n }\n \n spaceLeft = data.length - currentPosition;\n byte[] value = item.getValue();\n if(spaceLeft < value.length + 4) {\n data = growArray(data, value.length - spaceLeft + 4);\n }\n \n //Add the length of the value\n byte[] valueLength = DataConversions.getBytes(value.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = valueLength[i];\n currentPosition++;\n }\n \n //Add the value\n for(int i = 0 ; i < value.length ; i++) {\n data[currentPosition] = value[i];\n currentPosition++;\n }\n }\n }\n\n return data;\n }", "public void add(AisPacket p) {\n throw new UnsupportedOperationException(\"Stream is immutable\");// default stream is immutable.\n }", "public static KarelPacket createPacket(ConnectionId id,\n SequenceNumber sq,\n AcknowledgeNumber ack,\n FlagNumber flag,\n PacketData data) {\n return new KarelPacket(id, sq, ack, flag, data);\n }", "public static KarelPacket parseFromDatagramPacket(DatagramPacket packet) throws CorruptedPacketException {\n if (packet.getData().length < 9) {\n throw new CorruptedPacketException(\"Corrupted DatagramPacket. Could not parse data.\");\n }\n return new KarelPacket(\n ConnectionId.parseFromDatagramPacket(packet),\n SequenceNumber.parseFromDatagramPacket(packet),\n AcknowledgeNumber.parseFromDatagramPacket(packet),\n FlagNumber.parseFromDatagramPacket(packet),\n PacketData.parseFromDatagramPacket(packet)\n );\n }", "private static void processPacket(PacketType packet, JPackage dirPackage, JCodeModel codeModel, boolean fromClient) \n throws JClassAlreadyExistsException\n {\n String packetName = (packet.getInfo() == null || packet.getInfo().getName() == null) ? \"Unknown\" : packet.getInfo().getName();\n String packetNamePrefixed = \"P\" + String.format(\"%03d\", packet.getHeader()) + \"_\" + packetName;\n String packetDescription = (packet.getInfo() == null || packet.getInfo().getDescription() == null || packet.getInfo().getDescription().isEmpty()) ? \"\" : WordUtils.wrap(packet.getInfo().getDescription(), /* maximumLength */50);\n \n JDefinedClass packetClass = dirPackage._class(JMod.FINAL | JMod.PUBLIC, packetNamePrefixed)._implements(GenericAction.class);\n \n LOGGER.info(\"+-Processing packet: {}\", packetNamePrefixed);\n LOGGER.debug(\"|+-Packet description: {}\", packetDescription);\n \n StringBuilder packetJavadoc = \n new StringBuilder(\"Auto-generated by \\\"Packet generator\\\".\")\n .append(\"\\n\").append(packetDescription);\n \n JDocComment jDocComment = packetClass.javadoc();\n jDocComment.add(packetJavadoc.toString());\n \n AtomicInteger numberOfUnknowns = new AtomicInteger(); // unknown field number\n \n // get all fields in this packet\n for (PacketFieldType field : packet.getField()) \n {\n processField(field, packetClass, codeModel, numberOfUnknowns, fromClient);\n }\n \n // generate the header method\n packetClass\n .method(JMod.PUBLIC, short.class, \"getHeader\")\n .body()\n ._return(JExpr.lit(packet.getHeader().intValue()));\n \n // generate getters, setters\n for (JFieldVar fieldVar : packetClass.fields().values())\n {\n processAccessors(fieldVar, packetClass, fromClient);\n }\n }", "@Test\n public void firstReceivedPacket() throws Exception {\n int[] receivedPacket = Utils.stringToHexArr(\"600000000018fd3e2001067c2564a170\"\n + \"020423fffede4b2c2001067c2564a125a190bba8525caa5f\"\n + \"1e1e244cf8b92650000000016012384059210000020405a0\");\n packet = new Packet(receivedPacket);\n String expectedData = \"020405a0\";\n long expectedSeqNumber = 4172883536L;\n\n assertEquals(expectedData,packet.getData());\n assertEquals(60 + expectedData.length()/2,packet.getSize());\n assertEquals(Flag.SYN.value + Flag.ACK.value, packet.getFlags());\n assertEquals(expectedSeqNumber,packet.getSeqNumber());\n assertEquals(expectedSeqNumber + 1, packet.getNextSeqNumber());\n assertEquals(1,packet.getAckNumber());\n\n assertArrayEquals(receivedPacket,packet.getPkt());\n }", "public static PacketSource makePacketSource() {\n\treturn makePacketSource(Env.getenv(\"MOTECOM\"));\n }", "public void getPackByte(DataPacket packet) {\n\t\t\tint limit = 10;\r\n\t\t\tint newFrameSep = 0x3c;\r\n\t\t\t// bytes avail = packet.getDataSize() - limit;\r\n\t\t\t// write(lbuf, limit, 32)\r\n\t\t\t// write(newFrame)\r\n\t\t\t// limit += 32;\r\n\t\t\t// check packet.getDataSize() - limit > 31\r\n\t\t\tbyte[] lbuf = new byte[packet.getDataSize()];\r\n\t\t\ttry {\r\n\t\t\tif ( packet.getDataSize() > 0)\r\n\r\n\t\t\t\tlbuf = packet.getDataAsArray();\r\n\t\t\t//first frame includes the 1 byte frame header whose value should be used \r\n\t\t\t// to write subsequent frame separators \r\n\r\n\r\n\t\t\t\t\tobuff.write(lbuf, limit, 32);\r\n\r\n\t\t\t\tlimit += 32;\r\n\t\t\t\r\n\t\t do {\r\n\r\n\t\t \t\t obuff.write(newFrameSep); \r\n\t\t\t\t\tobuff.write(lbuf, limit, 31);\r\n\t\t\t\t\tlimit += 31;\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\r\n\t\t \t \r\n\t\t } while (packet.getDataSize() - limit > 31);\t\t\t\t\t\t\t\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}", "FJPacket( AutoBuffer ab, int ctrl ) { _ab = ab; _ctrl = ctrl; }", "public static Packet getPacketFromJson(String json) {\n JsonNode node=null;\n try {\n node=mapper.readTree(json);\n String method=node.get(METHOD_FIELD).asText();\n JsonNode data=node.get(DATA_FIELD);\n Object object=null;\n if(!data.toString().isEmpty()) {\n object=getObjectFromJson(data);\n }\n return new Packet(method, object);\n }\n catch(JsonProcessingException e) {\n e.printStackTrace();\n }\n catch(Exception e) {\n return null;\n }\n return null;\n }", "private DAPMessage constructFrom(DatabaseTableRecord record) {\n return DAPMessage.fromXML(record.getStringValue(CommunicationNetworkServiceDatabaseConstants.DAP_MESSAGE_DATA_COLUMN_NAME));\n }", "public Packet(int PCKT_RI_, int PCKT_SRC_ID_, int pcktNr_, int sizeInBits_, double tCreation_){\r\n\t\tPCKT_RI=PCKT_RI_;\r\n\t\tPCKT_SRC_ID=PCKT_SRC_ID_;\r\n\t\tpcktNr=pcktNr_;\r\n\t\tsizeInBits=sizeInBits_;\r\n\t\ttCreation=tCreation_;\r\n\t}", "public PValuePacket(PValuePacket pvalue) {\n\t\tsuper(pvalue);\n\t\tthis.ballot = pvalue.ballot;\n\t\tthis.medianCheckpointedSlot = pvalue.medianCheckpointedSlot;\n\t\tthis.packetType = pvalue.getType();\n\t\tthis.recovery = false; // true only when created from json\n\t}", "public static synchronized PacketBase getInstance(WebSocket conn)\n\t{\n\t\t return new PacketEr403(conn);\n\t}", "protected void buildPacket() throws IOException {\n\t\tByteArrayOutputStream baos = new ByteArrayOutputStream();\n\t\t\n\t\t// write packet\n\t\tbaos.write(SPInstr.USER.getByte()); // username\n\t\tbaos.write(username.getBytes());\n\t\tbaos.write(SPInstr.EOM.getByte());\n\t\tbaos.write(SPInstr.PASS.getByte()); // password\n\t\tbaos.write(password.getBytes());\n\t\tbaos.write(SPInstr.EOM.getByte());\n\t\tbaos.write(SPInstr.EOP.getByte()); // no action required since it is sent from the client\n\t\t\n\t\t// save packet\n\t\tpacket = baos.toByteArray();\n\t}", "private static InPacket deserializeRawPacket(byte id, byte[] in)\n\t\t\tthrows IOException\n\t{\n\t\ttry\n\t\t{\n\t\t\treturn Packets.constructIncomingPacket(id, ByteStreams.newDataInput(in));\n\t\t}\n\t\tcatch (ReflectiveOperationException e)\n\t\t{\n\t\t\tthrow new IOException(\"Cannot read incoming packet with id \" + id + \" and data \" + Arrays.toString(in) +\n\t\t\t\t\t'.', e);\n\t\t}\n\t}", "public static PacketSource makeNetwork(String host, int port, int platform) {\n\treturn new Packetizer(\"network@\" + host + \":\" + port,\n\t\t\t new NetworkByteSource(host, port), platform);\n }", "public byte[] getFramePacket()\r\n/* 203: */ {\r\n/* 204:164 */ Packet211TileDesc pkt = new Packet211TileDesc();\r\n/* 205:165 */ pkt.subId = 9;\r\n/* 206:166 */ writeToPacket(pkt);\r\n/* 207:167 */ pkt.headout.write(pkt.subId);\r\n/* 208:168 */ return pkt.toByteArray();\r\n/* 209: */ }", "private void CUSTOM_SCRAP_CREATE(CalicoPacket p) {\n\t\tp.rewind();\n\t\tp.getInt();\n\t\tlong new_uuid=p.getLong();\n\t\tlong cuuid=p.getLong();\n\t\tint x=p.getInt();\n\t\tint y=p.getInt();\n\t\t\n\t\tCustomScrapController.create_custom_scrap(new_uuid, cuuid, x, y);\n\t\t\n\t}", "public String fromPacketToString() {\r\n\t\tString message = Integer.toString(senderID) + PACKET_SEPARATOR + Integer.toString(packetID) + PACKET_SEPARATOR + type + PACKET_SEPARATOR;\r\n\t\tfor (String word:content) {\r\n\t\t\tmessage = message + word + PACKET_SEPARATOR;\r\n\t\t}\r\n\t\treturn message;\r\n\t}", "public Packet(final long unique) {\r\n\t\ttype = EvidenceType.NONE;\r\n\t\tcommand = EvidenceBuilder.LOG_CREATE;\r\n\t\tid = unique;\r\n\t\tdata = null;\r\n\t}", "private static byte[] serializeRawPacket(OutPacket packet)\n\t\t\tthrows IOException\n\t{\n\t\tByteArrayDataOutput packetOut = ByteStreams.newDataOutput();\n\t\tpacket.write(packetOut);\n\t\treturn packetOut.toByteArray();\n\t}", "Container createContainer();", "public DiscoveryPacket(BigInteger networkId) {\n this.networkId = networkId;\n }", "public RtpPacket(int capacity, boolean allocateDirect) { \t\n buffer = allocateDirect ? \n ByteBuffer.allocateDirect(capacity) :\n ByteBuffer.allocate(capacity);\n }", "public PacketAssembler()\n {\n \tthis.theTreeMaps = new TreeMap<Integer, TreeMap<Integer,String>>();\n \tthis.countPerMessage = new TreeMap<Integer,Integer>();\n }", "protected void writeToPacket(NBTTagCompound nbt) {\n }", "public CapsPacketExtension()\n {\n }", "public Packet getPacket(long id) throws NegativeValueException,\n\t\t\tPacketException;", "public PacketMap(PppParser parent) {\n this.parent = parent;\n this.packetFactories = new HashMap<Integer, PacketFactory>();\n }", "public CommandPacket(int requestId, String senderAddress, int senderPort, JSONObject command) {\n this.setType(PacketType.COMMAND);\n this.clientRequestId = requestId;\n this.LNSRequestId = -1; // this will be filled in at the LNS\n this.senderAddress = senderAddress;\n this.senderPort = senderPort;\n this.command = command;\n }", "public Packet(int source, int dest, int DSCP){\r\n\t\ttry{\r\n\t\t\tthis.source = source;\r\n\t\t\tthis.dest = dest;\r\n\t\t\tthis.DSCP = DSCP;\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public RequestPacket(String protocol) {\n super();\n parseProtocol(protocol);\n }", "void SendPacket(int packetIdentifier);", "public void setPacketBytes(byte bytes[]) {\n\t\tfInPacket = new ByteArrayInputStream(bytes);\n\t\tthis.fDataInputStream = new DataInputStream(fInPacket);\t\n\t\tfOutPacket = new ByteArrayOutputStream();\n\t\tthis.fDataOutputStream = new DataOutputStream(fOutPacket);\t\n\t}", "private static InPacket deserializePacket(ByteArrayDataInput in)\n\t\t\tthrows IOException\n\t{\n\t\tbyte id = in.readByte();\n\t\tint len = in.readInt();\n\t\tbyte[] array = new byte[len];\n\t\tin.readFully(array);\n\n\t\treturn deserializeRawPacket(id, array);\n\t}", "public RawBlockContainer copy() {\n final RawBlockContainer container = new RawBlockContainer();\n container.setVersion(ArrayUtil.arrayCopy(getVersion()));\n container.setPreviousBlockHash(ArrayUtil.arrayCopy(getPreviousBlockHash()));\n container.setMerkleRoot(ArrayUtil.arrayCopy(getMerkleRoot()));\n container.setTimestamp(ArrayUtil.arrayCopy(getTimestamp()));\n container.setBits(ArrayUtil.arrayCopy(getBits()));\n container.setNonce(ArrayUtil.arrayCopy(getNonce()));\n return container;\n }", "T createContainer();", "public interface IPacket {\n /**\n * Array of all known packets\n */\n public static Class<?>[] knownPackets = new Class<?>[] {AdminChatPacket.class,\n InfractionPacket.class, ReportPacket.class};\n\n /**\n * Reads input from a DataInputStream\n * \n * @param in DataInputStream stram\n * @throws IOException\n */\n public void read(DataInputStream in) throws IOException;\n\n /**\n * Writes out data through a DataOutputStream\n * \n * @param out DataOutputStream stream\n * @throws IOException\n */\n public void write(DataOutputStream out) throws IOException;\n}", "protected AbstractReadablePacket() {\n this.constructor = createConstructor();\n }", "private static void ethernetDecode(byte[] packet) {\n// System.out.println(driver.byteArrayToString(packet));\n EthernetFrame ethernetFrame = new EthernetFrame(packet, driver);\n System.out.println(\"Destination MAC Address: \" + ethernetFrame.getDestAddr());\n System.out.println(\"Source MAC Address: \" + ethernetFrame.getSrcAddr());\n System.out.println(\"Ether type: \" + ethernetFrame.getEtherType());\n\n }", "void sendRawPacket(T player, ByteBuf packet) throws IllegalArgumentException;", "public static PacketSource makePacketSource(String name) {\n\tif (name == null)\n\t name = \"sf@localhost:9001\"; // default source\n\n\tParseArgs parser = new ParseArgs(name, \"@\");\n\tString source = parser.next();\n\tString args = parser.next();\n\tPacketSource retVal = null;\n\t\n\n\tif (source.equals(\"sf\"))\n\t retVal = makeArgsSF(args);\n\tif (source.equals(\"old-sf\"))\n\t retVal = makeArgsOldSF(args);\n\tif (source.equals(\"dummy\"))\n\t retVal = makeDummy();\n\tif (source.equals(\"old-serial\"))\n\t retVal = makeArgsOldSerial(args);\n\tif (source.equals(\"old-network\"))\n\t retVal = makeArgsOldNetwork(args);\n\tif (source.equals(\"serial\"))\n\t retVal = makeArgsSerial(args);\n\tif (source.equals(\"network\"))\n\t retVal = makeArgsNetwork(args);\n\tif (source.equals(\"tossim-serial\"))\n\t retVal = makeArgsTossimSerial(args);\n\tif (source.equals(\"tossim-radio\"))\n\t retVal = makeArgsTossimRadio(args);\n\t//System.err.println(\"Built a Packet source for \"+Platform.getPlatformName(retVal.getPlatform()));\n\treturn retVal;\n }", "public ISOCommandAPDU(int size, byte classByte, byte instruction, byte p1, byte p2, byte[] data, int le) {\n super(size);\n // initialize properly for encoding\n this.le = le;\n this.lc = (data == null ? 0 : data.length);\n // encode\n byte[] body = this.encode(data);\n int L = (body == null ? 0 : body.length);\n // fill buffer\n this.apdu_buffer[CLASS] = classByte;\n this.apdu_buffer[INSTRUCTION] = instruction;\n this.apdu_buffer[P1] = p1;\n this.apdu_buffer[P2] = p2;\n if (body != null)\n System.arraycopy(body, 0, this.apdu_buffer, 4, L);\n\n this.apdu_length = 4+L;\n }", "private static void registerPacketClass(Object classInstance){\n\t\tWrappedFieldArray<PacketType> array = new WrappedFieldArray<>(classInstance, PacketType.class);\n\n\t\ttry{\n\t\t\tfor(Field f : array.getFields()){\n\t\t\t\tpacketLookup.add((PacketType) f.get(null));\n\t\t\t}\n\t\t}\n\t\tcatch(IllegalAccessException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public byte[] buildPacket() throws BeCommunicationEncodeException {\r\n\t\tif (apMac == null) {\r\n\t\t\tthrow new BeCommunicationEncodeException(\"ApMac is a necessary field!\");\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tbyte[] requestData = prepareRequestData();\r\n\t\t\t\r\n\t\t\t/**\r\n\t\t\t * AP identifier 's length = 6 + 1 + apSerialNum.length()<br>\r\n\t\t\t * query's length = 6 + 12\r\n\t\t\t */\r\n\t\t\tint apIdentifierLen = 7 + apMac.length();\r\n\t\t\tint queryLen = 12 + requestData.length;\r\n\t\t\tint bufLength = apIdentifierLen + queryLen;\r\n\t\t\tByteBuffer buf = ByteBuffer.allocate(bufLength);\r\n\t\t\t// set value\r\n\t\t\tbuf.putShort(BeCommunicationConstant.MESSAGEELEMENTTYPE_APIDENTIFIER);\r\n\t\t\tbuf.putInt(apIdentifierLen - 6);\r\n\t\t\tbuf.put((byte) apMac.length());\r\n\t\t\tbuf.put(apMac.getBytes());\r\n\t\t\tbuf.putShort(BeCommunicationConstant.MESSAGEELEMENTTYPE_INFORMATIONQUERY);\r\n\t\t\tbuf.putInt(6 + requestData.length);\r\n\t\t\tbuf.putShort(queryType);\r\n\t\t\tbuf.putInt(requestData.length); // data length\r\n\t\t\tbuf.put(requestData);\r\n\t\t\tsetPacket(buf.array());\r\n\t\t\treturn buf.array();\r\n\t\t} catch (Exception e) {\r\n\t\t\tthrow new BeCommunicationEncodeException(\r\n\t\t\t\t\t\"BeTeacherViewStudentInfoEvent.buildPacket() catch exception\", e);\r\n\t\t}\r\n\t}", "public NbMessage(short[] packet) {\n /**\n * Parse using shorts\n */\n this.packet = packet;\n byte header = (byte) ((packet[0] & 0b1111000000000000) >> 12);\n this.isValid = (header == DATA_HEADER);\n this.subheader = (packet[0] & 0b0000111000000000) >> 9;\n this.channel = (packet[0] & 0b0000000111000000) >> 6;\n this.header = (packet[0] & 0b1111000000000000) >> 12;\n this.data = packet[1];\n }", "@Test\n\tpublic void testDemoDedupeNewPacketSuccess() throws Exception {\n\t\tbyte[] b = \"sds\".getBytes();\n\t\tList<DemographicInfoDto> emptyDuplicateDtoSet = new ArrayList<>();\n\t\tMockito.when(adapter.getFile(anyString(), anyString())).thenReturn(inputStream);\n\t\tPowerMockito.mockStatic(JsonUtil.class);\n\t\tPowerMockito.mockStatic(IOUtils.class);\n\t\tPowerMockito.when(JsonUtil.class, \"inputStreamtoJavaObject\", inputStream, PacketMetaInfo.class)\n\t\t.thenReturn(packetMetaInfo);\n\t\tPowerMockito.when(IOUtils.class, \"toByteArray\", inputStream).thenReturn(b);\n\t\tMockito.when(registrationStatusService.getRegistrationStatus(any())).thenReturn(registrationStatusDto);\n\t\tMockito.when(abisHandlerUtil.getPacketStatus(any())).thenReturn(AbisConstant.PRE_ABIS_IDENTIFICATION);\n\t\tMockito.when(demoDedupe.performDedupe(anyString())).thenReturn(emptyDuplicateDtoSet);\n\n\t\tMessageDTO messageDto = demodedupeProcessor.process(dto, stageName);\n\t\tassertTrue(messageDto.getIsValid());\n\n\t}", "public ISOCommandAPDU(int size, byte classByte, byte instruction, byte p1, byte p2) {\n this(size, classByte, instruction, p1, p2, null, -1);\n }", "@Test\n public void firstPacket() throws Exception {\n int[] data = Utils.textToHexArr(\"Test\");\n packet.setFlag(Flag.SYN);\n packet.setData(data);\n\n assertEquals(Flag.SYN.value,packet.getFlags());\n assertEquals(0,packet.getSeqNumber());\n assertEquals(1,packet.getNextSeqNumber());\n assertEquals(0,packet.getAckNumber());\n assertEquals(Utils.arrayToString(data),packet.getData());\n assertEquals(60 + data.length, packet.getSize());\n\n //Build expected packet\n String ipv6Header = \"6\" +\"00\" + Utils.HexToString(0,20/4)\n + Utils.HexToString(24,16/4) + \"fd\" + \"ff\"\n + Utils.parseAddress(SOURCE_ADDR) + Utils.parseAddress(DEST_ADDR);\n String tcpHeader = \"244c\" + \"1e1e\" + \"00000000\" + \"00000000\" + \"50\"\n + Utils.HexToString(Flag.SYN.value,2) + \"1000\" + \"0000\" + \"0000\";\n String dataAsString = Utils.arrayToString(data);\n assertEquals(ipv6Header + tcpHeader + dataAsString, Utils.arrayToString(packet.getPkt()));\n\n int pkt[] = Utils.stringToHexArr(ipv6Header + tcpHeader + dataAsString);\n assertArrayEquals(pkt,packet.getPkt());\n }", "public ISOCommandAPDU(byte classByte, byte instruction, byte p1, byte p2) {\n this(4, classByte, instruction, p1, p2, null, -1); // size = header length\n }" ]
[ "0.684626", "0.6460337", "0.5834377", "0.57639164", "0.5736005", "0.56028795", "0.55961233", "0.55401796", "0.55148304", "0.54690397", "0.5379442", "0.5340761", "0.53256035", "0.5247704", "0.5246065", "0.52290213", "0.5171328", "0.5142568", "0.5127988", "0.50959915", "0.507957", "0.5069327", "0.5059609", "0.501887", "0.49983633", "0.49451178", "0.4942335", "0.4926287", "0.49210778", "0.49129787", "0.4898366", "0.4867486", "0.4866658", "0.4837694", "0.4836859", "0.48289394", "0.4810238", "0.4802484", "0.4798589", "0.4793003", "0.47872978", "0.4723937", "0.4715354", "0.46954116", "0.46763593", "0.46698537", "0.46492487", "0.46303856", "0.46262583", "0.46107918", "0.45949292", "0.45945522", "0.45923328", "0.45860234", "0.4585459", "0.45819953", "0.4581013", "0.45769826", "0.4576872", "0.45759436", "0.45477325", "0.45461816", "0.45459333", "0.45215026", "0.4518049", "0.4513946", "0.45035642", "0.44985664", "0.44873804", "0.44774115", "0.4470191", "0.44405764", "0.44177705", "0.44154203", "0.4411904", "0.44085416", "0.4402407", "0.44022995", "0.44012097", "0.43961772", "0.43900594", "0.4372952", "0.43724614", "0.43708697", "0.43696657", "0.4366933", "0.43579754", "0.43488333", "0.43359417", "0.43356648", "0.43354902", "0.43321124", "0.4328144", "0.43256116", "0.43214792", "0.43154567", "0.43123665", "0.4305898", "0.43045652", "0.42962894" ]
0.7779007
0
Creates a WirePacket from an existing Minecraft packet
public static WirePacket fromPacket(Object packet) { checkNotNull(packet, "packet cannot be null!"); checkArgument(MinecraftReflection.isPacketClass(packet), "packet must be a Minecraft packet"); PacketType type = PacketType.fromClass(packet.getClass()); int id = type.getCurrentId(); ByteBuf buffer = PacketContainer.createPacketBuffer(); Method write = MinecraftMethods.getPacketWriteByteBufMethod(); try { write.invoke(packet, buffer); } catch (ReflectiveOperationException ex) { throw new RuntimeException("Failed to serialize packet contents.", ex); } return new WirePacket(id, getBytes(buffer)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static WirePacket fromPacket(PacketContainer packet) {\n\t\tcheckNotNull(packet, \"packet cannot be null!\");\n\n\t\tint id = packet.getType().getCurrentId();\n\n\t\tByteBuf buffer = PacketContainer.createPacketBuffer();\n\t\tMethod write = MinecraftMethods.getPacketWriteByteBufMethod();\n\n\t\ttry {\n\t\t\twrite.invoke(packet.getHandle(), buffer);\n\t\t} catch (ReflectiveOperationException ex) {\n\t\t\tthrow new RuntimeException(\"Failed to serialize packet contents.\", ex);\n\t\t}\n\n\t\treturn new WirePacket(id, getBytes(buffer));\n\t}", "public Packet createPacket() {\n\t\treturn new Packet((ByteBuffer) buffer.flip());\n\t}", "RS3PacketBuilder buildPacket(T node);", "public abstract ByteBuffer getPacket();", "public MAVLinkPacket pack(){\n MAVLinkPacket packet = new MAVLinkPacket(MAVLINK_MSG_LENGTH);\n packet.sysid = 255;\n packet.compid = 190;\n packet.msgid = MAVLINK_MSG_ID_GIMBAL_DEVICE_INFORMATION;\n \n packet.payload.putUnsignedInt(time_boot_ms);\n \n packet.payload.putUnsignedInt(firmware_version);\n \n packet.payload.putFloat(tilt_max);\n \n packet.payload.putFloat(tilt_min);\n \n packet.payload.putFloat(tilt_rate_max);\n \n packet.payload.putFloat(pan_max);\n \n packet.payload.putFloat(pan_min);\n \n packet.payload.putFloat(pan_rate_max);\n \n packet.payload.putUnsignedShort(cap_flags);\n \n \n for (int i = 0; i < vendor_name.length; i++) {\n packet.payload.putUnsignedByte(vendor_name[i]);\n }\n \n \n \n for (int i = 0; i < model_name.length; i++) {\n packet.payload.putUnsignedByte(model_name[i]);\n }\n \n \n return packet;\n }", "private void makePacket() throws PacketMappingNotFoundException {\r\n\t\tfinal PacketIdMapping mapping = mapCon.getMappingFor(packetId); //Mapping for id\r\n\t\tif(mapping == null)\r\n\t\t\tthrow new PacketMappingNotFoundException(\"mapping not found for id while constructing packet\", packetId);\r\n\t\tfinal Packet newPacket = mapping.getNewInstance(); //make a packet\r\n\t\tfinal ReadableArrayData packetData = new ReadableArrayData(tempData, false);\r\n\t\tnewPacket.readData(packetData); //read the packet data\r\n\t\tfinishedPacketReceiver.accept(newPacket); //send the packet to the connection\r\n\t}", "protected abstract void createPacketData();", "public Packet() {\n\t}", "private static DatagramPacket createPacket(byte[] data, SocketAddress remote) {\r\n\t\tDatagramPacket packet = new DatagramPacket(data, data.length, remote);\r\n\t\treturn packet;\r\n\t}", "private DatagramPacket injectSourceAndDestinationData(DatagramPacket packet)\n\t{\n\t\t\n\t\tbyte[] ipxBuffer = Arrays.copyOf(packet.getData(), packet.getLength());\n\t\tint bufferLength = ipxBuffer.length + 9;\n\t\t\n\t\tbyte[] wrappedBuffer = Arrays.copyOf(ipxBuffer, bufferLength);\n\t\twrappedBuffer[bufferLength - 9] = 0x01;\n\t\twrappedBuffer[bufferLength - 8] = (byte) (packet.getAddress().getAddress()[0]);\n\t\twrappedBuffer[bufferLength - 7] = (byte) (packet.getAddress().getAddress()[1]);\n\t\twrappedBuffer[bufferLength - 6] = (byte) (packet.getAddress().getAddress()[2]);\n\t\twrappedBuffer[bufferLength - 5] = (byte) (packet.getAddress().getAddress()[3]);\n\t\twrappedBuffer[bufferLength - 4] = (byte) (packet.getPort() >> 8);\n\t\twrappedBuffer[bufferLength - 3] = (byte) packet.getPort();\n\t\twrappedBuffer[bufferLength - 2] = (byte) (ipxSocket.getLocalPort() >> 8);\n\t\twrappedBuffer[bufferLength - 1] = (byte) ipxSocket.getLocalPort();\n\t\t\n\t\treturn new DatagramPacket(wrappedBuffer, bufferLength);\n\t}", "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 }", "public abstract Object getVanillaPacket();", "public static Packet deserialize(String data) {\n\t\t\tString hex = data.substring(0, 4);\n\t\t\tString dat = data.substring(4);\n\t\t\treturn new Packet(dat, hex);\n\t\t}", "public static NetPacket fromStringToPacket(String s) {\r\n\t\tSystem.out.println(s);\r\n\t\tString[] allContent = s.split(PACKET_SEPARATOR);\r\n\t\tString[] c = new String[allContent.length - 3];\r\n\t\tfor (int i = 0; i < allContent.length - 3; i++) {\r\n\t\t\tc[i] = allContent[i+3];\r\n\t\t}\r\n\t\tint sender = new Integer(allContent[0]);\r\n\t\tint packet = new Integer(allContent[1]);\r\n\t\tString t = allContent[2];\r\n\t\tNetPacket n = new NetPacket(sender, packet, t, c);\r\n\t\treturn n;\r\n\t}", "protected ILPacket getPacketFromData(String id) \n\t\t\tthrows PacketFormatException, IOException \n\t{\n\t\tthis.buffer.rewind();\n\t\treturn ILPacketFactory.getPacketFromData(this.buffer, id);\n\t}", "public Packet(Packet packetIn) {\n this.id = packetIn.getId();\n this.yCoordinate = packetIn.getyCoordinate();\n this.xCoordinate = packetIn.getxCoordinate();\n this.previousHop = packetIn.getPreviousHop();\n this.sequenceNumber = packetIn.getSequenceNumber();\n this.speed = packetIn.getSpeed();\n this.sourceNode = packetIn.getSourceNode();\n this.packetType = packetIn.getPacketType();\n this.portNumber = packetIn.getPortNumber();\n this.idTo = packetIn.getIdTo();\n this.packetType = packetIn.getPacketType();\n }", "public ProtocolObject unpack(GameTransportPacket packet) {\n ProtocolObject gamePacket;\r\n gamePacket = styxDecoder.unpack(ByteBuffer.wrap(packet.gamedata));\r\n return gamePacket;\r\n }", "void sendRawPacket(UUID uuid, ByteBuf packet) throws IllegalArgumentException;", "public abstract void loadVanillaPacket(Object packet);", "public ef l()\r\n/* 293: */ {\r\n/* 294:240 */ Packet211TileDesc packet = new Packet211TileDesc();\r\n/* 295:241 */ packet.subId = 9;\r\n/* 296:242 */ packet.xCoord = this.l;packet.yCoord = this.m;\r\n/* 297:243 */ packet.zCoord = this.n;\r\n/* 298:244 */ writeToPacket(packet);\r\n/* 299:245 */ packet.encode();\r\n/* 300:246 */ return packet;\r\n/* 301: */ }", "public byte[] createPacket(short packetid, byte[] packetdata){\r\n\t\tshort s = 0;\r\n\t\tbyte[] packet;\r\n\t\tint size = packetdata.length;\r\n\t\t\r\n\t\tif (size < 1){\r\n\t\t\tpacket = new byte[12];\r\n\t\t}else{\r\n\t\t\tpacket = new byte[12+size];\r\n\t\t}\r\n\t\tif (packetid == 2 || packetid == 5 || packetid == 6){\r\n\t\t\tpacket[0] = (byte) 0x00;\r\n\t\t} else packet[0] = (byte) 0x14;\r\n\t\t//Reserved\r\n\t\tpacket[1] = (byte) 0x00;\r\n\t\tpacket[2] = (byte) 0x00;\r\n\t packet[3] = (byte) 0x00;\r\n\t //PacketId\r\n\t s = (byte) packetid;\r\n\t byte[] packet_2 = Util.shortTobyte(s);\r\n\t packet[4] = packet_2[0];\r\n\t packet[5] = packet_2[1];\r\n\t\t//Reserved2\r\n\t\tpacket[6] = (byte) 0x00;\r\n\t packet[7] = (byte) 0x00;\r\n\t //DataSize\r\n\t byte[] packet2 = Util.intTobyte(size);\r\n\t packet[8] = packet2[0];\r\n\t packet[9] = packet2[1];\r\n\t packet[10] = packet2[2];\r\n\t packet[11] = packet2[3];\r\n\t for (int x = 0; x < size; x++){\r\n\t \tpacket[12+x] = packetdata[x];\r\n\t }\r\n\t \r\n\t return packet;\r\n\t}", "@Override\n public PacketCustomPayload decode(PacketBuffer buffer) throws IOException {\n PacketCustomPayload packet = new PacketCustomPayload();\n return packet;\n }", "public void getPackByte(DataPacket packet) {\n\t\t\tint limit = 10;\r\n\t\t\tint newFrameSep = 0x3c;\r\n\t\t\t// bytes avail = packet.getDataSize() - limit;\r\n\t\t\t// write(lbuf, limit, 32)\r\n\t\t\t// write(newFrame)\r\n\t\t\t// limit += 32;\r\n\t\t\t// check packet.getDataSize() - limit > 31\r\n\t\t\tbyte[] lbuf = new byte[packet.getDataSize()];\r\n\t\t\ttry {\r\n\t\t\tif ( packet.getDataSize() > 0)\r\n\r\n\t\t\t\tlbuf = packet.getDataAsArray();\r\n\t\t\t//first frame includes the 1 byte frame header whose value should be used \r\n\t\t\t// to write subsequent frame separators \r\n\r\n\r\n\t\t\t\t\tobuff.write(lbuf, limit, 32);\r\n\r\n\t\t\t\tlimit += 32;\r\n\t\t\t\r\n\t\t do {\r\n\r\n\t\t \t\t obuff.write(newFrameSep); \r\n\t\t\t\t\tobuff.write(lbuf, limit, 31);\r\n\t\t\t\t\tlimit += 31;\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\r\n\t\t \t \r\n\t\t } while (packet.getDataSize() - limit > 31);\t\t\t\t\t\t\t\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}", "public static byte[] createPacket(byte[] data) {\r\n byte[] header = createHeader(seqNo);\r\n byte[] packet = new byte[data.length + header.length]; // data + header\r\n System.arraycopy(header, 0, packet, 0, header.length);\r\n System.arraycopy(data, 0, packet, header.length, data.length);\r\n seqNo = seqNo + 1;\r\n return packet;\r\n }", "public interface Packet {\n /**\n * Read body from byte buffer\n * @param bb \n * @throws java.lang.Exception \n */\n void readBody(ByteBuf bb, TranscoderContext context) throws Exception;\n \n /**\n * Write body to byte buffer\n * @param bb \n * @param context \n * @throws java.lang.Exception \n */\n void writeBody(ByteBuf bb, TranscoderContext context) throws Exception;\n \n /**\n * Calculate and return body size in bytes\n * @param context\n * @return \n */\n int calculateBodyLength(TranscoderContext context);\n \n /**\n * Calculate and set field with body length\n * @param context\n */\n void calculateAndSetBodyLength(TranscoderContext context);\n \n /**\n * Get body length from field\n * @return \n */\n int getBodyLength();\n\n /**\n * Get sequence number field value\n * @return \n */\n int getSequenceNumber();\n \n /**\n * Set sequence number field value\n * @param sequenceNumber \n */\n void setSequenceNumber(int sequenceNumber); \n}", "public AbstractPacketDO getPacket() {\n\t\tString headers = headerTableModel.getHeaders();\n\n\t\t// get the xml content\n\t\tOutputStream os = new ByteArrayOutputStream();\n\t\ttm.prettyPrint(os);\n\t\tString xml = os.toString();\n\t\txml = xml.trim();\n\t\txml += \"\\n\";\n\n\t\tString content = \"\";\n\n\t\tif (headers.contains(\"Content-Length\")) {\n\t\t\tint contentLength = xml.getBytes().length;\n\t\t\theaders = headers.replaceAll(\"Content-Length:\\\\s\\\\d+\",\n\t\t\t\t\tString.format(\"Content-Length: %d\", contentLength));\n\t\t\tcontent = headers + \"\\r\\n\" + xml;\n\t\t} else {\n\t\t\tcontent = headers + \"\\r\\n\";\n\t\t}\n\n\t\tif (packet != null) {\n\t\t\tpacket.setData(content.getBytes());\n\t\t}\n\n\t\treturn packet;\n\t}", "public WirePacket(PacketType type, byte[] bytes) {\n\t\tthis.id = checkNotNull(type, \"type cannot be null\").getCurrentId();\n\t\tthis.bytes = bytes;\n\t}", "public Packet(String data){\n\t\t\tthis(data, CkSum.genCheck(data));\n\t\t}", "public Packet(PacketId packetId, String message)\n {\n this.packetId = packetId;\n this.message = message;\n\n }", "void sendRawPacket(T player, ByteBuf packet) throws IllegalArgumentException;", "FJPacket( AutoBuffer ab, int ctrl ) { _ab = ab; _ctrl = ctrl; }", "public MAVLinkPacket pack(){\n MAVLinkPacket packet = new MAVLinkPacket(MAVLINK_MSG_LENGTH);\n packet.sysid = 1;\n packet.compid = 1;\n packet.msgid = MAVLINK_MSG_ID_BATTERY_batterySTATUS;\n \n packet.payload.putInt(time_total);\n \n packet.payload.putInt(time_remaining);\n \n packet.payload.putByte(battery_remaining);\n \n packet.payload.putUnsignedByte(charge_state);\n \n return packet;\n }", "public void parsePacket(DataInputStream dis) throws IOException {\n\t\tint id = dis.readInt();\r\n\t\t\r\n\t\tif (id == tank.id){\r\n\t\t\treturn;//如果是自己,那么久return\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tint posX = dis.readInt();\r\n\t\tint posY = dis.readInt();\r\n\t\tDirection direction = Direction.values()[dis.readInt()];\r\n\t\tboolean good = dis.readBoolean();\r\nSystem.out.println(\"id:\" + id+\" posX:\" + posX+\" posY:\" + posY + \" direction:\" + direction + \" good:\" + good);\r\n\r\n\r\n\t\t/**\r\n\t\t * 遍历判断List tanks里面有没有这辆坦克,如果存在则break\r\n\t\t * 不存在,再new一辆坦克加入List tanks\r\n\t\t */\r\n\t\tboolean exists = false;\r\n\t\tfor (int i=0;i<tClient.tanks.size();i++){\r\n\t\t\tTank tank = tClient.tanks.get(i);\r\n\t\t\tif (tank.id == id){\r\n\t\t\t\texists = true;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif (!exists){\r\n\t\t\tTankMsg tankMsg = new TankMsg(tClient.tank,tClient);\r\n\t\t\ttClient.nClient.send(tankMsg);\r\n\t\t\t\r\n\t\t\ttClient.tanks.add(new Tank(posX, posY, direction, tClient , good , id));\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "public Packet(int sequenceNumber, String sourceNode, int portNumber, int id, int previousHop, double speed, double xCoordinate, double yCoordinate,\n long currentTime, int packetType) {\n this.sequenceNumber = sequenceNumber;\n this.previousHop = previousHop;\n this.id = id;\n this.speed = speed;\n this.xCoordinate = xCoordinate;\n this.yCoordinate = yCoordinate;\n this.sourceNode = sourceNode;\n this.currentTime = currentTime;\n this.packetType = packetType;\n this.portNumber = portNumber;\n\n idTo = 0;\n }", "protected void buildPacket() throws IOException {\n\t\tByteArrayOutputStream baos = new ByteArrayOutputStream();\n\t\t\n\t\t// write packet\n\t\tbaos.write(SPInstr.USER.getByte()); // username\n\t\tbaos.write(username.getBytes());\n\t\tbaos.write(SPInstr.EOM.getByte());\n\t\tbaos.write(SPInstr.PASS.getByte()); // password\n\t\tbaos.write(password.getBytes());\n\t\tbaos.write(SPInstr.EOM.getByte());\n\t\tbaos.write(SPInstr.EOP.getByte()); // no action required since it is sent from the client\n\t\t\n\t\t// save packet\n\t\tpacket = baos.toByteArray();\n\t}", "public byte[] getFramePacket()\r\n/* 203: */ {\r\n/* 204:164 */ Packet211TileDesc pkt = new Packet211TileDesc();\r\n/* 205:165 */ pkt.subId = 9;\r\n/* 206:166 */ writeToPacket(pkt);\r\n/* 207:167 */ pkt.headout.write(pkt.subId);\r\n/* 208:168 */ return pkt.toByteArray();\r\n/* 209: */ }", "public Packet(int sequenceNumber, String sourceNode, int portNumber, int id, int previousHop, double speed, double xCoordinate, double yCoordinate,\n long currentTime, int packetType, int idTo) {\n this.sequenceNumber = sequenceNumber;\n this.previousHop = previousHop;\n this.id = id;\n this.speed = speed;\n this.xCoordinate = xCoordinate;\n this.yCoordinate = yCoordinate;\n this.sourceNode = sourceNode;\n this.currentTime = currentTime;\n this.packetType = packetType;\n this.portNumber = portNumber;\n this.idTo = idTo;\n\n }", "public static synchronized PacketBase getInstance(WebSocket conn)\n\t{\n\t\t return new PacketEr403(conn);\n\t}", "public static Packet makePacket(String s,boolean check)\r\n\t{\r\n\t\tString a[]=split(s,check);\r\n\t\tswitch(indexOf(prefix,a[0]))\r\n\t\t{\r\n\t\tcase 0:\r\n\t\t\treturn new PacketGGA(a);\r\n\t\tcase 1:\r\n\t\t\treturn new PacketGSA(a);\r\n\t\tcase 2:\r\n\t\t\treturn new PacketGSV(a);\r\n\t\tcase 3:\r\n\t\t\treturn new PacketRMC(a);\r\n\t\tcase 4:\r\n\t\tcase 5:\r\n\t\t\treturn new PacketGLL(a);\r\n\t\tcase 6:\r\n\t\tcase 7:\r\n\t\t\treturn new PacketVTG(a);\r\n\t\tdefault:\r\n\t\t\tthrow new OpenNMEAException(\"Invalid sentence prefix\");\r\n\t\t}\r\n\t}", "private static byte[] serializeRawPacket(OutPacket packet)\n\t\t\tthrows IOException\n\t{\n\t\tByteArrayDataOutput packetOut = ByteStreams.newDataOutput();\n\t\tpacket.write(packetOut);\n\t\treturn packetOut.toByteArray();\n\t}", "Packet[] convertTo17(PacketPlayOutSpawnEntityLiving packet) throws NoSuchFieldException, SecurityException, IllegalArgumentException, IllegalAccessException {\n\t\t\n\t\tint id = (int) Reflection.getValue(\"a\", packet);\n\t\tint x = (int) Reflection.getValue(\"c\", packet);\n\t\tint y = (int) Reflection.getValue(\"d\", packet) + 12;\n\t\tint z = (int) Reflection.getValue(\"e\", packet);\n\t\t\n\t\tDataWatcher readWatcher = (DataWatcher) Reflection.getValue(\"l\", packet);\n\t\tTIntObjectMap<?> datavalues = (TIntObjectMap<?>) Reflection.getValue(\"dataValues\", readWatcher);\n\t\t\n\t\tString text = (String) ((WatchableObject)datavalues.get(2)).b();\n\t\t\n\t\tPacket[] packets = new Packet[3];\n\t\t\n\t\tint witherId = id-1;\n\t\t\n\t\tPacketPlayOutSpawnEntity skull = new PacketPlayOutSpawnEntity();\n\t\t\tReflection.setField(\"a\", skull, witherId);\n\t\t\tReflection.setField(\"b\", skull, (int) x);\n\t\t\tReflection.setField(\"c\", skull, (int)((y/32.0D + 54.45)*32.0D));\n\t\t\tReflection.setField(\"d\", skull, (int) z);\n\t\t\tReflection.setField(\"j\", skull, 66);\n\t\t\n\t\tPacketPlayOutSpawnEntityLiving horse = new PacketPlayOutSpawnEntityLiving();\n\t\t\tDataWatcher watcher = new DataWatcher(null);\n\t\t\tint horseId = id;\n\t\t\twatcher.a(0, (byte)0);\n\t\t\twatcher.a(1, (short)300);\n\t\t\twatcher.a(2, text); // custom name\n\t\t\twatcher.a(10, text); // custom name\n\t\t\twatcher.a(3, (byte)1); // is custom name visible\n\t\t\twatcher.a(11, (byte)1); // is custom name visible\n\t\t\twatcher.a(4, (byte)1); // is silent\n\t\t\twatcher.a(5, (byte)1); // no gravity\n\t\t\twatcher.a(12, -1700000);\n\t\t\t\n\t\t\tReflection.setField(\"a\", horse, horseId);\n\t\t\tReflection.setField(\"b\", horse, 100);\n\t\t\tReflection.setField(\"c\", horse, x);\n\t\t\tReflection.setField(\"d\", horse, y);\n\t\t\tReflection.setField(\"e\", horse, z);\n\t\t\tReflection.setField(\"l\", horse, watcher);\n\t\t \n\t\tPacketPlayOutAttachEntity attach = new PacketPlayOutAttachEntity();\n\t\t\tReflection.setField(\"b\", attach, horseId);\n\t\t\tReflection.setField(\"c\", attach, witherId);\n\t\t\n\t\tpackets[0] = skull;\n\t\tpackets[1] = horse;\n\t\tpackets[2] = attach;\n\t\t\n\t\treturn packets;\n\t}", "public void processPacket(String packet) {\n try {\n Log.e(\"info\", packet);\n JSONObject obj = new JSONObject(packet);\n JSONObject toSend = new JSONObject();\n String id = obj.getString(\"packet\");\n\n\n\n if (id.equals(\"acknowledge\")) {\n LocalPlayer ply = new LocalPlayer(activity);\n ply.identifier = socket.toString();\n ply.socket = socket;\n activity.playerMap.put(ply.identifier, ply);\n ply.latitude = 0;\n ply.longitude = 0;\n ply.bomb = false;\n ply.name = obj.getString(\"name\");\n ply.update();\n\n JSONObject playerObj = new JSONObject();\n\n playerObj.put(\"identifier\", ply.identifier);\n playerObj.put(\"latitude\", ply.latitude);\n playerObj.put(\"longitude\", ply.longitude);\n playerObj.put(\"name\", ply.name);\n playerObj.put(\"bomb\", ply.bomb);\n toSend.put(\"player\", playerObj);\n\n server.sendPacket(socket, \"initialize\", toSend);\n }\n else if (id.equals(\"bomb\")) {\n for (HashMap.Entry<String, LocalPlayer> entry : activity.playerMap.entrySet()) {\n entry.getValue().bomb = false;\n }\n LocalPlayer ply = activity.playerMap.get(obj.getString(\"identifier\"));\n if (ply.identifier.equals(activity.selfPlayer))\n Toast.makeText(activity, \"You got the bomb\", Toast.LENGTH_LONG).show();\n\n if (ply != null) {\n ply.bomb = true;\n }\n }\n else if (id.equals(\"location\")) {\n LocalPlayer ply = activity.playerMap.get(socket.toString());\n if (ply != null) {\n ply.longitude = obj.getDouble(\"longitude\");\n ply.latitude = obj.getDouble(\"latitude\");\n ply.update();\n }\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }", "public abstract Packet create(final int[] data,\n final int identifier);", "public PacketBuilder() {\n\t\tthis(1024);\n\t}", "public static OldCalicoPacket getPacket(int com, Object... params)\n\t{\n\t\tint size = getSizeOfPacket(params) + 4;\n\t\tOldCalicoPacket p = new OldCalicoPacket(com, size);\n\t\t\n\t\t//long start = System.nanoTime();\n\t\t\n\t\tfor(int i=0;i<params.length;i++)\n\t\t{\n\t\t\tif ( params[i] instanceof Long )\n\t\t\t{\n\t\t\t\tp.putLong( ((Long) params[i]).longValue() );\n\t\t\t}\n\t\t\telse if( params[i] instanceof Integer)\n\t\t\t{\n\t\t\t\tp.putInt( ((Integer)params[i]).intValue() );\n\t\t\t}\n\t\t\telse if ( params[i] instanceof String )\n\t\t\t{\n\t\t\t\tp.putString( (String) params[i] );\n\t\t\t}\n\t\t\telse if ( params[i] instanceof Float )\n\t\t\t{\n\t\t\t\tp.putFloat( ((Float)params[i]).floatValue() );\n\t\t\t}\n\t\t\telse if ( params[i] instanceof Double )\n\t\t\t{\n\t\t\t\tp.putDouble( ((Double)params[i]).doubleValue() );\n\t\t\t}\n\t\t\telse if ( params[i] instanceof Short )\n\t\t\t{\n\t\t\t\tp.putShort( ((Short) params[i]).shortValue() );\n\t\t\t}\n\t\t\telse if ( params[i] instanceof Character )\n\t\t\t{\n\t\t\t\tp.putChar( ((Character) params[i]).charValue() );\n\t\t\t}\n\t\t\telse if ( params[i] instanceof Byte )\n\t\t\t{\n\t\t\t\tp.putByte( ((Byte) params[i]).byteValue() );\n\t\t\t}\n\t\t}\n\t\treturn p;\n\t}", "@Override\n public ByteBuffer buildRequestPacket() {\n\n ByteBuffer sendData = ByteBuffer.allocate(128);\n sendData.putLong(this.connectionId); // connection_id - can't change (64 bits)\n sendData.putInt(getActionNumber()); // action we want to perform - connecting with the server (32 bits)\n sendData.putInt(getTransactionId()); // transaction_id - random int we make (32 bits)\n\n return sendData;\n }", "public WirePacket(int id, byte[] bytes) {\n\t\tthis.id = id;\n\t\tthis.bytes = bytes;\n\t}", "public Packet getPacket(long id) throws NegativeValueException,\n\t\t\tPacketException;", "public MAVLinkPacket pack() {\n MAVLinkPacket packet = new MAVLinkPacket(MAVLINK_MSG_LENGTH);\n packet.sysid = 255;\n packet.compid = 190;\n packet.msgid = MAVLINK_MSG_ID_SAFETY_ALLOWED_AREA;\n\n packet.payload.putFloat(p1x);\n\n packet.payload.putFloat(p1y);\n\n packet.payload.putFloat(p1z);\n\n packet.payload.putFloat(p2x);\n\n packet.payload.putFloat(p2y);\n\n packet.payload.putFloat(p2z);\n\n packet.payload.putUnsignedByte(frame);\n\n return packet;\n }", "public String fromPacketToString() {\r\n\t\tString message = Integer.toString(senderID) + PACKET_SEPARATOR + Integer.toString(packetID) + PACKET_SEPARATOR + type + PACKET_SEPARATOR;\r\n\t\tfor (String word:content) {\r\n\t\t\tmessage = message + word + PACKET_SEPARATOR;\r\n\t\t}\r\n\t\treturn message;\r\n\t}", "protected void writeToPacket(NBTTagCompound nbt) {\n }", "public ByteBuffer buildPacket(int encap, short destUdp, short srcUdp) {\n ByteBuffer result = ByteBuffer.allocate(MAX_LENGTH);\n fillInPacket(encap, INADDR_BROADCAST, INADDR_ANY, destUdp,\n srcUdp, result, DHCP_BOOTREQUEST, mBroadcast);\n result.flip();\n return result;\n }", "public static KarelPacket parseFromDatagramPacket(DatagramPacket packet) throws CorruptedPacketException {\n if (packet.getData().length < 9) {\n throw new CorruptedPacketException(\"Corrupted DatagramPacket. Could not parse data.\");\n }\n return new KarelPacket(\n ConnectionId.parseFromDatagramPacket(packet),\n SequenceNumber.parseFromDatagramPacket(packet),\n AcknowledgeNumber.parseFromDatagramPacket(packet),\n FlagNumber.parseFromDatagramPacket(packet),\n PacketData.parseFromDatagramPacket(packet)\n );\n }", "public DatagramPacket createDatagramPacket(InetAddress address, Integer port) {\n byte[] message = this.buildBytes();\n return new DatagramPacket(message, message.length, address, port);\n }", "public Packet(String data, String checksum) {\n\t\t\tthis.data = data;\n\t\t\tthis.checksum = checksum;\n\t\t}", "public static Packet getPacketFromJson(String json) {\n JsonNode node=null;\n try {\n node=mapper.readTree(json);\n String method=node.get(METHOD_FIELD).asText();\n JsonNode data=node.get(DATA_FIELD);\n Object object=null;\n if(!data.toString().isEmpty()) {\n object=getObjectFromJson(data);\n }\n return new Packet(method, object);\n }\n catch(JsonProcessingException e) {\n e.printStackTrace();\n }\n catch(Exception e) {\n return null;\n }\n return null;\n }", "public SyncFluidPacket() {\n }", "public byte[] getNetworkPacket() {\n /*\n The packet layout will be:\n byte(datatype)|int(length of name)|byte[](name)|int(length of value)|byte[](value)|...\n */\n byte[] data = new byte[2];\n int currentPosition = 0;\n \n if(STRINGS.size() > 0) {\n Enumeration enumer = STRINGS.elements();\n while(enumer.hasMoreElements()) {\n if(currentPosition == data.length) {\n data = growArray(data, 1);\n }\n // Add the type\n data[currentPosition] = 0x73;\n currentPosition++;\n\n SimpleMessageObjectStringItem item = (SimpleMessageObjectStringItem) enumer.nextElement();\n int spaceLeft = data.length - currentPosition;\n byte[] name = item.getName().getBytes();\n if(spaceLeft < name.length + 4) {\n data = growArray(data, name.length - spaceLeft + 4);\n }\n \n //Add the length of the name\n byte[] nameLength = DataConversions.getBytes(name.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = nameLength[i];\n currentPosition++;\n }\n \n //Add the name\n for(int i = 0 ; i < name.length ; i++) {\n data[currentPosition] = name[i];\n currentPosition++;\n }\n \n spaceLeft = data.length - currentPosition;\n byte[] value = item.getValue().getBytes();\n if(spaceLeft < value.length + 4) {\n data = growArray(data, value.length - spaceLeft + 4);\n }\n \n //Add the length of the value\n byte[] valueLength = DataConversions.getBytes(value.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = valueLength[i];\n currentPosition++;\n }\n \n //Add the value\n for(int i = 0 ; i < value.length ; i++) {\n data[currentPosition] = value[i];\n currentPosition++;\n }\n }\n }\n \n if(INTS.size() > 0) {\n Enumeration enumer = INTS.elements();\n while(enumer.hasMoreElements()) {\n if(currentPosition == data.length) {\n data = growArray(data, 1);\n }\n // Add the type\n data[currentPosition] = 0x69;\n currentPosition++;\n\n SimpleMessageObjectIntItem item = (SimpleMessageObjectIntItem) enumer.nextElement();\n int spaceLeft = data.length - currentPosition;\n byte[] name = item.getName().getBytes();\n if(spaceLeft < name.length + 4) {\n data = growArray(data, name.length - spaceLeft + 4);\n }\n \n //Add the length of the name\n byte[] nameLength = DataConversions.getBytes(name.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = nameLength[i];\n currentPosition++;\n }\n \n //Add the name\n for(int i = 0 ; i < name.length ; i++) {\n data[currentPosition] = name[i];\n currentPosition++;\n }\n \n spaceLeft = data.length - currentPosition;\n byte[] value = DataConversions.getBytes(item.getValue());\n if(spaceLeft < value.length + 4) {\n data = growArray(data, value.length - spaceLeft + 4);\n }\n \n //Add the length of the value\n byte[] valueLength = DataConversions.getBytes(value.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = valueLength[i];\n currentPosition++;\n }\n \n //Add the value\n for(int i = 0 ; i < value.length ; i++) {\n data[currentPosition] = value[i];\n currentPosition++;\n }\n }\n }\n \n if(LONGS.size() > 0) {\n Enumeration enumer = LONGS.elements();\n while(enumer.hasMoreElements()) {\n if(currentPosition == data.length) {\n data = growArray(data, 1);\n }\n // Add the type\n data[currentPosition] = 0x6C;\n currentPosition++;\n\n SimpleMessageObjectLongItem item = (SimpleMessageObjectLongItem) enumer.nextElement();\n int spaceLeft = data.length - currentPosition;\n byte[] name = item.getName().getBytes();\n if(spaceLeft < name.length + 4) {\n data = growArray(data, name.length - spaceLeft + 4);\n }\n \n //Add the length of the name\n byte[] nameLength = DataConversions.getBytes(name.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = nameLength[i];\n currentPosition++;\n }\n \n //Add the name\n for(int i = 0 ; i < name.length ; i++) {\n data[currentPosition] = name[i];\n currentPosition++;\n }\n \n spaceLeft = data.length - currentPosition;\n byte[] value = DataConversions.getBytes(item.getValue());\n if(spaceLeft < value.length + 4) {\n data = growArray(data, value.length - spaceLeft + 4);\n }\n \n //Add the length of the value\n byte[] valueLength = DataConversions.getBytes(value.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = valueLength[i];\n currentPosition++;\n }\n \n //Add the value\n for(int i = 0 ; i < value.length ; i++) {\n data[currentPosition] = value[i];\n currentPosition++;\n }\n }\n }\n \n if(DOUBLES.size() > 0) {\n Enumeration enumer = DOUBLES.elements();\n while(enumer.hasMoreElements()) {\n if(currentPosition == data.length) {\n data = growArray(data, 1);\n }\n // Add the type\n data[currentPosition] = 0x64;\n currentPosition++;\n\n SimpleMessageObjectDoubleItem item = (SimpleMessageObjectDoubleItem) enumer.nextElement();\n int spaceLeft = data.length - currentPosition;\n byte[] name = item.getName().getBytes();\n if(spaceLeft < name.length + 4) {\n data = growArray(data, name.length - spaceLeft + 4);\n }\n \n //Add the length of the name\n byte[] nameLength = DataConversions.getBytes(name.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = nameLength[i];\n currentPosition++;\n }\n \n //Add the name\n for(int i = 0 ; i < name.length ; i++) {\n data[currentPosition] = name[i];\n currentPosition++;\n }\n \n spaceLeft = data.length - currentPosition;\n byte[] value = DataConversions.getBytes(item.getValue());\n if(spaceLeft < value.length + 4) {\n data = growArray(data, value.length - spaceLeft + 4);\n }\n \n //Add the length of the value\n byte[] valueLength = DataConversions.getBytes(value.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = valueLength[i];\n currentPosition++;\n }\n \n //Add the value\n for(int i = 0 ; i < value.length ; i++) {\n data[currentPosition] = value[i];\n currentPosition++;\n }\n }\n }\n \n if(FLOATS.size() > 0) {\n Enumeration enumer = FLOATS.elements();\n while(enumer.hasMoreElements()) {\n if(currentPosition == data.length) {\n data = growArray(data, 1);\n }\n // Add the type\n data[currentPosition] = 0x66;\n currentPosition++;\n\n SimpleMessageObjectFloatItem item = (SimpleMessageObjectFloatItem) enumer.nextElement();\n int spaceLeft = data.length - currentPosition;\n byte[] name = item.getName().getBytes();\n if(spaceLeft < name.length + 4) {\n data = growArray(data, name.length - spaceLeft + 4);\n }\n \n //Add the length of the name\n byte[] nameLength = DataConversions.getBytes(name.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = nameLength[i];\n currentPosition++;\n }\n \n //Add the name\n for(int i = 0 ; i < name.length ; i++) {\n data[currentPosition] = name[i];\n currentPosition++;\n }\n \n spaceLeft = data.length - currentPosition;\n byte[] value = DataConversions.getBytes(item.getValue());\n if(spaceLeft < value.length + 4) {\n data = growArray(data, value.length - spaceLeft + 4);\n }\n \n //Add the length of the value\n byte[] valueLength = DataConversions.getBytes(value.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = valueLength[i];\n currentPosition++;\n }\n \n //Add the value\n for(int i = 0 ; i < value.length ; i++) {\n data[currentPosition] = value[i];\n currentPosition++;\n }\n }\n }\n \n if(CHARS.size() > 0) {\n Enumeration enumer = CHARS.elements();\n while(enumer.hasMoreElements()) {\n if(currentPosition == data.length) {\n data = growArray(data, 1);\n }\n // Add the type\n data[currentPosition] = 0x63;\n currentPosition++;\n\n SimpleMessageObjectCharItem item = (SimpleMessageObjectCharItem) enumer.nextElement();\n int spaceLeft = data.length - currentPosition;\n byte[] name = item.getName().getBytes();\n if(spaceLeft < name.length + 4) {\n data = growArray(data, name.length - spaceLeft + 4);\n }\n \n //Add the length of the name\n byte[] nameLength = DataConversions.getBytes(name.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = nameLength[i];\n currentPosition++;\n }\n \n //Add the name\n for(int i = 0 ; i < name.length ; i++) {\n data[currentPosition] = name[i];\n currentPosition++;\n }\n \n spaceLeft = data.length - currentPosition;\n byte[] value = DataConversions.getBytes(item.getValue());\n if(spaceLeft < value.length + 4) {\n data = growArray(data, value.length - spaceLeft + 4);\n }\n \n //Add the length of the value\n byte[] valueLength = DataConversions.getBytes(value.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = valueLength[i];\n currentPosition++;\n }\n \n //Add the value\n for(int i = 0 ; i < value.length ; i++) {\n data[currentPosition] = value[i];\n currentPosition++;\n }\n }\n }\n \n if(BYTES.size() > 0) {\n Enumeration enumer = BYTES.elements();\n while(enumer.hasMoreElements()) {\n if(currentPosition == data.length) {\n data = growArray(data, 1);\n }\n // Add the type\n data[currentPosition] = 0x62;\n currentPosition++;\n\n SimpleMessageObjectByteArrayItem item = (SimpleMessageObjectByteArrayItem) enumer.nextElement();\n int spaceLeft = data.length - currentPosition;\n byte[] name = item.getName().getBytes();\n if(spaceLeft < name.length + 4) {\n data = growArray(data, name.length - spaceLeft + 4);\n }\n \n //Add the length of the name\n byte[] nameLength = DataConversions.getBytes(name.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = nameLength[i];\n currentPosition++;\n }\n \n //Add the name\n for(int i = 0 ; i < name.length ; i++) {\n data[currentPosition] = name[i];\n currentPosition++;\n }\n \n spaceLeft = data.length - currentPosition;\n byte[] value = item.getValue();\n if(spaceLeft < value.length + 4) {\n data = growArray(data, value.length - spaceLeft + 4);\n }\n \n //Add the length of the value\n byte[] valueLength = DataConversions.getBytes(value.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = valueLength[i];\n currentPosition++;\n }\n \n //Add the value\n for(int i = 0 ; i < value.length ; i++) {\n data[currentPosition] = value[i];\n currentPosition++;\n }\n }\n }\n\n return data;\n }", "private static InPacket deserializeRawPacket(byte id, byte[] in)\n\t\t\tthrows IOException\n\t{\n\t\ttry\n\t\t{\n\t\t\treturn Packets.constructIncomingPacket(id, ByteStreams.newDataInput(in));\n\t\t}\n\t\tcatch (ReflectiveOperationException e)\n\t\t{\n\t\t\tthrow new IOException(\"Cannot read incoming packet with id \" + id + \" and data \" + Arrays.toString(in) +\n\t\t\t\t\t'.', e);\n\t\t}\n\t}", "private static void processPacket(PacketType packet, JPackage dirPackage, JCodeModel codeModel, boolean fromClient) \n throws JClassAlreadyExistsException\n {\n String packetName = (packet.getInfo() == null || packet.getInfo().getName() == null) ? \"Unknown\" : packet.getInfo().getName();\n String packetNamePrefixed = \"P\" + String.format(\"%03d\", packet.getHeader()) + \"_\" + packetName;\n String packetDescription = (packet.getInfo() == null || packet.getInfo().getDescription() == null || packet.getInfo().getDescription().isEmpty()) ? \"\" : WordUtils.wrap(packet.getInfo().getDescription(), /* maximumLength */50);\n \n JDefinedClass packetClass = dirPackage._class(JMod.FINAL | JMod.PUBLIC, packetNamePrefixed)._implements(GenericAction.class);\n \n LOGGER.info(\"+-Processing packet: {}\", packetNamePrefixed);\n LOGGER.debug(\"|+-Packet description: {}\", packetDescription);\n \n StringBuilder packetJavadoc = \n new StringBuilder(\"Auto-generated by \\\"Packet generator\\\".\")\n .append(\"\\n\").append(packetDescription);\n \n JDocComment jDocComment = packetClass.javadoc();\n jDocComment.add(packetJavadoc.toString());\n \n AtomicInteger numberOfUnknowns = new AtomicInteger(); // unknown field number\n \n // get all fields in this packet\n for (PacketFieldType field : packet.getField()) \n {\n processField(field, packetClass, codeModel, numberOfUnknowns, fromClient);\n }\n \n // generate the header method\n packetClass\n .method(JMod.PUBLIC, short.class, \"getHeader\")\n .body()\n ._return(JExpr.lit(packet.getHeader().intValue()));\n \n // generate getters, setters\n for (JFieldVar fieldVar : packetClass.fields().values())\n {\n processAccessors(fieldVar, packetClass, fromClient);\n }\n }", "public Packet parse(final int[] data) {\n int protocol = (data[0] << 8) | data[1];\n int[] payload = Arrays.copyOfRange(data, 2, data.length);\n PacketFactory factory = this.packetFactories.get(protocol);\n return factory.create(payload);\n }", "public Packet(int PCKT_RI_, int PCKT_SRC_ID_, int pcktNr_, int sizeInBits_, double tCreation_){\r\n\t\tPCKT_RI=PCKT_RI_;\r\n\t\tPCKT_SRC_ID=PCKT_SRC_ID_;\r\n\t\tpcktNr=pcktNr_;\r\n\t\tsizeInBits=sizeInBits_;\r\n\t\ttCreation=tCreation_;\r\n\t}", "public RawPacket(String subChannel) {\n this.subChannel = subChannel;\n }", "public NbMessage(short[] packet) {\n /**\n * Parse using shorts\n */\n this.packet = packet;\n byte header = (byte) ((packet[0] & 0b1111000000000000) >> 12);\n this.isValid = (header == DATA_HEADER);\n this.subheader = (packet[0] & 0b0000111000000000) >> 9;\n this.channel = (packet[0] & 0b0000000111000000) >> 6;\n this.header = (packet[0] & 0b1111000000000000) >> 12;\n this.data = packet[1];\n }", "public ChatReceivePacket(ChatReceivePacket packet) {\n super(packet);\n this.messageContext = packet.getMessageContext();\n this.clientId = packet.getClientId();\n this.fromName = packet.getFromName();\n this.message = packet.getMessage();\n }", "public Message(Socket s, Packet p) {\n // userName = \"\";\n socket = s;\n packet = p;\n }", "void sendPacketToPlayer(Player player, Object packet);", "public Packet(final long unique) {\r\n\t\ttype = EvidenceType.NONE;\r\n\t\tcommand = EvidenceBuilder.LOG_CREATE;\r\n\t\tid = unique;\r\n\t\tdata = null;\r\n\t}", "protected void readFromPacket(NBTTagCompound nbt) {\n }", "private FullExtTcpPacket createPacket(\n long dataSizeByte,\n long sequenceNumber,\n long ackNumber,\n boolean ACK,\n boolean SYN,\n boolean ECE\n ) {\n return new FullExtTcpPacket(\n flowId, dataSizeByte, sourceId, destinationId,\n 100, 80, 80, // TTL, source port, destination port\n sequenceNumber, ackNumber, // Seq number, Ack number\n false, false, ECE, // NS, CWR, ECE\n false, ACK, false, // URG, ACK, PSH\n false, SYN, false, // RST, SYN, FIN\n congestionWindow, 0 // Window size, Priority\n );\n }", "public static PacketSource makePacketSource(String name) {\n\tif (name == null)\n\t name = \"sf@localhost:9001\"; // default source\n\n\tParseArgs parser = new ParseArgs(name, \"@\");\n\tString source = parser.next();\n\tString args = parser.next();\n\tPacketSource retVal = null;\n\t\n\n\tif (source.equals(\"sf\"))\n\t retVal = makeArgsSF(args);\n\tif (source.equals(\"old-sf\"))\n\t retVal = makeArgsOldSF(args);\n\tif (source.equals(\"dummy\"))\n\t retVal = makeDummy();\n\tif (source.equals(\"old-serial\"))\n\t retVal = makeArgsOldSerial(args);\n\tif (source.equals(\"old-network\"))\n\t retVal = makeArgsOldNetwork(args);\n\tif (source.equals(\"serial\"))\n\t retVal = makeArgsSerial(args);\n\tif (source.equals(\"network\"))\n\t retVal = makeArgsNetwork(args);\n\tif (source.equals(\"tossim-serial\"))\n\t retVal = makeArgsTossimSerial(args);\n\tif (source.equals(\"tossim-radio\"))\n\t retVal = makeArgsTossimRadio(args);\n\t//System.err.println(\"Built a Packet source for \"+Platform.getPlatformName(retVal.getPlatform()));\n\treturn retVal;\n }", "public void createCharacterUpdatePacket(int id, int respect, float x, float y) {\n\t\tint size = (3 * (Integer.SIZE / 8)) + (2 * (Float.SIZE / 8));\n\t\tByteBuffer buffer = ByteBuffer.allocate(size);\n\t\tbuffer.putInt(CHARACTER_UPDATE).putInt(id).putInt(respect).putFloat(x).putFloat(y).flip();\n\t\tbytes = buffer.array();\n\t}", "@Override\n public ChatReceivePacket copy() {\n return new ChatReceivePacket(this);\n }", "public static KarelPacket createOpeningPacket(PacketData packetData) {\n return new KarelPacket(\n new ConnectionId(0x0, 0x0, 0x0, 0x0),\n new SequenceNumber(0x0, 0x0),\n new AcknowledgeNumber(0x0, 0x0),\n FlagNumber.createOpeningFlag(),\n packetData\n );\n }", "public Packet(int ID_, Type type_, String message_, int destinationID)\r\n\t{\r\n\t\tthis.ID = ID_;\r\n\t\tthis.type = type_;\r\n\t\tthis.message = message_;\r\n\t\tthis.dID = destinationID;\r\n\t}", "@SuppressWarnings(\"rawtypes\")\r\n private static NordeaPaymentPacket getNordeaPaymentPacketInstance(String packetId, Algorithm algorithm) {\r\n try {\r\n Class<?> classes[] = new Class[] { String.class, Algorithm.class };\r\n Constructor<?> constructor = NordeaPaymentPacket.class.getDeclaredConstructor(classes);\r\n Object obj[] = new Object[] { packetId, algorithm };\r\n return (NordeaPaymentPacket) constructor.newInstance(obj);\r\n } catch (Exception ex) {\r\n return null;\r\n }\r\n }", "public CapsPacketExtension()\n {\n }", "private static InPacket deserializePacket(ByteArrayDataInput in)\n\t\t\tthrows IOException\n\t{\n\t\tbyte id = in.readByte();\n\t\tint len = in.readInt();\n\t\tbyte[] array = new byte[len];\n\t\tin.readFully(array);\n\n\t\treturn deserializeRawPacket(id, array);\n\t}", "public static PacketSource makePacketSource() {\n\treturn makePacketSource(Env.getenv(\"MOTECOM\"));\n }", "void sendPacket(Player player, Object packet);", "public static ItemStack createStackFromTileEntity (TileEntity tile) {\n \n final ItemStack stack = new ItemStack(tile.getBlockType(), 1, tile.getBlockMetadata());\n prepareDataTag(stack);\n final NBTTagCompound tileTag = tile.writeToNBT(new NBTTagCompound());\n stack.getTagCompound().setTag(\"TileData\", tileTag);\n return stack;\n }", "public LCMultiblockPacket() {\n\t}", "private static byte[] createPacket(byte[] data, int destinationPort) {\n\n byte[] send = new byte[28];\n\n send[0] = (byte) ((4 << 4) + 5); // Version 4 and 5 words\n send[1] = 0; // TOS (Don't implement)\n send[2] = 0; // Total length\n send[3] = 22; // Total length\n send[4] = 0; // Identification (Don't implement)\n send[5] = 0; // Identification (Don't implement)\n send[6] = (byte) 0b01000000; // Flags and first part of Fragment offset\n send[7] = (byte) 0b00000000; // Fragment offset\n send[8] = 50; // TTL = 50\n send[9] = 0x11; // Protocol (UDP = 17)\n send[10] = 0; // CHECKSUM\n send[11] = 0; // CHECKSUM\n send[12] = (byte) 127; // 127.0.0.1 (source address)\n send[13] = (byte) 0; // 127.0.0.1 (source address)\n send[14] = (byte) 0; // 127.0.0.1 (source address)\n send[15] = (byte) 1; // 127.0.0.1 (source address)\n send[16] = (byte) 0x2d; // (destination address)\n send[17] = (byte) 0x32; // (destination address)\n send[18] = (byte) 0x5; // (destination address)\n send[19] = (byte) 0xee; // (destination address)\n\n short length = (short) (28 + data.length); // Quackulate the total length\n byte right = (byte) (length & 0xff);\n byte left = (byte) ((length >> 8) & 0xff);\n send[2] = left;\n send[3] = right;\n\n short checksum = calculateChecksum(send); // Quackulate the checksum\n\n byte second = (byte) (checksum & 0xff);\n byte first = (byte) ((checksum >> 8) & 0xff);\n send[10] = first;\n send[11] = second;\n\n /*\n * UDP Header\n * */\n short udpLen = (short) (8 + data.length);\n byte rightLen = (byte) (udpLen & 0xff);\n byte leftLen = (byte) ((udpLen >> 8) & 0xff);\n\n send[20] = (byte) 12; // Source Port\n send[21] = (byte) 34; // Source Port\n send[22] = (byte) ((destinationPort >> 8) & 0xff); // Destination Port\n send[23] = (byte) (destinationPort & 0xff); // Destination Port\n send[24] = leftLen; // Length\n send[25] = rightLen; // Length\n send[26] = 0; // Checksum\n send[27] = 0; // Checksum\n\n /*\n * pseudoheader + actual header + data to calculate checksum\n * */\n byte[] checksumArray = new byte[12 + 8]; // 12 = pseudoheader, 8 = UDP Header\n checksumArray[0] = send[12]; // Source ip address\n checksumArray[1] = send[13]; // Source ip address\n checksumArray[2] = send[14]; // Source ip address\n checksumArray[3] = send[15]; // Source ip address\n checksumArray[4] = send[16]; // Destination ip address\n checksumArray[5] = send[17]; // Destination ip address\n checksumArray[6] = send[18]; // Destination ip address\n checksumArray[7] = send[19]; // Destination ip address\n checksumArray[8] = 0; // Zeros for days\n checksumArray[9] = send[9]; // Protocol\n checksumArray[10] = send[24]; // Udp length\n checksumArray[11] = send[25]; // Udp length\n // end pseudoheader\n checksumArray[12] = send[20]; // Source Port\n checksumArray[13] = send[21]; // Source Port\n checksumArray[14] = send[22]; // Destination Port\n checksumArray[15] = send[23]; // Destination Port\n checksumArray[16] = send[24]; // Length\n checksumArray[17] = send[25]; // Length\n checksumArray[18] = send[26]; // Checksum\n checksumArray[19] = send[27]; // Checksum\n // end actual header\n checksumArray = concatenateByteArrays(checksumArray, data); // Append data\n\n short udpChecksum = calculateChecksum(checksumArray);\n byte rightCheck = (byte) (udpChecksum & 0xff);\n byte leftCheck = (byte) ((udpChecksum >> 8) & 0xff);\n\n send[26] = leftCheck; // Save checksum\n send[27] = rightCheck; // Save checksum\n\n send = concatenateByteArrays(send, data);\n\n return send;\n }", "public RequestPacket(String protocol) {\n super();\n parseProtocol(protocol);\n }", "private void formWriteBegin() {\n\t\tsendData = new byte[4];\n\t\tsendData[0] = 0;\n\t\tsendData[1] = 4;\n\t\tsendData[2] = 0;\n\t\tsendData[3] = 0;\n\t\t\n\t\t// Now that the data has been set up, let's form the packet.\n\t\tsendPacket = new DatagramPacket(sendData, 4, receivePacket.getAddress(),\n\t\t\t\treceivePacket.getPort());\t\n\t}", "public static byte[] createPacket(int psecret, int step, int studentID, byte[] payload) {\n\t\tbyte[] data = new byte[(int) (4*(Math.ceil((ServerValuesHolder.HEADER_LENGTH + payload.length)/4.0)))];\n\t\tbyte[] header = createHeader(payload.length, psecret, step, studentID);\n\t\t\n\t\tSystem.arraycopy(header, 0, data, 0, header.length);\n\t\tSystem.arraycopy(payload, 0, data, header.length, payload.length);\n\t\t\n\t\treturn data;\n\t}", "public PingWebSocketFrame(ByteBuf binaryData) {\n/* 40 */ super(binaryData);\n/* */ }", "public static KarelPacket createPacket(ConnectionId id,\n SequenceNumber sq,\n AcknowledgeNumber ack,\n FlagNumber flag,\n PacketData data) {\n return new KarelPacket(id, sq, ack, flag, data);\n }", "public MAVLinkPacket pack() {\n\t\tMAVLinkPacket packet = new MAVLinkPacket();\n\t\tpacket.len = MAVLINK_MSG_LENGTH;\n\t\tpacket.sysid = 255;\n\t\tpacket.compid = 190;\n\t\tpacket.msgid = MAVLINK_MSG_ID_PROPELLER;\n\t\tpacket.payload.putFloat(propeller1);\n\t\tpacket.payload.putFloat(propeller2);\n\t\tpacket.payload.putFloat(propeller3);\n\t\tpacket.payload.putFloat(propeller4);\n\n\t\treturn packet;\n\t}", "public static PacketSource makeNetwork(String host, int port, int platform) {\n\treturn new Packetizer(\"network@\" + host + \":\" + port,\n\t\t\t new NetworkByteSource(host, port), platform);\n }", "public Packet(int source, int dest, int DSCP){\r\n\t\ttry{\r\n\t\t\tthis.source = source;\r\n\t\t\tthis.dest = dest;\r\n\t\t\tthis.DSCP = DSCP;\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public static PacketSource makeOldNetwork(String host, int port,\n\t\t\t\t\t int packetSize) {\n\treturn new BrokenPacketizer(\"old-network@\" + host + \":\" + port,\n\t\t\t\t packetSize,\n\t\t\t\t new NetworkByteSource(host, port));\n }", "public PacketHandler() {}", "void setPacket(byte[] packet) {\n mPacket = packet;\n mSrcIpAddress = Arrays.copyOfRange(mPacket, IP_SRC_IP_ADDRESS_INDEX, IP_SRC_IP_ADDRESS_INDEX + IP_ADDRESS_LENGTH);\n mDstIpAddress = Arrays.copyOfRange(mPacket, IP_DST_IP_ADDRESS_INDEX, IP_DST_IP_ADDRESS_INDEX + IP_ADDRESS_LENGTH);\n mPayload = Arrays.copyOfRange(mPacket, getIpHeaderLength() + getTransportLayerHeaderLength(), getTotalLength());\n }", "private DAPMessage constructFrom(DatabaseTableRecord record) {\n return DAPMessage.fromXML(record.getStringValue(CommunicationNetworkServiceDatabaseConstants.DAP_MESSAGE_DATA_COLUMN_NAME));\n }", "public DatagramPacket make_data_packet(char sender, int seq, char dest, \n String msg, String path) {\n ByteArrayOutputStream os= new ByteArrayOutputStream();\n DataOutputStream dos= new DataOutputStream(os);\n try {\n dos.writeByte(Router.PKT_DATA);\n dos.writeChar(sender);\n dos.writeInt(seq);\n dos.writeChar(dest);\n dos.writeShort(msg.length());\n dos.writeBytes(msg);\n dos.writeByte(path.length()+1);\n dos.writeBytes(path+win.local_name());\n }\n catch (IOException e) {\n Log(\"Error encoding data packet: \"+e+\"\\n\");\n return null;\n }\n byte [] buffer = os.toByteArray();\n return new DatagramPacket(buffer, buffer.length);\n }", "@SuppressWarnings(\"rawtypes\")\n \tpublic static Class getPacketClass() {\n \t\treturn getMinecraftClass(\"Packet\");\n \t}", "private SourceRconPacketFactory() {\n }", "public PValuePacket(PValuePacket pvalue) {\n\t\tsuper(pvalue);\n\t\tthis.ballot = pvalue.ballot;\n\t\tthis.medianCheckpointedSlot = pvalue.medianCheckpointedSlot;\n\t\tthis.packetType = pvalue.getType();\n\t\tthis.recovery = false; // true only when created from json\n\t}", "public void addPacket(Packet packet, String algo) {\n\n if((packet.getPacketHeight() <= getBinCapacityLeft())) {\n packets.add(packet);\n } else {\n System.err.print(\"Packet cant exceed binHeight\");\n System.err.println(\", Algo :\" + algo);\n }\n\n\n }" ]
[ "0.74315345", "0.72686905", "0.631252", "0.6022499", "0.59786314", "0.59346104", "0.59230435", "0.590772", "0.59049296", "0.5828392", "0.5827021", "0.57710314", "0.5756234", "0.57510346", "0.5701631", "0.5696586", "0.56851953", "0.56757635", "0.56739444", "0.56728965", "0.5664085", "0.5617831", "0.5529867", "0.54762447", "0.54709804", "0.547079", "0.545506", "0.544963", "0.5412542", "0.53899246", "0.5378566", "0.53647053", "0.533501", "0.5333772", "0.5314875", "0.5293399", "0.52510947", "0.52452654", "0.5232297", "0.5220172", "0.52197754", "0.5207227", "0.52031374", "0.5171968", "0.51659846", "0.5148769", "0.5137942", "0.51361704", "0.51311904", "0.51247805", "0.5105813", "0.5095663", "0.5095133", "0.50944656", "0.5086161", "0.5081529", "0.5049729", "0.50496584", "0.5049355", "0.50443", "0.5042817", "0.50258094", "0.5000804", "0.49931458", "0.49675295", "0.49391955", "0.49319685", "0.49314272", "0.49285755", "0.49227998", "0.4921265", "0.49161804", "0.49122858", "0.4900067", "0.48919088", "0.4891667", "0.48890448", "0.48870608", "0.48864892", "0.4884491", "0.48796833", "0.48786086", "0.48782793", "0.48652083", "0.48546734", "0.48538142", "0.4843951", "0.48423466", "0.48392823", "0.48387268", "0.48265496", "0.48164394", "0.48140994", "0.4794764", "0.47920278", "0.47904512", "0.47896478", "0.47873288", "0.4787281", "0.4784042" ]
0.7521827
0
Mutator method for name:String
public void setName(String name) { this.name = name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setName(String name){this.name = name;}", "public void setName(String name){this.name=name;}", "void setName(String name_);", "public final void setName(String name) {_name = name;}", "public void setName(String name);", "public void setName(String name);", "public void setName(String name);", "public void setName(String name);", "public void setName(String name);", "public void setName(String name);", "public void setName(String name);", "public void setName(String name);", "public void setName(String name);", "public void setName(String name);", "public void setName(String name);", "public void setName(final String name);", "public void setName(String n){ name=n; }", "void setName(java.lang.String name);", "void setName(java.lang.String name);", "void setName(java.lang.String name);", "void setName(String name);", "void setName(String name);", "void setName(String name);", "void setName(String name);", "void setName(String name);", "void setName(String name);", "public void setName (String Name);", "public void setName (String Name);", "public void setName (String Name);", "void setName(String strName);", "public void setName(String name){\n this.name = name;\n }", "public void setName(java.lang.String aName);", "public void setName (String newName)\n {\n this.name = newName; \n }", "public void setName(String newname){\n name = newname; \n }", "public abstract void setName(String name);", "public abstract void setName(String name);", "public void setName(String name) { this.name = name; }", "public void setName(String name) { this.name = name; }", "public void setName(String name) { this.name = name; }", "public void setName(String name) { this.name = name; }", "public void setName(java.lang.String value);", "public void setName(java.lang.String value);", "void setName(String s);", "public void setName(String newValue);", "public void setName(String newValue);", "@Override\n public void setName(String name) {\n \n }", "public void setName(String name)\n {\n _name = name;\n }", "public void setName(String new_name){\n this.name=new_name;\n }", "@Override\n public void setName(String name) {\n\n }", "public void setName(String name){\r\n this.name = name;\r\n }", "public void setName(String name){\r\n this.name = name;\r\n }", "public void setName(String name){\r\n this.name = name;\r\n }", "public void setName(String name) {\n if (!name.equals(\"\")) {\r\n this.name = name;\r\n }\r\n\r\n\r\n\r\n\r\n }", "protected abstract void setMyName(String name);", "protected void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\n fName= name;\n }", "public void setName(String s) {\n this.name = s;\n }", "protected abstract void setName(String string);", "public void setName(String name){\n this.name = name;\n }", "public void setName(String name){\n this.name = name;\n }", "public void setName(String name){\n this.name = name;\n }", "public void setName(String name){\n this.name = name;\n }", "public void setName(String name){\n this.name = name;\n }", "public void setName(String name){\n this.name = name;\n }", "public void setName(String name){\n this.name = name;\n }", "@Override\r\n public void setName(String name) {\n }", "@Override\n\tpublic void setName(String name) {\n\t\t\n\t}", "public void setName(final String pName){this.aName = pName;}", "public void setName(String name)\n/* */ {\n/* 84 */ this._name = name;\n/* */ }", "void setName(String name) {\r\n this.name = name;\r\n }", "void setName(String name) {\n this.name = name;\n }", "public void setName(String name) \n {\n this.name = name;\n }", "public void setName(String name)\r\n/* 29: */ {\r\n/* 30:23 */ this.name = name;\r\n/* 31: */ }", "public void setName(String name)\n {\n this.name=name;\n }", "public void setName(String name) {\n this.name = name;\n }", "@Override\n public void setName(String name) {\n this.name = name;\n }", "@Override\n public void setName(String name) {\n this.name = name;\n }", "private void setName(java.lang.String name) {\n System.out.println(\"setting name \"+name);\n this.name = name;\n }", "public void setName(String n);", "void setName(String name)\n {\n this.name = name;\n }", "@Model @Raw\r\n\tprivate void setName(String name) {\r\n\t\tif (isValidName(name)) {\r\n\t\t\tthis.name = name;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.name = getDefaultName();\r\n\t\t}\r\n\t}", "private void setName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n name_ = value;\n }", "private void setName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n name_ = value;\n }", "private void setName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n name_ = value;\n }", "void setName(String name) {\n this.name = name;\n }", "public void setName(String value) {\n this.name = value;\n }", "public void setName(String newname)\n {\n name = newname;\n \n }", "public void setName(String inName)\n {\n name = inName;\n }", "void setName(String name)\n\t{\n\t\t\tthis.name = name;\n\t}", "public void setName(String name) {\n \tthis.name = name;\n }", "public void setName(String name) {\n \tthis.name = name;\n }", "public void setName(String name){\n \t\tthis.name = name;\n \t}", "public boolean setName(String name);", "public boolean setName(String name);", "@JsonSetter(\"name\")\r\n public void setName (String value) { \r\n this.name = value;\r\n }", "@Override\n public void setName(String name) {\n this.name = name;\n }", "@Override\n public void setName(String name) {\n this.name = name;\n }", "public void setName(String inName)\n {\n\tname = inName;\n }", "@VTID(18)\n void setName(\n java.lang.String rhs);", "public void setName(String name)\r\n {\r\n this.name = name;\r\n }", "public void setName(String name)\r\n {\r\n this.name = name;\r\n }" ]
[ "0.78093475", "0.77751553", "0.770874", "0.7682896", "0.76492536", "0.76492536", "0.76492536", "0.76492536", "0.76492536", "0.76492536", "0.76492536", "0.76492536", "0.76492536", "0.76492536", "0.76492536", "0.7643665", "0.7639101", "0.7621607", "0.7621607", "0.7621607", "0.759675", "0.759675", "0.759675", "0.759675", "0.759675", "0.759675", "0.75948566", "0.75948566", "0.75948566", "0.7588399", "0.7563326", "0.7554538", "0.75460106", "0.7546002", "0.75056124", "0.75056124", "0.74799854", "0.74799854", "0.74799854", "0.74799854", "0.7478533", "0.7478533", "0.7469565", "0.7441782", "0.7441782", "0.7438287", "0.7434808", "0.74080545", "0.73958725", "0.7391913", "0.7391913", "0.7391913", "0.7385594", "0.73855674", "0.7350851", "0.7344782", "0.7333169", "0.73315597", "0.73155344", "0.73155344", "0.73155344", "0.73155344", "0.73155344", "0.73155344", "0.73155344", "0.73154247", "0.73149496", "0.7294752", "0.72871345", "0.7286917", "0.72792804", "0.72705126", "0.725917", "0.72528034", "0.7247661", "0.72467774", "0.72467774", "0.72415996", "0.7239289", "0.72382516", "0.72231454", "0.7188246", "0.7188246", "0.7188246", "0.7187086", "0.71822244", "0.7179223", "0.71783215", "0.717192", "0.71531504", "0.71531504", "0.71397483", "0.7134757", "0.7134757", "0.71281344", "0.7128029", "0.7128029", "0.71277004", "0.71267503", "0.7113577", "0.7113577" ]
0.0
-1
Accessor method for Employee name
public String getName() { return this.name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getEmployeeName();", "public String getEmployeeName();", "public String getEmployeeName() {\n return employeeName;\n }", "public String getEmployeeName() {\r\n\t\r\n\t\treturn employeeName;\r\n\t}", "public String getEmployeeName() {\r\n\t\treturn employeeName;\r\n\t}", "public java.lang.String getEmployeeName() {\n java.lang.Object ref = employeeName_;\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 employeeName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getEmployeeName() {\n java.lang.Object ref = employeeName_;\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 employeeName_ = s;\n return s;\n }\n }", "public String getEmployee()\r\n/* 38: */ {\r\n/* 39:43 */ return this.employee;\r\n/* 40: */ }", "public String geteName() {\n return eName;\n }", "@Override\n\tpublic java.lang.String getUserName() {\n\t\treturn _employee.getUserName();\n\t}", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "PropertyName getName();", "public java.lang.String getName();", "public Name getName();", "public com.google.protobuf.ByteString\n getEmployeeNameBytes() {\n java.lang.Object ref = employeeName_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n employeeName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "Name getName();", "String getName() ;", "public String getName (){\r\n return firstName + \" \" + lastName;\r\n }", "public com.google.protobuf.ByteString\n getEmployeeNameBytes() {\n java.lang.Object ref = employeeName_;\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 employeeName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();" ]
[ "0.8799741", "0.84693754", "0.79569364", "0.7928073", "0.78593534", "0.75015163", "0.73896396", "0.7083242", "0.6987495", "0.69717413", "0.6911575", "0.6911575", "0.6911575", "0.6911575", "0.6911575", "0.6911575", "0.6911575", "0.6911575", "0.6911575", "0.6911575", "0.6911575", "0.6911575", "0.6911575", "0.6911575", "0.6911575", "0.6911575", "0.6911575", "0.6911575", "0.6911575", "0.6911575", "0.6911575", "0.6911575", "0.6911575", "0.6911575", "0.6911575", "0.6911575", "0.6911575", "0.6911575", "0.6911575", "0.6911575", "0.6911575", "0.6911575", "0.6911575", "0.6911575", "0.6911575", "0.6911575", "0.6911575", "0.6911575", "0.6911575", "0.6911575", "0.6911575", "0.6911575", "0.6911575", "0.6911575", "0.6911575", "0.6911575", "0.6911575", "0.6911575", "0.6911575", "0.6911575", "0.6911575", "0.6911575", "0.6863303", "0.6859891", "0.68560594", "0.68319243", "0.6812746", "0.68036693", "0.6769951", "0.67423093", "0.6709471", "0.6709471", "0.6709471", "0.6709471", "0.6709471", "0.6709471", "0.6709471", "0.6709471", "0.6709471", "0.6709471", "0.6709471", "0.6709471", "0.6709471", "0.6709471", "0.6709471", "0.6709471", "0.6709471", "0.6709471", "0.6709471", "0.6709471", "0.6709471", "0.6709471", "0.6709471", "0.6709471", "0.6709471", "0.6709471", "0.6709471", "0.6709471", "0.6709471", "0.6709471", "0.6709471" ]
0.0
-1
Mutator method for salary:double
public void setSalary(double salary) { this.salary = salary; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSalary(double salary){\r\n this.salary = salary;\r\n }", "public abstract double salary();", "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 getSalary(){\r\n return salary;\r\n }", "@Override\r\n public double getSalary() {\r\n return salary;\r\n }", "public double getSalary() {\r\n return salary;\r\n }", "@Override\n public double getAnnualSalary() {\n return super.getAnnualSalary() + 10000;\n }", "public void calculateSalary() ;", "public double getSalary() {\n return salary;\n }", "public double getSalary() {\n return salary;\n }", "public double getSalary() {\n return salary;\n }", "public void setSalary(double sal) { //salary variable to assign a value\n\t\tsalary = sal;\n\t}", "public double getSalary() {\n\t\treturn super.getSalary() + (super.getSalary() * .20);\n\t}", "@Override\n\tpublic float CalculateSalary() {\n\t\treturn salary;\n\t}", "public double showSalary() {\n return super.showSalary() * 1.2;\n }", "public double getSalary() {\n\t\treturn salary;\n\t}", "private void increment() {\r\n salary = (int) (salary + salary * 0.2);\r\n }", "public double getSalary() {\r\n\t\treturn this.salary;\r\n\t}", "@Override\n public double calculateSalary(){\n return this.horas_trabajadas*EmployeeByHours.VALOR_HORA;\n }", "@Override\n\tprotected double getSalary() {\n\t\treturn 0;\n\t}", "@Override\r\n public int calculateSalary()\r\n {\r\n return weeklySalary*4;\r\n }", "@Override\n\tpublic void computeSalary(int empid) {\n\t\t\n\t}", "public void setSalary(double fromage)\r\n {\r\n mySalary = fromage;\r\n }", "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 }", "float getMonthlySalary();", "@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}", "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 float getAnnualSalary()\n {\n return annualSalary;\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 int getSalary () {\n return salary;\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 }", "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 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 int getSalary() {\n return salary;\n }", "static double tax( double salary ){\n\n return salary*10/100;\n\n }", "int getSalary();", "public double getBiweeklySalary(){\r\n return this.employeeSalary / 26;\r\n }", "public void getSalary() {\n this.payDay(this.monthlyIncome);\n }", "public int annualSalary(){\r\n int aSalary = monthlySalary * MONTHS;\r\n return aSalary;\r\n }", "@Override\n\tpublic double averageSalary() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic double getSalud() {\n\t\treturn this.salud;\n\t}", "public int getSalary()\n\n\t{\n\t\treturn salary;\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 }", "@Override\n\tpublic void setSal(BigDecimal sal) {\n\t\tsuper.setSal(sal);\n\t}", "public void setSalary(int salary) {\n this.salary = salary; // assigning a local variable value to a global variable\r\n }", "@Test\n public void increaseSalaryTest() {\n e1.increaseSalary(15);\n double expected = 2796.80;\n\n assertEquals(\"The expected monthly salary after increasing the salary does not match the actual\",\n expected, e1.monthlySalary(), 0.001);\n }", "public double getMonthlySalary() {\n\t\treturn monthlySalary;\n\t}", "public float getMonthlySalary() {\n return monthlySalary_;\n }", "public void setAmount(double amount) {\nloanAmount = amount;\n}", "@Override \n public double getPaymentAmount() \n { \n return getWeeklySalary(); \n }", "public String getSalary() {\n return salary;\n }", "public String getSalary() {\n return salary;\n }", "public Salaries() {\n\t\tallSalaries= new ArrayList<double[]>();\n\t}", "@Override\n public double earnings() {\n return salary + commission + quantity;\n }", "public double yearlySalary() {\n\t\treturn monthlySalary * 12;\n\t}", "public double getGrossWage(){\r\n\t return (salary + addings);\r\n }", "public void salary(int sal)\n {\n System.out.println(\"Base Salary: \"+ sal);\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}", "private double calculeSalaires() {\n return salaireHoraire * heures;\n }", "void setIncome(double amount);", "@Test\n public void increaseSalaryTest2() {\n e1.increaseSalary(0);\n double expected = 2432;\n\n assertEquals(\"The expected monthly salary after increasing the salary does not match the actual\",\n expected, e1.monthlySalary(), 0.001);\n }", "@Override\n\tpublic double computeMonthlyPremium(double salary) {\n\t\treturn salary*0.08;\n\t}", "@Digits(integer=5,fraction=2)\n\t@Override\n\tpublic BigDecimal getSal() {\n\t\treturn super.getSal();\n\t}", "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 float getMonthlySalary() {\n return monthlySalary_;\n }", "public abstract void raiseSalary();", "public void set(double d);", "public double getAverageMonthlySalary() {\n return averageMonthlySalary;\n }", "public void setPricePerSquareFoot(double newPricePerSquareFoot){\nif(newPricePerSquareFoot > 0){\npricePerSquareFoot = newPricePerSquareFoot;\n}\n}", "private static double checkTheMultiplier(double salaryIncrease, double tax, int salary, double multiplier){\n\n while(salaryIncrease > tax){\n salaryIncrease= salary*multiplier - salary;\n multiplier -= 0.01;\n }\n return salary+salaryIncrease;\n }", "@Override\n public double salario() {\n return 2600 * 1.10;\n }", "public float calculate_salary() {\r\n\t\tfloat calculate = 1000 + this.calculate_benefits();\r\n\t\treturn calculate;\r\n\t}", "@Test\n public void testRaiseSalary() {\n System.out.println(\"raiseSalary\");\n double salaryAdj = 50.0;\n double expResult = 6050.0;\n double result = salary + salaryAdj;\n assertEquals(expResult, result, salary);\n }", "public double earnings() {\n\t\treturn weeklySalary; \n\t}", "public void setPrice(double price){this.price=price;}", "@Override\n\tpublic int calculateSalary() {\n\t\treturn this.getPaymentPerHour() * this.workingHours;\n\t}", "public void set(double val);", "@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 }", "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 void setSaldo(double saldo) {\r\n this.saldo = saldo;\r\n }", "void setSalario(double salario);", "@Override\n public void calculatePayment()\n {\n this.paymentAmount = annualSalary / SALARY_PERIOD;\n }", "@Override\n\tpublic void updateEmployee(int empid, int empNewSalary) {\n\t\t\n\t}", "public void setSaldo(double saldo) {\n this.saldo = saldo;\n }", "@Test\n public void negativeIncrement() {\n manager.raiseSalary(-2.0);\n }", "public double getloanAmount( double loanAmount) {\nreturn loanAmount;\n}", "public double getPricePerSquareFoot(){\nreturn pricePerSquareFoot;\n}", "public double getSaldo() {\r\n return saldo;\r\n }", "public double getSaldo() {\r\n return saldo;\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 String getSalary() {\n return salaryField.getText();\n }", "public void setNewMember(double value) {\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 }", "void setExpenses(double amount);", "public boolean isSalary() {\n return salary;\n }", "public void calculatePayment() {\n\t\tdouble pay = this.annualSalary / NUM_PAY_PERIODS;\n\t\tsuper.setPayment(pay);\n\t}" ]
[ "0.78635234", "0.7820411", "0.76589966", "0.7599539", "0.7599539", "0.75485665", "0.7432911", "0.73804086", "0.73346883", "0.7310981", "0.72700185", "0.72700185", "0.72700185", "0.72584456", "0.7142957", "0.71295553", "0.71292794", "0.7102893", "0.7063634", "0.70292026", "0.69956696", "0.6948102", "0.6880448", "0.6843246", "0.68303573", "0.68259686", "0.6812758", "0.6796246", "0.6766807", "0.67630935", "0.67623055", "0.67623055", "0.6759394", "0.6739474", "0.6680964", "0.6661013", "0.66315985", "0.66207993", "0.6618369", "0.659192", "0.65516585", "0.65080696", "0.650293", "0.64998966", "0.6493722", "0.64765674", "0.6463941", "0.64351237", "0.6410718", "0.63774174", "0.63601863", "0.6351124", "0.63467294", "0.6325158", "0.6304052", "0.6304052", "0.6303363", "0.62986565", "0.62975705", "0.6291462", "0.62777376", "0.6266442", "0.62661594", "0.62652653", "0.62623805", "0.62238574", "0.62203497", "0.62145114", "0.61981344", "0.61939573", "0.6134764", "0.6113757", "0.6106807", "0.6096156", "0.6090133", "0.6083293", "0.60627556", "0.6048203", "0.60421216", "0.60415727", "0.60312766", "0.6008857", "0.600741", "0.59836334", "0.59780157", "0.5967459", "0.59135014", "0.59131855", "0.58975506", "0.58964026", "0.5895959", "0.5881087", "0.5881087", "0.58738565", "0.5872509", "0.5842108", "0.5838101", "0.58340806", "0.5832262", "0.583201" ]
0.7369327
8
Accessor method for Employee salary:double
public double getSalary() { return this.salary; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract double salary();", "public double getSalary(){\r\n return salary;\r\n }", "public double getSalary() {\r\n return salary;\r\n }", "@Override\r\n public double getSalary() {\r\n return salary;\r\n }", "public double getSalary() {\n return salary;\n }", "public double getSalary() {\n return salary;\n }", "public double getSalary() {\n return salary;\n }", "public double getSalary() {\n\t\treturn salary;\n\t}", "float getMonthlySalary();", "@Override\n\tpublic float CalculateSalary() {\n\t\treturn salary;\n\t}", "@Override\n public double calculateSalary(){\n return this.horas_trabajadas*EmployeeByHours.VALOR_HORA;\n }", "public double getBiweeklySalary(){\r\n return this.employeeSalary / 26;\r\n }", "public double getSalary() {\n\t\treturn super.getSalary() + (super.getSalary() * .20);\n\t}", "public float getAnnualSalary()\n {\n return annualSalary;\n }", "public int getSalary () {\n return salary;\n }", "public double showSalary() {\n return super.showSalary() * 1.2;\n }", "@Override\n public double getAnnualSalary() {\n return super.getAnnualSalary() + 10000;\n }", "int getSalary();", "public void calculateSalary() ;", "public int getSalary() {\n return salary;\n }", "public void setSalary(double salary){\r\n this.salary = salary;\r\n }", "public int getSalary()\n\n\t{\n\t\treturn salary;\n\t}", "public void setSalary(double salary) {\r\n this.salary = salary;\r\n }", "@Override\n\tpublic void computeSalary(int empid) {\n\t\t\n\t}", "public void setSalary(double salary) {\n this.salary = salary;\n }", "public void setSalary(double salary) {\n this.salary = salary;\n }", "public void getSalary() {\n this.payDay(this.monthlyIncome);\n }", "public double salaryPay() {\n\t\treturn overtimePay() + getSalary();\n\t}", "public String getSalary() {\n return salary;\n }", "public String getSalary() {\n return salary;\n }", "public double earnings() {\n\t\treturn weeklySalary; \n\t}", "@Override\r\n public int calculateSalary()\r\n {\r\n return weeklySalary*4;\r\n }", "public float getMonthlySalary() {\n return monthlySalary_;\n }", "public double getAverageMonthlySalary() {\n return averageMonthlySalary;\n }", "public double getMonthlySalary() {\n\t\treturn monthlySalary;\n\t}", "@Override\n\tprotected double getSalary() {\n\t\treturn 0;\n\t}", "public void setSalary(double salary) {\r\n\t\tthis.salary = salary;\r\n\t}", "@Override \n public double getPaymentAmount() \n { \n return getWeeklySalary(); \n }", "public String getSalary() {\n return salaryField.getText();\n }", "@Override\n\tpublic double getSalud() {\n\t\treturn this.salud;\n\t}", "public int annualSalary(){\r\n int aSalary = monthlySalary * MONTHS;\r\n return aSalary;\r\n }", "public float getMonthlySalary() {\n return monthlySalary_;\n }", "static double tax( double salary ){\n\n return salary*10/100;\n\n }", "@Override\n\tpublic double averageSalary() {\n\t\treturn 0;\n\t}", "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 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 }", "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 float calculate_salary() {\r\n\t\tfloat calculate = 1000 + this.calculate_benefits();\r\n\t\treturn calculate;\r\n\t}", "public double getGrossWage(){\r\n\t return (salary + addings);\r\n }", "@Override\n public double earnings() {\n return salary + commission + quantity;\n }", "public double yearlySalary() {\n\t\treturn monthlySalary * 12;\n\t}", "public double getAmountEarned(){\r\n return getSalary() + getBonus() + getCommission() * getNumSales();\r\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 }", "@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 }", "public final Integer getAvgSalary() {\n return avgSalary;\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 double annualSalary(){\n double bonus = 0.00;\n\n if(currentStockPrice > 50){\n bonus = 30000;\n }\n\n return (super.annualSalary() + bonus);\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 }", "public double getSaldo() {\r\n return saldo;\r\n }", "public double getSaldo() {\r\n return saldo;\r\n }", "public String getSalaryDay() {\n return salaryDay;\n }", "@Override\r\n\tpublic Employee getEmployeeBySalary(Long salary) {\n\t\treturn employeeDao.getEmployeeBySalary(salary);\r\n\t}", "public double monthlyEarning() {\n\t\tdouble me = 0.0;\r\n\t\tString input = getLevel();\r\n\t\tif ( input == \"GRAD\")\r\n\t\t\tme = Faculty_Monthly_Salary; // interface variable\r\n\t\telse if ( input == \"ASSOC\")\r\n\t\t\tme = Faculty_Monthly_Salary * 1.2;\r\n\t\telse if ( input == \"PROF\")\r\n\t\t\tme = Faculty_Monthly_Salary * 1.4;\r\n\t\treturn me;\r\n\t\t// if i put these in reverse, i wouldve had to intialize at 1\r\n\t\t//so month earning wouldnt be at 0, and then 0 * 1.2 would equal 0 instead of 1.2\r\n\t}", "public double getSaldo() {\n return saldo;\n }", "public double getSaldo() {\n return saldo;\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 static void main(String[] args) {\n\t\tEmployee harry = new Employee(\"Hacker Harry\", 5000);\n\t\tharry.raiseSalary(10);\n\t\tdouble salary = harry.getSalary();\n\t\t\n\t\tSystem.out.println(salary);\n\t\tSystem.out.println(\"The expected: 5500\");\n\t}", "public double monthlyEarnings() {\n\t\tif(level == \"AS\") {\n\t\t\treturn FACULTY_MONTH_SALARY;\n\t\t}\n\t\telse if(level == \"AO\") {\n\t\t\treturn FACULTY_MONTH_SALARY*1.5;\n\t\t}\n\t\telse {\n\t\t\treturn FACULTY_MONTH_SALARY*2;\n\t\t}\n\t}", "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}", "@Digits(integer=5,fraction=2)\n\t@Override\n\tpublic BigDecimal getSal() {\n\t\treturn super.getSal();\n\t}", "@Override\n\tpublic int calculateSalary() {\n\t\treturn this.getPaymentPerHour() * this.workingHours;\n\t}", "public abstract double getValue();", "double getDoubleValue2();", "private double calculeSalaires() {\n return salaireHoraire * heures;\n }", "public double getPricePerSquareFoot(){\nreturn pricePerSquareFoot;\n}", "@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 double getGrossSales() {\n return grossSales;\n}", "public Employee(String name, double salary){\r\n\t\tthis.employeeName = name;\r\n\t\tthis.salary = salary;\r\n\t}", "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 getDouble();", "public void setSalary(double sal) { //salary variable to assign a value\n\t\tsalary = sal;\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 }", "public Double calculateTax(Employee employee) {\n\n Double tax = 0.0;\n\n if ( employee != null ) {\n\n Double salary = employee.getSalary();\n if ( salary > 0 ) {\n\n if ( salary < 500000 ) {\n\n tax = salary * 0.05;\n } else if ( salary > 500000 && salary < 1000000 ) {\n\n tax = salary * 0.1;\n } else {\n\n tax = salary * 0.2;\n }\n }\n }\n\n return tax;\n }", "public double getValue();", "public String getExpectedSalary() {\n\t\treturn expectedSalary;\n\t}", "public String getSalaryRange() {\r\n return salaryRange;\r\n }", "Double getDoubleValue();", "public double doubleValue();", "double getValue();", "double getValue();", "double getValue();", "public void setSalary(double fromage)\r\n {\r\n mySalary = fromage;\r\n }", "public Double getPrice();", "public boolean isSalary() {\n return salary;\n }", "@Test\n public void increaseSalaryTest() {\n e1.increaseSalary(15);\n double expected = 2796.80;\n\n assertEquals(\"The expected monthly salary after increasing the salary does not match the actual\",\n expected, e1.monthlySalary(), 0.001);\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 }", "public double getPrice();", "double getDoubleValue1();", "double getPricePerPerson();" ]
[ "0.8032896", "0.7938929", "0.786293", "0.78363365", "0.7784215", "0.7784215", "0.7784215", "0.7613742", "0.7440015", "0.7433716", "0.7429135", "0.7376578", "0.733728", "0.7300898", "0.72619116", "0.72373176", "0.72307116", "0.7228664", "0.7145202", "0.71403944", "0.71039534", "0.6978221", "0.69704133", "0.696516", "0.6949307", "0.6949307", "0.6943568", "0.693638", "0.69104517", "0.69104517", "0.68980217", "0.68114287", "0.6797192", "0.6796665", "0.67960644", "0.6764745", "0.67407966", "0.67149657", "0.6691037", "0.6664213", "0.66536003", "0.6630082", "0.66241735", "0.6621973", "0.66117966", "0.66117966", "0.6595367", "0.6593757", "0.65829104", "0.65798616", "0.65113753", "0.6507136", "0.64316356", "0.6416831", "0.6406454", "0.6397735", "0.63483673", "0.63250446", "0.63112855", "0.627812", "0.627812", "0.62597036", "0.6258753", "0.62503654", "0.62308526", "0.62308526", "0.62136036", "0.6209877", "0.62055767", "0.6165951", "0.6145344", "0.61400217", "0.6118074", "0.6118032", "0.61161923", "0.61105984", "0.6090594", "0.60760045", "0.606914", "0.6058268", "0.60574716", "0.60493827", "0.6049368", "0.6049103", "0.6041162", "0.6035592", "0.6030016", "0.6028744", "0.6027905", "0.6021151", "0.6021151", "0.6021151", "0.6018992", "0.6011414", "0.6008188", "0.600689", "0.59984916", "0.599779", "0.59879446", "0.5972954" ]
0.76544434
7
toString() to serialize the Employee object
public String toString() { return "Name :" + this.name + "\n" + "Salary :" + this.salary; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\npublic String toString()\n{\n Employee emp = new Employee();\n \n StringBuilder sb = new StringBuilder();\n sb.append(\"Employee{\");\n sb.append(\"Name=\");\n sb.append(emp.getName());\n sb.append(\",Salary complement=\");\n sb.append(emp.getSalary_complement());\n sb.append(\"}\");\n\n return sb.toString();\n}", "@Override\n\tString toString(Employee obj) {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic String toString() {\r\n\t\treturn \"Employee [id=\" + id + \", name=\" + name + \", salary=\" + salary + \", designation=\" + designation\r\n\t\t\t\t+ \", department=\" + department + \", address=\" + address + \"]\";\r\n\t}", "@Override\n\tpublic String toString() {\n\t\tStringBuffer s1 = new StringBuffer();\n\t\ts1.append(\"Employee name : \");\n\t\ts1.append(this.name);\n\t\ts1.append(\" Id is: \");\n\t\ts1.append(Integer.toString(this.id));\n\t\ts1.append(\" salary is \");\n\t\ts1.append(Integer.toString(this.salary));\n\t\treturn s1.toString();\n\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString() + \"\\nEmployees: \" + getEmployees();\n\t}", "@Override\r\n public String toString() {\r\n return \"Employee{\" + super.toString() + \", \" + \"employeeNumber=\" + employeeNumber + \", salary=\" + salary + '}';\r\n }", "public String toString() {\n return \"Employee Id:\" + id + \" Employee Name: \" + name+ \"Employee Address:\" + address + \"Employee Salary:\" + salary;\n }", "public String toString()\n\t//return employee values\n\t{\n\t\treturn \"Id \" + id + \" Start date \" + start + \" Salary \" + salary + super.toString() + \" Job Title \" + jobTitle;\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString() + \"----\" + \"Employee [salary=\" + salary + \", profession=\" + profession + \"]\";\n\t}", "public String toString() {\n\t\treturn \"Employee [firstname=\" + firstname + \", hours=\" + hours\n\t\t\t\t+ \", lastname=\" + lastname + \", payrate=\" + payrate\n\t\t\t\t+ \", totalpay=\" + totalpay + \"]\";\n\t}", "public String toString() {\r\n\t\treturn \"Name : \"+name+\"\\nEmp# : \"+employeeNum;\r\n\t}", "@Override\n public String toString() {\n StringBuilder result = new StringBuilder();\n for (int i = 0; i < employees.length; i++) {\n result.append(employees[i] + \"\\n\");\n }\n return result.toString();\n }", "@Override\r\n\tpublic String toString() {\n\t\treturn \"ID:\" + this.empid + \",NAME:\" + this.name;\r\n\t}", "public String toString(){\n StringBuilder builder = new StringBuilder();\n builder.append(\"Employee :[ Name : \" + name + \", dept : \" + dept + \", salary :\"\n + salary+\", subordinates = \\n\");\n for(Employee e : this.subordinates) {\n builder.append(\"\\t\" + e + \"\\n\");\n }\n builder.append(\" ]\");\n return builder.toString();\n }", "public String toString(){\n String s = \"\";\n s+=\"Employee: \"+name+\"\\n\";\n s+=\"Employee ID: \" + idnum +\"\\n\";\n s+=\"Current Position: \"+position+\"\\n\";\n s+=\"Current Salary: $\" +salary+\"\\n\";\n s+=\"Vacation Balance: \" + vacationBal+ \" days\\n\";\n s+=\"Bonus: $\" +annualBonus+\"\\n\";\n return s;\n }", "@Override\n\tpublic String toString() {\n\t\treturn this.nombre + \" \" + this.apellidos + \" (ID empleado - \" + this.id + \")\";\n\t}", "@Override\n public String toString() {\n // TODO: Using Serializer\n return Serializer.toByteArray(this).toString();\n }", "public String toString(){\n \treturn \"todo: use serialize() method\";\r\n }", "@Override\r\n\tpublic String toString() {\n\t\treturn \"Name is \" + empName + \"\\nEmp ID is \" + empID + \"\\nIncome=\" + annualIncome + \"\\nIncome Tax=\" + incomeTax\r\n\t\t\t\t+ \"\";\r\n\t}", "@Override\n public String toString() {\n return new JSONSerializer().serialize(this);\n }", "@Override\n public String toString() {\n \treturn this.name+\" \"+this.eid;\n }", "@Override\n public String toString() {\n String s = this.empID + \",\" + this.lastName + \",\" + this.firstName;\n s += String.format(\",%09d\", this.ssNum);\n s += \",\" + HRDateUtils.dateToStr(this.hireDate);\n s += String.format(\",%.2f\", this.salary);\n return s;\n\n }", "@Override\n public String toString() {\n String s = this.empID + \",\" + this.lastName + \",\" + this.firstName;\n s += String.format(\",%09d\", this.ssNum);\n s += \",\" + HRUtility.dateToStr(this.hireDate);\n s += String.format(\",%.2f\", this.salary);\n return s;\n }", "@Override\n public String toString() {\n return \"Empleado{\" + \"nombre=\" + nombre + \", edad=\" + edad + \", salario=\" + salario + '}';\n }", "public String toString(){\r\n return getNumber() + \":\" + getLastName() + \",\" + getFirstName() + \",\" + \"Sales Employee\";\r\n }", "public String toString(){\n return \"Name: \"+this.name+\" Salary: \"+this.salary; // returning emp name and salary\r\n }", "@Override\r\n public String toString() {\r\n return JsonSerializer.SerializeObject(this);\r\n }", "@Override\n\tpublic String toString() {\n\t\treturn \"\\ntoStringcalled\\t\"+name+\"\\t\"+age+\"\\t\"+salary;\n\t}", "@Override\n public String toString() {\n ObjectMapper mapper = new ObjectMapper();\n try {\n return mapper.writeValueAsString(this);\n } catch (JsonProcessingException e) {\n return null;\n }\n }", "@Override\n public String toString() {\n return JsonSerializer.SerializeObject(this);\n }", "@Override\n public String toString() {\n return JsonSerializer.SerializeObject(this);\n }", "@Override\n public String toString() {\n return JsonSerializer.SerializeObject(this);\n }", "@Override\n public String toString ()\n {\n String format = \"Employee %s: %s , %s\\n Commission Rate: $%.1f\\n Sales: $%.2f\\n\";\n\n return String.format(format, this.getId(), this.getLastName(), this.getFirstName(), this.getRate(), this.getSales());\n }", "public String toString() {\r\n\t\treturn this.eId + \" \" + this.eName + \" \" + this.eCity + \" \";\r\n\t}", "public String toString()\r\n\t{\r\n\t\tStringBuffer OutString = new StringBuffer();\r\n\t\t// Open tag\r\n\t\tOutString.append(\"<\");\r\n\t\t// Add the object's type\r\n\t\tOutString.append(getType());\r\n\t\t// attach the ID if required.\r\n\t\tif (DEBUG)\r\n\t\t\tOutString.append(getObjID());\r\n\t\t// add the class attribute if required; default: don't.\r\n\t\tif (getIncludeClassAttribute() == true)\r\n\t\t\tOutString.append(getClassAttribute());\r\n\t\t// Add any transformation information,\r\n\t\t// probably the minimum is the x and y values.\r\n\t\t// again this is new to Java 1.4;\r\n\t\t// this function returns a StringBuffer.\r\n\t\tOutString.append(getAttributes());\r\n\t\t// close the tag.\r\n\t\tOutString.append(\">\");\r\n\t\tOutString.append(\"&\"+entityReferenceName+\";\");\r\n\t\t// close tag\r\n\t\tOutString.append(\"</\");\r\n\t\tOutString.append(getType());\r\n\t\tOutString.append(\">\");\r\n\r\n\t\treturn OutString.toString();\r\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn toJSON().toString();\n\t}", "@Override\r\n\tpublic String toString();", "public java.lang.String toString() {\n return super.toString() + \"[EmpleadoPlantilla]\";\n }", "@Override public String toString();", "@Override\n public /*final*/ String toString() {\n return name + \" / \" + address + \" / \" + salary;\n }", "public String toString() {\n\t\treturn this.toJSON().toString();\n\t}", "public String toString() {\n\t\treturn this.toJSON().toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\ttry {\n\t\t\treturn this.toJSONString(0);\n\t\t} catch (Exception e) {\n\t\t\treturn null;\n\t\t}\n\t}", "@Override\r\n String toString();", "public String toString() {\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"M/d/yyyy\");\n\t\treturn employeeName + \" \" + EID + \" \" + address + \" \" + phoneNumber + \" \" + sdf.format(DOB) + \" \" + securityClearance;\n\t}", "@Override\n public String toString() {\n return new Gson().toJson(this);\n }", "public String toString() { return stringify(this, true); }", "@Override\n String toString();", "@Override\n String toString();", "@Override\n\tpublic String toString();", "@Override\n\tString toString();", "@Override\r\n public String toString();", "public String toString() {\n StringBuffer buffer = new StringBuffer();\n\n buffer.append(getClass().getName());\n buffer.append(\"@\");\n buffer.append(Integer.toHexString(hashCode()));\n buffer.append(\" [\");\n buffer.append(objectToString(\"Id\", getId()));\n buffer.append(objectToString(\"ProjectName\", getProjectName()));\n buffer.append(objectToStringFK(\"DataProvider\", getDataProvider()));\n buffer.append(objectToStringFK(\"PrimaryInvestigator\", getPrimaryInvestigator()));\n buffer.append(objectToStringFK(\"CreatedBy\", getCreatedBy()));\n buffer.append(objectToString(\"CreatedTime\", getCreatedTime()));\n buffer.append(\"]\");\n\n return buffer.toString();\n }", "public String toString(){\n return \"Employee First Name: \" + firstName \t\n + \", Surname: \" + secondName\n + \", Hourly Rate \" + hourlyRate;\n }", "public String serialize() {\n Gson gson = new Gson();\n return gson.toJson(this);\n }", "public String serialize() {\n Gson gson = new Gson();\n return gson.toJson(this);\n }", "public String toString() {\r\n\t\tfinal String TAB = \" \";\r\n\r\n\t\tString retValue = \"\";\r\n\r\n\t\tretValue = \"EmploymentInformationForm ( \" + super.toString() + TAB\r\n\t\t\t\t+ \"employmentInfoId = \" + this.employmentInfoId + TAB\r\n\t\t\t\t+ \"userId = \" + this.userId + TAB + \"employerName = \"\r\n\t\t\t\t+ this.employerName + TAB + \"employmentType = \"\r\n\t\t\t\t+ this.employmentType + TAB + \"dateOfJoining = \"\r\n\t\t\t\t+ this.dateOfJoining + TAB + \"dateOfRelieving = \"\r\n\t\t\t\t+ this.dateOfRelieving + TAB + \"designation = \"\r\n\t\t\t\t+ this.designation + TAB + \"supervisorName = \"\r\n\t\t\t\t+ this.supervisorName + TAB + \"employmentAddress = \"\r\n\t\t\t\t+ this.employmentAddress + TAB + \"currentEmployee = \"\r\n\t\t\t\t+ this.currentEmployer + TAB + \" )\";\r\n\r\n\t\treturn retValue;\r\n\t}", "@Override String toString();", "@Override\n public String toString() {\n Gson gson = new Gson();\n\n String json = gson.toJson(this);\n System.out.println(\"json \\n\" + json);\n return json;\n }", "@Override\n public String toString() {\n return gson.toJson(this);\n }", "@Override\n\tpublic String toString() {\n\t\treturn \"ExcelObject { excelPath : \" + excelPath + \" , excelReference : \" + excelReference + \" , wb : \" + wb + \" , sh : \" + sh + \" }\";\n\t}", "@Override\r\n\t\tpublic String toString() {\n\t\t\treturn super.toString();\r\n\t\t}", "@Override\n public String toString();", "@Override\n public String toString();", "@Override\n public String toString() {\n // TODO this is a sudo method only for testing puroposes\n return \"{name: 5aled, age:15}\";\n }", "@Override\n\tpublic String toString() {\n\t\treturn JSON.toJSONString(this,SerializerFeature.WriteMapNullValue,\n\t\t\t\tSerializerFeature.WriteNonStringKeyAsString,\n\t\t\t\tSerializerFeature.WriteNullListAsEmpty,\n\t\t\t\tSerializerFeature.WriteNullNumberAsZero,\n\t\t\t\tSerializerFeature.WriteNullStringAsEmpty);\n\t}", "@Override\n public String toString() {\n return new GsonBuilder().serializeNulls().create().toJson(this).toString();\n }", "@Override\n public String toString(){\n return toString(false);\n }", "@Override\n\tpublic String toString() {\n\t\treturn toText();\n\t}", "@Override\r\n\tpublic String toString() {\n\t\treturn JSONObject.toJSONString(this);\r\n\t}", "@Override\n\t\tpublic String toString() {\n\t\t\treturn super.toString();\n\t\t}", "@Override\n public String toString() {\n try {\n return new ObjectMapper().writeValueAsString(this);\n } catch (final JsonProcessingException ioe) {\n return ioe.getLocalizedMessage();\n }\n }", "@Override\r\n\tpublic String toString() {\n\t\tString str = \"\";\r\n\t\treturn str;\r\n\t}", "@Override\r\n\tpublic String toString() {\n\t\treturn \"\";\r\n\t}", "@Override\n String toString();", "@Override\n\tpublic abstract String toString();", "public String toString() ;", "@Override\n\tpublic String toString() {\n\t\treturn toStringBuilder(new StringBuilder()).toString();\n\t}", "@Override\n public String toString() {\n return toString(false, true, true, null);\n }", "public String toString()\r\n {\r\n return e.toString();\r\n }", "@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}", "@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}", "@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}", "@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}", "@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}", "@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}", "@Override\r\n\tpublic String toString() {\r\n\t\tString entregado;\r\n\t\tif (this.dataDeDevolucao == null)\r\n\t\t\tentregado = \"Emprestimo em andamento\";\r\n\t\telse\r\n\t\t\tentregado = this.dataDevolucaoStr;\r\n\t\treturn \"EMPRESTIMO - De: \" + this.emprestimoid.getNomeDonoItem() + \", Para: \"\r\n\t\t\t\t+ this.emprestimoid.getNomeRequerenteItem() + \", \" + this.emprestimoid.getNomeItem() + \", \"\r\n\t\t\t\t+ this.dataInicialEmprestimoStr + \", \" + this.numeroDiasParaEmprestimo + \" dias, ENTREGA: \" + entregado;\r\n\t}", "@Override\n public String toString() {\n return Objects.toStringHelper(this) //\n .add(Decouverte_.id.getName(), getId()) //\n .add(Decouverte_.dateDecouverte.getName(), getDateDecouverte()) //\n .add(Decouverte_.observations.getName(), getObservations()) //\n .toString();\n }", "@Override\n\tpublic String toString() {\n\t\treturn Json.pretty( this );\n\t}", "@Override\r\n\tpublic String toString() {\n\t\treturn new ToStringCreator(this)\r\n\t\t.append(\"kwamok\", kwamok)\r\n\t\t.append(\"state\", state)\r\n\t\t.append(\"ipheiYMD\", ipheiYMD)\r\n\t\t.append(\"bokheiYMD\", bokheiYMD)\r\n\t\t.append(\"huheiYMD\", huheiYMD)\r\n\t\t.append(\"setCnt\", setCnt)\r\n\t\t.append(\"fstYoil\", fstYoil)\r\n\t\t.append(\"fstEmpKey\", fstEmpKey)\r\n\t\t.append(\"fstEmpName\", fstEmpName)\r\n\t\t.append(\"sndYoil\", sndYoil)\r\n\t\t.append(\"sndEmpKey\", sndEmpKey)\r\n\t\t.append(\"sndEmpName\", sndEmpName)\r\n\t\t.toString();\r\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn \"\";\n\t}", "public String toString() {\n\t\t\r\n\t\treturn String.format(\"N%s. Title is %s, employer is %s,\"\r\n\t\t\t\t+ \"employee grade is %d, salary is %d\",super.toString(), getTitle(), employer, \r\n\t\t\t\temployeeGrade, salary);\r\n\t}", "public String toString() {\n\t}", "String serialize();", "@Override\n public abstract String toString();", "@Override\n public abstract String toString();", "@Override\n public abstract String toString();", "@Override\n public abstract String toString();", "@Override\n public abstract String toString();", "@Override\n public abstract String toString();" ]
[ "0.7873248", "0.7860632", "0.7827513", "0.7681162", "0.7623255", "0.75875026", "0.74455684", "0.7437806", "0.74256957", "0.7421667", "0.72273153", "0.7221301", "0.7200863", "0.71064", "0.7032678", "0.69412714", "0.6922281", "0.6920468", "0.6915868", "0.6875749", "0.68732214", "0.68711495", "0.6853488", "0.6805946", "0.67920303", "0.67476374", "0.6738268", "0.6728822", "0.6710273", "0.6705603", "0.6705603", "0.6705603", "0.668307", "0.666483", "0.66630423", "0.6638101", "0.65890294", "0.65798026", "0.65750325", "0.65691376", "0.6562471", "0.6562471", "0.6560036", "0.65527886", "0.6531289", "0.65287244", "0.6521692", "0.65051097", "0.65051097", "0.64967054", "0.649541", "0.6484915", "0.6463139", "0.64504164", "0.6444509", "0.6444509", "0.64426315", "0.6436012", "0.6429106", "0.64257985", "0.6409835", "0.64053303", "0.63970274", "0.63970274", "0.63797975", "0.6379164", "0.63787055", "0.63774896", "0.6368034", "0.63677824", "0.63676405", "0.63613665", "0.63510436", "0.63462704", "0.6343952", "0.6343424", "0.6330088", "0.6322736", "0.6321421", "0.63203853", "0.6303613", "0.6303613", "0.6303613", "0.6303613", "0.6303613", "0.6303613", "0.6284878", "0.6279691", "0.62778246", "0.62728924", "0.6271988", "0.6271792", "0.62706804", "0.6270051", "0.6268978", "0.6268978", "0.6268978", "0.6268978", "0.6268978", "0.6268978" ]
0.65270454
46
Constructor method: The super method calls the constructor of the super class that this one is extending, in this case Entity;
public Taxi(Game game,int pos) { //Every taxi will have the same size; //Its y position will be in one of the five lines that the road has, when y is 315,349,383,417, or 451 and it will be fixed; //This position is defined according to the pos variable that is passed to it; super(game,0,315+34*pos,car_width,car_height); //Depending on the y position, it will start in one of the sides of the screen and move to the other one; //This if statement also defines the image variable so that the right image is printed on the screen according to its direction; if(y==417||y==451){ speed = game.getDefaultSpeed()+0.3f; x=-width; image = 1; } else{ speed = -(game.getDefaultSpeed()+0.3f); x=game.getWidht()+width; image = 0; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public AbstractEntity() {\r\n\t}", "@Override\n\tpublic void initEntity() {\n\n\t}", "public ExcursionEntity() {\n\t}", "protected Entity() {\n UID = GEN_COUNT;\n GEN_COUNT++;\n }", "public ClientEntity(final Entity e) {\r\n\t\tsuper(e);\r\n\t}", "public MapEntity() {\n\t}", "protected void entityInit() {}", "public UserEntity() {\n\t\tsuper();\n\t}", "public Entity() throws Throwable {\r\n\t\tThingsException.softwareProblem(\"Entry() instantiated with default constructor.\");\r\n\t}", "public Entity(Entity entity) {\n this(entity.getCoordinates(), entity.getIcon(), entity.canChangeRooms());\n }", "public EntityFactoryImpl() {\n\t\tsuper();\n\t}", "public EntityID() {\n }", "public QuestEntity() {\r\n\r\n }", "public ExpertiseEntity() {\n }", "public EntityHierarchyItem() {\n }", "public NamedEntity() {}", "public Entity(String name)\n {\n super(name);\n isAs = Lists.newArrayList();\n }", "public ClientDetailsEntity() {\n\t\t\n\t}", "public Entity() {\n this.position = new Point(0,0);\n realX=0;\n realY=0;\n }", "public MessageEntity() {\n }", "public PedometerEntity() {\n }", "public AccountTypeEntity() { }", "public Entity(double x, double y, double width, double height) {\n\t\tsuper(x, y, width, height);\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic DaoBase() {\n\t\tentityClass = (Class<T>) ((ParameterizedType) getClass()\n\t\t\t\t.getGenericSuperclass()).getActualTypeArguments()[0];\n\t}", "public NamedEntity() { this(\"\", \"\"); }", "protected CompanyJPA() {\n\t}", "private EntityFactory() {}", "protected abstract ENTITY createEntity();", "public AlarmEntity(){}", "public Person(){\r\n\t\tsuper();\r\n\t}", "private AdminEntity() {\n \tsuper();\n\n this.emf = Persistence.createEntityManagerFactory(\"entityManager\");\n\tthis.em = this.emf.createEntityManager();\n\tthis.tx = this.em.getTransaction();\n }", "protected abstract EntityBase createEntity() throws Exception;", "public Article() {\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "public EntityBundleCreate() {}", "public NamedEntity(String name) { this(name, \"\"); }", "public Constructor(){\n\t\t\n\t}", "public SuperProduct() {\n\t\tsuper();\n\t}", "public Company() {\n\t\tsuper();\n\t}", "public Company() {\r\n\t\tsuper();\r\n\t}", "public EntityTransactionException() {\r\n\t\tsuper();\r\n\t}", "public EntityPropertyBean() {}", "public RoleEntity(){}", "public <T> T initialize(T entity);", "public Entity(float x, float y) {\n this.position = new Point(0,0);\n realX = x;\n realY = y;\n determinePosition();\n }", "public Parent() {\n super();\n }", "public Entity(int n, O thing) {\t\r\n\t\t\r\n\t\t// Set fields\r\n\t\tnumeric = n;\r\n\t\tmyThing = thing;\r\n\t\tmyPriority = Priority.ROUTINE;\r\n\t\tmyType = Type.GENERIC;\r\n\t\tmyId = cachedNobody;\r\n\t\tmyCreatorId = cachedNobody;\r\n\t\t\r\n\t\t// Stamp the time.\r\n\t\tstamp = System.currentTimeMillis();\r\n\t}", "public ShopArticle() {\r\n\t\tsuper();\r\n\t}", "protected Product()\n\t{\n\t}", "protected Animal() {\t\r\n\t}", "@Override\n public void initialize(Object entity) {\n entity.hashCode();\n }", "public Article() {\n }", "public Entity newEntity() { return newMyEntity(); }", "public Entity newEntity() { return newMyEntity(); }", "@SuppressWarnings(\"unchecked\")\n\t public AbstractHibernateRepository() {\n\t entityClass = (Class<Entity>) ((ParameterizedType) getClass().getGenericSuperclass()).getActualTypeArguments()[0];\n\t }", "public BudgetData(final Budget entity) {\r\n\t\tsuper(entity);\r\n\t\tthis.entity = entity;\r\n\t\tinitialize();\r\n\t}", "public DefaultEntity(Node<A> node) {\r\n\t\tsuper(node);\r\n\t\tevents = new Vector<Event<A>>();\r\n\t}", "public BaseSLBean(Class<T> entityClass){\n this.entityClass = entityClass;\n }", "void initializeEntity(EntityType entity)\n throws IllegalArgumentException, UnsupportedOperationException;", "public Entity(String emailID,String name){ \n\t\tthis.emailID=emailID;\n\t\tthis.name=name;\n\t}", "protected BaseQuery(EntityDescriptor descriptor) {\n this.descriptor = descriptor;\n }", "public Employee() {\n\t\tsuper();\n\t}", "public Entity( int x, int y){\n this.x = x;\n this.y = y;\n }", "@Override\r\n\tprotected void onManagedInitialize(final IEntity pEntity) {\r\n\r\n\t}", "protected Product() {\n\t\t\n\t}", "public SyncRegistrationEntity() {\n\t\tsuper();\n\t}", "@PostConstruct\n protected void initNewEntity() {\n setNewEntity(getService().create());\n }", "protected ChildType() {/* intentionally empty block */}", "public RepoSQL() { // constructor implicit\r\n\t\t super();\r\n\t }", "public Car() {\r\n super();\r\n }", "public ArticleDao() {\n super(Article.ARTICLE, cn.edu.kmust.flst.domain.flst.tables.pojos.Article.class);\n }", "public void constructor() {\n setEdibleAnimals();\n }", "public Product() {\n\t}", "protected Item() {\n }", "public Supercar() {\r\n\t\t\r\n\t}", "public Item()\n {\n super();\n }", "public Car() {\n super();\n }", "public SecurityContext(Entity entity) {\n\t\tsuper();\n\t\tthis.world = entity.getWorld();\n\t\tthis.whitelist = world.getWhitelist();\n\t\tswitch(entity.getTeam()) {\n\t\tcase AUTHOR:\n\t\t\tthis.securityLevel = SecurityLevel.AUTHOR;\n\t\t\tbreak;\n\t\tcase PLAYER:\n\t\t\tthis.securityLevel = SecurityLevel.TEAM;\n\t\t\tbreak;\n\t\tcase NONE:\n\t\tdefault:\n\t\t\tthis.securityLevel = SecurityLevel.NONE;\n\t\t\tbreak;\n\t\t\n\t\t}\n\t\tthis.entity = entity;\n\t\tthis.team = entity.getTeam();\n\t}", "public BlogDetailDTO (BlogEntity entity) \r\n {\r\n super(entity);\r\n if(entity.getCliente()!=null)cliente = new ClienteDTO(entity.getCliente());\r\n if(entity.getEvento()!=null)evento = new EventoDTO(entity.getEvento());\r\n \r\n }", "public CommonDaoImpl(JpaEntityInformation<T, ID> entityInformation, EntityManager em) {\r\n\t\tsuper(entityInformation, em);\r\n\t\tthis.entityManager = em;\r\n//\t\tthis.entityInformation = entityInformation;\r\n\t}", "public User() {\n\tsuper();\n}", "public Employee() {\r\n\t\t// super should be 1st line \r\n\t\tsuper();\r\n\t\tSystem.out.println(\"Hi i'm from constructor \");\r\n\t}", "public EntityPreym(double x, double y, Level level)\n\t{\n\t\tsuper(x, y, 64, 128, level);\n\t}", "@Override\n public void init(Entity entity) {\n entity.add(AI_DATA, new BuildingSpawnerStratAIData());\n }", "protected BaseGameEntity(int entity_type, int ForcedID) {\n id = ForcedID;\n boundingRadius = 0.0;\n pos = new Vector2D();\n scale = new Vector2D(1.0, 1.0);\n entityType = entity_type;\n tag = false;\n }", "public MachineCoreEntity(MachineTier theTier)\n\t{\n\t\tsuper();\n\t\ttier = theTier;\n\t}", "public Identity()\n {\n super( Fields.ARGS );\n }", "public Entity(int n, O thing, AttributeReader a) throws ThingsException {\t\r\n\t\t\r\n\t\t// Set fields\r\n\t\tnumeric = n;\r\n\t\tmyThing = thing;\r\n\t\tmyPriority = Priority.ROUTINE;\r\n\t\tmyType = Type.GENERIC;\r\n\t\tmyId = cachedNobody;\r\n\t\tmyCreatorId = cachedNobody;\r\n\t\t\r\n\t\t// Stamp the time.\r\n\t\tstamp = System.currentTimeMillis();\r\n\t\t\r\n\t\t// Attributes\r\n\t\tif (a==null) throw new ThingsException(\"Cannot set attribute object as null.\", ThingsException.DATA_ATTRIBUTE_OBJECT_NULL);\r\n\t\tattributes = a;\t\r\n\t}", "public CopyEntityAttributes()\n\t{\n\t\tsetMandatory(ENTITY_PARAM, COPY_MODE);\n\t}", "public CCLayerGradientEntityLoader() {\n\t\tsuper(CCLayerGradientEntityLoader.ENTITY_NAMES);\n\t}", "public Item() {\n\t}", "public Item() {\n\t}", "public Entity(int x, int y){\n \t\tlocation = new Point(x,y);\n \t\twidth = 0;\n\t\theight = 0;\n\t\timage = null;\n\t\t\n\t\tvisible = false;\n \t}", "private GameEntity(){\n\t\tID = -1;\t\t\t// -1 indicates entity does not have a proper ID assigned yet by environment\n\t\toffScreenRemove = true;\n\t\toffScreenWrap = false;\n\t\twallBounce = false;\n\t\tgravity = false;\n\t\tmass = 0;\n\t\txVel = 0;\n\t\tyVel = 0;\n\t\txAccel = 0;\n\t\tyAccel = 0;\n\t\tangVel = 0;\n\t\tangAccel = 0;\n\t\theight = 10;\n\t\twidth = 10;\n\t\toriginalColor = new Color(0,255,0);\n\t\tcolor = originalColor;\n\t\tlifetime = 0;\n\t\tcOR = 1;\n\t\tangle = 0;\n\t\tmaxHealth = -1;\n\t\thealth = -1;\n\t\tinvulnerable = false;\n\t\trecordPath = true;\n\t\tdrawPath = false;\n\t\tdrawTail = true;\n\t\tmyEvents = new ArrayList<GameEvent>();\n\t\tcontactBlock = null;\n\t\tcontactBlockSideNum = -1;\n\t\tcontactBlockVertexNum = -1;\n\t}", "O() { super(null); }", "Entity createEntity();", "public Relationship() {\r\n\t}", "public SurveyEntity(){\n id = -1;\n description = \"No Description Available\";\n date_created = Calendar.getInstance();\n is_default = 0;\n }", "public HierarchyChildVORowImpl() {\r\n }", "public PluginEntity(AdiPluginResources pluginResources, APluginEntityTree pluginEntityTree, String entityURI) {\r\n\t\tthis.pluginResources = pluginResources;\r\n\t\tthis.pluginEntityTree = pluginEntityTree;\r\n\t\tthis.entityURI = entityURI;\r\n\t}", "public EnvEntityClient(EnvEntityServer s) {\n\t\tthis(s.posX, s.posY, s.posZ, s.birthTime);\n\t}" ]
[ "0.7928223", "0.75041735", "0.72660434", "0.72646105", "0.7203623", "0.7176838", "0.7118232", "0.71175444", "0.70924324", "0.7078902", "0.70149535", "0.7002265", "0.6942427", "0.694109", "0.69362766", "0.69346166", "0.69250405", "0.6794834", "0.67552626", "0.67531693", "0.6711714", "0.6679904", "0.6596536", "0.6541687", "0.6537993", "0.65335876", "0.65214384", "0.64994675", "0.6486317", "0.6475863", "0.64680994", "0.64455736", "0.64252377", "0.6421827", "0.63964444", "0.6390426", "0.63751155", "0.63636893", "0.6337212", "0.633675", "0.6329889", "0.6327385", "0.63226664", "0.63123876", "0.6282227", "0.6276311", "0.627573", "0.62606907", "0.6240174", "0.62347394", "0.62124074", "0.619718", "0.6174666", "0.6174666", "0.6160462", "0.6149193", "0.61459625", "0.61453223", "0.6141387", "0.6129178", "0.6121738", "0.6110965", "0.610666", "0.61050195", "0.6095691", "0.6091816", "0.60864055", "0.6077132", "0.6075123", "0.60707587", "0.60563445", "0.6025113", "0.60215354", "0.6016412", "0.6010532", "0.60103214", "0.600356", "0.59989685", "0.5992739", "0.59922373", "0.5988366", "0.59849924", "0.59830475", "0.5982185", "0.5980537", "0.59759045", "0.59751284", "0.59739465", "0.5961803", "0.59546", "0.5954395", "0.5954395", "0.5934169", "0.59339637", "0.59321517", "0.5925029", "0.5924107", "0.5921789", "0.5920677", "0.5911877", "0.5907577" ]
0.0
-1
The tick method upgrades the x position;
@Override public void tick() { x+=speed; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void tick() {\n setPosition(getPosition().add(getSpeed())); \n }", "public void tick() {\r\n tick++;\r\n }", "public void tick() {\r\n }", "public void tick() {\n\t}", "public void tick() {\n\t}", "public void tick(double dt) {\n }", "public void tick(){\n\t\ttickCount++;\n\t\t\n\t\t//if (input.up.isPressed())y-=1;\n\t\t\n\t\t//if (input.down.isPressed())\ty+=1;\n\t\n\t\t//if (input.left.isPressed()){\n\t\t//\tx-=1;\n\t\t//}\n\t\t//if (input.right.isPressed()){\n\t\t//\tx+=1;\n\t\t//}\n\t\t\n\t\t//for (int i =0 ; i<pixels.length; i++){\n\t\t//\tpixels[i]=i+tickCount;\n\t\t//}\n\t\tlevel.tick();\n\t}", "void setTick(int tick);", "public void tick() {\n\t\ttick(1);\n\t}", "void incrementTick();", "public abstract void update(int tick);", "public void tick() {\n\t\ta = Window.frame.getMousePosition();\n\t\tif (a != null) {\n\t\t\tmx = (int)a.getX();\n\t\t\tmy = (int)a.getY();\n\t\t}\n\t\t//System.out.println(a);\n\t}", "void tick(long tickSinceStart);", "@Override\r\n\tpublic void tick() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void tick() {\n\t\t\r\n\t}", "public void tick(Integer tickerPos) {\n ticker.setY(tickerPos * CELL_HEIGHT);\n ticker.toFront();\n\n }", "void tick(long ticksSinceStart);", "@Override\n public void tick() {\n super.tick();\n }", "public void tick(){\n if(healthPoints <= 0){\n sprite.setVisible(false);\n }\n if(isInvulnerable){\n invulnTimer++;\n }\n if(invulnTimer >= invulnTicks){\n setInvulnerable(false);\n invulnTimer = 0;\n }\n //System.out.println(stuckCounter);\n //System.out.println(isStuck);\n\n if(isStuck){\n stuckCounter++;\n }\n else{\n stuckCounter = 0;\n }\n\n x += dx;\n\n y += dy;\n sprite.setY((int) y);\n sprite.setX((int) x);\n }", "public void onUpdateTimerTick() {\r\n\t\tx = x+dx;\r\n\t\ty = y+dy;\r\n\t\tgame.updateWorld();\r\n\r\n\t}", "public void update(){\n\t\t\tif (x<200){\n\t\t\t\txmoving=1; \n\t\t\t}\n\t\t\tif (x>900){ \n\t\t\t\txmoving=-.1; \n\t\t\t} \n\n\t\t\tx+=xmoving;\n\n\t}", "@Override\n\tpublic void tick() {\n\t\t\n\t}", "@Override\n\tpublic void tick() {\n\t\t\n\t}", "@Override\n\tpublic void tick() {\n\t\t\n\t}", "@Override\n\tpublic void tick() {\n\t\t\n\t}", "@Override\n\tpublic void tick() {\n\t\t\n\t}", "@Override\n\tpublic void tick() {\n\t\t\n\t}", "@Override\n\tpublic void tick() {\n\t\t\n\t}", "@Override\n\tpublic void tick() {\n\n\t}", "void setX(int newX) {\n this.xPos = newX;\n }", "public void tick();", "public void tick();", "public void tick();", "public void setFrameX(double anX) { double x = _x + anX - getFrameX(); setX(x); }", "protected abstract void tick();", "void updateSliderPosition(int currentTick);", "void setLastTickPos(Vec3 pos);", "public void updateXLoc();", "public void setTick(long tick) {\n this.tick = tick;\n }", "public void setTick(long tick) {\n this.tick = tick;\n }", "void tick();", "void tick();", "void setX(int x) {\n position = position.setX(x);\n }", "public void updatePosition() {\n\n this.x = this.temp_x;\n this.y = this.temp_y;\n this.ax = 0;\n this.ay = 0;\n\t\tthis.axplusone = 0;\n this.ayplusone = 0;\n \n }", "private void inc_x()\n {\n synchronized(mLock_IndexX) { set_x(get_x() + 1); }\n }", "public void moveX(double x) {\n this.x += x;\n }", "public void moveX() {\n\t\tsetX( getX() + getVx() );\n\t}", "public void updatePosition() {\n \t\r\n \tx += dx;\r\n \ty += dy;\r\n \t\r\n\t}", "void moveX(float x) {\n _x += x;\n }", "private void move(double newXPos){\n this.setX(newXPos);\n }", "@Override\r\n\tpublic void setX(float x) {\n\t\t\r\n\t}", "public void onTick()\n\t{\n\t\tsuper.onTick();\n\t\ttime++;\n\t\tif(time>=40)\n\t\t{\n\t\t\tif(direction == 0)\n\t\t\t{\n\t\t\t\tdirection = 1;\n\t\t\t\ttime = 0;\n\t\t\t}\n\t\t\telse if(direction == 1)\n\t\t\t{\n\t\t\t\tdirection = 0;\n\t\t\t\ttime = 0;\n\t\t\t}\n\t\t}\n\t\tif(direction == 0)\n\t\t{\n\t\t\tleft();\n\t\t\tif(hitcher!= null)\n\t\t\t{\n\t\t\t\thitcher.left(speed);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\telse if(direction == 1)\n\t\t{\n\t\t\tright();\n\t\t\tif(hitcher!=null)\n\t\t\t{\n\t\t\t\thitcher.right(speed);\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t}", "public void setX(int x){ xPosition = x; }", "public abstract void tick();", "public void move() {\r\n\t\tx = x + speed;\r\n\t}", "@Override\n\tpublic void setX(int x) {\n\t\txPos = x;\n\t}", "public void update(double x)\n {\n\tsuper.update(x,1.0);\n\tfPrevTime += 1.0;\n }", "default void setX(double x)\n {\n getAxis().setX(x);\n }", "public void tick() {\n\r\n\t\tdouble angle = Math.atan2(getY()-y, getX()-x);\r\n\t\tif(seeking||Math.sqrt(((getX()-x)/1000)*((getX()-x)/1000)+((getY()-y)/1000)*((getY()-y)/1000))*1000>range[stage]){\r\n\r\n\t\t\tx += (int)(speed *Math.cos(angle));\r\n\t\t\ty += (int)(speed *Math.sin(angle));\t\t\r\n\t\t}else if(stage==0){\r\n\t\t\tstage=1;\r\n\t\t}\r\n\t\telse seeking = true;\r\n\t\tif(health<=0)\r\n\t\t{\r\n\t\t\tHandler.removeObject(this);\r\n\t\t\trage = rage + 1;\r\n\r\n\t\t}\r\n\t}", "public void update(){\n\t\tx+=xspeed; \n\t\ty+=yspeed;\t\n\t}", "public void tick() {\n\t\tground.tick(this);\n\t\tfor(Item item : new ArrayList<>(items)) {\n\t\t\titem.tick(this);\n\t\t}\n\t}", "public void onTick(long nanosSincePreviousTick) {\n\t\tif (_freeMoving) \n\t\t\tthis.move(_dx, _dy);\n\t}", "@Override\n\tpublic void setX(float x) {\n\n\t}", "@Override\n public void reactTo(Tick tick) {\n\ttry {\n\t Thread.sleep(FRAME_INTERVAL_MILLIS);\n\t} catch (InterruptedException e) {\n\t // TODO Auto-generated catch block\n\t e.printStackTrace();\n\t}\n\tscreen.update();\n\tmpq.add(new Tick(tick.time() + 1));\n }", "public void updateXPosition(){\r\n if (centerX + speedX <= 60) {\r\n centerX = 60;\r\n }\r\n if(centerX + bg.getBackX() > 4890) {\r\n bg.setBackX(4890-startScrolling);\r\n if(centerX + speedX >= 1500) {\r\n centerX = 1500;\r\n rect1= new FloatRect (centerX,centerY,80,110);\r\n }\r\n if(centerX < 1504) {\r\n centerX+=speedX;\r\n rect1= new FloatRect (centerX,centerY,80,110);\r\n }\r\n }\r\n else if (speedX < 0) {\r\n centerX += speedX;\r\n rect1= new FloatRect (centerX,centerY,80,110);\r\n }\r\n else {\r\n if (centerX <= startScrolling) {\r\n centerX += speedX;\r\n rect1= new FloatRect (centerX,centerY,80,110);\r\n } else {\r\n background.setPosition((-bg.getBackX ()),0);\r\n }\r\n }\r\n }", "void tick() { \r\n if (midi && sequencer.isRunning()) { \r\n audioPosition = (int) sequencer.getTickPosition(); \r\n progress.setValue(audioPosition); \r\n } else if (!midi && clip.isActive()) { \r\n audioPosition = (int) (clip.getMicrosecondPosition() / 1000); \r\n progress.setValue(audioPosition); \r\n } else \r\n reset(); \r\n }", "@Override\n public void livingTick() {\n super.livingTick();\n }", "void drawCurrentTick();", "public void tick()\n\t{\n\t\tif(cantLeftPress && !leftPressed)\n\t\t{\n\t\t\tcantLeftPress = false;\n\t\t}\n\t\telse if(justLeftPressed)\n\t\t{\n\t\t\tcantLeftPress = true;\n\t\t\tjustLeftPressed = false;\n\t\t}\n\t\telse if(!cantLeftPress && leftPressed)\n\t\t{\n\t\t\tjustLeftPressed = true;\n\t\t}\n\t\t\n\t\t//right pressing\n\t\tif(cantRightPress && !rightPressed)\n\t\t{\n\t\t\tcantRightPress = false;\n\t\t}\n\t\telse if(justRightPressed = true)\n\t\t{\n\t\t\tcantRightPress = true;\n\t\t\tjustRightPressed = false;\n\t\t}\n\t\telse if(!cantRightPress && rightPressed)\n\t\t{\n\t\t\tjustRightPressed = true;\n\t\t}\n\t\t\n\t}", "@Override\n public void move() {\n _location.x++;\n }", "public abstract void incrementXPos(double delta) throws SlickException;", "public void onTick(long i) {\n life--;\n y++;\n }", "@Override\n\tpublic void update() {\n\t\tposX -= ninja.getSpeedX();\n\t\t\n\t}", "public void tick() \n\t{\n\t\tif (handler.getMouseManager().checkLeftPressed() \n\t\t\t\t&& handler.getMouseManager().getMousePosX() > 285 \n\t\t\t\t&& handler.getMouseManager().getMousePosX() < 515)\n\t\t{\n\t\t\tif (handler.getMouseManager().getMousePosY() > 177 && handler.getMouseManager().getMousePosY() <254)\n\t\t\t{\n\t\t\t\tsetState(handler.getGame().getSelectCharacterState());\n\t\t\t}\n\t\t\telse if (handler.getMouseManager().getMousePosY() > 345 && handler.getMouseManager().getMousePosY() < 422)\n\t\t\t{\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}\n\t}", "public void move()\n\t{\n\t\tx = x + dx;\n\t}", "public void setX(int xpos) {\r\n this.xpos = xpos;\r\n }", "void update(int[] xyPos) {\n this.x = xyPos[0];\n this.y = xyPos[1];\n }", "public void move() {\r\n\r\n\t\tif(x < 0) {\r\n\t\t\tx = 400;\r\n\t\t}\r\n\r\n\t\t// factor for speed increase\r\n\t\tx -= 1 * factor;\r\n\t}", "protected void update(){\n\t\t_offx = _x.valueToPosition(0);\n\t\t_offy = _y.valueToPosition(0);\n\t}", "public void tick() {\n\n\t\tif (this.getMouseX() >= 1020 && this.getMouseX() <= 1084){\n\t\t\tinBoundsX = true;\n\t\t} else {\n\t\t\tinBoundsX = false;\n\t\t}\n\n\t\tif (this.getMouseY() >= 620 && this.getMouseY() <= 768){\n\t\t\tinBoundsY = true;\n\t\t} else {\n\t\t\tinBoundsY = false;\n\t\t}\n\n\t\t//Testing\n\t\t\n\t\t\n\t\tif(mouseClick == true && inBoundsX && inBoundsY){\n\t\t\tSystem.out.println(\"MADE IT.\");\n\t\t\tcardClicked = true;\n\t\t\tmouseClick = false;\n\t\t}\n\n\t}", "public void livingTick() {\n super.livingTick();\n this.setMotion(Vector3d.ZERO);\n if (!this.isAIDisabled()) {\n this.prevRenderYawOffset = 0.0F;\n this.renderYawOffset = 0.0F;\n }\n\n }", "public void tick() {\r\n if (this.ticking == true) {\r\n \t this.ticks++;\r\n //Every 100 ticks is 10 seconds.\r\n //Reset the display.\r\n if (this.ticks == 100) {\r\n if (this.isLocked == false) {\r\n this.lockGui.setDisplay(\"Open\");\r\n }\r\n\r\n else {\r\n this.lockGui.setDisplay(\"Locked\");\r\n }\r\n\r\n this.ticking = false;\r\n this.entered = \"\";\r\n }\r\n }\r\n }", "public void update(int x)\n {\n xValue += x;\n }", "@Override\n\tpublic void move_x() {\n\t\tif(mX < 0){\n\t \tdirection *= -1 ;\n\t \t setScale(-1, 1);\n\t }else if (mX > activity.getCameraWidth()-64){\n\t \tdirection *= -1 ;\n\t \tsetScale(1, 1);\n\t } \n\t\tmove_x(direction);\n\t}", "@Override\r\n\tpublic void tick() {\r\n\t\tif(game.getMouseManager().isLeftPressed()){\r\n\t\t\tif(game.getMouseManager().getMouseX()>=118 && game.getMouseManager().getMouseX()<=282){\r\n\t\t\t\tif(game.getMouseManager().getMouseY()>=233 && game.getMouseManager().getMouseY()<=251){\r\n\t\t\t\t\tgame.PlayingState().gameBegin();\r\n\t\t\t\t\tGameStates.setGameStateTo(game.getPlayingState());\r\n\t\t\t\t\tGameStates.setChangeState(false);\r\n\t\t\t\t}\r\n\t\t\t} \r\n\t\t\tif(game.getMouseManager().getMouseX()>=113 && game.getMouseManager().getMouseX()<=287){\r\n\t\t\t\tif(game.getMouseManager().getMouseY()>=271 && game.getMouseManager().getMouseY()<=289){\r\n\t\t\t\t\tGameStates.setGameStateTo(game.getHighScoreState());\r\n\t\t\t\t\tGameStates.setChangeState(false);\r\n\t\t\t\t}\r\n\t\t\t} \r\n\t\t\tif(game.getMouseManager().getMouseX()>=172 && game.getMouseManager().getMouseX()<=226){\r\n\t\t\t\tif(game.getMouseManager().getMouseY()>=309 && game.getMouseManager().getMouseY()<=327){\r\n\t\t\t\t\tScore.storeHighScores();\r\n\t\t\t\t\tgame.stop(); //need changes\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}else{\r\n\t\t\tGameStates.setChangeState(true);\r\n\t\t}\r\n\t}", "private void updatePosition(){\n updateXPosition(true);\n updateYPosition(true);\n }", "public void setX(int x)\n\t{\n\t\tgetWorldPosition().setX(x);\n\t}", "public void setPosition(double x, double y){\r\n this.x = (float)x;\r\n this.y = (float)y;\r\n changed();\r\n }", "@Override\n\tpublic void tick() {\n\t\twhile (clicks.size() > 0)\n\t\t{\n\t\t\tClick click = clicks.remove(0);\n\t\t\tSystem.out.println(click.posX + \" \" + click.posY);\n\t\t}\n\t\twhile (presses.size() > 0)\n\t\t{\n\t\t\tPress press = presses.remove(0);\n\t\t}\n\t}", "@Override\n\tpublic void setStartTick(int tick) {\n\t\tthis.startTick = tick;\n\t\tthis.tick = tick;\n\t}", "public void tick(){\r\n if(timer != 0)\r\n timer++;\r\n }", "public void slowDownX() {\n double temp;\n temp = this.getxSpeed();\n\n if (temp > 0.1 || temp < -0.1) {\n temp /= 1.1;\n } else {\n temp = 0;\n }\n this.setxSpeed(temp);\n }", "@Override\n\tpublic void moveXUnder(XAxisNode newXParent) {\n\t}", "public void resetX() {this.startX = 0f;}", "public void updatePosition(double timestep){\n\t\tx = x + vx * timestep;\n\t y = y + vy * timestep;\n\t}", "public void update(int x,int y);", "@Override\r\n public void tick() {\n playerNextTo();\r\n if (playerContact() && isCollisioned()) {\r\n if (!((GameState) game.getGameState()).getWorld().getTile((int) (x + xMove), (int) (y + yMove)).isSolid()\r\n && isValidMove(xMove, yMove)) {\r\n x += xMove;\r\n y += yMove;\r\n }\r\n }\r\n }", "@Override\n\tpublic void setX(float x) \n\t{\n\t\t_x = x;\n\t}", "public void setX(int xPos){\t\t\n\t\tx = new Integer(xPos);\n\t}", "void setPlayerXRelative(int x) {\n }" ]
[ "0.7179148", "0.6937885", "0.68934786", "0.6887251", "0.6887251", "0.6798232", "0.6781647", "0.67666006", "0.67663205", "0.6737213", "0.66964805", "0.6694993", "0.66818947", "0.66773254", "0.66773254", "0.6674831", "0.6669854", "0.6657293", "0.66499406", "0.66342443", "0.6633486", "0.6623721", "0.6623721", "0.6623721", "0.6623721", "0.6623721", "0.6623721", "0.6623721", "0.6594067", "0.6536274", "0.6522961", "0.6522961", "0.6522961", "0.651448", "0.6503962", "0.6451686", "0.6427946", "0.6418187", "0.6410743", "0.6410743", "0.6396096", "0.6396096", "0.6394849", "0.63686997", "0.634593", "0.63384426", "0.63377744", "0.6302522", "0.6294138", "0.62648624", "0.62572485", "0.62518805", "0.62347573", "0.62344503", "0.6225322", "0.6209696", "0.61966044", "0.6190868", "0.61869806", "0.6186951", "0.6178819", "0.61578554", "0.6143986", "0.6136664", "0.61312103", "0.61206067", "0.6108001", "0.60903865", "0.60846853", "0.6066189", "0.6055147", "0.60533255", "0.605037", "0.60293555", "0.6026668", "0.60265136", "0.6015985", "0.6011352", "0.6007984", "0.600796", "0.59946436", "0.59938097", "0.5988238", "0.59843236", "0.59809047", "0.597926", "0.5974778", "0.5954907", "0.59504175", "0.59489524", "0.5948455", "0.5941555", "0.5939886", "0.59316003", "0.59212095", "0.5919915", "0.5918083", "0.5917187", "0.591358", "0.5907903" ]
0.7626835
0
The render method draws the car figure on the screen according the object's variables;
@Override public void render(Graphics g) { g.drawImage(Assets.taxi[image],(int)x,(int)y,width,height,null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void render()\n\t{\n\t\tBufferStrategy bs = this.getBufferStrategy();\n\n\t\tif (bs == null)\n\t\t{\n\t\t\tcreateBufferStrategy(3);\n\t\t\treturn;\n\t\t}\n\n\t\tGraphics g = bs.getDrawGraphics();\n\t\t//////////////////////////////\n\n\t\tg.setColor(Color.DARK_GRAY);\n\t\tg.fillRect(0, 0, getWidth(), getHeight());\n\t\tif (display != null && GeneticSimulator.updateRendering)\n\t\t{\n\t\t\tg.drawImage(display, 0, 0, getWidth(), getHeight(), this);\n\t\t}\n\n\t\tWorld world = GeneticSimulator.world();\n\n\t\tworld.draw((Graphics2D) g, view);\n\n\t\tg.setColor(Color.WHITE);\n\t\tg.drawString(String.format(\"view: [%2.1f, %2.1f, %2.1f, %2.1f, %2.2f]\", view.x, view.y, view.width, view.height, view.PxToWorldScale), (int) 10, (int) 15);\n\n\t\tg.drawString(String.format(\"world: [time: %2.2f pop: %d]\", world.getTime() / 100f, World.popCount), 10, 30);\n\n\t\tg.drawRect(view.pixelX, view.pixelY, view.pixelWidth, view.pixelHeight);\n//\t\tp.render(g);\n//\t\tc.render(g);\n\n\n\t\t//g.drawImage(player,100,100,this);\n\n\t\t//////////////////////////////\n\t\tg.dispose();\n\t\tbs.show();\n\t}", "public void render () {\n\t\tcam.update();\n\t\tbatch.setProjectionMatrix(cam.combined);\n\t\trenderBackground();\n\t\t/*shapeRender.setProjectionMatrix(cam.combined);\n\t\tshapeRender.begin(ShapeRenderer.ShapeType.Line);\n\t\tshapeRender.ellipse(world.trout.hitBox.x, world.trout.hitBox.y, world.trout.hitBox.width, world.trout.hitBox.height);\n\t\tshapeRender.circle(world.hook.circleBounds.x, world.hook.circleBounds.y, world.hook.circleBounds.radius);\n\t\tshapeRender.point(world.trout.position.x, world.trout.position.y, 0f);*/\n\t\trenderObjects();\n\t\t\n\t}", "public void render(){\n//\t\tsetCards();\n//\t\tsetMurderInfo();\n\t}", "void draw() {\n\t\t// display debug information\n\t\t// if (debugMode)\n\t\t// displayDebugInformation();\n\n\t\tupdate();\n\t\trender(); // display freetransform points, lines and colorings\n\n\t\t// display opposite objects\n\t\t// displayOppositeObject();\n\t}", "public void render();", "public void render(){\n //this block is pre-loading 2 frames in\n BufferStrategy bs = this.getBufferStrategy();\n if(bs == null){\n this.createBufferStrategy(2);\n return;\n }\n\n Graphics g = bs.getDrawGraphics();\n Graphics2D g2d = (Graphics2D) g;\n ///////////////////////////\n //Draw things below here!\n g.setColor(Color.white);\n g.fillRect(0, 0, 800, 800);\n\n g2d.translate(-camera.getX(), -camera.getY());\n\n g.setColor(Color.gray);\n g.fillRect(0, 0, 500, 500);\n //render all the objects\n handler.render(g);\n\n //g2d.translate(camera.getX(), camera.getY());\n //Draw things above here!\n ///////////////////////////\n g.dispose();\n bs.show();\n }", "public void render() {\r\n\r\n }", "public void render()\r\n\t{\n\t}", "public void render() {\n }", "private void render() {\n\t\ttheMap.draw(g);\n\t\ttheTrainer.draw(g);\n\t}", "public void render(){\n\t\tBufferStrategy bs = frame.getBufferStrategy();\n\t\tif(bs == null){\n\t\t\tframe.createBufferStrategy(3);\n\t\t\treturn;\n\t\t}\n\t\trenderGraphics(bs);\n\t}", "void render(GraphicsContext gc, double xOffSet, double yOffSet);", "public void draw() {\r\n\t\tfor(int i=0; i<2; i++) {\r\n\t\t\trenderer[i].setView(camera[i]);\r\n\t\t\trenderer[i].render();\r\n\t\t}\r\n\t}", "void render(Graphics g);", "private void render()\n\t{\n\t\ttheta = (float) (velocity.heading() + Math.toRadians(90.0));\n\n\t\t// se baser sur le temps écoulé depuis le lancement\n\t\tf = parent.frameCount / 4;\n\t\tint fi = f + 1;\n\t\tfloat x = fi % DIM * W;\n\t\tfloat y = fi / DIM % DIM * H;\n\n\t\tparent.pushMatrix();\n\t\tparent.translate(location.x, location.y);\n\t\tparent.rotate(theta);\n\t\tparent.beginShape();\n\t\tparent.texture(spritesheet);\n\t\tparent.vertex(0, 0, x, y);\n\t\tparent.vertex(100, 0, x + W, y);\n\t\tparent.vertex(100, 100, x + W, y + H);\n\t\tparent.vertex(0, 100, x, y + H);\n\t\tparent.endShape();\n\t\tparent.popMatrix();\n\t}", "public void draw(){\n\t\tcomponent.draw();\r\n\t}", "protected void render() {\n\t\tentities.render();\n\t\t// Render GUI\n\t\tentities.renderGUI();\n\n\t\t// Flips the page between the two buffers\n\t\ts.drawToGraphics((Graphics2D) Window.strategy.getDrawGraphics());\n\t\tWindow.strategy.show();\n\t}", "public void render (Graphics2D g);", "public abstract void render(Graphics2D graphics);", "private void render() {\n\n\tbs=display.getCanvas().getBufferStrategy();\t\n\t\n\tif(bs==null) \n\t {\t\n\t\tdisplay.getCanvas().createBufferStrategy(3);\n\t\treturn ;\n\t }\n\t\n\tg=bs.getDrawGraphics();\n\n\t//Clear Screen\n\tg.clearRect(0, 0, width, height);\n\t\n\tif(State.getState()!=null )\n\t\tState.getState().render(g);\n\t\n\t//End Drawing!\n\tbs.show();\n\tg.dispose();\n\t\n\t}", "@Override\n\tpublic void render() {\n\t\tJOptionPane.showMessageDialog(null,\n\t\t \"Cuboid Dimensions: \" + \n\t\t \"\\nHeight = \" + height + \n\t\t \"\\nWidth = \" + width + \n\t\t \"\\nDepth = \" + depth +\n\t\t \"\\nSurface Area = \" + surfaceArea() +\n\t\t \"\\nVolume = \" + volume());\n\t\t\n\t}", "public abstract void render(Graphics g);", "public void render()\n\t{\n\t\t// Get or create the BufferStrategy to plan rendering\n\t\tBufferStrategy bs = getBufferStrategy();\n\t\tif (bs == null)\n\t\t{\n\t\t\tcreateBufferStrategy(3);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// Get the graphics that can be drawn to\n\t\tg = bs.getDrawGraphics();\n\t\t\n\t\t// Set the Graphics2D\n\t\tg2d = (Graphics2D)g;\n\t\t\n\t\t// Create a black rectangle to fill the canvas as a base background\n\t\tg.setColor(Color.black);\n\t\tg.fillRect(0, 0, getWidth(), getHeight());\n\t\t\n\t\tif (screenLoaded)\n\t\t{\n\t\t\t// Draw the static background\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null)\n\t\t\t\tgame.getScreenHandler().getCurrentScreen().drawStaticBackground(g);\n\t\t\t\n\t\t\t// Translate the screen based on the Camera\n\t\t\tif (game.getCamera() != null && game.usesCamera())\n\t\t\t\tg2d.translate(game.getCamera().getxPos(), \n\t\t\t\t\t\t \t game.getCamera().getyPos());\n\t\t\t\n\t\t\t// Draw the background layer\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null)\n\t\t\t\tgame.getScreenHandler().getCurrentScreen().drawBackground(g);\n\t\t\t\n\t\t\t// Render all of the Tiles\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null && game.usesWorld())\n\t\t\t\tgame.getWorldHandler().renderTiles(g);\n\t\t\t\n\t\t\t// Render all of the GameObjects\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null && game.usesGameObjects())\n\t\t\t\tgame.getObjectHandler().renderGameObjects(g);\n\t\t\t\n\t\t\t// Draw the foreground layer\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null)\n\t\t\t\tgame.getScreenHandler().getCurrentScreen().drawForeground(g);\n\t\t\t\n\t\t\t// Draw the lighting\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null && game.usesLighting())\n\t\t\tg.drawImage(game.getLightHandler().getLightmap(), -1500, -3100, null);\n\t\t\t\n\t\t\t// Translate the screen based on the Camera\n\t\t\tif (game.getCamera() != null && game.usesCamera())\n\t\t\t\tg2d.translate(-game.getCamera().getxPos(), \n\t\t\t\t\t\t \t -game.getCamera().getyPos());\n\t\t\t\n\t\t\t// Draw the gui layer\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null)\n\t\t\t\tgame.getScreenHandler().getCurrentScreen().drawGui(g);\n\t\t\t\n\t\t\t// Draw the debug layer\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null\n\t\t\t\t&& game.getDebugScreen() != null\n\t\t\t\t&& game.isDebugShown())\n\t\t\t\tgame.getDebugScreen().showDebug(g);\n\t\t\t\n\t\t\t// Draw the loading \"curtain\" if the screen is still loading\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null &&\n\t\t\t\t!screenLoaded)\n\t\t\t{\n\t\t\t\tif (timeCount < game.getFps() / 4)\n\t\t\t\t{\n\t\t\t\t\tg.setColor(Color.black);\n\t\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\t\tg.setColor(Color.white);\n\t\t\t\t\tif (loadingFont == null)\n\t\t\t\t\t\tg.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\t\telse\n\t\t\t\t\t\tg.setFont(loadingFont);\n\t\t\t\t\tg.drawString(\"Loading . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t\t}\n\t\t\t\telse if (timeCount < (game.getFps() / 4) * 2)\n\t\t\t\t{\n\t\t\t\t\tg.setColor(Color.black);\n\t\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\t\tg.setColor(Color.white);\n\t\t\t\t\tif (loadingFont == null)\n\t\t\t\t\t\tg.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\t\telse\n\t\t\t\t\t\tg.setFont(loadingFont);\n\t\t\t\t\tg.drawString(\"Loading . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t\t}\n\t\t\t\telse if (timeCount < (game.getFps() / 4) * 3)\n\t\t\t\t{\n\t\t\t\t\tg.setColor(Color.black);\n\t\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\t\tg.setColor(Color.white);\n\t\t\t\t\tif (loadingFont == null)\n\t\t\t\t\t\tg.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\t\telse\n\t\t\t\t\t\tg.setFont(loadingFont);\n\t\t\t\t\tg.drawString(\"Loading . . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tg.setColor(Color.black);\n\t\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\t\tg.setColor(Color.white);\n\t\t\t\t\tif (loadingFont == null)\n\t\t\t\t\t\tg.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\t\telse\n\t\t\t\t\t\tg.setFont(loadingFont);\n\t\t\t\t\tg.drawString(\"Loading . . . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// Dispose of all graphics\n\t\t\tg.dispose();\n\t\t\t// Show all graphics prepared on the BufferStrategy\n\t\t\tbs.show();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tGraphics2D g2 = (Graphics2D)g;\n\t\t\tg2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n\t\t\t\n\t\t\tif (timeCount < game.getFps() / 4)\n\t\t\t{\n\t\t\t\tg.setColor(Color.black);\n\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\tg2.setColor(Color.white);\n\t\t\t\tif (loadingFont == null)\n\t\t\t\t\tg2.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\telse\n\t\t\t\t\tg2.setFont(loadingFont);\n\t\t\t\tg2.drawString(\"Loading . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t}\n\t\t\telse if (timeCount < (game.getFps() / 4) * 2)\n\t\t\t{\n\t\t\t\tg.setColor(Color.black);\n\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\tg2.setColor(Color.white);\n\t\t\t\tif (loadingFont == null)\n\t\t\t\t\tg2.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\telse\n\t\t\t\t\tg2.setFont(loadingFont);\n\t\t\t\tg2.drawString(\"Loading . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t}\n\t\t\telse if (timeCount < (game.getFps() / 4) * 3)\n\t\t\t{\n\t\t\t\tg.setColor(Color.black);\n\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\tg2.setColor(Color.white);\n\t\t\t\tif (loadingFont == null)\n\t\t\t\t\tg2.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\telse\n\t\t\t\t\tg2.setFont(loadingFont);\n\t\t\t\tg2.drawString(\"Loading . . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tg.setColor(Color.black);\n\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\tg2.setColor(Color.white);\n\t\t\t\tif (loadingFont == null)\n\t\t\t\t\tg2.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\telse\n\t\t\t\t\tg2.setFont(loadingFont);\n\t\t\t\tg2.drawString(\"Loading . . . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Dispose of all graphics\n\t\tg.dispose();\n\t\t// Show all graphics prepared on the BufferStrategy\n\t\tbs.show();\n\t}", "public void render() {\n\t\tBufferStrategy bs = getBufferStrategy();\n\t\tif (bs == null) { //if the buffer strategy doesnt get created, then you create it\n\t\t\tcreateBufferStrategy(3); //the number 3 means it creates triple buffering\n\t\t\treturn;\t\t\t\t\t//, so when you backup frame gets displayed (2) it will also have a backup\t\n\t\t}\n\t\t\n\t\t//apply data to the buffer \"bs\"\n\t\t//this is creating a link to graphics to drawing graphics to the screen.\n\t\tGraphics g = bs.getDrawGraphics();\n\t\t/**\n\t\t * You input all of your graphics inbetween the g object and g.dispose();\n\t\t */\n\t\t//###################\n\t\t\n\t\tg.setColor(Color.BLACK);\n\t\tg.fillRect(0, 0, getWidth(), getHeight());\n\t\t\n\t\t//###################\n\t\tg.dispose(); //this dispose of all the graphics\n\t\tbs.show(); //this will make the next available buffer visible\n\t}", "@Override\n public void render() {\n sortEntities(Entity.getEntities());\n renderBackground();\n renderBattleState();\n if(selectedPc != null){\n MyGL2dRenderer.drawLabel(getSelectedPc().getCollisionBox().left - 4 * GameView.density() + cameraX,\n getSelectedPc().getCollisionBox().bottom - getSelectedPc().getCollisionBox().width() / 5 + cameraY,\n getSelectedPc().getCollisionBox().width() + 8 * GameView.density(),\n getSelectedPc().getCollisionBox().width() * 2 / 5,\n TextureData.selected_character_visual, 255);\n }\n if(!win){\n renderSpells();\n renderGold();\n }\n }", "private void render() {\n\t\tBufferStrategy bs = this.getBufferStrategy();\r\n\t\tif (bs == null) {\r\n\t\t\tcreateBufferStrategy(3);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\t//Initiates Graphics class using bufferStrategy\r\n\t\tGraphics g = bs.getDrawGraphics();\r\n\t\t\r\n\t\t//displays img on screen\r\n\t\tg.drawImage(img, 0, 0, null);\r\n\t\t\r\n\t\tg.setColor(Color.CYAN);\r\n\t\tg.drawString(fps + \" FPS\", 10, 10);\r\n\t\tg.setFont(new Font(\"Arial\", 0, 45));\r\n\r\n\t\tg.dispose();//clears graphics\r\n\t\tbs.show();//shows graphics\r\n\t}", "public void paintComponent(Graphics g){\n\n\n\n r.render(g);\n }", "private void render() {\n\t\tBufferStrategy buffStrat = display.getCanvas().getBufferStrategy();\n\t\tif(buffStrat == null) {\n\t\t\tdisplay.getCanvas().createBufferStrategy(3); //We will have 3 buffered screens for the game\n\t\t\treturn;\n\t\t}\n\n\t\t//A bufferstrategy prevents flickering since it preloads elements onto the display.\n\t\t//A graphics object is a paintbrush style object\n\t\tGraphics g = buffStrat.getDrawGraphics();\n\t\t//Clear the screen\n\t\tg.clearRect(0, 0, width, height); //Clear for further rendering\n\t\t\n\t\tif(State.getState() !=null) {\n\t\t\tState.getState().render(g);\n\t\t}\n\t\t//Drawings to be done in this space\n\t\t\n\t\t\n\t\t\n\t\tbuffStrat.show();\n\t\tg.dispose();\n\t}", "@Override\r\n\tpublic void render() {\n\t\t\r\n\t}", "public void draw(Frame frame) {\n\t\t// Draw vehicle corner points.\n\t\tif (this.points != null) {\n\t\t\tfor (int i = 0; i < 3; i++) {\n\t\t\t\tif (this.points[i] == null) continue;\n\t\t\t\tImgproc.circle(frame.getSource(), this.points[i], 3, new Scalar(0, 0, 255));\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Draw the vehicles back point.\n\t\tif (this.back != null) {\n\t\t\tImgproc.circle(frame.getSource(), this.back, 3, new Scalar(0, 0, 255));\n\t\t}\n\t\t\n\t\t// Draw the vehicles front point.\n\t\tif (this.front != null) {\n\t\t\tImgproc.circle(frame.getSource(), this.front, 6, new Scalar(0, 0, 255));\n\t\t}\n\t\t\n\t\t// Draw the vehicles center point.\n\t\tif (this.center != null) {\n\t\t\tImgproc.circle(frame.getSource(), this.center, 3, new Scalar(255, 0, 0), Imgproc.FILLED);\n\t\t}\n\t}", "public void Display() \n {\n float theta = velocity.heading() + PI/2;\n fill(175);\n stroke(0);\n pushMatrix();\n translate(pos.x,pos.y);\n rotate(theta);\n beginShape();\n vertex(0, -birdSize*2);\n vertex(-birdSize, birdSize*2);\n vertex(birdSize, birdSize*2);\n endShape(CLOSE);\n popMatrix();\n }", "public void render(){ \r\n\t\tGL11.glPushMatrix();\r\n\t\tGL11.glTranslatef(x, y, z);\r\n\t\tGL11.glColor4f(Color.x, Color.y, Color.z, (float)(Math.random())); //Color.vx\r\n\t\tVGO v=getModel();\r\n\t\tv.orientPlain(r);\r\n\t\tv.orient(base);\r\n\t\t\r\n\t\ttFling+=0.01f;\r\n\t\tif(tFling>5){\r\n\t\t\ttHide=tActive;\r\n\t\t\ttActive+=0.1f;\r\n\t\t\tif(tHide>=1){\r\n\t\t\t\ttHide=0f;\r\n\t\t\t\ttActive=0.1f;\r\n\t\t\t}\r\n\t\t\ttFling=0f;\r\n\t\t}\r\n\t\t\r\n\t\tv.render();//tHide,tActive,tFling,1);\r\n\t\tGL11.glPopMatrix();\r\n\t}", "void render(Object rendererTool);", "@Override\r\n protected void paintComponent(Graphics g) {\r\n super.paintComponent(g);\r\n for (IVehicle vehicle : carView.carController.getVehicles()){\r\n g.drawImage(carView.assets.get(vehicle), vehicle.getPosition().x, vehicle.getPosition().y, null);\r\n }\r\n }", "public void render() {\r\n\t\tif ((this instanceof Turtles && ((Turtles) this).isAboveWater()) || !(this instanceof Turtles)) {\r\n\t\t\timage.drawCentered(xCoordinate, yCoordinate);\r\n\t\t}\r\n\t}", "public void displayCar()\n\t{\n\t\tSystem.out.println(\"Wheels of car\t:\t\" + objCar.getWheel());\n\t\tSystem.out.println(\"Speed of car\t:\t\" + objCar.getSpeed());\n\t\tSystem.out.println(\"Passengers of car\t:\t\" + objCar.getCarPassengerNumber());\n\t}", "public void render () \n\t{ \n\t\trenderWorld(batch);\n\t\trenderGui(batch);\n\t}", "protected abstract void render(Graphics g);", "public void draw() {\n \n // TODO\n }", "public void render() {\n float theta = velocity.heading2D() + radians(90);\n\n\n fill(255, 0, 0);\n stroke(255, 0, 0);\n strokeWeight(0.5f);\n pushMatrix();\n translate(position.x, position.y);\n rotate(theta);\n beginShape(QUAD);\n fill(255, 0, 0);\n vertex(r, -r*2);\n\n vertex(-r, -r*2);\n vertex(-r, r*2);\n vertex(r, r*2);\n\n endShape();\n beginShape(TRIANGLES);\n vertex(-r, -r*2);\n vertex(r, -r*2);\n vertex(0, -r*4);\n endShape();\n beginShape(TRIANGLES);\n vertex(-r, r*5);\n vertex(r, r*5);\n vertex(0, r*2);\n endShape();\n fill(0);\n stroke(255);\n fill(255);\n strokeWeight(1.7f*r);\n\n point(0, -r*2.5f);\n stroke(0);\n fill(0);\n strokeWeight(0.75f*r);\n point(0, -r*2.5f);\n\n\n popMatrix();\n textSize(6+(this.kidsHad/2));\n textMode(CENTER);\n stroke(0);\n text(\" g:\"+this.gen+\"/\"+kidsHad + \"/id: \" + (this.id+1), this.position.x, this.position.y);\n }", "private void render() {\n\t\tBufferStrategy bufferStrategy = getBufferStrategy(); //Create BufferStrategy object\n\n\t\t//If the Buffer Strategy doesn't exist, create one\n\t\tif(bufferStrategy == null) {\n\t\t\tcreateBufferStrategy(3); //Triple buffer\n\t\t\treturn; //Return\n\t\t}\n\n\t\tGraphics g = bufferStrategy.getDrawGraphics(); //Create Graphics object\n\t\tg.setColor(Color.black); //Set the colour of the object to black\n\t\tg.fillRect(0, 0, Game.WIDTH, Game.HEIGHT); //Fill the window\n\n\t\t//Start screen\n\t\tif(!startScreen.start && !player.dead && !player.win) {\n\t\t\tstartScreen.render(g); //Render the start screen\n\t\t\t//If the user presses enter\n\t\t\tif(enter) {\n\t\t\t\tstartScreen.start = true; //Game has started\n\t\t\t}\n\t\t}\n\n\t\t//Playing screen\n\t\tif(!player.dead && !player.win && startScreen.start) {\n\t\t\tlevel.render(g); //Render the level\n\t\t\tplayer.render(g); //Render the player to the graphics object\n\t\t\thp(g); //Render the hit points\n\t\t\tif(paused) {\n\t\t\t\tpauseScreen.render(g);\n\t\t\t}\n\t\t}\n\n\t\t//Dead screen\n\t\tif(player.dead){\n\t\t\tdeadScreen.render(g); //Render the dead screen\n\t\t}\n\n\t\t//Win screen\n\t\tif(player.win) {\n\t\t\twinScreen.render(g); //Render the win screen\n\t\t}\n\t\tg.dispose(); //Dispose of the object\n\t\tbufferStrategy.show(); //Show it\n\t}", "@Override\n\tpublic void render() {\n\t\t\n\t}", "public void draw() {\n\t\tapplyColors();\n\n\t\tfloat halfHeight = height / 2,\n\t\t\t\tdiameter = 2 * radius;\n\n\t\tRobotRun.getInstance().translate(0f, 0f, halfHeight);\n\t\t// Draw top of the cylinder\n\t\tRobotRun.getInstance().ellipse(0f, 0f, diameter, diameter);\n\t\tRobotRun.getInstance().translate(0f, 0f, -height);\n\t\t// Draw bottom of the cylinder\n\t\tRobotRun.getInstance().ellipse(0f, 0f, diameter, diameter);\n\t\tRobotRun.getInstance().translate(0f, 0f, halfHeight);\n\n\t\tRobotRun.getInstance().beginShape(RobotRun.TRIANGLE_STRIP);\n\t\t// Draw a string of triangles around the circumference of the Cylinders top and bottom.\n\t\tfor (int degree = 0; degree <= 360; ++degree) {\n\t\t\tfloat pos_x = RobotRun.cos(RobotRun.DEG_TO_RAD * degree) * radius,\n\t\t\t\t\tpos_y = RobotRun.sin(RobotRun.DEG_TO_RAD * degree) * radius;\n\n\t\t\tRobotRun.getInstance().vertex(pos_x, pos_y, halfHeight);\n\t\t\tRobotRun.getInstance().vertex(pos_x, pos_y, -halfHeight);\n\t\t}\n\n\t\tRobotRun.getInstance().endShape();\n\t}", "private void render()\n {\n //Applicazione di un buffer \"davanti\" alla tela grafica. Prima di disegnare \n //sulla tela grafica il programma disegnerà i nostri oggetti grafici sul buffer \n //che, in seguito, andrà a disegnare i nostri oggetti grafici sulla tela\n bufferStrategico = display.getTelaGrafica().getBufferStrategy();\n \n //Se il buffer è vuoto (== null) vengono creati 3 buffer \"strategici\"\n if(bufferStrategico == null)\n {\n display.getTelaGrafica().createBufferStrategy(3);\n return;\n }\n \n //Viene definito l'oggetto \"disegnatore\" di tipo Graphic che disegnerà i\n //nostri oggetti grafici sui nostri buffer. Può disegnare qualsiasi forma\n //geometrica\n disegnatore = bufferStrategico.getDrawGraphics();\n \n //La riga seguente pulisce lo schermo\n disegnatore.clearRect(0, 0, larghezza, altezza);\n \n //Comando per cambiare colore dell'oggetto \"disegnatore\". Qualsiasi cosa\n //disengata dal disegnatore dopo questo comando avrà questo colore.\n \n /*disegnatore.setColor(Color.orange);*/\n \n //Viene disegnato un rettangolo ripieno. Le prime due cifre indicano la posizione \n //da cui il nostro disegnatore dovrà iniziare a disegnare il rettangolo\n //mentre le altre due cifre indicano le dimensioni del rettangolo\n \n /*disegnatore.fillRect(10, 50, 50, 70);*/\n \n //Viene disegnato un rettangolo vuoto. I parametri hanno gli stessi valori\n //del comando \"fillRect()\"\n \n /*disegnatore.setColor(Color.blue);\n disegnatore.drawRect(0,0,10,10);*/\n \n //I comandi seguenti disegnano un cerchio seguendo la stessa logica dei\n //rettangoli, di colore verde\n \n /*disegnatore.setColor(Color.green);\n disegnatore.fillOval(50, 10, 50, 50);*/\n \n /*Utilizziamo il disegnatore per caricare un'immagine. Il primo parametro\n del comando è l'immagine stessa, il secondo e il terzo parametro sono \n le coordinate dell'immagine (x,y) mentre l'ultimo parametro è l'osservatore\n dell'immagine (utilizzo ignoto, verrà impostato a \"null\" in quanto non\n viene usato)*/\n //disegnatore.drawImage(testImmagine,10,10,null);\n \n /*Comando che disegna uno dei nostri sprite attraverso la classe \"FoglioSprite\".*/\n //disegnatore.drawImage(foglio.taglio(32, 0, 32, 32), 10, 10,null);\n \n /*Viene disegnato un albero dalla classe \"Risorse\" attraverso il disegnatore.*/\n //disegnatore.drawImage(Risorse.omino, x, y,null);\n \n /*Se lo stato di gioco esiste eseguiamo la sua renderizzazione.*/\n if(Stato.getStato() != null)\n {\n \t Stato.getStato().renderizzazione(disegnatore);\n }\n \n //Viene mostrato il rettangolo\n bufferStrategico.show();\n disegnatore.dispose();\n }", "public void render() {\n renderHud();\n }", "public void render()\n\t{\n\t\t//double buffering is cool\n\t\tBufferStrategy bs = getBufferStrategy();\n\t\tif (bs == null)\n\t\t{\n\t\t\tcreateBufferStrategy(2);\n\t\t\tbs = getBufferStrategy();\n\t\t}\n\t\t\t\n\t\tGraphics2D g2 = (Graphics2D)bs.getDrawGraphics();\n\t\n\t\t\n\t\t\n\t\tif (true)\t\n\t\t{\n\t\t\tif (level != 0)\n\t\t\t{\n\t\t\t\tg2.setColor(Color.black);\n\t\t\t\tg2.fillRect(0, 0, width, height);\t\t\t\n\t\t\t}\n\t\t\tgameObjectHandler.render(g2,false);\n\t\t}\n\t\tif(currTransition != null)\n\t\t{\n\t\t\tcurrTransition.render(g2);\n\t\t\n\t\t}\n\t\t\n\t\t\n\t\tbs.show();\n\t\tg2.dispose();\n\t\n\t}", "public void render() {\n this.canvas.repaint();\n }", "protected void render(){}", "public void render(){\n\t\tstage.act();\n\t\tstage.draw();\n\t}", "static void draw()\n {\n for (Viewport viewport : viewports)\n viewport.draw(renderers);\n }", "@Override\r\n\tpublic void render() {\n\r\n\t}", "public void draw() {\t\t\n\t\ttexture.draw(x, y);\n\t\tstructure.getTexture().draw(x,y);\n\t}", "@Override\n\tpublic void render() {\n\t\tScreen.render();\n\t}", "public Picture render() \r\n\t{\r\n\t\tPicture r = new Picture(); //Creates a new picture\r\n\t\tr.x = x;\r\n\t\tr.y = y;\r\n\t\t//Loads and sets the bird's image\r\n\t\tif (Bird == null) \r\n\t\t{\r\n\t\t\tBird = Picture.loadImage(\"img/bird.png\");\r\n\t\t}\r\n\t\tr.image = Bird;\r\n\t\trotate = (90 * (yVel + 20) / 20) - 90;\r\n\t\trotate = rotate * Math.PI / 180;\r\n\t\t//Rotates the Bird\r\n\t\tif (rotate > Math.PI / 2)\r\n\t\t{\r\n\t\t\trotate = Math.PI / 2;\r\n\t\t}\r\n\t\tr.transform = new AffineTransform(); //Creates a new graphical transformation\r\n\t\tr.transform.translate(x + width / 2, y + height / 2); //Moves the picture\r\n\t\tr.transform.rotate(rotate); //Rotates the picture\r\n\t\tr.transform.translate(-width / 2, -height / 2); //Moves the picture\r\n\t\treturn r; //Returns the graphic\r\n\t}", "private void render() {\n\n // Clear the whole screen\n gc.clearRect(0, 0, canvas.getWidth(), canvas.getHeight());\n\n // Draw the background image\n gc.drawImage(curMap.getMap(), 0,0, canvas.getWidth(), canvas.getHeight());\n\n // Draw Paths\n for(DrawPath p : pathMap.values()) {\n p.draw(gc);\n }\n\n // Draw all of the lines and edges\n\n // Lines\n for(Line l : lineMap.values()) {\n l.draw(gc);\n }\n\n // Points\n for(Point p : pointMap.values()) {\n p.draw(gc);\n }\n\n // Images\n for(Img i : imgMap.values()) {\n i.draw(gc);\n }\n\n // Text\n for(Text t : textMap.values()) {\n t.draw(gc);\n }\n }", "public void render() {\n\t\tBufferStrategy bs = getBufferStrategy();\n\t\tif (bs == null) {\n\t\t\tcreateBufferStrategy(3);\n\t\t\treturn;\n\t\t}\n\t\t// get graphics object for drawing on canvas\n\t\tGraphics g = bs.getDrawGraphics();\n\t\t// clear screen before drawing new objects to it\n\t\tg.setColor(style.getBackCol());\n\t\tg.fillRect(0, 0, getWidth(), getHeight());\n\t\t// use style from server to draw time information, only if we have\n\t\t// synced the time with the server.\n\t\tg.setColor(style.getTimeCol());\n\t\tif (tim.TIME_SYNCED) {\n\t\t\t// set font and font size, perhaps font can also be customizable in\n\t\t\t// the future?\n\t\t\tg.setFont(new Font(\"TimesRoman\", Font.PLAIN, style.getTimePoint()));\n\t\t\tFontMetrics metrics = g.getFontMetrics(new Font(\"TimesRoman\", Font.PLAIN, style.getTimePoint()));\n\t\t\t// get height to offset text by when drawing.\n\t\t\tint hgt = metrics.getHeight();\n\t\t\t// System.out.println(\"\" +style.getLeft() * WIDTH);\n\t\t\tg.drawString(tim.getTime(), (int) (style.getLeft() * WIDTH), (int) (style.getTop() * HEIGHT + hgt));\n\t\t}\n\t\t// clear graphics from memory and draw screen buffer\n\t\tg.dispose();\n\t\tbs.show();\n\t}", "private void render() {\n if (game.isEnded()) {\n if (endGui == null) {\n drawEndScreen();\n }\n\n return;\n }\n\n drawScore();\n drawSnake();\n drawFood();\n }", "@Override\r\n\tpublic void draw() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void draw() {\n\t\t\r\n\t}", "public void render(){\n\t\tBufferStrategy bs = getBufferStrategy();\n\t\tif(bs == null){\n\t\t\tcreateBufferStrategy(3);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tthis.screen.renderBackground();\n\t\t\n\t\t\n\t\tfor(int i=0;i<this.obstacles.size();i++){\n\t\t\tobstacles.get(i).render(screen);\n\t\t}\n\t\t\n\t\tthis.screen.renderGround();\n\t\t\n\t\t\n\t\tthis.bird.render(screen);\n\n\t\tscreen.renderLeftLim();\n\t\t\n\t\tfor(int i= 0;i<this.pixels.length;i++){\n\t\t\tthis.pixels[i] = this.screen.getPixel(i);\n\t\t}\n\t\n\n\t\t\n\t\tGraphics g = bs.getDrawGraphics();\n\t\tg.drawImage(image,0,0,getWidth(),getHeight(),null);\n\t\tg.setColor(Color.WHITE);\n\t\tg.setFont(new Font(\"Verdana\",0,30));\n\t\tg.drawString(\"\"+this.numGoals, 300, 60);\n\t\tif(this.gameOver){\n\t\t\tif(this.begin){\n\t\t\t\tg.setFont(new Font(\"Verdana\",0,50));\n\t\t\t\tg.drawString(GAMEOVER_MESSAGE, (WIDTH-300)/2, 200);\n\t\t\t\t\n\t\t\t\tg.setFont(new Font(\"Verdana\",0,20));\n\t\t\t\tg.drawString(\"press down key to restart\", (WIDTH-250)/2, 300);\n\t\t\t\tg.drawString(\"Best score:\"+this.bestScore, (WIDTH-135)/2, 350);\n\t\t\t}else{\n\t\t\t\tg.setFont(new Font(\"Verdana\",0,50));\n\t\t\t\tg.drawString(\"OPEN BIRD\", (WIDTH-270)/2, 200);\n\t\t\t\t\n\t\t\t\tg.setFont(new Font(\"Verdana\",0,20));\n\t\t\t\tg.drawString(\"press down key to start\", (WIDTH-250)/2, 300);\n\t\t\t}\n\t\t}\n\t\tg.dispose();\n\t\tbs.show();\n\t}", "private void render() {\n bs = display.getCanvas().getBufferStrategy();\n /* if it is null, we define one with 3 buffers to display images of\n the game, if not null, then we display every image of the game but\n after clearing the Rectanlge, getting the graphic object from the \n buffer strategy element. \n show the graphic and dispose it to the trash system\n */\n if (bs == null) {\n display.getCanvas().createBufferStrategy(3);\n } else {\n g = bs.getDrawGraphics();\n g.drawImage(Assets.background, 0, 0, width, height, null);\n g.setColor(Color.white);\n g.drawLine(0, 500, 595, 500);\n player.render(g);\n for (int i = 0; i < aliens.size(); i++) {\n Alien al = aliens.get(i);\n al.render(g);\n }\n if (shotVisible) {\n shot.render(g);\n }\n\n if(gameOver==false)\n {\n gameOver();\n }\n for(Alien alien: aliens){\n Bomb b = alien.getBomb();\n b.render(g);\n }\n g.setColor(Color.red);\n Font small = new Font(\"Helvetica\", Font.BOLD, 20);\n g.setFont(small);\n g.drawString(\"G - Guardar\", 10, 50);\n g.drawString(\"C - Cargar\", 10, 70);\n g.drawString(\"P - Pausa\", 10, 90);\n\n if(keyManager.pause)\n {\n g.drawString(\"PAUSA\", 250, 300);\n }\n \n bs.show();\n g.dispose();\n }\n\n }", "@Override\n\tpublic void render(float delta) {\n\t\tupdate(delta);\n\t\tdraw(delta);\n\t}", "protected void paintComponent(Graphics graphics){\n super.paintComponent(graphics);\n\n Graphics2D g2d = (Graphics2D)graphics;\n g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING,RenderingHints.VALUE_ANTIALIAS_ON);\n\n renderBackground(graphics);\n renderCard(graphics);\n renderCoin(graphics);\n }", "@Override\n\tpublic void render(Graphics g)\n\t{\n\t}", "public abstract void render(Renderer renderer);", "void dynamicRendering();", "@Override\n public void render() {\n super.render();\n }", "@Override\n public void render() {\n super.render();\n }", "public void render(GL2 gl) {\n\t gl.glPushMatrix();\n gl.glTranslated(0.0, 0.0, -1*Specification.TIRE_DEPTH);\n \n GLU glu = new GLU();\n Materials.SetDarkGreyMetalMaterial(gl);\n\n GLUquadric q = glu.gluNewQuadric();\n glu.gluCylinder(q, Specification.PAIR_OF_WHEELS_ROD_RADIUS, Specification.PAIR_OF_WHEELS_ROD_RADIUS, Specification.PAIR_OF_WHEELS_ROD_DEPTH, 20, 1);\n gl.glTranslated(0.0, 0.0, -1*Specification.TIRE_DEPTH/2.0);\n this.wheel.render(gl);\n\n// gl.glTranslated(0.0, 0.0, -1*(Specification.TIRE_RADIUS+Specification.PAIR_OF_WHEELS_ROD_DEPTH));\n gl.glTranslated(0.0, 0.0, Specification.PAIR_OF_WHEELS_ROD_DEPTH + Specification.TIRE_DEPTH);\n gl.glRotated(180.0, 0.0, 1.0, 0.0);\n this.wheel.render(gl);\n gl.glPopMatrix();\n\n glu.gluDeleteQuadric(q);\n\t\t\t\n \n\t}", "void render(Rectangle borders);", "@Override\n public void draw() {\n /** preparacion de la ventana **/\n background(255);\n lights();\n directionalLight(40, 90, 100, 1, 40, 40);\n\n translate(origin.x,origin.y);\n scale(zoom);\n\n\n /** entrada del usuario **/\n userInput();\n /** ejes X Y Z **/\n drawAxes();\n /** aplicar ik **/\n writePos();\n\n /** escala de los objetos**/\n scale(-1.2f);\n\n /** esfera que muestra la posicion en coord X Y Z\n *\n * X -> coord[0]\n * Y -> coord[1]\n * Z -> coord[2]\n *\n * **/\n pushMatrix();\n noStroke();\n fill(250, 100, 1);\n translate(-coord_cartesian[1] ,-coord_cartesian[2] -11,-coord_cartesian[0] );\n sphere(2);\n popMatrix();\n\n\n /**\n * Dibuja el brazo\n */\n pushMatrix();\n arm.drawArm();\n popMatrix();\n }", "@Override\n\tpublic void render () {\n\n\t}", "private void render(){\n planeImage.draw(currPos.x,currPos.y, drawOps);\n }", "@Override\n\tpublic void render(Graphics g) {\n\t\t\n\t}", "@Override\n\tpublic void render(Graphics g) {\n\t\t\n\t}", "public void render() {\n\t\tRenderUtil.clearScreen();\n\t\t\n\t\tEntityShader.getInstance().updateLights(testLight);\n\t\t\n\t\ttestLight.render();\n\t\t\n\t\tsky.render();\n\t\t\t\t\n\t\ttestEntity.render();\t\t\n\t\ttestEntity2.render();\n\t\t\t\t\n\t\tSystem.out.println(\"Entity: \" + testEntity.getPositon().toString());\n\t\tSystem.out.println(\"Camera: \" + Camera.getInstance().getPosition().toString());\n\t\tSystem.out.println(\"Look: \" + Camera.getInstance().getForward().toString());\n\t\tSystem.out.println(\"Light: \" + testLight.getPosition().toString());\n\t\twindow.render();\n\t}", "@Override\n\tpublic void paintComponent(Graphics g) {\n\n\t\ttry {\n\t\t\tGraphics2D g2d = (Graphics2D) g;\n\n\t\t\tfloat w = this.getWidth();\n\t\t\tfloat h = this.getHeight();\n\n\t\t\tRenderingContext batch = new RenderingContext(g2d, w, h);\n\n\t\t\tif (!didInitCam) {\n\t\t\t\tcam = new OrthographicCamera(w, h);\n\n\t\t\t\tcam.zoomFor(world.getSize());\n\n\t\t\t\tdidInitCam = true;\n\t\t\t}\n\n\t\t\tcam.setViewportSize(w, h);\n\n\t\t\t// cam.update(); //Nothing in this function call.\n\t\t\tbatch.setProjectionMatrix(cam);\n\n\t\t\tif (world != null) {\n\t\t\t\tworld.render(batch);\n\t\t\t}\n\n\t\t\t// Render the grid.\n\t\t\tif (showGrid) {\n\t\t\t\tg2d.setStroke(new BasicStroke(1));\n\t\t\t\tg.setColor(new Color(1.0f, 1.0f, 1.0f, 0.5f));\n\t\t\t\tPoint2D.Float size = world.getSize();\n\t\t\t\t// draw Y lines\n\t\t\t\tfor (int i = 0; i <= size.y + .5f; i++) {\n\t\t\t\t\tbatch.drawLine(0, i, size.x, i);\n\t\t\t\t}\n\t\t\t\t// draw X lines\n\t\t\t\tfor (int j = 0; j <= size.x + .5f; j++) {\n\t\t\t\t\tbatch.drawLine(j, 0, j, size.y);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Render selection stuff.\n\t\t\trenderSelectedTiles(g2d, batch);\n\t\t\trenderSelectedEntities(g2d, batch);\n\t\t\tif (renderingTool != null)\n\t\t\t\trenderingTool.render(g2d, batch);\n\n\t\t} catch (ClassCastException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t}", "public void renderScene() {\n\t\tscene.ready=false;\n\t\tscene.num_points=0;\n\t\tscene.num_triangles=0;\n\t\tscene.num_tri_vertices=0;\n\t\tscene.list_of_triangles.clear(); // reset the List of Triangles (for z-sorting purposes)\n\t\tscene.num_objects_visible=0;\n\t\ttotal_cost=0;\n\t\tupdateLighting();\n\t\tfor (int i=0; i<num_vobjects;i++) {\n\t\t\tif (vobject[i].potentially_visible) {\n\t\t\t\tif (checkVisible(i)) {\n\t\t\t\t\tscene.num_objects_visible++;\n\t\t\t\t\tcalculateRelativePoints(i);\n\t\t\t\t\tif (scene.dot_field) {defineDots(i);} \n\t\t\t\t\tif (scene.wireframe) {defineTriangles(i);}\n\t\t\t\t\tif (scene.solid_poly) {defineTriangles(i);}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\n\t\tif (scene.z_sorted) {Collections.sort(scene.list_of_triangles);}\n\t\tscene.ready=true;\n\t}", "@Override\n\tpublic void render() {\n\t\t\n\t\t// make sure dimensions given are not negative\n\t\tif (this.radius < 0) {\n\t\t\tJOptionPane.showMessageDialog(frame, \"Please enter valid parameters\");\n\t\t} \n\t\telse { \n\t\t\tJOptionPane.showMessageDialog(frame, \n\t\t\t\t\t\"The radius of the Sphere is: \" + this.radius + \"; \\n\"\n\t\t\t\t\t+ \"The volume of the Sphere is: \" + volume() + \"\\n\"\n\t\t\t\t\t+ \"The surface area of the Sphere is: \" + surfaceArea() + \"\\n\");\n\t\t}\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t}", "@Override\n public void render() { super.render(); }", "public void render() {\r\n\t\t //Draw all of the sprites in the game\r\n\t background.draw(0,backgroudY1);\r\n\t\tbackground.draw(0,backgroudY2);\r\n\t\tbackground.draw(0,backgroudY3);\r\n\t\tbackground.draw(WIDTH/2,backgroudY1);\r\n\t\tbackground.draw(WIDTH/2,backgroudY2);\r\n\t background.draw(WIDTH/2,backgroudY3);\r\n\t \r\n\t // call this method from Player class, to draw the plane.\r\n\t player.render();\r\n\t \r\n\t \r\n\t // loop through every enemy, draw enemy if it's not killed\r\n\t for(int i=0; i<enemy.length; i++) {\r\n\t \t\r\n \tif(enemy[i] != null && enemyKilled[i] == true) {\r\n \t\t\r\n\t \t\t\r\n\t enemy[i].render();\r\n\t \r\n\t \t}\r\n\t \r\n\t }\r\n\t // loop through every laser, if it has not made contact with any enemy,\r\n\t // call its render method to draw it\r\n\t for (int i = 0; i < arr_size; i++) {\r\n\t \tif (lasers[i] != null && laserUsed[i] == true) {\r\n\t lasers[i].render();\r\n \t}\r\n\t \t\r\n\t }\r\n\t \r\n\t}", "public void render(GameContainer gc, GameManager gm, Renderer r) {\n }", "@Override\n public Graphics2D createObjectView() {\n\n Graphics2D objectView = super.createObjectView();\n\n /* Setting graphics */\n objectView.setColor(Color.RED);\n objectView.setFont(new Font(\"Lucida\", Font.ITALIC, 10));\n\n RedBird player = ((RedBird) getFieldObject());\n String playerName = player.getPlayerName();\n int playerSize = player.getSize();\n int ovalSize = getOvalSize();\n\n /* Painting player name */\n if (ovalSize > START_OVAL_SIZE) {\n objectView.drawString(\n playerName,\n (playerSize / 2) - X_OFFSET,\n (playerSize / 2) + Y_OFFSET\n );\n }\n\n return objectView;\n }", "@Override\n\tpublic void Render() {\n\t\t\n\t\tSystem.out.println(\"Chocolater Ice Cream\");\n\t\t\n\t}", "@Override\n\tpublic void render() {\n\t\tComponent frame = null;\n\t\tJOptionPane.showMessageDialog(frame, \"Radius: \" + radius +\"\\nSurface Area: \" + this.surfaceArea() + \"\\nVolume: \" + this.volume(), \"Sphere\", 1);\n\t}", "@Override\n\tpublic void draw(Graphics2D g, Camera cam) {\n\n\t}", "private static void draw() {\n\t\tinitField();\n\t\tview = new View(field);\n\t\tview.setSize(viewWidth, viewHeight);\n\t\tframe = new JFrame();\n\t\tframe.setSize(fwidth, fheight);\n\t\tframe.setTitle(\"Land Mine\");\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.add(view);\n\t\tframe.setVisible(true);\n\t}", "public void render() {\n backGraphics.drawImage(background, backgroundX, backgroundY, null);\n\n GameObject.renderAll(backGraphics);\n\n //2. Call repaint\n repaint();\n }", "@Override\n\tpublic void render() {\n\t\tGdx.gl.glViewport(0, 0, Gdx.graphics.getWidth(), Gdx.graphics.getHeight());\n\t\tGdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT | GL20.GL_DEPTH_BUFFER_BIT);\n\n\n\t\t// TODO: begin the model batch with the current camera\n\t\t// render the instance of the model in the set-up environment using the model batch\n\t\t// end the model batch rendering process\n\t\tmodelBatch.begin(cam);\n\t\tmodelBatch.render(instance, environment);\n\t\tmodelBatch.end();\n\n\t\t// TODO: begin the sprite batch rendering\n\t\t// draw the new order logo at (50, 50, 200, 200)\n\t\t// end the sprite batch rendering process\n\t\tsprites.begin();\n\t\tsprites.draw(logo,50, 50, 200, 200);\n\t\tsprites.end();\n\t}", "@Override\r\n\tpublic void render() {\r\n\r\n\t\tsb.setProjectionMatrix(cam.combined);\r\n\r\n\t\t// draw background\r\n\t\tbg.render(sb);\r\n\r\n\t\t// draw button\r\n\t\tlevel1.render(sb);\r\n\t\tlevel2.render(sb);\r\n\t\tlevel3.render(sb);\r\n\t\t\r\n\t\tif (gameMode == 1){\r\n\t\t\tplayer1press.render(sb);\r\n\t\t\tplayer2press.render(sb);\r\n\t\t}\r\n\t\telse \r\n\t\t\tplayerpress.render(sb);\r\n\t\t\r\n\t\t\r\n\t selectTheLevel.render(sb);\r\n\t\t\r\n\t\tmainMenuB.render(sb);\r\n\r\n\t\t// debug draw box2d\r\n\t\tif(debug) {\r\n\t\t\tcam.setToOrtho(false, Game.V_WIDTH / 100, Game.V_HEIGHT / 100);\r\n\t\t\tb2dRenderer.render(world, cam.combined);\r\n\t\t\tcam.setToOrtho(false, Game.V_WIDTH, Game.V_HEIGHT);\r\n\t\t}\r\n\r\n\t}", "public void render () {\n image (img, xC, yC, xLength * getPixelSize(), yLength * getPixelSize());\n }", "@Override\n\tpublic void render () {\n super.render();\n\t}", "@Override\r\n public void draw() {\n }", "public void draw() {\n \n }", "void render() {\n\t\tif (!dragLock)\n\t\t\tfucusLocks();\n\n\t\t// display help information\n\t\tString selected = isSelected ? \" [selected]\" : \"\";\n\t\tmyParent.text(id + selected, anchor.x + 10, anchor.y);\n\n\t\t// display points and lines with their colourings\n\t\tfor (int i = 0; i < amount; i++) {\n\n\t\t\tpoint[i].render();\n\n\t\t\tif (state == State.DRAG_AREA)\n\t\t\t\tmyParent.stroke(255, 255, 0);\n\n\t\t\tline[i].draw();\n\n\t\t}\n\n\t\t// display rotation ellipse in anchor position\n\t\tif (state == State.ROTATE && isSelected) {\n\t\t\tmyParent.noFill();\n\t\t\tif (!dragLock)\n\t\t\t\tmyParent.stroke(255, 255, 0);\n\t\t\telse\n\t\t\t\tmyParent.stroke(0, 255, 0);\n\t\t\tmyParent.ellipse(anchor.x, anchor.y, 15, 15);\n\t\t}\n\n\t\t// display drag area rectangle in anchor position\n\t\tif (state == State.DRAG_AREA) {\n\t\t\tmyParent.noFill();\n\t\t\tif (!dragLock)\n\t\t\t\tmyParent.stroke(255, 255, 0);\n\t\t\telse\n\t\t\t\tmyParent.stroke(0, 255, 0);\n\t\t\tmyParent.rect(anchor.x, anchor.y, 15, 15);\n\t\t}\n\n\t\t// display anchor point\n\t\tmyParent.rect(anchor.x, anchor.y, 5, 5);\n\n\t\t// display line centres\n\t\tmyParent.noFill();\n\t\tmyParent.stroke(150);\n\t\tmyParent.rectMode(PConstants.CENTER);\n\t\tmyParent.rect(X.x, X.y, 5, 5);\n\t\tmyParent.rect(Y.x, Y.y, 5, 5);\n\t\tmyParent.rect(Z.x, Z.y, 5, 5);\n\t\tmyParent.rect(Q.x, Q.y, 5, 5);\n\t}", "@Override\n\tpublic void render() {\n\t\tthis.w=this.width;\n\t\tthis.h=this.height;\n\t\tif(Gdx.graphics.getWidth()<400){\n\t\t\tthis.w=this.width*1.5f;\n\t\t\tthis.h=this.height*1.5f;\n\t\t}\n\t\telse if(Gdx.graphics.getWidth()>=400 && Gdx.graphics.getWidth()<480){\n\t\t\tthis.w=this.width*1.35f;\n\t\t\tthis.h=this.height*1.35f;\n\t\t}\n\t\telse if(Gdx.graphics.getWidth()>600 && Gdx.graphics.getWidth()<=800){\n\t\t\tthis.w=this.width/1.75f;\n\t\t\tthis.h=this.height/1.75f;\n\t\t}\n\t\telse if(Gdx.graphics.getWidth()>800 && Gdx.graphics.getWidth()<1100){\n\t\t\tthis.w=this.width/2f;\n\t\t\tthis.h=this.height/2f;\n\t\t}\n\t\t\n\t\telse if(Gdx.graphics.getWidth()>1100){\n\t\t\tthis.w=this.width/2.5f;\n\t\t\tthis.h=this.height/2.5f;\n\t\t}\n\t\tif(!isShow)\n\t\t\treturn;\n\t\tif(font != null){\n\t\t\tfont.setScale(w, h);\n//\t\t\tfont.draw(GlobalVars.ge.getScreen().getBatch(), text, x, y);\n//\t\t\tfont.drawMultiLine(GlobalVars.ge.getScreen().getBatch(),text, x, y, this.areaWidth, this.hAlignment);\n\t\t\tfont.drawWrapped(GlobalVars.ge.getScreen().getBatch(),text, x, y, this.areaWidth, this.hAlignment);\n\t\t}\n\t}", "private void render() {\n\t\t// clear the screen and depth buffer\n\t\tglClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);\n\t\t\n\t\t// draws the background\n\t\tdrawScreen(sprite.get(\"background\"));\n\t\t\n\t\t// drawing player\n\t\tif (!stopDrawingPlayer)\n\t\t\tdrawEntity(player);\n\t\t// drawing bullets\n\t\tdrawListEntity(bullet);\n\t\t// drawing enemy bullets\n\t\tdrawListEntity(enemy_bullet);\n\t\t// drawing enemies\n\t\tdrawListEntity(enemy);\n\t\t// drawing powerups\n\t\tdrawListEntity(powerup);\n\t\t// drawing explosions\n\t\tdrawListEntity(explosion);\n\t\t\n\t\t// draw health\n\t\tdefaultFont.drawString(10, 10, \"Health: \" + player.getHP() + \"/1000\");\n\t\t// draw cash\n\t\tdefaultFont.drawString(10, 40, \"Cash: $\" + cash);\n\t\t// draw shop prompt\n\t\tdefaultFont.drawString(displayWidth - 280, displayHeight - 40, \"Press F to enter shop\");\n\t\t\n\t\tif (stopDrawingPlayer) {\n\t\t\t// draw Game Over\n\t\t\tgameOverFont.drawString(displayWidth / 2 - gameOverFont.getWidth(\"Game Over!\") / 2, displayHeight\n\t\t\t\t\t/ 2 - gameOverFont.getHeight(\"Game Over!\") / 2 - 50, \"Game Over!\");\n\t\t\t\n\t\t\t// draw the score\n\t\t\tscoreFont.drawString(displayWidth / 2 - scoreFont.getWidth(\"Score: \" + totalCash) / 2, displayHeight\n\t\t\t\t\t/ 2\n\t\t\t\t\t+ scoreFont.getHeight(\"Game Over!\")\n\t\t\t\t\t/ 2\n\t\t\t\t\t+ scoreFont.getHeight(\"Score: \" + totalCash)\n\t\t\t\t\t/ 2 + 10 - 50, \"Score: \" + totalCash);\n\t\t}\n\t}", "@Override\n\tpublic void tick() {\n\t\trenderer.render(this);\n\t}", "@Override\r\n public void render() {\n \r\n stage.act();\r\n stage.draw();\r\n }", "public void render(Graphics g) {\n\t}", "@Override\n\tpublic void draw() {\n\n\t}" ]
[ "0.725019", "0.70780843", "0.7074566", "0.7002531", "0.69197834", "0.6902398", "0.68423015", "0.68253976", "0.68139553", "0.68067414", "0.67462623", "0.6743931", "0.67210674", "0.6704528", "0.66675663", "0.6660446", "0.6648865", "0.6616743", "0.66151917", "0.6614674", "0.6580502", "0.65609324", "0.6552656", "0.6548016", "0.65102607", "0.650979", "0.6503181", "0.6490024", "0.6484239", "0.64783376", "0.6473512", "0.64679", "0.6462314", "0.6460305", "0.6452415", "0.64492744", "0.64407295", "0.6439727", "0.6434207", "0.642863", "0.64198816", "0.6397002", "0.6375895", "0.63570327", "0.6351203", "0.63490605", "0.634803", "0.6337727", "0.6325752", "0.6319295", "0.631691", "0.6315012", "0.6298317", "0.6291638", "0.62883663", "0.6285373", "0.6282605", "0.6262951", "0.6262951", "0.62627983", "0.6257576", "0.6254837", "0.62532896", "0.6245446", "0.6243173", "0.6235655", "0.62342155", "0.62342155", "0.6232585", "0.6231424", "0.62292844", "0.62286335", "0.6219486", "0.62139404", "0.62139404", "0.6209905", "0.6201932", "0.6198971", "0.6197274", "0.61961377", "0.6191251", "0.61815083", "0.6179381", "0.6177607", "0.617748", "0.61732906", "0.6172255", "0.6157257", "0.61548686", "0.6151632", "0.6149353", "0.61373216", "0.6127147", "0.6125223", "0.6122121", "0.6118694", "0.61157167", "0.6104349", "0.610373", "0.60956603", "0.6087985" ]
0.0
-1
Find a user by username (ID).
public static User findById(final String id) { return find.byId(id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String searchForUser() {\n String userId = \"\";\n String response = given().\n get(\"/users\").then().extract().asString();\n List usernameId = from(response).getList(\"findAll { it.username.equals(\\\"Samantha\\\") }.id\");\n if (!usernameId.isEmpty()) {\n userId = usernameId.get(0).toString();\n }\n return userId;\n }", "User findUserByUsername(String username);", "@Override\r\n\tpublic Userinfo findbyid(int id) {\n\t\treturn userDAO.searchUserById(id);\r\n\t}", "@Override\r\n\tpublic User searchUser(Integer id) {\n\t\treturn userReposotory.getById(id);\r\n\t}", "public AgtUser findUserByName(String username);", "User findUser(String userId);", "@Override\n\tpublic User findByName(String username) {\n\t\treturn userDao.findByName(username);\n\t}", "public User getSpecificUser(String username);", "public User findUser(int id) {\n\n\t\ttry {\n\t\t\tConnection conn = getConnection();\n\t\t\tPreparedStatement ps = conn.prepareStatement(\"select * from users where id = ?\");\n\t\t\tps.setInt(1, id);\n\n\t\t\tResultSet rs = ps.executeQuery();\n\t\t\tif (rs.next()) {\n\t\t\t\tUser foundUser = new User(id, rs.getString(2), rs.getString(3), rs.getString(5),\n\t\t\t\t\t\trs.getDate(6));\n\t\t\t\tconn.close();\n\t\t\t\treturn foundUser;\n\n\t\t\t}\n\t\t\tconn.close();\n\n\t\t} catch (SQLException | IOException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t\treturn null;\n\t}", "@Override\n\tpublic void findUserByUsername(String username) {\n\n\t}", "public static User findUserByName(String username) {\n\n User user = null;\n User targetUser = new User();\n IdentityMap<User> userIdentityMap = IdentityMap.getInstance(targetUser);\n\n String findUserByName = \"SELECT * FROM public.member \"\n + \"WHERE name = '\" + username + \"'\";\n\n PreparedStatement stmt = DBConnection.prepare(findUserByName);\n\n try {\n ResultSet rs = stmt.executeQuery();\n while(rs.next()) {\n user = load(rs);\n }\n DBConnection.close(stmt);\n rs.close();\n } catch (SQLException e) {\n System.out.println(\"Exception!\");\n e.printStackTrace();\n }\n if(user != null) {\n targetUser = userIdentityMap.get(user.getId());\n if(targetUser == null) {\n userIdentityMap.put(user.getId(), user);\n return user;\n }\n else\n return targetUser;\n }\n\n return user;\n }", "User find(long id);", "User getByUsername(String username);", "public String findUser(String id) throws UserNotFoundException{\n\t\tString userFound = \"\";\n\t\tfor (int i = 0; i < users.size(); i++) {\n\t\t\tif (users.get(i).getDocumentNumber().equals(id)) {\n\t\t\t\tuserFound = \"\\n-------USER-------\\n\"+users.get(i).toString();\n\t\t\t}\n\t\t}\n\t\tif (userFound.equals(\"\")) {\n\t\t\tthrow new UserNotFoundException(id);\n\t\t}\n\t\telse {\n\t\t\treturn userFound;\n\t\t}\n\t}", "@Override\r\n\tpublic User findUserByUsername(String username) {\n\t\tSystem.out.println(\"aa\");\r\n\t\treturn dao.selectUserByUsername(username);\r\n\t}", "private User findByName(String username) {\r\n\t\tCriteriaBuilder cb = entityManager.getCriteriaBuilder();\r\n\t\tCriteriaQuery cq = cb.createQuery(User.class);\r\n\t\tRoot<User> user = cq.from(User.class);\r\n\t\tcq.where(user.get(User_.username).in(username));\r\n\r\n\t\tTypedQuery<User> tq = entityManager.createQuery(cq);\r\n\t\t\r\n\t\treturn tq.getSingleResult();\r\n\t}", "@Override\n\tpublic User findUser(int id) {\n\n\t\tUser user = em.find(User.class, id);\n\n\t\treturn user;\n\t}", "User loadUser( String username ) throws UserNotFoundException;", "User getUserByUsername(String username);", "User getUserByUsername(String username);", "User getUserByUsername(String username);", "public User findUserById(int id);", "User find(String username, String password);", "@RequestMapping(value = \"/find/{id}\", method = RequestMethod.GET)\n @ResponseBody\n public ResponseEntity findUser(@PathVariable long id) {\n User user = userService.findById(id);\n if (user == null) {\n return new ResponseEntity(HttpStatus.NO_CONTENT);\n }\n return new ResponseEntity(user, HttpStatus.OK);\n }", "@Override\r\n\tpublic User findById(int id) {\n\t\treturn userDAO.findById(id);\r\n\t}", "public User findUser(String username) {\n if (userList.containsKey(username)) {\n return userList.get(username);\n } else {\n throw new NoSuchElementException(\"User Not Found.\");\n }\n }", "@Override\n\tpublic boolean findUser(String findId) {\n\t\tif(session.selectOne(namespace + \".searchUser\", findId) != null)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public static User findUser(int id) {\r\n return null;\r\n }", "public User findUserByName(String id) {\n return em.find(User.class, id);\n }", "User findUserById(int id);", "public User getUserByUsername(String username);", "public User findUser(int id)\n\t\t{\n\t\t\tfor (int i = 0; i < users.size(); i++)\n\t\t\t{\n\t\t\t\tif (id == (users.get(i).getId()))\n\t\t\t\t{\n\t\t\t\t\treturn users.get(i);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn null;\n\t\t}", "User findUserById(Long id) throws Exception;", "public User getUsername(String id){\n\t\treturn restMongoDBRepository.findById(id).get();\n\t}", "@Override\r\n\tpublic Userinfo findbyname(String name) {\n\t\treturn userDAO.searchUserByName(name);\r\n\t}", "public Users findByUserid(String id) {\n\tthis.createConnection();\n\n try {\n Connection con = this.getCon();\n PreparedStatement stmnt = con.prepareStatement(\"select * from user where id=?;\");\n stmnt.setString(1, id);\n ResultSet rs = stmnt.executeQuery();\n return get(rs);\n } catch (SQLException e) {\n System.out.println(\"SQLException: \");\n return new Users();\n }\n }", "User findUserByName(String name);", "public User getUserByName(String username);", "public User getUserByName(String username);", "public User getUserByUserName(String username);", "public SecurityUser findByName(String username);", "@Override\r\n public IUser getUserByUserId(String id)\r\n {\r\n EntityManager em = getEntityManager();\r\n\r\n try\r\n {\r\n return em.find(User.class, id);\r\n }\r\n finally\r\n {\r\n em.close();\r\n }\r\n }", "User findByUsername(String username) throws UserDaoException;", "@Override\r\n\tpublic User getByUsername(String username) throws UsernameNotFoundException {\r\n\t\tQuery query = sessionfactory.getCurrentSession().createQuery(\"FROM User WHERE username = :username\");\r\n\t\tquery.setParameter(\"username\", username);\r\n\t\tUser user = (User) query.uniqueResult();\r\n\t\tif (user == null) {\r\n\t\t\tthrow new UsernameNotFoundException(\"User with username '\" + username + \"' does not exist.\");\r\n\t\t}\r\n\t\treturn user;\r\n\t}", "public User findUser(int id) {\n for (int i = 0; i < allUsers.size(); i++) {\n if (allUsers.get(i).getId() == id) {\n return allUsers.get(i);\n }\n }\n return null;\n }", "User getOne(String username) throws NotFoundException;", "private User findById(String id) {\n User result = new NullUserOfDB();\n for (User user : this.users) {\n if (user.getId().equals(id)) {\n result = user;\n break;\n }\n }\n return result;\n }", "User getUserById(int id);", "@Override\r\n\tpublic User findByIdUser(Integer id) {\n\t\treturn userReposotory.findById(id).get();\r\n\t}", "User get(String username) throws UserNotFoundException, SQLException;", "public User findByUsername(String username);", "public User findByUsername(String username);", "public User findByUsername(String username);", "public User findByUsername(String username);", "public User getByUserName(String username) {\n\t\tSession session=sessionFactory.getCurrentSession();\n\t\tString hql = \"from User WHERE emailid = :userame\";\n\t\tUser user = (User)session.createQuery(hql).setParameter(\"userame\", username).getSingleResult();\n\t\treturn user;\n\t}", "User findByUsername(String userName);", "@Override\r\n\tpublic User findByUsername(String username) throws SQLException {\n\t\tUserDao userDao = (UserDao) BeanFactory.getBean(\"userDao\");\r\n\t\treturn userDao.findByUsername(username);\r\n\t}", "public User queryUserByUsername(String username);", "User findByUsername(String username);", "User findByUsername(String username);", "User findByUsername(String username);", "User findByUsername(String username);", "User findByUsername(String username);", "User findByUsername(String username);", "@Override\n\tpublic User findUserById(int id) {\n\t\treturn userDao.findUserById(id);\n\t}", "@Override\n\tpublic User findById(String id) {\n\t\tUser u= em.find(User.class, id);\n\t\tSystem.out.println(u);\n\t\treturn u;\n\t}", "public User findById(int id) {\n\t\treturn userRepository.findOne(id);\n\t}", "@Override\n\tpublic User findUserByUsername(String username) throws SQLException {\n User user = null;\n String sql = \"SELECT * FROM user WHERE username = ?\";\n \n connect();\n \n PreparedStatement statement = jdbcConnection.prepareStatement(sql);\n statement.setString(1, username);\n \n \n ResultSet resultSet = statement.executeQuery();\n \n while (resultSet.next()) {\n String usrname = resultSet.getString(\"username\");\n String pwd = resultSet.getString(\"password\");\n \n user = new User(usrname, pwd);\n }\n \n resultSet.close();\n statement.close();\n \n return user;\n\t}", "public User getUser(Integer id)\n\t{\n\t\t// Create an user -1 for when it isn't in the list\n\t\tUser searchUser = new User();\n\t\t// Index: User's position in the list\n\t\tint index = this.getUserById(id.intValue());\n\t\t// If the user is in the list execute the action\n\t\tif(index != -1)\n\t\t{\n\t\t\tsearchUser = this.usersList.get(index);\n\t\t}\n\t\t\n\t\treturn searchUser;\n\t}", "public User getUserById(String id){\n\t\tUser e;\n\t\tfor (int i = 0 ; i < users.size() ; i++){\n\t\t\te = users.get(i);\n\t\t\tif (e.getId().equals(id))\n\t\t\t\treturn e;\n\t\t}\n\t\treturn null;\n\t}", "@Override\n\tpublic UserDetails loadUserByUsername(String arg0) throws UsernameNotFoundException {\n\t\tList <UserDetailsPojo> list=dao.getUserByName(arg0);\n\t\tif(list==null || list.size()==0){\t\t\n\t\tthrow new UsernameNotFoundException(\"No user available\");\n\t\t}\n\t\t\n\t\tUserDetailsPojo user=list.get(0);\n\t\t\n\t\treturn user;\n\t}", "@SuppressWarnings(\"static-method\")\n public @NotNull LocalUser findByName(String username) throws UserNotFoundException {\n if (\"admin\".equals(username)) {\n LocalUser user = new LocalUser(\"admin\", \"struts2\");\n return user;\n }\n throw new UserNotFoundException(username);\n }", "public User findByUserName(String username) throws Exception;", "public User findUserByNickname(final String nickname);", "public User findById(Long id){\n return userRepository.findOne(id);\n }", "public User findById(String id) {\n\t\treturn userDao.findById(id);\n\t}", "User findUserModelByUsername(String username);", "public User findUserById (long id){\n if(userRepository.existsById(id)){\n return this.userRepository.findById(id);\n }else{\n throw new UnknownUserException(\"This user doesn't exist in our database\");\n }\n }", "public User getUser(String username);", "@Override\r\n\tpublic SpUser findById(String id) {\n\t\treturn null;\r\n\t}", "@Override\n public UserInfo findById(int id) {\n TypedQuery<UserInfo> query = entityManager.createNamedQuery(\"findUserById\", UserInfo.class);\n query.setParameter(\"id\", id);\n return query.getSingleResult();\n }", "public int search_userid(String user_name);", "@Override\r\n\tpublic User findUser(String name) {\n\t\tSession session=DaoUtil.getSessionFactory().getCurrentSession();\r\n\t\tsession.\r\n\t\t\r\n\t\t\r\n\t\treturn user;\r\n\t}", "public User user(long id) {\n\t\tOptional<User> user = repository.findById(id);\n\n\t\tif (user.isPresent()) {\n\t\t\treturn user.get();\n\t\t} else {\n\t\t\tthrow new NotFoundException(\"User com o Id: \" + id + \" não encontrado em nossa base de dados!\");\n\t\t}\n\n\t}", "public User findUser(String name) {\n\t\treturn null;\r\n\t}", "User getUser(String username);", "@Test\n\tpublic void FindUserByUsername() {\n\n\t\tUser user = new User(\"moviewatcher\", \"$2a$10$37jGlxDwJK4mRpYqYvPmyu8mqQJfeQJVSdsyFY5UNAm9ckThf2Zqa\", \"USER\");\n\t\tuserRepository.save(user);\n\t\t\n\t\tString username = user.getUsername();\n\t\tUser user4 = userRepository.findByUsername(username);\n\t\n\t\tassertThat(user4).isNotNull();\n\t\tassertThat(user4).hasFieldOrPropertyWithValue(\"username\", \"moviewatcher\");\n\t\t\n\t}", "Optional<User> findUserByUsername(String username);", "User getUserById(Long id);", "User getUserById(Long id);", "public User findById(Long id) {\n return genericRepository.find(User.class, id);\n }", "public User findById(Long id);", "@Override\n\tpublic User findUser(Integer i) {\n\t\treturn this.userservice.find(i);\n\t}", "@Override\n\tpublic User findByUsername(String username) throws UserNotFoundException {\n\t\treturn userRepo.findById(username).orElseThrow(()->new UserNotFoundException(\"Sorry User with username \"+ username+ \" is not found\"));\n\t\t\n\t}", "User getUserByUsername(String name) throws InvalidUserException;", "@Override\r\n\tpublic User findByUsername(String username) {\n\t\treturn userDAO.findByUsername(username);\r\n\t}", "User findOne(Long id);", "User loadUserByUserName(String userName);", "public User get(String username);", "public User findUser(String userid) {\n Realm realm = (mRealm == null) ? Realm.getDefaultInstance() : mRealm;\n\n User user = realm.where(User.class)\n .equalTo(\"UserId\", userid)\n .findFirst();\n\n if (mRealm == null)\n realm.close();\n\n return user;\n }" ]
[ "0.74831307", "0.74673724", "0.7457609", "0.74552417", "0.7405736", "0.7378608", "0.73463243", "0.732561", "0.7311528", "0.7304803", "0.72989434", "0.72952276", "0.72898626", "0.72760457", "0.725628", "0.7210345", "0.7208507", "0.72048515", "0.71990424", "0.71990424", "0.71990424", "0.71906555", "0.7185924", "0.7170517", "0.7168633", "0.7166548", "0.7163638", "0.7159234", "0.7152653", "0.7151834", "0.71433645", "0.7130878", "0.7128078", "0.71240336", "0.7123431", "0.7107413", "0.7103275", "0.7103062", "0.7103062", "0.7094062", "0.70806944", "0.7077254", "0.70731145", "0.7070789", "0.7056023", "0.7052733", "0.70456254", "0.7043053", "0.7039366", "0.70352405", "0.7031148", "0.7031148", "0.7031148", "0.7031148", "0.7030467", "0.7020742", "0.7017674", "0.70055157", "0.70037264", "0.70037264", "0.70037264", "0.70037264", "0.70037264", "0.70037264", "0.6989882", "0.6988013", "0.69851375", "0.69775003", "0.69757736", "0.6975012", "0.6971047", "0.69689393", "0.69686306", "0.69655055", "0.6947407", "0.6946666", "0.69463295", "0.69437075", "0.69372946", "0.6931031", "0.6930522", "0.69295585", "0.69289184", "0.6923563", "0.6916881", "0.6914596", "0.691398", "0.6908173", "0.690601", "0.690601", "0.6903287", "0.69003785", "0.6898631", "0.68952024", "0.68831664", "0.68805534", "0.6878137", "0.6875653", "0.68750846", "0.686975" ]
0.7015397
57
Getters for private fields. Get the user's username.
public final String getUsername() { return username; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic String getUsername() {\n\t\treturn user.getUserName();\n\t}", "@Override\n\tpublic String getUsername() {\n\t\treturn user.getUsername();\n\t}", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "String getUserName() {\r\n\t\t\treturn username;\r\n\t\t}", "public String getUsername() {\n return username.get();\n }", "public String get_username()\r\n\t{\r\n\t\treturn this.username;\r\n\t}", "public String getUserName() {\n\t\treturn this.username;\r\n\t}", "public String getUsername()\r\n\t{\r\n\t\treturn username;\r\n\t}", "public final String getUser() {\n return username;\n }", "java.lang.String getUserName();", "java.lang.String getUserName();", "java.lang.String getUserName();", "@Override\n\tpublic String getUsername() {\n\t\treturn this.username;\n\t}", "public String getUsername()\n\t{\n\t\treturn username;\n\t}", "public String getUsername() {\n\t\treturn this.username;\n\t}", "public String getUsername() {\n\t\treturn userName;\n\t}", "public String getUsername() {\n \t\treturn username;\n \t}", "public String getUsername()\n\t{\n\t\treturn m_username;\n\t}", "@Override\n\tpublic String getUsername() {\n\t\treturn username;\n\t}", "@Override\n\tpublic String getUsername() {\n\t\treturn username;\n\t}", "public String getUsername() {\r\n return this.username;\r\n }", "@Override\r\n\tpublic String getUsername() {\n\t\treturn username;\r\n\t}", "public String getUsername() {\r\n return username;\r\n }", "public String getUsername() {\r\n return username;\r\n }", "public String getUsername() {\r\n return username;\r\n }", "public String getUsername() {\r\n return username;\r\n }", "public String getUsername() {\r\n return username;\r\n }", "public String getUsername() {\r\n return username;\r\n }", "public String getUsername() {\r\n return username;\r\n }", "public String getUsername() {\r\n return username;\r\n }", "public String getUsername() {\r\n return username;\r\n }", "public String getUsername() {\r\n return username;\r\n }", "public String getUsername() {\r\n return username;\r\n }", "@Override\n\tpublic String getUserName() {\n\t\treturn model.getUserName();\n\t}", "@Override\n\tpublic String getUserName() {\n\t\treturn model.getUserName();\n\t}", "public String getUsername() {\n return username;\n }", "public String getUsername() {\r\n\t\treturn username;\r\n\t}", "public String getUsername() {\r\n\t\treturn username;\r\n\t}", "public String getUsername() {\r\n\t\treturn username;\r\n\t}", "public String getUsername() {\r\n\t\treturn username;\r\n\t}", "public String getUsername() {\r\n\t\treturn username;\r\n\t}", "public String getUsername() {\n return this.username;\n }", "public String getUsername() {\n return this.username;\n }", "public String getUsername() {\n return this.username;\n }", "public java.lang.String getUsername() {\n java.lang.Object ref = username_;\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 username_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getUsername() {\n\t\treturn username;\n\t}", "public String getUsername() {\n\t\treturn username;\n\t}", "public String getUsername() {\n\t\treturn username;\n\t}", "public String getUsername() {\n\t\treturn username;\n\t}", "public String getUsername() {\n\t\treturn username;\n\t}", "public String getUsername() {\n\t\treturn username;\n\t}", "public String getUsername() {\n\t\treturn username;\n\t}", "public String getUsername() {\n\t\treturn username;\n\t}", "public final String getUsername() {\n\t\treturn username.trim();\n\t}", "public java.lang.String getUsername() {\n java.lang.Object ref = username_;\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 username_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getUsername() {\n java.lang.Object ref = username_;\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 username_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getUsername() {\n java.lang.Object ref = username_;\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 username_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "protected final String getUserName() {\n return this.userName;\n }", "public String getUsername() {\n return username;\n }", "public String getUsername() {\n return username;\n }", "public String getUsername() {\n return username;\n }", "public String getUsername() {\n return username;\n }", "public String getUsername() {\n return username;\n }", "public String getUsername() {\n return username;\n }", "public String getUsername() {\n return username;\n }", "public String getUsername() {\n return username;\n }", "public String getUsername() {\n return username;\n }", "public String getUsername() {\n return username;\n }", "public String getUsername() {\n return username;\n }", "public String getUsername() {\n return username;\n }", "public String getUsername() {\n return username;\n }", "public String getUsername() {\n return username;\n }", "public String getUsername() {\n return username;\n }", "public String getUsername() {\n return username;\n }", "public String getUsername() {\n return username;\n }", "public String getUsername() {\n return username;\n }", "public String getUsername() {\n return username;\n }", "public String getUsername() {\n return username;\n }", "public String getUsername() {\n return username;\n }", "public String getUsername() {\n return username;\n }", "public String getUsername() {\n return username;\n }", "public String getUsername() {\n return username;\n }", "public String getUsername() {\n return username;\n }", "public String getUsername() {\n return username;\n }", "public String getUsername() {\n return username;\n }", "public String getUsername() {\n return username;\n }", "public String getUsername() {\n return username;\n }", "public String getUsername() {\n return username;\n }", "public String getUsername() {\n return username;\n }", "public String getUsername() {\n return username;\n }", "public String getUsername() {\n return username;\n }", "public String getUsername() {\n return username;\n }" ]
[ "0.8776395", "0.8764648", "0.87266475", "0.87266475", "0.87266475", "0.87266475", "0.87266475", "0.87266475", "0.87266475", "0.87266475", "0.87266475", "0.8561081", "0.8490159", "0.8466298", "0.84520197", "0.8449422", "0.84479076", "0.8438018", "0.8438018", "0.8438018", "0.8415793", "0.8399494", "0.8396798", "0.8395791", "0.8389749", "0.83834076", "0.83636504", "0.83636504", "0.83627623", "0.8347482", "0.8337206", "0.8337206", "0.8337206", "0.8337206", "0.8337206", "0.8337206", "0.8337206", "0.8337206", "0.8337206", "0.8337206", "0.8337206", "0.83313495", "0.83313495", "0.83291405", "0.83290637", "0.83290637", "0.83290637", "0.83290637", "0.83290637", "0.83251005", "0.83251005", "0.83251005", "0.82998276", "0.8295566", "0.8295566", "0.8295566", "0.8295566", "0.8295566", "0.8295566", "0.8295566", "0.8295566", "0.8295507", "0.8287516", "0.8287516", "0.8287516", "0.8285934", "0.82814634", "0.82814634", "0.82814634", "0.82814634", "0.82814634", "0.82814634", "0.82814634", "0.82814634", "0.82814634", "0.82814634", "0.82814634", "0.82814634", "0.82814634", "0.82814634", "0.82814634", "0.82814634", "0.82814634", "0.82814634", "0.82814634", "0.82814634", "0.82814634", "0.82814634", "0.82814634", "0.82814634", "0.82814634", "0.82814634", "0.82814634", "0.82814634", "0.82814634", "0.82814634", "0.82814634", "0.82814634", "0.82814634", "0.82814634" ]
0.8570564
11
Get the user's password.
public final String getPwd() { return pwd; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getUserPassword() {\n return sp.getString(USER_PASSWORD, null);\n }", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "@Override\n\tpublic String getPassword() {\n\t\treturn user.getUserPwd();\n\t}", "public java.lang.String getPassword();", "@Override\n\tpublic String getPassword() {\n\t\treturn user.getPassword();\n\t}", "public String getUserPassword() {\r\n return userPassword;\r\n }", "public String getUserPassword() {\n\t\treturn userPassword;\n\t}", "public String getPassword() {\n return (String) getObject(\"password\");\n }", "String getUserPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "public String getPassword() {\r\n \t\treturn properties.getProperty(KEY_PASSWORD);\r\n \t}", "public String getPassword();", "public String getPassword();", "public final String getPassword() {\n return properties.get(PASSWORD_PROPERTY);\n }", "public String getPassword()\n \t{\n \t\treturn password;\n \t}", "public String get_password()\r\n\t{\r\n\t\treturn this.password;\r\n\t}", "public String getPassword() {\n return getProperty(PASSWORD);\n }", "public String getPassword() {\n Object ref = password_;\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 password_ = s;\n return s;\n }\n }", "public String getPassword()\n {\n return password;\n }", "public String getPassword()\n {\n return password;\n }", "public String getPassword()\r\n {\r\n return password;\r\n }", "public String getPassWord() {\n\t\tsharedPreferences = context.getSharedPreferences(\"Login\",\n\t\t\t\tcontext.MODE_PRIVATE);\n\t\treturn sharedPreferences.getString(\"PASSWORD\", null);\n\t}", "public java.lang.String getPassword() {\n java.lang.Object ref = password_;\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 password_ = s;\n return s;\n }\n }", "public java.lang.String getPassword() {\n java.lang.Object ref = password_;\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 password_ = s;\n return s;\n }\n }", "public java.lang.String getPassword() {\n java.lang.Object ref = password_;\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 password_ = s;\n return s;\n }\n }", "public String getPassword()\n {\n return password;\n }", "public String getPassword()\n {\n return password;\n }", "public String getPassword() {\n \t\treturn password;\n \t}", "public String getPassword() {\n return password;\r\n }", "public String getPassword()\r\n {\r\n return password;\r\n }", "public String getPassword() {\n Object ref = password_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n password_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "public java.lang.String getPassword() {\n java.lang.Object ref = password_;\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 password_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getPassword() {\n java.lang.Object ref = password_;\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 password_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getPassword() {\n java.lang.Object ref = password_;\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 password_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getPasswd() {\n java.lang.Object ref = passwd_;\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 passwd_ = s;\n }\n return s;\n }\n }", "public java.lang.String getPassword() {\n java.lang.Object ref = password_;\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 password_ = s;\n }\n return s;\n }\n }", "public java.lang.String getPassword() {\n java.lang.Object ref = password_;\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 password_ = s;\n }\n return s;\n }\n }", "public java.lang.String getPassword () {\r\n\t\treturn password;\r\n\t}", "public String getPassword() {\n\t\treturn String.valueOf(password.getPassword());\n\t}", "public String getPassword()\r\n {\r\n return password;\r\n }", "public String getPassword()\n\t{\n\t\treturn password;\n\t}", "public String getPassword() {\n\treturn strPasswd;\n }", "public String getPassword()\n {\n return _password;\n }", "public String getPassword() {\n return password;\n }", "public String getPassword() {\n return password;\n }", "public java.lang.String getPassword() {\r\n return password;\r\n }", "public java.lang.String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public java.lang.String getPassword() {\n java.lang.Object ref = password_;\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 password_ = s;\n return s;\n }\n }", "public java.lang.String getPassword() {\n java.lang.Object ref = password_;\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 password_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getPassword() {\n return password;\n }", "public String getPassword() {\n return password;\n }", "public String getPassword() {\n return password;\n }", "public String getPassword() {\n return password;\n }", "public String getPassword() {\n return password;\n }", "public String getPassword() {\n return password;\n }", "public String getPassword() {\n return password;\n }", "public String getPassword() {\n return password;\n }", "public String getPassword() {\n return password;\n }", "public String getPassword() {\n return password;\n }", "public String getPassword() {\n return password;\n }", "public String getPassword() {\n return password;\n }", "public String getPassword() {\n return password;\n }", "public String getPassword() {\n return password;\n }", "public String getPassword() {\n return password;\n }", "public String getPassword() {\n return password;\n }", "public String getPassword() {\n return password;\n }", "public String getPassword() {\n return password;\n }", "public String getPassword() {\n return password;\n }", "public String getPassword() {\n return password;\n }", "public String getPassword() {\n return password;\n }", "public String getPassword() {\n return password;\n }", "public String getPassword() {\n return password;\n }", "public String getPassword() {\n return password;\n }", "public String getPassword() {\n return password;\n }", "public String getPassword() {\n return password;\n }" ]
[ "0.8620893", "0.85270166", "0.85270166", "0.85270166", "0.85270166", "0.85270166", "0.85270166", "0.85270166", "0.8495053", "0.8456269", "0.8424683", "0.8390042", "0.8266791", "0.8264527", "0.8257194", "0.81813365", "0.81813365", "0.81813365", "0.81813365", "0.81813365", "0.81813365", "0.81813365", "0.81813365", "0.81813365", "0.815266", "0.81340265", "0.81340265", "0.80938584", "0.805843", "0.8036872", "0.79993355", "0.79743385", "0.7969029", "0.7969029", "0.7966721", "0.7961179", "0.7960809", "0.7960809", "0.7960809", "0.7942626", "0.7942626", "0.7940775", "0.7936331", "0.79355043", "0.7934507", "0.7927436", "0.7927436", "0.7927436", "0.79253095", "0.79224086", "0.79224086", "0.7918799", "0.7918791", "0.7915036", "0.79129267", "0.79060286", "0.7906001", "0.79054725", "0.79054725", "0.790345", "0.790345", "0.79031396", "0.79031396", "0.79031396", "0.79031396", "0.79031396", "0.79031396", "0.79031396", "0.79031396", "0.79031396", "0.79031396", "0.79031396", "0.79011637", "0.7901123", "0.7900927", "0.78982353", "0.78982353", "0.78982353", "0.78982353", "0.78982353", "0.78982353", "0.78982353", "0.78982353", "0.78982353", "0.78982353", "0.78982353", "0.78982353", "0.78982353", "0.78982353", "0.78982353", "0.78982353", "0.78982353", "0.78982353", "0.78982353", "0.78982353", "0.78982353", "0.78982353", "0.78982353", "0.78982353", "0.78982353", "0.78982353" ]
0.0
-1
Get the user's email.
public final String getEmail() { return email; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getEmail() {\n return sp.getString(USER_EMAIL, null);\n }", "public String getUserEmail() {\n return sharedPreferences.getString(PREFERENCE_USER_EMAIL, \"\");\n }", "public java.lang.String getUserEmail() {\r\n return userEmail;\r\n }", "java.lang.String getUserEmail();", "public String getUserEmail() {\r\n return userEmail;\r\n }", "public String getUserEmail() {\r\n return userEmail;\r\n }", "public String getUserEmail() {\n return userEmail;\n }", "public java.lang.String getUserEmail() {\n java.lang.Object ref = userEmail_;\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 userEmail_ = s;\n }\n return s;\n }\n }", "private String getUserEmailAddress() {\n\t\tUser user = UserDirectoryService.getCurrentUser();\n\t\tString emailAddress = user.getEmail();\n\n\t\treturn emailAddress;\n\t}", "public java.lang.String getUserEmail() {\n java.lang.Object ref = userEmail_;\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 if (bs.isValidUtf8()) {\n userEmail_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getEmail() {\n return userItem.getEmail();\n }", "java.lang.String getEmail();", "java.lang.String getEmail();", "java.lang.String getEmail();", "java.lang.String getEmail();", "java.lang.String getEmail();", "java.lang.String getEmail();", "public static String getUserEmail() {\r\n return null;\r\n }", "public final String getEmail() {\n\t\treturn email;\n\t}", "public java.lang.String getEmail() {\n return email;\n }", "public java.lang.String getEmail() {\n return email;\n }", "public java.lang.String getEmail() {\n return email;\n }", "public java.lang.String getEmail() {\n return email;\n }", "String getUserMail();", "public java.lang.String getEmail() {\r\n return email;\r\n }", "public java.lang.String getEmail () {\n\t\treturn email;\n\t}", "public String getEmail()\n\t{\n\t\treturn getEmail( getSession().getSessionContext() );\n\t}", "public String getEmail()\n\t{\n\t\treturn getEmail( getSession().getSessionContext() );\n\t}", "public static String getEmail() {\n\t\treturn SecurityContextHolder.getContext().getAuthentication().getName();\n\t}", "public java.lang.String getEmail() {\n\t\treturn email;\n\t}", "public String getEmail()\n\t{\n\t\treturn this._email;\n\t}", "public String getEmail() {\n return email;\n }", "public String getGmail() {\n\t\treturn user.getAuthEmail();\n\t}", "public String getEmail() {\r\n\t\treturn email;\r\n\t}", "public String getEmail() {\r\n\t\treturn email;\r\n\t}", "public String getEmail() {\r\n\t\treturn email;\r\n\t}", "String getEmail();", "String getEmail();", "String getEmail();", "String getEmail();", "String getEmail();", "public String getEmail() {\n\t\treturn email;\n\t}", "public String getEmail() {\n\t\treturn email;\n\t}", "public String getEmail() {\n\t\treturn email;\n\t}", "public String getEmail() {\n\t\treturn email;\n\t}", "public String getEmail() {\n\t\treturn email;\n\t}", "public String getEmail() {\n\t\treturn email;\n\t}", "public String getEmail() {\n\t\treturn email;\n\t}", "public String getEmail() {\n\t\treturn email;\n\t}", "public String getEmail() {\n\t\treturn email;\n\t}", "public String getEmail() {\n\t\treturn email;\n\t}", "public String getEmail() {\n\t\treturn email;\n\t}", "public String getEmail() {\n\t\treturn email;\n\t}", "public static String getCurrUserEmail() {\n String userEmail;\n try {\n userEmail = FirebaseAuth.getInstance().getCurrentUser().getEmail();\n } catch (Exception e) {\n userEmail = null;\n }\n return userEmail;\n }", "public String getEmail()\n\t{\n\t\treturn this.email;\n\t}", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }" ]
[ "0.86120063", "0.85268533", "0.84074444", "0.83859634", "0.82194865", "0.82194865", "0.8212644", "0.81850606", "0.8159206", "0.8131478", "0.8000747", "0.79372257", "0.79372257", "0.79372257", "0.79372257", "0.79372257", "0.79372257", "0.7781538", "0.7713862", "0.7676125", "0.7676125", "0.7676125", "0.7676125", "0.76730716", "0.7619762", "0.7581785", "0.7552432", "0.7552432", "0.74981374", "0.74824274", "0.7471943", "0.74637705", "0.74627185", "0.7460648", "0.7460648", "0.7460648", "0.7449053", "0.7449053", "0.7449053", "0.7449053", "0.7449053", "0.74285644", "0.74285644", "0.74285644", "0.74285644", "0.74285644", "0.74285644", "0.74285644", "0.74285644", "0.74285644", "0.74285644", "0.74285644", "0.74285644", "0.742671", "0.7408231", "0.73903626", "0.73903626", "0.73903626", "0.73903626", "0.73903626", "0.73903626", "0.73903626", "0.73903626", "0.73903626", "0.73903626", "0.73903626", "0.7374276", "0.7374276", "0.7374276", "0.7374276", "0.7374276", "0.7374276", "0.7374276", "0.7374276", "0.7374276", "0.7374276", "0.7374276", "0.7374276", "0.7374276", "0.7374276", "0.7374276", "0.7374276", "0.7374276", "0.7374276", "0.7374276", "0.7374276", "0.7374276", "0.7374276", "0.7374276", "0.7374276", "0.7374276", "0.7374276", "0.7374276", "0.7374276", "0.7374276", "0.7374276", "0.7374276", "0.7374276", "0.7374276", "0.7374276" ]
0.784653
17
Get the user's name.
public final String getName() { return name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getName() {\n return user.getName();\n }", "java.lang.String getUserName();", "java.lang.String getUserName();", "java.lang.String getUserName();", "public static String getUserDisplayName() {\r\n return getUsername();\r\n }", "public String getUserName(){\n return mSharedPreferences.getString(SharedPrefContract.PREF_USER_NAME, null);\n }", "public String getName() {\n return (String) getObject(\"username\");\n }", "public String getUser_name() {\n return user_name;\n }", "public String getUserName() {\n\t\tsharedPreferences = context.getSharedPreferences(\"Login\",\n\t\t\t\tcontext.MODE_PRIVATE);\n\t\treturn sharedPreferences.getString(\"USERNAME\", null);\n\t}", "@Override\n\tpublic String getUsername() {\n\t\treturn user.getUserName();\n\t}", "@Override\n\tpublic String getUserName() {\n\t\t\n\t\ttry {\n\t\t\treturn UserLocalServiceUtil.getUser(_dataset.getUserId()).getScreenName();\n\t\t} catch (PortalException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (SystemException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\treturn \"ERROR\";\n\t\t}\n\t}", "public String getUserName() {\n\t\t\treturn name;\n\t\t}", "String getUserName();", "String getUserName();", "public String getUserName() {\n\t\treturn phoneText.getText().toString();\n\t}", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "public String getName() {\r\n\t\treturn this.userName;\r\n\t}", "@Override\n\tpublic String getUserName() {\n\t\treturn model.getUserName();\n\t}", "@Override\n\tpublic String getUserName() {\n\t\treturn model.getUserName();\n\t}", "@Override\n\tpublic String getGivenName() {\n\t\treturn user.getUserInfo().getGivenName();\n\t}", "public String getName() {\n\t\treturn this.username;\n\t}", "public static String getUserName() {\n\t\treturn readTestData.getkeyData(\"SignUpDetails\", \"Key\", \"Value\", \"userName\");\n\t}", "public String getName() {\r\n\t\treturn username;\r\n\t}", "public static String getUserName() {\r\n\t\tHttpSession session = (HttpSession) FacesContext.getCurrentInstance()\r\n\t\t\t\t.getExternalContext().getSession(false);\r\n\t\treturn session.getAttribute(\"username\").toString();\r\n\t}", "public static String getUserName() {\r\n\t\tHttpSession session = (HttpSession) FacesContext.getCurrentInstance()\r\n\t\t\t\t.getExternalContext().getSession(false);\r\n\t\treturn session.getAttribute(\"username\").toString();\r\n\t}", "private String getLoggedInUserName() {\n try {\n /*\n * Get the user information.\n */\n String userName = ServerUtilities.getServerUserInfo().getName();\n\n if(userName.isEmpty()) {\n return new String(\"Anonymous User\");\n }\n return userName;\n } catch (Exception ignore) {\n }\n\n return new String(\"Anonymous User\");\n }", "@Override\n public java.lang.String getUserName() {\n return _partido.getUserName();\n }", "@Override\n\tpublic String getUsername() {\n\t\treturn user.getUsername();\n\t}", "@Override\n public String getUserName() {\n return name;\n }", "@Override\n\tpublic java.lang.String getUserName() {\n\t\treturn _esfTournament.getUserName();\n\t}", "@Override\n\tpublic String getUserName() {\n\t\treturn super.getUserName();\n\t}", "@Override\n\tpublic String getUserName() {\n\t\treturn super.getUserName();\n\t}", "public String getUserRealName() {\r\n return userRealName;\r\n }", "@AutoEscape\n\tpublic String getUser_name();", "public java.lang.String getUserName() {\n return userName;\n }", "public java.lang.String getUserName() {\n java.lang.Object ref = userName_;\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 if (bs.isValidUtf8()) {\n userName_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getUserName() {\n java.lang.Object ref = userName_;\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 userName_ = s;\n }\n return s;\n }\n }", "@Override\n\tpublic java.lang.String getUserName() {\n\t\treturn _second.getUserName();\n\t}", "public java.lang.String getUserName() {\r\n return userName;\r\n }", "public String getUserName() {\n return sessionData.getUserName();\n }", "public String getUserName() {\n Object ref = userName_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n userName_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "@Override\n\tpublic java.lang.String getUserName() {\n\t\treturn _employee.getUserName();\n\t}", "public String getUserName() {\n Object ref = userName_;\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 userName_ = s;\n return s;\n }\n }", "public String getUserName() {\n return txtUserName().getText();\n }", "public final String getUser() {\n return username;\n }", "public java.lang.String getUserName() {\n java.lang.Object ref = userName_;\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 userName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getUserName() {\n java.lang.Object ref = userName_;\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 userName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getUserName() {\n if (passCred != null)\n return passCred.getUserName();\n else\n return null;\n }", "@Override\n\tpublic java.lang.String getUserName() {\n\t\treturn _paper.getUserName();\n\t}", "@Override\r\n\tpublic String getFullname(String userId) {\n\t\tif (conn == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\tString name = null;\r\n\t\ttry {\r\n\t\t\tString sql = \"SELECT username FROM users WHERE user_id = ? \";\r\n\t\t\tPreparedStatement statement = conn.prepareStatement(sql);\r\n\t\t\tstatement.setString(1, userId);\r\n\t\t\tResultSet rs = statement.executeQuery();\r\n\t\t\tif (rs.next()) {\r\n\t\t\t\tname = rs.getString(\"username\");\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn name;\r\n\t}", "public static String getUserName(long requestorId)\n\t {\n\t String fullName = StringPool.BLANK;\n\t try\n\t {\n\t User user = UserLocalServiceUtil.getUserById(requestorId);\n\t fullName = user.getFirstName() + StringPool.SPACE + user.getLastName();\n\t } catch (PortalException e)\n\t {\n\t LOGGER.error(\"Failed to find user details...\" + e.getMessage());\n\t } catch (SystemException e)\n\t {\n\t LOGGER.error(\"User not exist....\" + e.getMessage());\n\t }\n\t return fullName;\n\t }", "public String getUserRealname() {\n return userRealname;\n }", "public java.lang.String getUserName() {\n java.lang.Object ref = userName_;\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 userName_ = s;\n return s;\n }\n }", "public java.lang.String getUserName() {\n java.lang.Object ref = userName_;\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 userName_ = s;\n return s;\n }\n }", "public String getUserName()\n\t{\n\t\treturn this.userName;\n\t}", "public String getUserName() {\n return (String) getAttributeInternal(USERNAME);\n }", "String getCurrentUserDisplayName() throws Exception;", "public String getName() {\n\t\tSharedPreferences settings = parentContext.getSharedPreferences(PREFERENCE_FILE,\n\t\t\t\tContext.MODE_PRIVATE);\n\t\treturn settings.getString(USERNAME_KEY, null);\n\t}", "private void getUserName() {\n if (mAuth.getCurrentUser() != null) {\n nameOfCurrentUser = mAuth.getCurrentUser().getDisplayName();\n Log.d(TAG, \"getUserName: getDisplayName is not null\");\n if (nameOfCurrentUser != null && nameOfCurrentUser.contains(\" \")) {\n String[] nameArray = nameOfCurrentUser.split(\" \");\n personalWelcomeMessage.setText(\"Hello, \" + nameArray[0]);\n Log.d(TAG, \"Name is: \" + personalWelcomeMessage.getText().toString());\n }\n else if (nameOfCurrentUser != null && !nameOfCurrentUser.contains(\" \")) {\n personalWelcomeMessage.setText(\"Hello, \" + nameOfCurrentUser);\n Log.d(TAG, \"Name is: \" + personalWelcomeMessage.getText().toString());\n }\n else if (nameOfCurrentUser==null){\n personalWelcomeMessage.setText(\"Hello\");\n }\n }\n }", "public String getCurrentUserName() {\n\t\treturn currentUser.getName();\n\t}", "public String getUserName();", "public String getName(){\n return username;\n\t}", "private String getUserName() {\n EditText nameEditText = (EditText) findViewById(R.id.name_edit_text);\n return nameEditText.getText().toString().trim();\n }", "String getUserName() {\r\n\t\t\treturn username;\r\n\t\t}", "String getUserUsername();", "public final String getUsername() {\n return properties.get(USERNAME_PROPERTY);\n }", "java.lang.String getUser();", "public String returnUserName() {\n\t\treturn this.registration_username.getAttribute(\"value\");\r\n\t}", "private String getLoggedUser() {\n\t\torg.springframework.security.core.userdetails.User user2 = \n\t\t\t\t(org.springframework.security.core.userdetails.User) \n\t\t\t\tSecurityContextHolder.getContext().getAuthentication().getPrincipal();\n\t\tString name = user2.getUsername();\n\t\treturn name;\n\t}", "public String getUserName() {\r\n\t\treturn userName;\r\n\t}", "public String getUserName() {\r\n\t\treturn userName;\r\n\t}", "public String getUserName() {\r\n\t\treturn userName;\r\n\t}", "public String getUserName() {\r\n\t\treturn userName;\r\n\t}", "public String getUserName() {\n\t\treturn this.userName;\n\t}", "public String getUsername() {\n return username.get();\n }", "public String getUserName() {\n\t\treturn this.username;\r\n\t}", "@Nonnull\n public abstract Optional<String> getUserName();", "public String getUsernameFieldName() {\n return getStringProperty(USERNAME_FIELD_NAME_KEY);\n }", "String getUsername();", "String getUsername();", "String getUsername();", "String getUsername();", "String getUsername();", "String getUsername();", "public String getUserName() {\n\t\treturn userName;\n\t}", "public String getUserName() {\n\t\treturn userName;\n\t}", "public String getUserName() {\n\t\treturn userName;\n\t}", "public String getUserName() {\n\t\treturn userName;\n\t}", "public String getUserName() {\n\t\treturn userName;\n\t}", "public String getUserName() {\n\t\treturn userName;\n\t}", "public String getUserName() {\n\t\treturn userName;\n\t}", "public String getUserName() {\n\t\treturn userName;\n\t}", "public String getUserName() {\n\t\treturn userName;\n\t}" ]
[ "0.85959816", "0.83824563", "0.83824563", "0.83824563", "0.8300134", "0.8108952", "0.81040084", "0.808289", "0.8034339", "0.7992838", "0.79712296", "0.7964637", "0.7964302", "0.7964302", "0.7909971", "0.7898714", "0.7898714", "0.7898714", "0.7898714", "0.7898714", "0.7898714", "0.7898714", "0.7898714", "0.7898714", "0.78912073", "0.78876346", "0.78876346", "0.78504187", "0.78195757", "0.78035367", "0.78021467", "0.77896005", "0.77896005", "0.77812594", "0.7739511", "0.7715945", "0.7709096", "0.7703387", "0.7697214", "0.7697214", "0.7691693", "0.7678789", "0.76769906", "0.766441", "0.7649347", "0.76481616", "0.76435554", "0.7641267", "0.7641137", "0.76333654", "0.7630957", "0.763085", "0.76211786", "0.7605909", "0.7605909", "0.75890315", "0.75790524", "0.75355554", "0.75296766", "0.75284207", "0.75256044", "0.75256044", "0.7523575", "0.7523272", "0.75192016", "0.75136167", "0.74975073", "0.7487146", "0.74870837", "0.7480299", "0.7478324", "0.7467701", "0.7464078", "0.7459108", "0.7443004", "0.74363774", "0.7434076", "0.7419741", "0.7419741", "0.7419741", "0.7419741", "0.7409331", "0.7401937", "0.7401292", "0.7397337", "0.7397112", "0.7394496", "0.7394496", "0.7394496", "0.7394496", "0.7394496", "0.7394496", "0.738319", "0.738319", "0.738319", "0.738319", "0.738319", "0.738319", "0.738319", "0.738319", "0.738319" ]
0.0
-1
Get the user's phone.
public final String getPhone() { return phone; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getUserPhone() {\r\n return userPhone;\r\n }", "java.lang.String getUserPhone();", "public String getUserphone() {\n return userphone;\n }", "public java.lang.String getUserPhone() {\n java.lang.Object ref = userPhone_;\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 userPhone_ = s;\n }\n return s;\n }\n }", "public java.lang.String getUserPhone() {\n java.lang.Object ref = userPhone_;\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 if (bs.isValidUtf8()) {\n userPhone_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getUserPhone()\n {\n return userPhone;\n }", "public String getUserTelephone() {\n return userTelephone;\n }", "java.lang.String getPhone();", "public String getPhone(final SessionContext ctx)\n\t{\n\t\treturn (String)getProperty( ctx, PHONE);\n\t}", "public String getPhone(final SessionContext ctx)\n\t{\n\t\treturn (String)getProperty( ctx, PHONE);\n\t}", "public java.lang.String getPhone() {\n return phone;\n }", "public String getPhone() {\n\t\treturn phone;\n\t}", "public String getPhoneNumber() throws NullPointerException {\n\n\t\tString phoneNumber = user.getPhoneNumber();\n\t\tif (phoneNumber == null || phoneNumber.isEmpty()) {\n\t\t\tthrow new NullPointerException();\n\t\t}\n\n\t\treturn Utils.formatPhoneNumber(phoneNumber);\n\t}", "public String getPhone() {\r\n\t\treturn this.phone;\r\n\t}", "public java.lang.String getPhone () {\n\t\treturn phone;\n\t}", "@Override\n public String getphoneNumber() {\n return ((EditText)findViewById(R.id.phoneNumberUserPage)).getText().toString().trim();\n }", "@Override\n public String getPhoneNumber() {\n\n if(this.phoneNumber == null){\n\n this.phoneNumber = TestDatabase.getInstance().getClientField(token, id, \"phoneNumber\");\n }\n\n return phoneNumber;\n }", "public String getPhone()\n\t{\n\t\treturn getPhone( getSession().getSessionContext() );\n\t}", "public String getPhone()\n\t{\n\t\treturn getPhone( getSession().getSessionContext() );\n\t}", "java.lang.String getPhoneNumber();", "java.lang.String getPhoneNumber();", "java.lang.String getPhoneNumber();", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return _phone;\n }", "@Override\r\n\tpublic String getPhone() {\n\t\treturn phone;\r\n\t}", "public String getPhone() {\r\n return phone;\r\n }", "public String getPhone() {\r\n return phone;\r\n }", "public String getPhone() {\r\n return phone;\r\n }", "public String getPhone() {\r\n return phone;\r\n }", "public String getPhone() {\r\n return phone;\r\n }", "public String getPhone() {\r\n return phone;\r\n }", "public String getPhone(){\n\t\treturn phone;\n\t}", "public String getTelephone() {\n return (String) get(\"telephone\");\n }", "public Long getMobile_phone();", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public java.lang.String getPhone() {\n java.lang.Object ref = phone_;\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 phone_ = s;\n }\n return s;\n }\n }", "public java.lang.String getPhone() {\n java.lang.Object ref = phone_;\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 if (bs.isValidUtf8()) {\n phone_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public Phone getPhone() {\n\t\treturn phone;\n\t}", "public long getPhone() {\n return phone;\n }", "public static String getPhone(final IUser iUser) {\r\n try {\r\n return SecurityManagerFactory.getSecurityManager().executeAsSystem(new Callable<String>() {\r\n public String call() {\r\n try {\r\n return iUser.getProperty(UserUtils.PHONE);\r\n } catch (Exception e) {\r\n Ivy.log().error(e);\r\n return null;\r\n }\r\n }\r\n });\r\n } catch (Exception e) {\r\n Ivy.log().error(e);\r\n return null;\r\n }\r\n }", "public String getPhoneNumber(){\n\t\t \n\t\t TelephonyManager mTelephonyMgr;\n\t\t mTelephonyMgr = (TelephonyManager)\n\t\t activity.getSystemService(Context.TELEPHONY_SERVICE); \n\t\t return mTelephonyMgr.getLine1Number();\n\t\t \n\t\t}", "public String getPhone() {\n return mPhone;\n }", "public String getPhone() {\n return mPhone;\n }", "public long getPhoneNumber() {\r\n\t\treturn phoneNumber;\r\n\t}", "public String getMyPhoneNumber() {\n return ((TelephonyManager) mContext.getSystemService(Context.TELEPHONY_SERVICE))\n .getLine1Number();\n }", "public java.lang.String getTelePhone() {\r\n return telePhone;\r\n }", "public com.google.protobuf.ByteString\n getUserPhoneBytes() {\n java.lang.Object ref = userPhone_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n userPhone_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public Long getHome_phone();", "public String getUserTel() {\n return userTel;\n }", "public String getUserTel() {\n return userTel;\n }", "int getPhone();", "public String getPhoneNumber()\n\t{\n\t\treturn this._phoneNumber;\n\t}", "public String getMobilePhone() {\n return mobilePhone;\n }", "public com.google.protobuf.ByteString\n getUserPhoneBytes() {\n java.lang.Object ref = userPhone_;\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 userPhone_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getTelphone() {\n return telphone;\n }", "public String getTelphone() {\n return telphone;\n }", "public String getTelphone() {\n return telphone;\n }", "public java.lang.String getMobilePhone() {\r\n return mobilePhone;\r\n }", "public String returnPhoneNumber() {\n\t\treturn this.registration_phone.getAttribute(\"value\");\r\n\t}", "public String getaPhone() {\n return aPhone;\n }", "public String getPhoneNumber() {\n\t\treturn this.phoneNumber;\n\t}", "public java.lang.String getTelphone () {\r\n\t\treturn telphone;\r\n\t}", "public java.lang.String getPhoneNumber() {\n java.lang.Object ref = phoneNumber_;\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 phoneNumber_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getPhoneNumber() {\n java.lang.Object ref = phoneNumber_;\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 phoneNumber_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getPhoneNumber() {\n return mPhoneNumber;\n }", "public String getPhoneNumber(){\r\n\t\treturn phoneNumber;\r\n\t}", "public String getPhoneNumber() {\n\t\treturn phoneNumber;\n\t}", "public java.lang.String getPhoneNumber() {\n java.lang.Object ref = phoneNumber_;\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 phoneNumber_ = s;\n return s;\n }\n }", "public java.lang.String getPhoneNumber() {\n java.lang.Object ref = phoneNumber_;\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 phoneNumber_ = s;\n return s;\n }\n }", "public String getphoneNum() {\n\t\treturn _phoneNum;\n\t}", "public java.lang.CharSequence getPhoneNumber() {\n return phone_number;\n }", "public java.lang.CharSequence getPhoneNumber() {\n return phone_number;\n }", "public String getPhoneNum()\r\n {\r\n\treturn phoneNum;\r\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getPhone() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(PHONE_PROP.get());\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getPhone() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(PHONE_PROP.get());\n }", "public String getPhoneNumber() {\r\n return phoneNumber;\r\n }", "public String getPhoneNumber() {\n return this.phoneNumber;\n }", "public String getPhoneNumber() {\n return phoneNumber;\n }", "public String getPhoneNumber() {\n return phoneNumber;\n }", "public String getPhoneNumber() {\n return phoneNumber;\n }", "public String getPhoneNumber() {\n return phoneNumber;\n }", "public String getPhoneNumber() {\n return phoneNumber;\n }", "public String getPhoneNumber() {\n return phoneNumber;\n }", "public String getPhoneNumber() {\n return phoneNumber;\n }", "public String getPhoneNumber() {\n return phoneNumber;\n }" ]
[ "0.8347676", "0.8266643", "0.8264955", "0.803451", "0.7970938", "0.78779554", "0.7671151", "0.7652645", "0.75387514", "0.75387514", "0.7524763", "0.7517015", "0.7516492", "0.75154704", "0.7513922", "0.74647105", "0.7440056", "0.74283695", "0.74283695", "0.7420205", "0.7420205", "0.7420205", "0.7419457", "0.7382402", "0.7367623", "0.73673445", "0.73673445", "0.73673445", "0.73673445", "0.73673445", "0.73673445", "0.73415446", "0.73198706", "0.72748613", "0.72651434", "0.72651434", "0.72651434", "0.72651434", "0.72651434", "0.72651434", "0.72651434", "0.72651434", "0.72651434", "0.72651434", "0.72651434", "0.72651434", "0.72651434", "0.72651434", "0.72651434", "0.72651434", "0.7256003", "0.7251727", "0.72468716", "0.72447264", "0.72375154", "0.723079", "0.7196123", "0.7196123", "0.7174239", "0.71635586", "0.71436685", "0.71395737", "0.71367013", "0.712412", "0.712412", "0.71173394", "0.7083651", "0.70808756", "0.70807487", "0.7078392", "0.7078392", "0.7078392", "0.7078379", "0.7074718", "0.7063256", "0.70482683", "0.70346904", "0.69963896", "0.6993478", "0.69922334", "0.6990285", "0.69813645", "0.69755465", "0.6973845", "0.6972382", "0.69696844", "0.6960433", "0.6951791", "0.6945536", "0.69391066", "0.6930536", "0.69257057", "0.69256616", "0.69256616", "0.69256616", "0.69256616", "0.69256616", "0.69256616", "0.69256616", "0.69256616" ]
0.778447
6
Get the user's address.
public final String getAddress() { return address; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getAddress();", "java.lang.String getAddress();", "java.lang.String getAddress();", "java.lang.String getAddress();", "java.lang.String getAddress();", "java.lang.String getAddress();", "public String getAddress()\r\n {\r\n return address.getFullAddress();\r\n }", "public String getAddress()\r\n {\r\n return address.getFullAddress();\r\n }", "String getAddress();", "String getAddress();", "public String getAddress();", "public String getAddress()\r\n\t{\r\n\t\treturn address;\r\n\t}", "public String getExternalAddress();", "@Override\n public String getAddress() {\n\n if(this.address == null){\n\n this.address = TestDatabase.getInstance().getClientField(token, id, \"address\");\n }\n\n return address;\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public java.lang.String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress()\n {\n \treturn address;\n }", "public String getAddress() {\n return this._address;\n }", "public String getAddress(){\n\t\treturn address;\n\t}", "public String getAddress() {\r\n\t\treturn address;\r\n\t}", "public String getAddress() {\r\n\t\treturn address;\r\n\t}", "public String getAddress(){\n\t\treturn this.address;\n\t}", "public String getAddress() {\n return this.address;\n }", "public String getAddress() {\n return this.address;\n }", "public String getAddress() {\n\t\treturn address;\n\t}", "public String getAddress() {\n\t\treturn address;\n\t}", "public String getAddress() {\n\t\treturn address;\n\t}", "public String getAddress() {\n\t\treturn address;\n\t}", "public String getAddress() {\n\t\treturn address;\n\t}", "public String getAddress() {\n\t\treturn address;\n\t}", "public String getAddress() {\n\t\treturn address;\n\t}", "@Override\n\tpublic String getAdres() {\n\t\tString pName= ctx.getCallerPrincipal().getName();\n\t\tPerson p=userEJB.findPerson(pName);\n\t\tString w=p.getAddress();\n\t\treturn w;\n\t}", "public String getAddress()\r\n\t{\r\n\t\treturn address.getModelObjectAsString();\r\n\t}", "private String getAddress() {\n String add = \"\";\n if (mLocationHelper != null) {\n add = getString(R.string.address, mLocationHelper.getAddress());\n }\n return add;\n }", "public String getAddress() {\r\n\t\treturn this.address;\r\n\t}", "@AutoEscape\n\tpublic String getAddress();", "@AutoEscape\n\tpublic String getAddress();", "@AutoEscape\n\tpublic String getAddress();", "@AutoEscape\n\tpublic String getAddress();", "public String getAddress() {\n\t\treturn this.address;\n\t}", "public String getAddress() {\r\n\t\t// Still deciding how to do the address to incorporate apartments\r\n\t\treturn address;\t\t\r\n\t}", "public String getAddress() {\n return definition.getString(ADDRESS);\n }", "public String getInternalAddress();", "public java.lang.String getAddress () {\n\t\treturn address;\n\t}", "public String getAddress() {\n return m_Address;\n }", "public String getAddress() {\n return (this.addresses == null) ? null\n : (this.addresses.isEmpty() ? null : this.addresses.get(0));\n }", "public java.lang.String getAddress() {\n\treturn address;\n}", "public java.lang.String getAddress() {\n\treturn address;\n}", "public String getAddress() {\n\t\tlog.info(\"NOT IMPLEMENTED\");\n\t\treturn \"\";\n\t}", "public String getAddress() {\n return m_address;\n }", "public String address() {\n return Codegen.stringProp(\"address\").config(config).require();\n }", "@Override\r\n\tpublic String getAddress() {\n\t\treturn address;\r\n\t}", "String getAddress() {\n\t\treturn customer.getAddress();\n\t}", "@java.lang.Override\n public com.google.protobuf.StringValue getAddress() {\n return address_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : address_;\n }", "AddressI getAddress();", "public String getAddress(){\n return address;\n\n }", "public java.lang.String getAddress()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ADDRESS$2);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "public String getFormattedAddress() {\n return formattedAddress;\n }" ]
[ "0.78404266", "0.78404266", "0.78404266", "0.78404266", "0.78404266", "0.78404266", "0.7742936", "0.7742936", "0.7713219", "0.7713219", "0.75084084", "0.7403598", "0.7363259", "0.735708", "0.7310786", "0.7310786", "0.7310786", "0.7310786", "0.7310786", "0.7310786", "0.7310786", "0.7306747", "0.7301635", "0.7301635", "0.7301635", "0.7301635", "0.7301635", "0.7301635", "0.7301635", "0.7301635", "0.7301635", "0.7301635", "0.7301635", "0.7301635", "0.7301635", "0.7301635", "0.7301635", "0.7301635", "0.7301635", "0.7301635", "0.7301635", "0.7301635", "0.7301635", "0.7301635", "0.7301635", "0.7301635", "0.7301635", "0.7301635", "0.7301635", "0.7301635", "0.7301635", "0.7301635", "0.7301635", "0.7301635", "0.7301635", "0.7301635", "0.729173", "0.729173", "0.7290547", "0.72905326", "0.72613764", "0.7258089", "0.7258089", "0.72382486", "0.72330046", "0.72330046", "0.7231308", "0.7231308", "0.7231308", "0.7231308", "0.7231308", "0.7231308", "0.7231308", "0.7224817", "0.7215286", "0.72103447", "0.7203055", "0.7192081", "0.7192081", "0.7192081", "0.7192081", "0.71851015", "0.7158537", "0.7155623", "0.71521664", "0.7151375", "0.7147787", "0.7126793", "0.7113407", "0.7113407", "0.7088668", "0.707705", "0.70592296", "0.70446", "0.70222163", "0.7010223", "0.7008273", "0.700033", "0.6994522", "0.6982127" ]
0.7519209
10
Get the user's status (locked/unlocked).
public final boolean getLocked() { return locked; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "UserStatus getStatus();", "public String getUserStatus() {\n return userStatus;\n }", "public java.lang.String getUserStatus() {\r\n return userStatus;\r\n }", "public java.lang.String getUserStatus() {\n return userStatus;\n }", "public Byte getUserStatus() {\r\n return userStatus;\r\n }", "public java.lang.String getStatus() {\n\t\treturn _forumUser.getStatus();\n\t}", "@Override\n\tpublic String getStatusByUserUuid() {\n\t\treturn model.getStatusByUserUuid();\n\t}", "@ApiModelProperty(required = true, value = \"1APP8 Managed administrative status\")\n @JsonProperty(\"locked\")\n public Boolean getLocked() {\n return locked;\n }", "public boolean isLocked() { return RMUtils.boolValue(get(\"Locked\")); }", "public long getLockStatus() {\r\n return lockStatus;\r\n }", "public java.lang.String getUserAvaibility(int status) throws android.os.RemoteException;", "@Override\n\tpublic long getStatusByUserId() {\n\t\treturn model.getStatusByUserId();\n\t}", "public String status(User user) {\n\t\treturn user.getMailbox().status();\n\n\t}", "@Override\n\tpublic String getStatusByUserName() {\n\t\treturn model.getStatusByUserName();\n\t}", "@Override\n\tpublic String getStatusByUserUuid();", "public int getUserSyncState() {\n return userSyncState;\n }", "@Override\n\tpublic long getStatusByUserId();", "public Integer getLoginStatus() {\n return loginStatus;\n }", "boolean isLocked();", "boolean isLocked();", "public String AccountStatus() {\n\t\tString Online = \"//android.widget.TextView[@text='ONLINE']\";\n\t\tString ProfileStatus;\n\t\tboolean ObjectStatus = ObjectFoundorNot(Online);\n\t\tif(ObjectStatus == true) {\n\t\t\tProfileStatus = keypad.SelectAccountStatusOnline.getText();\n\t\t}\n\t\telse {\n\t\t\tProfileStatus = keypad.SelectAccountStatusOffline.getText();\n\t\t}\n\t\treturn ProfileStatus;\n\t}", "public boolean getOnlineStatus(int status) throws android.os.RemoteException;", "public synchronized Status getStatus(){\n return state;\n }", "public String getRoomStatus() {\n if (isOccupied()) {\r\n return \"Occupied\";\r\n } else {\r\n return \"Unoccupied\";\r\n }\r\n }", "Boolean isAccountLocked(String username);", "public Boolean getStatus() {\n return status;\n }", "public Boolean getStatus() {\n return status;\n }", "public Boolean getStatus() {\n return status;\n }", "public Boolean getStatus() {return status;}", "public boolean getStatus()\n\t{\n\t\treturn getBooleanIOValue(\"Status\", false);\n\t}", "public Integer getAccountStatus() {\n return accountStatus;\n }", "private void updateUserStatus(boolean online)\n {\n }", "public boolean getLocked() {\n\t\treturn isLocked;\n\t}", "public synchronized String getStatus(){\n\t\treturn status;\n\t}", "public boolean isLocked();", "public int getStatus ()\n {\n return status;\n }", "public int getStatus ()\n {\n return status;\n }", "@Override\n public List<User> getAccountStatusList(){\n List<User> userList = null;\n userList = adminMapper.getAccountStatusList();\n return userList;\n }", "@Override\n\tpublic int getAccessible() {\n\t\treturn _userSync.getAccessible();\n\t}", "public long getStatus() {\r\n return status;\r\n }", "public GuessGameStat getGameStatus(String username) {\n GuessGameStat guessGameStat = (GuessGameStat) super.getGameStatus(username);\n if (guessGameStat == null) {\n guessGameStat = new GuessGameStat(username);\n }\n return guessGameStat;\n }", "Integer getStatus();", "public int getStatus()\n {\n return status;\n }", "public retStatus Status(){\n // Your code here\n this.mutex.lock();\n\n retStatus r = new retStatus(State.Pending, this.values.get(this.me));\n if (done) {\n r.state = State.Decided;\n }\n\n this.mutex.unlock();\n return r;\n }", "public Integer getStatus() {\r\n return status;\r\n }", "public Integer getStatus() {\r\n return status;\r\n }", "public Long getStatus() {\n return this.Status;\n }", "public int status() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public String getLockedUserId() {\n\t\treturn lockedUserId;\n\t}", "public java.lang.Object getStatus() {\n return status;\n }", "SessionStatus getStatus();", "public int getStatus() {\n return status;\n }", "public int getStatus() {\n return status;\n }", "public int getStatus() {\n return status;\n }", "public int getStatus() {\n return status;\n }", "public int getStatus() {\n return status;\n }", "protected UserState getUserStateForModification() {\n if (toSyncUserState == null)\n toSyncUserState = getCurrentUserState().deepClone(\"TOSYNC_STATE\");\n\n scheduleSyncToServer();\n\n return toSyncUserState;\n }", "@ManyToOne\n\t@JoinColumn(name=\"LockStatus\", nullable=false)\n\t@Fetch(FetchMode.SELECT)\n\t@NotFound(action=NotFoundAction.IGNORE)\n\tpublic AccessStatus getLockStatus() {\n\t\treturn this.lockStatus;\n\t}", "public int getStatus()\r\n\t{\r\n\t\treturn this.m_status;\r\n\t}", "public int getSyncStatus();", "public static Gamestatus getGameStatus() {\r\n\t\treturn STATUS;\r\n\t}", "public boolean getStatus(){\r\n\t\treturn status;\r\n\t}", "boolean getStatus();", "boolean getStatus();", "boolean getStatus();", "@AutoEscape\n\t@Override\n\tpublic String getStatusByUserName();", "public GameStatus getStatus() {\n\t\treturn status;\n\t}", "public boolean getStatus()\n\t{\n\t\treturn idle;\n\t}", "public boolean getStatus() {\n\treturn status;\n }", "public String status() {\n return statusEnum().toString();\n }", "public String getLockUser() {\n return lockUser;\n }", "public Integer getStatus() {\n\t\treturn status;\n\t}", "public Integer getStatus() {\n\t\treturn status;\n\t}", "public int getStatus()\r\n {\r\n return mStatus;\r\n }", "public EnumVar getStatus() {\n return status;\n }", "public String getUiStatus() {\n\t\tif (switchInfo.getType().compareTo(\"thermostat\") == 0) {\r\n\t\t\ttry {\r\n\t\t\t\tDouble tmp = new Double((String) myISY.getCurrValue(myISY.getNodes().get(switchInfo.getSwitchAddress()),\r\n\t\t\t\t\t\tInsteonConstants.DEVICE_STATUS));\r\n\t\t\t\ttmp = tmp / 2;\r\n\t\t\t\treturn tmp.toString();\r\n\t\t\t} catch (NoDeviceException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} catch (NullPointerException e) {\r\n\t\t\t}\r\n\t\t} else if ((switchInfo.getType().compareTo(\"light\") == 0)\r\n\t\t\t\t|| (switchInfo.getType().compareTo(\"circulator\") == 0)) {\r\n\t\t\ttry {\r\n\t\t\t\tDouble tmp = new Double((String) myISY.getCurrValue(myISY.getNodes().get(switchInfo.getSwitchAddress()),\r\n\t\t\t\t\t\tInsteonConstants.DEVICE_STATUS));\r\n\t\t\t\ttmp = tmp / 255 * 100;\r\n\t\t\t\tif (tmp == 0)\r\n\t\t\t\t\treturn \"OFF\";\r\n\t\t\t\telse if (tmp == 100)\r\n\t\t\t\t\treturn \"ON\";\r\n\t\t\t\treturn \"ON \" + tmp + \"%\";\r\n\t\t\t} catch (NoDeviceException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} catch (NullPointerException e) {\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn \"\";\r\n\t}", "public int getStatus(){\r\n\t\treturn this.status;\r\n\t}", "public String getStatus () {\r\n return status;\r\n }", "public Status getStatus()\n {\n return (this.status);\n }", "public int getPresenceStatus(boolean onlineStatus, java.lang.String userAvailability, java.util.Map allValues) throws android.os.RemoteException;", "public List<Status> GetAll() throws SQLException {\n\t\ttry {\n\n\t\t\tthis.TryConnect();\n\n\t\t\tthis.m_objData.SetStoreName(\"sys_status_getAll()\");\n\n\t\t\tResultSetMapper util = new ResultSetMapper<User>();\n\n\t\t\tResultSet lstResult = this.m_objData.ExecToResultSet();\n\n\t\t\tList<Status> lstUser = util.mapRersultSetToObject(lstResult,\n\t\t\t\t\tStatus.class);\n\n\t\t\tif (lstUser == null)\n\t\t\t\treturn null;\n\n\t\t\tif (lstUser.size() > 0)\n\t\t\t\treturn lstUser;\n\t\t\treturn null;\n\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\n\t\t\tthis.TryDisconnect();\n\t\t}\n\n\t\treturn null;\n\t}" ]
[ "0.7875201", "0.7525775", "0.74889946", "0.7482413", "0.71392006", "0.68596226", "0.66535276", "0.6488028", "0.6427219", "0.64098495", "0.6371121", "0.6357227", "0.6261525", "0.62611556", "0.6230169", "0.6205608", "0.61646473", "0.607527", "0.60471386", "0.60471386", "0.60025835", "0.60006744", "0.5996627", "0.5995602", "0.5968834", "0.59519535", "0.59519535", "0.59519535", "0.59360105", "0.59336996", "0.5929543", "0.59248716", "0.59246194", "0.5917332", "0.59122795", "0.59059554", "0.59059554", "0.59038365", "0.58896345", "0.5867636", "0.5863754", "0.58523643", "0.58441746", "0.5840966", "0.58392376", "0.58392376", "0.5834091", "0.5829449", "0.5827106", "0.5827106", "0.5827106", "0.5827106", "0.5827106", "0.5827106", "0.5827106", "0.5827106", "0.5827106", "0.5827106", "0.5827106", "0.5827106", "0.5827106", "0.5827106", "0.5827106", "0.5827106", "0.5827106", "0.5827106", "0.5827106", "0.5827106", "0.581507", "0.5813042", "0.5812629", "0.57990634", "0.57990634", "0.57990634", "0.57990634", "0.57990634", "0.57979625", "0.5791595", "0.57879025", "0.5781942", "0.5781411", "0.57780075", "0.5775431", "0.5775431", "0.5775431", "0.5767883", "0.57641864", "0.5759193", "0.5757558", "0.57546663", "0.5753303", "0.575218", "0.575218", "0.5736209", "0.57295316", "0.5727084", "0.57250625", "0.57239753", "0.57204676", "0.571901", "0.5717768" ]
0.0
-1
Get the user's roles.
public final String getRoles() { return roles; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Collection<Role> getRoles();", "List<Role> getRoles();", "List<String> getRoles();", "public List<Role> getRole() {\n\t\treturn userDao.getRole();\r\n\t}", "@NotNull\r\n Collection<String> getRoles();", "public Set<String> getUserRoles() {\n\t\treturn userRoles;\n\t}", "public String getRoles() {\n return roles;\n }", "@Override\n\tpublic List<AccountUser> getRoles() {\n\t\treturn auMapper.getRoles();\n\t}", "public Set<String> getRoles()\n {\n return this.roles;\n }", "java.util.List<Role>\n getRolesList();", "java.util.List<Role>\n getRolesList();", "public ArrayList<Role> getRoles()\r\n {\r\n return this.securityInfo.getRoles();\r\n }", "public Roles roles() {\n return this.roles;\n }", "public List<Role> getAllRoles();", "public Collection<Role> getRoles() {\n return this.roles;\n }", "Set getRoles();", "Set<String> getRoles();", "List<SysRole> getUserRoles(int userId);", "public List<String> getRoles(String userId) throws UserManagementException;", "public Collection<String> getRoles() {\n return Collections.unmodifiableSet(roles);\n }", "public RoleList getRoles() {\n return roleList;\n }", "public String getRoles() throws IOException {\n\t\treturn rolePoster.sendPost(\"getRoles=true\");\n\t}", "public List<SecRole> getAllRoles();", "@OneToMany(mappedBy = \"user\", fetch = FetchType.LAZY)\n\t@Fetch(FetchMode.SELECT)\n\tpublic List<UserRole> getUserRoles() {\n\t\treturn userRoles;\n\t}", "public Collection<Role> getRoles() {\n return Collections.unmodifiableCollection(roles);\n }", "@Transient\n public List<LabelValue> getRoleList() {\n List<LabelValue> userRoles = new ArrayList<LabelValue>();\n\n if (this.roles != null) {\n for (Role role : roles) {\n // convert the user's roles to LabelValue Objects\n userRoles.add(new LabelValue(role.getName().substring(5), role.getName()));\n }\n }\n\n return userRoles;\n }", "@PermitAll\n @Override\n public List<Role> getCurrentUserRoles() {\n Map params = new HashMap<String, Object>();\n params.put(CommonSqlProvider.PARAM_QUERY, Role.QUERY_GET_ROLES_BY_USER_NAME);\n params.put(User.PARAM_USERNAME, this.getUserName());\n return getRepository().getEntityList(Role.class, params);\n }", "public List<UserRole> getAllUserRoles() throws ClassNotFoundException, SQLException {\n\t\treturn read(\"select * from user_role\", null);\n\t}", "@Override\r\n public List<Role> getRoles() {\r\n return roles;\r\n }", "@Override\n public java.util.List<Role> getRolesList() {\n return roles_;\n }", "@Override\n public java.util.List<Role> getRolesList() {\n return roles_;\n }", "public Set<String> getRoles() {\r\n\t\treturn roles;\r\n\t}", "public abstract Collection getRoles();", "public java.util.List<Role> getRolesList() {\n if (rolesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(roles_);\n } else {\n return rolesBuilder_.getMessageList();\n }\n }", "public java.util.List<Role> getRolesList() {\n if (rolesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(roles_);\n } else {\n return rolesBuilder_.getMessageList();\n }\n }", "public List<RoleDto> getRolesList() {\n return roleDBManager.fetchRolesList();\n }", "public ArrayList<Role> allRoles() {\n return this.roles;\n }", "@Override\r\n\tpublic List<? extends Role> getRoles() {\n\r\n\t\tif (this.roles == null)\r\n\t\t\treturn null;\r\n\r\n\t\treturn new ArrayList(this.roles);\r\n\t\t// ArrayList<MyRole> arrayList = new ArrayList<MyRole>();\r\n\t\t// arrayList.addAll(roles);\r\n\t\t//\r\n\t\t// return arrayList;\r\n\t}", "List<RoleEntity> getSystemRoles();", "@Override\n\tpublic List<IRole> getRoles() {\n\t\treturn getInnerObject().getRoles();\n\t}", "@Override\r\n\tpublic List<Role> getUserRoles(String userId) {\n\t\treturn userMapper.getRoles(userId);\r\n\t}", "@Override\n\tpublic Set<String> getRoles(String username) {\n\t\tSet<String> roles = userDao.getRoles(username);\n\t\treturn roles;\n\t}", "public EntityImpl getRoles() {\n return (EntityImpl)getEntity(ENTITY_ROLES);\n }", "public Set<AppRole> getRoles() {\n return roles;\n }", "public java.util.List<xbean.DeletedRole> getRoles();", "@PermitAll\n @Override\n public List<Role> getRoles() {\n return getRepository().getEntityList(Role.class);\n }", "@Override\n\tpublic ArrayList<String> getRoles()\n\t{\n\t\treturn source.getRoles();\n\t}", "List<Rol> obtenerRoles() throws Exception;", "public List<Role> getAllRole() {\n\t\treturn (List<Role>) roleDao.findAll();\n\t}", "@RequestMapping(value = \"/roles\", method = RequestMethod.GET, produces = {MediaType.APPLICATION_JSON_VALUE, MediaType.APPLICATION_XML_VALUE})\n @ResponseBody\n public List<Role> getRoles() {\n List<Role> roleList = (List<Role>)roleService.getAll();\n if (roleList.isEmpty()){\n return null;\n }\n return roleList;\n }", "@Override\n public java.util.List<? extends RoleOrBuilder>\n getRolesOrBuilderList() {\n return roles_;\n }", "@Override\n public java.util.List<? extends RoleOrBuilder>\n getRolesOrBuilderList() {\n return roles_;\n }", "public Iterable<Role> findAllRoles() {\n Iterable<Role> allRoles = roleRepository.findAll();\n return allRoles;\n }", "public java.util.List<? extends RoleOrBuilder>\n getRolesOrBuilderList() {\n if (rolesBuilder_ != null) {\n return rolesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(roles_);\n }\n }", "public java.util.List<? extends RoleOrBuilder>\n getRolesOrBuilderList() {\n if (rolesBuilder_ != null) {\n return rolesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(roles_);\n }\n }", "@Override\r\n\tpublic List<Role> getAllRoles() {\n\t\treturn null;\r\n\t}", "public java.util.ArrayList getEditRoles() {\n\tjava.util.ArrayList roles = new java.util.ArrayList();\n\troles.add(\"ArendaMainEconomist\");\n\troles.add(\"ArendaEconomist\");\n\troles.add(\"administrator\");\n\treturn roles;\n}", "public java.util.ArrayList getEditRoles() {\n\tjava.util.ArrayList roles = new java.util.ArrayList();\n\troles.add(\"administrator\");\n\troles.add(\"StorageManager\");\n\treturn roles;\n}", "public List<UserRole> queryAllUsersRoles() {\n \tList<UserRole> userRoleList = new ArrayList<>();\n\tUserRole userRole;\n String sql = \"SELECT * FROM users_roles\";\n\ttry {\t\n this.statement = connection.prepareStatement(sql);\n this.resultSet = this.statement.executeQuery();\n while(this.resultSet.next()) {\n\t\tuserRole = new UserRole();\n userRole.setUserName(this.resultSet.getString(\"user_name\"));\n userRole.setRoleName(this.resultSet.getString(\"role_name\"));\n\t\tuserRoleList.add(userRole);\n }\t\n this.statement.close();\n\t} \n catch(SQLException ex) {\n Logger.getLogger(UserDBManager.class.getName()).log(Level.SEVERE, null, ex);\n }\n return userRoleList;\n }", "public List<Roles> selectAllRole(){\n\treturn rolesDao.findAll();\n\t}", "public List<RoleDTO> getAllRoles() {\n\t\treturn roleDTOs;\n\t}", "public void getGrantedRoles() {\n\t\tif (path != null) {\n\t\t\tauthService.getGrantedRoles(path, callbackGetGrantedRoles);\n\t\t}\n\t}", "Role getRoles(int index);", "Role getRoles(int index);", "java.util.List<? extends RoleOrBuilder>\n getRolesOrBuilderList();", "java.util.List<? extends RoleOrBuilder>\n getRolesOrBuilderList();", "public HashSet getDirectRoles() {\n return roles;\n }", "public java.util.ArrayList getEditRoles() {\n\t\tjava.util.ArrayList roles = new java.util.ArrayList();\n\t\troles.add(\"ArendaMainEconomist\");\n\t\troles.add(\"ArendaEconomist\");\n\t\troles.add(\"administrator\");\n\t\treturn roles;\n\t}", "@Override\n\tpublic List<IRole> getRoles() {\n\t\treturn null;\n\t}", "@RequestMapping(value = \"/admin/getRoles\", method = RequestMethod.GET)\n\tpublic @ResponseBody Response getRoles() {\n\t \tResponse response = new Response();\n\t\tresponse.addCommand(new ClientCommand(ClientCommandType.PROPERTY,\"roles\", roleRepository.findAll() ));\n\t\treturn response;\n\t}", "public List<SecRole> getRolesByUser(SecUser aUser);", "@Override\n\tpublic List<Map<String, Object>> getRole() {\n\t\treturn this.RoleDao.getRole();\n\t}", "private String getUserRoleListQuery() throws APIManagementException {\n StringBuilder rolesQuery = new StringBuilder();\n rolesQuery.append('(');\n rolesQuery.append(APIConstants.NULL_USER_ROLE_LIST);\n String[] userRoles = APIUtil.getListOfRoles(userNameWithoutChange);\n String skipRolesByRegex = APIUtil.getSkipRolesByRegex();\n if (StringUtils.isNotEmpty(skipRolesByRegex)) {\n List<String> filteredUserRoles = new ArrayList<>(Arrays.asList(userRoles));\n String[] regexList = skipRolesByRegex.split(\",\");\n for (int i = 0; i < regexList.length; i++) {\n Pattern p = Pattern.compile(regexList[i]);\n Iterator<String> itr = filteredUserRoles.iterator();\n while(itr.hasNext()) {\n String role = itr.next();\n Matcher m = p.matcher(role);\n if (m.matches()) {\n itr.remove();\n }\n }\n }\n userRoles = filteredUserRoles.toArray(new String[0]);\n }\n if (userRoles != null) {\n for (String userRole : userRoles) {\n rolesQuery.append(\" OR \");\n rolesQuery.append(ClientUtils.escapeQueryChars(APIUtil.sanitizeUserRole(userRole.toLowerCase())));\n }\n }\n rolesQuery.append(\")\");\n if(log.isDebugEnabled()) {\n \tlog.debug(\"User role list solr query \" + APIConstants.PUBLISHER_ROLES + \"=\" + rolesQuery.toString());\n }\n return APIConstants.PUBLISHER_ROLES + \"=\" + rolesQuery.toString();\n }", "@Override\n\tpublic List<Role> getRoleList() {\n\t\treturn this.jdbcTemplate.query(\"SELECT * FROM role\", new RoleRowMapper());\n\t}", "public java.lang.String getUserRole() {\r\n return userRole;\r\n }", "public java.util.List<com.commercetools.api.models.channel.ChannelRoleEnum> getRoles() {\n return this.roles;\n }", "public ArrayList<Role> getRole() {\n\t\tArrayList<Role> list = new ArrayList<Role>();\n\t\tString sql = \"select * from role;\";\n\t\tConnection conn = new DBUtilFactory().getConn();\n\t\ttry {\n\t\t\tps = conn.prepareStatement(sql);\n\t\t\trs = ps.executeQuery();\n\t\t\twhile(rs.next()) {\n\t\t\t\tRole role = new Role();\n\t\t\t\t// stupid set method......\n\t\t\t\trole.setRole_describe(rs.getString(\"role_describe\"));\n\t\t\t\trole.setRole_id(rs.getInt(\"role_id\"));\n\t\t\t\trole.setRole_power(rs.getInt(\"role_power\"));\n\t\t\t\tlist.add(role);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} finally {\n\t\t\tclearUp(conn);\n\t\t}\n\t\treturn list;\n\t}", "@ModelAttribute(\"allRoles\")\r\n\tpublic List<Role> getAllRoles(){\t\r\n\t\treturn roleService.findAdminRoles();\r\n\t\t\r\n\t}", "@Override\r\n\tpublic Object getRoles() throws DataAccessException, SQLException {\n\t\tlogger.info(\"start : getRoles UsersMngDaoImpl \");\r\n\t\t \r\n\t\tList<Roles> roleList = roleRepository.findAll();\r\n\t\tlogger.info(\"End : getRoles UsersMngDaoImpl \");\r\n\t\treturn roleList;\r\n\t}", "public Set<DistributionRole> getUserRoles() {\n\t\treturn this.distributionRoles;\n\t}", "public int getMetaRoles();", "public List getSysRoles(SysRole sysRole);", "public Userrole getUserrole() {\n return getEntity();\n }", "@Override\n public Role getRoles(int index) {\n return roles_.get(index);\n }", "@Override\n public Role getRoles(int index) {\n return roles_.get(index);\n }", "@Override\r\n\tpublic List<Role> getAllRole() {\n\t\tString hql = \"from Role\";\r\n\t\treturn (List<Role>) getHibernateTemplate().find(hql);\r\n\t}", "@Override\n\tpublic List<InforRoles> selectRoles() {\n\t\treturn md.selectRoles();\n\t}", "public UserRole getRole(User user) {\n\t UserRole role = user.getRole();\n return role;\n\t}", "@Override\n\tpublic List<Role> findAll() {\n\t\treturn this.roleMapper.findQueryAll();\n\t}", "@ApiModelProperty(value = \"The list of Software Statement roles\")\n\n\n public List<String> getRoles() {\n return roles;\n }", "@Override\r\n\tpublic void getAllRole() {\n\t\tSystem.out.println(roles);\r\n\t\t\r\n\t}", "public static String getAccountRoles() {\n\t\tif ((xml == null) || (accountPassword == null)) return \"\";\n\t\treturn accountRoles;\n\t}", "@Override\n\tpublic List<Role> getAllRoleInfo() {\n\t\treturn roleMapper.queryAll();\n\t}", "public ResourceRole[] getAllResourceRoles() throws ResourceManagementException {\r\n return this.port.getAllResourceRoles();\r\n }", "public List<TbRole> getTbRoleListByTypeId(Integer userTypeId) {\n\t\treturn tbRoleDao.getAllObjectListByType(userTypeId);\n\t}", "@Override\n\tpublic Collection<? extends GrantedAuthority> getAuthorities() {\n\t\treturn roles;\n\t}", "@Override\n\tpublic Collection<? extends GrantedAuthority> getAuthorities() {\n\t\t final List<GrantedAuthority> authorities = new ArrayList<GrantedAuthority>();\n\t for (final Role role : user.getRoles()){\n\t authorities.add(new SimpleGrantedAuthority(role.getRole()));\n\t }\n\t return authorities;\n\t}", "@Override\n\tpublic List<RoleUtilisateur> listRoleUtilisateur() {\n\t\treturn roleUtilisateurDAO.listRoleUtilisateur();\n\t}", "Set<String> getRoles(String id) throws ServerException, NotFoundException {\n InitialLdapContext context = null;\n NamingEnumeration rolesEnum = null;\n try {\n context = contextFactory.createContext();\n\n Attributes userAttrs;\n try {\n userAttrs = context.getAttributes(formatDn(userDn, id));\n } catch (NameNotFoundException ex) {\n //if not found -> try to find user using old dn\n userAttrs = context.getAttributes(formatDn(oldUserDn, id));\n\n //if attributes were found then rename current entity\n final String fromDnVal = userAttrs.get(oldUserDn).get().toString();\n final String toDnVal = userAttrs.get(userDn).get().toString();\n context.rename(formatDn(oldUserDn, fromDnVal), formatDn(userDn, toDnVal));\n }\n final Attribute rolesAttr = userAttrs.get(roleAttrName);\n final Set<String> roles = new HashSet<>();\n if (rolesAttr != null) {\n rolesEnum = rolesAttr.getAll();\n while (rolesEnum.hasMoreElements()) {\n roles.add(rolesEnum.next().toString());\n }\n }\n return roles;\n } catch (NameNotFoundException nfEx) {\n throw new NotFoundException(format(\"User with id '%s' was not found\", id));\n } catch (NamingException e) {\n throw new ServerException(e.getMessage(), e);\n } finally {\n close(context);\n close(rolesEnum);\n }\n }", "@Override\r\n\tpublic List<Role> findAll() {\n\t\treturn roleDao.findAll();\r\n\t}" ]
[ "0.79742193", "0.78886163", "0.78689635", "0.7740486", "0.7699663", "0.7631515", "0.7615758", "0.75374985", "0.7535199", "0.75174904", "0.75174904", "0.748376", "0.74769247", "0.7460217", "0.74586475", "0.7455699", "0.7431652", "0.74281067", "0.73971725", "0.73964536", "0.73504615", "0.7345013", "0.73441243", "0.7335957", "0.732165", "0.73141915", "0.7276235", "0.7273554", "0.726603", "0.7236422", "0.7236422", "0.721741", "0.7211936", "0.71975535", "0.71975535", "0.71964157", "0.7167923", "0.71345747", "0.71103776", "0.7100008", "0.709684", "0.70730305", "0.70080775", "0.6989689", "0.69673586", "0.6939151", "0.6871739", "0.6856909", "0.68476313", "0.6836336", "0.6829674", "0.6829674", "0.68260616", "0.68101186", "0.68101186", "0.6788893", "0.67593664", "0.6735431", "0.6721978", "0.6719491", "0.66941816", "0.66832197", "0.66739005", "0.66739005", "0.6669095", "0.6669095", "0.6644915", "0.6624163", "0.6619134", "0.6618842", "0.6605364", "0.66032296", "0.65917605", "0.65854734", "0.6580596", "0.656672", "0.65629524", "0.65463495", "0.65448266", "0.6539094", "0.6485265", "0.64643276", "0.6450081", "0.6444416", "0.6444416", "0.6443677", "0.6439055", "0.6434369", "0.6398821", "0.639701", "0.63806874", "0.63761985", "0.6360004", "0.6354208", "0.63339394", "0.6320773", "0.63183707", "0.63086444", "0.6287771", "0.6286973" ]
0.77138054
4
Get the user's cart.
public final List<Item> getCart() { return cart; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Cart getCartForUser(String userId);", "public static HashMap<Integer,Item> getUserCart(){\n\t\treturn userCart;\n\t}", "public ShoppingCart getShoppingCart(String userid) {\n\t\t ShoppingCart cartReturn = null;\r\n\t\t ShoppingCart detached = null;\r\n\t\t PersistenceManager pm = PMF.get().getPersistenceManager();\r\n\r\n\t\t Transaction tx = pm.currentTransaction();\r\n\t\t pm.setDetachAllOnCommit(true);\r\n\t\t try{\r\n\t\t\t tx.begin();\r\n\t\t\t cartReturn = (ShoppingCart)pm.getObjectById(ShoppingCart.class, userid);\r\n\t\t\t logger.info(\"items in cart\" + cartReturn.getItems().size());\r\n\t\t\t tx.commit();\r\n\t\t }catch(JDOObjectNotFoundException jx){\r\n\t\t\t logger.warning(\"No Shopping cart for user available\");\r\n\t\t }\r\n\t\t catch (DatastoreTimeoutException e) {\r\n\t\t \tlogger.severe(e.getMessage());\r\n\t\t \tlogger.severe(\"datastore timeout at: \" );// +\r\n\t\t } \r\n\t\t catch (DatastoreNeedIndexException e) {\r\n\t\t\t\tlogger.severe(e.getMessage());\r\n\t\t\t\tlogger.severe(\"datastore need index exception at: \");// +\r\n\t\t}\r\n\t\t finally{\r\n\t\t\t if ( tx.isActive()){\r\n\t\t\t\t tx.rollback();\r\n\t\t\t }\r\n\t\t\t pm.close();\r\n\t\t }\r\n\t\t return cartReturn;\r\n\t}", "public Cart getCart() {\n return this.cart;\n }", "public Cart getCart(GyftyUser user) throws ParseException {\n Cart cart = null;\n ParseQuery<Cart> query = ParseQuery.getQuery(\"Cart\");\n query.whereEqualTo(Cart.CartParams.user.toString(), user);\n\n try {\n cart = query.getFirst();\n if (cart == null) {\n cart = new Cart();\n cart.setUser(user);\n cart.save();\n }\n\n } catch (ParseException e) {\n\n Log.e(Cart.DEFAULT_PIN, \"Cannot find cart\", e);\n }\n\n return cart;\n\n }", "private Cart getCart(final String userId) throws CustomException, IOException {\n return cartRepository.findByUserId(userId);\n }", "public Map<String, Integer> getCart() {\n return cart;\n }", "@Override\n public CartDTO checkCart() throws NotLoggedInException, WrongUserDatabase, UserDatabaseNotFoundException {\n if (lastUserName != \"\" && lastUserName != null)\n reloadUser(lastUserName);\n if (actualUser != null)\n return actualUser.getPersonalCart();\n else\n throw new NotLoggedInException();\n }", "@Override\n\tpublic List<Cart> findAllCart() {\n\t\treturn cartRepository.findAll();\n\t}", "public List<Publication> getShoppingCart() {\n return Collections.unmodifiableList(shoppingCart);\n }", "@GetMapping(value = { \"\", \"/cart\" })\n\tpublic @NotNull ShoppingCartDto getShoppingCartDetail() {\n\t\tLOGGER.info(\"ShoppingCartRestController.getCartDetail() invocation started\");\n\t\treturn theShoppingCartService.getItemDetailFromCart();\n\t}", "public Cart getCourseInCart(String username) {\n SQLiteDatabase db = dButils.getWritableDatabase();\n String selectQuery = \"select * from \" + Cart.TABLE +\n \" where \" + Cart.KEY_username + \"=?\";\n @SuppressLint(\"Recycle\") Cursor cursor = db.rawQuery(selectQuery, new String[]{username});\n if (cursor.moveToFirst()) {\n return new Cart(cursor.getString(cursor.getColumnIndex(Cart.KEY_username)), TextUtil.stringToList(cursor.getString(cursor.getColumnIndex(Cart.KEY_courseInCart))));\n }\n return null;\n }", "public ShoppingCart getOrderInSession(HttpServletRequest request) {\n\t\tShoppingCart cart = (ShoppingCart) request.getSession().getAttribute(\"shoppingCart\");\n\t\treturn cart;\n\t\t\n\t}", "@Override\n\tpublic Cart getCartOrCreate(Authentication auth) {\n\t\tCart cart = new Cart();\n\t\tcart.setUpdateDate(LocalDate.now());\n\t\t\n\t\treturn cartRepo.findUserCart(Long.parseLong(auth.getName()))\n\t\t\t\t.orElse(cart);\n\t}", "@Override\n\tpublic List<Cart> findCartByUserId(int userId) throws SQLException{\n\t\t\n\t\treturn cartDao.findCartByUserId(userId);\n\t}", "public HashMap<String, String> getCartDetails() {\n HashMap<String, String> user = new HashMap<String, String>();\n String selectQuery = \"SELECT * FROM \" + TABLE_CART;\n\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n // Move to first row\n cursor.moveToFirst();\n if (cursor.getCount() > 0) {\n user.put(\"shopName\", cursor.getString(1));\n user.put(\"productName\", cursor.getString(2));\n user.put(\"Price\", cursor.getString(3));\n user.put(\"user_ID\", cursor.getString(4));\n\n }\n cursor.close();\n db.close();\n // return user\n Log.d(TAG, \"Fetching cart from Sqlite: \" + user.toString());\n\n return user;\n }", "public static CartModel getCartInSession(HttpServletRequest request) {\n CartModel cartInfo = (CartModel) request.getSession().getAttribute(\"myCart\");\r\n\r\n if (cartInfo == null) {\r\n cartInfo = new CartModel();\r\n request.getSession().setAttribute(\"myCart\", cartInfo);\r\n }\r\n\r\n return cartInfo;\r\n }", "@GetMapping\n ResponseEntity<Cart> retrieve() {\n return ResponseEntity.ok(unwrapProxy(cart));\n }", "public int getCartId() {\n return cartId;\n }", "public static void printCart(User currentUser) {\r\n\t\tSystem.out.println(\"\\n Cart\\n\");\r\n\t\tMap<Long, Integer> userCart = currentUser.getCart();\r\n\t\tif (userCart.size() == 0) {\r\n\t\t\tSystem.out.println(\"Your cart is empty...\");\r\n\t\t} else {\r\n\t\t\tSystem.out.format(\"%5s\\t%10s\\t%10s\\t%5s\\n\", \"Id\", \"Name\", \"Quantity\", \"Price\");\r\n\t\t\tfor (Long id : userCart.keySet()) {\r\n\t\t\t\tFruit fruit = fruits.get(id);\r\n\t\t\t\tdouble price = fruit.getPrice() * userCart.get(id);\r\n\t\t\t\tSystem.out.format(\"%5s\\t%10s\\t%10s\\t%5s\\n\", id, fruit.getName(), userCart.get(id), price);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public CartaBean getCarta() {\n\t\t\treturn carta;\n\t\t}", "List<Cart> getAllCarts();", "public List<CartItem> getAllcartitem();", "@Override\n\tpublic List<Cart> viewMyCart() throws BusinessException {\n\t\treturn null;\n\t}", "public String getCartItem() {\n\t\tMobileElement el = driver.findElement(By.xpath(\"//android.view.View[@resource-id='\" + cart + \"']\"));\n\t\tList<MobileElement> els = el.findElements(By.className(\"android.view.View\"));\n\t\treturn els.get(3).getText();\n\t}", "@Override\npublic List<Cart> selectByCartUserId(int cartUserId) {\n\treturn cartDao.selectByCartUserId(cartUserId);\n}", "@Override\n\tpublic List<Cart> selectCartByusername(String username) {\n\t\treturn cartDao.selectCartByusername(username);\n\t}", "@Override\n\t@Transactional\n\tpublic List<ShoppingCart> getListShoppingCart() {\n\t\treturn shoppingCartDao.getListShoppingCart();\n\t}", "public String getCartId()\n\t{\n\t\treturn getCartId( getSession().getSessionContext() );\n\t}", "@Override\n\tpublic Cart findCart(int cartId) {\n\t\treturn cartRepository.findById(cartId).get();\n\t}", "public void showCart(int userId) {\n try {\n List<Cart> carts = cartService.getUserCarts(userId);\n System.out.println(\"\\n\"+Constants.DECOR+\"YOUR CART\"+Constants.DECOR_END);\n System.out.println(Constants.CART_HEADER);\n for(Cart cart : carts) {\n System.out.println(String.valueOf(userId)\n +\"\\t\\t\"+String.valueOf(cart.getCartId())+(\"\\t\\t\"+String.valueOf(cart.getProduct().getId())\n +\"\\t\\t\"+String.valueOf(cart.getQuantity())+\"\\t\\t\"+cart.getCreated()+\"\\t\\t\"+cart.getModified()));\n }\n } catch (CartException ex) {\n System.out.println(ex);\n } \n }", "public ShoppingCartSubsystem getShoppingCart();", "@Override\n\t@Transactional\n\tpublic ShoppingCart getShoppingCart(int shoppingCartId) {\n\t\treturn shoppingCartDao.getShoppingCart(shoppingCartId);\n\t}", "@Override\n\tpublic List<Cart> selectThingsByUserId(int cartUserId) {\n\t\treturn cartDao.selectThingsByUserId(cartUserId);\n\t}", "public synchronized List<ShoppingCartItem> getItems(){\n List<ShoppingCartItem> cart = new ArrayList<ShoppingCartItem>();\n \n for(ShoppingCartItem cartItem : carrito){\n if(cartItem!=null)\n cart.add(cartItem);\n }\n \n return cart;\n }", "@Override\n\tpublic String checkout(Cart cart, User user) {\n\t\tlong millis = System.currentTimeMillis();\n\t\tString orderId = millis + \"\" + user.getId();\n\n\t\t// 2. generate an order\n\t\tOrder order = new Order();\n\t\torder.setCreateDate(new Date());\n\t\torder.setOrderId(orderId);\n\t\torder.setTotalMoney(cart.getTotalMoney());\n\t\torder.setStatus(0);\n\t\torder.setUserId(user.getId());\n\n\t\t// 3. generate orderitems for this order (according to cart) and save it to\n\t\t// database one by one\n\t\tList<CartItem> allItems = cart.getAllItems();\n\t\tList<OrderItem> orderItems = new ArrayList<>();\n\t\tfor (CartItem cartItem : allItems) {\n\t\t\tOrderItem item = new OrderItem(cartItem.getBook().getTitle(), cartItem.getBook().getPrice(),\n\t\t\t\t\tcartItem.getCount(), cartItem.getTotalPrice(), orderId);\n\t\t\torderItems.add(item);\n\t\t}\n\t\t// 4. save order\n\t\tod.saveOrder(order);\n\n\t\t// 5. save orderitems\n\t\tois.saveItem(orderItems);\n\t\t\n\t\t// 6. update stock and sales\n\t\tfor(CartItem cartItem : allItems) {\n\t\t\tBook book = cartItem.getBook();\n\t\t\t// update stock and sales according to the databank in real time in case of invalid operation\n\t\t\tBook one = bs.getOne(book);\n\t\t\tone.setSales(one.getSales() + cartItem.getCount());\n\t\t\tone.setStock(one.getStock() - cartItem.getCount());\n\t\t\tbs.update(one);\n\t\t}\n\t\t\n\t\t// 7. clear cart\n\t\tcart.clear();\n\t\treturn orderId;\n\t}", "@Override\n\tpublic List<Cart> findCartAndProductByNo(int user_no) throws Exception {\n\t\treturn cartMapper.findCartAndProductByNo(user_no);\n\t}", "@GetMapping(\"/show-cart\")\r\n\tpublic List<Cart> showCart() throws CartEmptyException {\r\n\t\tlog.info(\"showCart -Start\");\r\n\t\t//Cart cart = null;\r\n\t\tList<Cart> cart;\r\n\t\tcart = service.getAllCartItems(1);\r\n\t\tint total=0;\r\n\t\tif(cart.size()==0)\r\n\t\t{\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tfor(Cart carts:cart)\r\n\t\t{\r\n\t\t\ttotal+=carts.getMenuItem().getPrice();\r\n\t\t}\r\n\t System.out.println(\"*************************************************\"+total);\r\n\t\tlog.info(\"showCart -End\");\r\n\t\treturn cart;\r\n\r\n\t}", "public ShoppingCart getById(long id) {\n\t\treturn entityManager.find(ShoppingCart.class, id);\n\t}", "public ArrayList<Product> getCartContents() throws IOException, ClassNotFoundException {\n try {\n String fileName=userid+\"cart.txt\";\n File file=new File(fileName);\n if(file.exists()) {\n FileInputStream fis = new FileInputStream(fileName);//fileName);\n ObjectInputStream ois = new ObjectInputStream(fis);\n this.cartContents = (ArrayList<Product>) ois.readObject();\n }\n return cartContents;\n }\n catch(EOFException e)\n {\n System.out.println(\"Cart is empty.\");\n }\n return null;\n }", "public void cart() {\n\t\tString s=dr.findElement(By.xpath(\"//*[@id=\\\"Cart\\\"]/form\")).getText();\r\n\t\tSystem.out.println(s);\r\n\t}", "@GetMapping(value = \"/viewcart\")\n public ResponseEntity<List<CartProduct>> viewCart(final HttpSession session) {\n log.info(session.getId() + \" : Retrieving the cart to view\");\n Map<String, CartProduct> initialCart = (Map<String, CartProduct>) session.getAttribute(CART_SESSION_CONSTANT);\n ControllerUtils.checkEmptyCart(initialCart, session.getId());\n List<CartProduct> result = new ArrayList();\n\n for (String key : initialCart.keySet()) {\n result.add(initialCart.get(key));\n }\n return ResponseEntity.status(HttpStatus.OK).body(result);\n }", "private ShoppingCart getNewUserShoppingCart(Scanner scanner) {\n\n ShoppingCart shoppingCart = new ShoppingCart(\n getShoppingCartTotalFromUserInput(scanner),\n getLocalTimeFromUserInput(scanner)\n );\n\n return shoppingCart;\n }", "public ShoppingCart createCart() {\n\t\treturn save(new ShoppingCart());\n\t}", "public interface CartService {\n\n\t/**\n\t * Returns all carts present in the system.\n\t * \n\t * @return list of carts\n\t */\n\tList<Cart> getAllCarts();\n\n\t/**\n\t * Returns cart for User Id\n\t * \n\t * @param userId the User Id\n\t * @return cart\n\t */\n\tCart getCartForUser(String userId);\n\n\t/**\n\t * Adds product to cart\n\t * \n\t * @param productCode the product code\n\t * @param quantity the quantity of product to be added\n\t * @param userId the User Id\n\t * @return updated cart\n\t */\n\tCart addToCart(String productCode, Long quantity, String userId);\n\n\t/**\n\t * Returns cart for cart code.\n\t * \n\t * @param orderCode the order code\n\t * @return cart\n\t */\n\tCart getCartForCode(String orderCode);\n\n\t/**\n\t * Removes product from cart\n\t * \n\t * @param code the product code\n\t * @param quantity the quantity of to be removed\n\t * @param userId the User Id\n\t * @return updated cart\n\t */\n\tCart deleteFromCart(String code, Long quantity, String userId);\n}", "@ModelAttribute(\"cartContent\")\n public ArrayList<ShoppingCartItem> getCartContent() {\n return ShoppingCart.INSTANCE.getCartContent();\n }", "@RequestMapping\n public String getCartItems(Principal activeUser){\n \tSystem.out.println(\"Hello User Cart Controller\");\n \tSystem.out.println(activeUser.getName());\n \tUsersDetail usersDetail = usersDetailService.getUserByUsername (activeUser.getName());\n int cartId = usersDetail.getCart().getCartId();\n System.out.println(\"cart Id===\"+cartId);\n return \"redirect:/user/cart/\"+cartId;\n }", "public int getCartQuantity() {\n return cartQuantity;\n }", "@Override\n\tpublic List<Cart> selectCartAll() {\n\t\treturn cartDao.selectCartAll();\n\t}", "public Collection<CartItem> getCartItems(){\t\t\n\t\treturn map.values();\n\t}", "@Override\n\tpublic List<Cart> findCartListByUserID(Integer userid) throws CartDaoException {\n\t\tSqlSessionFactory factory=MyBatisUtils.getSqlSessionFactory();\n\t\tSqlSession session=factory.openSession();\n\t\tList<Cart> carts=session.selectList(\"com.neusoft.entity.Cart.findCartListByUserID\", userid);\n\t\treturn carts;\n\t}", "public void checkCarts(int userId) throws CartException {\n cartService.getUserCarts(userId); \n }", "public ItemStack getCartItem() {\n return new ItemStack(ModItems.fluxLevitatorItem);\n }", "public String getShoppingCartAsString() {\n String result = \"\";\n for (Item item : cart.keySet()) {\n int count = cart.get(item);\n int price = count * item.getPriceInCents();\n result += count + \"x \" + item.getName() + \" = \" + price + \" cents\\n\";\n }\n return result;\n }", "@JsonProperty(\"cart_id\")\n public String getCartId() {\n return cartId;\n }", "public void displayCart() {\n\t\tSystem.out.println(cart.toString());\n\t}", "@GetMapping(\"/{id}/shoppingcart\")\n public ShoppingCart getCustomerShoppingCart(@PathVariable long id){\n Customer b = customerRepository.findById(id);\n return b.getShoppingCart();\n }", "public ArrayList getCartas();", "private static void viewCart() {\r\n\t\tSystem.out.println(\"******************************************************************************************\");\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" The items in your cart\");\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" Name |Price |Count\");\r\n\t\tfor (Map.Entry<Product, Integer> productCountPair: cart.getCartProductsEntries()) {\r\n\t\t\tStringBuilder productName = generatePaddings(productCountPair.getKey().getName(), PRODUCT_NAME_LENGTH);\r\n\t\t\tStringBuilder price = generatePaddings(convertCentToDollar(productCountPair.getKey().getPriceInCent()), PRICE_LENGTH);\r\n\t\t\tSystem.out.println(\" \" + productName + \"|\" + price + \"|\" + productCountPair.getValue());\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" Total price: \" + convertCentToDollar(cart.totalPriceInCent()));\r\n\t\tSystem.out.println();\r\n\t\tdisplayCartMenu();\r\n\t}", "@Override\n\tpublic SverResponse<ActionCartVo> findAllCarts(Integer userid) {\n\t\tif (userid == null) {\n\t\t\treturn SverResponse.createByErrorMessage(\"参数错误\");\n\t\t}\n\t\t//查找用户购物车中的商品\n\t\tList<ActionCart> list = actionCartDao.findCartByUser(userid);\n\t\t//封装actioncartvo对象\n\t\tActionCartVo cartVo = creatCartVo(list);\n\t\treturn SverResponse.createRespBySuccess(cartVo);\n\t}", "@Override\n\tpublic int updateCartByUserId(Cart cart) {\n\t\treturn cartDao.updateCartByUserId(cart);\n\t}", "@Override\n public TicketDTO buyCart() throws InvalidQuantityException, IOException, ProductNotFoundException {\n\n return catalogueRepository.buyCart();\n }", "public void setCart(Cart cart){\n\t\tthis.cart = cart;\n\t}", "@GetMapping(\"/cartItems/{customerId}\")\n List<Cart> getAllCartProducts(@PathVariable(\"customerId\") int customerId) {\n\n Customer customer = cartService.getAllCartItems(customerId);\n List<Cart> cartItems = new ArrayList<>();\n\n Set<Cart> cart = customer.getCartItems();\n\n for (Cart cartItem : cart) {\n \n if(!(cartItem.isSavedForLater())){\n Double price = cartService.getNewPrice(cartItem);\n cartItem.setPrice(price);\n cartItems.add(cartItem);\n }\n \n }\n\n return cartItems;\n\n }", "public String getCartId(final SessionContext ctx)\n\t{\n\t\treturn (String)getProperty( ctx, CARTID);\n\t}", "Path getCartFilePath();", "public Pile getPileCartes(){\n\t\treturn this.pileCartes;\n\t}", "private static void checkoutCart() {\r\n\t\tint totalPrice = cart.totalPriceInCent();\r\n\t\tcart.checkoutCartProducts();\r\n\t\tSystem.out.println(\"******************************************************************************************\");\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" The items in your cart is all cleared\");\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" Total price to pay: \" + convertCentToDollar(totalPrice));\r\n\t\tSystem.out.println();\r\n\t}", "ResponseEntity<List<ItemDTO>> getAllCartItems(String cartId);", "public String getCartype() {\n return cartype;\n }", "public String getCartype() {\n return cartype;\n }", "@Override\n public Cart selectOneByCartId(int cartId) {\n return cartDao.selectOneByCartId(cartId);\n }", "public interface ShoppingCart {\n\t\n\t/**\n\t * Returns Total Count of Products User has added in the Shopping cart\n\t * @return Total Count of Products\n\t */\n\tpublic int getProductCount();\n\t\n\t/**\n\t * Adds a particular product in the Shopping Cart\n\t * @param product Product\n\t */\n\tpublic void addProduct(Product product);\n\t\n\t/**\n\t * The Total Value of all the products added in the Shopping cart\n\t * @return Total Value\n\t */\n\tpublic double getTotalCartValue();\n\t\n}", "public String[] loadCart(Session session) throws RemoteException{\n\t\tSystem.out.println(\"Server model invokes loadCart() method\");\n\t\treturn null;\n\t\t\n\t}", "@Override\n\tpublic int selectAllThings(int cartUserId) {\n\t\treturn cartDao.selectAllThings(cartUserId);\n\t}", "Cart addToCart(String productCode, Long quantity, String userId);", "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 printCart() {\n\t\tSystem.out.println(\"Items currently in the cart: \\n\");\n\t\tfor (int i =0; i < currentSize; i ++) {\n\t\t\tSystem.out.println(\"Item \" + i + \":\\n\" + Cart[i]);\n\t\t}\n\t}", "public Cart() {\n\t\tcart = new ArrayList<CartItem>();\n\t}", "public ShoppingCart() {\n\t\tmaxSize = 3;\n\t\tCart = new Item[maxSize];\n\t\tcurrentSize = 0;\n\t}", "Cart getCartForCode(String orderCode);", "bookingDTO getCart(int userID) throws DataAccessException;", "public ShoppingCart createShoppingCart(ShoppingCart cart) {\n\t\t PersistenceManager pm = PMF.get().getPersistenceManager();\r\n\t\t Transaction tx = pm.currentTransaction();\r\n\t\t try{\r\n\t\t\t\tShoppingCart cartdb = (ShoppingCart)pm.getObjectById(ShoppingCart.class, cart.getUserId());\r\n\t\t\t\ttx.begin();\r\n\t\t\t\tcartdb.addItems(cart.getItems());\r\n\t\t\t\tcartdb.retainItems(cart.getItems());\r\n\t\t\t\ttx.commit();\r\n\t\t\t\treturn cartdb;\r\n\t\t }\r\n\t\t catch(JDOObjectNotFoundException ox){\r\n\t\t\t\tlogger.info(\"Cart Not there for user \"+ cart.getUserId());\r\n\t\t\t\tlogger.info(\"creating cart for user \"+ cart.getUserId());\r\n\t\t\t\ttry{\r\n\t\t\t\t\ttx.begin();\r\n\t\t\t\t\t\tpm.makePersistent(cart);\r\n\t\t\t\t\ttx.commit();\r\n\t\t\t\t\tShoppingCart cartdb = (ShoppingCart)pm.getObjectById(ShoppingCart.class, cart.getUserId());\r\n\t\t\t\t\treturn cartdb;\r\n\t\t\t\t}catch (JDOCanRetryException ex) {\r\n\t\t\t\t\tex.printStackTrace();\r\n\t\t\t\t\tlogger.warning(\"Error creating Cart\"+cart.toString());\r\n\t\t\t\t\tthrow ex;\r\n\t\t\t\t}\r\n\t\t\t\tcatch(JDOFatalException fx){\r\n\t\t\t\tlogger.severe(\"Error creating cart :\"+ cart.toString());\r\n\t\t\t\tthrow fx;\r\n\t\t\t\t}finally{\r\n\t\t\t\t\t if (tx.isActive()){\r\n\t\t\t\t\t\t\ttx.rollback();\r\n\t\t\t\t\t }\r\n\t\t\t\t\t pm.close();\r\n\t\t\t\t }\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t }\r\n\t\t catch (JDOCanRetryException ex) {\r\n\t\t\t\tex.printStackTrace();\r\n\t\t\t\tlogger.warning(\"Error creating Cart\"+cart.toString());\r\n\t\t\t\tthrow ex;\r\n\t\t\t}\r\n\t\t\tcatch(JDOFatalException fx){\r\n\t\t\tlogger.severe(\"Error creating cart :\"+ cart.toString());\r\n\t\t\tthrow fx;\r\n\t\t\t}\r\n\t\t finally{\r\n\t\t\t if (tx.isActive()){\r\n\t\t\t\t\ttx.rollback();\r\n\t\t\t }\r\n\r\n\t\t\t if ( !pm.isClosed()){\r\n\t\t\t\t pm.close();\r\n\t\t\t }\r\n\t\t }\r\n\t\t \r\n\t}", "@RequestMapping(\"/cartToOrder\")\n @Modifying(clearAutomatically = true, flushAutomatically = true)\n public Msg cartToOrder(@RequestParam(\"user_id\") int user_id){\n if (orderService.cartToOrder(user_id))\n return MsgUtil.makeMsg(MsgCode.SUCCESS, MsgUtil.MAKE_ORDER_SUCCESS);\n else\n return MsgUtil.makeMsg(MsgCode.ERROR, MsgUtil.MAKE_ORDER_ERROR);\n }", "public void Cart() {\r\n\t\tthis.cart.click();\r\n\t}", "@Override\n\tpublic Cart selectCart(int cart_id) {\n\t\treturn null;\n\t}", "private ShoppingCart getExistingScFromSession(HttpServletRequest request) throws UnartigSessionExpiredException\n {\n HttpSession s = request.getSession();\n ShoppingCart shoppingCart = (ShoppingCart) s.getAttribute(Registry._NAME_SHOPPING_CART_SESSION);\n if (shoppingCart == null)\n {\n _logger.debug(\"no shopping cart found in session. throwing exception\");\n throw new UnartigSessionExpiredException(\"Session expired, no Shopping cart available\");\n }\n return shoppingCart;\n }", "public double getTotalCartValue();", "@Override\n public CartEntity getById(int id) {\n return entityManager.find(CartEntity.class,id);\n }", "public CartModel[] getUnpaidCartByUserId(int userId) {\n SQLiteDatabase sdb = this.getReadableDatabase();\n Cursor cursor = sdb.rawQuery(\"SELECT * FROM cart where user_id=? and buy_status=0\", new String[]{String.valueOf(userId)});\n int count = cursor.getCount();\n// Log.e(\"cart row\", \"got \" + count + \" items\");\n CartModel []emptyCart = new CartModel[0];\n if(count == 0) return emptyCart;\n cursor.moveToFirst();\n\n\n CartModel []cart = new CartModel[count];\n int i = 0;\n for(i = 0; i < cart.length; i++) {\n cart[i] = new CartModel();\n }\n\n// Log.e(\"init cart[]\", \"finished init caart[]\");\n cursor.moveToFirst();\n i = 0;\n do {\n cart[i].setCart_id(cursor.getInt(0));\n cart[i].setItem_id(cursor.getInt(1));\n cart[i].setUser_id(cursor.getInt(2));\n cart[i].setBuy_status(cursor.getInt(3));\n i++;\n } while(cursor.moveToNext());\n\n cursor.close();\n\n// Log.e(\"getCartByUserId\", \"finished get caart by user id\");\n return cart;\n }", "public CartItem get(int ndx) {\n\t\treturn cart.get(ndx);\n\t}", "public interface iCart {\n\tString addToCart(CartRequest request);\n\tString updateCartQuantity(CartRequest request);\n\tString removeProductFromCart(CartRequest request);\n\tString ClearAllItemFromCart(CartRequest request);\n\tList<CartSummary> getCartSummary(CartRequest request);\n\t\n\n}", "public List<CartItem> findCartItemsByCartItemIdCustomerCustomerId(int customerId);", "public void setCart(Map<String, Integer> cart) {\n this.cart = cart;\n }", "public void ViewCart() {\r\n\t\tthis.ViewCart.click();\r\n\t}", "@Override\n\tpublic void printCart() {\n\n\t\tint nSize = cartList.size();\n\t\tint intSum = 0;\n\n\t\tSystem.out.println(\"===================================================\");\n\t\tSystem.out.println(\"구매자\\t 상품명 수량\\t 단가\\t 합계\");\n\t\tSystem.out.println(\"---------------------------------------------------\");\n\n\t\tint i = 0;\n\t\tfor (i = 0; i < nSize; i++) {\n\t\t\tSystem.out.print(cartList.get(i).getUserName() + \"\\t \");\n\t\t\tSystem.out.print(cartList.get(i).getProductName() + \"\\t \");\n\t\t\tSystem.out.print(cartList.get(i).getQty() + \"\\t \");\n\t\t\tSystem.out.print(cartList.get(i).getPrice() + \"\\t \");\n\t\t\tSystem.out.println(cartList.get(i).getTotal() + \"\\t\");\n\n\t\t\tintSum += cartList.get(i).getTotal();\n\t\t}\n\n\t\tSystem.out.println(\"---------------------------------------------------\");\n\t\tSystem.out.printf(\"합계\\t%d가지\\t\\t\\t%d\\n\", i, intSum);\n\n\t}", "public void getCartProducts(int userId) {\n try {\n int flag = 1;\n while(1 == flag) {\n int prodId = InputUtil.getInt(\"Enter product Id : \");\n Product product = cartService.getProductFromStore(prodId);\n if(!cartService.validateProduct(userId,prodId)) {\n System.out.println(\"Product added already in cart\\n\"); \n break;\n }\n Cart cart = new Cart();\n\t\t cart.setProduct(product); \n cart.setUser(userService.getUser(userId));\n\t\t int quantity = InputUtil.getInt(\"Enter product quantity : \"); \n cart.setQuantity(quantity);\n cart.setCreated(DateUtil.getCurrentDateTime());\n cart.setModified(DateUtil.getCurrentDateTime());\n cartService.add(cart);\n System.out.println(\"\\n\"+product.getName().toUpperCase()+\" added to cart \");\n flag = InputUtil.getInt(\"Enter 1 to add products. 2 to exit : \");\n }\n } catch (ProductException e) {\n\t System.out.println(e);\n } catch (DatabaseConnectionException e) {\n\t System.out.println(e);\n\t } catch (NoRecordFoundException ex) {\n System.out.println(ex);\n } catch (CartException ex) {\n System.out.println(ex);\n } \n }", "public HashMap<String, String> viewCart(int cusId) {\n if (orderList.hasCart(cusId))\n return orderList.getCart(cusId).toHashMap();\n\n return null;\n }", "@RequestMapping(method = RequestMethod.GET,value = \"/\")\n public String HomePage(Model model, HttpSession session){\n model.addAttribute(\"listBook\",bookService.books());\n\n ShoppingCart shoppingCart = (ShoppingCart) session.getAttribute(\"list-order\");\n\n if (shoppingCart != null){\n\n Set<CartItem> listCartItem = new HashSet<>();\n for (Long hashMapKey:shoppingCart.getItems().keySet()\n ) {\n CartItem cartItem = shoppingCart.getItems().get(hashMapKey);\n listCartItem.add(cartItem);\n System.out.println(\"quantity : \" + cartItem.getQuantity());\n System.out.println(\"size list cart : \" + listCartItem.size());\n }\n model.addAttribute(\"listCartItem\",listCartItem);\n }\n\n\n return \"homePage\";\n }", "@Override\r\n\tpublic Shop getShopByUserId(int userid) {\n\t\treturn sm.selectByUserId(userid);\r\n\t}" ]
[ "0.8168798", "0.7891922", "0.7356329", "0.7229507", "0.7137198", "0.71329874", "0.6931039", "0.67374915", "0.6731947", "0.6703449", "0.6656691", "0.65346104", "0.6518964", "0.6507017", "0.6467167", "0.644232", "0.63951814", "0.63947123", "0.638611", "0.6239006", "0.62291086", "0.6220316", "0.6210861", "0.62097615", "0.62057835", "0.6194289", "0.618321", "0.6176", "0.6169823", "0.61667067", "0.6149131", "0.6136542", "0.6134385", "0.6131133", "0.6112183", "0.61053866", "0.6097793", "0.60102826", "0.5979558", "0.5947518", "0.5943992", "0.5931194", "0.592969", "0.5921513", "0.5917217", "0.5860941", "0.5839508", "0.582646", "0.5813184", "0.5811957", "0.57729137", "0.57683533", "0.5760838", "0.57273924", "0.5724915", "0.5720201", "0.56935316", "0.5665467", "0.5613906", "0.5572918", "0.556438", "0.5553317", "0.55380386", "0.55368805", "0.5519582", "0.5513224", "0.5511755", "0.5500816", "0.54952604", "0.5489872", "0.5489872", "0.548053", "0.54667664", "0.54586005", "0.5453351", "0.5453039", "0.545294", "0.54453474", "0.5445302", "0.5437571", "0.54362077", "0.53859", "0.5364617", "0.53492683", "0.53301257", "0.53294075", "0.53232974", "0.5306559", "0.52942985", "0.5279978", "0.52641106", "0.5259684", "0.524798", "0.5247621", "0.524681", "0.5244155", "0.5235269", "0.5225063", "0.52126473", "0.5161385" ]
0.7564057
2
Setters for private fields. Set the user's username.
public final void setUsername(final String usernameNew) { this.username = usernameNew; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void setUsername(final String value) {\n username = value;\n }", "public void setUsername(String aUsername) {\n username = aUsername;\n }", "public void setUsername(String username)\r\n/* 16: */ {\r\n/* 17:34 */ this.username = username;\r\n/* 18: */ }", "public static void setUsername(String username)\n {\n username_ = username;\n }", "public void setUsername(String u)\n\t{\n\t\tusername = u;\n\t}", "public void setUsername(String un)\r\n\t{\r\n\t\tusername = un;\r\n\t}", "public void setUsername(final String username){\n mUsername = username;\n }", "public void setUserName( String value )\n {\n m_UserName = value;\n }", "void setUsername(String username);", "public void setUsername(String username) {this.username = username;}", "public void setUsername(String un)\n {\n this.username = un;\n }", "public void setUsername(String username)\n {\n _username = username;\n }", "public void setUserName(String value) {\n setAttributeInternal(USERNAME, value);\n }", "public void setUsername(String username) {\n this.username.set(username);\n }", "public void setUsername(String username) {\n \tthis.username = username;\n }", "public com.politrons.avro.AvroPerson.Builder setUsername(java.lang.CharSequence value) {\n validate(fields()[1], value);\n this.username = value;\n fieldSetFlags()[1] = true;\n return this; \n }", "public Builder setUsername(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n username_ = value;\n onChanged();\n return this;\n }", "public Builder setUsername(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n username_ = value;\n onChanged();\n return this;\n }", "protected void setUsername(final String user) {\n this.user = user;\n }", "public void setUsername(String username) {\r\n this.username = username;\r\n }", "public void setUsername(String username) {\r\n this.username = username;\r\n }", "public Builder setUsername(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n username_ = value;\n onChanged();\n return this;\n }", "public Builder setUsername(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n username_ = value;\n onChanged();\n return this;\n }", "public void setUsername(String username)\n {\n this.username = username;\n }", "public void setUsernameFieldName(final String value) {\n setProperty(USERNAME_FIELD_NAME_KEY, value);\n }", "public void setUsername(String username) {\r\n this.username = username;\r\n }", "public void setUsername(String username) {\r\n this.username = username;\r\n }", "public void setUsername(String username) {\r\n this.username = username;\r\n }", "protected static void setUsername(String username) {\n Program.username = username;\n }", "public void setUsername(String username) {\n this.username = username;\n }", "public void setUserName(String username){\n this.userName = username;\n }", "public void setUsername( String username ) {\n this.username = username;\n }", "public void setUsername(final String username) {\n this.username = username;\n }", "public void setUsername(String username) {\n this.username = username;\n saveProperties();\n }", "public void setUsername(String username) {\n this.username = username;\r\n }", "public void setUsername(String TakenUsername) {\n username = TakenUsername;\n }", "public void setUserName(String Strusername) {\n\t\tstepstatus = basepage.setText(Username, Strusername);\n\t\treportEvent(stepstatus, \"Able to enter username\", \"Unable to enter username\", driver, true);\n\t}", "public void setUsername(String username) {\n this.username = username;\n }", "public void setUsername(String username) {\n this.username = username;\n }", "public void setUsername(String username) {\n this.username = username;\n }", "public void setUsername(String username) {\n this.username = username;\n }", "public void setUsername(String username) {\n this.username = username;\n }", "public void setUsername(String username) {\n this.username = username;\n }", "public void setUsername(String username) {\n this.username = username;\n }", "public void setUsername(String username) {\n this.username = username;\n }", "public void setUsername(String username) {\n this.username = username;\n }", "public void setUsername(String username) {\n this.username = username;\n }", "public void setUsername(String username) {\n this.username = username;\n }", "public void setUsername(String username) {\n this.username = username;\n }", "public void setUsername(String username) {\n this.username = username;\n }", "public void setUsername(String username) {\n this.username = username;\n }", "public void setUsername(String username) {\n this.username = username;\n }", "public void setUsername(String username) {\n this.username = username;\n }", "public void setUsername(String username) {\n this.username = username;\n }", "public void setUsername(String username) {\n this.username = username;\n }", "public void setUsername(String username) {\n this.username = username;\n }", "public void setUsername(String username) {\r\n\t\tthis.username = username;\r\n\t}", "public void setUsername(String username) {\r\n\t\tthis.username = username;\r\n\t}", "public void setUsername(String username) {\r\n\t\tthis.username = username;\r\n\t}", "public void set_username(String username)\r\n\t{\r\n\t\tthis.username = username;\r\n\t}", "public Builder setUserName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n userName_ = value;\n onChanged();\n return this;\n }", "@Override\n\tpublic void setUserName(String userName);", "@Override\n\tpublic void setUserName(String userName);", "public Builder setUsername(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n username_ = value;\n onChanged();\n return this;\n }", "void setUserUsername(String username);", "public void setUsername(java.lang.CharSequence value) {\n this.username = value;\n }", "public Builder setUsername(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n username_ = value;\n onChanged();\n return this;\n }", "public Builder setUsername(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n username_ = value;\n onChanged();\n return this;\n }", "public Builder setUsername(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n username_ = value;\n onChanged();\n return this;\n }", "public Builder setUsername(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n username_ = value;\n onChanged();\n return this;\n }", "public void setUsername(String username) {\n\tthis.username = username;\n}", "public void setUsername(String user) {\n\t\tthis.username = user;\n\t}", "public void setUsername(String username) {\n this.username = username.toLowerCase(Locale.ENGLISH);\n }", "@Override\n\tpublic void setUsername(String username) {\n\t\tgetInnerObject().setUsername(username);\n\t}", "protected final void setUserName(final String userName) {\n this.userName = userName;\n }", "public void setUsername(String username) {\r\n this.username = username == null ? null : username.trim();\r\n }", "public void setUsername(String username) {\r\n this.username = username == null ? null : username.trim();\r\n }", "public void setUsername(String username) {\r\n this.username = username == null ? null : username.trim();\r\n }", "public void setUsername(String username) {\r\n this.username = username == null ? null : username.trim();\r\n }", "public void setUsername(String username) {\n\t\tthis.username = username;\n\t}", "public void setUsername(String username) {\n\t\tthis.username = username;\n\t}", "public void setUsername(String username) {\n\t\tthis.username = username;\n\t}", "public void setUsername(String username) {\n\t\tthis.username = username;\n\t}", "public void setUsername(String username) {\n\t\tthis.username = username;\n\t}", "public void setUsername(String username) {\n\t\tthis.username = username;\n\t}", "public void setUsername(String username) {\n this.username = username;\n this.email = username;\n this.needToSave = Boolean.TRUE;\n }", "public void setUsername(String username) {\n this.username = username == null ? null : username.trim();\n }", "public void setUsername(String username) {\n this.username = username == null ? null : username.trim();\n }", "public void setUsername(String username) {\n this.username = username == null ? null : username.trim();\n }", "public void setUsername(String username) {\n this.username = username == null ? null : username.trim();\n }", "public void setUsername(String username) {\n this.username = username == null ? null : username.trim();\n }", "public void setUsername(String username) {\n this.username = username == null ? null : username.trim();\n }", "public void setUsername(String username) {\n this.username = username == null ? null : username.trim();\n }", "public void setUsername(String username) {\n this.username = username == null ? null : username.trim();\n }", "public void setUsername(String username) {\n this.username = username == null ? null : username.trim();\n }", "public void setUsername(String username) {\n this.username = username == null ? null : username.trim();\n }", "@Override\n\tpublic void setUserName(String userName) {\n\n\t}", "public Builder setUserName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n userName_ = value;\n onChanged();\n return this;\n }", "public void setName(String username) {\n setObject(\"username\", (username != null) ? username : \"\");\n }", "public void setUsername(java.lang.String param) {\n localUsernameTracker = true;\n\n this.localUsername = param;\n }" ]
[ "0.82215023", "0.8215306", "0.8145799", "0.81415915", "0.81393206", "0.8068124", "0.80548024", "0.8053738", "0.80094856", "0.79984134", "0.7963331", "0.7947644", "0.7942574", "0.79371643", "0.79104084", "0.79057294", "0.7904089", "0.7904089", "0.7900829", "0.78946173", "0.78946173", "0.789411", "0.789411", "0.78740156", "0.7867679", "0.7856847", "0.7856847", "0.7856847", "0.7829642", "0.7825216", "0.7824952", "0.7814453", "0.781386", "0.7810654", "0.7809271", "0.7783222", "0.7748153", "0.7742525", "0.7742525", "0.7742525", "0.7742525", "0.7742525", "0.7742525", "0.7742525", "0.7742525", "0.7742525", "0.7742525", "0.7742525", "0.7742525", "0.7742525", "0.7742525", "0.7742525", "0.7742525", "0.7742525", "0.7742525", "0.7742525", "0.77362293", "0.77362293", "0.77362293", "0.7734382", "0.77243656", "0.7723615", "0.7723615", "0.76996815", "0.7688185", "0.7687741", "0.76810795", "0.7661638", "0.7661638", "0.7661638", "0.7657205", "0.76448315", "0.7638729", "0.76151264", "0.7601676", "0.7564754", "0.7564754", "0.7564754", "0.7564754", "0.7549569", "0.7549569", "0.7549569", "0.7549569", "0.7549569", "0.7549569", "0.75477964", "0.75446546", "0.75446546", "0.75446546", "0.75446546", "0.75446546", "0.75446546", "0.75446546", "0.75446546", "0.75446546", "0.75446546", "0.75325125", "0.75209934", "0.7508213", "0.750312" ]
0.7739685
56
Set the user's password.
public final void setPwd(final String pwdNew) { this.pwd = pwdNew; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setPassword(String password);", "void setPassword(String password);", "void setPassword(String password);", "public void setPassword(String pass);", "public void setPassword(java.lang.String newPassword);", "public void setPassword(String pw)\n {\n this.password = pw;\n }", "void setPassword(Password newPassword, String plainPassword) throws NoUserSelectedException;", "public void setPassword(String password)\r\n/* 26: */ {\r\n/* 27:42 */ this.password = password;\r\n/* 28: */ }", "void setPassword(String ps) {\n this.password = ps;\n }", "public void setPassword(String password)\n {\n _password = password;\n }", "public void setPassword(String pw) {\n password = pw.toCharArray();\n cleared = false;\n }", "public void setPassword(String password)\n {\n _password = password;\n }", "public void set_pass(String password)\n {\n pass=password;\n }", "public void setPassword(String p)\n\t{\n\t\tpassword = p;\n\t}", "public void setPassword(String p) {\n\t\tpassword = p;\n\t}", "public void setPassword(String user, String password) throws Exception {\n\t\tProperties database = getDataBase();\n\t\tdatabase.setProperty(user, PasswordHash.createHash(password));\n\t\tsave(database);\n\t}", "public void setPassword(String password){\r\n this.password = password;\r\n }", "@Override\n\tpublic void setPassword(String password) {\n\n\t}", "public void setPassword(String password) {\r\n this.password = password;\r\n }", "public void setPassword(String password) {\r\n this.password = password;\r\n }", "public void setPassword(String password)\n {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n saveProperties();\n }", "public void setPassword(String password)\n {\n this.password = password;\n }", "public void setPassword(String password)\n {\n this.password = password;\n }", "public void setPassword(String paramPasswd) {\n\tstrPasswd = paramPasswd;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\r\n }", "public void setPassword(final String password){\n mPassword = password;\n }", "public void setPassword( String password )\r\n {\r\n this.password = password;\r\n }", "public void setPassword(String password)\n \t{\n \t\tthis.password = password;\n \t}", "@Test\n\tpublic void testSetPassword() {\n\t\tUser user = new User();\n\t\tuser.setPassword(\"TuEsOuPassword\");\n\t\tassertEquals(\"TuEsOuPassword\", user.getPassword());\n\t}", "public void setPassword(String password) {\r\n this.password = password;\r\n }", "public void setPassword(String password) {\r\n this.password = password;\r\n }", "public void setPassword(String password) {\r\n this.password = password;\r\n }", "public void setPassword(String password) {\r\n this.password = password;\r\n }", "public void setPassword(String password) {\r\n this.password = password;\r\n }", "public void setPassword(String password) {\r\n this.password = password;\r\n }", "public void setPassword(String password) {\n\tthis.password = password;\n}", "public void set_password(String password)\r\n\t{\r\n\t\tthis.password = password;\r\n\t}", "public void setPassWord(String password) {\n\t\tsharedPreferences = context.getSharedPreferences(\"Login\",\n\t\t\t\tcontext.MODE_PRIVATE);\n\t\tSharedPreferences.Editor editor = sharedPreferences.edit();\n\t\teditor.putString(\"PASSWORD\", password);\n\t\teditor.commit();\n\t}", "public void setPassword(java.lang.String password) {\r\n this.password = password;\r\n }", "public void setPassword(java.lang.String password) {\r\n this.password = password;\r\n }", "public void setPassword(String password) {\n this.password.set(password);\n }", "public Builder setPassword(\n String value) {\n copyOnWrite();\n instance.setPassword(value);\n return this;\n }", "public Builder setPassword(\n String value) {\n copyOnWrite();\n instance.setPassword(value);\n return this;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword (java.lang.String password) {\r\n\t\tthis.password = password;\r\n\t}", "public void setPassword(String password){\n this.password = encryptPassword(password);\n checkRep();\n }", "public void setPassword(String password) {\n this.password = password;\n }", "private void setPassword(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n password_ = value;\n }", "private void setPassword(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n password_ = value;\n }", "public void setUserPassword(String newPassword) {\n profile.setPassword(currentUser, newPassword);\n }", "public void setPassword(String password) {\n setObject(\"password\", (password != null) ? password : \"\");\n }", "public void setPassword(java.lang.String password) {\n this.password = password;\n }", "public void setPassword(java.lang.String password) {\n this.password = password;\n }", "public void setPassword(String password) throws NoSuchAlgorithmException, UnsupportedEncodingException {\n this.password = password;\r\n// this.password = hashPassword(password);\r\n// System.out.println(\"haslo po hash w account: \" + this.password);\r\n }", "public void setPassword( final String password )\n\t{\n\t\tthis.password = password;\n\t}", "@Test\n public void testSetPassword() {\n System.out.println(\"setPassword\");\n user.setPassword(\"123m\");\n assertEquals(\"123m\", user.getPassword());\n }", "@Override\n\tpublic void setPassword(String password) {\n\t\tsuper.setPassword(password);\n\t}", "@Override\n\tpublic void setPassword(String password) {\n\t\tsuper.setPassword(password);\n\t}", "public void setPassword(String password) {\r\n\t\tthis.password = password;\r\n\t}", "public void setPassword(String password) {\r\n\t\tthis.password = password;\r\n\t}", "public void setPassword(String newPassword) {\n this.password = newPassword;\n \n //make the changes in the database\n db.updateUserProperty(username, Property.PASSWORD, newPassword);\n }", "public void setPassword(final String password) {\n this.password = password.toCharArray();\n }", "public void setPassword(String password) throws SQLException\r\n\t{\r\n\t\tif (password == null)\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tString SQL_USER = \"UPDATE user SET password =? WHERE id=?;\";\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\t//Prepare the statement\r\n\t\t\tPreparedStatement statement = this.getConn().prepareStatement(SQL_USER);\r\n\r\n\t\t\t//Bind the variables\r\n\t\t\tstatement.setString(1, password);\r\n\t\t\tstatement.setInt(2, userId);\r\n\r\n\t\t\t//Execute the update\r\n\t\t\tstatement.executeUpdate();\r\n\r\n\t\t} catch (SQLException e)\r\n\t\t{\r\n\t\t\tGWT.log(\"Error in SQL: Student->setPassword(String \"+ password+ \")\", e);\r\n\t\t\tthis.getConn().rollback();\r\n\t\t\tthrow e;\t\r\n\t\t}\r\n\t\t\r\n\t\t//commit change\r\n\t\tDatabase.get().commit();\r\n\t}", "public Builder setPassword(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n password_ = value;\n onChanged();\n return this;\n }", "public Builder setPassword(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n password_ = value;\n onChanged();\n return this;\n }", "public void setPassword(int password) {\n this.password = password;\n }", "public void setPass(String pass)\r\n\t{\r\n\t\tpassword = pass;\r\n\t}", "public void setPassword(String password) {\n String oPassword = getPassword();\n this.password = password;\n\n \n try {\n MessageDigest md = MessageDigest.getInstance( \"MD5\" );\n md.update(this.password.getBytes());\n \n BigInteger hash = new BigInteger( 1, md.digest() );\n this.hashPassword = hash.toString(16);\n } catch (NoSuchAlgorithmException ns) {\n ns.printStackTrace();\n }\n\n firePropertyChange(PROPNAME_PASSWORD, oPassword, this.password);\n }" ]
[ "0.8346464", "0.8346464", "0.8346464", "0.82894814", "0.82672787", "0.8146895", "0.8051694", "0.7938337", "0.7930545", "0.790223", "0.78292", "0.7784644", "0.77339566", "0.773027", "0.7691964", "0.7684532", "0.7674502", "0.7626594", "0.762369", "0.762369", "0.7607724", "0.7605472", "0.7593619", "0.7593619", "0.7592303", "0.7587991", "0.7587991", "0.7586545", "0.7575284", "0.757168", "0.75608826", "0.7543628", "0.75418425", "0.75418425", "0.75418425", "0.75418425", "0.75418425", "0.75418425", "0.7521449", "0.7503009", "0.74995756", "0.74778503", "0.74778503", "0.74635136", "0.7444234", "0.7444234", "0.74357194", "0.74357194", "0.74357194", "0.74357194", "0.74357194", "0.74357194", "0.74357194", "0.74357194", "0.74357194", "0.74357194", "0.74357194", "0.74357194", "0.74357194", "0.74357194", "0.74357194", "0.74357194", "0.74357194", "0.74357194", "0.74357194", "0.74357194", "0.74357194", "0.74357194", "0.74357194", "0.74357194", "0.74357194", "0.74357194", "0.74357194", "0.74357194", "0.74357194", "0.74357194", "0.74357194", "0.74177355", "0.7415333", "0.7411825", "0.73893446", "0.73893446", "0.7382521", "0.7360968", "0.7359974", "0.7359974", "0.7326576", "0.7316044", "0.7311976", "0.7308259", "0.7308259", "0.7291311", "0.7291311", "0.7289007", "0.72695315", "0.7245342", "0.72331995", "0.72331995", "0.72247636", "0.7204395", "0.7166147" ]
0.0
-1
Set the user's email.
public final void setEmail(final String emailNew) { this.email = emailNew; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setUserEmail(String userEmail) {\r\n this.userEmail = userEmail;\r\n }", "public void setUserEmail(java.lang.String userEmail) {\r\n this.userEmail = userEmail;\r\n }", "public Builder setUserEmail(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n userEmail_ = value;\n onChanged();\n return this;\n }", "public void setEmail(final String value)\n\t{\n\t\tsetEmail( getSession().getSessionContext(), value );\n\t}", "public void setEmail(final String value)\n\t{\n\t\tsetEmail( getSession().getSessionContext(), value );\n\t}", "void setEmail( String username, String email ) throws UserNotFoundException;", "public void setUserEmail(final String userEmail) {\n sharedPreferences.edit().putString(PREFERENCE_USER_EMAIL, userEmail).apply();\n }", "void setEmail(String email);", "void setEmail(String email);", "public void setUserEmail(String newEmail) {\n profile.setEmail(currentUser, newEmail);\n }", "public void setEmail(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(EMAIL_PROP.get(), value);\n }", "public void setEmail(final String e)\n {\n this.email = e;\n }", "public void setEmail(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(EMAIL_PROP.get(), value);\n }", "public void setEmail(String account, String email) throws SQLException, MessagingException {\n\t\tthis.userDao.setEmail(account,email);\r\n\t}", "public void setEmail(String email);", "@Override\n public void setEmail(String email) {\n\n }", "public void setUserEmail(String userEmail) {\r\n this.userEmail = userEmail == null ? null : userEmail.trim();\r\n }", "public void setEmail(String aEmail) {\n email = aEmail;\n }", "public void setUserEmail(String userEmail) {\n this.userEmail = userEmail == null ? null : userEmail.trim();\n }", "public void setEmail(String email)\r\n/* 36: */ {\r\n/* 37:50 */ this.email = email;\r\n/* 38: */ }", "public void setEmail(final SessionContext ctx, final String value)\n\t{\n\t\tsetProperty(ctx, EMAIL,value);\n\t}", "public void setEmail(final SessionContext ctx, final String value)\n\t{\n\t\tsetProperty(ctx, EMAIL,value);\n\t}", "public void setEmail(String email){\n if(email == null){\n throw new IllegalArgumentException(\"E-mail de usuario igual a null\");\n }\n this.email = email;\n }", "public Builder setEmail(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n email_ = value;\n onChanged();\n return this;\n }", "public Builder setEmail(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n email_ = value;\n onChanged();\n return this;\n }", "public void setEmail(Email email) { this.email = email; }", "public void setEmail(String string) {\n\t\tthis.email = string;\n\t}", "public void setEmailAddress(String emailAddress);", "public Builder setEmail(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n email_ = value;\n onChanged();\n return this;\n }", "public Builder setEmail(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n email_ = value;\n onChanged();\n return this;\n }", "public void setEmail(java.lang.String email) {\r\n this.email = email;\r\n }", "public void setEmail( String email )\r\n {\r\n this.email = email;\r\n }", "public void setEmail(String email) {\r\n this.email = email;\r\n }", "public void setEmail(String email) {\r\n this.email = email;\r\n }", "public void setEmail(String email) {\r\n this.email = email;\r\n }", "public void setEmail(String email) {\r\n this.email = email;\r\n }", "public void setEmail(String email) {\r\n this.email = email;\r\n }", "public void setEmail(String email) {\r\n this.email = email;\r\n }", "public void setEmail(String email)\n {\n this.email = email;\n }", "public void setEmail(String email){\r\n this.email = email;\r\n }", "public void setEmail(String email) { this.email = email; }", "private void setEmail(String email) {\n this.email = StringExtension.nullFilter(email);\n }", "public final void setEmail(String email) {\n\t\tthis.email = email;\n\t}", "public void setEmail(String email)\n {\n String regex = \"^[\\\\w!#$%&'*+/=?`{|}~^-]+(?:\\\\.[\\\\w!#$%&'*+/=?`{|}~^-]+)*@(?:[a-zA-Z0-9-]+\\\\.)+[a-zA-Z]{2,6}$\";\n Pattern pattern = Pattern.compile(regex);\n Matcher matcher = pattern.matcher(email);\n if(matcher.matches())\n {\n this.email=email;\n }\n else \n {\n this.email=\"\";\n }\n }", "public void setEmail(String email) {\n mEmailTv.setText(email);\n }", "public void setEmail( final String email )\n\t{\n\t\tthis.email = email;\n\t}", "@Override\r\n\tpublic void setEmail(String email) {\n\t\tif (email == null) {\r\n\t\t\tthrow new IllegalArgumentException(\"Null argument is not allowed\");\r\n\t\t}\r\n\t\tif (email.equals(\"\")) {\r\n\t\t\tthrow new IllegalArgumentException(\"Empty argument is not allowed\");\r\n\t\t}\r\n\t\tthis.email = email;\r\n\t}", "public void setEmail(java.lang.String email) {\n this.email = email;\n }", "public void setEmail(java.lang.String email) {\n this.email = email;\n }", "public void setEmail(java.lang.String email) {\n this.email = email;\n }", "public void setEmail(java.lang.String email) {\n this.email = email;\n }", "public Builder setEmail(java.lang.String value) {\n\t\t\t\tif (value == null) {\n\t\t\t\t\tthrow new NullPointerException();\n\t\t\t\t}\n\n\t\t\t\temail_ = value;\n\t\t\t\tonChanged();\n\t\t\t\treturn this;\n\t\t\t}", "@Override\n\tpublic void setEmail(String email) {\n\t\tsuper.setEmail(email);\n\t}", "public void setEmailAddress(java.lang.String newEmailAddress);", "@Override\n public void setEmail(java.lang.String email) {\n _entityCustomer.setEmail(email);\n }", "public void setEmail(java.lang.String value) {\n\t\tsetValue(org.jooq.example.jaxrs.db.routines.GenerateKey.EMAIL, value);\n\t}", "public void setEmailAddress(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail_address(String email_address);", "public void setEmail(String email) {\n Consistencia.consisteNaoNuloNaoVazio(email, \"email\");\n\n this.email = email;\n }", "public void setEmail(String email)\n\t{\n\t\tthis._email=email;\n\t}", "public static void setUserFromEmail(final String email) {\r\n final DataSource userDs =\r\n DataSourceFactory.createDataSourceForFields(TABLE_AFM_USERS, new String[] {\r\n USER_NAME, Constants.EMAIL_FIELD_NAME });\r\n final Context context = ContextStore.get();\r\n \r\n userDs.addRestriction(Restrictions.eq(TABLE_AFM_USERS, Constants.EMAIL_FIELD_NAME, email));\r\n final DataRecord record = userDs.getRecord();\r\n \r\n if (record == null) {\r\n throw new UsernameNotFoundException(\"No user found with email {0}\", email);\r\n } else {\r\n final String username = record.getString(TABLE_AFM_USERS + \".\" + USER_NAME);\r\n final UserAccount.Immutable userAccount =\r\n context.getProject().loadUserAccount(username, context.getSession().getId(),\r\n false);\r\n context.setUser(userAccount.getUser());\r\n }\r\n }", "public void setEmail(String email) {\r\n\t\tthis.email = email;\r\n\t}", "public void setEmail(String email) {\r\n\t\tthis.email = email;\r\n\t}", "public java.lang.String getUserEmail() {\r\n return userEmail;\r\n }", "public void setEmail (java.lang.String email) {\n\t\tthis.email = email;\n\t}", "public void set_email(String Email)\n {\n email =Email;\n }", "public void seteMail(String eMail) {\n this.eMail = eMail;\n }", "public void setEmail(String email) {\n\t\tthis.email = email;\n\t}", "public void setEmail(String email) {\n\t\tthis.email = email;\n\t}", "public void setEmail(String email) {\n\t\tthis.email = email;\n\t}", "public void setEmail(String email) {\n\t\tthis.email = email;\n\t}", "public void setEmail(String email) {\n\t\tthis.email = email;\n\t}", "public void setEmail(String email) {\n\t\tthis.email = email;\n\t}" ]
[ "0.8137212", "0.81095475", "0.7865961", "0.7750926", "0.7750926", "0.77261895", "0.77087784", "0.76412266", "0.76412266", "0.7614026", "0.7550166", "0.75171804", "0.7505615", "0.7497264", "0.7479496", "0.73625314", "0.73510283", "0.7346008", "0.7333933", "0.731357", "0.7298304", "0.7298304", "0.7260822", "0.7203403", "0.7203403", "0.7193455", "0.7176339", "0.717368", "0.7159326", "0.71514153", "0.7130196", "0.71165127", "0.7091113", "0.7091113", "0.7091113", "0.7091113", "0.7091113", "0.7091113", "0.7090607", "0.7087688", "0.7087259", "0.7080819", "0.70765513", "0.7073572", "0.7071399", "0.7055365", "0.7054769", "0.70501375", "0.70501375", "0.70501375", "0.70501375", "0.7042549", "0.70134896", "0.70069623", "0.70019156", "0.6993177", "0.6989902", "0.6985367", "0.6985367", "0.6985367", "0.6985367", "0.6985367", "0.6985367", "0.6985367", "0.6985367", "0.6985367", "0.6985367", "0.6985367", "0.6985367", "0.6985367", "0.6985367", "0.6985367", "0.6985367", "0.6985367", "0.6985367", "0.6985367", "0.6985367", "0.6985367", "0.6985367", "0.6985367", "0.6985367", "0.6985367", "0.6985367", "0.6985367", "0.6967509", "0.69533575", "0.6912467", "0.6900053", "0.6889734", "0.6889734", "0.6840473", "0.6829422", "0.68255764", "0.6806174", "0.6774744", "0.6774744", "0.6774744", "0.6774744", "0.6774744", "0.6774744" ]
0.702621
52
Set the user's name.
public final void setName(final String nameNew) { this.name = nameNew; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setName(String name){\r\n gotUserName = true;\r\n this.name = name;\r\n }", "public void setUser_name(String user_name) {\n this.user_name = user_name;\n }", "public void setUserName(String name) {\r\n\t\tthis.userName = name;\r\n\t}", "public void setUser_name(String user_name);", "public void setName(String name) {\n\t\tSharedPreferences settings = parentContext.getSharedPreferences(PREFERENCE_FILE, 0);\n\t\tSharedPreferences.Editor editor = settings.edit();\n\t\teditor.putString(USERNAME_KEY, name);\n\t\teditor.commit();\n\t}", "public void setUserName( String value )\n {\n m_UserName = value;\n }", "void setUserName(String newName) {\r\n\t\t\tusername = newName;\r\n\t\t}", "public void setUserName(java.lang.String value) {\n\t\tsetValue(org.jooq.examples.oracle.sys.packages.dbms_xplan.DiffPlanOutline.USER_NAME, value);\n\t}", "void setName( String username, String name ) throws UserNotFoundException;", "public void setUserName(String value) {\n setAttributeInternal(USERNAME, value);\n }", "@Override\n\tpublic void setUserName(String userName);", "@Override\n\tpublic void setUserName(String userName);", "@Override\n\tpublic void setUserName(java.lang.String userName) {\n\t\t_esfTournament.setUserName(userName);\n\t}", "public void setUserName(String UserName){\n\t\tObjLogInPage.getUserName().sendKeys(UserName);\n\t}", "public void setUsername(String name)\r\n {\r\n int index = -1;\r\n //Check if the new username is not already taken before setting the new username\r\n if(usernamesTaken.indexOf(name) == -1)\r\n {\r\n index = usernamesTaken.indexOf(this.username);\r\n usernamesTaken.set(index, name);\r\n this.username = name;\r\n }\r\n else\r\n {\r\n //Outouts a warning message\r\n System.out.println(\"WARNING: This username is already taken\");\r\n }//end if \r\n }", "public static void setFirstName(String name){\n setUserProperty(Constants.ZeTarget_keyForUserPropertyFName, name);\n }", "public void setName ( String name ) throws InvalidUserIDException {\r\n if(name == \"\") throw new InvalidUserIDException();\r\n _name= name;\r\n }", "public void setUserName(String text) {\n txtUserName().setText(text);\n }", "public void setUserName(String name) throws RemoteException, InterruptedException {\n\t\tSystem.out.println(\"Server: Message > \" + \"setUserName() invoked\");\n\t\tlock.lock();\n\t\ttry {\n\t\t\twhile (sentinel != -1)\n\t\t\t\thasNotChanged.await();\n\t\t\t// System.out.println(\"....Enter setUserName critical section....\");\n\t\t\tuserName = name;\n\t\t\tif (!loggedIn.contains(name))\n\t\t\t\tloggedIn.add(name);\n\n\t\t\t++sentinel;\n\n\t\t\t//System.out.println(\"....Exit setUserName critical section....\");\n\t\t\thasChanged.signal();\n\t\t} finally {\n\t\t\tlock.unlock();\n\t\t}\n\t}", "public void setName(String username) {\n setObject(\"username\", (username != null) ? username : \"\");\n }", "public Builder setUserName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n userName_ = value;\n onChanged();\n return this;\n }", "public static void setLastName(String name){\n setUserProperty(Constants.ZeTarget_keyForUserPropertyLName,name);\n }", "@Override\n\tpublic void setUserName(String userName) {\n\t\t_changesetEntry.setUserName(userName);\n\t}", "@Override\n\tpublic void setUserName(String userName) {\n\t\tsuper.setUserName(userName);\n\t}", "@Override\n\tpublic void setUserName(String userName) {\n\t\tsuper.setUserName(userName);\n\t}", "public void setUsername(String name) {\r\n TextView username = (TextView) mView.findViewById(R.id.current_bid_username);\r\n username.setText(name);\r\n }", "@Override\n public void setUserName(java.lang.String userName) {\n _partido.setUserName(userName);\n }", "public void SetUserName(User u) {\n\t\tthis.lblUserName.setBounds(525, 28, 46, 14);\n\t\tthis.lblUserName.setText(u.getNickname());\n\t\tthis.contentPane.add(this.lblUserName);\n\t}", "public static void setString(String usrname) {\n\t\tUserPanel.usrname = usrname;\r\n\t}", "@Override\n\tpublic void setUserName(String userName) {\n\n\t}", "public final void setUsername(final String value) {\n username = value;\n }", "public void setUserName(String username) {\n\t\tsharedPreferences = context.getSharedPreferences(\"Login\",\n\t\t\t\tcontext.MODE_PRIVATE);\n\t\tSharedPreferences.Editor editor = sharedPreferences.edit();\n\t\teditor.putString(\"USERNAME\", username);\n\t\teditor.commit();\n\t}", "@Override\n\tpublic void setUserName(java.lang.String userName) {\n\t\t_employee.setUserName(userName);\n\t}", "protected final void setUserName(final String userName) {\n this.userName = userName;\n }", "void setUsername(String username);", "public void setUserName(String userName) {\n infoElements.put(new Integer(InfoElement.USERNAME), userName.getBytes());\n }", "public void setUserName(String pUser)\n\t{\n \t tbUserName.clear();\n\t tbUserName.sendKeys(pUser);\n\t\t\n\t}", "public void setUserName(java.lang.String userName) {\r\n this.userName = userName;\r\n }", "public Builder setUserName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n userName_ = value;\n onChanged();\n return this;\n }", "public Builder setUserName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n userName_ = value;\n onChanged();\n return this;\n }", "public void setUserName(String userName) {\n this.userName = userName;\n }", "public void setUserName(String userName){\r\n this.userName = userName;\r\n }", "public void setUserName(String userName) {\r\n this.userName = userName;\r\n }", "public com.politrons.avro.AvroPerson.Builder setUsername(java.lang.CharSequence value) {\n validate(fields()[1], value);\n this.username = value;\n fieldSetFlags()[1] = true;\n return this; \n }", "void setUserUsername(String username);", "public Builder setUserName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n userName_ = value;\n onChanged();\n return this;\n }", "public final void setUserName(String userName) {\r\n if (userName == null || userName.length() == 0) {\r\n throw new IllegalArgumentException(\"User Name CAN NOT be empty!!!\");\r\n }\r\n this.userName = userName;\r\n }", "public void setUsernameFieldName(final String value) {\n setProperty(USERNAME_FIELD_NAME_KEY, value);\n }", "public void setUserName(String userName){\n this.userName = userName;\n }", "public void setUserName(String userName) {\r\n this.userName = userName;\r\n }", "public void setUserName(String userName) {\r\n this.userName = userName;\r\n }", "public void setUserName(java.lang.String userName) {\n this.userName = userName;\n }", "@Override\n\tpublic void setUserName(java.lang.String userName) {\n\t\t_second.setUserName(userName);\n\t}", "protected void setUsername(final String user) {\n this.user = user;\n }", "public void setUserName(String username){\n this.userName = username;\n }", "public void setUserName( final String userName )\n\t{\n\t\tthis.userName = userName;\n\t}", "@Override\n\tpublic void setUserName(String userName) {\n\t\tmodel.setUserName(userName);\n\t}", "@Override\n\tpublic void setUserName(String userName) {\n\t\tmodel.setUserName(userName);\n\t}", "private void updateUserName() {\n\t\t// if the customer has a first and last name update their username to be\n\t\t// the concatenation of their first and last name (in lower case)\n\t\t// else, make their username their first name\n\t\tif (!this.lastName.equals(Customer.EMPTY_LAST_NAME)) {\n\t\t\tthis.userName = (this.firstName + this.lastName).toLowerCase();\n\t\t} else {\n\t\t\tthis.userName = this.firstName.toLowerCase();\n\t\t}\n\t}", "public void setUserName(final UTF8String userName) {\n this.userName = userName;\n }", "public void setUserName(String userName) {\n this.userName = userName;\n }", "public void setUserName(String userName) {\n this.userName = userName;\n }", "public void setUserName(String userName) {\n this.userName = userName;\n }", "public void setUserName(String userName) {\n this.userName = userName;\n }", "public void setUserName(String userName) {\n this.userName = userName;\n }", "public void setUserName(String userName) {\n this.userName = userName;\n }", "public void setUserName(String userName) {\n this.userName = userName;\n }", "public void setUserName(String userName) {\n this.userName = userName;\n }", "public void setUserName(String userName) {\n this.userName = userName;\n }", "public void setUserName(String userName) {\n this.userName = userName;\n }", "public void setUserName(String userName) {\n this.userName = userName;\n }", "public void setUserName(String userName) {\n this.userName = userName;\n }", "public void setUserName(String userName) {\n this.userName = userName;\n }", "public void setUserName(String userName) {\n this.userName = userName;\n }", "public void setUserName(String userName) {\n this.userName = userName;\n }", "public void setUserName(String userName) {\n this.userName = userName;\n }", "@Override\n\tpublic void setUserName(java.lang.String userName) {\n\t\t_paper.setUserName(userName);\n\t}", "@Override\n public void onChange(String name) {\n userNameText.setText(name);\n }", "public void setUserName(String Strusername) {\n\t\tstepstatus = basepage.setText(Username, Strusername);\n\t\treportEvent(stepstatus, \"Able to enter username\", \"Unable to enter username\", driver, true);\n\t}", "public void setName(String name) {\n if (!name.isEmpty()) {\n this.name = name;\n }\n }", "public void setName(java.lang.String value) {\n this.name = value;\n }", "public void setUserName(String userName) { \n\t\t this.userName = userName; \n\t}", "public void setUsername(java.lang.CharSequence value) {\n this.username = value;\n }", "public final void setName(String name) {_name = name;}", "@Override\r\n\tpublic void setOpponentName(String name) {\n\t\tmain.setOpponentUsername(name);\r\n\t}", "public void setName(String name) {\n _name = name;\n }", "public void setNameofRenter(String usrName) throws Exception{\n\n\t\t/*\n\t\t * Input is invalid if an empty String is passed in.\n\t\t */\n\t\tif(usrName.length() == 0){\n\t\t\tthrow new Exception();\n\t\t}\n\t\tnameofRenter = usrName;\n\t}", "@Override\n public String getUserName() {\n return name;\n }", "@Override\r\n\tpublic void setName(String name) {\n\t\tthis.name = name;\r\n\t}", "public void setName(String value) {\n this.name = value;\n }", "public void setName(String name)\n {\n fName = name;\n }", "public void setName(String name) {\r\n\t\t_name = name;\r\n\t}", "public void setName(String inName)\n {\n name = inName;\n }", "public void rename()\n\t{\n\t\t// get the object within the node\n\t\tObject string = this.getUserObject();\n\n\t\t// should always be a string, given the constructor\n\t\tif (string instanceof String)\n\t\t{\n\t\t\tstring = JOptionPane.showInputDialog(\"Enter a New Name\");\n\n\t\t\tif (string != null && string instanceof String)\n\t\t\t{\n\t\t\t\tthis.setUserObject(string);\n\t\t\t\tthis.name = (String) string;\n\t\t\t}\n\t\t}\n\t}", "public void setName(String value) {\n\t\tname = value;\n\t}", "public void setName(String s) {\n this.name = s;\n }", "public void setUsername(String username)\r\n/* 16: */ {\r\n/* 17:34 */ this.username = username;\r\n/* 18: */ }", "public final void setUsername(final String usernameNew) {\n this.username = usernameNew;\n }", "public void setName( final String name )\r\n {\r\n this.name = name;\r\n }", "public void setName(String name) {\n\t\tName = name;\n\t}", "@Override\n public void setName(String name) {\n this.name = name;\n }" ]
[ "0.84257454", "0.7932874", "0.79024917", "0.7897156", "0.787129", "0.7807065", "0.7673434", "0.7654664", "0.76335084", "0.7613505", "0.76007926", "0.76007926", "0.75549525", "0.7551918", "0.75472647", "0.75425035", "0.7483327", "0.7478764", "0.7452691", "0.74293584", "0.74211276", "0.7404846", "0.74024004", "0.7392766", "0.7392766", "0.73776615", "0.7373171", "0.72955227", "0.7288758", "0.7280315", "0.72792816", "0.7266804", "0.7263377", "0.72501785", "0.7246319", "0.7222505", "0.72158784", "0.72155833", "0.72031707", "0.72031707", "0.71935475", "0.71855754", "0.7182258", "0.7168259", "0.716691", "0.71626097", "0.7162466", "0.7150567", "0.71236014", "0.71173126", "0.71173126", "0.7114003", "0.7090435", "0.70769715", "0.70698565", "0.7061585", "0.7057693", "0.7057693", "0.7037402", "0.70350814", "0.70214546", "0.70214546", "0.70214546", "0.70214546", "0.70214546", "0.70214546", "0.70214546", "0.70214546", "0.70214546", "0.70214546", "0.70214546", "0.70214546", "0.70214546", "0.70214546", "0.70214546", "0.70214546", "0.70071083", "0.69991106", "0.69770265", "0.6974255", "0.6960439", "0.69536406", "0.69456315", "0.6935604", "0.69355464", "0.69288117", "0.6921803", "0.6916249", "0.69142413", "0.6912503", "0.6911279", "0.6910225", "0.6909278", "0.6907205", "0.69052804", "0.6888836", "0.6887847", "0.68858933", "0.6883601", "0.6876277", "0.68735456" ]
0.0
-1
Set the user's phone.
public final void setPhone(final String phoneNew) { this.phone = phoneNew; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setUserPhone( String userPhone )\n {\n this.userPhone = userPhone;\n }", "public void setPhone(String phone);", "public Builder setUserPhone(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n userPhone_ = value;\n onChanged();\n return this;\n }", "public void setUserPhone(String userPhone) {\r\n this.userPhone = userPhone == null ? null : userPhone.trim();\r\n }", "public void setPhone(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(PHONE_PROP.get(), value);\n }", "public void setPhone(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(PHONE_PROP.get(), value);\n }", "void setPhone(int phone);", "public void setPhone(final String value)\n\t{\n\t\tsetPhone( getSession().getSessionContext(), value );\n\t}", "public void setPhone(final String value)\n\t{\n\t\tsetPhone( getSession().getSessionContext(), value );\n\t}", "public void setPhone(String phone) {\n this.mPhone = phone;\n }", "public void setPhone(String phone) {\r\n this.phone = phone;\r\n }", "public void set_phone(String Phone)\n {\n phone =Phone;\n }", "public void setPhone(String phone)\n {\n this.phone = phone;\n }", "public void setPhone( String phone ) {\n this.phone = phone;\n }", "public void setPhone(String phone) {\n this.phone = phone;\n }", "public void setPhone(String phone) {\n this.phone = phone;\n }", "public void setPhone(String phone) {\n this.phone = phone;\n }", "public void setPhone(String phone) {\n this.phone = phone;\n }", "public void setPhone(String phone) {\n this.phone = phone;\n }", "public void setPhone(String phone) {\n this.phone = phone;\n }", "public void setPhone(String phone) {\n this.phone = phone;\n }", "public void setPhone(String phone) {\n this.phone = phone;\n }", "public void setPhone(String phone) {\n this.phone = phone;\n }", "public void setPhone(String phone) {\n this.phone = phone;\n }", "public void setPhone(String phone) {\n this.phone = phone;\n }", "public void setPhone(final SessionContext ctx, final String value)\n\t{\n\t\tsetProperty(ctx, PHONE,value);\n\t}", "public void setPhone(final SessionContext ctx, final String value)\n\t{\n\t\tsetProperty(ctx, PHONE,value);\n\t}", "public void setPhone(String phone){\n\t\tthis.phone = phone;\n\t}", "public void setPhone(long phone) {\n this.phone = phone;\n }", "public void setPhone(final String phone) {\n this.phone = phone;\n }", "public void setPhone(String phone)\r\n/* 46: */ {\r\n/* 47:58 */ this.phone = phone;\r\n/* 48: */ }", "public void setPhone(String mPhone) {\n this.mPhone = mPhone;\n }", "public com.politrons.avro.AvroPerson.Builder setPhoneNumber(java.lang.CharSequence value) {\n validate(fields()[3], value);\n this.phone_number = value;\n fieldSetFlags()[3] = true;\n return this; \n }", "public void setPhone(java.lang.String phone) {\n this.phone = phone;\n }", "public void setPhone(String phone) {\n\t\tthis.phone = StringUtils.trimString( phone );\n\t}", "public void setPhone(String phone) {\r\n // Bouml preserved body begin 00041002\r\n\t this.phoneNumber = phone;\r\n // Bouml preserved body end 00041002\r\n }", "public void setPhone (java.lang.String phone) {\n\t\tthis.phone = phone;\n\t}", "public void setPhone(String newPhone) {\r\n\t\tthis.phone = newPhone;\r\n\t}", "public String getUserPhone() {\r\n return userPhone;\r\n }", "public void setUserTel(String userTel) {\n this.userTel = userTel;\n }", "public void setUserTel(String userTel) {\n this.userTel = userTel;\n }", "public void setTelphone(String telphone) {\n this.telphone = telphone;\n }", "public void setTelphone(String telphone) {\n this.telphone = telphone;\n }", "@Override\r\n\tpublic void setPhone(String phone) {\n\t\tif (phone == null) {\r\n\t\t\tthrow new IllegalArgumentException(\"Null argument is not allowed\");\r\n\t\t}\r\n\t\tif (phone.equals(\"\")) {\r\n\t\t\tthrow new IllegalArgumentException(\"Empty argument is not allowed\");\r\n\t\t}\r\n\t\tthis.phone = phone;\r\n\t}", "void setPhone(String phone) throws IllegalArgumentException;", "public void setPhone(String phone) {\n\t\tthis.phone = phone == null ? null : phone.trim();\n\t}", "public String getUserphone() {\n return userphone;\n }", "public void setUserTelephone(String userTelephone) {\n this.userTelephone = userTelephone == null ? null : userTelephone.trim();\n }", "public void setMobile_phone(Long mobile_phone);", "public void setPhoneNumber(java.lang.CharSequence value) {\n this.phone_number = value;\n }", "public void setPhoneNumber(String phone_number){\n this.phone_number = phone_number;\n }", "public void setPhone(String phone) {\n this.phone = phone == null ? null : phone.trim();\n }", "public void setPhone(String phone) {\n this.phone = phone == null ? null : phone.trim();\n }", "public void setPhone(String phone) {\n this.phone = phone == null ? null : phone.trim();\n }", "public void setPhone(String phone) {\n this.phone = phone == null ? null : phone.trim();\n }", "public void setPhone(String phone) {\n this.phone = phone == null ? null : phone.trim();\n }", "public void setPhone(String phone) {\n this.phone = phone == null ? null : phone.trim();\n }", "public void setPhone(String phone) {\n this.phone = phone == null ? null : phone.trim();\n }", "public GoldenContactBuilder phone(String value) {\n phone = value;\n return this;\n }", "@Generated(hash = 1187165439)\n public void setPhone(Phone phone) {\n synchronized (this) {\n this.phone = phone;\n phoneId = phone == null ? null : phone.getId();\n phone__resolvedKey = phoneId;\n }\n }", "public Builder setPhone(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n phone_ = value;\n onChanged();\n return this;\n }", "public void setPhone(String phone) {\r\n this.phone = phone == null ? null : phone.trim();\r\n }", "public void setPhone(String phone) {\r\n this.phone = phone == null ? null : phone.trim();\r\n }", "public void setPhone(String phone) {\r\n this.phone = phone == null ? null : phone.trim();\r\n }", "public void setPhone(String phone) {\r\n this.phone = phone == null ? null : phone.trim();\r\n }", "public void setHome_phone(Long home_phone);", "public void setPhone(String phonenum) {\n\t\tPHONE = phonenum;\n\t}", "@Override\n public void setPhone(java.lang.String phone) {\n _entityCustomer.setPhone(phone);\n }", "public void setPhoneNumber(String phoneNumber) {\n this.phoneNumber = phoneNumber;\n }", "public void setMobilePhone(String mobilePhone) {\n this.mobilePhone = mobilePhone;\n }", "public void setTelephone(String telephone) {\n\t\tthis.telephone = telephone;\n\t}", "@Test (expected = IllegalArgumentException.class)\n\tpublic void testSetTelephone() {\n\t\tUser user = new User();\n\t\tuser.setTelephone(\"\");\n\t\t//user.setTelephone(\"3393937210\");\n\t\t//assertEquals(\"3393937210\", user.getTelephone());\n\t\t}", "public abstract void setPhone1(String sValue);", "public void setPhoneNumber(String phoneNumber) {\n this.phoneNumber = phoneNumber;\n }", "public void setPhoneNumber(String phoneNumber) {\n this.phoneNumber = phoneNumber;\n }", "public void setPhoneNumber(String phoneNumber) {\n this.phoneNumber = phoneNumber;\n }", "public void setPhoneNumber(String phoneNumber) {\n this.phoneNumber = phoneNumber;\n }", "public void setPhoneNumber(String phoneNumber) {\n this.phoneNumber = phoneNumber;\n }", "public void setTelePhone(java.lang.String telePhone) {\r\n this.telePhone = telePhone;\r\n }", "public void setPhoneNumber() {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// setter method initialized\r\n System.out.println(\"Phone Number : \"+phoneNumber);}", "public Builder setUserPhoneBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n userPhone_ = value;\n onChanged();\n return this;\n }", "public java.lang.String getUserPhone() {\n java.lang.Object ref = userPhone_;\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 userPhone_ = s;\n }\n return s;\n }\n }", "public abstract void setPhone2(String sValue);", "public void update_phone_settings(JSONObject json) throws JSONException {\n\t\tmyPhone.phone = json.getInt(\"phone\");\n\t}", "public String getUserPhone()\n {\n return userPhone;\n }", "public void setphoneNum(String phoneNum) {\n\t\t_phoneNum = phoneNum;\n\t}", "public void setPhoneNum(String phoneNum) {\n this.phoneNum = phoneNum;\n }", "public void setPhoneNumber(String phoneNumber) {\n\t\tthis.phoneNumber=phoneNumber;\r\n\t}", "public void setTelphone (java.lang.String telphone) {\r\n\t\tthis.telphone = telphone;\r\n\t}", "public java.lang.String getUserPhone() {\n java.lang.Object ref = userPhone_;\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 if (bs.isValidUtf8()) {\n userPhone_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public Builder setPhoneNumber(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n phoneNumber_ = value;\n onChanged();\n return this;\n }", "public void setMobliephone(String mobliephone) {\n this.mobliephone = mobliephone;\n }", "void setPhone(String ph){ // SETTER METHOD\n\t\tif(ph.length()>10 && ph.length()<=13){\n\t\t\tphone = ph; // writing the data based on some rules\n\t\t}else{\n\t\t\tphone = \"NA\";\n\t\t\tSystem.out.println(\"Please Enter Correct Phone Number\");\n\t\t}\n\t}", "public String getPhone() {\r\n\t\treturn this.phone;\r\n\t}", "public void setTelphone(String telphone) {\n this.telphone = telphone == null ? null : telphone.trim();\n }", "public Builder setPhoneNumber(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n phoneNumber_ = value;\n onChanged();\n return this;\n }", "public abstract void setPhone3(String sValue);", "public String getPhone() {\n\t\treturn phone;\n\t}", "public void setMobilePhone(java.lang.String mobilePhone) {\r\n this.mobilePhone = mobilePhone;\r\n }", "public String getPhone() {\n return phone;\n }" ]
[ "0.83070445", "0.7803242", "0.76496816", "0.76323885", "0.75772697", "0.7551367", "0.75365144", "0.7520726", "0.7520726", "0.7499745", "0.7446902", "0.74317265", "0.7423424", "0.7402997", "0.7386033", "0.7386033", "0.7386033", "0.7386033", "0.7386033", "0.7386033", "0.7386033", "0.7386033", "0.7386033", "0.7386033", "0.7386033", "0.73668814", "0.73668814", "0.7358637", "0.73498183", "0.73497814", "0.7298414", "0.72887933", "0.72605896", "0.722301", "0.7135849", "0.7105618", "0.7102868", "0.70602447", "0.704914", "0.7024411", "0.7024411", "0.7021681", "0.7021681", "0.701099", "0.69949037", "0.69941825", "0.69791", "0.6957658", "0.6956118", "0.69516546", "0.69414043", "0.6935685", "0.6935685", "0.6935685", "0.6935685", "0.6935685", "0.6935685", "0.6935685", "0.6934457", "0.69294477", "0.6926906", "0.69078016", "0.69078016", "0.69078016", "0.69078016", "0.6854229", "0.6853385", "0.6847739", "0.6798906", "0.67228854", "0.6691641", "0.6670224", "0.66514516", "0.66489196", "0.66489196", "0.66489196", "0.66489196", "0.66489196", "0.66467786", "0.66433614", "0.6643139", "0.66201705", "0.661129", "0.66058207", "0.660135", "0.6597578", "0.6595987", "0.6592341", "0.6591669", "0.6589928", "0.6554624", "0.6528366", "0.65198493", "0.6514835", "0.65080386", "0.65030736", "0.64969975", "0.6482635", "0.646625", "0.64576936" ]
0.7041815
39
Set the user's address.
public final void setAddress(final String addressNew) { this.address = addressNew; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setAddress(String address);", "public void setAddress(String address);", "public void setAddress(String address);", "public void setAddress(String address);", "private void setPrefAddress( String addr ) {\n\t\tmPreferences.edit().putString( PREF_ADDR, addr ).commit();\n\t}", "public void setAddress(final String address){\n this.address=address;\n }", "public void setAddress(String _address){\n address = _address;\n }", "public void setAddress(Address address) {\n this.address = address;\n }", "public void setAddress(Address address) {\n this.address = address;\n }", "public void setAddress(Address address) {\n this.address = address;\n }", "public void setExternalAddress(String address);", "public void setAddress(String s) {\r\n\t\t// Still deciding how to do the address to incorporate apartments\r\n\t\taddress = s;\t\t\r\n\t}", "public void setAddress(String address) { this.address = address; }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address)\n {\n this.address = address;\n }", "Builder setAddress(String address);", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\r\n this.address = address;\r\n }", "public void setAddress(String address) {\r\n this.address = address;\r\n }", "public void setAddress(String address) {\r\n this.address = address;\r\n }", "public void setInternalAddress(String address);", "public void setAddress(String adrs) {\n address = adrs;\n }", "public void setAddress(java.lang.String address) {\r\n this.address = address;\r\n }", "public void setAddress(java.lang.String address)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ADDRESS$2);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ADDRESS$2);\n }\n target.setStringValue(address);\n }\n }", "void editAddressUser(String uid, Address address);", "public void setAddr(String addr) {\n this.addr = addr;\n }", "public void setAddress(String address) {\n try {\n if (address == null ||\n address.equals(\"\") ||\n address.equals(\"localhost\")) {\n m_Address = InetAddress.getLocalHost().getHostName();\n }\n } catch (Exception ex) {\n log.error(\"setAddress()\",ex);\n }\n m_Address = address;\n }", "@Override\r\n\tpublic void setAddress(String address) {\n\t\tif (address == null) {\r\n\t\t\tthrow new IllegalArgumentException(\"Null argument is not allowed\");\r\n\t\t}\r\n\t\tif (address.equals(\"\")) {\r\n\t\t\tthrow new IllegalArgumentException(\"Empty argument is not allowed\");\r\n\t\t}\r\n\t\tthis.address = address;\r\n\t}", "public void setAddress(final String address) {\n\t\tthis.address = address;\n\t}", "public void setAddress(java.lang.String newAddress) {\n\taddress = newAddress;\n}", "public void setAddress(java.lang.String newAddress) {\n\taddress = newAddress;\n}", "public void setAddress(final String address) {\n this._address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address){\n\t\tthis.address = address;\n\t}", "public void setAddress(String address){\n\t\tthis.address = address;\n\t}", "@Override\n\tpublic void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n address_ = value;\n onChanged();\n return this;\n }", "public void setAddress(java.lang.String param) {\r\n localAddressTracker = param != null;\r\n\r\n this.localAddress = param;\r\n }", "public void setAddress (java.lang.String address) {\n\t\tthis.address = address;\n\t}", "public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n address_ = value;\n onChanged();\n return this;\n }", "public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n address_ = value;\n onChanged();\n return this;\n }", "public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n address_ = value;\n onChanged();\n return this;\n }", "public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n address_ = value;\n onChanged();\n return this;\n }", "public void setAddress(String string) {\n\t\tthis.address = string;\n\t}", "public void setAddress(String address) {\n\t\tthis.address = StringUtils.trimString( address );\n\t}", "public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n address_ = value;\n onChanged();\n return this;\n }", "void setAddress(String address) throws IllegalArgumentException;", "public void setAddress(String address) {\n if (getAddresses().isEmpty()) {\n getAddresses().add(address);\n } else {\n getAddresses().set(0, address);\n }\n }", "public Builder setAddress(\n\t\t\t\t\t\tjava.lang.String value) {\n\t\t\t\t\tif (value == null) {\n\t\t\t\t\t\tthrow new NullPointerException();\n\t\t\t\t\t}\n\n\t\t\t\t\taddress_ = value;\n\t\t\t\t\tonChanged();\n\t\t\t\t\treturn this;\n\t\t\t\t}", "public Builder setAddress(\n java.lang.String value) {\n if (value == null) { throw new NullPointerException(); }\n address_ = value;\n bitField0_ |= 0x00000020;\n onChanged();\n return this;\n }", "public void setAddr(String addr) {\n\t\tthis.addr = addr;\n\t}", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "Restaurant setRestaurantAddress(Address address);", "public void setAddr(String addr) {\n this.addr = addr == null ? null : addr.trim();\n }", "public void setAddr(String addr) {\n this.addr = addr == null ? null : addr.trim();\n }", "@Generated(hash = 607080948)\n public void setAddress(Address address) {\n synchronized (this) {\n this.address = address;\n addressId = address == null ? null : address.getId();\n address__resolvedKey = addressId;\n }\n }", "public void setAddress(final URL value) {\n this.address = value;\n }", "public void setAddress2(String address2);", "public void setLocationAddress(final BwString val) {\n locationAddress = val;\n }", "public void setaddress(String address) {\n\t\t_address = address;\n\t}", "public void xsetAddress(org.apache.xmlbeans.XmlString address)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(ADDRESS$2);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(ADDRESS$2);\n }\n target.set(address);\n }\n }", "@Override\n public void setAdress(Adress adress) {\n this.adress = adress;\n }", "public void setAddress(int address)\n {\n this.address = address;\n }", "public void setAddress(String newAddress) {\r\n\t\tthis.address = newAddress;\r\n\t}", "public void setAddress(InetAddress address) {\r\n\t\tthis.address = address;\r\n\t}", "public void setAdress(Adress adr) {\r\n // Bouml preserved body begin 00040F82\r\n\t this.adress = adr;\r\n // Bouml preserved body end 00040F82\r\n }", "public void setAddress(String address) {\r\n this.address = address == null ? null : address.trim();\r\n }", "public void setAddress(String address) {\r\n this.address = address == null ? null : address.trim();\r\n }", "public void setAddress(String address) {\r\n this.address = address == null ? null : address.trim();\r\n }", "public void setAddress(String address) {\n this.address = address == null ? null : address.trim();\n }", "public void setAddress(String address) {\n this.address = address == null ? null : address.trim();\n }", "public void setAddress(String address) {\n this.address = address == null ? null : address.trim();\n }", "public void setAddress(String address) {\n this.address = address == null ? null : address.trim();\n }", "public void setAddress(String address) {\n this.address = address == null ? null : address.trim();\n }", "public void setAddress(String address) {\n this.address = address == null ? null : address.trim();\n }", "public void setAddress(String address) {\n this.address = address == null ? null : address.trim();\n }", "public void setAddress(String address) {\n this.address = address == null ? null : address.trim();\n }", "public void setAddress(String address) {\n this.address = address == null ? null : address.trim();\n }", "public void setAddress(String address) {\n this.address = address == null ? null : address.trim();\n }", "public void setAddress(String address) {\n this.address = address == null ? null : address.trim();\n }" ]
[ "0.7714997", "0.7714997", "0.7714997", "0.7714997", "0.74079484", "0.73652434", "0.73536086", "0.73421115", "0.73421115", "0.73421115", "0.72762", "0.72551554", "0.72433543", "0.7219008", "0.72175217", "0.7207802", "0.7159841", "0.7159841", "0.7154231", "0.7154231", "0.7154231", "0.7150322", "0.7147193", "0.71117103", "0.7099804", "0.7072895", "0.7064867", "0.706356", "0.70622563", "0.7057259", "0.70420396", "0.70420396", "0.7038796", "0.702267", "0.702267", "0.702267", "0.702267", "0.702267", "0.702267", "0.702267", "0.702267", "0.702267", "0.702267", "0.702267", "0.702267", "0.702267", "0.702267", "0.702267", "0.702267", "0.702267", "0.6966735", "0.6966735", "0.6964436", "0.6947355", "0.6944264", "0.69201565", "0.69176984", "0.69176984", "0.69170237", "0.69170237", "0.6912625", "0.6899271", "0.68942165", "0.68660325", "0.684766", "0.68439305", "0.68297976", "0.68218803", "0.6818583", "0.6818583", "0.6818583", "0.6818583", "0.6818583", "0.6817193", "0.68050236", "0.68050236", "0.680359", "0.67961717", "0.67863834", "0.672854", "0.6715993", "0.67012656", "0.6698715", "0.6682865", "0.6681188", "0.66524136", "0.6642542", "0.6636408", "0.6636408", "0.6636408", "0.6632885", "0.6632885", "0.6632885", "0.6632885", "0.6632885", "0.6632885", "0.6632885", "0.6632885", "0.6632885", "0.6632885", "0.6632885" ]
0.0
-1
Set the user's status.
public final void setLocked(final boolean lockedNew) { this.locked = lockedNew; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setStatus(final UserStatus status);", "public void setUserStatus(java.lang.String userStatus) {\r\n this.userStatus = userStatus;\r\n }", "public void setUserStatus(java.lang.String userStatus) {\n this.userStatus = userStatus;\n }", "public void setUserStatus(Byte userStatus) {\r\n this.userStatus = userStatus;\r\n }", "void updateUserActivateStatus(User user, int newStatus);", "@Override\n\tpublic void setStatusByUserId(long statusByUserId);", "@Override\n\tpublic void setStatusByUserName(String statusByUserName);", "public void setStatus(java.lang.String status) {\n\t\t_forumUser.setStatus(status);\n\t}", "public void setUserStatus(String userStatus) {\n this.userStatus = userStatus == null ? null : userStatus.trim();\n }", "public void setStatus(String un, String status){\n MongoCollection<Document> collRU = db.getCollection(\"registeredUser\");\n // updating user database\n collRU.findOneAndUpdate(\n eq(\"username\", un),\n Updates.set(\"status\", status)\n );\n }", "@Override\n\tpublic void setStatusByUserUuid(String statusByUserUuid);", "void setAdminStatus(User user, boolean adminStatus);", "public void changeLoginStatus(Integer userId, Integer loginStatus);", "@Override\n\tpublic void setStatusByUserUuid(String statusByUserUuid) {\n\t\tmodel.setStatusByUserUuid(statusByUserUuid);\n\t}", "public void setStatus(boolean value) {\n this.status = value;\n }", "public void setStatus(boolean value) {\n this.status = value;\n }", "void setStatusReason(final UserStatusReason statusReason);", "public void setStatus(boolean newstatus){activestatus = newstatus;}", "@Override\n\tpublic void setStatusByUserName(String statusByUserName) {\n\t\tmodel.setStatusByUserName(statusByUserName);\n\t}", "private void updateUserStatus(boolean online)\n {\n }", "UserStatus getStatus();", "public void setStatus(boolean stat) {\n\t\tstatus = stat;\n\t}", "public void setStatus(int value) {\n this.status = value;\n }", "public void setStatus(int value) {\n this.status = value;\n }", "public void status(boolean b) {\n status = b;\n }", "public void setStatus(Boolean s){ status = s;}", "public void setOrderStatus(final OrderUser orderUser, final int status) {\r\n\t\tAssert.isTrue(this.actorService.checkAuthority(Authority.ADMIN));\r\n\t\tAssert.isTrue(orderUser.getStatus() == 0);\r\n\t\tAssert.isTrue(status == 1 || status == 2);\r\n\r\n\t\torderUser.setStatus(status);\r\n\r\n\t\tthis.save(orderUser);\r\n\t}", "public void setStatus(Status status) {\r\n\t this.status = status;\r\n\t }", "@Override\n\tpublic void setStatusByUserId(long statusByUserId) {\n\t\tmodel.setStatusByUserId(statusByUserId);\n\t}", "public void setStatus(boolean status) {\n\tthis.status = status;\n }", "public void setStatus(Boolean status) {\n this.status = status;\n }", "public void setStatus(Boolean status) {\n this.status = status;\n }", "public void setStatus(Boolean status) {\n this.status = status;\n }", "public void setUseStatus(TIdentifiable user, TIdentifiable resource, TUseStatus status) {\r\n int row = m_users.getIndex(user);\r\n int column = m_resources.getIndex(resource);\r\n if (row >= 0 && column >= 0) m_associations[column][row] = status;\r\n }", "public void setSignUpStatus() {\n // true = open && false = closed\n\n int choice = 0;\n signUpStatus = true;\n System.out.println(\"Set Sign Up Status\" + \"\\n1. Open\" + \"\\n2.Closed\");\n choice = InputTools.intChecker(1, 2);\n\n switch (choice) {\n case 1:\n signUpStatus = true;\n System.out.println(\"Sign Up Status : Open\");\n break;\n case 2:\n signUpStatus = false;\n System.out.println(\"Sign Up Status : Closed\");\n break;\n }\n }", "public void setStatus(long status) {\r\n this.status = status;\r\n }", "public void setStatus(Status status) {\r\n this.status = status;\r\n }", "public void setStatus(String status)\n\t{\n\t\tPresence statusPacket = new Presence(Presence.Type.available, status, 0, Presence.Mode.available);\n\t\tcurrentStatus = status;\n\t\tserverConnection.sendPacket(statusPacket);\n\t\tfireStatusChangeEvent(Login.username,statusPacket);\n\t}", "public void setStatus(boolean newStatus);", "public void setStatus(Status status)\n {\n this.status = status;\n }", "public void setStatus(Integer status) {\r\n this.status = status;\r\n }", "public void setStatus(Integer status) {\r\n this.status = status;\r\n }", "public void setStatus(String newStatus){\n\n //assigns the value of newStatus to the status field\n this.status = newStatus;\n }", "public void setStatus(Status status) {\n this.status = status;\n }", "public void setStatus(Status status) {\n this.status = status;\n }", "public void setStatus(Status status) {\n this.status = status;\n }", "public void setStatus(Status status) {\n this.status = status;\n }", "public void setStatus(Status newStatus){\n status = newStatus;\n }", "void setStatus(STATUS status);", "public void setStatus(int status){\r\n\t\tthis.status=status;\r\n\t}", "public void setStatus(java.lang.Object status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(int status);", "public void setStatus(int status);", "void setStatus(String status);", "public void setStatus(String status) { this.status = status; }", "public void setStatus(int status) {\n STATUS = status;\n }", "public void setLoginStatus(int val) {\n\t\tref.edit().putInt(COL_LOGIN_STATUS, val).commit();\n\t}", "public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}", "public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}", "public void setStatus(int status) {\n this.status = status;\n }", "public void setStatus(int status) {\n this.status = status;\n }", "void setStatus(int status);", "public synchronized void setMyGameStatus(boolean status)\n {\n \tgameStatus=status;\n }", "public void setStatus(@NotNull Status status) {\n this.status = status;\n }", "public void setStatus(STATUS status) {\n this.status = status;\n }", "public void setOwnerStatus(String ownerStatus)\n {\n // put your code here\n this.ownerStatus = ownerStatus;\n }", "public void setStatus(int v) \n {\n \n if (this.status != v)\n {\n this.status = v;\n setModified(true);\n }\n \n \n }", "public void setStatus(String status) {\r\n this.status = status;\r\n }", "public void setStatus(String status) {\r\n this.status = status;\r\n }", "public void setStatus(String status) {\r\n this.status = status;\r\n }", "public void setStatus(StatusEnum status) {\n this.status = status;\n }", "public void setStatus(Long messageUid, String status);", "public void setStatus(String stat)\n {\n status = stat;\n }", "public void setStatus(String Status) {\n this.Status = Status;\n }", "public void setStatus(String Status) {\n this.Status = Status;\n }", "public void setStatus(JobStatus status);", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "Order setSentStatus(Order order, User user);", "public void setStatus(String status) {\n mBundle.putString(KEY_STATUS, status);\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }" ]
[ "0.85865045", "0.81764257", "0.81420314", "0.7913464", "0.76811063", "0.73549163", "0.7352706", "0.72962666", "0.7286266", "0.72784334", "0.72714454", "0.7196292", "0.70687515", "0.7048485", "0.702825", "0.702825", "0.6963758", "0.6948152", "0.6869246", "0.68633896", "0.6855533", "0.67814505", "0.67701346", "0.67701346", "0.67671454", "0.6738045", "0.6736066", "0.6721081", "0.6719888", "0.67051786", "0.6701117", "0.6701117", "0.6701117", "0.6698594", "0.6696807", "0.66932315", "0.6678605", "0.66662705", "0.6666", "0.66431135", "0.66383517", "0.66383517", "0.66338146", "0.6616749", "0.6616749", "0.6616749", "0.6616749", "0.66108435", "0.6610232", "0.6608342", "0.65842265", "0.6582249", "0.6582249", "0.6582249", "0.6582249", "0.6582249", "0.6582249", "0.6582249", "0.6582249", "0.6582249", "0.6582249", "0.6582249", "0.6582249", "0.6582249", "0.6582249", "0.6582249", "0.6582249", "0.6582249", "0.6582249", "0.6582249", "0.65744555", "0.65744555", "0.65661687", "0.6559913", "0.65443504", "0.653883", "0.6533333", "0.6533333", "0.6532057", "0.6532057", "0.65262544", "0.6519661", "0.65188706", "0.64991933", "0.64982784", "0.6495512", "0.64808005", "0.64808005", "0.6476805", "0.6473457", "0.64723074", "0.64648396", "0.6461981", "0.6461981", "0.64580613", "0.644149", "0.644149", "0.64356035", "0.6428013", "0.64044744", "0.64044744" ]
0.0
-1
Set the user's status.
public final void setRoles(final String roles) { this.roles = roles; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setStatus(final UserStatus status);", "public void setUserStatus(java.lang.String userStatus) {\r\n this.userStatus = userStatus;\r\n }", "public void setUserStatus(java.lang.String userStatus) {\n this.userStatus = userStatus;\n }", "public void setUserStatus(Byte userStatus) {\r\n this.userStatus = userStatus;\r\n }", "void updateUserActivateStatus(User user, int newStatus);", "@Override\n\tpublic void setStatusByUserId(long statusByUserId);", "@Override\n\tpublic void setStatusByUserName(String statusByUserName);", "public void setStatus(java.lang.String status) {\n\t\t_forumUser.setStatus(status);\n\t}", "public void setUserStatus(String userStatus) {\n this.userStatus = userStatus == null ? null : userStatus.trim();\n }", "public void setStatus(String un, String status){\n MongoCollection<Document> collRU = db.getCollection(\"registeredUser\");\n // updating user database\n collRU.findOneAndUpdate(\n eq(\"username\", un),\n Updates.set(\"status\", status)\n );\n }", "@Override\n\tpublic void setStatusByUserUuid(String statusByUserUuid);", "void setAdminStatus(User user, boolean adminStatus);", "public void changeLoginStatus(Integer userId, Integer loginStatus);", "@Override\n\tpublic void setStatusByUserUuid(String statusByUserUuid) {\n\t\tmodel.setStatusByUserUuid(statusByUserUuid);\n\t}", "public void setStatus(boolean value) {\n this.status = value;\n }", "public void setStatus(boolean value) {\n this.status = value;\n }", "void setStatusReason(final UserStatusReason statusReason);", "public void setStatus(boolean newstatus){activestatus = newstatus;}", "@Override\n\tpublic void setStatusByUserName(String statusByUserName) {\n\t\tmodel.setStatusByUserName(statusByUserName);\n\t}", "private void updateUserStatus(boolean online)\n {\n }", "UserStatus getStatus();", "public void setStatus(boolean stat) {\n\t\tstatus = stat;\n\t}", "public void setStatus(int value) {\n this.status = value;\n }", "public void setStatus(int value) {\n this.status = value;\n }", "public void status(boolean b) {\n status = b;\n }", "public void setStatus(Boolean s){ status = s;}", "public void setOrderStatus(final OrderUser orderUser, final int status) {\r\n\t\tAssert.isTrue(this.actorService.checkAuthority(Authority.ADMIN));\r\n\t\tAssert.isTrue(orderUser.getStatus() == 0);\r\n\t\tAssert.isTrue(status == 1 || status == 2);\r\n\r\n\t\torderUser.setStatus(status);\r\n\r\n\t\tthis.save(orderUser);\r\n\t}", "public void setStatus(Status status) {\r\n\t this.status = status;\r\n\t }", "@Override\n\tpublic void setStatusByUserId(long statusByUserId) {\n\t\tmodel.setStatusByUserId(statusByUserId);\n\t}", "public void setStatus(boolean status) {\n\tthis.status = status;\n }", "public void setStatus(Boolean status) {\n this.status = status;\n }", "public void setStatus(Boolean status) {\n this.status = status;\n }", "public void setStatus(Boolean status) {\n this.status = status;\n }", "public void setUseStatus(TIdentifiable user, TIdentifiable resource, TUseStatus status) {\r\n int row = m_users.getIndex(user);\r\n int column = m_resources.getIndex(resource);\r\n if (row >= 0 && column >= 0) m_associations[column][row] = status;\r\n }", "public void setSignUpStatus() {\n // true = open && false = closed\n\n int choice = 0;\n signUpStatus = true;\n System.out.println(\"Set Sign Up Status\" + \"\\n1. Open\" + \"\\n2.Closed\");\n choice = InputTools.intChecker(1, 2);\n\n switch (choice) {\n case 1:\n signUpStatus = true;\n System.out.println(\"Sign Up Status : Open\");\n break;\n case 2:\n signUpStatus = false;\n System.out.println(\"Sign Up Status : Closed\");\n break;\n }\n }", "public void setStatus(long status) {\r\n this.status = status;\r\n }", "public void setStatus(Status status) {\r\n this.status = status;\r\n }", "public void setStatus(String status)\n\t{\n\t\tPresence statusPacket = new Presence(Presence.Type.available, status, 0, Presence.Mode.available);\n\t\tcurrentStatus = status;\n\t\tserverConnection.sendPacket(statusPacket);\n\t\tfireStatusChangeEvent(Login.username,statusPacket);\n\t}", "public void setStatus(boolean newStatus);", "public void setStatus(Status status)\n {\n this.status = status;\n }", "public void setStatus(Integer status) {\r\n this.status = status;\r\n }", "public void setStatus(Integer status) {\r\n this.status = status;\r\n }", "public void setStatus(String newStatus){\n\n //assigns the value of newStatus to the status field\n this.status = newStatus;\n }", "public void setStatus(Status status) {\n this.status = status;\n }", "public void setStatus(Status status) {\n this.status = status;\n }", "public void setStatus(Status status) {\n this.status = status;\n }", "public void setStatus(Status status) {\n this.status = status;\n }", "public void setStatus(Status newStatus){\n status = newStatus;\n }", "void setStatus(STATUS status);", "public void setStatus(int status){\r\n\t\tthis.status=status;\r\n\t}", "public void setStatus(java.lang.Object status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(int status);", "public void setStatus(int status);", "void setStatus(String status);", "public void setStatus(String status) { this.status = status; }", "public void setStatus(int status) {\n STATUS = status;\n }", "public void setLoginStatus(int val) {\n\t\tref.edit().putInt(COL_LOGIN_STATUS, val).commit();\n\t}", "public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}", "public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}", "public void setStatus(int status) {\n this.status = status;\n }", "public void setStatus(int status) {\n this.status = status;\n }", "void setStatus(int status);", "public synchronized void setMyGameStatus(boolean status)\n {\n \tgameStatus=status;\n }", "public void setStatus(@NotNull Status status) {\n this.status = status;\n }", "public void setStatus(STATUS status) {\n this.status = status;\n }", "public void setOwnerStatus(String ownerStatus)\n {\n // put your code here\n this.ownerStatus = ownerStatus;\n }", "public void setStatus(int v) \n {\n \n if (this.status != v)\n {\n this.status = v;\n setModified(true);\n }\n \n \n }", "public void setStatus(String status) {\r\n this.status = status;\r\n }", "public void setStatus(String status) {\r\n this.status = status;\r\n }", "public void setStatus(String status) {\r\n this.status = status;\r\n }", "public void setStatus(StatusEnum status) {\n this.status = status;\n }", "public void setStatus(Long messageUid, String status);", "public void setStatus(String stat)\n {\n status = stat;\n }", "public void setStatus(String Status) {\n this.Status = Status;\n }", "public void setStatus(String Status) {\n this.Status = Status;\n }", "public void setStatus(JobStatus status);", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "Order setSentStatus(Order order, User user);", "public void setStatus(String status) {\n mBundle.putString(KEY_STATUS, status);\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }" ]
[ "0.85865045", "0.81764257", "0.81420314", "0.7913464", "0.76811063", "0.73549163", "0.7352706", "0.72962666", "0.7286266", "0.72784334", "0.72714454", "0.7196292", "0.70687515", "0.7048485", "0.702825", "0.702825", "0.6963758", "0.6948152", "0.6869246", "0.68633896", "0.6855533", "0.67814505", "0.67701346", "0.67701346", "0.67671454", "0.6738045", "0.6736066", "0.6721081", "0.6719888", "0.67051786", "0.6701117", "0.6701117", "0.6701117", "0.6698594", "0.6696807", "0.66932315", "0.6678605", "0.66662705", "0.6666", "0.66431135", "0.66383517", "0.66383517", "0.66338146", "0.6616749", "0.6616749", "0.6616749", "0.6616749", "0.66108435", "0.6610232", "0.6608342", "0.65842265", "0.6582249", "0.6582249", "0.6582249", "0.6582249", "0.6582249", "0.6582249", "0.6582249", "0.6582249", "0.6582249", "0.6582249", "0.6582249", "0.6582249", "0.6582249", "0.6582249", "0.6582249", "0.6582249", "0.6582249", "0.6582249", "0.6582249", "0.65744555", "0.65744555", "0.65661687", "0.6559913", "0.65443504", "0.653883", "0.6533333", "0.6533333", "0.6532057", "0.6532057", "0.65262544", "0.6519661", "0.65188706", "0.64991933", "0.64982784", "0.6495512", "0.64808005", "0.64808005", "0.6476805", "0.6473457", "0.64723074", "0.64648396", "0.6461981", "0.6461981", "0.64580613", "0.644149", "0.644149", "0.64356035", "0.6428013", "0.64044744", "0.64044744" ]
0.0
-1
Set the user's cart.
public final void setCart(final List<Item> cartNew) { this.cart = cartNew; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCart(Cart cart){\n\t\tthis.cart = cart;\n\t}", "public void setCart(Map<String, Integer> cart) {\n this.cart = cart;\n }", "@Override\n\tpublic int updateCartByUserId(Cart cart) {\n\t\treturn cartDao.updateCartByUserId(cart);\n\t}", "public void Cart() {\r\n\t\tthis.cart.click();\r\n\t}", "public void setCartId(final String value)\n\t{\n\t\tsetCartId( getSession().getSessionContext(), value );\n\t}", "public void setCartQuantity(int cartQuantity) {\n this.cartQuantity = cartQuantity;\n }", "Cart getCartForUser(String userId);", "Cart addToCart(String productCode, Long quantity, String userId);", "public static HashMap<Integer,Item> getUserCart(){\n\t\treturn userCart;\n\t}", "public void updateShoppingCart(ShoppingCart cart) {\n\t\t PersistenceManager pm = PMF.get().getPersistenceManager();\r\n\t\t Transaction tx = pm.currentTransaction();\r\n\t\t try{\r\n\t\t\ttx.begin();\r\n\t\t\tShoppingCart cartdb = (ShoppingCart)pm.getObjectById(ShoppingCart.class, cart.getUserId());\r\n\t\t\tcartdb.addItems(cart.getItems());\r\n\t\t\tcartdb.retainItems(cart.getItems());\r\n\t\t\ttx.commit();\r\n\r\n\t\t }\r\n\t\t catch (JDOCanRetryException ex) {\r\n\t\t\t\tex.printStackTrace();\r\n\t\t\t\tlogger.warning(\"Error updating cart \"+ cart);\r\n\t\t\t\tthrow ex;\r\n\t\t\t}\r\n\t\t\tcatch(JDOFatalException fx){\r\n\t\t\tlogger.severe(\"Error updating cart :\"+ cart);\r\n\t\t\tthrow fx;\r\n\t\t\t}\r\n\t\t finally{\r\n\t\t\t if (tx.isActive()){\r\n\t\t\t\t\ttx.rollback();\r\n\t\t\t }\r\n\t\t\t pm.close();\r\n\t\t }\r\n\t}", "public void modifyCart(int userId) {\n try {\n int cartId = InputUtil.getInt(\"Enter cart Id : \");\n int newQuantity = InputUtil.getInt(\"Enter new quantity: \");\n Cart cart = cartService.getCart(cartId);\n cartService.checkUserCart(cart,userId);\n cartService.modifyItem(cart,userId,newQuantity);\n System.out.println(\"\\nProduct quantity changed for cart Id : \"+String.valueOf(cartId));\n } catch (CartException ex) {\n System.out.println(ex);\n } \n }", "public void setCartId(final SessionContext ctx, final String value)\n\t{\n\t\tsetProperty(ctx, CARTID,value);\n\t}", "@GlobalCommand\n\t@NotifyChange({\"cartItems\", \"shoppingCart\"})\n\tpublic void updateShoppingCart() {\n\t}", "@Test\n public void setCart() throws NullReferenceException {\n cartItem.setCart(cart2);\n assertSame(cart2, cartItem.getCart());\n }", "public void setCartId(int cartId) {\n this.cartId = cartId;\n }", "public void updateUserRegisteredCourse(Cart cart) {\n userRepository.updateUserRegisteredCourse(cart.getUsername(), TextUtil.listToString(cart.getCourseInCart()));\n }", "public void setUser(ShopUser user) {\n this.user = user;\n }", "public static void printCart(User currentUser) {\r\n\t\tSystem.out.println(\"\\n Cart\\n\");\r\n\t\tMap<Long, Integer> userCart = currentUser.getCart();\r\n\t\tif (userCart.size() == 0) {\r\n\t\t\tSystem.out.println(\"Your cart is empty...\");\r\n\t\t} else {\r\n\t\t\tSystem.out.format(\"%5s\\t%10s\\t%10s\\t%5s\\n\", \"Id\", \"Name\", \"Quantity\", \"Price\");\r\n\t\t\tfor (Long id : userCart.keySet()) {\r\n\t\t\t\tFruit fruit = fruits.get(id);\r\n\t\t\t\tdouble price = fruit.getPrice() * userCart.get(id);\r\n\t\t\t\tSystem.out.format(\"%5s\\t%10s\\t%10s\\t%5s\\n\", id, fruit.getName(), userCart.get(id), price);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public Cart getCart() {\n return this.cart;\n }", "void addToCart(String user, long id) throws MovieNotFoundException;", "public void setArrayListOfItemsInShoppingCart(WebElement element) {\n UtilityHelper.moveToViewElement(element);\n String name = UtilityHelper.elementGetText(element.findElement(By.xpath(\".//*[@class='mjr-product-name']\")));\n addNameToShoppingCartPgeArrayList(name);\n }", "@Override\n\tpublic String checkout(Cart cart, User user) {\n\t\tlong millis = System.currentTimeMillis();\n\t\tString orderId = millis + \"\" + user.getId();\n\n\t\t// 2. generate an order\n\t\tOrder order = new Order();\n\t\torder.setCreateDate(new Date());\n\t\torder.setOrderId(orderId);\n\t\torder.setTotalMoney(cart.getTotalMoney());\n\t\torder.setStatus(0);\n\t\torder.setUserId(user.getId());\n\n\t\t// 3. generate orderitems for this order (according to cart) and save it to\n\t\t// database one by one\n\t\tList<CartItem> allItems = cart.getAllItems();\n\t\tList<OrderItem> orderItems = new ArrayList<>();\n\t\tfor (CartItem cartItem : allItems) {\n\t\t\tOrderItem item = new OrderItem(cartItem.getBook().getTitle(), cartItem.getBook().getPrice(),\n\t\t\t\t\tcartItem.getCount(), cartItem.getTotalPrice(), orderId);\n\t\t\torderItems.add(item);\n\t\t}\n\t\t// 4. save order\n\t\tod.saveOrder(order);\n\n\t\t// 5. save orderitems\n\t\tois.saveItem(orderItems);\n\t\t\n\t\t// 6. update stock and sales\n\t\tfor(CartItem cartItem : allItems) {\n\t\t\tBook book = cartItem.getBook();\n\t\t\t// update stock and sales according to the databank in real time in case of invalid operation\n\t\t\tBook one = bs.getOne(book);\n\t\t\tone.setSales(one.getSales() + cartItem.getCount());\n\t\t\tone.setStock(one.getStock() - cartItem.getCount());\n\t\t\tbs.update(one);\n\t\t}\n\t\t\n\t\t// 7. clear cart\n\t\tcart.clear();\n\t\treturn orderId;\n\t}", "public void addToCartStatus(boolean isAddToCart) {\n mProductDetailsViewModel.addToCartTxt.set(\n isAddToCart ? ApplicationManager.getInstance().getString(R.string.pdpAddGoCart)\n : ApplicationManager.getInstance().getString(R.string.pdpAddToCart));\n }", "public void ViewCart() {\r\n\t\tthis.ViewCart.click();\r\n\t}", "public void setCarta(CartaBean carta) {\n\t\t\tthis.carta = carta;\n\t\t}", "public void setCartCount() {\n mProductDetailsViewModel.setCartStatus();\n }", "public ShoppingCart createCart() {\n\t\treturn save(new ShoppingCart());\n\t}", "public void createOrderInSession(HttpServletRequest request, HttpServletResponse response) {\n\t\tOrder order = new Order();\n\t\tSet<CartItem> orderLines = new HashSet<>();\n\t\tShoppingCart cart = new ShoppingCart();\n\t\tcart.setOrder(order);\n\t\tcart.setOrderLines(orderLines);\n\t\trequest.getSession().setAttribute(\"shoppingCart\", cart);\n\t}", "@Override\n public void addCart(Items cartItem) {\n cartItem.setItemQuantity(cartItem.getItemQuantity() + 1);\n Items menuItem = cartItem.getItemOriginalReference();\n menuItem.setItemQuantity(menuItem.getItemQuantity() + 1);\n updateCartMenu();\n }", "public Cart() {\n\t\tcart = new ArrayList<CartItem>();\n\t}", "public void checkCarts(int userId) throws CartException {\n cartService.getUserCarts(userId); \n }", "public ShoppingCart() {\n\t\tmaxSize = 3;\n\t\tCart = new Item[maxSize];\n\t\tcurrentSize = 0;\n\t}", "public ShoppingCart(String userID) throws IOException, ClassNotFoundException {\n this.userid = userID;\n }", "public void addToCart(String userId ,ShoppingCartItem item) {\n\t\t PersistenceManager pm = PMF.get().getPersistenceManager();\r\n\t\t Transaction tx = pm.currentTransaction();\r\n\t\t try{\r\n\t\t\ttx.begin();\r\n\t\t\tShoppingCart cartdb = (ShoppingCart)pm.getObjectById(ShoppingCart.class, userId);\r\n\t\t\tcartdb.addItem(item);\r\n\t\t\ttx.commit();\r\n\r\n\t\t }\r\n\t\t catch (JDOCanRetryException ex) {\r\n\t\t\t\tex.printStackTrace();\r\n\t\t\t\tlogger.warning(\"Error updating cart \"+ item);\r\n\t\t\t\tthrow ex;\r\n\t\t\t}\r\n\t\t\tcatch(JDOFatalException fx){\r\n\t\t\tlogger.severe(\"Error updating cart :\"+ item);\r\n\t\t\tthrow fx;\r\n\t\t\t}\r\n\t\t finally{\r\n\t\t\t if (tx.isActive()){\r\n\t\t\t\t\ttx.rollback();\r\n\t\t\t }\r\n\t\t\t pm.close();\r\n\t\t }\r\n\t}", "@Override\n public void addShopcart(int uid) {\n int maxScid;\n if(shopcartsDao.getMaxScid()==null){\n maxScid = 0;\n }\n else{\n maxScid = shopcartsDao.getMaxScid();\n }\n Shopcarts shopcarts = new Shopcarts();\n shopcarts.setScid(maxScid+1);\n shopcarts.setUid(uid);\n shopcartsDao.addShopcarts(shopcarts);\n }", "@RequestMapping(\"/cartToOrder\")\n @Modifying(clearAutomatically = true, flushAutomatically = true)\n public Msg cartToOrder(@RequestParam(\"user_id\") int user_id){\n if (orderService.cartToOrder(user_id))\n return MsgUtil.makeMsg(MsgCode.SUCCESS, MsgUtil.MAKE_ORDER_SUCCESS);\n else\n return MsgUtil.makeMsg(MsgCode.ERROR, MsgUtil.MAKE_ORDER_ERROR);\n }", "public void setCartype(String cartype) {\n this.cartype = cartype;\n }", "private static void checkoutCart() {\r\n\t\tint totalPrice = cart.totalPriceInCent();\r\n\t\tcart.checkoutCartProducts();\r\n\t\tSystem.out.println(\"******************************************************************************************\");\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" The items in your cart is all cleared\");\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" Total price to pay: \" + convertCentToDollar(totalPrice));\r\n\t\tSystem.out.println();\r\n\t}", "public void setUserItem(UserItem userItem) {\n attributes.put(KEY_USER_ITEM, userItem);\n this.getHttpRequest().setAttribute(KEY_USER_ITEM, userItem);\n }", "public void setCurrentUserQuote(String quote) {\n\t\tcurrentUser.setQuote(quote);\n\t\tuserCatalog.modifyUser(currentUser);\n\t}", "@RequestMapping(\"/addToCart/{id}\")\n public String addToCart(@PathVariable(\"id\") long id, Model model, Principal principal, Authentication authentication){\n model.addAttribute(\"product\", productRepository.findById(id).get());\n model.addAttribute(\"products\", productRepository.findAll());\n model.addAttribute(\"carts\", cartRepository.findAll());\n model.addAttribute(\"user_id\", userRepository.findByUsername(principal.getName()).getId());\n model.addAttribute(\"categories\", categoryRepository.findAll());\n\n\n\n if(cartRepository.findByEnabledAndUser(true, userService.getUser()) != null){\n Cart currentCart = cartRepository.findByEnabledAndUser(true, userService.getUser());\n// Set<Product> productsInCart = new HashSet<>();\n Set<Product> productsInCart = currentCart.getProductsInCart();\n productsInCart.add(productRepository.findById(id).get());\n currentCart.setProductsInCart(productsInCart);\n\n cartRepository.save(currentCart);\n }\n else {\n Cart currentCart = new Cart();\n currentCart.setEnabled(true); //sets this cart as \"active\"\n\n Set<Product> productsInCart = new HashSet<>();\n productsInCart.add(productRepository.findById(id).get());\n currentCart.setProductsInCart(productsInCart);\n\n currentCart.setUser(userService.getUser());\n\n cartRepository.save(currentCart);\n }\n\n return \"redirect:/\";\n\n }", "public final List<Item> getCart() {\n return cart;\n }", "public void setUserOrder(User userOrder) {\n this.userOrder = userOrder;\n }", "@JsonProperty(\"cart_id\")\n public void setCartId(String cartId) {\n this.cartId = cartId;\n }", "public interface CartService {\n\n\t/**\n\t * Returns all carts present in the system.\n\t * \n\t * @return list of carts\n\t */\n\tList<Cart> getAllCarts();\n\n\t/**\n\t * Returns cart for User Id\n\t * \n\t * @param userId the User Id\n\t * @return cart\n\t */\n\tCart getCartForUser(String userId);\n\n\t/**\n\t * Adds product to cart\n\t * \n\t * @param productCode the product code\n\t * @param quantity the quantity of product to be added\n\t * @param userId the User Id\n\t * @return updated cart\n\t */\n\tCart addToCart(String productCode, Long quantity, String userId);\n\n\t/**\n\t * Returns cart for cart code.\n\t * \n\t * @param orderCode the order code\n\t * @return cart\n\t */\n\tCart getCartForCode(String orderCode);\n\n\t/**\n\t * Removes product from cart\n\t * \n\t * @param code the product code\n\t * @param quantity the quantity of to be removed\n\t * @param userId the User Id\n\t * @return updated cart\n\t */\n\tCart deleteFromCart(String code, Long quantity, String userId);\n}", "public int getCartId() {\n return cartId;\n }", "public void initiateDummyCart() {\n\t\tCart cart = new Cart(counterNumber);\n\t\tcart.fillWithDummyData();\n\t\tcarts.add(cart);\n\t\tProductController.getInstance(counterNumber).prepareCartForView();\n\t}", "public void addCart(String shopName, String productName, String Price,String user_ID) {\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n values.put(KEY_SHOPNAME,shopName ); // Name\n values.put(KEY_PRODUCTNAME, productName); // Email\n values.put(KEY_PRICE, Price); // Email\n values.put(KEY_USERID, user_ID);\n\n\n // Inserting Row\n long id = db.insert(TABLE_CART, null, values);\n db.close(); // Closing database connection\n\n Log.d(TAG, \"New cart inserted into sqlite: \" + id);\n }", "public void purchaseCart (View view) {\n Utility.showMyToast(\"Purchasing now!\", this);\n\n // Also send an Analytics hit\n sendPurchaseHit();\n }", "@Override\n public boolean updateItemInCart(String authToken, CartDto cartDto) throws Exception {\n\n List<CartItem> itemList = new ArrayList<CartItem>();\n validate(cartDto);\n String userId = getUserIdByToken(authToken);\n Cart cart = getCart(userId);\n if (!StringUtils.isEmpty(cart)) {\n setCartQtyToDto(cartDto, cart);\n }\n\n if (StringUtils.isEmpty(cart)) {\n cart = new Cart();\n cart.setUserId(userId);\n }\n\n try {\n Cart updateCart = null;\n ProductResponse productResponse = getProductDetails(cartDto, authToken);\n setPrices(productResponse, cartDto);\n\n for (CartItem cartItem : cart.getCartItems()) {\n if (cartItem.getItemCode().equalsIgnoreCase(cartDto.getSkuCode())) {\n CartItem item = transformCartItem(cartDto);\n itemList.add(item);\n cart.setCartItems(itemList);\n cart.setSubTotal(calculateSubtotal(cart.getCartItems()));\n updateCart = cartRepository.save(cart);\n LOG.info(\"Item updated into the cart and database.\");\n break;\n\n }\n }\n\n if (updateCart != null) {\n LOG.info(\"Item persisted successfully into the database.\");\n return true;\n } else {\n LOG.info(\"Item could not be updated into the database.\");\n return false;\n }\n\n } catch (RuntimeException ex) {\n LOG.error(\"Item cannot be updated into the cart. \", ex.getMessage());\n throw new RuntimeException(ex.getMessage());\n\n }\n\n }", "public void showCart(int userId) {\n try {\n List<Cart> carts = cartService.getUserCarts(userId);\n System.out.println(\"\\n\"+Constants.DECOR+\"YOUR CART\"+Constants.DECOR_END);\n System.out.println(Constants.CART_HEADER);\n for(Cart cart : carts) {\n System.out.println(String.valueOf(userId)\n +\"\\t\\t\"+String.valueOf(cart.getCartId())+(\"\\t\\t\"+String.valueOf(cart.getProduct().getId())\n +\"\\t\\t\"+String.valueOf(cart.getQuantity())+\"\\t\\t\"+cart.getCreated()+\"\\t\\t\"+cart.getModified()));\n }\n } catch (CartException ex) {\n System.out.println(ex);\n } \n }", "public static void goToCart() {\n click(SHOPPING_CART_UPPER_MENU);\n }", "private ShoppingCart getNewUserShoppingCart(Scanner scanner) {\n\n ShoppingCart shoppingCart = new ShoppingCart(\n getShoppingCartTotalFromUserInput(scanner),\n getLocalTimeFromUserInput(scanner)\n );\n\n return shoppingCart;\n }", "public void add() {\n\t\tcart.add(item.createCopy());\n\t}", "public void commitOrderInSession(HttpServletRequest request){\n\t\tShoppingCart cart = (ShoppingCart) request.getSession().getAttribute(\"shoppingCart\");\n\t\t\n\t\t\n\t\t//persisting the Order object changes the id of the referenced order.\n\t\t//The empty order id will have a value\n\t\t\n\t\tOrder order = cart.getOrder();\n\t\torder.setStatus(statusDAO.getStatusFromName(\"Received\"));\n\t\torder.setType(typeDAO.getTypeFromName(\"Delivery\"));\n\t\torder.setSubmitted(Calendar.getInstance());\n\t\torder.setUser((GDFUser) request.getSession().getAttribute(\"user\"));\n\t\tdao.createOrder(order);\n\t\tSet<CartItem> orderLines = cart.getOrderLines();\n\t\tfor(CartItem item: orderLines){\n\t\t\tOrderLine newOrderLine = new OrderLine();\n\t\t\tnewOrderLine.setDish(item.getDish());\n\t\t\tnewOrderLine.setOrder(order);\n\t\t\tnewOrderLine.setQuantity(item.getQuantity());\n\t\t\tdao.addOrderLineToOrder(newOrderLine);\n\t\t}\n\t\trequest.getSession().removeAttribute(\"shoppingCart\");\n\t}", "@Override\n public CartDTO checkCart() throws NotLoggedInException, WrongUserDatabase, UserDatabaseNotFoundException {\n if (lastUserName != \"\" && lastUserName != null)\n reloadUser(lastUserName);\n if (actualUser != null)\n return actualUser.getPersonalCart();\n else\n throw new NotLoggedInException();\n }", "void create(Cart cart, User user) throws FlowerValidationException;", "@Override\n\tpublic void addProductToCart(ShoppingCartItem cart_items) {\n\t\tthis.shoppingCartList.add(cart_items);\n\t}", "public CustomerCartItem(CartItem cartItem) {\n Item item = cartItem.getItem();\n this.id = item.getId();\n this.quantity = cartItem.getQuantity();\n }", "public static void addPickUpToCart(Cart cart, PickUp pickUp) {\n\n cart.setPickup(pickUp);\n try {\n cart.save();\n } catch (ParseException e) {\n Log.e(\"CartHelper\", \"CartHelper unable to save cart\", e);\n }\n\n }", "public Shopper() {\r\n cart = new Carryable[MAX_CART_ITEMS];\r\n numItems = 0;\r\n }", "private void cart() {\n\t\tboolean back = false;\n\t\twhile (!back) {\n\t\t\tSystem.out.println(\"1.Display Cart\");\n\t\t\tSystem.out.println(\"2.Remove Product From Cart\");\n\t\t\tSystem.out.println(\"3.Edit Product in Cart\");\n\t\t\tSystem.out.println(\"4.Checkout\");\n\t\t\tSystem.out.println(\"5.Back\");\n\t\t\tSystem.out.println(\"Enter Your Choice:-\");\n\t\t\tchoice = getValidInteger(\"Enter Your Choice :-\");\n\t\t\tswitch (choice) {\n\t\t\tcase 1:\n\t\t\t\tCartController.getInstance().displayCart();\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tremoveProduct();\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\teditProduct();\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\tcheckout();\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\tback = true;\n\t\t\t\tbreak;\n\t\t\tcase 6:\n\t\t\t\tSystem.out.println(\"Enter Correct Choice :-\");\n\t\t\t}\n\t\t}\n\t}", "private Cart getCart(final String userId) throws CustomException, IOException {\n return cartRepository.findByUserId(userId);\n }", "public ShoppingCartPersisterImpl(final CookieTuplizer cookieTuplizer) {\r\n this.cookieTuplizer = cookieTuplizer;\r\n }", "@Override\n\tpublic void insertCart(int userId, int cakeId, int count, int sizeId) throws SQLException{\n\t\tcartDao.insertCart(userId, cakeId, count, sizeId);\n\t}", "private void addProductToCart(HttpServletRequest request, HttpServletResponse response) throws IOException {\n String productID = request.getParameter(\"ProductID\");\n\n HttpSession session = request.getSession();\n\n List<Product> cartProducts = (List<Product>) session.getAttribute(\"cartProducts\");\n\n if (productID != null) {\n\n int id = Integer.parseInt(productID);\n\n if (cartProducts != null) {\n\n if (getCartSize(cartProducts) < Constants.CART_LIMIT) {\n\n if (!productIsAlreadyInCart(id, cartProducts))\n cartProducts.add(productDAO.getProduct(id));\n else\n increaseProductCountInCart(id, cartProducts);\n\n logger.info(\"Product (ID=\" + productID + \") has been added to the cart\");\n response.sendRedirect(Constants.PATH_CATALOG);\n } else\n response.getWriter().write(notifyCartIsFull());\n\n } else {\n cartProducts = new ArrayList<>();\n cartProducts.add(productDAO.getProduct(Integer.parseInt(productID)));\n\n logger.info(\"Product (ID=\" + productID + \") has been added to the cart\");\n session.setAttribute(\"cartProducts\", cartProducts);\n response.sendRedirect(Constants.PATH_CATALOG);\n }\n }\n }", "public void checkout() {\n\t\t// checkout and reset the quantity in global product list\n\t\tfor (CartProduct product : Admin.products) {\n\t\t\ttry {\n\t\t\t\tfor (CartProduct cartProduct : cart.getProducts()) {\n\t\t\t\t\tif (product.getDescription().equals(cartProduct.getDescription())) {\n\t\t\t\t\t\tif(product.getQuantity() >= 1) {\n\t\t\t\t\t\t\tproduct.setQuantity(product.getQuantity() - 1); \n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\tcart.deleteCart();\n\t}", "protected void updateCartInfoUI() {\n SharedPref.putCartitesmQty(getContext(), mCartInfo.getSummaryQty());\n this.updateCartTotal();\n// updateMenu();\n }", "public void setCar(final SessionContext ctx, final Employee item, final Car value)\n\t{\n\t\titem.setProperty(ctx, CarConstants.Attributes.Employee.CAR,value);\n\t}", "Order setAsInCharge(Order order, User user);", "@Override\n public void onClick(View v) {\n Context context = getContext();\n SharedPreferences mSharedPreference1 = PreferenceManager.getDefaultSharedPreferences(context);\n float fTotal = mSharedPreference1.getFloat(\"CartTotal\", 0);\n fTotal += (float)Integer.parseInt(product.getPrice());\n\n //throwback in\n SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(context);\n SharedPreferences.Editor mEdit1 = sp.edit();\n mEdit1.putFloat(\"CartTotal\", fTotal);\n mEdit1.commit();\n\n //add to my cart array if item doesn't exist.\n String prodID = Integer.toString(product.getP_id());\n if(!Arrays.asList(myCartArray).contains(prodID)){\n myCartArray.add(prodID);\n saveArray();\n //display dialog saying added to cart successful\n\n Toast.makeText(getActivity(), \"Succesfully added to your cart!\",\n Toast.LENGTH_LONG).show();\n } else {\n Toast.makeText(getActivity(), \"This lot was already in your cart!\",\n Toast.LENGTH_LONG).show();\n }\n\n }", "void setCurrentUser(@Nullable User newCurrentUser) {\n currentUser = newCurrentUser;\n }", "@FXML\r\n\tpublic void addToShoppingCart() {\r\n\t\t\r\n\t\tWatch w = listView.getSelectionModel().getSelectedItem();\r\n\t\tboolean add = controller.addWatchToShoppingCart(w);\r\n\t\tcontroller.deleteWishlistItem(w.getId());\r\n\t\tlistView.setItems(controller.getWishlistWatchesForCurrentUser());\r\n\t\tlistView.getSelectionModel().select(-1);\r\n\t\tcheckSelected();\r\n\t}", "public ShoppingCart() {\n\t\t_items = new ArrayList<Product>();\n\t}", "public void addChildToShoppingCart() {\n System.out.println(this.offerTable.getSelectionModel().getSelectedItem());\n // TODO [assignment_final] pridani aktualniho vyberu do kosiku\n // - pri pridani prvku do kosiku aktualizuji hodnotu \"budgetu\" v UI\n }", "public void defaultSetup() {\n\t\tthis.cart = this.endUser.getCart();\n\t\tLinkedList<Integer> prices = cart.getPrices();\n\t\tLinkedList<Integer> units = cart.getUnits();\n\t\tallProducts = FXCollections.observableList(cart.getProducts());\n\t\tallPrices = FXCollections.observableList(cart.getPrices());\n\t\tallUnits = FXCollections.observableList(cart.getUnits());\n\t\tlsvProduct.setItems(allProducts);\n\t\tlsvPrice.setItems(allPrices);\n\t\tlsvUnit.setItems(allUnits);\n\t\tint total_value = 0;\n\t\tfor (int i=0; i<prices.size();i++) {\n\t\t\ttotal_value += prices.get(i)*units.get(i);\n\t\t}\n\t\tlblTotal.setText(Integer.toString(total_value));\n\t}", "@Then(\"^: update the cart$\")\r\n\tpublic void update_the_cart() throws Throwable {\n\t\tobj.search2();\r\n\t}", "@Before\n\tpublic void setup() {\n\t\torder = new Order();\n\t\torder.setOrderdate(java.util.Calendar.getInstance().getTime());\n\t\torder.setTotalPrice(Double.valueOf(\"1500.99\"));\n\t\t\n\t\tshoppingCartdetails = new ShoppingCartDetails();\n\t\tshoppingCartdetails.setProductId(12345);\n\t\tshoppingCartdetails.setPrice(Double.valueOf(\"153.50\"));\n\t\tshoppingCartdetails.setQuantity(3);\n\t\tshoppingCartdetails.setShoppingCart(shoppingCart);\n\t\t\n\t\tshoppingCartSet.add(shoppingCartdetails);\n\t\t\n\t\tshoppingCartdetails = new ShoppingCartDetails();\n\t\tshoppingCartdetails.setProductId(45738);\n\t\tshoppingCartdetails.setPrice(Double.valueOf(\"553.01\"));\n\t\tshoppingCartdetails.setQuantity(1);\n\t\tshoppingCartdetails.setShoppingCart(shoppingCart);\n\t\t\n\t\tshoppingCartSet.add(shoppingCartdetails);\n\t}", "public static void editItem(int id,int quantity){\n\t\tif(!userCart.containsKey(id)){\n\t\t\tSystem.out.println(CartMessage.ITEM_NOT_IN_CART);\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(CartMessage.ITEM_EDITED);\n\t\t\tuserCart.get(id).setQuantity(quantity);\n\t\t}\n\t}", "@Test(expected = NullReferenceException.class)\n public void setCartIsNull() throws NullReferenceException {\n cartItem.setCart(null);\n }", "public void cart() {\n\t\tString s=dr.findElement(By.xpath(\"//*[@id=\\\"Cart\\\"]/form\")).getText();\r\n\t\tSystem.out.println(s);\r\n\t}", "@Override\n public void insertIntoAuthBooks(long cartid, long itemid) {\n wishListRepository.insertIntoAuthBooks(cartid, itemid);\n\n }", "@RequestMapping(value = { \"/shoppingCart\" }, method = RequestMethod.POST)\n public String shoppingCartUpdateQty(HttpServletRequest request, Authentication authentication, ModelMap map, //\n Model model, //\n @ModelAttribute(\"cartForm\") CartInfo cartForm) {\n\n if (authentication != null) {\n Collection<? extends GrantedAuthority> authorities = authentication.getAuthorities();\n List<String> roles = new ArrayList<String>();\n for (GrantedAuthority a : authorities) {\n roles.add(a.getAuthority());\n }\n if (isUser(roles)) {\n map.addAttribute(\"header\", \"header_user\");\n map.addAttribute(\"footer\", \"footer_user\");\n } else if (isAdmin(roles)) {\n map.addAttribute(\"header\", \"header_admin\");\n map.addAttribute(\"footer\", \"footer_admin\");\n }\n } else {\n map.addAttribute(\"header\", \"header_login\");\n map.addAttribute(\"footer\", \"footer_login\");\n }\n\n CartInfo cartInfo = Utils.getCartInSession(request);\n cartInfo.updateQuantity(cartForm);\n\n return \"redirect:/shoppingCart\";\n }", "public void setCar(final Employee item, final Car value)\n\t{\n\t\tsetCar( getSession().getSessionContext(), item, value );\n\t}", "@Override\n public void loadCartProductsData() {\n mCartPresenter.loadCartProductsData();\n }", "public ShoppingCart getShoppingCart(String userid) {\n\t\t ShoppingCart cartReturn = null;\r\n\t\t ShoppingCart detached = null;\r\n\t\t PersistenceManager pm = PMF.get().getPersistenceManager();\r\n\r\n\t\t Transaction tx = pm.currentTransaction();\r\n\t\t pm.setDetachAllOnCommit(true);\r\n\t\t try{\r\n\t\t\t tx.begin();\r\n\t\t\t cartReturn = (ShoppingCart)pm.getObjectById(ShoppingCart.class, userid);\r\n\t\t\t logger.info(\"items in cart\" + cartReturn.getItems().size());\r\n\t\t\t tx.commit();\r\n\t\t }catch(JDOObjectNotFoundException jx){\r\n\t\t\t logger.warning(\"No Shopping cart for user available\");\r\n\t\t }\r\n\t\t catch (DatastoreTimeoutException e) {\r\n\t\t \tlogger.severe(e.getMessage());\r\n\t\t \tlogger.severe(\"datastore timeout at: \" );// +\r\n\t\t } \r\n\t\t catch (DatastoreNeedIndexException e) {\r\n\t\t\t\tlogger.severe(e.getMessage());\r\n\t\t\t\tlogger.severe(\"datastore need index exception at: \");// +\r\n\t\t}\r\n\t\t finally{\r\n\t\t\t if ( tx.isActive()){\r\n\t\t\t\t tx.rollback();\r\n\t\t\t }\r\n\t\t\t pm.close();\r\n\t\t }\r\n\t\t return cartReturn;\r\n\t}", "public static void viewCart() {\n click(CART_BUTTON);\n click(VIEW_CART_BUTTON);\n }", "@Override\n public boolean addItemInCart(final String authToken,\n final CartDto cartDto) throws Exception {\n boolean notPreset = false;\n validate(cartDto);\n String userId = getUserIdByToken(authToken);\n Cart cart = new Cart();\n cart.setUserId(userId);\n\n ProductResponse productResponse =\n getProductDetails(cartDto, authToken);\n setPrices(productResponse, cartDto);\n\n CartItem item = transformCartItem(cartDto);\n item.setCart(cart);\n cart.getCartItems().add(item);\n LOG.info(\"[CART] event prepared to be queued on messaging server.\");\n notPreset = true;\n\n try {\n LOG.info(\"[CART] about to save the event in database.\");\n Cart persistCart = cartRepository.save(cart);\n LOG.info(\"Publishing event to Queue [cartQueue].\");\n rabbitTemplate.convertAndSend(RabbitmqCartConfig.EXCHANGE_NAME_CART,\n RabbitmqCartConfig.ROUTING_KEY_CART,\n cart);\n if (persistCart != null) {\n LOG.info(\"Item persisted successfully into the database.\");\n return true;\n } else {\n LOG.info(\"Item could not be saved into the database.\");\n return false;\n }\n } catch (RuntimeException ex) {\n LOG.error(\"Item cannot be added into the cart. \", ex.getMessage());\n throw new RuntimeException(ex.getMessage());\n }\n\n }", "void markAsUserSession();", "private void save_to_cart(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws IOException, ParseException {\n\t\t\n\t\tSystem.out.println(\"inside save to cart\");\n\t\tString cart_type = request.getParameter(\"cart_type\");\n\t\tSystem.out.println(cart_type);\n\t\tString quantity[] = request.getParameterValues(\"qty_name\");\n\t\tList lqty = new ArrayList();\n\t\tfor(int i=0;i<quantity.length;i++)\n\t\t{\n\t\t\tSystem.out.println(quantity[i]);\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\tUaddToCartMstVO mstVO = new UaddToCartMstVO();\n\t\t\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\");\n\t\tCalendar cal = Calendar.getInstance();\n\t\tmstVO.setDate(dateFormat.format(cal.getTime())); //2014/08/06 16:00:22\n\t\t\n\t\n\t\t\n\t\t//Date cart_date;\n\t\t/*try{\n\t\t\tcart_date=ft.parse(d.toString());\n\t\t\tmstVO.setDate(cart_date);\n\t\t\t\n\t\t}catch(Exception e){\n\t\t\tSystem.out.println(\"Date invalid:: \"+e.getMessage());\n\t\t}\n\t\t*/\n\t\tSystem.out.println(\"cart typw3333333333333333333333333333333\"+cart_type);\n\t\tmstVO.setCart_type(cart_type);\n\t\tHttpSession hs = request.getSession();\n\t\tint user_id=Integer.parseInt(hs.getAttribute(\"userID\").toString());\n\t\tSystem.out.println(\"User............\"+user_id);\n\t\t\n\t\tUaddToCartDAO addCartDAO;\n\t\taddCartDAO=new UaddToCartDAO();\n\n\t\tint BuyerregId = -1;\n\t\tloginVO logVo=new loginVO();\n\t\tlogVo.setLogin_id(user_id);\n\t\tList luser=addCartDAO.search_user_id(logVo);\n\t\tif(luser!=null && luser.size()>0)\n\t\t{\n\t\t\tUregistrationVO regVo=(UregistrationVO)luser.get(0);\n\t\t\tBuyerregId=regVo.getBuyer_user_id();\n\t\t\tSystem.out.println(\"Buyer user Id======================================================\"+BuyerregId);\n\t\t}\n\t\t\n\t\tUregistrationVO regVo=new UregistrationVO();\n\t\tregVo.setBuyer_user_id(BuyerregId);\n\t\t//System.out.println(\"User login id....\"+ regVo.getLoginVoObj().getLogin_id());\n\t\t\n\t\tmstVO.setBuyer_user_id(regVo);\n\t\t\n\t\t\t\t\n\t\taddCartDAO.save_to_wishlist(mstVO);\n\t\t\n\t\tSystem.out.println(\"--------------------------------------------------child Data insertion---------------------------------\");\n\t\t\n\t\t\n\t\tList l= (List)hs.getAttribute(\"product_data\");\n\t\t\n\t\tSystem.out.println(\"LIST value::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::\"+l.toString());\n\t\t\n\t\t\n\t\tUaddToCartVO addCartVO[]=new UaddToCartVO[l.size()];\n\t\t\n\t\tUaddToCartVO temp=new UaddToCartVO();\n\t\t\n\t\t\n\t\t\n\t\tfor(int i=0;i<l.size();i++)\n\t\t{\n\t\t\t\n\t\t\ttemp=(UaddToCartVO)l.get(i);\n\t\t\taddCartVO[i]=new UaddToCartVO();\n\t\t\taddCartVO[i].setCloth_id(temp.getCloth_id());\n\t\t\taddCartVO[i].setColor_code(temp.getColor_code());\n\t\t\taddCartVO[i].setPrice(temp.getPrice());\n\t\t\taddCartVO[i].setProduct_name(temp.getProduct_name());\n\t\t\taddCartVO[i].setSize(temp.getSize());\n\t\t\taddCartVO[i].setPath(temp.getPath());\n\t\t\taddCartVO[i].setQuantity(Integer.parseInt(quantity[i]));\n\t\t\taddCartVO[i].setDesigner_user_id(temp.getDesigner_user_id());\n\t\t\taddCartVO[i].setCartMstVOObj(mstVO);\n\t\t\taddCartDAO.save_to_cart(addCartVO[i]);\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t/*String type=mstVO.getCart_type();\n\t\tint userId=((UregistrationVO)mstVO.getBuyer_user_id()).getBuyer_user_id();\n\t\t\n\t\tSystem.out.println(\"---------------------------------------------------------------------------------------------------------------\");\n\t\tSystem.out.println(\"TYPE value is ::::::::::::::\"+type);\n\t\tSystem.out.println(\"USERID value is ::::::::::::::\"+userId);\n\n\t\tSystem.out.println(\"---------------------------------------------------------------------------------------------------------------\");\n\t\t\n*/\t\t\n\t\tresponse.sendRedirect(request.getContextPath()+\"/user/add_to_cart.jsp\");\n\t}", "@Test\n public void testCartItemSetters() {\n int quantity = 4;\n Product p = new Product(\"test-product\", 5, new Category(\"Category1\"));\n CartItem cartItem = new CartItem(p, quantity);\n cartItem.setProduct(new Product(\"test-product-2\", 1, new Category(\"Category2\")));\n cartItem.setQuantity(quantity + 1);\n assertNotEquals(cartItem.getProduct(), p);\n assertNotEquals(cartItem.getQuantity(), quantity);\n }", "public static void addToCart() {\n List<WebElement> buttonsAddItem = Browser.driver.findElements(ADD_TO_CART_BUTTON);\n buttonsAddItem.get(0).click();\n Browser.driver.navigate().refresh();\n }", "@Override\n public void shoppingCartChanged(CartEvent cartEvent) {\n }", "@Override\n\tpublic Cart getCartOrCreate(Authentication auth) {\n\t\tCart cart = new Cart();\n\t\tcart.setUpdateDate(LocalDate.now());\n\t\t\n\t\treturn cartRepo.findUserCart(Long.parseLong(auth.getName()))\n\t\t\t\t.orElse(cart);\n\t}", "@Test\n\tpublic void testAddProductToCart() {\n\t\tdouble startBalance = cart.getBalance();\n\t\tassertEquals(0,startBalance,0.01);\n\t\t\n\t\t\n\t\t\t // 4. CHECK NUM ITEMS IN CART BEFORE ADDING PRODUCT\n\t\t\t // \t\t - PREV NUM ITEMS\n\t\t\n\t\tint StartingNumItems = cart.getItemCount();\n\t\tassertEquals(0,StartingNumItems);\n\t\t\n\t\t\t // 5. ADD THE PRODUCT TO THE CART \n\t\tcart.addItem(phone);\n\t\t\n\t\t\t // 6. CHECK THE UPDATED NUMBER OF ITEMS IN CART \n\t\t\t // \t\t-- EO: NUM ITEMS + 1\n\t\tassertEquals(StartingNumItems + 1, cart.getItemCount());\n\t\t\t // -----------------------\n\t\t\t // 7. CHECK THE UPDATED BALANCE OF THE CART\n\t\t\t // \t\t-- EO: PREVIOUS BALANCE + PRICE OF PRODUCT\n\t\t\n\t\tdouble expectedBalance = startBalance + phone.getPrice();\n\t\t\n\t\tassertEquals(expectedBalance,cart.getBalance(),0.01);\n\t\t\n\t\t\n\t\t\n\t}", "public void perform(HttpServletRequest req, HttpServletResponse resp) {\n HttpSession session = req.getSession(true);\r\n\r\n //information needed to proccess the updatecart action\r\n ShoppingCart carrito = (ShoppingCart) session.getAttribute(\"carrito\");\r\n Product product = productModel.retrieve(Integer.parseInt(req.getParameter(\"productid\")));\r\n int newQuantity = Integer.parseInt(req.getParameter(\"itemQuantity\"));\r\n\r\n //if the quantity is set to zero we need to delete the product from the cart\r\n if (newQuantity == 0) {\r\n carrito.deleteItem(product);\r\n } else {//if not, we just update the quantity\r\n carrito.update(product, Integer.toString(newQuantity));\r\n }\r\n\r\n \r\n //in case we have deleted the last item of the cart, we need to remove the cart from the session because there isn't any product in it.\r\n if (carrito.isEmpty() == true) {\r\n session.removeAttribute(\"carrito\");\r\n \r\n //if the cart is empty we will forward the request to category page\r\n req.setAttribute(\"productsById\", productModel.retrieveByCategory(product.getCategoryid()));\r\n req.setAttribute(\"categorySelected\", categoryModel.retrieve(product.getCategoryid()));\r\n req.setAttribute(\"categories\", categoryModel.retrieveAll());\r\n\r\n ViewManager.nextView(req, resp, \"/view/category.jsp\");\r\n } else {\r\n //otherwise we will show the cart updated\r\n req.setAttribute(\"carrito\", session.getAttribute(\"carrito\"));\r\n ViewManager.nextView(req, resp, \"/view/viewcart.jsp\");\r\n }\r\n }", "public void setUser(User user) {\r\n this.user = user;\r\n }", "public Map<String, Integer> getCart() {\n return cart;\n }", "public Cart getCart(GyftyUser user) throws ParseException {\n Cart cart = null;\n ParseQuery<Cart> query = ParseQuery.getQuery(\"Cart\");\n query.whereEqualTo(Cart.CartParams.user.toString(), user);\n\n try {\n cart = query.getFirst();\n if (cart == null) {\n cart = new Cart();\n cart.setUser(user);\n cart.save();\n }\n\n } catch (ParseException e) {\n\n Log.e(Cart.DEFAULT_PIN, \"Cannot find cart\", e);\n }\n\n return cart;\n\n }", "public void setPaymentInfoInCart(CreditCard cc);" ]
[ "0.73272383", "0.67824215", "0.63782024", "0.6261307", "0.6254854", "0.61374843", "0.6106224", "0.6092453", "0.60003734", "0.597386", "0.5947386", "0.58877283", "0.58515906", "0.58273816", "0.5809817", "0.5792152", "0.57196414", "0.56942165", "0.5689916", "0.5679028", "0.56526697", "0.55728203", "0.55580497", "0.5528007", "0.5527215", "0.5495728", "0.5492435", "0.54913133", "0.54765165", "0.54582316", "0.5445447", "0.54213244", "0.5412349", "0.54030687", "0.5398903", "0.5395425", "0.53810966", "0.53730005", "0.5363099", "0.53493196", "0.53332686", "0.53229177", "0.5322196", "0.53183174", "0.5299226", "0.52957433", "0.5289172", "0.52768886", "0.5247419", "0.5247073", "0.5242049", "0.5237347", "0.5231582", "0.5229004", "0.52260834", "0.5212101", "0.52072465", "0.51951677", "0.51917076", "0.5191016", "0.5188408", "0.51879364", "0.51821053", "0.5180871", "0.5175695", "0.5169462", "0.51673895", "0.516725", "0.5159783", "0.5159445", "0.5157149", "0.51499647", "0.5143094", "0.51386577", "0.51380235", "0.513331", "0.5128668", "0.5123985", "0.51140594", "0.5107564", "0.51065224", "0.5105437", "0.5104858", "0.50980854", "0.5095308", "0.5088974", "0.5086936", "0.50727224", "0.50721514", "0.50593144", "0.50589377", "0.50579745", "0.5056605", "0.50544465", "0.50508726", "0.5050817", "0.5033554", "0.50307083", "0.50298554", "0.5027204" ]
0.6901254
1
snapshot.getChildren().iterator().next().getKey(); System.out.println("doxx" + key);
@Override public void onDataChange(@NonNull DataSnapshot snapshot) { arrayList.clear(); for(DataSnapshot dataSnapshot1 : snapshot.getChildren()) { String key = dataSnapshot1.getKey(); if(key.length() ==20){ EmployeeInfo test = new EmployeeInfo(); test.setpotential((String) dataSnapshot1.child("potential").getValue()); test.setstartUpName(dataSnapshot1.child("startUpName").getValue(String.class)); test.setbuildTime(dataSnapshot1.child("buildTime").getValue(String.class)); arrayList.add(test); } } update(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "K getFirstLeafKey() {\r\n return children.get(0).keys.get(0);\r\n }", "@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n HashMap<String,MapElements> testing1 = new HashMap<String, MapElements>();\n\n for(DataSnapshot snapshot:dataSnapshot.getChildren())\n {\n Log.d(TAG, \"SNAPSHOT \"+snapshot.getKey());\n String Key = snapshot.getKey();\n\n //Log.d(TAG, \"SPECIFIC\" +snapshot.child(Key).getValue().toString());\n\n }\n }", "private void getLastKeyFromFirebase() {\n Query getLastKey = FirebaseDatabase.getInstance().getReference()\n .child(\"Post\")\n .orderByKey()\n .limitToLast(1);\n\n getLastKey.addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n for (DataSnapshot lastKey : dataSnapshot.getChildren()) {\n // last_key = lastKey.getKey();\n tempPosts.add(lastKey.getValue(Post.class));\n if (tempPosts.size() >= 2) {\n last_key = tempPosts.get(tempPosts.size() - 1).getTimeStamp();\n } else {\n last_key = tempPosts.get(0).getTimeStamp();\n }\n }\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n Toast.makeText(PostActivity.this, \"Cannot get last key\", Toast.LENGTH_SHORT).show();\n }\n });\n\n }", "public String getKey() { \n\t\treturn getKeyElement().getValue();\n\t}", "public String key(String name) {\r\n String value;\r\n value = this.children.stream().filter(child -> child.equals(name)).findFirst().get().children.get(0).data;\r\n return value;\r\n }", "Object getKey();", "Node getChild(K key) {\r\n\t\t\tint loc = Collections.binarySearch(keys, key);\r\n\t\t\tint childIndex = loc >= 0 ? loc + 1 : -loc - 1;\r\n\t\t\treturn children.get(childIndex);\r\n\t\t}", "K getFirstLeafKey() {\r\n return keys.get(0);\r\n }", "public String getKey() {\n return this.key;\n }", "NestedListKey getKey();", "public int getKey(){\n return key;\n }", "public String getKey();", "public String getKey();", "public String getKey();", "public String getKey();", "public Object getKey()\n {\n return key;\n }", "@Override\n public String toString(){\n return key;\n }", "public String getKey() {\n\treturn key;\n }", "public Object getKey() {\r\n return key;\r\n }", "private Node getChild(K key) {\r\n\r\n // binarySearch for the correct index\r\n int correct_place = Collections.binarySearch(keys, key);\r\n int child_indexing;\r\n if (correct_place >= 0) {\r\n child_indexing = correct_place + 1;\r\n } else {\r\n child_indexing = -correct_place - 1;\r\n }\r\n\r\n return children.get(child_indexing);\r\n }", "public String getKey() {\n return this.key;\n }", "public String getKey() {\n return this.key;\n }", "public String getKey() {\n return this.key;\n }", "public String getKey() {\n return this.key;\n }", "public String getKey() {\n return this.key;\n }", "public String getKey() {\n return this.key;\n }", "public String getKey() {\n return key;\n }", "public String getKey() {\n return key;\n }", "public String getKey()\r\n {\r\n return getValue().toString();\r\n }", "public String getKey()\n\t{\n\t\treturn this.key;\n\t}", "public String toString() {\r\n \treturn key;\r\n }", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "public Key getKey()\r\n { \r\n return key; \r\n }", "private Node findKey(String key){\n Node N = front;\n while(N != null){\n if(N.key.equals(key)){\n return N; \n }\n else{\n N = N.next; \n }\n }\n return null;\n }", "public K getKey() {\n return key;\n }", "public node_info getNode(int key)\n{\n\treturn getNodes().get(key);\n\t\n}", "public String getKey() {\n\t\treturn this.key;\n\t}", "public String getKey() {\n\t\treturn this.key;\n\t}", "public String getKey() {\n\t\treturn this.key;\n\t}", "@Override\n public int key() {\n return this.key;\n }", "@Override\n\t\tpublic K getKey(){\n\t\t\treturn key;\n\t\t}", "public Key getFirst() {\n\t\treturn firstNode.key;\n\t}", "public int get(int key) {\n Node x = root;\r\n while (x != null) {\r\n if (key > x.key) x = x.right;\r\n else if (key < x.key) x = x.left;\r\n else if (x.key == key) return key;\r\n }\r\n System.out.print(\"No key found\");\r\n return -1; //return 0 means did not find!\r\n }", "BListKey getKey();", "@Override\n public void onDataChange(@NonNull DataSnapshot snapshot) {\n mPlants.clear();\n\n //aici baga key value din real time database\n for(DataSnapshot postSnapshot : snapshot.getChildren()){\n Plants plant = postSnapshot.getValue(Plants.class);\n plant.setKey(postSnapshot.getKey());\n\n Log.d(\"TAG\", \"plant.key \" + plant.getKey() );\n mPlants.add(plant);\n }\n\n mAdapter.notifyDataSetChanged();\n }", "abstract K getFirstLeafKey();", "abstract K getFirstLeafKey();", "public String getKey() {\n\t\tString t = doc.get(\"key\");\n\n\t\tif (t == null) {\n\t\t\treturn \"\";\n\t\t} else {\n\t\t\treturn t;\n\t\t}\n\t}", "public String getKey() {\r\n return key;\r\n }", "public String getKey() {\r\n return key;\r\n }", "public String getKey() {\r\n return key;\r\n }", "public Object getKey() {\n return key;\n }", "@Override\n public int getKey() {\n return key_;\n }", "public void iterate(){//iterate over all the keys\n\t\tSystem.out.println(\"Keys are :\");\n\t\tSystem.out.println(\"-----------------------\");\n\t\titerate(this.root);\n\t\tSystem.out.println(\"-----------------------\");\n\t}", "@Override\n public int getKey() {\n return key_;\n }", "private Node getChild(char key) {\n for (Node child : children) {\n if (child.getKey() == key) {\n return child;\n }\n }\n return null;\n }", "@Override\n public String getKey()\n {\n return id; \n }", "public String getKey(){\n\t\treturn key;\n\t}", "public String getKey() {\r\n return key;\r\n }", "public E getKey() {\n\t\treturn this.element;\n\t}", "public Object getKey() { return name; }", "public String getNodeKey() {\n return nodeKey;\n }", "@VisibleForTesting\n NodeKey getNodeKey() {\n return nodeKey;\n }", "public String getKey() {\n\n return this.key;\n }", "int getKey();", "int getKey();", "@Override\n public int getKey() {\n return this.key;\n }", "public String getKey() {\n return key;\n }", "public String getKey() {\n return key;\n }", "public String getKey() {\n return key;\n }", "public String getKey() {\n return key;\n }", "public String getKey() {\n return key;\n }", "public String getKey() {\n return key;\n }", "public String getKey() {\n return key;\n }", "public String getKey() {\n return key;\n }", "public String getKey() {\n return key;\n }", "public String getKey() {\n return key;\n }", "public String getKey()\n\t{\n\t\treturn key;\n\t}", "@Override\n public String getKey() {\n return key;\n }", "@Override\n public String toString() {\n return key;\n }", "private Node getReference(DNA key) {\n int hash = key.hashCode();\n if(this.debug)\n System.out.println(\"ExtHash::getReference >> buscando: \" + hash);\n\n Node actual_node = this.tree_reference;\n int shift = 0;\n if(this.debug)\n System.out.println(\"ExtHash::getReference >> camino en el arbol:\");\n\n while(!actual_node.hasReference()) {\n if(shift >= 30) {\n if(this.debug)\n System.out.println(\"ExtHash::getReference >> limite de busqueda\");\n break;\n }\n\n if(this.debug)\n System.out.println(\" \" + (hash & (1 << shift)));\n\n if((hash & (1 << shift)) == 0) {\n actual_node = actual_node.getLeftNode();\n } else {\n actual_node = actual_node.getRightNode();\n }\n shift++;\n\n }\n if(this.debug)\n System.out.println(\"ExtHash::getReference >> fin de busqueda\");\n\n return actual_node;\n\n }", "public K getKey() {\n return key;\n }", "public K getKey() {\n return key;\n }", "public K getKey() {\n return key;\n }", "public K getKey()\r\n\t\t{\r\n\t\t\treturn key;\r\n\t\t}", "public java.lang.String getKey() {\n\t\treturn this.key;\n\t}", "public K getKey() {\n\t\treturn key;\n\t}", "public String key() {\n return this.key;\n }", "public String key() {\n return this.key;\n }" ]
[ "0.64211595", "0.6409309", "0.61463606", "0.61104625", "0.6083104", "0.6075562", "0.597655", "0.5915126", "0.5909461", "0.5906881", "0.58946353", "0.588822", "0.588822", "0.588822", "0.588822", "0.5887503", "0.5863014", "0.5846051", "0.5838977", "0.5803631", "0.578765", "0.578765", "0.578765", "0.578765", "0.578765", "0.578765", "0.5753337", "0.5753337", "0.57493436", "0.57291555", "0.5724436", "0.5722256", "0.5722256", "0.5722256", "0.5722256", "0.5722256", "0.5722256", "0.5722256", "0.5722256", "0.5722256", "0.5722256", "0.5722256", "0.5722256", "0.5722256", "0.57102984", "0.5709744", "0.5707097", "0.57066077", "0.5695167", "0.5695167", "0.5695167", "0.5685572", "0.5678649", "0.56742626", "0.5656897", "0.56554395", "0.56383383", "0.5636689", "0.5636689", "0.56321144", "0.563026", "0.563026", "0.563026", "0.5624801", "0.5622582", "0.56171167", "0.56168777", "0.5615928", "0.5615621", "0.5610667", "0.5598094", "0.55899525", "0.55838764", "0.55780935", "0.55757207", "0.5567559", "0.5566679", "0.5566679", "0.5565267", "0.5562904", "0.5562904", "0.5562904", "0.5562904", "0.5562904", "0.5562904", "0.5562904", "0.5562904", "0.5562904", "0.5562904", "0.5560571", "0.55527985", "0.5550694", "0.5548633", "0.55426633", "0.55426633", "0.55426633", "0.5542655", "0.55426186", "0.5537896", "0.55370617", "0.55370617" ]
0.0
-1
below 3 lines of code is used to set data in our object class.
private void addDatatoFirebase(String name, String phone, String address) { employeeInfo.setstartUpName(name); employeeInfo.setpotential(phone); employeeInfo.setbuildTime(address); String id = databaseReference.push().getKey(); assert id != null; databaseReference.child(id).setValue(employeeInfo); // we are use add value event listener method // which is called with database reference. // databaseReference.addValueEventListener(new ValueEventListener() { // @Override // public void onDataChange(@NonNull DataSnapshot snapshot) { // // inside the method of on Data change we are setting // // our object class to our database reference. // // data base reference will sends data to firebase. // databaseReference.setValue(employeeInfo); // // // after adding this data we are showing toast message. // Toast.makeText(MainActivity.this, "data added", Toast.LENGTH_SHORT).show(); // } // // // @Override // public void onCancelled(@NonNull DatabaseError error) { // // if the data is not added or it is cancelled then // // we are displaying a failure toast message. // Toast.makeText(MainActivity.this, "Fail to add data " + error, Toast.LENGTH_SHORT).show(); // } // }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setData (Object newData) { /* package access */ \n\t\tdata = newData;\n\t}", "void setData(Object data);", "void setData (Object data);", "@Override\r\n\tprotected void setData(Object data) {\n\t\t\r\n\t}", "public void setData(Object oData) { m_oData = oData; }", "public void setData(Object data) {\r\n this.data = data;\r\n }", "@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}", "void setObjectValue(Object dataObject);", "void setData(T data) {\n\t\tthis.data = data;\n\t}", "public void setData(Object data) {\n this.data = data;\n }", "void setObject(String id, Object data);", "public void setData(Object o){}", "private void setData() {\n\n }", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "public void setObjectdata(byte[] objectdata)\n {\n\n }", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void initData() {\n\n\n\n\t}", "public void setData(Object data) {\n\t\tthis.data = data;\n\t}", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "private void setUserData(){\n }", "@Override\n protected void initData() {\n }", "@Override\n protected void initData() {\n }", "@Override\n\tprotected void initdata() {\n\n\t}", "public\tvoid setobject(object obj) {\r\n\t\t oop.value=obj.value;\r\n\t\t oop.size=obj.size;\r\n\t\t \r\n\t}", "public abstract void setCustomData(Object data);", "abstract public void setUserData(Object data);", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "private void initData(){\n\n }", "@Override\n\tpublic void initData() {\n\n\t}", "@Override\n\tpublic void initData() {\n\n\t}", "@Override\n\tpublic void initData() {\n\n\t}", "@Override\r\n\tpublic void initData() {\n\t}", "private void initData() {\n\n }", "public void setUserData(Object data);", "private void initData() {\n\t}", "@Override\n\tpublic void initData() {\n\t\t\n\t}", "public void setData(T data){\n this.data = data;\n }", "public void setData(Data data) {\n this.data = data;\n }", "private void InitData() {\n\t}", "@Override\n\tprotected void initData(){\n\t\tsuper.initData();\n\t}", "public void setData(E data){\n\t\t\tthis.data = data;\n\t\t}", "private void initData() {\n }", "public void setdat()\n {\n }", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "void setUserData(Object userData);", "public void setData(E data) {\r\n\t\tthis.data = data;\r\n\t}", "@Override\n\tpublic void setData() {\n\n\t}", "public void setData(E data)\n {\n this.data = data;\n }", "public void initData() {\n }", "public void initData() {\n }", "public void setData(V data){\n\t\tthis.data = data;\n\t}", "@Override\r\n\tpublic void setData(E data) {\n\t\tthis.data=data;\r\n\t}", "public void setDataObject(Object dataObj)\r\n {\r\n\r\n debug(\"setDataObject() - Set Data member Obj\");\r\n // Null out any reference to this data that may be present\r\n stockData = null;\r\n if (dataObj != null)\r\n {\r\n if (dataObj instanceof StockData)\r\n {\r\n stockData = (StockData) dataObj;\r\n }\r\n else if (dataObj instanceof String)\r\n {\r\n stockData = addSymbolToCurrentWatchList((String) dataObj);\r\n }\r\n\r\n }\r\n\r\n debug(\"setDataObject() - stockData is [\" + ((stockData == null) ? \"null\" : stockData.getName()) + \"]\");\r\n }", "final public void setDataObject(Object _object) {\n this.dataObject = _object;\n }", "@Override\n public void setObject(Object arg0)\n {\n \n }", "public void setData(D data) {\n this.data = data;\n }", "public void initData(){\r\n \r\n }", "protected @Override\r\n abstract void initData();", "public void InitData() {\n }", "public void setData( E data ) {\n\t\tthis.data = data;\n\t}", "@Override\n\tpublic void setValue(Object object) {\n\n\t}", "public void setData(IData data) {\n this.data = data;\n }", "@Override\n\tpublic void setValue(Object object) {\n\t\t\n\t}", "void initData(){\n }", "public void setData(D s){\n\t\tdata = s;\n\t}", "@Override\n\tpublic void setDataObject(DataObject arg0) throws DataBindingException {\n\n\t}", "public void setObject(XSerial obj);", "void setDataIntoSuppBusObj() {\r\n supplierBusObj.setValue(txtSuppId.getText(),txtSuppName.getText(), txtAbbreName.getText(),\r\n txtContactName.getText(),txtContactPhone.getText());\r\n }", "private void initialData() {\n\n }", "private void Initialized_Data() {\n\t\t\r\n\t}", "public ChangeData()\r\n\t\t{\r\n\t\t}", "@Override\r\n\tpublic void updateData() {\n\t\t\r\n\t}", "private void setData() {\n populateInterfaceElements();\n }", "public void setData(E d)\n {\n data = d;\n }", "@Override\r\n public void setObject(String object) {\n }", "public void Data(){\n\t\t\t\t\t\t\n\t\t\t\t\t}", "void initData() {\r\n\t\tthis.daVinci = new Artist(\"da Vinci\");\r\n\t\tthis.mona = new Painting(daVinci, \"Mona Lisa\");\r\n\t\t//this.lastSupper = new Painting(this.daVinci, \"Last Supper\");\r\n\t}", "public abstract void setContentObject(Object object);", "public void setItem (Object anObject)\r\n {\r\n // TODO: implement (?)\r\n }", "public void setUserData (Object userData) {\n\t\tthis.userData = userData;\n\t}", "public abstract void set(DataType x, DataType y, DataType z);", "private void fillData()\n {\n\n }", "public final void setSample(Object obj)\n { /* setSample */\n this.sample= obj; \n }", "public void setUserData(Object userData) {\n this.userData = userData;\n }", "public void setData(String data) {\n\tthis.data = data;\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "public void setData(String data) {\r\n this.data = data;\r\n }", "public void setData(String data) {\n _data = data;\n }", "public void setObjet(Object messageObject) throws UtilsException;", "public T setUserData(Object data)\n\t{\n\t\tuserData = data;\n\t\treturn (T) this;\n\t}", "public void setData(GenericItemType data) {\n this.data = data;\n }", "@Override\r\n\tprotected void init() {\n\t\tupdateValues();\r\n\t}", "void setData(byte[] data) {\n this.data = data;\n }", "public static void populateData() {\n\n }" ]
[ "0.75926125", "0.74074304", "0.73948795", "0.7352654", "0.72803205", "0.72269046", "0.71767575", "0.71767575", "0.71767575", "0.71767575", "0.71767575", "0.71767575", "0.7133199", "0.71258324", "0.71140295", "0.70975447", "0.7092593", "0.70860547", "0.70567745", "0.70530885", "0.704361", "0.704361", "0.70423675", "0.70383704", "0.7035183", "0.7032822", "0.70260394", "0.70260394", "0.69866985", "0.6968137", "0.6962597", "0.69568866", "0.6955907", "0.6952701", "0.693604", "0.693604", "0.693604", "0.69318646", "0.6929124", "0.6927316", "0.69258255", "0.69080544", "0.6905803", "0.6904899", "0.6903262", "0.68710643", "0.68522406", "0.68189687", "0.67970395", "0.67911285", "0.67911285", "0.67841285", "0.67700654", "0.6766719", "0.6766114", "0.672012", "0.672012", "0.66692793", "0.6667727", "0.66598785", "0.6655868", "0.6653418", "0.662992", "0.66044974", "0.65849125", "0.65775025", "0.65756893", "0.65451735", "0.65292305", "0.6506251", "0.6451795", "0.6432848", "0.6429843", "0.64133066", "0.6363831", "0.6356241", "0.6342661", "0.63202006", "0.63076943", "0.6301034", "0.62778205", "0.6269742", "0.62674344", "0.62521434", "0.62516403", "0.6246114", "0.6204296", "0.6192447", "0.61904204", "0.6187043", "0.61829245", "0.6182735", "0.6176942", "0.617501", "0.6164841", "0.61529243", "0.61511594", "0.6143194", "0.61385024", "0.612189", "0.61194164" ]
0.0
-1
Creacion del constructor donde se agregan los elementos a la interfaz grafica
public Circulo() { setLayout(null); setTitle("Figurative"); menubarcrc = new JMenuBar(); setJMenuBar(menubarcrc); getContentPane().setBackground(fondoCro); // Creacion del pequeño menu menu1crc = new JMenu("Opciones"); menubarcrc.add(menu1crc); menu2crc = new JMenu("Tema"); menu1crc.add(menu2crc); jmi1crc = new JMenuItem("Claro"); menu2crc.add(jmi1crc); jmi1crc.addActionListener(this); jmi2crc = new JMenuItem("Oscuro"); menu2crc.add(jmi2crc); jmi2crc.addActionListener(this); // Creacion de los sliders slRCrc = new JSlider(); slRCrc.setBounds(115, 360, 255, 15); slRCrc.setBackground(new Color(245, 245, 245)); slRCrc.setValue(0); slRCrc.setMaximum(255); slRCrc.setMajorTickSpacing(1); // Metodo que implementa la funcion de los sliders slRCrc.addChangeListener(new javax.swing.event.ChangeListener() { @Override public void stateChanged(ChangeEvent sRc) { cambiarColorCrc(); } }); add(slRCrc); slGCrc = new JSlider(); slGCrc.setBounds(115, 410, 255, 15); slGCrc.setBackground(new Color(245, 245, 245)); slGCrc.setValue(0); slGCrc.setMaximum(255); slGCrc.setMajorTickSpacing(1); add(slGCrc); slGCrc.addChangeListener(new javax.swing.event.ChangeListener() { @Override public void stateChanged(ChangeEvent sRc) { cambiarColorCrc(); } }); slBCrc = new JSlider(); slBCrc.setBounds(115, 454, 255, 15); slBCrc.setBackground(new Color(245, 245, 245)); slBCrc.setValue(0); slBCrc.setMaximum(255); slBCrc.setMajorTickSpacing(1); add(slBCrc); slBCrc.addChangeListener(new javax.swing.event.ChangeListener() { @Override public void stateChanged(ChangeEvent sRc) { cambiarColorCrc(); } }); // Creacion de los componentes del JFrame jl1c = new JLabel("Figura seleccionada: Circulo"); jl1c.setBounds(85, 40, 250, 20); jl1c.setFont(new Font("Verdana", Font.BOLD, 14)); jl1c.setForeground(new Color(0, 0, 0)); add(jl1c); jl12c = new JLabel("Radio: "); jl12c.setBounds(40, 77, 250, 20); jl12c.setForeground(new Color(0, 0, 0)); jl12c.setFont(new Font("Verdana", Font.BOLD, 13)); add(jl12c); jl2c = new JLabel("Fórmula: πr²"); jl2c.setBounds(40, 178, 250, 20); jl2c.setForeground(new Color(0, 0, 0)); jl2c.setFont(new Font("Verdana", Font.BOLD, 14)); add(jl2c); jlDiametro = new JLabel("Diametro: "); jlDiametro.setBounds(40, 218, 250, 20); jlDiametro.setForeground(new Color(0, 0, 0)); jlDiametro.setFont(new Font("Verdana", Font.BOLD, 13)); add(jlDiametro); jl3c = new JLabel("Perimetro: "); jl3c.setBounds(40, 263, 250, 20); jl3c.setForeground(new Color(0, 0, 0)); jl3c.setFont(new Font("Verdana", Font.BOLD, 13)); add(jl3c); jl4c = new JLabel("Area: "); jl4c.setBounds(40, 308, 250, 20); jl4c.setForeground(new Color(0, 0, 0)); jl4c.setFont(new Font("Verdana", Font.BOLD, 13)); add(jl4c); jl5c = new JLabel("Rojo: "); jl5c.setBounds(40, 353, 250, 20); jl5c.setForeground(new Color(0, 0, 0)); jl5c.setFont(new Font("Verdana", Font.BOLD, 13)); add(jl5c); jl6c = new JLabel("Verde: "); jl6c.setBounds(40, 404, 250, 20); jl6c.setForeground(new Color(0, 0, 0)); jl6c.setFont(new Font("Verdana", Font.BOLD, 13)); add(jl6c); jl7c = new JLabel("Azul: "); jl7c.setBounds(40, 445, 250, 20); jl7c.setForeground(new Color(0, 0, 0)); jl7c.setFont(new Font("Verdana", Font.BOLD, 13)); add(jl7c); jRCr = new JLabel("R: 0"); jRCr.setBounds(55, 485, 60, 25); jRCr.setForeground(new Color(0, 0, 0)); jRCr.setFont(new Font("Verdana", Font.BOLD, 13)); add(jRCr); jVCr = new JLabel("G: 0"); jVCr.setBounds(155, 485, 60, 25); jVCr.setForeground(new Color(0, 0, 0)); jVCr.setFont(new Font("Verdana", Font.BOLD, 13)); add(jVCr); jACr = new JLabel("B: 0"); jACr.setBounds(255, 485, 60, 25); jACr.setForeground(new Color(0, 0, 0)); jACr.setFont(new Font("Verdana", Font.BOLD, 13)); add(jACr); txtRadio = new JTextField("Ingresa el valor del radio"); txtRadio.setEditable(false); txtRadio.setBounds(115, 79, 250, 20); txtRadio.setBackground(new Color(245, 245, 245)); txtRadio.setForeground(new Color(0, 0, 0)); txtRadio.setBorder(null); txtRadio.setVisible(true); add(txtRadio); btnEditarCrc = new JButton("Editar"); btnEditarCrc.setBounds(50, 120, 130, 25); btnEditarCrc.setBackground(new Color(156, 0, 188)); btnEditarCrc.setForeground(new Color(255, 255, 255)); btnEditarCrc.addActionListener(this); add(btnEditarCrc); btninfCrc = new JButton("Enviar"); btninfCrc.setBounds(200, 120, 130, 25); btninfCrc.setBackground(new Color(156, 0, 188)); btninfCrc.setForeground(new Color(255, 255, 255)); btninfCrc.addActionListener(this); add(btninfCrc); btnRegresarCrc = new JButton("Regresar"); btnRegresarCrc.setBounds(625, 455, 95, 20); btnRegresarCrc.setBackground(new Color(156, 0, 188)); btnRegresarCrc.setForeground(new Color(255, 255, 255)); btnRegresarCrc.addActionListener(this); add(btnRegresarCrc); btnPruebaCrc = new JButton("Salir"); btnPruebaCrc.setBounds(625, 485, 95, 20); btnPruebaCrc.addActionListener(this); btnPruebaCrc.setBorder(null); btnPruebaCrc.setBackground(new Color(156, 0, 188)); btnPruebaCrc.setForeground(new Color(255, 255, 255)); add(btnPruebaCrc); // Textfields donde se arrojaran los resultados obtenidos txtDiametroCrc = new JTextField("0 unidades"); txtDiametroCrc.setEditable(false); txtDiametroCrc.setBounds(140, 219, 250, 20); txtDiametroCrc.setBackground(new Color(245, 245, 245)); txtDiametroCrc.setForeground(new Color(0, 0, 0)); txtDiametroCrc.setVisible(true); txtDiametroCrc.setBorder(null); add(txtDiametroCrc); txtPerimetroCrc = new JTextField("0 unidades"); txtPerimetroCrc.setEditable(false); txtPerimetroCrc.setBounds(140, 264, 250, 20); txtPerimetroCrc.setBackground(new Color(245, 245, 245)); txtPerimetroCrc.setForeground(new Color(0, 0, 0)); txtPerimetroCrc.setVisible(true); txtPerimetroCrc.setBorder(null); add(txtPerimetroCrc); txtAreaCrc = new JTextField("0 unidades cuadradas"); txtAreaCrc.setEditable(false); txtAreaCrc.setBounds(122, 310, 250, 20); txtAreaCrc.setBackground(new Color(245, 245, 245)); txtAreaCrc.setForeground(new Color(0, 0, 0)); txtAreaCrc.setVisible(true); txtAreaCrc.setBorder(null); add(txtAreaCrc); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Alojamiento() {\r\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 }", "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: */ }", "public Cgg_jur_anticipo(){}", "public ElementoInicial() {\r\n\t\tsuper();\r\n\t}", "public Pasien() {\r\n }", "public Aritmetica(){ }", "public Constructor(){\n\t\t\n\t}", "public AntrianPasien() {\r\n\r\n }", "public Vehiculo() {\r\n }", "public prueba()\r\n {\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 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 Caso_de_uso () {\n }", "public Controlador() {\n\t\t// m\n\t\tdatosPrueba1 = new ListaEnlazada();\n\t\t// m\n\t\tdatosPrueba2 = new ListaEnlazada();\n\t\t// add\n\t\tdatosPrueba3 = new ListaEnlazada();\n\t\tdatosPrueba4 = new ListaEnlazada();\n\t\tprueba1 = new Estadisticas(datosPrueba1);\n\t\tprueba2 = new Estadisticas(datosPrueba2);\n\t\tprueba3 = new Estadisticas(datosPrueba3);\n\t\tprueba4 = new Estadisticas(datosPrueba4);\n\t\t// finAdd\n\t}", "public ContasCorrentes(){\n this(0,\"\",0.0,0.0,0);\n }", "public MorteSubita() {\n }", "public Candidatura (){\n \n }", "public Carrera(){\n }", "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 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 CrearQuedadaVista() {\n }", "Constructor() {\r\n\t\t \r\n\t }", "public Puerto()\n {\n alquileres = new ArrayList<>();\n }", "public Comprador(String e, String n, String p, String d, String m) {\n // initialise instance variables\n super(1,e,n,p,d,m);\n favoritos = new ArrayList<String>();\n }", "public Propuestas() {}", "public Kullanici() {}", "public Cobra()\r\n {\r\n super();\r\n corpo = new ArrayList<CorpoCobra>();\r\n\r\n porCrescer = 0;\r\n ovosComidos = 0;\r\n vidas = 3;\r\n tonta = 0;\r\n }", "protected Asignatura()\r\n\t{}", "public AfiliadoVista() {\r\n }", "public Curso() {\n\t\tthis.alumnos = new ArrayList<Alumno>();\n\t\tcupo = 0;\n\t\tcreditos = 0;\n\t}", "public Corso() {\n\n }", "public Espai(int a, int b){\n matriuElements = new Object[a][b];\n referencies = new Hashtable<Integer,Pos>();\n }", "private void crearElementos() {\n\n\t\tRotonda rotonda1 = new Rotonda(new Posicion(400, 120), \"5 de octubre\");\n\t\tthis.getListaPuntos().add(rotonda1);\n\n\t\tCiudad esquel = new Ciudad(new Posicion(90, 180), \"Esquel\");\n\t\tthis.getListaPuntos().add(esquel);\n\n\t\tCiudad trelew = new Ciudad(new Posicion(450, 200), \"Trelew\");\n\t\tthis.getListaPuntos().add(trelew);\n\n\t\tCiudad comodoro = new Ciudad(new Posicion(550, 400), \"Comodoro\");\n\t\tthis.getListaPuntos().add(comodoro);\n\n\t\tCiudad rioMayo = new Ciudad(new Posicion(350, 430), \"Rio Mayo\");\n\t\tthis.getListaPuntos().add(rioMayo);\n\n\t\t// --------------------------------------------------------\n\n\t\tRutaDeRipio rutaRipio = new RutaDeRipio(230, 230, rotonda1, esquel);\n\t\tthis.getListaRuta().add(rutaRipio);\n\n\t\tRutaPavimentada rutaPavimentada1 = new RutaPavimentada(380, 100, trelew, comodoro);\n\t\tthis.getListaRuta().add(rutaPavimentada1);\n\n\t\tRutaPavimentada rutaPavimentada2 = new RutaPavimentada(800, 120, esquel, comodoro);\n\t\tthis.getListaRuta().add(rutaPavimentada2);\n\n\t\tRutaDeRipio rutaripio3 = new RutaDeRipio(380, 100, trelew, comodoro);\n\t\tthis.getListaRuta().add(rutaripio3);\n\n\t\tRutaEnConstruccion rutaConst1 = new RutaEnConstruccion(180, 70, rioMayo, comodoro);\n\t\tthis.getListaRuta().add(rutaConst1);\n\n\t\tRutaPavimentada rutaPavimentada3 = new RutaPavimentada(600, 110, rioMayo, esquel);\n\t\tthis.getListaRuta().add(rutaPavimentada3);\n\t}", "private ControleurAcceuil(){ }", "public BaseDatos() {\r\n super();\r\n listaNumeros.add(6.0f);\r\n }", "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 TCubico(){}", "public Comprador() {\n // initialise instance variables\n super(1,\"\",\"\",\"\",\"\",\"\"); //super(email, nome, password, dataNascimento, morada)\n favoritos = new ArrayList<String>();\n }", "public Carrinho() {\n\t\tsuper();\n\t}", "public ComandosJuego() //constructor\n\t{\n\t\tlista = new ArrayList<String>();\n\t}", "public Comida(String nombre){\n super(nombre);\n this.calorias = 10;\n }", "public Funcionario() {\r\n\t\t\r\n\t}", "public Equipas() {\r\n\t\t\r\n\t}", "public Busca(){\n }", "private IOferta buildOfertaEjemplo4() {\n\t\tPredicate<Compra> condicion = Predicates.alwaysTrue();\n\t\tFunction<Compra, Float> descuento = new DescuentoLlevaXPagaY(\"11-111-1111\", 3, 2);\n\t\treturn new OfertaDinero(\"Lleva 3 paga 2 en Coca-Cola\", condicion,\n\t\t\t\tdescuento);\n\t}", "public Producto() {\r\n }", "public Cat(int r){\r\n\t\ttipoRegistro = r;\r\n\t\tatributos = new ArrayList<String[]>();\r\n\t}", "private IOferta buildOfertaEjemplo3() {\n\t\tPredicate<Compra> condicion = Predicates.compose(\n\t\t\t\tnew PredicadoDiaSemana(Calendar.SATURDAY),\n\t\t\t\tnew ExtraerFechaCreacion());\n\t\tFunction<Compra, Float> descuento = new DescuentoFijo<>(10.0f);\n\t\treturn new OfertaDinero(\"10$ descuento sabados\", condicion,\n\t\t\t\tdescuento);\n\t}", "public Dinamica(){\n\t\tprimer=null;\n\t\tanterior=null;\n\t\tn_equips = 0;\n\t\t\n\t}", "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 CambioComplementariosDTO() { }", "public Productos() {\n super();\n // TODO Auto-generated constructor stub\n }", "public Arquero(){\n this.vida = 75;\n this.danioAUnidad = 15;\n this.danioAEdificio = 10;\n this.rangoAtaque = 3;\n this.estadoAccion = new EstadoDisponible();\n }", "private void __sep__Constructors__() {}", "public MeuIterador(Object primeira){//construtor do meu iterador recebe a primeira celula da lista como objeto\r\n\t\tauxiliar=(Celula)primeira;//auxiliar recebe a primeira celula\r\n\t\tthis.primeira=(Celula)primeira;//primeira recebe a primeira celula\r\n\t}", "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 LecturaPorEvento() \r\n {\r\n }", "public OpticalElements() {\n }", "public Prova() {}", "public Veiculo() {\r\n\r\n }", "public Listas_simplemente_enlazada(){\r\n inicio=null; // este constructor me va servir para apuntar el elemento\r\n fin=null;\r\n }", "public Exercicio(){\n \n }", "public Puerto()\n {\n alquileres = new ArrayList<Alquiler>();\n }", "public CCuenta()\n {\n }", "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 ListElement()\n\t{\n\t\tthis(null, null, null); //invokes constructor with 3 arguments\n\t}", "public Transportista() {\n }", "public CambioComplementariosDTO(java.lang.String curpEmpleado,\n java.lang.String rfcEmpleado,\n java.lang.String primerApellido,\n java.lang.String segundoApellido,\n java.lang.String nombreEmpleado,\n java.lang.String clabeEmpleado,\n java.lang.String idBancoSar,\n java.util.Date ingresoGobFed, \n java.util.Date ingresoDependencia, \n java.util.Date terminoCargoSind, \n java.lang.String imssIssste, \n java.lang.String EMailOficial, \n java.lang.String EMailPersonal,\n java.lang.Integer idRusp, \n java.lang.String sistemaReparto, \n java.lang.String idTipoPago, \n java.lang.String idEdoCivil, \n java.lang.String idNacionalidad, \n java.lang.String idProfnCarrera, \n java.lang.Integer idNivelEscolar, \n java.lang.Integer idInstEducativa, \n java.lang.Integer idEspProtCivil, \n java.lang.Integer idInstProtcivil, \n java.util.Date fecNotDecPatr, \n java.util.Date fecIniDeclPatr, \n java.util.Date fecIngSpc, \n java.lang.String casoMuestra,\n java.lang.String discapacidad,\n java.lang.String estudiaSiNo,\n java.lang.String padreMadre,\n java.lang.String compatEmpleo,\n java.lang.String usuario,\n java.lang.Integer idInmuebleP,\n java.lang.String plazaTelOfc1,\n java.lang.String plazaExt1) { \n this.curpEmpleado = curpEmpleado;\n this.rfcEmpleado = rfcEmpleado;\n this.primerApellido = primerApellido;\n this.segundoApellido = segundoApellido;\n this.nombreEmpleado = nombreEmpleado;\n this.clabeEmpleado = clabeEmpleado;\n this.idBancoSar = idBancoSar;\n this.ingresoGobFed = ingresoGobFed;\n this.ingresoDependencia = ingresoDependencia;\n this.terminoCargoSind = terminoCargoSind;\n this.imssIssste = imssIssste;\n this.EMailOficial = EMailOficial;\n this.EMailPersonal = EMailPersonal;\n this.idRusp = idRusp;\n this.sistemaReparto = sistemaReparto;\n this.idTipoPago = idTipoPago;\n this.idEdoCivil = idEdoCivil;\n this.idNacionalidad = idNacionalidad;\n this.idProfnCarrera = idProfnCarrera;\n this.idNivelEscolar = idNivelEscolar;\n this.idInstEducativa = idInstEducativa;\n this.idEspProtCivil = idEspProtCivil;\n this.idInstProtcivil = idInstProtcivil;\n this.fecNotDecPatr = fecNotDecPatr;\n this.fecIniDeclPatr = fecIniDeclPatr;\n this.fecIngSpc = fecIngSpc;\n this.casoMuestra = casoMuestra;\n this.discapacidad = discapacidad;\n this.estudiaSiNo = estudiaSiNo;\n this.padreMadre = padreMadre;\n this.compatEmpleo = compatEmpleo;\n this.usuario = usuario;\n this.idInmuebleP = idInmuebleP;\n this.plazaTelOfc1 = plazaTelOfc1;\n this.plazaExt1 = plazaExt1;\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 Achterbahn() {\n }", "public Chauffeur() {\r\n\t}", "private IOferta buildOfertaEjemplo7() {\n\t\tPredicate<Compra> condicion = Predicates.alwaysTrue();\n\t\tFunction<Compra, Float> descuento = new DescuentoEnSegundoProducto(\"11-111-1111\", \"11-111-1112\", 50);\n\t\treturn new OfertaDinero(\"50% en Sprite, comprando 1 Coca\", condicion,\tdescuento);\n\t}", "public Clade() {}", "public Valvula(){}", "public static void main(String[] args) {\n Alumno aaDatos []; // El identificador es nulo\n \n aaDatos = new Alumno[tam];//Creamos un arreglo de 10 \n //alumnos - AQUI HABRA PREGUNTA\n for (int i = 0; i < aaDatos.length; i++) {\n aaDatos[i]= new Alumno(\"Dany\",\"16550518\", 0);//Para cada lugar de arreglo se crea un objeto de la clase alumno\n \n }\n for (Alumno aaDatos1: aaDatos) {\n System.out.println(\"Nombre: \"+ aaDatos1.getsNom());\n System.out.println(\"Marticula: \"+ aaDatos1.getsMatri());\n System.out.println(\"Carrera: \"+ aaDatos1.getiCar());\n \n }\n \n \n //CREAMOS UNA COPIA DEL ARREGLO\n Alumno aaCopiaDatos [];\n aaCopiaDatos = new Alumno [tam];\n \n for (int i = 0; i < aaCopiaDatos.length; i++) {\n aaCopiaDatos[i]= new Alumno(aaDatos[i].getsNom(), // <<<Se llenan todos los datos que pide el constructor por argumentos\n aaDatos[i].getsMatri(), \n aaDatos[i].getiCar());\n \n }\n for (Alumno aaCopiaDatos1 : aaCopiaDatos) {\n System.out.println(\"Nombre: \"+ aaCopiaDatos1.getsNom());\n System.out.println(\"Marticula: \"+ aaCopiaDatos1.getsMatri());\n System.out.println(\"Carrera: \"+ aaCopiaDatos1.getiCar());\n }\n System.out.println(aaDatos);\n System.out.println(aaCopiaDatos);\n }", "public ValorVariavel() {\r\n }", "public ProductoCreable newInstance(int codigo, String nombre){\r\n \r\n }", "private TIPO_REPORTE(String nombre)\r\n/* 55: */ {\r\n/* 56: 58 */ this.nombre = nombre;\r\n/* 57: */ }", "public SiacTCronopElem() {\n\t}", "public FiltroMicrorregiao() {\r\n }", "public Lista() {\r\n }", "public Recursos() {\n }", "public EnsembleLettre() {\n\t\t\n\t}", "public Plato(){\n\t\t\n\t}", "public Diccionario(){\r\n rz=new BinaryTree<Association<String,String>>(null, null, null, null);\r\n llenDic();\r\n tradOra();\r\n }", "public CadastroComplemento() {\n initComponents();\n \n }", "Casilla(String nombre){\n this.nombre=nombre; \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 void crearAtracciones(){\n \n //Añado atracciones tipo A\n for (int i = 0; i < 4 ; i++){\n Atraccion atraccion = new A();\n atracciones.add(atraccion);\n }\n //Añado atracciones tipo B\n for (int i = 0; i < 6 ; i++){\n Atraccion atraccion = new B();\n atracciones.add(atraccion);\n }\n //Añado atracciones tipo C\n for (int i = 0; i < 4 ; i++){\n Atraccion atraccion = new C();\n atracciones.add(atraccion);\n }\n //Añado atracciones tipo D\n for (int i = 0; i < 3 ; i++){\n Atraccion atraccion = new D();\n atracciones.add(atraccion);\n }\n //Añado atracciones tipo E\n for (int i = 0; i < 7 ; i++){\n Atraccion atraccion = new E();\n atracciones.add(atraccion);\n }\n \n }", "public Asiento() {\n\t\tthis(\"asiento\", null);\n\t}", "public Arquero(Casillero casillero){\n this.vida = 75;\n this.danioAUnidad = 15;\n this.danioAEdificio = 10;\n ubicacion = new ArrayList<Casillero>();\n this.ubicacion.add(casillero);\n this.rangoAtaque = 3;\n this.estadoAccion = new EstadoDisponible();\n }", "public Aktie() {\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 UsineJoueur() {}", "public Empleado() { }", "public Retangulo(double[] pLados) {\n super(pLados);\n /* invoca o construtor da classe Pai passando pLados como parametros. */\n }", "private IOferta buildOfertaEjemplo2() {\n\t\tPredicate<Compra> condicion = Predicates.compose(\n\t\t\t\tnew PredicadoDiaSemana(Calendar.THURSDAY),\n\t\t\t\tnew ExtraerFechaCreacion());\n\t\tFunction<Compra, Float> descuento = Functions.compose(\n\t\t\t\tnew DescuentoPorcentual(10.0f), \n\t\t\t\tnew ExtraerTotalBrutoProductos(new PredicadoRubro(\"11\")));\n\t\treturn new OfertaDinero(\"10% descuento comida los jueves\", condicion,\n\t\t\t\tdescuento);\n\t}", "public Composante() {\n\t\tsuper();\n\t\t// TODO Auto-generated constructor stub\n\t}", "public BasicElementList() {\n\t}", "public GenericElement() {\n\t}" ]
[ "0.6847827", "0.67226905", "0.6657198", "0.66085786", "0.6603754", "0.65981287", "0.65848166", "0.6581458", "0.65709174", "0.65637445", "0.6543847", "0.65429586", "0.65407985", "0.65398717", "0.6506328", "0.64864373", "0.6436053", "0.6434138", "0.64288336", "0.6421493", "0.6414771", "0.64098597", "0.6404347", "0.6399089", "0.63984007", "0.6387959", "0.63834167", "0.6376164", "0.6374565", "0.6367619", "0.6358534", "0.63476837", "0.63364446", "0.631351", "0.6310736", "0.6308681", "0.6297405", "0.62969905", "0.6296148", "0.6295563", "0.6290089", "0.62847114", "0.62812734", "0.62810737", "0.62735397", "0.62520564", "0.6249763", "0.624038", "0.623207", "0.62317514", "0.6219693", "0.62138337", "0.62137383", "0.62109023", "0.6202524", "0.620145", "0.6200658", "0.61930317", "0.61846644", "0.6176265", "0.6170628", "0.6161832", "0.6161786", "0.61612135", "0.61611646", "0.61585087", "0.61575025", "0.6154809", "0.61539644", "0.61463183", "0.61453825", "0.6138766", "0.61268616", "0.61227614", "0.6120206", "0.61199397", "0.6116877", "0.6113359", "0.61053014", "0.60987973", "0.6097701", "0.609429", "0.60941803", "0.6089971", "0.6085598", "0.6071365", "0.60709924", "0.60709375", "0.60709083", "0.60667187", "0.60649383", "0.6054542", "0.60495394", "0.6049424", "0.6046922", "0.60379314", "0.60334057", "0.6032122", "0.60270387", "0.60265243", "0.6026031" ]
0.0
-1
Metodo que cambia el color de la figura y del boton "vista previa"
public void cambiarColorCrc() { R1 = slRCrc.getValue(); G1 = slGCrc.getValue(); B1 = slBCrc.getValue(); jRCr.setText("R: " + R1); jVCr.setText("G: " + G1); jACr.setText("B: " + B1); color = new Color(R1,G1,B1); btninfCrc.setBackground(color); btnEditarCrc.setBackground(color); btnPruebaCrc.setBackground(color); btnRegresarCrc.setBackground(color); repaint(); //Metodo que permite que la figura cambie de color en tiempo real }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "RGB getOldColor();", "public Color getPrevColor(){\n\t\treturn prevColor;\n\t}", "RGB getNewColor();", "public void actionPerformed(ActionEvent event) {\r\n\t\t\t\tstatusValue.setText(\"Odbieram\");\r\n\t\t\t\tcolorChangeListener.set_receive(!colorChangeListener\r\n\t\t\t\t\t\t.is_receive());\r\n\t\t\t\ttry {\r\n\t\t\t\t\t// obiekt realizująca zmianę kolorów w wybranych elementach\r\n\t\t\t\t\t// GUI\r\n\t\t\t\t\t\r\n\t\t\t\t\tList<ColorChangeExecutor> executors = new ArrayList<ColorChangeExecutor>();\r\n\t\t\t\t\texecutors.add(ColorChangeExecutorFactory.createCanvasColorChangeExecutor(canvas));\r\n\t\t\t\t\tList<JSlider> sliders = new ArrayList<JSlider>();\r\n\t\t\t\t\tsliders.add(sliderR);\r\n\t\t\t\t\tsliders.add(sliderG);\r\n\t\t\t\t\tsliders.add(sliderB);\r\n\t\t\t\t\texecutors.add(ColorChangeExecutorFactory.createSlidersColorChangeExecutor(sliders));\r\n\t\t\t\t\t\r\n\t\t\t\t\t// metoda uruchamia: @1 watek realizujacy nasluchiwanie na\r\n\t\t\t\t\t// zmiane kolorow @2 watek reagujacy na odbior zmiany koloru\r\n\t\t\t\t\tengine.receiveColor(executors);\r\n\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\tSystem.out.println(this.getClass() + \" \" + e.getClass()\r\n\t\t\t\t\t\t\t+ \" \" + e.getMessage());\r\n\r\n\t\t\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t\t\tSystem.out.println(this.getClass() + \" \" + e.getClass()\r\n\t\t\t\t\t\t\t+ \" \" + e.getMessage());\r\n\t\t\t\t}\r\n\r\n\t\t\t}", "Rey(){\r\n \r\n color_rey=Color.BLANCO;\r\n posicion_rey.fila=1;\r\n posicion_rey.columna='e';\r\n \r\n }", "@Override\n public void onProgressChanged(SeekBar seekBar, int i, boolean bo) {\n int r = sbrRed.getProgress();\n int g = sbrGreen.getProgress();\n int b = sbrBlue.getProgress();\n int a = sbrAlpha.getProgress();\n\n int color = Color.argb(a,r,g,b);\n vieColors.setBackgroundColor(color);\n\n //Toast.makeText(this, \"The new color is: \"+a, Toast.LENGTH_SHORT).show();\n }", "public void decida()\n {\n if(color == Color.red)\n {\n color = Color.yellow;\n }\n \n else if(color == Color.yellow){\n color = Color.red;\n }\n }", "private void yellow(){\n\t\tthis.arretes_fY();\n\t\tthis.coins_fY();\n\t\tthis.coins_a1Y();\n\t\tthis.coins_a2Y();\n\t\tthis.aretes_aY();\n\t\tthis.cube[49] = \"Y\";\n\t}", "public Color recupColor(int nb){\r\n\t\tColor color;\r\n\t\tif(nb == 1){\r\n\t\t\tcolor = Config.colorJ1;\r\n\t\t}\r\n\t\telse if(nb == 2){\r\n\t\t\tcolor = Config.colorJ2;\r\n\t\t}\r\n\t\telse{\r\n\t\t\tcolor =\tConfig.colorVide;\r\n\t\t}\r\n\t\treturn color;\r\n\t}", "private void blue(){\n\t\tthis.arretes_fB();\n\t\tthis.coins_fB();\n\t\tthis.coins_a1B();\n\t\tthis.coins_a2B();\n\t\tthis.aretes_aB();\n\t\tthis.cube[22] = \"B\";\n\t}", "protected void whatColorOfArrows()\n\t{\n\t}", "@Override\r\n\tpublic void howToColor() {\n\t\t\r\n\t}", "public void setPrevColor(Color prevColor){\n\t\tthis.prevColor=prevColor;\n\t}", "void draw() {\n\n // SeamInfo lowestSeam = this.lowestSeamVert();\n // lowestSeam.changeColor();\n\n ComputedPixelImage seamRemovedImg = new ComputedPixelImage(this.newImg.width,\n this.newImg.height);\n int countRow = 0;\n int countCol = 0;\n\n Pixel current = this.curPixel;\n Pixel temp;\n\n while (current.down != null) {\n temp = current.down;\n while (current.right != null) {\n Color c = Color.MAGENTA;\n if (current.highlighted) {\n c = Color.RED;\n }\n else {\n c = current.color;\n }\n if (this.showType.equals(\"e\")) {\n int energy = (int) (current.energy * 100);\n if (energy > 255) {\n System.out.println(\"energy: \" + energy + \" to 255\");\n energy = 255;\n }\n c = new Color(energy, energy, energy);\n }\n else if (this.showType.equals(\"w\")) {\n int weight = (int) (current.seam.totalWeight);\n if (weight > 255) {\n System.out.println(\"weight: \" + weight + \" to 255\");\n weight = 255;\n }\n c = new Color(weight, weight, weight);\n }\n\n seamRemovedImg.setColorAt(countCol, countRow, c);\n countCol += 1;\n current = current.right;\n }\n countCol = 0;\n countRow += 1;\n current = temp;\n }\n countCol = 0;\n\n this.newImg = seamRemovedImg;\n\n }", "public void modCasella(Tauler t){\n if(valor != -1){\n this.setBackground(Color.RED);\n valor = -1;\n t.subMov();\n }\n else{\n valor = 0;\n this.setBackground(color);\n t.addMov();\n }\n }", "@Override\n public void changeColor(ColorEvent ce) {\n \n txtRed.setText(\"\"+ ce.getColor().getRed());\n txtGreen.setText(\"\"+ ce.getColor().getGreen());\n txtBlue.setText(\"\"+ ce.getColor().getBlue());\n \n \n }", "public void changeColor(){\r\n if(color == 1)\r\n color = 2;\r\n else\r\n color = 1;\r\n }", "void setColor(){\n this.objectColour = new Color(rValue,gValue,bValue,timeToLive).brighter();\n }", "private void changeColors(){\n \n Color vaccanceColor = vaccance.getValue();\n String vaccRGB = getRGB(vaccanceColor);\n databaseHandler.setTermColor(\"vaccance\", vaccRGB);\n \n Color travailColor = travail.getValue();\n String travailRGB = getRGB(travailColor);\n databaseHandler.setTermColor(\"travail\", travailRGB);\n \n Color AnnivColor = anniverssaire.getValue();\n String summerSemRGB = getRGB(AnnivColor);\n databaseHandler.setTermColor(\"annivessaire\", summerSemRGB);\n \n Color formationColor = formation.getValue();\n String formationRGB = getRGB(formationColor);\n databaseHandler.setTermColor(\"formation\", formationRGB);\n \n Color workshopColor = workshop.getValue();\n String workshopRGB = getRGB(workshopColor);\n databaseHandler.setTermColor(\"workshop\", workshopRGB);\n \n Color certifColor = certif.getValue();\n String certifRGB = getRGB(certifColor);\n databaseHandler.setTermColor(\"certif\", certifRGB);\n \n Color importantColor = important.getValue();\n String importantRGB = getRGB(importantColor);\n databaseHandler.setTermColor(\"important\", importantRGB);\n \n Color urgentColor = urgent.getValue();\n String allHolidayRGB = getRGB(urgentColor);\n databaseHandler.setTermColor(\"urgent\", allHolidayRGB);\n \n \n \n }", "@Override\n public void update(int n, int n2) {\n void mouseY;\n void mouseX;\n super.update((int)mouseX, (int)mouseY);\n float[] hsb = Color.RGBtoHSB(this.setting.getValue().getRed(), this.setting.getValue().getGreen(), this.setting.getValue().getBlue(), null);\n double difference = Math.min(95, Math.max(0, (int)(mouseX - this.getX())));\n this.hueWidth = Float.intBitsToFloat(Float.floatToIntBits(0.012939732f) ^ 0x7EEB012B) * (hsb[0] * Float.intBitsToFloat(Float.floatToIntBits(0.22324012f) ^ 0x7DD0990F) / Float.intBitsToFloat(Float.floatToIntBits(0.07544195f) ^ 0x7E2E814F));\n this.satWidth = Float.intBitsToFloat(Float.floatToIntBits(0.009555363f) ^ 0x7EA18E19) * (hsb[1] * Float.intBitsToFloat(Float.floatToIntBits(0.021556562f) ^ 0x7F049763) / Float.intBitsToFloat(Float.floatToIntBits(0.026331188f) ^ 0x7F63B481));\n this.briWidth = Float.intBitsToFloat(Float.floatToIntBits(0.02392782f) ^ 0x7E790447) * (hsb[2] * Float.intBitsToFloat(Float.floatToIntBits(0.09763377f) ^ 0x7E73F437) / Float.intBitsToFloat(Float.floatToIntBits(0.019418718f) ^ 0x7F2B1401));\n this.alphaWidth = Float.intBitsToFloat(Float.floatToIntBits(0.010174015f) ^ 0x7E9BB0E9) * ((float)this.setting.getValue().getAlpha() / Float.intBitsToFloat(Float.floatToIntBits(0.0089911735f) ^ 0x7F6C4FB7));\n this.changeColor(difference, new Color(Color.HSBtoRGB((float)(difference / Double.longBitsToDouble(Double.doubleToLongBits(0.15404371830294214) ^ 0x7F9477B45E21F7BFL) * Double.longBitsToDouble(Double.doubleToLongBits(0.050973544293479105) ^ 0x7FDC99345367453FL) / Double.longBitsToDouble(Double.doubleToLongBits(0.03014217321508198) ^ 0x7FE85D9700C1AF0AL)), hsb[1], hsb[2])), new Color(Color.HSBtoRGB(Float.intBitsToFloat(Float.floatToIntBits(1.8279414E38f) ^ 0x7F0984DF), hsb[1], hsb[2])), this.hueDragging);\n this.changeColor(difference, new Color(Color.HSBtoRGB(hsb[0], (float)(difference / Double.longBitsToDouble(Double.doubleToLongBits(0.1223112785883676) ^ 0x7FE88FCABD780F54L) * Double.longBitsToDouble(Double.doubleToLongBits(0.026943886254004668) ^ 0x7FED172D9927021DL) / Double.longBitsToDouble(Double.doubleToLongBits(0.05427001644334754) ^ 0x7FDD4947938E1C55L)), hsb[2])), new Color(Color.HSBtoRGB(hsb[0], Float.intBitsToFloat(Float.floatToIntBits(1.1082437E38f) ^ 0x7EA6BFFF), hsb[2])), this.saturationDragging);\n this.changeColor(difference, new Color(Color.HSBtoRGB(hsb[0], hsb[1], (float)(difference / Double.longBitsToDouble(Double.doubleToLongBits(0.12328622126775308) ^ 0x7FE84FAF90647595L) * Double.longBitsToDouble(Double.doubleToLongBits(0.09854681448488288) ^ 0x7FCFBA5D315669BFL) / Double.longBitsToDouble(Double.doubleToLongBits(0.029067112480345214) ^ 0x7FEB43C4E5F80CC0L)))), new Color(Color.HSBtoRGB(hsb[0], hsb[1], Float.intBitsToFloat(Float.floatToIntBits(3.3573391E38f) ^ 0x7F7C9400))), this.brightnessDragging);\n this.changeAlpha(difference, (float)(difference / Double.longBitsToDouble(Double.doubleToLongBits(0.014823398455503097) ^ 0x7FD99BBADCA7DC11L) * Double.longBitsToDouble(Double.doubleToLongBits(0.013271171619186513) ^ 0x7FE4CDEA80AC0D24L) / Double.longBitsToDouble(Double.doubleToLongBits(0.08218747250746601) ^ 0x7FDAEA3CFA8F7AADL)), this.alphaDragging);\n }", "private int getCurrentMainColor () {\n int translatedHue = 255 - ( int ) ( mCurrentHue * 255 / 360 );\n int index = 0;\n for ( float i = 0; i < 256; i += 256 / 42 ) {\n if ( index == translatedHue )\n return Color.rgb( 255, 0, ( int ) i );\n index++;\n }\n for ( float i = 0; i < 256; i += 256 / 42 ) {\n if ( index == translatedHue )\n return Color.rgb( 255 - ( int ) i, 0, 255 );\n index++;\n }\n for ( float i = 0; i < 256; i += 256 / 42 ) {\n if ( index == translatedHue )\n return Color.rgb( 0, ( int ) i, 255 );\n index++;\n }\n for ( float i = 0; i < 256; i += 256 / 42 ) {\n if ( index == translatedHue )\n return Color.rgb( 0, 255, 255 - ( int ) i );\n index++;\n }\n for ( float i = 0; i < 256; i += 256 / 42 ) {\n if ( index == translatedHue )\n return Color.rgb( ( int ) i, 255, 0 );\n index++;\n }\n for ( float i = 0; i < 256; i += 256 / 42 ) {\n if ( index == translatedHue )\n return Color.rgb( 255, 255 - ( int ) i, 0 );\n index++;\n }\n return Color.RED;\n }", "public void PrevTurn(){\n currentTurn = currentTurn.getAnterior();\n String turno = (String) currentTurn.getDato();\n String info[] = turno.split(\"#\");\n\n int infoIn = 4;\n for (int i = 0; i < 10; i++, infoIn += 1) {\n label_list[i].setIcon(new ImageIcon(info[infoIn]));\n this.screen.add(label_list[i]);\n }\n HP.setText(\"HP: \"+info[2]);\n action.setText(\"Action: \"+info[1]);\n mana.setText(\"Mana: \"+info[3]);\n game.setText(\"Game \"+String.valueOf(partidaNum)+\", Turn \"+info[0]);\n\n VerifyButtons();\n\n }", "@Override\n\tpublic void changeColor2(Color color) {\n\n\t}", "private void red(){\n\t\tthis.arretes_fR();\n\t\tthis.coins_fR();\n\t\tthis.coins_a1R();\n\t\tthis.coins_a2R();\n\t\tthis.aretes_aR();\n\t\tthis.cube[13] = \"R\";\n\t}", "private void green(){\n\t\tthis.arretes_fG();\n\t\tthis.coins_fG();\n\t\tthis.coins_a1G();\n\t\tthis.coins_a2G();\n\t\tthis.aretes_aG();\n\t\tthis.cube[31] = \"G\";\n\t}", "public void Color() {\n\t\t\r\n\t}", "@Override\r\n public void onProgressChanged(SeekBar seekBar, int progress,\r\n boolean fromUser) {\n fade = seeker.getProgress();\r\n if(!getLucky) {\r\n Log.i(\"Poop\", \"getLucky == false\");\r\n hold = ColorFinder.kindFinder(color, gotColor1);\r\n test = ColorFinder.kindFinder(color2, gotColor2);\r\n token = new StringTokenizer(hold);\r\n smoken = new StringTokenizer(test);\r\n redTotal = (int) ColorFinder.colorFinder(Integer.parseInt(token.nextToken())\r\n , Integer.parseInt(smoken.nextToken()), fade);\r\n greenTotal = (int) ColorFinder.colorFinder(Integer.parseInt(token.nextToken()),\r\n Integer.parseInt(smoken.nextToken()), fade);\r\n blueTotal = (int) ColorFinder.colorFinder((Integer.parseInt(token.nextToken()))\r\n , Integer.parseInt(smoken.nextToken()), fade);\r\n hex = ColorFinder.changeColor(redTotal, greenTotal, blueTotal);\r\n colorBlend.setBackgroundColor(hex);\r\n } else if(getLucky && gotColor2){\r\n Log.i(\"Poop\", \"getLuck == true and gotColor2 ==true\");\r\n hold = ColorFinder.randomColorFinder(ran, dom, ness);\r\n test = ColorFinder.kindFinder(color2, gotColor2);\r\n token = new StringTokenizer(hold);\r\n smoken = new StringTokenizer(test);\r\n redTotal = (int) ColorFinder.colorFinder(Integer.parseInt(token.nextToken())\r\n , Integer.parseInt(smoken.nextToken()), fade);\r\n greenTotal = (int) ColorFinder.colorFinder(Integer.parseInt(token.nextToken()),\r\n Integer.parseInt(smoken.nextToken()), fade);\r\n blueTotal = (int) ColorFinder.colorFinder((Integer.parseInt(token.nextToken()))\r\n , Integer.parseInt(smoken.nextToken()), fade);\r\n hex = ColorFinder.changeColor(redTotal, greenTotal, blueTotal);\r\n colorBlend.setBackgroundColor(hex);\r\n } else if(getLucky && gotColor1) {\r\n Log.i(\"Poop\", \"getLucky == true and gotColor1 == true\");\r\n hold = ColorFinder.kindFinder(color, gotColor1);\r\n test = ColorFinder.randomColorFinder(fus, ro, dah);\r\n token = new StringTokenizer(hold);\r\n smoken = new StringTokenizer(test);\r\n redTotal = (int) ColorFinder.colorFinder(Integer.parseInt(token.nextToken())\r\n , Integer.parseInt(smoken.nextToken()), fade);\r\n greenTotal = (int) ColorFinder.colorFinder(Integer.parseInt(token.nextToken()),\r\n Integer.parseInt(smoken.nextToken()), fade);\r\n blueTotal = (int) ColorFinder.colorFinder((Integer.parseInt(token.nextToken()))\r\n , Integer.parseInt(smoken.nextToken()), fade);\r\n hex = ColorFinder.changeColor(redTotal, greenTotal, blueTotal);\r\n colorBlend.setBackgroundColor(hex);\r\n } else {\r\n Log.i(\"Poop\", \"getLucky == true and nothing else\");\r\n hold = ColorFinder.randomColorFinder(ran, dom, ness);\r\n test = ColorFinder.randomColorFinder(fus, ro, dah);\r\n token = new StringTokenizer(hold);\r\n smoken = new StringTokenizer(test);\r\n redTotal = (int) ColorFinder.colorFinder(Integer.parseInt(token.nextToken())\r\n , Integer.parseInt(smoken.nextToken()), fade);\r\n greenTotal = (int) ColorFinder.colorFinder(Integer.parseInt(token.nextToken()),\r\n Integer.parseInt(smoken.nextToken()), fade);\r\n blueTotal = (int) ColorFinder.colorFinder((Integer.parseInt(token.nextToken()))\r\n , Integer.parseInt(smoken.nextToken()), fade);\r\n hex = ColorFinder.changeColor(redTotal, greenTotal, blueTotal);\r\n colorBlend.setBackgroundColor(hex);\r\n }\r\n if(gotColor1&& gotColor2) {\r\n getLucky = false;\r\n }\r\n }", "public void chooseColor() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}", "@Override\n public Color getColor() {\n return Utils.Pion.BLANC.getCouleur();\n }", "@Override\n public void ejecutarFrame() {\n //INICIAMOS EL HILO\n try{\n Thread.sleep(250);\n }\n catch (InterruptedException ie){\n ie.printStackTrace();\n }\n\n //VAMOS CAMBIANDO EL COLOR DE LAS LETRAS DE LA PANTALLA DE INICIO\n colorLetra = colorLetra == Color.WHITE ? Color.LIGHT_GRAY : Color.WHITE;\n }", "public void bolita2() {\n fill(colores[f]); // Color random seg\\u00fan array anteriormente mencionado.\n noStroke();\n ellipse(y, x, a, b);\n }", "protected void tourne() {\n\t\tint direction = ev3.getDirection();\n\t\twhile (seenColor != ev3.SUIVRE) {\n\t\t\tev3.tourne(direction);\n\t\t\tev3.setCourbe(ev3.getCourbe() + 1);\n\t\t\tseenColor = find.whatColor(ev3.lireColor());\n\t\t\tif (ev3.getCourbe() % 10 == 0) {\n\t\t\t\tgeorges = 0;\n\t\t\t}\n\t\t}\n\t}", "public void movimiento(Point inicio,Point llegada, String color, int nomFicha){\n \n /*if(this.tablero[inicio.x][inicio.y]==0){\n JOptionPane.showMessageDialog(null, \"no hay nada en esa posición\");\n }*/\n \n this.tablero[inicio.x][inicio.y]=0;\n this.tablero[llegada.x][llegada.y]=nomFicha;\n if (color==\"blanco\"){\n this.posiBlancas[inicio.x][inicio.y]=0;\n this.posiBlancas[llegada.x][llegada.y]=nomFicha;\n this.posiNegras[llegada.x][llegada.y]=0;\n }else{\n this.posiNegras[inicio.x][inicio.y]=0;\n this.posiNegras[llegada.x][llegada.y]=nomFicha;\n this.posiBlancas[llegada.x][llegada.y]=0;\n }\n\n }", "@Override\n public String getType() {\n return \"Color change\";\n }", "Color userColorChoose();", "private void trocaCor(int btn) {\n bt_Home.setColorFilter(getResources().getColor(R.color.white));\n bt_Resultado.setColorFilter(getResources().getColor(R.color.white));\n bt_Triangulo.setColorFilter(getResources().getColor(R.color.white));\n bt_Compatibilidade.setColorFilter(getResources().getColor(R.color.white));\n bt_Arcanos.setColorFilter(getResources().getColor(R.color.white));\n bt_Descricao.setColorFilter(getResources().getColor(R.color.white));\n bt_Home.setColorFilter(getResources().getColor(R.color.white));\n // COR PARA PRAGMENTO DESATIVO\n\n // COR PARA FRAGMENTO ATIVO\n ImageButton bt = findViewById(btn);\n bt.setColorFilter(getResources().getColor(R.color.TODO));\n // COR PARA FRAGMENTO ATIVO\n }", "void changeResumeButtonColor(Color color);", "public void colorearSecuencialAlternativo() {\n\t\tint color;\n\t\tcantColores = 0;\n\t\tfor (int i = 0; i < cantNodos; i++) {\n\t\t\tcolor = 1;\n\t\t\t/** Mientras el color no se pueda usar, elijo otro color **/\n\t\t\twhile (!sePuedeColorear(i, color))\n\t\t\t\tcolor++;\n\n\t\t\tnodos.get(i).setColor(color);\n\n\t\t\tif (color > cantColores)\n\t\t\t\tcantColores = color;\n\t\t}\n\t}", "private void lineColor() {\n\n\t}", "public void onUpdateColor() {\n getVertexBufferObject().onUpdateColor(this);\n }", "public void switchColor(){\r\n System.out.println(color);\r\n if(color==\"W\"){\r\n color=\"B\";\r\n System.out.println(color);\r\n }else{ \r\n color=\"W\";\r\n } \r\n }", "public abstract void setCurForeground(Color colr);", "int getColour();", "public void blue() {\n g2.setPaint(Color.blue);\r\n }", "public LightBulb(int red, int green,int blue){\r\n _switchedOn=false;\r\n\t\tif ((red < 0)||(red > 255)||(green < 0)||(green > 255)||(blue < 0)\r\n\t\t\t\t||(blue > 255)){\r\n\t\t\t_color = new RGBColor();\r\n\t\t}\r\n\t\telse {\r\n\t\t\t_color = new RGBColor(red, green, blue);\r\n\t\t}\r\n\t\r\n }", "public static void setNodeBackFixedColor( Color color ) { BACK_FIXED_COLOR = color; }", "public void PrevGame(){\n partidaNum --;\n current = current.getAnterior();\n ListaDoble partida = (ListaDoble) current.getDato();\n currentTurn = partida.getInicio();\n String turno = (String) currentTurn.getDato();\n String info[] = turno.split(\"#\");\n\n int infoIn = 4;\n for (int i = 0; i < 10; i++, infoIn += 1) {\n label_list[i].setIcon(new ImageIcon(info[infoIn]));\n this.screen.add(label_list[i]);\n }\n HP.setText(\"HP: \"+info[2]);\n action.setText(\"Action: \"+info[1]);\n mana.setText(\"Mana: \"+info[3]);\n game.setText(\"Game \"+String.valueOf(partidaNum)+\", Turn \"+info[0]);\n\n VerifyButtons();\n\n }", "public void switchColor() {\r\n\t\tcolor = !color;\r\n\t}", "public void setDataColor(Color c)\r\n/* 48: */ {\r\n/* 49: 36 */ this.ballColor = c;repaint();\r\n/* 50: */ }", "public static void setBlue() {\r\n playerTeam.setColor(blue);\r\n updateMessage(\"Seu time agora é azul\");\r\n }", "Color getCor();", "private void updateMainColors () {\n int mainColor = getCurrentMainColor();\n int index = 0;\n int[] topColors = new int[256];\n for ( int y = 0; y < 256; y++ ) {\n for ( int x = 0; x < 256; x++ ) {\n if ( y == 0 ) {\n mMainColors[index] = Color.rgb( 255 - ( 255 - Color.red( mainColor ) ) * x / 255, 255 - ( 255 - Color.green( mainColor ) ) * x / 255, 255 - ( 255 - Color.blue( mainColor ) ) * x / 255 );\n topColors[x] = mMainColors[index];\n } else\n mMainColors[index] = Color.rgb( ( 255 - y ) * Color.red( topColors[x] ) / 255, ( 255 - y ) * Color.green( topColors[x] ) / 255, ( 255 - y ) * Color.blue( topColors[x] ) / 255 );\n index++;\n }\n }\n }", "public void stateChanged(ChangeEvent e) {\n\t\tif (!_receive) {\r\n\t\t\t// jesli nastapila zmiana na suwaku nastepuej odczyt wart z\r\n\t\t\t// wszystkich suwakow, utworzenie koloru i umieszczenie go w kolejce\r\n\t\t\tColor col = new Color(canvas.getBackground().getRed(), canvas.getBackground().getGreen(),\r\n\t\t\t\t\tcanvas.getBackground().getBlue());\r\n\t\t\tColorQueue.getInstance().putColor(col);\r\n\t\t}\r\n\r\n\t}", "public Color getCurrentColor();", "public void RGB_Change(View view) {\r\n int [] color= {0,0,0};\r\n\r\n adb= new AlertDialog.Builder(this);\r\n adb.setCancelable(false);\r\n adb.setTitle(\"Core Colors Change\");\r\n adb.setItems(colors, new DialogInterface.OnClickListener() {\r\n @Override\r\n public void onClick(DialogInterface dialog, int which) {\r\n color[which]=255;\r\n lL.setBackgroundColor(Color.rgb(color[0],color[1],color[2]));\r\n }\r\n });\r\n adb.setPositiveButton(\"Exit\", new DialogInterface.OnClickListener() {\r\n @Override\r\n public void onClick(DialogInterface dialog, int which) {\r\n\r\n }\r\n });\r\n AlertDialog ad=adb.create();\r\n ad.show();\r\n }", "public static void update(){\n\t\t\n\t\tgraphFrame.setColor(color);\n\t}", "public GameColor getColor();", "public abstract void setCurBackground(Color colr);", "public void actionPerformed(ActionEvent e) {\n float zufall = (float) Math.random(); \n Color grauton = new Color(zufall,zufall,zufall);\n c.setBackground(grauton); // Zugriff auf c moeglich, da\n }", "public void BPrimeEvent(ArrayList<ArrayList<Shape>> faces) {\r\n \tint u1 = CUBE1, l1 = CUBE7, b1 = CUBE9, r1 = CUBE3;\r\n \tfor(int i = 0; i < 3; i++) {\r\n \t\tColor color = faces.get(TOP).get(u1).getColor();\r\n \tfaces.get(TOP).get(u1).changeColor(faces.get(LEFT).get(l1).getColor());\r\n \tfaces.get(LEFT).get(l1).changeColor(faces.get(BOTTOM).get(b1).getColor());\r\n \tfaces.get(BOTTOM).get(b1).changeColor(faces.get(RIGHT).get(r1).getColor());\r\n \tfaces.get(RIGHT).get(r1).changeColor(color);\r\n \tu1++;\r\n \tl1 -= SHIFT_ROW;\r\n \tb1--;\r\n \tr1 += SHIFT_ROW;\r\n \t\r\n \t} \r\n \r\n \tColor color = faces.get(BACK).get(CUBE1).getColor();\r\n \tfaces.get(BACK).get(CUBE1).changeColor(faces.get(BACK).get(CUBE3).getColor());\r\n \tfaces.get(BACK).get(CUBE3).changeColor(faces.get(BACK).get(CUBE9).getColor());\r\n \tfaces.get(BACK).get(CUBE9).changeColor(faces.get(BACK).get(CUBE7).getColor());\r\n \tfaces.get(BACK).get(CUBE7).changeColor(color);\r\n \tcolor = faces.get(BACK).get(CUBE2).getColor();\r\n \tfaces.get(BACK).get(CUBE2).changeColor(faces.get(BACK).get(CUBE6).getColor());\r\n \tfaces.get(BACK).get(CUBE6).changeColor(faces.get(BACK).get(CUBE8).getColor());\r\n \tfaces.get(BACK).get(CUBE8).changeColor(faces.get(BACK).get(CUBE4).getColor());\r\n \tfaces.get(BACK).get(CUBE4).changeColor(color);\r\n }", "public void update(Color col){\n\t\tfloat grayScale = ((float)(col.getRed() * 0.30 / 255 + col.getGreen() * 0.59 / 255 + col.getBlue() * 0.11 / 255));\t\n\t\tcolor.setBackground(col);\n\t\tgray.setBackground(new Color(grayScale, grayScale, grayScale));\n\t}", "@Override\n public void addHSV(float H, float S, float V) {\n\n }", "private void balancearAgrega(Vertice<T> v){\n\tif(v == this.raiz){\n\t v.color = Color.NEGRO;\n\t return;\n\t}else if(v.padre.getColor() == Color.NEGRO){\n\t return;\n\t}\n\tVertice<T> abuelo = v.padre.padre;\n\tif(v.padre == abuelo.derecho){\n\t if(abuelo.izquierdo != null &&\n\t abuelo.izquierdo.getColor() == Color.ROJO){\n\t\tv.padre.color = Color.NEGRO;\n\t\tabuelo.izquierdo.color = Color.NEGRO;\n\t\tabuelo.color = Color.ROJO;\n\t\tbalancearAgrega(abuelo);\n\t\treturn;\t \n\t }else if(v.padre.izquierdo == v){\n\t\tVertice<T> v2 = v.padre;\n\t\tsuper.giraDerecha(v.padre);\n\t\tbalancearAgrega(v2); \n\t }else if(v.padre.derecho == v){\n\t\tv.padre.color = Color.NEGRO;\n\t\tabuelo.color = Color.ROJO;\n\t\tsuper.giraIzquierda(abuelo);\n\t }\n\t}else if(v.padre == abuelo.izquierdo){\n\t if(abuelo.derecho != null &&\n\t abuelo.derecho.getColor() == Color.ROJO){\n\t\tv.padre.color = Color.NEGRO;\n\t\tabuelo.derecho.color = Color.NEGRO;\n\t\tabuelo.color = Color.ROJO;\n\t\tbalancearAgrega(abuelo);\n\t\treturn;\n\t }else if(v.padre.derecho == v){\n\t\tVertice<T> v2 = v.padre;\n\t\tsuper.giraIzquierda(v.padre);\n\t\tbalancearAgrega(v2); \n\t \n\t }else if(v.padre.izquierdo == v){\n\t\tv.padre.color = Color.NEGRO;\n\t\tabuelo.color = Color.ROJO;\n\t\tsuper.giraDerecha(abuelo);\n\t }\n\t} \t\n\t\n }", "public int getColor();", "public int getColor();", "int getHighLightColor();", "private Color couleurOfficiel( int numeroDeCouleur) {\n\t\tif(numeroDeCouleur ==1) {\n\n\t\t\treturn new Color(230,57,70);\n\t\t}\n\n\t\tif(numeroDeCouleur ==2) {\n\n\t\t\treturn new Color(241,250,238);\n\t\t}\n\t\tif(numeroDeCouleur ==3) {\n\n\t\t\treturn new Color(168,218,220);\n\t\t}\n\t\tif(numeroDeCouleur ==4) {\n\n\t\t\treturn new Color(168,218,220);\n\t\t}\n\t\telse {\n\t\t\treturn new Color(29,53,87);\n\t\t}\n\n\t}", "public void modeColor(Graphics2D g2d) { g2d.setColor(RTColorManager.getColor(\"label\", \"default\")); }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tlp.drawColor = Color.RED;\n\t\t\t}", "public Color4 getEffectColorAdd();", "private void jBtnFarbwahlActionPerformed(ActionEvent evt) {\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\t\t\t\t\t\t// klassen-methode showDialog (..) von JColorCooser, aufruf über den Klassennamen, ohne erzeugte instanz der klasse..\n\t\tfarbe = JColorChooser.showDialog(null, \"Wähle neue zeichenfarbe\", Color.black);\t\t\t\t\t\t\t\t\t\t\t\t\t\t// .. mit parameter: eltern-komponente oder null, titel-text für dialogfenster, anfangsfarbe \n\t\tjColorPanel.setBackground(farbe);\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// vom zusätzlichen kleinen farbauswahl-panel wird die intergrundfarbe auf die aktuelle zeichenfarbe gesetzt + diese so im frame angezeigt\t\t\t\t\t\t\n\t}", "@Override\n\tpublic void setColour(float r, float g, float b) {\n\n\t}", "public void visualChange();", "public LightBulb(RGBColor color){\r\n _color = new RGBColor(color);\r\n }", "@Override\n public void onColorChange(int color) {\n int r = Color.red(color);\n int g = Color.green(color);\n int b = Color.blue(color);\n Log.w(\"CameraEngineActivity\", \"R:\" + r + \" G:\" + g + \" B:\" + b);\n colorText.setBackgroundColor(color);\n }", "public void revertColor()\r\n\t{\r\n\t\tif (savedColor != null)\r\n\t\t{\r\n\t\t\tg.setColor(savedColor);\r\n\t\t}\r\n\t}", "public void green() {\n g2.setPaint(Color.green);\r\n }", "@FXML\r\n private void CambiarColor(ActionEvent event){\r\n \r\n \r\n \r\n g.setFill(Color.rgb((int) (Math.random()*255),(int) (Math.random()*255),(int) (Math.random()*255)));\r\n g.fillPolygon(x, y, 3); // Triangulo //\r\n g.fillOval(150, 70, 90, 90); // Circulo //\r\n g.strokeRect(10, 45, 45, 45); // Cuadrado todavia no funciona //\r\n \r\n \r\n }", "public Color getColor()\r\n {\r\n return currentColor;\r\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tlp.drawColor = Color.BLUE;\n\t\t\t}", "public String getColor() {\n\t\treturn \"Elcolor del vehiculo es: \"+color; \n\t }", "public void\nsetEmissiveElt( SbColor color )\n\n{\n coinstate.emissive.copyFrom(color);\n}", "public void red() {\n g2.setPaint(Color.red);\r\n }", "void hueUpdated() {\n\t\t\tfloat sin120 = (float) (Math.sqrt(3.) / 2.);\n\t\t\tfloat cos120 = -0.5f;\n\n\t\t\t// corners of the triangle\n\n\t\t\tax = (float) Math.cos(hue * 2 * Math.PI);\n\t\t\tay = (float) Math.sin(hue * 2 * Math.PI);\n\n\t\t\tcx = ax * cos120 - ay * sin120;\n\t\t\tcy = ax * sin120 + ay * cos120;\n\n\t\t\tbx = cx * cos120 - cy * sin120;\n\t\t\tby = cx * sin120 + cy * cos120;\n\n\t\t\tupdateGeometry();\n\t\t}", "public void k() {\n float f2 = BitmapDescriptorFactory.HUE_RED;\n for (float f3 : this.i) {\n if (f3 > BitmapDescriptorFactory.HUE_RED) {\n f2 += f3;\n }\n }\n if (f2 != BitmapDescriptorFactory.HUE_RED) {\n int length = this.i.length;\n for (int i2 = 0; i2 < length; i2++) {\n float[] fArr = this.i;\n if (fArr[i2] > BitmapDescriptorFactory.HUE_RED) {\n fArr[i2] = fArr[i2] / f2;\n }\n }\n }\n }", "public int colorVertices();", "public void getColor() {\n\t\tPoint point = MouseInfo.getPointerInfo().getLocation();\n\t\trobot.mouseMove(point.x, point.y);\n\t\tColor color = robot.getPixelColor(point.x, point.y);\n//\t\tSystem.out.println(color);\n\t}", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tsetBackground(color);\t\r\n\t\t\t\tvazioSouth.setBackground(color);\r\n\t\t\t\tvazioEast.setBackground(color);\r\n\t\t\t\tbtsPaintJPanel.setBackground(color);\r\n\t\t\t\tbotaoJPanel.setBackground(color);\r\n\t\t\t}", "public void setColorAccordingToAge() {\n float brightness = (float) Math.max(0f, Math.min(1f, getLifetime() / fullbrightnessLifetime));\n Color color = Color.getHSBColor(.5f, 1f, brightness);\n setColor(color);\n }", "@Override\n public void onChooseColor(int position, int color) {\n int red = Color.red(color);\n int green = Color.green(color);\n int blue = Color.blue(color);\n Log.e(\"rgb\", \"\" + red + \" \" + green + \" \" + blue);\n }", "public Circulo() {\r\n setLayout(null);\r\n setTitle(\"Figurative\");\r\n menubarcrc = new JMenuBar();\r\n setJMenuBar(menubarcrc);\r\n getContentPane().setBackground(fondoCro);\r\n\r\n // Creacion del pequeño menu\r\n menu1crc = new JMenu(\"Opciones\");\r\n menubarcrc.add(menu1crc);\r\n menu2crc = new JMenu(\"Tema\");\r\n menu1crc.add(menu2crc);\r\n jmi1crc = new JMenuItem(\"Claro\");\r\n menu2crc.add(jmi1crc);\r\n jmi1crc.addActionListener(this);\r\n jmi2crc = new JMenuItem(\"Oscuro\");\r\n menu2crc.add(jmi2crc);\r\n jmi2crc.addActionListener(this);\r\n\r\n // Creacion de los sliders\r\n slRCrc = new JSlider();\r\n slRCrc.setBounds(115, 360, 255, 15);\r\n slRCrc.setBackground(new Color(245, 245, 245));\r\n slRCrc.setValue(0);\r\n slRCrc.setMaximum(255);\r\n slRCrc.setMajorTickSpacing(1);\r\n\r\n // Metodo que implementa la funcion de los sliders\r\n slRCrc.addChangeListener(new javax.swing.event.ChangeListener() {\r\n @Override\r\n public void stateChanged(ChangeEvent sRc) {\r\n cambiarColorCrc();\r\n }\r\n });\r\n\r\n add(slRCrc);\r\n\r\n slGCrc = new JSlider();\r\n slGCrc.setBounds(115, 410, 255, 15);\r\n slGCrc.setBackground(new Color(245, 245, 245));\r\n slGCrc.setValue(0);\r\n slGCrc.setMaximum(255);\r\n slGCrc.setMajorTickSpacing(1);\r\n add(slGCrc);\r\n\r\n slGCrc.addChangeListener(new javax.swing.event.ChangeListener() {\r\n @Override\r\n public void stateChanged(ChangeEvent sRc) {\r\n cambiarColorCrc();\r\n }\r\n });\r\n\r\n slBCrc = new JSlider();\r\n slBCrc.setBounds(115, 454, 255, 15);\r\n slBCrc.setBackground(new Color(245, 245, 245));\r\n slBCrc.setValue(0);\r\n slBCrc.setMaximum(255);\r\n slBCrc.setMajorTickSpacing(1);\r\n add(slBCrc);\r\n slBCrc.addChangeListener(new javax.swing.event.ChangeListener() {\r\n @Override\r\n public void stateChanged(ChangeEvent sRc) {\r\n cambiarColorCrc();\r\n }\r\n });\r\n\r\n // Creacion de los componentes del JFrame\r\n jl1c = new JLabel(\"Figura seleccionada: Circulo\");\r\n jl1c.setBounds(85, 40, 250, 20);\r\n jl1c.setFont(new Font(\"Verdana\", Font.BOLD, 14));\r\n jl1c.setForeground(new Color(0, 0, 0));\r\n add(jl1c);\r\n\r\n jl12c = new JLabel(\"Radio: \");\r\n jl12c.setBounds(40, 77, 250, 20);\r\n jl12c.setForeground(new Color(0, 0, 0));\r\n jl12c.setFont(new Font(\"Verdana\", Font.BOLD, 13));\r\n add(jl12c);\r\n\r\n jl2c = new JLabel(\"Fórmula: πr²\");\r\n jl2c.setBounds(40, 178, 250, 20);\r\n jl2c.setForeground(new Color(0, 0, 0));\r\n jl2c.setFont(new Font(\"Verdana\", Font.BOLD, 14));\r\n add(jl2c);\r\n\r\n jlDiametro = new JLabel(\"Diametro: \");\r\n jlDiametro.setBounds(40, 218, 250, 20);\r\n jlDiametro.setForeground(new Color(0, 0, 0));\r\n jlDiametro.setFont(new Font(\"Verdana\", Font.BOLD, 13));\r\n add(jlDiametro);\r\n\r\n jl3c = new JLabel(\"Perimetro: \");\r\n jl3c.setBounds(40, 263, 250, 20);\r\n jl3c.setForeground(new Color(0, 0, 0));\r\n jl3c.setFont(new Font(\"Verdana\", Font.BOLD, 13));\r\n add(jl3c);\r\n\r\n jl4c = new JLabel(\"Area: \");\r\n jl4c.setBounds(40, 308, 250, 20);\r\n jl4c.setForeground(new Color(0, 0, 0));\r\n jl4c.setFont(new Font(\"Verdana\", Font.BOLD, 13));\r\n add(jl4c);\r\n\r\n jl5c = new JLabel(\"Rojo: \");\r\n jl5c.setBounds(40, 353, 250, 20);\r\n jl5c.setForeground(new Color(0, 0, 0));\r\n jl5c.setFont(new Font(\"Verdana\", Font.BOLD, 13));\r\n add(jl5c);\r\n\r\n jl6c = new JLabel(\"Verde: \");\r\n jl6c.setBounds(40, 404, 250, 20);\r\n jl6c.setForeground(new Color(0, 0, 0));\r\n jl6c.setFont(new Font(\"Verdana\", Font.BOLD, 13));\r\n add(jl6c);\r\n\r\n jl7c = new JLabel(\"Azul: \");\r\n jl7c.setBounds(40, 445, 250, 20);\r\n jl7c.setForeground(new Color(0, 0, 0));\r\n jl7c.setFont(new Font(\"Verdana\", Font.BOLD, 13));\r\n add(jl7c);\r\n\r\n jRCr = new JLabel(\"R: 0\");\r\n jRCr.setBounds(55, 485, 60, 25);\r\n jRCr.setForeground(new Color(0, 0, 0));\r\n jRCr.setFont(new Font(\"Verdana\", Font.BOLD, 13));\r\n add(jRCr);\r\n\r\n jVCr = new JLabel(\"G: 0\");\r\n jVCr.setBounds(155, 485, 60, 25);\r\n jVCr.setForeground(new Color(0, 0, 0));\r\n jVCr.setFont(new Font(\"Verdana\", Font.BOLD, 13));\r\n add(jVCr);\r\n\r\n jACr = new JLabel(\"B: 0\");\r\n jACr.setBounds(255, 485, 60, 25);\r\n jACr.setForeground(new Color(0, 0, 0));\r\n jACr.setFont(new Font(\"Verdana\", Font.BOLD, 13));\r\n add(jACr);\r\n \r\n txtRadio = new JTextField(\"Ingresa el valor del radio\");\r\n txtRadio.setEditable(false);\r\n txtRadio.setBounds(115, 79, 250, 20);\r\n txtRadio.setBackground(new Color(245, 245, 245));\r\n txtRadio.setForeground(new Color(0, 0, 0));\r\n txtRadio.setBorder(null);\r\n txtRadio.setVisible(true);\r\n add(txtRadio);\r\n\r\n btnEditarCrc = new JButton(\"Editar\");\r\n btnEditarCrc.setBounds(50, 120, 130, 25);\r\n btnEditarCrc.setBackground(new Color(156, 0, 188));\r\n btnEditarCrc.setForeground(new Color(255, 255, 255));\r\n btnEditarCrc.addActionListener(this);\r\n add(btnEditarCrc);\r\n \r\n btninfCrc = new JButton(\"Enviar\");\r\n btninfCrc.setBounds(200, 120, 130, 25);\r\n btninfCrc.setBackground(new Color(156, 0, 188));\r\n btninfCrc.setForeground(new Color(255, 255, 255));\r\n btninfCrc.addActionListener(this);\r\n add(btninfCrc);\r\n\r\n btnRegresarCrc = new JButton(\"Regresar\");\r\n btnRegresarCrc.setBounds(625, 455, 95, 20);\r\n btnRegresarCrc.setBackground(new Color(156, 0, 188));\r\n btnRegresarCrc.setForeground(new Color(255, 255, 255));\r\n btnRegresarCrc.addActionListener(this);\r\n add(btnRegresarCrc);\r\n\r\n btnPruebaCrc = new JButton(\"Salir\");\r\n btnPruebaCrc.setBounds(625, 485, 95, 20);\r\n btnPruebaCrc.addActionListener(this);\r\n btnPruebaCrc.setBorder(null);\r\n btnPruebaCrc.setBackground(new Color(156, 0, 188));\r\n btnPruebaCrc.setForeground(new Color(255, 255, 255));\r\n add(btnPruebaCrc);\r\n\r\n // Textfields donde se arrojaran los resultados obtenidos\r\n txtDiametroCrc = new JTextField(\"0 unidades\");\r\n txtDiametroCrc.setEditable(false);\r\n txtDiametroCrc.setBounds(140, 219, 250, 20);\r\n txtDiametroCrc.setBackground(new Color(245, 245, 245));\r\n txtDiametroCrc.setForeground(new Color(0, 0, 0));\r\n txtDiametroCrc.setVisible(true);\r\n txtDiametroCrc.setBorder(null);\r\n add(txtDiametroCrc);\r\n\r\n txtPerimetroCrc = new JTextField(\"0 unidades\");\r\n txtPerimetroCrc.setEditable(false);\r\n txtPerimetroCrc.setBounds(140, 264, 250, 20);\r\n txtPerimetroCrc.setBackground(new Color(245, 245, 245));\r\n txtPerimetroCrc.setForeground(new Color(0, 0, 0));\r\n txtPerimetroCrc.setVisible(true);\r\n txtPerimetroCrc.setBorder(null);\r\n add(txtPerimetroCrc);\r\n\r\n txtAreaCrc = new JTextField(\"0 unidades cuadradas\");\r\n txtAreaCrc.setEditable(false);\r\n txtAreaCrc.setBounds(122, 310, 250, 20);\r\n txtAreaCrc.setBackground(new Color(245, 245, 245));\r\n txtAreaCrc.setForeground(new Color(0, 0, 0));\r\n txtAreaCrc.setVisible(true);\r\n txtAreaCrc.setBorder(null);\r\n add(txtAreaCrc);\r\n }", "void onColorChanged(SeekBar seekBar, int color, boolean b);", "private void DecreaseBrightnessActionPerformed(java.awt.event.ActionEvent evt) {\n if(flag==1){\n for(int y=0;y<height;y++){\n // c = ((y/height)*100);\n // ProgressBar.setValue(c);\n for(int x=0;x<width;x++)\n {\n p=tempImg.getRGB(x,y);\n a =(p>>24)&0xff;\n r =(p>>16)&0xff;\n g=(p>>8)&0xff;\n b =p&0xff;\n r=(int)(r-fb);\n g=(int)(g-fb);\n b=(int)(b-fb);\n if(r<0)\n r=0;\n if(g<0)\n g=0;\n if(b<0)\n b=0;\n p=(a<<24)|(r<<16)|(g<<8)|b;\n tempImg.setRGB(x,y,p);\n \n // ProgressBar.set\n // ProgressBar.setCursor(cursor);\n }\n }\n Display(tempImg);\n progressLog.append(\"Brightness Decreased \\n\");\n \n }\n \n else\n progressLog.append(\"Load Image First!!! \\n\");\n \n }", "public void initColors() {\n\n int i;\n float j;\n\n int start;\n int numShades = 5;\n float shadeInc = 1 / (float) numShades;\n\n\n aColors = new Color[glb.MAXCOLORS]; /* set array size */\n\n\n /* White to Black */\n start = 0;\n for (i = start, j = 1; i < start + 6; j -= shadeInc, i++) {\n aColors[i] = new Color(j, j, j);\n }\n\n start = 6;\n /* Red to almost Magenta */\n for (i = start, j = 0; i < start + 5; j += shadeInc, i++) {\n aColors[i] = new Color((float) 1, (float) 0, j);\n }\n\n\n /* Magenta to almost Blue */\n start += 5;\n for (i = start, j = 1; i < start + 5; j -= shadeInc, i++) {\n aColors[i] = new Color(j, (float) 0, (float) 1);\n }\n\n\n /* Blue to almost Cyan */\n start += 5;\n for (i = start, j = 0; i < start + 5; j += shadeInc, i++) {\n aColors[i] = new Color((float) 0, j, (float) 1);\n }\n\n /* Cyan to almost Green */\n start += 5;\n for (i = start, j = 1; i < start + 5; j -= shadeInc, i++) {\n aColors[i] = new Color((float) 0, (float) 1, j);\n }\n\n\n\n /* Green to almost Yellow */\n start += 5;\n for (i = start, j = 0; i < start + 5; j += shadeInc, i++) {\n aColors[i] = new Color(j, (float) 1, (float) 0);\n }\n\n /* Yellow to almost Red */\n start += 5;\n for (i = start, j = 1; i < start + 5; j -= shadeInc, i++) {\n aColors[i] = new Color((float) 1, j, (float) 0);\n }\n\n }", "private void botonFuncional(JButton Boton){\n \n if(!caraUp){\n Boton.setEnabled(false);\n imagen1 =(ImageIcon) Boton.getDisabledIcon();\n v[0] = Boton;\n caraUp = true;\n cara1 = false;\n }\n else {\n Boton.setEnabled(false); \n imagen2 =(ImageIcon) Boton.getDisabledIcon();\n v[1]= Boton;\n cara1 = true;\n ganar();\n }\n }", "private void changeColorDirection(boolean up, Node node) {\n\tGeneration gen;\n\n\tif (up != up_color) {\n\t up_color = up;\n\n\t if (up)\n\t\tgen = manim.firstGeneration();\n\t else\n\t\tgen = manim.lastGeneration();\n\n\t hilitcolor = Color.magenta;\n\t VectorIterator vi = new VectorIterator(gen);\n\t while (vi.hasNext()) {\n\t\tNode n = (Node)(vi.next());\n\t\tif (n.paths_passing > 0) {\n\t\t if (up)\n\t\t\trenderDownPaths(n);\n\t\t else\n\t\t\trenderPath(n);\n\t\t}\n\t }\n\n\t if (up)\n\t\thilitcolor = Color.red;\n\t else\n\t\thilitcolor = Color.blue;\n\t}\n }", "public void turnToCorrectColor() {\n\n String gameData = DriverStation.getInstance().getGameSpecificMessage();\n if (gameData.length() != 0) {\n Color colorNeeded;\n\n switch (gameData.charAt(0)) {\n case 'B':\n colorNeeded = blue;\n break;\n case 'G':\n colorNeeded = green;\n break;\n case 'R':\n colorNeeded = red;\n break;\n case 'Y':\n colorNeeded = yellow;\n break;\n default:\n colorNeeded = null;\n break;\n }\n\n boolean onColor = false;\n while (!onColor) {\n wheelTurner.set(0.4);\n ColorMatchResult result = colorMatcher.matchClosestColor(colorSensor.getColor());\n\n if (result == colorMatcher.matchClosestColor(colorNeeded)) {\n wheelTurner.stopMotor();\n onColor = true;\n }\n System.out.print(colorSensor.getRed() + \" \" + colorSensor.getBlue() + \" \" + colorSensor.getGreen());\n }\n\n }\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tlp.drawColor = Color.BLACK;\n\t\t\t}", "@Then(\"^Pobranie koloru$\")\n public void Pobranie_koloru() throws Throwable {\n\n WebDriverWait wait = new WebDriverWait(driver, 15);\n WebElement c9 = wait.until(ExpectedConditions.elementToBeClickable(By.xpath(\"//*[@id=\\\"30373\\\"]/div/div/div/div/div/div/div/p[3]/a\")));\n\n String color = driver.findElement(By.xpath(\"/html/body/div[1]/div[3]/div/div[6]/div/div/div[1]/div/ul/li\")).getCssValue(\"color\");\n String[] hexValue = color.replace(\"rgba(\", \"\").replace(\")\", \"\").split(\",\");\n\n int hexValue1=Integer.parseInt(hexValue[0]);\n hexValue[1] = hexValue[1].trim();\n int hexValue2=Integer.parseInt(hexValue[1]);\n hexValue[2] = hexValue[2].trim();\n int hexValue3=Integer.parseInt(hexValue[2]);\n String kolorZeStrony = String.format(\"#%02x%02x%02x\", hexValue1, hexValue2, hexValue3);\n\n Assert.assertEquals(\"#333333\", kolorZeStrony);\n\n }", "private void m1940b(int i) {\n int red = Color.red(i);\n int green = Color.green(i);\n int blue = Color.blue(i);\n this.f2431h.setBackgroundColor(Color.rgb(red, 0, 0));\n this.f2432i.setBackgroundColor(Color.rgb(0, green, 0));\n this.f2433j.setBackgroundColor(Color.rgb(0, 0, blue));\n this.f2431h.setText(String.valueOf(red));\n this.f2432i.setText(String.valueOf(green));\n this.f2433j.setText(String.valueOf(blue));\n }" ]
[ "0.64304477", "0.63824326", "0.629192", "0.62876374", "0.62555027", "0.6176361", "0.61606276", "0.6129454", "0.6099475", "0.6089791", "0.6068857", "0.6058579", "0.60492885", "0.60236645", "0.60202307", "0.60093695", "0.59875494", "0.59817004", "0.5975275", "0.59703326", "0.59693563", "0.59597623", "0.59117305", "0.5903976", "0.5889728", "0.588931", "0.5856659", "0.584687", "0.58455896", "0.584438", "0.5844135", "0.58296335", "0.58167577", "0.58131593", "0.5812132", "0.5803304", "0.57935655", "0.5789359", "0.5788067", "0.5783243", "0.57832354", "0.5764052", "0.57530785", "0.57465667", "0.57247734", "0.57033396", "0.5699921", "0.56964934", "0.5678493", "0.5675064", "0.5659971", "0.5654778", "0.56430286", "0.56395894", "0.56302357", "0.5627001", "0.5626191", "0.56256145", "0.561862", "0.5613388", "0.56121933", "0.5611726", "0.5611625", "0.5609322", "0.5609322", "0.5603931", "0.5603531", "0.5595148", "0.5591094", "0.55866885", "0.5581937", "0.5581791", "0.5580762", "0.5577837", "0.557714", "0.5576397", "0.55753016", "0.55735415", "0.55690134", "0.5556135", "0.5552255", "0.55505383", "0.5549413", "0.55467856", "0.55465186", "0.5540208", "0.55378366", "0.55374074", "0.5530672", "0.55283797", "0.551654", "0.55125755", "0.5501643", "0.54981726", "0.5495477", "0.549313", "0.5482805", "0.54824394", "0.5479203", "0.54771656" ]
0.64108735
1
Creacion de la interfaz
public void Circulo() { Circulo crc = new Circulo(); crc.setBounds(0, 0, 765, 588); crc.setResizable(false); crc.setVisible(true); crc.setLocationRelativeTo(null); ImageIcon fig = new ImageIcon("src/images/figurative.png"); crc.setIconImage(fig.getImage()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Oracion createOracion();", "Compleja createCompleja();", "Obligacion createObligacion();", "Compuesta createCompuesta();", "public void inicializar();", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "I createI();", "protected IPCGCallDetailCreator()\r\n {\r\n // empty\r\n }", "@Override\n\tpublic void create () {\n\n\t}", "@Override\n\tpublic void create() {\n\t\t\n\t}", "OurIFC createOurIFC();", "public abstract Anuncio creaAnuncioGeneral();", "OperacionColeccion createOperacionColeccion();", "public void create() {\n\t\t\n\t}", "@Override\n\tpublic void create() {\n\n\t}", "@Override\r\n\tpublic void create() {\n\t\t\r\n\t}", "public InventarioControlador() {\n }", "public void init() {\r\n\t\tlog.info(\"init()\");\r\n\t\tobjIncidencia = new IncidenciaSie();\r\n\t\tobjObsIncidencia = new ObservacionIncidenciaSie();\r\n\t\tobjCliente = new ClienteSie();\r\n\t\tobjTelefono = new TelefonoPersonaSie();\r\n\t}", "@Override\r\n\tpublic void create() {\n\r\n\t}", "AliciaLab createAliciaLab();", "Schueler createSchueler();", "Operacion createOperacion();", "interface Create {}", "public abstract Anuncio creaAnuncioIndividualizado();", "private RepositorioOrdemServicoHBM() {\n\n\t}", "@Override\r\n\tpublic void crearVehiculo() {\n\t\t\r\n\t}", "private void crearVista() {\n\t\tVista vista = Vista.getInstancia();\n\t\tvista.addObservador(this);\n\n\t}", "public Notifica(){}", "Secuencia createSecuencia();", "public abstract Anuncio creaAnuncioTematico();", "public void create(){}", "public AETinteractions() {\r\n\t}", "public contrustor(){\r\n\t}", "private void criaInterface() {\n\t\tColor azul = new Color(212, 212, 240);\n\n\t\tpainelMetadado.setLayout(null);\n\t\tpainelMetadado.setBackground(azul);\n\n\t\tmetadadoLabel = FactoryInterface.createJLabel(10, 3, 157, 30);\n\t\tpainelMetadado.add(metadadoLabel);\n\n\t\tbotaoAdicionar = FactoryInterface.createJButton(520, 3, 30, 30);\n\t\tbotaoAdicionar.setIcon(FactoryInterface.criarImageIcon(Imagem.ADICIONAR));\n\t\tbotaoAdicionar.setToolTipText(Sap.ADICIONAR.get(Sap.TERMO.get()));\n\t\tpainelMetadado.add(botaoAdicionar);\n\n\t\tbotaoEscolha = FactoryInterface.createJButton(560, 3, 30, 30);\n\t\tbotaoEscolha.setIcon(FactoryInterface.criarImageIcon(Imagem.VOLTAR_PRETO));\n\t\tbotaoEscolha.setToolTipText(Sap.ESCOLHER.get(Sap.TERMO.get()));\n\t\tbotaoEscolha.setEnabled(false);\n\t\tpainelMetadado.add(botaoEscolha);\n\n\t\talterarModo(false);\n\t\tatribuirAcoes();\n\t}", "public interface IAzioneCreator {\n IAzione doMakeAzione(String idAz, List<Integer> valori);\n}", "public void inizializza() {\n\n /* invoca il metodo sovrascritto della superclasse */\n super.inizializza();\n\n }", "Foco createFoco();", "@Override\n\tpublic void iniciar() {\n\t\t\n\t}", "protected abstract void construct();", "private ElementoDettaglioVariazioneCodificaCapitoloFactory() {\n\t}", "public abstract void create();", "private void inizia() throws Exception {\n try { // prova ad eseguire il codice\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n }", "public MnjMfgFabinsInvlEOImpl() {\n }", "public ColorFabRollInvVOImpl() {\n }", "public PiviFactoryImpl() {\r\n\t\tsuper();\r\n\t}", "Parcelle createParcelle();", "Communicator createCommunicator();", "For createFor();", "public TranslaterInterface() {\n initComponents();\n workin=new TranslaterLogic();\n \n }", "public Tmio1Sitio() {\r\n\t}", "public FiltroRaEncerramentoComando() {\r\n }", "public TCubico(){}", "public Curso() {\r\n }", "@Override\n\tpublic void crearPoblacion() {\n\t\tif(this.terminales == null || this.funciones == null) {\n\t\t\tSystem.out.println(\"Error. Los terminales y las funciones tienen que estar inicializados\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tpoblacion = new ArrayList<>();\n\t\tfor(int i = 0; i < this.numIndividuos; i++) {\n\t\t\tIndividuo ind = new Individuo();\n\t\t\tind.crearIndividuoAleatorio(this.profundidad, this.terminales, this.funciones);\n\t\t\tthis.poblacion.add(ind);\n\t\t}\n\t}", "public interface Comunicator {\n \n\n}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "private UsineJoueur() {}", "public WASMRI() {\n Debugger.debug(0,\"Creating RAPInterface\");\n }", "public Funcionario() {\r\n\t\t\r\n\t}", "private DittaAutonoleggio(){\n \n }", "private Infer() {\n\n }", "public ControllerProtagonista() {\n\t}", "public Interfaz_RegistroClientes() {\n initComponents();\n limpiar();\n }", "public Cgg_jur_anticipo(){}", "public envio() {\r\n }", "public void createContract() {\n\r\n\t}", "private void inizia() throws Exception {\n /* variabili e costanti locali di lavoro */\n\n try { // prova ad eseguire il codice\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n }", "private FournisseurArboTraficService() {\r\n\t\tsuper();\r\n\t}", "public AntrianPasien() {\r\n\r\n }", "public CrearQuedadaVista() {\n }", "public FiltroMicrorregiao() {\r\n }", "private void inizializzazione()\n {\n //Costruzione della Istanza display\n display = new Display(titolo,larghezza,altezza);\n \n /*Viene aggiunto il nostro gestore degli input da tastiera\n * alla nostra cornice.*/\n display.getCornice().addKeyListener(gestoreTasti);\n display.getCornice().addMouseListener(gestoreMouse);\n display.getCornice().addMouseMotionListener(gestoreMouse);\n display.getTelaGrafica().addMouseListener(gestoreMouse);\n display.getTelaGrafica().addMouseMotionListener(gestoreMouse);\n \n //Codice temporaneo per caricare la nostra immagine nel nostro programma\n /*testImmagine = CaricatoreImmagini.caricaImmagini(\"/Textures/Runner Stickman.png\");*/\n \n //Inizializzazione dell'attributo \"foglio\". Gli viene passato come parametro \n //\"testImmagine\" contenente l'immagine del nostro sprite sheet.\n /*foglio = new FoglioSprite(testImmagine);*/\n \n /*Inizializzazione della classe Risorse.*/\n Risorse.inizializzazione();\n \n maneggiatore = new Maneggiatore(this);\n /*Inizializzazione Camera di Gioco*/\n camera = new Camera(maneggiatore,0,0);\n \n /*Inizializzazione degli stati di gioco.*/\n statoMenu = new StatoMenù(maneggiatore);\n Stato.setStato(statoMenu);\n }", "Reproducible newInstance();", "public RepositorioTransacaoHBM() {\n\n\t}", "public ControladorCoche() {\n\t}", "public CreateRemoteClassic<Msg, Ref> infraCreate();", "@Override\n public void init() {}", "public interface OrientationWorkshopI {\n\tpublic void construct(OrientationChecklistI orientationChecklist);\n\n}", "@Override\r\n\tpublic void init() {}", "public void inizializza() {\n Navigatore nav;\n Portale portale;\n\n super.inizializza();\n\n try { // prova ad eseguire il codice\n\n Modulo modulo = getModuloRisultati();\n modulo.inizializza();\n// Campo campo = modulo.getCampoChiave();\n// campo.setVisibileVistaDefault(false);\n// campo.setPresenteScheda(false);\n// Vista vista = modulo.getVistaDefault();\n// vista.getElement\n// Campo campo = vista.getCampo(modulo.getCampoChiave());\n\n\n\n /* aggiunge il Portale Navigatore al pannello placeholder */\n nav = this.getNavigatore();\n portale = nav.getPortaleNavigatore();\n this.getPanNavigatore().add(portale);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "private ControleurAcceuil(){ }", "public FicheConnaissance() {\r\n }", "Cancion createCancion();", "Concierto createConcierto();", "@Override\n\tprotected void interr() {\n\t}", "Schulleiter createSchulleiter();", "public void crearAreaInt(AreaInteres a) throws Exception {\r\n\t\tboAreaInt.crearAreaInteres(a);\r\n\t}", "Petunia() {\r\n\t\t}", "Klassenstufe createKlassenstufe();", "public Interfaz() {\n initComponents();\n }", "public Interfaz() {\n initComponents();\n }", "public Interfaz() {\n initComponents();\n }", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "public void inicializarInterfaz() {\n\t\tvista.setVisible(true);\n\t\tvista.bienvenida.setVisible(true);\n\t\tvista.sel_billete.setVisible(false);\n\t\tvista.sel_fecha.setVisible(false);\n\t\tvista.detalles_compra.setVisible(false);\n\t\tvista.login.setVisible(false);\n\t\tvista.registro.setVisible(false);\n\t\tvista.pago.setVisible(false);\n\t\tvista.fin_pago.setVisible(false);\n\t\tvista.agur.setVisible(false);\n\t\t\n\t}", "private void init() {\n\n\t}", "private HYCOM() {\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "API createAPI();", "private void init() {\n\n\n\n }", "public Inicio()\n { \n super(600, 400, 1);\n prepararInicio();\n\n }", "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 }" ]
[ "0.69470495", "0.6880976", "0.6781672", "0.67364305", "0.6555278", "0.65371567", "0.65249395", "0.6508972", "0.63846946", "0.63704646", "0.6362282", "0.63448685", "0.63299507", "0.632039", "0.6311343", "0.6308178", "0.6255065", "0.62467617", "0.6239063", "0.6238922", "0.6234275", "0.6230074", "0.6218254", "0.6206346", "0.6205318", "0.6200348", "0.6197887", "0.6197125", "0.61543906", "0.61366713", "0.61335224", "0.61331207", "0.6109836", "0.61096096", "0.6108195", "0.6107219", "0.6104549", "0.6071107", "0.6051564", "0.603765", "0.6037587", "0.6026243", "0.6025208", "0.60138345", "0.6012436", "0.59877306", "0.5958987", "0.59574825", "0.59548527", "0.59512734", "0.59483147", "0.5945793", "0.5943884", "0.59366566", "0.59310126", "0.59225786", "0.5921741", "0.5916814", "0.5914075", "0.59063053", "0.59044784", "0.5897579", "0.58944577", "0.58914804", "0.589099", "0.5890466", "0.5885806", "0.5883524", "0.5880924", "0.5877831", "0.5874961", "0.5871718", "0.58715874", "0.5870625", "0.5867945", "0.5865651", "0.5861568", "0.5858112", "0.5851878", "0.58515644", "0.5846539", "0.5844293", "0.5843459", "0.5842371", "0.58421403", "0.58354616", "0.58301765", "0.58295727", "0.58201146", "0.5818437", "0.5818437", "0.5818437", "0.5814335", "0.58047837", "0.5803082", "0.58011687", "0.5800745", "0.57999164", "0.57947296", "0.57945913", "0.57941264" ]
0.0
-1
Metodos que permiten la funcionalidad del boton
@Override public void actionPerformed(ActionEvent e) { if (e.getSource() == btninfCrc) { try { // El usuario no puede editar el cuadro de texto txtRadio.setEditable(false); double Radio = Double.parseDouble(txtRadio.getText()); r = Radio; double diametro = Radio * 2; double perimetroCrc = diametro * Math.PI; double areaCrc = Math.PI * Math.pow(Radio, 2); txtDiametroCrc.setText(diametro + " unidades"); txtPerimetroCrc.setText(perimetroCrc + " unidades"); txtAreaCrc.setText(areaCrc + " unidades cuadradas"); repaint(); } catch (Exception er) { JOptionPane.showMessageDialog(null, "Ingresa valores numericos, por favor.", "Error", JOptionPane.ERROR_MESSAGE, new ImageIcon("src/images/figJO.png")); } } if (e.getSource() == btnRegresarCrc) { this.setVisible(false); GUI interfaz = new GUI(); interfaz.GUI(); } if (e.getSource() == btnPruebaCrc) { System.exit(0); } if (e.getSource() == btnEditarCrc ){ txtRadio.setEditable(true); txtRadio.setText(""); txtDiametroCrc.setText("0 unidades"); txtPerimetroCrc.setText("0 unidades"); txtAreaCrc.setText("0 unidades cuadradas"); } // Configuracion del modo claro if (e.getSource() == jmi1crc) { getContentPane().setBackground(fondoCro); btninfCrc.setBackground(lila); btnPruebaCrc.setBackground(lila); btnRegresarCrc.setBackground(lila); btnEditarCrc.setBackground(lila); jlDiametro.setForeground(negro); jRCr.setForeground(negro); jVCr.setForeground(negro); jACr.setForeground(negro); jl1c.setForeground(negro); jl12c.setForeground(negro); jl2c.setForeground(negro); jl3c.setForeground(negro); jl4c.setForeground(negro); jl5c.setForeground(negro); jl6c.setForeground(negro); jl7c.setForeground(negro); slRCrc.setBackground(fondoCro); slGCrc.setBackground(fondoCro); slBCrc.setBackground(fondoCro); txtRadio.setBackground(fondoCro); txtRadio.setForeground(negro); txtDiametroCrc.setBackground(fondoCro); txtPerimetroCrc.setBackground(fondoCro); txtAreaCrc.setBackground(fondoCro); txtDiametroCrc.setForeground(negro); txtPerimetroCrc.setForeground(negro); txtAreaCrc.setForeground(negro); } // Configuracion del modo oscuro if (e.getSource() == jmi2crc) { getContentPane().setBackground(new Color(52, 52, 52)); btninfCrc.setBackground(gris); btnPruebaCrc.setBackground(gris); btnRegresarCrc.setBackground(gris); btnEditarCrc.setBackground(gris); jlDiametro.setForeground(blanco); jRCr.setForeground(blanco); jVCr.setForeground(blanco); jACr.setForeground(blanco); jl1c.setForeground(blanco); jl12c.setForeground(blanco); jl2c.setForeground(blanco); jl3c.setForeground(blanco); jl4c.setForeground(blanco); jl5c.setForeground(blanco); jl6c.setForeground(blanco); jl7c.setForeground(blanco); slRCrc.setBackground(fondoOsc); slGCrc.setBackground(fondoOsc); slBCrc.setBackground(fondoOsc); txtRadio.setBackground(fondoOsc); txtRadio.setForeground(blanco); txtDiametroCrc.setBackground(fondoOsc); txtPerimetroCrc.setBackground(fondoOsc); txtAreaCrc.setBackground(fondoOsc); txtDiametroCrc.setForeground(blanco); txtPerimetroCrc.setForeground(blanco); txtAreaCrc.setForeground(blanco); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void enableBotonAceptar()\r\n\t{\r\n\t\t\r\n\t}", "private void botonFuncional(JButton Boton){\n \n if(!caraUp){\n Boton.setEnabled(false);\n imagen1 =(ImageIcon) Boton.getDisabledIcon();\n v[0] = Boton;\n caraUp = true;\n cara1 = false;\n }\n else {\n Boton.setEnabled(false); \n imagen2 =(ImageIcon) Boton.getDisabledIcon();\n v[1]= Boton;\n cara1 = true;\n ganar();\n }\n }", "@Override // Métodos que fazem a anulação\n\tpublic void getBonificação() {\n\t\t\n\t}", "public void Boton2(View boton2) {\n switch (pagina) {\n case 0:\n TheBotton2Minus();\n break;\n case 1:\n TheBotton2Minus();\n break;\n case 2:\n TheBotton2Plus();\n break;\n case 3:\n TheBotton2Minus();\n break;\n case 4:\n TheBotton2Plus();\n break;\n case 5:\n TheBotton2Plus();\n break;\n case 6:\n TheBotton2Plus();\n break;\n case 7:\n TheBotton2Minus();\n break;\n\n\n\n\n }\n\n\n }", "@Override\n public void cantidad_Ataque(){\n ataque=5+2*nivel+aumentoT;\n }", "public void calculateBonuses(){\n\n\n }", "public void definirActionBoton(ActionEvent e) {\n CommandButton btnSelect = (CommandButton) e.getSource();\n\n //System.out.println(\"boton id: \" + btnSelect.getId());\n //this.getCbAction().setDisabled(false);\n if (btnSelect.getId().equals(\"btnEdit\")) {\n this.getCbActionTelefonos().setValue(\"Editar\");\n this.getListadoTelefonosBean().setiTipoBoton(1);\n //System.out.println(\"Entro al Edit\");\n }\n if (btnSelect.getId().equals(\"btnDelete\")) {\n this.getCbActionTelefonos().setValue(\"Eliminar\");\n this.getListadoTelefonosBean().setiTipoBoton(2);\n //System.out.println(\"Entro al Delete\");\n }\n\n if (btnSelect.getId().equals(\"btnCreateTelefonos\")) {\n //System.out.println(\"Entro al if : \" + this.getPersona());\n // this.getCbAction().setValue(\"Guardar\");\n //System.out.println(\"Despues del if\");\n this.getListadoTelefonosBean().setiTipoBoton(0);\n System.out.println(\"Get Tipo boton\" + this.getListadoEmailBean().getiTipoBoton());\n }//fin if\n\n //System.out.println(\"termino el definir: \" + this.getPersona());\n }", "public JButton getBoton1(){\n return this.perfilBT;\n }", "public MyButton getBoton() {\n\t\treturn boton;\n\t}", "public void ingresar_a_la_Opcion_de_eventos() {\n\t\t\n\t}", "public JButton getBoton() {\n return boton;\n }", "abstract void botonDemo_actionPerformed(ActionEvent e);", "public void ejecutaMetodo() {\n\t\r\n}", "public int getPoints_action()\r\n/* */ {\r\n/* 72 */ return this.points_action;\r\n/* */ }", "@Override\n public void cantidad_Punteria(){\n punteria=69.5+05*nivel+aumentoP;\n }", "abstract void botonAyuda_actionPerformed(ActionEvent e);", "@Override\n protected void onTick() {\n leerFromMatlab();\n if ((voltajeMR > 120 * 1.1 && voltajeMR < 120 * 0.9) || (frecuenciaMR > 60 * 1.1 && frecuenciaMR < 60 * 0.9)) {\n alarmaMR = true;\n System.out.println(\"Alarma de condiciones no deseadas de microred encendida\");\n } else {\n alarmaMR = false;\n }\n\n if ((voltajeRE > 120 * 1.1 && voltajeRE < 120 * 0.9) || (frecuenciaRE > 60 * 1.1 && frecuenciaRE < 60 * 0.9)) {\n alarmaRE = true;\n System.out.println(\"Alarma de condiciones no deseadas de red externa encendida\");\n } else {\n alarmaRE = false;\n }\n\n try {\n ACLMessage mensaje = new ACLMessage();\n AID r1 = new AID();\n r1.setLocalName(\"EnergyMarketAgent\");\n AID r2 = new AID();\n r2.setLocalName(\"InterfaceAgent\");\n mensaje.setSender(getAID());\n //mensaje.addReceiver(r);\n mensaje.addReceiver(r1);\n mensaje.addReceiver(r2);\n //mensaje.addReceiver(getDefaultDF());\n mensaje.setLanguage(codec.getName());\n mensaje.setOntology(ontologia.getName());\n mensaje.setPerformative(ACLMessage.INFORM);\n Operacion operacion = new Operacion();\n operacion.setEstadoFallaMicroRed(alarmaMR);\n operacion.setEstadoFallaRedExterna(alarmaRE);\n operacion.setPotenciaAlmacenada((float) potenciaAlmacenada);\n operacion.setPotenciaGenerada((float) potenciaGenerada);\n operacion.setPotenciaDemanda((float) demandaPotencia);\n operacion.setModoOperacionApagado(modoOperacionApagado);\n operacion.setModoOperacionInterno(modoOperacionInterno);\n operacion.setModoOperacionExterno(modoOperacionExterno);\n operacion.setModoOperacionParcial(modoOperacionParcial);\n operacion.setModoOperacionVenta(modoOperacionVenta);\n operacion.setModoOperacionAlmacenamiento(modoOperacionAlmacenamiento);\n\n EnviarInfoOperacion enviarModoOperacion = new EnviarInfoOperacion();\n enviarModoOperacion.setParametros(operacion);\n //mensaje.setContentObject(enviarModoOperacion);\n getContentManager().fillContent(mensaje, (ContentElement) enviarModoOperacion);\n \n\n send(mensaje);\n } catch (Codec.CodecException ex) {\n Logger.getLogger(AgenteMicroRed.class.getName()).log(Level.SEVERE, null, ex);\n } catch (OntologyException ex) {\n Logger.getLogger(AgenteMicroRed.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n }", "@Override\n public String cualquierMetodo2() {\n return \"Método implementado en la clase hija viaje de incentivo\";\n }", "@Override\n public void onBoomButtonClick(int index) {\n }", "abstract void botonRecibir_actionPerformed(ActionEvent e);", "public void UpdateCommandsUI(){\n Button B;\n try{\n for (int i = 0; i < f.getNumComp(); i++) {\n B = (Button) findViewById(300000 + i); //Buy Button\n if(dayOpen & (p.getMoney()>0)) {\n B.setEnabled(true);\n B.setTextColor(0xffffffff);\n } else if(dayOpen & (p.getLevel()>= 4)){\n B.setEnabled(true);\n B.setTextColor(0xffff0000);\n } else {\n B.setEnabled(false);\n B.setTextColor(0xff000000);\n }\n\n B = (Button) findViewById(400000 + i); //Sell Button\n if (dayOpen & (f.getSharesOwned(i) > 0)) {\n B.setEnabled(true);\n B.setTextColor(0xffffffff);\n } else if(p.getLevel()>=4 & !f.isShorted(i) & dayOpen){\n B.setEnabled(true);\n B.setTextColor(0xffff0000); //Red Color for short positions\n } else {\n B.setEnabled(false);\n B.setTextColor(0xff000000);\n }\n }\n } catch (Exception e){\n e.printStackTrace();\n }\n }", "@Override\r\n\t\tpublic void onStatus(Map<String, Object> arg0) {\n\t\t\tSystem.out.println(\"Method createMeetiong status: \" + arg0);\r\n\t\t}", "public void Metodo1(String valor1){\r\n\r\n }", "@Override protected void eventoMemoriaModificata(Campo campo) {\n Campo tipoPrezzo;\n boolean acceso;\n\n try { // prova ad eseguire il codice\n// if (campo.getNomeInterno().equals(AlbSottoconto.CAMPO_FISSO)) {\n// tipoPrezzo = this.getCampo(AlbSottoconto.CAMPO_TIPO_PREZZO);\n// acceso = (Boolean)campo.getValore();\n// tipoPrezzo.setVisibile(acceso);\n// if (!acceso) {\n// tipoPrezzo.setValore(0);\n// }// fine del blocco if\n// }// fine del blocco if\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "private void init_buttons(){\r\n /**\r\n * BOTON NUEVO\r\n */\r\n im_tool1.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n botonInicio();\r\n botonNuevo();\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON EDITAR\r\n */\r\n im_tool2.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n botonEditar();\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON GUARDAR\r\n */\r\n im_tool3.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n botonGuardar();\r\n }\r\n }\r\n }); \r\n /**\r\n * BOTON ELIMINAR\r\n */\r\n im_tool4.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n botonEliminar();\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON IMPRIMIR\r\n */\r\n im_tool5.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){ \r\n botonImprimir();\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON REGRESAR\r\n */\r\n im_tool6.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n botonInicio();\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON POR ASIGNAR\r\n */\r\n im_tool7.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n //\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON NOTAS DE CREDITO\r\n */\r\n im_tool8.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n //\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON DEVOLUCION\r\n */\r\n im_tool9.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n //\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON BUSCAR\r\n */\r\n im_tool12.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n switch (mouseEvent.getClickCount()){\r\n case 1:\r\n botonInicio();\r\n botonBuscar();\r\n break;\r\n case 2:\r\n Datos.setIdButton(2003041);\r\n Gui.getInstance().showBusqueda(\"Busqueda\"); \r\n break;\r\n }\r\n }\r\n });\r\n /**\r\n * SELECCION EN LA TABLA\r\n */\r\n tb_guias.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n if ((tb_guias.getItems() != null) && (!tb_guias.getItems().isEmpty()))\r\n selectedRowGuide();\r\n }\r\n }\r\n }); \r\n /**\r\n * metodo para mostrar buscar el nro de guia\r\n * param: ENTER O TAB\r\n */\r\n tf_nroguia.setOnKeyReleased((KeyEvent ke) -> {\r\n if (ke.getCode().equals(KeyCode.ENTER)){\r\n //Valida que el evento se haya generado en el campo de busqueda\r\n if(((Node)ke.getSource()).getId().equals(\"tf_nroguia\")){\r\n //Solicita los datos y envia la Respuesta a imprimirse en la Pantalla\r\n Datos.setLog_cguias(new log_CGuias()); \r\n boolean boo = Ln.getInstance().check_log_CGuias_rela_caja(tf_nroguia.getText()); \r\n numGuias = 0;\r\n if(boo){\r\n Datos.setRep_log_cguias(Ln.getInstance().find_log_CGuias(tf_nroguia.getText(), \"\", \"ncaja\", Integer.parseInt(rows)));\r\n loadTable(Datos.getRep_log_cguias()); \r\n }\r\n else{\r\n change_im_val(0, im_checkg); \r\n Gui.getInstance().showMessage(\"El Nro. de \" + ScreenName + \" NO existe!\", \"A\");\r\n tf_nroguia.requestFocus();\r\n }\r\n }\r\n }\r\n });\r\n /**\r\n * metodo para mostrar buscar el nro de guia\r\n * param: ENTER O TAB\r\n */\r\n tf_nrorguia.setOnKeyReleased((KeyEvent ke) -> {\r\n if (ke.getCode().equals(KeyCode.ENTER)){\r\n //Valida que el evento se haya generado en el campo de busqueda\r\n if(((Node)ke.getSource()).getId().equals(\"tf_nrorguia\")){\r\n //Solicita los datos y envia la Respuesta a imprimirse en la Pantalla\r\n boolean booa = true; \r\n if(booa){\r\n boolean booc = Ln.getInstance().check_log_CGuias_caja(tf_nrorguia.getText()); \r\n if(booc){\r\n change_im_val(0, im_checkg); \r\n Gui.getInstance().showMessage(\"El Nro. de Guia ya esta relacionado!\", \"A\");\r\n tf_nrorguia.requestFocus();\r\n }\r\n else{\r\n for (int i = 0; i < log_guide_guia.size(); i++) {\r\n if(tf_nrorguia.getText().equals(tb_guias.getItems().get(i).getGuias())){\r\n booa = false;\r\n Gui.getInstance().showMessage(\"El Nro. de Guia ya esta relacionado!\", \"A\");\r\n tf_nrorguia.requestFocus();\r\n break;\r\n }\r\n } \r\n if(booa){\r\n log_Guide_rel_inv guide_carga = new log_Guide_rel_inv();\r\n\r\n List<Fxp_Archguid_gfc> data = \r\n Ln.getList_log_Archguid_gfc(Ln.getInstance().find_Archguid_gfc(tf_nrorguia.getText()));\r\n\r\n if (data.get(0).getStat_guia().equals(\"X\")\r\n || data.get(0).getStat_guia().equals(\"C\")){\r\n guide_carga.setNumorden(String.valueOf((log_guide_guia.size() + 1)));\r\n guide_carga.setGuias(tf_nrorguia.getText());\r\n guide_carga.setNumfact(data.get(0).getNumfact());\r\n guide_carga.setNumclie(data.get(0).getNumclie());\r\n\r\n if (data.get(0).getStat_guia().equals(\"A\")){\r\n if (tipoOperacion == 1)\r\n guide_carga.setStat_guia(null);\r\n else\r\n guide_carga.setStat_guia(data.get(0).getStat_guia());\r\n }\r\n else{\r\n guide_carga.setStat_guia(null);\r\n }\r\n \r\n \r\n log_guide_guia.add(guide_carga);\r\n\r\n loadTableGuide_guias();\r\n change_im_val(200, im_checkg); \r\n\r\n numFactCarga = numFactCarga + data.get(0).getNumfact();\r\n numClieCarga = numClieCarga + data.get(0).getNumclie();\r\n\r\n tf_nrorguia.setText(\"\");\r\n }else{\r\n if (data.get(0).getStat_guia().equals(\"\")){\r\n Gui.getInstance().showMessage(\"El Nro. de Guia NO tiene relación de Guia de Carga!\", \"A\");\r\n }\r\n else{\r\n Gui.getInstance().showMessage(\"El Nro. de Guia ya esta relacionado!\", \"A\");\r\n }\r\n tf_nrorguia.requestFocus();\r\n }\r\n \r\n }\r\n }\r\n }\r\n else{\r\n change_im_val(0, im_checkg); \r\n Gui.getInstance().showMessage(\"El Nro. de Guia NO existe!\", \"A\");\r\n tf_nrorguia.requestFocus();\r\n }\r\n }\r\n }\r\n });\r\n }", "public void getCommandsUpdate() {\n\t\t\r\n\t}", "@Override\n public void cantidad_Defensa(){\n defensa=2+nivel+aumentoD;\n }", "private void esconderBotao() {\n\t\tfor (int i = 0; i < dificuldade.getValor(); i++) {// OLHAM TODOS OS BOTOES\r\n\t\t\tfor (int j = 0; j < dificuldade.getValor(); j++) {\r\n\t\t\t\tif (celulaEscolhida(botoes[i][j]).isVisivel() && botoes[i][j].isVisible()) {// SE A CELULA FOR VISIVEL E\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// O BOTAO FOR VISIVEL,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// ESCONDE O BOTAO\r\n\t\t\t\t\tbotoes[i][j].setVisible(false);//DEIXA BOTAO INVISIVEL\r\n\t\t\t\t\tlblNumeros[i][j].setVisible(true);//DEIXA O LABEL ATRAS DO BOTAO VISIVEL\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void defineBotonBuscar() {\r\n tf_buscar.setVisible(false); //establece el textField como oculto al iniciarse la Pantalla\r\n //Manejador del Evento\r\n \r\n EventHandler eh = new EventHandler<KeyEvent>(){\r\n @Override\r\n public void handle(KeyEvent ke){\r\n //SI es presionado ENTER o TAB entonces\r\n if (ke.getCode().equals(KeyCode.ENTER) || ke.getCode().equals(KeyCode.TAB)){ \r\n //Valida que el evento se haya generado en el campo de busqueda\r\n if(((Node)ke.getSource()).getId().equals(\"tf_buscar\")){ \r\n //Solicita los datos y envia la Respuesta a imprimirse en la Pantalla\r\n Datos.setLog_cguias(new log_CGuias()); \r\n boolean boo = Ln.getInstance().check_log_CGuias_caja(tf_buscar.getText()); \r\n numGuias = 0;\r\n if(boo){\r\n Datos.setRep_log_cguias(Ln.getInstance().find_log_CGuias(tf_buscar.getText(), \"\", \"ncaja\", Integer.parseInt(rows)));\r\n loadTable(Datos.getRep_log_cguias()); \r\n }\r\n else{\r\n change_im_val(0, im_checkg); \r\n Gui.getInstance().showMessage(\"El Nro. Guia NO existe en la \" + ScreenName, \"A\");\r\n tf_nroguia.requestFocus();\r\n }\r\n tf_buscar.setVisible(false); //establece el textField como oculto al finalizar\r\n }\r\n }\r\n }\r\n };\r\n //Se asigna el manejador a ejecutarse cuando se suelta una tecla\r\n tf_buscar.setOnKeyReleased(eh);\r\n }", "public BotonMoneda(VentanaCobrar ventanaCobrar,int valor) {\n this.ventanaCobrar = ventanaCobrar;\n this.valor = valor;\n this.boton = new JButton(String.format(\"%.2f\",(double) valor/100)+\"€\");\n this.boton.addActionListener(e-> this.ventanaCobrar.anyade(valor));\n disenyaBoton();\n }", "private void activateButtons(){\n limiteBoton.setEnabled(true);\n derivadaBoton.setEnabled(true);\n integralBoton.setEnabled(true);\n}", "@Override\n public void memoria() {\n \n }", "private void manejoDeModales(){\n botonTipo1.addEventHandler(MouseEvent.MOUSE_CLICKED, (event) -> {\n comprar_es_categoria = false;\n openModalEventHandler(TIPO_MODAL_PATH, txtFieCodigoProducto1);\n });\n botonTipo2.addEventHandler(MouseEvent.MOUSE_CLICKED, (event) -> {\n obtener_es_categoria = false;\n openModalEventHandler(TIPO_MODAL_PATH, txtFieCodigoProducto2);\n }); \n botonTipo3.addEventHandler(MouseEvent.MOUSE_CLICKED, (event) -> {\n obtener_es_categoria = false;\n openModalEventHandler(TIPO_MODAL_PATH, txtFieCodigoProducto3);\n }); \n botonCategoria1.addEventHandler(MouseEvent.MOUSE_CLICKED, (event) -> {\n comprar_es_categoria = true;\n openModalEventHandler(CATEGORIA_MODAL_PATH, txtFieCodigoProducto1);\n }); \n botonCategoria2.addEventHandler(MouseEvent.MOUSE_CLICKED, (event) -> {\n obtener_es_categoria = true;\n openModalEventHandler(CATEGORIA_MODAL_PATH, txtFieCodigoProducto2);\n }); \n botonCategoria3.addEventHandler(MouseEvent.MOUSE_CLICKED, (event) -> {\n obtener_es_categoria = true;\n openModalEventHandler(CATEGORIA_MODAL_PATH, txtFieCodigoProducto3);\n }); \n }", "protected void UpdateButtons()\n {\n btnIn.setEnabled(usr.getPostType() == Util.ATTENDANCE_DAY_OUT);\n btnOut.setEnabled(usr.getPostType()== Util.ATTENDANCE_DAY_IN\n || usr.getPostType()== Util.ATTENDANCE_BETWEEN);\n btnScan.setEnabled(usr.getPostType()== Util.ATTENDANCE_DAY_IN\n || usr.getPostType()== Util.ATTENDANCE_BETWEEN);\n\n }", "public void teleopPeriodic() {\r\n }", "public void interactionOneTouch(int x, int y){\n if(this.getBotones().getBotonRecHorizLeft().contains(x,y)){\n Log.d(TAG,\"boton Left\");\n this.getJugadora().setDireccio(1);\n this.getJugadora().setPosicion(this.getJugadora().getPosicion().x - this.getJugadora().getSpeed(),this.getJugadora().getPosicion().y);\n }else if(this.getBotones().getBotonRecHorizRigth().contains(x,y)) {\n Log.d(TAG, \"boton Right\");\n this.getJugadora().setDireccio(0);\n this.getJugadora().setPosicion(this.getJugadora().getPosicion().x + this.getJugadora().getSpeed(),this.getJugadora().getPosicion().y);\n } else if (this.getBotones().getBotonRecVertArriba().contains(x,y)){\n Log.d(TAG, \"boton Arriba\");\n this.getJugadora().setDireccio(2);\n this.getJugadora().setPosicion(this.getJugadora().getPosicion().x,this.getJugadora().getPosicion().y - this.getJugadora().getSpeed());\n } else if (this.getBotones().getBotonRecVertBajo().contains(x,y)){\n Log.d(TAG, \"boton Abajo\");\n this.getJugadora().setDireccio(3);\n this.getJugadora().setPosicion(this.getJugadora().getPosicion().x,this.getJugadora().getPosicion().y + this.getJugadora().getSpeed());\n }\n if(this.getBotones().getBotonCercleA().contains(x,y)){\n Log.d(TAG, \"boton A\");\n }\n if(this.getBotones().getBotonCercleB().contains(x,y)){\n Log.d(TAG, \"boton B\");\n }\n\n // mover player , interaccion de una sola respuesta por cada click\n\n\n\n }", "public void creightonIsExtraSpecial() {\n\t\tHashMap<String, Object> partToStatus = new HashMap<String, Object>();\n\t\t\n\t\tpartToStatus.put(\"autoTime\", autoTime);\n\t\tpartToStatus.put(\"matchTime\", matchTime);\n\t\t\n\t\tpartToStatus.get(\"autoTime\");\n\t\t\n\t\t\n\t}", "private static HashMap<Method, Double> getActionTaggedMethods(FsmModel fsm) {\n HashMap<Method, Double> ret = new HashMap<Method, Double>();\n for (Method m : fsm.getClass().getDeclaredMethods()) {\n Annotation[] ta = m.getDeclaredAnnotations();\n for (int i=0; i < ta.length; i++) {\n if (ta[i] instanceof Action) {\n Method actProba = null;\n double proba = 0;\n try {\n actProba = fsm.getClass().getDeclaredMethod(m.getName() + \"Proba\");\n proba = (Double) actProba.invoke(fsm);\n } catch (NoSuchMethodException e) {\n System.err.println(\"Warning: method \" + m.getName() + \" has no probability. Considered 0.\");\n e.printStackTrace();\n } catch (IllegalAccessException e) {\n System.err.println(\"Illegal access to \" + m.getName() + \"Proba\");\n System.err.println(\"Shouldn't have happened\");\n // e.printStackTrace(System.err);\n } catch (InvocationTargetException e) {\n System.err.println(\"Exception on target invocation on \" + m.getName() + \"Proba\");\n System.err.println(\"Shouldn't have happened\");\n // e.printStackTrace(System.err);\n }\n ret.put(m, proba);\n }\n }\n }\n return ret;\n }", "@Override\r\n\tpublic void funcionalidad(boolean aceptado) {\r\n\t\tif (aceptado) {\r\n\t\t\tbtn_guardar.removeAll();\r\n\t\t\tbtn_cancelar.removeAll();\r\n\t\t\tbtn_cancelar.setVisible(false);\r\n\t\t\tbtn_guardar.setVisible(false);\r\n\t\t\tbtnEliminar.setVisible(true);\r\n\t\t\tbutton_Editar.setVisible(true);\r\n\t\t\tbtnRetirar.setVisible(true);\r\n\t\t\tbtn_crear.setVisible(true);\r\n\r\n\t\t\tif (validarDatos()) {\r\n\t\t\t\t// Actualizar miOferta\r\n\t\t\t\tmiOferta.setDescripcion(txArea_descripcion.getText());\r\n\t\t\t\tmiOferta.setLugar(txField_lugar.getText());\r\n\t\t\t\tmiOferta.setExperiencia(Float.parseFloat(txField_experiencia.getText()));\r\n\t\t\t\tmiOferta.setContrato(((Contrato) combo_contrato.getSelectedItem()));\r\n\t\t\t\tmiOferta.setSalarioMax(Integer.parseInt(txField_sueldoMax.getText()));\r\n\t\t\t\tmiOferta.setSalarioMin(Integer.parseInt(txField_sueldoMin.getText()));\r\n\t\t\t\tmiOferta.setAspectosImprescindibles(txArea_aspectosImpres.getText());\r\n\t\t\t\tmiOferta.setAspectosAValorar(txArea_aspectosValorar.getText());\r\n\t\t\t\tmiOferta.setConocimientos(pa_conocimientos.getConocimientosAnadidos());\r\n\t\t\t}\r\n\r\n\t\t\ttry {\r\n\t\t\t\tUtilidadesBD.actualizarOferta(miOferta);\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public interface METHODS {\n public static int TIME = 0;\n public static int DISTANCE= 1;\n public static int STEPS = 2;\n public static int ACHIEVEMENTS = 3;\n }", "public void onUpdate(IPokemob mob)\r\n {\r\n }", "public void mo1610b() {\r\n if (this.f4603a.f4592h != null) {\r\n Message.obtain(this.f4603a.f4598n, 4).sendToTarget();\r\n }\r\n }", "private void agregarBotones() {\n boton = new JButton[20];\r\n //INICIALIZAMOS LOS BOTONES\r\n boton[0]=new JButton(\"CE\");\r\n boton[1]=new JButton(\"\");\r\n boton[2]=new JButton(\"\");\r\n boton[3]=new JButton(\"\");\r\n boton[4]=new JButton(\"7\");\r\n boton[5]=new JButton(\"8\");\r\n boton[6]=new JButton(\"9\");\r\n boton[7]=new JButton(\"/\");\r\n boton[8]=new JButton(\"4\");\r\n boton[9]=new JButton(\"5\");\r\n boton[10]=new JButton(\"6\");\r\n boton[11]=new JButton(\"*\");\r\n boton[12]=new JButton(\"1\");\r\n boton[13]=new JButton(\"2\");\r\n boton[14]=new JButton(\"3\");\r\n boton[15]=new JButton(\"-\");\r\n boton[16]=new JButton(\"0\");\r\n boton[17]=new JButton(\".\");\r\n boton[18]=new JButton(\"=\");\r\n boton[19]=new JButton(\"+\");\r\n //AGREAMOS LOS BOTONES AL PANEL BOTONES\r\n for(int i=0;i<20;i++){\r\n panel_botones.add(boton[i]);\r\n }\r\n //EVENTOS DE LOS BOTONES\r\n //OPERACIONES\r\n boton[19].addActionListener(new ActionListener(){\r\n @Override\r\n public void actionPerformed(ActionEvent evt){\r\n try{\r\n if(op1!=0)\r\n op1=op1+Double.parseDouble(caja.getText());\r\n else\r\n op1=Double.parseDouble(caja.getText());\r\n operacion=\"suma\";\r\n caja.setText(\"\");\r\n }catch(Exception err){}\r\n \r\n }\r\n });\r\n boton [15].addActionListener(new ActionListener(){\r\n @Override\r\n public void actionPerformed(ActionEvent evt){\r\n try{\r\n if(op1!=0)\r\n op1=op1-Double.parseDouble(caja.getText());\r\n else\r\n op1=Double.parseDouble(caja.getText());\r\n operacion=\"resta\";\r\n caja.setText(\"\");\r\n }catch(Exception err){}\r\n }\r\n });\r\n boton[11].addActionListener(new ActionListener(){\r\n @Override\r\n public void actionPerformed(ActionEvent evt){\r\n try{\r\n if(op1!=0)\r\n op1=op1*Double.parseDouble(caja.getText());\r\n else\r\n op1=Double.parseDouble(caja.getText());\r\n operacion=\"multiplicacion\";\r\n caja.setText(\"\");\r\n }catch(Exception err){}\r\n }\r\n });\r\n boton[7].addActionListener(new ActionListener(){\r\n @Override\r\n public void actionPerformed(ActionEvent evt){\r\n try{\r\n if(op1!=0)\r\n op1=op1/Double.parseDouble(caja.getText());\r\n else\r\n op1=Double.parseDouble(caja.getText());\r\n operacion=\"division\";\r\n caja.setText(\"\");\r\n }catch(Exception err){}\r\n }\r\n });\r\n //NUMEROS Y PUNTO DECIMAL\r\n boton[4].addActionListener(new ActionListener(){\r\n @Override\r\n public void actionPerformed(ActionEvent evt){\r\n if(nueva){caja.setText(\"\");nueva=false;}\r\n caja.setText(caja.getText()+\"7\");\r\n }\r\n });\r\n boton[5].addActionListener(new ActionListener(){\r\n @Override\r\n public void actionPerformed(ActionEvent evt){\r\n if(nueva){caja.setText(\"\");nueva=false;}\r\n caja.setText(caja.getText()+\"8\");\r\n }\r\n });\r\n boton[6].addActionListener(new ActionListener(){\r\n @Override\r\n public void actionPerformed(ActionEvent evt){\r\n if(nueva){caja.setText(\"\");nueva=false;}\r\n caja.setText(caja.getText()+\"9\");\r\n }\r\n });\r\n boton[8].addActionListener(new ActionListener(){\r\n @Override\r\n public void actionPerformed(ActionEvent evt){\r\n if(nueva){caja.setText(\"\");nueva=false;}\r\n caja.setText(caja.getText()+\"4\");\r\n }\r\n });\r\n boton[9].addActionListener(new ActionListener(){\r\n @Override\r\n public void actionPerformed(ActionEvent evt){\r\n if(nueva){caja.setText(\"\");nueva=false;}\r\n caja.setText(caja.getText()+\"5\");\r\n }\r\n });\r\n boton[10].addActionListener(new ActionListener(){\r\n @Override\r\n public void actionPerformed(ActionEvent evt){\r\n if(nueva){caja.setText(\"\");nueva=false;}\r\n caja.setText(caja.getText()+\"6\");\r\n }\r\n });\r\n boton[12].addActionListener(new ActionListener(){\r\n @Override\r\n public void actionPerformed(ActionEvent evt){\r\n if(nueva){caja.setText(\"\");nueva=false;}\r\n caja.setText(caja.getText()+\"1\");\r\n }\r\n });\r\n boton[13].addActionListener(new ActionListener(){\r\n @Override\r\n public void actionPerformed(ActionEvent evt){\r\n if(nueva){caja.setText(\"\");nueva=false;}\r\n caja.setText(caja.getText()+\"2\");\r\n }\r\n });\r\n boton[14].addActionListener(new ActionListener(){\r\n @Override\r\n public void actionPerformed(ActionEvent evt){\r\n if(nueva){caja.setText(\"\");nueva=false;}\r\n caja.setText(caja.getText()+\"3\");\r\n }\r\n });\r\n boton[16].addActionListener(new ActionListener(){\r\n @Override\r\n public void actionPerformed(ActionEvent evt){\r\n if(nueva){caja.setText(\"\");nueva=false;}\r\n caja.setText(caja.getText()+\"0\");\r\n }\r\n });\r\n boton[17].addActionListener(new ActionListener(){\r\n @Override\r\n public void actionPerformed(ActionEvent evt){\r\n if(nueva){caja.setText(\"\");nueva=false;}\r\n caja.setText(caja.getText()+\".\");\r\n }\r\n });\r\n //IGUAL\r\n boton[18].addActionListener(new ActionListener(){\r\n @Override\r\n public void actionPerformed(ActionEvent evt){\r\n try{\r\n op2=Double.parseDouble(caja.getText());\r\n }catch(Exception err){}\r\n if(operacion.equals(\"suma\")){\r\n double res=op1+op2;\r\n caja.setText(String.valueOf(res));\r\n op1=op2=0;\r\n operacion=\"\";\r\n }else if(operacion.equals(\"resta\")){\r\n double res=op1-op2;\r\n caja.setText(String.valueOf(res));\r\n op1=op2=0;\r\n operacion=\"\";\r\n }else if(operacion.equals(\"multiplicacion\")){\r\n double res=op1*op2;\r\n caja.setText(String.valueOf(res));\r\n op1=op2=0;\r\n operacion=\"\";\r\n }else if(operacion.equals(\"division\")){\r\n double res=op1/op2;\r\n caja.setText(String.valueOf(res));\r\n op1=op2=0;\r\n operacion=\"\";\r\n }\r\n nueva=true;\r\n }\r\n });\r\n //CE\r\n boton[0].addActionListener(new ActionListener(){\r\n @Override\r\n public void actionPerformed(ActionEvent evt){\r\n caja.setText(\"\");\r\n op1=op2=0;\r\n operacion=\"\";\r\n }\r\n });\r\n \r\n }", "public void informarTeclaPressionada( Tecla t );", "public float impuestoAplicado();", "@Quando(\"acionar o botao save\")\r\n\tpublic void acionarOBotaoSave() {\n\t\tNa(CadastrarUsuarioPage.class).acionarBtnSave();\r\n\t}", "public void mantenimiento(){\n\t}", "@Override\r\n\t\tpublic void onClick(View arg0) {\n\t\t\tn++;\r\n\t\t\tmy_button.setText(\"receive:\"+String.valueOf(n));\r\n\t\t\t\r\n\r\n\t\t\tlong now_time = java.lang.System.currentTimeMillis();\r\n\t\t my_his_startTime = 10;\r\n\t\t // my_his_startTime = 3;\r\n\t\t\tmy_his_span = 60;\r\n\t\t\tmy_his_count = 20;\r\n\t\t\t\r\n\t\t\r\n\t\t\tm_bneedupdate = true;\r\n\t\t\t\r\n\t\t\r\n\t\t}", "@Override\r\n\tpublic void action() {\n\t\tMessageTemplate mt=MessageTemplate.or(MessageTemplate.MatchContent(\"comida\"), MessageTemplate.MatchContent(\"bebida\"));\r\n ACLMessage msg = myAgent.receive(mt);\r\n if(msg!=null){\r\n \tif(msg.getContent().compareTo(\"comida\")==0){\r\n \t\tif(Comida>=5){\r\n \t\t\tACLMessage reply = msg.createReply();\r\n reply.setContent(\"Si\");\r\n System.out.println(myAgent.getLocalName()+\":Si, gracias tengo hambre todavia\"); \r\n myAgent.send(reply);\r\n Comida=Comida-5;\r\n \t\t}\r\n \t\telse{\r\n \t\t\tACLMessage reply = msg.createReply();\r\n reply.setContent(\"No\");\r\n System.out.println(myAgent.getLocalName()+\":No gracias\"); \r\n myAgent.send(reply);\r\n \t\t} \r\n \t}\r\n \telse if(msg.getContent().compareTo(\"bebida\")==0){\r\n \t\tif(Bebida>=5){\r\n \t\t\tACLMessage reply = msg.createReply();\r\n reply.setContent(\"Si\");\r\n System.out.println(myAgent.getLocalName()+\":Si, gracias tengo sed todavia\"); \r\n myAgent.send(reply);\r\n Bebida=Bebida-5;\r\n \t\t}\r\n \t\telse{\r\n \t\t\tACLMessage reply = msg.createReply();\r\n reply.setContent(\"No\");\r\n System.out.println(myAgent.getLocalName()+\":No gracias\"); \r\n myAgent.send(reply);\r\n \t\t} \r\n \t}\r\n }\r\n if (Comida==0 && Bebida==0){\r\n \tmyAgent.doDelete();\r\n }\r\n\t}", "public void recibir_estado_partida(){\n\n }", "public void act() \r\n {\r\n \r\n // Add your action code here\r\n MovimientoNave();\r\n DisparaBala();\r\n Colisiones();\r\n //muestraPunto();\r\n //archivoTxt();\r\n }", "int getActivacion();", "public void acutualizarInfo(){\n String pibId = String.valueOf(comentario.getId());\n labelId.setText(\"#\" + pibId);\n\n String autor = comentario.getAutor().toString();\n labelAutor.setText(autor);\n\n String fecha = comentario.getFechaCreacion().toString();\n labelFecha.setText(fecha);\n \n String contenido = comentario.getContenido();\n textAreaContenido.setText(contenido);\n \n String likes = ((Integer)comentario.totalLikes()).toString();\n labelLikes.setText(likes);\n \n Collection<Comentario> comments = socialNetwork.searchSubComentarios(comentario);\n panelSubComentarios.loadItems(comments, 15);\n \n if(comentario.isSubcomentario()){\n jButton4.setEnabled(true);\n }\n else{\n jButton4.setEnabled(false);\n }\n }", "public void mo1611c() {\r\n Message.obtain(this.f4603a.f4598n, 6, null).sendToTarget();\r\n }", "long getTimeBoltABoltB();", "public void actionPerformed(ActionEvent evento){//este es el unico metodo que hay que implementer de la interfaz actionlistener\n\t\t\t//lo siguiente es el evento que se desencadena cada ves que se cumpla e tiempo del temporizador\n\t\t\tDate hora=new Date();//se crea un objeto de tipo date\n\t\t\t\n\t\t\tSystem.out.println(\"la hora del sistema es: \" + hora);\n\t\t\t\n\t\t\tif(sonido){//se evalua el valor de la variable booleana, no es necesario realizar comparacion en las variables booleanas\n\t\t\t\t\n\t\t\t\tToolkit.getDefaultToolkit().beep(); //esta metodo ejecuta un bip\n\t\t\t}\n\t\t}", "Motivo update(Motivo update);", "@Override\n\tpublic void bidfunction() {\n\t\t\n\t}", "@Override\n\tpublic void bidfunction() {\n\t\t\n\t}", "public void operacao();", "public void act() \n {\n // Add your action code here.\n contaP++;\n if(contaP == 25)\n {\n baja();\n contaP=0;\n }\n }", "public abstract void onBakestatsCommand(Player player);", "public int getTipoDeBoton() {\r\n return this.iTipoDeBoton;\r\n }", "public int getButacas() {\r\n\t\treturn butacas;\r\n\t}", "int getTimesCombatActionsCalled();", "private void initBoutons() {\n bMonterDomaine.setText(null);\n bMonterCompte.setText(null);\n bDescendreDomaine.setText(null);\n bDescendreCompte.setText(null);\n bMonterDomaineMax.setText(null);\n bMonterCompteMax.setText(null);\n bDescendreDomaineMax.setText(null);\n bDescendreCompteMax.setText(null);\n bAjoutDomaine.setText(null);\n bAjoutCompte.setText(null);\n bModificationDomaine.setText(null);\n bModificationCompte.setText(null);\n bSuppressionDomaine.setText(null);\n bSuppressionCompte.setText(null);\n\n // Tootips\n bMonterDomaine.setTooltip(new Tooltip(\"Monter le domaine sélectionné d'une place\"));\n bMonterCompte.setTooltip(new Tooltip(\"Monter le compte sélectionné d'une place\"));\n bDescendreDomaine.setTooltip(new Tooltip(\"Descendre le domaine sélectionné d'une place\"));\n bDescendreCompte.setTooltip(new Tooltip(\"Descendre le compte sélectionné d'une place\"));\n bMonterDomaineMax.setTooltip(new Tooltip(\"Monter le domaine sélectionné jusqu'en première place\"));\n bMonterCompteMax.setTooltip(new Tooltip(\"Monter le compte sélectionné jusqu'en première place\"));\n bDescendreDomaineMax.setTooltip(new Tooltip(\"Descendre le domaine sélectionné jusqu'en dernière place\"));\n bDescendreCompteMax.setTooltip(new Tooltip(\"Descendre le compte sélectionné jusqu'en dernière place\"));\n bAjoutDomaine.setTooltip(new Tooltip(\"Ajouter un nouveau domaine\"));\n bAjoutCompte.setTooltip(new Tooltip(\"Ajouter un nouveau compte\"));\n bModificationDomaine.setTooltip(new Tooltip(\"Modifier le domaine sélectionné\"));\n bModificationCompte.setTooltip(new Tooltip(\"Modifier le compte sélectionné\"));\n bSuppressionDomaine.setTooltip(new Tooltip(\"Supprimer le domaine sélectionné\"));\n bSuppressionCompte.setTooltip(new Tooltip(\"Supprimer le compte sélectionné\"));\n\n // Gestion des activations de boutons\n bMonterDomaine.setDisable(true);\n bMonterCompte.setDisable(true);\n bDescendreDomaine.setDisable(true);\n bDescendreCompte.setDisable(true);\n bMonterDomaineMax.setDisable(true);\n bMonterCompteMax.setDisable(true);\n bDescendreDomaineMax.setDisable(true);\n bDescendreCompteMax.setDisable(true);\n bAjoutCompte.setDisable(true);\n bModificationDomaine.setDisable(true);\n bModificationCompte.setDisable(true);\n bSuppressionDomaine.setDisable(true);\n bSuppressionCompte.setDisable(true);\n\n // Setup les images\n bMonterDomaine.setGraphic(imageManager.constructImageViewFrom(ImageManager.ICONE_UP, 16, 16, true));\n bMonterCompte.setGraphic(imageManager.constructImageViewFrom(ImageManager.ICONE_UP, 16, 16, true));\n bDescendreDomaine.setGraphic(imageManager.constructImageViewFrom(ImageManager.ICONE_DOWN, 16, 16, true));\n bDescendreCompte.setGraphic(imageManager.constructImageViewFrom(ImageManager.ICONE_DOWN, 16, 16, true));\n bMonterDomaineMax.setGraphic(imageManager.constructImageViewFrom(ImageManager.ICONE_DOUBLE_UP, 16, 16, true));\n bMonterCompteMax.setGraphic(imageManager.constructImageViewFrom(ImageManager.ICONE_DOUBLE_UP, 16, 16, true));\n bDescendreDomaineMax.setGraphic(imageManager.constructImageViewFrom(ImageManager.ICONE_DOUBLE_DOWN, 16, 16, true));\n bDescendreCompteMax.setGraphic(imageManager.constructImageViewFrom(ImageManager.ICONE_DOUBLE_DOWN, 16, 16, true));\n bAjoutDomaine.setGraphic(imageManager.constructImageViewFrom(ImageManager.ICONE_ADD, 16, 16, true));\n bAjoutCompte.setGraphic(imageManager.constructImageViewFrom(ImageManager.ICONE_ADD, 16, 16, true));\n bModificationDomaine.setGraphic(imageManager.constructImageViewFrom(ImageManager.ICONE_INFO, 16, 16, true));\n bModificationCompte.setGraphic(imageManager.constructImageViewFrom(ImageManager.ICONE_INFO, 16, 16, true));\n bSuppressionDomaine.setGraphic(imageManager.constructImageViewFrom(ImageManager.ICONE_REMOVE, 16, 16, true));\n bSuppressionCompte.setGraphic(imageManager.constructImageViewFrom(ImageManager.ICONE_REMOVE, 16, 16, true));\n\n // Cas particulier: ecraserFiltre\n bEcraserFiltre.setText(null);\n bEcraserFiltre.setTooltip(new Tooltip(\"Retirer le filtre\"));\n bEcraserFiltre.setGraphic(imageManager.constructImageViewFrom(ImageManager.ICONE_REMOVE, 16, 16, true));\n }", "public void thisSlot(MyButton boton) {\n\t\tthis.boton = boton;\n\t\tDialeg dialeg = new Dialeg();\n\t\tdialeg.setInputText(\"How much money do you want to bet?\");\n\t\tif (dialeg.getAmount() != null && (dialeg.getAmount().isEmpty()\n\t\t\t\t|| !dialeg.getAmount().matches(\"[-+]?\\\\d*\\\\.?\\\\d+\") || Float.parseFloat(dialeg.getAmount()) <= 0)) {\n\t\t\tdialeg.setWarningText(\"Enter a correct amount!\");\n\t\t} else if (dialeg.getAmount() != null) {\n\t\t\tString slot = boton.getText();\n\t\t\tBet bet = new Bet(Double.parseDouble(dialeg.getAmount()), slot);\n\t\t\trouletteExecutor.setAposta(bet);\n\t\t\tbool.set(true);\n\t\t}\n\t}", "void stampaStatisticheNodo() {\r\n for(Object obj : this.nodes)\r\n {\r\n Nodo n = (Nodo)obj;\r\n \r\n TransportLayer tl = n.myTransportLayer;\r\n tl.stampaStatistiche();\r\n \r\n // System.out.println(\"=====STAMPA STATISTICHE NODO NETWORK LAYER====\");\r\n NetworkLayer nl = n.myNetLayer;\r\n // String s = nl.getStat();\r\n nl.stampaStatistiche();\r\n // System.out.println(s);\r\n // System.out.println(\"=====FINE====\");\r\n \r\n physicalLayer pl = n.myPhyLayer;\r\n pl.stampaStatistiche();\r\n }\r\n }", "long getTimeBoltBBoltC();", "private void getGameCommands(){\n\n }", "public void mo1533b() {\n C2201w.m8373a(\"Photo TransferData success!\", 1);\n }", "public void definirActionBotonEmail(ActionEvent e) {\n CommandButton btnSelect = (CommandButton) e.getSource();\n\n //System.out.println(\"boton id: \" + btnSelect.getId());\n //this.getCbAction().setDisabled(false);\n if (btnSelect.getId().equals(\"btnEdit\")) {\n this.getCbActionEmail().setValue(\"Editar\");\n this.getListadoEmailBean().setiTipoBoton(1);\n }\n if (btnSelect.getId().equals(\"btnDelete\")) {\n this.getCbActionEmail().setValue(\"Eliminar\");\n this.getListadoEmailBean().setiTipoBoton(2);\n }\n\n if (btnSelect.getId().equals(\"btnCreateTelefonos\")) {\n //System.out.println(\"Entro al if : \" + this.getPersona());\n // this.getCbAction().setValue(\"Guardar\");\n\n this.getListadoEmailBean().setiTipoBoton(0);\n\n }//fin if\n\n //System.out.println(\"termino el definir: \" + this.getPersona());\n }", "public void setPoints_action(int points_action)\r\n/* */ {\r\n/* 80 */ this.points_action = points_action;\r\n/* */ }", "public void dataControl() {\n\t\tString name = \"\", xCor = \"\", yCor = \"\";\n\t\tname = _nameTf.getText().toString();\n\t\txCor = _xTf.getText().toString();\n\t\tyCor = _yTf.getText().toString();\n\n\t\t_missionTa.append(getCurrentTimeStamp() + \"\\n\");\n\n\t\tif (checkV(name, xCor, yCor)) {\n\t\t\tsendData(name, xCor, yCor);\n\t\t}\n\n\t\tclearText();\n\t}", "public void ventaBilleteMaquina1()\n {\n maquina1.insertMoney(500);\n maquina1.printTicket();\n }", "private void setButtonVisibilities(){\n\n if(eventType.equals(EventType.ORGANISE)){\n btnUpdateOrSignIn.setVisibility(View.VISIBLE);\n btnUpdateOrSignIn.setText(R.string.update);\n }\n else if(timeType.equals(TimeType.ONGOING) && eventType.equals(EventType.ATTEND)){\n btnUpdateOrSignIn.setVisibility(View.VISIBLE);\n btnUpdateOrSignIn.setText(R.string.sign_in);\n }\n else{\n btnUpdateOrSignIn.setVisibility(View.GONE);\n }\n }", "public void mo1607a() {\r\n if (this.f4603a.f4592h != null) {\r\n Message.obtain(this.f4603a.f4598n, 3).sendToTarget();\r\n }\r\n }", "private void noti1(){\n\t\t/*Contenido de notificacion*/\n\t\tNotification notificacion = new Notification( \n R.drawable.metrans_logo,\n \"Metrans inicializando... Bienvenido\",\n System.currentTimeMillis() );\n\t\t/*Fin de contenido de la notificacion*/\n\t\tPendingIntent intencionPendiente = PendingIntent.getActivity(\n\t\t this, 0, new Intent(this, MainActivity.class), 0);\n\t\tnotificacion.setLatestEventInfo(this, \"Somos tan chingones\",\n\t\t \"que tenemos notificaciones aqui\", intencionPendiente);\n\t\n\t\t nm1.notify(ID_NOTIFICACION_CREAR, notificacion); //Enviamos la notificacion al status bar\n\t\tnotificacion.defaults |= Notification.DEFAULT_VIBRATE; //Agregando algo de vibracion... Espero y funcione\n\t\t\n\t}", "public void act() \r\n {\r\n // Add your action code here.\r\n tembak();\r\n gerakKiri();\r\n gerakKanan();\r\n \r\n \r\n \r\n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"nosambungan\", nosambungan);\n return params;\n }", "public void actionsTouches () {\n\t\t//Gestion des deplacements du mineur si demande\n\t\tif (Partie.touche == 'g' || Partie.touche == 'd' || Partie.touche == 'h' || Partie.touche == 'b') deplacements();\n\n\t\t//Affichage du labyrinthe et des instructions, puis attente de consignes clavier.\n\t\tpartie.affichageLabyrinthe();\n\n\t\t//Quitte la partie si demande.\n\t\tif (Partie.touche == 'q') partie.quitter();\n\n\t\t//Trouve et affiche une solution si demande.\n\t\tif (Partie.touche == 's') affichageSolution();\n\n\t\t//Recommence la partie si demande.\n\t\tif (Partie.touche == 'r') {\n\t\t\tgrille.removeAll();\n\t\t\tpartie.initialisation();\n\t\t}\n\n\t\t//Affichage de l'aide si demande\n\t\tif (Partie.touche == 'a') {\n\t\t\tString texteAide = new String();\n\t\t\tswitch(themeJeu) {\n\t\t\tcase 2 : texteAide = \"Le but du jeu est d'aider Link à trouver la sortie du donjon tout en récupérant le(s) coffre(s).\\n Link doit egalement recuperer la Master Sword qui permet de tuer le monstre bloquant le chemin.\\n\\nLink se déplace à l'aide des touches directionnelles.\\nUne solution peut-être affichée en appuyant sur la touche (s).\\nLa touche (r) permet de recommencer, (q) de quitter.\\n\\n Bon jeu !\"; break;\n\t\t\tcase 3 : texteAide = \"Le but du jeu est d'aider Samus à trouver la sortie du vaisseau tout en récupérant le(s) émeraude(s).\\nSamus doit egalement recuperer la bombe qui permet de tuer le metroid qui bloque l'accès à la sortie.\\n\\nSamus se déplace à l'aide des touches directionnelles.\\nUne solution peut-être affichée en appuyant sur la touche (s).\\nLa touche (r) permet de recommencer, (q) de quitter.\\n\\n Bon jeu !\"; break;\n\t\t\tcase 4 : texteAide = \"Le but du jeu est d'aider le pompier à trouver la sortie du batiment tout en sauvant le(s) rescapé(s).\\nLe pompier doit egalement recuperer l'extincteur qui permet d'éteindre le feu qui bloque l'accès à la sortie.\\n\\nLe pompier se déplace à l'aide des touches directionnelles.\\nUne solution peut-être affichée en appuyant sur la touche (s).\\nLa touche (r) permet de recommencer, (q) de quitter.\\n\\n Bon jeu !\"; break;\n\t\t\tcase 5 : texteAide = \"Le but du jeu est d'aider Mario à trouver le drapeau de sortie tout en ramassant le(s) pièce(s).\\nMario doit egalement recuperer l'étoile d'invincibilité qui permet de se débarasser du Goomba qui l'empêche de sortir.\\n\\nMario se déplace à l'aide des touches directionnelles.\\nUne solution peut-être affichée en appuyant sur la touche (s).\\nLa touche (r) permet de recommencer, (q) de quitter.\\n\\n Here we gooo !\"; break;\n\t\t\tdefault : texteAide = \"Le but du jeu est d'aider le mineur à trouver la sortie du labyrinthe tout en extrayant le(s) filon(s).\\nLe mineur doit egalement recuperer la clef qui permet l'ouverture de le porte qui bloque l'accès à la sortie.\\n\\nLe mineur se déplace à l'aide des touches directionnelles.\\nUne solution peut-être affichée en appuyant sur la touche (s).\\nLa touche (r) permet de recommencer, (q) de quitter.\\n\\n Bon jeu !\"; break;\n\t\t\t}\n\t\t\tSystem.out.println(\"\\n============================================ AIDE ========================================\\n\\n\" + texteAide + \"\\n\\n==========================================================================================\\n\");\n\t\t\tJOptionPane.showMessageDialog(null, texteAide, \"Aide\", JOptionPane.QUESTION_MESSAGE);\n\t\t\tPartie.touche = ' ';\n\t\t}\n\n\t\t//Affichage de les infos si demande\n\t\tif (Partie.touche == 'i') {\n\t\t\tSystem.out.println(\"\\n============================================ INFOS =======================================\\n\\nCe jeu a ete developpe par Francois ADAM et Benjamin Rancinangue\\ndans le cadre du projet IPIPIP 2015.\\n\\n==========================================================================================\\n\");\n\t\t\tPartie.touche = ' ';\n\t\t\tJOptionPane.showMessageDialog(null, \"Ce jeu a été développé par François Adam et Benjamin Rancinangue\\ndans le cadre du projet IPIPIP 2015.\", \"Infos\", JOptionPane.INFORMATION_MESSAGE, new ImageIcon(getClass().getResource(\"/images/EMN.png\")));\n\t\t}\n\n\t\t//Nettoyage de l'ecran de console\n\t\tSystem.out.println(\"\\n==========================================================================================\\n\");\n\t}", "private void actualizaPuntuacion() {\n if(cambiosFondo <= 10){\n puntos+= 1*0.03f;\n }\n if(cambiosFondo > 10 && cambiosFondo <= 20){\n puntos+= 1*0.04f;\n }\n if(cambiosFondo > 20 && cambiosFondo <= 30){\n puntos+= 1*0.05f;\n }\n if(cambiosFondo > 30 && cambiosFondo <= 40){\n puntos+= 1*0.07f;\n }\n if(cambiosFondo > 40 && cambiosFondo <= 50){\n puntos+= 1*0.1f;\n }\n if(cambiosFondo > 50) {\n puntos += 1 * 0.25f;\n }\n }", "private final void m703b() {\n int i;\n akc akc = this.f529n;\n akp akp = this.f533r;\n if (akp != akc.f503a || akc.f504b > 0 || akc.f505c) {\n Handler handler = this.f524i;\n int i2 = akc.f504b;\n if (akc.f505c) {\n i = akc.f506d;\n } else {\n i = -1;\n }\n handler.obtainMessage(0, i2, i, akp).sendToTarget();\n akc akc2 = this.f529n;\n akc2.f503a = this.f533r;\n akc2.f504b = 0;\n akc2.f505c = false;\n }\n }", "public abstract long getNumUpdate();", "public void TeleopCode() {\n\t\tMLeft.set(-Controls.joy2.getRawAxis(5)+ 0.06); //(Controls.joy2.getRawAxis5 + 0.06);\n\t}", "@Override\n\tpublic void msgAtFrige() {\n\t\t\n\t}", "public void ventaBilleteMaquina2()\n {\n maquina2.insertMoney(600);\n maquina1.printTicket();\n }", "@Override\n public void llenardeposito(){\n this.setCombustible(getTankfuel());\n }", "public interface OnSendTotSpent {\n void ReceiveTotSpent(double totSpent);\n }", "@Override\n public void onClick(View arg0) {\n byte[]bb= new byte[]{(byte)1,2,3};\n String sendstr = \"group1:\"+seekbartime1 + \",\" + seekbaramp1 +\"\\r\\n\";\n Boolean boolean1 = mBluetoothLeService.write(mNotifyCharacteristic,sendstr);\n\n sendstr = \"group2:\"+seekbartime2 + \",\" + seekbaramp2 +\"\\r\\n\";\n boolean1 = mBluetoothLeService.write(mNotifyCharacteristic,sendstr);\n\n sendstr = \"group3:\"+seekbartime3 + \",\" + seekbaramp3 +\"\\r\\n\";\n boolean1 = mBluetoothLeService.write(mNotifyCharacteristic,sendstr);\n\n sendstr = \"group4:\"+seekbartime4 + \",\" + seekbaramp4 +\"\\r\\n\";\n boolean1 = mBluetoothLeService.write(mNotifyCharacteristic,sendstr);\n\n\n\n SeekBaramp_1.setProgress(0);\n SeekBartime_01.setProgress(0);\n\n\n SeekBaramp_2.setProgress(0);\n SeekBartime_02.setProgress(0);\n\n SeekBaramp_3.setProgress(0);\n SeekBartime_03.setProgress(0);\n\n SeekBaramp_4.setProgress(0);\n SeekBartime_04.setProgress(0);\n\n Log.e(\"a\", \"发送UUID\"+mNotifyCharacteristic.getUuid().toString()+\"是否发送成功::\"+\"\");\n }", "public void MostrarNotificacion(Boolean estado, int cancelar){\n //hora del evento\n long hora = System.currentTimeMillis();\n\n NotificationCompat.Builder builder = new NotificationCompat.Builder(getApplicationContext(), CHANNEL_ID);\n builder.setSmallIcon(R.drawable.ic_launcher_background);\n builder.setContentTitle(\"Titulo\");\n builder.setContentText(\"Cuerpo\");\n builder.setWhen(hora);\n builder.setPriority(NotificationCompat.PRIORITY_DEFAULT);\n\n //para poner la notificacion permanente\n builder.setOngoing(estado);\n\n //construir la notificacion\n NotificationManagerCompat notificationManagerCompat = NotificationManagerCompat.from(getApplicationContext());\n notificationManagerCompat.notify(NOTIFICACION_ID, builder.build());\n\n //para quitar la notificacion\n notificationManagerCompat.cancel(cancelar);\n\n\n\n }", "@Override\n public void teleopPeriodic() {\n }", "@Override\n public void teleopPeriodic() {\n }", "U getUpdateby();", "private void battleTickStatuses(){\n updateStatuses(battleEnemies);\n updateStatuses(battleAllies);\n }", "public GWDPEXPRESS_MY_ACHIEVEMENTS()\n{\najouterFenetre(\"EXPRESS_FEN_Search\", mWD_EXPRESS_FEN_Search);\najouterFenetre(\"EXPRESS_FEN_Profil\", mWD_EXPRESS_FEN_Profil);\najouterFenetre(\"EXPRESS_FEN_Achievement\", mWD_EXPRESS_FEN_Achievement);\n\n}", "@Override\r\n\tdouble getBonificacao() {\n\t\treturn 0;\r\n\t}", "public void cmdInfo( String name ) {\r\n if( !isEnabled ) {\r\n m_botAction.sendSmartPrivateMessage(name, \"Autopilot is not currently enabled. Please hang up and try again later.\" );\r\n return;\r\n }\r\n\r\n m_botAction.sendSmartPrivateMessage(name, \"Autopilot - The automated event host controlled by players.\" );\r\n m_botAction.sendSmartPrivateMessage(name, \"If you wish for the bot to run one of the following tasks, send the command\" );\r\n m_botAction.sendSmartPrivateMessage(name, \"next to it (!task#). Your vote will be counted. When enough votes have been\" );\r\n m_botAction.sendSmartPrivateMessage(name, \"reached, the task will run. If you leave the arena all your votes are removed.\" );\r\n\r\n m_botAction.sendSmartPrivateMessage(name, \"List of tasks available to run:\" );\r\n\r\n if( tasks.size() == 0 )\r\n m_botAction.sendSmartPrivateMessage(name, \"No tasks have been entered yet.\" );\r\n\r\n for( int i = 0; i < tasks.size(); i++ ) {\r\n AutoTask c = tasks.get( i );\r\n\r\n if( c != null )\r\n m_botAction.sendSmartPrivateMessage(name, \"!task\" + (i + 1) + \" (\" + c.getVotes() + \" of \" + c.getVotesReq() + \" votes needed) \" + c.getDisplay() );\r\n }\r\n }", "@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}", "@Override\r\n\tpublic void solicitarMonto(int monto) {\n\t\tSystem.out.println(\"Comprobar dinero dentro de la cuenta\");\r\n\t\tSystem.out.println(\"Leer monto\");\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}" ]
[ "0.60324633", "0.59694684", "0.5820106", "0.5727316", "0.57239324", "0.5617491", "0.5503561", "0.54853463", "0.53709936", "0.53461194", "0.5269491", "0.5261448", "0.5254888", "0.51833785", "0.5162315", "0.51604325", "0.5145741", "0.514568", "0.5138896", "0.5136767", "0.5127858", "0.5103469", "0.5075474", "0.50637233", "0.5054575", "0.50498664", "0.5048853", "0.5047323", "0.5047316", "0.5046151", "0.5039956", "0.5036471", "0.5027623", "0.50252724", "0.50182194", "0.5017302", "0.5016716", "0.5016344", "0.5010628", "0.4997873", "0.49830884", "0.4974343", "0.4974151", "0.49706253", "0.49629954", "0.49606994", "0.49523598", "0.49507412", "0.49423003", "0.49418712", "0.4941592", "0.4940194", "0.49341562", "0.49335143", "0.49254405", "0.49237058", "0.4922645", "0.49187434", "0.49187434", "0.49162474", "0.49161965", "0.49118865", "0.49070978", "0.4905973", "0.49007928", "0.4898027", "0.48931515", "0.4890972", "0.48897487", "0.4884919", "0.48788282", "0.48787868", "0.4877831", "0.48777717", "0.48773563", "0.48769933", "0.4866926", "0.48602697", "0.48566687", "0.48556846", "0.48532975", "0.48526973", "0.48484096", "0.48462144", "0.4843269", "0.48395118", "0.48391432", "0.48387355", "0.48380253", "0.48334128", "0.4825248", "0.482462", "0.482462", "0.48211437", "0.48186135", "0.4818267", "0.48168677", "0.48127037", "0.48122403", "0.48114833", "0.48114172" ]
0.0
-1
Retrieves the BLOB from the store
Blob getBlob(BlobStoreContext blobStoreContext, CloudPath path, GetOptionFileAttribute getOption);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Blob getContentBlob() {\n return Hibernate.createBlob(this.content);\n }", "BlobStore getBlobStore();", "Object getBlob(ResultSet rs, int pos)\r\n throws Exception;", "public abstract Blob readBlob(User user);", "private static ByteString readImageBytes(BlobKey blobKey) throws IOException {\n BlobstoreService blobstoreService = BlobstoreServiceFactory.getBlobstoreService();\n BlobInfo blobInfo = new BlobInfoFactory().loadBlobInfo(blobKey);\n long blobSize = blobInfo.getSize();\n\n ByteArrayOutputStream outputBytes = new ByteArrayOutputStream();\n int fetchSize = BlobstoreService.MAX_BLOB_FETCH_SIZE;\n long currentByteIndex = 0;\n\n // Fetch all the bytes from the blob in fragments of the maximum fetch size.\n while (currentByteIndex < blobSize) {\n // End index is inclusive, so subtract 1 to get fetchSize bytes.\n // Get data starting at currentByteIndex until either the fetch size or\n // the end of the blob is reached.\n byte[] bytes =\n blobstoreService.fetchData(blobKey, currentByteIndex, currentByteIndex + fetchSize - 1);\n outputBytes.write(bytes);\n\n currentByteIndex += fetchSize;\n }\n\n return ByteString.copyFrom(outputBytes.toByteArray());\n }", "String getBlobField();", "public Blob getBlob(int columnIndex) throws SQLException {\n\n try {\n int id = getNextId(TraceObject.BLOB);\n debugCodeAssign(\"Blob\", TraceObject.BLOB, id, \"getBlob(\" + columnIndex + \")\");\n Value v = get(columnIndex);\n return v == ValueNull.INSTANCE ? null : new JdbcBlob(conn, v, id);\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }", "public byte[] getBytes()\n {\n try { return getRepo().newObjectReader().open(_entry.getObjectId()).getBytes(); }\n catch(Exception e) { throw new RuntimeException(e); }\n }", "public Blob getBlob(String columnName) throws SQLException {\n\n try {\n int id = getNextId(TraceObject.BLOB);\n debugCodeAssign(\"Blob\", TraceObject.BLOB, id, \"getBlob(\" + quote(columnName) + \")\");\n Value v = get(columnName);\n return v == ValueNull.INSTANCE ? null : new JdbcBlob(conn, v, id);\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }", "byte[] retrieve(UUID uuid) throws FailedToRetrieveStorageData, DataNotFoundInStorage;", "public Blob getBlob(int i) throws SQLException\n {\n return m_rs.getBlob(i);\n }", "FileStore getFile(String fileRefId);", "@Column(name = \"FILE_CONTENT\" )\n @Lob\n public Byte[] getFileContent() {\n return fileContent;\n }", "public Blob getBlob(String colName) throws SQLException\n {\n return m_rs.getBlob(colName);\n }", "@Override\n public GetBlobResult getBlob(GetBlobRequest request) {\n request = beforeClientExecution(request);\n return executeGetBlob(request);\n }", "@Override\n\tpublic String readBlob() throws PersistBlobException {\n\t\tlog.debug(\"readString: \");\n\t\ttry {\n\t\t\tString contents = FileUtils.readFileToString(new File(full_file_name), \"UTF-8\");\n\t\t\tlog.debug(\"returned string: \"+contents);\n\t\t\treturn contents;\n\t\t} catch (IOException e) {\n\t\t\tthrow new PersistBlobException(\"can not read string\",e);\n\t\t}\n\n\t}", "ResPartnerBankEntityWithBLOBs selectByPrimaryKey(Integer id);", "private byte[] getData() {\n\t\tStorage storage;\n\t\tint cont = 0;\n\t\tbyte[] data = null;\n\t\tsynchronized (store) {\n\t\t\tstorage = (Storage) store.getContents();\n\t\t\tif (storage != null && storage.data != null) {\n\t\t\t\tdata = storage.data;\n\t\t\t\tcont = storage.cont;\n\t\t\t}\n\t\t}\n\t\tif (cont == 0 || data == null) {\n\t\t\tdata = getImage();\n\t\t\tif (data == null)\n\t\t\t\treturn null;\n\t\t\tcont++;// It increments twice so on the next run it doesn't get\n\t\t\t// updated again\n\t\t}\n\t\tif (cont > 5)\n\t\t\tcont = 0; // it increments just next, so it never stays 0 (wich\n\t\t// is only initial state)\n\t\tcont++;\n\t\tsynchronized (store) {\n\t\t\tif (storage == null) {\n\t\t\t\tstorage = new Storage();\n\t\t\t}\n\t\t\tstorage.cont = cont;\n\t\t\tstore.setContents(storage);\n\t\t\tstore.commit();\n\t\t}\n\n\t\treturn data;\n\t}", "byte[] getBinaryVDBResource(String resourcePath) throws Exception;", "byte[] getByteContent() throws IOException;", "@Override\n\tpublic IBlob getBlob(String arg0) throws OdaException {\n\t\treturn null;\n\t}", "edu.usfca.cs.dfs.StorageMessages.RetrieveFile getRetrieveFile();", "@Override\n\tpublic byte[] get()\n\t{\n\t\tif (isInMemory())\n\t\t{\n\t\t\tif (cachedContent == null)\n\t\t\t{\n\t\t\t\tcachedContent = dfos.getData();\n\t\t\t}\n\t\t\treturn cachedContent;\n\t\t}\n\n\t\tFile file = dfos.getFile();\n\n\t\ttry\n\t\t{\n\t\t\treturn Files.readBytes(file);\n\t\t}\n\t\tcatch (IOException e)\n\t\t{\n\t\t\tlog.debug(\"failed to read content of file: \" + file.getAbsolutePath(), e);\n\t\t\treturn null;\n\t\t}\n\t}", "public String blobFromFile(String sha1) {\n File blobFile = Utils.join(_objects, sha1);\n if (!blobFile.exists()) {\n throw new IllegalArgumentException(\n \"No blob file with that name found.\");\n }\n return Utils.readContentsAsString(blobFile);\n }", "byte[] getPhotoDetails(Long customerId,String type) throws EOTException;", "@Override\n public Blob getBlob(String bucketName, String objectPath) {\n Blob result = storageProvider.get().get(bucketName, objectPath);\n if (result == null) {\n throw new NotFoundException(String.format(\"Bucket %s, Object %s\", bucketName, objectPath));\n }\n return result;\n }", "private void retrieve() {\r\n\t\ttry {\r\n\t\t\tif (store == null) {\r\n\t\t\t\tstore = Store.retrieve();\r\n\t\t\t\tif (store != null) {\r\n\t\t\t\t\tSystem.out.println(\" The store has been successfully retrieved from the file StoreData. \\n\");\r\n\t\t\t\t} else {\r\n\t\t\t\t\tstore = Store.instance();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception cnfe) {\r\n\t\t\tcnfe.printStackTrace();\r\n\t\t}\r\n\t}", "public abstract byte[] getSnapshot();", "@Override\n\tpublic byte[] fetchFile(String fileName) throws RemoteException {\n return null;\n\n\t}", "public byte[] saveBinary() throws MalformedURLException, IOException {\r\n HttpURLConnection conn = null;\r\n URL urlRequest = new URL(URIUtil.encodeQuery(getAbsoluteUrl()));\r\n conn = (HttpURLConnection) urlRequest.openConnection();\r\n int contentLength = conn.getContentLength();\r\n int bufferLength = 128;\r\n InputStream stream = conn.getInputStream();\r\n byte[] fileData = new byte[contentLength];\r\n int bytesread = 0;\r\n int offset = 0;\r\n while (bytesread >= 0) {\r\n if ((offset + bufferLength) > contentLength) {\r\n bufferLength = contentLength - offset;\r\n }\r\n bytesread = stream.read(fileData, offset, bufferLength);\r\n if (bytesread == -1) {\r\n break;\r\n }\r\n offset += bytesread;\r\n }\r\n\r\n return fileData;\r\n }", "byte[] getContent();", "public byte[] getData() {\n try {\n int n2 = (int)this.len.get();\n if (this.buf == null) {\n return null;\n }\n if (n2 <= this.buf.length) return this.buf.get(n2);\n Log.w(TAG, \"getData: expected length (\" + n2 + \") > buffer length (\" + this.buf.length + \")\");\n throw new IllegalArgumentException(\"Blob:getData - size is larger than the real buffer length\");\n }\n catch (Exception exception) {\n Log.e(TAG, \"getData exception!\");\n exception.printStackTrace();\n return null;\n }\n }", "public void getImage(){\n Cursor c = db.rawQuery(\"SELECT * FROM Stories\",null);\n if(c.moveToNext()){\n byte[] image = c.getBlob(0);\n Bitmap bmp = BitmapFactory.decodeByteArray(image,0,image.length);\n }\n}", "public InputStream recuperaImagenBBDD(Connection con)\n {\n try\n {\n String consultaGenerada = \"select * from imagenesbbdd limit 1\";\n\n depura(\"Ejecutamos Statment\");\n java.sql.Statement stmt = con.createStatement();\n\n depura(\"Ejecutamos sentencia \" + consultaGenerada);\n ResultSet results = stmt.executeQuery(consultaGenerada);\n\n results.next();\n\n Blob campo = results.getBlob(\"imagen\");\n return campo.getBinaryStream();\n }\n catch(Exception e)\n {\n depura(\"Error al recuperar el Stream\");\n }\n\n return null;\n }", "@Override\n\tpublic IBlob getBlob(int arg0) throws OdaException {\n\t\treturn null;\n\t}", "public byte[] getContent();", "DashboardGoods selectOneByExampleWithBLOBs(DashboardGoodsExample example);", "public byte[] getPhoto(String rpiId, String time) throws SQLException, IOException;", "byte[] getEByteArray();", "ResourceWithBLOBs selectByPrimaryKey(Integer resourceid);", "@Override\r\n\t\tpublic Blob createBlob() throws SQLException {\n\t\t\treturn null;\r\n\t\t}", "byte[] getBytes();", "byte[] getBytes();", "ProductPricelistEntityWithBLOBs selectByPrimaryKey(Integer id);", "OStorage getStorage();", "TbSerdeParams selectOneByExampleWithBLOBs(TbSerdeParamsExample example);", "AccountPaymentMethodEntityWithBLOBs selectByPrimaryKey(Integer id);", "public interface ExternalBlobIO {\n /**\n * Write data to blob store\n * @param in: InputStream containing data to be written\n * @param actualSize: size of data in stream, or -1 if size is unknown. To be used by implementor for optimization where possible\n * @param mbox: Mailbox which contains the blob. Can optionally be used by store for partitioning\n * @return locator string for the stored blob, unique identifier created by storage protocol\n * @throws IOException\n * @throws ServiceException\n */\n String writeStreamToStore(InputStream in, long actualSize, Mailbox mbox) throws IOException, ServiceException;\n\n /**\n * Create an input stream for reading data from blob store\n * @param locator: identifier string for the blob as returned from write operation\n * @param mbox: Mailbox which contains the blob. Can optionally be used by store for partitioning\n * @return InputStream containing the data\n * @throws IOException\n */\n InputStream readStreamFromStore(String locator, Mailbox mbox) throws IOException;\n\n /**\n * Delete a blob from the store\n * @param locator: identifier string for the blob\n * @param mbox: Mailbox which contains the blob. Can optionally be used by store for partitioning\n * @return true on success false on failure\n * @throws IOException\n */\n boolean deleteFromStore(String locator, Mailbox mbox) throws IOException;\n}", "public String getBlobId() {\n return this.blobId;\n }", "public byte[] getBytes(String remotePath) throws Exception {\r\n\r\n if (cf.checkExists().forPath(remotePath) == null)\r\n return null;\r\n\r\n byte[] data = cf.getData().forPath(remotePath);\r\n if(data==null)\r\n return null;\r\n else\r\n return data;\r\n }", "public Blob downloadFile(String inKey, String inFileName);", "public byte[] getFoto() {\n\t\treturn foto;\n\t}", "public Blob getResource(String relativePath) throws DocumentNotFoundException;", "@Override\n\tpublic byte[] retrieve(String msgid)\n\t{\n\t\treturn null;\n\t}", "public byte[] getPhoto() {\n return photo;\n }", "public byte[] getFile() {\n return file;\n }", "public byte[] getFilecontent() {\n return filecontent;\n }", "public void doGet(HttpServletRequest req, HttpServletResponse resp, String filepath) throws IOException {\n\t\tStorage storage = StorageOptions.getDefaultInstance().getService();\t\n\t\tBlob blob = storage.get(BlobId.of(BUCKET, filepath));\n\t\t//Download object to the output stream.\n\t\tServletOutputStream output = resp.getOutputStream();\n\t blob.downloadTo(output);\n\t output.close();\n\t}", "com.google.protobuf.ByteString getArtifactStorageBytes();", "public byte[] getObjectdata()\n {\n return null;\n }", "public edu.usfca.cs.dfs.StorageMessages.RetrieveFile getRetrieveFile() {\n if (retrieveFileBuilder_ == null) {\n if (msgCase_ == 2) {\n return (edu.usfca.cs.dfs.StorageMessages.RetrieveFile) msg_;\n }\n return edu.usfca.cs.dfs.StorageMessages.RetrieveFile.getDefaultInstance();\n } else {\n if (msgCase_ == 2) {\n return retrieveFileBuilder_.getMessage();\n }\n return edu.usfca.cs.dfs.StorageMessages.RetrieveFile.getDefaultInstance();\n }\n }", "@GET\n\t@Produces(MediaType.TEXT_PLAIN)\n\tpublic byte[] returnPicture(){\n \t return ContainerPicture.picture;\n \t}", "@BusMethod(replySignature=\"ay\")\n public byte[] GetContent() throws BusException;", "byte[] get(byte[] id) throws RemoteException;", "public Object get(Object key) {\n byte[] byteKey = keySerde.toBytes(key);\n byte[] result = null;\n try {\n result = db.get(byteKey);\n } catch (RocksDBException e) {\n log.error(\"can not get the value for key: \" + key);\n }\n\n if (result == null) {\n log.info(key + \" does not exist in the rocksDb\");\n return null;\n } else {\n return valueSerde.fromBytes(result);\n }\n }", "XxAreaWithBLOBs selectByPrimaryKey(Long id);", "@Override\n public InputStream retrieve(String reference) throws DataStoreException\n {\n numRetrieveRequests.incrementAndGet();\n if (!dataMap.containsKey(reference)) {\n errors.incrementAndGet();\n throw new DataStoreException(\"Failed to retrieve data, the asset does not exist.\");\n }\n return new ByteArrayInputStream(dataMap.get(reference));\n }", "private Bitmap getGoodsImageFromDatabase(String goodId) {\r\n Cursor cursor = helper.getSpecifyGoodImage(goodId);\r\n cursor.moveToFirst();\r\n byte bytes[] = Base64.decode(cursor.getString(0), Base64.DEFAULT);\r\n cursor.close();\r\n Bitmap bitmap = BitmapFactory.decodeByteArray(bytes, 0, bytes.length);\r\n return bitmap;\r\n }", "@Override\n\tpublic Object getObject(String key) {\n\t\tif (mInternalCache.contains(key)) {\n\t\t\ttry {\n\t\t\t\treturn Base64.fromString(mInternalCache.getString(key, null));\n\t\t\t} catch (Exception e) {\n\t\t\t\tLog.e(TAG, \"Failed to get the object from cache !\");\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public edu.usfca.cs.dfs.StorageMessages.RetrieveFile getRetrieveFile() {\n if (msgCase_ == 2) {\n return (edu.usfca.cs.dfs.StorageMessages.RetrieveFile) msg_;\n }\n return edu.usfca.cs.dfs.StorageMessages.RetrieveFile.getDefaultInstance();\n }", "BlobInfo putBlob(byte[] data);", "public byte[] GetBytes() {\n return data;\n }", "public byte[] getPhoto() {\n\t\treturn photo;\n\t}", "byte[] getFile(String sha) throws Exception;", "public byte[] getPicData() {\n try {\n ParseFile pic = fetchIfNeeded().getParseFile(\"pic\");\n return pic.getData();\n }\n catch (ParseException e) {\n Log.d(TAG, \"Error in getting photo from Parse: \" + e);\n return null;\n }\n }", "com.google.protobuf.ByteString\n getImageBytes();", "public StreamedContent getPhotoByByte(byte[] p) {\n FacesContext context = FacesContext.getCurrentInstance();\n if (context.getRenderResponse()) {\n return new DefaultStreamedContent();\n } else if (p == null) {\n return new DefaultStreamedContent();\n } else {\n InputStream targetStream = new ByteArrayInputStream(p);\n StreamedContent str = DefaultStreamedContent.builder().contentType(\"image/png\").name(\"photo.png\").stream(() -> targetStream).build();\n return str;\n }\n }", "public byte[] getImage() {\n return image;\n }", "public byte[] getImage() {\n return image;\n }", "public byte[] getImage() {\n return image;\n }", "public void descargarArchivo()throws SQLException, IOException {\n //conexion con el resultset\n st = cn.createStatement();\n\n // consulta de descarga el getId es la variable que utilizo para ubicarme en la base de datos\n ResultSet rs = st.executeQuery(\"select anexo_justi, nombre FROM anexoitem where iditem=\"+rt.getId());\ntry {\n \nrs.next();\n// pone en la variable el nombre del archivo de la base de datos\nnombre= rs.getString(\"nombre\");\n// inserta la ruta completa\nFile file = new File(rt.getPath()+nombre);\n// salida del archivo de flujo\nFileOutputStream output = new FileOutputStream(file);\nBlob archivo = rs.getBlob(1);\nInputStream inStream = archivo.getBinaryStream();\n// almacenamiento del tamaño y descarga byte a byte\nint length= -1;\nint size = (int) archivo.length();\nbyte[] buffer = new byte[size];\nwhile ((length = inStream.read(buffer)) != -1) {\noutput.write(buffer, 0, length);\nJOptionPane.showMessageDialog(null,\"El archivo se descargo correctamente\");\n// output.flush();\n\n}\n// inStream.close();\noutput.close();\n} catch (Exception ioe) {\nthrow new IOException(ioe.getMessage());\n}\n}", "public Mass getSodiumContent() throws ClassCastException;", "public void receiveBlob( BigInteger theBlob );", "@GET\n @Produces(\"application/xml\")\n public StorageConverter get() {\n return new StorageConverter(dao.retrieveById(id), context.getAbsolutePath());\n }", "String getClobField();", "public default InputStream getBinaryStream() throws JdbxException\n\t{\n\t\treturn get(GetAccessors.BINARYTREAM);\n\t}", "public GitBlobResponse blob(String owner, String repo, String sha) {\n return apiClient.deserialize(apiClient.get(String.format(\"/repos/%s/%s/git/blobs/%s\", owner, repo, sha)), GitBlobResponse.class);\n }", "byte[] getByteArrayField();", "@Override\n public ContentHandle get(int index) {\n return storage.getArtifactByContentId(contentIds.get(index)).getContent();\n }", "private File getAppDatabaseFile() {\n Log.i(\"getAppDatabase\", \"Getting app database\");\n try {\n File file = new File(this.context.getFilesDir(), SecretConstants.DATABASE_NAME);\n Log.i(\"getAppDatabase\", \"File name: \" + file.getName());\n FileOutputStream outputStream = new FileOutputStream(file);\n DropboxAPI.DropboxFileInfo info =\n MainActivity.mDBApi.getFile(file.getName(), null, outputStream, null);\n Log.i(\"getAppDatabase\", \"The file's rev is: \" + info.getMetadata().rev);\n return file;\n } catch (Exception e) {\n Log.e(\"getAppDatabase\", e.toString(), e);\n }\n return null;\n }", "ImageContentData findContentData(String imageId);", "com.google.protobuf.ByteString\n getContentBytes();", "com.google.protobuf.ByteString\n getContentBytes();", "private static void writeBLOBData() {\n\t\tConnection conn = null;\n\t\tPreparedStatement stmt = null;\n\t\ttry {\n\t\t\tconn = JDBCUtils.getMySQLConnection();\n\t\t\tString sql = \"INSERT INTO testblob(name, img) values(?,?)\";\n\t\t\tstmt = conn.prepareStatement(sql);\n\t\t\tstmt.setString(1, \"ke\");\n\t\t\tFile file = new File(\"D:\" + File.separator + \"test.jpg\");\n\t\t\tInputStream in = new FileInputStream(file);\n\t\t\tstmt.setBinaryStream(2, in, (int)file.length());\n\t\t\tstmt.executeUpdate();\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally {\n\t\t\tJDBCUtils.release(stmt, conn);\n\t\t}\n\t}", "@Override\n public GardenPictureBO getGardenPictureByIdFetchImage(Long pIdProductPictureBO) {\n GardenPictureBO gardenPictureBO = get(pIdProductPictureBO);\n //We manually call the image to load \n gardenPictureBO.getPicture();\n return gardenPictureBO;\n }", "protected byte[] getBlobOrNull(Cursor c, int col) {\n\t\treturn c.isNull(col) ? null : c.getBlob(col);\n\t}", "StorageEntity getStorageById(Integer id);", "public ExtFileObjectCom getExtFileObj(Long id)\r\n \t{ \r\n \t\tlogger.debug(\"Retrieving binary file with ID = \" + id);\r\n \t\t\r\n \t\tExtFileObjectDAO extFileDao = externalFileMgrDao.getExtFileObj(id);\r\n \t\t\r\n \t\tString branch = extFileDao.getBranch();\r\n \t\tString filename = extFileDao.getFileName();\r\n \t\tString path= this.externalDataFolder + \"/\"+ branch + \"/\"+ filename;\r\n \t\tlogger.debug(\"Binary file: ID = \" + id + \"; branch = \" + branch + \"; filename = \" + filename + \"; path = \" + path);\r\n \t\t\t\t\r\n \t\t//ExtFileObjectCom extFileCom= new ExtFileObjectImpl();\r\n \t\t//extFileCom.setFile(new File(fileSrc));\r\n \t\tExtFileObjectCom extFileCom= new ExtFileObjectImpl(extFileDao, new File(path));\r\n \t\treturn extFileCom; \r\n \t}", "Object getClob(ResultSet rs, int pos)\r\n throws Exception;", "abstract public InputStream retrieveContent( String path )\r\n throws Exception;" ]
[ "0.69133854", "0.6493325", "0.64890575", "0.64862394", "0.63615805", "0.6284206", "0.6255777", "0.61542803", "0.61359984", "0.61224264", "0.60837704", "0.607866", "0.60260975", "0.59871364", "0.59381497", "0.5933863", "0.5877834", "0.5852901", "0.5844133", "0.5810062", "0.58011377", "0.57563746", "0.5718273", "0.5713167", "0.57113093", "0.56946045", "0.5684367", "0.5662026", "0.5654962", "0.5643846", "0.56338483", "0.5627027", "0.5625338", "0.5619168", "0.56162775", "0.55913186", "0.5567179", "0.556151", "0.55460316", "0.55447304", "0.55381846", "0.5511209", "0.5511209", "0.54427946", "0.5440217", "0.54086477", "0.54059154", "0.53851795", "0.5371554", "0.53589696", "0.5351444", "0.5351085", "0.53499657", "0.53490067", "0.53339255", "0.53276736", "0.5323618", "0.5320996", "0.531523", "0.5312336", "0.5301278", "0.53004146", "0.5294858", "0.5291958", "0.5280462", "0.5278984", "0.5259259", "0.5230918", "0.522541", "0.52242523", "0.5222566", "0.52206564", "0.52169067", "0.5214151", "0.5206114", "0.5201676", "0.5193082", "0.51897347", "0.51897347", "0.51897347", "0.518096", "0.5175861", "0.5169809", "0.5165912", "0.5159393", "0.5141699", "0.51327324", "0.51305807", "0.51286864", "0.5122997", "0.51216495", "0.511298", "0.511298", "0.5112036", "0.5103886", "0.5097173", "0.5096948", "0.5096289", "0.5096116", "0.50955886" ]
0.6523814
1
Created by wd199 on 2017/6/13.
public interface RoundImgDao { public int insertRoundImg(RoundImg roundImg); public int updateRoundImg(RoundImg roundImg); public RoundImg selectRoundImg(String imgId); public List<RoundImg> selectRoundImgs(Page page); public Integer selectRow(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\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 public void init() {\n\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "@Override\n public void func_104112_b() {\n \n }", "private void poetries() {\n\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n\tprotected void getExras() {\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 void init() {\n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n void init() {\n }", "private void init() {\n\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 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\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "public void mo38117a() {\n }", "public void gored() {\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\n }", "@Override\n public void init() {\n\n }", "@Override\n protected void initialize() \n {\n \n }", "@Override\n public void init() {}", "@Override\n\tpublic void jugar() {\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\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 protected void init() {\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public void mo4359a() {\n }", "private void kk12() {\n\n\t}", "@Override\r\n\tpublic void init() {}", "private void m50366E() {\n }", "@Override\n public int describeContents() { return 0; }", "@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\tprotected void initialize() {\n\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void initialize() { \n }", "@Override\n\tpublic void init() {\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tpublic void init()\n\t{\n\n\t}", "protected boolean func_70814_o() { return true; }", "@Override\n public void memoria() {\n \n }", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "public void mo6081a() {\n }", "private void init() {\n\n\n\n }", "@Override\n public void inizializza() {\n\n super.inizializza();\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 }", "@Override\n\tpublic void afterInit() {\n\t\t\n\t}", "@Override\n\tpublic void afterInit() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "private void strin() {\n\n\t}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}" ]
[ "0.60928327", "0.5945465", "0.5866571", "0.58560354", "0.5770648", "0.5758202", "0.5758202", "0.5689253", "0.5681032", "0.56548756", "0.5652781", "0.5646596", "0.5641407", "0.56388634", "0.56195873", "0.56189924", "0.56175977", "0.56159395", "0.561432", "0.5602964", "0.55960625", "0.55960625", "0.55960625", "0.55960625", "0.55960625", "0.5594124", "0.5585316", "0.5574191", "0.5570754", "0.55636835", "0.5563472", "0.5543957", "0.5543957", "0.5543763", "0.5543763", "0.5543763", "0.5543763", "0.5543763", "0.5543763", "0.5542766", "0.5534232", "0.55158687", "0.550359", "0.5500345", "0.5500345", "0.54926956", "0.54926956", "0.54900366", "0.5489494", "0.54831004", "0.5477636", "0.5477636", "0.5477636", "0.5475741", "0.54743797", "0.54743797", "0.54743797", "0.5472754", "0.5471421", "0.54525346", "0.5452077", "0.54512745", "0.54486334", "0.544103", "0.54403985", "0.54403985", "0.54403985", "0.54202074", "0.5416305", "0.54127675", "0.5399591", "0.5398075", "0.5397061", "0.539484", "0.5388798", "0.5385363", "0.53793865", "0.5367442", "0.53644717", "0.53612524", "0.53609145", "0.5341657", "0.53372246", "0.5334074", "0.53324234", "0.5329018", "0.5314455", "0.5314455", "0.5314455", "0.5314455", "0.5314455", "0.5314455", "0.5314455", "0.53077066", "0.53077066", "0.5307135", "0.5307135", "0.53064686", "0.5291265", "0.5291265", "0.5291265" ]
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { }
{ "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
Constructor. Set location and start listening for logins
public LocationService() { Settings settings = Settings.getInstance(); this.location = settings.getLocation(); this.ebAddress = settings.getEbAddress(); this.ebPort = settings.getEbPort(); loggedIn = false; observers = new ArrayList<IObserver>(); dbAdapter = InformationStorageFactory.getStorageAdapter(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void run() {\r\n\t\ttry {\r\n\t\t\teb = new EventBus(ebAddress, ebPort);\r\n\t\t\teb.start();\r\n\t\t\t// Add listener to listen for logins\r\n\t\t\tLoginListener loginListener = new LoginListener(location);\r\n\t\t\teb.addListener(loginListener);\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO: handle\r\n\t\t}\r\n\r\n\t}", "@Override\n public void listenForLogins() {\n }", "@Override\n public void initialize(java.net.URL location, java.util.ResourceBundle resources) {\n login = new Login();\n navLogin();\n }", "public void startListening() {\n locationManager = (LocationManager) getActivity().getSystemService(Context.LOCATION_SERVICE);\n // Define the criteria how to select the locatioin provider -> use\n // default\n Criteria criteria = new Criteria();\n provider = locationManager.getBestProvider(criteria, false);\n if (ActivityCompat.checkSelfPermission(getContext(), Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(getContext(), Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n // TODO: Consider calling\n // ActivityCompat#requestPermissions\n // here to request the missing permissions, and then overriding\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\n // int[] grantResults)\n // to handle the case where the user grants the permission. See the documentation\n // for ActivityCompat#requestPermissions for more details.\n return;\n }\n defaultLocation = locationManager.getLastKnownLocation(provider);\n\n // Initialize the location fields\n if (defaultLocation != null) {\n System.out.println(\"Provider \" + provider + \" has been selected.\");\n onLocationChanged(defaultLocation);\n }\n }", "public void init() {\n mLocationManager = (LocationManager) this.activity.getSystemService(Context\n .LOCATION_SERVICE);\n // checking run time location access permissions only for API version >= 23 (Marshmallow)\n if (ActivityCompat.checkSelfPermission(this.activity, Manifest.permission\n .ACCESS_FINE_LOCATION) !=\n PackageManager.PERMISSION_GRANTED) {\n // if permission is already granted request for permissions\n // ActivityCompat.requestPermissions(\n // this.activity, new String[]{Manifest.permission\n // .ACCESS_FINE_LOCATION},\n // MY_PERMISSIONS_REQUEST_ACCESS_LOCATION);\n // ActivityCompat#requestPermissions\n // here to request the missing permissions, and then overriding\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\n // int[] grantResults)\n // to handle the case where the user grants the permission. See the documentation\n // for ActivityCompat#requestPermissions for more details.\n return;\n }\n mLocationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER,\n UPDATE_INTERVAL_IN_MILLISECONDS, MIN_DISTANCE, locationListener);\n mLocationManager.addGpsStatusListener(gpsStatusListener);\n mLocationManager.addNmeaListener(nmeaListener);\n }", "public Login() {\r\n\t\tinitialize();\r\n\t}", "@PostConstruct\n public void init() {\n rest.put(\"http://authenticationServer:8080/bot\", info);\n AuthServerChecker checker = new AuthServerChecker(name);\n checker.start();\n }", "@Override\n public void initialize(URL location, ResourceBundle resources) {\n new Thread( ()-> {\n try {\n //Start the server\n ServerSocket serverSocket = new ServerSocket(8080);\n\n //show in terminal server has started\n System.out.println(\"Server Started: at \" + new Date() + \"\\n\");\n\n //main loop that will accept connections\n while (true) {\n //accept a new socket connection, this socket comes from client\n Socket clientSocket = serverSocket.accept();\n\n //thread that will handle what to do with new socket\n new Thread(new HandleAclient(clientSocket)).start();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }).start();\n\n }", "private AuthService() {\n configureAccessTokens();\n configure();\n ConfigurationWatcher.registerListener(this, JOSSO_GATEWAY_CONFIGURATION.getAbsolutePath());\n ConfigurationWatcher.registerListener(this, FOUNDATION_CONFIGURATION.getAbsolutePath());\n log.debug(\"AuthService listening for changes to \" + JOSSO_GATEWAY_CONFIGURATION + \" and \" + FOUNDATION_CONFIGURATION);\n }", "public GeoServerHttpSessionListenerProxy() {\n }", "public MyProxyLogon() {\n super();\n host = System.getenv(\"MYPROXY_SERVER\");\n if (host == null) {\n host = \"myproxy.teragrid.org\";\n }\n String portString = System.getenv(\"MYPROXY_SERVER_PORT\");\n if (portString != null) {\n port = Integer.parseInt(portString);\n }\n username = System.getProperty(\"user.name\");\n }", "private void startLoggerService() {\n\n // ---use the LocationManager class to obtain GPS locations---\n lm = (LocationManager) getSystemService(Context.LOCATION_SERVICE);\n GPSLoggerService.setLocationManager(lm);\n\n locationListener = new MyLocationListener();\n\n lm.requestLocationUpdates(LocationManager.GPS_PROVIDER,\n minTimeMillis,\n minDistanceMeters,\n locationListener);\n lm.requestLocationUpdates(LocationManager.NETWORK_PROVIDER,\n minTimeMillis,\n minDistanceMeters,\n locationListener);\n\n }", "public void startListeningForConnection() {\n startInsecureListeningThread();\n }", "@Override\n\tpublic void onStart() {\n\n\t\tsuper.onStart();\n\n\t\t/*\n\t\t * Connect the client. Don't re-start any requests here;\n\t\t * instead, wait for onResume()\n\t\t */\n\t\tmLocationClient.connect();\n\t}", "private GuidoLocationListener() {}", "public void startListening() {\r\n\t\tlisten.startListening();\r\n\t}", "public void logon ()\n {\n ClientResolutionListener clr = new ClientResolutionListener() {\n public void clientResolved (Name username, ClientObject clobj) {\n // fake up a bootstrap; I need to expose the mechanisms in\n // Presents that create it in a network environment\n BootstrapData data = new BootstrapData();\n data.clientOid = clobj.getOid();\n data.services = EditorServer.invmgr.bootlist;\n\n // and configure the client to operate using the server's\n // distributed object manager\n _client.getContext().getClient().gotBootstrap(\n data, EditorServer.omgr);\n }\n\n public void resolutionFailed (Name username, Exception reason) {\n log.log(Level.WARNING, \"Failed to resolve client [who=\" +\n username + \"].\", reason);\n // TODO: display this error\n }\n };\n EditorServer.clmgr.resolveClientObject(new Name(\"editor\"), clr);\n }", "protected void bindListener() {\n locationManager= TencentLocationManager.getInstance(this);\n int error = locationManager\n .requestLocationUpdates(\n TencentLocationRequest\n .create().setInterval(3000)\n .setRequestLevel(\n TencentLocationRequest.REQUEST_LEVEL_ADMIN_AREA), this);\n\n switch (error) {\n case 0:\n Log.e(\"location\", \"成功注册监听器\");\n break;\n case 1:\n Log.e(\"location\", \"设备缺少使用腾讯定位服务需要的基本条件\");\n break;\n case 2:\n Log.e(\"location\", \"manifest 中配置的 key 不正确\");\n break;\n case 3:\n Log.e(\"location\", \"自动加载libtencentloc.so失败\");\n break;\n\n default:\n break;\n }\n }", "public void start()\n\t{\n\n\t\ttry\n\t\t{\n\t\t\tnew JDABuilder(this.appconfig.authType)\n\t\t\t\t.setToken(this.appconfig.authToken)\n\t\t\t\t.setAudioEnabled(false)\n\t\t\t\t.setAutoReconnect(true)\n\t\t\t\t.addEventListener(new DiscordMonitorListenerAdapterPrep())\n\t\t\t\t.buildBlocking(); // TODO use .buildAsync()?\n\t\t}\n\t\tcatch (LoginException | IllegalArgumentException e)\n\t\t{\n\t\t\tSystem.err.println(\"error: Log in failed. Please check provided token.\");\n\t\t}\n\t\tcatch (RateLimitedException e)\n\t\t{\n\t\t\tSystem.err.println(\"error: This application is being rate limited by Discord.\");\n\t\t}\n\t\tcatch (InterruptedException e)\n\t\t{\n\t\t\tSystem.err.println(\"fatal: Unexpected interrupt.\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void init() {\n\t\tsendPacket(new Packet01Login(\"[you have connected to \"+UPnPGateway.getMappedAddress()+\"]\", null));\n\t}", "public LALParser() {\n logins = new ArrayList<>();\n }", "public void StartLogIn(){\n\t}", "public LocalClient() {\n\t\tsuper(\"SERVER\", Arrays.asList(new String[] {\"*\"}), null, null);\n\t\tinputThread = new Thread(this);\n\t\tinputThread.start();\n\t}", "public void start() {\n\t\t\n\t\ttry {\n\t\t\tmainSocket = new DatagramSocket(PORT_NUMBER);\n\t\t}\n\t\tcatch(SocketException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t\t\n\t\t//Lambda expression to shorten the run method\n\t\tThread serverThread = new Thread( () -> {\n\t\t\tlisten();\n\t\t});\n\t\t\n\t\tserverThread.start();\n\t}", "@Override\r\n\tpublic void startup() {\n\t\t\r\n\t\tString wechatID = \"gh_f49bb9a333b3\";\r\n\t\tString Token = \"spotlight-wechat\";\r\n\t\t\r\n\t\tNoIOClient client = new NoIOClient(\"mg.protel.com.hk\",5010);\r\n\t\tclient.addCRouter(wechatID, Token,null,null);\r\n\t\t\r\n\t\tclient.startup();\r\n\r\n\t}", "public Logon() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public synchronized void startUp() {\n if (coordinatingThread == null) {\n\n // force a change event to tell the controller to load handlerConfig\n configChangedQueue.offer(\"Loading RADIUS Config...\");\n\n Thread t = new Thread(this);\n t.setName(MessageFormat.format(Constants.COORDINATION_THREAD_NAME, this.getClass().getSimpleName()));\n t.setDaemon(true);\n t.start();\n coordinatingThread = t;\n } else {\n cLog.log(Level.WARNING, this.getClass().getSimpleName() + \".setServletConfig() called again. Service \"\n + \"already started. Ignoring.\");\n }\n }", "public void start() {\n sensorManager.registerListener(this, gyroscope, SENSOR_DELAY);\n sensorManager.registerListener(this, rotationVector, SENSOR_DELAY);\n //sender = new UDPSender();\n }", "@RequiresPermission(anyOf = {Manifest.permission.ACCESS_COARSE_LOCATION, Manifest.permission.ACCESS_FINE_LOCATION})\n public final void startListening() {\n if (!mIsListening) {\n Log.i(TAG, \"LocationTracked is now listening for location updates\");\n // Listen for GPS Updates\n if (mTrackerSettings.shouldUseGPS()) {\n if (LocationUtils.isGpsProviderEnabled(mContext)) {\n mLocationManagerService.requestLocationUpdates(LocationManager.GPS_PROVIDER, mTrackerSettings.getTimeBetweenUpdates(), mTrackerSettings.getMetersBetweenUpdates(), this);\n } else {\n onProviderError(new ProviderError(LocationManager.GPS_PROVIDER, \"Provider is not enabled\"));\n }\n }\n // Listen for Network Updates\n if (mTrackerSettings.shouldUseNetwork()) {\n if (LocationUtils.isNetworkProviderEnabled(mContext)) {\n mLocationManagerService.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, mTrackerSettings.getTimeBetweenUpdates(), mTrackerSettings.getMetersBetweenUpdates(), this);\n } else {\n onProviderError(new ProviderError(LocationManager.NETWORK_PROVIDER, \"Provider is not enabled\"));\n }\n }\n // Listen for Passive Updates\n if (mTrackerSettings.shouldUsePassive()) {\n if (LocationUtils.isPassiveProviderEnabled(mContext)) {\n mLocationManagerService.requestLocationUpdates(LocationManager.PASSIVE_PROVIDER, mTrackerSettings.getTimeBetweenUpdates(), this.mTrackerSettings.getMetersBetweenUpdates(), this);\n } else {\n onProviderError(new ProviderError(LocationManager.PASSIVE_PROVIDER, \"Provider is not enabled\"));\n }\n }\n mIsListening = true;\n\n // If user has set a timeout\n if (mTrackerSettings.getTimeout() != -1) {\n new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n if (!mIsLocationFound && mIsListening) {\n Log.i(TAG, \"No location found in the meantime\");\n stopListening();\n onTimeout();\n }\n }\n }, mTrackerSettings.getTimeout());\n }\n } else {\n Log.i(TAG, \"Relax, LocationTracked is already listening for location updates\");\n }\n }", "public void run() {\n try {\n this.initialize();\n Listener ln = new Listener(localDir, port);\n ln.run();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public Main() {\n initComponents();\n LogIn.setVisible(true);\n LogIn.setVisible(true);\n LogIn.setLocationRelativeTo(null);\n }", "@Override\n\tpublic void start() {\n\t\tif(Boolean.parseBoolean(this.configuration.get(ConfigurationEnum.KEYBOARD_LISTENER_ACTIVE.toString()))){\n\t\t\tthis.keyboardListener.registerNativeHook();\n\t\t\tthis.keyboardListenerIsActive = true;\n\t\t}\n\t\t//If the mouse listener is active by configuration\n\t\tif(Boolean.parseBoolean(this.configuration.get(ConfigurationEnum.MOUSE_LISTENER_ACTIVE.toString()))){\n\t\t\tthis.mouseListener.registerNativeHook();\n\t\t\tthis.mouseListenerIsActive = true;\n\t\t}\n\t\t//If the mouse motion listener is active by configuration\n\t\tif(Boolean.parseBoolean(this.configuration.get(ConfigurationEnum.MOUSE_LISTENER_ACTIVE.toString()))){\n\t\t\tthis.mouseMotionListener.registerNativeHook();\n\t\t\tthis.mouseMotionListenerIsActive = true;\n\t\t}\n\t\t//If the mouse wheel listener is active by configuration\n\t\tif(Boolean.parseBoolean(this.configuration.get(ConfigurationEnum.MOUSE_WHEEL_LISTENER_ACTIVE.toString()))){\n\t\t\tthis.mouseWheelListener.registerNativeHook();\n\t\t\tthis.mouseWheelListenerIsActive = true;\n\t\t}\n\t}", "@Override\r\n\tpublic void initial() {\n\t\ttry {\r\n\t\t\tserverSocket = new ServerSocket(port);\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t// System.out.println(\"LocalProxy run on \" + port);\r\n\t}", "@Override\n public void onConnected(@Nullable Bundle bundle) {\n startLocationUpdates();\n }", "@Override\n\tprotected void onStart() {\n\t\tsuper.onStart();\n\n\t\tnearby_baidumap.setMyLocationEnabled(true); // 开启图层定位\n\t\tif (!N_locationclient.isStarted()) {\n\t\t\tN_locationclient.start();// 开始定位\n\t\t}\n\t\t// 开启方向传感器\n\t\tmyOrientationListener.start();\n\t}", "public static void start() {\n assert sListener == null;\n sListener = new ResourceListener();\n ResourceManager.getInstance().addListener(sListener);\n }", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\n\t\tgetLocation();\n\n\t\tregisterReceiver();\n\n\t}", "@Override\n public void start() {\n // only start once, this is not foolproof as the active flag is set only\n // when the watchdog loop is entered\n if ( isActive() ) {\n return;\n }\n\n Log.info( \"Running server with \" + server.getMappings().size() + \" mappings\" );\n try {\n server.start( HTTPD.SOCKET_READ_TIMEOUT, false );\n } catch ( IOException ioe ) {\n Log.append( HTTPD.EVENT, \"ERROR: Could not start server on port '\" + server.getPort() + \"' - \" + ioe.getMessage() );\n System.err.println( \"Couldn't start server:\\n\" + ioe );\n System.exit( 1 );\n }\n\n if ( redirectServer != null ) {\n try {\n redirectServer.start( HTTPD.SOCKET_READ_TIMEOUT, false );\n } catch ( IOException ioe ) {\n Log.append( HTTPD.EVENT, \"ERROR: Could not start redirection server on port '\" + redirectServer.getPort() + \"' - \" + ioe.getMessage() );\n System.err.println( \"Couldn't start redirection server:\\n\" + ioe );\n }\n }\n\n // Save the name of the thread that is running this class\n final String oldName = Thread.currentThread().getName();\n\n // Rename this thread to the name of this class\n Thread.currentThread().setName( NAME );\n\n // very important to get park(millis) to operate\n current_thread = Thread.currentThread();\n\n // Parse through the configuration and initialize all the components\n initComponents();\n\n // if we have no components defined, install a wedge to keep the server open\n if ( components.size() == 0 ) {\n Wedge wedge = new Wedge();\n wedge.setLoader( this );\n components.put( wedge, getConfig() );\n activate( wedge, getConfig() );\n }\n\n Log.info( LogMsg.createMsg( MSG, \"Loader.components_initialized\" ) );\n\n final StringBuffer b = new StringBuffer( NAME );\n b.append( \" v\" );\n b.append( VERSION.toString() );\n b.append( \" initialized - Loader:\" );\n b.append( Loader.API_NAME );\n b.append( \" v\" );\n b.append( Loader.API_VERSION );\n b.append( \" - Runtime: \" );\n b.append( System.getProperty( \"java.version\" ) );\n b.append( \" (\" );\n b.append( System.getProperty( \"java.vendor\" ) );\n b.append( \")\" );\n b.append( \" - Platform: \" );\n b.append( System.getProperty( \"os.arch\" ) );\n b.append( \" OS: \" );\n b.append( System.getProperty( \"os.name\" ) );\n b.append( \" (\" );\n b.append( System.getProperty( \"os.version\" ) );\n b.append( \")\" );\n Log.info( b );\n\n // enter a loop performing watchdog and maintenance functions\n watchdog();\n\n // The watchdog loop has exited, so we are done processing\n terminateComponents();\n\n Log.info( LogMsg.createMsg( MSG, \"Loader.terminated\" ) );\n\n // Rename the thread back to what it was called before we were being run\n Thread.currentThread().setName( oldName );\n\n }", "private void initLocation() {\n\t\tlocationManager = (LocationManager) this\n\t\t\t\t.getSystemService(Context.LOCATION_SERVICE);\n\t\t// Define a listener that responds to location updates\n\t\tnetworkLocListener = new MyLocationListener();\n\t\tgpsLocListener = new MyLocationListener();\n\n\t\tlocationProvider2 = LocationManager.NETWORK_PROVIDER;\n\t\tlocationProvider1 = LocationManager.GPS_PROVIDER;\n\n\t\tgps_enabled = false;\n\t\tnetwork_enabled = false;\n\t\t// exceptions will be thrown if provider is not permitted.\n\n\t\t// try{gps_enabled=mlocManager.isProviderEnabled(LocationManager.GPS_PROVIDER);}catch(Exception\n\t\t// ex){}\n\t\tgps_enabled = locationManager\n\t\t\t\t.isProviderEnabled(LocationManager.GPS_PROVIDER);\n\t\t// try{network_enabled=mlocManager.isProviderEnabled(LocationManager.NETWORK_PROVIDER);}catch(Exception\n\t\t// ex){}\n\t\tnetwork_enabled = locationManager\n\t\t\t\t.isProviderEnabled(LocationManager.NETWORK_PROVIDER);\n\n\t\t// don't start listeners if no provider is enabled\n\t\tif (!gps_enabled && !network_enabled) {\n\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\"Either network or GPS not enabled, please check\",\n\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t/*\n\t\t\t * Intent gpsOptionsIntent = new\n\t\t\t * Intent(android.provider.Settings.ACTION_LOCATION_SOURCE_SETTINGS\n\t\t\t * ); startActivity(gpsOptionsIntent);\n\t\t\t */\n\t\t}\n\n\t\t// Define a listener that responds to location updates\n\t\t// LocationListener locationListener = new LocationListener() {\n\t\t// @Override\n\t\t// public void onLocationChanged(Location location) {\n\t\t// // Called when a new location is found by the network location\n\t\t// // provider.\n\t\t// if (D)\n\t\t// Log.i(TAG, \"Updating current location\");\n\t\t// Toast.makeText(getApplicationContext(),\n\t\t// \"Updating current location\", Toast.LENGTH_LONG).show();\n\t\t// }\n\t\t//\n\t\t// public void onStatusChanged(String provider, int status,\n\t\t// Bundle extras) {\n\t\t// if (D)\n\t\t// Log.i(TAG, \"status changed\");\n\t\t// }\n\t\t//\n\t\t// public void onProviderEnabled(String provider) {\n\t\t// if (D)\n\t\t// Log.i(TAG, \"location enabled\");\n\t\t// }\n\t\t//\n\t\t// public void onProviderDisabled(String provider) {\n\t\t// if (D)\n\t\t// Log.i(TAG, \"Location disabled\");\n\t\t// }\n\t\t// };\n\n\t\tif (network_enabled) {\n\t\t\tlocationManager.requestLocationUpdates(\n\t\t\t\t\tLocationManager.NETWORK_PROVIDER, 1, 1, networkLocListener);\n\t\t}\n\t\tif (gps_enabled) {\n\t\t\tlocationManager.requestLocationUpdates(\n\t\t\t\t\tLocationManager.GPS_PROVIDER, 1, 1, gpsLocListener);\n\t\t}\n\t}", "private void startAuth() {\n if (ConnectionUtils.getSessionInstance().isLoggedIn()) {\n ConnectionUtils.getSessionInstance().logOut();\n } else {\n ConnectionUtils.getSessionInstance().authenticate(this);\n }\n updateUiForLoginState();\n }", "public void init() {\n\t\tregisterFunctions();\n\t\t\t\t\n\t\t//Start it\n\t\tconsole.startUserConsole();\n\t}", "@Override\n public void onConnected(@Nullable Bundle bundle) {\n displayLocation();\n if (mRequestingLocationUpdates) {\n startLocationUpdates();\n }\n }", "public Login() {\n\t\tsuper();\n\t}", "@Override\n public void start() {\n //start eye tracking if it is not running already\n startEyeTracking();\n\n super.start();\n\n //start light sensor\n mLightIntensityManager.startLightMonitoring();\n }", "private void init() {\n\t\tutils = new MmustUtils(Authenticate.this);\n\t\treceiver = new AuthReceiver();\n\t\t\n\t\tetRegno = (EditText)findViewById(R.id.authenticate_editText_reg_no);\n\t\tetPassword = (EditText)findViewById(R.id.authenticate_editText_password);\n\t\tetPassword.addTextChangedListener(this);\n\t\t\n\t\tbtAuth = (Button)findViewById(R.id.authenticate_button_auth);\n\t\tbtAuth.setOnClickListener(this);\n\t\t\n\t\tivPeek = (ImageView)findViewById(R.id.authenticate_imageView_view_password);\n\t\tivPeek.setVisibility(ImageView.GONE);\n\t\tivPeek.setOnClickListener(this);\n\t\t\n\t\t\n\t\tpbAuthenticating = (ProgressBar)findViewById(R.id.authenticate_progressBar_authenticating);\n\t\tpbAuthenticating.setVisibility(ProgressBar.GONE);\n\t\t\n\t\ttvLoginFail = (TextView)findViewById(R.id.authenticate_textView_login_fail);\n\t\ttvLoginFail.setVisibility(TextView.GONE);\n\t\t\n\t\tgetRegisteredEmails();\n\t\t\n\t}", "public Login() {\n initComponents();\n setLocationRelativeTo(this);\n }", "@Override\n public void run() {\n connector = new ClientConnector(\"properties.txt\");\n frame.setContentPane(new Login(frame, this).loginPanel);\n frame.pack();\n frame.setLocationRelativeTo(null);\n frame.setVisible(true);\n }", "public void startLocationDiscovery() {\n\t\t/*CountDownTimer gpsDelay = new CountDownTimer(\n\t\t\t\tcalculateNextInteraction(failedInteractions) * 60 * 1000, 1000) {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onTick(long arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onFinish() {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t}\n\t\t};*/\n\t\tregisterLocationListener(locationListener);\n\t}", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\t//绑定服务时会调用onCreate方法,此时启动服务\n\t\tLocalProxy = new SynchronousProxyServer(Parameters.LocalProxyPort);\n\t\tLocalProxy.initial();\n\t\tLocalProxy.start();\n\t\tSystem.out.println(\"LocalProxy run on \" + Parameters.LocalProxyPort);\n\t}", "@Override\n\tpublic void teleopInit() {\n\t\tbeenEnabled = true;\n\t\tif(!socket){\n\t\t\tlogger.startSocket(); socket = true;\n\t\t}\n\t}", "public Server() {\n print_addr();\n follow_updates();\n }", "@Override\n protected void onStart() {\n super.onStart();\n // -----------location config ------------\n locationService = ((MyApplication) getApplication()).locationService;\n //获取locationservice实例,建议应用中只初始化1个location实例,然后使用,可以参考其他示例的activity,都是通过此种方式获取locationservice实例的\n locationService.registerListener(mListener);\n //注册监听\n int type = getIntent().getIntExtra(\"from\", 0);\n if (type == 0) {\n locationService.setLocationOption(locationService.getDefaultLocationClientOption());\n } else if (type == 1) {\n locationService.setLocationOption(locationService.getOption());\n }\n locationService.start();// 定位SDK\n }", "public Launcher()\n {\n // Loading (or creating) the preferences file\n // TODO: handle read/create file failed (maybe with an error popup?)\n boolean settingsLoaded = settings.checkAndLoad();\n\n if (!settingsLoaded) {\n System.exit(-10);\n }\n\n LoginController loginController = configureController(new LoginController());\n configureController(new ContactsController());\n configureController(new ConversationsController());\n\n /**\n * --------------------------\n * Event listeners\n * --------------------------\n */\n eventManager.attach(MvcEvent.WINDOW_CLOSING, new SaveOnExitListener());\n\n\n /**\n * --------------------------\n * Running the application\n * --------------------------\n */\n loginController.displayLogin();\n }", "public void start() {\n System.out.println(\"server started\");\n mTerminalNetwork.listen(mTerminalConfig.port);\n }", "private void startService() {\r\n\r\n\t\t// ---use the LocationManager class to obtain GPS locations---\r\n\t\tlm = (LocationManager) getSystemService(Context.LOCATION_SERVICE);\r\n\t\tlocationListener = new MyLocationListener();\r\n\r\n\t\tlm.requestLocationUpdates(LocationManager.GPS_PROVIDER, minTimeMillis,\r\n\t\t\t\tminDistanceMeters, locationListener);\r\n\t\tlocationListener.onLocationChanged(lm.getLastKnownLocation(LocationManager.GPS_PROVIDER));\r\n\t}", "public void run(){\n\t\t\t\ttry {\n\t\t\t\t\tSystem.out.println(\"LocyNavigatorThread has started\");\n\t\t\t\t\twhile(true){\n\t\t\t\t\t\tif(locyNavigator.getLocation()!=null){\n\t\t\t\t\t\t\tfor(LocationListener listener: locationListeners){\n\t\t\t\t\t\t\t\tlistener.onLocationChanged(locyNavigator.getLocation());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tThread.sleep(REQUEST_TIME);\n\t\t\t\t\t}\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\tSystem.out.println(\"LocyNavigatorThread has stopped\");\n\t\t\t\t}\n\t }", "public void connect() {\n BotConnector newBot = new BotConnector();\n newBot.setEmail(this.email);\n newBot.setAuthenticationKey(key);\n newBot.setBotName(name);\n newBot.setRoom(room);\n //Start Listener Thread\n this.serverListener = new Thread(newBot, \"serverListener\");\n this.serverListener.start();\n }", "void initAndListen() {\n\t\twhile (true) {\n\t\t\ttry {\n\t\t\t\tSocket clientSocket = serverSocket.accept();\n\t\t\t\t// Startuje nowy watek z odbieraniem wiadomosci.\n\t\t\t\tnew ClientHandler(clientSocket, this);\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.err.println(\"Accept failed.\");\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\t\t}\n\t}", "public void start()\r\n\t\t{\r\n\t\tDebug.assert(serverSocket != null, \"(Server/123)\");\r\n\r\n \t// flag the server as running\r\n \tstate = RUNNING;\r\n\r\n // Loop while still listening, accepting new connections from the server socket\r\n while (state == RUNNING)\r\n \t{\r\n // Get a connection from the server socket\r\n\t\t\tSocket socket = null;\r\n\t\t\ttry {\r\n socket = serverSocket.accept();\r\n \tif (state == RUNNING) \r\n \t createLogin(socket);\r\n }\r\n \r\n // The socket timeout allows us to check if the server has been shut down.\r\n // In this case the state will not be RUNNING and the loop will end.\r\n\t\t catch ( InterruptedIOException e )\r\n\t\t \t{\r\n\t\t \t// timeout happened\r\n\t\t \t}\r\n\t\t \r\n\t\t // This shouldn't happen...\r\n \t catch ( IOException e )\r\n \t \t{\r\n log(\"Server: Error creating Socket\");\r\n \t \tDebug.printStackTrace(e);\r\n \t }\r\n\t }\r\n\t \r\n\t // We've finished, clean up\r\n disconnect();\r\n\t\t}", "@Override\n protected void preClientStart() {\n client.registerListener(new BuddycloudLocationChannelListener(\n getContentResolver()\n ));\n client.registerListener(new BuddycloudChannelMetadataListener(\n getContentResolver()\n ));\n BCConnectionAtomListener atomListener = new BCConnectionAtomListener(\n getContentResolver(), this);\n registerListener(atomListener);\n }", "public void start() throws Exception {\n\n Location location = (locationManager != null && locationManager.getLocation() != null) ? locationManager.getLocation() : null;\n\n if(location == null)\n location = new NetworkNodeCommunicationDeviceLocation(\n 0.0 ,\n 0.0,\n 0.0 ,\n 0 ,\n 0.0 ,\n System.currentTimeMillis(),\n LocationSource.UNKNOWN\n );\n\n NodeContext.add(NodeContextItem.LOCATION, location);\n\n this.initialize();\n LOG.info(\"Starting the internal server\");\n this.server.start();\n LOG.info(\"Server URI = \" + this.server.getURI());\n this.server.join();\n\n\n\n }", "public Login() {\n \n initComponents();\n \n this.setLocationRelativeTo(null);\n connect = new DataConnect();\n LoginError.setVisible(false);\n this.setResizable(false);\n Username.setDocument(new JtextLimit(8));\n \n }", "public login() {\r\n\t\tsuper();\r\n\t}", "@Override\n public void onConnected(Bundle bundle) {\n Log.d(TAG, \"onConnected\");\n\n mLocationRequest = LocationRequest.create();\n mLocationRequest.setInterval(5000); // milliseconds\n mLocationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);\n\n LocationServices.FusedLocationApi.requestLocationUpdates(mLocationClient, mLocationRequest, this);\n\n // connect to socket for upload\n mSocket.connect();\n }", "public void start() {\n System.err.println(\"Server will listen on \" + server.getAddress());\n server.start();\n }", "public void init(){\n taskClient.connect(\"127.0.0.1\", 9123);\n }", "@Override\n @SuppressWarnings(\"MissingPermission\")\n public void onStart() {\n super.onStart();\n if(locationEngine != null){\n locationEngine.requestLocationUpdates();\n }\n if(locationLayerPlugin != null){\n locationLayerPlugin.onStart();\n }\n mapView.onStart();\n }", "private void doLogin() {\r\n\t\tloggedIn = true;\r\n\t\tdoctor.setOnline(1);\r\n\t\t// Set doctor as logged in\r\n\t\tdbAdapter.updateDoctor(doctor);\r\n\t\t// Get a list of currently logged in doctors\r\n\t\tdoctors = dbAdapter.getDoctors(this.doctor);\r\n\t\t// Add listeners to keep the list updated\r\n\t\ttry {\r\n\t\t\teb.addListener(new LogoutListener(this.doctor.getMac(),\r\n\t\t\t\t\tthis.location));\r\n\t\t\teb.addListener(new DeviceDetectedListener());\r\n\t\t\teb.addListener(new DevicedMovedListener());\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO: Handle\r\n\t\t}\r\n\t\tnotifyObservers();\r\n\t}", "@Override\n\tpublic void StartListening()\n\t{\n\t\t\n\t}", "public void start() {\n _serverRegisterProcessor = new ServerRegisterProcessor();\n _serverRegisterProcessor.start();\n }", "public ControlCenter(){\n serverConnect = new Sockets();\n serverConnect.startClient(\"127.0.0.1\", 5000);\n port = 5000;\n }", "private void init() {\n\r\n\t\tmyTerminal.inputSource.addUserInputEventListener(this);\r\n//\t\ttextSource.addUserInputEventListener(this);\r\n\r\n\t}", "@Override\n public void onCreate() {\n\n Thread proxy = new Thread(new proxyMainLoop());\n proxy.start();\n\n }", "public synchronized void start() {\n if (D) Log.d(TAG, \"start\");\n\n // Cancel any thread attempting to make a connection\n if (mConnectThread != null) {mConnectThread.cancel(); mConnectThread = null;}\n\n // Cancel any thread currently running a connection\n if (mConnectedThread != null) {mConnectedThread.cancel(); mConnectedThread = null;}\n\n setState(STATE_LISTEN);\n }", "@Override\n\tprotected void onStart() {\n\t\tsuper.onStart();\n\t\t// Connect the client.\n\t\tif (isGooglePlayServicesAvailable()) {\n\t\t\tmLocationClient.connect();\n\t\t}\n\n\t}", "@Override\n public void initialize() {\n\n try {\n /* Bring up the API server */\n logger.info(\"loading API server\");\n apiServer.start();\n logger.info(\"API server started. Say Hello!\");\n /* Bring up the Dashboard server */\n logger.info(\"Loading Dashboard Server\");\n if (dashboardServer.isStopped()) { // it may have been started when Flux is run in COMBINED mode\n dashboardServer.start();\n }\n logger.info(\"Dashboard server has started. Say Hello!\");\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }", "public Login() {\n initComponents();\n this.setLocationRelativeTo(null);\n AWTUtilities.setWindowOpaque(this, false);\n }", "void initiateLogin() {\n\t\tString username = this.mAuthUsername.getText().toString();\n\t\tString password = this.mAuthPassword.getText().toString();\n\t\t\n\t\tfetch();\n\t\tthis.mAuthTask = new AuthenticationTask(this, this, username, password);\n\t\tthis.mAuthTask.execute();\n\t}", "public ServerConnecter() {\r\n\r\n\t}", "public Login() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public Login() {\n initComponents();\n setLocationRelativeTo(null);\n }", "@Override\n void start(Collection<? extends Location> locations);", "@Override\n protected void onStart() {\n super.onStart();\n sendToLogin();\n }", "public void startListening() {\n if (Util.isDebugBuild()) {\n Log.d(TAG, \"mAcceptThread: \" + mAcceptThread);\n }\n\n // Start the AcceptThread which listens for incoming connection requests\n if (mAcceptThread == null) {\n mAcceptThread = new AcceptThread(mContext, mHandler, services, this);\n }\n\n if (Util.isDebugBuild()) {\n Log.d(TAG, \"mAcceptThread.isAlive(): \" + mAcceptThread.isAlive());\n }\n\n if (!mAcceptThread.isAlive()) {\n mAcceptThread.start();\n }\n }", "public void startOnNewTread() {\n stop();\n\n mReadLogsHandler = new ReadLogsHandler();\n\n mReadLogThread = new ReadLogsThread();\n mReadLogThread.start();\n }", "public LoginJudge() {\n\t\tsuper();\n\t}", "public void init() throws ServletException {\n\t\tSystem.out.println(\"=====start loginServler=========\");\n\t}", "public CustomHttpSessionListener() {\n\t\t// TODO Auto-generated constructor stub\n\t\tSystem.out.println(\">>> CustomHttpSessionListener Loading <<<\");\n\t}", "public void startFactory() {\n if (!isStarted) {\n logger.info(\"Starting SessionListenerFactory.\");\n APIEventBus.getInstance().subscribe(this);\n isStarted = true;\n }\n }", "private void connect() {\n\t\ttry {\n\t\t\tsocket = new Socket(Server.ADDRESS, Server.PORT_NUMBER);\n\t\t\tthis.oos = new ObjectOutputStream(socket.getOutputStream());\n\t\t\tthis.ois = new ObjectInputStream(socket.getInputStream());\n\t\t\tServerListener serverlistener = new ServerListener();\n\t\t\tserverlistener.start();\n\t\t\tRequest request = new Request(RequestCode.START_DOCUMENT_STREAM);\n\t\t\trequest.setUsername(user.getUsername());\n\t\t\toos.writeObject(request);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n public void onConnected(@Nullable Bundle bundle) {\n Log.i(TAG, \"Location Services Connected\");\n requestLocationUpdates();\n }", "public Login() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public Login() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public Login() {\n initComponents();\n this.setLocationRelativeTo(null);\n \n }", "private LogIn() {}", "private void initialize() {\n\t\tthis.setSize(500, 400);\n\t\tthis.setContentPane(getJContentPane());\n\t\t\n\t\tthis.setTitle(\"Login\");\n\t}", "private void createAndListen() {\n\n\t\t\n\t}", "private void initializeLocation() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) !=\n PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n // Permission is not granted\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n Constants.PERMISSION_FINE_LOCATION);\n } else {\n createLocationRequest();\n }\n } else {\n createLocationRequest();\n }\n }", "public void start() {\n\t\trmiUtils.startRMI(IRMI_Defs.CLASS_SERVER_PORT_CLIENT);\n\n\t\ttry {\n\t\t\tview.setRemoteHost(rmiUtils.getLocalAddress()); //TODO Is this stored somewhere?\n\t\t\tuser = new User(\"default\", rmiUtils.getLocalAddress(), this);\n\t\t\tview.append(\"Create User \" + user.getName() + \"\\n\");\n\n\t\t\tregistry = rmiUtils.getLocalRegistry();\n\t\t\tIUser stub = (IUser) UnicastRemoteObject.exportObject(user, IUser.BOUND_PORT);\n\t\t\tview.append(\"Found registry: \" + registry + \"\\n\");\n\n\t\t\tregistry.rebind(IUser.BOUND_NAME, stub);\n\t\t\tview.append(\"IUser bound to \" + IUser.BOUND_NAME + \"\\n\");\n\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(\"Error getting local address: \" + e);\n\t\t}\n\t}", "private void startTrackingRoute(){\n if(ContextCompat.checkSelfPermission(this, ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED){\n //Starts up alert dialog for getting permission\n ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.ACCESS_FINE_LOCATION}, REQUEST_LOC_PERMISSION);\n }\n else{\n //Start the location updater listener\n locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, MIN_DISTANCE, this);\n }\n }" ]
[ "0.66184705", "0.6443802", "0.6339864", "0.6289999", "0.6183764", "0.61753505", "0.61543685", "0.6087208", "0.60561246", "0.5988055", "0.5964207", "0.5958033", "0.5937482", "0.5891879", "0.5885038", "0.5839582", "0.58262116", "0.58223385", "0.5794113", "0.5781548", "0.57671756", "0.57476574", "0.57416946", "0.5740675", "0.5732306", "0.5702646", "0.56882024", "0.5685297", "0.56846255", "0.5661507", "0.56296504", "0.56129456", "0.5587264", "0.55740136", "0.5571158", "0.55634636", "0.5552038", "0.55394787", "0.5536725", "0.553461", "0.5532843", "0.5523864", "0.55140764", "0.55042076", "0.5499842", "0.5497262", "0.5490338", "0.5488302", "0.5486325", "0.5483289", "0.54817265", "0.5480145", "0.54725105", "0.54701275", "0.54653007", "0.54610157", "0.54575384", "0.5455411", "0.5441772", "0.5432141", "0.5429836", "0.54248106", "0.5423686", "0.5415129", "0.5410089", "0.5409682", "0.5408075", "0.5386498", "0.53857875", "0.5385348", "0.53824884", "0.53740025", "0.53731203", "0.5369476", "0.53652287", "0.53592545", "0.53568566", "0.53450423", "0.5334779", "0.5327192", "0.5327192", "0.5318875", "0.5316886", "0.5304994", "0.52860445", "0.5280815", "0.5280328", "0.52769023", "0.5274958", "0.5274161", "0.52732575", "0.52692777", "0.52692777", "0.5269243", "0.5265614", "0.5265571", "0.5263107", "0.5258093", "0.52554214", "0.5254919" ]
0.59228545
13
Run the service in its own thread using java.lang.Thread
@Override public void run() { try { eb = new EventBus(ebAddress, ebPort); eb.start(); // Add listener to listen for logins LoginListener loginListener = new LoginListener(location); eb.addListener(loginListener); } catch (Exception e) { // TODO: handle } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\tpublic void run() {\n\t\t\t\tSystem.out.println(\"Thread working\");\n\t\t\t}", "@Override\r\n\tpublic void run() {\n\t\trunClient();\r\n\t}", "public void run(){\n //logic to execute in a thread \n }", "@Override\r\n\tpublic void run() {\n\t\t\r\n\t\ttest testt = new test();\r\n\t\ttestt.oninIt();\r\n\t\ttry {\r\n\t\t\ttestt.pingServer();\r\n\t\t} catch (DeploymentException | IOException | URISyntaxException | InterruptedException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}", "public void Start() {\r\n\t\tthread.run();\r\n\t}", "public void start() {\n // EFFECTS: starts a new thread from this instance.\n (new Thread(instance)).start();\n }", "@Override\r\n\t\tpublic void run() {\n\t\t\tservicio();\r\n\t\t}", "@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tinvoke();\n\t\t\t\t\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tpt.getContext().startService( new Intent( pt.getContext(), PerfectTimeService.class ) );\n\t\t\t}", "public void toThread() {\n\t\t// TODO Auto-generated method stub\n\t\tnew Thread(this).start();\n\t\tclient.start();\n\t}", "private void start(){\n isRunning = true;\n thread = new Thread(this);\n thread.start();\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tLog.d(\"MyService\", \"executed at \" + new Date().toString());\n\t\t\t\t//stopSelf();\n\t\t\t}", "@Override\n\tpublic void run() {\n\t\tSystem.err.println(\"Test:\"+Thread.currentThread());\n\t\ttry {\n\t\t\tThread.sleep(1000);\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\t\n\t}", "@Override\n\t public void run()\n\t {\n\t // running is initialized as true and stays that way until shutdown method is called from main thread\n\t \t\t// running is volatile to ensure that the change made to running by calling shutdown() on the main thread\n\t \t\t// is read synchronized and the change is passed to background thread where run() is executed\n\t \t\twhile (running)\n\t {\n\t System.out.println (\"Hello\");\n\t \n\t try\n\t {\n\t Thread.sleep(300);\n\t }\n\t catch (InterruptedException e)\n\t {\n\t e.printStackTrace();\n\t }\n\t }\n\t }", "public void run() {\n\t\t\t\tLog.e(\"bc\", \"thread started!\");\n\n\t\t\t\t// UTPDirectTest();\n\t\t\t\t// UDPTest();\n\t\t\t\tUDPBroadcastTest();\n\n\t\t\t}", "@Override\n public void run() {\n if (!this.m_running) {\n this.m_running = true;\n this.pollingLooper();\n }\n }", "private ServiceManage() {\r\n\t\tInitialThreads();\r\n\t}", "public void start() {\n\n\t\tisRunning = true;\n\t\tthread = new Thread(this);\n\t\tthread.start();\n\n\t}", "@Override\n public void run (){\n System.out.println(\"soy \" +Thread.currentThread().getName());\n Recurso.uso();\n try {\n Thread.sleep( 2000 );\n } catch (InterruptedException e) {\n };\n }", "public synchronized void start() {\n\t\tif (running)\n\t\t\treturn;\n\t\tthread = new Thread(this);\n\t\tthread.start();\n\t\trunning = true;\n\t}", "public synchronized void start() {\r\n\t\tthread = new Thread(this);\r\n\t\tthread.start();\r\n\t\tisRunning = true;\r\n\t }", "@Override\n\tpublic synchronized void run() {\n\t\ttry {\n\t\t\tThread.sleep(1000);\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\tSystem.out.println(Thread.currentThread().getName()+\" \"+\"Thread is Running.\");\n\n\t}", "public void start() {\n if (!started) {\n thread = new Thread(this);\n thread.start();\n started = true;\n }\n }", "public synchronized void start() {\r\n\r\n\t\tif (!running) {\r\n\t\t\trunning = true;\r\n\t\t\tnew Thread(this, name).start();\r\n\t\t}\r\n\t}", "void startDaemon () {\n if (daemon == null) {\n daemon = new Thread((Runnable) this); \n daemon.start();\n }\n }", "public synchronized void start() {\n if (!this.isRunning) {\n isRunning = true;\n thread = new Thread(this);\n thread.start();\n }\n }", "@Override\n\tpublic void run() {\n\t\tif(Thread.currentThread().isDaemon()){\n\t\t\tSystem.out.println(\"daemon thread work\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"user thread work\");\n\t\t}\n\t}", "public void start()\n\t{\n\t\tthread = new Thread(this);\n\t\tthread.start();\n\t}", "@Override\n public void run() {\n start(10, 500);\n }", "public static void run() {\n }", "public synchronized void start() {\n if (!running) {\n running = true;\n thread = new Thread(this);\n thread.start();\n }\n }", "public synchronized void start() {\n if (!running) {\n running = true;\n thread = new Thread(this);\n thread.start();\n }\n }", "public void run(){\n\t\tstartServer();\n\t}", "public void start() {\r\n\t\trunning = true;\r\n\t\tt = new Thread(this);\r\n\t\tt.start();\r\n\t}", "public void start(){\n thread.start();\n }", "public void startListener(){\n new Thread(() -> this.run()).start();\n }", "@Override\r\n\tpublic void run() {\n\t\tthis.setName(\"后台线程\");\r\n\t\tshutdownFlag = false;\r\n\t\tconnection = new Connection(this);\r\n\t\tconnection.connect(ip, port, user, pwd);\r\n\t\twhile (!shutdownFlag) {\r\n\t\t\ttry {\r\n\t\t\t\tThread.sleep(30000);\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\r\n\t\t\tif (connection.getConnState() == Connection.CONNSTATE_NOT_CONNECTED) {\r\n\t\t\t\tconnection.connect(ip, port, user, pwd);\r\n\t\t\t} else if (connection.getConnState() == Connection.CONNSTATE_NOT_LOGIN) {\r\n\t\t\t\tconnection.login(user, pwd);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\tconnection.stop();\r\n\t\tshutdownFlag = true;\r\n\r\n\t}", "@Override\r\n public Thread newThread(Runnable r) {\n Thread t = new Thread(r, \"example-runner\");\r\n t.setDaemon(true);\r\n return t;\r\n }", "@Override\n\t\tpublic void run() {\n\t\t\tsuper.run();\n\t\t\tThread thisThread = currentThread();\n\t\t\ttry {\n\t\t\t\tLog.i(\"con\", \"worked3\");\n\t\t\t\tconnectToServer();\n\t\t\t\tif (connected) {\n\t\t\t\t\tsetUpStreams();\n\t\t\t\t\tsendProfile();\n\t\t\t\t\tLog.i(\"con\", \"worked8\");\n\t\t\t\t\twhile (blinker == thisThread) {\n\t\t\t\t\t\tstartListening();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\tLog.e(\"cl\", \"Found IO Exception!: \" + e);\n\t\t\t} catch (ClassNotFoundException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\tLog.e(\"cl\", \"Found class not found exception!: \" + e);\n\t\t\t}\n\n\t\t}", "private void startThread()\n {\n if (workerThread == null || !workerThread.isLooping())\n {\n workerThread = new LiveViewThread(this);\n workerThread.start();\n }\n }", "private void go() {\n\n new Thread(this).start();\n }", "public void run() {\n\t\t\t\ttry {Thread.sleep(1000000000);} catch (InterruptedException ie) {}\n\t\t\t}", "public void start ()\n {\n Thread th = new Thread (this);\n // start this thread\n th.start ();\n\n }", "@Override\n\tpublic void run() {\n\t\tsuper.run();\n\t\twhile(true) {\n\t\t\ttry {\n\t\t\t\tThread.sleep(500);\n\t\t\t}catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic void run() {\n\n\t\twhile (running.get()) {\n\t\t\ttry {\n\t\t\t\tThread.sleep(1000);\n\t\t\t} catch (InterruptedException ex) {\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Shutting down thread\");\n\t}", "@Override\r\n\t\tpublic void run() {\n\t\t\twhile(true){\r\n\t\t\t\ttry {\r\n\t\t\t\t\tTimeUnit.SECONDS.sleep(10);\r\n\t\t\t\t} catch (InterruptedException 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}", "public void start() {\r\n\t\tisRunning = true;\r\n\t\tnew Thread(this).start();\r\n\t}", "public void start() {\n\t\tmyThread = new Thread(this); myThread.start();\n\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\"ok, here is \" + Thread.currentThread().getName() + \" \" + \"thread, i'll do something here..\");\n\t\t\t}", "private void start() {\r\n\t\tif (running)\r\n\t\t\treturn;\r\n\t\trunning = true;\r\n\t\tthread = new Thread(this);//creates threat to run program on\r\n\t\tthread.start();\r\n\t}", "public void run() {\n try {\n Thread.sleep(1000000);\n } catch (InterruptedException ie) {\n }\n }", "@Override\n\tpublic void run() {\n\t\tString result = null;\n\t\twhile (checkToStart()) {\n\t\t\tresult = doRun();\n\t\t\tsendResult(result);\n\t\t}\n\t\t// System.out.println(\"Thread - \" + name + \" is dead\");\n\t}", "public void run(){\n\t\tstart();\n\t\tdoStuff();\n\t\tshutDown();\n\t}", "public void start() {\r\n running = true;\r\n new Thread(this).start();;\r\n }", "@Override\r\n public void run() {}", "@Override\n\tpublic void run() {\n\t\t\n\t\ttry {\n\t\t\tsemaphore.acquire(); // 3 thread at a time\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\tSystem.out.println(\"Slow servie\"); //50 times concurrently\n\t\t\n\t\tsemaphore.release();\n\t\t//rst of service\n\t\t\n\t\t\n\t}", "public void start() {\n\t\tif(t == null) {\n\t\t\tt = new Thread(this);\n\t\t\tt.start();\n\t\t}\n\t}", "public void start() {\n thread = new Thread(this);\n thread.setPriority(Thread.MIN_PRIORITY);\n thread.start();\n }", "public void start() {\r\n isRunning = true;\r\n Thread thread = new myThread();\r\n thread.start();\r\n }", "public void runInThread() {\n\t\tTaskRunner taskRunner = Dep.get(TaskRunner.class);\n\t\tATask atask = new ATask<Object>(getClass().getSimpleName()) {\n\t\t\t@Override\n\t\t\tprotected Object run() throws Exception {\n\t\t\t\tBuildTask.this.run();\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\t\n\t\t};\n\t\ttaskRunner.submitIfAbsent(atask);\n\t}", "public final void run() {\n //We get a hold on the thread where this unit is going to be executed\n //so shutdown() can interrupt it if called.\n thread = Thread.currentThread();\n running = true;\n \n try {\n init();\n } catch (RuntimeException ex) {\n stop();\n aborted = true;\n onRunAborted(ex);\n }\n\n try {\n if (!isFinished() && !isStopping()) {\n internalRun();\n }\n } catch (RuntimeException ex) {\n aborted = true;\n onRunAborted(ex);\n throw ex;\n } finally {\n try {\n cleanup();\n } catch (RuntimeException ex) {\n onRunAborted(ex);\n }\n\n running = false;\n //Remove the thread reference\n thread = null;\n }\n }", "public void run();", "public void run();", "public void run();", "public void run();", "public void run();", "@Override\n public void run() {\n startup();\n }", "public final void run() {\r\n }", "public void run()\n {\n try\n {\n while (true)\n {\n \n }\n } catch (Exception e)\n {\n e.printStackTrace();\n }\n }", "@Override\n\t\tpublic void run() {\n\n\t\t}", "@Override\n\t\tpublic void run() {\n\t\t\ttask();\n\t\t}", "@Override\n public void run() {\n }", "@Override\n public void run() {\n }", "public void run() {\n try {\n runable.run();\n } catch (Throwable ex) {\n Log.INSTANCE.e(LOG_TAG, LOG_TAG, ex);\n } finally {\n\n // Log.INSTANCE.d(LOG_TAG, \"BGND THREAD \" + msg + \" (\" + (System.nanoTime() - startTime) / 1000000 + \"ms)\");\n }\n }", "@Override\n public void run() {\n runTask();\n\n }", "@Override\r\n public void run() {\n }", "@Override\n public void run() {\n logger.info(\"Servicing connection\");\n }", "public void run()\n {\n try\n {\n java.lang.Object sync = new java.lang.Object();\n synchronized (sync)\n {\n sync.wait();\n }\n }\n catch (Exception e)\n {\n fatalError(\"Application \" + appTitle + \" terminated\", e);\n }\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tSystem.out.println(\" ThriftServer start ing ....\");\n\t\t\t\ttry { \n\t\t\t\t\tif (!server.isServing()) {\n\t\t\t\t\t\tserver.serve();\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} finally {\n\t\t\t\t\tif (transport != null) {\n\t\t\t\t\t\ttransport.close();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}", "public void startThread(){\n\t\trunning = true;\n\t\tthread = new Thread(this);\n\t\tthread.start();\n\t}", "@Override\n\tpublic void run()\n\t{\n\t}", "public void run() {\n }", "public void run() {\r\n }", "@Override\n public void run() {\n }", "public void run() {\n ServiceCallback<BuildsCurrentResponse> callback = new AsyncExampleServiceCallback();\n\n try {\n buildsOperations.getBuildsCurrentAsync(callback);\n }\n catch(Exception e)\n {\n System.err.println(\"Call to Embedded Social failed with exception: \" + e.getMessage());\n }\n }", "public void run() {\n }", "@Override\r\n\tpublic void run() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void run() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void run() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void run() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void run() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void run() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void run() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void run() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void run() {\n\t\t\r\n\t}", "public void run() {\n\t\t}", "public void run() {\n\t\t}", "public void run() {\n\t\t}", "public void run(){\n\t\tlong count=0;\n\t\t\n\t\twhile(running){\n\t\t\tSystem.out.println(this.getName()+\" hello\");\n\t\t\tcount++;\n\t\t\ttry {\n\t\t\t\tThread.sleep(1000);\n\t\t\t} catch (InterruptedException 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\tSystem.out.println(this.getName()+ \" thread end\"+count);\n\t}", "public void run() {\n\t\t\r\n\t}", "public void run() {\n\t\t\r\n\t}" ]
[ "0.6926527", "0.6880786", "0.6799563", "0.6780329", "0.6753528", "0.67394334", "0.6734695", "0.6699866", "0.6662603", "0.66608775", "0.6636431", "0.6611842", "0.65918994", "0.6584443", "0.6561632", "0.65434384", "0.652145", "0.6520045", "0.6508953", "0.65023345", "0.64971584", "0.6494481", "0.6486399", "0.64819986", "0.64813817", "0.6476073", "0.6476003", "0.64734983", "0.6472147", "0.6464221", "0.6458827", "0.6458827", "0.64456284", "0.6443856", "0.6425841", "0.6420909", "0.64201194", "0.6398872", "0.6398687", "0.6396902", "0.6396822", "0.63913965", "0.63890153", "0.63887995", "0.63861823", "0.6375359", "0.63722694", "0.6361111", "0.6353276", "0.6351354", "0.6348384", "0.6346814", "0.634526", "0.6343815", "0.6343401", "0.6342989", "0.63421357", "0.63345855", "0.633368", "0.6331759", "0.632127", "0.6312565", "0.6312565", "0.6312565", "0.6312565", "0.6312565", "0.63101965", "0.6306084", "0.6304513", "0.6300403", "0.62959206", "0.62841535", "0.62841535", "0.6282661", "0.6282635", "0.6282121", "0.6276528", "0.6274951", "0.6269121", "0.6263724", "0.62599957", "0.62495345", "0.6242198", "0.62376773", "0.6237217", "0.62260896", "0.62240845", "0.62240845", "0.62240845", "0.62240845", "0.62240845", "0.62240845", "0.62240845", "0.62240845", "0.62240845", "0.6222878", "0.6222878", "0.6222878", "0.6219535", "0.6217206", "0.6217206" ]
0.0
-1
Get the currently logged in doctor
public Doctor getDoctor() { return doctor; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@GET(DOCTOR_PATH)\n\tDoctor getCurrentDoctor();", "Doctor getDoctor();", "public String getDoctor() {\r\n return doctor;\r\n }", "User getCurrentLoggedInUser();", "public User getLoggedUser();", "public static String getLoggedUser() {\n\t\tAuthentication auth = SecurityContextHolder.getContext().getAuthentication();\n\t\treturn auth.getName();\n\t}", "LoggedUser getLoggedUser();", "@Override\r\n\tpublic Optional<String> getCurrentAuditor() {\n\t\treturn Optional.of(System.getProperty(\"user.name\"));\r\n\t}", "public String getLoggedInUser() {\n\t\treturn null;\r\n\t}", "public User getUserLogged() {\n return userLogged;\n }", "public Doctor login(Doctor o) {\n\t\treturn dao.login(o);\n\t}", "private String getLoggedInUser() {\r\n\t\tOptional<Authentication> authentication = Optional\r\n\t\t\t\t.ofNullable(SecurityContextHolder.getContext().getAuthentication());\r\n\t\treturn authentication.map(Authentication::getPrincipal).map(obj -> (UserDetails) obj)\r\n\t\t\t\t.map(UserDetails::getUsername).orElse(null);\r\n\t}", "@Override\n public Optional<String> getCurrentAuditor() {\n Authentication authentication = SecurityContextHolder.getContext().getAuthentication();\n\n if (authentication == null || !authentication.isAuthenticated()) {\n return Optional.empty();\n }\n\n return Optional.of(((UserDetails) authentication.getPrincipal()).getUsername());\n }", "private EndUser getCurrentLoggedUserDetails() {\n\n\t\tEndUser endUser = endUserDAOImpl.findByUsername(getCurrentLoggedUserName()).getSingleResult();\n\n\t\treturn endUser;\n\n\t}", "public String getCurrentUser() {\r\n return SecurityContextHolder.getContext().getAuthentication().getName();\r\n }", "public User getLoggedUser(){\n\t\treturn loggedUser;\n\t}", "public String getLogin() {\n return this.session.sessionPersona().getUserName();\n }", "private String getLoggedUser() {\n\t\torg.springframework.security.core.userdetails.User user2 = \n\t\t\t\t(org.springframework.security.core.userdetails.User) \n\t\t\t\tSecurityContextHolder.getContext().getAuthentication().getPrincipal();\n\t\tString name = user2.getUsername();\n\t\treturn name;\n\t}", "public String getDoctorID(){\n return doctorID;\n }", "public String getCurrentUser() {\n return currentUser;\n }", "public String getDoctorName(){\n \treturn doctorName;\n }", "int getDoctorId();", "int getDoctorId();", "private UserID getCurrentUser()\n\t{\n\t return (UserID)request.getSession().getAttribute(\"userID\");\n\t}", "public Identity getIdentity()\r\n {\r\n return securityService.findLoggedInIdentity();\r\n }", "public UserCredential getCurrentUser() {\n return this.currentUser;\n }", "public User getCurrentUser() {\n\t\tString id = contextHolder.getUserId();\r\n\t\treturn userRepository.get(id);\r\n\t}", "private User getCurrentUser() {\n Authentication auth = SecurityContextHolder.getContext().getAuthentication();\n String username = auth.getName();\n return userService.findByUsername(username);\n }", "long getLoginAt();", "public static User getCurrentUser() {\n return CURRENT_USER;\n }", "public String getDoctoroneName() {\n return doctoroneName;\n }", "UserDetails getCurrentUser();", "public Utilisateur getUtilisateurCourant() {\r\n\t\treturn utilisateurControlleur.getUtilisateurCourant();\r\n\t}", "public java.lang.String getGetDoctorDeResult() {\r\n return localGetDoctorDeResult;\r\n }", "public String getIdentityLogin()\r\n {\r\n return securityService.findLoggedInUsername();\r\n }", "final String getDDUser() {\r\n\t\treturn ddUser;\r\n\t}", "@Override\n\tpublic String getLogin() {\n\t\tString pName= ctx.getCallerPrincipal().getName();\n\t\tPerson p=userEJB.findPerson(pName);\n\t\tString w=p.getLogin();\n\t\treturn w;\n\t}", "public java.lang.String getDoctor_name() {\r\n return doctor_name;\r\n }", "public String getCurrentUserAccount();", "String getDoctorName();", "private String getCurrentUserId() {\n\t\tUser currentUser = UserDirectoryService.getCurrentUser();\n \tString currentUserId = currentUser.getId();\n\t\treturn currentUserId;\n\t}", "private Doctor selectDoctor()\n {\n Doctor selectedDoctor = null;\n\n // listViewSelectedDoctor holding the string description the doctor being selected\n if(listViewSelectedDoctor!=null)\n {\n listViewSelectedDoctor = listViewSelectedDoctor.trim();\n String doctorName = listViewSelectedDoctor.split(\" \")[0]; //extract the doctor name from the string\n selectedDoctor = getDoctor(doctorName);// search for the doctor object using the name extracted above\n\n }\n return selectedDoctor;\n }", "private Doctor getDoctor(String doctorName)\n {\n for(Doctor doctor:humanPlayer.getDoctors())\n {\n if(doctor.getName().equals(doctorName) && !doctor.isOccupied())\n {\n\n return doctor;\n }\n }\n return null;\n\n }", "public UserDetails getLoggedInUser() {\n Authentication auth = SecurityContextHolder.getContext().getAuthentication();\n if (auth != null && auth.isAuthenticated()\n && !(SecurityContextHolder.getContext().getAuthentication() instanceof AnonymousAuthenticationToken)) {\n return (UserDetails) auth.getPrincipal();\n } else {\n LOGGER.debug(\"Tried getting a logged in user, but none was available.\");\n return null;\n }\n }", "@Override\n public Optional<String> getCurrentAuditor() {\n return Optional.of(\"system\");\n// return Optional.of(authentication.getName());\n }", "@Override\r\n\tpublic User getCurrentUser() {\r\n\t\tString currentUserName = this.getCurrentUserName();\r\n\t\tUser userdetails = this.getByUsername(currentUserName);\r\n\t\treturn userdetails;\r\n\t}", "public String getLogin () {\n return login;\n }", "public static String getCurrentUser() {\n\t\treturn System.getProperty(\"user.name\");\n\t}", "public static User getCurrentUser() {\n\t\treturn ApplicationContext.getInstance().getCurrentUser();\n\t}", "public Long getLoggedInTime() {\n return loggedInTime;\n }", "public User getCurrentUser() {\n return currentUser;\n }", "public String getCurrentLoggedUserinfo() {\n\n\t\tClient client = Client.create();\n\n\t\tWebResource webResource = client.resource(\"http://localhost:8083/UserAccounts/UserAccountService/User_logins\");\n\n\t\tClientResponse response = webResource.accept(\"application/json\").get(ClientResponse.class);\n\n\t\tString output = response.getEntity(String.class);\n\n\t\tSystem.out.println(output);\n\n\t\treturn output;\n\n\t}", "public CustomEmployee getLoggedUser() {\n return loggedUser;\n }", "public abstract User getLoggedInUser();", "public UserData login() {\n return null;\n }", "public static int getCurrentUserId() {\n return session.get().getUserId();\n }", "public User getCurrentUser() {\n\t\treturn users.get(userTurn);\n\t}", "public User getLoggedInUser() {\n Realm realm = (mRealm == null) ? Realm.getDefaultInstance() : mRealm;\n User retval = null;\n User managedUser = realm.where(User.class).equalTo(\"IsLoggedIn\", true).findFirst();\n if (managedUser != null) {\n retval = realm.copyFromRealm(managedUser);\n } else {\n retval = realm.copyFromRealm(realm.where(User.class).equalTo(\"UserId\", \"anonymous\").findFirst());\n }\n\n if (mRealm == null)\n realm.close();\n\n return retval;\n }", "@Override\n\tpublic User getCurrentUser() {\n\t\tint id = sessionService.getCurrentUserId();\n\t\treturn userDao.findById(id);\n\t}", "@Nullable\n User getCurrentUser() {return currentUser;}", "public String getLogin()\n {\n \treturn stringLogin;\n }", "protected AuthenticatedUser getCurrentUser() {\n Authentication auth = SecurityContextHolder.getContext().getAuthentication();\n\n if (auth.getPrincipal() instanceof AuthenticatedUser) {\n return (AuthenticatedUser) auth.getPrincipal();\n }\n\n return null;\n }", "public Boolean isLoggedIn()\n {\n return isLoggedIn;\n }", "public static User get() {\n User currentUser = (User) getCurrentRequest().getWrappedSession()\n .getAttribute(CURRENT_USER_DETAILS_ATTRIBUTE_KEY);\n if (currentUser == null) {\n return null;\n } else {\n return currentUser;\n }\n }", "public boolean isLoggedIn() {\n return pref.getBoolean(IS_LOGIN, false);\n }", "public boolean isLoggedIn() {\n return pref.getBoolean(IS_LOGIN, false);\n }", "public Boolean isLoggedIn() {\n return this.loggedIn;\n }", "public String getCreditor() {\n return creditor;\n }", "public static String getUser() {\r\n return user;\r\n }", "public c get() {\n return this.e.providesCookieManager();\n }", "public static String getUser() {\n return user;\n }", "public String getLogin() {\n return login;\n }", "public java.lang.String getDoctor_code() {\r\n return doctor_code;\r\n }", "@Override\r\n\tpublic String currentUser() {\n\t\treturn temp.getCustomerName();\r\n\t}", "synchronized public boolean getLoggedin()\n\t{\n\t\treturn userInfo.isSessionValid();\n\t}", "public boolean isLoggedIn()\n {\n return pref.getBoolean(KEY_IS_LOGGEDIN, false);\n }", "public String getPatientLoginId() {\n return patientLoginId;\n }", "private User getUser() {\r\n\t\tUserService userService = UserServiceFactory.getUserService();\r\n\t\treturn userService.getCurrentUser();\r\n\t}", "@Override\n\tpublic User getCurrentUser() {\n\t\treturn currentUser;\n\t}", "private boolean isLoggedInUser(){\n return true;\n }", "public LocalUser getLoginUser(){\n\t\treturn new Select().from(LocalUser.class).executeSingle();\n\t}", "private boolean isLoggedIn() {\n // Gets SharedPreferences\n SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());\n // Gets boolean, which displays if the user has ever logged in.\n // This changes to true, when the user has logged in\n return sharedPreferences.getBoolean(getResources().getString(R.string.pref_logged_in_key), getResources().getBoolean(R.bool.pref_already_logged_in_default));\n }", "public String getDebtor() {\n return debtor;\n }", "public String getLoginID(){\r\n return loginID;\r\n }", "public boolean isLoggedInt() {\n return loggedIn;\n }", "final String loginAsAutoUser() {\r\n \treturn loginAsAutoUser(false);\r\n }", "public boolean isLoggedIn()\n {\n return this.isLoggedIn;\n }", "public Doctor get(String id) {\n\t\treturn dao.get(id);\n\t}", "public String getLogin() {\n\t\treturn login.getText();\n\t}", "public String login()\n\t{\n\t\tString ret_ = \"\";\n\t\tAuthentication auth = SecurityContextHolder.getContext()\n\t\t\t\t.getAuthentication();\n\n\t\tif (!(auth instanceof AnonymousAuthenticationToken))\n\t\t{\n\t\t\tUserDetails ud_ = (UserDetails) auth.getPrincipal();\n\n\t\t\tfor (GrantedAuthority ga : ud_.getAuthorities())\n\t\t\t{\n\t\t\t\tif (ret_.length() > 0)\n\t\t\t\t\tret_ = ret_ + \",\";\n\t\t\t\tret_ = ret_ + ga.getAuthority();\n\t\t\t}\n\t\t\tif (ret_.length() > 0)\n\t\t\t\tret_ = \"/\" + ret_;\n\t\t\tret_ = ud_.getUsername() + ret_;\n\t\t}\n\t\treturn ret_;\n\t}", "private AuthenticatedUser getUser(AuthenticationContext context) {\n StepConfig stepConfig = context.getSequenceConfig().getStepMap().get(context.getCurrentStep() - 1);\n return stepConfig.getAuthenticatedUser();\n }", "public UserInfo getUserInfo() {\n Authentication authentication = getAuthentication();\n if(authentication == null) {\n throw new AuthenticationCredentialsNotFoundException(\"No user is currently logged in.\");\n }\n return (UserInfo) authentication.getPrincipal();\n }", "public boolean isCustomerLoggedIn()\r\n {\r\n return customerLoggedIn;\r\n }", "public User getUser(){\n\t\treturn currentUser;\n\t}", "public Principal getEffectiveUserPrincipal() {\n if (this.loggedIn && this.userPrincipal != null) {\n return this.userPrincipal;\n }\n return EVERYONE;\n }", "User current_user(String name);", "public UserLogueado getUser() {\r\n SharedPreferences sharedPreferences = ctx.getSharedPreferences(SHARED_PREF_NAME, Context.MODE_PRIVATE);\r\n return new UserLogueado(\r\n sharedPreferences.getString(KEY_EMAIL, null),\r\n sharedPreferences.getString(KEY_TOKEN, null)\r\n );\r\n }", "public Optional<AuthLogin> authLogin() {\n return Codegen.objectProp(\"authLogin\", AuthLogin.class).config(config).get();\n }", "@Override\r\n\tpublic User getAuthenticatedUser()\r\n\t{\n\t\treturn userWpJauRestClientImpl.getUser().getUser();\r\n\t}", "private boolean isLoggedIn() {\n return mSharedPreferences.getBoolean(PREF_KEY_LOGIN, false);\n }" ]
[ "0.766219", "0.67239904", "0.6535316", "0.6522912", "0.63826966", "0.6260815", "0.62320757", "0.6183083", "0.61465985", "0.6036204", "0.60125625", "0.59810716", "0.59651047", "0.5926205", "0.59071094", "0.5901596", "0.58869976", "0.5882174", "0.58553004", "0.58452076", "0.5831297", "0.57682824", "0.57682824", "0.57606584", "0.57511336", "0.5718586", "0.5702574", "0.57023644", "0.5699288", "0.56712496", "0.56640077", "0.5661315", "0.5654975", "0.56536895", "0.56532013", "0.5651055", "0.564447", "0.5634263", "0.5633883", "0.5628737", "0.56146413", "0.55899835", "0.5582156", "0.5573186", "0.5563862", "0.5561018", "0.5554005", "0.5544954", "0.55422366", "0.5541122", "0.5539924", "0.5539219", "0.55298233", "0.55163026", "0.5505255", "0.54992723", "0.54984546", "0.54939365", "0.5479462", "0.5473784", "0.54716146", "0.545363", "0.5451118", "0.5450841", "0.54491293", "0.54491293", "0.544483", "0.5442232", "0.54348373", "0.54200834", "0.5419641", "0.54149014", "0.5412399", "0.5399188", "0.53984207", "0.5397586", "0.53938925", "0.5374164", "0.5368728", "0.5362556", "0.535429", "0.5347999", "0.53445405", "0.5341195", "0.5340437", "0.5337921", "0.5326276", "0.5323713", "0.5322026", "0.5321852", "0.5320584", "0.53179777", "0.530926", "0.53030294", "0.5301681", "0.5300729", "0.52974814", "0.52911407", "0.52881116", "0.5283686" ]
0.7021985
1
set the currently logged in doctor
public void setDoctor(Doctor doctor) { this.doctor = doctor; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void setLoggedIn(boolean arg0) {\n\t\t\n\t}", "public void setDoctor(String doctor) {\r\n this.doctor = doctor;\r\n }", "@GET(DOCTOR_PATH)\n\tDoctor getCurrentDoctor();", "public void login() {\n\t\tloggedIn = true;\n\t}", "public static void makeLogged() {\n\t\tMemberSessionFacade.setAttribute(ConfigKeys.LOGGED, \"1\");\n//\t\tControllerUtils.addCookie(ConfigKeys.LOGGED, \"1\");\n\t}", "private void doLogin() {\r\n\t\tloggedIn = true;\r\n\t\tdoctor.setOnline(1);\r\n\t\t// Set doctor as logged in\r\n\t\tdbAdapter.updateDoctor(doctor);\r\n\t\t// Get a list of currently logged in doctors\r\n\t\tdoctors = dbAdapter.getDoctors(this.doctor);\r\n\t\t// Add listeners to keep the list updated\r\n\t\ttry {\r\n\t\t\teb.addListener(new LogoutListener(this.doctor.getMac(),\r\n\t\t\t\t\tthis.location));\r\n\t\t\teb.addListener(new DeviceDetectedListener());\r\n\t\t\teb.addListener(new DevicedMovedListener());\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO: Handle\r\n\t\t}\r\n\t\tnotifyObservers();\r\n\t}", "public Doctor getDoctor() {\r\n\t\treturn doctor;\r\n\t}", "public void setDoctorID(String doctorID){\n this.doctorID = doctorID;\n }", "public void setLoggedIn(boolean loggedIn) {\n this.loggedIn = loggedIn;\n }", "void setHasLoggedIn(Boolean value);", "public Doctor login(Doctor o) {\n\t\treturn dao.login(o);\n\t}", "public void logincredentials() {\n\t\tutil.entertext(prop.getValue(\"locators.text.uname\"), \"admin\");\n\t\tutil.entertext(prop.getValue(\"locators.text.password\"), \"Admin123\");\n\t\tutil.ClickElement(prop.getValue(\"locators.button.regdesk\"));\n\t\tutil.ClickElement(prop.getValue(\"locators.button.login\"));\n\t\tlogreport.info(\"logged into the application\");\n\n\t}", "public void setDoctor(Person d){\n this.doctor = d;\n }", "private void loggedInUser() {\n\t\t\n\t}", "@Override\n\tpublic void changeLoggedIn(int id, int logged_in) {\n\t\t\n\t}", "public void setDoctorName(String doctorName){\n \tthis.doctorName = doctorName;\n }", "public void setAuthenticated() {\n\t\tthis.state = State.AUTHENTICATED;\n\t}", "public void setLoggedIn(final boolean loggedIn) {\n\t\tthis.loggedIn = loggedIn;\n\t}", "public void setlogUserIn() {\n\t\tmenu1.setOnAction(event -> {\n\t\t\topenUserSettings();\n\t\t});\n\t\tmenu2.setOnAction(event -> {\n\t\t\tsetlogUserOut();\n\t\t});\n\t\tuserMenuButton.setText(controller.loggedIn());\n\t\tuserMenuButton.setStyle(\"-fx-font-size: 10pt; -fx-text-fill:black;\"); // MUOTOILU CSSSSSÄÄÄÄN\n\t\tuserMenuButton.getItems().addAll(menu1, menu2);\n\t\tloggedinuser.setVisible(true);\n\t\tloggedinuser.setText(bundle.getString(\"mVloggedin\"));\n\t\tloggedinuser.setGraphic(userMenuButton);\n\t\tloggedinuser.setContentDisplay(ContentDisplay.RIGHT);\n\t\tuserSettings.setVisible(true);\n\t\tloginoption.setVisible(false);\n\t}", "public void setLastLogin() {\r\n game.settings.setLastSeen(strDate);\r\n }", "public void setLogged(boolean logged) {\n _logged = logged;\n }", "public void setCurrentUser(String username) {\n currentUser = username;\n }", "public void setLogin(boolean isLoggedIn)\n {\n editor.putBoolean(KEY_IS_LOGGEDIN, isLoggedIn);\n // commit changes\n editor.commit();\n Log.d(TAG,\"user login modified in pref\");\n }", "public void setLogin(LoginModel param) {\n localLoginTracker = true;\n\n this.localLogin = param;\n }", "public void setLoggedUser(CustomEmployee user) {\n loggedUser = user;\n }", "Doctor getDoctor();", "public void setCurrentUser(Person person) {\n assert person != null;\n this.currentUser = person;\n indicateUserLoginStatusChanged();\n }", "public void setLogin(String login) {\n Logger.getGlobal().log(Level.INFO, \"Account: \" +login +\" creating\");\r\n this.login = login;\r\n }", "public String getDoctor() {\r\n return doctor;\r\n }", "public void setLogin(String strLogin)\n {\n \tstringLogin = strLogin;\n }", "public void setLoggedUser(User loggedUser){\n\t\tthis.loggedUser = loggedUser;\n\t}", "public void setName(String doctorName) {\n\t\tname = doctorName;\n\t}", "private void masuk(){\n Preferences.setLoggedInUser(getBaseContext(),Preferences.getRegisteredUser(getBaseContext()));\n Preferences.setLoggedInStatus(getBaseContext(), true);\n startActivity(new Intent(getBaseContext(),MainActivity.class));\n finish();\n }", "void setAuthenticated(boolean b);", "private void GoToLogin() {\n\t\tstartActivity(new Intent(this, LoginActivity.class));\r\n\t\tapp.user.sessionID = \"\";\r\n\t\tMassVigUtil.setPreferenceStringData(this, \"SESSIONID\", \"\");\r\n\t}", "public void setLoggedUser(PersAdministrativo usuario){\n this.usuario = usuario;\n }", "public static void forceLogin() {\n forcedLogin = true;\n }", "private void logino(int selected) {\n ExtendedAccountData data = queriedaccounts.get(selected);\n AltManager.getInstance().setUserOffline(data.alias);\n loginfailed = null;\n Minecraft.getMinecraft().displayGuiScreen(null);\n ExtendedAccountData current = getCurrentAsEditable();\n current.useCount++;\n current.lastused = JavaTools.getJavaCompat().getDate();\n }", "public void setLoggedIn(boolean loggedIn) {\n \tmLoggedIn = loggedIn;\n \tmLoginEmail.setEnabled(!loggedIn);\n \tmLoginPassword.setEnabled(!loggedIn);\n \tif (loggedIn) {\n \t\tmSubmit.setText(\"Log Out of Dropbox\");\n \t} else {\n \t\tmSubmit.setText(\"Log In to Dropbox\");\n \t}\n }", "public void setUser(java.lang.String param){\r\n localUserTracker = true;\r\n \r\n this.localUser=param;\r\n \r\n\r\n }", "public void setUser(java.lang.String param){\r\n localUserTracker = true;\r\n \r\n this.localUser=param;\r\n \r\n\r\n }", "public void setUser(java.lang.String param){\r\n localUserTracker = true;\r\n \r\n this.localUser=param;\r\n \r\n\r\n }", "void markAsUserSession();", "@FXML\r\n\tpublic static String setLoggedIn() {\r\n\t\tverifyLogged =\"true\";\r\n\t\treturn verifyLogged;\r\n\t}", "protected void login() {\n\t\t\r\n\t}", "public void logOut() {\r\n\t\tthis.modoAdmin = false;\r\n\t\tthis.usuarioConectado = null;\r\n\t}", "public void setUserLogged(User userLogged) {\n this.userLogged = userLogged;\n }", "private void doLogout() {\r\n\t\tdoctor.setOnline(0);\r\n\t\t// Set doctor as logged out\r\n\t\tdbAdapter.updateDoctor(doctor);\r\n\t\t// Release objects and notify observers\r\n\t\tloggedIn = false;\r\n\t\tnotifyObservers();\r\n\t\tdoctors = null;\r\n\t\tdoctor = null;\r\n\t}", "public String getDoctorID(){\n return doctorID;\n }", "void setAllSeenByLogin(String login);", "Login(String strLogin)\n {\n \tsetLogin(strLogin);\n }", "public void assignCurrentAdminUser(final String val) {\n currentAdminUser = val;\n }", "public void LogIn() {\n\t\t\r\n\t}", "@Override\n\tpublic void setLoginId(String arg0) {\n\t\t\n\t}", "public void setCurrentUserAccount(String currentUserAccount);", "public void setDareChallenge() {\n while (!(getActiveChallenge()).contains(\"Dare\")) {\n categories.get(indexOfActiveCategory).increaseIndexOfActiveChallenge();\n }\n }", "public void setlogUserOut() {\n\t\tcontroller.logoutUser();\n\t\tuserMenuButton.setText(\"\");\n\t\tuserMenuButton.setStyle(\"\");\n\t\tuserMenuButton.getItems().removeAll(menu1, menu2);\n\t\tloggedinuser.setVisible(false);\n\t\tuserSettings.setVisible(false);\n\t\tloginoption.setVisible(true);\n\n\t}", "public void setIsLogin(boolean value) {\n\t\tsharedPreferences = context.getSharedPreferences(\"Login\",\n\t\t\t\tcontext.MODE_PRIVATE);\n\t\tSharedPreferences.Editor editor = sharedPreferences.edit();\n\t\teditor.putBoolean(\"isLogin\", value);\n\t\teditor.commit();\n\t}", "public void setAuthId(java.lang.String param){\r\n \r\n if (param != null){\r\n //update the setting tracker\r\n localAuthIdTracker = true;\r\n } else {\r\n localAuthIdTracker = false;\r\n \r\n }\r\n \r\n this.localAuthId=param;\r\n \r\n\r\n }", "@Override\n\tprotected void login() {\n\t\tsuper.login();\n\t}", "public void SetCurrent(Account a)\n\t{\n\t\tif(current != null)\n\t\t\tcurrent.SetStatus(AccountStatus.LOGOFF);\n\t\t//log in current\n\t\tcurrent = a;\n\t\tcurrent.SetStatus(AccountStatus.LOGIN);\n\t}", "public void setCustomerLoggedIn(final boolean customerLoggedIn)\r\n {\r\n this.customerLoggedIn = customerLoggedIn;\r\n }", "public void setAuthentication(){\n SharedPreferences settings = mContext.getSharedPreferences(\"UserData\", Context.MODE_PRIVATE);\n SharedPreferences.Editor preferencesEditor = settings.edit();\n preferencesEditor.putString(\"userid\", mUserId);\n preferencesEditor.putString(\"areaid\", mAreaId);\n preferencesEditor.commit();\n }", "private boolean setLoggedInUser(String userId) {\n if (currentContext != null) {\n //Set the user Id when user is successfully logged_in\n if (mFireBaseAnalytics != null)\n mFireBaseAnalytics.setUserId(userId);\n SharedPreferences sharedPrefs = currentContext.getSharedPreferences(LOGIN_SHARED_PREF_NAME, 0);\n return sharedPrefs.edit().putString(USER_ID_SHARED_PREF_NAME, userId).commit() &&\n setLoggedInTime();\n }\n return false;\n }", "public void setUserId(){\n AdGyde.setClientUserId(\"ADG1045984\");\n Toast.makeText(this, \"UserId = ADG1045984\", Toast.LENGTH_SHORT).show();\n }", "public void setCurrentDate(String d) {\n currentDate = d;\n }", "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 void setSecurityContext() {\n ctx = SecurityContextHolder.getContext();\n SecurityContextHolder.getContext();\n final Authentication authentication = ctx.getAuthentication();\n setName(authentication.getName()); //NOPMD\n }", "public void login() {\n\t\tUser user = new User(\"admin\", \"12345678\", Role.ADMIN);\n\t\tuser.setEmail(\"[email protected]\");\n\t\t\n\t\tif(user != null) {\n\t\t\tuserBean.setLoggedInUser(user);\n\t\t\tFacesContext context = FacesContext.getCurrentInstance();\n\t\t\tHttpServletRequest req = (HttpServletRequest)context.getExternalContext().getRequest();\n\t\t\treq.getSession().setAttribute(ATTR_USER, user);\n\t\t}else{\n\t\t\tkeepDialogOpen();\n\t\t\tdisplayErrorMessageToUser(\"Wrong Username/Password. Try again\");\n\t\t}\n\t\t\n\t}", "public void setPortalPriv(Connection dbConn, int id, String role,\n String user, String dept) throws Exception {\n Statement ps = null;\n try {\n String sql = \"update PORTAL set DEPT_ID = '\" + dept\n + \"' , PRIV_ID = '\" + role + \"' ,USER_ID = '\" + user\n + \"' where SEQ_ID=\" + id;\n ps = dbConn.createStatement();\n ps.executeUpdate(sql);\n } catch (Exception ex) {\n throw ex;\n } finally {\n T9DBUtility.close(ps, null, log);\n }\n }", "public void setLoggedInTime(Long loggedInTime) {\n this.loggedInTime = loggedInTime;\n }", "public void setDoctor_name(java.lang.String doctor_name) {\r\n this.doctor_name = doctor_name;\r\n }", "@Override\n public void setExisting(String login, String pasword) {\n loginEdit.setText(login);\n passwordEdit.setText(pasword);\n }", "public login() {\n\n initComponents();\n \n usuarios.add(new usuarios(\"claudio\", \"claudioben10\"));\n usuarios.get(0).setAdminOno(true);\n \n }", "@Override\r\n protected final String loginAsAutoUser(boolean launch) {\r\n \t//login(DDConstants.AUTO_USERNAME, DDConstants.AUTO_PASSWORD, launch);\r\n \tsuper.login(getAutoUserName(), getAutoPassword(), launch);\r\n\r\n \tchooseApp();\r\n\r\n \treturn getCurrentUser();\r\n }", "final String loginAsAutoUser() {\r\n \treturn loginAsAutoUser(false);\r\n }", "@Override\n public void loggedIn(Member member) {\n timeTables = new Timetables();\n appointments = new Appointments();\n tasks = new Tasks();\n messages = new Messages();\n substitutions = new Substitutions();\n files = new Files();\n announcements = new Announcements();\n excuseNotes = new ExcuseNotes();\n }", "public Builder setLoginFlag(int value) {\n \n loginFlag_ = value;\n onChanged();\n return this;\n }", "private void setLoginInformation()\n {\n // Set up the login form.\n mIPView_ = (EditText) findViewById( R.id.IP );\n mPortView_ = (EditText) findViewById( R.id.password );\n\n // Set the intial display\n if ( rememberLoginIsSet_ )\n {\n if ( properties_.containsKey( getString( R.string.saved_IP ) ) )\n {\n mIP_ =\n properties_\n .getProperty( getString( R.string.saved_IP ) );\n }\n\n if ( properties_.containsKey( getString( R.string.saved_Port ) ) )\n {\n mPort_ =\n properties_\n .getProperty( getString( R.string.saved_Port ) );\n }\n }\n\n // Set the values to whatever the load settings or default are\n mIPView_.setText( mIP_ );\n mPortView_.setText( mPort_ );\n\n mPortView_\n .setOnEditorActionListener( new TextView.OnEditorActionListener()\n {\n @Override\n public boolean onEditorAction( TextView textView, int id,\n KeyEvent keyEvent )\n {\n if ( id == R.id.login || id == EditorInfo.IME_NULL )\n {\n attemptLogin();\n return true;\n }\n return false;\n }\n } );\n\n mLoginFormView = findViewById( R.id.login_form );\n mLoginStatusView = findViewById( R.id.login_status );\n mLoginStatusMessageView =\n (TextView) findViewById( R.id.login_status_message );\n }", "public void setAD_User_ID (int AD_User_ID);", "User getCurrentLoggedInUser();", "public void setLogin (String login) {\n this.login = login;\n }", "public void StartLogIn(){\n\t}", "public <TPDVLogin extends br.lry.components.pdv.linx.AUTPDVLogin> TPDVLogin autPDVLogin(){\r\n\t\t\tif(pdvLogin==null) {\r\n\t\t\t\tpdvLogin = new AUTPDVLogin();\r\n\t\t\t\treturn (TPDVLogin) pdvLogin;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\treturn (TPDVLogin) pdvLogin;\r\n\t\t\t}\r\n\t\t}", "public void logon ()\n {\n ClientResolutionListener clr = new ClientResolutionListener() {\n public void clientResolved (Name username, ClientObject clobj) {\n // fake up a bootstrap; I need to expose the mechanisms in\n // Presents that create it in a network environment\n BootstrapData data = new BootstrapData();\n data.clientOid = clobj.getOid();\n data.services = EditorServer.invmgr.bootlist;\n\n // and configure the client to operate using the server's\n // distributed object manager\n _client.getContext().getClient().gotBootstrap(\n data, EditorServer.omgr);\n }\n\n public void resolutionFailed (Name username, Exception reason) {\n log.log(Level.WARNING, \"Failed to resolve client [who=\" +\n username + \"].\", reason);\n // TODO: display this error\n }\n };\n EditorServer.clmgr.resolveClientObject(new Name(\"editor\"), clr);\n }", "@Override\n\tpublic String editDoctor(String doctor) {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic void login() {\n\t\t\r\n\t}", "public void setActiveDialog(Player player, Dialog dlog) {\n\t\tif (dlog != null) {\n\t\t\tthis.activeDialog.remove(player.getUniqueId());\n\t\t\tthis.activeDialog.put(player.getUniqueId(), dlog);\n\t\t}\n\t}", "public String getDoctorName(){\n \treturn doctorName;\n }", "@Override\n public boolean setLoggedUser(User user) \n {\n try\n {\n File file = new File(System.getProperty(\"user.home\")+\"\\\\user.ser\");\n \n File file_remember_me = new File(System.getProperty(\"user.home\")+\"\\\\remember.ser\");\n if(!file_remember_me.exists()) file.deleteOnExit();\n \n FileOutputStream fout = new FileOutputStream(file);\n ObjectOutputStream oos = new ObjectOutputStream(fout); \n oos.writeObject(user);\n oos.close();\n\t}\n catch(Exception ex){ ex.printStackTrace();return false;}\n \n return true;\n }", "public static void makeUnlogged() {\n\t\tMemberSessionFacade.removeAttribute(ConfigKeys.LOGGED);\n//\t\tControllerUtils.addCookie(ConfigKeys.LOGGED, null);\n\t}", "public void setUserLogStatus(boolean bValue){\n /*SharedPreferences sharedPreferences = _context.getSharedPreferences(APP_PREFERENCES, PRIVATE_MODE);\n SharedPreferences.Editor editor;\n editor = sharedPreferences.edit();*/\n editor.putBoolean(IS_LOGGED_IN, bValue);\n editor.apply();\n }", "private void setUser(HttpServletRequest req, Request sensorReq) {\n\t\tObject userObject = req.getAttribute(\"__user\");\n\t\tif ( null == userObject) \n\t\t{\n\t\t\tsensorReq.setUser(UserProfile.getAnonymous());\n\t\t} \n\t\telse \n\t\t{\n\t\t\tsensorReq.setUser((UserProfile) userObject);\n\t\t}\n\t}", "void setLastLogin(Date lastLogin);", "public void logOutAdministrator() {\n logOutGeneral();\n }", "public static void setDoLogin()\t{\n\t\tlatch.countDown();\n\t}", "void setCurrentUser(@Nullable User newCurrentUser) {\n currentUser = newCurrentUser;\n }", "public void updateCurrentTrempitUser() {\n\n // create the trempituser object\n TrempitUser currentUser = new TrempitUser();\n currentUser.setFullName(Profile.getCurrentProfile().getName());\n currentUser.setId(Long.valueOf(Profile.getCurrentProfile().getId()));\n\n // update the global variable so all activities can access the user\n globalState.setCurrentUser(currentUser);\n\n // insert the user to the server\n insertTrempitUserToServer(currentUser);\n\n Toast.makeText(this, \"logged in to facebook:\" + globalState.getCurrentUser().getFullName(), Toast.LENGTH_LONG).show();\n }", "public void setCurrentUser(int userNum) {\n\t\tuserTurn = userNum;\n\t}", "public static void logout() {\n userId = -1;\n aisId = -1;\n \n name = \"\";\n role = \"\";\n roleFromDatabase = \"\";\n \n lastAction = LocalDateTime.now().minusYears(100);\n }" ]
[ "0.6559847", "0.6475512", "0.6451796", "0.6331025", "0.6109189", "0.60208064", "0.59281784", "0.5924099", "0.5875335", "0.585873", "0.5752535", "0.57460064", "0.57369924", "0.5727216", "0.5724996", "0.56828046", "0.5672308", "0.5646547", "0.5631072", "0.5618354", "0.561215", "0.558958", "0.5580016", "0.5578019", "0.5547818", "0.55381083", "0.5522615", "0.5519471", "0.55171186", "0.5509847", "0.54960775", "0.5429268", "0.54285175", "0.541835", "0.54049265", "0.5382186", "0.5378805", "0.53755116", "0.5371983", "0.53686523", "0.53686523", "0.53686523", "0.5367775", "0.53503144", "0.53418094", "0.53349006", "0.53274655", "0.5317482", "0.5311651", "0.530294", "0.5295555", "0.52854645", "0.52632767", "0.52564853", "0.5235672", "0.5234488", "0.52309793", "0.5230723", "0.5230322", "0.5226956", "0.5224715", "0.5220835", "0.5214929", "0.521163", "0.52094465", "0.52067566", "0.5196084", "0.51907563", "0.51897544", "0.518548", "0.51766604", "0.51652974", "0.516104", "0.5154217", "0.5138924", "0.5134786", "0.5125895", "0.51179", "0.51151264", "0.51124775", "0.5109149", "0.51035476", "0.5092497", "0.5084538", "0.50756633", "0.50695294", "0.5068406", "0.5067074", "0.5064838", "0.5063249", "0.5060904", "0.5051243", "0.5038112", "0.502996", "0.5024089", "0.50219434", "0.50180256", "0.5015108", "0.5014059", "0.5000099" ]
0.6506458
1
Called when a device is detected in the zone of this instance
private void deviceDetected(String btMac) { // We only allow one doctor to be logged in at the same place if (doctor == null) { // Check db to see if it is a doctor if so log in Doctor d = dbAdapter.getDoctor(btMac); if (d != null) { // Successful login this.doctor = d; this.doctor.setOnline(1); doLogin(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onDeviceFound(TxRxScanResult scanResult);", "public void deviceDiscovered(RemoteDevice btDevice, DeviceClass cod) {\n // add the device to the vector\n if (!vecDevices.contains(btDevice)) {\n vecDevices.addElement(btDevice);\n }\n }", "private void deviceDetected(String btMac, String location) {\r\n\t\t// If it is not this location\r\n\t\tif (location != this.location) {\r\n\t\t\tDoctor doctor = dbAdapter.getDoctor(btMac);\r\n\t\t\tif (doctor != null) {\r\n\t\t\t\tdoctors.addDoctor(doctor);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n public void onBluetoothDeviceFound(BluetoothDevice btDevice) {\n }", "@Override\n public void onDnsSdServiceAvailable(String instanceName, String registrationType, WifiP2pDevice sourceDevice) {\n Log.i(TAG, \"BonjourServiceAvailable: \\ninstanceName: \" + instanceName + \"\\n \" + sourceDevice.toString());\n }", "@Override\n\t\tpublic void onDeviceConnected() {\n\t\t\tDFUManager.log(TAG, \"onDeviceConnected()\");\n\t\t\tisDeviceConnected = true;\n\t\t\t\n\t\t\t\n\t\t}", "public void deviceLoaded(Device device);", "public void deviceDiscovered(RemoteDevice btDevice, DeviceClass cod) {\n devicesDiscovered.addElement(btDevice);\n }", "private void handleDeviceProvisioned() {\n Assert.isMainThread();\n for (int i = 0; i < this.mCallbacks.size(); i++) {\n KeyguardUpdateMonitorCallback keyguardUpdateMonitorCallback = this.mCallbacks.get(i).get();\n if (keyguardUpdateMonitorCallback != null) {\n keyguardUpdateMonitorCallback.onDeviceProvisioned();\n }\n }\n if (this.mDeviceProvisionedObserver != null) {\n this.mContext.getContentResolver().unregisterContentObserver(this.mDeviceProvisionedObserver);\n this.mDeviceProvisionedObserver = null;\n }\n }", "public void detectedNfcSensor(NfcSensor foundSensor) {\n if (detect) {\n for (Location location : locations) {\n if (location instanceof NfcSpot) {\n final NfcSpot nfcSpot = (NfcSpot) location;\n if (nfcSpot.getNfcSensor().getSerialNumber().equals(foundSensor.getSerialNumber())) {\n String log = \"Set NfcSpot \\\"\" + nfcSpot.getName() + \"\\\": \";\n Log.d(getClass().getSimpleName(), log + \"true\");\n nfcSpot.setActive(true);\n activeSpots.put(nfcSpot, timeToSetInactive);\n }\n }\n }\n }\n }", "void onDeviceSelected(String address);", "public void deviceDiscovered(IDiscoverer _discoverer, IDevice _device);", "private void inZoneSignal(){\n EventHandle[] trackInZone = ECAAgent.getEventHandles(inZoneEventName);\n ECAAgent.insert(trackInZone,\"TrackNumber\",trackNumber);\n ECAAgent.getDefaultECAAgent().raiseEndEvent(trackInZone,this);\n }", "@Override\r\n public void onDeviceConnecting(GenericDevice mDeviceHolder,\r\n PDeviceHolder innerDevice) {\n\r\n }", "@Override\n public void triggerProbe(DeviceId deviceId) {\n }", "public void monitorFoundDevices() {\n //start a thread\n new Thread() {\n public void run() {\n //loop till mBeaconListAdapter has been skilled.\n while(mBeaconListAdapter != null) {\n try {\n //Since it will update UI, runOnUiThread is called here.\n getActivity().runOnUiThread(new Runnable() {\n @Override\n public void run() {\n for (int i = 0; i < mBeaconListAdapter.getCount(); i++) {\n if (!mBleWrapper.checkDeviceConnection(mBeaconListAdapter.\n getDevice(i).getAddress()))\n mBeaconListAdapter.removeDevice(i);\n }\n }\n });\n\n Thread.sleep(MONITOR_DELAY_TIME_INTERVAL);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }\n }.start();\n }", "public interface NewDeviceDetectedEventListener extends EventListener {\r\n\tpublic void newDeviceDetectedEventOccurred(NewDeviceDetectedEvent evt);\r\n }", "@Override\n public void onDeviceFound(BluetoothDevice device) {\n writeLine(\"Found device: \" + device.getAddress());\n }", "public interface IOnDeviceDetected {\n void onDeviceDetected(ClientScanResult clientScanResult);\n}", "public void handleSensorEvents(){\n\t}", "@Override\n public void onDeviceRegistered(NotificareDevice device) {\n try {\n NotificareEventEmitter.getInstance().sendEvent(\"deviceRegistered\", NotificareUtils.mapDevice(device), true);\n } catch (JSONException e) {\n // ignore\n }\n }", "@Subscribe(threadMode = ThreadMode.MAIN, sticky = true)\n public void onCaptureDeviceDiscoveryChange(DeviceDiscoveryCompleteEvent event) {\n enableManualDiscoveryButton(true);\n if(event.isComplete()) {\n Toast.makeText(getApplicationContext(), \"Manual device discovery is complete\" , Toast.LENGTH_SHORT).show();\n }\n }", "void onFingerprintEntered();", "protected void onMediaControllerConnected() {\n }", "@Subscribe(threadMode = ThreadMode.MAIN, sticky = true)\n public void onCaptureDeviceDiscoveryChange(DeviceDiscoveryEvent event) {\n Log.d(TAG, \"DeviceDiscoveryEvent received \");\n enableManualDiscoveryButton(true);\n DiscoveredDevice device = event.getDiscoveredDevice();\n if(device != null) {\n Log.d(TAG, \"name \" + device.getName());\n Log.d(TAG, \"unique id \" + device.getUniqueIdentifier());\n\n updateFavoriteSpinner(device.getUniqueIdentifier(), device.getName());\n }\n }", "public void deviceDiscovered(RemoteDevice btDevice, DeviceClass cod) {\n\t\ttry {\n\t\t\tif (isValidDevice(btDevice.getBluetoothAddress())) {\n\t\t\t\tNeighbors.getInstance().AddNeighbor(btDevice.getBluetoothAddress());\n\t\t\t\tdevList.addElement(btDevice.getBluetoothAddress());\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t}\n\n\t}", "@Override\r\n public void run() {\r\n if (event.getEventType().equals(DrivingEventType.OVERSPEED)) {\r\n overspeedStartTimestamp = System.currentTimeMillis();\r\n LocationController.addListenerToContainer(this);\r\n } else {\r\n AccelerometerValuesController.addListenerToContainer(this);\r\n }\r\n }", "public default void onCaptureDevicesLoaded() { /* empty */ }", "@Override\n public void onMachineActivated()\n {\n \n }", "@Override\n public void onNewDetection(int id, final Barcode barcode) {\n\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n if (!mBarcodeDetected) {\n mBarcodeDetected = true;\n mCameraSourcePreview.stop();\n AudioManager audioService = (AudioManager) getSystemService(Context.AUDIO_SERVICE);\n if (audioService.getRingerMode() == AudioManager.RINGER_MODE_NORMAL) {\n ToneGenerator toneGenerator\n = new ToneGenerator(AudioManager.STREAM_MUSIC, TONE_VOLUME);\n toneGenerator.startTone(ToneGenerator.TONE_CDMA_PIP, TONE_DURATION);\n }\n onBarcodeDetected(barcode);\n }\n }\n });\n }", "@Override\n\t\tpublic void onDeviceEventReceived(DeviceEvent ev, String client) {\n\t\t\t\n\t\t}", "void onCaptureStart();", "public void onIBeaconServiceConnect();", "@Override\n public void onDeviceStateChange(VirtualDevice virtualDevice, int returncode) {\n\n }", "@Override\r\n public void onDeviceStatusChange(GenericDevice dev, PDeviceHolder devh,\r\n PHolderSetter status) {\n\r\n }", "void onConnectedAsServer(String deviceName);", "@Override\n public void onScanStarted() {\n Log.d(TAG, \"Scan Started\");\n }", "@Subscribe(threadMode = ThreadMode.MAIN, sticky = true)\n public void onCaptureDeviceStateChange(DeviceStateEvent event) {\n DeviceClient device = event.getDevice();\n DeviceState state = event.getState();\n Log.d(TAG, \"device : type : \" + device.getDeviceType() + \" guid : \" + device.getDeviceGuid());\n Log.d(TAG, \"device : name : \" + device.getDeviceName() + \" state: \" + state.intValue());\n\n mDeviceClient = device;\n String type = (DeviceType.isNfcScanner(device.getDeviceType()))? \"NFC\" : \"BARCODE\";\n TextView tv = findViewById(R.id.main_device_status);\n handleColor(tv, state.intValue());\n switch (state.intValue()) {\n case DeviceState.GONE:\n mDeviceClientList.remove(device);\n mAdapter.remove(device.getDeviceName() + \" \" + type);\n mAdapter.notifyDataSetChanged();\n if(!mAdapter.isEmpty()) {\n handleColor(tv, DeviceState.READY);\n }\n break;\n case DeviceState.READY:\n mDeviceClientList.add(device);\n mAdapter.add(device.getDeviceName() + \" \" + type);\n mAdapter.notifyDataSetChanged();\n\n Property property = Property.create(Property.UNIQUE_DEVICE_IDENTIFIER, device.getDeviceGuid());\n mDeviceManager.getProperty(property, propertyCallback);\n\n break;\n default:\n break;\n }\n\n }", "public void onLocationChanged(Location location) {\n Log.i( \"wifiMonitor\", location.toString() );\n\n }", "public void onFingerDown(String idSensor) // evento que se genera al colocar un dedo en el lector\n{\n}", "@Override\n public void onReceive(Context context, Intent intent) {\n safezoneListAdapter.updateSafezoneList(Safezone.getSafezonesOfDeviceGPS(macAddress));\n }", "public void onFingerUp(String idSensor) // evento que se genera al levantar el dedo del lector\n{\n objpantprincipal.repintarp();\n if (conectado == true)\n identificarPersona();\n}", "public void onSensorPlug(String idSensor) // evento que se genera al conectar el lector de huella\n {\n objpantprincipal.writeLog(\"Lector \"+idSensor+\": Conectado.\");\n try {\n //Start capturing from plugged sensor.\n GrFingerJava.startCapture(idSensor, this, this);\n } catch (GrFingerJavaException e) {\n //write error to log\n objpantprincipal.writeLog(e.getMessage());\n }\n }", "public void visitMotionSensor( DevCat devCat ) {}", "@Subscribe\n public void onDeviceInfo(final DeviceInformation event) {\n\n apiService.onSendDeviceInfo(event, new Callback<DeviceInfoSuccess>() {\n\n @Override\n public void success(DeviceInfoSuccess retroResponse, Response response) {\n\n if(retroResponse != null) {\n bus.post(new DeviceInfoSuccess(retroResponse));\n //ealmObjectController.cachedResult(MainFragmentActivity.getContext(), (new Gson()).toJson(retroResponse));\n RealmObjectController.cachedResultWithType(MainFragmentActivity.getContext(), (new Gson()).toJson(retroResponse),\"SplashInfo\");\n\n }else{\n BaseFragment.setAlertNotification(MainFragmentActivity.getContext());\n }\n\n }\n\n @Override\n public void failure(RetrofitError error) {\n BaseFragment.setAlertNotification(MainFragmentActivity.getContext());\n }\n\n });\n }", "public void onFlight() {\r\n }", "@Override\r\n public void driverBaseDataReceived(PeripheralHardwareDataEvent oEvent);", "protected abstract void onAddressAllocated(int logicalAddress);", "public void onSensorUnplug(String idSensor) // evento que se genera al desconectar el lector de huella\n{\n objpantprincipal.writeLog(\"Lector \"+idSensor+\": Desconectado.\");\n try {\n GrFingerJava.stopCapture(idSensor);\n } catch (GrFingerJavaException e) {\n Toolkit.getDefaultToolkit().beep();\n objpantprincipal.writeLog(e.getMessage());\n }\n}", "@Override\n public void run() {\n scanLeDevice(false);\n }", "void onProximityActive(boolean isActive);", "public void onDeviceFound(final MultiDeviceSearchResult deviceFound) {\n final MultiDeviceSearchResultWithRSSI result = new MultiDeviceSearchResultWithRSSI();\n result.mDevice = deviceFound;\n\n // We split up devices already connected to the plugin from\n // un-connected devices to make this information more visible to the\n // user, since the user most likely wants to be aware of which\n // device they are already using in another app\n if (deviceFound.isAlreadyConnected()) {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n // connected device category is invisible unless there\n // are some present\n if (mConnectedAdapter.isEmpty()) {\n findViewById(R.id.textView_AlreadyConnectedTitle).setVisibility(\n View.VISIBLE);\n mConnectedDevicesList.setVisibility(View.VISIBLE);\n }\n mProgressEmptyView.setVisibility(View.GONE);\n mConnectedAdapter.add(result);\n mConnectedAdapter.notifyDataSetChanged();\n }\n });\n } else {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n mProgressEmptyView.setVisibility(View.GONE);\n mFoundAdapter.add(result);\n mFoundAdapter.notifyDataSetChanged();\n }\n });\n }\n }", "void onSystemReady();", "void onDeviceProfileChanged(DeviceProfile dp);", "@Override\n public void onFound(final Message message) {\n mNearbyDevicesArrayAdapter.add(\n DeviceMessage.fromNearbyMessage(message).getMessageBody());\n }", "public void addDeviceListener(DeviceDriverListener device);", "private void handleSensorActivated() {\n if (securityRepository.getArmingStatus() == ArmingStatus.DISARMED) {\n return; //no problem if the system is disarmed\n }\n switch (securityRepository.getAlarmStatus()) {\n case NO_ALARM -> setAlarmStatus(AlarmStatus.PENDING_ALARM);\n case PENDING_ALARM -> setAlarmStatus(AlarmStatus.ALARM);\n }\n }", "public void onPickDevice(ConnectDevice device);", "@Override\n public void onBarcodeDetected(Barcode barcode) {\n Log.d(TAG,\"Barcode detected\");\n }", "@Subscribe(threadMode = ThreadMode.MAIN)\n public void onDevicesReceived(OnReceiverDevicesEvent event){\n //if(!devicesListAdapter.isEmpty()) devicesListAdapter.clear(); // clear old names\n\n\n devicesListAdapter.removeAll();\n Log.d(\"P2P\", \"Found something on events!\");\n //Toast.makeText(getContext(), \"Found something\", Toast.LENGTH_LONG).show();\n Collection<WifiP2pDevice> devs = event.getDevices().getDeviceList();\n devsList.addAll(devs);\n\n\n\n for(int i = 0; i < devsList.size(); i++){\n\n if(!devicesListAdapter.hasItem(devsList.get(i))){\n Log.d(\"P2P\", \"Device Found: \" + devsList.get(0).deviceName);\n devicesListAdapter.add(devsList.get(i).deviceName);\n devicesListAdapter.notifyDataSetChanged();\n }\n\n }\n\n\n }", "public void onPrepareDevice(ConnectDevice device);", "private void logDeviceInfo() {\n logDeviceLevel();\n }", "private void logDeviceInfo() {\n logDeviceLevel();\n }", "private void notifyDevicesChanged() {\n runInAudioThread(new Runnable() {\n @Override\n public void run() {\n WritableArray data = Arguments.createArray();\n final boolean hasHeadphones = availableDevices.contains(DEVICE_HEADPHONES);\n for (String device : availableDevices) {\n if (hasHeadphones && device.equals(DEVICE_EARPIECE)) {\n // Skip earpiece when headphones are plugged in.\n continue;\n }\n WritableMap deviceInfo = Arguments.createMap();\n deviceInfo.putString(\"type\", device);\n deviceInfo.putBoolean(\"selected\", device.equals(selectedDevice));\n data.pushMap(deviceInfo);\n }\n getContext().getJSModule(DeviceEventManagerModule.RCTDeviceEventEmitter.class).emit(DEVICE_CHANGE_EVENT, data);\n JitsiMeetLogger.i(TAG + \" Updating audio device list\");\n }\n });\n }", "public void onDeviceConnected(String name, String address) {\n btButton.setText(\"Connected\");\n }", "@Override\n\tpublic void onDeviceChangeInfoSuccess(FunDevice funDevice) {\n\n\t}", "@Override\n public void onDiscoveryComplete() {\n BusProvider.getInstance().post(new DiscoveryCompleteEvent());\n }", "void onConnectDeviceComplete();", "@Override\n\tpublic void onSensorChanged(SensorEvent event) {\n\t\t\n\t}", "@Override\n\tpublic void onSensorChanged(SensorEvent event) {\n\t\t\n\t}", "@Override\n public void onSensorChanged(SensorEvent event) {\n\n if (event.sensor.getType() == Sensor.TYPE_ACCELEROMETER) {\n double aX = event.values[0];\n double aY = event.values[1];\n double aZ = event.values[2];\n\n if(!isPowerConnected){\n // Call fall detection method - argument acceleration vector\n fallDetection(new MovementInstance(aX, aY, aZ).getAccelerationVector());\n //Alternate Method - argument MovementInstance object\n// fallDetectionV2(new MovementInstance(aX, aY, aZ));\n }\n else{\n // Call earthquake detection method - argument movement object\n earthquakeDetect(new MovementInstance(aX, aY, aZ));\n }\n }\n }", "public interface IDiscoveryListener {\r\n\t/**\r\n\t * Called when a device is discovered.\r\n\t * \r\n\t * @param _discoverer the discoverer that found the device\r\n\t * @param _device the device that was found\r\n\t */\r\n\tpublic void deviceDiscovered(IDiscoverer _discoverer, IDevice _device);\r\n}", "@Override\n public void magnetometer(int x, int y, int z, int timestamp) {\n }", "public void onSensorChanged() {\n\t\tsensorChanged();\n\t}", "@Override\n public void onCardboardTrigger() {\n Log.e(TAG, \"onCardboardTrigger\");\n\n mOverlayView.show3DToast(\"Identifying...\");\n try {\n camera.takePicture(null, null, mPicture);\n } catch (Exception e) {\n Log.e(\"Take Picture Failed.:\", e.getMessage());\n }\n\n // Always give user feedback\n mVibrator.vibrate(50);\n }", "@Subscribe(threadMode = ThreadMode.MAIN, sticky = true)\n public void onCaptureDeviceManagerStateChange(DeviceManagerStateEvent event) {\n DeviceClient device = event.getDevice();\n DeviceState state = event.getState();\n Log.d(TAG, \"devicemanager : type : \" + device.getDeviceType() + \" guid : \" + device.getDeviceGuid());\n\n if(DeviceType.retrieveClassType(device.getDeviceType()) == DeviceType.ClassType.kDeviceManagerClass) {\n mDeviceManager = device;\n TextView tv = findViewById(R.id.main_device_manager_status);\n handleColor(tv, state.intValue());\n if(state.intValue() == DeviceState.READY) {\n getCurrentFavorite();\n }\n }\n }", "private void handleAirplaneModeChanged() {\n callbacksRefreshCarrierInfo();\n }", "public void listen() {\n DeviceManager cpuUsage = new CPUUsageManager();\n cpuUsage.printStatus();\n \n }", "DeviceSensor createDeviceSensor();", "public void initDevice() {\r\n\t\t\r\n\t}", "@Override\n public void onPeersAvailable(SimWifiP2pDeviceList simWifiP2pDeviceList) {\n Collection<SimWifiP2pDevice> beaconsList = simWifiP2pDeviceList.getDeviceList();\n\n try {\n\n NotificationManagerCompat notificationManager = NotificationManagerCompat.from(this.globalState.getBaseContext());\n\n if (beaconsList.size() == 0){\n this.command = \"leavingQueue\";\n this.beaconName = this.globalState.getLastKnownBeacon();\n this.globalState.setLastKnownBeacon(null);\n\n if(this.globalState.isLoggedIn()){\n NotificationCompat.Builder builder = new NotificationCompat.Builder(this.globalState.getBaseContext(), \"FoodIST\")\n .setSmallIcon(R.drawable.smallicon)\n .setContentTitle(\"FoodIST\")\n .setStyle(new NotificationCompat.BigTextStyle().bigText(\"Hey! You're not waiting in the queue anymore, are you? Take a picture of the food you're about to eat and rate it! Also, again, share it with your friends!\"))\n .setPriority(NotificationCompat.PRIORITY_DEFAULT);\n\n notificationManager.notify(100, builder.build());\n\n }\n\n } else {\n this.command = \"joiningQueue\";\n this.beaconName = (beaconsList.iterator().next()).deviceName;\n this.globalState.setLastKnownBeacon(this.beaconName);\n\n if(this.globalState.isLoggedIn()){\n NotificationCompat.Builder builder = new NotificationCompat.Builder(this.globalState.getBaseContext(), \"FoodIST\")\n .setSmallIcon(R.drawable.smallicon)\n .setContentTitle(\"FoodIST\")\n .setStyle(new NotificationCompat.BigTextStyle().bigText(\"Hey! Since you're in a queue, consider submitting the dish you're ordering to FoodIST! Or, of course, if it's there on the menu already, consider rating it and sharing with your friends!\"))\n .setPriority(NotificationCompat.PRIORITY_DEFAULT);\n\n notificationManager.notify(101, builder.build());\n\n }\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "@Override\n public void onMovement() {\n showToast(\"设备移动\");\n LogUtil.e(\"move\");\n }", "@Override\n public void onCaptureAreaTouched(Point point) {\n FastViewFinder.this.hideBalloonTips();\n switch (this.mCameraType) {\n default: {\n return;\n }\n case 1: {\n this.setFocusPositionToDeviceAndViewFinder(point, FocusRectangles.FocusSetType.FIRST);\n return;\n }\n case 2: {\n if (FastViewFinder.this.mVideoFocusMode != FocusMode.OBJECT_TRACKING) return;\n this.setSelectedObjectPositionToDeviceAndViewFinder(point);\n return;\n }\n }\n }", "public void onDouyinDetectStart() {\n HwAPPStateInfo curAppInfo = getCurStreamAppInfo();\n if (curAppInfo != null && 100501 == curAppInfo.mScenceId) {\n curAppInfo.mIsVideoStart = true;\n }\n }", "@Override\n public void onLocationChanged(Location location) {\n }", "@Override\n public boolean isReachable(DeviceId deviceId) {\n return true;\n }", "@Override\n public boolean isReachable(DeviceId deviceId) {\n return true;\n }", "@Override\r\n public void onGpsStatusChanged(int event) {\n\r\n }", "@Override\n public void onConnect(int i) {\n addLog(\"init MSDPService done\");\n // Get Virtual Device Service Instance\n mVirtualDeviceManager = (VirtualDeviceManager) DvKit.getInstance().getKitService(VIRTUAL_DEVICE_CLASS);\n // Register virtual appliance observer\n mVirtualDeviceManager.subscribe(EnumSet.of(VIRTUALDEVICE), observer);\n }", "public void hidDeviceAttached(HidServicesEvent event);", "public DeviceLocator getDeviceLocator();", "private void onFoundDevice(Context context, Intent intent)\n\t {\n BluetoothDeviceInfo deviceInfo = new BluetoothDeviceInfo(intent);\n\n // Processes NON-NULL Bluetooth Device Names\n if (deviceInfo.getDeviceName() != null && !btDevicesFound.contains(deviceInfo.getDeviceName()))\n {\n \tbtDevicesFound.add(deviceInfo.getDeviceName());\n \t\n\t // Logs the Discovery\n\t Log.i(LOG_NAME, \"Found \" + deviceInfo.getDeviceName() + \": (RSSI=\" + deviceInfo.getRSSI() + \")\");\n \t\n \t// Adds the Device Name to the Log\n\t log.put(deviceInfo.getDeviceName(), deviceInfo);\n\n\t // Sends an Intent Containing the Results\n\t \t\tIntent updateResults = new Intent(BluewaveManager.ACTION_BLUETOOTH_SCAN_UPDATE);\n\t \t\tupdateResults.putExtra(BluewaveManager.BLUETOOTH_SCAN_RESULT, deviceInfo.getFullName());\n\t \t\tupdateResults.putExtra(BluewaveManager.BLUETOOTH_RSSI_RESULT, deviceInfo.getRSSI());\n\t \t\tcontext.sendBroadcast(updateResults);\n }\n\t }", "public void onPacketReceived(Consumer<APINetworkPacket> consumer) {\n packetReceived.register(consumer);\n }", "public void driverBaseDataReceivedProxy(PeripheralHardwareDataEvent oEvent);", "public void detect(float[] buffer)\n\t{\n\t\tfEnergy(buffer);\n\t}", "void onEnoughLightAvailable() {\n //start eye tracking if it is not running already\n startEyeTracking();\n }", "public void ping(){\r\n\t\t uSensor.ping();\r\n\t }", "@Override\n public void onCaptureAreaReleased(Point point) {\n switch (this.mCameraType) {\n case 1: {\n StateMachine stateMachine = FastViewFinder.this.mStateMachine;\n StateMachine.TransitterEvent transitterEvent = StateMachine.TransitterEvent.EVENT_CAPTURE_BUTTON_RELEASE;\n Object[] arrobject = new Object[]{StateMachine.TouchEventSource.CAPTURE_AREA};\n stateMachine.sendEvent(transitterEvent, arrobject);\n }\n default: {\n break;\n }\n case 2: {\n if (FastViewFinder.this.mStateMachine.isInModeLessRecording()) {\n StateMachine stateMachine = FastViewFinder.this.mStateMachine;\n StateMachine.TransitterEvent transitterEvent = StateMachine.TransitterEvent.EVENT_CAPTURE_BUTTON_RELEASE;\n Object[] arrobject = new Object[]{StateMachine.TouchEventSource.CAPTURE_AREA};\n stateMachine.sendEvent(transitterEvent, arrobject);\n break;\n }\n FastViewFinder.this.mStateMachine.sendEvent(StateMachine.TransitterEvent.EVENT_CAMCORD_BUTTON_RELEASE, new Object[0]);\n }\n }\n FastViewFinder.this.mStateMachine.sendEvent(StateMachine.TransitterEvent.EVENT_CANCEL_TOUCH_ZOOM, new Object[0]);\n }", "public void onSystemReady() {\n updateCurrentProfileIds();\n this.mInjector.reportCurWakefulnessUsageEvent();\n }", "@Override\n public void onPointCloudAvailable(TangoPointCloudData pointCloud) {\n }" ]
[ "0.6227267", "0.59681785", "0.5962695", "0.5914375", "0.58907527", "0.5876521", "0.58711207", "0.5849292", "0.5828412", "0.582282", "0.579252", "0.57797617", "0.5736197", "0.5669474", "0.5656829", "0.56439847", "0.5643757", "0.5643278", "0.56325454", "0.56050104", "0.5593728", "0.5582753", "0.5523319", "0.5476288", "0.54402685", "0.5433702", "0.5429399", "0.54143095", "0.5408319", "0.5385863", "0.53659093", "0.536462", "0.5333717", "0.53015244", "0.5299476", "0.52867806", "0.52835107", "0.52790856", "0.52778363", "0.5256142", "0.52494234", "0.5244138", "0.5243672", "0.52415633", "0.52271855", "0.5196864", "0.51865196", "0.5185975", "0.51820123", "0.5179476", "0.5179354", "0.5177411", "0.51569307", "0.51528776", "0.5144286", "0.51282513", "0.51053137", "0.51022357", "0.5099364", "0.50924313", "0.50918984", "0.5090316", "0.5090316", "0.5084549", "0.5083722", "0.5062229", "0.5058407", "0.50546294", "0.5051322", "0.5051322", "0.5048755", "0.5029337", "0.50276226", "0.50219023", "0.49969316", "0.49961194", "0.49901393", "0.49876684", "0.49851498", "0.4983716", "0.49769428", "0.4975156", "0.49719453", "0.49701774", "0.4969584", "0.49622175", "0.49622175", "0.4953294", "0.49490446", "0.49481484", "0.49463207", "0.4937993", "0.49351263", "0.4933652", "0.4933569", "0.49136966", "0.49135685", "0.49131483", "0.4912843", "0.49115345" ]
0.5664825
14
Called when a doctor has logged in (entered the zone)
private void doLogin() { loggedIn = true; doctor.setOnline(1); // Set doctor as logged in dbAdapter.updateDoctor(doctor); // Get a list of currently logged in doctors doctors = dbAdapter.getDoctors(this.doctor); // Add listeners to keep the list updated try { eb.addListener(new LogoutListener(this.doctor.getMac(), this.location)); eb.addListener(new DeviceDetectedListener()); eb.addListener(new DevicedMovedListener()); } catch (IOException e) { // TODO: Handle } notifyObservers(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void loggedInUser() {\n\t\t\n\t}", "public void login() {\n\t\tloggedIn = true;\n\t}", "@Override\n public void onLoggedIn() {\n\n }", "public void LogIn() {\n\t\t\r\n\t}", "public void StartLogIn(){\n\t}", "default void onLogon(SessionID sessionID) {\n }", "@Override\n public void onLogon(SessionID sessionID) {\n LOG.info(\"Server: onLogon of \" + sessionID);\n }", "public void doLogin() {\n\t\tSystem.out.println(\"loginpage ----dologin\");\n\t\t\n\t}", "@Override\n public void listenForLogins() {\n }", "private LogIn() {}", "@Override\n public void doWhenNetworkCame() {\n doLogin();\n }", "public void logincredentials() {\n\t\tutil.entertext(prop.getValue(\"locators.text.uname\"), \"admin\");\n\t\tutil.entertext(prop.getValue(\"locators.text.password\"), \"Admin123\");\n\t\tutil.ClickElement(prop.getValue(\"locators.button.regdesk\"));\n\t\tutil.ClickElement(prop.getValue(\"locators.button.login\"));\n\t\tlogreport.info(\"logged into the application\");\n\n\t}", "@Override\r\n\tpublic void login() {\n\t\t\r\n\t}", "protected void login() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void MemberLogin() {\n\r\n\t}", "@Override\n \tpublic void clientLoggedIn(NetHandler clientHandler, INetworkManager manager, Packet1Login login)\n \t{\n \t}", "@Override\n public void onLoging() {\n }", "public static void makeLogged() {\n\t\tMemberSessionFacade.setAttribute(ConfigKeys.LOGGED, \"1\");\n//\t\tControllerUtils.addCookie(ConfigKeys.LOGGED, \"1\");\n\t}", "public void loggedInSuccessful() {\n\t\tIntent intent = new Intent(this, MainActivity.class);\n\t\tstartActivity(intent);\n\t\tthis.finish();\n\t}", "@Override\r\n\t\t\t\t\tpublic void onLoginedNotify() {\n\t\t\t\t\t\tTypeSDKLogger.d( \"onLoginedNotify\");\r\n\t\t\t\t\t\thaimaLogout();\r\n\t\t\t\t\t\thaimaLogin();\r\n\t\t\t\t\t}", "void loginDone();", "public void logon ()\n {\n ClientResolutionListener clr = new ClientResolutionListener() {\n public void clientResolved (Name username, ClientObject clobj) {\n // fake up a bootstrap; I need to expose the mechanisms in\n // Presents that create it in a network environment\n BootstrapData data = new BootstrapData();\n data.clientOid = clobj.getOid();\n data.services = EditorServer.invmgr.bootlist;\n\n // and configure the client to operate using the server's\n // distributed object manager\n _client.getContext().getClient().gotBootstrap(\n data, EditorServer.omgr);\n }\n\n public void resolutionFailed (Name username, Exception reason) {\n log.log(Level.WARNING, \"Failed to resolve client [who=\" +\n username + \"].\", reason);\n // TODO: display this error\n }\n };\n EditorServer.clmgr.resolveClientObject(new Name(\"editor\"), clr);\n }", "protected synchronized void login() {\n\t\tauthenticate();\n\t}", "private void startAuth() {\n if (ConnectionUtils.getSessionInstance().isLoggedIn()) {\n ConnectionUtils.getSessionInstance().logOut();\n } else {\n ConnectionUtils.getSessionInstance().authenticate(this);\n }\n updateUiForLoginState();\n }", "@Override\r\n\tpublic void login() {\n\r\n\t}", "@Override\n public void loggedIn(Member member) {\n timeTables = new Timetables();\n appointments = new Appointments();\n tasks = new Tasks();\n messages = new Messages();\n substitutions = new Substitutions();\n files = new Files();\n announcements = new Announcements();\n excuseNotes = new ExcuseNotes();\n }", "private void signIn() {\n }", "@Override\n\tpublic void setLoggedIn(boolean arg0) {\n\t\t\n\t}", "public void loginSuccess(@Observes org.jboss.seam.security.events.LoggedInEvent event) {\n try {\n log.info(\"Login successfully for user : \" + event.getUser().getId());\n FacesContext context = FacesContext.getCurrentInstance();\n HttpServletRequest request = (HttpServletRequest) context.getExternalContext().getRequest();\n //Redirect to the home page\n if (identity.hasRole(\"admin\", \"crm\", \"GROUP\")\n || identity.hasRole(\"commercial\", \"crm\", \"GROUP\")) {\n context.getExternalContext().redirect(request.getContextPath() + \"/backoffice/home.jsf\");\n }else if(identity.hasRole(\"client\", \"crm\", \"GROUP\")){\n context.getExternalContext().redirect(request.getContextPath() + \"/frontoffice/home.jsf\");\n }\n //Sending welcome message\n messages.info(\"Bienvenue \"+event.getUser().getId());\n } catch (IOException ex) {\n log.error(ex.getMessage());\n }\n }", "public abstract void onLogin();", "private void checkAccountLoggedIn()\r\n\t{\n\t\tSharedPreferences pref = this.getSharedPreferences(\"accountdata\", 0);\r\n\t\tSystem.out.println(\"Checking if an account is logged in\");\r\n\t\tif (pref.getBoolean(\"accountLoggedIn\", false))\r\n\t\t{\r\n\t\t\tloginButton.setEnabled(false);\r\n\t\t\tregisterButton.setEnabled(false);\r\n\r\n\t\t\t// Make a crouton notifying the user\r\n\t\t\tCrouton crouton = Crouton.makeText(this, this.getResources()\r\n\t\t\t\t\t.getString(R.string.activity_login_account_loggedin),\r\n\t\t\t\t\tStyle.INFO);\r\n\t\t\tConfiguration.Builder configBuild = new Configuration.Builder();\r\n\t\t\tconfigBuild.setDuration(Configuration.DURATION_INFINITE);\r\n\t\t\tcrouton.setConfiguration(configBuild.build());\r\n\t\t\tcrouton.setOnClickListener(new OnClickListener()\r\n\t\t\t{\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void onClick(View v)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(\"Crouton clicked\");\r\n\t\t\t\t\t((LoginActivity) v.getContext()).onBackPressed();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tcrouton.show();\r\n\t\t}\r\n\t}", "@Override\n\tprotected void login() {\n\t\tsuper.login();\n\t}", "public void signIn()\r\n {\r\n FoodCenterRequestFactory factory = AndroidRequestUtils.getFoodCenterRF(context);\r\n ClientServiceRequest service = factory.getClientService();\r\n\r\n service.login(regId).fire(this);\r\n }", "private static void postLoginPage() {\n post(\"/login\", \"application/json\", (req, res) -> {\n HomerAccount loggedInAccount = homerAuth.login(req.body());\n if(loggedInAccount != null) {\n req.session().attribute(\"account\", loggedInAccount);\n res.redirect(\"/team\");\n } else {\n res.redirect(\"/login\");\n }\n return null;\n });\n }", "private static void logedIn(Request req, Response res, CloudService cloud) {\r\n\t\t\tif (cloud.getKorisnici().get(req.cookie(\"userID\")) == null) {\r\n\t\t\t\tString[] params = req.splat();\r\n\t\t\t\tString path;\r\n\t\t\t\tif(params.length == 0)\r\n\t\t\t\t\tpath = \"\";\r\n\t\t\t\telse\r\n\t\t\t\t\tpath = params[0];\r\n\t\t\t\tif(path.equals(\"checkLogin\") || path.equals(\"favicon.ico\"))\r\n\t\t\t\t\treturn;\r\n\t\t\t\tres.redirect(\"/login.html\");\r\n\t\t\t\thalt(302);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tif(req.session().attribute(\"user\") == null) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tKorisnik k = cloud.getKorisnici().get(req.cookie(\"userID\"));\r\n\t\t\t\t\treq.session().attribute(\"user\", k); // postavi mu korisnika za sesiju\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}", "public void onPlayerLoggedIn() {\n\t\tshowPlayerButtons();\n\t}", "@Override\r\n\tprotected void onLoginSuccess() {\n\t\t\r\n\t}", "public void login () {\n\t\tGPPSignIn.sharedInstance().authenticate();\n\t}", "private final static void onLogin(TextField username, PasswordField password)\n\t{\n\t\tif (ProfileManipulation.checkLogin(username.getText(), password.getText())) {\n\t\t\tif (ProfileManipulation.isVerfied(username.getText())) {\n\t\t\t\tProfileManipulation.updateLoginStatus(username.getText(), true);\n\n\t\t\t\t// Jetzt wird das Profil aufgerufen\n\t\t\t\tPartylize.setUsername(username.getText());\n\t\t\t\tPartylize.showMainScene();\n\t\t\t} else {\n\t\t\t\tPartylize.setUsername(username.getText());\n\t\t\t\tPartylize.showVerification();\n\t\t\t}\n\t\t}\n\t\t// Funktionsaufruf Datenbankanbindung -> Erstellen einer Session ID\n\t\t// Funktionsaufruf Profildaten in lokalen Speicher laden - WIP\n\t\telse {\n\t\t\tusername.setText(\"\");\n\t\t\tpassword.setText(\"\");\n\t\t}\n\t}", "public void LogInOnAction(Event e) {\n\t \t\r\n\t \tif(BookGateway.getInstance().getAuthentication(this.userNameId.getText(), this.passwordId.getText())) {\r\n\t \t\tthis.whiteOutId.setVisible(false);\r\n\t \t\tthis.whiteOutId.setDisable(true);\r\n\t \t\t// TODO: Update label name in the corner.. \r\n\t \t\tthis.nameLabelId.setText(\"Hello, \" + BookGateway.currentUser.getFirstName());\r\n\t \t\r\n\t \t}else {\r\n\t \t\t// true\r\n\t \t\tmessAlert(\"Invalid\",\"Wrong Username or password\");\r\n\t \t\tthis.userNameId.setText(\"\");\r\n\t \t\tthis.passwordId.setText(\"\");\r\n\t \t\te.consume();\r\n\t \t}\r\n\t \t\r\n\t \t\r\n\t }", "@Pointcut(\"@annotation(com.revature.aspects.LoggedIn)\")\n\tprivate void loggedInHook() {}", "public void onOK() {\n\t\t\t\t\t\t\tlogout();\n\t\t\t\t\t\t}", "public void onStart() {\n super.onStart();\n // Check if user is signed in (non-null) and update UI accordingly.\n FirebaseUser currentUser = mAuth.getCurrentUser();\n if (currentUser!=null)\n this.logIn(currentUser);\n }", "public void d()\n {\n String var1 = this.server.getServerConfigurationManager().attemptLogin(this.networkManager.getSocketAddress(), this.h);\n\n if (var1 != null)\n {\n this.disconnect(var1);\n }\n else\n {\n EntityPlayer var2 = this.server.getServerConfigurationManager().processLogin(this.h);\n\n if (var2 != null)\n {\n this.server.getServerConfigurationManager().a(this.networkManager, var2);\n }\n }\n\n this.c = true;\n }", "@Override\n\tpublic void onLoginSuccess() {\n\t\t\n\t}", "public void run() {\t\t\t\t\t\n\t\t\t \tcheckforLogout(false);\n\t\t\t \n\t\t\t }", "public void userLoggedIn(CurrentUser user) \n\t\t{\n\t\t\tLog.i(\"OpenFeint\", \"User logged in\");\t\t\n\t\t\tMainActivity.this.userLoggedIn();\n\t\t}", "void onLogout(boolean loggedIn);", "private void loginSuccess(String uname) {\n }", "public void onUserOnline(RpcProxyBase proxy,Object cookie){\n\t}", "public void userLoggedIn(CurrentUser user) \n\t\t{\n\t\t\tLog.i(\"OpenFeint\", \"User logged in\");\n\t\t\tMainActivity.this.userLoggedIn();\n\t\t}", "@Override\n\tpublic void loginUser() {\n\t\t\n\t}", "private void loggedIn() throws IOException{\n\t\tprintLoggedInMenu();\n\t\t//gets the user's input \n\t\tint input = getValidInput(validLoggedInInputs);\n\t\t\n\t\tswitch(input){\n\t\t\t//log the user out by calling the start() method again\n\t\t\tcase 5:\n\t\t\t\tprint(\"You have been successfully logged out\");\n\t\t\t\tstart();\n\t\t\t\tbreak;\n\t\t\tcase 6:\n\t\t\t\tprint(\"Goodbye!\");\n\t\t\t\tSystem.exit(0);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tsearchMovies();\n\t\t\t\tbreak;\n\t\t\t//print the user's feed and then print the feed from all the user's they are following\n\t\t\tcase 3: \n\t\t\t\tprint(\"Feed:\", loggedInUser.toStringFeed());\n\t\t\t\t//get the list of usernames, and for each, get the user object from the usersMap and print their feed\n\t\t\t\tfor (String following : loggedInUser.getFollowing()) System.out.print(usersMap.get(following).toStringFeed());\n\t\t\t\tSystem.out.println();\n\t\t\t\t//print the 'menu' which only allows the '0' input\n\t\t\t\tprintSmallMenu();\n\t\t\t\tbreak;\n\t\t\t//print the user's profile information\n\t\t\tcase 4:\n\t\t\t\tprint(loggedInUser.toString());\n\t\t\t\tprintSmallMenu();\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tsearchUsers();\n\t\t\t\tbreak;\n\t\t}\t\n\t}", "private void doLogout() {\r\n\t\tdoctor.setOnline(0);\r\n\t\t// Set doctor as logged out\r\n\t\tdbAdapter.updateDoctor(doctor);\r\n\t\t// Release objects and notify observers\r\n\t\tloggedIn = false;\r\n\t\tnotifyObservers();\r\n\t\tdoctors = null;\r\n\t\tdoctor = null;\r\n\t}", "public void handleLogin() {\n\t\tString username = usernameInput.getText();\n\t\tString password = passwordInput.getText();\n\n\t\t// Saves username and password if remember me is ticked\n\t\t// otherwise it deletes the file.\n\t\tif (rememberMeCheckbox.isSelected()) {\n\t\t\twriteRememberMe(username, password);\n\t\t} else {\n\t\t\tclearRememberMe();\n\t\t}\n\n\n\t\ttryUsernamePassword(username, password);\n\t}", "Login() { \n }", "boolean hasLoggedIn();", "public static void Login() \r\n\t{\n\t\t\r\n\t}", "private void createLoginEvents() {\n\t\t\n\t\t//Fires after the user clicks the login button. If they typed in the wrong creds or they have been inactivated\n\t\t//they will be given a proper pop up message notifying them\n\t\tbtnLogin.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\tString pass = new String(passwordLogin.getPassword());\n\t\t\t\tUser u = jdbc.login(txtLoginUser.getText(), pass);\n\t\t\t\tif (u == null) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Incorrect Login Credentials\");\n\t\t\t\t} else if (!u.active()) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Your account has been inactivated. Contact your manager for help\");\n\t\t\t } else {\n\t\t\t\t\tif (u.get_usertype() == 1) {\n\t\t\t\t\t\t//They are an Admin\n\t\t\t\t\t\tlayeredPane.setLayer(layeredPaneAdmin, 10);\n\t\t\t\t\t\tlayeredPane.setLayer(layeredPaneLogin, 0);\n\t\t\t\t\t\tlayeredPaneAdmin.setLayer(pnlAdmin, 10);\n\t\t\t\t\t\tSystem.out.println(\"logged in as Admin\");\n\t\t\t\t\t\tlblPortal.setText(\"Admin Portal - \"+u.get_firstname()+ \" \" + u.get_lastname());\t\t\t\t\t\t\n\t\t\t\t\t} else if (u.get_usertype() == 2) {\n\t\t\t\t\t\t//They are a Manager\n\t\t\t\t\t\tlayeredPane.setLayer(layeredPaneManagerWorker, 10);\n\t\t\t\t\t\tlayeredPane.setLayer(layeredPaneLogin, 0);\n\t\t\t\t\t\tlayeredPaneManagerWorker.setLayer(pnlManagerWorker, 10);\n\t\t\t\t\t\tSystem.out.println(\"logged in as Manager\");\n\t\t\t\t\t\tlblPortal.setText(\"Manager Portal - \"+u.get_firstname()+ \" \" + u.get_lastname());\n\t\t\t\t\t} else {\n\t\t\t\t\t\t//They are a Worker\n\t\t\t\t\t\tlayeredPane.setLayer(layeredPaneManagerWorker, 10);\n\t\t\t\t\t\tSystem.out.println(\"logged in as Worker\");\n\t\t\t\t\t\tlblPortal.setText(\"Worker Portal - \"+u.get_firstname()+ \" \" + u.get_lastname());\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tcurrentSessionUserID = u.get_userID();\n\t\t\t\t\tbtnLogout.setVisible(true);\n\t\t\t\t\tlblPortal.setVisible(true);\n\t\t\t\t\tbtn_settings.setVisible(true);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t//\n\t\tbtnLogout.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tlayeredPane.setLayer(layeredPaneLogin, 10);\n\t\t\t\tlayeredPane.setLayer(layeredPaneAdmin, 0);\n\t\t\t\tlayeredPane.setLayer(layeredPaneManagerWorker, 0);\n\t\t\t\tbtnLogout.setVisible(false);\n\t\t\t\tlblPortal.setVisible(false);\n\t\t\t\tbtn_settings.setVisible(false);\n\t\t\t\ttxtLoginUser.setText(\"\");\n\t\t\t\tpasswordLogin.setText(\"\");\n\t\t\t}\n\t\t});\n\t}", "@Override\r\n\t\t\tpublic void onLogin(String username, String password) {\n\r\n\t\t\t}", "private void redirectToLandingPage(){\n\t\tappInjector.getAppService().getLoggedInUser(new SimpleAsyncCallback<UserDo>() {\n\t\t\t@Override\n\t\t\tpublic void onSuccess(UserDo loggedInUser) {\n\t\t\t\tAppClientFactory.setLoggedInUser(loggedInUser);\n\t\t\t\tUcCBundle.INSTANCE.css().ensureInjected();\n\t\t\t\tHomeCBundle.INSTANCE.css().ensureInjected();\n\t\t\t\tAppClientFactory.getInjector().getWrapPresenter().get().setLoginData(loggedInUser);\n\t\t\t\tif (AppClientFactory.getPlaceManager().getCurrentPlaceRequest().getNameToken().equalsIgnoreCase(PlaceTokens.STUDENT)){\n\t\t\t\t\t\n\t\t\t\t}else if(AppClientFactory.getPlaceManager().getCurrentPlaceRequest().getNameToken().equalsIgnoreCase(PlaceTokens.SHELF)){\n\t\t\t\t\tAppClientFactory.fireEvent(new DisplayNoCollectionEvent());\n\t\t\t\t}else{\n\t\t\t\t\tMap<String, String> params = new HashMap<String,String>();\n\t\t\t\t\tparams.put(\"loginEvent\", \"true\");\n\t\t\t\t\tappInjector.getPlaceManager().revealPlace(PlaceTokens.HOME, params);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "public void onConnectSpamDone() {\n loggingIn = false;\n }", "@Override\n protected void afterAuthenticating() {\n }", "private void userLogin(HttpServletRequest request, HttpServletResponse response) {\n\t\t\n\t}", "public abstract boolean isLoggedIn();", "protected void doPostLogin(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tout.println(\"Look where we are, it's the login page\");\n\t\t\n\t\t//get parameter Names\n\t\tsetParameters(request);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tKeyspace keyspace = Connection.getKeyspace();\n\t\tStringSerializer se = StringSerializer.get();\n\t\t\n\t\ttry\n\t\t{\n\t\t\t// given Keyspace keyspace and StringSerializer se\n\t\t\tSliceQuery<String, String, String> q = HFactory.createSliceQuery(keyspace, se, se, se);\n\t\t\tq.setColumnFamily(\"Users\") .setKey(displayName).setColumnNames(\"fullname\", \"email\", \"password\");\n\t\t\tQueryResult<ColumnSlice<String, String>> r = q.execute();\n\n\t\t\tfullname = r.get().getColumnByName(\"fullname\").getValue();\n\t\t\temail = r.get().getColumnByName(\"email\").getValue();\n\n\t\t\tif(password.equals(r.get().getColumnByName(\"password\").getValue()))\n\t\t\t{\n\t\t\t\t//LOGGED IN CORRECTLY\n\t\t\t\t\n\t\t\t\tmySexySession.setAttribute(\"displayName\", displayName);\n\t\t\t\tmySexySession.setAttribute(\"fullname\", fullname);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tmySexySession.setAttribute(\"message\", \"Incorrect Password.\");\n\t\t\t}\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\t//catches happen when the key is not found (i.e. user doesn't exist)\n\t\t\tmySexySession.setAttribute(\"message\", \"User does not exist.\");\n\t\t}\n\t\tresponse.sendRedirect(\"/quotes/home\");\n\t}", "private boolean isLoggedInUser(){\n return true;\n }", "@Override\n\tpublic void onActivate() {\n\t\tsetCurrentPageWhenReady(StaticPageNames.Core_UserLogin, 30, pageName -> {\n\t\t\t//TODO: Show error popup\n\t\t\tlogger.severe(\"Failed to load Login page, timed out while waiting for page!\");\n\t\t});\n\t}", "public void doLoginClod()\r\n {\r\n this.executeLoginAttemp(this.loginForForm, this.passwordForForm);\r\n String navigateResult = this.navigateAfterLoginAttemp();\r\n if (!navigateResult.equals(\"/\")) redirectSession(\"/clodwar/index.xhtml\");\r\n }", "@Override\n public void onAuthenticated(AuthData authData) {\n Log.i(\"lt\", \"authed\");\n }", "@Override\n public void onLogin() {\n toast(\"You are logged in\");\n }", "private void signInEvt() {\n // Retrieve Details\n String email = this.view.getWelcomePanel().getSignInPanel().getEmailText().getText().trim();\n String password = new String(this.view.getWelcomePanel().getSignInPanel().getPasswordText().getPassword()).trim();\n if (!email.equals(\"\") && !password.equals(\"\")) {\n if (model.getSudokuDB().checkLogin(email, password)) {\n // Set Player\n Player player = model.getSudokuDB().loadPlayer(email, password);\n if (player != null) {\n model.setPlayer(model.getSudokuDB().loadPlayer(email, password));\n // Clear Fields\n view.getWelcomePanel().getSignInPanel().clear();\n // Show Home Screen\n refreshHomePanel();\n view.getCardLayoutManager().show(view.getContent(), \"home\");\n } else {\n Object[] options = {\"OK\"};\n JOptionPane.showOptionDialog(this, \"An error occured during sign in, please try again.\", \"Sign In Error\", JOptionPane.OK_OPTION, JOptionPane.ERROR_MESSAGE, null, options, null);\n }\n } else {\n Object[] options = {\"Let me try again\"};\n JOptionPane.showOptionDialog(this, \"The credentials you have provided are invalid, please enter them correctly or create a new account.\", \"Invalid Credentials\", JOptionPane.OK_OPTION, JOptionPane.INFORMATION_MESSAGE, null, options, null);\n }\n } else {\n Object[] options = {\"Alright\"};\n JOptionPane.showOptionDialog(this, \"In order to sign in, all fields must be filled out.\", \"Empty Fields\", JOptionPane.OK_OPTION, JOptionPane.INFORMATION_MESSAGE, null, options, null);\n }\n }", "public boolean isLoggedin(){\n return STATE.equals(IN);\n }", "private void showLogin() {\n \t\tLogin.actionHandleLogin(this);\n \t}", "@Override\n public void showCustomerDetails() {\n System.out.println(customerLoggedIn);\n }", "@Override\n\tpublic void goToLogin() {\n\t\t\n\t}", "private void logUser() {\n }", "public interface OnLoginListener {\n void onAuthenticated(String companyName);\n }", "@Override\n public void onFirebaseLoggedIn(AuthData authData) {\n Intent intent = new Intent(this, LocationActivity.class);\n startActivityForResult(intent, 1);\n }", "void signInComplete();", "@Given(\"I have logged in\")\r\n\tpublic void i_have_logged_in() {\n\t\tSystem.out.println(\"code for logged in\");\r\n\t}", "protected void startLogoutTimer() {\n AccessState.getInstance().startLogoutTimer(this);\n }", "@Override\n\tpublic boolean isLoggedIn() {\n\t\treturn false;\n\t}", "public void run() {\n if (userAutentification(email, password)) {\n onLoginSuccess(name, email);\n } else {\n onLoginFailed();\n // onLoginFailed();\n }\n mConnectionProgressDialog.dismiss();\n }", "public void patientsCredentials() {\n\t\tutil.ClickElement(prop.getValue(\"locators.register.click\"));\n\t\tlogreport.info(\"Patient registration is clicked\");\n\t}", "private void login() {\n\t\t \tetUserName.addTextChangedListener(new TextWatcher() {\n\t\t public void afterTextChanged(Editable s) {\n\t\t Validation.hasText(etUserName);\n\t\t }\n\t\t public void beforeTextChanged(CharSequence s, int start, int count, int after){}\n\t\t public void onTextChanged(CharSequence s, int start, int before, int count){}\n\t\t });\n\t\t \t\n\t\t \t // TextWatcher would let us check validation error on the fly\n\t\t \tetPass.addTextChangedListener(new TextWatcher() {\n\t\t public void afterTextChanged(Editable s) {\n\t\t Validation.hasText(etPass);\n\t\t }\n\t\t public void beforeTextChanged(CharSequence s, int start, int count, int after){}\n\t\t public void onTextChanged(CharSequence s, int start, int before, int count){}\n\t\t });\n\t\t }", "public void onMotdSent() {\r\n\t\tif (!loggedIn) {\r\n\t\t\tif (adminWindow != null) {\r\n\t\t\t\tadminWindow.setVisible(true);\r\n\t\t\t}\r\n\t\t\tdispose();\r\n\t\t\tloggedIn = true;\r\n\t\t}\r\n\t\t\r\n\t}", "private void fireAfterLoginEvent(final int widgetToLoad) {\n // retrieve UserDetail and subsequently BusinessUserDetail object and store them in Storage\n loginService.getLoggedUser(new SecuredAsyncCallback<UserDetail>(eventBus) {\n @Override\n public void onSuccess(UserDetail userDetail) {\n eventBus.setLoadingProgress(70, Storage.MSGS.loggingForward());\n Storage.setUserDetail(userDetail);\n loginService.getLoggedBusinessUser(new SecuredAsyncCallback<BusinessUserDetail>(eventBus) {\n @Override\n public void onSuccess(BusinessUserDetail loggedUser) {\n eventBus.setLoadingProgress(90, null);\n GWT.log(\"user id \" + loggedUser.getUserId());\n Storage.setBusinessUserDetail(loggedUser);\n Storage.loadClientAndSupplierIDs();\n // TODO LATER ivlcek - fix the session model on the base of SpringSecurity rememberMe\n final String sessionId = \"id=\" + loggedUser.getUserId();\n forwardUserLogin(widgetToLoad);\n eventBus.hideView();\n }\n });\n }\n });\n }", "@Override\n\tpublic void authInfoRequested(LinphoneCore lc, String realm, String username) {\n\t\t\n\t}", "@Override\n\tpublic void changeLoggedIn(int id, int logged_in) {\n\t\t\n\t}", "public static void LoginDirector() {\n SuperUI.clearScreen();\n int type = LoginScreen();\n\n try {\n\n Connection conn = ConnectToDatabase();\n if (type == 1) {\n SuperUI.clearScreen();\n Employee.EmployeeLogin();\n// if(employeePosition.equalsIgnoreCase(\"HR Manager\"))\n// {\n// type=4;\n// }\n } else if (type == 2) {\n Customer.CustomerLogin();\n }\n if (type == 3) {\n System.out.println(\"Goodbye\");\n System.exit(0);\n conn.close();\n }\n\n } catch (SQLException excpt) {\n System.out.println(excpt.getMessage());\n\n }\n\n }", "public void run() {\n if (userAutentification(email, password)) {\n onLoginSuccess(name, email);\n } else {\n onLoginFailed();\n // onLoginFailed();\n }\n mConnectionProgressDialog.dismiss();\n }", "@Given(\"^I see authenticated dashboard screen$\")\n public void i_see_authenticated_dashboard_screen() {\n onViewWithText(\"OK\").click();\n onViewWithId(R.id.mapAuth).isDisplayed();\n }", "private final static void onLoginAdmin(TextField username, PasswordField password)\n\t{\n\t\tif(ProfileManipulation.findUsername(username.getText()) && !ProfileManipulation.checkLoginStatus(username.getText())){\n\t\t\tif (ProfileManipulation.isVerfied(username.getText())) {\n\t\t\t\tProfileManipulation.updateLoginStatus(username.getText(), true);\n\n\t\t\t\t// Jetzt wird das Profil aufgerufen\n\t\t\t\tPartylize.setUsername(username.getText());\n\n\t\t\t\tProfileManipulation.changePassword(password.getText());\n\n\t\t\t\tPartylize.showMainScene();\n\t\t\t} else {\n\t\t\t\tPartylize.setUsername(username.getText());\n\t\t\t\tPartylize.showVerification();\n\t\t\t}\n\t\t}\n\t\t// Funktionsaufruf Datenbankanbindung -> Erstellen einer Session ID\n\t\t// Funktionsaufruf Profildaten in lokalen Speicher laden - WIP\n\t\telse {\n\t\t\tusername.setText(\"\");\n\t\t\tpassword.setText(\"\");\n\t\t}\n\t}", "public boolean isUserLoggedIn();", "public Doctor login(Doctor o) {\n\t\treturn dao.login(o);\n\t}", "@Override\r\n public void onSign(SignEvent event){\n if (event.getAction().equals(SignEvent.Action.SIGNED_IN)) {\r\n //write cookies if keep signed in\r\n if (event.getAccountKey() != null && !event.getAccountKey().isEmpty()) {\r\n cookie.setAccountKey(Shared.MY_SESSION, event.getAccountKey());\r\n }\r\n //already signed in, load workspace\r\n RootPanel.get().clear();\r\n Widget workspace = new Workspace().asWidget();\r\n RootPanel.get().add(workspace); \r\n Info.display(\"Welcome\", \"Signed in as \" + Shared.MY_SESSION.getAccount().getFullName());\r\n }\r\n //process sign_out\r\n if (event.getAction().equals(SignEvent.Action.SIGN_OUT)){\r\n String accountKey = cookie.getAccountKey(Shared.MY_SESSION);\r\n Shared.RPC.signOutAndDetachSession(Shared.MY_SESSION, accountKey, new AsyncCallback<Session>() {\r\n @Override\r\n public void onSuccess(Session s) {\r\n if (s != null) {\r\n Shared.MY_SESSION = s;\r\n //sign out seems OK on server side, dispatch SIGNED_OUT event\r\n Shared.EVENT_BUS.fireEvent(new SignEvent(SignEvent.Action.SIGNED_OUT)); //WARN: don't dispatch SIGN_OUT avoiding deadlock call\r\n } else {\r\n Info.display(\"Error\", \"Account is already signed out or database error\");\r\n }\r\n }\r\n\r\n @Override\r\n public void onFailure(Throwable caught) {\r\n Info.display(\"Error\", caught.getMessage());\r\n }\r\n });\r\n }\r\n //process signed_out\r\n if (event.getAction().equals(SignEvent.Action.SIGNED_OUT)){\r\n //delete cookies\r\n cookie.discardCookie(Shared.MY_SESSION); \r\n //return UI to welcome status\r\n RootPanel.get().clear();\r\n RootPanel.get().add(new LoginPage()); \r\n Info.display(\"See you\", \"You are now signed out!\");\r\n }\r\n }", "@Override\n public void onAdded() {\n /**\n * EventsBus: Fetching data.\n */\n EventBus.getDefault().post(new Authenticating());\n }", "@Override\n public void onLoginSuccessful() {\n\n }", "private void deviceDetected(String btMac) {\r\n\t\t// We only allow one doctor to be logged in at the same place\r\n\t\tif (doctor == null) {\r\n\t\t\t// Check db to see if it is a doctor if so log in\r\n\t\t\tDoctor d = dbAdapter.getDoctor(btMac);\r\n\t\t\tif (d != null) {\r\n\t\t\t\t// Successful login\r\n\t\t\t\tthis.doctor = d;\r\n\t\t\t\tthis.doctor.setOnline(1);\r\n\t\t\t\tdoLogin();\r\n\t\t\t}\r\n\t\t}\r\n\t}" ]
[ "0.6831417", "0.66095924", "0.6509442", "0.6465267", "0.63468575", "0.6262502", "0.6259259", "0.62275237", "0.60826683", "0.6082362", "0.60796106", "0.60761636", "0.6065791", "0.6062368", "0.6028804", "0.60097814", "0.5968587", "0.5963893", "0.5951055", "0.593997", "0.5929188", "0.5928437", "0.5923844", "0.5901477", "0.58651644", "0.5841668", "0.5841605", "0.5838152", "0.5825028", "0.5798899", "0.57905", "0.5783529", "0.577983", "0.57608235", "0.5756189", "0.57530993", "0.57442415", "0.57423973", "0.5736398", "0.57247233", "0.57189596", "0.571607", "0.5711894", "0.5705012", "0.56997544", "0.5692233", "0.5691335", "0.568524", "0.56710345", "0.56615466", "0.5659983", "0.56544703", "0.5635048", "0.562679", "0.5626036", "0.56235176", "0.5622776", "0.5617466", "0.56083024", "0.5602731", "0.558591", "0.5582522", "0.5580877", "0.5573259", "0.5572437", "0.55641264", "0.556115", "0.5561068", "0.5558316", "0.5553507", "0.5551845", "0.55436605", "0.55389297", "0.5523114", "0.55221224", "0.55108416", "0.5502538", "0.54953617", "0.5492648", "0.5490726", "0.54889536", "0.547974", "0.54713607", "0.5451124", "0.54458696", "0.54405046", "0.54389924", "0.5428105", "0.5426427", "0.5421371", "0.54005855", "0.53959715", "0.5395361", "0.5391994", "0.53837955", "0.5381447", "0.53805405", "0.53698415", "0.536816", "0.5367364" ]
0.7536516
0
Called when a doctor has logged out (left the zone)
private void doLogout() { doctor.setOnline(0); // Set doctor as logged out dbAdapter.updateDoctor(doctor); // Release objects and notify observers loggedIn = false; notifyObservers(); doctors = null; doctor = null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void Logout() {\n \t\t\t\n \t\t}", "@Override\n public void Logout() {\n\t \n }", "public void onLogout() {\n ParseUser.logOut();\n\n promptForLogin();\n }", "void onLogout(boolean loggedIn);", "@Override\n public void loggedOut() {\n timeTables = new Timetables();\n appointments = new Appointments();\n tasks = new Tasks();\n messages = new Messages();\n substitutions = new Substitutions();\n files = new Files();\n announcements = new Announcements();\n excuseNotes = new ExcuseNotes();\n }", "public void logPlayerOut() {\n if (sessionInfo.isPlayerInParty())\n {\n leaveParty();\n }\n LogDispatcher.getInstance().onLogRequestReceived(new ConcreteSimpleLoggingRequest(LoggingRequest.Severity.INFO, null, \"Logged out\"));\n player.resetValues();\n }", "@Override\n public void onCanceled() {\n\n logOutNow();\n\n }", "@Override\n public void logOut() {\n }", "public void Logout()\n {\n isLoggedIn = false;\n connection.Disconnect(); \n connection = null;\n }", "public void logOut() {\n Logger.d(TAG,\"login#logOut\");\n Logger.d(TAG,\"login#stop reconnecting\");\n //\t\teverlogined is enough to stop reconnecting\n everLogined = false;\n isLocalLogin = false;\n reqLoginOut();\n }", "@Override\r\n\tpublic void onLogout()\r\n\t{\n\r\n\t\tif (accountListener != null)\r\n\t\t{\r\n\t\t\taccountListener.onMmiHeartbeatLogout();\r\n\t\t}\r\n\t\tAirServices.getInstance().stopSelf();\r\n\t\tLog.e(AirAccountManager.class, \"MMI ======================== onLogout =======================\");\r\n\t}", "@Override\n\tpublic void logOutUser() {\n\t\t\n\t}", "public void signOutOfDD()\n\t{\n\t\tclickAccountNameIcon();\n\t\tclickSignOutLink();\n\t\t\n\t}", "public void logOut() {\n try {\n // getGlobalNavigation().clickSignOut();\n } catch (TimeoutException e) {\n Log.log(\"logOut\", \"page loads for more than 30 seconds\", true);\n }\n }", "protected void userLoggedOut() {\n\t\tRuvego.userLoggedOut();\n\t\tResultsActivityMenu.userLoggedOut();\n\t\tHistory.newItem(\"homePage\");\n\t}", "@Override\r\n\tpublic void logout() {\n\t\t\r\n\t}", "public void logOut() {\r\n\t\tthis.modoAdmin = false;\r\n\t\tthis.usuarioConectado = null;\r\n\t}", "void logoff();", "@Override\n\tpublic void onUserNeedLogout() {\n\t\t\n\t}", "@Override\n\tpublic void onUserNeedLogout() {\n\t\t\n\t}", "public void logout(boolean lobby) {\n\t\tif (!running)\n\t\t\treturn;\n\t\tlong currentTime = Utils.currentTimeMillis();\n\t\tif (getAttackedByDelay() + 1 > currentTime) {\n\t\t\tgetPackets()\n\t\t\t\t\t.sendGameMessage(\n\t\t\t\t\t\t\t\"You can't log out until 10 seconds after the end of combat.\");\n\t\t\treturn;\n\t\t}\n\t\tif (getEmotesManager().getNextEmoteEnd() >= currentTime) {\n\t\t\tgetPackets().sendGameMessage(\n\t\t\t\t\t\"You can't log out while performing an emote.\");\n\t\t\treturn;\n\t\t}\n\t\tif (lockDelay >= currentTime) {\n\t\t\tgetPackets().sendGameMessage(\n\t\t\t\t\t\"You can't log out while performing an action.\");\n\t\t\treturn;\n\t\t}\n\t\tgetPackets().sendLogout(lobby && Settings.MANAGMENT_SERVER_ENABLED);\n\t\trunning = false;\n\t}", "public static void Logout(){\n\t\tloginSystem();\r\n\t\t\r\n\t}", "public void logout() {\n \n }", "public void logOut() {\n\t\t//Inform the database that the user want to log out\n\t\tdc.logOutPlayer(activity);\n\t\t\n\t\t/*\n\t\t * Call is made to StartActivity, which surely is in the bottom of activity-stack. Add a flag to clear stack\n\t\t * and from StartActivity a call is made to the Login screen and StartActivity is finished. By doing this we\n\t\t * assure that Login screen is at the bottom of the activity-stack and a press on back button, while placed \n\t\t * on Login screen, will result in that the application is closed\n\t\t */\n\t\tIntent intent = new Intent(activity, StartActivity.class);\n\t\tintent.putExtra(\"finish\", true);\n\t\tintent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n\t\tactivity.startActivity(intent);\n\t\tactivity.finish();\n\t}", "void logoutDone();", "private void logOut() {\n mApi.getSession().unlink();\n\n // Clear our stored keys\n clearKeys();\n // Change UI state to display logged out version\n setLoggedIn(false);\n }", "public void onLogout(View v) {\n\t\tRetrofitWrapper.authenticationToken = null;\n\t\t// Forget auth token from storage\n\t\tSharedPreferences prefs = this.getSharedPreferences(\n\t\t\t \"com.example.wordcardapp\", Context.MODE_PRIVATE);\n\t\tprefs.edit()\n\t\t\t.remove(\"com.example.wordcardapp.auth.token\")\n\t\t\t.remove(\"com.example.wordcardapp.auth.expiration\")\n\t\t\t.apply();\n\t\t// Inform user\n\t\tToaster.info(getApplicationContext(), getString(R.string.logout_successful));\n\t\tfinish();\n\t}", "private void logout()\r\n {\r\n LogoutRequest request = new LogoutRequest();\r\n request.setUsername(username);\r\n this.sendRequest(request);\r\n }", "@Override\n\tpublic void logout()\n\t{\n\t\tthis.user = null;\n\t}", "public void logout() {\n\t\tthis.setCurrentUser(null);\n\t\tthis.setUserLoggedIn(false);\t\t\n\t}", "public void logout(){\n\t\t\n\t\tcurrentUser.logout();\n\t\tcurrentUser = null;\n\t\tchangeViewPort(new GUI_Logout(\"\", \"\", this));\n\t}", "public void userLoggedOut(User user) \n\t\t{\n\t\t\tLog.i(\"OpenFeint\", \"User logged out\");\n\t\t\tMainActivity.this.userLoggedOut();\t\n\t\t}", "@Override\n\tpublic void logout() {\n\t}", "public void doLogout() {\n mSingleton.getCookieStore().removeUser(mUser);\n mPreferences.setUser(null);\n new ActivityTable().flush();\n\n //update variables\n mUser = null;\n mLogin = false;\n\n //reset drawer\n restartActivity();\n }", "@Override\n\tpublic boolean logOut(Client cl) {\n\t\treturn false;\n\t}", "public void userLoggedOut(User user) \n\t\t{\n\t\t\tLog.i(\"OpenFeint\", \"User logged out\");\n\t\t\tMainActivity.this.userLoggedOut();\n\t\t}", "@Override\n public void onFailure(@NonNull Exception e) {\n\n logOutNow();\n\n }", "default void onLogout(SessionID sessionID) {\n }", "public void LogoutListener()\n {\n \tLogout.addActionListener(new ActionListener(){\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tString sql = \"UPDATE admin_login SET isLogedin = '0' WHERE isLogedin = '1'\";\n\t\t\t\n\t\t\t\tJOptionPane.showMessageDialog(card, \"You have logged Out from admin \");\n\n\t\t\t\ttry {\n\t\t\t\t\t\t\tdb.ExecuteStatement(sql);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tLoginName.setText(\"\");\n\t\t\t\t\t\t\tLoginLabel.setForeground(Color.red);//disable logout button on login\n\t\t\t\t\t\t\tLogout.setEnabled(false);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//enable login button on logout\n\t\t\t\t\t\t\tLogIn.setEnabled(true);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//Reset staff id and password here\n\t\t\t\t\t\t\t UserName.setText(\"\");\n\t\t\t\t\t\t\t Password.setText(\"\");\n\t\t\t\t\t\t\tresetPassword.setEnabled(true);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t UserName.setEnabled(true);\n\t\t\t\t\t\t\t Password.setEnabled(true);\n\t\t\t\t\t} catch (SQLException e1) {}\n\t\t\t\t\n\t\t\t}\n \t\t\n \t});\n }", "@Override\r\n\t\t\tpublic void onLogout() {\n\t\t\t\tshowToast(\"onLogout---\");\r\n\t\t\t}", "public void logOutAdministrator() {\n logOutGeneral();\n }", "@CrossOrigin(origins = AppConstants.CORS)\n\t@RequestMapping(value = {UrlConstants.API_LOGOUT+\"org\"}, method = RequestMethod.POST)\n\tpublic void logOut() {\n\t\t try {\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"efregt\");\n\t\t}\n\t}", "public void logoff() {\n CNHudsonUtil.logoff(this.cna);\n this.cna = null;\n }", "private void fireLogOffEvent(){\n\t\tMat.hideLoadingMessage();\n\t\tMat.showSignOutMessage();\n\t\ttimeoutWarning.cancel();\n\t\trepeatedWarning.cancel();\n\t\tclearTimeOutWarning();\n\t\tMatContext.get().getEventBus().fireEvent(new LogoffEvent());\n\t}", "public void logout() {\n\n if (WarehouseHelper.warehouse_reserv_context.getUser().getId() != null) {\n //Save authentication line in HisLogin table\n HisLogin his_login = new HisLogin(\n WarehouseHelper.warehouse_reserv_context.getUser().getId(),\n WarehouseHelper.warehouse_reserv_context.getUser().getId(),\n String.format(Helper.INFO0012_LOGOUT_SUCCESS,\n WarehouseHelper.warehouse_reserv_context.getUser().getFirstName()\n + \" \" + WarehouseHelper.warehouse_reserv_context.getUser().getLastName()\n + \" / \" + WarehouseHelper.warehouse_reserv_context.getUser().getLogin(),\n GlobalVars.APP_HOSTNAME, GlobalMethods.getStrTimeStamp()));\n his_login.setCreateId(WarehouseHelper.warehouse_reserv_context.getUser().getId());\n his_login.setWriteId(WarehouseHelper.warehouse_reserv_context.getUser().getId());\n\n String str = String.format(Helper.INFO0012_LOGOUT_SUCCESS,\n WarehouseHelper.warehouse_reserv_context.getUser().getFirstName() + \" \" + WarehouseHelper.warehouse_reserv_context.getUser().getLastName()\n + \" / \" + PackagingVars.context.getUser().getLogin(), GlobalVars.APP_HOSTNAME,\n GlobalMethods.getStrTimeStamp());\n his_login.setMessage(str);\n\n str = \"\";\n his_login.create(his_login);\n\n //Reset the state\n state = new S001_ReservPalletNumberScan();\n\n this.clearContextSessionVals();\n\n connectedUserName_label.setText(\"\");\n }\n\n }", "@Override\n public void performLogout(){\n }", "public void logout() {\n\n // Instance, user and token become null\n instance = null;\n user = null;\n authtoken = null;\n\n // Switch all the settings back to true\n isLifeStoryLinesOn = true;\n isFamilyTreeLinesOn = true;\n isSpouseLinesOn = true;\n isFatherSideOn = true;\n isMotherSideOn = true;\n isMaleEventsOn = true;\n isFemaleEventsOn = true;\n\n //Take care of resetting boolean logics use throughout app\n isLoggedIn = false;\n personOrSearch = false;\n startLocation = null;\n eventID = null;\n\n // Clear all lists\n\n people.clear();\n events.clear();\n personEvents.clear();\n currentPersonEvents.clear();\n eventTypes.clear();\n\n childrenMap.clear();\n maleSpouse.clear();\n femaleSpouse.clear();\n paternalAncestorsMales.clear();\n paternalAncestorsFemales.clear();\n maternalAncestorsMales.clear();\n maternalAncestorsFemales.clear();\n }", "void logout();", "void logout();", "@Override\n\tpublic void Logout(Integer id) {\n\t\t\n\t}", "private void signOutUser() {\n mAuth.signOut();\n LoginManager.getInstance().logOut();\n Toast.makeText(ChatMessage.this, \"You have been logout\", Toast.LENGTH_SHORT).show();\n finishAffinity();\n proceed();\n }", "@Override\r\n\t\t\t\t\tpublic void onFailed(String failReason) {\n\t\t\t\t\t\tTypeSDKLogger.d(\"LOGOUT_FAIL\");\r\n\t\t\t\t\t}", "public void logout()\n\t\tthrows Exception\n\t{\n\n\t\t// Disconnect from the beamline\n\t\tdisconnect();\n\n\t\t// Set tab to default\n//\t\ttab = getDefaultTab();\n\n\t\tWebiceLogger.info(\"Client logged out: user=\" + getUser()\n\t\t\t\t\t\t\t+ \" sessionId=\" + getSessionId()\n\t\t\t\t\t\t\t+ \" \" + new Date().toString());\n\t}", "public void logout() {\n\n if (WarehouseHelper.warehouse_reserv_context.getUser().getId() != null) {\n //Save authentication line in HisLogin table\n /*\n HisLogin his_login = new HisLogin(\n WarehouseHelper.warehouse_reserv_context.getUser().getId(),\n WarehouseHelper.warehouse_reserv_context.getUser().getId(),\n String.format(Helper.INFO0012_LOGOUT_SUCCESS,\n WarehouseHelper.warehouse_reserv_context.getUser().getFirstName()\n + \" \" + WarehouseHelper.warehouse_reserv_context.getUser().getLastName()\n + \" / \" + WarehouseHelper.warehouse_reserv_context.getUser().getLogin(),\n GlobalVars.APP_HOSTNAME, GlobalMethods.getStrTimeStamp()));\n his_login.setCreateId(WarehouseHelper.warehouse_reserv_context.getUser().getId());\n his_login.setWriteId(WarehouseHelper.warehouse_reserv_context.getUser().getId());\n \n \n String str = String.format(Helper.INFO0012_LOGOUT_SUCCESS,\n WarehouseHelper.warehouse_reserv_context.getUser().getFirstName() + \" \" + WarehouseHelper.warehouse_reserv_context.getUser().getLastName()\n + \" / \" + PackagingVars.context.getUser().getLogin(), GlobalVars.APP_HOSTNAME,\n GlobalMethods.getStrTimeStamp());\n his_login.setMessage(str);\n\n str = \"\";\n his_login.create(his_login);\n */\n //Reset the state\n state = new S001_ReservPalletNumberScan();\n\n this.clearContextSessionVals();\n\n connectedUserName_label.setText(\"\");\n\n this.setVisible(false);\n }\n\n }", "@Override\r\n\tpublic void userLogout(String login) {\n\r\n\t}", "private void logout() {\n\t\tParseUser.logOut();\n\n\t\t// Go to the login view\n\t\tstartLoginActivity();\n\t}", "public static void makeUnlogged() {\n\t\tMemberSessionFacade.removeAttribute(ConfigKeys.LOGGED);\n//\t\tControllerUtils.addCookie(ConfigKeys.LOGGED, null);\n\t}", "@Override\r\n\t\t\t\t\t\t\t\tpublic void onLogoutFailed(ErrorInfoBean errorInfo) {\n\t\t\t\t\t\t\t\t\tTypeSDKLogger.e(\"onLogoutFailed:\" + errorInfo.getErrorMessage());\r\n\t\t\t\t\t\t\t\t}", "public void logout () {\n\t\tif (isLoggedIn()) {\n\t\t\tGPPSignIn.sharedInstance().signOut();\n\t\t\tGPGManager.sharedInstance().signOut();\n\t\t}\n\t}", "public abstract void logout();", "public void logout() {\n\n $(logOutNavigator).click();\n driver = commonMethods.waitForElement(driver, logOffBtn);\n $(logOffBtn).click();\n $(loadingProgressIcon).should(disappear);\n }", "public void onDashboardDisappear() \n\t\t{\n\t\t\tLog.i(\"OpenFeint\", \"On Dashboard dissapear\");\n\t\t\tdashboardDidDisappear();\n\t\t}", "public void onDashboardDisappear() \n\t\t{\n\t\t\tLog.i(\"OpenFeint\", \"On Dashboard dissapear\");\n\t\t\tdashboardDidDisappear();\n\t\t}", "public static void logout() {\n\t\tif (activeAccount != null) try {\n\t\t\t\n\t\t\tif (authClient != null)\n\t\t\t\tauthClient.logout();\n\t\t\tauthClient = null;\n\t\t\t\n\t\t\tactiveAccount = null;\n\t\t}\n\t\tcatch (IOException ioe) {\n\t\t\tJOptionPane.showMessageDialog(DialogPanel.getTopWindow(), (\"An error occurred while logging out from the GoldenGATE Server at\\n\" + activeAccount.host + \":\" + activeAccount.port + \"\\n\" + ioe.getMessage()), \"Error on Logout\", JOptionPane.ERROR_MESSAGE);\n\t\t}\n\t}", "private void logout(){\n player.setName(\"(bot) \" + player.getName());\n botMode = true;\n System.out.println(\"bot made\");\n login = false;\n }", "public void logout() {\n loggedIn = \"\";\n FacesContext.getCurrentInstance().getExternalContext()\n .getSessionMap().put(\"loggedIn\", \"\");\n }", "public void unauthorized() {\n super.unauthorized();\n LoginFragment.this.getTracker().send(new HitBuilders.EventBuilder().setCategory(\"sign_in\").setAction(\"incorrect\").setLabel(\"incorrect\").build());\n Answers.getInstance().logLogin(new LoginEvent().putSuccess(false));\n new AlertDialog.Builder(LoginFragment.this.getActivity()).setMessage(R.string.incorrect_email_or_password).setPositiveButton(17039370, (DialogInterface.OnClickListener) null).show();\n }", "@Override\r\n\tpublic void dropout(String AuthUser, String passwd, HttpServletRequest request, HttpServletResponse response) throws Exception {\n\t\tString pass = memberdao.getPassById(AuthUser);\r\n\t\t\r\n\t\tif(pass.equals(passwd)) {\r\n\t\t\tmemberdao.deleteMember(AuthUser);\r\n\t\t\trequest.getSession().invalidate();\r\n\t\t} else {\r\n\t\t\tserviceutil.AccessDenial(response, \"비밀번호가 일치하지 않습니다.\");\r\n\t\t}\r\n\t}", "public static void handleLogoutGUI()\n\t{\n\t\tOp logOp = new Op(Operations.LOGOUT,userLogin);\n\t\tclient.handleMessageFromClientUI(logOp);\n\t}", "private void logout() {\n //set offline flag\n String uid = FirebaseAuth.getInstance().getCurrentUser().getUid();\n new PostNoSqlDataBase(this).offline(uid);\n\n //logout\n // FirebaseAuth mAuth = FirebaseAuth.getInstance();\n GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)\n .requestIdToken(getString(R.string.default_web_client_id))\n .requestEmail()\n .build();\n\n GoogleSignInClient mGoogleSignInClient = GoogleSignIn.getClient(this, gso);\n mGoogleSignInClient.signOut();\n FirebaseAuth.getInstance().signOut();\n //go to the main activity\n startActivity(new Intent(this, SignUpActivity.class));\n finish();\n }", "public void attemptLogout() {\n spEditor.clear();\n spEditor.putBoolean(LOGGEDIN_KEY, false);\n spEditor.commit();\n }", "@Override\n\tpublic void logout() {\n\t\tsessionService.setCurrentUserId(null);\n\t}", "public void endSession(){\n currentUser = null;\n ui.returnCard();\n }", "@Override\n\tpublic String logout() {\n\t\treturn null;\n\t}", "private void doLogout() {\n mRtmClient.logout(null);\n MessageUtil.cleanMessageListBeanList();\n }", "private void logout() {\n Utils.showConfirmationDialogCallBack(MainActivity.this, getString(R.string.logout_sure), this);\n }", "public void logOut() {\n\t\tToken.getIstance().setHashPassword(null);\n\t}", "@Override\r\n\t\t\t\t\tpublic void onLogoutFailed(ErrorInfoBean errorInfo) {\n\t\t\t\t\t\tTypeSDKLogger.e(\"onLogoutFailed:\" + errorInfo.getErrorMessage());\r\n\t\t\t\t\t}", "public void onLogout(final int widgetToLoad) {\n final RequestBuilder rb = new RequestBuilder(RequestBuilder.POST, getLogoutUrl());\n rb.setCallback(new RequestCallback() {\n @Override\n public void onResponseReceived(Request request, Response response) {\n if (response.getStatusCode() == Response.SC_OK) { // 200 everything is ok.\n LOGGER.info(\"User=\" + Storage.getUser().getEmail() + \" has logged out!\");\n //remove user from session management to force user input login information\n Storage.invalidateStorage();\n forwardUserLogout(widgetToLoad);\n } else {\n LOGGER.severe(\"Unexptected response status code while logging out, code=\"\n + response.getStatusCode());\n eventBus.displayError(response.getStatusCode(), null);\n }\n }\n\n @Override\n public void onError(Request request, Throwable exception) {\n // Couldn't connect to server (could be timeout, SOP violation, etc.)\n LOGGER.severe(\"Server part (poptavka-core) doesn't respond during user logging out, exception=\"\n + exception.getMessage());\n eventBus.displayError(0, null);\n }\n });\n try {\n rb.send();\n } catch (RequestException exception) {\n LOGGER.severe(\"RequestException thrown during user logging out, exception=\" + exception.getMessage());\n eventBus.displayError(0, null);\n }\n }", "@Override\n\tpublic int signOut(Attendance attendance) {\n\t\treturn attendanceMapper.signOut(attendance);\n\t}", "void logoutSuccessful();", "@Override\n public void windowClosing(java.awt.event.WindowEvent windowEvent) {\n JSONObject logout = Command.createLogout(Settings.getUsername(), Settings.getSecret());\n ClientSkeleton.getInstance().writeMsg(logout.toJSONString());\n log.info(\"User is going to log out....\");\n ClientSkeleton.getInstance().disconnect();\n }", "public void onSessionDestroyed() {\n }", "void successLogout();", "public static void logout() {\n userId = -1;\n aisId = -1;\n \n name = \"\";\n role = \"\";\n roleFromDatabase = \"\";\n \n lastAction = LocalDateTime.now().minusYears(100);\n }", "@Override\r\n\tpublic boolean checkLogout() {\n\t\treturn false;\r\n\t}", "@Override\r\n\tpublic boolean checkLogout() {\n\t\treturn false;\r\n\t}", "public void logout(){\r\n\t\tallUser.remove(this.sessionID);\r\n\t\tthis.sessionID = -1;\r\n\t}", "private void logout() {\n LogoutTask mAuthTask = new LogoutTask();\n mAuthTask.execute((Void) null);\n }", "public void logOutFirebaseAccounts() {\n AuthUI.getInstance()\n .signOut(mAccountsFragment.getContext())\n .addOnCompleteListener(new OnCompleteListener<Void>() {\n public void onComplete(@NonNull Task<Void> task) {\n setNotLoggedInLayoutVisible();\n }\n });\n }", "private void Logout() {\n\n\t\tPreferenceUtil.getInstance(mContext).saveBoolean(\"exitApp\", true);\n\t\tPreferenceUtil.getInstance(mContext).clear();\n\t\tPreferenceUtil.getInstance(mContext).destroy();\n\n\t\tZganLoginService.toClearZganDB();\n\n\t\tstopService(new Intent(mContext, ZganPushService.class));\n\n\t\tsetContentView(R.layout.nullxml);\n\t\tfinish();\n\t\tandroid.os.Process.killProcess(android.os.Process.myPid());\n\n\t\tSystem.exit(0);\n\t}", "private void logout() {\n userModel.setLoggedInUser(null);\n final Intent intent = new Intent(this, LoginActivity.class);\n startActivity(intent);\n finish();\n }", "public void logOut() {\n sp.edit().clear().commit();\n }", "public void logout() {\n showLoginScreen();\n }", "@When(\"^user should signout to exit from the loggedin page$\")\n\tpublic void user_should_signout_to_exit_from_the_loggedin_page() throws Throwable {\n\t\telementClick(pa.getAp().getLogout());\n\t\t\n\t \n\t}", "public void doLogout() {\n loggedIn = false;\r\n HttpSession session = (HttpSession) FacesContext.getCurrentInstance()\r\n .getExternalContext().getSession(false);\r\n session.invalidate(); \r\n String pag= \"/login.xhtml\";\r\n redireccionar(pag);\r\n }", "private void signOut () {\n\n //Normal account sign out\n mAuth.signOut();\n //Google account sign out\n mGoogleSignInClient.signOut();\n updateUI(\"Signed out\");\n //Can't open chat without non-empty accountEmail\n accountEmail = \"\";\n }", "public void Logout(){\n preferences.edit().remove(userRef).apply();\n }", "private void signOut() {\n mAuth.signOut();\n updateUI(null);\n }", "private void userDidLeave() {\n DeviceSingleton deviceSingleton = DeviceSingleton.getInstance();\n deviceSingleton.setImInARoom(false);\n deviceSingleton.setJoinedChat(false);\n\n SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);\n SharedPreferences.Editor editor = prefs.edit();\n editor.putBoolean(\"savedJoinedChat\", false);\n editor.commit();\n Intent intent2 = new Intent(ShowMapActivity.this, LoginActivity.class);\n startActivity(intent2);\n// break;\n\n }" ]
[ "0.7077407", "0.7044917", "0.6981883", "0.68389034", "0.6834321", "0.6825385", "0.6821657", "0.6773225", "0.67486036", "0.67337614", "0.671771", "0.6715081", "0.66526055", "0.66076124", "0.6597165", "0.654792", "0.6532048", "0.65284806", "0.65175736", "0.65175736", "0.6495773", "0.64885134", "0.64850515", "0.6480312", "0.6467151", "0.64614093", "0.6450353", "0.64503443", "0.6446882", "0.6444007", "0.644307", "0.64411765", "0.64322877", "0.6421442", "0.64194113", "0.6398068", "0.6388552", "0.6388327", "0.6382017", "0.6375776", "0.6367518", "0.6367284", "0.63589054", "0.63521576", "0.63434887", "0.63040674", "0.62974036", "0.6297045", "0.6297045", "0.629363", "0.6276323", "0.6266923", "0.6262254", "0.62451655", "0.6224242", "0.6215094", "0.621253", "0.6207223", "0.6170165", "0.6157244", "0.61537135", "0.61367095", "0.61367095", "0.6128291", "0.61247337", "0.61224395", "0.61159635", "0.61154723", "0.61100036", "0.6108415", "0.61032563", "0.6100531", "0.6091452", "0.60861903", "0.6081481", "0.6075481", "0.6075319", "0.6064634", "0.60630935", "0.6056531", "0.6045673", "0.60413116", "0.6038478", "0.6034543", "0.60325706", "0.6023044", "0.6023044", "0.60158354", "0.60156924", "0.60117406", "0.60092115", "0.6007009", "0.59918106", "0.5990622", "0.59888494", "0.59876436", "0.5985658", "0.5975556", "0.59699506", "0.59645194" ]
0.78610194
0
Called when a device is detected somewhere Use this method to keep the list of online doctors updated
private void deviceDetected(String btMac, String location) { // If it is not this location if (location != this.location) { Doctor doctor = dbAdapter.getDoctor(btMac); if (doctor != null) { doctors.addDoctor(doctor); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void ondeviceConnected() {\n if(isAdded() && !isDetached()) {\n if (RELOAD_CARD_NUMBERS[0] == 1) {\n new DailyVerseFetcher(getActivity()).execute(true);\n }\n if (RELOAD_CARD_NUMBERS[1] == 1) {\n new HomeSermonFetcher(getActivity()).execute(true);\n }\n }\n }", "@Subscribe(threadMode = ThreadMode.MAIN)\n public void onDevicesReceived(OnReceiverDevicesEvent event){\n //if(!devicesListAdapter.isEmpty()) devicesListAdapter.clear(); // clear old names\n\n\n devicesListAdapter.removeAll();\n Log.d(\"P2P\", \"Found something on events!\");\n //Toast.makeText(getContext(), \"Found something\", Toast.LENGTH_LONG).show();\n Collection<WifiP2pDevice> devs = event.getDevices().getDeviceList();\n devsList.addAll(devs);\n\n\n\n for(int i = 0; i < devsList.size(); i++){\n\n if(!devicesListAdapter.hasItem(devsList.get(i))){\n Log.d(\"P2P\", \"Device Found: \" + devsList.get(0).deviceName);\n devicesListAdapter.add(devsList.get(i).deviceName);\n devicesListAdapter.notifyDataSetChanged();\n }\n\n }\n\n\n }", "private void deviceDetected(String btMac) {\r\n\t\t// We only allow one doctor to be logged in at the same place\r\n\t\tif (doctor == null) {\r\n\t\t\t// Check db to see if it is a doctor if so log in\r\n\t\t\tDoctor d = dbAdapter.getDoctor(btMac);\r\n\t\t\tif (d != null) {\r\n\t\t\t\t// Successful login\r\n\t\t\t\tthis.doctor = d;\r\n\t\t\t\tthis.doctor.setOnline(1);\r\n\t\t\t\tdoLogin();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n\t\tpublic void onDeviceConnected() {\n\t\t\tDFUManager.log(TAG, \"onDeviceConnected()\");\n\t\t\tisDeviceConnected = true;\n\t\t\t\n\t\t\t\n\t\t}", "private void notifyDevicesChanged() {\n runInAudioThread(new Runnable() {\n @Override\n public void run() {\n WritableArray data = Arguments.createArray();\n final boolean hasHeadphones = availableDevices.contains(DEVICE_HEADPHONES);\n for (String device : availableDevices) {\n if (hasHeadphones && device.equals(DEVICE_EARPIECE)) {\n // Skip earpiece when headphones are plugged in.\n continue;\n }\n WritableMap deviceInfo = Arguments.createMap();\n deviceInfo.putString(\"type\", device);\n deviceInfo.putBoolean(\"selected\", device.equals(selectedDevice));\n data.pushMap(deviceInfo);\n }\n getContext().getJSModule(DeviceEventManagerModule.RCTDeviceEventEmitter.class).emit(DEVICE_CHANGE_EVENT, data);\n JitsiMeetLogger.i(TAG + \" Updating audio device list\");\n }\n });\n }", "public void deviceDiscovered(RemoteDevice btDevice, DeviceClass cod) {\n devicesDiscovered.addElement(btDevice);\n }", "private void updateDevicesList() {\n\n netDevicesPanel.removeAll();\n\n netManager.getRecentlySeenDevices().forEach(device -> {\n netDevicesPanel.add(new DevicePanel(device));\n });\n\n netDevicesPanel.revalidate();\n netDevicesPanel.repaint();\n }", "private void updateDeviceList() {\r\n\t\tavailableCams.removeAllElements();\r\n\t\tavailableCams.addElement(NO_CAMERA);\r\n\t\t\r\n\t\tmediaSrc.updateDeviceList();\r\n\t\tfor(CameraController c : mediaSrc.getAvailableCameras()) {\r\n\t\t\tavailableCams.addElement(c);\r\n\t\t}\r\n\t\t\r\n\t\tif(mediaSrc.getActiveCamera() != null) {\r\n\t\t\tavailableCams.setSelectedItem(mediaSrc.getActiveCamera());\r\n\t\t} else {\r\n\t\t\tavailableCams.setSelectedItem(NO_CAMERA);\r\n\t\t}\r\n\t}", "public void monitorFoundDevices() {\n //start a thread\n new Thread() {\n public void run() {\n //loop till mBeaconListAdapter has been skilled.\n while(mBeaconListAdapter != null) {\n try {\n //Since it will update UI, runOnUiThread is called here.\n getActivity().runOnUiThread(new Runnable() {\n @Override\n public void run() {\n for (int i = 0; i < mBeaconListAdapter.getCount(); i++) {\n if (!mBleWrapper.checkDeviceConnection(mBeaconListAdapter.\n getDevice(i).getAddress()))\n mBeaconListAdapter.removeDevice(i);\n }\n }\n });\n\n Thread.sleep(MONITOR_DELAY_TIME_INTERVAL);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }\n }.start();\n }", "@Subscribe(threadMode = ThreadMode.MAIN, sticky = true)\n public void onCaptureDeviceDiscoveryChange(DeviceDiscoveryEvent event) {\n Log.d(TAG, \"DeviceDiscoveryEvent received \");\n enableManualDiscoveryButton(true);\n DiscoveredDevice device = event.getDiscoveredDevice();\n if(device != null) {\n Log.d(TAG, \"name \" + device.getName());\n Log.d(TAG, \"unique id \" + device.getUniqueIdentifier());\n\n updateFavoriteSpinner(device.getUniqueIdentifier(), device.getName());\n }\n }", "public void deviceDiscovered(RemoteDevice btDevice, DeviceClass cod) {\n // add the device to the vector\n if (!vecDevices.contains(btDevice)) {\n vecDevices.addElement(btDevice);\n }\n }", "public void onServiceConnected() {\r\n \t// Display the list of sessions\r\n\t\tupdateList();\r\n }", "private void onDevicesListUpdate(Map<String, Boolean> newValue, Map<String, Boolean> oldValue) {\n newValue = newValue == null ? Collections.<String, Boolean>emptyMap() : newValue;\n oldValue = oldValue == null ? Collections.<String, Boolean>emptyMap() : oldValue;\n\n for (Map.Entry<String, Boolean> entry : newValue.entrySet()) {\n String entryKey = entry.getKey();\n if (!oldValue.containsKey(entryKey) && !(entryKey).equals(getMyDeviceId())) {\n onDeviceConnected(entryKey, entry.getValue());\n }\n }\n\n for (Map.Entry<String, Boolean> entry : oldValue.entrySet()) {\n String entryKey = entry.getKey();\n if (!newValue.containsKey(entryKey) && !(entryKey).equals(getMyDeviceId())) {\n onDeviceDisconnected(entryKey, entry.getValue());\n }\n }\n }", "public void onDeviceFound(final MultiDeviceSearchResult deviceFound) {\n final MultiDeviceSearchResultWithRSSI result = new MultiDeviceSearchResultWithRSSI();\n result.mDevice = deviceFound;\n\n // We split up devices already connected to the plugin from\n // un-connected devices to make this information more visible to the\n // user, since the user most likely wants to be aware of which\n // device they are already using in another app\n if (deviceFound.isAlreadyConnected()) {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n // connected device category is invisible unless there\n // are some present\n if (mConnectedAdapter.isEmpty()) {\n findViewById(R.id.textView_AlreadyConnectedTitle).setVisibility(\n View.VISIBLE);\n mConnectedDevicesList.setVisibility(View.VISIBLE);\n }\n mProgressEmptyView.setVisibility(View.GONE);\n mConnectedAdapter.add(result);\n mConnectedAdapter.notifyDataSetChanged();\n }\n });\n } else {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n mProgressEmptyView.setVisibility(View.GONE);\n mFoundAdapter.add(result);\n mFoundAdapter.notifyDataSetChanged();\n }\n });\n }\n }", "void onRestoreDevices() {\n synchronized (mConnectedDevices) {\n for (int i = 0; i < mConnectedDevices.size(); i++) {\n DeviceInfo di = mConnectedDevices.valueAt(i);\n AudioSystem.setDeviceConnectionState(\n di.mDeviceType,\n AudioSystem.DEVICE_STATE_AVAILABLE,\n di.mDeviceAddress,\n di.mDeviceName,\n di.mDeviceCodecFormat);\n }\n }\n }", "private void doLogin() {\r\n\t\tloggedIn = true;\r\n\t\tdoctor.setOnline(1);\r\n\t\t// Set doctor as logged in\r\n\t\tdbAdapter.updateDoctor(doctor);\r\n\t\t// Get a list of currently logged in doctors\r\n\t\tdoctors = dbAdapter.getDoctors(this.doctor);\r\n\t\t// Add listeners to keep the list updated\r\n\t\ttry {\r\n\t\t\teb.addListener(new LogoutListener(this.doctor.getMac(),\r\n\t\t\t\t\tthis.location));\r\n\t\t\teb.addListener(new DeviceDetectedListener());\r\n\t\t\teb.addListener(new DevicedMovedListener());\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO: Handle\r\n\t\t}\r\n\t\tnotifyObservers();\r\n\t}", "void refresh() {\n List<IDevice> list = Lists.newArrayList();\n// if (fan == null) {\n// ToastUtils.showShort(R.string.dev_invalid_error);\n// } else {\n// list.add(fan);\n// if (stove != null) {\n// list.add(stove);\n// }\n// }\n list = Plat.deviceService.queryDevices();\n adapter.loadData(list);\n }", "private void handleDeviceProvisioned() {\n Assert.isMainThread();\n for (int i = 0; i < this.mCallbacks.size(); i++) {\n KeyguardUpdateMonitorCallback keyguardUpdateMonitorCallback = this.mCallbacks.get(i).get();\n if (keyguardUpdateMonitorCallback != null) {\n keyguardUpdateMonitorCallback.onDeviceProvisioned();\n }\n }\n if (this.mDeviceProvisionedObserver != null) {\n this.mContext.getContentResolver().unregisterContentObserver(this.mDeviceProvisionedObserver);\n this.mDeviceProvisionedObserver = null;\n }\n }", "private void deviceUpdated() {\n if (!mIsCreate) {\n mSyncthingService.getApi().editDevice(mDevice, getActivity(), this);\n }\n }", "public void onServiceConnected() {\r\n\t\tapiEnabled = true;\r\n\r\n\t\t// Display the list of calls\r\n\t\tupdateList();\r\n }", "public void detectedNfcSensor(NfcSensor foundSensor) {\n if (detect) {\n for (Location location : locations) {\n if (location instanceof NfcSpot) {\n final NfcSpot nfcSpot = (NfcSpot) location;\n if (nfcSpot.getNfcSensor().getSerialNumber().equals(foundSensor.getSerialNumber())) {\n String log = \"Set NfcSpot \\\"\" + nfcSpot.getName() + \"\\\": \";\n Log.d(getClass().getSimpleName(), log + \"true\");\n nfcSpot.setActive(true);\n activeSpots.put(nfcSpot, timeToSetInactive);\n }\n }\n }\n }\n }", "@Subscribe(threadMode = ThreadMode.MAIN, sticky = true)\n public void onCaptureDeviceDiscoveryChange(DeviceDiscoveryCompleteEvent event) {\n enableManualDiscoveryButton(true);\n if(event.isComplete()) {\n Toast.makeText(getApplicationContext(), \"Manual device discovery is complete\" , Toast.LENGTH_SHORT).show();\n }\n }", "public void deviceDiscovered(IDiscoverer _discoverer, IDevice _device);", "private void onDeviceList(RequestDeviceList r){\n\t\t//Answer the request with the list of devices from the group\n\t\tgetSender().tell(new ReplyDeviceList(r.requestId, deviceActors.keySet()), getSelf());\n\t}", "@Override\n public void onEnabled() {\n mDiscovery.startDiscovery(mEvents, mWifiStateManager.getWifiManager());\n updateList();\n }", "@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\tinitListView();\n\n\t\tfinal Bundle extras = getIntent().getExtras();\n\n\t\tif (extras != null && extras.getBoolean(\"offline\", false)) {\n\t\t\tToast.makeText(getApplicationContext(), \"keine VDR online\",\n\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t}\n\t\t\n\t}", "public DeviceListChanged(@NotNull List<? extends AudioDevice> list) {\n super(null);\n Intrinsics.checkNotNullParameter(list, \"devices\");\n this.a = list;\n }", "@Override\n public void onDeviceRegistered(NotificareDevice device) {\n try {\n NotificareEventEmitter.getInstance().sendEvent(\"deviceRegistered\", NotificareUtils.mapDevice(device), true);\n } catch (JSONException e) {\n // ignore\n }\n }", "@Override\n public void onSuccess() {\n devicesConnected.add(device.deviceName);\n\n }", "@Override\n public void run() {\n if (device.getName() != null && device.getName().equals(ConstantApp.ROBOT_BLE_NAME))\n mLeDeviceListAdapter.addDevice(device);\n mLeDeviceListAdapter.notifyDataSetChanged();\n }", "@Override\n public void run() {\n if (device.getName() != null && device.getName().equals(ConstantApp.ROBOT_BLE_NAME))\n mLeDeviceListAdapter.addDevice(device);\n mLeDeviceListAdapter.notifyDataSetChanged();\n }", "public void onDouyinDetectStart() {\n HwAPPStateInfo curAppInfo = getCurStreamAppInfo();\n if (curAppInfo != null && 100501 == curAppInfo.mScenceId) {\n curAppInfo.mIsVideoStart = true;\n }\n }", "public void startDiscovery(View view){\n willUpdateDeviceList = true;\n peerDiscoveryController = new PeerDiscoveryController(this, this);\n }", "@Override\n public void onRefresh() {\n getUserOnlineStatus();\n }", "private void sendClientsChangedBroadcast() {\n Intent intent = new Intent(WifiHotspotManager.WIFI_HOTSPOT_CLIENTS_CHANGED_ACTION);\n intent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT);\n mContext.sendBroadcastAsUser(intent, UserHandle.ALL);\n }", "public void notifyObservers() {\r\n\t\tDoctorEvent evt;\r\n\t\tif (loggedIn) {\r\n\t\t\tevt = new DoctorEvent(DoctorEventType.LOGIN, doctor);\r\n\t\t} else {\r\n\t\t\tevt = new DoctorEvent(DoctorEventType.LOGOUT, doctor);\r\n\t\t}\r\n\t\tfor (Iterator<IObserver> it = observers.iterator(); it.hasNext();) {\r\n\t\t\tIObserver observer = (IObserver) it.next();\r\n\t\t\tobserver.onNotify(evt);\r\n\t\t}\r\n\t}", "public interface NewDeviceDetectedEventListener extends EventListener {\r\n\tpublic void newDeviceDetectedEventOccurred(NewDeviceDetectedEvent evt);\r\n }", "void addDeviceComplete(boolean hasOtherDevices);", "@Override\n public void run() {\n Log.d(\"Final\", devices.toString());\n client.stopDiscovery();\n }", "@Subscribe(threadMode = ThreadMode.MAIN, sticky = true)\n public void onCaptureDeviceStateChange(DeviceStateEvent event) {\n DeviceClient device = event.getDevice();\n DeviceState state = event.getState();\n Log.d(TAG, \"device : type : \" + device.getDeviceType() + \" guid : \" + device.getDeviceGuid());\n Log.d(TAG, \"device : name : \" + device.getDeviceName() + \" state: \" + state.intValue());\n\n mDeviceClient = device;\n String type = (DeviceType.isNfcScanner(device.getDeviceType()))? \"NFC\" : \"BARCODE\";\n TextView tv = findViewById(R.id.main_device_status);\n handleColor(tv, state.intValue());\n switch (state.intValue()) {\n case DeviceState.GONE:\n mDeviceClientList.remove(device);\n mAdapter.remove(device.getDeviceName() + \" \" + type);\n mAdapter.notifyDataSetChanged();\n if(!mAdapter.isEmpty()) {\n handleColor(tv, DeviceState.READY);\n }\n break;\n case DeviceState.READY:\n mDeviceClientList.add(device);\n mAdapter.add(device.getDeviceName() + \" \" + type);\n mAdapter.notifyDataSetChanged();\n\n Property property = Property.create(Property.UNIQUE_DEVICE_IDENTIFIER, device.getDeviceGuid());\n mDeviceManager.getProperty(property, propertyCallback);\n\n break;\n default:\n break;\n }\n\n }", "public void deviceLoaded(Device device);", "@Override\r\n public void onDeviceStatusChange(GenericDevice dev, PDeviceHolder devh,\r\n PHolderSetter status) {\n\r\n }", "@Override\r\n public void onDeviceConnecting(GenericDevice mDeviceHolder,\r\n PDeviceHolder innerDevice) {\n\r\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n safezoneListAdapter.updateSafezoneList(Safezone.getSafezonesOfDeviceGPS(macAddress));\n }", "private void createAct(){\n\t\ttry{\n\t\t\tthis.mPairedDevicesArrayAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1);\n\t\t\tthis.mNewDevicesArrayAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1);\n\t\t\tfinal ListView pairedListView = (ListView) this.findViewById(R.id.pairedDevicesLV);\n\t\t\tpairedListView.setAdapter(this.mPairedDevicesArrayAdapter);\n\t\t\tpairedListView.setOnItemClickListener(this.mDeviceClickListener);\n\n\t\t\tfinal ListView newDevicesListView = (ListView) this.findViewById(R.id.detectedDevicesLV);\n\t\t\tnewDevicesListView.setAdapter(this.mNewDevicesArrayAdapter);\n\t\t\tnewDevicesListView.setOnItemClickListener(this.mDeviceClickListener);\n\n\t\t\tmReceiver = new BroadcastReceiver() {\n\t\t\t public void onReceive(Context context, Intent intent) {\n\t\t\t String action = intent.getAction();\n\t\t\t \n\t\t\t if (action.equals(BluetoothDevice.ACTION_FOUND)) {\n\t\t\t \t//Wenn ein neues Bluetooth Geraet gefunden wurde\n\t\t\t\t\t\tfinal BluetoothDevice device = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);\n\t\t\t\t\t\tif (device.getBondState() != BluetoothDevice.BOND_BONDED) {\n\t\t\t\t\t\t\tVisitMultiplayerGame.this.mNewDevicesArrayAdapter.add(device.getName() + \"\\n\" + device.getAddress());\n\t\t\t\t\t\t\tbt.addPairedDevice(device);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (action.equals(BluetoothAdapter.ACTION_DISCOVERY_FINISHED)) {\n\t\t\t\t\t\t//Wenn die Suche nach neuen Geraeten abgeschlossen wurde\n\t\t\t\t\t\tVisitMultiplayerGame.this.setProgressBarIndeterminateVisibility(false);\n\t\t\t\t\t\tif (VisitMultiplayerGame.this.mNewDevicesArrayAdapter.getCount() == 0) {\n\t\t\t\t\t\t\tVisitMultiplayerGame.this.mNewDevicesArrayAdapter.add(getString(R.string.NoDevicesFound));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tstatus.setText(getString(R.string.PleaseSelectADevice));\n\t\t\t\t\t\tprogress.dismiss();\n\t\t\t\t\t}\n\t\t\t }\n\t\t\t};\n\t\t\t\n\t\t\t//Event Handler registrieren, wenn Geraet gefunden wurde\n\t\t\tIntentFilter filter = new IntentFilter(BluetoothDevice.ACTION_FOUND);\n\t\t\tthis.registerReceiver(this.mReceiver, filter);\n\n\t\t\t//Event Handler registrieren, wenn Suche beendet wurde gefunden wurde\n\t\t\tfilter = new IntentFilter(BluetoothAdapter.ACTION_DISCOVERY_FINISHED);\n\t\t\tthis.registerReceiver(this.mReceiver, filter);\n\t\t\t\n\t\t\t// Get a set of currently paired devices\n\t\t\tfinal Set<BluetoothDevice> pairedDevices = bt.getPairedDevices();\n\t\t\tif (pairedDevices.size() > 0) {\n\t\t\t\tthis.findViewById(R.id.pairedDevicesLV).setVisibility(View.VISIBLE);\n\t\t\t\tfor (final BluetoothDevice device : pairedDevices) {\n\t\t\t\t\tthis.mPairedDevicesArrayAdapter.add(device.getName() + \"\\n\" + device.getAddress());\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tthis.mPairedDevicesArrayAdapter.add(getString(R.string.NoPairedDevices));\n\t\t\t}\n\t\t}\n\t\tcatch(Exception ex){\n\t\t\tex.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\tbt.getPairedDevices();\n\t\tbt.discoverDevices();\n\t\t\n\t\tprogress = new ProgressDialog(this);\n\t\tprogress.setMessage(getString(R.string.SearchingForNewDevices));\n\t\tprogress.setIndeterminate(true);\n\t\tprogress.show();\n\t}", "@Override\n\tpublic void onDeviceFileListChanged(FunDevice funDevice) {\n\n\t}", "public void onFingerUp(String idSensor) // evento que se genera al levantar el dedo del lector\n{\n objpantprincipal.repintarp();\n if (conectado == true)\n identificarPersona();\n}", "void getDevicesCurrentlyOnline(String deviceType, AsyncCallback<List<String>> callback);", "@Override\n public void onConnect(BluetoothDevice device) {\n Display(\"Vehicle Connected!\");\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n String car = \"DRIVING: \" + name;\n vehicle.setText(car);\n SharedPreferences wheels = getSharedPreferences(\"MyApp\", MODE_PRIVATE);\n wheels.edit().putString(\"vehicle\", name).apply();\n }\n });\n }", "public List<Device> getRunningDevices();", "protected void fetchMySmartDevices() {\n setIsLoading(true);\n getCompositeDisposable().add(getDataManager()\n .getAllSmartDevices()\n .subscribeOn(getSchedulerProvider().io())\n .observeOn(getSchedulerProvider().ui())\n .subscribe(mySmartDevices -> {\n mySmartDevicesListLiveData.setValue(mySmartDevices);\n\n setIsLoading(false);\n }, throwable -> {\n setIsLoading(false);\n }));\n }", "@Override\n public void onResume()\n {\n super.onResume();\n mReceiver = new WiFiServerBroadCastReciever(mManager, mChannel, this);\n registerReceiver(mReceiver, mIntentFilter);\n\n searchDevices();\n\n }", "void onDeviceProfileChanged(DeviceProfile dp);", "@Override\n\tprotected void onPause() {\n\t\tsuper.onPause();\n\t\tDevicesList.removeListener(this);\n\t}", "private void bonded_devices_get()\n\t\t{\n\t\t\tmPairedDevList.clear();\n\t\t\tSet<BluetoothDevice> PairedDevices = btAdapter.getBondedDevices();\n\t\t\tif(PairedDevices.size() > 0)\n\t\t\t{\n\t\t\t\tmPairedTitle.setVisibility(View.VISIBLE);\n\t\t\t\tfor(BluetoothDevice device : PairedDevices)\n\t\t\t\t{\n\t\t\t\t\tString device_info = device.getName()+\"\\n\"+device.getAddress();\n\t\t\t\t\tmPairedDevList.add(device_info);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tmPairedTitle.setVisibility(View.GONE);\n\t\t\t\tmPairedDevList.add(\"No Bonded Devices\");\n\t\t\t}\n\t\t}", "@Override\n public void gattServicesDiscovered() {\n BluetoothGattService mService = BLEService.mBluetoothGatt.getService(CapLEDConstants.CAPLED_SERVICE_UUID);\n\n mLedCharacteristic = mService.getCharacteristic(CapLEDConstants.CAPLED_LED_CHARACTERISTIC_UUID);\n mCapsenseCharacteristic = mService.getCharacteristic(CapLEDConstants.CAPLED_CAP_CHARACTERISTIC_UUID);\n mCapsenseNotification = mCapsenseCharacteristic.getDescriptor(CapLEDConstants.CAPLED_CAP_NOTIFICATION);\n\n readLedCharacteristic();\n sCapSwitch.setEnabled(true);\n }", "public void mem_list() {\n synchronized(chat_room) {\n Set id_set = cur_chat_room.keySet();\n Iterator iter = id_set.iterator();\n clearScreen(client_PW);\n client_PW.println(\"------------online member-----------\");\n while(iter.hasNext()) {\n String mem_id = (String)iter.next();\n if(mem_id != client_ID) {\n client_PW.println(mem_id);\n }\n }\n client_PW.flush();\n }\n }", "public void registerRingerTracker() {\n this.mRingerModeTracker.getRingerMode().observeForever(this.mRingerModeObserver);\n }", "private void updatePeople() {\n \tArrayList<Device> keyfobs = alertMe.retrieveDevices(Device.KEYFOB);\n \tint personCount = 0;\n \tint total = keyfobs.size();\n \tfor(Device keyfob: keyfobs) {\n \t\tif (keyfob.attributes.containsKey(AlertMeConstants.STR_PRESENCE)) {\n \t\t\tString pres = (String) keyfob.attributes.get(AlertMeConstants.STR_PRESENCE);\n \t\t\tif (pres!=null) {\n \t\t\t\tpres = pres.trim().toLowerCase();\n \t\t\tpersonCount += (pres.equals(AlertMeConstants.STR_TRUE))? 1: 0;\n \t\t\t}\n \t\t}\n \t}\n \tupdateScreenPeople(personCount, total);\n }", "@Override\n public void run() {\n for (ListIterator<BtDeviceObject> btDeviceListIterator = mBtDeviceObjectList.listIterator(); btDeviceListIterator.hasNext();) {\n BtDeviceObject btDeviceObject = btDeviceListIterator.next();\n if(new Date().getTime() - btDeviceObject.timeSinceLastUpdate > 2000){\n btDeviceListIterator.remove();\n mBtDeviceAddress.remove(btDeviceObject.bluetoothDevice.getMacAddress());\n mDeviceListAdapter.notifyDataSetChanged();\n }\n }\n\n mCheckIfBtDeviceTimerExpiredHandler.postDelayed(this, 500);\n }", "@Override\n public void onCalled() {\n LogitowDeviceManager.current.logger.info(\"Logitow device {} disconnected!\", device);\n device.info.isConnected = false;\n }", "@Override\n public void onServiceConnected() {\n forceUpdate();\n }", "void addDevice(String device) {\n availableDevices.add(device);\n resetSelectedDevice();\n }", "@Override\n public void onConnected(@Nullable Bundle bundle) {\n readPreviousStoredDataAPI();\n Wearable.DataApi.addListener(mGoogleApiClient, this);\n }", "public void updatePhysicianList() {\n Log.d(LOG_TAG, \"updatePhysicianList() \");\n if (caseDataInterface != null) { // if called before it is attached/initialized ...prevent\n nearbyPhysicianList = loadPhysicianList();\n setUpPhysicianList(LayoutInflater.from(getContext()), nearbyPhysicianListLayout);\n\n }\n\n\n }", "void onConnectDeviceComplete();", "public void connected() {\n \t\t\tLog.v(TAG, \"connected(): \"+currentId);\n \t\t\tif(mCallback != null){\n \t\t\t\tmCallback.onServiceConnected();\n \t\t\t}\n \t\t\tloadPage(false, null);\n \t\t}", "public void deviceDiscovered(RemoteDevice btDevice, DeviceClass cod) {\n\t\ttry {\n\t\t\tif (isValidDevice(btDevice.getBluetoothAddress())) {\n\t\t\t\tNeighbors.getInstance().AddNeighbor(btDevice.getBluetoothAddress());\n\t\t\t\tdevList.addElement(btDevice.getBluetoothAddress());\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t}\n\n\t}", "@Override\n public void onResponse(Call<List<DeviceStateResponse>> call, Response<List<DeviceStateResponse>> response) {\n List<DeviceStateResponse> devices = response.body();\n callback.onDevicesLoaded(devices);\n }", "private void loadDeviceList(Bundle savedInstanceState) {\n\t\tif (alertMe.requiresRefresh()) {\n\t\t\tSharedPreferences sharedPrefs = getSharedPreferences(AlertMeConstants.PREFERENCE_NAME, AlertMeConstants.PREFERENCE_MODE);\n\t\t\tIntent intent = getIntent();\n\t\t\tSensorListStarter listloader = new SensorListStarter(alertMe, handler, intent, savedInstanceState, sharedPrefs);\n\t\t\tinitScreenStuff();\n\t\t\tscreenStuff.setBusy(AlertMeConstants.UPDATE_SENSORS);\n\t\t\tlistloader.start();\n\t\t}\n\t}", "@Override\n public void onFound(final Message message) {\n mNearbyDevicesArrayAdapter.add(\n DeviceMessage.fromNearbyMessage(message).getMessageBody());\n }", "public void onPickDevice(ConnectDevice device);", "public void startAutomaticRefresh() {\n logger.info(\"startAutomaticRefresh\");\n try {\n String serviceType = \"_openhab-kinect._tcp.local.\";\n dnsService = JmDNS.create();\n dnsService.addServiceListener(serviceType, mdnsServiceListener);\n logger.info(\"startAutomaticRefresh 2\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "void onConnectedAsServer(String deviceName);", "public List getDevices() {\n return devices;\n }", "public void initDevices() {\n for (Device device: deviceList) {\n device.init(getCpu().getTime());\n }\n }", "public void updateBiometricListeningState() {\n updateFingerprintListeningState();\n this.mMiuiFaceUnlockManager.updateFaceDetectTypeForCamera(0);\n updateFaceListeningState();\n }", "public void startDiscovery() {\n if (mApiClient != null) {\n Weave.DEVICE_API.startLoading(mApiClient, mDiscoveryListener);\n }\n }", "public interface ActivityRecognitionListener {\n void updateDetectedActivitiesList(ArrayList<DetectedActivity> updatedActivities);\n}", "@Override\n\t\tpublic void onDeviceEventReceived(DeviceEvent ev, String client) {\n\t\t\t\n\t\t}", "private void startListeningForFingerprint() {\n int i = this.mFingerprintRunningState;\n if (i == 2) {\n setFingerprintRunningState(3);\n } else if (i != 3) {\n int currentUser = getCurrentUser();\n if (isUnlockWithFingerprintPossible(currentUser)) {\n CancellationSignal cancellationSignal = this.mFingerprintCancelSignal;\n if (cancellationSignal != null) {\n cancellationSignal.cancel();\n }\n this.mFingerprintCancelSignal = new CancellationSignal();\n Slog.v(\"KeyguardUpdateMonitor\", \"startListeningForFingerprint()\");\n this.mFpm.authenticate(null, this.mFingerprintCancelSignal, 0, this.mFingerprintAuthenticationCallback, null, currentUser);\n setFingerprintRunningState(1);\n }\n }\n }", "@Override\n\tpublic void linkDiscoveryUpdate(List<LDUpdate> updateList)\n\t{\n\n\t}", "public void handleApiConnected() {\r\n\t\thandler.post(new Runnable(){\r\n\t\t\tpublic void run(){\r\n\t\t \t// Display the list of sessions\r\n\t\t\t\tupdateList();\r\n\t\t\t}\r\n\t\t});\t\t\t\t\r\n }", "public void onServiceUnregistered() {\r\n \t// Update the list of sessions\r\n\t\tupdateList();\r\n }", "@Override\n public void run() {\n scanLeDevice(false);\n }", "@Override\n public void onLost(final Message message) {\n mNearbyDevicesArrayAdapter.remove(\n DeviceMessage.fromNearbyMessage(message).getMessageBody());\n }", "private void onApnChanged() {\n boolean isConnected;\n\n isConnected = (state != State.IDLE && state != State.FAILED);\n\n // TODO: It'd be nice to only do this if the changed entrie(s)\n // match the current operator.\n createAllApnList();\n if (state != State.DISCONNECTING) {\n cleanUpConnection(isConnected, Phone.REASON_APN_CHANGED);\n if (!isConnected) {\n trySetupData(Phone.REASON_APN_CHANGED);\n }\n }\n }", "public void updateData() {\n List<Device> devices = Lists.newArrayList();\n CustomAdapter customAdapter = (CustomAdapter) deviceListView.getAdapter();\n for (int i = 0; i < customAdapter.getCount(); i++) {\n Model model = customAdapter.getItem(i);\n if (model.isChecked()) {\n devices.add(model.getDevice());\n }\n }\n\n SensorDao sensorDao = new SensorDao(parentActivity);\n Map<Device, List<Sensor>> sensorDeviceMap = sensorDao.fetchDeviceSpecificSensors(devices);\n\n // Aggregate the information about sensor and devices based on unique\n // Map<BluetoothDevice, Map<FileName, List<SensorLabels>>>\n Map<BluetoothDevice, Map<String, List<String>>> rearrangedSensorDeviceInfo = Maps.newHashMap();\n for (Map.Entry<Device, List<Sensor>> elem : sensorDeviceMap.entrySet()) {\n Device device = elem.getKey();\n BluetoothDevice bluetoothDevice = CommonUtils.getBluetoothAdapter(\n parentActivity, REQUEST_BT_ENABLE).getRemoteDevice(device.getDeviceId());\n Map<String, List<String>> fileNameSensorNameMap = rearrangedSensorDeviceInfo.get(bluetoothDevice);\n List<Sensor> sensors = elem.getValue();\n\n if (fileNameSensorNameMap == null) {\n fileNameSensorNameMap = Maps.newHashMap();\n rearrangedSensorDeviceInfo.put(bluetoothDevice, fileNameSensorNameMap);\n }\n\n for(Sensor sensor : sensors) {\n String dataFilePath = sensor.getSensorDataFilePath();\n String sensorName = sensor.getSensorLabel();\n List<String> sensorNames = fileNameSensorNameMap.get(dataFilePath);\n if (sensorNames == null) {\n fileNameSensorNameMap.put(dataFilePath, Lists.newArrayList(sensorName));\n } else {\n sensorNames.add(sensorName);\n }\n }\n }\n\n IntentFilter intentFilter = new IntentFilter();\n intentFilter.addAction(ServerActionsService.ACTION_TRANSFER_FILE_AND_INSERT_DATA_STARTED);\n intentFilter.addAction(ServerActionsService.ACTION_TRANSFER_FILE_AND_INSERT_DATA_FINISHED);\n intentFilter.addAction(ServerActionsService.ACTION_TRANSFER_FILE_AND_INSERT_DATA_ENDED);\n intentFilter.addAction(ServerActionsService.ACTION_TRANSFER_FILE_AND_INSERT_DATA_INITIATED);\n parentActivity.registerReceiver(broadcastReceiver, intentFilter);\n\n //Start service for every device.\n for (Map.Entry<BluetoothDevice, Map<String, List<String>>> elem : rearrangedSensorDeviceInfo.entrySet()) {\n BluetoothDevice device = elem.getKey();\n Map<String, List<String>> fileNameSensorsMap = elem.getValue();\n if (fileNameSensorsMap.size() > 0) {\n Bundle bundle = new Bundle();\n bundle.putParcelable(ServerActionsService.PARAM_BLUETOOTH_DEVICE, device);\n bundle.putSerializable(PARAM_FILENAME_SENSOR_INFO, (Serializable) fileNameSensorsMap);\n\n Intent intent = new Intent(parentActivity, ServerActionsService.class);\n intent.setAction(ServerActionsService.ACTION_TRANSFER_FILE_AND_INSERT_DATA);\n intent.putExtras(bundle);\n\n parentActivity.startService(intent);\n }\n }\n }", "public void listen() {\n DeviceManager cpuUsage = new CPUUsageManager();\n cpuUsage.printStatus();\n \n }", "private void updateList() {\r\n\t\ttry {\r\n\t\t\t// Reset the list\r\n\t\t\tcalls.clear();\r\n\r\n\t\t\tif (apiEnabled) {\r\n\t\t \t// Get list of pending sessions\r\n\t\t \tSet<IPCall> currentCalls = callApi.getIPCalls();\r\n\t\t \tcalls = new ArrayList<IPCall>(currentCalls);\r\n\t\t\t\tif (calls.size() > 0){\r\n\t\t\t String[] items = new String[calls.size()]; \r\n\t\t\t for (int i = 0; i < items.length; i++) {\r\n\t\t\t\t\t\titems[i] = getString(R.string.label_session, calls.get(i).getCallId());\r\n\t\t\t }\r\n\t\t\t\t\tsetListAdapter(new ArrayAdapter<String>(IPCallSessionsList.this, android.R.layout.simple_list_item_1, items));\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsetListAdapter(null);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch(Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tUtils.showMessageAndExit(IPCallSessionsList.this, getString(R.string.label_api_failed));\r\n\t\t}\r\n }", "@Override\n public void onConnect(int i) {\n addLog(\"init MSDPService done\");\n // Get Virtual Device Service Instance\n mVirtualDeviceManager = (VirtualDeviceManager) DvKit.getInstance().getKitService(VIRTUAL_DEVICE_CLASS);\n // Register virtual appliance observer\n mVirtualDeviceManager.subscribe(EnumSet.of(VIRTUALDEVICE), observer);\n }", "@Override\n public void updateConnectState(boolean connected){\n if(connected){\n if(DBG) Log.i(DEBUG_TAG, \"Activity received connected notification\");\n setupTopics();\n }else{\n resetTopics();\n if(DBG) Log.i(DEBUG_TAG, \"Activity received disconnect notification\");\n }\n\n }", "private void resetDoctorsList() {\n if (!nearbyDoctorsData.isEmpty()) {\n nearbyDoctorsData.clear();\n doctorsAdapter.notifyDataSetChanged();\n mListViewDoctors.setVisibility(View.GONE);\n }\n }", "public void discoverDevices(){\r\n \t// If we're already discovering, stop it\r\n if (mBtAdapter.isDiscovering()) {\r\n mBtAdapter.cancelDiscovery();\r\n }\r\n \r\n Toast.makeText(this, \"Listining for paired devices.\", Toast.LENGTH_LONG).show();\r\n \tmBtAdapter.startDiscovery(); \r\n }", "public static synchronized void initiazeDeviceMap(List<Device> devices) {\n devices.forEach((device) -> {\n deviceStatusMap.put(device, \"free\");\n });\n logUtility.logDebug(\"Devices map-\");\n deviceStatusMap.forEach((device, status) -> logUtility.logDebug(device.getDeviceName() + \" - \" + status));\n }", "protected int notifyDisconnected(String deviceID, ReadWriteThread deadThread) {\n // If the device ID is in the list of connected devices\n // then search for the ReadWriteThread associated with it\n // and set it's pointer to null while it finishes execution\n Log.d(TAG, \"removing device: \" + deviceID + \" from devices\");\n if (connectedDevices.remove(connectedDevices.indexOf(deviceID)) != null) {\n if( rwThreads.remove(deadThread) ){\n Log.d(TAG, \"Device removed\");\n }\n else{\n Log.d(TAG, \"Device not removed from rwThreads\");\n }\n } else {\n Log.d(TAG, \"Device not removed from connectedDevices\");\n }\n return Constants.SUCCESS;\n }", "public List<String> getAvailableDevices() {\n if (getEcologyDataSync().getData(\"devices\") != null) {\n return new ArrayList<>((Collection<? extends String>) ((Map<?, ?>) getEcologyDataSync().\n getData(\"devices\")).keySet());\n } else {\n return Collections.emptyList();\n }\n }", "protected void onResume() {\n\t\tsuper.onResume();\n\n\t\tIntent intent = getIntent();\n\t\tHCN = intent.getStringExtra(\"hcn\");\n\t\tintHCN = Integer.parseInt(HCN);\n\t\tpatientManager = (PatientManager) intent\n\t\t\t\t.getSerializableExtra(\"patientManager\");\n\t\tpatients = patientManager.getPatientList();\n\t\tList<Patient> patientsNotSeen = new ArrayList<Patient>();\n\t\t\n\t\tString[] orderedList = null;\n\t\tint number = 0;\n\t\tfor (int i = 0; i < patientManager.getSize(); i++){\n\t\t\tif (patients.get(i).isSeenByDoctor()==false){\n\t\t\t\tnumber += 1;\n\t\t\t\tpatientsNotSeen.add(patients.get(i));\n\t\t\t}\n\t\t}\n\t\torderedList = new String[number];\n\n\t\tfor (int i = 0; i < orderedList.length; i++){\n\t\t\torderedList[i] = patientsNotSeen.get(i).getFirstName() + \" \" + patientsNotSeen.get(i).getLastName();\n\t\t}\n\t\t\n//\n//\t\tLog.i(TAG, \"Current Patient is \" + currentPatient);\n//\t\tLog.i(TAG, \"Current Patient VisitRecord is \"\n//\t\t\t\t+ currentPatient.getVisitRecords().toString());\n\n\n\t\tArrayAdapter<String> adapter = new ArrayAdapter<String>(\n\t\t\t\tthis, android.R.layout.simple_list_item_1,\n\t\t\t\torderedList);\n\t\tsetListAdapter(adapter);\n\t\tLog.i(TAG, \"END OF ONRESUME\");\n\t}", "@Override\r\n\tpublic void onScanProgress(ThreadResult result) \r\n\t{\n\t\tif(result.device != null)\r\n\t\t{\r\n\t\t\t_deviceListView.addOrUpdateDevice(result.device);\r\n\t\t\tsaveDevice(result.device, _network.getRouter().getBssid());\r\n\t\t\trefreshPinger();\r\n\t\t\tsetDevicesLiveCount(_network.getRouter());\r\n\t\t}\r\n\t}", "public void onUpdate() {\n SessionList sessions = mTermSessions;\n if (sessions == null) {\n return;\n }\n\n if (sessions.size() == 0) {\n mStopServiceOnFinish = true;\n finish();\n } else if (sessions.size() < mViewFlipper.getChildCount()) {\n for (int i = 0; i < mViewFlipper.getChildCount(); ++i) {\n EmulatorView v = (EmulatorView) mViewFlipper.getChildAt(i);\n if (!sessions.contains(v.getTermSession())) {\n v.onPause();\n mViewFlipper.removeView(v);\n --i;\n }\n }\n }\n }" ]
[ "0.67772835", "0.6262421", "0.62025726", "0.6134973", "0.61243796", "0.60900605", "0.6075446", "0.60536176", "0.60185266", "0.5991549", "0.5975222", "0.59521794", "0.5886374", "0.58167166", "0.57847095", "0.57844347", "0.57719994", "0.5745673", "0.57415485", "0.5696297", "0.5656744", "0.5630989", "0.5616731", "0.5587158", "0.5543947", "0.5542716", "0.55409855", "0.55402535", "0.5526828", "0.55259424", "0.55259424", "0.54285854", "0.5426811", "0.5415127", "0.53775495", "0.5377149", "0.5375401", "0.5374542", "0.53688025", "0.53687847", "0.53601354", "0.5358562", "0.53486574", "0.53465027", "0.5343855", "0.5329041", "0.53180414", "0.53066796", "0.5294079", "0.52844584", "0.52640104", "0.5263641", "0.5263617", "0.52635646", "0.5261154", "0.52557003", "0.5251678", "0.52484894", "0.5237023", "0.5234151", "0.5223973", "0.5221035", "0.5216814", "0.52131027", "0.5197407", "0.5184102", "0.5172914", "0.51714605", "0.5171296", "0.5170019", "0.51512754", "0.5148604", "0.5147643", "0.51475096", "0.51474816", "0.51341146", "0.5131444", "0.5128693", "0.5118688", "0.5117122", "0.5108523", "0.51077724", "0.5105304", "0.5098935", "0.5098052", "0.50936747", "0.509083", "0.5089807", "0.50749004", "0.5073805", "0.50733596", "0.5069782", "0.5067493", "0.50602245", "0.5057202", "0.5056506", "0.50543493", "0.5053619", "0.5051046", "0.50497884" ]
0.582819
13
Notify all observers of doctor login / logout;
public void notifyObservers() { DoctorEvent evt; if (loggedIn) { evt = new DoctorEvent(DoctorEventType.LOGIN, doctor); } else { evt = new DoctorEvent(DoctorEventType.LOGOUT, doctor); } for (Iterator<IObserver> it = observers.iterator(); it.hasNext();) { IObserver observer = (IObserver) it.next(); observer.onNotify(evt); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void doLogin() {\r\n\t\tloggedIn = true;\r\n\t\tdoctor.setOnline(1);\r\n\t\t// Set doctor as logged in\r\n\t\tdbAdapter.updateDoctor(doctor);\r\n\t\t// Get a list of currently logged in doctors\r\n\t\tdoctors = dbAdapter.getDoctors(this.doctor);\r\n\t\t// Add listeners to keep the list updated\r\n\t\ttry {\r\n\t\t\teb.addListener(new LogoutListener(this.doctor.getMac(),\r\n\t\t\t\t\tthis.location));\r\n\t\t\teb.addListener(new DeviceDetectedListener());\r\n\t\t\teb.addListener(new DevicedMovedListener());\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO: Handle\r\n\t\t}\r\n\t\tnotifyObservers();\r\n\t}", "@Override\r\n\t\t\t\t\tpublic void onLoginedNotify() {\n\t\t\t\t\t\tTypeSDKLogger.d( \"onLoginedNotify\");\r\n\t\t\t\t\t\thaimaLogout();\r\n\t\t\t\t\t\thaimaLogin();\r\n\t\t\t\t\t}", "@Override\n public void listenForLogins() {\n }", "private void notifyUserLoggedInListener(UserLoggedInEvent event) {\r\n \t\tfor (IUserLoggedInListener listener : this.userConnectedListener) {\r\n \t\t\tlistener.userLoggedIn(event);\r\n \t\t}\r\n \t}", "public interface Observer {\n void logoutSuccessful(LogoutResponse logoutResponse);\n void logoutUnsuccessful(LogoutResponse logoutResponse);\n void handleException(Exception ex);\n }", "@Override\r\n\tpublic void notifyObservers() {\n\t\tfor(Observer o : list) {\r\n\t\t\t// Atualiza a informacao no observador\r\n\t\t\to.update(this, this);\r\n\t\t}\r\n\t}", "static void NotifyCorrespondingObservers() {}", "private void doLogout() {\r\n\t\tdoctor.setOnline(0);\r\n\t\t// Set doctor as logged out\r\n\t\tdbAdapter.updateDoctor(doctor);\r\n\t\t// Release objects and notify observers\r\n\t\tloggedIn = false;\r\n\t\tnotifyObservers();\r\n\t\tdoctors = null;\r\n\t\tdoctor = null;\r\n\t}", "public void notifyObservers() {}", "@Scheduled(fixedDelay = 36000000, initialDelay = 36000000)\n public void updateSessions() {\n ArrayList<Login> logins = AuthenticationController.getLogins();\n for (Login l : logins) {\n if (l.isExpired(maxDuration)) {\n AuthenticationController.logout(l.getUsername());\n }\n }\n }", "@Override\r\n\tpublic void notifyObservers() {\n\t\t\r\n\t}", "@Override\n public void notifyObservers() {\n for (Observer observer : observers){\n // observers will pull the data from the observer when notified\n observer.update(this, null);\n }\n }", "public void notifyObservers() {\n\t\tfor(ElevatorObserver obs: observers) {\n\t\t\tobs.elevatorDidFinishTask(this);\n\t\t}\n\t}", "public void notificarTodos(){\n for (Observer observer : list) {\n observer.notificar();\n }\n }", "public void notifyObservers(){\n\t\tfor (ModelObserver c : controllers){\n\t\t\tc.update();\n\t\t}\n\t}", "void notifyLogin(@NonNull AccessToken.Provider login) {\n new Handler(Looper.getMainLooper()).post(new Runnable() {\n @Override\n public void run() {\n getAuxiliaryRouter().popCurrentController();\n getMainRouter().pushController(RouterTransaction.with(new HomeController()));\n }\n });\n }", "public void notifyObservers(){\r\n\t\tif (this.lastNews != null)\r\n\t\t\tfor (Observer ob: observers){\r\n\t\t\t\tob.updateFromLobby(lastNews);\r\n\t\t\t}\r\n\t}", "public void notifyObservers();", "public void notifyObservers();", "public void notifyObservers();", "void notifyObservers();", "void notifyObservers();", "public void notifyStudentsObservers() {\n \t\tfor (IStudentsObserver so : studentsObservers) {\n \t\t\tso.updateStudents();\n \t\t}\n \t}", "@Override\r\n\tpublic void notifyObservers() {\n\t for(Observer o : observers){\r\n\t\t o.update();\r\n\t }\r\n\t}", "public void notifyListeners() {\n Logger logger = LogX;\n logger.d(\"notifyListeners: \" + this.mListeners.size(), false);\n List<IWalletCardBaseInfo> tmpCardInfo = getCardInfo();\n Iterator<OnDataReadyListener> it = this.mListeners.iterator();\n while (it.hasNext()) {\n it.next().refreshData(tmpCardInfo);\n }\n }", "private void notifyObservers() {\n\t\tIterator<Observer> i = observers.iterator();\r\n\t\twhile( i.hasNext() ) {\r\n\t\t\tObserver o = ( Observer ) i.next();\r\n\t\t\to.update( this );\r\n\t\t}\r\n\t}", "public interface Observer {\n void logoutSuccessful(Response response);\n\n void logoutUnsuccessful(Response response);\n\n void handleException(Exception ex);\n\n}", "protected void notifyObservers() {\n os.notify(this, null);\n }", "public void addObservers(List<RegisterObserver> observers){\r\n registerObservers.addAll(observers);\r\n }", "public void notifyObservers() {\n for (int i = 0; i < observers.size(); i++) {\n Observer observer = (Observer)observers.get(i);\n observer.update(this.durum);\n }\n }", "@Override\n void notifys() {\n for (Observer o : observers) {\n o.update();\n }\n }", "@Override\n public void onLoggedIn() {\n\n }", "private void updateLogoutEnabled() {\n Assert.isMainThread();\n boolean isLogoutEnabled = this.mDevicePolicyManager.isLogoutEnabled();\n if (this.mLogoutEnabled != isLogoutEnabled) {\n this.mLogoutEnabled = isLogoutEnabled;\n for (int i = 0; i < this.mCallbacks.size(); i++) {\n KeyguardUpdateMonitorCallback keyguardUpdateMonitorCallback = this.mCallbacks.get(i).get();\n if (keyguardUpdateMonitorCallback != null) {\n keyguardUpdateMonitorCallback.onLogoutEnabledChanged();\n }\n }\n }\n }", "@Override\r\n\tpublic void notifyObservers() {\n\t\tfor (Observer o : this.observers) {\r\n\t\t\to.update();\r\n\t\t}\r\n\t}", "private void notifyidiots() {\n\t\tfor(Observ g:obslist) {\n\t\t\tg.update();\n\t\t}\n\t}", "public void onServiceConnected() {\r\n \t// Display the list of sessions\r\n\t\tupdateList();\r\n }", "public void atacar() {\n notifyObservers();\n }", "public void notifyObservers(){\n for (GameObserver g: observers){\n g.handleUpdate(new GameEvent(this,\n currentPlayer,\n genericWorldMap,\n gameState,\n currentTerritoriesOfInterest,\n currentMessage));\n }\n }", "void onLogout(boolean loggedIn);", "public void notifyChangementJoueurs();", "private void notificarSensores() {\n\t\tmvmSensorsObservers.forEach(sensorObserver -> sensorObserver.update());\n\t}", "public interface OnLoginListener {\n void onAuthenticated(String companyName);\n }", "private void notifyObservors() {\n this.obervors.forEach(Obervor::modelChanged);\n }", "public void notifyObservers() {\r\n for (Observer observer: this.observers) {\r\n observer.update(this);\r\n }\r\n\r\n// System.out.println(this);\r\n }", "public void notifyJoueurActif();", "@Override\n\tpublic void updateLoggedinUsers() throws Exception {\n\n\t}", "public void m6658c() {\n for (C1916a onLogout : this.f5137b) {\n onLogout.onLogout();\n }\n }", "private void observerStuff() {\r\n\t\tfor (PirateShip pirate : pirates) {\r\n\t\t\tship.registerObserver(pirate);\r\n\t\t}\r\n\t}", "public interface LoginOnImm {\n void OnImm( String mob, String pwd,Observer<BaseBean> observer);\n}", "@Override\n\tpublic void notifyObservers() {\n\t\tfor (Observer obs : this.observers)\n\t\t{\n\t\t\tobs.update();\n\t\t}\n\t}", "void logoutDone();", "@Override\n\tpublic void notifys() {\n\t\tfor(Observer observer : observers) {\n\t\t\tobserver.update(this);\n\t\t}\n\t}", "@Override\n\t\t\t\t\t\tpublic void onSyncSuccess() {\n\t\t\t\t\t\t\tnotifyLoginEvent(true);\n\t\t\t\t\t\t}", "public void notifyAdmins(){\n \tfor(PlayerHandler player : players){\n \t\tif(player.isAdmin()){\n \t\t\tplayer.notify(1);\n \t\t}\n \t}\n }", "protected void notifyDeleted(List<T> objects){\n\t\tfor( ModelEvents<T> observer : this.ObserverList){\r\n\t\t\tobserver.dataDeleted(objects);\r\n\t\t}\r\n\t}", "public void notifyAllObservers(){\n\t\tthis.notifyAllObservers(null);\n\t}", "public void notifyAllObservers() {\n\t\tfor(Observer observer : observers) {\n\t\t\tobserver.update();\n\t\t}\n\t}", "private void fireLogOffEvent(){\n\t\tMat.hideLoadingMessage();\n\t\tMat.showSignOutMessage();\n\t\ttimeoutWarning.cancel();\n\t\trepeatedWarning.cancel();\n\t\tclearTimeOutWarning();\n\t\tMatContext.get().getEventBus().fireEvent(new LogoffEvent());\n\t}", "public void setObservers() {\n feedBackVM.isLoading.addOnPropertyChangedCallback(new Observable.OnPropertyChangedCallback() {\n @Override\n public void onPropertyChanged(Observable observable, int i) {\n if (feedBackVM.isLoading.get()) {\n showWaitingDialog(true);\n } else {\n showWaitingDialog(false);\n }\n }\n });\n\n feedBackVM.toastMsg.addOnPropertyChangedCallback(new Observable.OnPropertyChangedCallback() {\n @Override\n public void onPropertyChanged(Observable observable, int i) {\n toast(feedBackVM.toastMsg.get());\n feedBackVM.toastMsg.set(null);\n }\n });\n }", "@Override\n public void loggedOut() {\n timeTables = new Timetables();\n appointments = new Appointments();\n tasks = new Tasks();\n messages = new Messages();\n substitutions = new Substitutions();\n files = new Files();\n announcements = new Announcements();\n excuseNotes = new ExcuseNotes();\n }", "@Override\n\tpublic void NotifyObserver() {\n\n\t}", "public void patientsCredentials() {\n\t\tutil.ClickElement(prop.getValue(\"locators.register.click\"));\n\t\tlogreport.info(\"Patient registration is clicked\");\n\t}", "public interface INetworkListener extends IListener {\n\n /**\n * Called when a use logs out from the server\n *\n * @param loggedIn if the user is loggedIn\n */\n void onLogout(boolean loggedIn);\n\n}", "private void setObservers() {\n evaluateDetailVM.isLoading.addOnPropertyChangedCallback(new Observable.OnPropertyChangedCallback() {\n @Override\n public void onPropertyChanged(Observable observable, int i) {\n if (evaluateDetailVM.isLoading.get()) {\n showWaitingDialog(true);\n } else {\n showWaitingDialog(false);\n }\n }\n });\n\n evaluateDetailVM.toastMsg.addOnPropertyChangedCallback(new Observable.OnPropertyChangedCallback() {\n @Override\n public void onPropertyChanged(Observable observable, int i) {\n toast(evaluateDetailVM.toastMsg.get());\n evaluateDetailVM.toastMsg.set(null);\n }\n });\n }", "@Override\n public void onServerLoginClick(String email, String password) {\n if (email == null || email.isEmpty()) {\n getMvpView().onError(R.string.empty_email);\n return;\n }\n if (!CommonUtils.isEmailValid(email)) {\n getMvpView().onError(R.string.invalid_email);\n return;\n }\n if (password == null || password.isEmpty()) {\n getMvpView().onError(R.string.empty_password);\n return;\n }\n getMvpView().showLoading();\n\n getCompositeDisposable().add(getDataManager()\n .doServerLoginApiCall(new LoginRequest.ServerLoginRequest(email, password))\n .subscribeOn(getSchedulerProvider().io())\n .observeOn(getSchedulerProvider().ui())\n .subscribe(new Consumer<LoginResponse>() {\n @Override\n public void accept(LoginResponse response) throws Exception {\n getDataManager().updateUserInfo(\n response.getAccessToken(),\n response.getUserId(),\n DataManager.LoggedInMode.LOGGED_IN_MODE_SERVER,\n response.getUserName(),\n response.getUserEmail(),\n response.getImgUrl(),\n response.getUserRole());\n\n if (!isViewAttached()) {\n return;\n }\n\n if (response.getUserRole().equals(\"USER\")) {\n // da UserRestaurantsActivity odradi pretplatu\n AppPreferencesHelper.RECENTLY_CHANGED_NOTIFICATION_PREFERENCE = true;\n\n getMvpView().hideLoading();\n\n // podrazumevana svetla tema\n getDataManager().setDarkThemeOn(false);\n // podrazumevano engleski jezik\n getDataManager().setActiveLanguage(\"sr\");\n // podrazumevano nema ustede podataka\n getDataManager().setSaveNetworkDataOn(false);\n // podrazumevano ukljucene notifikacije\n getDataManager().setNotificationTurnedOn(true);\n\n // ponistimo sve restorane koje je korisnik kesirao\n getCompositeDisposable().add(getDataManager()\n .deleteAllMyRestaurants()\n .subscribeOn(getSchedulerProvider().io())\n .observeOn(getSchedulerProvider().ui())\n .subscribe(new Consumer<Boolean>() {\n @Override\n public void accept(Boolean aBoolean) throws Exception {\n // ponistimo sve kuhinje restorana\n getDataManager()\n .deleteAllKitchensDB()\n .subscribeOn(getSchedulerProvider().io())\n .observeOn(getSchedulerProvider().ui())\n .subscribe(new Consumer<Boolean>() {\n @Override\n public void accept(Boolean aBoolean) throws Exception {\n // setujemo podrazumevani user filter\n UserFilter userFilter = new UserFilter();\n userFilter.setDistance(RestaurantFilterActivity.DEFAULT_DISTANCE);\n userFilter.setOpen(false);\n userFilter.setDelivery(false);\n userFilter.setDailyMenu(false);\n getDataManager().saveUserFilter(userFilter).subscribe(new Consumer<Long>() {\n @Override\n public void accept(Long aLong) throws Exception {\n getDataManager().setActiveUserFilterId(aLong);\n // konacno otvaranje\n getMvpView().openUserRestaurantsActivity();\n }\n });\n\n }\n });\n }\n }));\n\n } else {\n getMvpView().hideLoading();\n // podrazumevana svetla tema\n getDataManager().setDarkThemeOn(false);\n // podrazumevano engleski jezik\n getDataManager().setActiveLanguage(\"sr\");\n // podrazumevano nema ustede podataka\n getDataManager().setSaveNetworkDataOn(false);\n // podrazumevano ukljucene notifikacije\n getDataManager().setNotificationTurnedOn(true);\n\n getMvpView().openManagerRestaurantActivity();\n getDataManager().setRestaurantIdManager(response.getRestaurantId());\n }\n\n\n }\n }, new Consumer<Throwable>() {\n @Override\n public void accept(Throwable throwable) throws Exception {\n\n if (!isViewAttached()) {\n return;\n }\n\n getMvpView().hideLoading();\n\n // handle the login error here\n if (throwable instanceof ANError) {\n ANError anError = (ANError) throwable;\n handleApiError(anError);\n }\n }\n }));\n }", "private void notifyListeners(MenuCommand mc) {\n connectorListeners.forEach(listener-> listener.onCommand(this, mc));\n }", "public void deleteIObservers( )\n {\n observers.removeAllElements();\n }", "private void observeIsUserLoggedInLiveData() {\n viewModel.getIsUserLoggedInLiveData()\n .observe(this, loggedInStatus -> isUserLoggedIn = loggedInStatus);\n }", "static void sendNotifications() {\n\t\testablishConnection();\n\t\tSystem.out.println(\"sending multiple notificatiosn\");\n\t}", "public void d()\n {\n String var1 = this.server.getServerConfigurationManager().attemptLogin(this.networkManager.getSocketAddress(), this.h);\n\n if (var1 != null)\n {\n this.disconnect(var1);\n }\n else\n {\n EntityPlayer var2 = this.server.getServerConfigurationManager().processLogin(this.h);\n\n if (var2 != null)\n {\n this.server.getServerConfigurationManager().a(this.networkManager, var2);\n }\n }\n\n this.c = true;\n }", "void notifyObserver();", "@Override\n public void doWhenNetworkCame() {\n doLogin();\n }", "@Override\n\tpublic void update(Object... objs) {\n\t\tmDialog.dismiss();\n\t\tif (objs[0].equals(Constants.IS_LOGOUT)) {\n\t\t\t//关闭后台服务\n\t\t\tIntent serviceIntent = new Intent(getActivity(), EmergencyService.class);\n\t\t\tgetActivity().stopService(serviceIntent);\n\t\t\t//跳转到登录界面\n\t\t\tIntent intent = new Intent(getActivity(), LoginActivity.class);\n\t\t\tintent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n\t\t\tstartActivity(intent);\n\t\t\tgetActivity().finish();\n\t\t}\n\t}", "@Override\n\tpublic void notifyObserver() {\n\t\tEnumeration<ObserverListener> enumd = vector.elements();\n\t\twhile (enumd.hasMoreElements()) {\n\t\t\tObserverListener observerListener = enumd\n\t\t\t\t\t.nextElement();\n\t\t\tobserverListener.observer();\n\t\t\tobserverListener.obsupdata();\n\t\t}\n\t}", "public void notifyState() {\n\t\tList<T> alldata = new ArrayList<T>(this.dataMap.values());\t\r\n\t\t// call them with the current data\r\n\t\t// for each observer call them\r\n\t\tfor( ModelEvents<T> observer : this.ObserverList){\r\n\t\t\tobserver.dataState(alldata);\r\n\t\t}\r\n\r\n\t}", "private void observeViewModel() {\r\n mViewModel.setListener(this);\r\n mViewModel.getLoginFormVisibility().observe(this, visibility -> mLoginFormView.setVisibility(visibility));\r\n mViewModel.getLoginViewVisibility().observe(this, visibility -> mLoginView.setVisibility(visibility));\r\n mViewModel.getProfileVisibility().observe(this, visibility -> mProfileView.setVisibility(visibility));\r\n mViewModel.getProgressBarVisibility().observe(this, visibility -> mLoginProgressBar.setVisibility(visibility));\r\n mViewModel.getErrorMessage().observe(this, this::onErrorChanged);\r\n mViewModel.getUsernameError().observe(this, message -> mUsernameInput.setError(message));\r\n mViewModel.getTokenError().observe(this, message -> mTokenInput.setError(message));\r\n mViewModel.getUser().observe(this, this::onUserLoaded);\r\n }", "public static void aviUsers() {\n\t\tsendNotification();\r\n\t}", "@Override\r\n\t\t\tpublic void onLogin(String username, String password) {\n\r\n\t\t\t}", "@Override\n\tpublic void Notify() {\n\t\tfor (Observer observer : obs) {\n\t\t\tobserver.update();\n\t\t}\n\t}", "public void detachAllObservers();", "public abstract void onLogin();", "public void notifyObservers(Object... args)\n {\n for (IObserver observer : observers)\n {\n observer.update(this, args);\n }\n }", "public static void removeAllObservers() {\n compositeDisposable.clear();\n observersList.clear();\n Timber.i(\"This is the enter point: All live assets and team feed auto refresh DOs are removed\");\n }", "@Override\n public void notifyObserver() {\n for(Observer o:list){\n o.update(w);\n }\n }", "public void onUserOnline(RpcProxyBase proxy,Object cookie){\n\t}", "protected abstract void registerObserver();", "public static void notifyCitizen(ArrayList<Record> exposed){\n int i,j;\n String usernameE, usernameC;\n\n for(i=0;i<exposed.size();i++)\n {\n usernameE = exposed.get(i).getUsername();\n for(j=0;j<accounts.size();j++)\n {\n usernameC = accounts.get(j).getUsername();\n\n if(usernameE.equals(usernameC)){\n accounts.get(j).setExposed();\n }\n }\n }\n }", "public void setObservers(ArrayList<Observer> observers) { \n\t\tGame.ui = observers; \n\t}", "public interface OnLoginListener {\n public void loginStatus(boolean status);\n}", "public void notifyObservers(String info){\r\n\t\tfor (Observer ob: observers){\r\n\t\t\tob.updateFromLobby(info);\r\n\t\t}\r\n\t}", "private void setSessionEvents(SessionManager sessionMan)\n\t// create session callback...\n {\n try {\n // session end\n sessionMan.getSessionEndEvent().addObserver( new IObserver<NullEventArgs>() {\n public void update(IObservable<NullEventArgs> observable, NullEventArgs args)\n { isRunning = false; }\n });\n }\n catch (StatusException e) {\n e.printStackTrace();\n }\n }", "@Override\n public void loggedIn(Member member) {\n timeTables = new Timetables();\n appointments = new Appointments();\n tasks = new Tasks();\n messages = new Messages();\n substitutions = new Substitutions();\n files = new Files();\n announcements = new Announcements();\n excuseNotes = new ExcuseNotes();\n }", "@Override\n public void registerObserver(Observer ob) {\n this.observers.add(ob);\n System.out.println(\"** Sistema: Observado \" + this.getClass().getName() + \" - Observador \" + ob.getClass().getName() + \" está registrado.\");\n }", "public void turnoIniciado() {\n\t\t\n\t\tfor (Partida.Observer o : observers) {\n\n\t\t\to.turnoIniciado(tablero, turno);\n\t\t}\n\t}", "public interface OnLoginListener {\n public void loginStatus(boolean status, String desc);\n}", "public void notifySelectedCourseObservers() {\n \t\tfor (ISelectedCourseObserver so : selectedCourseObservers) {\n \t\t\tso.updateSelectedCourse();\n \t\t}\n \t}", "private void createLoginEvents() {\n\t\t\n\t\t//Fires after the user clicks the login button. If they typed in the wrong creds or they have been inactivated\n\t\t//they will be given a proper pop up message notifying them\n\t\tbtnLogin.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\tString pass = new String(passwordLogin.getPassword());\n\t\t\t\tUser u = jdbc.login(txtLoginUser.getText(), pass);\n\t\t\t\tif (u == null) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Incorrect Login Credentials\");\n\t\t\t\t} else if (!u.active()) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Your account has been inactivated. Contact your manager for help\");\n\t\t\t } else {\n\t\t\t\t\tif (u.get_usertype() == 1) {\n\t\t\t\t\t\t//They are an Admin\n\t\t\t\t\t\tlayeredPane.setLayer(layeredPaneAdmin, 10);\n\t\t\t\t\t\tlayeredPane.setLayer(layeredPaneLogin, 0);\n\t\t\t\t\t\tlayeredPaneAdmin.setLayer(pnlAdmin, 10);\n\t\t\t\t\t\tSystem.out.println(\"logged in as Admin\");\n\t\t\t\t\t\tlblPortal.setText(\"Admin Portal - \"+u.get_firstname()+ \" \" + u.get_lastname());\t\t\t\t\t\t\n\t\t\t\t\t} else if (u.get_usertype() == 2) {\n\t\t\t\t\t\t//They are a Manager\n\t\t\t\t\t\tlayeredPane.setLayer(layeredPaneManagerWorker, 10);\n\t\t\t\t\t\tlayeredPane.setLayer(layeredPaneLogin, 0);\n\t\t\t\t\t\tlayeredPaneManagerWorker.setLayer(pnlManagerWorker, 10);\n\t\t\t\t\t\tSystem.out.println(\"logged in as Manager\");\n\t\t\t\t\t\tlblPortal.setText(\"Manager Portal - \"+u.get_firstname()+ \" \" + u.get_lastname());\n\t\t\t\t\t} else {\n\t\t\t\t\t\t//They are a Worker\n\t\t\t\t\t\tlayeredPane.setLayer(layeredPaneManagerWorker, 10);\n\t\t\t\t\t\tSystem.out.println(\"logged in as Worker\");\n\t\t\t\t\t\tlblPortal.setText(\"Worker Portal - \"+u.get_firstname()+ \" \" + u.get_lastname());\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tcurrentSessionUserID = u.get_userID();\n\t\t\t\t\tbtnLogout.setVisible(true);\n\t\t\t\t\tlblPortal.setVisible(true);\n\t\t\t\t\tbtn_settings.setVisible(true);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t//\n\t\tbtnLogout.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tlayeredPane.setLayer(layeredPaneLogin, 10);\n\t\t\t\tlayeredPane.setLayer(layeredPaneAdmin, 0);\n\t\t\t\tlayeredPane.setLayer(layeredPaneManagerWorker, 0);\n\t\t\t\tbtnLogout.setVisible(false);\n\t\t\t\tlblPortal.setVisible(false);\n\t\t\t\tbtn_settings.setVisible(false);\n\t\t\t\ttxtLoginUser.setText(\"\");\n\t\t\t\tpasswordLogin.setText(\"\");\n\t\t\t}\n\t\t});\n\t}", "void loginDone();", "@Override\n public void onLogon(SessionID sessionID) {\n LOG.info(\"Server: onLogon of \" + sessionID);\n }", "public void onMotdSent() {\r\n\t\tif (!loggedIn) {\r\n\t\t\tif (adminWindow != null) {\r\n\t\t\t\tadminWindow.setVisible(true);\r\n\t\t\t}\r\n\t\t\tdispose();\r\n\t\t\tloggedIn = true;\r\n\t\t}\r\n\t\t\r\n\t}" ]
[ "0.68958855", "0.59477746", "0.5925141", "0.58645", "0.58231306", "0.5820291", "0.5807781", "0.5720592", "0.5669098", "0.56379044", "0.55829734", "0.5568793", "0.55190706", "0.55058616", "0.54582334", "0.54535145", "0.54421896", "0.5385933", "0.5385933", "0.5385933", "0.5385196", "0.5385196", "0.5384389", "0.53637433", "0.53626907", "0.5361348", "0.53571224", "0.53511786", "0.53510946", "0.5345306", "0.53420264", "0.53057784", "0.5299997", "0.52901644", "0.5286824", "0.5285482", "0.52834016", "0.5271551", "0.526585", "0.52656895", "0.52571875", "0.52563226", "0.5255686", "0.52556616", "0.525444", "0.525349", "0.5248202", "0.5247648", "0.5245849", "0.52457285", "0.5231242", "0.52298284", "0.5217829", "0.52141094", "0.521313", "0.5185642", "0.5185576", "0.5181211", "0.51749134", "0.5169829", "0.5164123", "0.5159704", "0.51577497", "0.51501465", "0.5145184", "0.5142653", "0.51346105", "0.5133148", "0.5127397", "0.5127339", "0.5125364", "0.5111135", "0.5094429", "0.508836", "0.5086948", "0.50836134", "0.50444216", "0.50419956", "0.5037948", "0.5037002", "0.5014624", "0.5000198", "0.49988762", "0.49958122", "0.49956438", "0.4992057", "0.49888876", "0.49813497", "0.49752206", "0.49741587", "0.49740505", "0.4954792", "0.494863", "0.49411157", "0.4940439", "0.49346784", "0.49329877", "0.49176267", "0.49112582", "0.49108577" ]
0.82066786
0
only need a getter
public BigDecimal getCoins() { return coins; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void get() {}", "@Override\r\n\tpublic void get() {\n\t\t\r\n\t}", "public void get() {\n }", "@Override\n String get();", "public abstract String get();", "private Get() {}", "private Get() {}", "public String get();", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "public Genero getGenero()\r\n/* 143: */ {\r\n/* 144:261 */ return this.genero;\r\n/* 145: */ }", "@Override\n protected void getExras() {\n }", "private ReadProperty()\r\n {\r\n\r\n }", "@Override\n Derived get();", "public String getNombre()\r\n/* 113: */ {\r\n/* 114:204 */ return this.nombre;\r\n/* 115: */ }", "public T get() {\n return value;\n }", "public T get() {\n return value;\n }", "String get();", "String get();", "public String getNombre()\r\n/* 60: */ {\r\n/* 61: 67 */ return this.nombre;\r\n/* 62: */ }", "public T get() {\n return value;\n }", "public java.lang.String getGet() {\n return instance.getGet();\n }", "public Method getGetter() {\n return this.getter;\n }", "@Override\r\n\tpublic String get() {\n\t\treturn null;\r\n\t}", "public Empresa getEmpresa()\r\n/* 84: */ {\r\n/* 85:131 */ return this.empresa;\r\n/* 86: */ }", "@Override\n\tprotected void getExras() {\n\n\t}", "public String getNombre()\r\n/* 17: */ {\r\n/* 18:41 */ return this.nombre;\r\n/* 19: */ }", "public Object get()\n {\n return m_internalValue;\n }", "public Empleado getEmpleado()\r\n/* 183: */ {\r\n/* 184:337 */ return this.empleado;\r\n/* 185: */ }", "public String getValor()\n/* 17: */ {\n/* 18:27 */ return this.valor;\n/* 19: */ }", "@Override\n\tpublic String get() {\n\t\treturn null;\n\t}", "public Student getStudent() { return student; }", "public CuentaContable getCuentaContable()\r\n/* 78: */ {\r\n/* 79: 99 */ return this.cuentaContable;\r\n/* 80: */ }", "String getName(){return this.name;}", "Objet getObjetAlloue();", "public class_1048 method_2258() {\r\n return this.field_1859;\r\n }", "public String getter() {\n\t\treturn name;\n\t}", "public String getEmployee()\r\n/* 38: */ {\r\n/* 39:43 */ return this.employee;\r\n/* 40: */ }", "public String getName () { return this.name; }", "public int getAge() {return age;}", "protected abstract Set method_1559();", "@Override\r\n\tpublic <T> T get() {\n\t\treturn null;\r\n\t}", "private GetProperty(Builder builder) {\n super(builder);\n }", "public String getValue() {\n/* 99 */ return this.value;\n/* */ }", "T getData() {\n return this.data;\n }", "public abstract Object getCustomData();", "public Book getBook() \t\t{ return this.myBook; }", "@Override\n\tpublic void get() {\n\t\tSystem.out.println(\"this is get\");\n\t}", "public Property getProperty() {\n\treturn commonproperty;\r\n}", "@Override\n\tpublic void getData() {\n\t\t\n\t}", "@Override\r\n\tpublic T get() {\n\t\treturn null;\r\n\t}", "public Object getObject() ;", "boolean get();", "protected Object doGetValue() {\n\t\treturn value;\n\t}", "int getNumber () { return number; }", "public String getName(){return this.name;}", "public Object getValue() { return _value; }", "@Override\n\tpublic Object getValue() {\n\t\treturn this ;\n\t}", "@Override\n\tpublic Object getValue() {\n\t\treturn this ;\n\t}", "public A force_get()\n {\n throw new UnsupportedOperationException();\n }", "public String getEtiqueta()\n/* 27: */ {\n/* 28:41 */ return this.etiqueta;\n/* 29: */ }", "public String getName(){\n return name;\n}", "public String getName(){ return name; }", "public THING get() {\n return directlyGet();\n }", "protected abstract MethodDescription accessorMethod();", "public Object getValue(){\n \treturn this.value;\n }", "public int getAge(){\n return age;\n }", "public Punto getCentro() {\r\n\treturn centro;\r\n}", "public CuentaContable getCuentaContableCierre()\r\n/* 98: */ {\r\n/* 99:115 */ return this.cuentaContableCierre;\r\n/* 100: */ }", "public int getValue() { return 42; }", "@Override // Métodos que fazem a anulação\n\tpublic void getBonificação() {\n\t\t\n\t}", "public int getX(){return this.x;}", "protected List getProperties() {\n return null;\n }", "public String get()\n {\n return this.string;\n }", "public final Object get() {\n return getValue();\n }", "@Override\r\n\t\t\tpublic Object getValue() {\n\t\t\t\treturn null;\r\n\t\t\t}", "public abstract Object getData();", "public Object getValue() { return this.value; }", "public T get() {\n return object;\n }", "public int getAge()\r\n {\r\n return age;\r\n }", "public\n Account\n getAccount()\n {\n return itsAccount;\n }", "@Override\n public T getObjRaiz() {\n return (super.getObjRaiz());\n }", "public String getStudentLastName(){\r\n return studentLastName.get();\r\n}", "public CuentaContable getCuentaContable()\r\n/* 299: */ {\r\n/* 300:367 */ return this.cuentaContable;\r\n/* 301: */ }", "public int getValue() {\n/* 450 */ return this.value;\n/* */ }", "public V get() {\n return value;\n }", "private PropertyAccess() {\n\t\tsuper();\n\t}", "public class_34 method_627() {\n return this.field_394;\n }", "public Enqueteur getEnqueteur()\r\n/* */ {\r\n/* 57 */ return this.enqueteur;\r\n/* */ }", "public int somemethod(){\n return this.data;\n }", "public abstract Object getValue();", "public abstract Object getValue();", "public abstract Object getValue();", "int getBlue(){\n\n return this.blue;\n }", "@Override\n public Object getValue()\n {\n return value;\n }", "public String getName()\n {\n return name;\n}", "public String getName ()\n {\n return name;\n }", "protected String getName(){\r\n return this.name;\r\n }", "@Override\n\tpublic void getDetail() {\n\t\t\n\t}", "public String getName(){return name;}", "public String getName(){return name;}", "public String getName(){return name;}" ]
[ "0.7410197", "0.72217387", "0.70424896", "0.6919601", "0.6897705", "0.67656106", "0.67656106", "0.6738898", "0.6497959", "0.6488874", "0.64590627", "0.6443297", "0.6436846", "0.6420251", "0.64069855", "0.64069855", "0.6392397", "0.6392397", "0.6386733", "0.6384543", "0.6360716", "0.63518184", "0.63486624", "0.6348204", "0.633628", "0.63339007", "0.6304106", "0.62849325", "0.6283589", "0.6273498", "0.62679386", "0.62355614", "0.62348324", "0.62313837", "0.62266845", "0.6223888", "0.62166166", "0.6206383", "0.6205333", "0.6201587", "0.61957717", "0.6192391", "0.6188226", "0.6176853", "0.6176708", "0.61761564", "0.61638427", "0.616296", "0.6155792", "0.61389947", "0.61354506", "0.61289126", "0.6105269", "0.60995024", "0.60946953", "0.60935736", "0.6089871", "0.6089871", "0.60834223", "0.6082779", "0.6082748", "0.6080195", "0.6076158", "0.6073085", "0.6067988", "0.6067834", "0.606468", "0.6063136", "0.6060914", "0.60559976", "0.60526896", "0.60514444", "0.60481334", "0.6042133", "0.60392785", "0.60357535", "0.60350436", "0.6034006", "0.60316163", "0.6030645", "0.60271996", "0.6027195", "0.6021302", "0.60188615", "0.6018126", "0.6015106", "0.60137147", "0.6012477", "0.6011424", "0.60108733", "0.60108733", "0.60108733", "0.6008022", "0.6006183", "0.6004758", "0.5990882", "0.5987307", "0.59861946", "0.5985465", "0.5985465", "0.5985465" ]
0.0
-1
Created by duncancarroll on 5/20/15.
public interface ConnectionStateListener { void onDisconnect(); void onConnect(); void onLogout(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\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 public void func_104112_b() {\n \n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "protected boolean func_70814_o() { return true; }", "private void m50366E() {\n }", "@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\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "private void poetries() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@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 anularFact() {\n\t\t\r\n\t}", "@Override\n public void init() {\n\n }", "public void mo38117a() {\n }", "@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\n public int describeContents() { return 0; }", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\n public void init() {\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 initialize() {\n }", "@Override\n public int retroceder() {\n return 0;\n }", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\n protected void init() {\n }", "@Override\n public void init() {}", "@Override\r\n\tpublic void init() {}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "public void mo4359a() {\n }", "@Override\n void init() {\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}", "public void method_4270() {}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void init()\r\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}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n\tpublic void init() {\n\t}", "@Override\r\n\tprotected void doF4() {\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\n\tpublic void gravarBd() {\n\t\t\n\t}", "private void init() {\n\n\t}", "private void kk12() {\n\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 int getSize() {\n return 1;\n }", "@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}", "@Override\n\t\tpublic void init() {\n\t\t}", "private void m50367F() {\n }", "@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}", "private Rekenhulp()\n\t{\n\t}", "public void mo12628c() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override public int describeContents() { return 0; }", "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 }", "@Override\n public void initialize() { \n }", "public final void mo91715d() {\n }", "private static void cajas() {\n\t\t\n\t}", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}" ]
[ "0.58889586", "0.5788868", "0.57222855", "0.5680706", "0.5653064", "0.5637831", "0.5637831", "0.5634712", "0.55903876", "0.5542973", "0.55311775", "0.5513113", "0.54915404", "0.5484755", "0.5484755", "0.5484755", "0.5484755", "0.5484755", "0.54829705", "0.54749733", "0.54746264", "0.5473256", "0.54692507", "0.54645354", "0.5459624", "0.54469377", "0.54423684", "0.54423684", "0.5436622", "0.5429467", "0.54193294", "0.54109776", "0.5410353", "0.54097086", "0.54094535", "0.540533", "0.5403447", "0.5370542", "0.5359916", "0.5359916", "0.5359916", "0.5359916", "0.5359916", "0.5359916", "0.5357951", "0.53462315", "0.5343194", "0.53388923", "0.53364193", "0.53245705", "0.5323102", "0.5318463", "0.5318463", "0.5318463", "0.53119415", "0.5298139", "0.52959895", "0.52959895", "0.52959895", "0.5289148", "0.5284965", "0.5273697", "0.527351", "0.5272086", "0.5272086", "0.5272086", "0.5270862", "0.5270244", "0.52673686", "0.5263187", "0.5263187", "0.5262302", "0.5255485", "0.5242978", "0.5241356", "0.5234365", "0.5232597", "0.5232597", "0.5222982", "0.52216583", "0.5221289", "0.52200586", "0.5214731", "0.52005243", "0.5195461", "0.51922476", "0.5190269", "0.5188485", "0.51864535", "0.51864535", "0.51864535", "0.51864535", "0.51864535", "0.51864535", "0.51864535", "0.5183276", "0.5178717", "0.51750743", "0.5167742", "0.51658565", "0.516554" ]
0.0
-1
file path where excel file placed, containing test data.
@DataProvider(name = "data") public Object[][] testDataSupplier() throws Exception { String filePath = "C:\\Users\\rekha\\OneDrive\\Desktop\\CP- SAT\\Screenshot\\Rediffdata.xlsx"; // read excel file using file input stream, using Apache POI FileInputStream fis = new FileInputStream(new File(filePath)); XSSFWorkbook wb = new XSSFWorkbook(fis); XSSFSheet sheet = wb.getSheet("Sheet1"); // calculate total number of rows and columns so that we can iterate over it. int totalNumberOfRows = sheet.getLastRowNum()+1 ; int totalNumberOfCols = sheet.getRow(0).getLastCellNum(); // create an object array. which will store the test data from excel file Object[][] testdata1 = new Object[totalNumberOfRows][totalNumberOfCols]; for (int i = 1; i < totalNumberOfRows; i++) { for (int j = 0; j < totalNumberOfCols; j++) { testdata1[i][j] = sheet.getRow(i).getCell(j).toString(); } } return testdata1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void CreateTestResultFile()\n\t{ \n\t\tDate dNow = new Date( );\n\t\tSimpleDateFormat ft =new SimpleDateFormat (\"MMddYYYY\");\n\t\t\n\t\ttry \n\t\t{\n\t\t\tFileOutputStream fos = new FileOutputStream(System.getProperty(\"user.dir\")+\"//PG HealthCheck List_\"+ft.format(dNow)+\".xls\");\n\t HSSFWorkbook workbook = new HSSFWorkbook();\n\t HSSFSheet worksheet = workbook.createSheet(\"PG Functionality - Country\");\n\t HSSFRow row1 = worksheet.createRow(0);\n\t row1.createCell(0).setCellValue(\"Availability of Data\");\n\t HSSFRow row = worksheet.createRow(1);\n\t row.createCell(0).setCellValue(\"Testcase\");\n\t row.createCell(1).setCellValue(\"TestRunStatus\");\n\t row.createCell(2).setCellValue(\"Remarks\");\n\t workbook.write(fos);\n\t fos.close();\n\t \t \n\t } \n\t\tcatch (Exception e)\n\t {\n\t \te.printStackTrace();\n\t }\n\t\t\t\n\t\t\n\t}", "public static XSSFSheet setExcelFile() throws Exception {\n\n XSSFSheet ExcelWSheet;\n XSSFWorkbook ExcelWBook;\n XSSFRow Row;\n String Path;\n String SheetName;\n\n try {\n // Open the Excel file\n Path = fetchMyProperties(\"spreadsheet_path\");\n SheetName= fetchMyProperties(\"sheet_name\");\n FileInputStream ExcelFile = new FileInputStream(Path);\n\n // Access the required test data sheet\n ExcelWBook = new XSSFWorkbook(ExcelFile);\n ExcelWSheet = ExcelWBook.getSheet(SheetName);\n\n } catch (Exception e){\n throw (e);\n }\n return ExcelWSheet;\n }", "public static void main(String[] args) throws IOException {\nFileInputStream f=new FileInputStream(\"D:\\\\AccuSelenium\\\\Ram\\\\TEST\\\\TestData\\\\LoginData.xls\");\nHSSFWorkbook w=new HSSFWorkbook(f);\nHSSFSheet s=w.getSheet(\"sheet1\");\nSystem.out.println(s.getRow(1));\n}", "@Test\n public void CreateFile() throws Exception {\n createFile(\"src\\\\TestSuite\\\\SampleFiles\\\\supervisor.xlsx\",\n readTemplateXLSX(\"src\\\\TestSuite\\\\SampleFiles\\\\template_supervisor.xlsx\"));\n File file = new File(\"src\\\\TestSuite\\\\SampleFiles\\\\supervisor.xlsx\");\n Assert.assertTrue(file.exists());\n }", "public void gettingDesktopPath() {\n FileSystemView filesys = FileSystemView.getFileSystemView();\n File[] roots = filesys.getRoots();\n homePath = filesys.getHomeDirectory().toString();\n System.out.println(homePath);\n //checking if file existing on that location\n pathTo = homePath + \"\\\\SpisakReversa.xlsx\";\n }", "public final File getExcelFile() {\n\t\treturn excelFile;\n\t}", "public static void getData() throws Exception {\n\t\tString filepath = \"F:\\\\Selenium Practice\\\\Framework\\\\TestData\\\\TestData.xlsx\";\n\t\tFile f = new File(filepath);\n\t\tFileInputStream str = new FileInputStream(f);\n\t\tWorkbook w = new XSSFWorkbook(str);\n\t\tSheet sh = w.getSheet(\"TestData\");\n\t\tfor (int i = 0; i < sh.getPhysicalNumberOfRows(); i++) {\n\t\t\tRow r = sh.getRow(i);\n\t\t\tfor (int j = 0; j < r.getPhysicalNumberOfCells(); j++) {\n\t\t\t\tCell c = r.getCell(j);\n\t\t\t\tint ct = c.getCellType();\n\t\t\t\tString name = \"\";\n\t\t\t\tswitch (ct) {\n\t\t\t\tcase Cell.CELL_TYPE_NUMERIC:\n\t\t\t\t\tif (ct == 0) {\n\t\t\t\t\t\tif (DateUtil.isCellDateFormatted(c)) {\n\t\t\t\t\t\t\tSimpleDateFormat form = new SimpleDateFormat(\"dd-MMM-yy\");\n\t\t\t\t\t\t\tname = form.format(c.getDateCellValue());\n\t\t\t\t\t\t\tSystem.out.println(name);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tdouble d = c.getNumericCellValue();\n\t\t\t\t\t\t\tlong l = (long) d;\n\t\t\t\t\t\t\tname = String.valueOf(l);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase Cell.CELL_TYPE_STRING:\n\t\t\t\t\tif (ct == 1) {\n\t\t\t\t\t\tname = c.getStringCellValue();\n\t\t\t\t\t\tSystem.out.println(name);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}", "@Test\r\n public void excel() throws EncryptedDocumentException, InvalidFormatException, FileNotFoundException, IOException {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"E:\\\\Selenium\\\\Newfolder\\\\chromedriver.exe\");\r\n\t\tdriver = new ChromeDriver();\r\n\t\t\r\n //get the excel sheet file location \r\n String filepath=\"E:\\\\Selenium\\\\SampleApplications\\\\ClearTripAppln\\\\DataSheet.xlsx\";\r\n\t \t\t\t\tWorkbook wb= WorkbookFactory.create(new FileInputStream(new File(filepath)));\r\n //get the sheet which needs read operation\r\n\t\t Sheet sh = wb.getSheet(\"sheet1\");\r\n\t\t \r\n\t String url =sh.getRow(0).getCell(1).getStringCellValue();\r\n\t System.out.println(url);\r\n\t driver.get(url);\r\n\t \r\n\t \t\t// Maximizing the window\r\n\t \t\tdriver.manage().window().maximize();\r\n\t \t\t\r\n\r\n\r\n\t\t }", "public void testCreateNewFile() {\n List<SheetDataDto> data = new ArrayList<SheetDataDto>();\n RowDataDto headerRow = new RowDataDto();\n headerRow.getCells().add(new CellDataDto(\"Col 1\", CellDataTypeEnum.TEXT));\n headerRow.getCells().add(new CellDataDto(\"Col 2\", CellDataTypeEnum.TEXT));\n headerRow.getCells().add(new CellDataDto(\"Col 3\", CellDataTypeEnum.TEXT));\n headerRow.getCells().add(new CellDataDto(\"Col 4\", CellDataTypeEnum.TEXT));\n\n SheetDataDto sheet1 = new SheetDataDto();\n sheet1.setName(\"First sheet\");\n sheet1.setHeaderRow(headerRow);\n\n RowDataDto row1 = new RowDataDto();\n row1.getCells().add(new CellDataDto(1d, CellDataTypeEnum.NUMBER));\n row1.getCells().add(new CellDataDto(\"IF(A2 > 0, \\\"1\\\", \\\"0\\\")\", CellDataTypeEnum.FORMULAR));\n row1.getCells().add(new CellDataDto(\"123456789\", CellDataTypeEnum.NUMBER));\n row1.getCells().add(new CellDataDto(new Date(), CellDataTypeEnum.DATE));\n\n sheet1.getRows().add(row1);\n data.add(sheet1);\n\n excelExportingService.exportToExcel(\"t1.xls\", data, false, ExcelFormatTypeEnum.XLS);\n excelExportingService.exportToExcel(\"t1.xlsx\", data, false, ExcelFormatTypeEnum.XLSX);\n }", "public void testExportToStream() throws FileNotFoundException {\n List<SheetDataDto> data = new ArrayList<SheetDataDto>();\n RowDataDto headerRow = new RowDataDto();\n headerRow.getCells().add(new CellDataDto(\"Col 1\", CellDataTypeEnum.TEXT));\n headerRow.getCells().add(new CellDataDto(\"Col 2\", CellDataTypeEnum.TEXT));\n headerRow.getCells().add(new CellDataDto(\"Col 3\", CellDataTypeEnum.TEXT));\n headerRow.getCells().add(new CellDataDto(\"Col 4\", CellDataTypeEnum.TEXT));\n\n SheetDataDto sheet1 = new SheetDataDto();\n sheet1.setName(\"First sheet\");\n sheet1.setHeaderRow(headerRow);\n\n RowDataDto row1 = new RowDataDto();\n row1.getCells().add(new CellDataDto(1d, CellDataTypeEnum.NUMBER));\n row1.getCells().add(new CellDataDto(\"IF(A2 > 0, \\\"1\\\", \\\"0\\\")\", CellDataTypeEnum.FORMULAR));\n row1.getCells().add(new CellDataDto(\"123456789\", CellDataTypeEnum.NUMBER));\n row1.getCells().add(new CellDataDto(new Date(), CellDataTypeEnum.DATE));\n\n sheet1.getRows().add(row1);\n data.add(sheet1);\n\n OutputStream out1 = new FileOutputStream(new File(\"t2-out.xls\"));\n excelExportingService.exportToExcel(null, out1, data, ExcelFormatTypeEnum.XLS);\n\n InputStream in2 = getClass().getResourceAsStream(\"/exportData/t2-in.xlsx\");\n OutputStream out2 = new FileOutputStream(new File(\"t2-out.xlsx\"));\n sheet1.setName(\"Append Sheet\");\n sheet1.setSheetIndex(0);\n excelExportingService.exportToExcel(in2, out2, data, ExcelFormatTypeEnum.XLSX);\n }", "public static void writeToExcelFromText() {\r\n\t\tExcelDataAccess payloadDataFile = new ExcelDataAccess(\r\n\t\t\t\t\"D:\\\\Users\\\\gawandejyostna\\\\Desktop\\\\WebServicesWorkspace\\\\GitRepo\\\\test-automation\\\\Bajaj_Automation\\\\Datatables\",\r\n\t\t\t\t\"CorrectPayloads\");\r\n\t\tpayloadDataFile.setDatasheetName(\"payloads\");\r\n\t\tint lastRowNum = payloadDataFile.getLastRowNum();\r\n\t\tfinal String TEXT_FILE_EXTENSION = \".txt\";\r\n\t\tFile[] packageDirectories = {\r\n\t\t\t\tnew File(\r\n\t\t\t\t\t\t\"D:\\\\Users\\\\gawandejyostna\\\\Desktop\\\\WebServicesWorkspace\\\\GitRepo\\\\test-automation\\\\Bajaj_Automation\\\\Datatables\\\\api\\\\inputrequests\"),\r\n\t\t\t\tnew File(\r\n\t\t\t\t\t\t\"D:\\\\Users\\\\gawandejyostna\\\\Desktop\\\\WebServicesWorkspace\\\\GitRepo\\\\test-automation\\\\Bajaj_Automation\\\\Datatables\\\\api\\\\exptresponse\\\\uat\") };\r\n\t\tfor (File packageDirectory : packageDirectories) {\r\n\t\t\tFile[] packageFiles = packageDirectory.listFiles();\r\n\t\t\tString packageName = packageDirectory.getName();\r\n\t\t\tString payloadColumn = \"Request Payload\";\r\n\t\t\tif (\"uat\".equals(packageName)) {\r\n\t\t\t\tpayloadColumn = \"Response Payload\";\r\n\t\t\t}\r\n\t\t\tfor (int i = 0; i < packageFiles.length; i++) {\r\n\t\t\t\tFile packageFile = packageFiles[i];\r\n\t\t\t\tString fileName = packageFile.getName();\r\n\t\t\t\tString fileNameWithoutExt = fileName.substring(0, fileName.indexOf(TEXT_FILE_EXTENSION));\r\n\t\t\t\t// We only want the .class files\r\n\t\t\t\tif (fileName.endsWith(TEXT_FILE_EXTENSION)) {\r\n\t\t\t\t\tString payload = readFromTextFile(packageFile);\r\n\t\t\t\t\tint rowNum = payloadDataFile.getRowNum(fileNameWithoutExt, 0);\r\n\t\t\t\t\tif (rowNum == -1) {\r\n\t\t\t\t\t\tlastRowNum = payloadDataFile.getLastRowNum();\r\n\t\t\t\t\t\trowNum = payloadDataFile.addRow();\r\n\t\t\t\t\t\tpayloadDataFile.setValue(rowNum, \"Test Case\", fileNameWithoutExt);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tpayloadDataFile.setValue(rowNum, payloadColumn,\r\n\t\t\t\t\t\t\tpayload.length() > 32000 ? payload.substring(0, 32000) : payload);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "void readExcel(File existedFile) throws Exception;", "public static void main(String[] args) throws IOException {\n\r\n\t\tFile src = new File(\"C:\\\\Users\\\\new\\\\workspace\\\\FirstTestNGProject\\\\TestData\\\\InputData.xlsx\");\r\n\t\tFileInputStream fis = new FileInputStream(src);\r\n\t\tXSSFWorkbook wb = new XSSFWorkbook(fis);\r\n\t\tXSSFSheet sheet1 = wb.getSheetAt(0);\r\n\t\tint rowcount = sheet1.getLastRowNum();\r\n\t\tfor(int i=0;i<rowcount;i++){\r\n\t\t\tString data0 = sheet1.getRow(i).getCell(0).getStringCellValue();\r\n\t\t\tSystem.out.print(data0+\" \");\r\n\t\twb.close();\r\n\t}\r\n}", "public FileInputStream getFileInputStream(){\n\t\t//String filePath=System.getProperty((\"user.dir\")+\"\\\\src\\\\test\\\\java\\\\data\\\\userData.xlsx\");\n\t\tString filePath=System.getProperty(\"user.dir\")+\"/src/test/java/data/userData.xlsx\";\n\t\t//String filePath=System.getProperty((\"user.dir\")+\"src/test/java/data/userData.xlsx\");\n\t\tFile srcFile=new File(filePath);\n\t\ttry {\n\t\t\tfis=new FileInputStream(srcFile);\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"Test Data file not found.terminating process!! :Check file path of test data file\");\n\t\t}\n\n\t\treturn fis;\n\t}", "public static void saveExcel() {\r\n\t\ttry {\r\n\t\t\tFileOutputStream fileOut = new FileOutputStream(Constant.EXCEL_PATH);\r\n\t\t\tworkBook.write(fileOut);\r\n\t\t\tfileOut.flush();\r\n\t\t\tfileOut.close();\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public static void readFromExcel_ApachePOI(String testCase) throws Exception{\n\t\tString fileName = \"TestData.xlsx\";\n\t\tString SAMPLE_XLSX_FILE_PATH = System.getProperty(\"user.dir\")+\"\\\\src\\\\test\\\\resources\\\\TestData\\\\TestData.xlsx\";\n\t\tFile file = new File(SAMPLE_XLSX_FILE_PATH);\n\t\tFileInputStream inputStream = new FileInputStream(file);\n\t\tWorkbook workbook = null;\n\t\tString fileExtensionName = fileName.substring(fileName.indexOf(\".\"));\n\t\t\n\t if(fileExtensionName.equals(\".xlsx\")){\n\n\n\t \tworkbook = new XSSFWorkbook(inputStream);\n\n\t }\n\n\t //Check condition if the file is xls file\n\n\t else if(fileExtensionName.equals(\".xls\")){\n\n\t //If it is xls file then create object of HSSFWorkbook class\n\n\t \tworkbook = new HSSFWorkbook(inputStream);\n\n\t }\n\t\t//System.out.println(\"Reading from right sheet\"); \n\t\tSheet sheet = workbook.getSheet(\"TestSheet\");\n\t\tfor(int i = 0;i<sheet.getLastRowNum();i++) {\n\t\t\tif(testCase.equalsIgnoreCase(sheet.getRow(i).getCell(0).getStringCellValue())) {\n\t\t\t\tRow row = sheet.getRow(i);\n\t\t\t\tString userID = row.getCell(1).getStringCellValue();\n\t\t\t\tint pwd = (int) row.getCell(2).getNumericCellValue();\n\t\t\t}\n\t\t}\n\t\tRow row = sheet.getRow(1);\n\t\tCell cell = row.getCell(0);\n\t\tString testCaseName = cell.getStringCellValue();\n\t\tString userID = row.getCell(1).getStringCellValue();\n\t\tint pwd = (int) row.getCell(2).getNumericCellValue();\n\t\tSystem.out.println(testCaseName);\n\t\tSystem.out.println(userID);\n\t\tSystem.out.println(pwd);\n\t\t\t\n\t\tworkbook.close();\n\t}", "@Test\r\n\t public void writeExcel(String fileName,String sheetName,String dataToWrite) throws IOException{\n\t \r\n\t File file = new File(\"D:\\\\output.xls\");\r\n\t \r\n\t //Create an object of FileInputStream class to read excel file\r\n\t \r\n\t FileInputStream inputStream = new FileInputStream(file);\r\n\t \r\n\t \t \r\n\t //Find the file extension by spliting file name in substing and getting only extension name\r\n\t \r\n\t String fileExtensionName = fileName.substring(fileName.indexOf(\".\"));\r\n\t \r\n\t //Check condition if the file is xlsx file\r\n\t \r\n\t Workbook guru99Workbook = null;\r\n\t \r\n\t\t\tif(fileExtensionName.equals(\".xlsx\")){\r\n\t \r\n\t //If it is xlsx file then create object of XSSFWorkbook class\r\n\t \r\n\t guru99Workbook = new XSSFWorkbook(inputStream);\r\n\t \r\n\t }\r\n\t \r\n\t //Check condition if the file is xls file\r\n\t \r\n\t else if(fileExtensionName.equals(\".xls\")){\r\n\t \r\n\t //If it is xls file then create object of XSSFWorkbook class\r\n\t \r\n\t guru99Workbook = new HSSFWorkbook(inputStream);\r\n\t \r\n\t }\r\n\t \r\n\t \r\n\t \r\n\t //Read excel sheet by sheet name \r\n\t \r\n\t HSSFSheet sheet = (HSSFSheet) guru99Workbook.getSheet(sheetName);\r\n\t \r\n\t //Get the current count of rows in excel file\r\n\t \r\n\t int rowCount = sheet.getLastRowNum()-sheet.getFirstRowNum();\r\n\t \r\n\t //Get the first row from the sheet\r\n\t \r\n\t Row row = sheet.getRow(0);\r\n\t \r\n\t //Create a new row and append it at last of sheet\r\n\t \r\n\t Row newRow = sheet.createRow(rowCount+1);\r\n\t \r\n\t //Create a loop over the cell of newly created Row\r\n\t \r\n\t for(int j = 0; j < row.getLastCellNum(); j++){\r\n\t \r\n\t //Fill data in row\r\n\t \r\n\t Cell cell = newRow.createCell(j);\r\n\t \r\n\t cell.setCellValue(dataToWrite);\r\n\t \r\n\t }\r\n\t \r\n\t //Close input stream\r\n\t \r\n\t inputStream.close();\r\n\t \r\n\t //Create an object of FileOutputStream class to create write data in excel file\r\n\t \r\n\t FileOutputStream outputStream = new FileOutputStream(file);\r\n\t \r\n\t //write data in the excel file\r\n\t \r\n\t guru99Workbook.write(outputStream);\r\n\t \r\n\t //close output stream\r\n\t \r\n\t outputStream.close();\t \r\n\t \r\n\t }", "public void detailTestPath() {\n // Get test run file\n File report_path = new File(System.getProperty(PATH) + TESTNG);\n // Check if the path exists\n if (!report_path.exists()) {\n System.out.println(SEE_THE_DETAIL_TEST__REPORT_ + System.getProperty(PATH) + LOGXML);\n // Get error log file\n File path = new File(System.getProperty(PATH) + ERROR_LOGLOGTXT);\n // If file exists then display error log file path\n if (path.exists()) {\n System.out.println(SEE_THE_DETAIL_ERROR__REPORT_ + System.getProperty(PATH) + ERROR_LOGLOGTXT);\n }\n }\n }", "public String getDataFilePath() {\r\n \t\treturn dataFile;\r\n \t}", "@Test\n public void testFileDownload() throws FileNotFoundException {\n ExcelFile testFile = new ExcelFile(\"0\", \"/Users/zhongyuanlu/IdeaProjects/reporting_system/temp.xlsx\");\n Mockito.when(excelService.getExcelBodyById(anyString())).thenReturn(new FileInputStream(\"temp.xlsx\"));\n Mockito.when(excelService.getExcelFileById(anyString())).thenReturn(testFile);\n given().accept(\"application/json\").get(\"/excel/0/content\").peek().\n then().assertThat()\n .statusCode(200);\n }", "@Test(priority = 1)\n\tpublic void validePathWithValideData() {\n\n\t\t\n\t\tSystem.out.println(\"file \"+currentDirectory);\n\t\tSystem.out.println( new File(\"./src/test/resources/Sovdata.xlsx\"));\n\t\t\n\t\ttest.log(LogStatus.INFO, \"My test is starting.....\");\n\t\tResponse resp=given()\n\t .contentType(\"multipart/form-data\")\n\t .multiPart(\"product_line\",\"testing\")\n\t .multiPart(\"file\", new File(\"./src/test/resources/Sovdata.xlsx\"))\n\t .post(APIPath.apiPath.POST_VALID_PATH);\n\n\t\tresp.then().body(\"message\",equalTo(\"SOV data uploaded successfully.\"));\n\t\ttest.log(LogStatus.PASS, \"SOV data uploaded successfully.\");\n\t\tAssert.assertEquals(resp.getStatusCode(),201);\n\t\ttest.log(LogStatus.PASS, \"Successfully validated status code expected 201 and Actual status code is :: \" + resp.getStatusCode());\n\n\t\t\n\t\ttest.log(LogStatus.INFO, \"My Test Has been ended \");\n\n\t}", "String getFilePath();", "public static void main(String[] args) {\n String filePath=\"C:\\\\down\\\\gogo.xls\";\r\n \r\n HSSFWorkbook workbook = new HSSFWorkbook(); // 새 엑셀 생성\r\n HSSFSheet sheet = workbook.createSheet(\"sheet1\"); // 새 시트(Sheet) 생성\r\n HSSFRow row = sheet.createRow(0); // 엑셀의 행은 0번부터 시작\r\n HSSFCell cell = row.createCell(0); // 행의 셀은 0번부터 시작\r\n cell.setCellValue(\"data\"); //생성한 셀에 데이터 삽입\r\n try {\r\n FileOutputStream fileoutputstream = new FileOutputStream(\"C:\\\\down\\\\gogo.xls\");\r\n workbook.write(fileoutputstream);\r\n fileoutputstream.close();\r\n System.out.println(\"엑셀파일생성성공\");\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n System.out.println(\"엑셀파일생성실패\");\r\n }\r\n\r\n}", "@DataProvider(name=\"testdata\")\n\tpublic Object[][] getData()\n\t{\t\n\t\tString projectPath = System.getProperty(\"user.dir\");\n\t\tObject[][] data= testData(projectPath+\"/excel/data.xlsx\", \"Sheet1\");\n\t\treturn data;\n\t}", "public static void main(String args[]) throws WorkSheetNotFoundException, CellNotFoundException, FileNotFoundException, IOException{\r\n /*\r\n //Test 1 - Creating empty XLS\r\n FileOutputStream fo=new FileOutputStream(\"Result.xls\");\r\n WorkBookHandle h=new WorkBookHandle();\r\n WorkSheetHandle y = h.getWorkSheet(\"Sheet1\");\r\n y.add(\"aa\", \"A1\");\r\n h.writeBytes(fo);\r\n fo.close();\r\n */ \r\n \r\n }", "public void getRowCount() {\n\n try {\n\n String FILE = \"src/test/resources/Datasheet.xlsx\";\n String SHEET_NAME = \"Master\";\n XSSFWorkbook workbook = new XSSFWorkbook();\n\n }catch (Exception exp)\n {\n exp.printStackTrace();\n System.out.println(exp.getMessage());\n System.out.println(exp.getCause());\n }\n }", "public List<FileRow> getExcel_file() {\r\n\t\treturn excel_file;\r\n\t}", "Path getFilePath();", "public static void main(String[] args) throws Throwable {\n\t\tFileInputStream fis = new FileInputStream(\"./Data/InputData.xlsx\");\r\n\t\t\t//Take control of that file\r\n\t\t\tWorkbook wb=WorkbookFactory.create(fis);\r\n\t\t\t//go to that particular sheet\r\n\t\t\tSheet sh = wb.getSheet(\"Sheet1\");\r\n\t\t\t//Go to that particular Row\r\n\t\t\tRow r = sh.getRow(6);\r\n\t\t\t//Keep the cell ready for writing purpose\r\n\t\t\tCell c = r.createCell(2);\r\n\t\t\t//Provide data\r\n\t\t\tc.setCellValue(\"Raghav Sir\");\r\n\t\t\t\r\n\t\t\t//open file in write mode\r\n\t\t\tFileOutputStream fos = new FileOutputStream(\"./Data/InputData.xlsx\");\r\n\t\t\t//save the changes made in the file\r\n\t\t\twb.write(fos);\r\n\t\t\t//print it\r\n\t\t\tSystem.out.println(\"Done\");\r\n\r\n\t}", "public void test47026_1() {\n Workbook source = _testDataProvider.openSampleWorkbook(\"47026.xlsm\");\n Sheet sheet = source.getSheetAt(0);\n Row row = sheet.getRow(0);\n Cell cell = row.getCell(0);\n cell.setCellType(Cell.CELL_TYPE_STRING);\n cell.setCellValue(\"456\");\n }", "public String read_XL_Data(String path,String sheet,int row,int cell) throws EncryptedDocumentException, FileNotFoundException, IOException \r\n{\r\n\tString data=\"\";\r\n\r\n\tWorkbook wb = WorkbookFactory.create(new FileInputStream(path));\r\n\tdata=wb.getSheet(sheet).getRow(row).getCell(cell).toString();\r\n\t\r\n\treturn data;\r\n}", "String getFilepath();", "public void WriteDataToExcel(String SheetName,int RowNumber,int ColumnNumber,String Value)\n\t{\t \n\t\tDate dNow = new Date( );\n\t\tSimpleDateFormat ft =new SimpleDateFormat (\"MMddYYYY\");\n\t\t\n\t\t try\n\t\t {\n\t\t\t FileInputStream fstream = new FileInputStream(System.getProperty(\"user.dir\")+\"//TestResult_\"+ft.format(dNow)+\".xls\");\n\t\t\t org.apache.poi.ss.usermodel.Workbook wb = (org.apache.poi.ss.usermodel.Workbook)WorkbookFactory.create(fstream); \n\t\t\t Sheet sheet =(Sheet)wb.getSheetAt(0); \n\t\t\t Row row = (Row)((org.apache.poi.ss.usermodel.Sheet)sheet).getRow(RowNumber); \n\t\t\t Cell cell=row.createCell(ColumnNumber);\n\t\t\t cell.setCellValue(Value);\n\t\t\t FileOutputStream fileout=new FileOutputStream(System.getProperty(\"user.dir\")+\"//PG HealthCheck List_\"+ft.format(dNow)+\".xls\");\n\t\t\t wb.write(fileout);\n\t\t\t fileout.close();\n\t\t }\n\t\t catch (Exception e){//Catch exception if any\n\t\t\t assertTrue(false);\n\t\t }\t\t\n\t}", "public static void main(String[] args) throws IOException {\n\t\tFile file=new File(\"E:\\\\AutomationSelenium\\\\ApachePOI\\\\testdata.xlsx\");\n\t\tFileInputStream fis=new FileInputStream(file);\n\t\t\n\t\tXSSFWorkbook wb=new XSSFWorkbook(fis);\n\t\tXSSFSheet sheet=wb.getSheetAt(0);\n\t\tString data0=sheet.getRow(1).getCell(0).getStringCellValue();\n\t\tString data1=sheet.getRow(1).getCell(1).getStringCellValue();\n\t\tSystem.out.println(data0+\"\"+data1);\n\t\twb.close();\n\t}", "Path getBookingSystemFilePath();", "public String getReportPath();", "@SuppressWarnings(\"resource\")\n\tpublic String init_excel(String excel_name_with_extension, Integer sheet_index_starting_from_0, Integer row_index_starting_from_0, Integer column_index_starting_from_0)\n\t\t\tthrows Exception {\n\n\t\tString folderPath = \"src//test//resources//TestData//\"; // keep excel in this folder path\n\t\tString element_Image = System.getProperty(\"user.dir\") + File.separator + folderPath + excel_name_with_extension;\n\n\t\tFile file = new File(element_Image);\n\t\tFileInputStream fis = new FileInputStream(file); // this contains raw data from the excel\n\t\tXSSFWorkbook workbook = new XSSFWorkbook(fis); // creating workbook\n\t\tXSSFSheet sheet = workbook.getSheetAt(sheet_index_starting_from_0); // getting the sheet from workbook\n\n\t\tString cellValue = sheet.getRow(row_index_starting_from_0).getCell(column_index_starting_from_0).getStringCellValue(); // fetching data from the\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// sheet\n\t\treturn cellValue;\n\t}", "@When(\"^I Create the Excel Workbook \\\"([^\\\"]*)\\\" and create the test data$\")\r\n\tpublic void I_Create_the_Excel_Workbook_and_create_the_test_data(String arg1) throws Throwable {\n\t\tExcelDataConfig excelconfig = new ExcelDataConfig(\"E:\\\\sagar laptop\\\\cucumber jars\\\\TestData.xlsx\");\r\n\r\n\t\tSystem.out.println(excelconfig.getData(0, 0, 1));\r\n\t\tString uname = excelconfig.getData(1, 0, 0);\r\n\t\tString pwd = excelconfig.getData(1, 0, 1);\r\n\r\n\t\tdriver.findElement(By.name(\"username\")).sendKeys(uname);\r\n\t\tdriver.findElement(By.name(\"password\")).sendKeys(pwd);\r\n\r\n\t}", "@Test\n public void filePathTest() {\n // TODO: test filePath\n }", "public static void main(String[] args) throws Exception {\n\t\tFile f=new File(\"./TestData/TestData.xlsx\");\r\n\t\tFileInputStream fis=new FileInputStream(f);\r\n\r\n\t\tWorkbook wk = WorkbookFactory.create(fis);\r\n\t\tSheet sh = wk.getSheet(\"Demo\");\r\n\t\tRow r=null;\r\n\t\tif (sh!=null) {\r\n\t\t\tr=sh.getRow(0);\r\n\t\t}\r\n\t\tCell c=r.getCell(3);\r\n\t\tif (c==null)\r\n\t\t\tc=r.createCell(3);\r\n\t\tc.setCellValue(\"Over-WRITTEN\");\r\n\t\tFileOutputStream fos=new FileOutputStream(f);\r\n\t\twk.write(fos);\r\n\t\tfos.close();\r\n\t\twk.close();\r\n\t\tfis.close();\r\n\t\tSystem.out.println(\"pass\");\r\n\t}", "public String email(int a) throws IOException {\r\n\t\t\t \r\n\t\t\t FileInputStream fil = new FileInputStream(new File(\"C:\\\\Users\\\\BLTuser.BLT147\\\\Desktop\\\\Demo\\\\TestFramework\\\\src\\\\test\\\\resources\\\\Testdata\\\\testdata.xlsx\"));\r\n\t\t\t XSSFWorkbook workbook = new XSSFWorkbook(fil);\r\n\t\t\t XSSFSheet sheet=workbook.getSheet(\"Sheet1\");\r\n\t\t\t int count=sheet.getLastRowNum();\r\n\t\t\t System.out.println(count);\r\n\t\t\t \r\n\t\t\t\t XSSFRow row =sheet.getRow(a);\r\n\t\t\t\t XSSFCell cell=row.getCell(3);\r\n\t\t\t\t String e=cell.getStringCellValue();\r\n\t\t\t\t \r\n\t \r\n\t\t\treturn e;\r\n\t}", "@Override\r\n public void execute(Workbook workbook) {\n InputStream fileStream = this.getResourceStream(\"xlsx/Employee absence schedule.xlsx\");\r\n workbook.open(fileStream);\r\n }", "public void writeResultData(String[] strTestData,String strFilePath,String strSheetName) throws Exception{\n\t\t\tWorkbook wb = Workbook.getWorkbook(new File(strFilePath));\n\n\t\t\t// Create a writable workbook with the same name using the workbook\n\t\t\t// object that has been read from file\n\t\t\tWritableWorkbook wwb = Workbook.createWorkbook(new File(strFilePath), wb);\n\n\t\t\t// Total number of rows in the sheet\n\t\t\tint intRowCount = wwb.getSheet(strSheetName).getRows();\n\t\t\tfor (int intRow = 1; intRow <= intRowCount; intRow++) {\n\n\t\t\t\t// Target cell\n\t\t\t\tWritableCell cell = wwb.getSheet(strSheetName).getWritableCell(1, intRow);\n\t\t\t\tif (cell.getType() == CellType.EMPTY) {\n\t\t\t\t\tWritableCellFormat wcf = new WritableCellFormat();\n\t\t\t\t\twcf.setBorder(Border.ALL, BorderLineStyle.THIN);\n\t\t\t\t\twcf.setWrap(true);\n\n\t\t\t\t\tWritableFont courier10pt = new WritableFont(\n\t\t\t\t\t\t\tWritableFont.COURIER, 10);\n\t\t\t\t\t// Define the cell format\n\t\t\t\t\tcourier = new WritableCellFormat(courier10pt);\n\t\t\t\t\twcf.setFont(courier10pt);\n\n\t\t\t\t\tfor(int intRec=1;intRec<=strTestData.length;intRec++){\n\n\t\t\t\t\t\tLabel label1 = new Label(intRec, intRow, strTestData[intRec-1], wcf);\n\t\t\t\t\t\twwb.getSheet(strSheetName).addCell(label1);\t\t\t\t\t\n\n\t\t\t\t\t}\n\n\t\t\t\t\t// Write the data\n\t\t\t\t\twwb.write();\n\t\t\t\t\tintRow = intRowCount + 1;\n\n\t\t\t\t}\n\n\n\t\t\t}\n\n\t\t\twwb.close();\n\t\t}", "public String getFilePath() {\n\t\treturn Constants.CSV_DIR+getFileName();\n\t}", "public static void main(String[] args) throws IOException {\n\t\tFile m=new File(\"C:\\\\Users\\\\raja sekar\\\\eclipse-workspace\\\\MavenDay1\\\\MavenProject\\\\testdata\\\\Arun.xlsx\");\n\t\tFileInputStream stream=new FileInputStream(m);\n\t\t\n\t\t//Workbook\n\t\tWorkbook w=new XSSFWorkbook(stream);\n\t\t//Sheet\n\t\tSheet s=w.createSheet(\"List1\");\n\t\t//Row\n\t\tRow r=s.createRow(3);\n\t\t//Cell\n\t\tCell c=r.createCell(3);\n\t\tc.setCellValue(\"Ganesh\");\n\t\t\n\t\tFileOutputStream o=new FileOutputStream(m);\n\t\tw.write(o);\n\t\tSystem.out.println(\"Success\");\n\t\t}", "@Test\n public void test(){\n ExcelUtil qa3Sheet = new ExcelUtil(\"src/test/resources/Vytrack testusers.xlsx\", \"QA3-short\");\n // 1 based , not 0 based\n int rowCount = qa3Sheet.rowCount();\n // 1 based, not 0 based\n int colCount = qa3Sheet.columnCount();\n System.out.println(\"rowCount = \" + rowCount);\n System.out.println(\"colCount = \" + colCount);\n\n List<String> columnsNames = qa3Sheet.getColumnsNames();\n System.out.println(\"columnsNames = \" + columnsNames);\n // 0 based, get specific cell value based on index\n String cellData = qa3Sheet.getCellData(2, 3);\n System.out.println(\"cellData = \" + cellData);\n\n // get all table values in a list\n List<Map<String, String>> dataList = qa3Sheet.getDataList();\n\n System.out.println(dataList.get(5).get(\"firstname\"));\n\n String[][] dataArray = qa3Sheet.getDataArray();\n\n System.out.println(dataArray[1][1]);\n\n }", "public static String selectExcelFile (){\n\t\t\tfinal JFileChooser fc = new JFileChooser();\r\n\t\t\tfc.setFileSelectionMode(JFileChooser.FILES_ONLY);\r\n\t\t\t\r\n\t\t\t//In response to a button click:\r\n\t\t\tint folderTarget = fc.showDialog(fc, \"Select Ecxel File\");\r\n\t\t\t\r\n\t\t\tString path =\"\";\r\n\t\t\tif (folderTarget == JFileChooser.APPROVE_OPTION){\r\n\t\t\t\tpath = fc.getSelectedFile().getAbsolutePath();\r\n\t\t\t\treturn path;\r\n\t\t\t} else if (folderTarget == JFileChooser.CANCEL_OPTION){\r\n\t\t\t\tfc.setVisible(false);\r\n\t\t\t}\t\r\n\t\t\treturn path;\r\n\t\t}", "@DataProvider(name =\"excel-data\")\n \tpublic Object[][] excelDP() throws IOException{\n \tObject[][] arrObj = getExcelData(\"C:\\\\Users\\\\kalpe\\\\eclipse-workspace\\\\DataProvider\\\\DataFiles\\\\loginData.xlsx\",\"Sheet1\");\n \treturn arrObj;\n \t}", "java.lang.String getFilePath();", "public static void main(String[] args) {\n\t\tString projectLocation=System.getProperty(\"user.dir\");\n\t\tExcelDataConfig excelDataConfig=new ExcelDataConfig(projectLocation+\"/Data/Data.xlsx\");\n\t\t\n\t\texcelDataConfig.writeExcelData(projectLocation+\"/Data/Data.xlsx\");\n\t\t\n\t\texcelDataConfig.getFullExcelData(projectLocation+\"/Data/Data.xlsx\", \"raghu\");\n\t\t\n\t\t\n\t}", "public static void main(String[] args) throws FileNotFoundException,IOException, JXLException {\nFileOutputStream fo=new FileOutputStream(\"./testdata/testoutput.xls\");\r\nWritableWorkbook ww=Workbook.createWorkbook(fo);\r\nWritableSheet ws=ww.createSheet(\"testing\",0);\r\n//to move data into specific loationa using labels\r\nLabel a = new Label(0,0,\"Username\");//now the label store in ram loaction\r\n// to move data into specific location\r\nLabel b = new Label(1,0,\"password\");\r\nws.addCell(b);\r\n\r\nws.addCell(a);\r\nww.write();\r\nww.close();\r\n\t}", "@Test\r\n\tpublic void startup(){\r\n\tExcelutil e=new Excelutil(\"E://EmpData.xlsx\", \"Sheet1\");\r\n\t\r\n\tString strdata=e.stringdata(1, 1);\r\n\tSystem.out.println(strdata);\r\n\tdouble numdata1=e.numdata(1, 0);\r\n\tSystem.out.println(numdata1);\r\n\te.rowcount();\r\n\te.colcount();\r\n}", "@SuppressWarnings(\"deprecation\")\n@Test\n public void f() throws Exception{\nFile fi=new File(\"e://Loginwebtourdata.xls\");\n\t\t Workbook w=Workbook.getWorkbook(fi);\n\t\t Sheet s=w.getSheet(0);\n// Creating Result file in Results columns\n\t WritableWorkbook wwb=Workbook.createWorkbook(fi,w);\n\t\tWritableSheet sh=wwb.getSheet(0);\nfor (int i = 1; i < s.getRows(); i++) {\n//Enter username, Password and click on signin by taking data from testdata file\t\ndriver.findElement(By.name(\"userName\")).sendKeys(s.getCell(0, i).getContents());\ndriver.findElement(By.name(\"password\")).sendKeys(s.getCell(1, i).getContents());\ndriver.findElement(By.name(\"login\")).click();\n\tThread.sleep(1000);\n//Validate signout, if available assign Pass to str, else assign Fail to str\t\n\tif(selenium.isElementPresent(\"link=SIGN-OFF\"))\n\t{\n\tdriver.findElement(By.linkText(\"SIGN-OFF\")).click();\n\tThread.sleep(1000);\n\tdriver.get(\"http://newtours.demoaut.com\");\n\tdriver.manage().window().maximize();\n\tReporter.log(\"both user and password are valid\",true);\n\tstr=\"Pass\";\n\t}else{\n\t\tstr=\"Fail\";\n\t\tReporter.log(\"both user and password are invalid\",true);\n\t\t\t}\n// Add the str value to Result file under result column\t\n\tLabel result=new Label(2, i, str);\n\tsh.addCell(result);\n}//Add 3 labels in Result file\n\t\t Label rs=new Label(2,0,\"Result\");\n\t\t sh.addCell(rs);\n\t// Write and close result file\t \n\t\t wwb.write();\n\t\t wwb.close();\n\t\t }", "public static void main(String[] args) throws IOException {\n\t\t\r\n\t\tString path = System.getProperty(\"user.dir\") + \"\\\\src\\\\excelFileHandling\\\\TestData1.xls\";\r\n\t\tFileInputStream file = new FileInputStream(path);\r\n\t\t\r\n\t\tHSSFWorkbook wb = new HSSFWorkbook(file);\r\n\t\tHSSFSheet sheet = wb.createSheet(\"Sheet2\");\r\n\t\t\r\n\t\t\r\n\t\tString[][] data= {{\"Name\",\"Surname\",\"Address\"},\r\n\t\t {\"Vishal\",\"Shinde\",\"Pune\"},\r\n\t\t {\"Satya\",\"Shinde\",\"Pune\"}\r\n\t\t };\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tfor (int i=0; i<data.length; i++)\r\n\t\t\t\t\t{\r\n\t\t\t\r\n\t\t\tHSSFRow row =sheet.getRow(i);\r\n\t\t\t\r\n\t\t\tif(row==null)\t\r\n\t\t\t\t\r\n\t\t\t\trow= sheet.createRow(i);\r\n\t\t\t\r\n\t\t\tfor (int j=0; j<data[0].length; j++)\r\n\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\tHSSFCell cell = row.getCell(j);\r\n\t\t\t\tif(cell == null)\r\n\t\t\t\t\tcell = row.createCell(j);\r\n\t\t\t\t\r\n\t\t\t\tcell.setCellValue(data[i][j]);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tFileOutputStream fileout = new FileOutputStream(path);\r\n\t\twb.write(fileout);\r\n\t\tfileout.close();\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\r\n\t}", "public void setExcelFile(String excelFile) {\r\n this.excelFile = excelFile;\r\n }", "public String getDataPath() {\n\t\treturn \"data\";\r\n\t}", "public static File getTestFile( String path )\r\n {\r\n return new File( getBasedir(), path );\r\n }", "void writeExcel(File newFile) throws Exception;", "public static ArrayList<String> getData3() throws Exception {\n\t\tString filepath = \"F:\\\\Selenium Practice\\\\Framework\\\\TestData\\\\TestData.xlsx\";\n\t\tFile f = new File(filepath);\n\t\tFileInputStream str = new FileInputStream(f);\n\t\tWorkbook w = new XSSFWorkbook(str);\n\t\tArrayList<String> a = new ArrayList<String>();\n\t\tString name = \"\";\n\t\tint nos = w.getNumberOfSheets();\n\t\tfor (int i = 0; i < nos; i++) {\n\t\t\tif (w.getSheetName(i).equalsIgnoreCase(\"TestData\")) {\n\t\t\t\tSheet sh = w.getSheetAt(i);\n\t\t\t\tIterator<Row> rt1 = sh.rowIterator();\n\t\t\t\tRow r1 = rt1.next();\n\t\t\t\tIterator<Cell> ct1 = r1.cellIterator();\n\t\t\t\tint column = 0, k = 0;\n\t\t\t\twhile (ct1.hasNext()) {\n\t\t\t\t\tCell c1 = ct1.next();\n\t\t\t\t\tif (c1.getStringCellValue().equalsIgnoreCase(\"TestCase\")) {\n\t\t\t\t\t\tcolumn = k;\n\t\t\t\t\t}\n\t\t\t\t\tk++;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"TestCase Column Index: \" + column);\n\t\t\t\twhile (rt1.hasNext()) {\n\t\t\t\t\tRow r2 = rt1.next();\n\t\t\t\t\tif (r2.getCell(column).getStringCellValue().equalsIgnoreCase(\"TC01\")) {\n\t\t\t\t\t\tIterator<Cell> ct2 = r2.cellIterator();\n\t\t\t\t\t\twhile (ct2.hasNext()) {\n\t\t\t\t\t\t\tCell c3 = ct2.next();\n\t\t\t\t\t\t\tint ct = c3.getCellType();\n\t\t\t\t\t\t\tswitch (ct) {\n\t\t\t\t\t\t\tcase Cell.CELL_TYPE_NUMERIC:\n\t\t\t\t\t\t\t\tif (ct == 0) {\n\t\t\t\t\t\t\t\t\tif (DateUtil.isCellDateFormatted(c3)) {\n\t\t\t\t\t\t\t\t\t\tSimpleDateFormat form = new SimpleDateFormat(\"dd-MMM-yy\");\n\t\t\t\t\t\t\t\t\t\tname = form.format(c3.getDateCellValue());\n\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tdouble d = c3.getNumericCellValue();\n\t\t\t\t\t\t\t\t\t\tlong l = (long) d;\n\t\t\t\t\t\t\t\t\t\tname = String.valueOf(l);\n\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\tbreak;\n\t\t\t\t\t\t\tcase Cell.CELL_TYPE_STRING:\n\t\t\t\t\t\t\t\tif (ct == 1) {\n\t\t\t\t\t\t\t\t\tname = c3.getStringCellValue();\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ta.add(name);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\t\treturn a;\n\t}", "public String getHomeworkfilepath() {\n return homeworkfilepath;\n }", "public File getDataFile();", "public static void main(String[] args) throws IOException {\n write2Excel(new File(\"C:\\\\Users\\\\Administrator\\\\Desktop\\\\test.xls\"));\n }", "@Test\n// @Disabled\n public void testExcelGeneration() throws IOException {\n // Mockito.when(excelService.getExcelBodyById(anyString())).thenReturn(new FileInputStream(\"temp.xlsx\"));\n ExcelRequest testRequest = new ExcelRequest();\n ExcelData testData = new ExcelData();\n File file = new File(\"/Users/zhongyuanlu/IdeaProjects/reporting_system/temp.xlsx\");\n Mockito.when(excelService.singleSlicer(testRequest)).thenReturn(testData);\n Mockito.when(excelGenerationService.generateExcelReport(testData)).thenReturn(file);\n given().accept(\"application/json\").contentType(ContentType.JSON).body(\"{\\\"headers\\\":[\\\"Name\\\",\\\"Age\\\"], \\\"data\\\":[[\\\"Teresa\\\",\\\"5\\\"],[\\\"Daniel\\\",\\\"1\\\"]]}\").post(\"/excel\").peek().\n then().assertThat()\n .statusCode(400);\n }", "public String[][] openExcelFile(String inputFilePath);", "@DataProvider(name=\"Unverified test data\")\n\t\n\tpublic String[][] getTestData()\n\t {\n\t\tlog.info(\"reading exceldata\");\n\t\tString[][] testRecords=getData(\"Other.xlsx\", \"Unverified\");\n\t\treturn testRecords;\n\t }", "@Override\n @Test\n public void testXlsx() throws IOException, InvalidFormatException\n {\n super.testXlsx();\n }", "@Override\n @Test\n public void testXlsx() throws IOException, InvalidFormatException\n {\n super.testXlsx();\n }", "public static File createStatisticsFile(User currentUser){\n\t\t\n\t\t//TODO WHOLE APP TO USE ONE HREF.\n\t\t//final String href = \"http://localhost:9000/\";\n\t\t\n\t\ttry {\n\t\t\t// creates the \"excel sheet\" with its name;\n\t\t\tHSSFWorkbook workbook = new HSSFWorkbook();\n\t HSSFSheet sheet = workbook.createSheet(\"Statistics\"); \n\t String fileName = UUID.randomUUID().toString().replace(\"-\", \"\") + \".xls\";\n\t // creates the folder with the file name; \n\t new File(statsFilePath).mkdirs();\n\t File statisticFile = new File(statsFilePath +fileName);\n\t \n\t applyTheStringViewForStats(currentUser);\n\t\t\t \n\t //SETTING STYLE\n\t HSSFCellStyle style = workbook.createCellStyle();\n\t style.setBorderTop((short) 6); \n\t style.setBorderBottom((short) 1); \n\t style.setFillBackgroundColor(HSSFColor.GREY_80_PERCENT.index);\n\t style.setFillForegroundColor(HSSFColor.GREY_80_PERCENT.index);\n\t style.setFillPattern(HSSFColor.GREY_80_PERCENT.index);\n\t \n\t HSSFFont font = workbook.createFont();\n\t font.setFontName(HSSFFont.FONT_ARIAL);\n\t font.setFontHeightInPoints((short) 10);\n\t font.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD);\n\t font.setColor(HSSFColor.BLACK.index);\t \n\t style.setFont(font);\n\t style.setWrapText(true);\n\t \n\t //Header cells (the first header row) and added style !\n\t HSSFRow rowhead= sheet.createRow((short)0);\n\t \n\t HSSFCell bitpikId = rowhead.createCell(0);\n\t bitpikId.setCellValue(new HSSFRichTextString(\"BitPik id\"));\n\t bitpikId.setCellStyle(style);\n\t \n\t HSSFCell productName = rowhead.createCell(1);\n\t productName.setCellValue(new HSSFRichTextString(\"Ime proizvoda\"));\n\t productName.setCellStyle(style);\n\t \n\t HSSFCell productPrice = rowhead.createCell(2);\n\t productPrice.setCellValue(new HSSFRichTextString(\"Cijena\"));\n\t productPrice.setCellStyle(style);\n\t \n\t HSSFCell publishedDate = rowhead.createCell(3);\n\t publishedDate.setCellValue(new HSSFRichTextString(\"Datum objave\"));\n\t publishedDate.setCellStyle(style); \n\t \n\t HSSFCell isSold = rowhead.createCell(4);\n\t isSold.setCellValue(new HSSFRichTextString(\"Prodat artikal\"));\n\t isSold.setCellStyle(style); \n\t \n\t HSSFCell isSpecial = rowhead.createCell(5);\n\t isSpecial.setCellValue(new HSSFRichTextString(\"Izdvojen\"));\n\t isSpecial.setCellStyle(style); \n\t \n\t HSSFCell noOfClicks = rowhead.createCell(6);\n\t noOfClicks.setCellValue(new HSSFRichTextString(\"Br. pregleda\"));\n\t noOfClicks.setCellStyle(style); \n\t \n\t HSSFCell noOfComments = rowhead.createCell(7);\n\t noOfComments.setCellValue(new HSSFRichTextString(\"Br. komentara\"));\n\t noOfComments.setCellStyle(style);\n\t \n\t rowhead.setHeight((short)20);\n\t //Creating rows for each product from the list allProducts. \n\t // starting from the row (number 1.) - we generate each cell with its value;\n\t int rowIndex = 1;\n\t \n\t for (Product product: allProducts){\n\t\t \tHSSFRow row= sheet.createRow(rowIndex);\n\t\t \trow.createCell(0).setCellValue(product.id);\n\t\t row.createCell(1).setCellValue(product.name);\n\t\t row.createCell(2).setCellValue(product.price);\n\t\t row.createCell(3).setCellValue(product.publishedDate); \t \n\t\t row.createCell(4).setCellValue(product.statsProducts.isItSold); \t\n\t\t row.createCell(5).setCellValue(product.statsProducts.isItSpecial); \n\t\t \n\t\t row.createCell(6).setCellValue(product.statsProducts.noOfClicksS); \t\n\t\t Logger.info(\"noOfclicks Prod.\" +product.name + \" je > \" +product.statsProducts.noOfClicksS);\n\t\t row.createCell(7).setCellValue(product.statsProducts.noOfComments); \n\t\t Logger.info(\"noOfcomments Prod.\" +product.name + \" je > \" +product.statsProducts.noOfClicksS);\n\t\t rowIndex++;\n\t }\n\t \n\t //rowhead.setRowStyle(style);\n\t //auto-sizing all of the columns in the sheet generated;\n\t for(int i=0; i<8; i++){\n\t \t sheet.autoSizeColumn((short) i);\t\n\t }\t \n\t \n\t // putting the File in FileOutPutStream();\n\t FileOutputStream fileOut = new FileOutputStream(statisticFile);\n\t workbook.write(fileOut);\n\t fileOut.flush();\n\t fileOut.close();\n\t workbook.close();\n\t \n\t return statisticFile;\n\t \n\t\t} catch (FileNotFoundException e) {\n\t\t\tLogger.error(\"Statistic file exception \", e );\t\t\t\n\t\t} catch (IOException e) {\n\t\t\tLogger.error(\"IO exception\", e);\n\t\t} \n\t\treturn null;\n\t}", "public static void main(String[] args) throws IOException {\n\t\tFileInputStream fis=new FileInputStream(System.getProperty(\"user.dir\")+ \"\\\\src\\\\test\\\\java\\\\resources\\\\Excel.xlsx\");\n\t\tXSSFWorkbook workbook=new XSSFWorkbook(fis);\n\t\t int sheets=workbook.getNumberOfSheets();\n\t\t System.out.println(sheets);\n\t\t for(int i=0;i<sheets;i++)\n\t\t {\n\t\t \t if(workbook.getSheetName(i).equalsIgnoreCase(\"testdata\"))\n\t\t \t {\n\t\t \t\tXSSFSheet sheet=workbook.getSheetAt(i);\n\t\t \t\t//access to all the rows\n\t\t \t\t Iterator<Row> rows= sheet.iterator();\n\t\t \t\t //to print allthe values from the excel sheet\n\t\t \t\t while(rows.hasNext())\n\t\t \t\t {\n\t\t \t\t Row r\t=rows.next();\n\t\t \t\t \n\t\t \t\t Iterator<Cell> ce=r.cellIterator();\n\t\t \t\t while(ce.hasNext())\n\t \t\t {\n\t \t\t \tSystem.out.println(ce.next().getStringCellValue());\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\n\t\t \t\t \n\t\t \t\t \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 }", "public static void main(String[] args) throws IOException {\n\n String filePath = System.getProperty(\"user.dir\") + \"/testData/Homework.xlsx\";\n\n FileInputStream fis = new FileInputStream(filePath);\n\n Workbook b = new XSSFWorkbook(fis);\n\n Sheet sheet = b.getSheet(\"Companies\");\n\n //print title of the fifth column\n System.out.println(sheet.getRow(0).getCell(4).toString());\n\n //print number of rows in a file\n int numberRows = sheet.getRow(0).getPhysicalNumberOfCells();\n System.out.println(numberRows);\n\n //create HashSet with double parameter\n //do not contain the title - means start from index 1\n //iterate through and add to the set\n Set<Double> values =new HashSet<>();\n for (int row = 1; row < numberRows; row++) {\n Double valueCol4 = sheet.getRow(row).getCell(4).getNumericCellValue();\n values.add(valueCol4);\n }\n //print the hashset with double value\n System.out.println(values);\n }", "public String getWorkingDataFile()\n\t{\n\t return workingDataFileName;\n\t}", "public static void setExcelFile(String Path,String SheetName) throws Exception {\n\n\t\t\ttry {\n\n \t\t\t// Open the Excel file\n\n\t\t\tFileInputStream ExcelFile = new FileInputStream(Path);\n\n\t\t\t// Access the required test data sheet\n\n\t\t\tExcelWBook = new XSSFWorkbook(ExcelFile);\n\n\t\t\tExcelWSheet = ExcelWBook.getSheet(SheetName);\n\n\t\t\t} catch (Exception e){\n\n\t\t\t\tthrow (e);\n\n\t\t\t}\n\t\t\t\n\n\t}", "public static void main(String[] args) throws UnsupportedEncodingException, FileNotFoundException {\n InputStream in = Thread.currentThread().getContextClassLoader().getResourceAsStream(\"riddles.xls\");\n\t\t\n InputStream is = new FileInputStream(new File(\"C:\\\\Users\\\\sean\\\\workspace\\\\mlymoon\\\\src\\\\main\\\\resources\\\\riddles.xls\"));\n\t\tExcelUtil eu = new ExcelUtil();\n List<Object> ls = eu.importDataFromExcel(new Item(), in, \"riddles.xls\");\n for(Object item : ls){\n \t Item i = (Item) item;\n \t System.out.println(i.getAnswer()+\"##\"+i.getConundrum());\n }\n String[] excelHeader = { \"所属区域(地市)\", \"机房\", \"机架资源情况\", \n \t \"\", \"端口资源情况\", \"机位资源情况\", \"\", \"\", \"设备资源情况\", \n \t \"\", \"\", \"IP资源情况\", \"\", \"\", \"\", \"\", \"网络设备数\" };\n /*ApplicationContext context = \n\t new ClassPathXmlApplicationContext(\"appContext.xml\");\n\t CustomerService customerService = context.getBean(\"customerService\",CustomerService.class);\n List<Customer> customers=customerService.findAll(null, null);\n FileOutputStream fout = new FileOutputStream(\"I:/students.xls\"); \n\t\tExcelUtil eu = new ExcelUtil();\n\t\teu.exportDataToExcel(customers, excelHeader, \"dddddd\", fout);*/\n\t}", "public FileData export() {\n\t\ttry(Workbook workbook = createWorkbook();\n\t\t\tByteArrayOutputStream outputStream = new ByteArrayOutputStream();) {\n\t\t\tsheet = workbook.createSheet();\n\t\t\tcreateRows();\n\t\t\tworkbook.write(outputStream);\n\t\t\treturn getExportedFileData(outputStream.toByteArray());\n\t\t} catch (IOException ex) {\n\t\t\tthrow new RuntimeException(\"error while exporting file\",ex);\n\t\t}\n\t}", "public static void main(String[] args) throws IOException {\n\t\tSystem.getProperty(\"user.dir\");\n\t\tFileOutputStream fileout = new FileOutputStream(\"C:\\\\Workspace\\\\Module7\\\\Workbook.xls\");\n\t\tHSSFWorkbook wb = new HSSFWorkbook();\n\t\t\n\t\t\n\t\t//creating sheet\n\t\t\n\t\tHSSFSheet sheet1 = wb.createSheet(\"First Sheet\");\n\t\tHSSFSheet sheet2 = wb.createSheet(\"Second sheet\");\n\t\t\n\t\t\n\t\t//Creating rows and cells\n\t\tfor (int i=0; i<100; i++)\n\t\t{\n\t\t\tHSSFRow row = sheet1.createRow(i);\n\t\t\tfor (int j=0; j<4; j++)\n\t\t\t{\n\t\t\t\tHSSFCell cell = row.createCell(j);\n\t\t\t\tcell.setCellValue(j);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\twb.write(fileout);\n\t\tfileout.close();\n\t\t\n\t\tString ProjectLocation = System.getProperty(\"user.dir\");\n\t\t\n\t\tSystem.out.println(ProjectLocation);\n\t\t\n\t\tFileOutputStream FO = new FileOutputStream (ProjectLocation + \"\\\\Playing.xls\");\n\t\tHSSFWorkbook wb2 = new HSSFWorkbook ();\n\t\t\n\t\tHSSFSheet sheet3 = wb.createSheet(\"new sheet\");\n\t\tHSSFRow row1 = sheet3.createRow(0);\n\t\trow1.createCell(0).setCellValue(true);\n\t\trow1.createCell(1).setCellValue(2);\n\t\t\n\t\t\n\t\twb2.write(FO);\n\t\tFO.close();\n\t\t\n\t /*HSSFWorkbook wb = new HSSFWorkbook();\n\t HSSFSheet sheet = wb.createSheet(\"new sheet\");\n\t HSSFRow row = sheet.createRow((short)2);\n\t row.createCell(0).setCellValue(1.1);\n\t row.createCell(1).setCellValue(new Date());\n\t row.createCell(2).setCellValue(Calendar.getInstance());\n\t row.createCell(3).setCellValue(\"a string\");\n\t row.createCell(4).setCellValue(true);\n\t row.createCell(5).setCellType(Cell.CELL_TYPE_ERROR);\n\n\t // Write the output to a file\n\t FileOutputStream fileOut = new FileOutputStream(\"workbook2.xls\");\n\t wb.write(fileOut);\n\t fileOut.close();*/\n\t\t}", "public WriteExcelXLS(String filePath) {\n\t\tsuper(filePath);\n\t\tthis.book = new HSSFWorkbook();\n\t\tthis.sheet = book.createSheet(\"Teste\");\n\t\tthis.cstyle = new CellStyleList(book);\n\t}", "File getWorkfile();", "Path getModBookFilePath();", "public static void main(String[] args) throws Exception\r\n\t{\n\t\tFile f=new File(\"testdata.xls\");\r\n\t\tWorkbook rwb=Workbook.getWorkbook(f);\r\n\t\tSheet rsh=rwb.getSheet(0); //0 means sheet1\r\n\t\tint nour=rsh.getRows();\r\n\t\t//Open same excel file for writing\r\n\t\tWritableWorkbook wwb=Workbook.createWorkbook(f,rwb);\r\n\t\tWritableSheet wsh=wwb.getSheet(0); //0 means sheet1\r\n\t\t//Data driven\r\n\t\t//0th row have names of columns\r\n\t\tfor(int i=1;i<nour;i++)\r\n\t\t{\r\n\t\t\tint x=Integer.parseInt(\r\n\t\t\t\t\trsh.getCell(0,i).getContents());\r\n\t\t\tint y=Integer.parseInt(\r\n\t\t\t\t\trsh.getCell(1,i).getContents());\r\n\t\t\tint z=x+y;\r\n\t\t\tNumber n=new Number(2,i,z);\r\n\t\t\twsh.addCell(n);\r\n\t\t}\r\n\t\t//Save and close excel\r\n\t\twwb.write(); //save\r\n\t\twwb.close();\r\n\t\trwb.close();\r\n\t}", "@ApiModelProperty(required = true, value = \"The file in which the test is defined.\")\n public String getFile() {\n return file;\n }", "public void writeShortSolutionExcel(String file) \n\t{\n\t\t\n\t\t//setup excel file\n\t\tint rowCounter = 0;\n\t\tXSSFWorkbook workbook = new XSSFWorkbook(); // create a book\n\t\tXSSFSheet sheet = workbook.createSheet(\"Sheet1\");// create a sheet\n\t\tXSSFRow curRow = sheet.createRow(rowCounter); // create a row\n\t\t\n\t\t//Problem info\n\t\tcurRow.createCell(0).setCellValue(\"File: \");\n\t\tcurRow.createCell(1).setCellValue(file);\n\t\tcurRow.createCell(2).setCellValue(\"Num Depots: \");\n\t\tcurRow.createCell(3).setCellValue(ProblemInfo.numDepots);\n\t\tcurRow.createCell(4).setCellValue(\"Num Pick Up Points: \");\n\t\tcurRow.createCell(5).setCellValue(ProblemInfo.numCustomers);\n\t\tcurRow.createCell(6).setCellValue(\"Num Trucks: \");\n\t\tcurRow.createCell(7).setCellValue(ProblemInfo.numTrucks);\n\t\tcurRow.createCell(8).setCellValue(\"Processing Time: \");\n\t\tcurRow.createCell(9).setCellValue((endTime - startTime) / 1000);\n\t\tcurRow.createCell(10).setCellValue(\"seconds\");\n\t\t\n\t\t//next row\n\t\trowCounter++;\n\t\tcurRow = sheet.createRow(rowCounter);\n\t\t\n\t\t\n\t\tcurRow.createCell(0).setCellValue(\"Total Demand =\");\n\t\tcurRow.createCell(1).setCellValue(mainDepots.getAttributes().getTotalDemand());\n\t\tcurRow.createCell(2).setCellValue(\"Total Distance =\");\n\t\tcurRow.createCell(3).setCellValue(mainDepots.getAttributes().getTotalDistance());\n\t\tcurRow.createCell(4).setCellValue(\"Total Travel Time =\");\n\t\tcurRow.createCell(5).setCellValue(mainDepots.getAttributes().getTotalTravelTime());\n\t\tcurRow.createCell(6).setCellValue(\"Total Cost = \");\n\t\tcurRow.createCell(7).setCellValue(Math.round(mainDepots.getAttributes().getTotalCost()*100.0)/100.0);\n\t\t\t\n\t\trowCounter++;\n\t\tcurRow = sheet.createRow(rowCounter);\n\t\t\t\n\t\tDepot depotHead = mainDepots.getHead();\n\t\tDepot depotTail = mainDepots.getTail();\n\t\t\n\t\t//Truck header info\n\t\tcurRow.createCell(0).setCellValue(\"Truck #\");\n\t\tcurRow.createCell(1).setCellValue(\"MaxCap:\");\n\t\tcurRow.createCell(2).setCellValue(\"Demand:\");\n\t\t\n\t\t//loop through Depots, trucks, nodes\n\t\twhile (depotHead != depotTail) \n\t\t{\n\t\t\tTruck truckHead = depotHead.getMainTrucks().getHead();\n\t\t\tTruck truckTail = depotHead.getMainTrucks().getTail();\n\t\t\t\n\t\t\t//print truck data\n\t\t\twhile (truckHead != truckTail) \n\t\t\t{\n\t\t\t\ttry \n\t\t\t\t{\n\t\t\t\t\trowCounter++;\n\t\t\t\t\tcurRow = sheet.createRow(rowCounter);\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tcurRow.createCell(1).setCellValue(truckHead.getTruckType().getMaxCapacity());\n\t\t\t\t\tcurRow.createCell(0).setCellValue(truckHead.getTruckNum());\n\t\t\t\t\tcurRow.createCell(2).setCellValue(truckHead.getAttributes().getTotalDemand());\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tNodes nodesHead = truckHead.getMainNodes().getHead().getNext();\n\t\t\t\t\tNodes nodesTail = truckHead.getMainNodes().getTail();\n\t\t\t\t\t\n\t\t\t\t\trowCounter++;\n\t\t\t\t\tcurRow = sheet.createRow(rowCounter);\n\t\t\t\t\t\n\t\t\t\t\tcurRow.createCell(0).setCellValue(\"ROUTE:\");\n\t\t\t\t\tint cellCount = 1;\n\t\t\t\t\t\n\t\t\t\t\t//print rout data\n\t\t\t\t\twhile (nodesHead != nodesTail) \n\t\t\t\t\t{\n\t\t\t\t\t\tcurRow.createCell(cellCount).setCellValue(nodesHead.getIndex());\n\n\t\t\t\t\t\tcellCount++;\n\t\t\t\t\t\tnodesHead = nodesHead.getNext();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tcellCount = 0;\n\t\t\t\t}\n\t\t\t\tcatch(NullPointerException ex)\n\t\t\t\t{\n\t\t\t\t\t\t//System.out.println(\"Null truck types detected\");\n\t\t\t\t\t\trowCounter--;\n\t\t\t\t}\n\t\t\t\t\ttruckHead = truckHead.getNext();\n\t\t\t}\n\t\t\tdepotHead = depotHead.getNext();\n\t\t}\n\t\t\t \n\t\t\trowCounter +=2;\n\t\t\tcurRow = sheet.createRow(rowCounter);\n\t\t\t\n\t\t\tcurRow.createCell(0).setCellValue(\"optimization Info\");\n\t\t\t\n\t\t\trowCounter ++;\n\t\t\tcurRow = sheet.createRow(rowCounter);\n\t\t\t\n\t\t\t//print Optimization information\n\t\t\tfor (int i = 0; i < optInformation.size(); i++) \n\t\t\t{\n\t\t\t\tcurRow.createCell(i).setCellValue(optInformation.elementAt(i).toString());\n\t\t\t}\n\t\t\t\n\t\t\ttry \n\t\t {\n\t\t\t\tFileOutputStream fout = new FileOutputStream(new File(ProblemInfo.outputPath + file + \"_short.xlsx\"));\n\t\t \tworkbook.write(fout); \n\t\t fout.close();\n\t\t } \n\t\t catch (Exception e) \n\t\t { \n\t\t e.printStackTrace(); \n\t\t } \n\t}", "Path getDeliverableBookFilePath();", "public static void main(String[] args) {\n\t\tExcelDataConfig excel=new ExcelDataConfig(\"D:\\\\Batch -2 Workspace\\\\Selenium_Batch_Two\\\\TestData\\\\readexceldemo1.xlsx\");\n\t\tSystem.out.println(excel.getData(0, 0, 0));\n\t}", "@Override\n public String getAbsolutePathImpl() {\n return file.getAbsolutePath();\n }", "@Test\r\n\tpublic void testSavedFile() throws FileNotFoundException {\r\n\r\n\t\tScanner in = new Scanner(new FileReader(\"FactoryScenarios/MyExample.txt\"));\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\twhile (in.hasNext()) {\r\n\t\t\tsb.append(in.next());\r\n\t\t}\r\n\t\tin.close();\r\n\t\tString outString = sb.toString();\r\n\r\n\t\tString expected = \"Cell6Button4/~disp-string:hello/~repeat-button:2/~skip-button:02/~skip:3/~pause:5/~disp-clearAll\";\r\n\r\n\t\tassertEquals(expected, outString);\r\n\r\n\t}", "public static void main(String[] args) throws Exception {\n\n insureExcelType(\"F:/AAA/QP2-04 附录 A 产品申请表 10.xlsx\");\n// String cellValueAt = getCellValueAt(15,8);\n// String cellValueAt1 = getCellValueAt(29,10);\n// String cellValueAt2 = getCellValueAt(30,10);\n// System.out.println(cellValueAt);\n// System.out.println(cellValueAt1);\n// System.out.println(cellValueAt2);\n\n// setCellValueAt(16, 10, new Date());\n// fileOutPut(\"F:/\",\"yyy.xlsx\");\n\n\n String path = \"F:\\\\壁纸\\\\timg (3).jpg\";\n setImg(path, 30, 34, 0, 4);\n\n// String cellValueAt = getCellValueAt(1, 27, 5);\n// System.out.println(cellValueAt);\n// setCellValueAt(1, 28, 5, new Date());\n fileOutPut(\"F:/\",\"yyy.xlsx\");\n\n }", "public ArrayList<String> getData(String testCaseName) throws IOException {\n\t\tArrayList<String> cellArray = new ArrayList();\n\n\t\t// File input stream argument\t\t\n\t\tFileInputStream fis = new FileInputStream(\"//Users//Oz//Documents//Selenium//SeleniumRepo//ExcelDriven//demoData.xlsx\");\n\n\t\t// instantiating workbook reading object \n\t\tXSSFWorkbook workbook = new XSSFWorkbook(fis);\n\n\t\t// read only sheet1\n\t\tint numOfSheets = workbook.getNumberOfSheets();\n\t\tfor (int i = 0; i < numOfSheets; i++ ) {\n\n\t\t\tif (workbook.getSheetName(i).equals(\"testData\")) { \n\t\t\t\tXSSFSheet sheet = workbook.getSheetAt(i);\n\n\t\t\t\tIterator<Row> rows = sheet.iterator();\n\t\t\t\tRow firstRow = (Row) rows.next();\n\t\t\t\tIterator<Cell> cell = ((Row) firstRow).cellIterator();\n\n\n\t\t\t\t//find column number of \"TestCase\"\n\t\t\t\tint k = 0;\n\t\t\t\tint colIndex = 99; \n\n\t\t\t\twhile(cell.hasNext()) {\t\t\t\t\t\n\t\t\t\t\tCell value = cell.next();\n\t\t\t\t\tif (value.getStringCellValue().equalsIgnoreCase(\"TestCase\")) {\n\t\t\t\t\t\t//desired column\n\t\t\t\t\t\tcolIndex = k;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t\tk++;\n\t\t\t\t}\t\t\t\t\n\n\t\t\t\t// iterating through every row\n\t\t\t\twhile(rows.hasNext()) {\t\t\t\t\t\n\t\t\t\t\tRow value = rows.next();\n\t\t\t\t\tif (value.getCell(colIndex).getStringCellValue().equalsIgnoreCase(testCaseName)) {\n\t\t\t\t\t\tIterator<Cell> cv = value.cellIterator();\n\t\t\t\t\t\twhile(cv.hasNext()) {\n\t\t\t\t\t\t\tCell c = cv.next();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(cv.next().getStringCellValue().getClass().equals(Type.class) ) {\n\t\t\t\t\t\t\t\tcellArray.add(cv.next().getStringCellValue());\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t cellArray.add(NumberToTextConverter.toText(cv.next().getNumericCellValue()));\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\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t\tk++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn cellArray;\n\n\n\t}", "public static String[][] writeXL(String fPathe, String fSheet) throws Exception{\n\t\n\t\tFile outFile = new File(fPath);\n\t\tHSSFWorkbook WB = new HSSFWorkbook();\n\t\tHSSFSheet osSheet = WB.createSheet(fSheet);\n\t\tint xR_TS = xData.length;\n\t\tint xC_TS = xData[0].length;\n\t\tfor (int myrow =0; myrow < xR_TS; myrow++) {\n\t\t\tHSSFRow row = osheet.createRow(myrow);\n\t\t}\n\t\t//System.out.println(\"Total Rows in Excel are \" + xRows);)\n}", "public void setExcelFile(String excelfilepath,String Sheetname) throws IOException {\n\t\t File file=new File(excelfilepath);\n\t\t FileInputStream inputstream=new FileInputStream(file);\n\t\t workbook =new XSSFWorkbook(inputstream);\n\t\t sheet =workbook.getSheet(Sheetname);\n\n\t}", "public static void main(String[] args) throws FileNotFoundException {\r\n WorksheetReader.WorksheetBuilder<Worksheet> builder\r\n = new BasicWorksheet.BasicWorksheetBuilder();\r\n FileReader file = new FileReader(\"resources/BasicTestFile.txt\");\r\n Worksheet sheet = WorksheetReader.read(builder, file);\r\n Workbook model = new BasicWorkbook(sheet);\r\n Controller controller = new Controller(model);\r\n WorksheetView view = new EditView(new WorkbookModelView(model));\r\n controller.setView(view);\r\n }", "public abstract String getFileLocation();", "Path getAppointmentScheduleFilePath();", "public static void main(String[] args) throws Exception {\n\t\t\n\t\tFile src = new File(\"/home/likewise-open/HTCINDIA/mkarthik/workspace/testproject/testdata/testdata.xls\");\n\t\t\n\t\tFileInputStream fis = new FileInputStream(src);\n\t\t\n\t\tHSSFWorkbook wb=new HSSFWorkbook(fis);\n\t\tHSSFSheet sheet1 = wb.getSheetAt(0);\n\t\t\n\t//String\tdata = sheet1.getRow(0).getCell(0).getStringCellValue();\n\t\t//System.out.println(data);\n\t\t\n\t\tint getrow =sheet1.getLastRowNum();\n\t\t\n\t\tSystem.out.println(getrow);\n\t\t\n\t\tfor(int i=0; i < getrow; i=i+1)\n\t\t{\n\t\t\tString data1 = sheet1.getRow(i).getCell(0).getStringCellValue();\n\t\t\tString data2 = sheet1.getRow(i).getCell(1).getStringCellValue();\n\t\t\tSystem.out.println(data1);\n\t\t\tSystem.out.println(data2);\n\t\t}\n\t\t\n\t\twb.close();\n\n\t}", "Path getPatientRecordsFilePath();", "@Test\n public void testCreateFilePath() {\n System.out.println(\"createFilePath with realistic path\");\n String path = System.getProperty(\"user.dir\")+fSeparator+\"MyDiaryBook\"\n +fSeparator+\"Users\"+fSeparator+\"Panagiwtis Georgiadis\"+fSeparator+\"Entries\"\n +fSeparator+\"Test1\";\n FilesDao instance = new FilesDao();\n boolean expResult = true;\n boolean result = instance.createFilePath(path);\n assertEquals(\"Some message\",expResult, result);\n }", "public static void setExcelFileSheet(String sheetName) throws IOException {\n\t testDataExcelPath = currentDir+\"\\\\src\\\\example\\\\trademeSellAndBuy\\\\testData\\\\\";\n\t // Open the Excel file\n FileInputStream excelFile = new FileInputStream(new File(testDataExcelPath + testDataExcelFileName));\n excelWBook = new XSSFWorkbook(excelFile);\n excelWSheet = (XSSFSheet) excelWBook.getSheet(sheetName);\n }", "public String getFilepath()\n\t{\n\t\treturn filepath;\n\t}", "@DataProvider(name = \"xls-inputs\")\n\tpublic Object[][] getXLSData() {\n\t\treturn new ReadExcel().getExcelData(\"C:\\\\project-framework\\\\Testing.xlsx\", \"Sheet1\");\n\t}", "private String getExperimentFileName() {\n return \"experiment.json\";\n\n }", "@Override\n protected File getDataFile(String relFilePath) {\n return new File(getDataDir(), relFilePath);\n }", "public interface IPathConstant {\n\tString PROPERTY_FILEPATH=\"./src/main/resources/CommonData.properties\";\n\tString EXCELPATH=\"./src/test/resources/testdata.xlsx\";\n\tString JSONFILEPATH=\"\";\n\tString htmlPath=\"./extentReport\"+JavaUtility.getCurrentSystemDate()+\".html\";\n}" ]
[ "0.6748653", "0.6401203", "0.63532794", "0.6314777", "0.62147325", "0.6209764", "0.6142885", "0.6134943", "0.61217165", "0.6116914", "0.60603464", "0.60574245", "0.6035936", "0.60164106", "0.5979809", "0.597269", "0.5949154", "0.5921801", "0.5903027", "0.5882857", "0.58697146", "0.58534515", "0.5849853", "0.5846007", "0.5823746", "0.5820405", "0.5818063", "0.5801937", "0.57905346", "0.5784939", "0.577108", "0.57422984", "0.57400507", "0.5738228", "0.57357055", "0.57344276", "0.5731717", "0.5717754", "0.57009053", "0.5700636", "0.5695891", "0.5695495", "0.56932056", "0.56903493", "0.5683729", "0.5681605", "0.56806105", "0.5675781", "0.5675443", "0.5674993", "0.5672281", "0.56583214", "0.56556153", "0.5654007", "0.56479126", "0.56255656", "0.56204945", "0.56195295", "0.5608313", "0.5583146", "0.55809116", "0.5580706", "0.5574281", "0.5566072", "0.55356175", "0.5524407", "0.5524407", "0.5515714", "0.5515183", "0.5465009", "0.5454584", "0.54522747", "0.5432654", "0.5432158", "0.543119", "0.5425677", "0.54233146", "0.54183483", "0.5411153", "0.54107803", "0.5404357", "0.5396566", "0.5396513", "0.5384911", "0.5380861", "0.53772265", "0.5373583", "0.5372634", "0.5370931", "0.53638154", "0.53556955", "0.5353332", "0.5348074", "0.5343192", "0.53381073", "0.53211284", "0.53169066", "0.5311308", "0.5309225", "0.5309139", "0.5306922" ]
0.0
-1
TODO Autogenerated method stub
@Override public Evento buscar(Evento evento) { return repository.getOne(evento.getId()); }
{ "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 inserir(Evento evento) { repository.save(evento); }
{ "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 alterar(Evento evento) { repository.save(evento); }
{ "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
TODO Autogenerated method stub
@Override public void excluir(Evento evento) { repository.delete(evento); }
{ "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 List<Evento> listar() { return repository.findAll(); }
{ "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 List<Evento> listarDisponivelPorDataAsc() { return repository.findByFimAfterToday(sortByInicioAsc()); }
{ "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 default profile and save to Parse
private void createProfile(ParseUser parseUser){ final Profile profile = new Profile(); profile.setShortBio(""); profile.setLongBio(""); profile.setUser(parseUser); //default image taken from existing default user ParseQuery<ParseObject> query = ParseQuery.getQuery("Profile"); query.getInBackground("wa6q24VD5V", new GetCallback<ParseObject>() { public void done(ParseObject searchProfile, ParseException e) { if (e != null) { Log.e(TAG, "Couldn't retrieve default image"); e.printStackTrace(); return; } else { defaultImage = searchProfile.getParseFile("profileImage"); if (defaultImage != null) profile.setProfileImage(defaultImage); else Log.d(TAG, "Default image is null"); } } }); profile.saveInBackground(new SaveCallback() { @Override public void done(ParseException e) { if (e != null) { Log.e(TAG, "Error while saving"); e.printStackTrace(); return; } Log.d(TAG, "Created and saved profile"); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void saveProfileCreateData() {\r\n\r\n }", "@Override\n\tpublic long createProfile(Profile profile) {\n\t\treturn 0;\n\t}", "public UserProfile createUserProfile(String username, UserProfile newProfile);", "public void saveOrUpdateProfile(){\n try {\n \n if(PersonalDataController.getInstance().existRegistry(username)){\n PersonalDataController.getInstance().update(username, staff_name, staff_surname, \n Integer.parseInt(id_type), \n id_number, imagePic, phone_number, mobile_number, email, birthdate, \n Integer.parseInt(gender), birthdate);\n }else{\n PersonalDataController.getInstance().create(username, staff_name, staff_surname, \n Integer.parseInt(id_type), \n id_number, imagePic, phone_number, mobile_number, email, birthdate, \n Integer.parseInt(gender));\n }\n } catch (GB_Exception ex) {\n LOG.error(ex);\n GBMessage.putMessage(GBEnvironment.getInstance().getError(32), null);\n }\n GBMessage.putMessage(GBEnvironment.getInstance().getError(33), null);\n }", "private void signup(String username, String password, String email, String handle){\n // Create the ParseUser\n final ParseUser user = new ParseUser();\n // Set core properties\n user.setUsername(username);\n user.setPassword(password);\n user.setEmail(email);\n user.put(\"handle\",handle);\n //final File file = new File(\"/desktop/profilepicturedef.png\"); // create a default profile pic\n //final ParseFile parseFile = new ParseFile(file);\n /*parseFile.saveInBackground(new SaveCallback() {\n public void done(ParseException e) {\n // If successful save image as profile picture\n if(null == e) {\n user.put(\"profilepic\", parseFile);\n user.saveInBackground();\n Log.d(\"mainactivity\", \"ProfilePic save requested\");\n }\n }\n });*/\n // Invoke signUpInBackgroundput(\"pro\n user.signUpInBackground(new SignUpCallback() {\n public void done(ParseException e) {\n if (e == null) {\n // Hooray! Let them use the app now. (No error)\n Log.d(\"SignupActivity\", \"Signup successful!\");\n\n // want to go to Home Activity with intent after successful log in\n //final Intent intent = new Intent(SignupActivity.this, TimelineActivity.class);\n final Intent intent = new Intent(SignupActivity.this, MainActivity.class); // this is to use fragments\n startActivity(intent);\n finish(); //so that user can't just press back and log out\n } else {\n // Sign up didn't succeed. Look at the ParseException\n // to figure out what went wrong\n Log.e(\"SignupActivity\", \"Sign up failure.\");\n e.printStackTrace();\n }\n }\n });\n }", "public Profile() {}", "public void saveProfiles() throws IOException\n {\n try\n {\n profFile.getParentFile().mkdirs();\n profFile.delete();\n profFile.createNewFile();\n PrettyPrinterXmlWriter pp = new PrettyPrinterXmlWriter(new SimpleXmlWriter(new FileWriter(profFile)));\n pp.writeXmlVersion();\n pp.writeEntity(\"XNATProfiles\");\n if (this.size() != 0)\n {\n for (XNATProfile ip : this)\n {\n pp.writeEntity(\"XNATProfile\")\n .writeAttribute(\"profileName\", ip.getProfileName())\n \n .writeEntity(\"serverURL\")\n .writeText(ip.getServerURL().toString())\n .endEntity() \n // encrypt(sc.getServerURL().toString()));\n \n .writeEntity(\"userid\")\n .writeText(ip.getUserid())\n .endEntity()\n \n .writeEntity(\"projectList\");\n \n for (String is : ip.getProjectList())\n pp.writeEntity(\"project\")\n .writeText(is)\n .endEntity();\n \n pp.endEntity()\n .writeEntity(\"dicomReceiverHost\")\n .writeText(ip.getDicomReceiverHost())\n .endEntity()\n \n .writeEntity(\"dicomReceiverPort\")\n .writeText(ip.getDicomReceiverPort())\n .endEntity()\n \n .writeEntity(\"dicomReceiverAeTitle\")\n .writeText(ip.getDicomReceiverAeTitle())\n .endEntity()\n \n .endEntity();\n }\n }\n pp.writeEntity(\"preferredProfile\")\n .writeText(currentProfile)\n .endEntity()\n .endEntity()\n .close();\n }\n catch (IOException exIO)\n \t\t{\n throw exIO;\n }\n }", "@Override\n\tpublic void createUserProfile(User user) throws Exception {\n\n\t}", "public void makeProfile(String name){\r\n try{\r\n PrintWriter out = new PrintWriter(new FileWriter(\"../profiles/\" + name + \".profile\"));\r\n out.println(\"HORATIU INCORPORATED PROTECTED\"); //Header\r\n out.println(name); //Player name\r\n out.println(0); //Score\r\n \r\n //UNLOCK CODES\r\n //-1 if not unlocked\r\n //0 if unlocked but not completed\r\n //1 if completed\r\n out.println(0); //Initial level is unlocked by default\r\n for(int i = 0; i < 5; i++){\r\n out.println(-1); //\r\n }\r\n out.close();\r\n }\r\n catch(IOException e){\r\n }\r\n Player.playerName = name;\r\n Player.playerScore = 0; //Score\r\n Player.scores[0] = 0;\r\n for(int i = 1; i < 6; i++){ //1 to 6 so it does not overwrite the first 0\r\n Player.scores[i] = -1;\r\n }\r\n GameApp.makeToView(name);\r\n }", "public static void createNewUserPreference(Context context) {\r\n\t\tString newUserId = generateNewUserId();\r\n\t\tString userConfigKey = getUserConfigFileNameKey(newUserId);\r\n\t\tString userDbKey = getUserDatabaseFileNameKey(newUserId);\r\n\t\tString userConfigFileName = getUserConfigFileName(context, newUserId);\r\n\t\tString userDbFileName = getUserDatabaseFileName(context, newUserId);\r\n\r\n\t\tSharedPreferences prefs = PreferenceManager\r\n\t\t\t\t.getDefaultSharedPreferences(context);\r\n\t\tif (prefs != null) {\r\n\t\t\tEditor editor = prefs.edit();\r\n\t\t\tif (editor != null) {\r\n\t\t\t\teditor.putString(\"user-\" + newUserId, newUserId);\r\n\t\t\t\teditor.putString(userConfigKey, userConfigFileName);\r\n\t\t\t\teditor.putString(userDbKey, userDbFileName);\r\n\t\t\t}\r\n\r\n\t\t\teditor.commit();\r\n\t\t}\r\n\t}", "private void createStats(ParseUser parseUser) {\n Stats stats = new Stats();\n\n stats.setUser(parseUser);\n\n //default values\n stats.setPStat1(1);\n stats.setPStat2(1);\n stats.setPStat3(1);\n stats.setPStat4(1);\n\n stats.setSStat1(1);\n stats.setSStat2(1);\n stats.setSStat3(1);\n stats.setSStat4(1);\n\n //default category preference\n stats.setPreference(\"Rules\");\n\n stats.saveInBackground(new SaveCallback() {\n @Override\n public void done(ParseException e) {\n if (e != null) {\n Log.e(TAG, \"Error while saving\");\n e.printStackTrace();\n return;\n }\n\n Log.d(TAG, \"Created and saved stats\");\n }\n });\n }", "@RequestMapping(value = \"/profile\", method = RequestMethod.GET)\n\tpublic String create(Model model) {\n\t\tmodel.addAttribute(\"profile\", new Profile());\n\t\treturn \"create\";\n\t}", "public void createEditProfileSession(Profile profile) {\n editor.putString(KEY_EMAIL, profile.getMail());\n editor.putString(KEY_NAME, profile.getName());\n editor.putString(KEY_NUMBER,profile.getMobile());\n editor.commit();\n }", "public static void cloneProfile(Profile profile)\n throws IOException\n {\n String newName = \n (String) JOptionPane.showInputDialog(MainFrame.getInstance(),\n \"Enter new profile name\");\n if (newName == null)\n return;\n newName = newName.trim();\n if (newName.length() == 0)\n return;\n\n // Does a profile with this name already exist?\n if (ProfileManager.getInstance().getProfile(newName) != null)\n {\n JOptionPane.showMessageDialog(MainFrame.getInstance(),\n \"A profile with that name already exists.\", \"Error\",\n JOptionPane.ERROR_MESSAGE);\n return;\n }\n \n Profile newProfile = new Profile(newName, profile.getAddress(),\n profile.getPort(), profile.getUserName(), profile.getPassword(),\n profile.getParameters());\n try\n {\n ProfileManager.getInstance().updateProfile(newProfile);\n TreePanel.getInstance().addProfile(newProfile);\n }\n catch (SQLException e)\n {\n // This should never happen.\n }\n }", "public ProfileServiceWithDefaults profileWithDefaults() {\n return service.getProfileServiceWithDefaultsAndCallbacks();\n }", "@Test\n public void testGeneratedProfileFields() {\n Profile p = getProfile(BASIC_PROFILE_PATH);\n assertNotNull(\"Profile uniqueId was null\", p.getUniqueId());\n assertNotNull(\"Profile display name was null\", p.getDisplayName());\n }", "public abstract VisitorProfile save(VisitorProfile profile);", "Accessprofile save(Accessprofile accessprofile);", "private ProviderProfile parseProfile(Elements tds) throws ParsingException {\n try {\n ProviderProfile profile = new ProviderProfile();\n String id = tds.get(0).text();\n String fullProviderInfo = tds.get(1).text();\n fullProviderInfo = fullProviderInfo.replaceAll(\"\\u00A0\", \" \").trim();\n String adminBoundary = \"\";\n Elements bolds = tds.get(1).children().select(\"b\");\n if (bolds.size() >= 6) {\n adminBoundary = bolds.get(5).text();\n }\n\n String name = Util.getStringInBetween(fullProviderInfo, \"Name:\", \"Address:\");\n String address = Util.getStringInBetween(fullProviderInfo, \"Address:\", \"Phone:\");\n String phone = Util.getStringInBetween(fullProviderInfo, \"Phone:\", \"Fax:\");\n String fax = Util.getStringInBetween(fullProviderInfo, \"Fax:\", \"Administrator:\");\n String administrator = !\"\".equals(adminBoundary) ? Util.getStringInBetween(fullProviderInfo,\n \"Administrator:\", adminBoundary) : \"\";\n \n // classifications\n Elements classifications = tds.get(1).children().select(\"p\");\n for (Element classification : classifications) {\n String para = classification.text().replaceAll(\"\\u00A0\", \" \").trim();\n if (para.contains(\"Minnesota Classifications\")) {\n profile.setStateClassifications(para.substring(\"Minnesota Classifications:\".length()));\n } else if (para.contains(\"Federal Classifications\")) {\n profile.setFederalClassifications(para.substring(\"Federal Classifications:\".length()));\n }\n }\n\n // id\n profile.setEmployerId(id);\n // name\n Business business = new Business();\n profile.setBusiness(business);\n business.setName(name);\n // address\n List<Address> addresses = new ArrayList<Address>();\n Address addressObj = new Address();\n addresses.add(addressObj);\n profile.setAddresses(addresses);\n String[] addressParts = address.split(\" \");\n if (addressParts.length >= 4) {\n String location = addressParts[0].trim();\n String city = addressParts[1].trim();\n String state = addressParts[2].trim();\n String zipcode = addressParts[3].trim();\n addressObj.setLocation(location);\n addressObj.setCity(city);\n addressObj.setState(state);\n addressObj.setZipcode(zipcode);\n }\n // phone\n profile.setContactPhoneNumber(phone);\n // fax\n profile.setContactFaxNumber(fax);\n // administrator\n profile.setContactName(administrator);\n\n profile.setProviderType(getProviderType());\n return profile;\n } catch (Throwable e) {\n throw new ParsingException(\"Failed to parse the html\", e);\n }\n }", "private void addProfile(String profileName, String username, String server, int port)\r\n\t{\r\n\t\tps.setValue(count + PROFILE, profileName + \",\" + username + \",\" + server + \",\" + port);\r\n\t}", "private static Profile createProfile(Scanner line)\n\t{\n\t\t// get the name\n\t\tString name=line.next();\n\t\t\n\t\t// get the date of birth (dd,mm,yyy)\n\t\tint dayOfBirth=line.nextInt();\n\t\tint monthOfBirth=line.nextInt();\n\t\tint yearOfBirth=line.nextInt();\n\t\t\n\t\t// get the town and country\n\t\tString town=line.next();\n\t\tString country=line.next();\n\t\t\n\t\t// get the nationality\n\t\tString nationality=line.next();\n\t\t\n\t\t// get the interests\n\t\tString[] interests=createInterests(line);\n\t\t\n\t\t// create a profile object\n\t\tProfile p=new Profile(name, dayOfBirth, monthOfBirth, yearOfBirth,\n\t\t\t\ttown, country, nationality, interests);\n\t\t\n\t\treturn p;\n\t}", "Accessprofile create(Accessprofile accessprofile);", "public void getStarted(View view)\n {\n\n if(ParseUser.getCurrentUser().getUsername()!=null)\n {\n\n\n ParseUser.getCurrentUser().put(\"riderOrdriver\",currentUserIs);\n\n\n ParseUser.getCurrentUser().saveInBackground(new SaveCallback() {\n @Override\n public void done(ParseException e) {\n if(e == null)\n {\n Log.i(\"userSaved as \",ParseUser.getCurrentUser().getUsername()); //save in the object of that user the type\n }else\n {\n Log.i(\"error in saving\",e.toString());\n\n }\n\n }\n });\n\n activityStartType(currentUserIs);\n }\n\n }", "private void populateProfile() {\n mPassword_input_layout.getEditText().setText(mSharedPreferences.getPassWord());\n mEmail_input_layout.getEditText().setText(mSharedPreferences.getEmail());\n mEdit_name_layout.getEditText().setText(mSharedPreferences.getName());\n ((RadioButton) mRadioGender.getChildAt(mSharedPreferences.getGender())).setChecked(true);\n mPhone_input_layout.getEditText().setText(mSharedPreferences.getPhone());\n mMajor_input_layout.getEditText().setText(mSharedPreferences.getMajor());\n mClass_input_layout.getEditText().setText(mSharedPreferences.getYearGroup());\n\n // Load profile photo from internal storage\n try {\n FileInputStream fis = openFileInput(getString(R.string.profile_photo_file_name));\n Bitmap bmap = BitmapFactory.decodeStream(fis);\n mImageView.setImageBitmap(bmap);\n fis.close();\n } catch (IOException e) {\n // Default profile\n }\n }", "@Override\n public Profile createProfile(Long educationProviderId, Long learningProgramId, Profile profile) {\n LearningProgram lProgram = learningProgramRepository.findByIdAndEducationProviderId(learningProgramId, educationProviderId)\n .orElseThrow(()-> new ResourceNotFoundException(String.format(\"Education provider with id: %s and \" +\n \"Learning program with id: %s were not found\", learningProgramId)));\n profile.setEducationProvider(lProgram.getEducationProvider());\n profile.setLearningProgram(lProgram);\n return profileRepository.save(profile);\n }", "@POST\n\t @Path(\"create\")\n\t @Consumes(MediaType.APPLICATION_JSON)\n\t public Response createProfile(\n\t ProfileJson json) throws ProfileDaoException {\n\t Profile profile = json.asProfile();\n\t api.saveProfile(profile, datastore);\n\t\t//datastore.save(profile);\n\t return Response\n\t .created(null)\n\t .build();\n\t }", "ProfileStatusManager create( ProfileConfiguration profileConfiguration ) throws ProfileCreationException;", "public void saveProfile(WSSecurityProfile profile) throws WSSecurityProfileManagerException{\n \t\n\t\tsynchronized(profilesFile_UserDefined){\n\t\t\t // If the file does not exist yet\n\t\t if (!profilesFile_UserDefined.exists()){\n\t\t \t//Create a new file\n\t\t \t try {\n\t\t \t\tprofilesFile_UserDefined.createNewFile();\n\t\t \t }\n\t\t \t catch(IOException ex)\n\t\t \t {\n\t\t \t\t String exMessage = \"WSSecurityProfileManager failed to create a file for user-defined profiles.\";\n\t\t \t\t logger.error(exMessage, ex);\n\t\t \t\t throw new WSSecurityProfileManagerException(exMessage);\n\t\t \t }\n\t\t }\n\n\t\t BufferedWriter userProfilesFileWriter = null;\n\t\t try{\n\t\t \t// Open the file for writing (i.e. appending)\n\t\t \t userProfilesFileWriter = new BufferedWriter((new FileWriter(profilesFile_UserDefined, true)));\n\t\t \t // Add a new profile entry\n\t\t String profileEntry ;\n\t\t profileEntry = \"-----BEGIN PROFILE-----\\n\";\n\t\t \t // Profile name\n\t\t profileEntry = profileEntry +\"Name=\"+ profile.getWSSecurityProfileName() +\"\\n\";\n\t\t \t // Profile description\n\t\t profileEntry = profileEntry +\"Description=\" + profile.getWSSecurityProfileDescription() +\"\\n\";\n\t\t \t // Profile itself\n\t\t profileEntry = profileEntry +\"Profile=\" + profile.getWSSecurityProfileString();\n\t\t profileEntry = profileEntry + \"-----END PROFILE-----\\n\";\n\t\t \n\t\t \t userProfilesFileWriter.append(profileEntry);\n\t\t \t userProfilesFileWriter.newLine();\n\t\t \t \n\t\t \t // Also add to the list with user defined profiles \n\t\t \t wsSecurityProfiles_UserDefined.add(profile);\n\t\t \t wsSecurityProfileNames_UserDefined.add(profile.getWSSecurityProfileName());\n\t\t \t wsSecurityProfileDescriptions_UserDefined.add(profile.getWSSecurityProfileDescription());\n\t\t \t \n\t\t }\n\t\t catch(FileNotFoundException ex){\n\t\t \t // Should not happen\n\t\t }\n\t\t catch(IOException ex){\n\t\t \t String exMessage = \"WSSecurityProfileManager failed to save the new user-defined profile.\";\n\t\t \t logger.error(exMessage, ex);\n\t\t \t throw new WSSecurityProfileManagerException(exMessage);\n\t\t }\n\t\t finally {\n\t\t \tif (userProfilesFileWriter != null)\n\t\t \t{\n\t\t \t\ttry {\n\t\t \t\t\tuserProfilesFileWriter.close();\n\t\t \t\t}\n\t\t \t\tcatch (IOException e) { \n\t\t \t//ignore\n\t\t \t\t}\n\t\t \t}\n\t\t } \n\t\t}\n\t}", "@RequestMapping(value = \"/profile/{id}\", method = RequestMethod.POST)\n\tpublic String createOrUpdateProfile(@PathVariable(value = \"id\") String id,\n\t\t\t@PathParam(value = \"firstname\") String firstname,\n\t\t\t@PathParam(value = \"lastname\") String lastname,\n\t\t\t@PathParam(value = \"email\") String email,\n\t\t\t@PathParam(value = \"address\") String address,\n\t\t\t@PathParam(value = \"organization\") String organization,\n\t\t\t@PathParam(value = \"aboutmyself\") String aboutmyself, Model model) {\n\t\ttry {\n\t\t\tProfile profile = profileDao.findById(id);\n\t\t\tif (profile == null) {\n\t\t\t\tprofile = new Profile();\n\t\t\t\tprofile.setId(id);\n\t\t\t}\n\t\t\tprofile.setFirstname(firstname);\n\t\t\tprofile.setLastname(lastname);\n\t\t\tprofile.setEmail(email);\n\t\t\tprofile.setAddress(address);\n\t\t\tprofile.setOrganization(organization);\n\t\t\tprofile.setAboutMyself(aboutmyself);\n\t\t\tmodel.addAttribute(\"profile\", profile);\n\t\t\tthis.profileDao.save(profile);\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn \"redirect:/profile/{id}?brief=false\";\n\t}", "public void setProfile(Profile profile) {\n _profile = profile;\n }", "private void createGuestProfile() {\n saveData();\n signupDelegate.enableNextButton(Boolean.FALSE);\n SwingUtil.setCursor(this, java.awt.Cursor.WAIT_CURSOR);\n errorMessageJLabel.setText(getString(\"SigningUp\"));\n errorMessageJLabel.paintImmediately(0, 0, errorMessageJLabel.getWidth(),\n errorMessageJLabel.getHeight());\n try {\n getSignupHelper().createGuestProfile();\n } catch (final OfflineException ox) {\n logger.logError(ox, \"An offline error has occured.\");\n addInputError(getSharedString(\"ErrorOffline\"));\n } catch (final ReservationExpiredException rex) {\n logger.logWarning(rex, \"The username/e-mail reservation has expired.\");\n addInputError(getString(\"ErrorReservationExpired\"));\n } catch (final Throwable t) {\n logger.logFatal(t, \"An unexpected error has occured.\");\n addInputError(getSharedString(\"ErrorUnexpected\"));\n } finally {\n errorMessageJLabel.setText(\" \");\n }\n }", "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 }", "public boolean createUser(UserProfile userProfile) {\n\t\tmongoTemplate.insert(userProfile, \"UserProfile_Details\");\n\t\treturn true;\n\t}", "@Override\n\tpublic void saveUserSettingProfile(UserProfile userProfile)\n\t\t\tthrows Exception {\n\n\t}", "@PostMapping(\"/user/new/\")\n\tpublic userprofiles createUser(@RequestParam String firstname, @RequestParam String lastname, @RequestParam String username, @RequestParam String password, @RequestParam String pic) {\n\t\treturn this.newUser(firstname, lastname, username, password, pic);\n\t}", "private void addProfile(String inputName) {\n \tif (! inputName.equals(\"\")) {\n\t\t\t///Creates a new profile and adds it to the database if the inputName is not found in the database\n \t\tif (database.containsProfile(inputName)) {\n \t\t\tlookUp(inputName);\n \t\t\tcanvas.showMessage(\"Profile with name \" + inputName + \" already exist.\");\n \t\t\treturn;\n \t\t}\n\t\t\tprofile = new FacePamphletProfile (inputName);\n\t\t\tdatabase.addProfile(profile);\n\t\t\tcurrentProfile = database.getProfile(inputName);\n \t\tcanvas.displayProfile(currentProfile);\n\t\t\tcanvas.showMessage(\"New profile created.\");\n\t\t\t\n \t}\n\t\t\n\t}", "public static void setProfile(Profile profile) {\n Login.profile = profile;\n Login.profile.setUserId(getUserId());\n }", "WithCreate withRosterProfile(RosterProfile rosterProfile);", "public void addUser(Profile profile) throws JSONException {\n\t\tofy().save().entity(profile).now();\n\t}", "@POST\n @Path(\"/create\")\n @Consumes(MediaType.APPLICATION_JSON)\n public Response createUser(ProfileJson json) throws ProfileDaoException {\n Profile profile = json.asProfile();\n profile.setPassword(BCrypt.hashpw(profile.getPassword(), BCrypt.gensalt()));\n //add checking if profile doesn't exit\n api.saveProfile(profile, datastore);\n return Response\n .created(null)\n .build();\n }", "@Override\n public CreateServiceProfileResult createServiceProfile(CreateServiceProfileRequest request) {\n request = beforeClientExecution(request);\n return executeCreateServiceProfile(request);\n }", "protected void mapUserProfile2SSOUser() {\r\n\t\tssoUser.setProfileId((String)userProfile.get(AuthenticationConsts.KEY_PROFILE_ID));\r\n\t\tssoUser.setUserName((String)userProfile.get(AuthenticationConsts.KEY_USER_NAME));\r\n\t\tssoUser.setEmail((String)userProfile.get(AuthenticationConsts.KEY_EMAIL));\r\n\t\tssoUser.setFirstName((String)userProfile.get(AuthenticationConsts.KEY_FIRST_NAME));\r\n\t\tssoUser.setLastName((String)userProfile.get(AuthenticationConsts.KEY_LAST_NAME));\r\n\t\tssoUser.setCountry((String)userProfile.get(AuthenticationConsts.KEY_COUNTRY));\r\n\t\tssoUser.setLanguage((String)userProfile.get(AuthenticationConsts.KEY_LANGUAGE));\r\n\t\tssoUser.setTimeZone((String)userProfile.get(AuthenticationConsts.KEY_TIMEZONE));\r\n\t\tssoUser.setLastChangeDate((Date)userProfile.get(AuthenticationConsts.KEY_LAST_CHANGE_DATE));\r\n\t\tssoUser.setLastLoginDate((Date)userProfile.get(AuthenticationConsts.KEY_LAST_LOGIN_DATE));\r\n\t\t// Set current site, it will be used to update user's primary site\r\n\t\tssoUser.setCurrentSite(AuthenticatorHelper.getPrimarySiteUID(request));\r\n\t}", "public void setUserProfile(UserProfile userProfile) {this.userProfile = userProfile;}", "public SeoProfileRecord() {\n super(SeoProfile.SEO_PROFILE);\n }", "private void saveInfoFields() {\n\n\t\tString name = ((EditText) getActivity().findViewById(R.id.profileTable_name))\n\t\t\t\t.getText().toString();\n\t\tint weight = Integer\n\t\t\t\t.parseInt(((EditText) getActivity().findViewById(R.id.profileTable_weight))\n\t\t\t\t\t\t.getText().toString());\n\t\tboolean isMale = ((RadioButton) getActivity().findViewById(R.id.profileTable_male))\n\t\t\t\t.isChecked();\n\t\tboolean smoker = ((CheckBox) getActivity().findViewById(R.id.profileTable_smoker))\n\t\t\t\t.isChecked();\n\t\tint drinker = (int) ((RatingBar) getActivity().findViewById(R.id.profileTable_drinker))\n\t\t\t\t.getRating();\n\n\t\tif (!name.equals(storageMan.PrefsName)) {\n\t\t\tstorageMan = new StorageMan(getActivity(), name);\n\t\t}\n\n\t\tstorageMan.saveProfile(new Profile(weight, drinker, smoker, isMale));\n\t\t\n\t\ttoast(\"pref saved\");\n\t}", "public com.eviware.soapui.config.OAuth1ProfileConfig insertNewOAuth1Profile(int i)\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.eviware.soapui.config.OAuth1ProfileConfig target = null;\n target = (com.eviware.soapui.config.OAuth1ProfileConfig)get_store().insert_element_user(OAUTH1PROFILE$0, i);\n return target;\n }\n }", "public static void SaveUser(StandardUserModel user, Context context) {\n\t\tfilename = userprofile;\n\t\tString modelJson = gson.toJson(user);\n\t\t\n\t\twriteuser(modelJson, context);\n\t}", "private void profileUpdate(){\n File out = new File ( Environment.getExternalStorageDirectory().getAbsolutePath() + \"/\"\n + Setting.APP_FOLDER + \"/\" + \"profile\");\n if (!out.exists()){\n try {\n ColdStart.createProfile();\n } catch (ParseException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n else{\n HandlerThread ht = new HandlerThread(\"UpdateProfile\", android.os.Process.THREAD_PRIORITY_BACKGROUND);\n ht.start();\n Handler h = new Handler(ht.getLooper());\n h.post(new Runnable() {\n @Override\n public void run() {\n ColdStart.updateProfile();\n }\n });\n\n }\n }", "public void signUp(View view) {\n final EditText nameField = (EditText) findViewById(R.id.name);\n final EditText emailField = (EditText) findViewById(R.id.email);\n final EditText phoneField = (EditText) findViewById(R.id.phoneNumber);\n final EditText passwordField = (EditText) findViewById(R.id.signUpPassword);\n\n final String name = nameField.getText().toString();\n final String email = emailField.getText().toString();\n final String phone = phoneField.getText().toString();\n final String password = passwordField.getText().toString();\n\n // Check to make sure a username and password were entered\n if (name.length() == 0 || password.length() == 0 || email.length () == 0 || phone.length() == 0) {\n Toast.makeText(getApplicationContext(), \"Invalid field\",\n Toast.LENGTH_SHORT).show();\n return;\n }\n\n // Create a new Parse User object\n ParseUser user = new ParseUser();\n //ParseFile file = new ParseFile(\"picture.png\", bytearray);\n //file.saveInBackground();\n\n\n // Set the user's username and password\n user.setEmail(email);\n user.put(\"phone\", phone);\n user.put(\"name\", name);\n //user.put(\"File\", file);\n user.setPassword(password);\n user.setUsername(email);\n\n user.signUpInBackground(new SignUpCallback() {\n public void done(ParseException e) {\n if (e == null) {\n Toast.makeText(getApplicationContext(), \"Sign Up Success\",\n Toast.LENGTH_LONG).show();\n returnToLoginActivity();\n } else {\n Log.e(\"Sign up failed\", e.getMessage());\n Toast.makeText(getApplicationContext(), \"Sign Up Failed\",\n Toast.LENGTH_LONG).show();\n\n }\n }\n });\n }", "public static void createProfile(String userName, String password, String ip, LoginDoctor window) {\r\n\t\tConnectionManager connectServer = null;\r\n\t\ttry {\r\n\t\t\tconnectServer = new ConnectionManager(ip);\r\n\t\t\ttry {\r\n\t\t\t\t// This method tries creating the credentials, if the server doesn't allow this it will throw an exception.\r\n\t\t\t\t// If everything goes fine it will open a window to type name and surname to create new profile.\r\n\t\t\t\t// Then the same login window will be opened to type name and password to enter the profile.\r\n\t\t\t\tconnectServer.createProfile(userName, password);\r\n\t\t\t\tnew UserConfiguration(connectServer);\r\n\t\t\t\t//window.profileCreated();\r\n\t\t\t\twindow.dispose();\r\n\t\t\t} catch(Exception e1) {\r\n\t\t\t\t// If the server response is not valid, the login window will display an error message saying it didn't like what it saw.\r\n\t\t\t\twindow.profileNotValid();\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\t/*same thing as before, if the server doesn't answer back tell the user the connection failed or something.*/\r\n\t\t\twindow.failedConnection();\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public static void writeUserProfile(Profile profile) throws IOException {\n\n try (BufferedWriter writer = Files.newBufferedWriter(Paths.get(USER_PROFILE));\n\n CSVPrinter csvPrinter = new CSVPrinter(writer, CSVFormat.EXCEL.withHeader(\"firstName\",\"lastName\",\"email\",\"password\",\"phoneNumber\",\"insuranceCompanyName\",\"insuranceCompanyFax\", \"insuranceCompanyEmail\"));\n ) {\n csvPrinter.printRecord(profile.getFirstName().toString(), profile.getLastName(), profile.getEmail(), profile.getPw(), profile.getPhoneNumber(), profile.getInsuranceCompanyName(), profile.getInsuranceCompanyFax(), profile.getInsuranceCompanyEmail());\n csvPrinter.flush();\n }\n }", "private void createPersonFromUser(String fullname){\n String useruid=\"\";\n String useremail=\"\";\n\n FirebaseUser user = FirebaseAuth.getInstance().getCurrentUser();\n if (user != null) {\n // Name, email address, and profile photo Url\n String username = user.getDisplayName();\n useremail = user.getEmail();\n Uri photoUrl = user.getPhotoUrl();\n\n // The user's ID, unique to the Firebase project. Do NOT use this value to\n // authenticate with your backend server, if you have one. Use\n // FirebaseUser.getToken() instead.\n useruid = user.getUid();\n }\n\n Person person =new Person();\n person.setName(fullname);\n person.setEmail(useremail);\n person.setUid(useruid);\n person.setTime_to_stop(\"0\");\n\n FirebaseDatabase database = FirebaseDatabase.getInstance();\n DatabaseReference myRef= database.getReference(\"Person\");\n myRef.child(useruid).setValue(person);\n\n }", "public void setProfile(Profile profile) {\n\t\tthis.profile = profile;\n\t}", "private void saveProfile()\n {\n mFirebaseUser = mFirebaseAuth.getCurrentUser();\n mDatabase = FirebaseDatabase.getInstance().getReference();\n mUserId = mFirebaseUser.getUid();\n\n StorageReference filePath = mStorage.child(\"UserPic\").child(mImageUri.getLastPathSegment());\n //UserProfile userProfile = new UserProfile();\n filePath.putFile(mImageUri).addOnSuccessListener(new OnSuccessListener<UploadTask.TaskSnapshot>() {\n @Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n Uri downloadUrl = taskSnapshot.getDownloadUrl();\n mDatabase.child(\"users\").child(mUserId).child(\"userName\").setValue(fname);\n mDatabase.child(\"users\").child(mUserId).child(\"userImage\").setValue(downloadUrl.toString());\n }\n });\n\n }", "public void addProfile(Profile profile) {\n\t\tprofiles.put(profile.getProfileOwner(), profile.getProfileText());\n\t\tpersistentStorageAgent.writeThrough(profile);\n\t}", "public Profile (String n, String cName, String cID, String dir) {\r\n name = n;\r\n characterName = cName;\r\n characterID = cID;\r\n directory = dir + cID;\r\n backups = new ArrayList<>();\r\n tags = new ArrayList<>();\r\n \r\n loadProfileData();\r\n }", "protected abstract void generateProfileFiles() throws Exception;", "@Override\n\tpublic void saveUserProfile(UserProfile userProfile, boolean isOption,\n\t\t\tboolean isBan) throws Exception {\n\n\t}", "private void saveUserData() {\n\t\ttry {\n\t\t\t// if the user did not change default profile\n\t\t\t// picture, mProfilePictureArray will be null.\n\t\t\tif (bytePhoto != null) {\n\t\t\t\tFileOutputStream fos = openFileOutput(\n\t\t\t\t\t\tgetString(R.string.profile_photo_file_name),\n\t\t\t\t\t\tMODE_PRIVATE);\n\t\t\t\tfos.write(bytePhoto);\n\t\t\t\tfos.flush();\n\t\t\t\tfos.close();\n\t\t\t}\n\t\t} catch (Exception ioe) {\n\t\t\tioe.printStackTrace();\n\t\t}\n\t\tdb = new PersonalEventDbHelper(this);\n\t\t// Getting the shared preferences editor\n\t\tString mKey = getString(R.string.preference_name);\n\t\tSharedPreferences mPrefs = getSharedPreferences(mKey, MODE_PRIVATE);\n\n\t\tSharedPreferences.Editor mEditor = mPrefs.edit();\n\t\tmEditor.clear();\n\n\t\tFriend user = new Friend();\n\t\tArrayList<Event> list = new ArrayList<Event>();\n\n\t\t// Save name information\n\t\tmKey = getString(R.string.name_field);\n\t\tString mValue = (String) ((EditText) findViewById(R.id.editName))\n\t\t\t\t.getText().toString();\n\t\tmEditor.putString(mKey, mValue);\n\t\tname = mValue;\n\t\tuser.setName(mValue);\n\n\t\t// PARSE\n\t\tGlobals.USER = name;\n\n\t\t// Save class information\n\t\tmKey = getString(R.string.class_field);\n\t\tmValue = (String) ((EditText) findViewById(R.id.editClass)).getText()\n\t\t\t\t.toString();\n\t\tmEditor.putString(mKey, mValue);\n\n\t\tuser.setClassYear(mValue);\n\n\t\t// Save major information\n\t\tmKey = getString(R.string.major_field);\n\t\tmValue = (String) ((EditText) findViewById(R.id.editMajor)).getText()\n\t\t\t\t.toString();\n\t\tmEditor.putString(mKey, mValue);\n\n\t\t// Save course information\n\t\t// Course 1\n\t\t// Course name\n\t\tmKey = \"Course #1 Name\";\n\t\tmValue = (String) ((EditText) findViewById(R.id.editCourse1name))\n\t\t\t\t.getText().toString();\n\t\tmEditor.putString(mKey, mValue);\n\n\t\tEvent event1 = new Event();\n\t\tevent1.setEventName(mValue);\n\t\tevent1.setColor(Globals.USER_COLOR);\n\t\t// Course time period\n\t\tmKey = \"Course #1 Time\";\n\t\tSpinner mSpinnerSelection = (Spinner) findViewById(R.id.course1TimeSpinner);\n\t\tint selectedCourse = mSpinnerSelection.getSelectedItemPosition();\n\t\tmEditor.putInt(mKey, selectedCourse);\n\n\t\tevent1.setClassPeriod(selectedCourse);\n\n\t\t// Course location\n\t\tmKey = \"Course #1 Location\";\n\t\tmValue = (String) ((EditText) findViewById(R.id.editCourse1loc))\n\t\t\t\t.getText().toString();\n\t\tmEditor.putString(mKey, mValue);\n\n\t\t// Course 2\n\t\tevent1.setEventLocation(mValue);\n\t\tevent1.setOwnerName(name);\n\t\t// if (!Globals.classList.contains(event1.getString(\"objectId\"))){\n\t\t// Globals.classList.add(event1.getString(\"objectId\"));\n\t\t// System.out.println(event1.getString(\"objectId\"));\n\t\tevent1.saveInBackground();\n\t\t// mEditor.putString(Globals.CLASS_KEY1, event1.getString(\"objectId\"));\n\t\t// }\n\t\t// else{\n\t\t// ParseQuery<Event> query = ParseQuery.getQuery(Event.class);\n\t\t// query.whereEqualTo(\"objectId\", Globals.classList.get(0));\n\t\t// try {\n\t\t// Event event = query.getFirst();\n\t\t// event.setClassPeriod(event1.getClassPeriod());\n\t\t// event.setEventLocation(event1.getEventLocation());\n\t\t// event.setEventName(event1.getEventName());\n\t\t// event.saveInBackground();\n\t\t// } catch (ParseException e) {\n\t\t// // TODO Auto-generated catch block\n\t\t// e.printStackTrace();\n\t\t// }\n\t\t// }\n\n\t\tdb.insertEntry(event1);\n\t\tlist.add(event1);\n\n\t\t// Course 2\n\n\t\t// Save course information\n\t\t// Course name\n\t\tmKey = \"Course #2 Name\";\n\t\tmValue = (String) ((EditText) findViewById(R.id.editCourse2name))\n\t\t\t\t.getText().toString();\n\t\tmEditor.putString(mKey, mValue);\n\n\t\t// Course time period\n\t\tmKey = \"Course #2 Time\";\n\t\tmSpinnerSelection = (Spinner) findViewById(R.id.course2TimeSpinner);\n\t\tselectedCourse = mSpinnerSelection.getSelectedItemPosition();\n\t\tmEditor.putInt(mKey, selectedCourse);\n\t\tEvent event2 = new Event();\n\t\tevent2.setEventName(mValue);\n\t\tevent2.setColor(Globals.USER_COLOR);\n\n\t\t// Course time period\n\t\tmKey = \"Course #2 Time\";\n\t\tSpinner mSpinnerSelection2 = (Spinner) findViewById(R.id.course2TimeSpinner);\n\t\tint selectedCourse2 = mSpinnerSelection2.getSelectedItemPosition();\n\t\tmEditor.putInt(mKey, selectedCourse2);\n\n\t\tevent2.setClassPeriod(selectedCourse2);\n\n\t\t// Course location\n\t\tmKey = \"Course #2 Location\";\n\t\tmValue = (String) ((EditText) findViewById(R.id.editCourse2loc))\n\t\t\t\t.getText().toString();\n\t\tmEditor.putString(mKey, mValue);\n\n\t\t// Course 3\n\t\tevent2.setEventLocation(mValue);\n\t\tevent2.setOwnerName(name);\n\t\t// System.out.println(event2.getString(\"objectId\"));\n\t\t// if (!Globals.classList.contains(event2.getString(\"objectId\"))){\n\t\t// Globals.classList.add(event2.getString(\"objectId\"));\n\t\tevent2.saveInBackground();\n\t\t// mEditor.putString(Globals.CLASS_KEY2, event2.getString(\"objectId\"));\n\t\t// }\n\t\t// else{\n\t\t// ParseQuery<Event> query = ParseQuery.getQuery(Event.class);\n\t\t// query.whereEqualTo(\"objectId\", Globals.classList.get(1));\n\t\t// try {\n\t\t// Event event = query.getFirst();\n\t\t// event.setClassPeriod(event2.getClassPeriod());\n\t\t// event.setEventLocation(event2.getEventLocation());\n\t\t// event.setEventName(event2.getEventName());\n\t\t// event.saveInBackground();\n\t\t// } catch (ParseException e) {\n\t\t// // TODO Auto-generated catch block\n\t\t// e.printStackTrace();\n\t\t// }\n\t\t// }\n\t\tdb.insertEntry(event2);\n\t\tlist.add(event2);\n\n\t\t// Course 3\n\n\t\t// Save course information\n\t\t// Course name\n\t\tmKey = \"Course #3 Name\";\n\t\tmValue = (String) ((EditText) findViewById(R.id.editCourse3name))\n\t\t\t\t.getText().toString();\n\t\tmEditor.putString(mKey, mValue);\n\n\t\t// Course time period\n\t\tmKey = \"Course #3 Time\";\n\t\tmSpinnerSelection = (Spinner) findViewById(R.id.course3TimeSpinner);\n\t\tselectedCourse = mSpinnerSelection.getSelectedItemPosition();\n\t\tmEditor.putInt(mKey, selectedCourse);\n\n\t\tEvent event3 = new Event();\n\t\tevent3.setEventName(mValue);\n\t\tevent3.setColor(Globals.USER_COLOR);\n\n\t\t// Course time period\n\t\tmKey = \"Course #3 Time\";\n\t\tSpinner mSpinnerSelection3 = (Spinner) findViewById(R.id.course3TimeSpinner);\n\t\tint selectedCourse3 = mSpinnerSelection3.getSelectedItemPosition();\n\t\tmEditor.putInt(mKey, selectedCourse3);\n\n\t\tevent3.setClassPeriod(selectedCourse3);\n\n\t\t// Course location\n\t\tmKey = \"Course #3 Location\";\n\t\tmValue = (String) ((EditText) findViewById(R.id.editCourse3loc))\n\t\t\t\t.getText().toString();\n\t\tmEditor.putString(mKey, mValue);\n\n\t\t// Course 4\n\t\tevent3.setEventLocation(mValue);\n\t\tevent3.setOwnerName(name);\n\t\t// if (!Globals.classList.contains(event3.getString(\"objectId\"))){\n\t\t// Globals.classList.add(event3.getString(\"objectId\"));\n\t\tevent3.saveInBackground();\n\t\t// mEditor.putString(Globals.CLASS_KEY3, event3.getString(\"objectId\"));\n\t\t// }\n\t\t// else{\n\t\t// ParseQuery<Event> query = ParseQuery.getQuery(Event.class);\n\t\t// query.whereEqualTo(\"objectId\", Globals.classList.get(2));\n\t\t// try {\n\t\t// Event event = query.getFirst();\n\t\t// event.setClassPeriod(event3.getClassPeriod());\n\t\t// event.setEventLocation(event3.getEventLocation());\n\t\t// event.setEventName(event3.getEventName());\n\t\t// event.saveInBackground();\n\t\t// } catch (ParseException e) {\n\t\t// // TODO Auto-generated catch block\n\t\t// e.printStackTrace();\n\t\t// }\n\t\t// }\n\t\tdb.insertEntry(event3);\n\t\tlist.add(event3);\n\t\t// Course 4\n\n\t\t// Save course information\n\t\t// Course name\n\t\tmKey = \"Course #4 Name\";\n\t\tmValue = (String) ((EditText) findViewById(R.id.editCourse4name))\n\t\t\t\t.getText().toString();\n\t\tmEditor.putString(mKey, mValue);\n\n\t\t// Course time period\n\t\tmKey = \"Course #4 Time\";\n\t\tmSpinnerSelection = (Spinner) findViewById(R.id.course4TimeSpinner);\n\t\tselectedCourse = mSpinnerSelection.getSelectedItemPosition();\n\t\tmEditor.putInt(mKey, selectedCourse);\n\t\tEvent event4 = new Event();\n\t\tevent4.setEventName(mValue);\n\t\tevent4.setColor(Globals.USER_COLOR);\n\n\t\t// Course time period\n\t\tmKey = \"Course #4 Time\";\n\t\tSpinner mSpinnerSelection4 = (Spinner) findViewById(R.id.course4TimeSpinner);\n\t\tint selectedCourse4 = mSpinnerSelection4.getSelectedItemPosition();\n\t\tmEditor.putInt(mKey, selectedCourse4);\n\n\t\tevent4.setClassPeriod(selectedCourse4);\n\n\t\t// Course location\n\t\tmKey = \"Course #4 Location\";\n\t\tmValue = (String) ((EditText) findViewById(R.id.editCourse4loc))\n\t\t\t\t.getText().toString();\n\t\tmEditor.putString(mKey, mValue);\n\n\t\tevent4.setEventLocation(mValue);\n\n\t\tlist.add(event4);\n\t\tevent4.setOwnerName(name);\n\t\t// if (!Globals.classList.contains(event4.getString(\"objectId\"))){\n\t\t// Globals.classList.add(event4.getString(\"objectId\"));\n\t\tevent4.saveInBackground();\n\t\t// mEditor.putString(Globals.CLASS_KEY4, event4.getString(\"objectId\"));\n\t\t// }\n\t\t// else{\n\t\t// ParseQuery<Event> query = ParseQuery.getQuery(Event.class);\n\t\t// query.whereEqualTo(\"objectId\", Globals.classList.get(3));\n\t\t// try {\n\t\t// Event event = query.getFirst();\n\t\t// event.setClassPeriod(event4.getClassPeriod());\n\t\t// event.setEventLocation(event4.getEventLocation());\n\t\t// event.setEventName(event4.getEventName());\n\t\t// event.saveInBackground();\n\t\t// } catch (ParseException e) {\n\t\t// // TODO Auto-generated catch block\n\t\t// e.printStackTrace();\n\t\t// }\n\t\t// }\n\t\tdb.insertEntry(event4);\n\t\tuser.setSchedule(list);\n\n\t\t// Call method to get all entries from the datastore!!!\n\n\t\t// EventDbHelper db = new EventDbHelper(this);\n\t\t// try {\n\t\t// db.insertEntry(user);\n\t\t// } catch (IOException e) {\n\t\t// // TODO Auto-generated catch block\n\t\t// e.printStackTrace();\n\t\t// }\n\n\t\t// Commit all the changes into the shared preference\n\t\tmEditor.commit();\n\t\tGlobals.isProfileSet = true;\n\t}", "public profile_model(int profileId, String name, int moneyTotal, int jobDone, String ranking, String account, String inbox, String bankAcc, Timestamp updated) {\n this.profileId = profileId;\n Name = name;\n this.moneyTotal = moneyTotal;\n JobDone = jobDone;\n Ranking = ranking;\n Account = account;\n Inbox = inbox;\n BankAcc = bankAcc;\n Updated = updated;\n }", "H getProfile();", "public void saveUserSettings() {\n\t}", "public void saveProfileEditData() {\r\n\r\n }", "public void setProfile(String profile) {\n this.profile = profile == null ? null : profile.trim();\n }", "private static Profile getProfileFromUser(User user) {\n // First fetch the user's Profile from the datastore.\n Profile profile = ofy().load().key(\n Key.create(Profile.class, user.getUserId())).now();\n if (profile == null) {\n // Create a new Profile if it doesn't exist.\n // Use default displayName and teeShirtSize\n String email = user.getEmail();\n\n profile = new Profile(user.getUserId(),\n extractDefaultDisplayNameFromEmail(email), email, null, null, null, null);\n }\n return profile;\n }", "private void addProfile(ProfileInfo profileInfo)\r\n\t{\r\n\t\taddProfile(profileInfo.getProfileName(), \r\n\t\t\t\tprofileInfo.getUsername(), \r\n\t\t\t\tprofileInfo.getServer(),\r\n\t\t\t\tprofileInfo.getPort());\r\n\t}", "@Override\r\n\tpublic int createProfileDAO() {\n\t\treturn 1;\r\n\t}", "public static Profile createEntity(EntityManager em) {\n Profile profile = new Profile()\n .height(DEFAULT_HEIGHT)\n .weight(DEFAULT_WEIGHT)\n .location(DEFAULT_LOCATION)\n .dob(DEFAULT_DOB);\n return profile;\n }", "private void setValuesInSharedPrefernce() {\r\n\r\n\t\tmSharedPreferences_reg.edit().putString(\"ProfileImageString\", profileImageString).commit();\r\n\t\tmSharedPreferences_reg.edit().putString(\"PseudoName\", psedoName).commit();\r\n\t\tmSharedPreferences_reg.edit().putString(\"Pseudodescription\", profiledescription).commit();\r\n\t}", "void setUserProfile(Map<String, Object> profile);", "private void putPersonalInformation() throws SQLException, FileNotFoundException, IOException {\n AdUserPersonalData personal;\n try {\n personal = PersonalDataController.getInstance().getPersonalData(username);\n staff_name = personal.getGbStaffName();\n staff_surname = personal.getGbStaffSurname();\n id_type = \"\"+personal.getGbIdType();\n id_number = personal.getGbIdNumber();\n putProfPic(personal.getGbPhoto());\n phone_number = personal.getGbPhoneNumber();\n mobile_number = personal.getGbMobileNumber();\n email = personal.getGbEmail();\n birthdate = personal.getGbBirthdate();\n gender = \"\"+personal.getGbGender();\n } catch (GB_Exception ex) {\n LOG.error(ex);\n GBMessage.putException(ex);\n }\n }", "public static ParkingProfile init(String pathToParkingProfilePropertiesFile) throws Exception {\n if(\"Check for multiprofile enabled in propetties file\") {\n // Create singleton and set values\n return parkingProfile;\n } else {\n // Allow to create nultiple and set values\n return new ParkingProfile();\n }\n }", "public UserProfile() {}", "public UserProfile() {\n this(DSL.name(\"user_profile\"), null);\n }", "public com.eviware.soapui.config.OAuth1ProfileConfig addNewOAuth1Profile()\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.eviware.soapui.config.OAuth1ProfileConfig target = null;\n target = (com.eviware.soapui.config.OAuth1ProfileConfig)get_store().add_element_user(OAUTH1PROFILE$0);\n return target;\n }\n }", "public void editTheirProfile() {\n\t\t\n\t}", "@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 }", "@Override\n public void copyTo(UserProfile userProfile) {\n userProfile.setId(getId());\n userProfile.setCity(getCity());\n userProfile.setZipcode(getZipcode());\n userProfile.setCountry(getCountry());\n userProfile.setTitle(getTitle());\n userProfile.setName(getName());\n userProfile.setFirstName(getFirstName());\n userProfile.setLastName(getLastName());\n userProfile.setUsername(getUsername());\n userProfile.setGender(getGender());\n userProfile.setPoints(getPoints());\n userProfile.setNotifyReportDue(isNotifyReportDue());\n }", "public static void addDefaultProfile(final SpringApplication app) {\n final Map<String, Object> defProperties = new HashMap<>();\n /*\n * The default profile to use when no other profiles are defined\n * This cannot be set in the <code>application.yml</code> file.\n * See https://github.com/spring-projects/spring-boot/issues/1219\n */\n defProperties.put(SPRING_PROFILE_DEFAULT, Profiles.LOCAL);\n app.setDefaultProperties(defProperties);\n }", "public ProfileUploadHelper() throws IOException {}", "public static String saveUser(User user){\r\n File userDir = (File)userDirs.get(user);\r\n\r\n if (user.isGuest()){\r\n System.out.println(\"Querying user about saving guest settings\");\r\n int result = JOptionPane.showConfirmDialog(getMainFrame(), \r\n \"Would you like to save the guest preferences?\\n(they may be shared with anyone else using this computer)\", \"Save preferences?\", JOptionPane.YES_NO_OPTION);\r\n if (result == JOptionPane.YES_OPTION){\r\n if (userDir == null){\r\n System.out.println(\"Creating new guest user\");\r\n File serverDir = new File(usersDir, user.getServer().getID());\r\n userDir = new File(serverDir, user.getUsername());\r\n if ((!userDir.exists() || !userDir.isDirectory()) && !userDir.mkdirs()){\r\n JOptionPane.showMessageDialog(mainFrame, \"Unable to create directory \"+userDir, \r\n \"Error\", JOptionPane.ERROR_MESSAGE);\r\n return null;\r\n }\r\n }\r\n }\r\n else\r\n return null;\r\n }\r\n else if (userDir == null){\r\n System.out.println(\"Querying user about creating a new account\");\r\n int result = JOptionPane.showConfirmDialog(getMainFrame(),\r\n \"Would you like to save your \\\"\" + user.getUsername() + \"\\\" profile?\", \"Save profile?\", JOptionPane.YES_NO_OPTION);\r\n if (result == JOptionPane.YES_OPTION){\r\n System.out.println(\"Creating new user, named \"+user.getUsername());\r\n File serverDir = new File(usersDir, user.getServer().getID());\r\n userDir = new File(serverDir, user.getUsername());\r\n if ((!userDir.exists() || !userDir.isDirectory()) && !userDir.mkdirs()){\r\n JOptionPane.showMessageDialog(mainFrame, \"Unable to create directory \"+userDir, \"Error\", JOptionPane.ERROR_MESSAGE);\r\n return null;\r\n }\r\n }\r\n else\r\n return null;\r\n }\r\n\r\n try{\r\n Properties props = user.getProperties();\r\n Hashtable userFiles = user.getUserFiles();\r\n\r\n File propsFile = new File(userDir, \"settings\");\r\n OutputStream propsOut = new BufferedOutputStream(new FileOutputStream(propsFile));\r\n props.save(propsOut, user.getUsername()+\"'s properties for \"+user.getServer().getLongName());\r\n propsOut.close();\r\n\r\n if (!userFiles.isEmpty()){\r\n File userFilesFile = new File(userDir, \"files\"); \r\n DataOutputStream out = new DataOutputStream(new BufferedOutputStream(new FileOutputStream(userFilesFile)));\r\n out.writeInt(userFiles.size());\r\n Enumeration filenames = userFiles.keys();\r\n while (filenames.hasMoreElements()){\r\n String filename = (String)filenames.nextElement();\r\n MemoryFile memFile = (MemoryFile)userFiles.get(filename);\r\n out.writeUTF(filename);\r\n synchronized(memFile){\r\n out.writeInt(memFile.getSize());\r\n memFile.writeTo(out);\r\n }\r\n }\r\n out.close();\r\n }\r\n\r\n userDirs.put(user, userDir);\r\n\r\n String settingsPath = getSettingsPath(user);\r\n\r\n if (user.isGuest())\r\n setProperty(user.getServer().getID()+\".guestAccountPath\", settingsPath);\r\n\r\n return settingsPath;\r\n } catch (IOException e){\r\n JOptionPane.showMessageDialog(mainFrame, \"Unable to save user file into:\\n\"+userDir, \"Error\", JOptionPane.ERROR_MESSAGE);\r\n return null;\r\n }\r\n }", "private User retrievePersonalProfileData() {\n if (checkIfProfileExists()) {\n return SharedPrefsUtils.convertSharedPrefsToUserModel(context);\n } else {\n return null;\n }\n }", "@Override\n\tpublic UserProfile getDefaultUserProfile(String userName, String ip)\n\t\t\tthrows Exception {\n\t\treturn null;\n\t}", "public void upload() {\n try {\n BufferedImage bufferedProfile = ImageIO.read(profilePicture.getInputStream());\n FaceImage face = new FaceImage(bufferedProfile);\n\n if (face.foundFace()) {\n\n face.setNoCropMultiplier(1);\n face.setAdditionPadding(20);\n face.setDimension(128, 128);\n BufferedImage profilePicture = face.getScaledProfileFace();\n\n File outfile = new File(Settings.NEW_PROFILE_IMAGE_PATH.replace(\"~~username~~\", student.getUserName()));\n ImageIO.write(profilePicture, \"png\", outfile);\n\n success = true;\n\n student.setProfilePicturePath(\"profile/\" + student.getUserName() + \".png\");\n save();\n\n } else {\n FacesContext.getCurrentInstance().addMessage(\"imageContainer:file\", new FacesMessage(\"Kein Gesicht gefunden!\"));\n\n }\n\n } catch (IOException e) {\n System.err.println(\"something went wrong \" + e.getMessage());\n }\n\n }", "public LocalUserProfile() {\n \tsuper();\n }", "@Override\n public CreateDeviceProfileResult createDeviceProfile(CreateDeviceProfileRequest request) {\n request = beforeClientExecution(request);\n return executeCreateDeviceProfile(request);\n }", "public void setProfile( ProjectProfileBO pProfile )\r\n {\r\n mProfile = pProfile;\r\n }", "private static void saveNewUserTest(Connection conn) {\n\n\t\tUser user1 = new User();\n\t\tuser1.setUsername(\"john\");\n\t\tuser1.setPassword(\"123\");\n\t\tuser1.setEmail(\"[email protected]\");\n\t\ttry {\n\t\t\tuser1.saveToDB(conn);\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public void createAccount() {\n\t\t// Assigns variables based on user input\n\t\tString username = usernameField.getText();\n\t\tString firstName = firstNameField.getText();\n\t\tString lastName = lastNameField.getText();\n\t\tString address = addressField.getText();\n\t\tString postCode = postcodeField.getText();\n\t\tString phoneNumber = phoneNumberField.getText();\n\t\tlong phoneNumberLong;\n\t\tif (username.isEmpty() || firstName.isEmpty() || lastName.isEmpty() || address.isEmpty() || postCode.isEmpty()\n\t\t\t\t|| phoneNumber.isEmpty()) { // Checks if number is correct format\n\n\t\t\tAlert alert = new Alert(AlertType.ERROR); // Error message\n\t\t\talert.setTitle(\"Error\");\n\n\t\t\talert.setHeaderText(\"Could not create an user\");\n\t\t\talert.setContentText(\"Make sure you fill all fields and press button again\");\n\t\t\talert.showAndWait();\n\n\t\t\treturn;\n\t\t}\n\n\t\telse {\n\t\t\ttry {\n\t\t\t\tphoneNumberLong = Long.parseLong(phoneNumber);\n\t\t\t} catch (Exception e) {\n\t\t\t\tAlert alert = new Alert(AlertType.ERROR);\n\t\t\t\talert.setTitle(\"Error\");\n\n\t\t\t\talert.setHeaderText(\"Wrong format of phone number\");\n\t\t\t\talert.setContentText(\"Please enter correct phone number\");\n\t\t\t\talert.showAndWait();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tif(FileReader.exists(username)) {\n\t\t\t\tAlert alert = new Alert(AlertType.ERROR);\n\t\t\t\talert.setTitle(\"Error\");\n\n\t\t\t\talert.setHeaderText(\"User with the username \"+ username +\" already exists. \");\n\t\t\t\talert.setContentText(\"Please choose another username\");\n\t\t\t\talert.showAndWait();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tString userdata = \"\";\n\t\t\tuserdata += \"\\n Username: \" + username;\n\t\t\tuserdata += \"\\n First name: \" + firstName;\n\t\t\tuserdata += \"\\n Last name: \" + lastName;\n\t\t\tuserdata += \"\\n Address: \" + address;\n\t\t\tuserdata += \"\\n Post code: \" + postCode;\n\t\t\tuserdata += \"\\n Phone number: \" + phoneNumberLong;\n\t\t\t\n\n\t\t\tif(custom) {\n\t\t\t\tavatarIndex = 101;\n\t\t\t\t// Gives users the custom avatar\n\t\t\t\tFile file1 = new File(\"artworkImages/\" + username);\n\t\t\t\tfile1.mkdir();\n\t\t\t\tPath path = Paths.get(\"customAvatars/\" + username + \".png\");\n\t\t\t\tString path1 = \"tmpImg.png\";\n\t\t\t\tFile file = new File(path1);\n\n\t\t\t\ttry {\n\t\t\t\t\tFiles.copy(file.toPath(), path, StandardCopyOption.REPLACE_EXISTING);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tUser user = new User(username, firstName, lastName, address, postCode, phoneNumberLong, avatarIndex);\n\t\t\tFileReader.addUser(user); // Creates user\n\n\t\t\ttry {\n\t\t\t\tWriter.writeUserFile(user); // Adds user to memory\n\t\t\t} catch (IOException e) {\n\t\t\t\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\n\t\t\tAlert alert = new Alert(AlertType.INFORMATION); // Success message\n\t\t\talert.setTitle(\"Success\");\n\n\t\t\talert.setHeaderText(\"The user has been created\");\n\t\t\talert.setContentText(\"Close this window to return to login screen\");\n\t\t\talert.showAndWait();\n\n\t\t\tcreateAccountButton.getScene().getWindow().hide();\n\t\t}\n\n\t}", "@objid (\"6680b948-597e-4df9-b9a2-de8dc499acb3\")\n void setOwnerProfile(Profile value);", "public Profile (String n, String cName, String cID, String dir, ArrayList<String> backupNames) {\r\n name = n;\r\n characterName = cName;\r\n characterID = cID;\r\n directory = dir + cID;\r\n backups = new ArrayList<>();\r\n tags = new ArrayList<>();\r\n \r\n loadProfileData();\r\n }", "TasteProfile.UserProfile getUserProfile (String user_id);", "@ApiMethod(name = \"saveProfile\", path = \"profile\", httpMethod = HttpMethod.POST)\n // The request that invokes this method should provide data that\n // conforms to the fields defined in ProfileForm\n public Profile saveProfile(final User user, ProfileForm profileForm)\n throws UnauthorizedException {\n\n // If the user is not logged in, throw an UnauthorizedException\n if (user == null) {\n throw new UnauthorizedException(\"Authorization required\");\n }\n\n // Get the userId and mainEmail\n String mainEmail = user.getEmail();\n String userId = user.getUserId();\n\n // Get the displayName, city, state, & phone number sent by the request.\n String displayName = profileForm.getDisplayName();\n String phoneNumber = profileForm.getPhoneNumber();\n String city = profileForm.getCity();\n String state = profileForm.getState();\n String pictureUrl = profileForm.getPictureUrl();\n \n // Get the Profile from the datastore if it exists\n // otherwise create a new one\n Profile profile = ofy().load().key(Key.create(Profile.class, userId))\n .now();\n\n if (profile == null) {\n // Populate the displayName with default values\n // if not sent in the request\n if (displayName == null) {\n displayName = extractDefaultDisplayNameFromEmail(user\n .getEmail());\n }\n\n // Now create a new Profile entity\n profile = new Profile(userId, displayName, mainEmail, city, state, phoneNumber, pictureUrl);\n } else {\n // The Profile entity already exists\n // Update the Profile entity\n profile.update(displayName, city, state, phoneNumber, pictureUrl);\n }\n\n // Save the entity in the datastore\n ofy().save().entity(profile).now();\n // Return the profile\n return profile;\n }", "private void updateProfile(PrivateProfile p) {\n final ProgressDialog dialog = new ProgressDialog(SettingsActivity.this);\n dialog.setMessage(getString(R.string.progress_update_profile));\n dialog.show();\n\n // Prepare user inputs for validator\n HashMap<String, Object> fields = new HashMap<String, Object>();\n fields.put(\"firstName\", mFirstName.getText().toString().trim());\n fields.put(\"lastName\", mLastName.getText().toString().trim());\n fields.put(\"homeCity\", mHomeCity.getText().toString().trim());\n fields.put(\"phone\", mPhone.getText().toString().trim());\n fields.put(\"arriveHQBy\", mArriveHQBy.getText().toString().trim());\n fields.put(\"arriveHomeBy\", mArriveHomeBy.getText().toString().trim());\n\n validateFields(fields);\n\n userProfile.setFirstName((String) fields.get(\"firstName\"));\n userProfile.setLastName((String) fields.get(\"lastName\"));\n userProfile.setHomeCity((String) fields.get(\"homeCity\"));\n userProfile.setPhoneNumber((String) fields.get(\"phone\"));\n userProfile.setDriverStatus((Boolean) fields.get(\"driving\"));\n userProfile.setDriverCar((String) fields.get(\"car\"));\n userProfile.setArriveHQBy((String) fields.get(\"arriveHQBy\"));\n userProfile.setArriveHomeBy((String) fields.get(\"arriveHomeBy\"));\n\n userProfile.saveInBackground(new SaveCallback() {\n @Override\n public void done(ParseException e) {\n dialog.dismiss();\n if (e != null) {\n // Show the error message\n Toast.makeText(SettingsActivity.this, e.getMessage(), Toast.LENGTH_LONG).show();\n } else {\n // show user the activity was complete\n Toast.makeText(SettingsActivity.this, R.string.profile_saved, Toast.LENGTH_SHORT).show();\n }\n }\n });\n }", "public SearchProfileBean saveSearchProfile(SearchProfileBean pBean, UserBean pUser) throws MPException {\r\n\t\tBOEntitySearchProfile boEntitySearchProfile = new BOEntitySearchProfile(pUser, pBean);\r\n\r\n\t\tboEntitySearchProfile.save();\r\n\r\n\t\treturn boEntitySearchProfile.getSearchBean();\r\n\t}", "Human_User createHuman_User();", "private void saveUserData() {\n mSharedPreferences.clearProfile();\n mSharedPreferences.setName(mName);\n mSharedPreferences.setEmail(mEmail);\n mSharedPreferences.setGender(mGender);\n mSharedPreferences.setPassWord(mPassword);\n mSharedPreferences.setYearGroup(mYearGroup);\n mSharedPreferences.setPhone(mPhone);\n mSharedPreferences.setMajor(mMajor);\n\n mImageView.buildDrawingCache();\n Bitmap bmap = mImageView.getDrawingCache();\n try {\n FileOutputStream fos = openFileOutput(getString(R.string.profile_photo_file_name), MODE_PRIVATE);\n bmap.compress(Bitmap.CompressFormat.PNG, 100, fos);\n fos.flush();\n fos.close();\n } catch (IOException ioe) {\n ioe.printStackTrace();\n }\n\n if (entryPoint.getStringExtra(SOURCE).equals(MainActivity.ACTIVITY_NAME)) {\n Toast.makeText(RegisterActivity.this,\n R.string.edit_success, Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(RegisterActivity.this,\n R.string.register_success, Toast.LENGTH_SHORT).show();\n }\n\n }", "public void init(Profile p) {\n\t\tString s = p.getParameter(PersistentDeliveryService.PERSISTENT_DELIVERY_BASEDIR, null);\n\t\tif(s == null) {\n\t\t\ts = \".\" + File.separator + \"PersistentDeliveryStore\";\n\t\t}\n\n\t\tbaseDir = new File(s);\n\t\tif(!baseDir.exists()) {\n\t\t\tbaseDir.mkdir();\n\t\t}\n\t}", "private void readProfile(XmlPullParser parser) throws IOException, XmlPullParserException {\n String students_info, photo_link, school_name, result_type;\n parser.require(XmlPullParser.START_TAG, ns, \"profile\");\n parser.next();\n\n students_info = readText(parser);\n parser.next();\n\n\n school_name = readText(parser);\n parser.next();\n\n photo_link = readText(parser);\n\n\n byte[] byte_array;\n ConvertToByteArray cvb = new ConvertToByteArray();\n if (!photo_link.equals(\"\")) {\n try {\n byte_array = cvb.getLogoImage(photo_link);\n DataStoreInDBProfile dsp = new DataStoreInDBProfile(mContext);\n dsp.storeStudenInfo(students_info, school_name, byte_array, true, false);\n\n } catch (Exception e) {\n\n }\n } else {\n photo_link = \"https://dabble.co/assets/fallback/default_user_photo-5cf83e232ebc4a1bab67fb6bf24fa1d1da9b603af2a2bc8e98c6d4c2d015d107.png\";\n try {\n byte_array = cvb.getLogoImage(photo_link);\n DataStoreInDBProfile dsp = new DataStoreInDBProfile(mContext);\n dsp.storeStudenInfo(students_info, school_name, byte_array, true, false);\n } catch (Exception e) {\n\n }\n }\n parser.next();\n\n\n\n\n }", "public Profile() {\n initComponents();\n AutoID();\n member_table();\n \n }" ]
[ "0.6695678", "0.666591", "0.66472244", "0.6285024", "0.6164697", "0.6117458", "0.6110281", "0.60977125", "0.60905", "0.5952966", "0.5866254", "0.58547777", "0.5827868", "0.58225745", "0.5811116", "0.5793382", "0.57913053", "0.5788621", "0.57705534", "0.57459867", "0.5742134", "0.5729233", "0.57213014", "0.5710356", "0.56986815", "0.56970626", "0.56778675", "0.56730616", "0.56718934", "0.5667883", "0.5644144", "0.56325185", "0.5609769", "0.5597933", "0.5597297", "0.5591887", "0.5591398", "0.55787814", "0.5574614", "0.55745447", "0.55739236", "0.55681515", "0.55539393", "0.5552751", "0.5532186", "0.5526942", "0.551534", "0.54971856", "0.5482596", "0.54786986", "0.54785866", "0.545989", "0.5447901", "0.544348", "0.54359555", "0.54187953", "0.54147047", "0.54030657", "0.5402362", "0.53913844", "0.53744656", "0.53560305", "0.5347507", "0.5335784", "0.53196985", "0.53116333", "0.5300456", "0.52954096", "0.5268755", "0.5254596", "0.5250736", "0.5248662", "0.52432126", "0.52333075", "0.5223117", "0.5209336", "0.5208319", "0.5197617", "0.5197123", "0.51915735", "0.51803994", "0.51764786", "0.51676136", "0.516234", "0.51493025", "0.5148141", "0.5146674", "0.51458335", "0.5144012", "0.51285595", "0.51280415", "0.5126755", "0.51160336", "0.5111064", "0.51099956", "0.50867605", "0.50820386", "0.5081267", "0.50718015", "0.5069185" ]
0.79784286
0
create default stats and save to Parse
private void createStats(ParseUser parseUser) { Stats stats = new Stats(); stats.setUser(parseUser); //default values stats.setPStat1(1); stats.setPStat2(1); stats.setPStat3(1); stats.setPStat4(1); stats.setSStat1(1); stats.setSStat2(1); stats.setSStat3(1); stats.setSStat4(1); //default category preference stats.setPreference("Rules"); stats.saveInBackground(new SaveCallback() { @Override public void done(ParseException e) { if (e != null) { Log.e(TAG, "Error while saving"); e.printStackTrace(); return; } Log.d(TAG, "Created and saved stats"); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void saveStats() {\n this.saveStats(null);\n }", "public void computeStats() {\n\t\tstats = new Stats();\t\t\n\t}", "public XmlWorkerUserstats(){\r\n \t\tthis.statsDS = new UserstatsDS();\r\n \t\titemResolver = new hModItemResolver(new File(statsDS.getDataFolder(),\"items.txt\"));\r\n \t\tresolveCats = new String[]{\"blockdestroy\", \"blockcreate\", \"itemdrop\", \"itempickup\"};\r\n \t}", "private void stats ( ) {\n\n nodes = 0;\n depth = 0;\n\n parse(((GPIndividual)program).trees[0].child);\n\n }", "public static void _generateStatistics() {\n\t\ttry {\n\t\t\t// Setup info\n\t\t\tPrintStream stats = new PrintStream(new File (_statLogFileName + \".txt\"));\n\n\t\t\tScanner scan = new Scanner(new File(_logFileName+\".txt\"));\n\t\t\twhile (scan.hasNext(SETUP.toString())) {\n\t\t\t\t// Append setup info\n\t\t\t\tstats.append(scan.nextLine()+\"\\n\");\n\t\t\t}\n\t\t\tstats.append(\"\\n\");\n\n\t\t\twhile (scan.hasNext(DETAILS.toString()) || scan.hasNext(RUN.toString())) {\n\t\t\t\t// Throw detailed info away\n\t\t\t\tscan.nextLine();\n\t\t\t}\n\n\t\t\twhile (scan.hasNext()) {\n\t\t\t\t// Append post-run info\n\t\t\t\tstats.append(scan.nextLine()+\"\\n\");\n\t\t\t}\n\t\t\tscan.close();\n\t\t\tstats.append(\"\\n\");\n\n\t\t\t// Perf4J info\n\t\t\tReader reader = new FileReader(_logFileName+\".txt\");\n\t\t\tLogParser parser = new LogParser(reader, stats, null, 10800000, true, new GroupedTimingStatisticsTextFormatter());\n\t\t\tparser.parseLog();\n\t\t\tstats.close();\n\t\t}\n\t\tcatch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void initializeStats() {\n for (Stat stat:Stat.values()) {\n stats.put(stat, initialValue);\n }\n }", "@Override\n public void visitStats(CharacterStats stats) {\n Element statElm = doc.createElement(\"Stats\");\n\n Attr agilityStats = doc.createAttribute(\"agility\");\n agilityStats.setValue(Integer.toString(stats.getAgility()));\n statElm.setAttributeNode(agilityStats);\n\n Attr experience = doc.createAttribute(\"experience\");\n experience.setValue(Integer.toString(stats.getExperience()));\n statElm.setAttributeNode(experience);\n\n Attr hardiness = doc.createAttribute(\"hardiness\");\n hardiness.setValue(Integer.toString(stats.getHardiness()));\n statElm.setAttributeNode(hardiness);\n\n Attr intellect = doc.createAttribute(\"intellect\");\n intellect.setValue(Integer.toString(stats.getIntellect()));\n statElm.setAttributeNode(intellect);\n\n Attr lives = doc.createAttribute(\"lives\");\n lives.setValue(Integer.toString(stats.getLives()));\n statElm.setAttributeNode(lives);\n\n Attr strength = doc.createAttribute(\"strength\");\n strength.setValue(Integer.toString(stats.getStrength()));\n statElm.setAttributeNode(strength);\n\n Attr health = doc.createAttribute(\"health\");\n health.setValue(Integer.toString(stats.getHealth()));\n statElm.setAttributeNode(health);\n\n Attr mana = doc.createAttribute(\"mana\");\n mana.setValue(Integer.toString(stats.getMana()));\n statElm.setAttributeNode(mana);\n\n //Base stuff\n Attr baseAgilityStats = doc.createAttribute(\"base-agility\");\n baseAgilityStats.setValue(Integer.toString(stats.getBaseAgility()));\n statElm.setAttributeNode(baseAgilityStats);\n\n Attr baseHardiness = doc.createAttribute(\"base-hardiness\");\n baseHardiness.setValue(Integer.toString(stats.getBaseHardiness()));\n statElm.setAttributeNode(baseHardiness);\n\n Attr baseIntellect = doc.createAttribute(\"base-intellect\");\n baseIntellect.setValue(Integer.toString(stats.getBaseIntellect()));\n statElm.setAttributeNode(baseIntellect);\n\n Attr baseLive = doc.createAttribute(\"base-lives\");\n baseLive.setValue(Integer.toString(stats.getBaseLives()));\n statElm.setAttributeNode(baseLive);\n\n Attr baseStrength = doc.createAttribute(\"base-strength\");\n baseStrength.setValue(Integer.toString(stats.getBaseStrength()));\n statElm.setAttributeNode(baseStrength);\n\n Attr baseHealth = doc.createAttribute(\"base-health\");\n baseHealth.setValue(Integer.toString(stats.getBaseHealth()));\n statElm.setAttributeNode(baseHealth);\n\n Attr baseMana = doc.createAttribute(\"base-mana\");\n baseMana.setValue(Integer.toString(stats.getBaseMana()));\n statElm.setAttributeNode(baseMana);\n\n characterList.add(statElm);\n\n\n }", "public void resetStats() {\n recentStats = new Stats();\n }", "private void writeStatsToFile() {\n\t\tString fileName = \"TypeaheadStats.dat\";\n\t\tString contents = \"Typeahead_Tasks,Index_Hits,Hit_Ratio,Avg_Time,Suffix_Time,Pruning\\n\";\n\t\tcontents += numOfSearchTasks + \n\t\t\t\t\",\" + numOfIndexHits + \n\t\t\t\t\",\" + 1.0 * numOfIndexHits / numOfSearchTasks + \n\t\t\t\t\",\" + totalTime / numOfSearchTasks +\n\t\t\t\t\",\" + suffixTreeTime / numOfSearchTasks + \n\t\t\t\t\",\" + pruningPercentage / numOfSearchTasks;\n\t\tFileManager.writeToFile(fileName, contents);\n\t}", "private void saveGeneralData() {\n Settings.CRAWL_TIMEOUT = Integer.parseInt(spCrawlTimeout.getValue().toString()) * 1000;\n Settings.RETRY_POLICY = Integer.parseInt(spRetryPolicy.getValue().toString());\n Settings.RECRAWL_TIME = Integer.parseInt(spRecrawlInterval.getValue().toString()) * 3600000;\n Settings.RECRAWL_CHECK_TIME = Integer.parseInt(spRecrawlCheckTime.getValue().toString()) * 60000;\n\n Settings.saveSettings();\n }", "public static void saveStats() {\r\n\t\tif(Main.optionsCheckbox.getState()) FileUtils.exportGameOptions();\r\n\t\t\r\n\t\tif(Main.isFourHandedTeams) {\r\n\t\t\tif(Main.team1Checkbox.getState()) FileUtils.exportTeamFile(Main.teamOne);\r\n\t\t\tif(Main.team2Checkbox.getState()) FileUtils.exportTeamFile(Main.teamTwo);\r\n\t\t\tif(Main.teamPreviousCheckbox.getState()) FileUtils.exportTeamFile(Main.teamPrevious);\r\n\t\t}\r\n\t\t\r\n\t\tif(Main.isFourHandedSingle) {\r\n\t\t\tif(Main.player1Checkbox.getState()) FileUtils.exportPlayerFile(Main.playerOne);\r\n\t\t\tif(Main.player2Checkbox.getState()) FileUtils.exportPlayerFile(Main.playerTwo);\r\n\t\t\tif(Main.player3Checkbox.getState()) FileUtils.exportPlayerFile(Main.playerThree);\r\n\t\t\tif(Main.player4Checkbox.getState()) FileUtils.exportPlayerFile(Main.playerFour);\r\n\t\t\tif(Main.playerPreviousCheckbox.getState()) FileUtils.exportPlayerFile(Main.playerPrevious);\r\n\t\t}\r\n\t\t\r\n\t\tif(Main.isThreeHanded) {\r\n\t\t\tif(Main.player1Checkbox.getState()) FileUtils.exportPlayerFile(Main.playerOne);\r\n\t\t\tif(Main.player2Checkbox.getState()) FileUtils.exportPlayerFile(Main.playerTwo);\r\n\t\t\tif(Main.player3Checkbox.getState()) FileUtils.exportPlayerFile(Main.playerThree);\r\n\t\t\tif(Main.playerPreviousCheckbox.getState()) FileUtils.exportPlayerFile(Main.playerPrevious);\r\n\t\t}\r\n\t}", "public void save() {\n settingService.saveMaxScore(score);\r\n// powerUpCount = 0;\r\n// powerDownCount = 0;\r\n// purplePowerCount = 0;\r\n// yellowMadnessCount = 0;\r\n// shapeCount = 0;\r\n }", "public Stats() {\n numIn = 0;\n numOut = 0;\n totTimeWait = 0;\n totTime = 0;\n }", "private void resetStats() {\n }", "public void addNewPlayerStatsToStats(String username) throws IOException{\r\n\t\tScanner statsReader = new Scanner(new BufferedReader(new FileReader(\"statistics.txt\")));\r\n\t\tint numberOfPlayers = statsReader.nextInt();\r\n\t\tPlayerStats[] statsDirectory = new PlayerStats[numberOfPlayers];\r\n\t\t\r\n\t\tfor(int count = 0; count < numberOfPlayers; count++) {\r\n\t\t\tPlayerStats tempPlayerStats = new PlayerStats();\r\n\t\t\t/* load temporary stats object with stats */\r\n\t\t\treadPlayerStats(tempPlayerStats, statsReader);\r\n\t\t\t/* add new stats object to directory */\r\n\t\t\tstatsDirectory[count] = tempPlayerStats;\r\n\t\t}\r\n\t\t\r\n\t\tstatsReader.close();\r\n\t\t/* rewrite the statistics file with user stats reset */\r\n\t\tFileWriter writer = new FileWriter(\"statistics.txt\");\r\n\t\tBufferedWriter statsWriter = new BufferedWriter(writer);\r\n\t\tnumberOfPlayers++;\r\n\t\tInteger numPlayers = numberOfPlayers;\r\n\t\tstatsWriter.write(numPlayers.toString()); // write the number of players\r\n\t\tstatsWriter.write(\"\\n\");\r\n\t\tfor(int count = 0; count < numberOfPlayers - 1; count++) { // - 1 because numberOfPlayers was incremented\r\n\t\t\tstatsWriter.write(statsDirectory[count].playerStatsToString()); // write player to statistics.txt\r\n\t\t}\r\n\t\t/* add new entry with 0s at end */\r\n\t\t\tInteger zero = 0;\r\n\t\t\tstatsWriter.write(username);\r\n\t\t\tstatsWriter.write(\"\\n\");\r\n\t\t\t\r\n\t\t\tfor(int count = 0; count < 5; count++) {\r\n\t\t\t\tstatsWriter.write(zero.toString());\r\n\t\t\t\tstatsWriter.write(\"\\n\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\tstatsWriter.close();\r\n\t}", "@Override\n public void enterInitLevel(statsDSLParser.InitLevelContext ctx) {\n final StatsData statsData = new StatsData();\n\n ctx.statDef().forEach((statDefContext) -> {\n\n final String number = statDefContext.NUMBER().getText();\n\n if (statDefContext.stat().AGI() != null) {\n statsData.setAgi(number);\n }\n else if (statDefContext.stat().ATK() != null) {\n statsData.setAtk(number);\n }\n else if (statDefContext.stat().DEF() != null) {\n statsData.setDef(number);\n }\n else if (statDefContext.stat().MAG() != null) {\n statsData.setMag(number);\n }\n else if (statDefContext.stat().HP() != null) {\n statsData.setHp(number);\n }\n });\n\n statsData.setForLevel(ctx.NUMBER().getText());\n statsData.setNeededXp(ctx.xpDef().NUMBER().getText());\n if(!statsData.isValid()) {\n throw new RuntimeException(\"Error in stats data at \" + ctx.getText());\n }\n\n currentClassData.addStatsData(statsData);\n }", "public Statistics() {\r\n\t\tcurrentGameTime = 0;\r\n\t\ttotalTime = 0;\r\n\t\tminTime = Integer.MAX_VALUE;\r\n\t\tmaxTime = 0;\r\n\t\tscores = new int[2];\r\n\t\twinnerId = 0;\r\n\t\tvictories = new int[2];\r\n\t\tgameCount = 0;\r\n\t}", "private void parse() throws IOException {\n\n\t\tStats statsObject = new Stats();\n\n\t\tstatsObject.setProcessName(process);\n\n\t\tList<String> lines = Files.readAllLines(Paths.get(filename), Charset.defaultCharset());\n\n\t\tPattern timePattern = Pattern.compile(\"((\\\\d+)-)*(\\\\d+)\\\\W((\\\\d+):)*(\\\\d+)\\\\.(\\\\d+)\");\n\n\t\tSystem.out.println(filename+\" \"+lines.get(0));\n\t\tMatcher matcher = timePattern.matcher(lines.get(0));\n\t\twhile (matcher.find()) {\n\t\t\tstatsObject.setStartTime(matcher.group(0));\n\t\t\tbreak;\n\t\t}\n\n\t\tmatcher = timePattern.matcher(lines.get(lines.size() - 1));\n\t\twhile (matcher.find()) {\n\t\t\tstatsObject.setEndTime(matcher.group(0));\n\t\t\tbreak;\n\t\t}\n\t\tString error = new String();\n\t\tfor (String line : lines) {\n\n\t\t\tif (line.startsWith(\"[\")) {\n\t\t\t\tif (!error.isEmpty()) {\n\t\t\t\t\tstatsObject.addError(error);\n\t\t\t\t\terror = \"\";\n\t\t\t\t}\n\n\t\t\t\tif (line.contains(\"Number of records processed: \")) {\n\n\t\t\t\t\tPattern numberPattern = Pattern.compile(\"\\\\d+\");\n\t\t\t\t\tmatcher = numberPattern.matcher(line);\n\t\t\t\t\t\n\t\t\t\t\tString numberOfRecordsProcessed = \"N/A\";\n\t\t\t\t\t\n\t\t\t\t\twhile (matcher.find()) {\n\t\t\t\t\t\tnumberOfRecordsProcessed = matcher.group();\n\t\t\t\t\t}\n\t\t\t\t\tstatsObject.setRecordsProcessed(numberOfRecordsProcessed);\n\n\t\t\t\t}\n\n\t\t\t\telse if (line.contains(\"WARNING\")) {\n\t\t\t\t\tif (line.contains(\"MISSING Property\")) {\n\t\t\t\t\t\tstatsObject.incrementErrorCounter();\n\t\t\t\t\t\tstatsObject.addError(line);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tstatsObject.incrementWarningCounter();\n\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t} else if (line.contains(\"Exception\") || (line.contains(\"Error\"))) {\n\t\t\t\tif (!error.isEmpty()) {\n\t\t\t\t\tstatsObject.addError(error);\n\t\t\t\t\terror = \"\";\n\t\t\t\t}\n\t\t\t\tstatsObject.incrementErrorCounter();\n\t\t\t\terror = error + line;\n\t\t\t} else {\n\t\t\t\terror = error + line ;\n\t\t\t}\n\n\t\t}\n\t\t// reader.close();\n\t\tif (statsObject.getErrorCounter() > 0) {\n\t\t\tstatsObject.setStatus(\"Failure\");\n\t\t}\n\n\t\tPattern pattern = Pattern.compile(\"\\\\d\\\\d\\\\d\\\\d\\\\d\\\\d\\\\d\\\\d\");\n\t\tmatcher = pattern.matcher(filename);\n\t\tString date = null;\n\t\twhile (matcher.find()) {\n\t\t\tdate = matcher.group(0);\n\t\t\tbreak;\n\t\t}\n\t\tboolean saveSuccessful = OutputManipulator.addToStatFile(username, process, date, statsObject);\n\n\t\tif (saveSuccessful) {\n\t\t\tFileParseScheduler.addSuccessfulParsedFileName(username, process, filename);\n\t\t}\n\n\t\tFileParseScheduler.removeLatestKilledThreads(process + filename);\n\t}", "public static void createScore(){\n\t}", "private void initializeStatisticVariables(){\r\n\t\taverageFront9Score = 0;\r\n\t\taverageFront9PlusMinus = 0;\r\n\t\taverageBack9Score = 0;\r\n\t\taverageBack9PlusMinus = 0;\r\n fairways = 0;\r\n girs = 0;\r\n putts = 0;\r\n chips = 0;\r\n penalties = 0;\r\n\t\tnumberOfHoles = 0;\r\n\t\tnumberOfPar3Holes = 0;\r\n\t\tnumberOfPar4Holes = 0;\r\n\t\tnumberOfPar5Holes = 0;\r\n\t\talbatrossCount = 0;\r\n\t\teagleCount = 0;\r\n\t\tbirdieCount = 0;\r\n\t\tparCount = 0;\r\n\t\tbogeyCount = 0;\r\n\t\tdoubleBogeyCount = 0;\r\n\t\ttripleBogeyCount = 0;\r\n\t\tquadBogeyPlusCount = 0;\r\n par3Fairways = 0;\r\n par3Girs = 0;\r\n par3Putts = 0;\r\n par3Chips = 0;\r\n par3Penalties = 0;\r\n\t\tpar3EagleCount = 0;\r\n\t\tpar3BirdieCount = 0;\r\n\t\tpar3ParCount = 0;\r\n\t\tpar3BogeyCount = 0;\r\n\t\tpar3DoubleBogeyCount = 0;\r\n\t\tpar3TripleBogeyCount = 0;\r\n\t\tpar3QuadBogeyPlusCount = 0;\r\n par4Fairways = 0;\r\n par4Girs = 0;\r\n par4Putts = 0;\r\n par4Chips = 0;\r\n par4Penalties = 0;\r\n\t\tpar4AlbatrossCount = 0;\r\n\t\tpar4EagleCount = 0;\r\n\t\tpar4BirdieCount = 0;\r\n\t\tpar4ParCount = 0;\r\n\t\tpar4BogeyCount = 0;\r\n\t\tpar4DoubleBogeyCount = 0;\r\n\t\tpar4TripleBogeyCount = 0;\r\n\t\tpar4QuadBogeyPlusCount = 0;\r\n par5Fairways = 0;\r\n par5Girs = 0;\r\n par5Putts = 0;\r\n par5Chips = 0;\r\n par5Penalties = 0;\r\n\t\tpar5AlbatrossCount = 0;\r\n\t\tpar5EagleCount = 0;\r\n\t\tpar5BirdieCount = 0;\r\n\t\tpar5ParCount = 0;\r\n\t\tpar5BogeyCount = 0;\r\n\t\tpar5DoubleBogeyCount = 0;\r\n\t\tpar5TripleBogeyCount = 0;\r\n\t\tpar5QuadBogeyPlusCount = 0;\r\n clubs.clear();\r\n\t}", "private void createSaveData(){\n try {\n File f = new File(filePath, highScores);\n FileWriter output = new FileWriter(f);\n BufferedWriter writer = new BufferedWriter(output);\n\n writer.write(\"0-0-0-0-0\");\n writer.newLine();\n writer.write(\".....-.....-.....-.....-.....\");\n writer.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public Stats() {\n this(DSL.name(\"stats\"), null);\n }", "public void setUpData() {\n generalStatsCalculator.calculateOffsetTrees();\n this.MostEmissionsRouteString =\n RoutesArrayToString(routeStatsCalculator.getMostEmissionsRoutes());\n this.LeastEmissionsRouteString =\n RoutesArrayToString(routeStatsCalculator.getLeastEmissionsRoutes());\n this.MostDistanceRouteString =\n RoutesArrayToString(routeStatsCalculator.getMostDistanceRoutes());\n this.LeastDistanceRouteString =\n RoutesArrayToString(routeStatsCalculator.getLeastDistanceRoutes());\n this.MostVisitedSourceAirportString =\n CombineAirportsToOneString(airportStatsCalculator.getMostVisitedSrcAirports());\n this.LeastVisitedSourceAirportString =\n CombineAirportsToOneString(airportStatsCalculator.getLeastVisitedSrcAirports());\n this.MostVisitedDestAirportString =\n CombineAirportsToOneString(airportStatsCalculator.getMostVisitedDestAirports());\n this.LeastVisitedDestAirportString =\n CombineAirportsToOneString(airportStatsCalculator.getLeastVisitedDestAirports());\n numOfTreesToString(generalStatsCalculator.getTreesToGrow());\n generalStatsCalculator.createCarbonEmissionsComment();\n }", "private void extractNewScoreBoard(){\n if (FileStorage.getInstance().fileNotExist(this, \"FinalScore1.ser\")){\n score = new Score();\n score.addScoreUser(user);\n FileStorage.getInstance().saveToFile(this.getApplicationContext(), score, \"FinalScore1.ser\");\n } else {\n score = (Score) FileStorage.getInstance().readFromFile(this, \"FinalScore1.ser\");\n score.insertTopFive(user);\n FileStorage.getInstance().saveToFile(this, score, \"FinalScore1.ser\");\n }\n }", "public Builder addStats(PersistentStats stats) {\n if (stats == null) {\n return this;\n }\n Map<String, Map<String, String>> parsedStat = stats.getMapFields();\n Map<String, Map<String, String>> currentStats = _stats.getMapFields();\n for (String statName : parsedStat.keySet()) {\n if (!currentStats.containsKey(statName)) {\n currentStats.put(statName, parsedStat.get(statName));\n }\n }\n return this;\n }", "void statsReset();", "public void createCounters() {\n // COUNTERS CREATION //\n //create a new counter for the blocks.\n this.blockCounter = new Counter();\n //create a new counter for the blocks.\n this.ballCounter = new Counter();\n }", "public StatsTracker() {\n\t\tthis.handStats = new ArrayList<HandStats>();\n\t}", "private void updateRecord(){\r\n\t\tgameStats.setVictory(victory);\r\n\t\tgameStats.setDays(days);\r\n\t\tgameStats.setBuildings(buildingCount);\r\n\t\tgameStats.setResources(wood + stone + food);\r\n\t}", "void setReviewStats()\n {\n if (hasInfo)\n {\n curReviewPageNum = 1;\n WalmartRequestHelper walmartRequestHelper = new WalmartRequestHelper(itemID, curReviewPageNum);\n\n curReviewURL = walmartRequestHelper.getRequestURL();\n\n Integer numStars[] = new Integer[5];\n\n for (int i = 0; i < 5; i++)\n {\n numStars[i] = 0;\n }\n\n try\n {\n Document reviewResultPage = Jsoup.connect(curReviewURL).userAgent(\"Mozilla\")\n .ignoreHttpErrors(true).ignoreContentType(true).get();\n\n // Handles the rare case where the API gives an error.\n if (reviewResultPage.getElementsByTag(\"title\").text().equals(\"Error\"))\n {\n return;\n }\n\n Elements unparsedRatings = reviewResultPage.getElementsByTag(\"ratingCounts\");\n\n // Review statistics are only generated if ratings can be found.\n if (unparsedRatings.size() != 0)\n {\n for (int i = 0; i < unparsedRatings.size(); i++)\n {\n String unparsedRatingCount = unparsedRatings.get(i).getElementsByTag(\"count\").text();\n\n if (!unparsedRatingCount.equals(\"\"))\n {\n numStars[i] = Integer.parseInt(unparsedRatings.get(i).text());\n }\n else\n {\n // No ratings could be found\n numStars[i] = 0;\n }\n }\n\n reviewStats = new ReviewStats(numStars);\n }\n else\n {\n reviewStats = new ReviewStats(numStars);\n }\n }\n catch (IOException ioe)\n {\n ioe.printStackTrace();\n }\n }\n }", "public Stats(String args[]) {\n if (!CaveGen.showStats) return;\n if (CaveGen.findGoodLayouts) {\n Parser.readConfigFiles();\n }\n try {\n startTime = System.currentTimeMillis();\n DateTimeFormatter dtf = DateTimeFormatter.ofPattern(\"yyyy-MM-dd-HH-mm-ss\");\n LocalDateTime now = LocalDateTime.now(); \n String dateString = dtf.format(now);\n String output = CaveGen.p251 ? \"output251\" : \"output\";\n new File(output+\"/\").mkdir();\n new File(output + \"/!reports/\").mkdir();\n String outputFileName = output + \"/!reports/report-\" + dateString + \".txt\";\n out = new PrintWriter(new BufferedWriter(new FileWriter(outputFileName)));\n print(\"CaveGen \");\n for (String s: args) {\n print(s + \" \");\n }\n println(\"\\n\");\n } catch (Exception e) {\n e.printStackTrace();\n System.exit(0);\n }\n }", "public CommonStatistics() {\n totalSubmissions = 0;\n lateSubmissions = 0;\n normalSubmissions = 0;\n approvedItems = 0;\n rejectedItems = 0;\n totalPendingItems = 0;\n arrearsPendingItems = 0;\n thisMonthPendingItems = 0;\n deletedItems = 0;\n confirmationPrintedItems = 0;\n confirmationApprovalPendingItems = 0;\n confirmationApprovedItems = 0;\n }", "private GameStats() {\r\n\t\t_players = new LinkedList<MovingUnit>();\r\n\t\t_fullWalls = new LinkedList<Block>();\r\n\t\t_halfWalls = new LinkedList<Block>();\r\n\t\t_playerOccupied = new LinkedList<Point>();\r\n\t}", "private void updateFile() {\n\t\tPrintWriter outfile;\n\t\ttry {\n\t\t\toutfile = new PrintWriter(new BufferedWriter(new FileWriter(\"stats.txt\")));\n\t\t\toutfile.println(\"15\"); // this is the number\n\t\t\tfor (Integer i : storeInfo) {\n\t\t\t\toutfile.println(i); // we overwrite the existing files\n\t\t\t}\n\t\t\tfor (String s : charBought) {\n\t\t\t\toutfile.println(s); // overwrite the character\n\t\t\t}\n\t\t\tfor (String s : miscBought) {\n\t\t\t\toutfile.println(s);\n\t\t\t}\n\t\t\toutfile.close();\n\t\t}\n\t\tcatch (IOException ex) {\n\t\t\tSystem.out.println(ex);\n\t\t}\n\t}", "private static void writeStatistics(String name) throws IOException {\n fileWriter = new BufferedWriter(new FileWriter(PATH + \"/uid/\" + name));\n fileWriter.write(\"Number of Nodes total: \" + globalVertexCount);\n fileWriter.newLine();\n fileWriter.write(\"Number of Edges total: \" + globalEdgeCount);\n fileWriter.newLine();\n fileWriter.write(\"######################################\");\n fileWriter.newLine();\n fileWriter.write(\"Nodes counted:\");\n fileWriter.newLine();\n for (Map.Entry<String, Long> entry : counterMapNodes.entrySet()) {\n fileWriter\n .write(entry.getKey().replace(\"_0.csv\", \"\") + \": \" + entry.getValue());\n fileWriter.newLine();\n }\n fileWriter.write(\"######################################\");\n fileWriter.newLine();\n fileWriter.write(\"Edges counted:\");\n fileWriter.newLine();\n for (Map.Entry<String, Long> entry : counterMapEdges.entrySet()) {\n fileWriter\n .write(entry.getKey().replace(\"_0.csv\", \"\") + \": \" + entry.getValue());\n fileWriter.newLine();\n }\n fileWriter.close();\n }", "private void initializeFile()\n\t{\n\t\tHighScore[] h={new HighScore(0,0,\" \"),new HighScore(0,0,\" \"),new HighScore(0,0,\" \"),\n\t\t\t\tnew HighScore(0,0,\" \"),new HighScore(0,0,\" \"),new HighScore(0,0,\" \"),\n\t\t\t\tnew HighScore(0,0,\" \"),new HighScore(0,0,\" \"),new HighScore(0,0,\" \"),\n\t\t\t\tnew HighScore(0,0,\" \")};\n\t\ttry \n\t\t{\n\t\t\tSystem.out.println(\"Hi1\");\n\t\t\tObjectOutputStream o=new ObjectOutputStream(new FileOutputStream(\"HighScores.dat\"));\n\t\t\to.writeObject(h);\n\t\t\to.close();\n\t\t} catch (FileNotFoundException e) {e.printStackTrace();}\n\t\tcatch (IOException e) {e.printStackTrace();}\n\t}", "public void record() {\n stats.record();\n }", "public void storeStats() throws Exception {\n logger.info(\"[WORKER-MONITOR] - Start store stats into file. TopologyId: \" + topologyId);\n\n logger.debug(\"------------------WORKER MONITOR SNAPSHOT START------------------\");\n logger.debug(\"Current InterNode Traffic is: \" + DataManager.getInstance().getCurrentInterNodeTraffic());\n logger.debug(\"This Topology current total load is: \" + DataManager.getInstance().getTotalLoad(topologyId));\n // 2018-07-23 add for simple logs\n /*\n if (taskMonitorList.size() != 0) {\n FileUtils.writeToFile(trafficFilename, taskMonitorList.get(0).getTaskId() + \" : \" + DataManager.getInstance().getCurrentInterNodeTraffic());\n }\n */\n FileUtils.writeToFile(Constants.TRAFFIC_DATA_FILE, taskMonitorList.get(0).getTaskId() + \" : \" + DataManager.getInstance().getCurrentInterNodeTraffic());\n\n // Output the threadToTaskMap\n logger.debug(\"Threads to Tasks association is: \");\n for (long threadId : threadToTaskMap.keySet()) {\n logger.debug(\" - \" + threadId + \": \" + threadToTaskMap.get(threadId));\n }\n\n logger.debug(\"Inter-Task Traffic Stats (tuples sent per time slot): \");\n for (TaskPair pair : trafficStats.keySet()) {\n logger.debug(\" - \" + pair.getSourceTaskId() + \" -> \" + pair.getDestinationTaskId() + \": \" + getTraffic(pair) + \" tuple/s [\" + Utils.collectionToString(trafficStats.get(pair)) + \"]\");\n // invoke DataManager function to store Traffic info. 2018-05-08\n DataManager.getInstance().storeTraffic(topologyId, pair.getSourceTaskId(), pair.getDestinationTaskId(), getTraffic(pair));\n }\n\n logger.debug(\"Load stats (CPU cycles consumed per time slot): \");\n long totalCPUCyclesPerSecond = 0;\n for (long threadId : loadStats.keySet()) {\n List<Long> threadLoadInfo = loadStats.get(threadId);\n totalCPUCyclesPerSecond += threadLoadInfo.get(threadLoadInfo.size() - 1) / timeWindowLength;\n logger.debug(\" - thread \" + threadId + \": \" + getLoad(threadId) + \" cycle/s [\" + Utils.collectionToString(threadLoadInfo) + \"]\");\n\n Executor executor = threadToTaskMap.get(threadId);\n // invoke DataMananger to store load info. 2018-05-08\n DataManager.getInstance().storeCpuLoad(topologyId, executor.getBeginTask(), executor.getEndTask(), getLoad(threadId));\n\n }\n long totalCPUCyclesAvailable = CPUInfo.getInstance().getTotalSpeed();\n double usage = ((double) totalCPUCyclesPerSecond / totalCPUCyclesAvailable) * 100; // int -> double\n logger.debug(\"Total CPU cycles consumed per second: \" + totalCPUCyclesPerSecond + \", Total available: \" + totalCPUCyclesAvailable + \", Usage: \" + usage + \"%\");\n\n // add from yitian 2018-04-29\n logger.debug(\"Output the TaskMonitorList: \");\n for (TaskMonitor monitor : taskMonitorList) {\n logger.debug(\"- ProcessId: \" + monitor.getProcessId() + \" -> threadId: \" + monitor.getThreadId() + \" -> taskId: \" + monitor.getTaskId());\n }\n\n // 2018-09-27 add load usage of each host(worker node)\n /*\n Map<String, String> hostCpuUsageList = DataManager.getInstance().getCpuUsageOfHost();\n for (String hostname : hostCpuUsageList.keySet()) {\n FileUtils.writeToFile(cpuUsageFilename, hostname + \" : \" + hostCpuUsageList.get(hostname));\n }\n */\n logger.debug(\"------------------WORKER MONITOR SNAPSHOT END------------------\");\n }", "private void initNature() {\n int N = 100;\n int MOD = 10;\n switch (nature) {\n case \"Hardy\": { natureStats = new Stats(0, N, N, N, N, N); break; }\n case \"Lonely\": { natureStats = new Stats(0, N + MOD, N - MOD, N, N, N); break; }\n case \"Adamant\": { natureStats = new Stats(0, N + MOD, N, N - MOD, N, N); break; }\n case \"Naughty\": { natureStats = new Stats(0, N + MOD, N, N, N - MOD, N); break; }\n case \"Brave\": { natureStats = new Stats(0, N + MOD, N, N, N, N - MOD); break; }\n\n case \"Bold\": { natureStats = new Stats(0, N - MOD, N + MOD, N, N, N); break; }\n case \"Docile\": { natureStats = new Stats(0, N, N, N, N, N); break; }\n case \"Impish\": { natureStats = new Stats(0, N, N + MOD, N - MOD, N, N); break; }\n case \"Lax\": { natureStats = new Stats(0, N, N + MOD, N, N - MOD, N); break; }\n case \"Relaxed\": { natureStats = new Stats(0, N, N + MOD, N, N, N - MOD); break; }\n\n case \"Modest\": { natureStats = new Stats(0, N - MOD, N, N + MOD, N, N); break; }\n case \"Mild\": { natureStats = new Stats(0, N, N - MOD, N + MOD, N, N); break; }\n case \"Bashful\": { natureStats = new Stats(0, N, N, N, N, N); break; }\n case \"Rash\": { natureStats = new Stats(0, N, N, N + MOD, N - MOD, N); break; }\n case \"Quiet\": { natureStats = new Stats(0, N, N, N + MOD, N, N - MOD); break; }\n\n case \"Calm\": { natureStats = new Stats(0, N - MOD, N, N, N + MOD, N); break; }\n case \"Gentle\": { natureStats = new Stats(0, N, N - MOD, N, N + MOD, N); break; }\n case \"Careful\": { natureStats = new Stats(0, N, N, N - MOD, N + MOD, N); break; }\n case \"Quirky\": { natureStats = new Stats(0, N, N, N, N, N); break; }\n case \"Sassy\": { natureStats = new Stats(0, N, N, N, N + MOD, N - MOD); break; }\n\n case \"Timid\": { natureStats = new Stats(0, N - MOD, N, N, N, N + MOD); break; }\n case \"Hasty\": { natureStats = new Stats(0, N, N - MOD, N, N, N + MOD); break; }\n case \"Jolly\": { natureStats = new Stats(0, N, N, N - MOD, N, N + MOD); break; }\n case \"Naive\": { natureStats = new Stats(0, N, N, N, N - MOD, N + MOD); break; }\n case \"Serious\": { natureStats = new Stats(0, N, N, N, N, N); break; }\n }\n }", "public void fillUserStats(){\n\t\t \t\t\t \t\n\t\t \tif (curResults.getCount()==0){ // sets to 0 if there are no results\n\t\t \t\ttxtTime.setText(\"0\");\n\t\t \t\ttxtDate.setText(\"0\");\n\n\t\t \t}\n\t\t \telse{ //sets them to the users last result if there are results\n\t\t \t\tcurResults.moveToLast();\n\t\t \t\ttxtTime.setText(curResults.getString(3));\n\t\t \t\ttxtDate.setText(curResults.getString(2));\n\t\t \t}\n\t\t }", "public Statistics() {}", "void startFile() {\n writeToFile(defaultScore);\n for (int i = 0; i < 5; i++) {\n writeToFile(readFromFile() + defaultScore);\n }\n }", "@POST\n\t@Path(\"/createStats\")\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic Response createStats (RequestData data) {\n\t\tLOG.fine(\"Trying to create statistics entity\");\n\n\t\tif (!data.isValid())\n\t\t\treturn Response.status(Status.BAD_REQUEST).build();\n\n\t\ttry {\n\t\t\tTokensResource.checkIsValidAccess(data.token, data.email);\n\n\t\t\tKey userKey = usersFactory.newKey(data.email);\n\t\t\tEntity user = datastore.get(userKey);\n\n\t\t\tif (user == null || ActionsResource.isRemovedOrBannedUser(user) || !ActionsResource.hasSUPermission(user)) {\n\t\t\t//\tLOG.warning(\"User:\" + user.getString(DB_User.EMAIL) + \" cannot do this operation.\");\n\t\t\t\treturn Response.status(Status.FORBIDDEN).entity(\"User:\" + user.getString(DB_User.EMAIL) + \" cannot do this operation.\").build();\n\t\t\t}\n\n\t\t\tDB_Statistics.createStatistics();\n\n\t\t\treturn Response.status(Status.NO_CONTENT).build();\n\t\t} \n\t\tcatch (InvalidTokenException e) {\n\t\t\treturn Response.status(Status.FORBIDDEN).entity(e.getMessage()).build();\n\t}\n\t\t\n\t}", "private void clearStats() {\n stats_ = emptyProtobufList();\n }", "public Statistic() {\n\t\tstats = new ArrayList<PlayerStatEntry>();\n\t\tteamScore = new HashMap<Integer, Integer>();\n\t}", "private void start(){\n\t\tMetricData metric = new MetricData();\n\t\tmetric.getName();\n\t\tmetric.getValue();\n\t\tmetric.setValue(2);\n\t}", "private static Stats init(Set<String> params) {\n StatsContainer stats = new StatsContainer();\n if (params.contains(PARAMETER_TRANSFORM)) {\n stats.add(new FormatTransform());\n }\n if (params.contains(PARAMETER_BASE)) {\n stats.add(new CardStatsPercentageContainer<>(PrimeBaseStats.class));\n }\n if (params.contains(PARAMETER_BITS)) {\n stats.add(new CardStatsPercentageContainer<>(AllBitsStats.class));\n }\n if (params.contains(PARAMETER_BYTES)) {\n stats.add(new CardStatsPercentageContainer<>(AllBytesStats.class));\n AllBytesStats.setBytesToAnalyse(1,1);\n }\n if (params.contains(PARAMETER_DIFFERENCE)) {\n stats.add(new CardStatsPercentageContainer<>(PrimeDifferenceStats.class));\n stats.add(new DifferenceExport());\n }\n if (params.contains(PARAMETER_STRENGTH)) {\n stats.add(new CardStatsPercentageContainer<>(PrimeStrengthStats.class));\n }\n if (params.contains(PARAMETER_TIME)) {\n stats.add(new TimeExport());\n stats.add(new CardStatsPercentageContainer<>(TimeStats.class, 10L));\n stats.add(new CardStatsPercentageContainer<>(TimeStats.class, 37L));\n stats.add(new CardStatsPercentageContainer<>(TimeStats.class, 79L));\n }\n startTime = System.nanoTime();\n return stats;\n }", "Map<String, Object> getStats();", "public abstract void statsReset();", "void statistics();", "public void growStats() {\r\n\t\tLIFE += increment;\r\n\t\tSTRENGTH += increment;\r\n\t}", "private static void initStatistics(Player p){\n }", "private void statsTable() {\n try (Connection connection = hikari.getConnection()) {\n try (PreparedStatement statement = connection.prepareStatement(\"CREATE TABLE IF NOT EXISTS `\" + TABLE_STATS + \"` \" +\n \"(id INT NOT NULL AUTO_INCREMENT UNIQUE, \" +\n \"uuid varchar(255) PRIMARY KEY, \" +\n \"name varchar(255), \" +\n \"kitSelected varchar(255), \" +\n \"points INT, \" +\n \"kills INT, \" +\n \"deaths INT, \" +\n \"killstreaks INT, \" +\n \"currentKillStreak INT, \" +\n \"inGame BOOLEAN)\")) {\n statement.execute();\n statement.close();\n connection.close();\n }\n } catch (SQLException e) {\n LogHandler.getHandler().logException(\"TableCreator:statsTable\", e);\n }\n }", "public TrackStat() {\r\n }", "public void saveAll(){\n // Store postings\n for (Map.Entry<String, PostingsList> entry : this.index.entrySet()) {\n saveJSON(\"postings/t\"+hash(entry.getKey())+\".json\", entry.getValue());\n System.err.println(\"postings/t\"+hash(entry.getKey())+\".json\");\n count++;\n if (count%1000==0)\n System.err.println(\"storing \"+ count);\n }\n // Store mapping ID<->document names mapping\n this.saveJSON(\"postings/docIDs.json\", this.docIDs);\n this.saveJSON(\"postings/docLengths.json\", this.docLengths);\n }", "private void persistHighScore() {\n final String userHomeFolder = System.getProperty(USER_HOME); \n final Path higheScoreFilePath = Paths.get(userHomeFolder, HIGH_SCORE_FILE);\n \n final File f = new File(higheScoreFilePath.toString());\n if (f.exists() && !f.isDirectory()) {\n PrintWriter writer = null;\n try {\n writer = new PrintWriter(higheScoreFilePath.toString());\n writer.print(\"\");\n writer.close();\n \n } catch (final IOException e) {\n emptyFunc();\n } \n \n try {\n writer = new PrintWriter(higheScoreFilePath.toString());\n writer.print(Integer.toString(this.myHighScoreInt));\n writer.close();\n \n } catch (final IOException e) {\n emptyFunc();\n } \n \n if (writer != null) {\n writer.close();\n } \n }\n }", "public static void generateDefaults() {\n Building temp = BuildingList.getBuilding(0);\n SubAreas temp2 = temp.getSubArea(1);\n temp2.createFireSensor();\n temp2.createMotionSensor();\n temp2 = temp.getSubArea(2);\n temp2.createMotionSensor();\n temp2 = temp.getSubArea(3);\n temp2.createMotionSensor();\n temp2.createFireSensor();\n temp2 = temp.getSubArea(5);\n temp2.createFireSensor();\n temp2 = temp.getSubArea(6);\n temp2.createFireSensor();\n temp2.createMotionSensor();\n }", "public interface DataStats {\n \n // publicly accessible methods - replaces original properties\n \n /***************************************************************************\n * Gets the channel number for these stats\n *\n * @return the channel number\n **************************************************************************/\n public int GetChannel();\n \n /***************************************************************************\n * Sets the channel number for these stats\n *\n * @param channel The channel number\n **************************************************************************/\n public void SetChannel(int channel); \n \n /***************************************************************************\n * Gets the date for these stats\n *\n * @return the date\n **************************************************************************/ \n public Date GetDate();\n\n /***************************************************************************\n * Sets the date for these stats\n *\n * @param date The date\n **************************************************************************/ \n public void SetDate(Date date);\n \n /***************************************************************************\n * Gets time type\n *\n * @return time type - TRUE for hourly stats, FALSE for daily stats\n **************************************************************************/ \n public boolean GetHourly();\n \n /***************************************************************************\n * Sets time type \n *\n * @param hourly The time type - TRUE for hourly stats, FALSE for daily stats \n **************************************************************************/ \n public void SetHourly(boolean hourly); \n \n /***************************************************************************\n * Gets the number of points used to make these statistics\n *\n * @return the number of points\n **************************************************************************/ \n public int GetNPoints();\n \n /***************************************************************************\n * Sets the number of points used to make these statistics\n *\n * @param n_points The number of points\n **************************************************************************/ \n public void SetNPoints(int n_points);\n\n /***************************************************************************\n * Gets the number of points missing\n *\n * @return the number of points\n **************************************************************************/ \n public int GetNMissing();\n \n /***************************************************************************\n * Sets the number of points missing\n *\n * @param n_missing The number of points\n **************************************************************************/ \n public void SetNMissing(int n_missing);\n\n /***************************************************************************\n * Gets the minimum value \n *\n * @return the minimum value\n **************************************************************************/ \n public int GetMinVal();\n\n /***************************************************************************\n * Sets the minimum value\n *\n * @param min_val The minimum value\n **************************************************************************/ \n public void SetMinVal(int min_val);\n \n /***************************************************************************\n * Gets the maximum value\n *\n * @return the maximum value\n **************************************************************************/ \n public int GetMaxVal();\n\n /***************************************************************************\n * Sets the maximum value\n *\n * @param max_val The maximum value\n **************************************************************************/ \n public void SetMaxVal(int max_val);\n\n /***************************************************************************\n * Gets the average\n *\n * @return the average\n **************************************************************************/ \n public double GetAverage();\n\n /***************************************************************************\n * Sets the average\n *\n * @param average The average\n **************************************************************************/ \n public void SetAverage(double average);\n\n /***************************************************************************\n * Gets the standard deviation\n *\n * @return the standard deviation\n **************************************************************************/ \n public double GetStandardDev();\n\n /***************************************************************************\n * Sets the standard deviation\n *\n * @param standard_dev The standard deviation\n **************************************************************************/ \n public void SetStandardDev(double standard_dev);\n \n}", "public SaveGame() {\n\t\tlives = 0;\n\t\tscore = 0;\n\t\tbrainX = 0;\n\t\tbrainY = 0;\n\t\tzombieX = 0;\n\t}", "public static void createStatistics() {\n\t\t\n\t\tBookingVisitor visitor = new BookingVisitor();\n\t\tPaymentType paymentType = PaymentType.MONEYWALLET;\n\t\t\n\t\tBooking booking = new Booking();\n\t\t\n\t\tvisitor.visit(booking, paymentType);\n\t\t\n\t\tint countPayPal = visitor.getCountPayPal();\n\t\tint countGoogleWallet = visitor.getCountGoogleWallet();\n\t\tint countMoneyWallet = visitor.getCountMoneyWallet();\n\t\t\n\t\tSystem.out.println(\"Payment GermanBooking by PayPal: \" + countPayPal );\n\t\tSystem.out.println(\"Payment GermanBooking by GoogleWallet: \" + countGoogleWallet);\n\t\tSystem.out.println(\"Payment GermanBooking by MoneyWallet: \" + countMoneyWallet);\n\t}", "public static String addToStatistics(){\n\t\tString addedStats = Start.addToStatistics();\n\t\t//add\n\t\t//e.g.: addedStats += MyReport();\n\t\treturn addedStats;\n\t}", "public void setDefaultData()\n\t\t{\n\t\t\t\n\t\t\t//Creating demo/default ADMIN:\n\t\t\t\n\t\t\tUser testAdmin = new User(\"ADMIN\", \"YAGYESH\", \"123\", 123, Long.parseLong(\"7976648278\"));\n\t\t\tdata.userMap.put(testAdmin.getUserId(), testAdmin);\n\t\t\t\n\t\t\t//Creating demo/default CUSTOMER:\n\t\t\tUser tempCustomer = new User(\"CUSTOMER\", \"JOHN\", \"124\", 124, Long.parseLong(\"9462346459\"));\n\t\t\tdata.userMap.put(tempCustomer.getUserId(), tempCustomer);\n\t\t\t\n\t\t\t//Creating Airports:\n\t\t\tAirport airport1 = new Airport(\"Mumbai Chattrapathi Shivaji International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"MUMBAI\", \"BOM\");\n\t\t\t\n\t\t\tAirport airport2 = new Airport(\"Bangalore Bengaluru International Airport \",\n\t\t\t\t\t\t\t\t\t\t\t\"Bangalore\", \"BLR\");\n\t\t\t\n\t\t\tAirport airport3 = new Airport(\"New Delhi Indira Gandhi International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"New Delhi \", \"DEL\");\n\n\t\t\tAirport airport4 = new Airport(\"Hyderabad Rajiv Gandhi International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"Hyderabad\", \"HYD\");\n\n\t\t\tdata.airportMap.put(airport1.getAirportCode(), airport1);\n\t\t\tdata.airportMap.put(airport2.getAirportCode(), airport2);\n\t\t\tdata.airportMap.put(airport3.getAirportCode(), airport3);\n\t\t\tdata.airportMap.put(airport4.getAirportCode(), airport4);\n\t\t\t\n\t\t\t//Creating DateTime Objects:\n\t\t\t\n\t\t\tDate dateTime1 = null;\n\t\t\tDate dateTime2 = null;\n\t\t\tDate dateTime3 = null;\n\t\t\tDate dateTime4 = null;\n\t\t\ttry\n\t\t\t{\n\t\t\t\tdateTime1 = dateFormat.parse(\"12-01-2020 05:12:00\");\n\t\t\t\tdateTime2 = dateFormat.parse(\"02-02-2020 23:45:00\");\n\t\t\t\tdateTime3 = dateFormat.parse(\"12-01-2020 07:12:00\");\n\t\t\t\tdateTime4 = dateFormat.parse(\"03-02-2020 01:45:00\");\n\t\t\t}\n\t\t\tcatch (ParseException e) \n\t\t\t{\n\t\t\t\te.getMessage();\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t//Creating Schedules:\n\t\t\tSchedule schedule1 = new Schedule(airport1, airport2, dateTime3, dateTime1, dateFormat);\n\t\t\tSchedule schedule2 = new Schedule(airport2, airport3, dateTime3, dateTime1, dateFormat);\n\t\t\tSchedule schedule3 = new Schedule(airport4, airport1, dateTime4, dateTime2, dateFormat);\n\t\t\tSchedule schedule4 = new Schedule(airport3, airport4, dateTime4, dateTime2, dateFormat);\n\t\t\t\n\t\t\t//Creating Flights:\n\t\t\tFlight flight1 = new Flight(\"AB3456\", \"INDIGO\", \"A330\", 293);\n\t\t\tFlight flight2 = new Flight(\"BO6789\", \"JET AIRWAYS\", \"777\", 440);\n\t\t\tdata.flightMap.put(flight1.getFlightNumber(), flight1);\n\t\t\tdata.flightMap.put(flight2.getFlightNumber(), flight2);\n\t\t\t\n\t\t\t//Creating Scheduled Flights:\n\t\t\tScheduledFlight scheduledFlight1 = new ScheduledFlight(flight1, 293, schedule1);\n\t\t\tScheduledFlight scheduledFlight2 = new ScheduledFlight(flight2, 440, schedule2);\n\t\t\tScheduledFlight scheduledFlight3 = new ScheduledFlight(flight1, 293, schedule3);\n\t\t\tScheduledFlight scheduledFlight4 = new ScheduledFlight(flight2, 440, schedule4);\n\t\t\t\n\t\t\t//Creating List of Scheduled Flights:\n\t\t\tdata.listScheduledFlights.add(scheduledFlight1);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight2);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight3);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight4);\n\n\t\t}", "private void createProfile(ParseUser parseUser){\n final Profile profile = new Profile();\n\n profile.setShortBio(\"\");\n profile.setLongBio(\"\");\n profile.setUser(parseUser);\n\n //default image taken from existing default user\n ParseQuery<ParseObject> query = ParseQuery.getQuery(\"Profile\");\n query.getInBackground(\"wa6q24VD5V\", new GetCallback<ParseObject>() {\n public void done(ParseObject searchProfile, ParseException e) {\n if (e != null) {\n Log.e(TAG, \"Couldn't retrieve default image\");\n e.printStackTrace();\n return;\n }\n else {\n defaultImage = searchProfile.getParseFile(\"profileImage\");\n\n if (defaultImage != null)\n profile.setProfileImage(defaultImage);\n else\n Log.d(TAG, \"Default image is null\");\n }\n }\n });\n\n profile.saveInBackground(new SaveCallback() {\n @Override\n public void done(ParseException e) {\n if (e != null) {\n Log.e(TAG, \"Error while saving\");\n e.printStackTrace();\n return;\n }\n\n Log.d(TAG, \"Created and saved profile\");\n }\n });\n }", "public void insertSiteStats (SiteStatisticsVO data) throws DataServiceException;", "@Override\n\t\t\t\t\t\tpublic void done(List<ParseObject> arg0,\n\t\t\t\t\t\t\t\tParseException arg1) {\n\t\t\t\t\t\t\tif (arg1 == null && arg0.size() != 0) {\n\t\t\t\t\t\t\t\tfor (ParseObject p : arg0) {\n\t\t\t\t\t\t\t\t\tp.put(\"user\", ParseUser.getCurrentUser());\n\t\t\t\t\t\t\t\t\tp.put(\"weight\", kgs);\n\t\t\t\t\t\t\t\t\tp.put(\"age\", Integer.parseInt(age1\n\t\t\t\t\t\t\t\t\t\t\t.getText().toString()));\n\t\t\t\t\t\t\t\t\tp.put(\"height\", cms);\n\t\t\t\t\t\t\t\t\tp.put(\"active\", String.valueOf(active));\n\t\t\t\t\t\t\t\t\tp.put(\"sex\", sex);\n\t\t\t\t\t\t\t\t\tp.put(\"bmi\", bmi);\n\t\t\t\t\t\t\t\t\tp.put(\"totalcal\", totalcal);\n\t\t\t\t\t\t\t\t\tp.put(\"factor\", String.valueOf(factor));\n\n\t\t\t\t\t\t\t\t\tp.saveEventually();\n\t\t\t\t\t\t\t\t\tLog.d(\"place\", ParseUser.getCurrentUser().toString());\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else if (arg0.size() == 0) {\n\t\t\t\t\t\t\t\tParseObject p = new ParseObject(\"UserData\");\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tp.put(\"user\", ParseUser.getCurrentUser());\n\t\t\t\t\t\t\t\tp.put(\"weight\", kgs);\n\t\t\t\t\t\t\t\tp.put(\"age\", Integer.parseInt(age1.getText()\n\t\t\t\t\t\t\t\t\t\t.toString()));\n\t\t\t\t\t\t\t\tp.put(\"height\", cms);\n\t\t\t\t\t\t\t\tp.put(\"active\", String.valueOf(active));\n\t\t\t\t\t\t\t\tp.put(\"sex\", sex);\n\t\t\t\t\t\t\t\tp.put(\"bmi\", bmi);\n\t\t\t\t\t\t\t\tp.put(\"totalcal\", totalcal);\n\n\t\t\t\t\t\t\t\tp.put(\"factor\", String.valueOf(factor));\n\t\t\t\t\t\t\t\tLog.d(\"place\", ParseUser.getCurrentUser().toString());\n\t\t\t\t\t\t\t\tp.saveEventually();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tLog.d(\"score\", \"Error: \" + arg1.getMessage());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}", "public Statistics() {\n\t\ttotalTicks = idleTicks = systemTicks = userTicks = 0;\n\t\tnumDiskReads = numDiskWrites = 0;\n\t\tnumConsoleCharsRead = numConsoleCharsWritten = 0;\n\t\tnumPageFaults = numPacketsSent = numPacketsRecvd = 0;\n\t}", "private void test() {\n\t\tlong startTime = System.currentTimeMillis();\n\t\tBpmnModelInstance modelInstance = Bpmn.readModelFromFile(loadedFile);\n\t\tJsonEncoder jsonEncoder = new JsonEncoder(loadedFile.getName());\n\t\tBpmnBasicMetricsExtractor basicExtractor = new BpmnBasicMetricsExtractor(modelInstance, jsonEncoder);\n\t\tBpmnAdvancedMetricsExtractor advExtractor = new BpmnAdvancedMetricsExtractor(basicExtractor, jsonEncoder);\n\t\tlong loadTime = System.currentTimeMillis() - startTime;\n//\t\tSystem.out.println(\"Tempo load del file: \" + loadTime + \"ms\");\n\t\tbasicExtractor.runMetrics();\n\t\tlong basicTime = System.currentTimeMillis() - loadTime - startTime;\n//\t\tSystem.out.println(\"Tempo calcolo metriche di base: \" + basicTime + \"ms\");\n\t\tadvExtractor.runMetrics();\n\t\tlong advTime = System.currentTimeMillis() - basicTime - startTime - loadTime;\n//\t\tSystem.out.println(\"Tempo calcolo metriche avanzate: \" + advTime + \"ms\");\n\t\tjsonEncoder.exportJson();\n\t\tMySqlInterface db = new MySqlInterface();\n\t\tdb.connect();\n//\t\tdb.createTables(jsonEncoder);\n//\t\tdb.createAndInsertMetricsInfosTable();\n//\t\tdb.saveMetrics(jsonEncoder);\n//\t\tdb.closeConnection();\n\t}", "private void calculateTotalStats() {\n int totHp = calculateHp(baseStats.hp, ivStats.hp, evStats.hp);\n int totAtk = calculateStat(baseStats.atk, ivStats.atk, evStats.atk, natureStats.atk);\n int totDef = calculateStat(baseStats.def, ivStats.def, evStats.def, natureStats.def);\n int totSpAtk = calculateStat(baseStats.spAtk, ivStats.spAtk, evStats.spAtk, natureStats.spAtk);\n int totSpDef = calculateStat(baseStats.spDef, ivStats.spDef, evStats.spDef, natureStats.spDef);\n int totSpd = calculateStat(baseStats.spd, ivStats.spd, evStats.spd, natureStats.spd);\n totalStats = new Stats(totHp, totAtk, totDef, totSpAtk, totSpDef, totSpd);\n combatStats = new Stats(totHp, 0, 0, 0, 0, 0);\n }", "Parse createParse();", "private void initDefaultResultCollector() {\n Summariser summer=null;\n String summariserName = JMeterUtils.getPropDefault(\"summariser.name\", \"summary\");\n if (summariserName.length() > 0) {\n summer = new Summariser(summariserName);\n }\n // Store execution results into a .jtl file\n //String logFile = \"example.jtl\";\n resultCollector = new AutoMeterResultCollector(summer);\n resultCollector.setName(DEFAULT_RESULT_COLLECTOR_NAME);\n resultCollector.setProperty(TestElement.TEST_CLASS, AutoMeterResultCollector.class.getName());\n resultCollector.setProperty(TestElement.GUI_CLASS, SummaryReport.class.getName());\n resultCollector.setCalculator(calculator);\n calculator.setResultViewer(resultViewer);\n //resultCollector.setFilename(logFile);\n }", "@Override\r\n\tpublic void setStats(Stats s) {\n\t\t\r\n\t}", "public void cleanStatistics() {\n\t\thasChildStopNominator = HashBasedTable.create();\n\t\thasChildStopDenominator = HashBasedTable.create();\n\t\tnoChildStopNominator = HashBasedTable.create();\n\t\tnoChildStopDenominator = HashBasedTable.create();\n\t\tleftAttachNominator = HashBasedTable.create();\n\t\tleftAttachDenominator = HashBasedTable.create();\n\t\trightAttachNominator = HashBasedTable.create();\n\t\trightAttachDenominator = HashBasedTable.create();\n\t}", "public Stat()\n {\n // empty constructor\n }", "public void updateWithTestStats() {\n\t\tBasicDBObject updateQuery = new BasicDBObject(); \n\t\tBasicDBObject fieldSets = new BasicDBObject(); \n\t\tfieldSets.put(\"numFailedTests\", numFailedTests); \n\t\tfieldSets.put(\"numPassedTests\", numPassedTests); \n\t\tfieldSets.put(\"testSuiteName\", testSuiteName); \n\t\tfieldSets.put(\"testEndTime\", testEndTime); \n\t\tupdateQuery.put( \"$set\", fieldSets); \n\t\tappendData(updateQuery);\n\t}", "public Stat() {\n }", "public void parse(){\n\t\tFile file = new File(fileLocation);\n\n\t\tlong seed = ConfigurationData.DEFAULT_SEED;\n\t\tString outputDest = ConfigurationData.DEFAULT_OUTPUT_DESTINATION;\n\t\tLong tickLength = ConfigurationData.DEFAULT_TICK_LENGTH;\n\t\tint port = ConfigurationData.DEFAULT_PORT;\n\n\t\ttry {\n\n\t\t\tScanner sc = new Scanner(file);\n\n\t\t\twhile(sc.hasNext()){\n\t\t\t\tString[] tok = sc.next().split(\"=\");\n\t\t\t\tswitch(tok[0]){\n\t\t\t\tcase \"seed\":\n\t\t\t\t\tseed = Long.parseLong(tok[1]);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"outputDestination\":\n\t\t\t\t\toutputDest = tok[1];\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"tickLength\":\n\t\t\t\t\ttickLength = Long.parseLong(tok[1]);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"port\":\n\t\t\t\t\tport = Integer.parseInt(tok[1]);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tsc.close();\n\n\t\t\tconfigurationData = new ConfigurationData(seed, outputDest, tickLength, port);\n\t\t} \n\t\tcatch (FileNotFoundException e) {\n\t\t\tPrintWriter writer;\n\t\t\ttry {\n\t\t\t\twriter = new PrintWriter(fileLocation, \"UTF-8\");\n\t\t\t\twriter.println(\"seed=\"+seed);\n\t\t\t\twriter.println(\"outputDestination=\"+outputDest);\n\t\t\t\twriter.println(\"tickLength=\"+tickLength);\n\t\t\t\twriter.println(\"port=\"+port);\n\t\t\t\twriter.close();\n\t\t\t} catch (FileNotFoundException e1) {\n\t\t\t\te1.printStackTrace();\n\t\t\t} catch (UnsupportedEncodingException e1) {\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t\tconfigurationData = ConfigurationData.makeDefault();\n\t\t\tSystem.out.println(\"Default file created\");\n\t\t}\n\t}", "public static void resetStatistics()\r\n {\r\n \t//System.out.println ( \"Resetting statistics\");\r\n count_ = 0; \r\n }", "void createReport() {\n\n // report about purple flowers\n println(\"\\nPurple flower distribution: \");\n for (int i = 0; i < 6; i++) {\n println(i + (i==5?\"+\":\"\") + \": \" + numPurpleFlowers[i]);\n }\n // report about missing treasures\n println(\"Missing treasure count: \" + missingTreasureCount);\n\n println(\"\\nGenerated \" + caveGenCount + \" sublevels.\");\n println(\"Total run time: \" + (System.currentTimeMillis()-startTime)/1000.0 + \"s\");\n\n out.close();\n }", "private void saveInitialTotalScore() {\n\t\thelper.insertTotalScoreData(TotalScoretableName, totalScoreID, \"0\");\n\t}", "@PostConstruct\n public void init() {\n for (final Stat stat: Stat.ALL_STATS) {\n effortValues.put(stat, new SimpleIntegerProperty(0));\n minIndividualValues.put(stat, new SimpleIntegerProperty(0));\n maxIndividualValues.put(stat, new SimpleIntegerProperty(31));\n if (!stat.equals(Stat.HP)) {\n minMinusIndividualValues.put(stat, new SimpleIntegerProperty(0));\n maxMinusIndividualValues.put(stat, new SimpleIntegerProperty(31));\n minNeutralIndividualValues.put(stat, new SimpleIntegerProperty(0));\n maxNeutralIndividualValues.put(stat, new SimpleIntegerProperty(31));\n minPlusIndividualValues.put(stat, new SimpleIntegerProperty(0));\n maxPlusIndividualValues.put(stat, new SimpleIntegerProperty(31));\n }\n\n }\n reset();\n }", "public void resetStats(){\n curA = attack;\n curD = defense;\n curSpA = spAttack;\n curSpD = spDefense;\n curS = speed;\n }", "private void putDefaultInformation() throws FileNotFoundException, SQLException, IOException {\n staff_name = \"Sin informacion\";\n staff_surname = \"Sin informacion\";\n id_type = \"Sin informacion\";\n id_number = \"Sin informacion\";\n putProfPic(null);\n phone_number = \"Sin informacion\";\n mobile_number = \"Sin informacion\";\n email = \"Sin informacion\";\n birthdate = GBEnvironment.getInstance().serverDate();\n gender = \"Seleccione sexo\";\n }", "private void cargarStatsBase (){\n\t\tString dirRoot = System.getProperty(\"user.dir\")+ File.separator+\"recursos\"+ File.separator+\"ficheros\"+ File.separator+\"dungeons\"+File.separator;\n\t\tString dirRazas = dirRoot+\"razas_stats.txt\";\n\t\tString dirClases = dirRoot+\"clases_stats.txt\";\n\n\t\t//Carga de los stats de Raza\n\t\ttry{\n\t\t\tInputStream fichDataRazas = new FileInputStream(dirRazas);\n\t\t\tScanner sc = new Scanner(fichDataRazas);\n\n\t\t\tString lineaAct;\n\t\t\tString lineaRaza=null;\n\n\t\t\twhile (lineaRaza == null && sc.hasNext()){\n\t\t\t\tlineaAct = sc.nextLine();\n\t\t\t\tif (lineaAct.contains(this.raza+\"&\")){\n\t\t\t\t\tlineaRaza = lineaAct;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (lineaRaza != null && lineaRaza.matches(\"(.*)&\\\\d\\\\d,\\\\d\\\\d,\\\\d\\\\d,\\\\d\\\\d\")){\n\t\t\t\tString[] dataStatRaza = lineaRaza.split(\"&\")[1].split(\",\");\n\t\t\t\tint fuerza = Integer.parseInt(dataStatRaza[0]);\n\t\t\t\tint defensa = Integer.parseInt(dataStatRaza[1]);\n\t\t\t\tint inteligencia = Integer.parseInt(dataStatRaza[2]);\n\t\t\t\tint destreza = Integer.parseInt(dataStatRaza[3]);\n\t\t\t\tthis.lStats.sumarStats(new ListaStat(fuerza,defensa,inteligencia,destreza));\n\t\t\t}\n\t\t\telse {throw new ExcepcionRazaInexistente();}\n\t\t\t//Se cierra el escaner\n\t\t\tsc.close();\n\n\n\t\t\t//Carga de los stats de Clase\n\t\t\tInputStream fichDataClases = new FileInputStream(dirClases);\n\t\t\tsc = new Scanner(fichDataClases);\n\n\t\t\tString lineaClase = null;\n\t\t\twhile (lineaClase == null && sc.hasNext()){\n\t\t\t\tlineaAct = sc.nextLine();\n\t\t\t\tif (lineaAct.contains(this.clase+\"&\")){\n\t\t\t\t\tlineaClase = lineaAct;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (lineaClase != null && lineaClase.matches(\"(.*)&\\\\d\\\\d,\\\\d\\\\d,\\\\d\\\\d,\\\\d\\\\d\")){\n\t\t\t\tString[] dataStatClase = lineaClase.split(\"&\")[1].split(\",\");\n\t\t\t\tint fuerza = Integer.parseInt(dataStatClase[0]);\n\t\t\t\tint defensa = Integer.parseInt(dataStatClase[1]);\n\t\t\t\tint inteligencia = Integer.parseInt(dataStatClase[2]);\n\t\t\t\tint destreza = Integer.parseInt(dataStatClase[3]);\n\t\t\t\tthis.lStats.sumarStats(new ListaStat(fuerza,defensa,inteligencia,destreza));\n\t\t\t}\n\t\t\telse {throw new ExcepcionClaseInexistente();}\n\t\t\t//Se cierra el escaner\n\t\t\tsc.close();\n\t\t}\n\n\t\tcatch(FileNotFoundException e){\n\t\t\tSystem.out.println(\"No se encuentran los ficheros de datos de los stats de razas y/o clases, por lo que el juego se cerrará.\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t\tcatch (ExcepcionRazaInexistente e){\n\t\t\tSystem.out.println(\"El fichero \"+dirRazas+\" no contiene datos sobre la raza seleccionada o tiene un formato inadecuado, por lo que el juego se cerrará.\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t\tcatch (ExcepcionClaseInexistente e){\n\t\t\tSystem.out.println(\"El fichero \"+dirClases+\" no contiene datos sobre la clase seleccionada o tiene un formato inadecuado, por lo que el juego se cerrará.\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t\tcatch (Exception e){\n\t\t\tSystem.out.println(\"Ha ocurrido un error inesperado: el juego se cerrará\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "public StStatutesub() {\n }", "private void run() throws Exception {\n String url = getResources().getString(R.string.base_url)+\"users/stats/\";\n\n Request request = new Request.Builder()\n .url(url)\n .header(\"Authorization\", Config.getKey())\n .build();\n Response response = client.newCall(request).execute();\n if (!response.isSuccessful()) throw new IOException(\"Unexpected code \" + response);\n\n try {\n JSONObject jsonResponse = new JSONObject(response.body().string());\n stats.rankingPos = jsonResponse.getInt(Stats.rankingPosKey);\n stats.favoriteArea = jsonResponse.getString(Stats.favoriteAreaKey);\n stats.percentageCompleted = jsonResponse.getDouble(Stats.percentageCompletedKey);\n\n JSONArray categoriesResponse = jsonResponse.getJSONArray(Stats.areasKey);\n double categorie_percentage;\n double l1, l2, l3;\n stats.areas.clear();\n for(String cat : Stats.CATEGORIES) {\n categorie_percentage = 0;\n l1 = 0;\n l2 = 0;\n l3 = 0;\n for(int i = 0; i < categoriesResponse.length(); i++) {\n JSONObject area = categoriesResponse.getJSONObject(i);\n if (area.getString(Stats.areaNameKey).toLowerCase().equals(cat.toLowerCase())) {\n categorie_percentage = area.getDouble(Stats.areaPercKey);\n l1 = 100 * area.getDouble(Stats.level1Key);\n l2 = 100 * area.getDouble(Stats.level2Key);\n l3 = 100 * area.getDouble(Stats.level3Key);\n break;\n }\n }\n stats.areas.add(new Stats.PairAreaPercentage(cat, categorie_percentage, l1, l2, l3));\n }\n } catch (Exception e) {\n e.printStackTrace();\n Log.i(\"JSONError\", \"Erro na formatação do response\");\n }\n }", "static void saveMeta() {\n File dir = new File(\"./plugins/SkyblockShop/\");\n if (!dir.exists()) {if (!dir.mkdir()) { System.out.println(\"Failed to create SkyblockShop directory!\");}}\n\n //save 'money' to .meta file\n try {\n PrintWriter writer = new PrintWriter(\"./plugins/SkyblockShop/.meta\", \"UTF-8\");\n writer.println(Main.money);\n writer.close();\n } catch (Exception e) {\n e.printStackTrace();\n System.out.println(\"Something went wrong while creating the .meta file!\");\n }\n }", "public static void initHighScoreLocal(Context mContext){\n\t\tObject db = Common.getObjFromInternalFile(mContext, Config.score_file_save);;\n\t\tif(db == null){\n\t\t\tint[] highScore = new int[5];\n\t\t\tfor(int i = 0; i < 5 ; i ++){\n\t\t\t\thighScore[i] = 0;\n\t\t\t}\n\t\t\tCommon.writeFileToInternal(mContext, Config.score_file_save, highScore);\n\t\t}\n\t}", "private void prepareDatabaseStats(Player player) {\n this.plugin.getServer().getScheduler().runTaskAsynchronously(this.plugin, () -> {\n synchronized (this.statsController) {\n if (this.statsController.getByPlayer(player) == null) {\n PlayerMeta meta;\n if ((meta = this.playerMetaController.getByUUID(player.getUniqueId())) == null) {\n meta = this.playerMetaController.create(player);\n this.playerMetaController.store(meta);\n }\n final Stats stats = this.statsController.create();\n stats.setPlayerId(meta.getId());\n this.statsController.store(stats);\n }\n }\n });\n }", "private void initUserSetting() {\n\n List<String> instantly = new ArrayList<String>();\n instantly.add(PostActivityPlugin.ID);\n instantly.add(ActivityCommentPlugin.ID);\n instantly.add(ActivityMentionPlugin.ID);\n instantly.add(LikePlugin.ID);\n instantly.add(RequestJoinSpacePlugin.ID);\n instantly.add(SpaceInvitationPlugin.ID);\n instantly.add(RelationshipReceivedRequestPlugin.ID);\n instantly.add(PostActivitySpaceStreamPlugin.ID);\n \n List<String> daily = new ArrayList<String>();\n daily.add(PostActivityPlugin.ID);\n daily.add(ActivityCommentPlugin.ID);\n daily.add(ActivityMentionPlugin.ID);\n daily.add(LikePlugin.ID);\n daily.add(RequestJoinSpacePlugin.ID);\n daily.add(SpaceInvitationPlugin.ID);\n daily.add(RelationshipReceivedRequestPlugin.ID);\n daily.add(PostActivitySpaceStreamPlugin.ID);\n daily.add(NewUserPlugin.ID);\n \n List<String> weekly = new ArrayList<String>();\n weekly.add(PostActivityPlugin.ID);\n weekly.add(ActivityCommentPlugin.ID);\n weekly.add(ActivityMentionPlugin.ID);\n weekly.add(LikePlugin.ID);\n weekly.add(RequestJoinSpacePlugin.ID);\n weekly.add(SpaceInvitationPlugin.ID);\n weekly.add(RelationshipReceivedRequestPlugin.ID);\n weekly.add(PostActivitySpaceStreamPlugin.ID);\n \n List<String> webNotifs = new ArrayList<String>();\n webNotifs.add(NewUserPlugin.ID);\n webNotifs.add(PostActivityPlugin.ID);\n webNotifs.add(ActivityCommentPlugin.ID);\n webNotifs.add(ActivityMentionPlugin.ID);\n webNotifs.add(LikePlugin.ID);\n webNotifs.add(RequestJoinSpacePlugin.ID);\n webNotifs.add(SpaceInvitationPlugin.ID);\n webNotifs.add(RelationshipReceivedRequestPlugin.ID);\n webNotifs.add(PostActivitySpaceStreamPlugin.ID);\n \n // root\n saveSetting(instantly, daily, weekly, webNotifs, rootIdentity.getRemoteId());\n\n // mary\n saveSetting(instantly, daily, weekly, webNotifs, maryIdentity.getRemoteId());\n\n // john\n saveSetting(instantly, daily, weekly, webNotifs, johnIdentity.getRemoteId());\n\n // demo\n saveSetting(instantly, daily, weekly, webNotifs, demoIdentity.getRemoteId());\n }", "public void stats() {\n\t\tSystem.out.println(\"The score is: \" + score \n\t\t\t\t+ \"\\nNumber of Astronauts rescused: \" + rescuedAstronauts \n\t\t\t\t+ \"\\nNumber of Astronauts roaming: \" + roamingAstronauts\n\t\t\t\t+ \"\\nNumber of Aliens rescued: \" + rescuedAliens\n\t\t\t\t+ \"\\nNumber of Aliens roaming: \" + roamingAliens);\n\t}", "static void createDataForGraph() {\n double x = 2;\n String fileName = \"./lab1part2docs/dataRec.csv\";\n createFile(fileName);\n writeToFile(\"k,halfCounter,oneCounter,x=\" + x + \"\\n\", fileName);\n for (int k = 1; k <= 10000; k++) {\n Raise.runBoth(x, k);\n writeToFile(k + \",\" + Raise.recHalfCounter + \",\" + Raise.recOneCounter + '\\n', fileName);\n Raise.recHalfCounter = 0;\n Raise.recOneCounter = 0;\n }\n System.out.println(\"Finished\");\n }", "private void calculateStats(World world, Vec3i spawnLocation) {\n double distanceFromSpawn = getWorldSpawn(world).getManhattanDistance(spawnLocation);\n int levelBase = (int) (distanceFromSpawn / (double) OpenPixelmonConfig.distancePerLevel) + 1;\n int lvlVariation = PixelmonUtils.randBetween(-5, 5);\n set(LEVEL, MathHelper.clamp(levelBase + lvlVariation, 1, OpenPixelmonConfig.maxLevelByDistance));\n\n// setHealth((get(IV_STORAGE).hp + 2.0F * (float) getPokedexEntry().hp + (float) get(EV_STORAGE).hp / 4.0F + 100.0F) * (float) getLevel() / 100.0F + 10.0F); old pixelmon method. not entirely sure why it's differnet\n set(MAX_HP, getPokedexEntry().hp);\n set(HP, (float) (Math.floor(0.01 * (2 * getPokedexEntry().hp + get(IV_STORAGE).hp + Math.floor(0.25 * get(EV_STORAGE).hp)) * getLevel()) + getLevel() + 10));\n }", "public void dailyStats(){\n\t\tString outputString = \"\\nTotal Money Made Today: $\" + (float)Math.round(dailyMoneyMade * 100.0) / 100.0 + \" \\n\";\n\t\toutputString = outputString + \"Catering Sales: $\" + (float)Math.round(cateringDailyMade * 100.0) / 100.0 + \" Business Sales: $\" \n\t\t+ (float)Math.round(businessDailyMade * 100.0) / 100.0 +\" Casual Sales: $\" + (float)Math.round(casualDailyMade * 100.0) / 100.0 +\"\\n\";\n\t\t\n\n\t\toutputString = outputString + \"\\nTotal Outages Today: \" + dailyDisruptions + \" \\n\";\n\t\toutputString = outputString + \"Catering Outages: \" + cateringOuttages + \" Business Outages: \" + businessOuttages +\" Casual Outages: \" + casualOuttages +\"\\n\";\n\n\t\tSystem.out.println(outputString);\n\t\tthis.status = outputString;\n\t\tsetChanged();\n notifyObservers();\n\t}", "Score() {\r\n\t\tsaveload = new SaveLoad();\r\n\t\thighscoreFile = new File(saveload.fileDirectory() + File.separator + \"highscore.shipz\");\r\n\t\tsaveload.makeDirectory(highscoreFile);\r\n\t\tcomboPlayer1 = 1;\r\n\t\tcomboPlayer2 = 1;\r\n\t\tscorePlayer1 = 0;\r\n\t\tscorePlayer2 = 0;\r\n\t}", "public void summarizeData() {\n\t\t//take json object and populate a POJO\n\t\t\n//\t\tfor(javaObject : x) {\n\t\t\n\t\t\t//new JobSummaryObject\n\t\t\t//\n\t}", "public void saveProgress() {\n\t\tsaveUsers();\n\t\tsaveMaterials();\n\t\tsaveBorrowings();\n\t}", "public void saveSingleton(String table_name, int n, int m, double p, HashMap<String, DescriptiveStatistics> stats) throws SQLException {\n // Add the number of goods.\n DescriptiveStatistics numberOfGoods = new DescriptiveStatistics();\n numberOfGoods.addValue(n);\n stats.put(\"n\", numberOfGoods);\n // Add the number of bidders.\n DescriptiveStatistics numberOfBidders = new DescriptiveStatistics();\n numberOfBidders.addValue(m);\n stats.put(\"m\", numberOfBidders);\n // Add the type of reward\n DescriptiveStatistics probabilityConnections = new DescriptiveStatistics();\n probabilityConnections.addValue(p);\n stats.put(\"p\", probabilityConnections);\n // Create and execute SQL statement.\n this.createAndExecuteSQLStatement(table_name, stats);\n }", "public BaseStatistics() {\n\t\tsuper();\n\t}", "protected int[] getNewStats(){\n if (owner instanceof Hero){\n Hero h = (Hero) owner;\n int att = levelStat(h.getLevel(),h,h.getLvl1Att(),h.getLvl1HP());\n int hp = levelStat(h.getLevel(),h,h.getLvl1HP(),h.getLvl1Att());\n \n if (h.getPromoteLevel() >= 1){\n hp += h.getPromote1HP();\n }\n if (h.getPromoteLevel() >= 2){\n att += h.getPromote2Att();\n }\n if (h.getPromoteLevel() >= 4){\n hp += h.getPromote4Stats();\n att += h.getPromote4Stats();\n }\n \n \n return new int[]{att,hp};\n }\n else{\n return new int[]{owner.getLvl1Att(),owner.getLvl1HP()};\n }\n }", "public Stats(JSONObject stats) throws StateNotValid, DateNotValid, RangeNotValid, GenreNotValid, KeywordNotValid {\n\t\tsuper(stats);\n\t\tthis.statCalculator();\n\t}" ]
[ "0.64300877", "0.60021824", "0.58877826", "0.5708775", "0.5655757", "0.56257564", "0.55860776", "0.55049664", "0.5499596", "0.54526204", "0.5423238", "0.5417412", "0.5416409", "0.538943", "0.5338359", "0.5318466", "0.53178775", "0.5303979", "0.52834964", "0.526706", "0.52568424", "0.52562845", "0.5251454", "0.5231095", "0.52181226", "0.52030975", "0.5175651", "0.51750505", "0.5170367", "0.514501", "0.5142996", "0.5139743", "0.5134634", "0.5112303", "0.51092726", "0.5101145", "0.5093622", "0.5079322", "0.5076783", "0.50690883", "0.50690645", "0.5050596", "0.5017839", "0.4988164", "0.49590725", "0.49505952", "0.49448305", "0.49412102", "0.4937582", "0.49374312", "0.49359334", "0.49276012", "0.49058026", "0.48952058", "0.48933077", "0.488562", "0.48750636", "0.48684388", "0.48673457", "0.48629", "0.48431826", "0.48363432", "0.4835352", "0.4829128", "0.48240113", "0.48227036", "0.48084486", "0.4791939", "0.47913304", "0.47865698", "0.47804686", "0.47755367", "0.47616932", "0.47614965", "0.47589892", "0.4758652", "0.4757994", "0.47502005", "0.47474375", "0.47467482", "0.47453746", "0.47453406", "0.4739416", "0.4730429", "0.47292495", "0.4724566", "0.47188395", "0.4711035", "0.47058794", "0.47033003", "0.46952575", "0.4695029", "0.4681351", "0.46806404", "0.46761146", "0.46692234", "0.4665886", "0.46635047", "0.46470472", "0.46454293" ]
0.7411798
0
launch the main activity
private void goMainActivity() { Intent i = new Intent(this, ProfileActivity.class); startActivity(i); //prevents user going back to this screen after signing up finish(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void launchMain() {\n\t\tfinal Intent i = new Intent(this, MainActivity.class);\n\t\tstartActivity(i);\n\t}", "private void goToMain(){\n Intent intent = new Intent(this, MainActivity.class);\n startActivity(intent);\n }", "private void goToMain(){\n Intent intent = new Intent(getBaseContext(), MainActivity.class);\n startActivity(intent);\n }", "void gotoMainIntent() {\r\n // Intenting to start the activity \"main\".\r\n Intent mainIntent = new Intent(this, Main.class);\r\n this.startActivity(mainIntent);\r\n this.finish(); // Splash screen is done now... Needed, otherwise when closing the main activity will result\r\n // in coming back to the splashscreen.\r\n }", "protected void startMainActivity() {\n Intent i = new Intent(this, MainActivity.class);\n startActivity(i);\n }", "void launchApp();", "private void openMainActivity()\n {\n // Create the required intent, i.e. a description of MainActivity.\n Intent intent = new Intent(this, MainActivity.class);\n\n // Start the intent.\n startActivity(intent);\n\n // Call this Activity's finish() method.\n finish();\n }", "public void run() {\n Intent mainIntent = new Intent(SplashActivity.this, MainActivity.class);\n startActivity(mainIntent);\n finish();\n }", "private void startMainActivity() {\n Intent intent = new Intent(this, MyActivity.class);\n startActivity(intent);\n }", "private void startViewer() {\n Intent intent = new Intent(this, MainActivity.class);\n startActivity(intent);\n finish();\n }", "private void goToMainScreen() {\n new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n Intent mainIntent;\n\n MainActivity act = new MainActivity();\n Intent intent = new Intent(getApplication(), MainActivity.class);\n startActivity(intent);\n finish();\n }\n }, SPLASH_DISPLAY_LENGHT);\n }", "private void returnToMain() {\n Intent intent = new Intent(this, MainActivity.class);\n startActivity(intent);\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(LaunchActivity.this, MainActivity.class);\n startActivity(intent);\n }", "@Override\r\n public void run() {\n if (preferences.getBoolean(\"isMain\",false))\r\n {\r\n startActivity(new Intent(SplashScreen.this,MainActivity.class));\r\n finish();\r\n }else {\r\n editor.putBoolean(\"isMain\",true);\r\n editor.apply();\r\n\r\n TaskStackBuilder.create(SplashScreen.this)\r\n .addNextIntentWithParentStack(new Intent(SplashScreen.this,MainActivity.class))\r\n .addNextIntent(new Intent(SplashScreen.this,IntroActivity.class))\r\n .startActivities();\r\n }\r\n }", "@Override\n public void run() {\n Intent intent = new Intent(getApplicationContext(), MainActivity.class);\n startActivity(intent);\n finish();\n }", "@Override\n public void run() {\n startActivity(intent);\n }", "@Override\n public void run() {\n Intent mainIntent = new Intent(LaunchScreenActivity.this,MainActivity.class);\n LaunchScreenActivity.this.startActivity(mainIntent);\n LaunchScreenActivity.this.finish();\n }", "private void goMainActivity() {\n Intent i = new Intent(this, MainActivity.class);\n startActivity(i);\n finish();\n }", "@Override\n public void run() {\n Intent intent =new Intent(LuanchActivity.this, MainActivity.class);\n startActivity(intent);\n\n finish();\n }", "public void startMain(View view) {\n Toast.makeText(LoginActivity.this, \"Login Button Clicked\", Toast.LENGTH_SHORT).show();\n }", "private void launch() {\n Intent intent = new Intent(getActivity(), ForumAddActivity.class);\n startActivity(intent);\n }", "public void startApp()\r\n\t{\n\t}", "public void volverMain(View view){\n\n Intent i = new Intent(this, MainActivity.class);\n startActivity(i);\n finish();\n\n }", "private void goToMainActivity() {\n\n Intent mainIntent = new Intent(this, MainActivity.class);\n mainIntent.putExtra(DAF_YOMI_DETAILES, mDafYomiDetailes);\n startActivity(mainIntent);\n finish();\n\n }", "@Override\n public void run() {\n Intent i = new Intent(Splash.this, MainActivity.class);\n startActivity(i);\n finish();\n }", "@Override\r\n public void run() {\n Intent i = new Intent(SplashScreen.this, MainActivity.class);\r\n startActivity(i);\r\n finish();\r\n }", "public void launchBasic(View view){\n Intent basic = new Intent(MainActivity.this,BasicActivity.class);\n startActivity(basic);\n }", "@Override\n public void run() {\n Intent mainIntent = new Intent().setClass(\n SplashScreenActivity.this, MainActivity.class);\n startActivity(mainIntent);\n \n // Close the activity so the user won't able to go back this\n // activity pressing Back button\n finish();\n }", "@Override\n public void run() {\n Intent intent = new Intent(SplashScreenActivity.this, MainActivity.class);\n startActivity(intent);\n finish();\n }", "private void openMainActivity(int pos) {\n Intent i = new Intent(Launcher.this, MainActivity.class);\n i.putExtra(\"division\", pos);\n startActivity(i);\n }", "@Override\n public void run() {\n Intent mainIntent = new Intent(SplashActivity.this, MainActivity.class);\n startActivity(mainIntent);\n finish();\n }", "public void launchMainScreen(View view) {\n startActivity(new Intent(view.getContext(), SearchCreateDeleteActivity.class));\n finish();\n }", "@Override\n public void run() {\n Intent i = new Intent(SplashScreenActivity.this, MainActivity.class);\n startActivity(i);\n finish();\n }", "@Override\n public void run() {\n Intent home=new Intent(home.this, MainActivity.class);\n startActivity(home);\n finish();\n\n }", "public void gotoMain(View v) {\n Intent intent = new Intent(chords.this, MainActivity.class);\n startActivity(intent);\n }", "@Override\n public void run() {\n Intent intent = new Intent(SplashActivity.this, MainActivity.class);\n startActivity(intent);\n finish();\n }", "public static void loadMainActivity() {\n Intent act = new Intent(context, MainActivity.class);\n act.putExtra(\"jsongroup\", gson.toJson(jgroup));\n context.startActivity(act);\n }", "@Override\n public void run() {\n\n Intent home = new Intent(MainActivity.this, HomeActivity.class);\n\n startActivity(home);\n finish();\n }", "public void run(){\n\t\t\t\tif(!exit)\r\n\t\t\t\t{\r\n\t\t\t\tIntent mainIntent = new Intent(Splash.this,MainActivity.class);\r\n\t\t\t\tSplash.this.startActivity(mainIntent);\r\n\t\t\t\tSplash.this.finish();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// When the Splash is exiting the application\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t//android.os.Process.killProcess(android.os.Process.myPid());\r\n\t\t\t\tfinish();\r\n\t\t\t\t}\r\n\t\t\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tonIntentClass(activity, MainActivity.class, true);\n\t\t\t}", "public void run() {\n Intent i = new Intent(activity_splash.this, MainActivity.class);\r\n startActivity(i); // menghubungkan activity splashscren ke xml\r\n //jeda selesai Splashscreen\r\n this.finish();\r\n }", "@Override\n public void run() {\n Intent mainIntent = new Intent(Intro.this,MainActivity.class);\n startActivity(mainIntent);\n finish();\n }", "@Override\n public void run() {\n\n\n Intent i;\n\n if(sharedperference.getToken()==null || sharedperference.getToken()==\"\") {\n i = new Intent(SplashScreen.this, MainActivity.class);\n }\n else{\n i = new Intent(SplashScreen.this, MainActivity.class);\n\n }\n\n //i = new Intent(SplashScreen.this, LanuageSelection.class);\n\n\n startActivity(i);\n finish();\n\n }", "private void goToMainActivity(){\n Log.d(TAG, \"goToMainActivity: called\");\n saveUserLogin(login);\n\n Intent intent = new Intent(\"android.intent.action.MapActivity\");\n view.getContext().startActivity(intent);\n }", "@Override\n public void run() {\n Intent intent = new Intent(MainActivity.this,login.class);\n startActivity(intent);\n\n }", "@Override\n public void onClick(View view) {\n startActivity(new Intent(StartActivity.this, MainActivity.class));\n }", "@Override\n public void run() {\n Intent mainIntent = new Intent(AzadUniversity.this, FirstMenu.class);\n AzadUniversity.this.startActivity(mainIntent);\n AzadUniversity.this.finish();\n }", "@Override\n public void onClick(View view) {\n Intent intent = MainActivity.newIntent(getActivity(), mMonitor.getId());\n startActivity(intent);\n\n }", "private void redirectToMain() {\n\t\tIntent intent = new Intent(this, Main.class);\r\n\t\tstartActivity(intent);\r\n\t\tfinish();\r\n\t}", "@Override\r\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tIntent i=new Intent(getApplicationContext(),MainActivity.class);\r\n\t\t\t\t\tstartActivity(i);\r\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent in = new Intent(getApplicationContext(),MainActivity.class);\n\t\t\t\tstartActivity(in);\n\t\t\t}", "@Override\r\n\t\t public void run() {\n\t\t Intent i = new Intent(SplashScreen.this, MainMenuActivity.class);\r\n\t\t startActivity(i);\r\n\t\t \r\n\t\t //Menyelesaikan Splashscreen\r\n\t\t finish();\r\n\t\t }", "@Override\n public void run() {\n Intent mainIntent = new Intent(SplashscreenActivity.this, MainActivity.class);\n SplashscreenActivity.this.startActivity(mainIntent);\n //We call finish() function to prevent user to come back to splashScreen\n SplashscreenActivity.this.finish();\n }", "void launch();", "void launch();", "void launch();", "@Override\n public void run() {\n try {\n // Sleeping\n Thread.sleep(2800);\n } catch (Exception e) {\n Log.e(TAG, e.getMessage());\n }\n\n startMainActivity();\n }", "public void launchMaster()\n {\n \tIntent mIntent = new Intent(MainActivity.this, MasterButtonActivity.class);\n \tstartActivityForResult(mIntent, NEW_MASTER_BUTTON_ACTIVITY);\n }", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tIntent mainIntent = new Intent(mThis,GuideActivity_.class);\n\t\t\t\t\t//Intent mainIntent = new Intent(LuanchActivity.this, \"guideactivity\");\n\t\t\t\t\tmThis.startActivity(mainIntent);\n\t\t\t\t\tmThis.finish();\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n//\t\t\t\t\tIntent mainIntent = new Intent(LuanchActivity.this,\n//\t\t\t\t\t\t\tMainActivity.class);\n//\t\t\t\t\tLuanchActivity.this.startActivity(mainIntent);\n//\t\t\t\t\tLuanchActivity.this.finish();\n\t\t\t\t}", "public void run()\n {\n\n Intent in = new Intent(activity, loginfailed.class);\n in.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n activity.startActivity(in);\n\n\n }", "private void openActivity() {\n }", "@Override\n\t\t public void launchApp(Context context, UMessage msg) {\n\t\t\t\t Toast.makeText(context, \"launchApp:\"+msg.custom, Toast.LENGTH_LONG).show();\n\t\t \t Intent it=new Intent(getApplicationContext(),MainActivity.class);//MenuActivity_VC\n\t\t \t\t it.putExtra(\"notify\", msg.custom);\n\t\t \t\t startActivity(it);\n\t\t\t }", "private void startMuseek(){\r\n\t\tIntent mainActivity = new Intent(getBaseContext(), MainActivity.class);\r\n\t\tmainActivity.putExtra(\"latitude\", mLocation.getLatitude());\r\n\t\tmainActivity.putExtra(\"longitude\", mLocation.getLongitude());\r\n\t\tstartActivity(mainActivity);\r\n\t}", "@Override\r\n\tpublic void launch() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void launch() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void launch() {\n\t\t\r\n\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tstartActivity(new Intent(MainActivity.this,\n\t\t\t\t\t\tcom.itcuties.android.apps.MainActivity.class));\n\n\t\t\t}", "public void run() {\n Intent intent = new Intent(IndexActivity.this, LoginActivity.class);\n startActivity(intent);\n finish();\n }", "public void run() {\n Intent mInHome = new Intent(MainActivity.this,GoogleLoginActivity.class);\n MainActivity.this.startActivity(mInHome);\n MainActivity.this.finish();\n }", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tmContext.startActivity(intent);\n\t\t\t\t}", "public void backtoMain()\n {\n Intent i=new Intent(this,MainActivity.class);\n startActivity(i);\n }", "public static void startUrself(Activity context) {\n\t\tIntent newActivity = new Intent(context, MainActivity.class);\n\t\tnewActivity.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\t\tcontext.startActivity(newActivity);\n\t\tcontext.finish();\n\t}", "@Override\n public void run() {\n Intent intent = new Intent(SplashActivity.this, CidadeActivity.class);\n /* startactivity solicita uma intent para saber o que deve fazer */\n startActivity(intent);\n finish();\n }", "public void Inicio (View view){\n Intent inicio = new Intent(this, MainActivity.class);\n startActivity(inicio);\n }", "private void startBookMain() {\n Intent intent = new Intent();\r\n intent.setClass(this, MainActivity.class);\r\n this.startActivity(intent);\r\n this.overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out);\r\n this.finish();\r\n }", "@Override\n public void run() {\n Intent mainIntent = new Intent(StartSplash.this, SplashActivity.class);\n StartSplash.this.startActivity(mainIntent);\n StartSplash.this.finish();\n }", "@Override\n public void run() {\n Intent mainIntent = new Intent().setClass(\n MainActivity.this, PreRegistroActivity.class);\n startActivity(mainIntent);\n\n // Close the activity so the user won't able to go back this\n // activity pressing Back button\n finish();\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(FxService.this, MainActivity.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(FxService.this, MainActivity.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n }", "@Override\n public void run() {\n Intent mainIntent = new Intent(playersc.this,MainActivity.class);\n playersc.this.startActivity(mainIntent);\n playersc.this.finish();\n }", "@Override\n public void run() {\n Intent mainIntent = new Intent(Splash.this, ScoreScreen.class);\n Splash.this.startActivity(mainIntent);\n Splash.this.finish();\n }", "@Override\n public void run() {\n Intent mySuperIntent = new Intent(welecomeActivity.this, IntroApplicationActivity.class);\n startActivity(mySuperIntent);\n /* This 'finish()' is for exiting the app when back button pressed\n * from Home page which is ActivityHome\n */\n finish();\n }", "public void onClick(View v) {\n Intent nextScreen = new Intent(getApplicationContext(), MainActivity.class);\n startActivity(nextScreen);\n }", "public void gotoMain(View view) {\n finish();\n }", "public void mainPage(View view){\n Intent intent = new Intent(getApplicationContext(), MainActivity.class);\r\n intent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION| Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_NEW_TASK);\r\n intent.putExtra(\"profileToLoad\", profile);\r\n startActivity(intent);\r\n }", "@Override\n public void displayRatificationActivity() {\n Intent i = new Intent(MainActivity.this, LoginActivity.class);\n i.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);\n startActivityForResult(i, RC_RATIFY_CONSTITUTION);\n }", "private void goToWeather(){\n \tIntent intent = new Intent(PresentadorV_main.this,\n \t\t\tPresentador_weather.class); \t\n \tstartActivity(intent); \t\n }", "public void run() {\n\t\t\t\t\t\tUiApplication.getUiApplication().pushScreen(new HomeScreen());\n\t\t\t\t\t}", "public void run() {\n\t\t\t\t\t\tUiApplication.getUiApplication().pushScreen(new HomeScreen());\n\t\t\t\t\t}", "@Override\n public void run() {\n // This method will be executed once the timer is over\n // Start your app main activity\n checkMainSetupCompletion();\n Intent i;\n if(isPermanentlySkipped == 1 || isFacebookLoggedIn == 1 )\n i = new Intent(SplashScreen.this, menuActivity.class);\n else\n i = new Intent(SplashScreen.this, MainActivity.class);\n startActivity(i);\n // close this activity\n finish();\n }", "public void launchSlave()\n {\n \tIntent mIntent = new Intent(MainActivity.this, SlaveActivity.class);\n \tstartActivityForResult(mIntent, NEW_SLAVE_ACTIVITY);\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tstartActivity(new Intent(SplashActivity.this, LoginActivity.class));\n\t\t\t\t//redictToActivity(SplashActivity.this, MainActivity.class, null);\n\t\t\t\tfinish();\n\t\t\t}", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\tif(flag == 0)\r\n\t\t\t\t{\r\n\t\t\t\t\tIntent mainIntent = null;\r\n\t\t\t\t\tmainIntent = new Intent(SplashActivity.this,\r\n\t\t\t\t\t\t\tMainActivity.class);\r\n\t\t\t\t\tSplashActivity.this.startActivity(mainIntent);\r\n\t\t\t\t\tSplashActivity.this.finish();\r\n\t\t\t\t}\r\n\t\t\t\telse if(flag ==1)\r\n\t\t\t\t{\r\n\t\t\t\t\tIntent mainIntent = null;\r\n\t\t\t\t\tmainIntent = new Intent(SplashActivity.this,\r\n\t\t\t\t\t\t\tRegisterActivity.class);\r\n\t\t\t\t\tSplashActivity.this.startActivity(mainIntent);\r\n\t\t\t\t\tSplashActivity.this.finish();\r\n\t\t\t\t}\r\n\t\t\t}", "@Override\n\tprotected void onCreate(Bundle savedInstanceState)\n\t{\n\t\tsuper.onCreate(savedInstanceState);\n\t\tgetWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);\n\t\tgetActionBar().hide();\n\t\t\n\t\tsetContentView(R.layout.launchview);\n\t\tTextView codeinfo = (TextView)findViewById(R.id.version);\n\t\tPackageManager pm = getPackageManager();\n\t\tPackageInfo inf = null;\n\t\ttry{\n\t\t\tinf = pm.getPackageInfo(getPackageName(),0);\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\tcodeinfo.setText(Html.fromHtml(\"Version \"+inf.versionName));\n\t\tThread myThread=new Thread(){//创建子线程\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\ttry{\n\t\t\t\t\tsleep(3000);//使程序休眠五秒\n\t\t\t\t\tIntent itent=new Intent(getApplicationContext(),MainActivity.class);//启动MainActivity\n\t\t\t\t\tstartActivity(itent);\n\t\t\t\t\tfinish();//关闭当前活动\n\t\t\t\t}catch (Exception e){\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tmyThread.start();\n\t\t}", "@Override\n public void run() {\n startActivity(new Intent(SplashActivity.this, MainActivity3.class));\n //Close the current welcome page after the jump\n SplashActivity.this.finish();\n }", "@Override\n public void run() {\n\n Intent intent = new Intent(Launcher.this, Login.class);\n startActivity(intent);\n finish();\n }", "@Override\n public void jumpActivity() {\n startActivity(new Intent(MainActivity.this, MainActivity.class));\n }", "@Override\n\tpublic void onClick(View v) {\n\t\tIntent i = new Intent(this,MainActivity.class);\n\t\tstartActivity(i);\n\t}", "@Override\n public void run() {\n Intent mainIntent = new Intent(Sample.this,WebviewActivity.class);\n Sample.this.startActivity(mainIntent);\n Sample.this.finish();\n }", "@Override\n public void onClick(View view) {\n\n openMain3Activity();\n }", "private void openHome(){\n Intent intent2 = new Intent(AddExercises.this, MainActivity.class);\n startActivity(intent2);\n }" ]
[ "0.85378546", "0.77371955", "0.7732347", "0.760375", "0.7491485", "0.74859697", "0.7449985", "0.7317437", "0.72906345", "0.7287022", "0.7205348", "0.71933174", "0.717539", "0.71633685", "0.71445626", "0.7136797", "0.7092682", "0.70723665", "0.7069711", "0.7044982", "0.7028268", "0.702402", "0.7008812", "0.70034754", "0.6997776", "0.6994046", "0.69934946", "0.69704425", "0.69642377", "0.6963974", "0.6963749", "0.6960398", "0.6960183", "0.6959284", "0.6956197", "0.69363344", "0.6888664", "0.6880671", "0.68799454", "0.68686205", "0.6863313", "0.6860487", "0.6844813", "0.68446606", "0.6823591", "0.6822288", "0.67943716", "0.67716414", "0.6745542", "0.6743776", "0.67308694", "0.6709455", "0.66914356", "0.6688001", "0.6688001", "0.6688001", "0.66735333", "0.66411096", "0.66297233", "0.660213", "0.6587039", "0.6585392", "0.6583084", "0.65781343", "0.65781343", "0.65781343", "0.65726745", "0.6553237", "0.654845", "0.6545782", "0.6543999", "0.6543931", "0.6543813", "0.65426886", "0.6542434", "0.6539601", "0.653371", "0.65336376", "0.65336376", "0.65185744", "0.65086216", "0.6505326", "0.6499675", "0.64988655", "0.6496857", "0.6495111", "0.64947784", "0.6488565", "0.6488565", "0.64706475", "0.64658356", "0.64556414", "0.6448375", "0.6445014", "0.64434767", "0.64367074", "0.6434582", "0.6432681", "0.6432511", "0.64248997", "0.64221156" ]
0.0
-1
method to create a linkedlist
public static LinkedList_Details createList() { System.out.print("\nEnter min length of list : "); Scanner sc = new Scanner(System.in); int len = sc.nextInt(); //take min length of list int i = 0; //loop counter variable int v; //list values will be assigned to this variable in loop Node head = null; //head node declaration Node temp = null; //temp node to keep track of node in loop //If we dont want to enter list values manually, we can generate random values System.out.println("\nDo you want enter your own values for the list? if Yes, enter 1 \nif No, enter 0"); Scanner rd_sc = new Scanner(System.in); int rd_val = rd_sc.nextInt(); while (i <= len) { if( i == len) { System.out.println("\nYou have created a list of " + len + " values."); System.out.println("Do you still want to enter values in the list?"); System.out.println("if Yes, enter the length by which you want to extend the list"); System.out.println("if No, enter 0"); Scanner li_sc = new Scanner(System.in); int ext_len = li_sc.nextInt(); len = len + ext_len; } if(i < len){ if(rd_val == 0) { Random rand = new Random(); v = rand.nextInt(1000); } else { System.out.println("Enter a value for the list"); Scanner val_sc = new Scanner(System.in); v = val_sc.nextInt(); } if(head == null) { temp = new Node(v); head = temp; } else { temp.next = new Node(v); temp = temp.next; } } i++; } LinkedList_Details ld = new LinkedList_Details(len, head); return ld; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static <T> LinkedList<T> createLinkedList() {\n \t\treturn new LinkedList<T>();\n \t}", "public linkedList() { // constructs an initially empty list\r\n\r\n }", "private static Node createLoopedList()\n {\n Node n1 = new Node(1);\n Node n2 = new Node(2);\n Node n3 = new Node(3);\n Node n4 = new Node(4);\n Node n5 = new Node(5);\n Node n6 = new Node(6);\n Node n7 = new Node(7);\n Node n8 = new Node(8);\n Node n9 = new Node(9);\n Node n10 = new Node(10);\n Node n11 = new Node(11);\n\n n1.next = n2;\n n2.next = n3;\n n3.next = n4;\n n4.next = n5;\n n5.next = n6;\n n6.next = n7;\n n7.next = n8;\n n8.next = n9;\n n9.next = n10;\n n10.next = n11;\n n11.next = n5;\n\n return n1;\n }", "public LinkList(String data){\n this.head = new Node(data, null);\n this.tail = this.head;\n }", "public ListNode createList(int len) {\r\n\t\tListNode head = null;\r\n\t\tRandom r = new Random(10);\r\n\t\tfor (int i = 0; i < len; ++i) {\r\n\r\n\t\t\thead = createNode(head, r.nextInt(20) + 1);\r\n\t\t}\r\n\r\n\t\treturn head;\r\n\t}", "public LinkedLists() {\n }", "public LinkedList() {\n\t\tthis(\"list\");\n\t}", "public MySinglyLinkedList() { }", "public MyLinkedList()\n {\n head = new Node(null, null, tail);\n tail = new Node(null, head, null);\n }", "public CircularlyLinkedList() { }", "public WCLinkedList(){\n size=0;\n head = null;\n tail = null;\n }", "public ListNode(Object newItem){\n\t\tlistItem = newItem;\n\t\tnext = null;\n\t}", "public MyLinkedList() \n\t{\n\t\t\n\t}", "private void createNodes() {\n head = new ListNode(30);\n ListNode l2 = new ListNode(40);\n ListNode l3 = new ListNode(50);\n head.next = l2;\n l2.next = l3;\n }", "public Linked_list() {\n pre = new Node();\n post = new Node();\n pre.next = post;\n post.prev = pre;\n }", "public LinkedList() {\n\t\titems = lastNode = new DblListnode<E>(null);\n\t\tnumItems=0;\n\t}", "public LinkedList(Object item) {\n\t\tif (item != null) {\n\t\t\tcurrent = end = start = new ListItem(item);// item is the start and end\n\t\t}\n\t}", "public UtillLinkList() {\n\t\tlist = new LinkedList<String>();\n\t}", "public LinkedListDemo() {\r\n }", "public MyLinkedList() {\n this.size = 0;\n this.head = new ListNode(0);\n }", "DListNode() {\n item[0] = 0;\n item[1] = 0;\n item[2] = 0;\n prev = null;\n next = null;\n }", "private static ListNode initializeListNode() {\n\n\t\tRandom rand = new Random();\n\t\tListNode result = new ListNode(rand.nextInt(10)+1);\n\t\t\n\t\tresult.next = new ListNode(rand.nextInt(10)+1);\n\t\tresult.next.next = new ListNode(rand.nextInt(10)+1);\n\t\tresult.next.next.next = new ListNode(rand.nextInt(10)+1);\n\t\tresult.next.next.next.next = new ListNode(rand.nextInt(10)+1);\n\t\t\n\t\treturn result;\n\t}", "public LinkedList () {\n\t\tMemoryBlock dummy;\n\t\tdummy = new MemoryBlock(0,0);\n\t\ttail = new Node(dummy);\n\t\tdummy = new MemoryBlock(0,0);\n\t\thead = new Node(dummy);\n\t\ttail.next = head;\n\t\thead.previous = tail;\n\t\tsize = 2;\n\t}", "Node(Object newItem){\n item = newItem; //--points to a different\n next = null;\n }", "public DLList() {\n head = null;\n tail = null;\n }", "public LinkList() {\n this.head = null;\n this.tail = null;\n }", "public LinkedList() {\r\n front = new ListNode(null);\r\n back = new ListNode(null, front, null);\r\n front.next = back;\r\n size = 0;\r\n }", "LI createLI();", "public ListNode(Object newItem, ListNode nextNode){\n\t\tlistItem = newItem;\n\t\tnext = nextNode;\n\t}", "public Lista()\n {\n empty=true;\n next = null;\n }", "public DoublyLinkedList() {\r\n\t\tinitializeDataFields();\r\n\t}", "public LinkedList(){\n this.size = 0;\n first = null;\n last = null;\n }", "public LinkedListDemo() {\n\t\tlength = 0;\n\t\thead = new ListNode();\n\t\n\t}", "void operateLinkedList() {\n\n List linkedList = new LinkedList();\n linkedList.add( \"syed\" );\n linkedList.add( \"Mohammed\" );\n linkedList.add( \"Younus\" );\n System.out.println( linkedList );\n linkedList.set( 0, \"SYED\" );\n System.out.println( linkedList );\n linkedList.add( 0, \"Mr.\" );\n System.out.println( linkedList );\n\n\n }", "public static LinkedList createEmpty(){\n return new LinkedList();\n }", "abstract void makeList();", "public listNode(String val) {\n\t\t\tdata= val;\n\t\t\tnext= null;\n\t\t\tprevious= null;\n\t\t}", "public CS228LinkedList() {\r\n\t\thead = new Node();\r\n\t\ttail = new Node();\r\n\t\thead.next = tail;\r\n\t\ttail.prev = head;\r\n\r\n\t\t// TODO - any other initialization you need\r\n\t}", "public static ListNode createLinkedList(int low, int high){\n\t \t\tif(low>high) return null;\n\t \t\tListNode head = new ListNode(low);\n\t \t\tListNode temp = head;\n\t \t\tfor(int i = low+1; i <= high; i++){\n\t \t\t\ttemp.next = new ListNode(i);\n\t \t\t\ttemp = temp.next;\n\t \t\t}\n\t \t\treturn head;\n\t \t}", "public static Node createList(){\n Scanner sc = new Scanner(System.in);\n System.out.println(\"Enter size of linked list:\");\n int n = sc.nextInt();\n\n Node head = new Node(sc.nextInt());\n Node ref = head;\n while(--n!=0) {\n head.next = new Node(sc.nextInt());\n head = head.next;\n }\n return ref;\n\n }", "public SLList()\n {\n head = tail = null;\n }", "public List(E value) {\n\t\thead = new ListNode(value, null);\n\t}", "public ObjectListNode (Object o) {\n info = o;\n next = null;\n }", "public LinkedList(){\n count = 0;\n front = rear = null;\n }", "public ObjectListNode() {\n info = null;\n next = null;\n }", "public MyLinkedList() {\n first = null;\n n = 0;\n }", "public SkipListNode() {\n\t// construct a dummy node\n\tdata = null;\n\tnext = new ArrayList<SkipListNode<K>>();\n\tnext.add(null);\n }", "public ListNode(Object d) {\n\t\tdata = d;\n\t\tnext = null;\n\t}", "public ListReferenceBased() {\r\n\t numItems = 0; // declares numItems is 0\r\n\t head = null; // declares head is null\r\n }", "ListNode(T datum) {\n\t\t\tthis.datum = datum;\n\t\t\tthis.next = null;\n\t\t}", "ListType createListType();", "LinkedList(E data){\n\n }", "public MyLinkedList() {\n \thead = null;\n \ttail = null;\n }", "public MyLinkedList() {\n size = 0;\n head = null;\n tail = null;\n }", "public ListNode(Object d, ListNode n) {\n\t\tdata = d;\n\t\tnext = n;\n\t}", "public LinkedList(){\n this.head = null;\n this.numNodes = 0;\n }", "public MyLinkedList() {\n dummyHead = new Node();\n size = 0;\n }", "DListNode2(Object vertex1) {\r\n vertex = vertex1;\r\n list = null;\r\n prev = null;\r\n next = null;\r\n }", "public SinglyLinkedList(){\n this.first = null;\n }", "public ListNode(E d, ListNode<E> node)\n { \n nextNode = node;\n data = d;\n }", "public LinkedList(){\n\t\thead = null;\n\t\ttail = null;\n\t}", "@ProtoFactory\n public LinkedList<E> create(int size) {\n return new LinkedList<>();\n }", "public MyLinkedList() {\n length = 0;\n }", "public SingleLinkedList() {\r\n start = null;\r\n System.out.println(\"A List Object was created\");\r\n }", "public ObjectListNode (Object o, ObjectListNode p) {\n info = o;\n next = p;\n }", "public LinkedList<Integer> makeSorted() \n\t {\n\t\t return new LinkedList<Integer>();\n\t }", "public GenLinkedList() {\r\n\t\thead = curr = prev = null;\r\n\t}", "public ListADTImpl() {\r\n head = new GenericEmptyNode();\r\n }", "SkipList()\r\n {\r\n head = new Node<T>(1); //Create a new head of our skip list and give it height 1.\r\n }", "public LinkedList() {\n size = 0;\n head = new DoublyLinkedNode<E>(null);\n tail = new DoublyLinkedNode<E>(null);\n\n head.setNext(tail);\n tail.setPrevious(head);\n }", "private void createList(String[] toAdd) {\n FixData fixedList;\n for (int i = 0; i < toAdd.length; ++i) {\n fixedList = new FixData(toAdd[i]);\n if (pickAdjacent(fixedList))\n this.head = createListWrap(this.head, fixedList);\n else\n fixedList = null;\n }\n }", "public LinkedList(String listName) {\n\t\tname = listName;\n\t\tfirstNode = lastNode = null;\n\t\tsize=0;\n\t}", "ListOfBooks(){\n \tlist = new LinkedList<Book>();\n }", "private void init() {\r\n head = new DLList.Node<T>(null);\r\n head.setNext(tail);\r\n tail = new DLList.Node<T>(null);\r\n tail.setPrevious(head);\r\n size = 0;\r\n }", "private LinkedList_base getLinkedList() {\n\t\treturn new LinkedList_DLLERR4();\n\t}", "@Test\n public void testList() {\n SLNode one = new SLNode(1, null);\n SLNode twoOne = new SLNode(2, one);\n SLNode threeTwoOne = new SLNode(3, twoOne);\n\n SLNode x = SLNode.of(3, 2, 1);\n assertEquals(threeTwoOne, x);\n }", "public DLList() {\r\n init();\r\n }", "public List() {\n\t\tthis.head = null; \n\t}", "public void addNode(int item) { \n //Create a new node \n Node newNode = new Node(item); \n \n //if list is empty, head and tail points to newNode \n if(head == null) { \n head = tail = newNode; \n //head's previous will be null \n head.previous = null; \n //tail's next will be null \n tail.next = null; \n } \n else { \n //add newNode to the end of list. tail->next set to newNode \n tail.next = newNode; \n //newNode->previous set to tail \n newNode.previous = tail; \n //newNode becomes new tail \n tail = newNode; \n //tail's next point to null \n tail.next = null; \n } \n }", "public DoubleLinkedList(){\n this.head = null;\n this.tail = null;\n this.size = 0;\n this.selec = null;\n }", "public SinglyLinkedList() {\n this.head = null; \n }", "public WebPage(){\n dom = new LinkedList<String>() /* TODO\n//Initialize this to some kind of List */;\n }", "abstract protected Object newList( int capacity );", "public SinglyLinkedList() {\n this.len = 0;\n }", "public LinkedList()\r\n {\r\n front = null;\r\n rear = null;\r\n numElements = 0;\r\n }", "public ListIterator(Node node) {\n\t\tcurrent = node;\n\t}", "public DLListIterator() {\r\n node = head;\r\n nextCalled = false;\r\n }", "SortedListNode(T object, SortedListNode<T> node) {\n data = object;\n nextNode = node;\n }", "public LinkedList() {\n head = null;\n numElement = 0;\n }", "public CustomSinglyLinkedList()\n {\n head = null;\n tail = head;\n size = 0;\n }", "public LinkedList() {\n\t\thead = new Node(null, null);\n\t\tsize = 0;\n\t\titerator = null;\n\t}", "private NodeList createListWrap(NodeList head, FixData fixedList) {\n if (head == null) {\n head = new NodeList(fixedList);\n head.connectNext(null);\n return head;\n }\n head.connectNext(createListWrap(head.returnNext(), fixedList));\n return head;\n }", "public LinkedList() {\n\t\tfirst = null;\n\t}", "public LinkedList()\n\t{\n\t\tthis.head = new Node(null);\n\t\tsize = 0;\n\t}", "public static MutableLinearList start () {\r\n\t\t\r\n\t\tMutableLinearList list = new MutableLinearList();\r\n\t\tMutableLinearList item2 = new MutableLinearList();\r\n\t\tMutableLinearList item3 = new MutableLinearList();\r\n\t\t\r\n\t\tlist.head = 42;\r\n\t\tlist.tail = item2;\r\n\t\t\r\n\t\titem2.head = 8;\r\n\t\titem2.tail = item3;\r\n\t\t\r\n\t\titem3.head = 15;\r\n\t\titem3.tail = null;\r\n\t\t\r\n\t\t\r\n/*\t\t// alternative Implementierung:\r\n\t\tMutableLinearList list = new MutableLinearList();\r\n\t\tlist.head = 15;\r\n\t\tlist.addInFront(8);\r\n\t\tlist.addInFront(42);\r\n*/\t\t\r\n\t\t\r\n\t\treturn list;\r\n\t}", "public LL() {\n head = null;\n }", "public DesignLinkedList() {\n head = null;\n tail = head;\n len = 0;\n }", "public UserList(){\n\t\tthis.head = new User();\n\t\tthis.tail = this.head;\n\n\t}", "public SinglyLinkedList()\n {\n first = null; \n last = null;\n }", "public Node (Object newItem) {\n next = null; // set intially to null\n item = newItem;\n }" ]
[ "0.74883455", "0.74865776", "0.7075867", "0.7057939", "0.70406705", "0.7038185", "0.70153344", "0.6957937", "0.6933814", "0.69039774", "0.6879183", "0.68716127", "0.6859648", "0.6832458", "0.6823302", "0.68095577", "0.67923117", "0.6789556", "0.6789313", "0.67742664", "0.67665946", "0.6765319", "0.676271", "0.6751916", "0.67471963", "0.6727034", "0.6724331", "0.66778666", "0.66540295", "0.66529834", "0.6622617", "0.6613945", "0.66098666", "0.6597273", "0.6572641", "0.6566973", "0.65665805", "0.6553513", "0.6539086", "0.65362555", "0.6530646", "0.65094006", "0.65045476", "0.6494307", "0.64917266", "0.64843947", "0.64691544", "0.64658475", "0.6464602", "0.6456921", "0.64500445", "0.6440142", "0.64341533", "0.643074", "0.64178354", "0.6412463", "0.64092505", "0.6398935", "0.63976485", "0.6393233", "0.6386427", "0.63786614", "0.6363501", "0.63620615", "0.63619536", "0.6360884", "0.63509095", "0.63462925", "0.63271993", "0.63244706", "0.63240224", "0.63200736", "0.63089514", "0.6306997", "0.62957096", "0.62942964", "0.62845695", "0.62844324", "0.62803125", "0.626539", "0.6264611", "0.62611514", "0.625548", "0.6251828", "0.62477344", "0.62464803", "0.6242794", "0.62336195", "0.62326914", "0.62282526", "0.6227849", "0.6225493", "0.62248075", "0.62217945", "0.62175024", "0.6212818", "0.6205144", "0.6204484", "0.61985415", "0.6191414" ]
0.6384205
61
method to traverse a linkedlist
public static void traverseList(Node n) { if(n == null) System.out.println("End of List"); else { System.out.print(n.val + " "); traverseList(n.next);} }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public <T> void traverse(ArrayList<T> list);", "public abstract LinkedList<Point> traverse(Grid grid);", "private static Node traverseList(Node n){\n\t if(n == null)\n\t return null;\n\t if(n.visited)\n\t return n;\n\t \n\t n.visited = true;\n\t return traverseList(n.next);\n\t }", "protected abstract void traverse();", "private void traverse(Node<T> node) {\r\n\t\tif (null == node.next) {\r\n\t\t\tSystem.out.println(String.valueOf(node.data) + \"--->END\");\r\n\t\t\treturn;\r\n\t\t} else {\r\n\t\t\tSystem.out.print(String.valueOf(node.data) + \"--->\");\r\n\t\t\ttraverse(node.next);\r\n\t\t}\r\n\t}", "public void traverseList(Node head)\r\n\t{\r\n\t\tint count =0;\r\n\t\tSystem.out.print(\"Linked List - \");\r\n\t\twhile(head!= null)\r\n\t\t{\r\n\t\t\tSystem.out.print(head.data + \" \");\r\n\t\t\thead = head.next;\r\n\t\t\tcount++;\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"\\nTotal no of nodes in Linked List - \"+ count);\r\n\t}", "public void goToNext()\n {\n if (current != null)\n {\n previous = current;\n current = current.nLink;\n } // end if\n else if (head != null)\n {\n System.out.println(\"Iteration reached end of line.\");\n System.exit(0);\n } // else if\n else\n {\n System.out.println(\"You can't iterate an empty list.\");\n System.exit(0);\n }\n }", "public TraversalResults traverse(ObjectNode traverse);", "Iterable<T> followNode(T start) throws NullPointerException;", "public void inOrderTraverseIterative();", "private static void iterateAllELementInLinkedList() {\n\t\tLinkedList<Integer> list = new LinkedList<Integer>();\n\t\tlist.add(10);\n\t\tlist.add(20);\n\t\tlist.add(30);\n\t\tlist.add(40);\n\t\tlist.add(50);\n\t\tSystem.out.println(\"LinkedList is : \" + list);\n\n\t\tfor (Integer i : list)\n\t\t\tSystem.out.println(i);\n\n\t}", "@Override \r\n\tpublic LLNode<T> next() throws NoSuchElementException{\r\n\t\tLLNode<T> node = nodeptr;\r\n\t\tif (nodeptr == null)\r\n\t\t\tthrow new NoSuchElementException();\r\n\t\tnodeptr = nodeptr.getNext();\r\n\t\treturn node;\r\n\t}", "public Iterator<Item> iterator(){\n return this.doublyLinkedList.iterator();\n }", "Iterable<T> followNodeAndSelef(T start) throws NullPointerException;", "public void inOrderTraverseRecursive();", "public void print_list() {\n \t \n \t//define current node as\n \t node<Type> current_node = new node<>();\n \t \n \t //now keep for loop and print the answer\n \t current_node = head;\n \t \n \t //print first element\n \t System.out.println(current_node.show_element());\n \t \n \t //now run for loop\n \t for (int i = 1 ; i <= len - 1 ; i ++) {\n \t\t \n \t\t //change current node\n \t\t current_node = current_node.show_next();\n \t\t \n \t\t //just print the answer\n \t\t System.out.println(current_node.show_element());\n \t }\n }", "public void printList() \r\n\t { \r\n\t Node tnode = head; \r\n\t while (tnode != null) \r\n\t { \r\n\t System.out.print(tnode.data+\" \"); \r\n\t tnode = tnode.next; \r\n\t } \r\n\t }", "public void traverseDirectChildren(INext<T> next){\n if(next==null){\n return;\n }\n for (NodeModel<T> childNode : new LinkedList<>(childNodes)) {\n next.next(childNode);\n }\n }", "public List<Object> traverse() {\n return traverse(new PreorderTraversal());\n }", "@Override\r\n\tpublic List<Node<T>> getInOrderTraversal() {\r\n\t\tList<Node<T>> lista = new LinkedList<Node<T>>();// Lista para el\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// recursivo\r\n\t\tlista = auxiliarRecorridoIn(raiz, lista, raiz);\r\n\t\treturn lista;\r\n\t}", "IList<T> getNext();", "public void printlist(Node node) {\n Node last = null;\n \n System.out.println(\"Traversal in forward Direction\");\n while (node != null) {\n System.out.print(node.data + \" ==> \");\n last = node;\n node = node.next;\n }\n System.out.println();\n System.out.println(\"Traversal in reverse direction\");\n while (last != null) {\n System.out.print(last.data + \" ==> \");\n last = last.prev;\n }\n \n }", "static\nvoid\nprintList(Node head) \n\n{ \n\nwhile\n(head != \nnull\n) \n\n{ \n\nSystem.out.print(head.data + \n\" \"\n); \n\nhead = head.next; \n\n} \n\n\n}", "public static void print_list(List li){\n Iterator<Node> it=li.iterator();\n while(it.hasNext()){Node n=it.next();System.out.print(n.freq+\" \");}System.out.println();\n }", "public ListNode<T> getNext();", "@Test\n public void testListIterator() {\n DoubleLinkedList<Integer> list = new DoubleLinkedList<Integer>();\n for (int i = 5; i > 0; i--)\n list.addToFront(i);\n \n /* checking that we get out what we put it */\n int i = 1;\n for (Integer x: list)\n assertEquals(\"Testing value returned by iterator\", new Integer(i++), x);\n \n if (i != 6)\n fail(\"The iterator did not run through all the elements of the list\");\n }", "protected void beginTraversal(SoNode node)\n\t //\n\t {\n\t traverse(node);\n\t }", "public void gotoNext(){\r\n if(curr == null){\r\n return;\r\n }\r\n prev = curr;\r\n curr = curr.link;\r\n }", "public ListIterator(Node node) {\n\t\tcurrent = node;\n\t}", "void printList(){\n Node temp=head;\n while (temp!=null){\n System.out.println(temp.data+\" \");\n temp=temp.next;\n }\n }", "@Test\n public void testListIteratorHasNext(){\n DoubleLinkedList<Integer> list1 = new DoubleLinkedList<Integer>();\n ListIterator<Integer> list1It = list1.iterator();\n assertFalse(\"testing with no next element\", list1It.hasNext());\n list1It.add(1);\n list1It.previous();\n assertTrue(\"testing with a next element\", list1It.hasNext());\n assertEquals(new Integer(1), list1It.next());\n }", "public void deepList() throws Exception;", "void printList(){\n Node iter = this.head;\n\n while(iter != null)\n {\n System.out.print(iter.data+\"->\");\n iter = iter.next;\n }\n System.out.print(\"null\\n\");\n }", "private void traverse(TNode node)\r\n\t\t{\n\t\t\tif (node != null) {\r\n\t\t\t\ttraverse(node.getLeft());\r\n\r\n\t\t\t\tSystem.out.println(node);\r\n\r\n\t\t\t\ttraverse(node.getRight());\r\n\t\t\t}\r\n\r\n\t\t}", "private void iter() {\n Node curr = new Node();\n curr = head;\n while (curr != null) {\n System.out.print(curr.card + \" \");\n curr = curr.next;\n }\n }", "public SkipListIterator(SkipListNode<K> head) {\n\ttargetHead = head;\n\tcurrent = targetHead.next(0);\n }", "private static void printlist(Node node) {\n\t\twhile (node != null) {\n\t\t\tSystem.out.print(node.data + \"->\");\n\t\t\tnode = node.next;\n\t\t}\n\t}", "public void printList(Node head) \n { \n Node n = head; \n \n while (n != null) \n { \n System.out.print(n.data+\" \"); \n n = n.next; \n } \n }", "@Override\r\n public T next() {\r\n if (hasNext()) {\r\n node = node.next();\r\n nextCalled = true;\r\n return node.getData();\r\n }\r\n else {\r\n throw new NoSuchElementException(\"Illegal call to next(); \"\r\n + \"iterator is after end of list.\");\r\n }\r\n }", "public void iterate() {\n\t\t// iterator\n\t\tQueue<NDLMapEntryNode<T>> nodes = new LinkedList<NDLMapEntryNode<T>>();\n\t\tnodes.add(rootNode);\n\t\twhile(!nodes.isEmpty()) {\n\t\t\t// iterate BFSwise\n\t\t\tNDLMapEntryNode<T> node = nodes.poll();\n\t\t\tif(node.end) {\n\t\t\t\t// end of entry, call processor\n\t\t\t\tif(keyProcessor != null) {\n\t\t\t\t\tkeyProcessor.process(node.data);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(node.keys != null) {\n\t\t\t\t// if available\n\t\t\t\tnodes.addAll(node.keys.values()); // next nodes to traverse\n\t\t\t}\n\t\t}\n\t}", "public Linkable next();", "public void printValues(){\n Node runner = head;\n while(runner != null){ //iterate through end of list\n System.out.println(runner.value);\n runner = runner.next;\n }\n }", "@Override\n\tpublic Iterator<T> iterator() {\n\t\treturn new LinkedListIterator();\n\t}", "void display(){\r\n\t\t if(start==null){\r\n\t\t\t System.out.println(\"linklist is empty\");\r\n\t\t\t }\r\n\t\telse{\r\n\t\t\tnode temp=start;\r\n\t\t\twhile(temp!=null){\r\n\t\t\t\tSystem.out.println(temp.data);\r\n\t\t\t\ttemp=temp.next;\r\n\t\t\t\t}//end of while\r\n\t\t\t}//end of else statement\r\n\r\n\t\t }", "@Override\n\t\tpublic Item next() {\n\t\t\tItem item=current.item;\n\t\t\tcurrent=current.next;\n\t\t\treturn item;\n\t\t}", "public Nodo getnext ()\n\t\t{\n\t\t\treturn next;\n\t\t\t\n\t\t}", "@Test\n public void testListIteratorNext(){\n DoubleLinkedList<Integer> list1 = new DoubleLinkedList<Integer>();\n ListIterator<Integer> list1It = list1.iterator();\n try{\n list1It.next();\n fail(\"expected a NoSuchElementException to be thrown\");\n }\n catch(NoSuchElementException error){\n assertEquals(error.getMessage(), \"There is no next element in the list\");\n }\n list1It.add(1);\n list1It.previous();\n assertEquals(\"testing with an element in the next spot\", new Integer(1), list1It.next());\n }", "void printList(Node head)\n {\n Node temp = head;\n while (temp != null)\n {\n System.out.print(temp.data+\" \");\n temp = temp.next;\n } \n System.out.println();\n }", "public void printLinkedList(){\n System.out.println(\"--------Head node: \" + this.data);\n\n if (this.next == null){\n return;\n }\n\n int count = 1;\n Node<T> currentNode = this.next;\n while (currentNode.next != null){\n System.out.println(\"Node \" + count++ + \" with value: \" + currentNode.data);\n currentNode = currentNode.next;\n }\n System.out.println(\"---------Tail node: \" + currentNode.data);\n }", "static void printList(Node head) {\n while (head != null) {\n System.out.print(head.data + \" \");\n head = head.next;\n }\n }", "public ListIterator iterator()\n {\n return new ListIterator(firstLink);\n }", "public LinkedList<Inventory> inventoryTraversal (TheGroceryStore g);", "public void printNodes() { \n //Node current will point to head \n Node current = head; \n if(head == null) { \n System.out.println(\"Doubly linked list is empty\"); \n return; \n } \n System.out.println(\"Nodes of doubly linked list: \"); \n while(current != null) { \n //Print each node and then go to next. \n System.out.print(current.item + \" \"); \n current = current.next; \n } \n }", "public E next() {\r\n\r\n\t\tE result = null;\r\n\t\tif (hasNext()) {\r\n\t\t\tresult = links.get(counter);\r\n\t\t\tcounter++;\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "public void printList(Node head)\n {\n while(head!=null){\n System.out.print(head.data+\" \");\n head = head.next;\n }\n }", "public void printList(){\n MovieNode temp = head;\t\t//Iterator\n System.out.print(\"Data: \");\n while(temp.next != null){\t\t//While theres data\n System.out.print(temp.next.data + \"->\");\t//Print the data\n temp = temp.next;\t\t\t\t\t\t\t//Point to the next MovieNode\n }\n System.out.println();\t\t\t\t\t\t//Go to the next line\n }", "void printList(Node node) {\n\t\twhile (node != null) {\n\t\t\tSystem.out.print(node.data + \" \");\n\t\t\tnode = node.next;\n\t\t}\n\t}", "Node currentNode();", "private void printList2(Node curr)\n {\n if(curr.next == null)\n {\n System.out.println(curr.item);\n }\n else\n {\n System.out.print(curr.item + \" \");\n printList2(curr.next);\n }\n }", "protected boolean traverseThisNode(iNamedObject node)\n\t{\n\t\treturn true;\n\t}", "@Override\n public void visit(P_Link pathNode) {\n Iterator<Node> nodes = engine.doOne(node, pathNode.getNode()) ;\n fill(nodes) ;\n }", "@Test\n public void testListIteratorAdd() {\n DoubleLinkedList<Integer> list1 = new DoubleLinkedList<Integer>();\n ListIterator<Integer> list1It = list1.iterator();\n list1It.add(1);\n assertEquals(\"Testing add to an empty list\", new Integer(1), list1.getBack().getElement());\n list1It.add(2);\n assertEquals(\"Testing add to list with one element\", new Integer(2), list1.getBack().getElement());\n //move cursor back two spaces\n list1It.previous();\n list1It.previous();\n list1It.next();\n list1It.add(3);\n assertEquals(\"Testing add to list with two elements\", new Integer(3), list1.getFront().getNext().getElement());\n }", "private void traverseInOrder(BinaryNode<AnyType> curr) {\n\t\tif (curr.left != null) {\n\t\t\ttraverseInOrder(curr.left);\n\t\t}\n\t\tSystem.out.println(curr.element);\n\n\t\t// checking for duplicates\n\n\t\tfor (int i = 0; i < curr.duplicate.size(); i++) {\n\t\t\tSystem.out.println(curr.duplicate.get(i).element);\n\t\t}\n\n\t\tif (curr.right != null) {\n\t\t\ttraverseInOrder(curr.right);\n\t\t}\n\t}", "public Item next() throws XPathException {\n while (true) {\n NodeInfo next = (NodeInfo)iterator.next();\n if (next == null) {\n current = null;\n position = -1;\n return null;\n }\n if (current != null && next.isSameNodeInfo(current)) {\n continue;\n } else {\n position++;\n current = next;\n return current;\n }\n }\n }", "public void goToNext() {\r\n\t\tif (curr == null)\r\n\t\t\treturn;\r\n\t\tprev = curr;\r\n\t\tcurr = curr.link;\r\n\t}", "public abstract void nextElement();", "public T next(){\r\n\t\t\tif (expectedModCount != modCount){\r\n\t\t\t\tthrow new ConcurrentModificationException();\r\n\t\t\t}\r\n\t\t\tT passed = current;\r\n\t\t\tif ((currentNode.next==endMarker)&&(currentNode.getLast()==current)){\r\n\t\t\t\tcurrentNode = endMarker;\r\n\t\t\t\tcurrent = null;\r\n\t\t\t\treturn passed;\r\n\t\t\t}\r\n\t\t\tif (currentNode.indexOf(current)==currentNode.getArraySize()-1){\r\n\t\t\t\tcurrentNode = currentNode.next;\r\n\t\t\t\tcurrent = currentNode.getFirst();\r\n\t\t\t\tidx = 0;\r\n\t\t\t\treturn passed;\r\n\t\t\t}\t\r\n\t\t\tidx++;\r\n\t\t\tcurrent = currentNode.get(idx);\r\n\t\t\treturn passed;\r\n\t\t}", "void inOrderTraversal(Node node){\r\n\t\tif( node == null ) {\r\n\t\t\treturn ;\r\n\t\t}\r\n\t\tinOrderTraversal( node.left );\r\n\t\tSystem.out.print( node.value + \" \");\r\n\t\tinOrderTraversal( node.right );\r\n\t}", "public void print(){\r\n ListNode temp = head;\r\n while(temp != null){\r\n System.out.println(temp.data.toString());//TODO check this\r\n temp = temp.link;\r\n }\r\n }", "public void traverseIncludeSelf(INext<T> next){\n if(next==null){\n return;\n }\n traverse(this,next,true);\n }", "public LinkedListIterator(){\n position = null;\n previous = null; \n isAfterNext = false;\n }", "public void printList(){\n \t\t\tListNode temp = this;\n\t \t\tdo{\n\t \t\t\tSystem.out.print(temp.val + \"->\");\n\t \t\t\ttemp = temp.next;\n\t \t\t}while(temp != null);\n\t \t\tSystem.out.print(\"null\");\n\t \t\tSystem.out.println();\n\t \t}", "public abstract TreeIter<T> iterator();", "public void next()\n\t{\n\t\tif(this.curseur < this.listeTapis.size() - 1)\n\t\t{\n\t\t\tthis.curseur++;\n\t\t}\n\t}", "void traverse(BTNode node) {\n if (node == null){\n return;\n }\n traverse(node.left);\n traverse(node.right);\n }", "@Test\n void givenElementWhenSearchingShouldPassLinkedListResult() {\n MyNode<Integer> myFirstNode = new MyNode<>(56);\n MyNode<Integer> mySecondNode = new MyNode<>(30);\n MyNode<Integer> myThirdNode = new MyNode<>(70);\n MyLinkedList myLinkedList = new MyLinkedList();\n myLinkedList.append(myFirstNode);\n myLinkedList.append(mySecondNode);\n myLinkedList.append(myThirdNode);\n myLinkedList.printMyNodes();\n myLinkedList.searchMyNode();\n boolean result = myLinkedList.head.equals(myFirstNode) &&\n myLinkedList.head.getNext().equals(mySecondNode) &&\n myLinkedList.tail.equals(myThirdNode);\n System.out.println(result);\n Assertions.assertTrue(result);\n }", "public void print(){\n NodeD tmp = this.head;\n\n while(tmp!=null){\n System.out.println(tmp.getObject().asString());\n tmp = tmp.getNext();\n }\n }", "@Override\n public T get(T target) {\n if (isEmpty()){// if list is empty, there's nothing to return \n return null;\n }\n else{\n DLNode<T> current = first;\n int index = 0;\n while (current != null && !current.elem.equals(target)) {\n current = current.next;\n index++;\n }\n if (current != null && current.elem.equals(target)) {\n return get(index); //call get(index) method again\n }\n return current.elem;\n //throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n }", "public void iterateEventList();", "public ListIterator iterator(){\n\t\treturn new ListIterator(tail.next);\n\t}", "public static void printlist( LinkedList list)\r\n\t\t{\r\n\t\t Node current = list.head;\t\r\n\t\t System.out.println(\"LinkedList: \"); \r\n\t\t \r\n\t\t while (current != null)\r\n\t\t {\r\n\t\t\t \r\n\t\t\t \r\n\t\t\t //even check\r\n\t\t\t if (current.data %2 ==0)\r\n\t\t\t {\r\n\t\t\t\t System.out.println(\"Even\" + current.data + \" \"); \r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t System.out.println(\"all\" + current.data + \" \");\r\n\t\t\t current = current.next;\r\n\t\t\t \r\n\t\t\t //\r\n\t\t }\r\n\t\t System.out.println(\"\"); \r\n\t\t}", "public LinkedList<Cycle> getList(LinkedList<Cycle> list){\n\t\txml=new ProcessXML();\n\t\tlist=(LinkedList<Cycle>) xml.ReadXML().clone();\n\t\tgetName(list);\n\t\treturn list;\n\t}", "public Iterator<LayoutNode> nodeIterator() {\n\treturn nodeList.iterator();\n }", "public interface ListIterator extends Iterator<Object> {\n /**\n * Checks if the previous element exists.\n *\n * @return true if this list iterator has more elements when traversing\n * the list in the reverse direction.\n */\n boolean hasPrevious();\n\n /**\n * Returns the previous element in the list and\n * moves the cursor position backwards.\n *\n * @return the previous element in the list\n */\n Object previous();\n\n /**\n *\n * @param e replaces the last element returned by next or\n * previous with the specified element.\n */\n void set(Object e);\n\n /**\n * Removes the last element returned by next or\n * previous with the specified element.\n */\n void remove();\n\n\n}", "@Override\n public Iterator<Item> iterator(){return new ListIterator();}", "@Override\n public Iterator<Node> iterator() {\n return this;\n }", "public void next() {\r\n\t\tif (curr != tail)\r\n\t\t\tcurr = curr.next();\r\n\t}", "public ListNode reverseIter(ListNode head) {\n if (head == null || head.next == null) return head;\n // a -> b -> c -> d\n // pre<-cur next\n //\n ListNode pre = null;\n while (head != null) {\n ListNode next = head.next;\n head.next = pre;\n pre = head;\n head = next;\n }\n return pre;\n }", "public void printList()\n {\n Node temp;\n temp = head;\n while (temp != null)\n {\n System.out.print(temp.data + \" \");\n temp = temp.next;\n }\n }", "static void visit (Node node, int[] lev, Node[] list) {\n\t\t\n\t}", "public List<Long> depthTraverse(Long start){\n return depthTraverseGen(start);\n }", "public Node setNextNode(Node node);", "@Override\n\t\t\tpublic FplValue next() {\n\t\t\t\treturn subListIter.next();\n\t\t\t}", "private void goThroughLinks() throws IOException {\n for (URL link :links) {\n pagesVisited++;\n Node node;\n if (link.toString().contains(\"?id=1\") && !books.contains(link)) {\n node = populateNode(link);\n depth = 2;\n books.add(node);\n } else if (link.toString().contains(\"?id=2\") && !movies.contains(link)) {\n node = populateNode(link);\n depth = 2;\n movies.add(node);\n } else if (link.toString().contains(\"?id=3\") && !music.contains(link)) {\n node = populateNode(link);\n depth = 2;\n music.add(node);\n }\n }\n }", "public void printList()\n {\n ListNode currNode = this.head;\n while(true)\n {\n System.out.println(currNode.getValue());\n currNode = currNode.getNextNode();\n if(currNode == null)\n {\n break;\n }\n }\n }", "public T next()\n\t\t{\n\t\t\tif(hasNext())\n\t\t\t{\n\t\t\t\tT currentData = current.getData(); //the data that will be returned\n\t\t\t\t\n\t\t\t\t// must continue to keep track of the Node that is in front of\n\t\t\t\t// the current Node whose data is must being returned , in case\n\t\t\t\t// its nextNode must be reset to skip the Node whose data is\n\t\t\t\t// just being returned\n\t\t\t\tbeforePrevious = previous;\n\t\t\t\t\n\t\t\t\t// must continue keep track of the Node that is referencing the\n\t\t\t\t// data that was just returned in case the user wishes to remove()\n\t\t\t\t// the data that was just returned\n\t\t\t\t\n\t\t\t\tprevious = current; // get ready to point to the Node with the next data value\n\t\t\t\t\n\t\t\t\tcurrent = current.getNext(); // move to next Node in the chain, get ready to point to the next data item in the list\n\t\t\t\t\n\t\t\t\tthis.removeCalled = false;\n\t\t\t\t// it's now pointing to next value in the list which is not the one that may have been removed\n\t\t\t\t\n\t\t\t\treturn currentData;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tthrow new NoSuchElementException();\n\t\t\t}\n\t\t}", "void inorderTraversal(Node node) {\n\t\tif (node != null) {\n\t\t\tinorderTraversal(node.left);\n\t\t\tSystem.out.print(node.data + \" \");\n\t\t\tinorderTraversal(node.right);\n\t\t}\n\t}", "void display(Nodetype list)\n{\n\tNodetype temp;\n\tif(list==null)\n\t\tSystem.out.println(\"\\nEmpty linked list\");\n\telse\n\t{\n\t\ttemp=list;\n\t\twhile(temp!=null)\n\t\t{\n\t\t\tSystem.out.print(\"->\"+temp.info);\n\t\t\ttemp=temp.next;\n\t\t}\n\t}\n\tSystem.out.println();\n}", "public void printList(Node node) {\n\t\tif (node == null) {\n\t\t\treturn;\n\t\t}\n\n\t\tSystem.out.print(node.data + \" \");\n\t\tprintList(node.next);\n\t}", "public void printList() {\n\t\tNode tnode = head;\n\t\twhile (tnode != null) {\n\t\t\tSystem.out.print(tnode.data + \"->\");\n\t\t\ttnode = tnode.next;\n\t\t}\n\t}" ]
[ "0.7452012", "0.6958313", "0.6946197", "0.6826587", "0.6618442", "0.659221", "0.652824", "0.64243937", "0.63828427", "0.6340761", "0.6280012", "0.62084556", "0.6196818", "0.61616045", "0.6127007", "0.6105538", "0.6039082", "0.60389584", "0.6031592", "0.5997055", "0.599687", "0.5987374", "0.59858006", "0.59851956", "0.5967154", "0.5901153", "0.58732414", "0.58693427", "0.5853119", "0.5827047", "0.58034885", "0.58013093", "0.58011866", "0.5800879", "0.57973415", "0.57938755", "0.5785213", "0.574449", "0.574204", "0.5735811", "0.5728128", "0.5711492", "0.5709645", "0.57045", "0.5704272", "0.57013804", "0.5697839", "0.5687228", "0.5684283", "0.56823903", "0.5669768", "0.5668511", "0.5655767", "0.5655654", "0.5652374", "0.5639789", "0.5638985", "0.5638828", "0.56387097", "0.5630335", "0.562748", "0.56134623", "0.56089807", "0.5608798", "0.56080025", "0.56040394", "0.55994374", "0.55983496", "0.559641", "0.5590295", "0.5583488", "0.5572935", "0.5572008", "0.55698234", "0.5565864", "0.5561402", "0.5560849", "0.5558826", "0.5554518", "0.5554022", "0.5549047", "0.5543082", "0.55384016", "0.55356973", "0.5535001", "0.5526322", "0.55248886", "0.551805", "0.55162406", "0.55124295", "0.550898", "0.55019146", "0.5494971", "0.5478867", "0.54736966", "0.5472181", "0.5468074", "0.54645884", "0.5457163", "0.54554737" ]
0.69494027
2
Creates new form WfsPanel
public WFSLayerPanel() { initComponents(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void createGebruikersBeheerPanel() {\n frame.add(gebruikersBeheerView.createGebruikersBeheerPanel());\n frame.setTitle(gebruikersBeheerModel.getTitle());\n }", "private void addToPanel(){\n getContentPane().add(jdpFondo);\n jtpcContenedor.add(jtpPanel);\n\tjtpcContenedor.add(jtpPanel2);\n jdpFondo.add(jtpcContenedor, BorderLayout.CENTER);\n jdpFondo.add(jpnlPanelPrincilal);\n }", "FORM createFORM();", "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}", "private void crearPanel() {\r\n\t\tJLabel lbl_Empresa = new JLabel(\"Empresa:\");\r\n\t\tlbl_Empresa.setBounds(10, 52, 72, 14);\r\n\t\tadd(lbl_Empresa);\r\n\r\n\t\ttxField_Empresa = new JTextField();\r\n\t\ttxField_Empresa.setBounds(116, 49, 204, 20);\r\n\t\tadd(txField_Empresa);\r\n\t\ttxField_Empresa.setColumns(10);\r\n\r\n\t\tlbl_Oferta = new JLabel(\" \");\r\n\t\tlbl_Oferta.setFont(new Font(\"Tahoma\", Font.PLAIN, 20));\r\n\t\tlbl_Oferta.setBounds(10, 11, 742, 20);\r\n\t\tadd(lbl_Oferta);\r\n\r\n\t\tJLabel lbl_sueldoMin = new JLabel(\"Sueldo Minimo:\");\r\n\t\tlbl_sueldoMin.setBounds(10, 83, 96, 14);\r\n\t\tadd(lbl_sueldoMin);\r\n\r\n\t\ttxField_sueldoMin = new JTextField();\r\n\t\ttxField_sueldoMin.setColumns(10);\r\n\t\ttxField_sueldoMin.setBounds(116, 80, 93, 20);\r\n\t\tadd(txField_sueldoMin);\r\n\r\n\t\tJLabel lbl_sueldoMax = new JLabel(\"Sueldo Maximo:\");\r\n\t\tlbl_sueldoMax.setBounds(10, 115, 96, 14);\r\n\t\tadd(lbl_sueldoMax);\r\n\r\n\t\ttxField_sueldoMax = new JTextField();\r\n\t\ttxField_sueldoMax.setColumns(10);\r\n\t\ttxField_sueldoMax.setBounds(116, 112, 93, 20);\r\n\t\tadd(txField_sueldoMax);\r\n\r\n\t\tJLabel lbl_experiencia = new JLabel(\"A\\u00F1os de experiencia minimos:\");\r\n\t\tlbl_experiencia.setBounds(10, 143, 185, 14);\r\n\t\tadd(lbl_experiencia);\r\n\r\n\t\ttxField_experiencia = new JTextField();\r\n\t\ttxField_experiencia.setColumns(10);\r\n\t\ttxField_experiencia.setBounds(205, 140, 93, 20);\r\n\t\tadd(txField_experiencia);\r\n\r\n\t\tJLabel lbl_aspectosValorar = new JLabel(\"Aspectos a valorar:\");\r\n\t\tlbl_aspectosValorar.setBounds(10, 178, 137, 14);\r\n\t\tadd(lbl_aspectosValorar);\r\n\r\n\t\ttxArea_aspectosValorar = new JTextArea();\r\n\t\ttxArea_aspectosValorar.setBorder(UIManager.getBorder(\"TextField.border\"));\r\n\t\ttxArea_aspectosValorar.setBounds(157, 172, 253, 41);\r\n\t\tadd(txArea_aspectosValorar);\r\n\r\n\t\tJLabel lbl_aspectosImpres = new JLabel(\"Aspectos imprescindibles:\");\r\n\t\tlbl_aspectosImpres.setBounds(10, 238, 133, 14);\r\n\t\tadd(lbl_aspectosImpres);\r\n\r\n\t\ttxArea_aspectosImpres = new JTextArea();\r\n\t\ttxArea_aspectosImpres.setBorder(UIManager.getBorder(\"TextField.border\"));\r\n\t\ttxArea_aspectosImpres.setBounds(157, 232, 253, 41);\r\n\t\tadd(txArea_aspectosImpres);\r\n\r\n\t\tJLabel lbl_descripcion = new JLabel(\"Descripcion:\");\r\n\t\tlbl_descripcion.setBounds(10, 302, 107, 14);\r\n\t\tadd(lbl_descripcion);\r\n\r\n\t\ttxArea_descripcion = new JTextArea();\r\n\t\ttxArea_descripcion.setBorder(UIManager.getBorder(\"TextField.border\"));\r\n\t\ttxArea_descripcion.setBounds(10, 328, 465, 149);\r\n\t\tadd(txArea_descripcion);\r\n\r\n\t\tJLabel lbl_conocimientos = new JLabel(\"Conocimientos requeridos:\");\r\n\t\tlbl_conocimientos.setBounds(537, 125, 169, 14);\r\n\t\tadd(lbl_conocimientos);\r\n\r\n\t\tpa_conocimientos = new PanelListaDoble(Usuario.getConocimientosTotales(), miOferta.getConocimientos());\r\n\t\tpa_conocimientos.setBounds(537, 174, 215, 180);\r\n\t\tadd(pa_conocimientos);\r\n\r\n\t\ttxField_buscarCono = new JTextField();\r\n\t\ttxField_buscarCono.setBounds(537, 140, 135, 20);\r\n\t\tadd(txField_buscarCono);\r\n\t\ttxField_buscarCono.setColumns(10);\r\n\r\n\t\tJButton btn_buscar = new JButton(\"\");\r\n\t\tbtn_buscar.setBounds(682, 138, 24, 23);\r\n\t\tadd(btn_buscar);\r\n\r\n\t\tbtn_crear = new JButton(\"\");\r\n\t\tbtn_crear.setBounds(716, 138, 24, 23);\r\n\t\tadd(btn_crear);\r\n\r\n\t\ttxField_lugar = new JTextField();\r\n\t\ttxField_lugar.setEditable(false);\r\n\t\ttxField_lugar.setColumns(10);\r\n\t\ttxField_lugar.setBounds(506, 49, 234, 20);\r\n\t\tadd(txField_lugar);\r\n\r\n\t\tJLabel lbl_lugar = new JLabel(\"Lugar de trabajo:\");\r\n\t\tlbl_lugar.setBounds(392, 52, 104, 14);\r\n\t\tadd(lbl_lugar);\r\n\r\n\t\tJLabel lbl_contrato = new JLabel(\"Tipo de contrato:\");\r\n\t\tlbl_contrato.setBounds(392, 83, 104, 14);\r\n\t\tadd(lbl_contrato);\r\n\r\n\t\tcombo_contrato = new JComboBox<Contrato>();\r\n\t\tcombo_contrato.addItem(Contrato.INDEFINIDO_TIEMPO_COMPLETO);\r\n\t\tcombo_contrato.addItem(Contrato.INDEFINIDO_TIEMPO_PARCIAL);\r\n\t\tcombo_contrato.addItem(Contrato.TEMPORAL_TIEMPO_COMPLETO);\r\n\t\tcombo_contrato.addItem(Contrato.TEMPORTAL_TIEMPO_PARCIAL);\r\n\t\tcombo_contrato.setBounds(506, 83, 159, 20);\r\n\t\tadd(combo_contrato);\r\n\t\t// d\r\n\t\tinicializar(miOferta);\r\n\t\tdesHabCampos(false);\r\n\t\tif (miOferta.getEmpresa().getNumID().compareToIgnoreCase(Aplicacion.getUsuario().getNumID()) == 0) {\r\n\t\t\tbtnEliminar = new JButton(\"Eliminar\");\r\n\t\t\tbtnEliminar.setToolTipText(\"Eliminar\");\r\n\t\t\tbtnEliminar.setBounds(492, 384, 125, 41);\r\n\t\t\tadd(btnEliminar);\r\n\r\n\t\t\tbtnRetirar = new JButton(\"\\uD83D\\uDC40\");\r\n\t\t\tbtnRetirar.setToolTipText(\"Retirar Oferta\");\r\n\t\t\tbtnRetirar.setBounds(627, 384, 125, 41);\r\n\t\t\tadd(btnRetirar);\r\n\r\n\t\t\tbutton_Editar = new JButton(\"Editar\");\r\n\t\t\tbutton_Editar.setToolTipText(\"Editar\");\r\n\t\t\tbutton_Editar.setBounds(627, 436, 125, 41);\r\n\t\t\tadd(button_Editar);\r\n\r\n\t\t\tbutton_Editar.addMouseListener(new MouseAdapter() {\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void mouseClicked(MouseEvent e) {\r\n\t\t\t\t\tdesHabCampos(true);\r\n\t\t\t\t\tbutton_Editar.setVisible(false);\r\n\t\t\t\t\tbtnEliminar.setVisible(false);\r\n\t\t\t\t\tbtnRetirar.setVisible(false);\r\n\t\t\t\t\tbtn_crear.setVisible(false);\r\n\r\n\t\t\t\t\tbtn_guardar = new JButton(\"Guardar\");\r\n\t\t\t\t\tbtn_guardar.setToolTipText(\"Guardar\");\r\n\t\t\t\t\tbtn_guardar.setBounds(627, 436, 125, 41);\r\n\t\t\t\t\tadd(btn_guardar);\r\n\r\n\t\t\t\t\tbtn_cancelar = new JButton(\"Cancelar\");\r\n\t\t\t\t\tbtn_cancelar.setToolTipText(\"Cancelar\");\r\n\t\t\t\t\tbtn_cancelar.setBounds(492, 436, 125, 41);\r\n\t\t\t\t\tadd(btn_cancelar);\r\n\r\n\t\t\t\t\tbtn_cancelar.addMouseListener(new MouseAdapter() {\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void mouseClicked(MouseEvent e) {\r\n\t\t\t\t\t\t\tbtn_guardar.removeAll();\r\n\t\t\t\t\t\t\tbtn_cancelar.removeAll();\r\n\t\t\t\t\t\t\tbtn_cancelar.setVisible(false);\r\n\t\t\t\t\t\t\tbtn_guardar.setVisible(false);\r\n\t\t\t\t\t\t\tbtnEliminar.setVisible(true);\r\n\t\t\t\t\t\t\tbutton_Editar.setVisible(true);\r\n\t\t\t\t\t\t\tbtnRetirar.setVisible(true);\r\n\t\t\t\t\t\t\tbtn_crear.setVisible(true);\r\n\t\t\t\t\t\t\tinicializar(miOferta);\r\n\t\t\t\t\t\t\tdesHabCampos(false);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t\tbtn_guardar.addMouseListener(new MouseAdapter() {\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void mouseClicked(MouseEvent e) {\r\n\t\t\t\t\t\t\tEmergenteCambios.createWindow(\"┐Desea guardar los cambios?\", (TieneEmergente) padre);\r\n\t\t\t\t\t\t}\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}", "private FactoryViewPanel buildBasicPanel()\r\n {\r\n FactoryViewPanel panel = new FactoryViewPanel();\r\n JComponent pathComponent = addField(panel, myDataSourceModel.getPath());\r\n if (pathComponent instanceof JTextComponent)\r\n {\r\n ((JTextComponent)pathComponent).setEditable(false);\r\n }\r\n addField(panel, myDataSourceModel.getSourceName());\r\n return panel;\r\n }", "void addPanel() {\n \tPanel panel = new Panel();\r\n\r\n panel.setLayout(new GridLayout(4, 1));\r\n jSliderBrightness = makeTitledSilder(\"Helligkeit\", 0, 256, 128); // werte veraendert\r\n jSliderContrast = makeTitledSilder(\"Kontrast\", 0, 10, 5);\r\n jSliderSaturation = makeTitledSilder(\"Sättigung\", 0, 9, 4);\r\n jSliderHue = makeTitledSilder(\"Hue\", 0, 360, 0);\r\n //jSliderContrast = makeTitledSilder(\"Slider2-Wert\", 0, 100, 50);\r\n panel.add(jSliderBrightness);\r\n panel.add(jSliderContrast);\r\n panel.add(jSliderSaturation);\r\n panel.add(jSliderHue);\r\n \r\n add(panel);\r\n \r\n pack();\r\n }", "private void btnNewActionPerformed(java.awt.event.ActionEvent evt) {\n\n initPanel();\n }", "public void crearPanel(){\n\n panel = new JPanel();\n this.getContentPane().add(panel);\n panel.setBackground(Color.CYAN);\n panel.setLayout(null);\n }", "@AutoGenerated\r\n\tprivate Panel buildPnlFondos() {\n\t\tpnlFondos = new Panel();\r\n\t\tpnlFondos.setImmediate(false);\r\n\t\tpnlFondos.setWidth(\"-1px\");\r\n\t\tpnlFondos.setHeight(\"-1px\");\r\n\t\t\r\n\t\t// layoutFondo\r\n\t\tlayoutFondo = buildLayoutFondo();\r\n\t\tpnlFondos.setContent(layoutFondo);\r\n\t\t\r\n\t\treturn pnlFondos;\r\n\t}", "private FactoryViewPanel buildAdvancedPanel()\r\n {\r\n FactoryViewPanel panel = new FactoryViewPanel();\r\n if (myIsImport)\r\n {\r\n addField(panel, myDataSourceModel.getIncludeInTimeline());\r\n }\r\n JPanel refreshPanel = buildRefreshPanel();\r\n panel.addLabelComponent(ControllerFactory.createLabel(myDataSourceModel.getAutoRefresh(), refreshPanel.getComponent(0)),\r\n refreshPanel);\r\n addField(panel, myDataSourceModel.getPointType());\r\n addField(panel, myDataSourceModel.getFeatureAltitude());\r\n addField(panel, myDataSourceModel.getPolygonFill());\r\n addField(panel, myDataSourceModel.getScalingMethod());\r\n addField(panel, myDataSourceModel.getShowLabels());\r\n return panel;\r\n }", "private JPanel makePanel()\n {\n JPanel mainPanel = new JPanel();\n mainPanel.add(myLoginPanel);\n\n return mainPanel;\n }", "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, 120dlu:grow\", // cols //$NON-NLS-1$\n\t\t\t\t\"p, 3dlu,p,3dlu,p\"); // 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\t\tbuilder.append(Messages.getString(\"RenameDialog.CurrentName\"), oldName); //$NON-NLS-1$\n\t\tbuilder.nextLine(2);\n\t\tbuilder.append(Messages.getString(\"RenameDialog.NewName\"), newName); //$NON-NLS-1$\n\t\treturn builder.getPanel();\n\t}", "private JPanel getJPanel() {\r\n\t\tif (jPanel == null) {\r\n\t\t\ttitleFieldImage = new JLabel();\r\n\t\t\ttitleFieldImage.setBounds(new Rectangle(480, 75, 280, 60));\r\n\t\t\ttitleFieldImage.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\t\ttitleFieldImage.setText(\"Image\");\r\n\t\t\ttitleFieldImage.setBackground(new Color(255, 204, 204));\r\n\t\t\tpageInfoLbl = new JLabel();\r\n\t\t\tpageInfoLbl.setBounds(new java.awt.Rectangle(224,480,315,30));\r\n\t\t\tpageInfoLbl.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\t\tpageInfoLbl.setText(\"\");\r\n\t\t\ttitleFieldName = new JLabel();\r\n\t\t\ttitleFieldName.setBounds(new Rectangle(190, 75, 170, 60));\r\n\t\t\ttitleFieldName.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\t\ttitleFieldName.setBackground(new Color(255,204,204));\r\n\t\t\ttitleFieldName.setText(\"Field name\");\r\n\t\t\ttitleFieldId = new JLabel();\r\n\t\t\ttitleFieldId.setBounds(new Rectangle(90, 75, 70, 60));\r\n\t\t\ttitleFieldId.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\t\ttitleFieldId.setBackground(new Color(255,160,204));\r\n\t\t\ttitleFieldId.setText(\"Field ID\");\r\n\t\t\tlblPageName = new JLabel();\r\n\t\t\tlblPageName.setBounds(new Rectangle(10, 40, 120, 20));\r\n\t\t\tlblPageName.setText(\"Page Name\");\r\n\t\t\tjLabel = new JLabel();\r\n\t\t\tjLabel.setBounds(new java.awt.Rectangle(10,10,500,24));\r\n\t\t\tjLabel.setText(\"Select the field you want to add\");\r\n\t\t\tjPanel = new JPanel();\r\n\t\t\tjPanel.setLayout(null);\r\n\t\t\tjPanel.add(jLabel, null);\r\n\t\t\tjPanel.add(getJButton(), null);\r\n\t\t\tjPanel.add(getPageSheet(), null);\r\n\t\t\tjPanel.add(getPreButton(), null);\r\n\t\t\tjPanel.add(getAfterButton(), null);\r\n\t\t\tjPanel.add(lblPageName, null);\r\n\t\t\tjPanel.add(titleFieldId, null);\r\n\t\t\tjPanel.add(titleFieldName, null);\r\n\t\t\tjPanel.add(pageInfoLbl, null);\r\n\t\t\tjPanel.add(titleFieldImage, null);\r\n\t\t\t\r\n\t\t\tJLabel titleFiledType = new JLabel();\r\n\t\t\ttitleFiledType.setText(\"Field Type\");\r\n\t\t\ttitleFiledType.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\t\ttitleFiledType.setBounds(new Rectangle(10, 75, 90, 60));\r\n\t\t\ttitleFiledType.setBackground(new Color(255, 160, 204));\r\n\t\t\ttitleFiledType.setBounds(360, 75, 120, 60);\r\n\t\t\tjPanel.add(titleFiledType);\r\n\t\t\t\r\n\t\t\tJButton btnSelect = new JButton();\r\n\t\t\tbtnSelect.addActionListener(new ActionListener() {\r\n\t\t\t\t@SuppressWarnings(\"unchecked\")\r\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\treturnValue.clear();\r\n\t\t\t\t\tgrid.freshData();\r\n\t\t\t\t\tList<Map<String, String>> valueList = grid.getValueList();\r\n\t\t\t\t\t\r\n\t\t\t\t\tSelectBean bean = (SelectBean)pageIdSelect.getSelectedItem();\r\n\t\t\t\t\t\r\n\t\t\t\t\tfor (Map<String, String> map : valueList) {\r\n\t\t\t\t\t\tString strSelect = map.get(\"SELECT\");\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif (Boolean.valueOf(strSelect)) {\r\n\t\t\t\t\t\t\tMap<String, String> temp = new HashMap<String, String>(map);\r\n\t\t\t\t\t\t\ttemp.put(\"PAGE_ID\", bean.getCode());\r\n\t\t\t\t\t\t\tString strName = bean.getName();\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tif (strName.indexOf(\":\") > 0 && strName.length() > strName.indexOf(\":\") + 2) {\r\n\t\t\t\t\t\t\t\tstrName = strName.substring(strName.indexOf(\":\") + 2);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\ttemp.put(\"PAGE_NAME\", strName);\r\n\t\t\t\t\t\t\treturnValue.add(temp);\r\n\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\tif (returnValue.size() > 0) {\r\n\t\t\t\t\t\tsetVisible(false);\r\n\t\t\t\t\t\t_parent.addSelectFields(PageSelectDialog.this);\r\n\t\t\t\t\t\tUtils.removeWindow(PageSelectDialog.this);\r\n\t\t\t\t\t\t_parent.setVisible(true);\r\n\t\t\t\t\t\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(PageSelectDialog.this, \"Plese select field!\");\r\n\t\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\tbtnSelect.setText(\"Select\");\r\n\t\t\tbtnSelect.setSize(new Dimension(90, 30));\r\n\t\t\tbtnSelect.setLocation(new Point(10, 480));\r\n\t\t\tbtnSelect.setBounds(10, 520, 120, 30);\r\n\t\t\tjPanel.add(btnSelect);\r\n\t\t\t\r\n\t\t\ttitleSelect = new JLabel();\r\n\t\t\ttitleSelect.setText(\"Select\");\r\n\t\t\ttitleSelect.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\t\ttitleSelect.setBounds(new Rectangle(90, 75, 70, 60));\r\n\t\t\ttitleSelect.setBackground(new Color(255, 160, 204));\r\n\t\t\ttitleSelect.setBounds(10, 75, 80, 60);\r\n\t\t\tjPanel.add(titleSelect);\r\n\t\t\t\r\n\t\t\tpageIdSelect = new JComboBox<DefaultComboBoxModel>();\r\n\t\t\tpageIdSelect.addItemListener(new ItemListener() {\r\n\t\t\t\tpublic void itemStateChanged(ItemEvent e) {\r\n\t\t\t\t\tsearchDetailList();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tpageIdSelect.setBounds(140, 40, 300, 20);\r\n\t\t\tjPanel.add(pageIdSelect);\r\n\t\t}\r\n\t\treturn jPanel;\r\n\t}", "public void buildPanel(FormBuilder f) {\n\t\tcommand.buildPanel(f, this);\n\t}", "public JPanel createPanel() {\n\t\t\r\n\t\tJPanel mainPanel = new JPanel();\r\n\t\tmainPanel.setLayout(new BoxLayout(mainPanel, BoxLayout.Y_AXIS));\r\n\t\tmainPanel.setBackground(Color.WHITE);\r\n\t\tmainPanel.setBorder(new CompoundBorder(\r\n\t\t\t\tBorderFactory.createLineBorder(new Color(0x3B70A3), 4),\r\n\t\t\t\tnew EmptyBorder(10, 20, 10, 20)));\r\n\r\n\t\t/*\r\n\t\t * Instruction\r\n\t\t */\t\r\n\t\tmainPanel.add(instructionPanel());\r\n\t\t\r\n\t\t\r\n\t\t// TODO: set task order for each group - make first 3 tasks = groups tasks\r\n\t\tmainPanel.add(messagesPanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\r\n\r\n\t\tmainPanel.add(phonePanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\r\n\r\n\t\tmainPanel.add(clockPanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\r\n\r\n\t\tmainPanel.add(cameraPanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\t\r\n\r\n\t\tmainPanel.add(contactPanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\r\n\r\n\t\tmainPanel.add(galleryPanel());\r\n\t\t\r\n\t\treturn mainPanel;\r\n\t}", "private void createSchedulePanel()\n\t{\n\t\t//newWeek=new Week(selectedId);\n\t\t//contentPane.add(newWeek,BorderLayout.SOUTH);\n\t\t//System.out.println(\"first time load:\"+selectedId);\n\t\tschedule=new Schedule(selectedId, isSprinklerSelected);\n\t\tschedulePane=new JPanel();\n\t\tschedulePane.setLayout(new FlowLayout(FlowLayout.CENTER));\n\t\tschedulePane.add(schedule);\n\t\tcontentPane.add(schedulePane,BorderLayout.CENTER);//add to content pane\n\t}", "public static JPanel newPanel() {\n\t\treturn null;\n\t}", "private void createpanel2() {\r\n\t\tpanels[1].setLayout(new GridLayout(1, 2));\r\n\r\n\t\tdescription[0] = new JLabel(\"Accountname: \");\r\n\t\tdescription[0].setFont(smallfont);\r\n\t\tdescription[0].setHorizontalAlignment(JLabel.CENTER);\r\n\t\tuserinfo = new JTextField() {\r\n\t\t\tprivate static final long serialVersionUID = 1L;\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void paint(Graphics g) {\r\n\t\t\t\tg.drawImage(ImageLoader.getImage(\"black_0.4\"), 0, 0, null);\r\n\t\t\t\tsuper.paint(g);\r\n\t\t\t}\r\n\t\t};\r\n\t\tif (System.getProperty(\"os.name\").startsWith(\"Windows\")) {\r\n\t\t\tuserinfo.setForeground(Color.WHITE);\r\n\t\t} else {\r\n\t\t\tuserinfo.setForeground(Color.BLACK);\r\n\t\t}\r\n\t\tuserinfo.setOpaque(false);\r\n\t\tuserinfo.setFont(smallfont);\r\n\t\tpanels[1].add(description[0]);\r\n\t\tpanels[1].add(userinfo);\r\n\t\tpanels[1].setOpaque(false);\r\n\t\tallComponents.add(panels[1]);\r\n\t\tpanels[0].revalidate();\r\n\t}", "private void creatingElements() {\n\t\ttf1 = new JTextField(20);\n\t\ttf2 = new JTextField(20);\n\t\ttf3 = new JTextField(20);\n\t\tJButton btn = new JButton(\"Add\");\n\t\tbtn.addActionListener(control);\n\t\tbtn.setActionCommand(\"add\");\n\t\t\n\t\tJPanel panel = new JPanel();\n\t\tpanel.add(tf1);\n\t\tpanel.add(tf2);\n\t\tpanel.add(btn);\n\t\tpanel.add(tf3);\n\t\t\n\t\tthis.add(panel);\n\t\t\n\t\tthis.validate();\n\t\tthis.repaint();\t\t\n\t\t\n\t}", "private void createAdminPanel() {\n username = new JTextField(8);\n password = new JPasswordField(8);\n JPanel loginArea = adminLoginPanels();\n JPanel buttons = adminLoginButtons();\n loginFrame = new JFrame();\n loginFrame.setLayout(new BorderLayout());\n loginFrame.getRootPane().setBorder(BorderFactory.createEmptyBorder(10,10,10,10));\n loginLabel = new JLabel(\"Please log in as administrator\", SwingConstants.CENTER);\n loginFrame.getContentPane().add(loginLabel, BorderLayout.NORTH);\n loginFrame.getContentPane().add(loginArea, BorderLayout.CENTER);\n loginFrame.getContentPane().add(buttons, BorderLayout.SOUTH);\n loginFrame.setVisible(true);\n loginFrame.pack();\n }", "void createGUI(JFrame f) {\n TabbedSplitPanel centrePanel = new TabbedSplitPanel(new JPanel(),TabbedSplitPanel.RIGHT);\n centrePanel.addMenuPanel(new MenuPanel(\"Right Menu\", new JTextArea(\"Menu panel for right tabbed split panel\"),true));\n\n TabbedSplitPanel bottomPanel = new TabbedSplitPanel(centrePanel,SplitPanel.BOTTOM);\n MenuPanel mainBottomMenuPanel = new MenuPanel(\"Main bottom menu\", new JTextArea(\"Contents of bottom menu\"), true);\n bottomPanel.addMenuPanel(mainBottomMenuPanel);\n\n // A panel with a button in it\n JPanel panel = createAMenuView();\n\n TabbedSplitPanel leftPanel = new TabbedSplitPanel(bottomPanel, SplitPanel.LEFT);\n leftPanel.addMenuPanel(new MenuPanel(\"Left1\", panel, true));\n leftPanel.addMenuPanel(new MenuPanel(\"Left2\", new JTextArea(\"Left 2 text area\"),true));\n\n // A nested TabbedSplitPanel\n TabbedSplitPanel nestedPanel = new TabbedSplitPanel(new JTextArea(\"Panel Containing a Nested panel\"),SplitPanel.BOTTOM);\n nestedPanel.addMenuPanel(new MenuPanel(\"Nested bottom menu\",new JTextArea(\"Nested menu panel\"),true));\n centrePanel.addMenuPanel(new MenuPanel(\"Nested\",nestedPanel,true));\n\n f.setContentPane(leftPanel);\n\n }", "private JPanel createPanelEditService() {\n\t\t// Fabriken holen\n\t\tGridBagConstraintsFactory gbcf = GridBagConstraintsFactory.getInstance();\n\t\tWidgetFactory wf = WidgetFactory.getInstance();\n\t\t// Dirty-Listener erzeugen\n\t\tDocumentListener documentListener = new DocumentListener() {\n\n\t\t\t@Override\n\t\t\tpublic void changedUpdate(DocumentEvent arg0) {\n\t\t\t\tsetDirty(true);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void insertUpdate(DocumentEvent e) {\n\t\t\t\tsetDirty(true);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void removeUpdate(DocumentEvent e) {\n\t\t\t\tsetDirty(true);\n\t\t\t}\n\t\t};\n\t\tChangeListener changeListener = new ChangeListener() {\n\n\t\t\t@Override\n\t\t\tpublic void stateChanged(ChangeEvent event) {\n\t\t\t\tif (((AbstractButton) event.getSource()).getModel().isPressed()) {\n\t\t\t\t\tsetDirty(true);\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\t// Widgets erzeugen\n\t\tJPanel panel = wf.getPanel(\"PanelEditService\");\n\t\tJLabel labelServiceAbbreviation = wf.getLabel(\"LabelServiceAbbreviation\");\n\t\tlabelServiceAbbreviation.setForeground(COLOR_INFLUENCE);\n\t\tserviceAbbreviation = wf.getTextField(\"FieldServiceAbbreviation\");\n\t\tserviceAbbreviation.getDocument().addDocumentListener(documentListener);\n\t\tJButton buttonClearService = wf.getButton(\"ButtonClearService\");\n\t\tbuttonClearService.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t((PswGenCtl) ctl).actionPerformedClearService(me);\n\t\t\t}\n\t\t});\n\t\tJLabel labelAdditionalInfo = wf.getLabel(\"LabelAdditionalInfo\");\n\t\tlabelAdditionalInfo.setForeground(COLOR_INFLUENCE);\n\t\tadditionalInfo = wf.getTextField(\"FieldAdditionalInfo\");\n\t\tadditionalInfo.getDocument().addDocumentListener(documentListener);\n\t\tJButton buttonRemoveService = wf.getButton(\"ButtonRemoveService\");\n\t\tbuttonRemoveService.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t((PswGenCtl) ctl).actionPerformedRemoveService(me);\n\t\t\t}\n\t\t});\n\t\tJLabel labelLoginUrl = wf.getLabel(\"LabelLoginUrl\");\n\t\tloginUrl = wf.getTextField(\"FieldLoginUrl\");\n\t\tloginUrl.getDocument().addDocumentListener(documentListener);\n\t\tJButton buttonOpenUrl = wf.getButton(\"ButtonOpenUrl\");\n\t\tbuttonOpenUrl.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t((PswGenCtl) ctl).actionPerformedOpenUrlInBrowser(me);\n\t\t\t}\n\t\t});\n\t\tJLabel labelLoginInfo = wf.getLabel(\"LabelLoginInfo\");\n\t\tloginInfo = wf.getTextField(\"FieldLoginInfo\");\n\t\tloginInfo.getDocument().addDocumentListener(documentListener);\n\t\tJButton buttonCopyLoginInfo = wf.getButton(\"ButtonCopyLoginInfo\");\n\t\tbuttonCopyLoginInfo.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t((PswGenCtl) ctl).actionPerformedCopyLoginInfo(me);\n\t\t\t}\n\t\t});\n\t\tJLabel labelAdditionalLoginInfo = wf.getLabel(\"LabelAdditionalLoginInfo\");\n\t\tadditionalLoginInfo = wf.getTextArea(\"FieldAdditionalLoginInfo\");\n\t\tadditionalLoginInfo.getDocument().addDocumentListener(documentListener);\n\t\tJScrollPane additionalLoginInfoScrollPane = wf.getScrollPane(\"ScrollPaneAdditionalLoginInfo\",\n\t\t\t\tadditionalLoginInfo);\n\t\tadditionalLoginInfoScrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\n\t\tJButton buttonOpenHelp = wf.getButton(\"ButtonOpenHelp\");\n\t\tbuttonOpenHelp.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t((PswGenCtl) ctl).actionPerformedOpenHelpInBrowser(me);\n\t\t\t}\n\t\t});\n\t\tJButton buttonOpenAbout = wf.getButton(\"ButtonOpenAbout\");\n\t\tbuttonOpenAbout.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t((PswGenCtl) ctl).actionPerformedOpenAbout(me);\n\t\t\t}\n\t\t});\n\t\tJLabel labelCount = wf.getLabel(\"LabelCount\");\n\t\tlabelCount.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlabelCount.setForeground(COLOR_INFLUENCE);\n\t\tJLabel labelStartIndex = wf.getLabel(\"LabelStartIndex\");\n\t\tlabelStartIndex.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlabelStartIndex.setForeground(COLOR_INFLUENCE);\n\t\tJLabel labelEndIndex = wf.getLabel(\"LabelEndIndex\");\n\t\tlabelEndIndex.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlabelEndIndex.setForeground(COLOR_INFLUENCE);\n\t\tuseSmallLetters = wf.getCheckBox(\"CheckBoxSmallLetters\");\n\t\tuseSmallLetters.addChangeListener(changeListener);\n\t\tuseSmallLetters.setForeground(COLOR_INFLUENCE);\n\t\tsmallLettersCount = wf.getIntegerField(\"FieldSmallLettersCount\");\n\t\tsmallLettersCount.getDocument().addDocumentListener(documentListener);\n\t\tsmallLettersStartIndex = wf.getIntegerField(\"FieldSmallLettersStartIndex\");\n\t\tsmallLettersStartIndex.getDocument().addDocumentListener(documentListener);\n\t\tsmallLettersEndIndex = wf.getIntegerField(\"FieldSmallLettersEndIndex\");\n\t\tsmallLettersEndIndex.getDocument().addDocumentListener(documentListener);\n\t\tuseCapitalLetters = wf.getCheckBox(\"CheckBoxCapitalLetters\");\n\t\tuseCapitalLetters.addChangeListener(changeListener);\n\t\tuseCapitalLetters.setForeground(COLOR_INFLUENCE);\n\t\tcapitalLettersCount = wf.getIntegerField(\"FieldCapitalLettersCount\");\n\t\tcapitalLettersCount.getDocument().addDocumentListener(documentListener);\n\t\tcapitalLettersStartIndex = wf.getIntegerField(\"FieldCapitalLettersStartIndex\");\n\t\tcapitalLettersStartIndex.getDocument().addDocumentListener(documentListener);\n\t\tcapitalLettersEndIndex = wf.getIntegerField(\"FieldCapitalLettersEndIndex\");\n\t\tcapitalLettersEndIndex.getDocument().addDocumentListener(documentListener);\n\t\tuseDigits = wf.getCheckBox(\"CheckBoxDigits\");\n\t\tuseDigits.addChangeListener(changeListener);\n\t\tuseDigits.setForeground(COLOR_INFLUENCE);\n\t\tdigitsCount = wf.getIntegerField(\"FieldDigitsCount\");\n\t\tdigitsCount.getDocument().addDocumentListener(documentListener);\n\t\tdigitsStartIndex = wf.getIntegerField(\"FieldDigitsStartIndex\");\n\t\tdigitsStartIndex.getDocument().addDocumentListener(documentListener);\n\t\tdigitsEndIndex = wf.getIntegerField(\"FieldDigitsEndIndex\");\n\t\tdigitsEndIndex.getDocument().addDocumentListener(documentListener);\n\t\tuseSpecialCharacters = wf.getCheckBox(\"CheckBoxSpecialCharacters\");\n\t\tuseSpecialCharacters.addChangeListener(changeListener);\n\t\tuseSpecialCharacters.setForeground(COLOR_INFLUENCE);\n\t\tspecialCharacters = wf.getTextField(\"FieldSpecialCharacters\");\n\t\tspecialCharacters.setForeground(COLOR_INFLUENCE);\n\t\tspecialCharactersCount = wf.getIntegerField(\"FieldSpecialCharactersCount\");\n\t\tspecialCharactersCount.getDocument().addDocumentListener(documentListener);\n\t\tspecialCharactersStartIndex = wf.getIntegerField(\"FieldSpecialCharactersStartIndex\");\n\t\tspecialCharactersStartIndex.getDocument().addDocumentListener(documentListener);\n\t\tspecialCharactersEndIndex = wf.getIntegerField(\"FieldSpecialCharactersEndIndex\");\n\t\tspecialCharactersEndIndex.getDocument().addDocumentListener(documentListener);\n\t\tlabelUseOldPassphrase = wf.getLabel(\"LabelUseOldPassphrase\");\n\t\tlabelUseOldPassphrase.setForeground(COLOR_WARNING);\n\t\tJLabel labelTotalCharacterCount = wf.getLabel(\"LabelTotalCharacterCount\");\n\t\tlabelTotalCharacterCount.setForeground(COLOR_INFLUENCE);\n\t\ttotalCharacterCount = wf.getIntegerField(\"FieldTotalCharacterCount\");\n\t\ttotalCharacterCount.getDocument().addDocumentListener(documentListener);\n\t\tJButton buttonCopyPassword = wf.getButton(\"ButtonCopyPassword\");\n\t\tbuttonCopyPassword.setForeground(COLOR_INFLUENCE);\n\t\tbuttonCopyPassword.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t((PswGenCtl) ctl).actionPerformedCopyPassword(me);\n\t\t\t}\n\t\t});\n\t\tJLabel labelPassword = wf.getLabel(\"LabelPassword\");\n\t\tpassword = wf.getPasswordField(\"FieldPassword\");\n\t\tpassword.getDocument().addDocumentListener(documentListener);\n\t\tJButton buttonDisplayPassword = wf.getButton(\"ButtonDisplayPassword\");\n\t\tbuttonDisplayPassword.setForeground(COLOR_INFLUENCE);\n\t\tbuttonDisplayPassword.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t((PswGenCtl) ctl).actionPerformedDisplayPassword(me);\n\t\t\t}\n\t\t});\n\t\tJLabel labelPasswordRepeated = wf.getLabel(\"LabelPasswordRepeated\");\n\t\tpasswordRepeated = wf.getPasswordField(\"FieldPasswordRepeated\");\n\t\tpasswordRepeated.getDocument().addDocumentListener(documentListener);\n\t\tmakePasswordVisible = wf.getCheckBox(\"CheckBoxMakePasswordVisible\");\n\t\tmakePasswordVisible.addItemListener(new ItemListener() {\n\n\t\t\t@Override\n\t\t\tpublic void itemStateChanged(ItemEvent arg0) {\n\t\t\t\tif (makePasswordVisible.isSelected()) {\n\t\t\t\t\tpassword.setEchoChar((char) 0);\n\t\t\t\t\tpasswordRepeated.setEchoChar((char) 0);\n\t\t\t\t} else {\n\t\t\t\t\tpassword.setEchoChar('*');\n\t\t\t\t\tpasswordRepeated.setEchoChar('*');\n\t\t\t\t}\n\t\t\t}\n\n\t\t});\n\t\tbuttonStoreService = wf.getButton(\"ButtonStoreService\");\n\t\tbuttonStoreService.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t((PswGenCtl) ctl).actionPerformedStoreService(me);\n\t\t\t}\n\t\t});\n\t\tbuttonUseNewPassphrase = wf.getButton(\"ButtonUseNewPassphrase\");\n\t\tbuttonUseNewPassphrase.setForeground(COLOR_INFLUENCE);\n\t\tbuttonUseNewPassphrase.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t((PswGenCtl) ctl).actionPerformedUseNewPassphrase(me);\n\t\t\t}\n\t\t});\n\t\tJLabel labelLastUpdate = wf.getLabel(\"LabelLastUpdate\");\n\t\tlastUpdate = wf.getLabel(\"LabelLastUpdate\");\n\t\t// Widgets zufügen, erste Zeile\n\t\tint row = 0;\n\t\tpanel.add(labelServiceAbbreviation, gbcf.getLabelConstraints(0, row, 2, 1));\n\t\tpanel.add(serviceAbbreviation, gbcf.getFieldConstraints(GridBagConstraints.RELATIVE, row, 4, 1));\n\t\tpanel.add(buttonClearService, gbcf.getLabelConstraints(6, row));\n\t\t// Widgets zufügen, nächste Zeile\n\t\trow++;\n\t\tpanel.add(labelAdditionalInfo, gbcf.getLabelConstraints(0, row, 2, 1));\n\t\tpanel.add(additionalInfo, gbcf.getFieldConstraints(GridBagConstraints.RELATIVE, row, 4, 1));\n\t\tpanel.add(buttonRemoveService, gbcf.getLabelConstraints(6, row));\n\t\t// Widgets zufügen, nächste Zeile\n\t\trow++;\n\t\tpanel.add(labelLoginUrl, gbcf.getLabelConstraints(0, row, 2, 1));\n\t\tpanel.add(loginUrl, gbcf.getFieldConstraints(GridBagConstraints.RELATIVE, row, 4, 1));\n\t\tpanel.add(buttonOpenUrl, gbcf.getLabelConstraints(6, row));\n\t\t// Widgets zufügen, nächste Zeile\n\t\trow++;\n\t\tpanel.add(labelLoginInfo, gbcf.getLabelConstraints(0, row, 2, 1));\n\t\tpanel.add(loginInfo, gbcf.getFieldConstraints(GridBagConstraints.RELATIVE, row, 4, 1));\n\t\tpanel.add(buttonCopyLoginInfo, gbcf.getLabelConstraints(6, row));\n\t\t// Widgets zufügen, nächste Zeile\n\t\trow++;\n\t\tpanel.add(labelAdditionalLoginInfo, gbcf.getLabelConstraints(0, row, 2, 1));\n\t\tpanel.add(additionalLoginInfoScrollPane,\n\t\t\t\tgbcf.getTableConstraints(GridBagConstraints.RELATIVE, row, 4, 1));\n\t\t// Widgets zufügen, nächste Zeile\n\t\trow++;\n\t\tpanel.add(labelCount, gbcf.getLabelConstraints(2, row));\n\t\tpanel.add(labelStartIndex, gbcf.getLabelConstraints(GridBagConstraints.RELATIVE, row));\n\t\tpanel.add(labelEndIndex, gbcf.getLabelConstraints(GridBagConstraints.RELATIVE, row));\n\t\t// Leerzeile zufügen, nächste Zeile\n\t\trow++;\n\t\t// Widgets zufügen, nächste Zeile\n\t\trow++;\n\t\tpanel.add(useSmallLetters, gbcf.getLabelConstraints(0, row, 2, 1));\n\t\tpanel.add(smallLettersCount, gbcf.getFieldConstraints(GridBagConstraints.RELATIVE, row, 1, 1));\n\t\tpanel.add(smallLettersStartIndex, gbcf.getFieldConstraints(GridBagConstraints.RELATIVE, row, 1, 1));\n\t\tpanel.add(smallLettersEndIndex, gbcf.getFieldConstraints(GridBagConstraints.RELATIVE, row, 1, 1));\n\t\tpanel.add(buttonOpenHelp, gbcf.getLabelConstraints(6, row));\n\t\t// Widgets zufügen, nächste Zeile\n\t\trow++;\n\t\tpanel.add(useCapitalLetters, gbcf.getLabelConstraints(0, row, 2, 1));\n\t\tpanel.add(capitalLettersCount, gbcf.getFieldConstraints(GridBagConstraints.RELATIVE, row, 1, 1));\n\t\tpanel.add(capitalLettersStartIndex, gbcf.getFieldConstraints(GridBagConstraints.RELATIVE, row, 1, 1));\n\t\tpanel.add(capitalLettersEndIndex, gbcf.getFieldConstraints(GridBagConstraints.RELATIVE, row, 1, 1));\n\t\tpanel.add(buttonOpenAbout, gbcf.getLabelConstraints(6, row));\n\t\t// Widgets zufügen, nächste Zeile\n\t\trow++;\n\t\tpanel.add(useDigits, gbcf.getLabelConstraints(0, row, 2, 1));\n\t\tpanel.add(digitsCount, gbcf.getFieldConstraints(GridBagConstraints.RELATIVE, row, 1, 1));\n\t\tpanel.add(digitsStartIndex, gbcf.getFieldConstraints(GridBagConstraints.RELATIVE, row, 1, 1));\n\t\tpanel.add(digitsEndIndex, gbcf.getFieldConstraints(GridBagConstraints.RELATIVE, row, 1, 1));\n\t\t// Widgets zufügen, nächste Zeile\n\t\trow++;\n\t\tpanel.add(useSpecialCharacters, gbcf.getLabelConstraints(0, row, 1, 1));\n\t\tpanel.add(specialCharacters, gbcf.getFieldConstraints(GridBagConstraints.RELATIVE, row, 1, 1));\n\t\tpanel.add(specialCharactersCount, gbcf.getFieldConstraints(GridBagConstraints.RELATIVE, row, 1, 1));\n\t\tpanel.add(specialCharactersStartIndex,\n\t\t\t\tgbcf.getFieldConstraints(GridBagConstraints.RELATIVE, row, 1, 1));\n\t\tpanel.add(specialCharactersEndIndex,\n\t\t\t\tgbcf.getFieldConstraints(GridBagConstraints.RELATIVE, row, 1, 1));\n\t\tpanel.add(labelUseOldPassphrase, gbcf.getLabelConstraints(6, row, 1, 1));\n\t\t// Widgets zufügen, nächste Zeile\n\t\trow++;\n\t\tpanel.add(labelTotalCharacterCount, gbcf.getLabelConstraints(0, row, 2, 1));\n\t\tpanel.add(totalCharacterCount, gbcf.getFieldConstraints(GridBagConstraints.RELATIVE, row, 1, 1));\n\t\tpanel.add(buttonCopyPassword, gbcf.getLabelConstraints(6, row));\n\t\t// Widgets zufügen, nächste Zeile\n\t\trow++;\n\t\tpanel.add(labelPassword, gbcf.getLabelConstraints(0, row, 2, 1));\n\t\tpanel.add(password, gbcf.getFieldConstraints(GridBagConstraints.RELATIVE, row, 4, 1));\n\t\tpanel.add(buttonDisplayPassword, gbcf.getLabelConstraints(6, row));\n\t\t// Widgets zufügen, nächste Zeile\n\t\trow++;\n\t\tpanel.add(labelPasswordRepeated, gbcf.getLabelConstraints(0, row, 2, 1));\n\t\tpanel.add(passwordRepeated, gbcf.getFieldConstraints(GridBagConstraints.RELATIVE, row, 4, 1));\n\t\tpanel.add(buttonStoreService, gbcf.getLabelConstraints(6, row));\n\t\tpanel.add(buttonUseNewPassphrase, gbcf.getLabelConstraints(6, row));\n\t\t// Widgets zufügen, nächste Zeile\n\t\trow++;\n\t\tpanel.add(makePasswordVisible, gbcf.getFieldConstraints(2, row, 4, 1));\n\t\t// Widgets zufügen, nächste Zeile\n\t\trow++;\n\t\tGridBagConstraints emptyLineConstraints = gbcf.getLabelConstraints(0, row, 2, 1);\n\t\temptyLineConstraints.weighty = 0.1;\n\t\tpanel.add(new JLabel(\"\"), emptyLineConstraints);\n\t\t// Widgets zufügen, nächste Zeile\n\t\trow++;\n\t\tpanel.add(labelLastUpdate, gbcf.getLabelConstraints(0, row, 2, 1));\n\t\tpanel.add(lastUpdate, gbcf.getFieldConstraints(GridBagConstraints.RELATIVE, row, 4, 1));\n\t\t// Panel zurückgeben\n\t\treturn panel;\n\t}", "private static void assembleAddPanel(){\n addPanel.add(addPlayerNameLabel);\n addPanel.add(newPlayerNameTextBox);\n addPlayerButton.addStyleName(\"add-button\");\n newPlayerNameTextBox.addStyleName(\"player-name-textbox\");\n addPlayerButton.addStyleName(\"btn btn-default\");\n resetRosterButton.addStyleName(\"btn btn-default\");\n addPlayerButton.setHTML(\"<span class=\\\"glyphicon glyphicon-plus\\\" aria-hidden=\\\"true\\\"></span>Add Player\");\n resetRosterButton.setHTML(\"<span class=\\\"glyphicon glyphicon-repeat\\\" aria-hidden=\\\"true\\\"></span>Reset All\");\n }", "private void putPanels() {\n\t\tfrmUserDesign.getContentPane().add(userDesignPanel, \"userDesign\");\n\t\tfrmUserDesign.getContentPane().add(vendasClass.getVendas(), \"Vendas\");\n\t\tfrmUserDesign.getContentPane().add(maquinaClass.getMaquinas(), \"Maquinas\");\n\t\tfrmUserDesign.getContentPane().add(funcionarioClasse.getFuncionarios(), \"Funcionarios\");\n\t\tfrmUserDesign.getContentPane().add(produtoClass.getProdutos(), \"Produtos\");\n\t\tfrmUserDesign.getContentPane().add(chart.getGrafico(), \"Grafico\");\n\t\tcl.show(frmUserDesign.getContentPane(), \"userDesign\");// mostrar o main menu\n\t}", "protected JPanel makeNewJPanel() {\n\t\t// a variable tempPanel holds an instance of JPanel\n\t\tfinal JPanel tempPanel = new JPanel();\n\t\t// set the Layout of tempPanel to be a FlowLayout aligned left\n\t\ttempPanel.setLayout(new FlowLayout(FlowLayout.LEFT));\n\t\t// function returns the tempPanel\n\t\treturn tempPanel;\n\t}", "private JPanel createFilmPanel() {\n\t\tJPanel filmPanel = new JPanel();\n\t\tfilmPanel.setLayout(new BorderLayout());\n\t\tfilmPanel.setBorder(new EmptyBorder(10, 10, 10, 10));\n\t\t\n\t\tJPanel filmTitlePanel = new JPanel();\n\t\tfilmTitlePanel.setLayout(new BorderLayout());\n\t\tJLabel films = new JLabel(\"Films\");\n\t\tfilmTitlePanel.add(films, BorderLayout.WEST);\n\t\tfilmComboBox = new JComboBox(filmCBContent);\n\t\tfilmComboBox.setName(\"filmComboBox\");\n\t\tfilmTitlePanel.add(filmComboBox, BorderLayout.EAST);\n\t\tfilmPanel.add(filmTitlePanel, BorderLayout.NORTH);\n\n\t\tfilmContents = new JPanel();\n\t\tfilmContents.setLayout(new FlowLayout());\n\t\tfilmPanel.add(filmContents, BorderLayout.CENTER);\n\t\tfilmPanel.add(createJScrollPane(filmContents), BorderLayout.CENTER);\n\n\t\treturn filmPanel;\n\t}", "@Override\n\tpublic JPanel createContentPane() {\n\t\t// Fabriken holen\n\t\tGridBagConstraintsFactory gbcf = GridBagConstraintsFactory.getInstance();\n\t\tWidgetFactory wf = WidgetFactory.getInstance();\n\t\t// Widgets erzeugen\n\t\tJPanel panel = wf.getContentPane(\"MainFrame\", true);\n\t\tpanel.add(createPanelStoredServices(), gbcf.getTableConstraints(0, 1, 1, 1));\n\t\tpanel.add(createPanelEditService(), gbcf.getTableConstraints(0, 2, 1, 1));\n\t\treturn panel;\n\t}", "private org.gwtbootstrap3.client.ui.Panel get_f_Panel16() {\n return build_f_Panel16();\n }", "@Override\n\tprotected JPanel renderForm(AddWindow window) {\n\n\t\tthis.panel = new JPanel(new FlowLayout(FlowLayout.LEADING));\n\n\t\tthis.nameLabel = new JLabel(\"Nom de la catégorie\");\n\t\tthis.nameInput = new TabbedTextField(null, \"name\", 19);\n\t\tthis.components.add(this.nameInput);\n\n\t\tthis.gameLabel = new JLabel(\"Jeu parent\");\n\t\tthis.gamesList = new TabbedComboBox(\"game\", this.getGamesList());\n\t\tthis.components.add(this.gamesList);\n\n\t\tTabbedButton cancel = new TabbedButton(\"Annuler\", \"cancel\");\n\t\tcancel.addActionListener(window);\n\n\t\tTabbedButton submit = new TabbedButton(\"Enregistrer\", \"submit\");\n\t\tsubmit.addActionListener(window);\n\n\t\tthis.panel.add(this.nameLabel);\n\t\tthis.panel.add(this.nameInput);\n\t\tthis.panel.add(this.gameLabel);\n\t\tthis.panel.add(this.gamesList);\n\t\tthis.panel.add(cancel);\n\t\tthis.panel.add(submit);\n\n\t\tthis.panel.validate();\n\n\t\treturn panel;\n\n\t}", "private JPanel addPannelName(){\n\t\tJPanel panNom = new JPanel();\n\t\tpanNom.setPreferredSize(new Dimension(175, 75));\n\t\tnameT = new JTextField();\n\t\tnameT.setPreferredSize(new Dimension(100, 25));\n\t\tpanNom.setBorder(BorderFactory.createTitledBorder(\"Channel name\"));\n\t\tname = new JLabel(\"Put a name :\");\n\t\tpanNom.add(name);\n\t\tpanNom.add(nameT);\n\t\treturn panNom;\n\t}", "final JPanel createMainPanel() {\r\n\r\n logger.entering(this.getClass().getName(), \"createMainPanel\");\r\n\r\n this.pnlMain = new JPanel();\r\n\r\n this.pnlMain.setLayout(new BorderLayout());\r\n\r\n this.pnlMain.add(new JLabel(\r\n \"Select the MicroSensorDataTypes that shall be filtered out\"),\r\n BorderLayout.NORTH);\r\n\r\n this.pnlMain.add(createCheckBoxPanel(), BorderLayout.CENTER);\r\n\r\n this.pnlMain.add(getButtonPanel(), BorderLayout.SOUTH);\r\n\r\n logger.exiting(this.getClass().getName(), \"createMainPanel\",\r\n this.pnlMain);\r\n\r\n return this.pnlMain;\r\n }", "public Parent creatPanel() {\r\n\t\t\r\n\t\thlavniPanel = new BorderPane();\r\n\t\thlavniPanel.setCenter(creatGameDesk());\r\n\t\thlavniPanel.setTop(createMenuBar());\r\n\t\t\r\n\t\thlavniPanel.setBackground(new Background(new BackgroundFill(Color.BURLYWOOD, CornerRadii.EMPTY, Insets.EMPTY)));\r\n\t\thlavniPanel.setPadding(new Insets(8));\r\n\t\treturn hlavniPanel;\r\n\t}", "public NewJPanel() {\n initComponents();\n }", "public NewJPanel() {\n initComponents();\n }", "private void buildMainPanel() {\n\t\t\n\t\tif(theMode == MODE_FPC) {\n\t\t\ttheFields = new PropertyComponent[9];\n\t\t\t\n\t\t\ttheFields[0] = new PropertyComponent(\"category\", \"Uncategorized\", 1, false, false);\n\t\t\ttheFields[1] = new PropertyComponent(\"display_name\", theDisplayName, 1, false, false);\n\t\t\ttheFields[2] = new PropertyComponent(\"grp_type\", \"Chromosome\", 1, false, false);\n\t\t\ttheFields[3] = new PropertyComponent(\"grp_prefix\", \"\", 1, false, false);\n\t\t\t//theFields[4] = new PropertyComponent(\"grp_sort\", FPC_GRP_SORT, 0, true, false);\t\t\t\n\t\t\t//theFields[5] = new PropertyComponent(\"grp_order\", \"\", 1, true, false);\t\t\t\n\t\t\ttheFields[4] = new PropertyComponent(\"cbsize\", \"1200\", 1, false, false);\t\t\t\n\t\t\ttheFields[5] = new PropertyComponent(\"description\", \"\", 2, false, false);\t\t\t\n\t\t\ttheFields[6] = new PropertyComponent(\"fpc_file\", \"\", true, true, true);\n\t\t\ttheFields[7] = new PropertyComponent(\"bes_files\", \"\", true, true, false);\n\t\t\ttheFields[8] = new PropertyComponent(\"marker_files\", \"\", true, true, false);\n\t\t} else { //MODE_PSEUDO\n\t\t\ttheFields = new PropertyComponent[13];\n\t\t\t\n\t\t\ttheFields[0] = new PropertyComponent(\"category\", \"Uncategorized\", 1, false, false);\n\t\t\ttheFields[1] = new PropertyComponent(\"display_name\", theDisplayName, 1, false, false);\n\t\t\ttheFields[2] = new PropertyComponent(\"grp_type\", \"Chromosome\", 1, false, false);\n\t\t\ttheFields[3] = new PropertyComponent(\"grp_prefix\", \"Chr\", 1, false, false);\t\t\t\n\t\t\t//theFields[4] = new PropertyComponent(\"grp_sort\", PSEUDO_GRP_SORT, 0, true, false);\n\t\t\ttheFields[4] = new PropertyComponent(\"order_against\", getProjectSelections(), 0, false, true);\n\t\t\ttheFields[5] = new PropertyComponent(\"mask_all_but_genes\", PSEUDO_MASK_GENES, 1, false, true);\n\t\t\ttheFields[6] = new PropertyComponent(\"min_size\", \"100000\", 1, true, false);\t\t\t\n\t\t\ttheFields[7] = new PropertyComponent(\"min_display_size_bp\", \"0\", 1, false, false);\t\t\t\n\t\t\ttheFields[8] = new PropertyComponent(\"description\", \"\", 2, false, false);\t\t\t\n\t\t\ttheFields[9] = new PropertyComponent(\"annot_keywords\", \"\", 2, false, false);\t\t\t\n\t\t\ttheFields[10] = new PropertyComponent(\"annot_kw_mincount\", \"50\", 2, false, false);\t\n\t\t\ttheFields[11] = new PropertyComponent(\"anno_files\", \"\", true, true, false);\n\t\t\ttheFields[12] = new PropertyComponent(\"sequence_files\", \"\", true, true, false);\n\t\t}\n\t\t\t\n\t\tJPanel tempPanel = new JPanel();\n\t\ttempPanel.setLayout(new BoxLayout(tempPanel, BoxLayout.PAGE_AXIS));\n\t\ttempPanel.setBackground(Color.WHITE);\n\t\t\n\t\tfor(int x=0; x<theFields.length; x++) {\n\t\t\ttempPanel.add(Box.createVerticalStrut(5));\n\t\t\ttheFields[x].setTextListener(theListener);\n\t\t\ttempPanel.add(theFields[x]);\n\t\t}\n\t\ttempPanel.add(Box.createVerticalStrut(20));\n\t\ttempPanel.add(createButtonPanel());\n\t\ttempPanel.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10));\n\t\ttempPanel.setMaximumSize(tempPanel.getPreferredSize());\n\t\ttempPanel.setAlignmentX(Component.CENTER_ALIGNMENT);\n\t\t\t\n\t\tgetContentPane().add(tempPanel);\n\t}", "private void makePanelList() {\r\n if (panelList == null) {\r\n panelList = makePanel(jframe, BorderLayout.CENTER,\r\n \"List of Tasks\", 180, 50, 200, 25);\r\n list = makeList(10, 10, 100, 470, 500);\r\n\r\n JButton clickUpdate = makeButton(\"updateTask\", \"Update\",\r\n 20, 620, 100, 25, JComponent.CENTER_ALIGNMENT, \"cli.wav\");\r\n\r\n JButton clickDelete = makeButton(\"deleteTask\", \"Delete\",\r\n 125, 620, 100, 25, JComponent.CENTER_ALIGNMENT, null);\r\n\r\n JButton clickComplete = makeButton(\"completeTask\", \"Complete\",\r\n 230, 620, 100, 25, JComponent.CENTER_ALIGNMENT, null);\r\n\r\n JButton clickIncomplete = makeButton(\"IncompleteTask\", \"UndoComplete\",\r\n 335, 620, 130, 25, JComponent.CENTER_ALIGNMENT, \"cli.wav\");\r\n\r\n JButton clickCreate = makeButton(\"newTask\", \"Create A Task\",\r\n 175, 670, 150, 25, JComponent.CENTER_ALIGNMENT, \"cli.wav\");\r\n\r\n JButton showComplete = makeButton(\"showComplete\", \"Show Completed\",\r\n 175, 700, 150, 25, JComponent.CENTER_ALIGNMENT, \"cli.wav\");\r\n showComplete.getModel().setPressed(showCompleted);\r\n\r\n JButton clickSave = makeButton(\"saveTodo\", \"Save List\",\r\n 175, 730, 150, 25, JComponent.CENTER_ALIGNMENT, \"cli.wav\");\r\n\r\n addElementsToPanelList(list, clickUpdate, clickDelete, clickComplete, clickIncomplete, clickCreate,\r\n showComplete, clickSave);\r\n }\r\n }", "public static void createUI (JTextField fName, JTextField lName, JTextField vDesc, JTextField cLoc,\r\n JTextField dLoc, JTextField pNum, JPanel panel) {\n panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));\r\n panel.setAlignmentX(Component.LEFT_ALIGNMENT);\r\n panel.add(new JLabel(\"First Name:\"));\r\n panel.add(fName);\r\n panel.add(Box.createHorizontalStrut(15)); // a spacer\r\n panel.add(new JLabel(\"Last Name:\"));\r\n panel.add(lName);\r\n panel.add(new JLabel(\"Vehicle Description:\"));\r\n panel.add(vDesc);\r\n panel.add(new JLabel(\"Pick Up Location\"));\r\n panel.add(cLoc);\r\n panel.add(new JLabel(\"Drop Off Location\"));\r\n panel.add(dLoc);\r\n panel.add(new JLabel(\"Phone Number\"));\r\n panel.add(pNum);\r\n }", "private void createFunctionPanel()\n\t{\n\t\tGridLayout funcGrid = new GridLayout(2,5);\n\t\tfuncGrid.setHgap (5);\n\t\tfuncGrid.setVgap (5);\n\t\tfunctionPanel.setLayout(funcGrid);\n\t\tfunctionPanel.add (eToPower);\n\t\tfunctionPanel.add (ln);\n\t\tfunctionPanel.add (twoPower);\n\t\tfunctionPanel.add (xCube);\n\t\tfunctionPanel.add (xSquare);\n\t\tfunctionPanel.add (del);\n\t\tfunctionPanel.add (C);\n\t\tfunctionPanel.add (negate);\n\t\tfunctionPanel.add (cubeRoot);\t\t\n\t\tfunctionPanel.add (squareRoot);\n\t\t\n\t}", "private void makePanelTask() {\r\n if (panelTask == null) {\r\n panelTask = makePanel(jframe, BorderLayout.CENTER,\r\n \"Task Details\", 180, 50, 200, 25);\r\n\r\n JLabel createLabelName = makeJLabel(\"Name: \", 10, 100, 80, 25);\r\n JLabel createLabelDescription = makeJLabel(\"Description: \", 10, 130, 80, 25);\r\n JLabel createLabelDueDate = makeJLabel(\"Due Date: \", 10, 160, 80, 25);\r\n JLabel createLabelPriority = makeJLabel(\"Priority Level: \", 10, 190, 80, 25);\r\n\r\n addToTodoTaskGui(createLabelName, createLabelDescription, createLabelDueDate, createLabelPriority);\r\n\r\n JButton clickSave = makeButton(\"saveTask\", \"Save\", 80, 250, 150, 25,\r\n JComponent.BOTTOM_ALIGNMENT, \"cli.wav\");\r\n panelTask.add(clickSave);\r\n\r\n JButton clickCancel = makeButton(\"cancelTask\", \"Cancel\", 280, 250, 150, 25,\r\n JComponent.BOTTOM_ALIGNMENT, \"cli.wav\");\r\n panelTask.add(clickCancel);\r\n }\r\n }", "private void createManualJPanel() {\r\n createJPanelWithManual();\r\n JFrame frame = new JFrame();\r\n customizeFrame(frame);\r\n }", "public static JPanel getFormsPanelInstance(){\n return formsPanel;\n }", "private void creaPannelli() {\n /* variabili e costanti locali di lavoro */\n Pannello pan;\n\n try { // prova ad eseguire il codice\n\n /* pannello date */\n pan = this.creaPanDate();\n this.addPannello(pan);\n\n /* pannello coperti */\n PanCoperti panCoperti = new PanCoperti();\n this.setPanCoperti(panCoperti);\n this.addPannello(panCoperti);\n\n\n /* pannello placeholder per il Navigatore risultati */\n /* il navigatore vi viene inserito in fase di inizializzazione */\n pan = new PannelloFlusso(Layout.ORIENTAMENTO_ORIZZONTALE);\n this.setPanNavigatore(pan);\n this.addPannello(pan);\n\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n } // fine del blocco try-catch\n\n }", "public CreateNewEventJPanel() {\n }", "private void createFrame(){\n JPanel jPanelID = new JPanel();\n jPanelID.setLayout(new GridBagLayout());\n JLabel labelText = new JLabel(this.dialogName);\n labelText.setHorizontalAlignment(JLabel.CENTER);\n AddComponent.add(jPanelID,labelText, 0, 0, 2, 1);\n for (int field = 0; field < labelString.length; field++) {\n labelText = new JLabel(labelString[field]);\n AddComponent.add(jPanelID, labelText, 0, field + 1, 1, 1);\n AddComponent.add(jPanelID, fieldID.get(labelString[field]), 1, field + 1, 1, 1);\n }\n int offset = labelString.length + 1;\n labelText = new JLabel(DATE_OF_BIRTH);\n AddComponent.add(jPanelID, labelText, 0, offset, 1, 1);\n AddComponent.add(jPanelID, jDateChooser, 1, offset, 1, 1);\n offset++;\n labelText = new JLabel(GROUP);\n AddComponent.add(jPanelID, labelText, 0, offset, 1, 1);\n AddComponent.add(jPanelID, group, 1, offset, 1, 1);\n dialog.add(jPanelID, BorderLayout.NORTH);\n JButton okButton = new JButton(dialogName);\n okButton.addActionListener(actionEvent -> checkAndSave());\n dialog.add(okButton, BorderLayout.SOUTH);\n }", "private static void createAndShowUI(){\n JFrame frame = new JFrame(\"TargetTest\");\n TargetTest test = new TargetTest();\n frame.setLayout(new FlowLayout());\n frame.getContentPane().add(test.getMainPanel());\n //frame.getContentPane().add(test.getControlsPanel());\n\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n frame.pack();\n\n frame.setLocationRelativeTo(null);\n\n frame.setVisible(true);\n}", "private void createPanel() {\n JPanel panel = new JPanel();\n \n for(int i = 0; i < button.size(); i++){\n panel.add(button.get(i));\n }\n panel.add(label);\n \n add(panel);\n }", "private void createpanel1() {\r\n\t\theader = new JLabel();\r\n\t\theader.setText(\"Type in Userinformation\");\r\n\t\theader.setFont(customFont.deriveFont(25f));\r\n\t\theader.setForeground(Color.WHITE);\r\n\r\n\t\tpanels[0].add(header);\r\n\t\tpanels[0].setOpaque(false);\r\n\t\tallComponents.add(panels[0]);\r\n\r\n\t}", "public abstract void createContents(Panel mainPanel);", "public void createPartyPanel()\n {\n setPartyLabel(game.getPartyPane(), 0);\n //setPartyLabel(\"EMPTY\", 1);\n //setPartyLabel(\"EMPTY\", 2);\n //setPartyLabel(\"EMPTY\", 3);\n reloadPartyPanel();\n }", "@SuppressWarnings(\"deprecation\")\n\t@Override\n\tpublic void onModuleLoad() {\n\t\t/*\n\t\t * Create file interface\n\t\t */\n\t\t// Create a FormPanel and point it at a service.\n\t\tform = new FormPanel();\n\t\tform.setAction(GWT.getModuleBaseURL() + \"greet\");\n\t\tform.setEncoding(FormPanel.ENCODING_MULTIPART);\n\t\tform.setMethod(FormPanel.METHOD_POST);\n\n\t\tform.setWidget(secondPanel);\n\t\t// secondPanel.add(statusLabel);\n\t\t// fileUpload.setName(form.getTitle());\n\t\tfileUpload.setName(\"UploadFile\");\n\n\t\tsecondPanel.add(fileUpload);\n\t\tuploadedOntologies.add(loadFile);\n\t\tClickHandler load_handler = new ClickHandler() {\n\t\t\t@Override\n\t\t\tpublic void onClick(final ClickEvent event) {\n\t\t\t\tform.submit();\n\t\t\t}\n\t\t};\n\t\tloadFile.addClickHandler(load_handler);\n\n\t\tontologies = new ListBox();\n\t\tontologies.setSize(\"152px\", \"18px\");\n\t\n\t\tuploadedOntologies.add(ontologies);\n\t\tuploadedOntologies.setSpacing(5);\n\t\t// secondPanel.add(uploadedOntologies);\n\n\t\t/*\n\t\t * end file creation\n\t\t */\n\t\tlogger.log(Level.SEVERE, \"Log!\");\n\t\tOnt_Table.setText(1, 0, \"Class\"); // 3 columns\n\t\tOnt_Table.setText(1, 2, \"Object Property\");\n\t\tOnt_Table.setText(1, 4, \"Data Property\");\n\t\tdouble wi = Window.getClientWidth() / 3.5;\n\t\tString tablewidth = Double.toString(wi);\n\t\ttripleTable.getColumnFormatter().setWidth(0, tablewidth);\n\t\ttripleTable.getColumnFormatter().setWidth(1, tablewidth);\n\t\ttripleTable.getColumnFormatter().setWidth(2, tablewidth);\n\t\ttripleTable.setStyleName(\"Prompt-User\");\n\t\ttripleTable.setText(0, 0, \"Subject\");\n\t\ttripleTable.setText(0, 1, \"Predicate\");\n\t\ttripleTable.setText(0, 2, \"Object\");\n\t\ttripleTable.getRowFormatter().addStyleName(0, \"Prompt-User\");\n\t\ttripleTable.getColumnFormatter().addStyleName(0, \"columnOne\");\n\t\ttripleTable.getColumnFormatter().addStyleName(1, \"columnTwo\");\n\t\ttripleTable.getColumnFormatter().addStyleName(2, \"columnThree\");\n\t\ttripleTable.addStyleName(\"tripleTable\");\n\t\trow = tripleTable.getRowCount();\n\n\t\twebBox.setText(url);\n\t\twebBox.setWidth(\"340px\");\n\t\tframeWidth = String.valueOf(Window.getClientWidth() / 3.3) + \"px\";\n\t\tqueryBox.setText(\"\\n\\n\\n\\n\\n\\t\\t\\t\\t\\tEnter Query\");\n\t\tqueryBox.setSize(\"369px\", \"332px\");\n\n\t\tqueryBox.addFocusHandler(new FocusHandler() {\n\n\t\t\t@Override\n\t\t\tpublic void onFocus(FocusEvent event) {\n\t\t\t\tqueryBox.selectAll();\n\t\t\t}\n\n\t\t});\n\t\tontology_from_disk.setText(\"/Users/markhender/ontologies/pizzas/pizza.rdf\");\n\t\tontology_from_disk.setWidth(\"340px\");\n\t\tframe = new Frame();\n\t\tframe.setUrl(url);\n\t\tframeWidth = String.valueOf(Window.getClientWidth() / 1.5) + \"px\"; // works\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// cross\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// browsers\n\t\tframeHeight = String.valueOf(String.valueOf(Window.getClientHeight() / 1.3) + \"px\");\n\t\tframe.setWidth(frameWidth);\n\t\tframe.setHeight(frameHeight);\n\t\tframe.setVisible(true);\n\n\t\t/*\n\t\t * Popup Panel\n\t\t */\n\t\tpopupHolder.add(closePopup);\n\n\t\tpopup.setWidget(popupContents);\n\t\tclosePopup.addClickHandler(new ClickHandler() {\n\t\t\t@Override\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tint end_of_list = ft.getRowCount();\n\t\t\t\tint count = 1;\n\n\t\t\t\twhile (count < end_of_list) {\n\t\t\t\t\tlogger.log(Level.SEVERE, \"line\");\n\t\t\t\t\tCheckBox box = (CheckBox) ft.getWidget(count, 3);\n\t\t\t\t\tif (box.getValue()) {\n\t\t\t\t\t\t// tripleTable.setText(tripleTable.getRowCount(), 0,\n\t\t\t\t\t\t// ft.getText(count, 0));\n\t\t\t\t\t\tprintSuggestedSubject(ft.getText(count, 0));\n\t\t\t\t\t\taddPredicate(ft.getText(count, 1));\n\t\t\t\t\t\tif (ft.getText(count, 1).endsWith(\"*\"))\n\t\t\t\t\t\t\taddLitObject(ft.getText(count, 2));\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\taddObject(ft.getText(count, 2));\n\t\t\t\t\t}\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t\tlogger.log(Level.SEVERE, \"BINGO\");\n\t\t\t\tft.removeAllRows();\n\n\t\t\t\tpopup.hide();\n\t\t\t\tpopupContents.clear();\n\t\t\t\tpopupContents.add(popupHolder);\n\t\t\t}\n\t\t});\n\t\tcontent.setText(\"Search for content in webpage\");\n\t\tcontent.addFocusHandler(new FocusHandler() {\n\n\t\t\t@Override\n\t\t\tpublic void onFocus(FocusEvent event) {\n\t\t\t\tcontent.setFocus(true);\n\t\t\t\tif (content.getText().equals(\"Search for content in webpage\"))\n\t\t\t\t\tcontent.setText(\"\");\n\t\t\t\telse\n\t\t\t\t\tcontent.selectAll();\n\t\t\t}\n\t\t});\n\t\taddPanel.add(webBox);\n\n\t\tsearchPanel.add(content); // content search box\n\t\tsearchPanel.add(search); // trigger content search button\n\t\tsearch.setHeight(\"37px\");\n\t\tdBox.setText(\"Triple Report\");\n\t\tclose.setText(\"Close\");\n\t\tclose.addClickListener(new ClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(Widget sender) {\n\t\t\t\tdialogBoxContents.clear();\n\t\t\t\tdBox.hide();\n\t\t\t}\n\t\t});\n\t\tdialogBoxholder.add(close);\n\n\t\tloadOntologyInternet.add(ontology_from_internet);\n\t\tloadOntologyInternet.add(load_ontology_web_button);\n\t\tradioButtonPanel.add(radioA);\n\t\tradioButtonPanel.add(radioB);\n\t\tsearchPanel.add(radioButtonPanel);\n\t\tbottomOfScreen.add(searchPanel);\n\t\tbottomOfScreen.add(tripleTable);\n\t\ttripleTable.setSize(\"981px\", \"67px\");\n\t\t// bottomOfScreen.setSpacing(10);\n\t\tsearch.setText(\"Enter\");\n\t\tcontent.setSize(\"282px\", \"29px\");\n\t\tListBox listbox = new ListBox();\n\t\tontology_Classes = new ListBox(); // Ontology class listbox\n\t\tproperty_Resources = new ListBox(); // \" property listbox\n\t\tproperty_Literals = new ListBox(); // \" individual listbox\n\t\tontology_Classes.setWidth(\"100px\");\n\t\tproperty_Resources.setWidth(\"100px\");\n\t\tproperty_Literals.setWidth(\"100px\");\n\n\t\tlistbox.setWidth(\"100px\");\n\t\tlistbox.setHeight(\"400px\");\n\t\tsave.setText(\"Save\");\n\t\tlistbox.setVisible(false);\n\t\t/*\n\t\t * before new page\n\t\t */\n\t\tfinal PopupPanel contextpanel = new PopupPanel();\n\n\t\tfinal Button ok = new Button(\"OK\");\n\t\tfinal HorizontalPanel hori = new HorizontalPanel();\n\t\tcontextpanel.setWidget(hori);\n\t\tentercontext.setText(\"context\");\n\t\thori.add(ok);\n\t\tfinal ClickHandler download_handler = new ClickHandler() {\n\t\t\t@Override\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tgreetingService.downloadRepository(entercontext.getText(), new downloadRepository());\n\t\t\t\tif (repository_downloaded)\n\t\t\t\t\tloadPageTwo(export_fp);\n\t\t\t\trepository_downloaded = true;\n\t\t\t\tlogger.log(Level.SEVERE, \"download_handler called\");\n\t\t\t}\n\t\t};\n\t\tClickHandler newpage_handler = new ClickHandler() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tcontextpanel.center();\n\t\t\t\tok.addClickHandler(new ClickHandler() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\t\t\tif (repository_downloaded)\n\t\t\t\t\t\t\tloadPageTwo(export_fp);\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tdownload_handler.onClick(event);\n\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcontextpanel.hide();\n\n\t\t\t\t\t}\n\n\t\t\t\t});\n\t\t\t\tlogger.log(Level.SEVERE, \"export path: \" + filepathofexport);\n\n\t\t\t}\n\n\t\t};\n\t\tnew_page.addClickHandler(newpage_handler);\n\t\tdownload_repository.addClickHandler(download_handler);\n\t\t/* Return to homepage */\n\t\thome_page.addClickHandler(new ClickHandler() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tloadHomePage();\n\t\t\t}\n\t\t});\n\t\t/* home page */\n\n\t\t//mainPanel.add(frame); // browser\n\t\tmainPanel.add(uploadedOntologies);\n\t\tmainPanel.add(addPanel); // url for browser\n\t\t\t\taddPanel.add(webSend);\n\t\t\t\twebSend.setHeight(\"32px\");\n\t\t\n\t\t\t\twebSend.setText(\"GO\");\n\t\t\t\t\n\t\t\t\t\t\t// Listen for mouse events on webSend Button\n\t\t\t\t\t\t// to get new website\n\t\t\t\t\t\twebSend.addClickHandler(new ClickHandler() {\n\t\t\t\t\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\t\t\t\t\tframe.setUrl(webBox.getText()); // take url from textbox\n\t\t\t\t\t\t\t\tlogger.log(Level.SEVERE, frame.getUrl());\n\t\t\t\t\t\t\t\tcontent.setFocus(true);\n\t\t\t\t\t\t\t\tcontent.selectAll();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\tmainPanel.add(loadOntologyInternet);\n\t\tmainPanel.add(Ont_Table); // listboxes\n\t\tmainPanel.add(queryBox);\n\t\tmainPanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);\n\t\tmainPanel.add(queryButton);\n\t\tmainPanel.add(new_page);\n\t\tmainPanel.add(download_repository);\n\n\t\tRootPanel.get(\"stockList\").add(frame, RootPanel.get(\"stockList\").getAbsoluteLeft(), RootPanel.get(\"stockList\").getAbsoluteTop());\n\t\tRootPanel.get(\"stockList\").add(bottomOfScreen, 0, 725);\n\t\tbottomOfScreen.setSize(\"984px\", \"128px\");\n\t\tRootPanel.get(\"stockList\").add(form, frame.getOffsetWidth() + 10, frame.getAbsoluteTop());\n\t\tRootPanel.get(\"stockList\").add(mainPanel, frame.getOffsetWidth() + 10, form.getOffsetHeight() + frame.getAbsoluteTop());\n\t\t// listen for keyboard events in the textbox\n\t\twebBox.addKeyUpHandler(new KeyUpHandler() {\n\t\t\t@Override\n\t\t\tpublic void onKeyUp(KeyUpEvent event) {\n\t\t\t\tif (event.getNativeKeyCode() == KeyCodes.KEY_ENTER) {\n\t\t\t\t\tframe.setUrl(webBox.getText());\n\t\t\t\t\tcontent.setFocus(true);\n\t\t\t\t\tcontent.selectAll();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tframe.addLoadHandler(new LoadHandler() {\n\n\t\t\t@Override\n\t\t\tpublic void onLoad(LoadEvent event) {\n\t\t\t\t\n\t\t\t}\n\n\t\t});\n\t\tfinal AsyncCallback<ArrayList<String>> ontology_class = new AsyncCallback<ArrayList<String>>() {\n\n\t\t\t@Override\n\t\t\tpublic void onFailure(Throwable caught) {\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onSuccess(ArrayList<String> result) {\n\t\t\t\tclasses = result;\n\t\t\t\tontology.get(ontology.size() - 1).setClasses(result);\n\t\t\t\tif (ontology.size() == 1)\n\t\t\t\t\tpopulate_ClassBox(0);\n\t\t\t}\n\t\t};\n\t\tfinal AsyncCallback<ArrayList<String>> property_resource = new AsyncCallback<ArrayList<String>>() {\n\t\t\t@Override\n\t\t\tpublic void onFailure(Throwable caught) {\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onSuccess(ArrayList<String> result) {\n\t\t\t\tproperties = result;\n\t\t\t\tontology.get(ontology.size() - 1).setProperties(result);\n\t\t\t\tif (ontology.size() == 1)\n\t\t\t\t\tpopulate_PropertyBox(0);\n\t\t\t}\n\t\t};\n\t\tfinal AsyncCallback<ArrayList<String>> property_literal = new AsyncCallback<ArrayList<String>>() {\n\n\t\t\t@Override\n\t\t\tpublic void onFailure(Throwable caught) {\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onSuccess(ArrayList<String> result) {\n\t\t\t\tliterals = result;\n\t\t\t\tontology.get(ontology.size() - 1).setLiterals(result);\n\t\t\t\tif (ontology.size() == 1)\n\t\t\t\t\tpopulate_LiteralBox(0);\n\t\t\t}\n\t\t};\n\n\t\tload_ontology_web_button.addClickHandler(new ClickHandler() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\t// TODO load ontologies from a web address\n\t\t\t}\n\n\t\t});\n\t\tfinal AsyncCallback<Integer[]> subjectIndexOfContent = new AsyncCallback<Integer[]>() {\n\n\t\t\t@Override\n\t\t\tpublic void onFailure(Throwable caught) {\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 onSuccess(Integer[] result) {\n\t\t\t\tif (result[0] != -99 && result[1] != -99) {\n\t\t\t\t\t// word found\n\t\t\t\t\tprintSubject();\n\t\t\t\t} else\n\t\t\t\t\tWindow.alert(\"Word not found\");\n\t\t\t}\n\n\t\t};\n\n\t\tfinal AsyncCallback<String> getOntName = new AsyncCallback<String>() {\n\t\t\t@Override\n\t\t\tpublic void onFailure(Throwable caught) {\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onSuccess(String result) {\n\t\t\t\tontName = result;\n\t\t\t\tontology.get(ontology.size() - 1).setName(result);\n\t\t\t\tlogger.log(Level.SEVERE, (\"OntologyName = \" + ontName));\n\t\t\t}\n\n\t\t};\n\n\t\tfinal AsyncCallback<String> geturi = new AsyncCallback<String>() {\n\n\t\t\t@Override\n\t\t\tpublic void onFailure(Throwable caught) {\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onSuccess(String result) {\n\t\t\t\tbaseURI = result;\n\t\t\t\tontology.get(ontology.size() - 1).setBaseURI(result);\n\t\t\t\tlogger.log(Level.SEVERE, \"The baseURI is \" + baseURI);\n\t\t\t}\n\n\t\t};\n\t\tfinal AsyncCallback<ArrayList<String[]>> suggestedTriples = new AsyncCallback<ArrayList<String[]>>() {\n\n\t\t\t@Override\n\t\t\tpublic void onFailure(Throwable caught) {\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onSuccess(ArrayList<String[]> result) {\n\t\t\t\tlogger.log(Level.SEVERE, \"First\");\n\t\t\t\tpopulateSuggestedTriples(result);\n\t\t\t\tWindow.alert(\"Pass\");\n\t\t\t}\n\n\t\t};\n\t\ttripleTable.addClickHandler(new ClickHandler() {\n\t\t\t@Override\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tcom.google.gwt.user.client.ui.HTMLTable.Cell cell = tripleTable.getCellForEvent(event);\n\t\t\t\tint cellIndex = cell.getCellIndex();\n\t\t\t\tint rowIndex = cell.getRowIndex();\n\t\t\t\tif (cellIndex == 4 || cellIndex == 0) {\n\t\t\t\t\tlogger.log(Level.SEVERE, \"Sending: \" + tripleTable.getText(rowIndex, 0));\n\t\t\t\t\tgreetingService.suggestedTriples(tripleTable.getHTML(rowIndex, 0), suggestedTriples);\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t});\n\n\t\tsearch.addClickHandler(new ClickHandler() {\n\t\t\t@Override\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tString blah = content.getText();\n\t\t\t\tif (radioA.isChecked() || !radioB.isChecked())\n\t\t\t\t\tgreetingService.wordExists(blah, webBox.getText(), subjectIndexOfContent);\n\t\t\t\telse{\n\t\t\t\t\tprintSubject();\n\t\t\t\t}\n\t\t\t\tcontent.setFocus(true);\n\t\t\t\tcontent.selectAll();\n\t\t\t}\n\t\t});\n\n\t\tcontent.addKeyUpHandler(new KeyUpHandler() {\n\t\t\t@Override\n\t\t\tpublic void onKeyUp(KeyUpEvent event) {\n\n\t\t\t\tif (event.getNativeKeyCode() == KeyCodes.KEY_ENTER) {\n\t\t\t\t\tif (radioA.isChecked() || !radioB.isChecked())\n\t\t\t\t\t\tgreetingService.wordExists(content.getText(), webBox.getText(), subjectIndexOfContent);\n\t\t\t\t\telse\n\t\t\t\t\t\tprintSubject();\n\t\t\t\t\tcontent.setFocus(true);\n\t\t\t\t\tcontent.selectAll();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tsave.addClickHandler(new ClickHandler() {\n\t\t\t@Override\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tString[] temp = new String[3];\n\t\t\t\ttemp = getTriples();\n\t\t\t\trepository_downloaded = false;\n\t\t\t}\n\t\t});\n\t\t\n\t\tOnt_Table.setWidget(0, 2, menuBar);\n\t\tmenuBar.setSize(\"100%\", \"100%\");\n\t\t\n\t\tClasses = new MenuItem(\"Classes\", false, menuBar_3);\n\t\tOntology_Contents_Holder.addItem(Classes);\n\t\tmenuBar_2.addItem(mntmObject);\n\t\tmenuBar_2.addItem(mntmData);\n\t\tOntology_Contents_Holder.addItem(Properties);\n\t\tmenuBar.addItem(Ontology_Name);\n\t\t\n\t\tOnt_Table.setWidget(2, 2, property_Resources);\n\t\tOnt_Table.setWidget(2, 4, property_Literals);\n\n\t\t/*\n\t\t * Adding Change listener to listboxes\n\t\t */\n\t\tontologies.addChangeListener(new ChangeListener() {\n\t\t\t@Override\n\t\t\tpublic void onChange(Widget sender) {\n\t\t\t\tint listIndex = ontologies.getSelectedIndex();\n\n\t\t\t\tpopulate_ClassBox(listIndex);\n\t\t\t\tpopulate_PropertyBox(listIndex);\n\t\t\t\tpopulate_LiteralBox(listIndex);\n\t\t\t}\n\t\t});\n\t\tontology_Classes.addChangeListener(new ChangeListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onChange(Widget sender) {\n\t\t\t\tint listIndex = ontology_Classes.getSelectedIndex();\n\t\t\t\tString uri = ontology.get(ontologies.getSelectedIndex()).getBaseURI();\n\t\t\t\tString item = uri + ontology_Classes.getItemText(listIndex);\n\t\t\t\taddObject(item);\n\t\t\t}\n\n\t\t});\n\t\tproperty_Resources.addChangeListener(new ChangeListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onChange(Widget sender) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tint listIndex = property_Resources.getSelectedIndex();\n\t\t\t\tlogger.log(Level.SEVERE, property_Resources.getItemText(listIndex));\n\t\t\t\tif (!(property_Resources.getItemText(listIndex).equals(\"RDF.type\"))) {\n\t\t\t\t\tlogger.log(Level.SEVERE, \"not rdf.type\");\n\t\t\t\t\tString uri = ontology.get(ontologies.getSelectedIndex()).getBaseURI();\n\t\t\t\t\tString item = uri + property_Resources.getItemText(listIndex);\n\t\t\t\t\taddPredicate(item);\n\t\t\t\t} else {\n\t\t\t\t\tlogger.log(Level.SEVERE, \"rdf.type\");\n\t\t\t\t\tString item = property_Resources.getItemText(listIndex);\n\t\t\t\t\taddPredicate(item);\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t});\n\n\t\tproperty_Literals.addChangeListener(new ChangeListener() {\n\t\t\t@Override\n\t\t\tpublic void onChange(Widget sender) {\n\t\t\t\tif (property_Literals.getItemCount() == 0)\n\t\t\t\t\tWindow.alert(\"This list is empty!\");\n\t\t\t\telse {\n\t\t\t\t\tint listIndex = property_Literals.getSelectedIndex();\n\t\t\t\t\tString uri = ontology.get(ontologies.getSelectedIndex()).getBaseURI();\n\t\t\t\t\tString item = uri + property_Literals.getItemText(listIndex);\n\t\t\t\t\taddPredicate(item);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\t/*\n\t\t * File submit handling\n\t\t */\n\t\tform.addFormHandler(new FormHandler() {\n\n\t\t\t@Override\n\t\t\tpublic void onSubmit(FormSubmitEvent event) {\n\t\t\t\t// logger.log(Level.SEVERE, \"form title: \"+\n\t\t\t\t// fileUpload.getFilename().substring(fileUpload.getFilename().lastIndexOf('\\\\')\n\t\t\t\t// + 1));\n\t\t\t\tontName = fileUpload.getFilename().substring(fileUpload.getFilename().lastIndexOf('\\\\') + 1);\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onSubmitComplete(FormSubmitCompleteEvent event) {\n\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t}\n\n\t\t});\n\t\tform.addSubmitCompleteHandler(new FormPanel.SubmitCompleteHandler() {\n\n\t\t\t@Override\n\t\t\tpublic void onSubmitComplete(SubmitCompleteEvent event) {\n\t\t\t\tlogger.log(Level.SEVERE, \"form title: \" + form.getTitle());\n\t\t\t\tform.reset();\n\t\t\t\tAsyncCallback<String> pathfile = new AsyncCallback<String>() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tWindow.alert(\"Fail\");\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onSuccess(String result) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tpath_of_uploaded_file = result;\n\t\t\t\t\t\tontology.get(ontology.size() - 1).setFilePath(result);\n\t\t\t\t\t\tWindow.alert(\"Pass\");\n\t\t\t\t\t\tgreetingService.greetServer(list, path_of_uploaded_file, 1, ontology_class);\n\t\t\t\t\t\tgreetingService.greetServer(list, path_of_uploaded_file, 2, property_resource);\n\t\t\t\t\t\tgreetingService.greetServer(list, path_of_uploaded_file, 3, property_literal);\n\n\t\t\t\t\t\tontologies.addItem(ontology.get(ontology.size() - 1).getName());\n\n\t\t\t\t\t\t// logger.log(Level.SEVERE, baseURI);\n\t\t\t\t\t}\n\n\t\t\t\t};\n\t\t\t\tgreetingService.filePath(pathfile);\n\t\t\t\tgreetingService.getBaseURI(geturi);\n\t\t\t\t// greetingService.getOntName(getOntName);\n\t\t\t\tontology.add(new Ontology(ontName, path_of_uploaded_file, baseURI, classes, properties, literals));\n\t\t\t\t// greetingService.getOntName(getOntName);\n\t\t\t\tif (ontology.size() == 1) {\n\t\t\t\t\t// populate_listBoxes();\n\t\t\t\t}\n\t\t\t\tlogger.log(Level.SEVERE, \"baseuri = \" + baseURI);\n\t\t\t}\n\n\t\t});\n\n\t}", "private Panel designPanel() {\n Panel panel = new Panel();\n contentLayout = new FormLayout();\n wrapperLayout = new VerticalLayout();\n numberOfDatasetsBox = new ComboBox<>();\n numberOfReplicatesBox = new ComboBox<>(\"Select number of Replicates\");\n\n\n List<Integer> possibleDatasetNumber =\n IntStream.rangeClosed(1, 100).boxed().collect(Collectors.toList());\n numberOfDatasetsBox.setItems(possibleDatasetNumber);\n\n List<Integer> possibleReplicateNumber =\n IntStream.rangeClosed(1, 100).boxed().collect(Collectors.toList());\n numberOfReplicatesBox.setItems(possibleReplicateNumber);\n\n datasetAccordion = new Accordion();\n datasetAccordion.setWidth(\"100%\");\n\n panel.setContent(wrapperLayout);\n return panel;\n }", "private void makeButtonPanel()\n {\n \n this.buttonPanel.setLayout(new GridLayout(10, 2, 30, 10));\n \n \n this.buttonPanel.add(this.fLabel);\n this.fName.setColumns(COL_WIDTH);\n this.buttonPanel.add(this.fName);\n\n this.buttonPanel.add(this.lLabel);\n this.lName.setColumns(COL_WIDTH);\n this.buttonPanel.add(this.lName);\n\n this.buttonPanel.add(this.idLabel);\n this.iD.setColumns(COL_WIDTH);\n this.buttonPanel.add(this.iD);\n\n this.buttonPanel.add(this.courseLabel);\n this.course.setColumns(COL_WIDTH);\n this.buttonPanel.add(this.course);\n\n this.buttonPanel.add(this.instructorLabel);\n this.instructor.setColumns(COL_WIDTH);\n this.buttonPanel.add(this.instructor);\n\n this.buttonPanel.add(this.tutorLabel);\n this.tutor.setColumns(COL_WIDTH);\n this.buttonPanel.add(this.tutor);\n \n this.buttonPanel.add(this.commentsLable);\n this.comments.setColumns(COL_WIDTH);\n this.buttonPanel.add(this.comments);\n //Removed for appointment tabel\n //this.buttonPanel.add(this.appointmentLable);\n //this.buttonPanel.add(this.appointment);\n this.buttonPanel.add(this.sessionLenLabel);\n this.sessionLength.setColumns(COL_WIDTH);\n this.sessionLength.setText(\"30\");\n this.buttonPanel.add(this.sessionLength);\n\n this.ADD_BUTTON.addActionListener(new AddButtonListener());\n //buttonPanel.add(ADD_BUTTON);\n \n \n this.addSessionPlaceHolder.add(this.buttonPanel);\n }", "public void onNew() {\t\t\n\t\tdesignWidget.addNewForm();\n\t}", "void setNewCollectionPanel();", "private JPanel initWestPanel() {\r\n JPanel westPanel = new JPanel(new GridLayout(0, 2, gapSize, gapSize));\r\n\r\n westPanel.add(new JLabel(\"Vorname\"));\r\n westPanel.add(txtFieldFirstName);\r\n westPanel.add(new JLabel(\"Nachname\"));\r\n westPanel.add(txtFieldLastName);\r\n westPanel.add(new JLabel(\"Geburtstag\"));\r\n westPanel.add(txtFieldDateOfBirth);\r\n westPanel.add(new JLabel(\"IBAN\"));\r\n westPanel.add(txtFieldIBAN);\r\n westPanel.add(new JLabel(\"Geschlecht\"));\r\n westPanel.add(comBoxSexSelection);\r\n westPanel.add(new JLabel(\"Vorstandsmitglied\"));\r\n westPanel.add(comBoxBoardMember);\r\n westPanel.add(new JLabel(\"eintrittsdatum\"));\r\n westPanel.add(txtFieldEntranceDate);\r\n westPanel.add(new JLabel(\"austrittsdatum\"));\r\n westPanel.add(txtFieldLeavingDate);\r\n TitledBorder border = new TitledBorder(\"Mitgliederinfo\");\r\n westPanel.setBorder(border);\r\n\r\n return westPanel;\r\n }", "private Panel createMessagePanel()\n {\n Panel messagePanel;\n Label product;\n Label version;\n Label copyright;\n\n product = new Label(\"File System Archiver\");\n version = new Label(\"Version \" + Constants.CLIENT_VERSION);\n copyright = new Label(\"Copyright (c) 2001\");\n\n messagePanel = new Panel();\n messagePanel.setLayout(new GridLayout(3, 0));\n\n messagePanel.add(product);\n messagePanel.add(version);\n messagePanel.add(copyright);\n\n messagePanel.setVisible(true);\n\n return messagePanel;\n }", "@Override\n public void newPanelModel() {\n\n }", "@Override\n public void newPanelModel() {\n\n }", "@DISPID(1611005968) //= 0x60060010. The runtime will prefer the VTID if present\n @VTID(44)\n void newWithPanel(\n boolean oNewPartPanelDisplayed);", "private void buildPanel()\r\n\t{\r\n\t\tgallonsLabel = new JLabel(\"Gallons: \");\r\n\t\tgallonsField = new JTextField(5);\r\n\t\t\r\n\t\tmilesLabel = new JLabel(\"Miles: \");\r\n\t\tmilesField = new JTextField(5);\r\n\t\t\r\n\t\tcalcButton = new JButton(\"Calculate MPG\");\r\n\t\tcalcButton.addActionListener(new CalcButtonListener());\r\n\t\t\r\n\t\tpanel = new JPanel();\r\n\t\tpanel.add(gallonsLabel);\r\n\t\tpanel.add(gallonsField);\r\n\t\tpanel.add(milesLabel);\r\n\t\tpanel.add(milesField);\r\n\t\tpanel.add(calcButton);\r\n\t}", "public PrintsPanel() {\n initComponents();\n createPanels();\n\n }", "private void todoChooserGui() {\r\n jframe = makeFrame(\"My Todo List\", 500, 800, JFrame.EXIT_ON_CLOSE);\r\n panelSelectFile = makePanel(jframe, BorderLayout.CENTER,\r\n \"Choose a Todo\", 150, 50, 200, 25);\r\n JButton clickRetrieve = makeButton(\"retrieveTodo\", \"Retrieve A TodoList\",\r\n 175, 100, 150, 25, JComponent.CENTER_ALIGNMENT, \"cli.wav\");\r\n panelSelectFile.add(clickRetrieve);\r\n JTextField textFieldName = makeJTextField(1, 100, 150, 150, 25);\r\n textFieldName.setName(\"Name\");\r\n panelSelectFile.add(textFieldName);\r\n JButton clickNew = makeButton(\"newTodo\", \"Make New TodoList\",\r\n 250, 150, 150, 25, JComponent.CENTER_ALIGNMENT, \"cli.wav\");\r\n panelSelectFile.add(clickNew);\r\n panelSelectFile.setBackground(Color.WHITE);\r\n jframe.setBackground(Color.PINK);\r\n jframe.setVisible(true);\r\n }", "public FDRSettingsPanel() {\n initComponents();\n }", "public NewFetureKeyPanel() {\n initComponents();\n }", "public NewJFrame() {\n initComponents();\n \n \n //combo box\n comboCompet.addItem(\"Séléction officielle\");\n comboCompet.addItem(\"Un certain regard\");\n comboCompet.addItem(\"Cannes Courts métrages\");\n comboCompet.addItem(\"Hors compétitions\");\n comboCompet.addItem(\"Cannes Classics\");\n \n \n //redimension\n this.setResizable(false);\n \n planning = new Planning();\n \n \n }", "private void fillPanel(){\n\t\t\tcontent.setLayout(new GridLayout(9,1));\n\t\t\tcontent.setBackground(Color.BLACK);\n\t\t\tcontent.add(playerNameLabel);\n\t\t\tcontent.add(playerNameField);\n\t\t\tcontent.add(placeHolder);\n\t\t\tcontent.add(passwordLabel);\n\t\t\tcontent.add(passwordField);\n\t\t\tcontent.add(passwordLabelRepeat);\n\t\t\tcontent.add(passwordFieldRepeat);\n\t\t\tcontent.add(placeHolder2);\n\t\t\tcontent.add(createButton);\t\n\t\t}", "private JPanel makeControlPanel() {\n\n final JPanel panel = new JPanel(new FlowLayout(3));\n final JButton refreshButton = new JButton(new ImageIcon(iconMaker(\"refreshREAL.png\")));\n refreshButton.setFocusPainted(false);\n refreshButton.addActionListener(this::refreshButtonClicked);\n refreshButton.setToolTipText(\"Refresh Item Price(s)\");\n //checkButton.setPreferredSize(new Dimension(25,25));\n JButton viewLink = new JButton(new ImageIcon(iconMaker(\"visitSite.png\")));\n viewLink.setToolTipText(\"Visit Item Website\");\n JButton deleteItem = new JButton(new ImageIcon(iconMaker(\"delete.png\")));\n deleteItem.setToolTipText(\"Remove Item\");\n JButton addItem = buttonMaker(\"additem.png\");\n addItem.setToolTipText(\"Add Item to Price Watcher\");\n JButton editItem = buttonMaker(\"edititem.png\");\n editItem.setToolTipText(\"Edit Item Details\");\n\n\n viewLink.setFocusPainted(false);\n deleteItem.setFocusPainted(false);\n\n viewLink.addActionListener(this::viewPageClicked);\n panel.add(refreshButton);\n panel.add(viewLink);\n panel.add(deleteItem);\n panel.add(addItem);\n panel.add(editItem);\n\n return panel;\n }", "public void addPanelControls() {\n\t\tlist_sort = new JComboBox<>(new String[] { \"MSSV\", \"HoTen\", \"NTNS\" });\r\n\t\tbtn_sapxep = new JButton(\"Sap xep\");\r\n\t\tbtn_them = new JButton(\"Them\");\r\n\t\tbtn_xoa = new JButton(\"Xoa\");\r\n\t\tbtn_save = new JButton(\"Save\");\r\n\t\tbtn_load = new JButton(\"Load\");\r\n\r\n\t\tJPanel mControlPanel = new JPanel(new GridLayout(5, 1));\r\n\t\tmControlPanel.add(btn_them);\r\n\t\tmControlPanel.add(btn_xoa);\r\n\t\tJPanel sapxepPanel = new JPanel();\r\n\t\tsapxepPanel.add(list_sort);\r\n\t\tsapxepPanel.add(btn_sapxep);\r\n\t\tmControlPanel.add(sapxepPanel);\r\n\t\tmControlPanel.add(btn_save);\r\n\t\tmControlPanel.add(btn_load);\r\n\r\n\t\tmControlPanel.setPreferredSize(new Dimension(380, 200));\r\n\t\tmControlPanel.setBorder(new TitledBorder(\"Controls\"));\r\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\r\n\t\tc.weightx = 0.5;\r\n\t\tc.gridx = 1;\r\n\t\tc.gridy = 0;\r\n\t\tpanel.add(mControlPanel,c);\r\n\t}", "private void createWidgets() {\n\n\t\tJPanel filmPanel = createFilmPanel();\n\t\tJPanel musicPanel = createMusicPanel();\n\t\tJPanel unclassPanel = createUnclassifiedPanel();\n\n\t\tthis.add(filmPanel);\n\t\tthis.add(musicPanel);\n\t\tthis.add(unclassPanel);\n\t}", "private JPanel createContentPanel() {\n JPanel panel = new JPanel();\n panel.setLayout(new MigLayout());\n panel.setPreferredSize(new Dimension(400, 300));\n panel.setOpaque(true);\n panel.setBorder(BorderFactory.createTitledBorder(\n localization.get(\"AttributesTitle\")));\n\n roomNameField = LabeledComponent\n .textField(localization.get(\"RoomNameLabel\"),\n new InfoPanelDocListener(this, new SetName()));\n roomNameField.addToPanel(panel);\n\n includeField = LabeledComponent\n .textField(localization.get(\"IncludeLabel\"),\n new InfoPanelDocListener(this, new SetInclude()));\n includeField.addToPanel(panel);\n\n inheritField = LabeledComponent\n .textField(localization.get(\"InheritLabel\"),\n new InfoPanelDocListener(this, new SetInherit()));\n inheritField.addToPanel(panel);\n\n buildStreetNameField(panel);\n\n buildAddEditStreetsButton(panel);\n\n buildColorSelector(panel);\n\n shortDescriptionField = LabeledComponent\n .textField(localization.get(\"ShortDescLabel\"),\n new InfoPanelDocListener(this, new SetShort()));\n panel.add(shortDescriptionField.getLabel());\n panel.add(shortDescriptionField.getComponent(), \"span, grow, wrap\");\n\n determinateField = LabeledComponent\n .textField(localization.get(\"DeterminateLabel\"),\n new InfoPanelDocListener(this, new SetDeterminate()));\n determinateField.addToPanel(panel);\n\n lightField = LabeledComponent\n .textField(localization.get(\"LightLabel\"),\n new InfoPanelDocListener(this, new SetLight()));\n lightField.addToPanel(panel);\n\n longDescriptionField = LabeledComponent\n .textArea(localization.get(\"LongDescLabel\"),\n new InfoPanelDocListener(this, new SetLong()));\n panel.add(longDescriptionField.getLabel(), \"wrap\");\n panel.add(longDescriptionField.getComponent(), \"span, grow\");\n\n return panel;\n }", "private DockLayoutPanel createWestPanel() {\n\t\tSafeHtml safeHtml = SafeHtmlUtils.fromString(\n\t\t\t\t\"Logout\\nusuário: \" + getUserEmailFromJavascript() + \" \\nperfil: \" + getProfile().getName());\n\n\t\tAnchor link = new Anchor(safeHtml, getLogoutUrlFromJavascript());\n\n\t\tVerticalPanel verticalPanel = new VerticalPanel();\n\t\tLabel titleLabel = new Label(\"Sítio do físico\");\n\t\ttitleLabel.addStyleName(\"titleLabel\");\n\t\tverticalPanel.add(titleLabel); // TODO\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// internationalization\n\t\tverticalPanel.add(link);\n\n\t\tDockLayoutPanel dockLayoutPanel = new DockLayoutPanel(Unit.PCT);\n\t\tdockLayoutPanel.addNorth(verticalPanel, 13);\n\n\t\twestAuxiliarPanel = new VerticalPanel();\n\n\t\twestAuxiliarPanel.setVisible(false);\n\t\tdockLayoutPanel.add(westAuxiliarPanel);\n\t\treturn dockLayoutPanel;\n\t}", "public LocalPanel() {\r\n\t\tinitComponents();\r\n\t}", "private JPanel buildMainPanel() {\n FormLayout layout = new FormLayout(\"pref:grow\",\n \"pref, 3dlu, pref, 3dlu, pref, 12dlu, pref, 3dlu, pref, pref, \"\n + \"pref, pref, 9dlu, pref, 3dlu, pref, \"\n + \"pref, pref, pref, 0:grow, pref\");\n\n PanelBuilder builder = new PanelBuilder(layout);\n // Bottom border\n builder.setBorder(Borders.createEmptyBorder(\"1dlu, 3dlu, 2dlu, 3dlu\"));\n CellConstraints cc = new CellConstraints();\n\n int row = 1;\n\n builder.addSeparator(Translation.getTranslation(\"status_tab.status\"),\n cc.xy(1, row));\n row += 2;\n builder.add(synchronizationStatusLabel, cc.xy(1, row));\n row += 2;\n builder.add(synchronizationDateLabel, cc.xy(1, row));\n row += 2;\n\n builder.addSeparator(Translation.getTranslation(\"status_tab.you_have\"),\n cc.xy(1, row));\n row += 2;\n builder.add(newNoticesLine.getUIComponent(), cc.xy(1, row));\n row++;\n builder.add(filesAvailableLine.getUIComponent(), cc.xy(1, row));\n row++;\n builder.add(downloadsLine.getUIComponent(), cc.xy(1, row));\n row++;\n builder.add(uploadsLine.getUIComponent(), cc.xy(1, row));\n row += 2;\n\n builder.addSeparator(\n Translation.getTranslation(\"status_tab.online_storage.title\"),\n cc.xy(1, row));\n row += 2;\n builder.add(onlineStorageAccountLabel.getUIComponent(), cc.xy(1, row));\n row++;\n builder.add(onlineStorageSection.getUIComponent(), cc.xy(1, row));\n row++;\n builder.add(licenseInfoSection.getUIComponent(), cc.xy(1, row));\n row++;\n builder.add(buyNowLabel.getUIComponent(), cc.xy(1, row));\n if (PreferencesEntry.SHOW_TELL_A_FRIEND\n .getValueBoolean(getController()))\n {\n row += 2;\n builder.add(tellFriendLabel.getUIComponent(), cc.xy(1, row));\n }\n\n return builder.getPanel();\n }", "@SuppressWarnings({ \"unused\", \"unchecked\", \"rawtypes\" })\r\n\tprivate void buildPanel() {\r\n\t\tageField = new JComboBox(ageRanges);\r\n\t\tfNameField = new JTextField(20);\r\n\t\tGhostText fNameGhost = new GhostText(fNameField, \"First Name\");\r\n\t\tlNameField = new JTextField(20);\r\n\t\tGhostText lNameGhost = new GhostText(lNameField, \"Last Name\");\r\n\t\tmInitField = new JTextField(2);\r\n\t\tGhostText mInitGhost = new GhostText(mInitField, \"M\");\r\n\t\temailField = new JTextField(20);\r\n\t\tGhostText emailGhost = new GhostText(emailField, \"Email\");\r\n\t\tphoneNumberField = new JTextField(12);\r\n\t\timage = new JLabel();\r\n\t\tGhostText phoneNoGhost = new GhostText(phoneNumberField, \"Phone Number\");\r\n\t\tJPanel namePanel = new JPanel();\r\n\t\tJPanel emailPhoneAgePanel = new JPanel();\r\n\t\tJPanel northPanel = new JPanel();\r\n\t\tJPanel centerPanel = new JPanel();\r\n\t\temailPhoneAgePanel.setLayout(new GridLayout(0, 3));\r\n\t\temailPhoneAgePanel.setSize(new Dimension(400, 25));\r\n\t\temailPhoneAgePanel.setMaximumSize(new Dimension(400, 25));\r\n\t\tregisterButton = new JButton(\"Register & Save\");\r\n\t\tregisterButton.addActionListener(new registerButtonAction());\r\n\t\tregisterButton.setEnabled(false);\r\n\t\tuploadButton = new JButton(\"Upload Photo\");\r\n\t\tuploadButton.addActionListener(new uploadListener());\r\n\t\tnamePanel.add(fNameField);\r\n\t\tnamePanel.add(lNameField);\r\n\t\tnamePanel.add(mInitField);\r\n\t\tnamePanel.setBackground(Color.BLACK);\r\n\t\tnamePanel.setLayout(new GridBagLayout());\r\n\t\temailPhoneAgePanel.add(emailField);\r\n\t\temailPhoneAgePanel.add(phoneNumberField);\r\n\t\temailPhoneAgePanel.add(ageField);\r\n\t\temailPhoneAgePanel.setBackground(Color.BLACK);\r\n\t\temailPhoneAgePanel.setLayout(new GridBagLayout());\r\n\t\tcenterPanel.add(image);\r\n\t\tJPanel buttonPanel = new JPanel();\r\n\t\tbuttonPanel.add(uploadButton);\r\n\t\tbuttonPanel.add(registerButton);\r\n\t\tnorthPanel.add(namePanel, BorderLayout.NORTH);\r\n\t\tnorthPanel.add(emailPhoneAgePanel, BorderLayout.CENTER);\r\n\t\tnorthPanel.setBackground(Color.BLACK);\r\n\t\tcenterPanel.setBackground(Color.BLACK);\r\n\t\tthis.add(northPanel, BorderLayout.NORTH);\r\n\t\tthis.add(centerPanel, BorderLayout.CENTER);\r\n\t\tthis.add(buttonPanel, BorderLayout.SOUTH);\t\r\n\t\t}", "protected JPanel makeNewJPanel1() {\n\t\t// a variable tempPanel holds an instance of JPanel\n\t\tfinal JPanel tempPanel1 = new JPanel();\n\t\t// set the Layout of tempPanel to be a FlowLayout aligned left\n\t\ttempPanel1.setLayout(new FlowLayout(FlowLayout.RIGHT));\n\t\t// function returns the tempPanel\n\t\treturn tempPanel1;\n\t}", "JPanel createFilePane()\n {\n /*\n * Use a BoxLayout pane for the filename field and browse button.\n */\n JPanel tFilePane = new JPanel();\n tFilePane.setLayout(new BoxLayout(tFilePane, BoxLayout.LINE_AXIS));\n tFilePane.add(_fileTextField);\n tFilePane.add(Box.createRigidArea(new Dimension(5, 0)));\n tFilePane.add(_fileBrowseButton);\n\n return tFilePane;\n }", "private void initPanel() {\r\n panel = new JDialog(mdiForm);\r\n panel.setTitle(\"Groups\");\r\n panel.setSize(325, 290);\r\n panel.getContentPane().add(groupsController.getControlledUI());\r\n Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\r\n java.awt.Dimension dlgSize = panel.getSize();\r\n int x = screenSize.width/1 - ((dlgSize.width/1)+20);\r\n int y = screenSize.height/1 - ((dlgSize.height/1)+60);\r\n panel.setLocation(x, y);\r\n panel.setFocusable(false);\r\n panel.show();\r\n panel.setDefaultCloseOperation(JDialog.DO_NOTHING_ON_CLOSE);\r\n panel.addWindowListener(new java.awt.event.WindowAdapter() {\r\n public void windowClosing(java.awt.event.WindowEvent event) {\r\n panel.dispose();\r\n maintainSponsorHierarchyBaseWindow.mnuItmPanel.setSelected(false);\r\n maintainSponsorHierarchyBaseWindow.btnPanel.setSelected(false);\r\n }\r\n });\r\n }", "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}", "private void buildFrame() {\n String title = \"\";\n switch (formType) {\n case \"Add\":\n title = \"Add a new event\";\n break;\n case \"Edit\":\n title = \"Edit an existing event\";\n break;\n default:\n }\n frame.setTitle(title);\n frame.setResizable(false);\n frame.setPreferredSize(new Dimension(300, 350));\n frame.pack();\n frame.setLocationRelativeTo(null);\n frame.setVisible(true);\n\n frame.addWindowListener(new WindowAdapter() {\n @Override\n public void windowClosing(WindowEvent e) {\n // sets the main form to be visible if the event form was exited\n // and not completed.\n mainForm.getFrame().setEnabled(true);\n mainForm.getFrame().setVisible(true);\n }\n });\n }", "private JPanel getFilePanel() {\n\t\tif (filePanel == null) {\n\t\t\tfilePanel = new JPanel();\n\t\t\tfilePanel.add(getBtnAnnexateDocument());\n\t\t\tfilePanel.add(getBtnAddFile());\n\t\t\tfilePanel.add(getBtnDownloadDocument());\n\t\t}\n\t\treturn filePanel;\n\t}", "public JComponent createFieldsPlayer() {\n \tJPanel namePanel = new JPanel(new SpringLayout());\n \t\n \tString[] labelStrings = {\n// \t\t\t\"User ID: \",\n \t\t\t\"First Name: \",\n \t\t\t\"Last Name: \" \t\t\t\n \t};\n \t\n \tpLabels = new JLabel[labelStrings.length];\n \tJComponent[] fields = new JComponent[labelStrings.length];\n \tint fieldNum = 0;\n \t\n \tfirstFieldP = new JTextField();\n \tfirstFieldP.setColumns(20);\n \tfields[fieldNum++] = firstFieldP;\n \t\n \tlastFieldP = new JTextField();\n \tlastFieldP.setColumns(20);\n \tfields[fieldNum++] = lastFieldP;\n \t\n \tnamePanel.setOpaque(false);\n \t\n \t//Associate label/field pairs, add everything and lay it out\n \tfor(int i=0; i<labelStrings.length;i++) {\n \t\tpLabels[i] = new JLabel(labelStrings[i], JLabel.TRAILING);\n \t\tpLabels[i].setLabelFor(fields[i]);\n \t\tnamePanel.add(pLabels[i]);\n \t\tnamePanel.add(fields[i]);\n \t\t\n \t\t// for each field, create a spinner for every entry added\n \t\t/****** To Do ********/\n \t}\n \tSpringUtilities.makeCompactGrid(namePanel, labelStrings.length, 2, \n \t\t\t\t\t\t\t\t\tGAP, GAP, //init x,y\n \t\t\t\t\t\t\t\t\tGAP, GAP/2); //xpad, ypad\n \treturn namePanel; \t \t\n }", "@DISPID(1611005968) //= 0x60060010. The runtime will prefer the VTID if present\n @VTID(43)\n boolean newWithPanel();", "public ControlPanel() {\n\t\tpanelName = null;\n\t}", "private void setupPanel()\n\t{\n\t\tthis.setLayout(baseLayout);\n\t\tthis.add(firstButton);\n\t\tthis.add(firstField);\n\t}", "public ControladorPanel() { }", "public InfoPanel()\n\t\t{\n\t\t\t//setting color and instantiating textfield and button\n\t\t\tsetBackground(bCol);\n\t\t\tnameJF = new JTextField(\"Type Your Name\", 20);\n\t\t\tFont naFont = new Font(\"Serif\", Font.PLAIN, 25);\n\t\t\tnameJF.setFont(naFont);\n\t\t\tsub = new JButton(\"Submit\");\n\t\t\tsub.addActionListener(this);\n\t\t\tsub.setFont(naFont);\n\t\t\tname = new String(\"\");\n\t\t\tadd(nameJF);\n\t\t\tadd(sub);\n\t\t}", "protected void createMainPanel() {\n\t\tthis.mainPanel = new VerticalPanel(); \n\t\tthis.mainPanel.setSpacing(5);\n\t\tthis.mainPanel.setScrollMode(getScrollMode());\n\t}", "private static void createAndShowGUI() {\n JFrame frame = new JFrame(\"Firma digital\");\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n frame.setLocationRelativeTo(null);\r\n\r\n //Create and set up the content pane.\r\n final FirmaDigital newContentPane = new FirmaDigital(frame);\r\n newContentPane.setOpaque(true); //content panes must be opaque\r\n frame.setContentPane(newContentPane);\r\n\r\n //Make sure the focus goes to the right component\r\n //whenever the frame is initially given the focus.\r\n frame.addWindowListener(new WindowAdapter() {\r\n public void windowActivated(WindowEvent e) {\r\n newContentPane.resetFocus();\r\n }\r\n });\r\n\r\n //Display the window.\r\n frame.pack();\r\n frame.setVisible(true);\r\n }", "private void filesPanel() {\n\t\tJPanel FilesPanel = new JPanel();\n\t\tFilesPanel.setSize(filesPanelDimension);\n\t\tFilesPanel.setBorder(BorderFactory.createLineBorder(Color.BLACK));\n\t\tFilesPanel.setLayout(new GridLayout(5, 1, 6, 2));\n\t\tFilesPanel.setComponentOrientation(ComponentOrientation.LEFT_TO_RIGHT);\n\t\t\n\t\t//Label title\n\t\tJLabel filesLabel = new JLabel(\"Files Import\");\n\t\tfilesLabel.setHorizontalAlignment(0);\n\t\tFilesPanel.add(filesLabel);\n\t\t\n\t\t//Spam Tools File - rules.cf\n\t\tJPanel rulesPanel = new JPanel();\n\t\trulesPanel.setSize(frameWidth, 40);\n\t\trulesPanel.setLayout(new GridLayout(2, 1, 1, 2));\n\t\tJLabel rulesFileTitle = new JLabel(\"Rules File\");\n\t\trulesPanel.add(rulesFileTitle);\n\t\trulesFile_Input = new JTextField(\"rules.cf\"); \n\t\trulesFile_Input.setBorder(BorderFactory.createLineBorder(Color.BLACK));\n\t\trulesFile_Input.setSize(inputsDimension);\n\t\trulesPanel.add(rulesFile_Input);\n\t\tFilesPanel.add(rulesPanel);\n\t\t\n\t\t//Valid Emails - ham.log\n\t\tJPanel hamPanel = new JPanel();\n\t\thamPanel.setSize(frameWidth, 40);\n\t\thamPanel.setLayout(new GridLayout(2, 1, 1, 2));\n\t\tJLabel hamFileTitle = new JLabel(\"Ham File\");\n\t\thamPanel.add(hamFileTitle);\n\t\thamFile_Input = new JTextField(\"ham.log\");\n\t\thamFile_Input.setBorder(BorderFactory.createLineBorder(Color.BLACK));\n\t\thamFile_Input.setSize(inputsDimension);\n\t\thamPanel.add(hamFile_Input);\n\t\tFilesPanel.add(hamPanel);\n\t\t\n\t\t//Spam Emails - spam.log\n\t\tJPanel spamPanel = new JPanel();\n\t\tspamPanel.setSize(frameWidth, 40);\n\t\tspamPanel.setLayout(new GridLayout(2, 1, 1, 2));\n\t\tJLabel spamFileTitle = new JLabel(\"SPAM File\");\n\t\tspamPanel.add(spamFileTitle);\n\t\tspamFile_Input = new JTextField(\"spam.log\");\n\t\tspamFile_Input.setBorder(BorderFactory.createLineBorder(Color.BLACK));\n\t\tspamFile_Input.setSize(inputsDimension);\n\t\tspamPanel.add(spamFile_Input);\n\t\tFilesPanel.add(spamPanel);\n\t\t\n\t\t//Get Files Button\n\t\tJPanel buttonPanel = new JPanel();\n\t\tbuttonPanel.setComponentOrientation(ComponentOrientation.LEFT_TO_RIGHT);\n\t\tbuttonPanel.setSize(frameWidth/2, 40);\n\t\tgetFilesButton.setHorizontalAlignment(0);\n\t\tbuttonPanel.add(getFilesButton);\n\t\tFilesPanel.add(buttonPanel);\n\t\t\n\t\tgetFilesButton.addActionListener(\n\t\t\tnew ActionListener(){\n\t\t\t\tpublic void actionPerformed(ActionEvent e){\n\t\t\t\t\ttry {\n\t\t\t\t\t\tcopyFiles(BoardControl.getFile(rulesFile_Input.getText()), AntiSpamFilterControl.rules);\n\t\t\t\t\t\tAntiSpamFilterControl.treatRulesFile();\n\t\t\t\t\t\tcopyFiles(BoardControl.getFile(hamFile_Input.getText()), AntiSpamFilterControl.ham);\n\t\t\t\t\t\tcopyFiles(BoardControl.getFile(spamFile_Input.getText()), AntiSpamFilterControl.spam);\n\t\t\t\t\t\tstartFilesConfig(false);\n\t\t\t\t\t\tstartSpamFilterTest(true);\n\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t);\n\t\t\n\t\tframe.add(FilesPanel);\n\t}", "private JPanel getPanel() {\n\t\tint width = resources.getSize().width / 5;\n\t\tint height = resources.getSize().height / 14;\n\n\t\tJLabel limit = createJLabelImg(\"textfield.png\", width - width / 15,\n\t\t\t\theight, 1f);\n\t\tint limitWidth = limit.getIcon().getIconWidth();\n\t\tint limitHeight = limit.getIcon().getIconHeight();\n\n\t\ton = createJLabelImg(\"toggle_on.png\", limitWidth, limitHeight, 1f)\n\t\t\t\t.getIcon();\n\t\toff = createJLabelImg(\"toggle_off.png\", limitWidth, limitHeight, 1f)\n\t\t\t\t.getIcon();\n\n\t\ttoggle = new JCheckBox();\n\t\ttoggle.setSelectedIcon(on);\n\t\ttoggle.setIcon(off);\n\t\ttoggle.setEnabled(true);\n\t\ttoggle.setSelected(value);\n\t\ttoggle.setCursor(new Cursor(Cursor.HAND_CURSOR));\n\t\ttoggle.setFocusable(false);\n\t\ttoggle.setBorder(null);\n\t\ttoggle.setOpaque(false);\n\n\t\tint indent = limitWidth / 25;\n\t\tint textWidthLimit = limitWidth - indent * 2 - on.getIconWidth();\n\t\tString fieldStr = Util.clipText(fieldName + \" \",\n\t\t\t\tresources.getFont(\"italic\", 15f), textWidthLimit);\n\t\tJLabel label = new JLabel(fieldStr);\n\t\tlabel.setFont(resources.getFont(\"italic\", 15f));\n\t\tlabel.setForeground(resources.getTextColor());\n\n\t\tJPanel toggleWrapper = new JPanel(new FlowLayout(FlowLayout.LEFT,\n\t\t\t\tindent, 0));\n\t\ttoggleWrapper.setOpaque(false);\n\t\ttoggleWrapper.setPreferredSize(new Dimension(limitWidth, limitHeight));\n\t\ttoggleWrapper.setMaximumSize(toggleWrapper.getPreferredSize());\n\t\ttoggleWrapper.add(toggle);\n\t\ttoggleWrapper.add(label);\n\n\t\tJPanel container = new JPanel(new FlowLayout(FlowLayout.LEFT, 0,\n\t\t\t\theight / 7));\n\t\tcontainer.setOpaque(false);\n\t\tcontainer.add(toggleWrapper);\n\t\tcontainer.setPreferredSize(new Dimension(width, container\n\t\t\t\t.getPreferredSize().height));\n\t\tcontainer.setMaximumSize(container.getPreferredSize());\n\n\t\treturn container;\n\t}", "public JPanel createNewVersionPanel()\n\t{\n\t\t// Create and configure JPanels\n\t\tnewVersionPanel = new JPanel();\n\t\tnewVersionPanel.setLayout(new BoxLayout(newVersionPanel, BoxLayout.PAGE_AXIS));\n\t\tnewVersionPanel.setBorder(new CompoundBorder(new TitledBorder(\"New version\"), new EmptyBorder(8, 0, 0, 0)));\n\n\t\tnewVersionDescriptionPanel = new JPanel();\n\t\tnewVersionDescriptionPanel.setLayout(new BoxLayout(newVersionDescriptionPanel, BoxLayout.PAGE_AXIS));\n\t\t\n\t\t// Create components\n\t\tlabelVersionNumber = new JLabel(\"Version number:\");\n\t\t\n\t\tlabelDescription = new JLabel(\"Descriptions:\");\n\n\t\ttextFieldVersionNumber = new JTextField(20);\n\t\ttextFieldVersionNumber.setMaximumSize(textFieldVersionNumber.getPreferredSize());\n\t\ttextFieldVersionNumber.setAlignmentX(JLabel.LEFT_ALIGNMENT);\n\t\t\n\t\tbuttonAddTextFieldDescription = new JButton(\"+\");\n\t\tbuttonAddTextFieldDescription.addActionListener(this);\n\t\t\n\t\tbuttonAddVersion = new JButton(\"Add version\");\n\t\tbuttonAddVersion.addActionListener(this);\n\n\t\t// Attach components to JPanels\n\t\tnewVersionPanel.add(labelVersionNumber);\n\t\tnewVersionPanel.add(Box.createRigidArea(new Dimension(0, 10)));\n\t\tnewVersionPanel.add(textFieldVersionNumber);\n\t\tnewVersionPanel.add(Box.createRigidArea(new Dimension(0, 20)));\n\t\tnewVersionPanel.add(labelDescription);\n\t\tnewVersionPanel.add(Box.createRigidArea(new Dimension(0, 10)));\n\t\tnewVersionPanel.add(newVersionDescriptionPanel);\n\t\tnewVersionPanel.add(buttonAddTextFieldDescription);\n\t\tnewVersionPanel.add(Box.createRigidArea(new Dimension(0, 20)));\n\t\tnewVersionPanel.add(buttonAddVersion);\n\t\t\n\t\treturn newVersionPanel;\n\t}", "private org.gwtbootstrap3.client.ui.Panel get_f_Panel28() {\n return build_f_Panel28();\n }", "private PanelManager(FlowClient frame) {\r\n\t\t// Swing necessities\r\n\t\tlayout = new CardLayout();\r\n\t\tthis.frame = frame;\r\n\t\tthis.setLayout(layout);\r\n\t\tsetBorder(FlowClient.EMPTY_BORDER);\r\n\r\n\t\t// Creates new panels and adds them to the cardlayout stack\r\n\t\teditTabs = new EditTabs();\r\n\r\n\t\tloginPane = new LoginPane(this);\r\n\t\tadd(loginPane, \"loginPane\");\r\n\r\n\t\tCreateAccountPane createAccountPane = new CreateAccountPane(this);\r\n\t\tadd(createAccountPane, \"createPane\");\r\n\r\n\t\teditPane = new EditPane(this);\r\n\t\tadd(editPane, \"editPane\");\r\n\r\n\t\tdebugPane = new DebugPane(this);\r\n\t\tadd(debugPane, \"debugPane\");\r\n\r\n\t\tSettingsPane settingsTabs = new SettingsPane(this);\r\n\t\tadd(settingsTabs, \"settingsPane\");\r\n\r\n\t\thistoryPane = new HistoryPane(this);\r\n\t\tadd(historyPane, \"historyPane\");\r\n\t}", "public void createAndShowGUI() {\n JFrame.setDefaultLookAndFeelDecorated(true);\n\n //Create and set up the window.\n\tif(open==0)\n\t\tframe = new JFrame(\"Open a file\");\n\telse if(open ==1)\n\t\tframe = new JFrame(\"Save file as\");\n //frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //Create and set up the content pane.\n JComponent newContentPane =this ;\n newContentPane.setOpaque(true); //content panes must be opaque\n frame.setContentPane(newContentPane);\n\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n // frame.setSize(500,500);\n//\tvalidate();\n }", "public NewJFrame() {\n initComponents();\n \n }", "private void buildPanel()\n\t{\n\t\tvoterIDMessage = new JLabel(\"Please Enter Your Voter ID.\");\n\t\tbutton1 = new JButton(\"Cancel\");\n\t\tbutton1.addActionListener(new ButtonListener());\n\t\tbutton2 = new JButton(\"OK\");\n\t\tbutton2.addActionListener(new ButtonListener());\n\t\tidText = new JTextField(10);\n\t\tpanel1 = new JPanel();\n\t\tpanel2 = new JPanel();\n\t\tpanel3 = new JPanel();\n\t\tpanel1.add(voterIDMessage);\n\t\tpanel2.add(idText);\n\t\tpanel3.add(button1);\n\t\tpanel3.add(button2);\n\t}", "private JFrame createFrame() {\n\t\tJFrame frmProfessorgui = new JFrame();\n\t\tfrmProfessorgui.getContentPane().setBackground(new Color(153, 204, 204));\n\t\tfrmProfessorgui.getContentPane().setForeground(SystemColor.desktop);\n\t\tfrmProfessorgui.setTitle(\"ProfessorGUI\");\n\t\tfrmProfessorgui.setBounds(100, 100, 600, 475);\n\t\tfrmProfessorgui.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\tfrmProfessorgui.getContentPane().setLayout(null);\n\n\n\t\t//List, ScrollPane and Button Components\n\t\tmodel = new DefaultListModel();\n\t\tsetList();\n\t\tlist = new JList(model);\n\t\tlist.setBackground(new Color(255, 245, 238));\n\t\tJScrollPane scrollPane = new JScrollPane(list, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);\n\t\tscrollPane.setBounds(10, 46, 293, 365);\n\t\tfrmProfessorgui.getContentPane().add(scrollPane);\n\n\t\tlist.setFont(new Font(\"Dialog\", Font.PLAIN, 13));\n\t\tlist.setBorder(new LineBorder(new Color(128, 128, 128), 2, true));\n\n\t\tcourse = new JButton(\"View Course\");\n\t\tcourse.setFont(new Font(\"Dialog\", Font.PLAIN, 13));\n\t\tcourse.addActionListener(new profMainListener());\n\n\t\tcourse.setBounds(390, 207, 126, 22);\n\t\tfrmProfessorgui.getContentPane().add(course);\n\n\t\tcreate = new JButton(\"Create Course\");\n\t\tcreate.setFont(new Font(\"Dialog\", Font.PLAIN, 13));\n\t\tcreate.setBounds(390, 250, 126, 22);\n\t\tfrmProfessorgui.getContentPane().add(create);\n\t\tcreate.addActionListener(new profMainListener());\n\n\t\tactivate = new JButton(\"Activate\");\n\t\tactivate.addActionListener(new profMainListener()); \n\t\tactivate.setFont(new Font(\"Dialog\", Font.PLAIN, 13));\n\t\tactivate.setBounds(390, 296, 126, 22);\n\t\tfrmProfessorgui.getContentPane().add(activate);\n\n\t\tdeactivate = new JButton(\"Deactivate\");\n\t\tdeactivate.addActionListener(new profMainListener());\n\n\t\tdeactivate.setFont(new Font(\"Dialog\", Font.PLAIN, 13));\n\t\tdeactivate.setBounds(390, 340, 126, 22);\n\t\tfrmProfessorgui.getContentPane().add(deactivate);\n\n\n\t\t//Aesthetic Pieces\n\t\tJLabel lblCourseList = new JLabel(\"Course List\");\n\t\tlblCourseList.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblCourseList.setFont(new Font(\"Dialog\", Font.BOLD, 16));\n\t\tlblCourseList.setBounds(21, 11, 261, 24);\n\t\tfrmProfessorgui.getContentPane().add(lblCourseList);\n\n\t\tJLabel lblWelcome = new JLabel(\"Welcome\");\n\t\tlblWelcome.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblWelcome.setFont(new Font(\"Dialog\", Font.BOLD, 16));\n\t\tlblWelcome.setBounds(357, 49, 191, 46);\n\t\tfrmProfessorgui.getContentPane().add(lblWelcome);\n\n\t\tJLabel lblNewLabel = new JLabel(prof.getFirstName() + \" \" + prof.getLastName());\n\t\tlblNewLabel.setFont(new Font(\"Dialog\", Font.ITALIC, 16));\n\t\tlblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblNewLabel.setBounds(335, 82, 239, 40);\n\t\tfrmProfessorgui.getContentPane().add(lblNewLabel);\n\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setBorder(new LineBorder(new Color(128, 128, 128), 2, true));\n\t\tpanel.setBackground(new Color(204, 255, 255));\n\t\tpanel.setBounds(367, 178, 174, 213);\n\t\tfrmProfessorgui.getContentPane().add(panel);\n\n\t\treturn frmProfessorgui;\n\t}", "public CreateAccountPanel() {\n initComponents();\n initializeDateChooser();\n }", "public Panel() {\n initComponents();\n\n\n }" ]
[ "0.6648786", "0.6611918", "0.6588808", "0.65808475", "0.6525836", "0.6515016", "0.64967346", "0.649279", "0.64611626", "0.63836426", "0.63820946", "0.63605154", "0.6233764", "0.62262803", "0.6195569", "0.61863136", "0.6183496", "0.6178838", "0.61720836", "0.6171549", "0.6162088", "0.61598223", "0.61417186", "0.6140539", "0.6132887", "0.61258614", "0.61144155", "0.61140764", "0.6111778", "0.60955036", "0.6090627", "0.6084006", "0.60759944", "0.6072112", "0.6072112", "0.6065359", "0.6065022", "0.60588723", "0.6047389", "0.6046352", "0.6039923", "0.60335743", "0.6030815", "0.6024885", "0.6023133", "0.60224044", "0.6021366", "0.6018133", "0.60064286", "0.6000591", "0.5998497", "0.59919757", "0.5987228", "0.5977189", "0.5970907", "0.5969621", "0.5967598", "0.5965924", "0.5965924", "0.595503", "0.5946047", "0.5943316", "0.5938099", "0.59360063", "0.5929142", "0.59272087", "0.5915781", "0.5910964", "0.5910447", "0.58832294", "0.58822215", "0.5876987", "0.5870811", "0.5870674", "0.58618355", "0.58599913", "0.58575684", "0.5853043", "0.584977", "0.5846427", "0.5834044", "0.5830968", "0.58303463", "0.58216846", "0.58083856", "0.5805882", "0.5785953", "0.57837605", "0.57761383", "0.57720745", "0.57714313", "0.5769402", "0.57642615", "0.5751776", "0.5744484", "0.57414985", "0.5735824", "0.57351637", "0.5733975", "0.57260805" ]
0.6290898
12
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() { sectorGroup = new javax.swing.ButtonGroup(); jLabel1 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); serviceUrl = new javax.swing.JTextField(); jLabel3 = new javax.swing.JLabel(); featureTypeName = new javax.swing.JTextField(); jLabel4 = new javax.swing.JLabel(); sectorGlobal = new javax.swing.JRadioButton(); sectorCustom = new javax.swing.JRadioButton(); sectorLbl1 = new javax.swing.JLabel(); sectorLatFrom = new javax.swing.JTextField(); sectorLbl2 = new javax.swing.JLabel(); sectorLatTo = new javax.swing.JTextField(); sectorLbl3 = new javax.swing.JLabel(); sectorLonFrom = new javax.swing.JTextField(); sectorLbl4 = new javax.swing.JLabel(); sectorLonTo = new javax.swing.JTextField(); jLabel9 = new javax.swing.JLabel(); maxDistance = new javax.swing.JTextField(); jLabel5 = new javax.swing.JLabel(); tileDelta = new javax.swing.JTextField(); jLabel6 = new javax.swing.JLabel(); btnOk = new javax.swing.JButton(); btnCancel = new javax.swing.JButton(); btnColor = new javax.swing.JButton(); btnColor.setBackground(color); featureLabelType = new javax.swing.JLabel(); featureLabelTypeName = new javax.swing.JTextField(); queryField = new javax.swing.JLabel(); queryValue = new javax.swing.JTextField(); showTrack = new javax.swing.JCheckBox(); jLabel1.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N jLabel1.setText("Import WFS features"); // NOI18N jLabel2.setText("Service URL:"); // NOI18N serviceUrl.setText("http://demo.luciad.com:8080/OgcAisServices/wfs?"); // NOI18N serviceUrl.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { serviceUrlActionPerformed(evt); } }); jLabel3.setText("Feature type name:"); // NOI18N featureTypeName.setText("AIS_US"); // NOI18N jLabel4.setText("Sector:"); // NOI18N sectorGroup.add(sectorGlobal); sectorGlobal.setText("Global"); // NOI18N sectorGlobal.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { sectorGlobalActionPerformed(evt); } }); sectorGroup.add(sectorCustom); sectorCustom.setSelected(true); sectorCustom.setText("Custom:"); // NOI18N sectorCustom.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { sectorCustomActionPerformed(evt); } }); sectorLbl1.setText("Latitude -> From:"); // NOI18N sectorLatFrom.setText("39"); // NOI18N sectorLbl2.setText("To:"); // NOI18N sectorLatTo.setText("42"); // NOI18N sectorLatTo.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { sectorLatToActionPerformed(evt); } }); sectorLbl3.setText("Longitude -> From:"); // NOI18N sectorLonFrom.setText("-74"); // NOI18N sectorLbl4.setText("To:"); // NOI18N sectorLonTo.setText("-70"); // NOI18N jLabel9.setText("Max visible distance [km]:"); // NOI18N maxDistance.setText("500"); // NOI18N jLabel5.setText("Tile delta [degrees]:"); // NOI18N tileDelta.setText("0.3"); // NOI18N tileDelta.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { tileDeltaActionPerformed(evt); } }); jLabel6.setText("Color:"); // NOI18N btnOk.setText("OK"); // NOI18N btnOk.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnOkActionPerformed(evt); } }); btnCancel.setText("Cancel"); // NOI18N btnCancel.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnCancelActionPerformed(evt); } }); btnColor.setText(" "); // NOI18N btnColor.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnColorActionPerformed(evt); } }); featureLabelType.setText("Feature label type name:"); // NOI18N java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("edu/du/ogc/ais/function/Bundle"); // NOI18N queryField.setText(bundle.getString("WFSLayerPanel.queryField.text")); // NOI18N queryValue.setText(bundle.getString("WFSLayerPanel.queryValue.text")); // NOI18N showTrack.setText(bundle.getString("WFSLayerPanel.showTrack.text")); // NOI18N javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addComponent(jLabel2) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(serviceUrl, javax.swing.GroupLayout.DEFAULT_SIZE, 349, Short.MAX_VALUE)) .addGroup(layout.createSequentialGroup() .addComponent(jLabel3) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(featureTypeName, javax.swing.GroupLayout.DEFAULT_SIZE, 296, Short.MAX_VALUE)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addComponent(btnCancel) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(btnOk, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(layout.createSequentialGroup() .addComponent(featureLabelType) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(featureLabelTypeName, javax.swing.GroupLayout.DEFAULT_SIZE, 251, Short.MAX_VALUE)) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel4) .addComponent(sectorGlobal) .addComponent(sectorCustom) .addGroup(layout.createSequentialGroup() .addGap(21, 21, 21) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(layout.createSequentialGroup() .addComponent(sectorLbl1) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(sectorLatFrom, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addComponent(sectorLbl2) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(sectorLatTo, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(layout.createSequentialGroup() .addComponent(sectorLbl3) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(showTrack) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addComponent(maxDistance, javax.swing.GroupLayout.Alignment.LEADING) .addComponent(sectorLonFrom, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 110, Short.MAX_VALUE) .addComponent(tileDelta, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(18, 18, 18) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addGroup(layout.createSequentialGroup() .addComponent(sectorLbl4) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(sectorLonTo, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(layout.createSequentialGroup() .addComponent(jLabel6) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(btnColor, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))))))) .addComponent(jLabel9) .addComponent(jLabel5) .addComponent(jLabel1) .addGroup(layout.createSequentialGroup() .addComponent(queryField) .addGap(18, 18, 18) .addComponent(queryValue, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGap(0, 0, Short.MAX_VALUE))) .addContainerGap()) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addComponent(jLabel1) .addGap(18, 18, 18) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel2) .addComponent(serviceUrl, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel3) .addComponent(featureTypeName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(featureLabelType) .addComponent(featureLabelTypeName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(18, 18, 18) .addComponent(jLabel4) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(sectorGlobal) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(sectorCustom) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(sectorLbl1) .addComponent(sectorLatFrom, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(sectorLbl2) .addComponent(sectorLatTo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(sectorLbl3) .addComponent(sectorLonFrom, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(sectorLbl4) .addComponent(sectorLonTo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(18, 18, 18) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel9) .addComponent(maxDistance, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel6) .addComponent(btnColor)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel5) .addComponent(tileDelta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(18, 18, 18) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(queryField) .addComponent(queryValue, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(showTrack)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 7, Short.MAX_VALUE) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(btnOk) .addComponent(btnCancel)) .addContainerGap()) ); }
{ "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 kunde() {\n initComponents();\n }", "public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\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 frmMain() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public MusteriEkle() {\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 UploadForm() {\n initComponents();\n }", "public FormHorarioSSE() {\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 JFrmPrincipal() {\n initComponents();\n }", "public Lihat_Dokter_Keseluruhan() {\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.73197734", "0.72914416", "0.72914416", "0.72914416", "0.72862023", "0.72487676", "0.7213741", "0.7207628", "0.7196503", "0.7190263", "0.71850693", "0.71594703", "0.7147939", "0.7093137", "0.70808756", "0.70566356", "0.6987119", "0.69778043", "0.6955563", "0.6953879", "0.6945632", "0.6943359", "0.69363457", "0.6931661", "0.6927987", "0.6925778", "0.6925381", "0.69117576", "0.6911631", "0.68930036", "0.6892348", "0.6890817", "0.68904495", "0.6889411", "0.68838716", "0.6881747", "0.6881229", "0.68778914", "0.6876094", "0.6874808", "0.68713", "0.6859444", "0.6856188", "0.68556464", "0.6855074", "0.68549985", "0.6853093", "0.6853093", "0.68530816", "0.6843091", "0.6837124", "0.6836549", "0.6828579", "0.68282986", "0.68268806", "0.682426", "0.6823653", "0.6817904", "0.68167645", "0.68102163", "0.6808751", "0.680847", "0.68083245", "0.6807882", "0.6802814", "0.6795573", "0.6794048", "0.6792466", "0.67904556", "0.67893785", "0.6789265", "0.6788365", "0.67824304", "0.6766916", "0.6765524", "0.6765339", "0.67571205", "0.6755559", "0.6751974", "0.67510027", "0.67433685", "0.67390305", "0.6737053", "0.673608", "0.6733373", "0.67271507", "0.67262334", "0.67205364", "0.6716807", "0.67148036", "0.6714143", "0.67090863", "0.67077154", "0.67046666", "0.6701339", "0.67006236", "0.6699842", "0.66981244", "0.6694887", "0.6691074", "0.66904294" ]
0.0
-1
End of variables declaration//GENEND:variables
public void setDialog(JDialog dialog) { this.dialog = dialog; }
{ "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
An Extension function which returns the system date in the required format
@org.jetbrains.annotations.NotNull() public static final java.lang.String getFormattedDate(@org.jetbrains.annotations.NotNull() java.util.Calendar $this$getFormattedDate, @org.jetbrains.annotations.NotNull() java.lang.String format) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String getSystemDate()\n {\n\t DateFormat dateFormat= new SimpleDateFormat(\"_ddMMyyyy_HHmmss\");\n\t Date date = new Date();\n\t return dateFormat.format(date);\n }", "public String getSystemDate() {\n\t\tDate date = new Date();\n\t\treturn date.toString();\n\t}", "private static String getDate()\n\t{\n\t\tString dateString = null;\n\t\tDate sysDate = new Date( System.currentTimeMillis() );\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"dd-MM-yy HH:mm:ss\");\n\t\tdateString = sdf.format(sysDate);\n\t\treturn dateString;\n\t}", "@Test\n\tpublic void systemDate_Get()\n\t{\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"MM-dd-yyyy\");\n\t\t\n\t\t// Created object of Date, to get system current date\n\t\tDate date = new Date();\n\t\t\n\t\tString currDate = dateFormat.format(date);\n\t\t\n\t\tSystem.out.println(\"Today's date is : \"+currDate);\n\n\t}", "public String getSystemDateTime() {\n\t\tjava.text.SimpleDateFormat sdfDate = new java.text.SimpleDateFormat(\"yyyy/MM/dd\");\n java.text.SimpleDateFormat sdfTime = new java.text.SimpleDateFormat(\"HH:mm\");\n Date now = new Date();\n String strDate = sdfDate.format(now);\n String strTime = sdfTime.format(now);\n System.out.println(\"Date: \" + strDate);\n System.out.println(\"Time: \" + strTime); \n return \"date\"+strDate+\" \"+strTime;\n\t}", "protected final static String getDateStamp() {\n\n\t\treturn\n\n\t\tnew SimpleDateFormat(\"MMM d, yyyy h:mm:ss a zzz\").format(new Date());\n\n\t}", "private static String getDateStr() {\n\t\tDate date = Calendar.getInstance().getTime();\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"MMddyyy\");\n\t\tString dateStr = dateFormat.format(date);\n\t\treturn dateStr;\n\t}", "java.lang.String getToDate();", "java.lang.String getDate();", "DateFormat getDisplayDateFormat();", "public static java.lang.String getDateFormat() {\r\n\t\treturn getDBLayer().getDateFormat();\r\n\t}", "public String getUserDateString() {\n\t\tString[] tmpArr = this.getUserDate();\n\t\tString year = tmpArr[0];\n\t\tString month = tmpArr[1];\n\t\tString day = tmpArr[2];\n\t\tString out = year + \"/\" + month + \"/\" + day;\n\t\treturn out;\n\t}", "String getDate();", "String getDate();", "public static String getDateString(){\n\t\t\tCalendar now = Calendar.getInstance();\n\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd__HH-mm-ss\");\n\t\t\treturn sdf.format(now.getTime());\n\t }", "public String ConvertDate(){\r\n//\t\tDate date=JavaUtils.getSystemDate();\r\n//\t DateFormat df = new SimpleDateFormat(\"yyyy/MM/dd\");\r\n\t String pattern = \"yyyy-MM-dd\";\r\n\t SimpleDateFormat simpleDateFormat = new SimpleDateFormat(pattern);\r\n\r\n\t String date = simpleDateFormat.format(new Date());\r\n//\t System.out.println(date);\r\n\t \r\n//\t String s = df.format(date);\r\n//\t String result = s;\r\n//\t try {\r\n//\t date=df.parse(result);\r\n//\t } catch (ParseException e) {\r\n//\t // TODO Auto-generated catch block\r\n//\t e.printStackTrace();\r\n//\t }\r\n\t return date;\r\n\t }", "public static String getCurrentDateTime() {\n String format = null;\n format = sdfNormal.format(new Date());\n return format;\n }", "private String getDateTime() {\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd.MM.yyyy\", Locale.GERMANY);\n Date date = new Date();\n return dateFormat.format(date);\n }", "public static String getDate() {\n return getDate(System.currentTimeMillis());\n }", "public static String getTimeString() {\n SimpleDateFormat formatter = new SimpleDateFormat(\"EEE MMM dd HH:mm:ss yyyy\");\n return formatter.format(new java.util.Date());\n }", "public String getDateString(){\n return Utilities.dateToString(date);\n }", "public String getFormatDate() {\n String formatDate = servletRequest.getHeader(ConstantsCustomers.CUSTOMER_FORMAT_DATE);\n if (StringUtil.isEmpty(formatDate)) {\n formatDate = jwtTokenUtil.getFormatDateFromToken();\n }\n if (StringUtil.isEmpty(formatDate)) {\n formatDate = ConstantsCustomers.APP_DATE_FORMAT_ES;\n }\n return formatDate;\n }", "public String getDateString() {\n DateFormat format = DateFormat.getDateInstance(DateFormat.FULL, Locale.getDefault());\n return format.format(mDate);\n }", "private static String getDate() {\n return new SimpleDateFormat(\"yyyyMMddHHmmss\").format\n (new Date(System.currentTimeMillis()));\n }", "private String easyDateFormat(final String format) {\n Date today = new Date();\n SimpleDateFormat formatter = new SimpleDateFormat(format);\n String datenewformat = formatter.format(today);\n return datenewformat;\n }", "private String getFecha() {\n\t\tLocalDateTime myDateObj = LocalDateTime.now();\n\t\tDateTimeFormatter myFormatObj = DateTimeFormatter.ofPattern(\"dd-MM-yyyy HH:mm:ss\");\n\t\tString formattedDate = myDateObj.format(myFormatObj);\n \n\t\treturn formattedDate;\n }", "public String getPrintFormattedDate() {\n return this.date.format(DateTimeFormatter.ofPattern(\"MMM d yyyy\"));\n }", "public String DateFormatted(){\n\t\tSimpleDateFormat simDate = new SimpleDateFormat(\"E, dd/MM/yy hh:mm:ss a\");\n\t\treturn simDate.format(date.getTime());\n\t}", "private static String formatDate(long date) {\n Date systemDate = new java.util.Date(date * 1000L);\n // the format of your date\n SimpleDateFormat sdf = new java.text.SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n // give a timezone reference for formatting (see comment at the bottom)\n sdf.setTimeZone(java.util.TimeZone.getTimeZone(\"GMT-4\"));\n String formattedDate = sdf.format(systemDate);\n return formattedDate;\n }", "public static String getDate() {\n return getDate(DateUtils.BASE_DATE_FORMAT);\n }", "public String getDate(){\n String d=\"\";\n String m=\"\";\n if(day<10){\n d=0+(String.valueOf(day));\n }\n else{\n d=String.valueOf(day);\n }\n\n if(month<10){\n m=0+(String.valueOf(month));\n }\n else{\n m=String.valueOf(month);\n }\n //returning day/month/year\n return (d+\"/\"+m+\"/\"+String.valueOf(year));\n }", "protected static SimpleDateFormat dateFormat() {\n return dateFormat(true, false);\n }", "public static String getStandardDate(Date date){\n\t\t\n\t\tif(date == null)\n\t\t\tthrow new RuntimeException(\"Given date object is null...\");\n\t\tSimpleDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\treturn format.format(date.getTime());\n\t}", "public static String getDateTime() {\n\t\tString sDateTime=\"\";\n\t\ttry {\n\t\t\tSimpleDateFormat sdfDate = new SimpleDateFormat(\"dd-MM-yyyy\");\n\t\t\tSimpleDateFormat sdfTime = new SimpleDateFormat(\"HH:mm:ss\");\n\t\t\tDate now = new Date();\n\t\t\tString strDate = sdfDate.format(now);\n\t\t\tString strTime = sdfTime.format(now);\n\t\t\tstrTime = strTime.replace(\":\", \"-\");\n\t\t\tsDateTime = \"D\" + strDate + \"_T\" + strTime;\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(e);\n\t\t}\n\t\treturn sDateTime;\n\t}", "protected String getDateString() {\n String result = null;\n if (!suppressDate) {\n result = currentDateStr;\n }\n return result;\n }", "public static String getCurrentDate() {\n\t\tDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\tDate dateobj = new Date();\n\t\treturn df.format(dateobj);\n\t}", "public String getDateAsString(){\n\t\t//\tGet Date\n Date date = getDate();\n if(date != null)\n \treturn backFormat.format(date);\n\t\treturn null;\n\t}", "public static String getYYYYMMDD()\r\n/* 65: */ {\r\n/* 66: 81 */ String nowTime = \"\";\r\n/* 67: 82 */ Date now = new Date();\r\n/* 68: 83 */ SimpleDateFormat formatter = new SimpleDateFormat(\"yyyyMMdd\");\r\n/* 69: 84 */ nowTime = formatter.format(now);\r\n/* 70: 85 */ return nowTime;\r\n/* 71: */ }", "public static String getDate()\n {\n Date date = new Date();\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\n return dateFormat.format(date);\n }", "public java.util.Date getSystemlogdate () {\n\t\treturn systemlogdate;\n\t}", "private String getFormattedDate(Integer format) {\n Date date = new Date(format * 1000L);\n DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss.SSS\");\n dateFormat.setTimeZone(TimeZone.getTimeZone(\"Etc/UTC\"));\n Log.e(\"time\",dateFormat.format(date));\n return dateFormat.format(date);\n }", "public static String getDate() {\n\t\tString\ttoday=\"\";\n\n\t\tCalendar Datenow=Calendar.getInstance();\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t today = formatter.format(Datenow.getTime());\n\n\t return today;\n\t}", "public String getDateTimeFormated(Context context){\n SimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy HH:mm:ss\"\n , context.getResources().getConfiguration().locale);\n sdf.setTimeZone(TimeZone.getDefault());\n return sdf.format(new Date(mDateTime));\n //setting the dateformat to dd/MM/yyyy HH:mm:ss which is how the date is displayed when a dream is saved\n }", "public String getEntryDateString() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy MMM dd\");\n return sdf.format(entryDate.getTime());\n }", "public Date getSystemDateTime(){\n\t\tDate systemDate = new Date();\t\t\n\t\treturn systemDate;\n\t}", "public static String getDate() {\n\t\tDate date = new Date();\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"ddMMYYYY\");\n\t\tString strDate = formatter.format(date);\n\t\treturn strDate;\n\t}", "public static String getDateTime(){\n String pattern = \"MM/dd/yyyy HH:mm:ss\";\n DateFormat df = new SimpleDateFormat(pattern);\n Date today = Calendar.getInstance().getTime();\n String todayAsString = df.format(today);\n return todayAsString;\n }", "public String getStringDate(){\n String finalDate = \"\";\n Locale usersLocale = Locale.getDefault();\n DateFormatSymbols dfs = new DateFormatSymbols(usersLocale);\n String weekdays[] = dfs.getWeekdays();\n int day = date.get(Calendar.DAY_OF_WEEK);\n String nameOfDay = weekdays[day];\n\n finalDate += nameOfDay + \" \" + date.get(Calendar.DAY_OF_MONTH) + \", \";\n\n String months[] = dfs.getMonths();\n int month = date.get(Calendar.MONTH);\n String nameOfMonth = months[month];\n\n finalDate += nameOfMonth + \", \" + date.get(Calendar.YEAR);\n\n return finalDate;\n }", "public String getFileFormattedDate() {\n return this.date.format(DateTimeFormatter.ofPattern(\"yyyy-MM-dd\"));\n }", "public static String getCurrentDate() {\n DateTimeFormatter dtf = DateTimeFormatter.ofPattern(\"dd/MM/yyyy\"); \n LocalDateTime now = LocalDateTime.now(); \n return dtf.format(now);\n }", "private String getDateTime() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"[yyyy/MM/dd - HH:mm:ss]\");\n return sdf.format(new Date());\n }", "private String getDate()\r\n\t{\r\n\t\tCalendar cal = Calendar.getInstance();\r\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\");\r\n\t\treturn sdf.format(cal.getTime());\r\n\t}", "private static String dateFormatLocal(Long timestamp) {\n DateFormat df = dateFormatLocal.get(); \n if (timestamp == null) {\n timestamp = System.currentTimeMillis();\n }\n \n return df.format(new Date(timestamp));\n }", "private static String getFormattedCurrentDateAndTime(){\n StringBuilder dateAndTime = new StringBuilder();\n LocalDateTime now = LocalDateTime.now();\n\n String hour = Integer.toString(now.getHour());\n String minute = Integer.toString(now.getMinute());\n\n if (hour.length() == 1){\n hour = \"0\" + hour;\n }\n if (minute.length() == 1){\n minute = \"0\" + minute;\n }\n\n //Creates \"XX/XX/XX @ XX:XX\" format (24 hours)\n dateAndTime.append(now.getMonthValue()).append(\"/\").\n append(now.getDayOfMonth()).append(\"/\").\n append(now.getYear()).append(\" @ \").\n append(hour).append(\":\").\n append(minute);\n\n return dateAndTime.toString();\n }", "public static String formatDate(Date date) {\n return DateFormat.getDateFormat(BaracusApplicationContext.getContext()).format(date);\n }", "public static String currentDateTime() {\r\n Calendar c = Calendar.getInstance();\r\n return String.format(\"%tB %te, %tY%n%tl:%tM %tp%n\", c, c, c, c, c, c);\r\n }", "public static String currentDate() throws Exception {\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t// get current date time with Date()\n\t\tDate date = new Date();\n\t\t// Now format the date\n\t\tString date1 = dateFormat.format(date);\n\t\t// System.out.println(date1);\n\t\treturn date1;\n\t}", "private String getDateTime() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"[yyyy/MM/dd - HH:mm:ss]\");\n return sdf.format(new Date());\n }", "private String getDateTime() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"[yyyy/MM/dd - HH:mm:ss]\");\n return sdf.format(new Date());\n }", "public static String getCurrentDate()\n\t{\n\t\treturn getDate(new Date());\n\t}", "public static String dateOnly() throws Exception {\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"dd-MM-yyyy\");\n\t\t// get current date time with Date()\n\t\tDate date = new Date();\n\t\t// Now format the date\n\t\tString date1 = dateFormat.format(date);\n\t\t// System.out.println(date1);\n\t\treturn date1;\n\t}", "public String getDateString() {\n int year = date.get(Calendar.YEAR);\n int month = date.get(Calendar.MONTH); // month is stored from 0-11 so adjust +1 for final display\n int day_of_month = date.get(Calendar.DAY_OF_MONTH);\n return String.valueOf(month + 1) + '/' + String.valueOf(day_of_month) + '/' + year;\n }", "private String createDate(){\n SimpleDateFormat date = new SimpleDateFormat(\"EEE, MMM d, yyyy\");\n String stringDate = date.format(new Date()); \n return stringDate;\n }", "String getDateString(Context context) {\n int flags = DateUtils.FORMAT_NO_NOON_MIDNIGHT | DateUtils.FORMAT_SHOW_TIME |\n DateUtils.FORMAT_ABBREV_ALL | DateUtils.FORMAT_SHOW_DATE |\n DateUtils.FORMAT_CAP_AMPM;\n return DateUtils.formatDateTime(context, mDeliveryTime, flags);\n }", "public static String getNowAsTimestamp() {\r\n\r\n DateFormat dateFormat = new SimpleDateFormat(DATE_FORMAT_PATTERN);\r\n dateFormat.setTimeZone(TimeZone.getTimeZone(\"UTC\"));\r\n return dateFormat.format(new Date()).replaceAll(\"\\\\+0000\", \"Z\").replaceAll(\"([+-][0-9]{2}):([0-9]{2})\", \"$1$2\");\r\n }", "public String convertDateToString(){\n\t\tString aDate = \"\";\n\t\taDate += Integer.toString(day);\n\t\taDate += \"/\";\n\t\taDate += Integer.toString(month);\n\t\taDate += \"/\";\n\t\taDate += Integer.toString(year);\n\t\treturn aDate;\n\t}", "static String localDate(String date){\n Date d = changeDateFormat(date, \"dd/MM/yyyy\");\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.FULL, Locale.getDefault());\n return dateFormat.format(d);\n }", "public String dateToString() {\n\t\treturn new String(year + \"/\"\n\t\t\t\t+ month + \"/\"\n\t\t\t\t+ day);\n }", "public static String now() {\n // TODO: move this method to DateUtils\n return fromCalendar(GregorianCalendar.getInstance());\n }", "public static String getDate(Date date)\n\t{\n\t\treturn getFormatString(date, getDateFormat());\n\t}", "public static String getDateFormatForFileName() {\n final DateFormat sdf = new SimpleDateFormat(\"yyyyMMdd_HH-mm-ss\");\n return sdf.format(new Date());\n }", "public static String getDateTime() {\n Calendar cal = Calendar.getInstance(TimeZone.getTimeZone(\"UTC\"));\n Date currentLocalTime = cal.getTime();\n SimpleDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss.SSS\");\n df.setTimeZone(TimeZone.getTimeZone(\"UTC\"));\n String date = df.format(currentLocalTime);\n return date;\n }", "public static String getCurrentTime(String format) {\n\t\tString dateString = \"0000\";\n\t\ttry {\n\t\t\tSimpleDateFormat formatter = new SimpleDateFormat(format);\n\t\t\tDate d = new Date();\n\t\t\tdateString = formatter.format(d);\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t\treturn dateString;\n\t}", "public String getCurrentDateTime(){\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\n \"yyyy-MM-dd HH:mm:ss\", Locale.getDefault()\n );\n Date date = new Date();\n return simpleDateFormat.format(date);\n }", "public static DateFormat defaultFormat() {\n return convertFormat(Locale.getDefault(), \"dd/MM/yyyy hh:mma\");\n }", "public static String getDate()\r\n {\r\n Date now = new Date();\r\n DateFormat df = new SimpleDateFormat (\"yyyy-MM-dd'T'hh-mm-ss\");\r\n String currentTime = df.format(now);\r\n return currentTime; \r\n \r\n }", "public static String now(){\n return now(DATE_FORMAT_PATTERN);\n }", "public static String generateDate()\r\n\t{\r\n\t\tDate d = new Date();\r\n\t\tSimpleDateFormat datef = new SimpleDateFormat(\"YYYY_MM_dd_ss\");\r\n\t\treturn datef.format(d);\r\n\r\n\r\n\t}", "String getSpokenDateString(Context context) {\n int flags = DateUtils.FORMAT_SHOW_TIME | DateUtils.FORMAT_SHOW_DATE;\n return DateUtils.formatDateTime(context, mDeliveryTime, flags);\n }", "public static String getStrUtilDate(java.util.Date date){\n\t\tif(date==null)\n\t\t\treturn fechaNula();\n\t\tString strDate=\"\";\n\t\t\n\t\tif(getDia(date)<10)\n\t\t\tstrDate+=\"0\"+getDia(date);\n\t\telse\n\t\t\tstrDate+=getDia(date);\n\t\tif(getMes(date)<10)\n\t\t\tstrDate+=\"/\"+\"0\"+getMes(date);\n\t\telse\n\t\t\tstrDate+=\"/\"+getMes(date);\n\t\tstrDate+=\"/\"+getAnio(date);\n\t\treturn strDate;\n\t}", "public static String getStrDate(Date date) {\n //TODO get date\n SimpleDateFormat formatter;\n if (DateUtils.isToday(date.getTime())) {\n formatter = new SimpleDateFormat(\"HH:mm\");\n return formatter.format(date);\n }\n formatter = new SimpleDateFormat(\"MMM dd\");\n return formatter.format(date);\n }", "public static String getTodayDate() {\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"yyyyMMdd\");\n return simpleDateFormat.format(new Date());\n }", "public static String generateCurrentDayString() {\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\treturn dateFormat.format(new Date());\n\t}", "public static String getDisplayDateFormat(Date val) {\n\n\t\tif (val != null) {\n\n\t\t\tSimpleDateFormat format = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\t\treturn \"\" + format.format(val);\n\n\t\t} else {\n\n\t\t\treturn null;\n\n\t\t}\n\n\t}", "public static String getCurrentDate() {\n\n long now = System.currentTimeMillis();\n if ((now - currentDateGenerated) > 1000) {\n synchronized (format) {\n if ((now - currentDateGenerated) > 1000) {\n currentDateGenerated = now;\n currentDate = format.format(new Date(now));\n }\n }\n }\n return currentDate;\n\n }", "protected String date(String format, double time) {\n\t\treturn new java.util.Date((long)(time*1000)).toString();\n\t}", "public static String getCurrentDateTime()\n\t{\n\t\treturn getDateTime(new Date());\n\t}", "public String format (Date date , String dateFormat) ;", "private String currentDateTime() {\n DateFormat df = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss.SSSZ\");\n String date = df.format(Calendar.getInstance().getTime());\n return date;\n }", "public String convertDateToString(Date date) {\n\t\tString dateTime = SDF.format(date);\n\t\treturn dateTime;\t\n\t}", "public String getTimestamp() \n{\n Calendar now = Calendar.getInstance();\n return String.format(\"20%1$ty-%1$tm-%1$td_%1$tHh%1$tMm%1$tSs\", now);\n}", "private String getCurrentDate() {\n DateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\");\n Calendar cal = Calendar.getInstance();\n return dateFormat.format(cal.getTime());\n }", "public static String datetimeNow(){\n return now(DATETIME_FORMAT_PATTERN);\n }", "public static String getDateTime() {\n\t\treturn new SimpleDateFormat(\"dd/MM/yyyy HH:mm:ss\").format(new Date());\n\t}", "java.lang.String getFromDate();", "private static Date getFormattedDate(String date){\n\t\tString dateStr = null;\n\t\tif(date.length()<11){\n\t\t\tdateStr = date+\" 00:00:00.0\";\n\t\t}else{\n\t\t\tdateStr = date;\n\t\t}\n\t\tDate formattedDate = null;\n\t\ttry {\n\t\t\tformattedDate = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss.S\").parse(dateStr);\n\t\t} catch (ParseException e) {\n\t\t\tCommonUtilities.createErrorLogFile(e);\n\t\t}\n\t\treturn formattedDate;\n\n\t}", "public String getCurrentDate() {\n\t\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yy\");\n\t\t\t\tDate date = new Date();\n\t\t\t\treturn dateFormat.format(date);\n\t\t\t}", "@Method(selector = \"stringFromDate:toDate:\")\n public native String format(NSDate fromDate, NSDate toDate);", "public final native String toLocaleDateString() /*-{\n return this.toLocaleDateString();\n }-*/;", "public static synchronized String utilDateToString(java.util.Date date) {\r\n\r\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\r\n return sdf.format(date.getTime());\r\n }", "public static String currentDate1() throws Exception {\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd\");\n\t\t// get current date time with Date()\n\t\tDate date = new Date();\n\t\t// Now format the date\n\t\tString date1 = dateFormat.format(date);\n\t\t// System.out.println(date1);\n\t\treturn date1;\n\t}" ]
[ "0.7613014", "0.7212722", "0.7045184", "0.6989063", "0.69784695", "0.6954249", "0.6920097", "0.6897776", "0.6876558", "0.6862648", "0.68619233", "0.6855707", "0.6834916", "0.6834916", "0.6821678", "0.67934734", "0.6754533", "0.67367905", "0.66610706", "0.6649831", "0.6592988", "0.6590917", "0.65457505", "0.6527788", "0.652553", "0.6499411", "0.6488746", "0.64881873", "0.6442052", "0.6438", "0.6419847", "0.6407069", "0.6396214", "0.63810235", "0.6380608", "0.63792974", "0.63485324", "0.63236874", "0.632235", "0.63137454", "0.6300395", "0.62892926", "0.6289047", "0.6277462", "0.6277333", "0.6258194", "0.6253553", "0.62524486", "0.62186193", "0.62170154", "0.6215693", "0.6215414", "0.62073123", "0.62023157", "0.61755085", "0.6171441", "0.6170232", "0.6167559", "0.6167559", "0.61669815", "0.61610204", "0.6154684", "0.61536926", "0.6152668", "0.6149046", "0.61467457", "0.6145138", "0.61434186", "0.614333", "0.6134779", "0.6128979", "0.6121935", "0.6101634", "0.61015034", "0.60981727", "0.6096318", "0.6093332", "0.60904825", "0.6086886", "0.60834706", "0.60826546", "0.60800225", "0.6072333", "0.60674495", "0.606125", "0.60600764", "0.6057175", "0.6052403", "0.6048052", "0.6045756", "0.60451406", "0.60397434", "0.6027785", "0.602101", "0.60097104", "0.6009414", "0.60060555", "0.600401", "0.6000266", "0.5999693", "0.59959126" ]
0.0
-1
An Extension function that get the Date Picker
@org.jetbrains.annotations.NotNull() public static final android.app.DatePickerDialog getDatePicker(@org.jetbrains.annotations.NotNull() java.util.Calendar $this$getDatePicker, @org.jetbrains.annotations.NotNull() android.content.Context context, @org.jetbrains.annotations.NotNull() android.app.DatePickerDialog.OnDateSetListener onDateSetListener) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Date getSelectedDate();", "public Date getSelectDate();", "private void chooseDateFromCalendar(Button dateButton){\n DateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy\");\n Calendar nowCalendar = formatCalendar(Calendar.getInstance());\n\n DatePickerDialog datePickerDialog = new DatePickerDialog(getContext(),\n R.style.Theme_TrainClimbing_DatePicker,\n (v, y, m, d) -> {\n inputCalendar.set(y, m, d);\n if (inputCalendar.after(nowCalendar))\n dateButton.setText(R.string.ad_button_date);\n else\n dateButton.setText(sdf.format(inputCalendar.getTime()));\n }, inputCalendar.get(Calendar.YEAR),\n inputCalendar.get(Calendar.MONTH),\n inputCalendar.get(Calendar.DAY_OF_MONTH));\n\n datePickerDialog.getDatePicker().setFirstDayOfWeek(Calendar.MONDAY);\n datePickerDialog.getDatePicker().setMinDate(formatCalendar(\n new GregorianCalendar(2000, 7, 19)).getTimeInMillis());\n datePickerDialog.getDatePicker().setMaxDate(nowCalendar.getTimeInMillis());\n datePickerDialog.show();\n }", "private void chooseDateDialog() {\n Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DATE);\n\n DatePickerDialog datePickerDialog =\n new DatePickerDialog(Objects.requireNonNull(getContext()), this, year, month, day);\n datePickerDialog.show();\n }", "private DatePicker createDatePicker(boolean veto) {\r\n DatePickerSettings datePickerSettings = new DatePickerSettings();\r\n datePickerSettings.setAllowEmptyDates(false);\r\n datePickerSettings.setAllowKeyboardEditing(false);\r\n DatePicker datePicker = new DatePicker(datePickerSettings);\r\n if (veto) {\r\n // If today is Saturday or Sunday, this sets the default\r\n // to the following Monday\r\n if (LocalDate.now().getDayOfWeek() == DayOfWeek.SATURDAY) {\r\n datePicker.setDate(LocalDate.now().plusDays(3));\r\n } else if (LocalDate.now().getDayOfWeek() == DayOfWeek.SUNDAY) {\r\n datePicker.setDate(LocalDate.now().plusDays(2));\r\n } else datePicker.setDate(LocalDate.now().plusDays(1));\r\n // Veto Policy to disallow weekends\r\n datePickerSettings.setVetoPolicy(new VetoDates());\r\n } else datePicker.setDate(LocalDate.now());\r\n return datePicker;\r\n }", "private void selectDate() {\n Calendar calendar = Calendar.getInstance();\n int year = calendar.get(Calendar.YEAR);\n int month = calendar.get(Calendar.MONTH);\n int day = calendar.get(Calendar.DAY_OF_MONTH);\n DatePickerDialog datePickerDialog = new DatePickerDialog(this, new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(DatePicker datePicker, int year, int month, int day) {\n mDatebtn.setText(day + \"-\" + (month + 1) + \"-\" + year); //sets the selected date as test for button\n }\n }, year, month, day);\n datePickerDialog.show();\n }", "public void openDatePicker() {\n\n Calendar now = Calendar.getInstance();\n DatePickerDialog dpd = DatePickerDialog.newInstance(\n this,\n now.get(Calendar.YEAR),\n now.get(Calendar.MONTH),\n now.get(Calendar.DAY_OF_MONTH)\n );\n dpd.show(getActivity().getFragmentManager(), StringConstants.KEY_DATEPICKER_DIALOG);\n //dpd.setAccentColor(R.color.hb_medication_history);\n dpd.showYearPickerFirst(true);\n dpd.setMaxDate(now);\n dpd.setYearRange(StaticConstants.MIN_DATE, now.get(Calendar.YEAR));\n }", "public void showDatepicker(){\n Calendar cal = Calendar.getInstance();\n int year = cal.get(Calendar.YEAR);\n int month = cal.get(Calendar.MONTH)+1;\n int day = cal.get(Calendar.DAY_OF_MONTH);\n new DatePickerDialog(SearchFlightActivity.this, new DatePickerDialog.OnDateSetListener(){\n /**\n * @param datePicker\n * @param i year\n * @param i1 month of year\n * @param i2 day of month\n */\n @Override\n public void onDateSet(DatePicker datePicker, int i, int i1, int i2) {\n et_date.setText(i+\"-\"+i1+\"-\"+i2);\n }\n },year,month,day).show();\n }", "private void dateOfBirthPicker() {\n _nextActionDate.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n final Calendar c = Calendar.getInstance();\n int mYear = c.get(Calendar.YEAR);\n int mMonth = c.get(Calendar.MONTH);\n int mDay = c.get(Calendar.DAY_OF_MONTH);\n DatePickerDialog dateDialog = new DatePickerDialog(v.getContext(), new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(DatePicker view, int year, int month, int dayOfMonth) {\n Time chosenDate = new Time();\n chosenDate.set(dayOfMonth, month, year);\n long dtDob = chosenDate.toMillis(true);\n\n String format = new SimpleDateFormat(\"yyyy-MM-dd\").format(dtDob);\n _nextActionDate.setText(format);\n\n }\n }, mYear, mMonth, mDay);\n //dateDialog.getDatePicker().setMaxDate(new Date().getTime());\n dateDialog.show();\n }\n });\n }", "private void initPopupDate() {\n editDate = findViewById(R.id.date_depense);\n date = new DatePickerDialog.OnDateSetListener() {\n\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n // TODO Auto-generated method stub\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateDate();\n }\n\n };\n\n // onclick - popup datepicker\n editDate.setOnClickListener(new View.OnClickListener() {\n\n @Override\n public void onClick(View v) {\n // TODO Auto-generated method stub\n new DatePickerDialog(context, date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }\n });\n }", "private void initDatePicker() {\n pickDateBox.setDayCellFactory(picker -> new DateCell() {\n public void updateItem(LocalDate date, boolean empty) {\n super.updateItem(date, empty);\n LocalDate today = LocalDate.now();\n\n setDisable(empty || date.compareTo(today) < 0 );\n }\n });\n }", "public interface DatepickerListener {\n void dialogValueReturn(String year, String week, String month, String day);\n}", "@Override\n public void onClick(View v) {\n new DatePickerDialog(MainActivity.this, date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "public void selectDate(){\r\n\t\tcloseDateText.sendKeys(ConvertDate());\r\n\t}", "@SuppressLint(\"SimpleDateFormat\")\n\tprivate void getCalenderView() {\n\n\t\ttry {\n\n\t\t\tDatePickerDialog dpd = new DatePickerDialog(this,\n\t\t\t\t\tnew DatePickerDialog.OnDateSetListener() {\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onDateSet(DatePicker view,\n\t\t\t\t\t\t\t\tint selectedyear, int monthOfYear,\n\t\t\t\t\t\t\t\tint dayOfMonth) {\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t\t\t\t\tyear = selectedyear;\n\t\t\t\t\t\t\tmonth = monthOfYear;\n\t\t\t\t\t\t\tday = dayOfMonth;\n\t\t\t\t\t\t\ttry {\n\n\t\t\t\t\t\t\t\tDate date = new SimpleDateFormat(\"yyyy-MM-dd\")\n\t\t\t\t\t\t\t\t\t\t.parse(year + \"-\" + (month + 1) + \"-\"\n\t\t\t\t\t\t\t\t\t\t\t\t+ day);\n\n\t\t\t\t\t\t\t\tDateFormat outputFormatter = new SimpleDateFormat(\n\t\t\t\t\t\t\t\t\t\t\"yyyy-MM-dd\");\n\t\t\t\t\t\t\t\tString selectedDate = outputFormatter\n\t\t\t\t\t\t\t\t\t\t.format(date); // Output : 01/20/2012\n\n\t\t\t\t\t\t\t\tSystem.out.println(\"!!!!!!selectedDate...\"\n\t\t\t\t\t\t\t\t\t\t+ selectedDate);\n\n\t\t\t\t\t\t\t\t// Date currDate=new Date();\n\n\t\t\t\t\t\t\t\tSystem.out.println(\"!!!!!!!!!currDate.\"\n\t\t\t\t\t\t\t\t\t\t+ currDate);\n\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t.println(\"output.compareTo(currDate)..\"\n\t\t\t\t\t\t\t\t\t\t\t\t+ selectedDate\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.compareTo(currDate\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.toString()));\n\n\t\t\t\t\t\t\t\tif (selectedDate.compareTo(currDate.toString()) >= 0\n\t\t\t\t\t\t\t\t\t\t&& selectedDate.compareTo(output\n\t\t\t\t\t\t\t\t\t\t\t\t.toString()) <= 0) {\n\t\t\t\t\t\t\t\t\t// then do your work\n\t\t\t\t\t\t\t\t\t// Display Selected date in textbox\n\n\t\t\t\t\t\t\t\t\tDateFormat outputFormatter1 = new SimpleDateFormat(\n\t\t\t\t\t\t\t\t\t\t\t\"yyyy-MM-dd\");\n\t\t\t\t\t\t\t\t\tString date_formating = outputFormatter1\n\t\t\t\t\t\t\t\t\t\t\t.format(date);\n\n\t\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t\t.println(\"!!!!!!!!!after_formating..\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ outputFormatter1\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ \"!!!!!\" + date_formating);\n\n\t\t\t\t\t\t\t\t\trf_booking_date_box.setText(selectedDate);\n\t\t\t\t\t\t\t\t\tBooking_Screen_TabLayout.rf_booking_date_header.setText(selectedDate);\n\n\t\t\t\t\t\t\t\t\t// rf_booking_date_box.setText(year + \"-\" +\n\t\t\t\t\t\t\t\t\t// (month + 1)\n\t\t\t\t\t\t\t\t\t// + \"-\" + day);\n\n\t\t\t\t\t\t\t\t\tGlobal_variable.str_Date = date_formating;\n\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t// show message\n\n\t\t\t\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\t\t\t\tgetApplicationContext(),\n\t\t\t\t\t\t\t\t\t\t\tgetString(R.string.str_invalid_date),\n\t\t\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t} catch (java.text.ParseException e) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}, year, month, day);\n\t\t\tdpd.getDatePicker().setMinDate(c.getTimeInMillis());\n\n\t\t\tc.add(Calendar.MONTH, 1);\n\n\t\t\tdpd.getDatePicker().setMaxDate(c.getTimeInMillis());\n\n\t\t\tc.add(Calendar.MONTH, -1);\n\n\t\t\tSystem.out.println(\"!!!!!pankaj\" + c.getTimeInMillis());\n\t\t\t// dpd.getDatePicker().setMaxDate(c.);\n\t\t\tdpd.show();\n\t\t\tdpd.setCancelable(false);\n\t\t\tdpd.setCanceledOnTouchOutside(false);\n\n\t\t} catch (NullPointerException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "Date getDateField();", "private void show_Date_Picker() {\n final Calendar c = Calendar.getInstance();\r\n mYear = c.get(Calendar.YEAR);\r\n mMonth = c.get(Calendar.MONTH);\r\n mDay = c.get(Calendar.DAY_OF_MONTH);\r\n android.app.DatePickerDialog datePickerDialog = new android.app.DatePickerDialog(this,\r\n new android.app.DatePickerDialog.OnDateSetListener() {\r\n\r\n @Override\r\n public void onDateSet(DatePicker view, int year,\r\n int monthOfYear, int dayOfMonth)\r\n {\r\n\r\n txt_mfgdate_text.setText(dayOfMonth + \"-\" + (monthOfYear + 1) + \"-\" + year);\r\n\r\n }\r\n }, mYear, mMonth, mDay);\r\n datePickerDialog.show();\r\n\r\n }", "private void initDatePicker() {\n DatePickerDialog.OnDateSetListener dateSetListener = new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(DatePicker datePicker, int year, int month, int day) {\n month = month + 1;\n String date = makeDateString(day, month, year);\n btnDiaCitaver.setText(date);\n }\n };\n// Calendar cal = Calendar.getInstance();\n// int year = cal.get(Calendar.YEAR);\n// int month = cal.get(Calendar.MONTH);\n// int day = cal.get(Calendar.DAY_OF_MONTH);\n // Traer la fecha de la cita por partes\n String[] vec_fecha = infoCita.getString(1).split(\" \");\n String[] vec_fecha_dia = vec_fecha[0].split(\"-\");\n int year = Integer.parseInt(vec_fecha_dia[0]);\n int month = Integer.parseInt(vec_fecha_dia[1]) - 1;\n int day = Integer.parseInt(vec_fecha_dia[2]);\n\n int style = AlertDialog.THEME_DEVICE_DEFAULT_DARK;\n datePickerDialogFecha = new DatePickerDialog(this, style, dateSetListener, year, month, day);\n// datePickerDialogFechaNacimiento.getDatePicker().setMaxDate(cal.getTimeInMillis());\n\n }", "public JDateSelector getDateSelector()\n\t{\n\t\treturn dateSelector;\n\t}", "public LocalDate getViewDate();", "private DatePickerUtil() {\n\n }", "@OnClick(R.id.fragApod_btnSelectDate)\n public void onClickBtnSelectDate(){\n DatePickerDialog datePickerDialog = new DatePickerDialog(getActivity(),\n android.R.style.Theme_DeviceDefault_Light_Panel,\n new DatePickerDialog.OnDateSetListener() {\n\n @Override\n public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) {\n //Le damos el formato requerido a la fecha seleccionada\n date = new StringBuilder();\n date.append(year).append(\"-\");\n if((monthOfYear+1) < 10) date.append(\"0\");\n date.append(monthOfYear+1).append(\"-\");\n if(dayOfMonth < 10) date.append(\"0\");\n date.append(dayOfMonth);\n\n //LLamamos al método que establece su callback\n apodServiceEnqueue(apodService);\n }\n }, iYear, iMonth, iDay);\n datePickerDialog.show();\n //datePickerDialog.setTitle(getString(R.string.fragApod_msgSelectDate));\n //Sólo puede seleccionar hasta la fecha actual\n datePickerDialog.getDatePicker().setMaxDate(calendar.getTimeInMillis());\n\n //Le restamos 16 años a la fecha actual para ponerla como fecha mínima de selección\n Calendar calendarTemp = Calendar.getInstance();\n calendarTemp.add(calendar.YEAR,-16);\n datePickerDialog.getDatePicker().setMinDate(calendarTemp.getTimeInMillis());\n }", "private DatePickerDialog.OnDateSetListener dateSetListener() {\n return new DatePickerDialog.OnDateSetListener() {\n\n @Override\n public void onDateSet(DatePicker view, int year, int month, int dayOfMonth) {\n date = year + \".\" + month + \".\" + dayOfMonth;\n setDateB.setText(date);\n }\n };\n }", "@Override\n public void onClick(View v) {\n new DatePickerDialog(getActivity(), startdatepicker, trigger.getStarttime().get(Calendar.YEAR), trigger.getStarttime().get(Calendar.MONTH), trigger.getStarttime().get(Calendar.DAY_OF_MONTH)).show();\n }", "public Date getSelectedDate() {\n\t\treturn date.getValue();\n\t}", "public void initializeDate() {\n //Get current date elements from Calendar object\n day = cal.get(Calendar.DAY_OF_MONTH);\n month = cal.get(Calendar.MONTH); //Note months are indexed starting at zero (Jan -> 0)\n year = cal.get(Calendar.YEAR);\n\n //Pair EditText to local variable and set input type\n date = (EditText) findViewById(R.id.textSetDate);\n date.setInputType(InputType.TYPE_NULL);\n\n //Set EditText text to be current time\n date.setText((month + 1) + \"/\" + day + \"/\" + year);\n\n //Create onClick listener on date variable\n date.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n datePicker = new DatePickerDialog(ControlCenterActivity.this, new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(DatePicker datePicker, int year, int month, int dayOfMonth) {\n date.setText((month + 1) + \"/\" + dayOfMonth + \"/\" + year);\n }\n }, year, month, day);\n\n datePicker.show();\n }\n });\n }", "@Override\n public void onClick(View v) {\n new DatePickerDialog(MainActivity.this, date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "private void launchDatePicker(DatePickerDialog.OnDateSetListener dateSetListener) {\n // Create Calendar object\n Calendar cal = Calendar.getInstance();\n // get year, month and day\n int year = cal.get(Calendar.YEAR);\n int month = cal.get(Calendar.MONTH);\n int day = cal.get(Calendar.DAY_OF_MONTH);\n // Create the DatePickerDialog object\n DatePickerDialog dialog = new DatePickerDialog(this,android.R.style.Widget_Material_DatePicker, dateSetListener,year,month,day);\n // Show the dialog\n dialog.show();\n }", "Date getForDate();", "private void tanggalAkhirPembalikanDatepicker(){\n tanggalAkhirPembalikanEditText.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n c= Calendar.getInstance();\n int day = c.get(Calendar.DAY_OF_MONTH);\n int month = c.get(Calendar.MONTH);\n int year = c.get(Calendar.YEAR);\n\n dpd = new DatePickerDialog(IncubationForm.this, new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(DatePicker view, int year, int month, int dayOfMonth) {\n int m =month+1;\n tanggalAkhirPembalikanEditText.setText(dayOfMonth + \"/\"+m+\"/\"+year);\n tanggalPembalikan[1][0]= dayOfMonth;\n tanggalPembalikan[1][1]= month+1;\n tanggalPembalikan[1][2]= year;\n }\n }, year, month, day);\n dpd.show();\n }\n });\n }", "private void DateDialogPicker(DatePickerDialog.OnDateSetListener listener) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n DatePickerDialog datePickerDialog = new DatePickerDialog(getActivity(),\n listener, year, month, day);\n\n datePickerDialog.show();\n }", "private void tanggalAwalPembalikanDatepicker(){\n tanggalAwalPembalikanEditText.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n c= Calendar.getInstance();\n int day = c.get(Calendar.DAY_OF_MONTH);\n int month = c.get(Calendar.MONTH);\n int year = c.get(Calendar.YEAR);\n\n dpd = new DatePickerDialog(IncubationForm.this, new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(DatePicker view, int year, int month, int dayOfMonth) {\n int m =month+1;\n tanggalAwalPembalikanEditText.setText(dayOfMonth + \"/\"+m+\"/\"+year);\n tanggalPembalikan[0][0]= dayOfMonth;\n tanggalPembalikan[0][1]= month+1;\n tanggalPembalikan[0][2]= year;\n }\n }, year, month, day);\n dpd.show();\n }\n });\n }", "private void showDateDialog(){\n\t\tDatePickerDialog dpd = new DatePickerDialog(this, new OnDateSetListener(){\r\n\t\t\tpublic void onDateSet(DatePicker view , int year, int month, int day){\r\n\t\t\t\tgiorno.set(year,month,day);\r\n\t\t\t\tEditText et_giorno = (EditText) BookingActivity.this.findViewById(R.id.prenotazione_et_giorno);\r\n\t\t\t\tformatter.applyPattern(\"dd MMMMM yyyy\");\r\n\t\t\t\tet_giorno.setText(formatter.format(giorno.getTime()));\r\n\t\t\t}\t\t\t \t\r\n\t\t}, giorno.get(Calendar.YEAR), giorno.get(Calendar.MONTH), giorno.get(Calendar.DAY_OF_MONTH));\r\n\t\tdpd.show();\r\n\t}", "@Override\r\n public void onClick(View v) {\n final Calendar c = Calendar.getInstance();\r\n int mYear = c.get(Calendar.YEAR); // current year\r\n int mMonth = c.get(Calendar.MONTH); // current month\r\n int mDay = c.get(Calendar.DAY_OF_MONTH); // current day\r\n\r\n\r\n // date picker dialog\r\n datePickerDialog = new DatePickerDialog(task_setting.this,\r\n new DatePickerDialog.OnDateSetListener() {\r\n\r\n\r\n @Override\r\n public void onDateSet(DatePicker view, int year,\r\n int monthOfYear, int dayOfMonth) {\r\n // set day of month , month and year value in the edit text\r\n\r\n final String[] MONTHS = {\"January\", \"February\", \"March\", \"April\", \"May\", \"June\", \"July\", \"August\", \"September\", \"October\", \"November\", \"December\"};\r\n String mon = MONTHS[monthOfYear];\r\n date.setText(mon + \" \" + dayOfMonth + \", \" + year);\r\n }\r\n }, mYear, mMonth, mDay);\r\n datePickerDialog.getDatePicker().setMinDate(System.currentTimeMillis() - 1000);\r\n datePickerDialog.show();\r\n }", "public org.jdesktop.swingx.JXDatePicker getNewDateDP() {\n return newDateDP;\n }", "Date getDateTimeField();", "public JFrameCode() {\n initComponents();\n obj=new Object[]{text1,text2,date1,date2,date3};\n dateChooser=new JDateChooser();\n System.out.println(text1);\n panel.add(dateChooser,new org.netbeans.lib.awtextra.AbsoluteConstraints(450, 290, -1, -1));\n \n System.out.println(\"date:\"+dateChooser.getDate());\n }", "@Override\n\tpublic Date getEntryDate()\n\t{\n\n\t\tString entryDateText = entryDateSpinnerEditor.getTextField().getText();\n\t\tif(entryDateText == null)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t\ttry\n\t\t{\n\t\t\treturn DateUtils.parseDate(entryDateText);\n\t\t}\n\t\tcatch(ParseException e)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t}", "public interface DatePickerListener {\n public void onDateSelected(String date);\n}", "public void onPickDateButtonClick(View v){\n\t\tDialogFragment newFragment = new DatePickerFragment();\n\t\t\n\t\tlong milis = -1;\t\t\n\t\tif (mGameSettings.contains(Constants.GAME_PREFERENCES_DOB)) {\n\t\t\tmilis = mGameSettings.getLong(Constants.GAME_PREFERENCES_DOB, 0);\n\t\t}\n\t\t\n\t\tBundle parametros = new Bundle();\n\t\tparametros.putLong(\"date\", milis); \n\t\t\n\t\tnewFragment.setArguments(parametros);\t\n\t\t\n\t\t\n\t\tnewFragment.show(getSupportFragmentManager(), \"datePicker\");\n\t}", "protected String getSelectedDate()\n {\n String startsOnDate = String.valueOf(selectedYear);\n if(selectedMonth<10)startsOnDate+=\"-0\"+String.valueOf(selectedMonth);\n else startsOnDate+=\"-\"+String.valueOf(selectedMonth);\n if(selectedDay<10)startsOnDate+=\"-0\"+String.valueOf(selectedDay);\n else startsOnDate+=\"-\"+String.valueOf(selectedDay);\n\n return startsOnDate;\n }", "@Override\n public void onClick(View v) {\n new DatePickerDialog(getContext(), date2, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "private StringConverter<LocalDate> getDatePickerStringConverter() {\n try {\n return new StringConverter<LocalDate>() {\n // set the wanted pattern (format)\n String pattern = \"yyyy-MM-dd\";\n DateTimeFormatter dateFormatter = DateTimeFormatter.ofPattern(pattern);\n\n {\n // set placeholder text for the datePicker\n datePicker.setPromptText(pattern.toLowerCase());\n }\n\n @Override\n public String toString(LocalDate date) {\n if (date != null) {\n // get correctly formatted String\n return dateFormatter.format(date);\n } else {\n return \"\";\n }\n }\n\n @Override\n public LocalDate fromString(String string) {\n if (string != null && !string.isEmpty()) {\n // get correct LocalDate from String format\n return LocalDate.parse(string, dateFormatter);\n } else {\n return null;\n }\n }\n };\n } catch (Exception e) {\n logger.log(Level.SEVERE, e.toString());\n }\n return null;\n }", "public DatePickerDialog(@NonNull Context context) {\n this(context, 0, null, Calendar.getInstance(), -1, -1, -1);\n }", "@Override\n protected Dialog onCreateDialog(int id) {\n if (id == 999) {\n DatePickerDialog datePickerDialog = new DatePickerDialog(this,\n myDateListener, year, month, day);\n datePickerDialog.getDatePicker().setMinDate(System.currentTimeMillis());\n return datePickerDialog;\n }\n return null;\n }", "public void setDate() {\n DatePickerDialog dateDialog = new DatePickerDialog(this, myDateListener,\n calendar.get(Calendar.YEAR), calendar.get(Calendar.MONTH), calendar.get(Calendar.DATE));\n //set the date limits so user cannot pick a date outside of game scope\n dateDialog.getDatePicker().setMinDate(System.currentTimeMillis() + MILLIS_IN_DAY);\n dateDialog.getDatePicker().setMaxDate(System.currentTimeMillis() + (MILLIS_IN_DAY * MAX_END_DAY_COUNT));\n dateDialog.show();\n }", "public void datePicker(View v){\n\n final Calendar nace = Calendar.getInstance();\n dia = nace.get(Calendar.DAY_OF_MONTH);\n mes = nace.get(Calendar.MONTH);\n anio = nace.get(Calendar.YEAR);\n\n DatePickerDialog datePickerDialog = new DatePickerDialog(this, new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(DatePicker view, int year, int month, int dayOfMonth) {\n //mostraremos la fecha que selecciona el usuario en nuestro TextView\n editNace.setText(dayOfMonth + \"/\" + (month+1) + \"/\" + year);\n }\n }, dia, mes, anio);\n\n datePickerDialog.show();\n }", "public void selectDate()\r\n\t{\r\n\t\tsetLayout(new FlowLayout());\r\n\t\t\r\n\t\t// Create the DatePicker\r\n\t\tUtilDateModel model = new UtilDateModel();\r\n\t\tProperties properties = new Properties();\r\n\t\tproperties.put(\"text.today\", \"Today\");\r\n\t\tproperties.put(\"text.month\", \"Month\");\r\n\t\tproperties.put(\"text.year\", \"Year\");\r\n\t\tJDatePanelImpl datePanel = new JDatePanelImpl(model,properties);\r\n\t\tdatePicker = new JDatePickerImpl(datePanel, new DateFormatter());\r\n\t\t\r\n\t\t// Add confirmation button\r\n\t\tbutton = new JButton(\"OK\");\r\n\t\tbutton.addActionListener(this);\r\n\t\t\r\n\t\t// Display the DatePicker\r\n\t\tadd(datePicker);\r\n\t\tadd(button);\r\n setSize(300,300);\r\n setLocationRelativeTo(null);\r\n setVisible(true);\r\n\t}", "public void selectDateToMeet(View view) {\n int day;\n int month;\n int year;\n\n /* if the date button has tag of DATE_PICKED then set the date on dialog to date picked earlier,\n otherwise display todays date on the dialog */\n if (dateText.getText().toString().equals(\"\") || !dateText.getText().toString().toLowerCase().contains(\"date\")) {\n String dates[] = dateText.getText().toString().split(\"-\");\n\n day = Integer.parseInt(dates[2]);\n //minus 1 to get the month index\n month = Integer.parseInt(dates[1]) - 1;\n year = Integer.parseInt(dates[0]);\n\n } else {\n //get todays date\n Calendar cal = Calendar.getInstance();\n\n day = cal.get(Calendar.DAY_OF_MONTH);\n month = cal.get(Calendar.MONTH);\n year = cal.get(Calendar.YEAR);\n }\n\n //set the dialog with the date and show it\n DatePickerDialog dialog = new DatePickerDialog(BookPlanActivity.this,\n android.R.style.Theme_Holo_Light_Dialog_MinWidth,\n mDataSetListener, year, month, day);\n\n dialog.setButton(DialogInterface.BUTTON_NEUTRAL, \"Clear Date\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n dateText.setText(\"Select a date\");\n }\n });\n\n dialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));\n dialog.show();\n }", "private void showDateDialog(){\n final Calendar newCalendar = Calendar.getInstance();\n\n /**\n * Initiate DatePicker dialog\n */\n datePickerDialog = new DatePickerDialog(this, new DatePickerDialog.OnDateSetListener() {\n\n @Override\n public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) {\n\n /**\n * Method ini dipanggil saat kita selesai memilih tanggal di DatePicker\n */\n\n /**\n * Set Calendar untuk menampung tanggal yang dipilih\n */\n Calendar newDate = Calendar.getInstance();\n newDate.set(year, monthOfYear, dayOfMonth);\n\n\n if(!newDate.before(newCalendar)){\n /**\n * Update TextView with choosen date\n */\n newDate.set(Calendar.HOUR_OF_DAY, 0);\n newDate.set(Calendar.MINUTE, 0);\n newDate.set(Calendar.SECOND, 0);\n newDate.set(Calendar.MILLISECOND,0);\n mDateTextView.setTextColor(Color.BLACK);\n String day = mDateFormatter.getDayName(newDate.getTime());\n String date = mDateFormatter.getOnlyDate(newDate.getTime());\n String month = mDateFormatter.getMonth(newDate.getTime());\n mDateTextView.setText(day + \" \" + date + \",\" + month);\n mChoosenSaveDate = newDate;\n }else{\n mDateTextView.setText(\"Deadline has to be at leats same as current date\");\n mDateTextView.setTextColor(Color.RED);\n Toast.makeText(view.getContext(),\"invalid choosen date\",\n Toast.LENGTH_LONG).show();\n }\n\n\n }\n\n },newCalendar.get(Calendar.YEAR), newCalendar.get(Calendar.MONTH), newCalendar.get(Calendar.DAY_OF_MONTH));\n\n /**\n * Tampilkan DatePicker dialog\n */\n datePickerDialog.show();\n\n }", "@Override\n public void onClick(View v) {\n new DatePickerDialog(SearchTripActivity.this, datea, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "@Override\n public void onClick(View v) {\n new DatePickerDialog(getContext(), date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "@Override\n public void onClick(View v) {\n new DatePickerDialog(getContext(), date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "private void pickDate(final Calendar initDate){\n //callback for when a date is picked\n DatePickerDialog.OnDateSetListener setDate = new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(DatePicker view, int year, int month, int dayOfMonth) {\n initDate.set(year, month, dayOfMonth,\n initDate.get(Calendar.HOUR_OF_DAY),\n initDate.get(Calendar.MINUTE),\n initDate.get(Calendar.SECOND));\n setDateTimeViews();\n }\n };\n\n DatePickerDialog datePickerDialog = new DatePickerDialog(this,\n setDate, //callback\n initDate.get(Calendar.YEAR), //initial values\n initDate.get(Calendar.MONTH),\n initDate.get(Calendar.DAY_OF_MONTH));\n datePickerDialog.show(); //shows the dialogue\n }", "public static void datePicker(WebDriver driver, String locatorValue, String date)\r\n{\r\n\t((JavascriptExecutor)driver).executeScript(\"document.getElementById('\"+locatorValue+\"').value='\"+date+\"'\");\r\n}", "public GregorianCalendar getSelectedDate(){\n int day = Integer.parseInt(this.date_day.getSelectedItem().toString());\n int month = Integer.parseInt(this.date_month.getSelectedItem().toString());\n int year = Integer.parseInt(this.date_year.getSelectedItem().toString());\n\n GregorianCalendar date = new GregorianCalendar();\n date.setTimeInMillis(0);\n \n date.set(Calendar.DAY_OF_MONTH, day);\n date.set(Calendar.MONTH, month -1);\n date.set(Calendar.YEAR, year);\n\n return date;\n }", "private void setEntryDateField1() {\n // Create a DatePickerDialog and manage it\n mEntryDatePickerDialog1 = new DatePickerDialog(this, new DatePickerDialog.OnDateSetListener() {\n public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) {\n Calendar newDateEntryOfTheMarket = Calendar.getInstance();\n newDateEntryOfTheMarket.set(year, monthOfYear, dayOfMonth);\n\n // Update entryDate in ViewModel\n mSearchEstateViewModel.getDateEntryOfTheMarket1().setValue(newDateEntryOfTheMarket);\n }\n\n },newCalendar.get(Calendar.YEAR), newCalendar.get(Calendar.MONTH),\n newCalendar.get(Calendar.DAY_OF_MONTH));\n }", "@Override\n public void onClick(View v) {\n new DatePickerDialog(SearchTripActivity.this, dated, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "DateFormatPanel() {\r\n\t\tfDateFormat = DateFormat.getTimeInstance(DateFormat.DEFAULT);\r\n\t}", "public JXDatePickerImpl () {\n this.support = new ChangeSupport(this);\n initComponents();\n datePicker.getEditor().addPropertyChangeListener(this);\n }", "@Override\n public void onClick(View v) {\n new DatePickerDialog(getActivity(), date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "@Override\n public void onClick(View v) {\n new DatePickerDialog(getActivity(), date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "@Override\n public void onClick(View v) {\n new DatePickerDialog(select_time_date.this, date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "@Override\n public void onClick(View v) {\n new DatePickerDialog(context, date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "private void setEntryDateField2() {\n // Create a DatePickerDialog and manage it\n mEntryDatePickerDialog2 = new DatePickerDialog(this, new DatePickerDialog.OnDateSetListener() {\n public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) {\n Calendar newDateEntryOfTheMarket = Calendar.getInstance();\n newDateEntryOfTheMarket.set(year, monthOfYear, dayOfMonth);\n\n // Update entryDate in ViewModel\n mSearchEstateViewModel.getDateEntryOfTheMarket2().setValue(newDateEntryOfTheMarket);\n }\n\n },newCalendar.get(Calendar.YEAR), newCalendar.get(Calendar.MONTH),\n newCalendar.get(Calendar.DAY_OF_MONTH));\n }", "public int showDateTimeDialog()\n\t{\n\t\treturn showDialog(owner, layoutPanel, SwingLocale.getString(\"date_time_selector\"), IconFactory.getSwingIcon(\"component/calendar_48.png\"));\n\t}", "@Override\n public void onClick(View v) {\n DatePickerDialog datePickerDialog = new DatePickerDialog(getActivity(), new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(android.widget.DatePicker view, int year, int month, int dayOfMonth) {\n month = month + 1;\n String date =String.format(\"%02d/%02d/%d\", dayOfMonth,month, year);\n TextViewCheckIn.setText(date);\n\n }\n },year,month,day);\n long today = Calendar.getTimeInMillis();\n datePickerDialog.getDatePicker().setMinDate(today);\n datePickerDialog.show();\n }", "@Nullable\n @Override\n protected Dialog onCreateDialog(int id, Bundle args) {\n if (id == 101) {\n return new DatePickerDialog(this,\n myDateListener1, year, month, day);\n }else{\n if (id == 102){\n return new DatePickerDialog(this,\n myDateListener2, year, month, day);\n }}\n return null;\n }", "public Date getDateSelected() {\n Date dateSelected = availDay.getDate();\n return dateSelected;\n }", "@Override\n public void onClick(View v) {\n new DatePickerDialog(getActivity(), enddatepicker, trigger.getEndtime().get(Calendar.YEAR), trigger.getEndtime().get(Calendar.MONTH), trigger.getEndtime().get(Calendar.DAY_OF_MONTH)).show();\n }", "@Override\n\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\t DatePickerDialog mDatePicker=new DatePickerDialog(contextyeild, new OnDateSetListener() { \n\t\t\t\t\t\t public void onDateSet(DatePicker datepicker, int selectedyear, int selectedmonth, int selectedday) {\n\t\t\t\t\t\t // TODO Auto-generated method stub \n\t\t\t\t\t\t /* Your code to get date and time */\n\t\t\t\t\t\t \t//final Calendar c = Calendar.getInstance();\n\t\t\t\t\t\t \t\t//\tc.set(selectedyear, selectedmonth, selectedday);\n\t\t\t\t\t\t \t\t\tstart_day = selectedday;\n\t\t\t\t\t\t \t\t\tstart_month = selectedmonth;\n\t\t\t\t\t\t \t\t\tstart_year = selectedyear;\n\t\t\t\t\t\t \t\t\t//final Date date = new Date(c.getTimeInMillis());\n\t\t\t\t\t\t \t\t\t//final SimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t\t\t\t\t \t\t\t//harvestdate1.setText(dateFormat.format(date));\n\t\t\t\t\t\t harvestdate1.setText(new StringBuilder().append(start_day).append(\"-\").append(start_month+1)\n\t\t\t\t\t .append(\"-\").append(start_year)\n\t\t\t\t\t .append(\" \")); \t\n\t\t\t\t\t\t // set selected date into Date Picker\n\t\t\t\t\t\t datepicker.init(start_year, start_month, start_day, null);\n\n\t\t\t\t\t\t }\n\t\t\t\t\t\t },start_year, start_month, start_day);\n\t\t\t\t\t\t mDatePicker.setTitle(\"Select date\"); \n\t\t\t\t\t\t mDatePicker.show(); \n\t\t\t\t\t\t\t}", "public Calendar getDate() {\r\n return (Calendar) selectedDate;\r\n }", "@Override\n public void onClick(View v) {\n new DatePickerDialog(merchantHome, date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "@Override\n public void onClick(View v) {\n new DatePickerDialog(AddVehicleActivity.this, date2, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "public DateTime getSelectedDateTime() {\r\n\treturn selectedDate;\r\n }", "private DatePickerDialog selectConfigurationColorThemeInstance(int year, int month, int day) {\n return new DatePickerDialog(requireActivity(),this, year, month, day);\n }", "@SuppressLint(\"InlinedApi\")\n @Override\n public void onClick(View v) {\n @SuppressLint({\"NewApi\", \"LocalSuppress\"}) final Calendar mcurrentDate = Calendar.getInstance();\n int mYear = mcurrentDate.get(Calendar.YEAR);\n int mMonth = mcurrentDate.get(Calendar.MONTH);\n int mDay = mcurrentDate.get(Calendar.DAY_OF_MONTH);\n\n DatePickerDialog mDatePicker = new DatePickerDialog(Addnewuser.this, new DatePickerDialog.OnDateSetListener() {\n\n public void onDateSet(DatePicker datepicker, int selectedyear, int selectedmonth, int selectedday) {\n mybirthday = new GregorianCalendar(selectedyear, selectedmonth, selectedday).getTime();\n birthday = \"\" + selectedday + \"/\" + (selectedmonth + 1) + \"/\" + selectedyear + \"\";\n dob.setText(birthday);\n // Toast.makeText(Addnewuser.this, \"\"+birthday+\"\\n\" +\n // \"\"+date.toString(), Toast.LENGTH_SHORT).show();\n\n\n }\n }, mYear, mMonth, mDay);\n mDatePicker.setTitle(\"Select date\");\n mDatePicker.show();\n }", "private void DateSelection(final TextView tv_inv_date ) {\n try {\n AlertDialog.Builder dlgReportDate = new AlertDialog.Builder(this);\n final DatePicker dateReportDate = new DatePicker(this);\n String date_str = tvDate.getText().toString();\n String dd = date_str.substring(6,10)+\"-\"+date_str.substring(3,5)+\"-\"+date_str.substring(0,2);\n DateTime objDate = new DateTime(dd);\n dateReportDate.updateDate(objDate.getYear(), objDate.getMonth(), objDate.getDay());\n String strMessage = \"\";\n\n\n dlgReportDate\n .setIcon(R.drawable.ic_launcher)\n .setTitle(\"Date Selection\")\n .setMessage(strMessage)\n .setView(dateReportDate)\n .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n String strDd = \"\";\n public void onClick(DialogInterface dialog, int which) {\n if (dateReportDate.getDayOfMonth() < 10) {\n strDd = \"0\" + String.valueOf(dateReportDate.getDayOfMonth())+\"-\";\n } else {\n strDd = String.valueOf(dateReportDate.getDayOfMonth())+\"-\";\n }\n if (dateReportDate.getMonth() < 9) {\n strDd += \"0\" + String.valueOf(dateReportDate.getMonth() + 1) + \"-\";\n } else {\n strDd += String.valueOf(dateReportDate.getMonth() + 1) + \"-\";\n }\n\n strDd += String.valueOf(dateReportDate.getYear());\n tv_inv_date.setText(strDd);\n Log.d(\"ReprintDate\", \"Selected Date:\" + strDd);\n }\n })\n .setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n\n public void onClick(DialogInterface dialog, int which) {\n // TODO Auto-generated method stub\n\n }\n })\n .show();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "private void DateSelection(final TextView tv_inv_date) {\n try {\r\n AlertDialog.Builder dlgReportDate = new AlertDialog.Builder(myContext);\r\n final DatePicker dateReportDate = new DatePicker(myContext);\r\n String date_str = tvDate.getText().toString();\r\n String dd = date_str.substring(6,10)+\"-\"+date_str.substring(3,5)+\"-\"+date_str.substring(0,2);\r\n DateTime objDate = new DateTime(dd);\r\n dateReportDate.updateDate(objDate.getYear(), objDate.getMonth(), objDate.getDay());\r\n String strMessage = \"\";\r\n\r\n\r\n\r\n dlgReportDate\r\n .setIcon(R.drawable.ic_launcher)\r\n .setTitle(\"Date Selection\")\r\n .setMessage(strMessage)\r\n .setView(dateReportDate)\r\n .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\r\n String strDd = \"\";\r\n public void onClick(DialogInterface dialog, int which) {\r\n if (dateReportDate.getDayOfMonth() < 10) {\r\n strDd = \"0\" + String.valueOf(dateReportDate.getDayOfMonth())+\"-\";\r\n } else {\r\n strDd = String.valueOf(dateReportDate.getDayOfMonth())+\"-\";\r\n }\r\n if (dateReportDate.getMonth() < 9) {\r\n strDd += \"0\" + String.valueOf(dateReportDate.getMonth() + 1) + \"-\";\r\n } else {\r\n strDd += String.valueOf(dateReportDate.getMonth() + 1) + \"-\";\r\n }\r\n\r\n strDd += String.valueOf(dateReportDate.getYear());\r\n tv_inv_date.setText(strDd);\r\n Log.d(\"ReprintDate\", \"Selected Date:\" + strDd);\r\n }\r\n })\r\n .setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\r\n\r\n public void onClick(DialogInterface dialog, int which) {\r\n // TODO Auto-generated method stub\r\n\r\n }\r\n })\r\n .show();\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }", "@Override\n protected Dialog onCreateDialog(int id) {\n if (id == 999) {\n return new DatePickerDialog(this, myDateListener, year, month, day);\n }\n return null;\n }", "@Override\n protected Dialog onCreateDialog(int id) {\n if (id == 999) {\n return new DatePickerDialog(this, myDateListener, year, month, day);\n }\n return null;\n }", "@Override\n protected Dialog onCreateDialog(int id) {\n if (id == 999) {\n return new DatePickerDialog(this,\n myDateListener, year, month, day);\n }\n return null;\n }", "@Override\n protected Dialog onCreateDialog(int id) {\n if (id == 999) {\n return new DatePickerDialog(this,\n myDateListener, year, month, day);\n }\n return null;\n }", "@Override\n protected Dialog onCreateDialog(int id) {\n if (id == 999) {\n return new DatePickerDialog(this,\n myDateListener, year, month, day);\n }\n return null;\n }", "@Override\n protected Dialog onCreateDialog(int id) {\n if (id == 999) {\n return new DatePickerDialog(this,\n myDateListener, year, month, day);\n }\n return null;\n }", "@Override\n protected Dialog onCreateDialog(int id) {\n if (id == 999) {\n return new DatePickerDialog(this,\n myDateListener, year, month, day);\n }\n return null;\n }", "@Override\n protected Dialog onCreateDialog(int id) {\n if (id == 999) {\n return new DatePickerDialog(this,\n myDateListener, year, month, day);\n }\n return null;\n }", "@Override\n public void onClick(View v) {\n new DatePickerDialog(RegisterActivity.this, date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "private void setSaleDateField1() {\n // Create a DatePickerDialog and manage it\n mSaleDatePickerDialog1 = new DatePickerDialog(this, new DatePickerDialog.OnDateSetListener() {\n public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) {\n Calendar newDateEntryOfTheMarket = Calendar.getInstance();\n newDateEntryOfTheMarket.set(year, monthOfYear, dayOfMonth);\n\n // Update entryDate in ViewModel\n mSearchEstateViewModel.getDateSale1().setValue(newDateEntryOfTheMarket);\n }\n\n },newCalendar.get(Calendar.YEAR), newCalendar.get(Calendar.MONTH),\n newCalendar.get(Calendar.DAY_OF_MONTH));\n }", "@Override\n public void onClick(View v) {\n new DatePickerDialog(RegistrationActivity.this, date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n\n }", "@Override\n public void onClick(View v) {\n DatePickerDialog datePickerDialog = new DatePickerDialog(getActivity(), new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(android.widget.DatePicker view, int year, int month, int dayOfMonth) {\n month = month + 1;\n String date =String.format(\"%02d/%02d/%d\", dayOfMonth,month, year);\n TextViewCheckOut.setText(date);\n long today = Calendar.getTimeInMillis();\n view.setMinDate(today);\n }\n },year,month,day);\n long today = Calendar.getTimeInMillis();\n datePickerDialog.getDatePicker().setMinDate(today);\n //memunculkan pilihan pada UI\n datePickerDialog.show();\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState){\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n /*\n Get Android DatePickerDialog without day\n - This code does not work\n THEME_DEVICE_DEFAULT_DARK\n THEME_DEVICE_DEFAULT_LIGHT\n - This code work fine\n THEME_HOLO_DARK\n THEME_HOLO_LIGHT\n THEME_TRADITIONAL\n */\n\n //DatePickerDialog dpd = new DatePickerDialog(getActivity(),AlertDialog.THEME_HOLO_DARK,this,year, month, day){\n //DatePickerDialog dpd = new DatePickerDialog(getActivity(),AlertDialog.THEME_HOLO_LIGHT,this,year, month, day){\n DatePickerDialog dpd = new DatePickerDialog(getActivity(),AlertDialog.THEME_TRADITIONAL,this,year, month, day){\n @Override\n protected void onCreate(Bundle savedInstanceState)\n {\n super.onCreate(savedInstanceState);\n int day = getContext().getResources().getIdentifier(\"android:id/day\", null, null);\n if(day != 0){\n View dayPicker = findViewById(day);\n if(dayPicker != null){\n //Set Day view visibility Off/Gone\n dayPicker.setVisibility(View.GONE);\n }\n }\n }\n };\n return dpd;\n }", "Date getStartDate();", "Date getStartDate();", "Date getStartDate();", "@Override\n public void onClick(View v) {\n new DatePickerDialog(AddTripActivity.this, date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "@Override\n protected Dialog onCreateDialog(int id) {\n if (id == 999) {\n return new DatePickerDialog(this,\n myDateListener, year, month, day);\n }\n if (id == 998) {\n return new DatePickerDialog(this,\n myDateListener_end, year, month, day);\n }\n return null;\n }", "@Override\n public void onClick(View v) {\n new DatePickerDialog(NameLoginActivity.this, date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "private void showDatePickerDialog(EditText et) {\n DatePickerFragment newFragment = DatePickerFragment.newInstance(new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(DatePicker datePicker, int year, int month, int day) {\n final String selectedDate = year + \"-\" + (month+1) + \"-\" + day;\n et.setText(selectedDate);\n }\n });\n newFragment.show(getParentFragmentManager(), \"datePicker\");\n }", "public Date getFirstSelectionDate()\n/* */ {\n/* 186 */ return isSelectionEmpty() ? null : (Date)this.selectedDates.first();\n/* */ }" ]
[ "0.708886", "0.703779", "0.6690101", "0.6617607", "0.65830946", "0.6541533", "0.65321535", "0.6530059", "0.65060645", "0.64804834", "0.63913137", "0.63425857", "0.62823564", "0.62739426", "0.62265944", "0.62025595", "0.6200903", "0.6199729", "0.61982614", "0.6195669", "0.6192619", "0.6192365", "0.61747766", "0.61688155", "0.61388564", "0.6133945", "0.61224943", "0.61218786", "0.61180353", "0.61176306", "0.6110048", "0.6102951", "0.60969067", "0.6085243", "0.6071254", "0.6070046", "0.6066228", "0.6066006", "0.6062089", "0.60413903", "0.60341686", "0.60271865", "0.6020021", "0.60151917", "0.60097677", "0.5981063", "0.5980604", "0.5975483", "0.5956719", "0.5955798", "0.59534687", "0.59520113", "0.59520113", "0.59421545", "0.5935042", "0.59306854", "0.592816", "0.59261584", "0.59248286", "0.5913252", "0.59073454", "0.59073454", "0.59003896", "0.58950317", "0.58904344", "0.58873755", "0.58872736", "0.5876353", "0.5874476", "0.58651686", "0.5860761", "0.58536583", "0.5853255", "0.5850136", "0.5844468", "0.58419573", "0.58415127", "0.58396447", "0.58390886", "0.5809988", "0.5809988", "0.58093846", "0.58093846", "0.58093846", "0.58093846", "0.58093846", "0.58093846", "0.5808979", "0.58069354", "0.58054715", "0.5800221", "0.57987714", "0.57828087", "0.57828087", "0.57828087", "0.577045", "0.57675314", "0.5766092", "0.57648647", "0.5756388" ]
0.6599251
4
An Extension function that converts timeInMillis(UNIX) and returns time in human readable format
@org.jetbrains.annotations.NotNull() public static final java.lang.String getFormattedTime(long $this$getFormattedTime, @org.jetbrains.annotations.NotNull() java.lang.String format) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String getTimeAsString(final long timeInMillis) {\n \treturn getTimeAsString(timeInMillis, Locale.ENGLISH);\n }", "public static String formattime(long millis) {\n\t\treturn String.format(\"%02d:%02d:%02d:%03d\", //This formats the time correctly\n\t\t\t\tTimeUnit.MILLISECONDS.toHours(millis),\n\t\t\t TimeUnit.MILLISECONDS.toMinutes(millis) -\n\t\t\t TimeUnit.HOURS.toMinutes(TimeUnit.MILLISECONDS.toHours(millis)),\n\t\t\t TimeUnit.MILLISECONDS.toSeconds(millis) -\n\t\t\t TimeUnit.MINUTES.toSeconds(TimeUnit.MILLISECONDS.toMinutes(millis)),\n\t\t\t millis -\n\t\t\t TimeUnit.SECONDS.toMillis(TimeUnit.MILLISECONDS.toSeconds(millis)));\n\t\t\n\t}", "long getTimeInMillis();", "public static String convertMillis(long millis){\n\t\tlong hours = millis / 3600000;\r\n\t\tmillis = millis % 3600000;\r\n\t\tlong minutes = millis / 60000;\r\n\t\tmillis = millis % 60000;\r\n\t\tlong seconds = millis / 1000;\r\n\t\t\r\n\t\tString strHours = hours + \"\";\t\t\t\t\t//pretvaranje cjelobrojnih vrijednosti u satima, minutama i sekundama\r\n\t\tString strMinutes = minutes + \"\";\t\t\t\t//u String vrijednosti \r\n\t\tString strSeconds = seconds + \"\";\r\n\t\t\r\n\t\treturn strHours + \":\" + strMinutes + \":\" + strSeconds + \".\";\t\r\n\t}", "public String timeToText(long timeInMillis)\n {\n // FIRST CALCULATE THE NUMBER OF HOURS,\n // SECONDS, AND MINUTES\n long hours = timeInMillis/MILLIS_IN_AN_HOUR;\n timeInMillis -= hours * MILLIS_IN_AN_HOUR; \n long minutes = timeInMillis/MILLIS_IN_A_MINUTE;\n timeInMillis -= minutes * MILLIS_IN_A_MINUTE;\n long seconds = timeInMillis/MILLIS_IN_A_SECOND;\n \n // THEN ADD THE TIME OF GAME SUMMARIZED IN PARENTHESES\n String minutesText = \"\" + minutes;\n if (minutes < 10) minutesText = \"0\" + minutesText;\n String secondsText = \"\" + seconds;\n if (seconds < 10) secondsText = \"0\" + secondsText;\n return hours + \":\" + minutesText + \":\" + secondsText;\n }", "public static String convertMillisTime(long time_millis, String format) {\n String result = \"\";\n if (time_millis <= 0) {\n return result;\n }\n\n try {\n SimpleDateFormat dateFormat = new SimpleDateFormat(format, Locale.US);\n result = dateFormat.format(new Date(time_millis));\n } catch (IllegalArgumentException e) {\n e.printStackTrace();\n }\n\n return result;\n }", "public static String getFormattedTime(long unixSec) {\n Date date = new Date(unixSec * 1000L); // convert seconds to milliseconds\n SimpleDateFormat sdf = new SimpleDateFormat(\"h:mm a\");\n sdf.setTimeZone(TimeZone.getTimeZone(\"GMT-5\"));\n String formattedTime = sdf.format(date);\n return formattedTime;\n }", "public static String getReadableTime(long time_ms) {\n String output = \"\";\n long time_delta = time_ms;\n\n int milliseconds = (int) (time_delta % 1000);\n time_delta /= 1000;\n int seconds = (int) (time_delta % 60);\n time_delta /= 60;\n int minutes = (int) (time_delta % 60);\n time_delta /= 60;\n int hours = (int) (time_delta % 24);\n int days = (int) (time_delta / 24);\n\n if (days != 0) {\n output += String.format(\"%d day\", days);\n if (days > 1) {\n output += \"s\";\n }\n if ((hours != 0) || (minutes != 0) || (seconds != 0)) {\n output += \" \";\n }\n }\n if ((hours != 0) || (minutes != 0)) {\n return output + String.format(\"%d:%02d:%02d\", hours, minutes, seconds);\n }\n if (seconds != 0) {\n return output + String.format(\"%d.%d seconds\", seconds, milliseconds);\n }\n if (milliseconds != 0) {\n return output + String.format(\"%d ms\", milliseconds);\n }\n\n return (output.length() == 0 ? \"0\" : output);\n }", "public static String getTimeAsString(final double timeInMillis) {\n\t\treturn getTimeAsString(timeInMillis, Locale.getDefault());\n\t}", "public static String TimeConverter(long t)\r\n {\r\n int h, m, s, ms;\r\n ms = (int)t;\r\n h = ms / 3600000;\r\n ms = ms % 3600000;\r\n m = ms / 60000;\r\n ms = ms % 60000;\r\n s = ms / 1000;\r\n ms = ms % 1000;\r\n return h + \" :: \" + m + \" :: \" + s + \" :: \" + ms;\r\n }", "public static String convertMillisTime(long time_millis) {\n return convertMillisTime(time_millis, \"yyyy-MM-dd\");\n }", "public static String getElapsedTimeFromMilliseconds(long inputTime)\r\n {\r\n String format = String.format(\"%%0%dd\", 2);\r\n long elapsedTime = inputTime / 1000000;\r\n String millisecond = String.format(format, elapsedTime % 1000);\r\n String seconds = String.format(format, (elapsedTime/1000) % 60);\r\n String minutes = String.format(format, ((elapsedTime/1000) % 3600) / 60);\r\n String hours = String.format(format, (elapsedTime/1000) / 3600);\r\n\r\n hours = hours.equals(\"00\") ? \"\" : (Integer.parseInt(hours) < 9 ? hours.substring(hours.lastIndexOf(\"0\") + 1)+\":\" :hours+\":\");\r\n minutes = minutes.equals(\"00\") ? \"\" : (Integer.parseInt(minutes) < 9 ? minutes.substring(minutes.lastIndexOf(\"0\") + 1)+\":\" :minutes+\":\");\r\n seconds = seconds.equals(\"00\") ? \"\" : (Integer.parseInt(seconds) < 9 ? seconds.substring(seconds.lastIndexOf(\"0\") + 1)+\",\" :seconds+\",\");\r\n millisecond = millisecond.equals(\"00\") ? \"\" : millisecond+(seconds.equals(\"\") ? \"ms\":(minutes.equals(\"\") ? \" sec\" : \" min\"));\r\n String time = hours+minutes+seconds+millisecond;\r\n return time;\r\n }", "public static String formatMillis(int millis) {\n String result = \"\";\n int hr = millis / 3600000;\n millis %= 3600000;\n int min = millis / 60000;\n millis %= 60000;\n int sec = millis / 1000;\n if (hr > 0) {\n result += hr + \":\";\n }\n if (min >= 0) {\n if (min > 9) {\n result += min + \":\";\n } else {\n result += \"0\" + min + \":\";\n }\n }\n if (sec > 9) {\n result += sec;\n } else {\n result += \"0\" + sec;\n }\n return result;\n }", "public static String formatMillis(int millis) {\n String result = \"\";\n int hr = millis / 3600000;\n millis %= 3600000;\n int min = millis / 60000;\n millis %= 60000;\n int sec = millis / 1000;\n if (hr > 0) {\n result += hr + \":\";\n }\n if (min >= 0) {\n if (min > 9) {\n result += min + \":\";\n } else {\n result += \"0\" + min + \":\";\n }\n }\n if (sec > 9) {\n result += sec;\n } else {\n result += \"0\" + sec;\n }\n return result;\n }", "public String convertTime(long milliseconds) {\n Date date = new Date(milliseconds);\n SimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n formatter.setTimeZone(TimeZone.getTimeZone(\"Asia/Shanghai\"));\n return formatter.format(date);\n }", "public static String getTimeAsString(final double timeInMillis, final Locale locale) {\n\t\tif (timeInMillis > 1.0) {\n\t\t\treturn getTimeAsString((long) timeInMillis, locale);\n\t\t}\n\t\tFormat nf = new DecimalFormat(\"#.###\", new DecimalFormatSymbols(locale));\n\t\treturn nf.format(timeInMillis) + \" ms\";\n\t}", "public static String getTimeAsString(final long timeInMillis, final Locale locale) {\n\t\tResourceBundle bundle = ResourceBundle.getBundle(\"patterntesting.runtime.log.messages\", locale,\n\t\t\t\tResourceBundle.Control.getNoFallbackControl(ResourceBundle.Control.FORMAT_DEFAULT));\n\t\tif (timeInMillis > 18000000L) {\n\t\t\treturn ((timeInMillis + 1800000L) / 3600000L) + \" \" + bundle.getString(\"hours\");\n\t\t} else if (timeInMillis > 300000L) {\n\t\t\treturn ((timeInMillis + 30000L) / 60000L) + \" \" + bundle.getString(\"minutes\");\n\t\t} else if (timeInMillis > 5000L) {\n\t\t\treturn ((timeInMillis + 500L) / 1000L) + \" \" + bundle.getString(\"seconds\");\n\t\t}\n\t\treturn timeInMillis + \" ms\";\n\t}", "private String unixToHHMMSS(String unixTime){\r\n\t\tlong unixSeconds = Long.parseLong(unixTime);\r\n\t\tDate date = new Date(unixSeconds*1000L); // convert seconds to milliseconds\r\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"HH:mm:ss\"); // date format\r\n\r\n\t\tString formattedDate = sdf.format(date);\r\n\t\treturn formattedDate;\r\n\t}", "public static String longToYYYYMMDDHHMM(long longTime)\r\n/* 157: */ {\r\n/* 158:232 */ SimpleDateFormat formatter = new SimpleDateFormat(\"yyyyMMdd HH:mm\");\r\n/* 159:233 */ Date strtodate = new Date(longTime);\r\n/* 160:234 */ return formatter.format(strtodate);\r\n/* 161: */ }", "public static String millisToStr(long time) {\r\n long ms = time;\r\n long h = ms / 3600000;\r\n ms = ms % 3600000;\r\n long m = ms / 60000;\r\n ms = ms % 60000;\r\n long s = ms / 1000;\r\n ms = ms % 1000;\r\n return String.format(\"%02d:%02d:%02d.%03d\", h, m, s, ms);\r\n }", "public static String longToHHMM(long longTime)\r\n/* 150: */ {\r\n/* 151:219 */ SimpleDateFormat formatter = new SimpleDateFormat(\"HH:mm\");\r\n/* 152:220 */ Date strtodate = new Date(longTime);\r\n/* 153:221 */ return formatter.format(strtodate);\r\n/* 154: */ }", "public static String toHumanReadableTime(long milliseconds) {\n StringBuilder sb = new StringBuilder();\n int len = TIME_UNITS.length;\n int i = 0;\n for (; i < len; i++) {\n long quotient = milliseconds / TIME_UNITS[i];\n if (quotient > 0) {\n if (sb.length() > 0) {\n sb.append(' ');\n }\n sb.append(quotient).append(TIME_UNITS_ABBR[i]);\n milliseconds = milliseconds % TIME_UNITS[i];\n }\n }\n if (sb.length() > 0) {\n if (milliseconds > 0) {\n sb.append(' ').append(milliseconds).append(TIME_UNITS_ABBR[i]);\n }\n } else {\n sb.append(milliseconds).append(TIME_UNITS_ABBR[i]);\n }\n return sb.toString();\n }", "public String convertCalendarMillisecondsAsLongToDateTimeHourMinSec(long fingerprint) {\n\t\t\t\tDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\t\t\tDate date = new Date(fingerprint);\n\t\t\t\treturn format.format(date);\n\t\t\t}", "public static String formatToString(long unixTimeInSecond) {\n LocalDateTime dateTime = LocalDateTime.ofInstant(Instant.ofEpochSecond(unixTimeInSecond), ZoneOffset.systemDefault());\n return DateTimeFormatter.ofPattern(DEFAULT_TIME_PATTERN).format(dateTime);\n }", "long toMillisecond(long timelineValue);", "public static String getDate(long timeInMillis) {\n return sDefaultDateFormat.get().format(new Date(timeInMillis));\n }", "public static String timem( long p_lMillis ) {\n String sTime = \"\";\n if ( p_lMillis > 999 ) sTime =time( p_lMillis );\n sTime += \" \" + (p_lMillis % 1000 ) + \"ms\"; \n return sTime;\n }", "private String TimeConversion() {\n\n int hours, minutes, seconds, dayOfWeek, date, month, year;\n\n seconds = ((raw[27] & 0xF0) >> 4) + ((raw[28] & 0x03) << 4);\n minutes = ((raw[28] & 0xFC) >> 2);\n hours = (raw[29] & 0x1F);\n dayOfWeek = ((raw[29] & 0xE0) >> 5);\n date = (raw[30]) & 0x1F;\n month = ((raw[30] & 0xE0) >> 5) + ((raw[31] & 0x01) << 3);\n year = (((raw[31] & 0xFE) >> 1) & 255) + 2000;\n\n\n\n return hR(month) + \"/\" + hR(date) + \"/\" + year + \" \" + hR(hours) + \":\" + hR(minutes) + \":\" + hR(seconds) + \":00\";\n }", "private String intTime(long l){\r\n String s=\"\";\r\n s+=(char)(((l/1000)/60)+'0')+\":\"+(char)((((l/1000)%60)/10)+'0')+(char)((((l/1000)%60)%10)+'0'); \r\n return s;\r\n }", "public static String getUTCStringFromMillis(long millisecondTime) {\n return getUTCStringFromDate(new Date(millisecondTime));\n }", "public long toMillisecond(long value) { return value; }", "java.lang.String getTime();", "public static String formatTime(final long ms){\n long s = ms / 1000, m = s / 60, h = m / 60;\n s %= 60; m %= 60; h %= 24;\n return String.format(\"%02d:%02d:%02d\", h, m, s);\n }", "public static String time(int time) {\n return time((long)time);\n }", "private String formatTime(final long elapsedTicks) {\n\t\tString formattedTime = \"\";\n\t\t// should be hh:mm:ss.SSS, but 00 starts with 01\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"00:mm:ss.SSS\");\n\t\tCalendar calendar = Calendar.getInstance();\n\n\t\tif (elapsedTicks <= 9999) {\n\t\t\tcalendar.setTimeInMillis(0);\n\t\t\tformattedTime = formatter.format(calendar.getTime()) + String.valueOf(String.format(\"%04d\", elapsedTicks));\n\t\t} else {\n\t\t\tcalendar.setTimeInMillis(elapsedTicks * nsPerTick / nsPerMs);\n\t\t\tString formattedTicks = String.format(\"%07d\", elapsedTicks);\n\t\t\tformattedTicks = formattedTicks.substring(formattedTicks.length() - 4);\n\t\t\tformattedTime = formatter.format(calendar.getTime()) + formattedTicks;\n\t\t}\n\t\treturn formattedTime;\n\t}", "public String getYYYYMMDDhhmmssTime(Long time) {\n\t\tString result = \"\";\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"YYYYMMDDhhmmss\");\n\t\tresult = sdf.format(new Date(time));\n\t\treturn result;\n\t}", "public static String getPrintToTextTime() {\n @SuppressLint(\"SimpleDateFormat\") SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n return sdf.format(System.currentTimeMillis());\n }", "public static String formatConsumeTimeMillis(long millis) { \r\n\t long days = millis / (1000 * 60 * 60 * 24); \r\n\t long hours = (millis % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60); \r\n\t long minutes = (millis % (1000 * 60 * 60)) / (1000 * 60); \r\n\t double seconds = (millis % (1000 * 60)) / 1000.0; \r\n\t return days + \" dats \" + hours + \" hours \" + minutes + \" mins \" \r\n\t + seconds + \" seconds\";\r\n\t}", "public static String format( long elapsedMillis ) {\n String s = \"\";\n int hours = (int) ( elapsedMillis / ( 1000 * 60 * 60 ) );\n int minutes = (int) ( ( elapsedMillis % ( 1000 * 60 * 60 ) ) / ( 1000 * 60 ) );\n int seconds = (int) ( ( ( elapsedMillis % ( 1000 * 60 * 60 ) ) % ( 1000 * 60 ) ) / 1000 );\n if ( hours > 0 ) {\n // hours:minutes:seconds\n Object[] args = { ONE_DIGIT_TIME_FORMAT.format( hours ), TWO_DIGIT_TIME_FORMAT.format( minutes ), TWO_DIGIT_TIME_FORMAT.format( seconds ) };\n s = MessageFormat.format( \"{0}:{1}:{2}\", args );\n }\n else {\n // minutes:seconds\n Object[] args = { ONE_DIGIT_TIME_FORMAT.format( minutes ), TWO_DIGIT_TIME_FORMAT.format( seconds ) };\n s = MessageFormat.format( \"{0}:{1}\", args );\n }\n return s;\n }", "long getTimeInMilliSeconds();", "public static String translateTime(long longtime) {\n\t\tCalendar c = Calendar.getInstance();\n\t\tc.setTimeInMillis(longtime);\n\t\tint mYear = c.get(Calendar.YEAR);\n\t\tint mMonth = c.get(Calendar.MONTH);\n\t\tint mDay = c.get(Calendar.DAY_OF_MONTH);\n\t\tint Month = mMonth + 1;\n\t\tint hour = c.get(Calendar.HOUR_OF_DAY);\n\t\tint minute = c.get(Calendar.MINUTE);\n\t\treturn new String(mYear + \"-\" + Month + \"-\" + mDay + \"-\" + hour\n\t\t\t\t+ minute);\n\t}", "public long getTimestampMillisecUTC();", "public static String formatTime(long elapsed) {\n int[] convConst = {100, 60, 60, 24};\n int[] formatValues = new int[convConst.length];\n\n for (int i = 0; i < (convConst.length & formatValues.length); i++) {\n if (i > 0) elapsed /= convConst[i - 1];\n formatValues[i] = (int) (elapsed % convConst[i]);\n }\n\n int[] trimmed = ArrayUtils.autobox(ArrayUtils.reverse(ArrayUtils.trimBack(ArrayUtils.autobox(formatValues), 0)));\n String[] filled = new String[trimmed.length];\n\n for (int i = 0; i < (trimmed.length & filled.length); i++)\n filled[i] = i > 0 ? StringUtils.fillLeading(\"\" + trimmed[i], '0', 2) : \"\" + trimmed[i];\n\n List<String> filledList = new ArrayList<>(Arrays.asList(filled));\n if (filledList.size() <= 1) filledList.add(0, \"0\");\n\n return String.join(\".\", String.join(\":\", filledList.subList(0, filledList.size() - 1)), filledList.get(filledList.size() - 1));\n }", "public static String displayTime(long milliseconds) {\n String displayTime = \"\";\n double seconds = milliseconds / 1000.0;\n int minute = (int) (seconds / 60);\n double second = seconds % 60;\n displayTime = String.format(\"%02d:%06.3f\", minute, second);\n\n return displayTime;\n }", "public String convertCalendarMillisecondsAsLongToDate(long fingerprint) {\n\t\t\t\tDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd\"); // not \"yyyy-MM-dd HH:mm:ss\"\n\t\t\t\tDate date = new Date(fingerprint);\n\t\t\t\treturn format.format(date);\n\t\t\t}", "public static String mSecsToString(long actualTimeInMseconds) {\n Date date = new Date(actualTimeInMseconds);\n DateFormat formatter = new SimpleDateFormat(\"HH:mm:ss\");\n formatter.setTimeZone(TimeZone.getTimeZone(\"UTC\"));\n return (formatter.format(date));\n }", "public String formatTime() {\n if ((myGameTicks / 16) + 1 != myOldGameTicks) {\n myTimeString = \"\";\n myOldGameTicks = (myGameTicks / 16) + 1;\n int smallPart = myOldGameTicks % 60;\n int bigPart = myOldGameTicks / 60;\n myTimeString += bigPart + \":\";\n if (smallPart / 10 < 1) {\n myTimeString += \"0\";\n }\n myTimeString += smallPart;\n }\n return (myTimeString);\n }", "public String convertCalendarMillisecondsAsLongToDateTimeHourMin(long fingerprint) {\n\t\t\t\tDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\"); // not \"yyyy-MM-dd HH:mm:ss\"\n\t\t\t\tDate date = new Date(fingerprint);\n\t\t\t\treturn format.format(date);\n\t\t\t}", "public static String showTime(long ms)\n {\n long minutes = ms/1000/60;\n long seconds = (ms - 1000*60*minutes)/1000;\n long millis = ms % 1000;\n return minutes + \"m \" + seconds + \"s \" + millis +\"ms\";\n }", "private String formatTime(long ms) {\n String format = String.format(\"%%.%df s\", decimals);\n return String.format(format, ms > 0 ? ms/1000f : 0f);\n }", "private String getDateFromLong(Long msec) {\n DateFormat df = DateFormat.getDateTimeInstance();\n return df.format(new Date(msec));\n }", "public static final long getTimeStem() {\n\t\tlong unix_time = Instant.now().getEpochSecond();\n\t\treturn unix_time;\n\t}", "void fromUnixtime(HplsqlParser.Expr_func_paramsContext ctx) {\n int cnt = getParamCount(ctx);\n if (cnt == 0) {\n evalNull();\n return;\n }\n long epoch = evalPop(ctx.func_param(0).expr()).longValue();\n String format = \"yyyy-MM-dd HH:mm:ss\";\n if (cnt > 1) {\n format = evalPop(ctx.func_param(1).expr()).toString();\n }\n evalString(new SimpleDateFormat(format).format(new Date(epoch * 1000)));\n }", "public static String getTimeString() {\n\t\treturn getTimeString(time);\n\t}", "private static String timeConversion(long totalSeconds) {\n\n final int MINUTES_IN_AN_HOUR = 60;\n final int SECONDS_IN_A_MINUTE = 60;\n\n long seconds = totalSeconds % SECONDS_IN_A_MINUTE;\n long totalMinutes = totalSeconds / SECONDS_IN_A_MINUTE;\n long minutes = totalMinutes % MINUTES_IN_AN_HOUR;\n long hours = totalMinutes / MINUTES_IN_AN_HOUR;\n\n StringBuilder time = new StringBuilder();\n time.append(totalSeconds < 0 ? \"-\" : \"\");\n time.append(hours < 10 ? \"0\" : \"\");\n time.append(Math.abs(hours) + \":\");\n time.append(minutes < 10 ? \"0\" : \"\");\n time.append(Math.abs(minutes) + \":\");\n time.append(seconds < 10 ? \"0\" : \"\");\n time.append(Math.abs(seconds));\n\n return time.toString();\n }", "public static String getTimeString(long time, int format){\n\t\tif(time == Long.MIN_VALUE)\n\t\t\treturn \"\";\n\t\tCalendar cal = Calendar.getInstance(SimulationTime.timezone, SimulationTime.locale);\n\t\tcal.setTimeInMillis(time);\n\t\tString out = \"\";\n\t\tint\t\tv\t= 0;\n\t\tif((format & 8) == 8){\n\t\t\tout += getDayName(cal)+\", \";\n\t\t}\n\t\tif((format & 1) == 1){\n\t\t\tv \t= \tcal.get(Calendar.DATE);\n\t\t\tout\t+=\tString.format(\"%02d\", v)+\".\";\n\t\t\tv \t= \tcal.get(Calendar.MONTH)+1;\n\t\t\tout\t+=\tString.format(\"%02d\", v)+\".\";\n\t\t\tv \t= \tcal.get(Calendar.YEAR);\n\t\t\tout\t+=\tString.format(\"%04d\", v);\n\t\t\tout += \" \";\n\t\t}\n\t\tif((format & 2) == 2){\n\t\t\tv \t= \tcal.get(Calendar.HOUR_OF_DAY);\n\t\t\tout\t+=\tString.format(\"%02d\", v);\n\t\t\tv \t= \tcal.get(Calendar.MINUTE);\n\t\t\tout\t+=\t\":\"+String.format(\"%02d\", v);\n\t\t\tv \t= \tcal.get(Calendar.SECOND);\n\t\t\tout\t+=\t\":\"+String.format(\"%02d\", v);\n\t\t}\n\t\tif((format & 4) == 4){\n\t\t\tv \t= \tcal.get(Calendar.MILLISECOND);\n\t\t\tout\t+=\t\".\"+String.format(\"%03d\", v);\n\t\t}\n\t\tif((format & 16) == 16){\n\t\t\tif(cal.getTimeZone().inDaylightTime(cal.getTime()))\n\t\t\t\tout\t+=\t\" DST\";\n\t\t}\n\t\tif((format & 32) == 32){\n\t\t\tout += \" \"+cal.getTimeZone().getDisplayName();\n\t\t}\n\t\treturn out.trim();\n\t}", "private String formatTime(final long time) {\n if ( time == 0 ) {\n return \"-\";\n }\n if ( time < 1000 ) {\n return time + \" ms\";\n } else if ( time < 1000 * 60 ) {\n return time / 1000 + \" secs\";\n }\n final long min = time / 1000 / 60;\n final long secs = (time - min * 1000 * 60);\n return min + \" min \" + secs / 1000 + \" secs\";\n }", "public static String formatTime(long time) {\n long tmp = time;\n int hour = (int) (time / 3600);\n tmp -= hour * 3600;\n int min = (int) (tmp / 60);\n int sec = (int) (tmp - min * 60);\n\n String hourText = hour < 10 ? \"0\" + hour : \"\" + hour;\n String minText = min < 10 ? \"0\" + min : \"\" + min;\n String secText = sec < 10 ? \"0\" + sec : \"\" + sec;\n\n\n return hourText + \":\" + minText + \":\" + secText;\n }", "public static String getTimeStamp() {\r\n\r\n\t\tlong now = (System.currentTimeMillis() - startTime) / 1000;\r\n\r\n\t\tlong hours = (now / (60 * 60)) % 24;\r\n\t\tnow -= (hours / (60 * 60)) % 24;\r\n\r\n\t\tlong minutes = (now / 60) % 60;\r\n\t\tnow -= (minutes / 60) % 60;\r\n\r\n\t\tlong seconds = now % 60;\r\n\r\n\t return String.format(\"%02d:%02d:%02d\", hours, minutes, seconds);\r\n\t}", "public static String setUTFTime(Long microseconds) {\n LocalDateTime startingPoint = LocalDateTime.of(1601, Month.JANUARY, 1, 0, 0);\n long seconds = TimeUnit.MICROSECONDS.toSeconds(microseconds);\n return setEuropeanFormat(startingPoint.plus(Duration.ofSeconds(seconds + 7200)));\n }", "@SuppressLint(\"SimpleDateFormat\")\n\tpublic static String getStringTime(Long time){\n\t\tSimpleDateFormat dateaf = new SimpleDateFormat(\"MM-dd\"); \n\t\tSimpleDateFormat timef = new SimpleDateFormat(\"HH:mm\"); \n\t\tString date = dateaf.format(time);\n\t\tString times = timef.format(time);\n\t\tString result = date+\" \"+times;\n\t\treturn result;\n\t}", "public static String convert(int secs) {\n int h = secs / 3600, i = secs - h * 3600, m = i / 60, s = i - m * 60;\n String timeF = \"\";\n\n if (h < 10) {\n timeF = timeF + \"\";\n }\n timeF = timeF + h + \" hour(s) \";\n if (m < 10) {\n timeF = timeF + \"\";\n }\n timeF = timeF + m + \" minute(s) \";\n if (s < 10) {\n timeF = timeF + \"\";\n }\n timeF = timeF + s + \" second(s) \";\n\n return timeF;\n }", "public static String getTimeAsString(String format, long time) {\n Calendar cal = Calendar.getInstance();\n cal.setTimeInMillis(time);\n SimpleDateFormat sdf = new SimpleDateFormat(format);\n return sdf.format(cal.getTime());\n }", "long toTimelineValue(long millisecond);", "public static String milliSecondsToTimer(long milliseconds){\r\n String finalTimerString = \"\";\r\n String secondsString = \"\";\r\n \r\n // Convert total duration into time\r\n int hours = (int)( milliseconds / (1000*60*60));\r\n int minutes = (int)(milliseconds % (1000*60*60)) / (1000*60);\r\n int seconds = (int) ((milliseconds % (1000*60*60)) % (1000*60) / 1000);\r\n // Add hours if there\r\n if(hours > 0){\r\n finalTimerString = hours + \":\";\r\n }\r\n \r\n // Prepending 0 to seconds if it is one digit\r\n if(seconds < 10){\r\n secondsString = \"0\" + seconds;\r\n }else{\r\n secondsString = \"\" + seconds;}\r\n \r\n finalTimerString = finalTimerString + minutes + \":\" + secondsString;\r\n \r\n // return timer string\r\n return finalTimerString;\r\n }", "public static String getCurrentMillisecondTime()\n\t{\n\t\treturn getMillisecondTime(new Date());\n\t}", "private static String timeFormat(long t, String format) {\n SimpleDateFormat sdf = new SimpleDateFormat(format, Locale.US);\n try {sdf.setTimeZone(TimeZone.getTimeZone(\"UTC\"));} catch (Exception e) {}\n return sdf.format(new Date(t));\n }", "public static String converTimeToReadable(long time) {\n // check if its in the last minute:\n long diff = (new Date()).getTime() - time;\n // TimeUnit.MILLISECONDS.toMinutes(diff)\n\n if (diff / 60000 < 1) {\n return \"now\";\n }\n\n // if its more then a minute, then write time\n String str = \"\";\n Date date = new Date(time);\n\n try {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n Date currentDay = sdf.parse(sdf.format(new Date()));\n Date lastLocationDay = sdf.parse(sdf.format(time));\n long daysDifference = TimeUnit.MILLISECONDS\n .toDays(currentDay.getTime() - lastLocationDay.getTime());\n\n // ispis:\n str += getNameOfTheDay(daysDifference, lastLocationDay);\n\n } catch (ParseException ex) {\n // if something fails, just write the date\n str += new SimpleDateFormat(\"dd.MM.yyyy\").format(date);\n }\n\n /*\n String dayOfTheWeek = (String) DateFormat.format(\"EEEE\", date); // Thursday\n String day = (String) DateFormat.format(\"dd\", date); // 20\n String monthString = (String) DateFormat.format(\"MMM\", date); // Jun\n String monthNumber = (String) DateFormat.format(\"MM\", date); // 06\n String year = (String) DateFormat.format(\"yyyy\", date); // 2013\n */\n\n str += \", \";\n str += new SimpleDateFormat(\"HH:mm\").format(date);\n\n return str;\n }", "public static String getDateTimeForFeedback(long unixTime) throws Exception {\n StringBuilder builder = new StringBuilder();\n Date quakeTime = new Date((long) unixTime);\n SimpleDateFormat dateTimeFormatter = new SimpleDateFormat(\"MM/dd/yyyy HH:mm:ss\");\n if (quakeTime != null) {\n String quakeTimeS = dateTimeFormatter.format(quakeTime);\n if (quakeTimeS != null) {\n builder.append(quakeTimeS);\n }\n }\n return builder.toString();\n }", "public String getTimeInString() {\n int minutes = (time % 3600) / 60;\n int seconds = time % 60;\n String timeString = String.format(\"%02d:%02d\", minutes, seconds);\n\n return timeString;\n }", "public synchronized static DateFormat getMillisecondTimeFormat()\n\t{\n\t\treturn MILLISECOND_TIME_FORMAT;\n\t}", "public static String convertToString(long value) {\r\n Date date = convertToDate(value);\r\n\r\n String dateFormat = ResourceUtil.getMessageResourceString(\"application.pattern.timestamp\");\r\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(dateFormat);\r\n String result = simpleDateFormat.format(date);\r\n\r\n return result;\r\n }", "public String getTime(long time)\n {\n String format = \"yyyy-MM-dd HH:mm:ssSS\";\n Locale currentLocale = new Locale(\"DEU\", \"DEU\");;\n java.util.Date today = new java.util.Date(time);\n DateFormat dateFormatter =\n DateFormat.getDateInstance(DateFormat.DEFAULT, currentLocale);\n SimpleDateFormat formatter;\n formatter = new SimpleDateFormat(format, currentLocale);\n return formatter.format(today);\n }", "String timeStamp() {\n\n\t\tCalendar now = Calendar.getInstance();\n\n\t\t String y = String.valueOf(now.get(now.YEAR));\n\t\t String mo = String.valueOf(now.get(now.MONTH)+1);\n\t\t String d = String.valueOf(now.get(now.DAY_OF_MONTH));\n\t\t String h = String.valueOf(now.get(now.HOUR_OF_DAY));\n\t\t String m = String.valueOf(now.get(now.MINUTE));\n\t\t String s = String.valueOf(now.get(now.SECOND));\n\t\t String ms = String.valueOf(now.get(now.MILLISECOND));\n\n\n\t return h + m + s + ms;\n\n\n\n }", "public String getTimeStamp() {\n Calendar instance = Calendar.getInstance();\n SimpleDateFormat sdf = new SimpleDateFormat(\"MMM-dd-yyyy-HH:mm:ss:ms\");\n return sdf.format(instance.getTime());\n }", "private static String getReadableDateString(Context context, long timeInMillis) {\n int flags = DateUtils.FORMAT_SHOW_DATE\n | DateUtils.FORMAT_NO_YEAR\n | DateUtils.FORMAT_SHOW_WEEKDAY;\n\n return DateUtils.formatDateTime(context, timeInMillis, flags);\n }", "public static void main(String[] args) {\n\t\t long ms = 671684;\r\n\t\t long ms1 = 607222 ;\r\n\t\t SimpleDateFormat formatter = new SimpleDateFormat(\"HH:mm:ss\");\r\n\t formatter.setTimeZone(TimeZone.getTimeZone(\"GMT+00:00\"));\r\n\t String hms = formatter.format(416970);\r\n\t String hms1 = formatter.format(710036);\r\n\t System.out.println(hms);\r\n\t System.out.println(hms1);\r\n\t //��ʦ���������ExecutorService������һ��\r\n\t}", "public static String getMicroTimeId() {\n Long time = System.nanoTime();\n String timeValue = time.toString();\n String[] splitedValue = timeValue.split(\"\");\n int i = 2 + 2 + 2;\n String m1 = \"0\" + splitedValue[i];\n String m2 = \"0\" + splitedValue[++i];\n String m3 = \"0\" + splitedValue[++i];\n String m4 = \"0\" + splitedValue[++i];\n String m5 = \"0\" + splitedValue[++i];\n String m6 = \"0\" + splitedValue[++i];\n String m7 = \"0\" + splitedValue[++i];\n return alphanum[Integer.parseInt(m1)]\n .concat(alphanum[Integer.parseInt(m2)])\n .concat(alphanum[Integer.parseInt(m3)])\n .concat(alphanum[Integer.parseInt(m4)])\n .concat(alphanum[Integer.parseInt(m5)])\n .concat(alphanum[Integer.parseInt(m6)])\n .concat(alphanum[Integer.parseInt(m7)]);\n }", "public String gameTimeToText()\n {\n // CALCULATE GAME TIME USING HOURS : MINUTES : SECONDS\n if ((startTime == null) || (endTime == null))\n return \"\";\n long timeInMillis = endTime.getTimeInMillis() - startTime.getTimeInMillis();\n return timeToText(timeInMillis);\n }", "public static String buildTimeString(long time) {\r\n\t\t\r\n\t\t// Days\r\n\t\tlong days = time / (1000 * 60 * 60 * 24);\r\n\t\ttime = time % (1000 * 60 * 60 * 24);\r\n\t\t\r\n\t\tlong hours = time / (1000 * 60 * 60);\r\n\t\ttime = time % (1000 * 60 * 60);\r\n\t\t\r\n\t\tlong mins = time / (1000 * 60);\r\n\t\ttime = time % (1000 * 60);\r\n\t\t\r\n\t\tlong secs = time / 1000;\r\n\t\t\r\n\t\tStringBuilder builder = new StringBuilder();\r\n\t\tif (days>0) {\r\n\t\t\tbuilder.append(days + \" d : \");\r\n\t\t}\r\n\t\tbuilder.append(String.format(\"%02d h : \", hours));\r\n\t\tbuilder.append(String.format(\"%02d m : \", mins));\r\n\t\tbuilder.append(String.format(\"%02d s\", secs));\r\n\r\n\t\treturn builder.toString();\r\n\t}", "static public String getElapsed(long lTime) {\n // Convert from milliseconds to seconds\n lTime /= 1000;\n\n // Get hours, minutes, seconds\n int nHr = (int) lTime / 3600;\n lTime %= 3600;\n int nMn = (int) lTime / 60;\n lTime %= 60;\n int nSc = (int) lTime;\n\n // Convert to a string and return\n return (((nHr < 10) ? \"0\" + nHr : new Integer(nHr).toString()) + \":\"\n + ((nMn < 10) ? \"0\" + nMn : new Integer(nMn).toString()) + \":\" + ((nSc < 10) ? \"0\"\n + nSc\n : new Integer(nSc).toString()));\n }", "public static long getTimeInMillis(String formatted_time){\n \t\n \tlong firstTime = System.currentTimeMillis();\n \tint hour;\n \tint minute;\n\n \tif (formatted_time != null){\n \t\t\n \t\tString[] timeString = formatted_time.split(\":\");\n \tif (timeString.length != 2)\n \t\treturn firstTime;\n \telse{\n \t\thour = Integer.parseInt(timeString[0]);\n \t\tminute = Integer.parseInt(timeString[1]);\n \t}\n \t\n\t \tCalendar cal = Calendar.getInstance();\n\t cal.set(Calendar.HOUR_OF_DAY,hour);\n\t cal.set(Calendar.MINUTE,minute);\n\t cal.set(Calendar.SECOND,0);\n\t \tfirstTime = cal.getTimeInMillis();\n \t}\n \t\n \treturn firstTime;\n }", "public static String longToYYYYMMDD(long longTime)\r\n/* 143: */ {\r\n/* 144:206 */ SimpleDateFormat formatter = new SimpleDateFormat(\"yyyyMMdd\");\r\n/* 145:207 */ Date strtodate = new Date(longTime);\r\n/* 146:208 */ return formatter.format(strtodate);\r\n/* 147: */ }", "public static String millisecondsToString(long milliseconds) {\n if (milliseconds == 0 || milliseconds < MINUTE_IN_MILLIS) {\n return \"0 min\";\n }\n\n String output = \"\";\n\n long hours = MILLISECONDS.toHours(milliseconds);\n if (hours > 0) {\n output = hours + \" hr \";\n }\n\n long minutes = MILLISECONDS.toMinutes(milliseconds);\n long leftOverMinutes = minutes - HOURS.toMinutes(hours);\n\n if (leftOverMinutes > 0) {\n output += leftOverMinutes + \" min\";\n }\n return output.trim();\n }", "private String formatTime(long nanoSeconds)\n {\n int hours, minutes, remainder, totalSecondsNoFraction;\n double totalSeconds, seconds;\n\n totalSeconds = (double) nanoSeconds / 1000000000.0;\n\n hours = (int) totalSeconds / 3600;\n totalSeconds -= hours * 3600;\n\n minutes = (int) totalSeconds / 60;\n totalSeconds -= minutes * 60;\n\n seconds = totalSeconds;\n\n // Formatting the string that conatins hours, minutes and seconds\n StringBuilder result = new StringBuilder(\"\");\n if (hours > 0) {\n if (hours < 10)\n result.append(\"0\");\n result.append(hours);\n }\n else\n result.append(\"00\");\n result.append(\":\");\n if (minutes > 0) {\n if (minutes < 10)\n result.append(\"0\");\n result.append(minutes);\n }\n else\n result.append(\"00\");\n result.append(\":\");\n if (seconds > 0) {\n if (seconds < 10)\n result.append(\"0\");\n DecimalFormat df = new DecimalFormat(\"##.00\");\n result.append(df.format(seconds));\n }\n else\n result.append(\"00\");\n return result.toString();\n }", "public String milliSecondsToTimer(long milliseconds){\n\t\tString finalTimerString = \"\";\n\t\tString secondsString = \"\";\n\t\t\n\t\t// Convert total duration into time\n\t\t int hours = (int)( milliseconds / (1000*60*60));\n\t\t int minutes = (int)(milliseconds % (1000*60*60)) / (1000*60);\n\t\t int seconds = (int) ((milliseconds % (1000*60*60)) % (1000*60) / 1000);\n\t\t // Add hours if there\n\t\t if(hours > 0){\n\t\t\t finalTimerString = hours + \":\";\n\t\t }\n\t\t \n\t\t // Prepending 0 to seconds if it is one digit\n\t\t if(seconds < 10){ \n\t\t\t secondsString = \"0\" + seconds;\n\t\t }else{\n\t\t\t secondsString = \"\" + seconds;}\n\t\t \n\t\t finalTimerString = finalTimerString + minutes + \":\" + secondsString;\n\t\t\n\t\t// return timer string\n\t\treturn finalTimerString;\n\t}", "public static String getMillisecondTimeString(long hour, long minute, long second, long millisecond)\n\t{\n\t\tString hourString = null;\n\t\tString minuteString = null;\n\t\tString secondString = null;\n\t\tString millisecondString = null;\n\t\t\n\t\tif (hour < 10)\n\t\t{\n\t\t\thourString = \"0\" + hour;\n\t\t}\n\t\telse\n\t\t{\n\t\t\thourString = \"\" + hour;\n\t\t}\n\t\t\n\t\tif (minute < 10)\n\t\t{\n\t\t\tminuteString = \"0\" + minute;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tminuteString = \"\" + minute;\n\t\t}\n\t\t\n\t\tif (second < 10)\n\t\t{\n\t\t\tsecondString = \"0\" + second;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tsecondString = \"\" + second;\n\t\t}\n\t\t\n\t\tif (millisecond < 10)\n\t\t{\n\t\t\tmillisecondString = \"00\" + millisecond;\n\t\t}\n\t\telse if (millisecond < 100)\n\t\t{\n\t\t\tmillisecondString = \"0\" + millisecond;\n\t\t}\t\n\t\telse \n\t\t{\n\t\t\tmillisecondString = \"\" + millisecond;\n\t\t}\n\t\t\n\t\treturn hourString + \":\" + minuteString + \":\" + secondString + \":\" + millisecondString;\n\t}", "public static long timestampMicros()\n {\n return currentTimeMillis() * 1000;\n }", "public String getFormattedTime(){\r\n\t\tlong timestampInMs = ((long) timestamp * 1000);\r\n\t\tmessageTimestampTimeFormat = new SimpleDateFormat(messageTimestampTimeFormatString, Locale.getDefault()); \t//Initialise the time object we will use\r\n\t\tmessageTimestampTimeFormat.setTimeZone(TimeZone.getDefault());\r\n\t\tString messageSentString = messageTimestampTimeFormat.format(new Date(timestampInMs));\r\n\t\treturn messageSentString;\r\n\t}", "public long toTimelineValue(long millisecond) { return millisecond; }", "public static String getPrintToFileTime() {\n @SuppressLint(\"SimpleDateFormat\") SimpleDateFormat sdf = new SimpleDateFormat(\"yyyyMMdd_HHmmss\");\n return sdf.format(System.currentTimeMillis());\n }", "long getCurrentTimeMs();", "public String convertCalendarMillisecondsAsLongToDatePublication(long fingerprint) {\n\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"MMM dd, yyyy\");\n\t\t Date date = new Date(fingerprint);\n\t\t return dateFormat.format(date);\n\t\t\t}", "public static String FormatMillis(String prefix, int now) {\r\n int whom = 0;\r\n boolean more = false;\r\n if (now == 0x80000000) {\r\n now = GetMills();\r\n }\r\n if (now < 0) {\r\n return FormatMillis(prefix + \"-\", -now);\r\n }\r\n if (now >= 3600000) { // convert to hours..\r\n whom = now / 3600000;\r\n now = now - whom * 3600000;\r\n prefix = prefix + whom + \":\";\r\n more = true;\r\n }\r\n if (now >= 60000) { // convert to minutes..\r\n if (more && now < 600000) {\r\n prefix = prefix + \"0\";\r\n }\r\n whom = now / 60000;\r\n now = now - whom * 60000;\r\n prefix = prefix + whom + \":\";\r\n more = true;\r\n } else if (more) {\r\n prefix = prefix + whom + \"00:\";\r\n }\r\n if (more && now < 10000) {\r\n prefix = prefix + \"0\";\r\n }\r\n whom = now / 1000;\r\n now = now - whom * 1000;\r\n prefix = prefix + whom + \".\";\r\n if (now < 10) {\r\n prefix = prefix + \"00\";\r\n } else if (now < 100) {\r\n prefix = prefix + \"0\";\r\n }\r\n return prefix + now;\r\n }", "public static final Function<Long,Date> timeInMillisToDate() {\r\n return TIME_IN_MILLIS_TO_DATE;\r\n }", "public static long getUnifiedMillis (final long nMillis)\n {\n return nMillis / CGlobal.MILLISECONDS_PER_SECOND * CGlobal.MILLISECONDS_PER_SECOND;\n }", "public static String getTimeString() {\n SimpleDateFormat formatter = new SimpleDateFormat(\"EEE MMM dd HH:mm:ss yyyy\");\n return formatter.format(new java.util.Date());\n }", "public static String timeAsString(long totalTime) {\n long second = totalTime / 1000 % 60;\n long minute = totalTime / (1000 * 60) % 60;\n long hour = totalTime / (1000 * 60 * 60);\n\n return String.format(\"%02d:%02d:%02d\", hour, minute, second);\n }", "public static double getTimeMs(){\n return System.nanoTime()*nanoToMs;\n }", "long getTime();" ]
[ "0.6705037", "0.66384137", "0.66323537", "0.66279376", "0.661014", "0.6569193", "0.6485266", "0.6411901", "0.63571715", "0.6285877", "0.6274", "0.62729836", "0.62720233", "0.62720233", "0.6241921", "0.62389064", "0.6231428", "0.6229645", "0.62211347", "0.62101567", "0.6202072", "0.61733025", "0.6137352", "0.60505307", "0.60164547", "0.5935305", "0.59329957", "0.592192", "0.5913434", "0.5890899", "0.58901083", "0.5884145", "0.58688956", "0.5854985", "0.5838359", "0.58367306", "0.58367157", "0.5824788", "0.5822111", "0.58053017", "0.5786241", "0.57771784", "0.57664156", "0.5745634", "0.5740752", "0.5737088", "0.5735655", "0.57350934", "0.5734813", "0.573058", "0.5730438", "0.5692997", "0.5676699", "0.56747746", "0.56684005", "0.56609213", "0.56582594", "0.56493455", "0.5620781", "0.5593558", "0.55849445", "0.55660856", "0.55635196", "0.5558984", "0.5547293", "0.5537294", "0.5527349", "0.5523908", "0.5523", "0.5522597", "0.5519282", "0.55160505", "0.5508239", "0.55038714", "0.5499712", "0.5495585", "0.5486807", "0.547191", "0.5465839", "0.5462322", "0.5450613", "0.5449914", "0.5444569", "0.544096", "0.5435678", "0.54345596", "0.54311967", "0.5425974", "0.5421885", "0.5414176", "0.54001063", "0.539212", "0.53782076", "0.5364659", "0.53587574", "0.5356926", "0.5350193", "0.53433317", "0.53336656", "0.5323797" ]
0.5689484
52
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View v = inflater.inflate(R.layout.fragment_detail_produk, container, false); mDemoSlider = (SliderLayout) v.findViewById(R.id.slider); Bundle b = this.getArguments(); if (b != null) { produk = b.getParcelable("Produk"); token = b.getString("token"); TextView judul = (TextView) v.findViewById(R.id.textNamadetailProduk); TextView desc = (TextView) v.findViewById(R.id.textDescDetailProduk); TextView tanggal = (TextView) v.findViewById(R.id.textViewTanggalDetailProduk); RippleView telp = (RippleView) v.findViewById(R.id.call_button); RippleView sms = (RippleView) v.findViewById(R.id.pesan_button); judul.setText(produk.getNama()); desc.setText(produk.getDeskripsi()); tanggal.setText(produk.getTanggal()); HashMap<String, String> file_maps = new HashMap<String, String>(); if (produk.cekDaftarGambar()) { file_maps.put("Coming soon !", ""); Toast.makeText(DetailProduk.this.getContext(), Boolean.toString(produk.cekDaftarGambar()), Toast.LENGTH_SHORT).show(); } for (GambarProduk g : produk.getDaftargambar()) { file_maps.put(g.getNama(), g.getUrl()); } for (String name : file_maps.keySet()) { TextSliderView textSliderView = new TextSliderView(this.getContext()); // initialize a SliderLayout textSliderView .description(name) .image(file_maps.get(name)) .setScaleType(BaseSliderView.ScaleType.Fit) .setOnSliderClickListener(DetailProduk.this); mDemoSlider.addSlider(textSliderView); } mDemoSlider.setPresetIndicator(SliderLayout.PresetIndicators.Center_Bottom); if (produk.getBanyakgambar() > 1) { mDemoSlider.setPresetTransformer(SliderLayout.Transformer.ZoomOut); mDemoSlider.setCustomAnimation(new DescriptionAnimation()); mDemoSlider.setDuration(4000); } else { mDemoSlider.stopAutoCycle(); mDemoSlider.setPagerTransformer(false, new BaseTransformer() { @Override protected void onTransform(View view, float v) { } }); } telp.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { Intent callintent = new Intent(Intent.ACTION_CALL); callintent.setData(Uri.parse("tel:" + produk.getNotel())); startActivity(callintent); } }); sms.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { Intent smsIntent = new Intent(Intent.ACTION_VIEW); smsIntent.setType("vnd.android-dir/mms-sms"); smsIntent.putExtra("address", produk.getNotel()); startActivity(smsIntent); } }); } return v; }
{ "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 Autogenerated method stub
@Override public List<KomponenNilai> get(String where, String order, int limit, int offset) { String dbWhere = ""; String dbOrder = ""; if(where != "") dbWhere += " WHERE " + where; if(order != "") dbOrder += " ORDER BY " + order; Query query = sessionFactory.getCurrentSession().createQuery("FROM KomponenNilai" + dbWhere + dbOrder); return query.list(); }
{ "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
TODO Autogenerated method stub
@Override public UUID insert(KomponenNilai komp) { Session session = sessionFactory.openSession(); Transaction tx = session.beginTransaction(); UUID insertId = (UUID)session.save(komp); tx.commit(); session.flush(); session.close(); return insertId; }
{ "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 update(KomponenNilai komp) { Session session = sessionFactory.openSession(); Transaction tx = session.beginTransaction(); session.update(komp); tx.commit(); session.flush(); session.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}", "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 delete(UUID idKomp) { Session session = sessionFactory.openSession(); Transaction tx = session.beginTransaction(); String delete = "UPDATE KomponenNilai SET aKompAktif = FALSE WHERE idKomponen = :idKomp"; Query query = session.createQuery(delete); query.setParameter("idKomp", idKomp); query.executeUpdate(); tx.commit(); session.flush(); session.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}", "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 double totalPresentase(UUID idPemb) { Query query = sessionFactory.getCurrentSession().createQuery("SELECT sum(k.persentase_komponen) as res " + "FROM komponen_nilai k WHERE id_pemb='" + idPemb + "'"); List<Object[]> results = (List<Object[]>)query.list(); for (Object[] result : results) { double res = (Double) result[0]; System.out.println(res); } return 0; }
{ "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
TODO Autogenerated method stub
@Override public KomponenNilai getById(UUID idKomp) { return (KomponenNilai) sessionFactory.getCurrentSession().get(KomponenNilai.class, idKomp); }
{ "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
round edges of this element Warning : this changes your element
public Poi ToArea() { this.lat = PoiManager.roundToHalfDown(this.lat); this.lon = PoiManager.roundToHalfDown(this.lon); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public IconBuilder round() {\n\t\tthis.shape = IconShape.ROUND;\n\t\treturn this;\n\t}", "void resetRoundHitbox() {\n setRoundHitbox((_w+_h)/4);\n }", "public void setRoundedRectangleClip(int x, int y, int width, int height, int radius);", "@Override\n protected float getCurrentBottomCornerRadius() {\n return getCurrentTopCornerRadius();\n }", "public void strokeRoundRectangle(int x, int y, int width, int height, int radius);", "public IconBuilder roundRect(int radius) {\n\t\tthis.shape = IconShape.ROUNDED;\n\t\tthis.radius = radius;\n\t\treturn this;\n\t}", "@Override\n public Shape getCelkoveHranice() {\n return new Rectangle2D.Double(super.getX() + 22, super.getY() + 45, 45, 45);\n }", "@Override\n protected void paintBorder(Graphics g) {\n g.setColor(getForeground());\n g.drawRoundRect(0, 0, getWidth() - 1, getHeight() - 1, 15, 50);\n }", "public RoundRectStroke(CaliView parentView) {\n super(parentView);\n }", "protected Rectangle getSelectedElementFigureArea()\n {\n boolean anchored = false;\n\n // Use figures since they may be sized differently during dynamics\n // accumulate as unzoomed.\n Rectangle r = null;\n\n // Go through the list of selected widget figures, union the bounds.\n Iterator<FrameEltSelnFig<?>> iter = selection.getSelectedFigures();\n\n while (iter.hasNext()) {\n FrameEltSelnFig<?> fig = iter.next();\n\n if (fig instanceof GraphicalWidget<?>) {\n GraphicalWidget<?> gw = (GraphicalWidget<?>) fig;\n IWidget w = gw.getModel();\n SimpleWidgetGroup wg = w.getParentGroup();\n\n if (wg != null) {\n r = unionBounds(r, getGroupFigureBounds(wg));\n anchored = anchored || (w instanceof ChildWidget);\n }\n else {\n r = unionBounds(r, gw.getBounds());\n }\n }\n else if (fig instanceof FrameEltGroupHalo) {\n Rectangle haloBds = fig.getBounds(); // this is zoomed!\n double scale = frameUI.getZoom();\n\n double right = (haloBds.x + haloBds.width) / scale;\n double bottom = (haloBds.y + haloBds.height) / scale;\n double left = haloBds.x / scale;\n double top = haloBds.y / scale;\n\n haloBds =\n PrecisionUtilities.getDraw2DRectangle(left,\n top,\n right - left,\n bottom - top);\n\n r = unionBounds(r, haloBds);\n }\n }\n\n setTopLeftAnchored(anchored);\n\n return r;\n }", "private void setPenRadius() {\n\t}", "public void drawRoundRect(int x, int y, int width, int height, int arcWidth,\r\n\t\t\tint arcHeight)\r\n\t{\r\n\t\t// System.out.println(\"drawRoundRect\");\r\n\t}", "public void strokeRoundRectangle(RectangleShape rectangle, int radius);", "@Override\r\n\tprotected void initShape() {\n\t\tgetPositions().putAll(createSymmetricLines(0, 1.5, .5, 1.1, WingPart.OUTER_LEFT, WingPart.OUTER_RIGHT));\r\n\t\t//->upper corner\r\n\t\tgetPositions().putAll(createSymmetricLines(.5, 1.1, 1, .7, WingPart.OUTER_LEFT, WingPart.OUTER_RIGHT));\r\n\t\t//-> lower outer corner\r\n\t\tgetPositions().putAll(createSymmetricLines(1, .7, 1.1, .3, WingPart.OUTER_LEFT, WingPart.OUTER_RIGHT));\r\n\t\t//-> lower inner corner\r\n\t\tgetPositions().putAll(createSymmetricLines(1.1, .3, .7, .25, WingPart.OUTER_LEFT, WingPart.OUTER_RIGHT));\r\n\t\t//-> middle\r\n\t\tgetPositions().putAll(createSymmetricLines(.7, .25, .2, 1.35, WingPart.OUTER_LEFT, WingPart.OUTER_RIGHT));\r\n\t\t//inner\r\n\t\tgetPositions().putAll(createSymmetricLines(1, .5, .55, 0.95, WingPart.INNER_LEFT, WingPart.INNER_RIGHT));\r\n\t\tgetPositions().putAll(createSymmetricLines(0.8, .4, .55, 0.95, WingPart.INNER_LEFT, WingPart.INNER_RIGHT));\r\n\t\tgetPositions().putAll(createSymmetricPoints(0.9, .5, WingPart.INNER_LEFT, WingPart.INNER_RIGHT));\r\n\r\n//\t\tgetPositions().putAll(fill(WingPart.OUTER_RIGHT, WingPart.INNER_RIGHT));\r\n//\t\tgetPositions().putAll(fill(WingPart.OUTER_LEFT, WingPart.INNER_LEFT));\r\n\t}", "public double getCornering() {\r\n return cornering;\r\n }", "public void fillRoundRectangle(RectangleShape rectangle, int radius);", "@Override\r\n Shape getOutline ()\r\n {\r\n return null;\r\n }", "public static Paint newSurroundingAreaOverlayPaint() {\n\n final Paint paint = new Paint();\n paint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.CLEAR));\n paint.setAntiAlias(true);\n\n return paint;\n }", "private RectHV rectLb() {\n\n if (!horizontal) {\n return new RectHV(\n rect.xmin(),\n rect.ymin(),\n p.x(),\n rect.ymax()\n );\n\n\n } else {\n return new RectHV(\n rect.xmin(),\n rect.ymin(),\n rect.xmax(),\n p.y()\n );\n }\n }", "public void fillRoundRectangle(int x, int y, int width, int height, int radius);", "public static void testRoundDown(){\n\t Picture wall = new Picture(\"wall.jpg\");\n\t wall.explore();\n\t wall.roundDownToMultOf8();\n\t wall.explore();\n }", "public void setRoundCorners(boolean a) {\n\t\tthis.round = a;\n\t}", "public RoundPanelOJ() {\n initComponents();\n setOpaque(false);\n }", "public Shape getClipShape() { return null; }", "public void roundedRect(ShapeRenderer sr, float x, float y, float width, float height, float radius) {\n if(radius <= 0) {\n sr.rect(x, y, width, height);\n } else {\n // Central rectangle\n sr.rect(x + radius, y + radius, width - 2 * radius, height - 2 * radius);\n\n // Four side rectangles, in clockwise order\n sr.rect(x + radius, y, width - 2 * radius, radius);\n sr.rect(x + width - radius, y + radius, radius, height - 2 * radius);\n sr.rect(x + radius, y + height - radius, width - 2 * radius, radius);\n sr.rect(x, y + radius, radius, height - 2 * radius);\n\n // Four arches, clockwise too\n sr.arc(x + radius, y + radius, radius, 180f, 90f);\n sr.arc(x + width - radius, y + radius, radius, 270f, 90f);\n sr.arc(x + width - radius, y + height - radius, radius, 0f, 90f);\n sr.arc(x + radius, y + height - radius, radius, 90f, 90f);\n }\n }", "public Shape getPath()\n {\n if (getRadius() < 0.0001) return super.getPath();\n return new RoundRect(0, 0, getWidth(), getHeight(), getRadius());\n }", "private double getRadius() {\n\t\treturn Math.min(getWidth(), getHeight()) / 2.0 * RADIUS_MODIFIER;\n\t}", "void setRoundHitbox(float r) {\n _hitbox = new PVector[]{new PVector(r, r*2)};\n }", "public void setCornering(double cornering) {\r\n this.cornering = cornering;\r\n }", "@Override\n protected void paintComponent(Graphics g) {\n\n Graphics2D g2d = (Graphics2D) g.create();\n g2d.setRenderingHint(\n RenderingHints.KEY_ANTIALIASING,\n RenderingHints.VALUE_ANTIALIAS_ON);\n g2d.setComposite(AlphaComposite.getInstance(\n AlphaComposite.SRC_OVER, opa));\n g2d.setColor(color);\n if (!round) {\n g2d.fillRect(0, 0, getWidth(), getHeight());\n } else {\n g2d.fillRoundRect(0, 0, getWidth(), getHeight(), corner, corner);\n }\n }", "@Override\n protected PieceBuilder.LastStep<RoundPiece> newBuilder() {\n return newBuilderTypeStep().round();\n }", "public void aapneOgByttFarge() {\n aapne();\n if (!bombe) {\n Color lysegroenn = Color.rgb(86, 130, 3, 0.3);\n setBackground(new Background(new BackgroundFill(lysegroenn, CornerRadii.EMPTY, Insets.EMPTY)));\n }\n }", "@Override\r\n\tpublic double getRadius() {\n\t\treturn 0;\r\n\t}", "public void drawRoundedRect(Rectangle r) {\n implementation.devDrawRoundedRectRotation(\n (int) r.getMinX(),\n (int) r.getMinY(),\n (int) r.getWidth(),\n (int) r.getHeight(),\n (int) r.getRoundValue(),\n (int) r.getRoundValue(),\n (int) r.getAngle(),\n r.getColor()\n );\n }", "private void turnOverItself() {\n byte tmp = leftEdge;\n leftEdge = reversedRightEdge;\n reversedRightEdge = tmp;\n\n tmp = rightEdge;\n rightEdge = reversedLeftEdge;\n reversedLeftEdge = tmp;\n\n tmp = topEdge;\n topEdge = reversedTopEdge;\n reversedTopEdge = tmp;\n\n tmp = botEdge;\n botEdge = reversedBotEdge;\n reversedBotEdge = tmp;\n\n tmp = ltCorner;\n ltCorner = rtCorner;\n rtCorner = tmp;\n\n tmp = lbCorner;\n lbCorner = rbCorner;\n rbCorner = tmp;\n }", "public RoundRectStroke(RoundRectStroke copyFrom) {\n super(copyFrom.parentView, new Path(), copyFrom);\n points.addAll(copyFrom.points);\n createPath();\n }", "default boolean isAllCorners() {\n return false;\n }", "public IconBuilder rect() {\n\t\tthis.shape = IconShape.RECTANGLE;\n\t\treturn this;\n\t}", "public int getEventCornerRadius() {\n return config.eventCornerRadius;\n }", "public IRectangleBound getClipBound();", "@Override\n public boolean getScaleDownInsideBorders() {\n return mScaleDownInsideBorders;\n }", "public void paintComponent(Graphics g) {\n\n Graphics2D g2 = (Graphics2D) g;\n g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n\n Color bg = new Color(237,237,237,0);//getBackground();\n g2.setColor(new Color(bg.getRed(),bg.getGreen(),bg.getBlue()));\n g2.fillRoundRect(0,0, getWidth()-1, getHeight()-1, radius, radius);\n g2.setColor(new Color(164,164,164));\n g2.drawRoundRect(0,0, getWidth()-1, getHeight()-1, radius, radius);\n }", "@Override\n\tpublic float getBoundingRadius() {\n\t\treturn boundingradius;\n\t}", "public RoundedColorDrawable(){\n super();\n }", "@Override\n\t\tpublic void paintBorder(Component c, Graphics g, int x, int y, int width, int height) {\n\t\t\tsuper.paintBorder(c, g, x - 1, y, width + 5, height);\n\t\t}", "@Override\r\n\tpublic void howToColor() {\r\n\t\tSystem.out.println(\"Color all sides of the rectangle.\");\r\n\t}", "public void removeAllEdges() {\n }", "public abstract Rect getRectForNodeHighlight();", "public Vector[] getCorners() {\n\t\treturn new Vector[] { this.topLeft, this.topRight, this.botLeft, this.botRight };\n\t}", "@Override\n\tpublic double perimeter() {\n\t\treturn edge*4;\n\t}", "private void renderBorder() {\n\t\trenderHorizontalLine(0, BORDER_SIGN_HORIZONTAL);\n\t\trenderHorizontalLine(this.output.length - 1, BORDER_SIGN_HORIZONTAL);\n\t\trenderVerticalLine(0, BORDER_SIGN_VERTICAL);\n\t\trenderVerticalLine(this.output[0].length - 1, BORDER_SIGN_VERTICAL);\n\n\t\tthis.output[0][0] = BORDER_SIGN_EDGE;\n\t\tthis.output[0][this.output[0].length - 1] = BORDER_SIGN_EDGE;\n\t\tthis.output[this.output.length - 1][0] = BORDER_SIGN_EDGE;\n\t\tthis.output[this.output.length - 1][this.output[0].length - 1] = BORDER_SIGN_EDGE;\n\t}", "public native MagickImage edgeImage(double raduis) throws MagickException;", "public Stroke getInnerStroke() {\n return null;\n }", "@Override\r\n\tpublic void BuildBody() {\n\t\tg.drawRoundRect(0, 0, 60, 50, 10, 50);\r\n\t}", "abstract BufferedImage getBackround();", "public Shape getAreaColision();", "public SolidCornerBorder(HtmlMarkupTag parent)\r\n {\r\n super(parent);\r\n }", "@Override\r\n public final void draw(final Circle s, final BufferedImage paper) {\n\r\n int xc = s.getX();\r\n int yc = s.getY();\r\n int r = s.getRaza();\r\n int x = 0, y = r;\r\n final int trei = 3;\r\n int doi = 2;\r\n int d = trei - doi * r;\r\n while (y >= x) {\r\n if (checkBorder(xc + x, yc + y, paper)) {\r\n paper.setRGB(xc + x, yc + y, s.getBorderColor().getRGB());\r\n }\r\n if (checkBorder(xc - x, yc + y, paper)) {\r\n paper.setRGB(xc - x, yc + y, s.getBorderColor().getRGB());\r\n }\r\n if (checkBorder(xc + x, yc - y, paper)) {\r\n paper.setRGB(xc + x, yc - y, s.getBorderColor().getRGB());\r\n }\r\n if (checkBorder(xc - x, yc - y, paper)) {\r\n paper.setRGB(xc - x, yc - y, s.getBorderColor().getRGB());\r\n }\r\n if (checkBorder(xc + y, yc + x, paper)) {\r\n paper.setRGB(xc + y, yc + x, s.getBorderColor().getRGB());\r\n }\r\n if (checkBorder(xc + y, yc - x, paper)) {\r\n paper.setRGB(xc + y, yc - x, s.getBorderColor().getRGB());\r\n }\r\n if (checkBorder(xc - y, yc + x, paper)) {\r\n paper.setRGB(xc - y, yc + x, s.getBorderColor().getRGB());\r\n }\r\n if (checkBorder(xc - y, yc - x, paper)) {\r\n paper.setRGB(xc - y, yc - x, s.getBorderColor().getRGB());\r\n }\r\n\r\n x++;\r\n if (d > 0) {\r\n y--;\r\n final int patru = 4;\r\n final int zece = 10;\r\n d = d + patru * (x - y) + zece;\r\n } else {\r\n final int patru = 4;\r\n final int sase = 6;\r\n d = d + patru * x + sase;\r\n }\r\n if (checkBorder(xc + x, yc + y, paper)) {\r\n paper.setRGB(xc + x, yc + y, s.getBorderColor().getRGB());\r\n }\r\n if (checkBorder(xc - x, yc + y, paper)) {\r\n paper.setRGB(xc - x, yc + y, s.getBorderColor().getRGB());\r\n }\r\n if (checkBorder(xc + x, yc - y, paper)) {\r\n paper.setRGB(xc + x, yc - y, s.getBorderColor().getRGB());\r\n }\r\n if (checkBorder(xc - x, yc - y, paper)) {\r\n paper.setRGB(xc - x, yc - y, s.getBorderColor().getRGB());\r\n }\r\n if (checkBorder(xc + y, yc + x, paper)) {\r\n paper.setRGB(xc + y, yc + x, s.getBorderColor().getRGB());\r\n }\r\n if (checkBorder(xc + y, yc - x, paper)) {\r\n paper.setRGB(xc + y, yc - x, s.getBorderColor().getRGB());\r\n }\r\n if (checkBorder(xc - y, yc + x, paper)) {\r\n paper.setRGB(xc - y, yc + x, s.getBorderColor().getRGB());\r\n }\r\n if (checkBorder(xc - y, yc - x, paper)) {\r\n paper.setRGB(xc - y, yc - x, s.getBorderColor().getRGB());\r\n }\r\n\r\n }\r\n floodFill(xc, yc, s.getFillColor(), s.getBorderColor(), paper);\r\n }", "public void drawRoundedRect(int x, int y, int width, int height, int roundSize, Color color) {\n implementation.devDrawRoundedRect(x, y, width, height, roundSize, roundSize, color);\n }", "public UndirectedEdge() {\n \tthis(null,null);\n\t}", "private void setSizeBox() {\n\t\t\tthis.leftX = pointsSubStroke.get(0).getX();\n\t\t\tthis.righX = pointsSubStroke.get(0).getX();\n\t\t\tthis.topY = pointsSubStroke.get(0).getY();\n\t\t\tthis.bottomY = pointsSubStroke.get(0).getY();\n\t\t\t\n\t\t\tfor(int i = 0; i < pointsSubStroke.size();i++) {\n\t\t\t\tdouble x = pointsSubStroke.get(i).getX();\n\t\t\t\tdouble y = pointsSubStroke.get(i).getX();\n\t\t\t\t\n\t\t\t\tthis.leftX = Math.min(x, leftX);\n\t\t\t\tthis.righX = Math.max(x, righX);\n\t\t\t\tthis.topY = Math.min(y, topY);\n\t\t\t\tthis.bottomY = Math.max(y, bottomY);\n\t\t\t}\n\t\t}", "protected void paintBorder (Graphics g)\r\n {\n }", "private void decorate() {\n setBorderPainted(false);\n setOpaque(true);\n \n setContentAreaFilled(false);\n setMargin(new Insets(1, 1, 1, 1));\n }", "public Round getRound(){\n return mRound;\n }", "public void paint(Graphics g){\n g.setColor(Color.LIGHT_GRAY);\n g.drawRoundRect(0, 0, getWidth()-1, getHeight()-1, 20, 20);\n try{\n super.paint(g);}\n catch(Exception e){\n ij.IJ.showMessage(\"Paint Error\");\n }\n }", "@Override\r\n\tpublic Shape getHitbox() {\n\t\treturn null;\r\n\t}", "public Bitmap roundImage(Bitmap bm){\n\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n\n Bitmap bitmap = bm;\n\n Bitmap bitmapRounded = Bitmap.createBitmap(bitmap.getWidth(), bitmap.getHeight(), bitmap.getConfig());\n Canvas canvas = new Canvas(bitmapRounded);\n Paint paint = new Paint();\n paint.setAntiAlias(true);\n paint.setShader(new BitmapShader(bitmap, Shader.TileMode.CLAMP, Shader.TileMode.CLAMP));\n canvas.drawRoundRect((new RectF(0.0f, 0.0f, bitmap.getWidth(), bitmap.getHeight())), 80, 80, paint);\n\n return bitmapRounded;\n }", "public double getArea() {\n\t\treturn 6.0 * this.edgelen * this.edgelen;\n\t}", "public abstract Rectangle getSnapshotSquareBounds();", "protected EdgeFigure getEdgeFigure() {\r\n\t\treturn (EdgeFigure)getFigure();\r\n\t}", "public void bounceOffEdge()\n {\n int margin = 2;\n\n if (getX() <= margin || getX() >= getWorld().getWidth() - margin) //left or right side\n {\n turn(180);\n }\n if (getY() <= margin || getY() >= getWorld().getHeight() - margin) //top or bottom side\n {\n turn(180);\n }\n }", "public float getWindowCornerRadius() {\n return this.mWindowCornerRadius;\n }", "public void SubRect(){\n\t\n}", "public abstract double getBoundingCircleRadius();", "@Override\n protected Double[] getCorners(){\n return new Double[]{\n //leftmost point\n getXPos(), getYPos(),\n //rightmost point\n getXPos() + getWidth(), getYPos(),\n //middle point\n getXPos() + getWidth() / 2, getYPos() + getHeight() * getThirdTriangleYPoint(pointUp)\n };\n }", "public int getItemsRadius();", "public ViewEdges extendsOutside(RectF bounds)\n {\n boolean left = false;\n boolean top = false;\n boolean right = false;\n boolean bottom = false;\n \n updateRotatedCorners();\n for (int i = 0; i < 4; i++)\n {\n left = left || (rotatedCorners[i][0] < bounds.left );\n top = top || (rotatedCorners[i][1] < bounds.top );\n right = right || (rotatedCorners[i][0] >= bounds.right );\n bottom = bottom || (rotatedCorners[i][1] >= bounds.bottom);\n }\n \n return new ViewEdges(left, top, right, bottom);\n }", "public Round() {\n\t\tthis.niceMoves = null;\n\t\tthis.roundNo = 1;\n\t}", "@Override\n public void fillRoundRectangle(Rectangle rect, int arcWidth, int arcHeight) {\n RoundRectangle2D roundRect = new RoundRectangle2D.Float(rect.x + transX, rect.y + transY, rect.width - 1, rect.height - 1, arcWidth,\n arcHeight);\n\n checkState();\n getGraphics2D().setPaint(getColor(getSWTGraphics().getBackgroundColor()));\n getGraphics2D().fill(roundRect);\n }", "private GPoint findOuterCorner(double r) {\n\t\trIsNegative = false;\n\t\tif (r < 0) rIsNegative = true;\n\t\t//double cornerX = (lastClick.getX() + x)/2.0 - r;\n\t\t//double cornerY = lastClick.getY() - r;\n\t\t//GPoint point = new GPoint(cornerX,cornerY);\n\t\t//return point;\n\t\t//double cornerX = \n\t\tdouble centerX = (centerCircle.getWidth() / 2.0) + centerCircle.getX();\n\t\tdouble centerY = (centerCircle.getHeight() / 2.0) + centerCircle.getY();\n\t\tdouble x;\n\t\tif (!rIsNegative) {\n\t\t\tx = centerX + (centerCircle.getWidth() / 2.0);\n\t\t} else {\n\t\t\tx = centerX + (centerCircle.getWidth() / 2.0) + r*2.0;\n\t\t}\n\t\tdouble y = centerY - Math.abs(r);\n\t\tGPoint point = new GPoint(x,y);\n\t\treturn point;\n\t}", "public void fillRoundRect(int x, int y, int width, int height, int arcWidth,\r\n\t\t\tint arcHeight)\r\n\t{\r\n\t\t// System.out.println(\"fillRoundRect\");\r\n\t}", "@Override\n\tpublic BoundaryRectangle getBoundingBox() {\n\t\treturn new BoundaryRectangle(0, 0, drawView.getWidth(), drawView.getHeight());\n\t}", "ObjectProperty<Bounds> drawAreaBoundsProperty();", "public RMRect getBoundsInside() { return new RMRect(0, 0, getWidth(), getHeight()); }", "public Rectangle getBoundingBox() {\n return new Rectangle(this);\r\n }", "public RMParentShape getPageShape() { return _parent!=null? _parent.getPageShape() : (RMParentShape)this; }", "@Override\n\tprotected void onLayout(boolean changed, int left, int top, int right,\n\t\t\tint bottom) {\n\t\t super.onLayout(changed, left, top, right, bottom);\n\t\twidth = getWidth();\n\t\theight = getHeight();\n\t\tcenterX = (width) / 2;\n\t\tcenterY = (height) / 2;\n\t\tradius = centerX - 75;\n\t}", "@Override\n\t\tpublic void paintBorder(Component c, Graphics g, int x, int y, int width, int height) {\n\t\t\tsuper.paintBorder(c, g, x, y, width + 1, height);\n\t\t}", "private boolean corner(int e) {\r\n if (endx[e] + 200 >= width - radius[e] && directionend[e] == 0) {\r\n return true;\r\n } else if (endy[e] + 200 >= height - radius[e] && directionend[e] == 1) {\r\n return true;\r\n } else if (endx[e] - 200 <= radius[e] && directionend[e] == 2) {\r\n return true;\r\n } else if (endy[e] - 200 <= radius[e] && directionend[e] == 3) {\r\n return true;\r\n }\r\n return false;\r\n }", "public abstract Node getBoundingNode();", "public void cornersMovedToFocus() {\n int shift = context.getResources().getDisplayMetrics().densityDpi >= 640 ? 400 : 300;\n setMarginLayout(findViewById(R.id.corner_left_top), cornerPositions.getLeftTop().x + shift, cornerPositions.getLeftTop().y + shift);\n setMarginLayout(findViewById(R.id.corner_left_bottom), cornerPositions.getLeftBottom().x + shift, cornerPositions.getLeftBottom().y - shift);\n setMarginLayout(findViewById(R.id.corner_right_top), cornerPositions.getRightTop().x - shift, cornerPositions.getRightTop().y + shift);\n setMarginLayout(findViewById(R.id.corner_right_bottom), cornerPositions.getRightBottom().x - shift, cornerPositions.getRightBottom().y - shift);\n }", "public void draw(Graphics g) {\n\t\t\n\t\tGraphics2D g2d = (Graphics2D) g.create();\n\t\tg2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n\t\t\n\t\tjava.awt.Shape outer = new Ellipse2D.Double(getCenter().getX() - getRadius(), getCenter().getY() - getRadius(), getRadius()*2, getRadius()*2);\n\t\tjava.awt.Shape inner = new Ellipse2D.Double(getCenter().getX() - innerRadius, getCenter().getY() - innerRadius, innerRadius*2, innerRadius*2);\n\t\t\n\t\tArea circle = new Area(outer);\n\t\tcircle.subtract(new Area(inner));\n\t\t\n\t\tg2d.setColor(getInnerColor());\n\t\tg2d.fill(circle);\n\t\tg2d.setColor(getColor());\n\t\tg2d.draw(circle);\n\t\tg2d.dispose();\n\t\t\n\t\tif (isSelected()) {\n\t\t\tg.setColor(Color.BLUE);\n\t\t\tg.drawRect(this.getCenter().getX() - 3, this.getCenter().getY() - 3, 6, 6);\n\t\t\tg.drawRect(this.getCenter().getX() - getRadius() - 3, this.getCenter().getY() - 3, 6, 6);\n\t\t\tg.drawRect(this.getCenter().getX() + getRadius() - 3, this.getCenter().getY() - 3, 6, 6);\n\t\t\tg.drawRect(this.getCenter().getX() - 3, this.getCenter().getY() - getRadius() - 3, 6, 6);\n\t\t\tg.drawRect(this.getCenter().getX() - 3, this.getCenter().getY() + getRadius() - 3, 6, 6);\n\t\t}\n\t}", "@Override\r\n public double perimeter() {\n return (height+width)*2;\r\n }", "Point3D getLeftUpperBackCorner();", "@Override\n\tprotected void outlineShape(Graphics graphics) {\n\t}", "public int getRound()\r\n\t{\r\n\t\treturn this.round;\r\n\t}", "@Test\r\n public void testDrawingDoubler() {\r\n System.out.println(\"testDrawingDoubler\");\r\n ad = new AreaDoubler();\r\n d.accept(ad);\r\n \r\n Drawing dd = (Drawing)ad.getFigureDoubled();\r\n Circle dd_c = (Circle) dd.getComponents().get(0);\r\n Rectangle dd_r = (Rectangle) dd.getComponents().get(1);\r\n \r\n \r\n Circle c_doubled = (Circle)d.getComponents().get(0);\r\n double c_radius_doubled = c_doubled.getRadius()* Math.sqrt(2.0);\r\n \r\n assertEquals(c_radius_doubled, dd_c.getRadius(), 0.02);\r\n \r\n Rectangle r_doubled = (Rectangle)d.getComponents().get(1);\r\n double r_height_doubled = r_doubled.getHeight()* Math.sqrt(2.0);\r\n double r_width_doubled= r_doubled.getWidth()*Math.sqrt(2.0);\r\n \r\n assertEquals(r_height_doubled, dd_r.getHeight(), 0.02);\r\n assertEquals(r_width_doubled, dd_r.getWidth(), 0.02);\r\n \r\n }", "public void highlightTile() {\n\t\tclearHighlightTile();\n\t\trectangle.setStrokeType(StrokeType.INSIDE);\n\t\trectangle.setStrokeWidth(2.0);\n\t\trectangle.setStroke(Color.RED);\n\t}", "@Override public void draw(){\n // this take care of applying all styles (colors/stroke)\n super.draw();\n // draw our shape\n pg.ellipseMode(PGraphics.CORNER); // TODO: make configurable\n pg.ellipse(0,0,getSize().x,getSize().y);\n }", "public double getEdge()\n {\n return this.edge;\n }", "private void conformCorridors() {\n for (int rowView = 0; rowView < rowViewMax; rowView++) {\r\n for (int colView = 0; colView < colViewMax; colView++) {\r\n if (getCell(rowView, colView) != Cell.wall)\r\n setCell(rowView, colView, Cell.corridor);\r\n }\r\n }\r\n }" ]
[ "0.6609087", "0.61809194", "0.58581126", "0.5847138", "0.5801631", "0.57408935", "0.57299894", "0.5710537", "0.5699346", "0.5680783", "0.56385815", "0.5573351", "0.5564412", "0.556431", "0.55560726", "0.55505836", "0.5474668", "0.5437774", "0.54291296", "0.5414949", "0.53959376", "0.5391653", "0.537836", "0.5367244", "0.53606933", "0.5356293", "0.53516746", "0.5347717", "0.5345054", "0.5343522", "0.53389794", "0.5328122", "0.5301861", "0.53010094", "0.52954435", "0.52944875", "0.52909", "0.52899605", "0.52847916", "0.52842003", "0.52784497", "0.5276753", "0.526917", "0.5261941", "0.52581316", "0.5252918", "0.52518064", "0.5248234", "0.5232464", "0.52266157", "0.52215457", "0.5211827", "0.5194677", "0.519075", "0.51876754", "0.5182431", "0.51740324", "0.51691014", "0.5157974", "0.51574606", "0.515557", "0.51451766", "0.5142732", "0.51403767", "0.5140333", "0.5137164", "0.51324344", "0.51227415", "0.5121494", "0.5119173", "0.5112577", "0.5110773", "0.50983214", "0.50974405", "0.5087203", "0.50825995", "0.50378585", "0.50378245", "0.5034271", "0.503309", "0.5020564", "0.50178903", "0.5014458", "0.5011656", "0.5009923", "0.5009707", "0.5006923", "0.49995178", "0.49954256", "0.4994375", "0.4990528", "0.49870738", "0.49851325", "0.49821544", "0.4981371", "0.49812326", "0.49748504", "0.49713528", "0.4965955", "0.49605688", "0.4956492" ]
0.0
-1
deklarasi bahwa value dari variabel context menyesuaikan kontext yg ada di parameter fungsi CardViewKelasAdapter
public CardViewKelasAdapter(Context context){this.context = context;}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setNamaKelas(java.lang.CharSequence value) {\n this.nama_kelas = value;\n }", "@SuppressLint(\"SetTextI18n\")\n @Override\n public void bindView(View view, Context context, Cursor cursor) {\n if(Utils.weAreLollipop())view.findViewById(R.id.card).setElevation(contex.getResources().getDimension(R.dimen.elevation));\n String title=cursor.getString(cursor.getColumnIndexOrThrow(Contract.ITEM_TITLE));\n long itemID=cursor.getLong(cursor.getColumnIndexOrThrow(Contract.ITEM_ID));\n String date=cursor.getString(cursor.getColumnIndexOrThrow(Contract.ITEM_DATE));\n String sub=cursor.getString(cursor.getColumnIndexOrThrow(Contract.ITEM_SUBTITLE));\n TextView titleTextView= (TextView) view.findViewById(R.id.title);\n TextView subTextView= (TextView) view.findViewById(R.id.sub);\n TextView idTextView= (TextView) view.findViewById(R.id.item_id);\n TextView dateTextView= (TextView) view.findViewById(R.id.date);\n titleTextView.setText(title!=null?title:\"\");\n subTextView.setText(sub!=null?sub:\"\");\n idTextView.setText(\"\"+itemID);\n dateTextView.setText(date!=null?date:\"\");\n }", "@Override\n public void onBindViewHolder(ViewHolder holder, int position) {\n Abastecimento abastecimento = mData.get(position);\n holder.myTextView.setText(abastecimento.getPosto());\n holder.myTextView2.setText(String.valueOf(abastecimento.getValor()));\n }", "@Override\n\t\t\t\tpublic void onEntrada(Object entrada, View view) {\n\t\t\t\t\tif (entrada != null) \n\t\t\t\t\t{\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\tTextView TxtDNI1 = (TextView) view.findViewById(R.id.textViewDNI);\n\t\t\t\t\t\tTxtDNI1.setText(((Lista_entrada_ControlAcceso) entrada).get_IdFuncionario()); \n\n\t\t\t\t\t\tTextView TxtPlaca1 = (TextView) view.findViewById(R.id.textView_Placa);\n\t\t\t\t\t\tTxtPlaca1.setText(((Lista_entrada_ControlAcceso) entrada).get_Patente()); \n\t\t\t\t\t\t\n\t\t\t\t\t\tTextView TxtCod1 = (TextView) view.findViewById(R.id.textView_Cod); \n\t\t\t\t\t\tTxtCod1.setText(((Lista_entrada_ControlAcceso) entrada).get_CodError());\n\t\t\t\t\t\t\n\t\t\t\t\t\tTextView TxtFecha1= (TextView) view.findViewById(R.id.textView_Fecha); \n\t\t\t\t\t\tTxtFecha1.setText(((Lista_entrada_ControlAcceso) entrada).get_Fecha());\n\t\t\t\t\t\t\n\t\t\t\t\t\tTextView TxtHora1 = (TextView) view.findViewById(R.id.textView_Nivel); \n\t\t\t\t\t\tTxtHora1.setText(((Lista_entrada_ControlAcceso) entrada).get_Hora());\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Toast.makeText(mContext,cadenaNueva, Toast.LENGTH_LONG).show();\n\n\t\t\t\t\t}\n\t\t\t\t}", "@Override\r\n\tpublic View view(int arg0, View arg1, ViewGroup arg2) {\n\t\tHolder holder;\r\n\t\tif (arg1 == null) {\r\n\t\t\targ1 = ShowUtil.LoadXmlView(getContext(), R.layout.adress_item);\r\n\t\t\tholder = new Holder();\r\n\t\t\tholder.province = (TextView) arg1\r\n\t\t\t\t\t.findViewById(R.id.adress_item_title);\r\n\t\t\targ1.setTag(holder);\r\n\t\t}\r\n\t\tholder = (Holder) arg1.getTag();\r\n\t\tTextView provinceTxt = holder.province;\r\n\r\n\t\tfinal Province province = getData(arg0);\r\n\t\tif (province.isSelect()) {\r\n\t\t\tprovinceTxt.setBackgroundColor(getContext().getResources().getColor(\r\n\t\t\t\t\tR.color.blue));\r\n\t\t\tprovinceTxt.setTextColor(getContext().getResources().getColor(R.color.white));\r\n\t\t} else {\r\n\t\t\tprovinceTxt.setBackgroundColor(getContext().getResources().getColor(\r\n\t\t\t\t\tR.color.background));\r\n\t\t\tprovinceTxt.setTextColor(getContext().getResources().getColor(R.color.shallowGray));\r\n\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tprovinceTxt.setText(province.getTitle());\r\n\r\n\t\targ1.setOnClickListener(new OnClickListener() {\r\n\t\t\t\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\r\n\t\t\t\tcleanSelect();\r\n\t\t\t\tprovince.setSelect(true);\r\n\t\t\t\tnotifyDataSetChanged();\r\n\t\t\t\tonItem(new Object[]{\r\n\t\t\t\t\t\tprovince\t\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\treturn arg1;\r\n\t}", "@Override\n public void bindView(View view, Context context, Cursor cursor) {\n TextView tanggal = (TextView) view.findViewById(R.id.tanggal);\n TextView Pemasukan = (TextView) view.findViewById(R.id.Dana);\n TextView keterangan = (TextView) view.findViewById(R.id.keterangan);\n // Read the pet attributes from the Cursor for the current pet\n String editTanggal = cursor.getString(cursor.getColumnIndex(tabeldb.listtabeldb.COL_1_Pemasukan));\n double editPemasukan = cursor.getInt(cursor.getColumnIndex(tabeldb.listtabeldb.COL_2_Pemasukan));\n String editKeterangan= cursor.getString(cursor.getColumnIndex(tabeldb.listtabeldb.COL_3_Pemasukan));\n\n // Update the TextViews with the attributes for the current pet\n DecimalFormat decim = new DecimalFormat(\"#,###.##\");\n tanggal.setText(editTanggal);\n Pemasukan.setText(decim.format(editPemasukan));\n keterangan.setText(editKeterangan);\n }", "@Override\r\n public void onBindViewHolder(LeaderboardViewHolder holder, int position) {\n Typeface typeface = Typeface.createFromAsset(mCtx.getAssets(), \"BTTF.ttf\");\r\n //set les margin des paramètres\r\n //params.setMargins(0, 20, 0, 0);\r\n //holder.getmCardView().setAlpha(0.6f);\r\n\r\n holder.getmTextViewView().setTextSize(18);\r\n //suivant la position\r\n if(position==0) {\r\n holder.getmCardView().setCardBackgroundColor(Color.parseColor(\"#ffd700\"));\r\n holder.getmImageView().setImageResource(R.drawable.ic_or);\r\n holder.getmTextViewView().setTypeface(typeface);\r\n if(tableaudemerde[0] == null){\r\n holder.getmTextViewView().setText(R.string.iftextnull);\r\n }else{\r\n holder.getmTextViewView().setText(\"Score : \" + String.valueOf(tableaudemerde[position]));\r\n }\r\n }\r\n else if(position==1) {\r\n holder.getmCardView().setCardBackgroundColor(Color.parseColor(\"#CECECE\"));\r\n holder.getmImageView().setImageResource(R.drawable.ic_argent);\r\n holder.getmTextViewView().setTypeface(typeface);\r\n if(tableaudemerde[1] == null){\r\n holder.getmTextViewView().setText(R.string.iftextnull);\r\n }\r\n else{\r\n holder.getmTextViewView().setText(\"Score : \" + String.valueOf(tableaudemerde[position]));\r\n }\r\n\r\n }\r\n else if(position==2) {\r\n holder.getmCardView().setCardBackgroundColor(Color.parseColor(\"#cd7f32\"));\r\n holder.getmImageView().setImageResource(R.drawable.ic_bronze);\r\n holder.getmTextViewView().setTypeface(typeface);\r\n if(tableaudemerde[2] == null){\r\n holder.getmTextViewView().setText(R.string.iftextnull);\r\n }\r\n else{\r\n holder.getmTextViewView().setText(\"Score : \" + String.valueOf(tableaudemerde[position]));\r\n }\r\n }\r\n else if(tableaudemerde[position] == null) {\r\n holder.getmTextViewView().setTypeface(typeface);\r\n holder.getmTextViewView().setText(\">\");\r\n holder.getmTextViewView().setTextSize(30);\r\n holder.getmImageView().setImageResource(R.drawable.delorean1);\r\n }\r\n else {\r\n holder.getmTextViewView().setTextSize(20);\r\n holder.getmTextViewView().setTypeface(typeface);\r\n holder.getmTextViewView().setText(\"Score : \" + String.valueOf(tableaudemerde[position]));\r\n holder.getmImageView().setImageResource(R.drawable.ic_trophee);\r\n }\r\n }", "@Override\r\n public void onClick(View view) {\r\n Toast.makeText(context, \"satu\" +list_data.get(getAdapterPosition()), Toast.LENGTH_SHORT).show();\r\n\r\n }", "public void setNamaHari(java.lang.CharSequence value) {\n this.nama_hari = value;\n }", "@Override\n public void onBindViewHolder(final ViewHolder holder, final int position) {\n\n\n // holder.setIsRecyclable(false);\n\n\n holder.expenseType.setText(mDataset.get(position).getTubewellname());\n\n String ss = mDataset.get(position).getIsActive();\n\n if (ss!=null && ss.equalsIgnoreCase(\"Active\")){\n holder.cardView.setBackgroundColor(mContext.getResources().getColor(R.color.green_alert));\n Log.v(\"ggggg_act\",ss+\"\");\n }else {\n holder.cardView.setBackgroundColor(mContext.getResources().getColor(R.color.gray));\n Log.v(\"ggggg_de\",ss+\"\");\n }\n\n\n\n Log.v(\"slkas\",mDataset.get(position)+\"\");\n\n /* t1=new TextToSpeech(mContext, new TextToSpeech.OnInitListener() {\n @Override\n public void onInit(int status) {\n if(status != TextToSpeech.ERROR) {\n t1.setLanguage(new Locale(\"hin\"));\n }\n }\n });\n*/\n\n holder.btn.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n String strrrr = mDataset.get(position).getResponse();\n tubewellInfoMethod(strrrr);\n }\n });\n\n\n\n }", "@Override\n public void onClick(View v) {\n\n if (quoteEntity.isIskeyvisible()) {\n quoteEntity.setIskeyvisible(false);\n holder.rvhlknowmore.setVisibility(View.GONE);\n\n holder.ivArrow.setImageDrawable(mContext.getResources().getDrawable(R.drawable.down_arrow_grey));\n\n\n } else {\n quoteEntity.setIskeyvisible(true);\n holder.ivArrow.setImageDrawable(mContext.getResources().getDrawable(R.drawable.up_arrow_blue));\n\n String pre=\"\",par=\"\",spe=\"\";\n if(quoteEntity.getPre_Closer_Fixed() != null) {\n pre = \" = \" + quoteEntity.getPre_Closer_Fixed() + \" %\";\n }\n else\n {\n pre = \" = \";\n }\n\n if(quoteEntity.getPart_Pmt_Fixed() != null) {\n par = \" = \" + quoteEntity.getPart_Pmt_Fixed() + \" %\";\n }\n else\n {\n par = \" = \";\n }\n\n if(quoteEntity.getWomen_roi() != null) {\n spe = \" = \" + quoteEntity.getWomen_roi() + \" %\";\n }\n else\n {\n spe = \" = \";\n }\n\n\n holder.tvDetailsCount1.setText(pre);\n holder.tvDetailsCount2.setText(par);\n holder.tvDetailsCount3.setText(\" = Yes\");\n holder.tvDetailsCount4.setText(spe);\n holder.tvDetailsCount5.setText(\" = Yes\");\n holder.tvDetailsCount6.setText(\" = Yes\");\n\n\n\n holder.rvhlknowmore.setVisibility(View.VISIBLE);\n\n\n }\n }", "static String cetak_nama1() {\n return \"Nama Saya : Aprianto\";\r\n }", "@Override\n public void onBindViewHolder(@NonNull final UsersAdapter.ViewHolder holder, int position) {\n // - get element from your dataset at this position\n // - replace the contents of the view with that element\n //holder.mView.setText(mDataset[position]);\n //\n CardView cardView = holder.mView.findViewById(R.id.card_view_user);\n final TextView user_name;\n user_name = holder.mView.findViewById(R.id.card_view_user_name);\n\n user_name.setText(mDataset.get(position).getUsername());\n //\n cardView.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Intent returnIntent = new Intent();\n returnIntent.putExtra(\"subuser\",user_name.getText());\n act.setResult(Activity.RESULT_OK,returnIntent);\n act.finish();\n }\n });\n\n\n }", "@Override\n protected boolean onLongItemClickListener(int adapterPosition, int layoutPosition) {\n CondicaoPagamento condpgto = adaptercondpgto.getItems().get(adapterPosition);\n idcondpgto = condpgto.getIdcodicaopagamento();\n nomecondpgto = condpgto.getDescricao();\n\n\n\n\n return true;\n }", "MyRecyclerViewAdapter(Context context, List<String> data,List<String> giorno,List<String> primo,List<String> secondo,List<String> contorno,List<String> dolce) {\n this.mInflater = LayoutInflater.from(context);\n this.mdata = data;\n this.mgiorno = giorno;\n this.mprimo = primo;\n this.msecondo = secondo;\n this.mcontorno = contorno;\n this.mdolce = dolce;\n\n\n\n }", "@Override\n public void onCardClick(String p) {\n }", "@Override\n public void onBindViewHolder(ProductViewHolder holder, int position) {\n zikar product = zikarList.get(position);\n\n //binding the data with the viewholder views\n holder.textViewID1.setText((String.valueOf(product.getId())));\n holder.textViewTitle.setText(product.getZikarName());\n holder.textViewPrice.setText(String.valueOf(product.getCounter()));\n holder.textViewRemainingCount.setText(String.valueOf(product.getRemainingCounter()));\n\n\n\n }", "TipeLayanan(String deskripsi)\r\n {\r\n this.deskripsi = deskripsi;\r\n }", "public ViewHolder(View itemView) {\n super(itemView);\n tvNature = (TextView)itemView.findViewById(R.id.item_name);\n tvAmountNature = (TextView)itemView.findViewById(R.id.item_amount);\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Toast.makeText(Cardio.this,cardios.get(position).getTitle(), Toast.LENGTH_SHORT).show();\n }", "@Override\n public View getView(final int i, View convertView, ViewGroup parent) {\n\n if (convertView == null) {\n li = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n convertView = li.inflate(R.layout.row_speaker, null);\n h = new ViewHolder(convertView);\n convertView.setTag(h);\n\n } else {\n h = (ViewHolder) convertView.getTag();\n }\n\n\n //___________________set data___________________\n h.sl.setText(list.get(i).sl+\". \");\n h.name.setText( list.get(i).name);\n h.topic.setText(list.get(i).topicExtra);\n\n\n /* h.theme.setText(list.get(i).themeExtra);\n h.country.setText(list.get(i).countryExtra);\n h.digit.setText(list.get(i).digitExtra);*/\n\n // hideBlankTextView();\n\n\n h.cardView.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n A.setPerson(list.get(i));\n DialogFragment dialog = new InfoDialog();\n dialog.show(((AppCompatActivity) context).getSupportFragmentManager(), \"dialog\");\n }\n });\n return convertView;\n }", "public void setKullaniciAdi(java.lang.CharSequence value) {\n this.kullanici_adi = value;\n }", "@Override\n public void onGetResult(List<Punkty> punkties) {\n listaMeczy=punkties;\n\n gosp=new String[listaMeczy.size()];\n gosc=new String[listaMeczy.size()];\n betGosp=new int[listaMeczy.size()];\n betGosc=new int[listaMeczy.size()];\n wynGosc=new int[listaMeczy.size()];\n wynGosp=new int[listaMeczy.size()];\n punktyZaMecz=new int[listaMeczy.size()];\n\n Punkty pom55;\n\n //przypisanie danych\n for (int i = 0; i < gosp.length; i++) {\n\n pom55 = listaMeczy.get(i);\n\n gosp[i]=pom55.getGosp();\n gosc[i]=pom55.getGosc();\n betGosp[i]=pom55.getBet_gosp();\n betGosc[i]=pom55.getBet_gosc();\n wynGosp[i]=pom55.getWyn_gosp();\n wynGosc[i]=pom55.getWyn_gosc();\n punktyZaMecz[i]=pom55.getPunkty();\n }\n\n //standard\n CaptionedImagesAdapter3 adapter = new CaptionedImagesAdapter3(gosp, gosc, betGosp, betGosc, wynGosp, wynGosc);\n recyclerView.setAdapter(adapter);\n LinearLayoutManager layoutManager=new LinearLayoutManager(this);\n recyclerView.setLayoutManager(layoutManager);\n adapter.setListener(new CaptionedImagesAdapter3.Listener() {\n @Override\n public void onClick(int position) {\n Toast.makeText(getApplicationContext(), punktyZaMecz[position]+\" points\", Toast.LENGTH_SHORT).show();\n }\n });\n\n }", "@Override\n public void onClick(View v) {\n Referinta.Verset = v.getId();\n\n Intent intent = new Intent(getContext(), TextActivity.class);\n // 2. put key/value data\n\n // intent.putExtra(\"referinta\", referinta );\n // intent.putExtra(\"message\", capitole[1]);\n\n // 3. or you can add data to a bundle\n\n\n // 5. start the activity\n startActivity(intent);\n // finish();\n\n }", "public void setNamaMk(java.lang.CharSequence value) {\n this.nama_mk = value;\n }", "@Override\r\n public void onBindViewHolder(@NonNull QuoteOrPolicyAdapter.Viewholder holder, int position) {\n QuoteOrPolicy model = courseModelArrayList.get(position);\r\n holder.quoteName.setText(model.getQuote_name());\r\n holder.quoteDesc.setText(\"\" + model.getQuote_desc());\r\n holder.quoteImage.setImageResource(model.getQuote_image());\r\n String quoteName = model.getQuote_name();\r\n holder.btnAccept.setOnClickListener(new View.OnClickListener() {\r\n public void onClick(View v) {\r\n if (\"Accept\".equalsIgnoreCase(holder.btnAccept.getText().toString())) {\r\n if(quoteName.charAt(1)=='H'){\r\n //twoFactorAuth\r\n JSONObject obj1 = new JSONObject();\r\n try {\r\n obj1.put(\"op\",\"add\");\r\n String var =\"homeQuoteAccept\";\r\n obj1.put(\"path\",\"urn:ietf:params:scim:schemas:extension:ibm:2.0:User:customAttributes\");\r\n JSONArray arr = new JSONArray();\r\n JSONObject obj = new JSONObject();\r\n obj.put(\"name\",\"HomeQuoteAccept\");\r\n JSONArray arr1 = new JSONArray();\r\n arr1.put(\"true\");\r\n obj.put(\"values\",arr1);\r\n arr.put(obj);\r\n obj1.put(\"value\",arr);\r\n } catch (JSONException e) {\r\n e.printStackTrace();\r\n }\r\n //Create a json array\r\n JSONArray operations1 = new JSONArray();\r\n operations1.put(obj1);\r\n //Function for updating mfa no\r\n updateAttributes(operations1);\r\n\r\n }\r\n else{\r\n //twoFactorAuth\r\n JSONObject obj1 = new JSONObject();\r\n try {\r\n obj1.put(\"op\",\"add\");\r\n obj1.put(\"path\",\"urn:ietf:params:scim:schemas:extension:ibm:2.0:User:customAttributes\");\r\n JSONArray arr = new JSONArray();\r\n JSONObject obj = new JSONObject();\r\n obj.put(\"name\",\"CarQuoteAccept\");\r\n JSONArray arr1 = new JSONArray();\r\n arr1.put(\"true\");\r\n obj.put(\"values\",arr1);\r\n arr.put(obj);\r\n\r\n obj1.put(\"value\",arr);\r\n } catch (JSONException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n //Create a json array\r\n JSONArray operations1 = new JSONArray();\r\n operations1.put(obj1);\r\n //Function for updating quote realted parameters\r\n updateAttributes(operations1);\r\n }\r\n Intent intent = new Intent(v.getContext(), QuoteApproval.class);\r\n v.getContext().startActivity(intent);\r\n } else if (\"Reject\".equalsIgnoreCase(holder.btnAccept.getText().toString())) {\r\n //do nothing as of now\r\n }\r\n }\r\n });\r\n\r\n holder.btnReject.setOnClickListener(new View.OnClickListener() {\r\n public void onClick(View v) {\r\n if (\"Claim\".equalsIgnoreCase(holder.btnReject.getText().toString())) {\r\n Intent intent = new Intent(v.getContext(), ClaimRequestActivity.class);\r\n v.getContext().startActivity(intent);\r\n } else if (\"Renew\".equalsIgnoreCase(holder.btnAccept.getText().toString())) {\r\n //do nothing as of now\r\n }\r\n }\r\n });\r\n\r\n if ( \"Q\".equalsIgnoreCase(model.getType()) ) {\r\n holder.btnAccept.setText(\"Accept\");\r\n holder.btnReject.setText(\"Reject\");\r\n } else {\r\n holder.btnAccept.setText(\"Renew\");\r\n holder.btnReject.setText(\"Claim\");\r\n }\r\n }", "ViewHolder(View itemView) {\n super(itemView);\n //Initialize the views\n imageView = (NetworkImageView) itemView.findViewById(R.id.foto_ustad);\n nama = (TextView) itemView.findViewById(R.id.nama_list);\n alamat = (TextView) itemView.findViewById(R.id.alamat_list);\n bidang = (TextView) itemView.findViewById(R.id.bidang_list);\n harga = (TextView) itemView.findViewById(R.id.hargalist);\n itemView.setOnClickListener(this);\n }", "private void initInstances(View rootView) {\n\n value = getActivity().getIntent().getStringExtra(\"x\");\n\n\n\n\n\n\n\n }", "@Override\n public void onBindViewHolder(AdapterAdvRecyclerView.ViewHolder holder, final int position) {\n final String name = daftarGuild.get(position).getNameGuild();\n holder.tvTitle.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n /**\n * Kodingan untuk tutorial Selanjutnya :p Read detail data\n */\n Bundle bundle = new Bundle();\n bundle.putString(\"name\",daftarGuild.get(position).getNameGuild());\n bundle.putString(\"sub\",daftarGuild.get(position).getSubject());\n bundle.putInt(\"level\",daftarGuild.get(position).getLevelRequirement());\n Intent intent = new Intent(context, AdvGuildDetail.class);\n intent.putExtras(bundle);\n context.startActivity(intent);\n }\n });\n holder.tvTitle.setOnLongClickListener(new View.OnLongClickListener() {\n @Override\n public boolean onLongClick(View view) {\n /**\n * Kodingan untuk tutorial Selanjutnya :p Delete dan update data\n */\n return true;\n }\n });\n holder.tvTitle.setText(name);\n }", "@Override\n public void onBindViewHolder(AdapterJocuri4JucatoriInEchipa.ViewHolder viewHolder, int position) {\n final Gioco4GiocatoriInSquadra partidaPatruJucatoriInEchipaEntityBean = itemsGioco4GiocatoriInSquadras.get(position);\n\n viewHolder.bind(partidaPatruJucatoriInEchipaEntityBean);\n\n\n final TextView numePartida = viewHolder.numePartida;\n\n numePartida.setText(partidaPatruJucatoriInEchipaEntityBean.getNumeGioco());\n\n\n TextView dataPartida = viewHolder.dataPartida;\n\n long dataInserimentoPartida = partidaPatruJucatoriInEchipaEntityBean.getDataGioco();\n\n\n dataPartida.setText(getDataPartidaFormated(dataInserimentoPartida));\n\n\n }", "@Override\n public void onBindViewHolder(@NonNull CustomRecyclerAdapter.MyViewHolder myViewHolder, int i) {\n myViewHolder.txtnamamakanan.setText(data_namaMakanan[i]);\n myViewHolder.imgmakanan.setImageResource(data_gambarMakanan[i]);\n }", "public abstract int mo12697d(RecyclerView recyclerView, C1085v vVar);", "@Override\r\n protected void convert(ViewHolder holder, ProductOri productOri, int position) {\n holder.setVisible(R.id.time_tv, false);\r\n holder.setVisible(R.id.auth_name_tv, false);\r\n holder.setVisible(R.id.add_auth_info_iv, false);\r\n holder.setText(R.id.auth_address_tv, productOri.getPaddr());\r\n //holder.setText(R.id.product_name_tv, productOri.getName());\r\n //holder.setVisible(R.id.add_prod_info_iv, false);\r\n }", "public DependenciaViewHolder(View itemView) {\n super(itemView);\n\n //OnclickListener devolución de llamada que se invoca cuando se hace clic en una vista\n // dependencias..\n itemView.setOnClickListener(this);\n\n //el findViewById Encuentra el atributo id del XML que fue procesada en onCreate\n nombreDependencia = (TextView) itemView.findViewById(R.id.nombre_dependencia);\n numeroContactos= (TextView) itemView.findViewById(R.id.Cantidad_numeros);\n }", "@Override\n public void onValueSelected(Entry e, int dataSetIndex, Highlight h) {\n int indeks = e.getXIndex();\n// if(xData[0].equalsIgnoreCase(\"Kelebihan Kalori\")){\n// indeks += 1;\n// }\n System.out.println(\"Index: \" + indeks);\n if (e == null)\n return;\n\n else {\n if (arrayX.get(indeks).equalsIgnoreCase(\"breakfast\")) {\n Set<String> setPagi = spref.getStringSet(\"SetPagi\", null);\n PlaceholderFragment.showToast(getContext(), setPagi, \"Breakfast\");\n } else if (arrayX.get(indeks).equalsIgnoreCase(\"lunch\")) {\n Set<String> setSiang = spref.getStringSet(\"SetSiang\", null);\n PlaceholderFragment.showToast(getContext(), setSiang, \"Lunch\");\n } else if (arrayX.get(indeks).equalsIgnoreCase(\"dinner\")) {\n Set<String> setMalam = spref.getStringSet(\"SetMalam\", null);\n PlaceholderFragment.showToast(getContext(), setMalam, \"Dinner\");\n } else if (arrayX.get(indeks).equalsIgnoreCase(\"Not consumed\")) {\n\n } else if (arrayX.get(indeks).equalsIgnoreCase(\"Kelebihan Kalori\")) {\n\n }\n }\n }", "ViewHolder(View itemView) {\n super(itemView);\n alphabetText = (TextView) itemView.findViewById(R.id.text_view_all_user_alphabet);\n usernameText = (TextView) itemView.findViewById(R.id.text_view_username);\n\n }", "@Override\n public void onItemClick(AdapterView<?> parent, final View view,\n int position, long id) {\n Categoria item = (Categoria) parent.getItemAtPosition(position);\n Toast.makeText(getApplicationContext(), \"SELECIONADO \" + item.getDescricao(), Toast.LENGTH_LONG).show();\n }", "@Override\n public void onClick(DialogInterface dialog, int position) {\n tv.setText(String.valueOf(items[position]));\n\n String tag = tv.getTag().toString();\n\n switch (tag) {\n\n case \"district\":\n districtStr = String.valueOf(items[position]);\n break;\n\n case \"village\":\n villageStr = String.valueOf(items[position]);\n break;\n\n case \"ward\":\n wardStr = String.valueOf(items[position]);\n break;\n\n case \"category\":\n categoryStr = String.valueOf(items[position]);\n break;\n\n }\n\n }", "private void setItemData(ViewHolder holder, int position) {\n final int loc = position;\n holder.textView_xingming.setText(list.get(position).getItemHuanzheName());\n holder.textView_jiuzhenhao.setText(list.get(position).getItemHuanzheId());\n\n if(list.get(position).getItemGuangzhu()) {\n holder.textView_guangzhu.setText(\"取消关注\");\n holder.textView_guangzhu.setBackgroundColor(Color.RED);\n }\n else {\n holder.textView_guangzhu.setText(\"关 注\");\n holder.textView_guangzhu.setBackgroundColor(context.getResources().getColor(android.R.color.holo_blue_dark));\n }\n\n holder.textView_guangzhu.setOnClickListener(new View.OnClickListener() {\n\n @Override\n public void onClick(View v) {\n // TODO Auto-generated method stub\n if(handler!=null){\n Message msg = new Message();\n Bundle bundle = new Bundle();\n bundle.putInt(\"data\", loc);\n msg.what = CHOICE_CONTROL_1;\n msg.setData(bundle);\n handler.sendMessage(msg);\n }\n }\n });\n\n holder.imageView_chakan.setOnClickListener(new View.OnClickListener() {\n\n @Override\n public void onClick(View v) {\n // TODO Auto-generated method stub\n if(handler!=null){\n Message msg = new Message();\n Bundle bundle = new Bundle();\n bundle.putInt(\"data\", loc);\n msg.what = CHOICE_CONTROL_TAIL;\n msg.setData(bundle);\n handler.sendMessage(msg);\n }\n }\n });\n\n holder.linearLayout_head.setOnClickListener(new View.OnClickListener() {\n\n @Override\n public void onClick(View v) {\n // TODO Auto-generated method stub\n if(handler!=null){\n Message msg = new Message();\n Bundle bundle = new Bundle();\n bundle.putInt(\"data\", loc);\n msg.what = CHOICE_CONTROL_HEAD;\n msg.setData(bundle);\n handler.sendMessage(msg);\n }\n }\n });\n }", "Karyawan(String n)\n {\n this.nama = n;\n }", "@Override\n protected void onItemClickListener(int adapterPosition, int layoutPosition) {\n\n\n CondicaoPagamento condpgto = adaptercondpgto.getItems().get(adapterPosition);\n if (selecionandoCondPgto) {\n Intent data = new Intent();\n data.putExtra(\"condpgto_id\", condpgto.getIdcodicaopagamento());\n setResult(RESULT_OK, data);\n finish();\n } else {\n idcondpgto = condpgto.getIdcodicaopagamento();\n nomecondpgto = condpgto.getDescricao();\n\n }\n\n }", "public NoticiaViewHolder(View itemView) {\n super(itemView);\n itemView.setOnClickListener(this);\n txtTitulo = (TextView) itemView.findViewById(R.id.titulo);\n\n\n }", "private void setRecyclerViewData() {\n\n itemList = new ArrayList<ListItem>();\n itemList.add(new RememberCardView(\"Du musst 12€ zahlen\"));\n itemList.add(new DateCardItem(\"Mo\", \"29.07.\", \"Training\", \"20:00\", \"21:45\"));\n itemList.add(new VoteCardItem(\"Welche Trikotfarbe ist besser?\"));\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n String SlectedCountry = countryName[+position];\n Toast.makeText(getApplicationContext(), SlectedCountry, Toast.LENGTH_SHORT).show();\n\n }", "public ViewHolder(View itemView) {\n super(itemView);\n productDetails = (TextView) itemView.findViewById(R.id.category_item_layout_for_view_product_product_details);\n price = (TextView) itemView.findViewById(R.id.category_item_layout_for_view_product_MRP);\n sp = (TextView) itemView.findViewById(R.id.category_item_layout_for_view_product_SP);\n //qty = (Spinner) itemView.findViewById(R.id.category_item_layout_for_view_product_qty);\n productImage = (ImageView) itemView.findViewById(R.id.category_item_layout_for_view_product_image);\n addToCart = (TextView) itemView.findViewById(R.id.category_item_layout_for_view_product_addToCart);\n }", "public abstract int mo12696c(RecyclerView recyclerView, C1085v vVar);", "@Override\n public void onBindViewHolder(ProductosHolder holder, int position) {\n holder.txtnombre.setText(productoList.get(position).getNombre());\n holder.txtdescripcion.setText(productoList.get(position).getDescripcion());\n\n }", "@Override\n public void onBindViewHolder(ViewHolder arg0, int arg1) {\n TextView textView = (TextView) arg0.itemView;\n textView.setPadding(20, 20, 20, 20);\n textView.setBackgroundColor(Color.WHITE);\n textView.setText(arg1 + \"\");\n }", "@Override\n public void onBindViewHolder(ViewHolder holder, final int position) {\n holder.tvTitle.setText(daftarBarang.get(position).getNama());\n holder.tvLokasi.setText(daftarBarang.get(position).getLokasi());\n holder.tvTanggal.setText(daftarBarang.get(position).getTanggal());\n holder.tvDeskripsi.setText(daftarBarang.get(position).getDeskripsi());\n holder.tvTitle.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n /**\n * Kodingan untuk tutorial Selanjutnya :p Read detail data\n */\n context.startActivity(FirebaseDBReadSingleActivity.getActIntent((Activity) context).putExtra(\"data\", daftarBarang.get(position)));\n }\n });\n holder.tvImage.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n /**\n * Kodingan untuk tutorial Selanjutnya :p Read detail data\n */\n context.startActivity(FirebaseDBReadSingleActivity.getActIntent((Activity) context).putExtra(\"data\", daftarBarang.get(position)));\n }\n });\n holder.tvTitle.setOnLongClickListener(new View.OnLongClickListener() {\n @Override\n public boolean onLongClick(View view) {\n /**\n * Kodingan untuk tutorial Selanjutnya :p Delete dan update data\n */\n return true;\n }\n });\n }", "public ViewHolder(View itemView) {\n super(itemView);\n this.productName = itemView.findViewById(R.id.productName);\n// this.productDesc = itemView.findViewById(R.id.productDesc);\n// this.productPrice = itemView.findViewById(R.id.productPrice);\n// this.imageView = itemView.findViewById(R.id.productImage);\n itemView.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n onClickListener.orderType(v, getAdapterPosition());\n }\n });\n }", "public AdapterShop(Activity context, List<shoppingcard> dades){\n super(context, R.layout.listitem_shop,dades);\n this.context = context;\n this.dades = dades;\n }", "private void premium_ui_Briefing_Row(RecyclerView.ViewHolder viewHolder, ArticleBean bean, int position) {\n BriefcaseViewHolder holder = (BriefcaseViewHolder) viewHolder;\n PicassoUtil.loadImageWithFilePH(holder.itemView.getContext(), holder.image, ContentUtil.getBreifingImgUrl(bean.getThumbnailUrl()));\n holder.authorName_Txt.setText(ContentUtil.getAuthor(bean.getAuthor()));\n holder.title.setText(ResUtil.htmlText(bean.getArticletitle()));\n\n // Section name\n String sectionName = bean.getArticleSection();\n if (sectionName == null || TextUtils.isEmpty(sectionName)) {\n sectionName = bean.getSectionName();\n }\n\n sectionName = ResUtil.capitalizeFirstLetter(sectionName);\n holder.sectionName.setText(sectionName);\n // Publish Date\n String formatedPubDt = CommonUtil.fomatedDate(bean.getPubDateTime(), mFrom);\n holder.time_Txt.setText(formatedPubDt);\n holder.description_Txt.setText(ResUtil.htmlText(bean.getDescription()));\n\n holder.itemView.setOnClickListener(v -> {\n IntentUtil.openDetailActivity(holder.itemView.getContext(), mFrom,\n bean.getArticleUrl(), position, bean.getArticleId());\n THPFirebaseAnalytics.setFirbaseAnalyticsEvent(holder.itemView.getContext(), \"Action\", \"Briefing clicked : \" + bean.getArticleId() + \" : \" + bean.getTitle(), \"Briefing List Screen\");\n\n });\n }", "@Override\n public void onClick(View v) {\n lecturaNFC(finalIdBomba);\n }", "public void onBindViewHolder(@NonNull l.a aVar, int i) {\n Object[] objArr;\n Context context;\n TextView textView;\n int i2;\n super.a(aVar, i);\n a aVar2 = (a) this.j.get(i);\n if (aVar2.f1353c != 1) {\n aVar.f1362a.setText(R.string.tab_block_log_unKnowNumber);\n } else {\n aVar.f1362a.setText(aVar2.f1351a);\n aVar.f1362a.setTag(aVar2.f1351a);\n Pair<String, String> a2 = this.g.a(aVar2.f1351a, new f(this, aVar));\n if (a2 != null && !TextUtils.isEmpty((CharSequence) a2.first)) {\n aVar.f1362a.setText((CharSequence) a2.first);\n }\n }\n if (aVar2.f1354d > 0) {\n aVar.f1362a.setTextColor(Color.parseColor(\"#F22424\"));\n aVar.f1363b.setTextColor(Color.parseColor(\"#F22424\"));\n textView = aVar.f1363b;\n context = this.f;\n objArr = new Object[]{Integer.valueOf(aVar2.f1354d)};\n } else {\n aVar.f1362a.setTextColor(this.f.getResources().getColor(R.color.tab_sort_item_text));\n aVar.f1363b.setTextColor(this.f.getResources().getColor(R.color.tab_sort_item_text));\n textView = aVar.f1363b;\n context = this.f;\n objArr = new Object[]{Integer.valueOf(aVar2.e)};\n }\n textView.setText(context.getString(R.string.log_count, objArr));\n String parseTelocationString = PhoneNumberUtils.parseTelocationString(this.f, n.c(aVar2.f1351a));\n if (!TextUtils.isEmpty(parseTelocationString)) {\n aVar.f1365d.setText(parseTelocationString);\n }\n aVar.f1364c.setText(n.a(this.f, aVar2.f, true));\n aVar.itemView.setOnClickListener(new g(this, aVar, aVar2, i));\n aVar.g.setChecked(b(i));\n int i3 = aVar2.g;\n int i4 = R.string.call_blacklist;\n switch (i3) {\n case 4:\n i4 = R.string.call_private;\n break;\n case 6:\n i4 = R.string.call_prefix;\n break;\n case 7:\n i4 = R.string.call_stranger_block;\n break;\n case 8:\n if (!n.c()) {\n i2 = R.string.mark_fraud_block;\n break;\n } else {\n i2 = R.string.mark_fraud_block_large;\n break;\n }\n case 9:\n i4 = R.string.call_contact_block;\n break;\n case 10:\n if (!n.c()) {\n i2 = R.string.mark_agent_block;\n break;\n } else {\n i2 = R.string.mark_agent_block_large;\n break;\n }\n case 12:\n if (!n.c()) {\n i2 = R.string.mark_sell_block;\n break;\n } else {\n i2 = R.string.mark_sell_block_large;\n break;\n }\n case 13:\n i4 = R.string.call_address;\n break;\n case 14:\n if (!n.c()) {\n i2 = R.string.mark_harass_block;\n break;\n } else {\n i2 = R.string.mark_harass_block_large;\n break;\n }\n case 15:\n i4 = R.string.call_transfer_block;\n break;\n case 16:\n i4 = R.string.call_cloud_block;\n break;\n case 17:\n i4 = R.string.call_oversea_block;\n break;\n }\n i4 = i2;\n aVar.e.setText(i4);\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent intent) {\n // TODO Auto-generated method stub\n if ((requestCode == request_code) && (resultCode == RESULT_OK)) {\n\n // Toast.makeText(this, intent.getStringExtra(\"resultado\"), Toast.LENGTH_LONG).show();\n inEquipo.setText(intent.getStringExtra(\"resultado\"));\n }\n }", "public MyHolder(View itemView) {\n super(itemView);\n item = itemView.findViewById(R.id.item);\n noofpices = itemView.findViewById(R.id.noofpices);\n cost = itemView.findViewById(R.id.cost);\n amount = itemView.findViewById(R.id.total);\n plus = itemView.findViewById(R.id.plus);\n// minus = (ImageButton)itemView.findViewById(R.id.minus);\n delete = itemView.findViewById(R.id.del);\n\n // id= (TextView)itemView.findViewById(R.id.id);\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n String SlectedCountry = countryNameTwo[+position];\n Toast.makeText(getApplicationContext(), SlectedCountry, Toast.LENGTH_SHORT).show();\n\n }", "@Override\n public void onBindViewHolder(ViewHolder holder, int position) {\n holder.textViewName.setText(countryList.get(position).getName());\n holder.textViewCapital.setText(countryList.get(position).getCapital());\n holder.textViewAlphs.setText(countryList.get(position).getAlphacode());\n holder.textViewSub.setText(countryList.get(position).getSubregion());\n holder.textViewReg.setText(countryList.get(position).getRegion());\n holder.textViewDom.setText(countryList.get(position).getDominio());\n holder.textViewCod.setText(countryList.get(position).getCodigo());\n holder.textViewNameA.setText(countryList.get(position).getNameA());\n holder.textViewFro.setText(countryList.get(position).getFronteras());\n //holder.textViewPob.setText(countryList.get(position).getPoblacion());\n }", "public void klikkaa(Tavarat tavarat, Klikattava klikattava);", "@Override\n public void onClick(final View v) {\n AlertDialog.Builder dl = new AlertDialog.Builder(v.getContext());\n dl.setTitle(\"카테고리 선택\");\n dl.setSingleChoiceItems(items, 0, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n // TODO Auto-generated method stub\n //Toast.makeText(v.getContext(), items[which], Toast.LENGTH_SHORT).show();\n ActivityStCategory = items[which];\n }\n });\n dl.setPositiveButton(\"선택완료\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id)\n {\n // 프로그램을 종료한다\n ActivitySelectBool = true;\n ActivityBtCategoty.setText(ActivityStCategory);\n dialog.dismiss(); // 누르면 바로 닫히는 형태\n }\n });\n\n dl.setNegativeButton(\"취소\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id)\n {\n // 프로그램을 종료한다\n dialog.dismiss(); // 누르면 바로 닫히는 형태\n }\n });\n\n\n dl.show();\n }", "public void displayData(View view) {\n\n }", "void mo6660a(Context context, String str, ImageView imageView, C1492a aVar);", "@Override\n public void onBindViewHolder(final MyViewHolder holder, int position) {\n // - get element from your dataset at this position\n // - replace the contents of the view with that element\n holder.cred_key.setText(mData.get(position).getCred_key());\n holder.cred_value.setText(mData.get(position).getCred_value());\n\n }", "private void getCariSemua(){\n UserAPIService api = Config.getRetrofit().create(UserAPIService.class);\n Call<Value> call = api.cari_semua_like(txt_kodeMK.getSelectedItem().toString(),txt_kelas.getSelectedItem().toString());\n call.enqueue(new Callback<Value>() {\n @Override\n public void onResponse(Call<Value> call, Response<Value> response) {\n// pDialog.dismiss();\n String value1 = response.body().getStatus();\n if (value1.equals(\"1\")) {\n Value value = response.body();\n resultAlls = new ArrayList<>(Arrays.asList(value.getResult()));\n adapter = new RecyclerAdapterListAll(resultAlls, getApplicationContext());\n recyclerView.setAdapter(adapter);\n }else{\n Toast.makeText(ListPonpesActivity.this,\"Maaf Data Tidak Ada\",Toast.LENGTH_SHORT).show();\n\n }\n }\n\n @Override\n public void onFailure(Call<Value> call, Throwable t) {\n // pDialog.dismiss();\n Toast.makeText(ListPonpesActivity.this,\"Respon gagal\",Toast.LENGTH_SHORT).show();\n Log.d(\"Hasil internet\",t.toString());\n }\n });\n }", "@Override\n public void onBindViewHolder(ViewHolder holder, int position) {\n int animal = mData.get(position);\n holder.myTextView.setText(\"\" + animal);\n }", "@Override\n public void onBindViewHolder(MinhaViewHolder holder, int position) {\n holder.imagemCategoria.setImageResource(mLista.get(position).getFoto());\n holder.destino.setText(mLista.get(position).getDestino());\n holder.custoTotal.setText(mLista.get(position).getValor());\n holder.data.setText(mLista.get(position).getData());\n\n\n }", "@Override\n public void onItemClick(View view, String data) {\n }", "private void premium_ui_BriefingHeader(RecyclerView.ViewHolder viewHolder, ArticleBean bean) {\n BriefingHeaderViewHolder holder = (BriefingHeaderViewHolder) viewHolder;\n holder.userName_Txt.setText(bean.getTitle());\n if (mFrom.equalsIgnoreCase(NetConstants.API_Mystories)) {\n holder.yourEditionFor_Txt.setText(bean.getSectionName());\n holder.yourEditionFor_Txt.setVisibility(View.VISIBLE);\n holder.editionBtn_Txt.setVisibility(View.GONE);\n } else if (mFrom.equalsIgnoreCase(NetConstants.BREIFING_ALL) || mFrom.equalsIgnoreCase(NetConstants.BREIFING_MORNING)\n || mFrom.equalsIgnoreCase(NetConstants.BREIFING_NOON) || mFrom.equalsIgnoreCase(NetConstants.BREIFING_EVENING)) {\n holder.editionBtn_Txt.setText(bean.getSectionName());\n holder.editionBtn_Txt.setVisibility(View.VISIBLE);\n holder.yourEditionFor_Txt.setVisibility(View.VISIBLE);\n holder.yourEditionFor_Txt.setText(\"Today's Briefing\");\n } else if (mFrom.equalsIgnoreCase(NetConstants.API_suggested)) {\n holder.yourEditionFor_Txt.setText(bean.getSectionName());\n holder.yourEditionFor_Txt.setVisibility(View.VISIBLE);\n holder.editionBtn_Txt.setVisibility(View.GONE);\n }\n\n boolean isDayTheme = DefaultPref.getInstance(holder.editionBtn_Txt.getContext()).isUserThemeDay();\n if (isDayTheme) {\n holder.editionBtn_Txt.setCompoundDrawablesWithIntrinsicBounds(null, null,\n ResUtil.getBackgroundDrawable(holder.editionBtn_Txt.getContext().getResources(), R.drawable.ic_edition_dropdown), null);\n } else {\n holder.editionBtn_Txt.setCompoundDrawablesWithIntrinsicBounds(null, null,\n ResUtil.getBackgroundDrawable(holder.editionBtn_Txt.getContext().getResources(), R.drawable.ic_edition_dropdown_white), null);\n }\n\n holder.editionBtn_Txt.setOnClickListener(v -> {\n if (mOnEditionBtnClickListener != null) {\n mOnEditionBtnClickListener.OnEditionBtnClickListener();\n }\n });\n\n }", "private void setListPlaces(View view, String places) {\n String[] name = new String[]{\"\"};\n String[] id = new String[]{\"\"};\n String[] desc = new String[]{\"\"};\n switch (places){\n case \"Family Walk\" :\n name = new String[]{data.get(4).getName(), data.get(5).getName(),data.get(6).getName()};\n id = new String[]{String.valueOf(data.get(4).getID()), String.valueOf(data.get(5).getID()), String.valueOf(data.get(6).getID())};\n desc = new String[]{data.get(4).getDescription(), data.get(5).getDescription(),data.get(6).getDescription()};\n break;\n\n case \"Retro Tour\":\n name = new String[]{data.get(7).getName(), data.get(8).getName(), data.get(9).getName()};\n id = new String[]{String.valueOf(data.get(7).getID()), String.valueOf(data.get(8).getID()), String.valueOf(data.get(9).getID())};\n desc = new String[]{data.get(7).getDescription(), data.get(8).getDescription(),data.get(9).getDescription()};\n break;\n case \"Sports Tour\":\n name = new String[]{data.get(9).getName(), data.get(8).getName(), data.get(11).getName()};\n id = new String[]{String.valueOf(data.get(9).getID()), String.valueOf(data.get(8).getID()), String.valueOf(data.get(11).getID())};\n desc = new String[]{data.get(9).getDescription(), data.get(8).getDescription(),data.get(11).getDescription()};\n break;\n case \"custom\":\n List<String> names = getActivity().getIntent().getStringArrayListExtra(\"name\");\n name = names.toArray(new String[0]);\n List<String> ID = getActivity().getIntent().getStringArrayListExtra(\"ID\");\n id = ID.toArray(new String[0]);\n List<String> Desc = getActivity().getIntent().getStringArrayListExtra(\"desc\");\n desc = Desc.toArray(new String[0]);\n break;\n }\n cardAdapter2 = new CardAdapter2(getContext(), name, id, desc, imageListener);\n recyclerView = (RecyclerView) view.findViewById(R.id.recyclerView);\n RecyclerView.LayoutManager layoutManager = new LinearLayoutManager(getActivity());\n recyclerView.setLayoutManager(layoutManager);\n recyclerView.setItemAnimator(new DefaultItemAnimator());\n recyclerView.setAdapter(cardAdapter2);\n }", "public void onCadastro(View v){\n\n if(this.mAnuncio!= null){\n\n this.mAnuncio.getAp().setPreSharedKey(this.senha_wifi.getText().toString());\n\n this.mAnuncio.setName(this.nome.getText().toString());\n this.mAnuncio.setDescription(\"criado em \"+new Date().getTime() +\"@beltrao\");\n this.presenter.tryToConnectWifi(this.mAnuncio.getAp(), this);\n\n\n }else{\n\n\n }\n\n\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n String SlectedCountry = countryNameThree[+position];\n Toast.makeText(getApplicationContext(), SlectedCountry, Toast.LENGTH_SHORT).show();\n\n }", "@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tString txt = aa.getItem(which);\n\t\t\t\t\t\n\t\t\t\t\tad.setTitle(txt);\n\t\t\t\t\t\n\t\t\t\t\tet.setText(txt);\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void onChange() {\n java.lang.String callbackArg_0 = android.databinding.adapters.TextViewBindingAdapter.getTextString(mboundView5);\n // localize variables for thread safety\n // viewModel.obServiceVipPrice != null\n boolean viewModelObServiceVipPriceJavaLangObjectNull = false;\n // viewModel.obServiceVipPrice\n android.databinding.ObservableField<java.lang.String> viewModelObServiceVipPrice = null;\n // viewModel.obServiceVipPrice.get()\n java.lang.String viewModelObServiceVipPriceGet = null;\n // viewModel\n ys.app.pad.viewmodel.ModifyServiceDetailViewModel viewModel = mViewModel;\n // viewModel != null\n boolean viewModelJavaLangObjectNull = false;\n\n\n\n viewModelJavaLangObjectNull = (viewModel) != (null);\n if (viewModelJavaLangObjectNull) {\n\n\n viewModelObServiceVipPrice = viewModel.obServiceVipPrice;\n\n viewModelObServiceVipPriceJavaLangObjectNull = (viewModelObServiceVipPrice) != (null);\n if (viewModelObServiceVipPriceJavaLangObjectNull) {\n\n\n\n\n viewModelObServiceVipPrice.set(((java.lang.String) (callbackArg_0)));\n }\n }\n }", "@Override\n public void onChange() {\n java.lang.String callbackArg_0 = androidx.databinding.adapters.TextViewBindingAdapter.getTextString(editTextQty);\n // localize variables for thread safety\n // promo_binding_view.textPromoCode\n androidx.lifecycle.MutableLiveData<java.lang.String> promoBindingViewTextPromoCode = null;\n // promo_binding_view != null\n boolean promoBindingViewJavaLangObjectNull = false;\n // promo_binding_view\n tkhub.project.kesbewa.viewmodels.cart.CartViewModel promoBindingView = mPromoBindingView;\n // promo_binding_view.textPromoCode != null\n boolean promoBindingViewTextPromoCodeJavaLangObjectNull = false;\n // promo_binding_view.textPromoCode.getValue()\n java.lang.String promoBindingViewTextPromoCodeGetValue = null;\n\n\n\n promoBindingViewJavaLangObjectNull = (promoBindingView) != (null);\n if (promoBindingViewJavaLangObjectNull) {\n\n\n promoBindingViewTextPromoCode = promoBindingView.getTextPromoCode();\n\n promoBindingViewTextPromoCodeJavaLangObjectNull = (promoBindingViewTextPromoCode) != (null);\n if (promoBindingViewTextPromoCodeJavaLangObjectNull) {\n\n\n\n\n promoBindingViewTextPromoCode.setValue(((java.lang.String) (callbackArg_0)));\n }\n }\n }", "@Override\r\n public void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\r\n long arg3) {\n TV.setText(array[arg2]);\r\n mVehicleCode = array[arg2];\r\n if (array[arg2].equals(\"苏\")) {\r\n mChooseCityLL.setVisibility(View.GONE);\r\n }\r\n dialog.dismiss();\r\n }", "@Override\n public ViewHolder onCreateViewHolder(ViewGroup arg0, int arg1) {\n\n return new ViewHolder(new TextView(RecyclerViewActivity.this)) {\n\n };\n }", "@Override\n public void onClick(View view) {\n //Metodos Getters y Setters\n tvSaludo.setVisibility(View.VISIBLE);\n tvSaludo.setText(\"HOLA ANDROIDS JUNIORS\"); // hard coding\n }", "@Override\r\n\t\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\t\tisubject=bl.get(arg2)[0];\r\n\t\t\t\t\t\t\t\t\tiamount=bl.get(arg2)[1];\r\n\t\t\t\t\t\t\t\t\timode=bl.get(arg2)[2];\r\n\t\t\t\t\t\t\t\t\tidate=bl.get(arg2)[3];\r\n\t\t\t\t\t\t\t\t\tshowDialog(DETAIL_DIALOG);\r\n\t\t\t\t\t\t\t\t}", "public final void beK() {\n AppMethodBeat.i(88975);\n if (this.kaS.aZV().vTW != null && this.kaS.aZV().vTW.size() > 0) {\n tm tmVar = (tm) this.kaS.aZV().vTW.get(0);\n if (this.iPD != null) {\n this.iPD.setText(tmVar.title);\n }\n if (this.ksp != null) {\n if (TextUtils.isEmpty(tmVar.kbW)) {\n this.ksp.setVisibility(8);\n } else {\n this.ksp.setText(tmVar.kbW);\n }\n }\n if (this.ksq != null) {\n if (TextUtils.isEmpty(tmVar.kbX)) {\n this.ksq.setVisibility(8);\n } else {\n this.ksq.setText(tmVar.kbX);\n AppMethodBeat.o(88975);\n return;\n }\n }\n }\n AppMethodBeat.o(88975);\n }", "public MyViewHolder(final View itemView) {\n super(itemView);\n this.textView1 = (TextView) itemView.findViewById(R.id.textViewt1);\n c2=(CardView) itemView.findViewById(R.id.card_view2);\n this.cardfashlin = (LinearLayout) itemView.findViewById(R.id.lincardfarsh);\n this.searchView = (SearchView) itemView.findViewById(R.id.searchView);\n /* this.textView2 = (TextView) itemView.findViewById(R.id.textViewt2);\n this.textView3 = (TextView) itemView.findViewById(R.id.textViewt3);\n this.textView4 = (TextView) itemView.findViewById(R.id.textViewt4);\n this.textView5 = (TextView) itemView.findViewById(R.id.textViewt5);\n this.textView6 = (TextView) itemView.findViewById(R.id.textViewt6);*/\n /* this. rlid = (TextView) itemView.findViewById(R.id.rmmm);\n rlid.setVisibility(View.GONE);*/\n // itemView.getContext().startActivity(new Intent(itemView.getContext(), farshtyybah.class));\n\n // this.imageViewIcon = (ImageView) itemView.findViewById(R.id.imageView);\n }", "@Override\n protected void convert(BaseViewHolder baseViewHolder, String dataBean) {\n ((TextView)baseViewHolder.getView(R.id.dateText)).setText(dataBean);\n baseViewHolder.addOnClickListener(R.id.userHead);\n\n }", "@Override\n public void bindView(View view, Context context, Cursor cursor) {\n // Find fields to populate in inflated template\n\n TextView name = (TextView) view.findViewById(R.id.label3nazwa);\n TextView date = (TextView) view.findViewById(R.id.label1data);\n TextView type = (TextView) view.findViewById(R.id.label2typ);\n TextView value = (TextView) view.findViewById(R.id.label4wartosc);\n // Extract properties from cursor\n String nazwa = cursor.getString(cursor.getColumnIndexOrThrow(\"nazwa\"));\n String typ_id = cursor.getString(cursor.getColumnIndexOrThrow(\"typ_id\"));\n String data = cursor.getString(cursor.getColumnIndexOrThrow(\"data\"));\n String wartosc = cursor.getString(cursor.getColumnIndexOrThrow(\"wartosc\"));\n // Populate fields with extracted properties\n name.setText(nazwa);\n date.setText(data);\n type.setText(typ_id);\n value.setText(wartosc);\n }", "@Override\n public void onCardAppeared(View view, int position) {\n TextView tv = view.findViewById(R.id.item_name);\n Log.d(TAG, \"onCardAppeared: \" + position + \", name: \" + tv.getText());\n }", "@Override\n public void onBindViewHolder(@NonNull RuangViewHolder holder, int position) {\n final Ruangan ruanganItem = mRuangan.get(position);\n holder.namaRuang.setText(ruanganItem.getNama());\n\n //step 5 (Opsional): menambahkan onClickListener agar item memiliki aksi saat diklik\n holder.namaRuang.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Intent jadwalIntent = new Intent(mContext, JadwalActivity.class);\n jadwalIntent.putExtra(\"namaRuang\", ruanganItem.getNama());\n jadwalIntent.putExtra(\"lantai\", ruanganItem.getLantai());\n jadwalIntent.putExtra(\"imageJadwal\", ruanganItem.getImageJadwal());\n mContext.startActivity(jadwalIntent);\n }\n });\n }", "@Override\n public void onItemClicked(RecyclerView recyclerView, int position, View v) {\n Toast.makeText(getApplicationContext(), znamkyItemList.get(position).popis, Toast.LENGTH_LONG).show();\n\n }", "public ItemHolder(@NonNull View itemView) {\n super(itemView);\n /*tvNombre=itemView.findViewById(R.id.tvNombre);\n tvCiudad=itemView.findViewById(R.id.etCiudad);\n btBorrar=itemView.findViewById(R.id.btBorrar);\n btEditar=itemView.findViewById(R.id.btEditar);\n cl = itemView.findViewById(R.id.cl);\n ivImagen = itemView.findViewById(R.id.ivImagen);*/\n }", "public void setKdKelas(java.lang.CharSequence value) {\n this.kd_kelas = value;\n }", "@Override\n public void onBindViewHolder(ListadoHolder holder, int position) {\n idProducto = Integer.parseInt(mListado_Productos.get(position).getId());\n\n\n holder.nombreTxt.setText(mListado_Productos.get(position).getNombre());\n holder.precioTxt.setText(mListado_Productos.get(position).getPrecio() + \"€\");\n holder.imagenIv.setImageBitmap(mListado_Productos.get(position).getImagenBitMap());\n\n //Listener del listado de productos\n holder.setItemClickListener(new ItemClickListener() {\n @Override\n public void onItemClick(View v, int pos) {\n\n //Guardo la fecha y hora del dispositivo\n String fechaHoraActual = (DateFormat.format(\"dd-MM-yyyy hh:mm:ss\", new java.util.Date()).toString());\n\n //Cuando se pulsa un item se guarda en preferencias de usuario\n SharedPreferences prefs = context.getSharedPreferences(HISTORICO_PRODUCTOS,Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = prefs.edit();\n editor.putString(fechaHoraActual, mListado_Productos.get(pos).getNombre()+\";\"+mListado_Productos.get(pos).getImagen());\n editor.commit();\n\n //Pinto preferencias guardadas de prueba\n Map<String, ?> allEntries = prefs.getAll();\n for (Map.Entry<String, ?> entry : allEntries.entrySet()) {\n Log.d(\"map values\", entry.getKey() + \": \" + entry.getValue().toString());\n }\n\n //Intent de llamada a la actividad detalle\n Intent intent = new Intent(context,DetalleActivity.class);\n\n //Metemos datos en el intent\n intent.putExtra(\"Nombre\",mListado_Productos.get(pos).getNombre());\n intent.putExtra(\"Precio\",mListado_Productos.get(pos).getPrecio());\n intent.putExtra(\"Unidades\",mListado_Productos.get(pos).getUnidades());\n intent.putExtra(\"Descripcion\",mListado_Productos.get(pos).getDescripcion());\n\n //Reducimos un poco la imagen antes de mandarla por el intent pq falllaaaaaaaaaaaaaa jooooooderrrrr\n Bitmap imagenGrande = mListado_Productos.get(pos).getImagenBitMap();\n Bitmap imagenPequena = Utils.scaleDownBitmap(imagenGrande,200,context);\n intent.putExtra(\"Imagen\", imagenPequena);\n\n //Lanzar actividad\n context.startActivity(intent);\n\n }\n });\n }", "@Override\n public void bindView(View view, Context context, Cursor cursor) {\n TextView nameTextView = view.findViewById(R.id.name);\n TextView summaryTextView = view.findViewById(R.id.summary);\n\n int nameIndex = cursor.getColumnIndex(PetContract.PetEntry.COLUMN_PET_NAME);\n\n String name = cursor.getString(nameIndex);\n // Reduzido\n String breed = cursor.getString(cursor.getColumnIndex(PetContract.PetEntry.COLUMN_PET_BREED));\n if (TextUtils.isEmpty(breed))\n breed = \"Unknown breed\";\n\n nameTextView.setText(name);\n summaryTextView.setText(breed);\n }", "public Adapter(Context c, String[] title, String[] descript) {\n myContext = c;\n titleA = title;\n descriptA = descript;\n inflater = LayoutInflater.from(c);\n\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position,\n long id) {\n nama_dokter2 = parent.getItemAtPosition(position).toString();\n\n // Showing selected spinner item\n Toast.makeText(parent.getContext(), \"You selected: \" + nama_dokter2,\n Toast.LENGTH_LONG).show();\n\n }", "@Override\n public void onBindViewHolder(RecyclerView.ViewHolder holder, final int position) {\n Enroll_Model_List p = items.get(position);\n if (holder instanceof EnRoll_Adapter.OriginalViewHolder) {\n final EnRoll_Adapter.OriginalViewHolder view = (EnRoll_Adapter.OriginalViewHolder) holder;\n\n view.text_student.setText(p.getFirst_name() +\" \"+p.getLast_name());\n\n view.text_enroll_num.setText(p.getEnroll_num());\n view.text_expiry.setText(p.getExpiry_date());\n String exam_id = p.getExam_id();\n String study_id = p.getStudy_mterial_id();\n String video_id = p.getVideo_id();\n\n if (exam_id != null && !exam_id.isEmpty() && !exam_id.equals(\"null\")) {\n view.text_exam.setText(exam_id);\n }else if (study_id != null && !study_id.isEmpty() && !study_id.equals(\"null\")) {\n view.text_exam.setText(study_id);\n }else if (video_id != null && !video_id.isEmpty() && !video_id.equals(\"null\")) {\n view.text_exam.setText(video_id);\n }\n\n //view.description.setTextColor( ctx.getResources().getColor( R.color.grey_80 ) );\n\n /* view.lyt_parent.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n if (mOnItemClickListener != null) {\n mOnItemClickListener.onItemClick(view, items.get(position), position);\n }\n }\n });*/\n }\n }", "protected void onBindData(Context context, int position, T item, int itemLayoutId, ViewHelper2 helper){\n\n }", "@Override\r\n public void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\r\n long arg3) {\n bqListWindow.dismiss();\r\n DeptWardMapInfo departmentandward = bqlist.get(arg2);\r\n et_bqks.setText(bqlist.get(arg2).getBqmc() + \" | \"\r\n + bqlist.get(arg2).getKsmc());\r\n SharedPreferenceTools.saveInt(Login.this,\"BqSel\",arg2);\r\n GlobalCache.getCache().setBqSel(arg2);\r\n }", "public interface ForgetKeyAtView {\n\n EditText getEtPhoneV();\n EditText getEtKeyV();\n\n}", "private void setDataInRecyclerView(){\n KorisniciAdapter adapter = new KorisniciAdapter(this, korisniciList);\n recyclerView.setAdapter(adapter); // set the Adapter to RecyclerView\n }", "View mo6503b(RecyclerView recyclerView, C41531v c41531v);", "@Override\r\n\tpublic View getView(int arg0, View view, ViewGroup arg2) {\n\t\tview=LayoutInflater.from(context).inflate(com.qufei.androidapp.R.layout.item_searchfenleihao, null);\r\n\t\t\r\n\t\tTextView text=(TextView) view.findViewById(R.id.fenleihao);\r\n\t\t\r\n\t\ttext.setText(data.get(arg0).get名称());\r\n\t\t\r\n\t\t\r\n\t\treturn view;\r\n\t}", "@Override\n public void onBindViewHolder(DetailAdapter.ViewHolder holder, int position) {\n // - get element from your dataset at this position\n // - replace the contents of the view with that element\n //holder.mTextView.setText(mDataset[position]);\n holder.informacion.setText(mDataset[position]); //informacion es el dato que nos entrega el arreglo\n }", "public void chooseCategory(){\n String title = intent.getStringExtra(\"title\");\n String content = intent.getStringExtra(\"content\");\n TextView titleView = findViewById(R.id.category_grid_title);\n titleView.setText(R.string.choose_category_title);\n categoriesAdapter.passInfo(title, content);\n }" ]
[ "0.6010315", "0.5812442", "0.5713169", "0.5674204", "0.5576221", "0.5555796", "0.55548024", "0.5546485", "0.54946023", "0.5485045", "0.54646474", "0.5436705", "0.54181385", "0.54132617", "0.5397045", "0.53937125", "0.53893715", "0.53735393", "0.536985", "0.53604555", "0.5353991", "0.5336691", "0.53353727", "0.53228337", "0.53169817", "0.530611", "0.5293761", "0.52908087", "0.5289549", "0.52893156", "0.5286325", "0.5284775", "0.5283591", "0.52820426", "0.5276385", "0.52695405", "0.5262006", "0.5258453", "0.5256465", "0.5249834", "0.5248475", "0.523641", "0.5235529", "0.52297586", "0.52197826", "0.52154714", "0.5212945", "0.52123255", "0.5207422", "0.5200667", "0.51958895", "0.51912755", "0.51790375", "0.5178449", "0.5173665", "0.51677173", "0.5159895", "0.515858", "0.5154235", "0.5153905", "0.5150146", "0.5149935", "0.51422685", "0.51412815", "0.5139019", "0.5137659", "0.5137273", "0.5133612", "0.51321405", "0.51309687", "0.5127509", "0.51261824", "0.512178", "0.5119898", "0.5117624", "0.51174897", "0.5115924", "0.5111944", "0.51104075", "0.51073325", "0.5106997", "0.51050115", "0.51046556", "0.5098349", "0.50953895", "0.50944287", "0.5091398", "0.5086158", "0.50853187", "0.50823605", "0.50820893", "0.50803924", "0.5070988", "0.50681543", "0.5067948", "0.5065848", "0.506458", "0.5057702", "0.5055923", "0.5055845" ]
0.66337305
0